@ibiz-template/core 0.7.39 → 0.7.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/dist/index.esm.js +543 -662
  2. package/dist/index.system.min.js +1 -1
  3. package/out/command/command-register.d.ts +23 -37
  4. package/out/command/command-register.d.ts.map +1 -1
  5. package/out/command/command-register.js +22 -36
  6. package/out/command/command.d.ts +28 -34
  7. package/out/command/command.d.ts.map +1 -1
  8. package/out/command/command.js +26 -32
  9. package/out/command/index.d.ts +1 -4
  10. package/out/command/index.d.ts.map +1 -1
  11. package/out/command/index.js +2 -4
  12. package/out/command/utils/util.d.ts +23 -15
  13. package/out/command/utils/util.d.ts.map +1 -1
  14. package/out/command/utils/util.js +22 -16
  15. package/out/constant/core/core.d.ts +18 -28
  16. package/out/constant/core/core.d.ts.map +1 -1
  17. package/out/constant/core/core.js +18 -28
  18. package/out/constant/emoji/emoji.d.ts.map +1 -1
  19. package/out/constant/emoji/emoji.js +2 -0
  20. package/out/constant/http-status-message/http-status-message.d.ts +0 -3
  21. package/out/constant/http-status-message/http-status-message.d.ts.map +1 -1
  22. package/out/constant/http-status-message/http-status-message.js +1 -3
  23. package/out/constant/index.d.ts +2 -4
  24. package/out/constant/index.d.ts.map +1 -1
  25. package/out/constant/index.js +2 -4
  26. package/out/constant/util/util.d.ts +0 -3
  27. package/out/constant/util/util.d.ts.map +1 -1
  28. package/out/constant/util/util.js +1 -3
  29. package/out/context/index.d.ts +34 -51
  30. package/out/context/index.d.ts.map +1 -1
  31. package/out/context/index.js +24 -33
  32. package/out/environment/environment.d.ts +0 -3
  33. package/out/environment/environment.d.ts.map +1 -1
  34. package/out/environment/environment.js +8 -4
  35. package/out/error/http-error/entity-error.d.ts +3 -17
  36. package/out/error/http-error/entity-error.d.ts.map +1 -1
  37. package/out/error/http-error/entity-error.js +2 -5
  38. package/out/error/http-error/http-error-factory.d.ts +5 -0
  39. package/out/error/http-error/http-error-factory.d.ts.map +1 -1
  40. package/out/error/http-error/http-error-factory.js +5 -0
  41. package/out/error/http-error/http-error.d.ts +3 -10
  42. package/out/error/http-error/http-error.d.ts.map +1 -1
  43. package/out/error/http-error/http-error.js +2 -5
  44. package/out/error/model-error/model-error.d.ts +5 -9
  45. package/out/error/model-error/model-error.d.ts.map +1 -1
  46. package/out/error/model-error/model-error.js +5 -9
  47. package/out/error/notice-error/notice-error.d.ts +2 -5
  48. package/out/error/notice-error/notice-error.d.ts.map +1 -1
  49. package/out/error/notice-error/notice-error.js +2 -5
  50. package/out/error/runtime-error/runtime-error.d.ts +2 -5
  51. package/out/error/runtime-error/runtime-error.d.ts.map +1 -1
  52. package/out/error/runtime-error/runtime-error.js +2 -5
  53. package/out/error/runtime-model-error/runtime-model-error.d.ts +5 -10
  54. package/out/error/runtime-model-error/runtime-model-error.d.ts.map +1 -1
  55. package/out/error/runtime-model-error/runtime-model-error.js +5 -10
  56. package/out/ibizsys.d.ts +24 -44
  57. package/out/ibizsys.d.ts.map +1 -1
  58. package/out/ibizsys.js +15 -29
  59. package/out/index.d.ts.map +1 -1
  60. package/out/install.d.ts +1 -4
  61. package/out/install.d.ts.map +1 -1
  62. package/out/install.js +1 -4
  63. package/out/interface/api/constant/index.d.ts +3 -0
  64. package/out/interface/api/constant/index.d.ts.map +1 -0
  65. package/out/interface/api/constant/index.js +2 -0
  66. package/out/{constant → interface/api/constant}/login-mode/login-mode.d.ts +1 -4
  67. package/out/interface/api/constant/login-mode/login-mode.d.ts.map +1 -0
  68. package/out/{constant → interface/api/constant}/login-mode/login-mode.js +1 -4
  69. package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.d.ts +1 -4
  70. package/out/interface/api/constant/menu-permission-mode/menu-permission-mode.d.ts.map +1 -0
  71. package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.js +1 -4
  72. package/out/interface/api/environment/i-devtool-config.d.ts +42 -0
  73. package/out/interface/api/environment/i-devtool-config.d.ts.map +1 -0
  74. package/out/interface/api/environment/i-environment.d.ts +332 -0
  75. package/out/interface/api/environment/i-environment.d.ts.map +1 -0
  76. package/out/interface/api/environment/index.d.ts +3 -0
  77. package/out/interface/api/environment/index.d.ts.map +1 -0
  78. package/out/interface/api/global-param/i-api-context.d.ts +33 -0
  79. package/out/interface/api/global-param/i-api-context.d.ts.map +1 -0
  80. package/out/interface/api/global-param/i-global-param.d.ts +25 -0
  81. package/out/interface/api/global-param/i-global-param.d.ts.map +1 -0
  82. package/out/interface/api/global-param/index.d.ts +3 -0
  83. package/out/interface/api/global-param/index.d.ts.map +1 -0
  84. package/out/interface/api/ibizsys/i-api-ibizsys.d.ts +48 -0
  85. package/out/interface/api/ibizsys/i-api-ibizsys.d.ts.map +1 -0
  86. package/out/interface/api/ibizsys/i-org-data.d.ts +32 -0
  87. package/out/interface/api/ibizsys/i-org-data.d.ts.map +1 -0
  88. package/out/interface/api/ibizsys/index.d.ts +3 -0
  89. package/out/interface/api/ibizsys/index.d.ts.map +1 -0
  90. package/out/interface/api/index.d.ts +6 -0
  91. package/out/interface/api/index.d.ts.map +1 -0
  92. package/out/interface/api/index.js +5 -0
  93. package/out/interface/api/utils/i-api-i18n.d.ts +51 -0
  94. package/out/interface/api/utils/i-api-i18n.d.ts.map +1 -0
  95. package/out/interface/api/utils/index.d.ts +5 -0
  96. package/out/interface/api/utils/index.d.ts.map +1 -0
  97. package/out/interface/api/utils/index.js +1 -0
  98. package/out/interface/api/utils/message-center/base/i-message-all.d.ts +10 -0
  99. package/out/interface/api/utils/message-center/base/i-message-all.d.ts.map +1 -0
  100. package/out/interface/api/utils/message-center/base/i-message-base.d.ts +27 -0
  101. package/out/interface/api/utils/message-center/base/i-message-base.d.ts.map +1 -0
  102. package/out/interface/api/utils/message-center/base/index.d.ts +3 -0
  103. package/out/interface/api/utils/message-center/base/index.d.ts.map +1 -0
  104. package/out/interface/{i-add-in-changed → api/utils/message-center/command/add-in-changed}/i-add-in-changed.d.ts +4 -8
  105. package/out/interface/api/utils/message-center/command/add-in-changed/i-add-in-changed.d.ts.map +1 -0
  106. package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts +17 -0
  107. package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts.map +1 -0
  108. package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts +17 -0
  109. package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts.map +1 -0
  110. package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts +10 -0
  111. package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts.map +1 -0
  112. package/out/interface/api/utils/message-center/command/change/i-command-change.js +1 -0
  113. package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts +18 -0
  114. package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts.map +1 -0
  115. package/out/interface/api/utils/message-center/command/create/i-command-create.js +1 -0
  116. package/out/interface/api/utils/message-center/command/i-command-base.d.ts +20 -0
  117. package/out/interface/api/utils/message-center/command/i-command-base.d.ts.map +1 -0
  118. package/out/interface/api/utils/message-center/command/i-command-base.js +1 -0
  119. package/out/interface/api/utils/message-center/command/i-message-command.d.ts +82 -0
  120. package/out/interface/api/utils/message-center/command/i-message-command.d.ts.map +1 -0
  121. package/out/interface/api/utils/message-center/command/i-message-command.js +1 -0
  122. package/out/interface/api/utils/message-center/command/index.d.ts +14 -0
  123. package/out/interface/api/utils/message-center/command/index.d.ts.map +1 -0
  124. package/out/interface/api/utils/message-center/command/index.js +1 -0
  125. package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts +17 -0
  126. package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts.map +1 -0
  127. package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.js +1 -0
  128. package/out/interface/{i-internal-message → api/utils/message-center/command/internal-message}/i-internal-message.d.ts +35 -54
  129. package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.d.ts.map +1 -0
  130. package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.js +1 -0
  131. package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts +17 -0
  132. package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts.map +1 -0
  133. package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.js +1 -0
  134. package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts +46 -0
  135. package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts.map +1 -0
  136. package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.js +1 -0
  137. package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts +18 -0
  138. package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts.map +1 -0
  139. package/out/interface/api/utils/message-center/command/remove/i-command-remove.js +1 -0
  140. package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts +18 -0
  141. package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts.map +1 -0
  142. package/out/interface/api/utils/message-center/command/update/i-command-update.js +1 -0
  143. package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts +16 -0
  144. package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts.map +1 -0
  145. package/out/interface/api/utils/message-center/common/i-app-data-entity.js +1 -0
  146. package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts +10 -0
  147. package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts.map +1 -0
  148. package/out/interface/api/utils/message-center/common/i-message-center-event.js +1 -0
  149. package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts +14 -0
  150. package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts.map +1 -0
  151. package/out/interface/api/utils/message-center/common/i-msg-meta-data.js +1 -0
  152. package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts +134 -0
  153. package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts.map +1 -0
  154. package/out/interface/api/utils/message-center/common/i-portal-async-action.js +1 -0
  155. package/out/interface/api/utils/message-center/common/i-portal-message.d.ts +70 -0
  156. package/out/interface/api/utils/message-center/common/i-portal-message.d.ts.map +1 -0
  157. package/out/interface/api/utils/message-center/common/i-portal-message.js +1 -0
  158. package/out/interface/api/utils/message-center/common/index.d.ts +6 -0
  159. package/out/interface/api/utils/message-center/common/index.d.ts.map +1 -0
  160. package/out/interface/api/utils/message-center/common/index.js +1 -0
  161. package/out/interface/api/utils/message-center/console/i-message-console.d.ts +17 -0
  162. package/out/interface/api/utils/message-center/console/i-message-console.d.ts.map +1 -0
  163. package/out/interface/api/utils/message-center/console/i-message-console.js +1 -0
  164. package/out/interface/api/utils/message-center/error/i-message-error.d.ts +17 -0
  165. package/out/interface/api/utils/message-center/error/i-message-error.d.ts.map +1 -0
  166. package/out/interface/api/utils/message-center/error/i-message-error.js +1 -0
  167. package/out/interface/api/utils/message-center/i-message-center.d.ts +48 -0
  168. package/out/interface/api/utils/message-center/i-message-center.d.ts.map +1 -0
  169. package/out/interface/api/utils/message-center/i-message-center.js +1 -0
  170. package/out/interface/api/utils/message-center/index.d.ts +7 -0
  171. package/out/interface/api/utils/message-center/index.d.ts.map +1 -0
  172. package/out/interface/api/utils/message-center/index.js +3 -0
  173. package/out/interface/api/utils/net/i-api-net.d.ts +65 -0
  174. package/out/interface/api/utils/net/i-api-net.d.ts.map +1 -0
  175. package/out/interface/api/utils/net/i-api-net.js +1 -0
  176. package/out/interface/api/utils/net/i-http-response.d.ts +60 -0
  177. package/out/interface/api/utils/net/i-http-response.d.ts.map +1 -0
  178. package/out/interface/api/utils/net/i-http-response.js +1 -0
  179. package/out/interface/click-outside/click-outside.d.ts +15 -36
  180. package/out/interface/click-outside/click-outside.d.ts.map +1 -1
  181. package/out/interface/command/command/i-command-option.d.ts +46 -0
  182. package/out/interface/command/command/i-command-option.d.ts.map +1 -0
  183. package/out/interface/command/command/i-command-option.js +1 -0
  184. package/out/interface/command/command/i-command.d.ts +61 -0
  185. package/out/interface/command/command/i-command.d.ts.map +1 -0
  186. package/out/interface/command/command/i-command.js +1 -0
  187. package/out/interface/command/disposable/i-disposable.d.ts +13 -0
  188. package/out/interface/command/disposable/i-disposable.d.ts.map +1 -0
  189. package/out/interface/command/disposable/i-disposable.js +1 -0
  190. package/out/interface/command/i-command-controller.d.ts +43 -0
  191. package/out/interface/command/i-command-controller.d.ts.map +1 -0
  192. package/out/interface/command/i-command-controller.js +1 -0
  193. package/out/interface/command/index.d.ts +5 -0
  194. package/out/interface/command/index.d.ts.map +1 -0
  195. package/out/interface/command/index.js +1 -0
  196. package/out/interface/context/index.d.ts +39 -0
  197. package/out/interface/context/index.d.ts.map +1 -0
  198. package/out/interface/context/index.js +1 -0
  199. package/out/interface/error/index.d.ts +12 -0
  200. package/out/interface/error/index.d.ts.map +1 -0
  201. package/out/interface/error/index.js +1 -0
  202. package/out/interface/i-chat-message/i-chat-message.d.ts +24 -37
  203. package/out/interface/i-chat-message/i-chat-message.d.ts.map +1 -1
  204. package/out/interface/ibizsys/i-ibizsys.d.ts +30 -0
  205. package/out/interface/ibizsys/i-ibizsys.d.ts.map +1 -0
  206. package/out/interface/ibizsys/i-ibizsys.js +1 -0
  207. package/out/interface/ibizsys/index.d.ts +2 -0
  208. package/out/interface/ibizsys/index.d.ts.map +1 -0
  209. package/out/interface/ibizsys/index.js +1 -0
  210. package/out/interface/index.d.ts +8 -9
  211. package/out/interface/index.d.ts.map +1 -1
  212. package/out/interface/index.js +6 -0
  213. package/out/interface/utils/i-18n.d.ts +21 -0
  214. package/out/interface/utils/i-18n.d.ts.map +1 -0
  215. package/out/interface/utils/i-18n.js +1 -0
  216. package/out/interface/utils/index.d.ts +2 -0
  217. package/out/interface/utils/index.d.ts.map +1 -0
  218. package/out/interface/utils/index.js +1 -0
  219. package/out/params/params.d.ts +20 -24
  220. package/out/params/params.d.ts.map +1 -1
  221. package/out/params/params.js +16 -18
  222. package/out/types.d.ts +5 -113
  223. package/out/types.d.ts.map +1 -1
  224. package/out/utils/bit-mask/bit-mask.d.ts +9 -32
  225. package/out/utils/bit-mask/bit-mask.d.ts.map +1 -1
  226. package/out/utils/bit-mask/bit-mask.js +10 -37
  227. package/out/utils/click-outside/click-outside.d.ts +1 -4
  228. package/out/utils/click-outside/click-outside.d.ts.map +1 -1
  229. package/out/utils/click-outside/click-outside.js +1 -4
  230. package/out/utils/clone/clone.d.ts +3 -7
  231. package/out/utils/clone/clone.d.ts.map +1 -1
  232. package/out/utils/clone/clone.js +7 -12
  233. package/out/utils/color/color.d.ts +4 -6
  234. package/out/utils/color/color.d.ts.map +1 -1
  235. package/out/utils/color/color.js +5 -8
  236. package/out/utils/cookie-util/cookie-util.d.ts +16 -27
  237. package/out/utils/cookie-util/cookie-util.d.ts.map +1 -1
  238. package/out/utils/cookie-util/cookie-util.js +126 -55
  239. package/out/utils/data-type/data-types.d.ts +13 -19
  240. package/out/utils/data-type/data-types.d.ts.map +1 -1
  241. package/out/utils/data-type/data-types.js +13 -19
  242. package/out/utils/download-file/download-file.d.ts +6 -15
  243. package/out/utils/download-file/download-file.d.ts.map +1 -1
  244. package/out/utils/download-file/download-file.js +6 -15
  245. package/out/utils/event/event.d.ts +6 -14
  246. package/out/utils/event/event.d.ts.map +1 -1
  247. package/out/utils/event/event.js +6 -14
  248. package/out/utils/history-list/history-item.d.ts +5 -10
  249. package/out/utils/history-list/history-item.d.ts.map +1 -1
  250. package/out/utils/history-list/history-item.js +5 -10
  251. package/out/utils/history-list/history-list.d.ts +31 -45
  252. package/out/utils/history-list/history-list.d.ts.map +1 -1
  253. package/out/utils/history-list/history-list.js +28 -40
  254. package/out/utils/index.d.ts +1 -2
  255. package/out/utils/index.d.ts.map +1 -1
  256. package/out/utils/interceptor/core-interceptor.d.ts +11 -9
  257. package/out/utils/interceptor/core-interceptor.d.ts.map +1 -1
  258. package/out/utils/interceptor/core-interceptor.js +31 -12
  259. package/out/utils/interceptor/interceptor.d.ts +24 -43
  260. package/out/utils/interceptor/interceptor.d.ts.map +1 -1
  261. package/out/utils/interceptor/interceptor.js +18 -31
  262. package/out/utils/logger/logger.js +3 -2
  263. package/out/utils/message-center/base/message-all.d.ts +3 -5
  264. package/out/utils/message-center/base/message-all.d.ts.map +1 -1
  265. package/out/utils/message-center/base/message-all.js +1 -4
  266. package/out/utils/message-center/base/message-base.d.ts +23 -40
  267. package/out/utils/message-center/base/message-base.d.ts.map +1 -1
  268. package/out/utils/message-center/base/message-base.js +20 -26
  269. package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts +5 -6
  270. package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts.map +1 -1
  271. package/out/utils/message-center/command/add-in-changed/command-add-in-changed.js +3 -4
  272. package/out/utils/message-center/command/async-action/command-async-action.d.ts +6 -10
  273. package/out/utils/message-center/command/async-action/command-async-action.d.ts.map +1 -1
  274. package/out/utils/message-center/command/async-action/command-async-action.js +4 -8
  275. package/out/utils/message-center/command/change/command-change.d.ts +4 -5
  276. package/out/utils/message-center/command/change/command-change.d.ts.map +1 -1
  277. package/out/utils/message-center/command/change/command-change.js +2 -4
  278. package/out/utils/message-center/command/command-base/command-base.d.ts +10 -15
  279. package/out/utils/message-center/command/command-base/command-base.d.ts.map +1 -1
  280. package/out/utils/message-center/command/command-base/command-base.js +7 -12
  281. package/out/utils/message-center/command/create/command-create.d.ts +8 -12
  282. package/out/utils/message-center/command/create/command-create.d.ts.map +1 -1
  283. package/out/utils/message-center/command/create/command-create.js +6 -10
  284. package/out/utils/message-center/command/internal-message/command-internal-message.d.ts +7 -11
  285. package/out/utils/message-center/command/internal-message/command-internal-message.d.ts.map +1 -1
  286. package/out/utils/message-center/command/internal-message/command-internal-message.js +5 -9
  287. package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts +6 -10
  288. package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts.map +1 -1
  289. package/out/utils/message-center/command/mark-open-data/command-mark-open-data.js +4 -8
  290. package/out/utils/message-center/command/message-command.d.ts +31 -45
  291. package/out/utils/message-center/command/message-command.d.ts.map +1 -1
  292. package/out/utils/message-center/command/message-command.js +29 -43
  293. package/out/utils/message-center/command/remove/command-remove.d.ts +7 -11
  294. package/out/utils/message-center/command/remove/command-remove.d.ts.map +1 -1
  295. package/out/utils/message-center/command/remove/command-remove.js +5 -9
  296. package/out/utils/message-center/command/update/command-update.d.ts +7 -11
  297. package/out/utils/message-center/command/update/command-update.d.ts.map +1 -1
  298. package/out/utils/message-center/command/update/command-update.js +5 -9
  299. package/out/utils/message-center/console/message-console.d.ts +6 -9
  300. package/out/utils/message-center/console/message-console.d.ts.map +1 -1
  301. package/out/utils/message-center/console/message-console.js +4 -8
  302. package/out/utils/message-center/error/message-error.d.ts +6 -9
  303. package/out/utils/message-center/error/message-error.d.ts.map +1 -1
  304. package/out/utils/message-center/error/message-error.js +4 -8
  305. package/out/utils/message-center/index.d.ts +0 -1
  306. package/out/utils/message-center/index.d.ts.map +1 -1
  307. package/out/utils/message-center/message-center.d.ts +20 -35
  308. package/out/utils/message-center/message-center.d.ts.map +1 -1
  309. package/out/utils/message-center/message-center.js +18 -33
  310. package/out/utils/namespace/namespace.d.ts +45 -75
  311. package/out/utils/namespace/namespace.d.ts.map +1 -1
  312. package/out/utils/namespace/namespace.js +53 -81
  313. package/out/utils/net/http-response.d.ts +6 -66
  314. package/out/utils/net/http-response.d.ts.map +1 -1
  315. package/out/utils/net/http-response.js +4 -11
  316. package/out/utils/net/net.d.ts +57 -100
  317. package/out/utils/net/net.d.ts.map +1 -1
  318. package/out/utils/net/net.js +53 -94
  319. package/out/utils/recursive/find-recursive-child.d.ts +2 -10
  320. package/out/utils/recursive/find-recursive-child.d.ts.map +1 -1
  321. package/out/utils/recursive/find-recursive-child.js +4 -14
  322. package/out/utils/string-util/string-util.d.ts +6 -16
  323. package/out/utils/string-util/string-util.d.ts.map +1 -1
  324. package/out/utils/string-util/string-util.js +6 -16
  325. package/out/utils/style/remote-style.d.ts +1 -4
  326. package/out/utils/style/remote-style.d.ts.map +1 -1
  327. package/out/utils/style/remote-style.js +1 -4
  328. package/out/utils/sync/await-timeout.d.ts +1 -5
  329. package/out/utils/sync/await-timeout.d.ts.map +1 -1
  330. package/out/utils/sync/await-timeout.js +1 -5
  331. package/out/utils/sync/count-latch.d.ts +14 -30
  332. package/out/utils/sync/count-latch.d.ts.map +1 -1
  333. package/out/utils/sync/count-latch.js +14 -30
  334. package/out/utils/upload/select-file.d.ts +12 -29
  335. package/out/utils/upload/select-file.d.ts.map +1 -1
  336. package/out/utils/upload/select-file.js +3 -9
  337. package/out/utils/upload/upload-file.d.ts +6 -14
  338. package/out/utils/upload/upload-file.d.ts.map +1 -1
  339. package/out/utils/upload/upload-file.js +9 -23
  340. package/out/utils/url-helper/url-helper.d.ts +19 -30
  341. package/out/utils/url-helper/url-helper.d.ts.map +1 -1
  342. package/out/utils/url-helper/url-helper.js +19 -30
  343. package/out/utils/util/util.d.ts +6 -77
  344. package/out/utils/util/util.d.ts.map +1 -1
  345. package/out/utils/util/util.js +6 -77
  346. package/package.json +2 -2
  347. package/out/command/interface/command/command-option.d.ts +0 -23
  348. package/out/command/interface/command/command-option.d.ts.map +0 -1
  349. package/out/command/interface/command/command.d.ts +0 -74
  350. package/out/command/interface/command/command.d.ts.map +0 -1
  351. package/out/command/interface/disposable/disposable.d.ts +0 -4
  352. package/out/command/interface/disposable/disposable.d.ts.map +0 -1
  353. package/out/command/interface/index.d.ts +0 -4
  354. package/out/command/interface/index.d.ts.map +0 -1
  355. package/out/constant/login-mode/login-mode.d.ts.map +0 -1
  356. package/out/constant/menu-permission-mode/menu-permission-mode.d.ts.map +0 -1
  357. package/out/interface/i-18n/i-18n.d.ts +0 -81
  358. package/out/interface/i-18n/i-18n.d.ts.map +0 -1
  359. package/out/interface/i-add-in-changed/i-add-in-changed.d.ts.map +0 -1
  360. package/out/interface/i-devtool-config/i-devtool-config.d.ts +0 -40
  361. package/out/interface/i-devtool-config/i-devtool-config.d.ts.map +0 -1
  362. package/out/interface/i-environment/i-environment.d.ts +0 -346
  363. package/out/interface/i-environment/i-environment.d.ts.map +0 -1
  364. package/out/interface/i-internal-message/i-internal-message.d.ts.map +0 -1
  365. package/out/interface/i-mark-open-data/i-mark-open-data.d.ts +0 -43
  366. package/out/interface/i-mark-open-data/i-mark-open-data.d.ts.map +0 -1
  367. package/out/interface/i-portal-async-action/i-portal-async-action.d.ts +0 -163
  368. package/out/interface/i-portal-async-action/i-portal-async-action.d.ts.map +0 -1
  369. package/out/interface/i-portal-message/i-portal-message.d.ts +0 -89
  370. package/out/interface/i-portal-message/i-portal-message.d.ts.map +0 -1
  371. package/out/interface/org-data/org-data.d.ts +0 -43
  372. package/out/interface/org-data/org-data.d.ts.map +0 -1
  373. package/out/utils/message-center/interface/i-app-data-entity.d.ts +0 -20
  374. package/out/utils/message-center/interface/i-app-data-entity.d.ts.map +0 -1
  375. package/out/utils/message-center/interface/i-msg-meta-data.d.ts +0 -19
  376. package/out/utils/message-center/interface/i-msg-meta-data.d.ts.map +0 -1
  377. package/out/utils/message-center/interface/index.d.ts +0 -3
  378. package/out/utils/message-center/interface/index.d.ts.map +0 -1
  379. /package/out/interface/{i-devtool-config → api/environment}/i-devtool-config.js +0 -0
  380. /package/out/interface/{i-environment → api/environment}/i-environment.js +0 -0
  381. /package/out/{command/interface → interface/api/environment}/index.js +0 -0
  382. /package/out/{command/interface/command/command-option.js → interface/api/global-param/i-api-context.js} +0 -0
  383. /package/out/{command/interface/command/command.js → interface/api/global-param/i-global-param.js} +0 -0
  384. /package/out/{utils/message-center/interface → interface/api/global-param}/index.js +0 -0
  385. /package/out/{command/interface/disposable/disposable.js → interface/api/ibizsys/i-api-ibizsys.js} +0 -0
  386. /package/out/interface/{i-18n/i-18n.js → api/ibizsys/i-org-data.js} +0 -0
  387. /package/out/interface/{i-add-in-changed/i-add-in-changed.js → api/ibizsys/index.js} +0 -0
  388. /package/out/interface/{i-internal-message/i-internal-message.js → api/utils/i-api-i18n.js} +0 -0
  389. /package/out/interface/{i-mark-open-data/i-mark-open-data.js → api/utils/message-center/base/i-message-all.js} +0 -0
  390. /package/out/interface/{i-portal-async-action/i-portal-async-action.js → api/utils/message-center/base/i-message-base.js} +0 -0
  391. /package/out/interface/{i-portal-message/i-portal-message.js → api/utils/message-center/base/index.js} +0 -0
  392. /package/out/interface/{org-data/org-data.js → api/utils/message-center/command/add-in-changed/i-add-in-changed.js} +0 -0
  393. /package/out/{utils/message-center/interface/i-app-data-entity.js → interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.js} +0 -0
  394. /package/out/{utils/message-center/interface/i-msg-meta-data.js → interface/api/utils/message-center/command/async-action/i-command-async-action.js} +0 -0
@@ -1,50 +1,104 @@
1
+ import { CoreConst } from '../../constant';
1
2
  /**
2
- * 设置cookie
3
- *
4
- * @static
5
- * @param {*} name 名称
6
- * @param {*} value 值
7
- * @param {*} day 过期天数
3
+ * @description 获取所有的访问数据键名称
4
+ * @returns {string[]} 包含所有访问数据键名称的数组,如果出现错误则返回空数组
5
+ */
6
+ function getAccessStoreAreakeys() {
7
+ try {
8
+ const key = CoreConst.ACCESS_STORE_AREA_KEYS;
9
+ let cookieAlls;
10
+ switch (ibiz.env.accessStoreArea) {
11
+ case 'LOCALSTORAGE':
12
+ cookieAlls = localStorage.getItem(key);
13
+ break;
14
+ case 'SESSIONSTORAGE':
15
+ cookieAlls = sessionStorage.getItem(key);
16
+ break;
17
+ default:
18
+ break;
19
+ }
20
+ return JSON.parse(cookieAlls || '[]');
21
+ }
22
+ catch (error) {
23
+ ibiz.log.error(error);
24
+ return [];
25
+ }
26
+ }
27
+ /**
28
+ * @description 将新的访问数据键名称添加到已有的名称列表中
29
+ * @param {string} name 要添加的访问数据键名称
30
+ */
31
+ function setAccessStoreAreakeys(name) {
32
+ try {
33
+ const cookieAlls = [
34
+ ...new Set(getAccessStoreAreakeys().concat([name])),
35
+ ];
36
+ const key = CoreConst.ACCESS_STORE_AREA_KEYS;
37
+ switch (ibiz.env.accessStoreArea) {
38
+ case 'LOCALSTORAGE':
39
+ return localStorage.setItem(key, JSON.stringify(cookieAlls));
40
+ case 'SESSIONSTORAGE':
41
+ return sessionStorage.setItem(key, JSON.stringify(cookieAlls));
42
+ default:
43
+ break;
44
+ }
45
+ }
46
+ catch (error) {
47
+ ibiz.log.error(error);
48
+ }
49
+ }
50
+ /**
51
+ * @description 设置cookie
52
+ * @export
53
+ * @param {string} name cookie名称
54
+ * @param {string} value cookie值
55
+ * @param {number} [day=0] 过期天数
8
56
  * @param {boolean} [isDomain=false] 是否设置在主域下
9
57
  * @param {string} [path='/'] 默认归属路径
10
58
  * @param {string} [childDoMain=''] 子域,如果外部有传递,则需把cookie数据设置到传入子域上
11
- * @memberof Util
12
59
  */
13
60
  export function setCookie(name, value, day = 0, isDomain = false, path = '/', childDoMain = '') {
14
61
  let domain = '';
15
- // 设置cookie到主域下
16
- if (isDomain) {
17
- // 是否为ip正则
18
- const regExpr = /^(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)$/;
19
- // 为ip时忽略
20
- if (!regExpr.test(window.location.hostname)) {
21
- const host = window.location.hostname;
22
- if (host.indexOf('.') !== host.lastIndexOf('.')) {
23
- domain = `;domain=${host.substring(host.indexOf('.'), host.length)}`;
62
+ setAccessStoreAreakeys(name);
63
+ switch (ibiz.env.accessStoreArea) {
64
+ case 'LOCALSTORAGE':
65
+ return localStorage.setItem(name, value);
66
+ case 'SESSIONSTORAGE':
67
+ return sessionStorage.setItem(name, value);
68
+ default:
69
+ // 设置cookie到主域下
70
+ if (isDomain) {
71
+ // 是否为ip正则
72
+ const regExpr = /^(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)$/;
73
+ // 为ip时忽略
74
+ if (!regExpr.test(window.location.hostname)) {
75
+ const host = window.location.hostname;
76
+ if (host.indexOf('.') !== host.lastIndexOf('.')) {
77
+ domain = `;domain=${host.substring(host.indexOf('.'), host.length)}`;
78
+ }
79
+ }
24
80
  }
25
- }
26
- }
27
- else if (childDoMain) {
28
- domain = `;domain=${childDoMain}`;
29
- }
30
- // 当设置的时间等于0时,不设置expires属性,cookie在浏览器关闭后删除
31
- if (day !== 0) {
32
- const expires = day * 24 * 60 * 60 * 1000;
33
- const date = new Date(new Date().getTime() + expires);
34
- document.cookie = `${name}=${escape(value)};path=${path};expires=${date.toUTCString()}${domain}`;
35
- }
36
- else {
37
- document.cookie = `${name}=${escape(value)};path=${path}${domain}`;
81
+ else if (childDoMain) {
82
+ domain = `;domain=${childDoMain}`;
83
+ }
84
+ // 当设置的时间等于0时,不设置expires属性,cookie在浏览器关闭后删除
85
+ if (day !== 0) {
86
+ const expires = day * 24 * 60 * 60 * 1000;
87
+ const date = new Date(new Date().getTime() + expires);
88
+ document.cookie = `${name}=${escape(value)};path=${path};expires=${date.toUTCString()}${domain}`;
89
+ }
90
+ else {
91
+ document.cookie = `${name}=${escape(value)};path=${path}${domain}`;
92
+ }
93
+ break;
38
94
  }
39
95
  }
40
96
  /**
41
- * 设置应用cookie
42
- *
43
- * @static
44
- * @param {*} name 名称
45
- * @param {*} value
46
- * @param {*} day 过期天数
47
- * @memberof Util
97
+ * @description 设置应用cookie
98
+ * @export
99
+ * @param {string} name 名称
100
+ * @param {string} value
101
+ * @param {number} [day=0] 过期天数
48
102
  */
49
103
  export function setAppCookie(name, value, day = 0) {
50
104
  if (ibiz.env.cookieDomain &&
@@ -56,11 +110,9 @@ export function setAppCookie(name, value, day = 0) {
56
110
  }
57
111
  }
58
112
  /**
59
- * 清除应用cookie
60
- *
61
- * @static
113
+ * @description 清除应用cookie
114
+ * @export
62
115
  * @param {string} cookieName
63
- * @memberof Util
64
116
  */
65
117
  export function clearAppCookie(cookieName) {
66
118
  if (ibiz.env.cookieDomain &&
@@ -72,32 +124,51 @@ export function clearAppCookie(cookieName) {
72
124
  }
73
125
  }
74
126
  /**
75
- * 获取cookie
76
- *
77
- * @static
127
+ * @description 获取cookie
128
+ * @export
78
129
  * @param {string} name
79
- * @return {*} {*}
80
- * @memberof Util
130
+ * @returns {*} {(string | null)}
81
131
  */
82
132
  export function getAppCookie(name) {
83
133
  const reg = new RegExp(`(^| )${name}=([^;]*)(;|$)`);
84
134
  const arr = document.cookie.match(reg);
85
- if (arr && arr.length > 1) {
86
- return unescape(arr[2]);
135
+ switch (ibiz.env.accessStoreArea) {
136
+ case 'LOCALSTORAGE':
137
+ return localStorage.getItem(name);
138
+ case 'SESSIONSTORAGE':
139
+ return sessionStorage.getItem(name);
140
+ default:
141
+ if (arr && arr.length > 1) {
142
+ return unescape(arr[2]);
143
+ }
144
+ return null;
87
145
  }
88
- return null;
89
146
  }
90
147
  /**
91
- * 重置应用cookie
92
- *
93
- * @author tony001
94
- * @date 2025-01-07 16:01:18
148
+ * @description 重置应用cookie
95
149
  * @export
96
150
  */
97
151
  export function resetAppCookie() {
98
152
  const cookies = document.cookie.split(';');
99
- for (const cookie of cookies) {
100
- const [cookieName, cookieValue] = cookie.split('=');
101
- document.cookie = `${cookieName}=${cookieValue};expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;domain=${window.location.host}`;
153
+ const cookieAlls = getAccessStoreAreakeys().concat([
154
+ CoreConst.ACCESS_STORE_AREA_KEYS,
155
+ ]);
156
+ switch (ibiz.env.accessStoreArea) {
157
+ case 'LOCALSTORAGE':
158
+ for (const name of cookieAlls) {
159
+ localStorage.removeItem(name);
160
+ }
161
+ break;
162
+ case 'SESSIONSTORAGE':
163
+ for (const name of cookieAlls) {
164
+ sessionStorage.removeItem(name);
165
+ }
166
+ break;
167
+ default:
168
+ for (const cookie of cookies) {
169
+ const [cookieName, cookieValue] = cookie.split('=');
170
+ document.cookie = `${cookieName}=${cookieValue};expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;domain=${window.location.host}`;
171
+ }
172
+ break;
102
173
  }
103
174
  }
@@ -1,46 +1,40 @@
1
1
  /**
2
- * 数据类型转换识别工具类
3
- * @author lxm
4
- * @date 2023-08-25 04:33:49
2
+ * @description 数据类型转换识别工具类
5
3
  * @export
6
4
  * @class DataTypes
7
5
  */
8
6
  export declare class DataTypes {
9
7
  /**
10
- * 数字类型映射字符串类型
11
- * @author lxm
12
- * @date 2023-08-25 04:49:52
8
+ * @description 数字类型映射字符串类型
13
9
  * @static
14
10
  * @type {{ [p: number]: string }}
11
+ * @memberof DataTypes
15
12
  */
16
13
  static readonly typeMap: {
17
14
  [p: number]: string;
18
15
  };
19
16
  /**
20
- * 是否是数值类型
21
- * @author lxm
22
- * @date 2023-08-25 04:53:30
17
+ * @description 是否是数值类型
23
18
  * @static
24
- * @param {number} dataType 数据类型(数值)
25
- * @return {*} {boolean}
19
+ * @param {number} dataType
20
+ * @returns {*} {boolean}
21
+ * @memberof DataTypes
26
22
  */
27
23
  static isNumber(dataType: number): boolean;
28
24
  /**
29
- * 是否是日期类型数据
30
- *
25
+ * @description 是否是日期类型数据
31
26
  * @static
32
27
  * @param {number} dataType
33
- * @return {*}
28
+ * @returns {*} {boolean}
34
29
  * @memberof DataTypes
35
30
  */
36
31
  static isDate(dataType: number): boolean;
37
32
  /**
38
- * 获取字符串数据类型
39
- * @author lxm
40
- * @date 2023-08-25 04:53:58
33
+ * @description 获取字符串数据类型
41
34
  * @static
42
- * @param {number} dataType 数据类型(数值)
43
- * @return {*} {string}
35
+ * @param {number} dataType
36
+ * @returns {*} {string}
37
+ * @memberof DataTypes
44
38
  */
45
39
  static toString(dataType: number): string;
46
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"data-types.d.ts","sourceRoot":"","sources":["../../../src/utils/data-type/data-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,qBAAa,SAAS;IACpB;;;;;;OAMG;IACH,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CA+B9C;IAEF;;;;;;;OAOG;WACW,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAkBjD;;;;;;;OAOG;WACW,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAK/C;;;;;;;OAOG;WACW,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;CAGjD"}
1
+ {"version":3,"file":"data-types.d.ts","sourceRoot":"","sources":["../../../src/utils/data-type/data-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,SAAS;IACpB;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CA+B9C;IAEF;;;;;;OAMG;WACW,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAkBjD;;;;;;OAMG;WACW,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAK/C;;;;;;OAMG;WACW,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;CAGjD"}
@@ -1,18 +1,15 @@
1
1
  /**
2
- * 数据类型转换识别工具类
3
- * @author lxm
4
- * @date 2023-08-25 04:33:49
2
+ * @description 数据类型转换识别工具类
5
3
  * @export
6
4
  * @class DataTypes
7
5
  */
8
6
  export class DataTypes {
9
7
  /**
10
- * 是否是数值类型
11
- * @author lxm
12
- * @date 2023-08-25 04:53:30
8
+ * @description 是否是数值类型
13
9
  * @static
14
- * @param {number} dataType 数据类型(数值)
15
- * @return {*} {boolean}
10
+ * @param {number} dataType
11
+ * @returns {*} {boolean}
12
+ * @memberof DataTypes
16
13
  */
17
14
  static isNumber(dataType) {
18
15
  const numberTypes = [
@@ -32,11 +29,10 @@ export class DataTypes {
32
29
  return numberTypes.includes(this.toString(dataType));
33
30
  }
34
31
  /**
35
- * 是否是日期类型数据
36
- *
32
+ * @description 是否是日期类型数据
37
33
  * @static
38
34
  * @param {number} dataType
39
- * @return {*}
35
+ * @returns {*} {boolean}
40
36
  * @memberof DataTypes
41
37
  */
42
38
  static isDate(dataType) {
@@ -44,23 +40,21 @@ export class DataTypes {
44
40
  return dateTypes.includes(this.toString(dataType));
45
41
  }
46
42
  /**
47
- * 获取字符串数据类型
48
- * @author lxm
49
- * @date 2023-08-25 04:53:58
43
+ * @description 获取字符串数据类型
50
44
  * @static
51
- * @param {number} dataType 数据类型(数值)
52
- * @return {*} {string}
45
+ * @param {number} dataType
46
+ * @returns {*} {string}
47
+ * @memberof DataTypes
53
48
  */
54
49
  static toString(dataType) {
55
50
  return this.typeMap[dataType];
56
51
  }
57
52
  }
58
53
  /**
59
- * 数字类型映射字符串类型
60
- * @author lxm
61
- * @date 2023-08-25 04:49:52
54
+ * @description 数字类型映射字符串类型
62
55
  * @static
63
56
  * @type {{ [p: number]: string }}
57
+ * @memberof DataTypes
64
58
  */
65
59
  DataTypes.typeMap = {
66
60
  0: 'UNKNOWN',
@@ -1,31 +1,22 @@
1
1
  /**
2
- * 根据文件名称计算Mime类型
3
- *
4
- * @author lxm
5
- * @date 2022-11-16 22:11:02
2
+ * @description 根据文件名称计算Mime类型
6
3
  * @export
7
4
  * @param {string} fileName
8
- * @returns {*}
5
+ * @returns {*} {string}
9
6
  */
10
7
  export declare function calcMimeByFileName(fileName: string): string;
11
8
  /**
12
- * 判断是否是图片格式
13
- *
14
- * @author lxm
15
- * @date 2022-11-21 13:11:23
9
+ * @description 判断是否是图片格式
16
10
  * @export
17
11
  * @param {string} fileName
18
12
  * @returns {*} {boolean}
19
13
  */
20
14
  export declare function isImage(fileName: string): boolean;
21
15
  /**
22
- * 纯JS触发下载文件
23
- *
24
- * @author lxm
25
- * @date 2022-11-16 22:11:24
16
+ * @description 纯JS触发下载文件
26
17
  * @export
27
- * @param {Blob} file 文件流Blob
28
- * @param {string} fileName 文件名称
18
+ * @param {Blob} file
19
+ * @param {string} fileName
29
20
  */
30
21
  export declare function downloadFileFromBlob(file: Blob, fileName: string): void;
31
22
  //# sourceMappingURL=download-file.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"download-file.d.ts","sourceRoot":"","sources":["../../../src/utils/download-file/download-file.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAmD3D;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOjD;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAmBvE"}
1
+ {"version":3,"file":"download-file.d.ts","sourceRoot":"","sources":["../../../src/utils/download-file/download-file.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAmD3D;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOjD;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAmBvE"}
@@ -1,11 +1,8 @@
1
1
  /**
2
- * 根据文件名称计算Mime类型
3
- *
4
- * @author lxm
5
- * @date 2022-11-16 22:11:02
2
+ * @description 根据文件名称计算Mime类型
6
3
  * @export
7
4
  * @param {string} fileName
8
- * @returns {*}
5
+ * @returns {*} {string}
9
6
  */
10
7
  export function calcMimeByFileName(fileName) {
11
8
  const ext = fileName.includes('.') ? fileName.split('.').pop() : '';
@@ -60,10 +57,7 @@ export function calcMimeByFileName(fileName) {
60
57
  return mime;
61
58
  }
62
59
  /**
63
- * 判断是否是图片格式
64
- *
65
- * @author lxm
66
- * @date 2022-11-21 13:11:23
60
+ * @description 判断是否是图片格式
67
61
  * @export
68
62
  * @param {string} fileName
69
63
  * @returns {*} {boolean}
@@ -77,13 +71,10 @@ export function isImage(fileName) {
77
71
  return imageTypes.includes(ext);
78
72
  }
79
73
  /**
80
- * 纯JS触发下载文件
81
- *
82
- * @author lxm
83
- * @date 2022-11-16 22:11:24
74
+ * @description 纯JS触发下载文件
84
75
  * @export
85
- * @param {Blob} file 文件流Blob
86
- * @param {string} fileName 文件名称
76
+ * @param {Blob} file
77
+ * @param {string} fileName
87
78
  */
88
79
  export function downloadFileFromBlob(file, fileName) {
89
80
  // 获取文件名
@@ -1,30 +1,22 @@
1
1
  /**
2
- * 计算event的composedPath返回事件路径(兼容了IE)
3
- *
4
- * @author lxm
5
- * @date 2022-10-28 17:10:14
2
+ * @description 计算event的composedPath返回事件路径(兼容了IE)
3
+ * @export
6
4
  * @param {MouseEvent} event
7
- * @returns {*}
5
+ * @returns {*} {((EventTarget | null)[])}
8
6
  */
9
7
  export declare function eventPath(event: MouseEvent): (EventTarget | null)[];
10
8
  /**
11
- * 监听JS原生事件,返回cleanup回调,调用后删除该监听
12
- *
13
- * @author lxm
14
- * @date 2022-10-28 18:10:36
9
+ * @description 监听JS原生事件,返回cleanup回调,调用后删除该监听
15
10
  * @export
16
11
  * @param {EventTarget} target 监听对象
17
12
  * @param {string} eventName 监听事件名称
18
13
  * @param {(..._args: any[]) => any} listener 监听回调
19
- * @param {AddEventListenerOptions} options 额外参数
14
+ * @param {AddEventListenerOptions} [options={}] 额外参数
20
15
  * @returns {*} {() => void}
21
16
  */
22
17
  export declare function listenJSEvent(target: EventTarget, eventName: string, listener: (..._args: any[]) => any, options?: AddEventListenerOptions): () => void;
23
18
  /**
24
- * event是否是在目标元素内部触发的
25
- *
26
- * @author lxm
27
- * @date 2022-10-31 11:10:49
19
+ * @description event是否是在目标元素内部触发的
28
20
  * @export
29
21
  * @param {MouseEvent} event 原生事件
30
22
  * @param {HTMLElement} el 目标元素
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/utils/event/event.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,CAmBnE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,KAAK,GAAG,EAClC,OAAO,GAAE,uBAA4B,GACpC,MAAM,IAAI,CAYZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAEzE"}
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/utils/event/event.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,CAmBnE;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,KAAK,GAAG,EAClC,OAAO,GAAE,uBAA4B,GACpC,MAAM,IAAI,CAYZ;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAEzE"}
@@ -1,12 +1,10 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  import { NOOP } from '../../constant';
3
3
  /**
4
- * 计算event的composedPath返回事件路径(兼容了IE)
5
- *
6
- * @author lxm
7
- * @date 2022-10-28 17:10:14
4
+ * @description 计算event的composedPath返回事件路径(兼容了IE)
5
+ * @export
8
6
  * @param {MouseEvent} event
9
- * @returns {*}
7
+ * @returns {*} {((EventTarget | null)[])}
10
8
  */
11
9
  export function eventPath(event) {
12
10
  const path = ((event.composedPath && event.composedPath()) ||
@@ -23,15 +21,12 @@ export function eventPath(event) {
23
21
  return [event.target].concat(getParents(event.target));
24
22
  }
25
23
  /**
26
- * 监听JS原生事件,返回cleanup回调,调用后删除该监听
27
- *
28
- * @author lxm
29
- * @date 2022-10-28 18:10:36
24
+ * @description 监听JS原生事件,返回cleanup回调,调用后删除该监听
30
25
  * @export
31
26
  * @param {EventTarget} target 监听对象
32
27
  * @param {string} eventName 监听事件名称
33
28
  * @param {(..._args: any[]) => any} listener 监听回调
34
- * @param {AddEventListenerOptions} options 额外参数
29
+ * @param {AddEventListenerOptions} [options={}] 额外参数
35
30
  * @returns {*} {() => void}
36
31
  */
37
32
  export function listenJSEvent(target, eventName, listener, options = {}) {
@@ -46,10 +41,7 @@ export function listenJSEvent(target, eventName, listener, options = {}) {
46
41
  };
47
42
  }
48
43
  /**
49
- * event是否是在目标元素内部触发的
50
- *
51
- * @author lxm
52
- * @date 2022-10-31 11:10:49
44
+ * @description event是否是在目标元素内部触发的
53
45
  * @export
54
46
  * @param {MouseEvent} event 原生事件
55
47
  * @param {HTMLElement} el 目标元素
@@ -1,10 +1,7 @@
1
1
  /**
2
- * 历史项
3
- *
4
- * @author chitanda
5
- * @date 2023-12-28 21:12:38
2
+ * @description 历史项
6
3
  * @export
7
- * @class History
4
+ * @class HistoryItem
8
5
  * @template E
9
6
  */
10
7
  export declare class HistoryItem<E> {
@@ -14,11 +11,9 @@ export declare class HistoryItem<E> {
14
11
  data: E;
15
12
  constructor(data?: unknown);
16
13
  /**
17
- * 克隆整个历史链
18
- *
19
- * @author chitanda
20
- * @date 2023-12-28 23:12:56
21
- * @return {*} {HistoryItem<E>}
14
+ * @description 克隆整个历史链
15
+ * @returns {*} {HistoryItem<E>}
16
+ * @memberof HistoryItem
22
17
  */
23
18
  clone(): HistoryItem<E>;
24
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"history-item.d.ts","sourceRoot":"","sources":["../../../src/utils/history-list/history-item.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,qBAAa,WAAW,CAAC,CAAC;IAExB,MAAM,CAAC,QAAQ,CAAC,SAAS,mBAAmC;IAE5D,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAEtB,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAEtB,IAAI,EAAE,CAAC,CAAC;gBAEI,IAAI,GAAE,OAAY;IAM9B;;;;;;OAMG;IACH,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC;CAWxB"}
1
+ {"version":3,"file":"history-item.d.ts","sourceRoot":"","sources":["../../../src/utils/history-list/history-item.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,qBAAa,WAAW,CAAC,CAAC;IAExB,MAAM,CAAC,QAAQ,CAAC,SAAS,mBAAmC;IAE5D,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAEtB,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAEtB,IAAI,EAAE,CAAC,CAAC;gBAEI,IAAI,GAAE,OAAY;IAM9B;;;;OAIG;IACH,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC;CAWxB"}
@@ -1,11 +1,8 @@
1
1
  import { RuntimeError } from '../../error';
2
2
  /**
3
- * 历史项
4
- *
5
- * @author chitanda
6
- * @date 2023-12-28 21:12:38
3
+ * @description 历史项
7
4
  * @export
8
- * @class History
5
+ * @class HistoryItem
9
6
  * @template E
10
7
  */
11
8
  export class HistoryItem {
@@ -15,11 +12,9 @@ export class HistoryItem {
15
12
  this._next = HistoryItem.Undefined;
16
13
  }
17
14
  /**
18
- * 克隆整个历史链
19
- *
20
- * @author chitanda
21
- * @date 2023-12-28 23:12:56
22
- * @return {*} {HistoryItem<E>}
15
+ * @description 克隆整个历史链
16
+ * @returns {*} {HistoryItem<E>}
17
+ * @memberof HistoryItem
23
18
  */
24
19
  clone() {
25
20
  // const history = new HistoryItem<E>(clone(this.data));