@ibiz-template/runtime 0.0.1-alpha.9 → 0.0.1-beta.130

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 (286) hide show
  1. package/dist/system/index.system.js +1 -0
  2. package/out/command/app/app-func/app-func.d.ts +10 -11
  3. package/out/command/app/app-func/app-func.d.ts.map +1 -1
  4. package/out/command/app/app-func/app-func.js +22 -23
  5. package/out/command/app/open-app-view/open-app-view.d.ts +12 -24
  6. package/out/command/app/open-app-view/open-app-view.d.ts.map +1 -1
  7. package/out/command/app/open-app-view/open-app-view.js +12 -24
  8. package/out/config/global-config.d.ts +18 -0
  9. package/out/config/global-config.d.ts.map +1 -0
  10. package/out/config/global-config.js +18 -0
  11. package/out/index.d.ts +4 -1
  12. package/out/index.d.ts.map +1 -1
  13. package/out/index.js +4 -1
  14. package/out/install.d.ts.map +1 -1
  15. package/out/install.js +11 -2
  16. package/out/interface/i-drawer-options/i-drawer-options.d.ts +29 -0
  17. package/out/interface/i-drawer-options/i-drawer-options.d.ts.map +1 -0
  18. package/out/interface/i-global-config/i-global-config.d.ts +62 -0
  19. package/out/interface/i-global-config/i-global-config.d.ts.map +1 -0
  20. package/out/interface/i-modal/i-modal.d.ts +7 -0
  21. package/out/interface/i-modal/i-modal.d.ts.map +1 -1
  22. package/out/interface/i-modal-data/i-modal-data.d.ts +1 -1
  23. package/out/interface/i-modal-data/i-modal-data.d.ts.map +1 -1
  24. package/out/interface/i-modal-options/i-modal-options.d.ts +43 -0
  25. package/out/interface/i-modal-options/i-modal-options.d.ts.map +1 -0
  26. package/out/interface/i-modal-options/i-modal-options.js +1 -0
  27. package/out/interface/i-plugin-factory/i-plugin-factory.d.ts +66 -0
  28. package/out/interface/i-plugin-factory/i-plugin-factory.d.ts.map +1 -0
  29. package/out/interface/i-plugin-factory/i-plugin-factory.js +1 -0
  30. package/out/interface/i-plugin-item/i-plugin-item.d.ts +28 -0
  31. package/out/interface/i-plugin-item/i-plugin-item.d.ts.map +1 -0
  32. package/out/interface/i-plugin-item/i-plugin-item.js +1 -0
  33. package/out/interface/i-popover-options/i-popover-options.d.ts +84 -0
  34. package/out/interface/i-popover-options/i-popover-options.d.ts.map +1 -0
  35. package/out/interface/i-popover-options/i-popover-options.js +1 -0
  36. package/out/interface/i-ui-action-handler/i-ui-action-handler.d.ts +26 -0
  37. package/out/interface/i-ui-action-handler/i-ui-action-handler.d.ts.map +1 -0
  38. package/out/interface/i-ui-action-handler/i-ui-action-handler.js +1 -0
  39. package/out/interface/i-ui-action-result/i-ui-action-result.d.ts +17 -0
  40. package/out/interface/i-ui-action-result/i-ui-action-result.d.ts.map +1 -1
  41. package/out/interface/i-ui-logic-params/i-ui-logic-params.d.ts +31 -0
  42. package/out/interface/i-ui-logic-params/i-ui-logic-params.d.ts.map +1 -0
  43. package/out/interface/i-ui-logic-params/i-ui-logic-params.js +1 -0
  44. package/out/interface/index.d.ts +11 -3
  45. package/out/interface/index.d.ts.map +1 -1
  46. package/out/interface/index.js +3 -3
  47. package/out/interface/logic-scheduler/i-scheduler-logic.d.ts +35 -0
  48. package/out/interface/logic-scheduler/i-scheduler-logic.d.ts.map +1 -0
  49. package/out/interface/logic-scheduler/i-scheduler-logic.js +1 -0
  50. package/out/interface/logic-scheduler/i-trigger-match-params.d.ts +17 -0
  51. package/out/interface/logic-scheduler/i-trigger-match-params.d.ts.map +1 -0
  52. package/out/interface/logic-scheduler/i-trigger-match-params.js +1 -0
  53. package/out/interface/logic-scheduler/index.d.ts +3 -0
  54. package/out/interface/logic-scheduler/index.d.ts.map +1 -0
  55. package/out/interface/logic-scheduler/index.js +1 -0
  56. package/out/interface/provider/i-ui-action-provider.d.ts +20 -0
  57. package/out/interface/provider/i-ui-action-provider.d.ts.map +1 -0
  58. package/out/interface/provider/i-ui-action-provider.js +1 -0
  59. package/out/interface/provider/index.d.ts +2 -0
  60. package/out/interface/provider/index.d.ts.map +1 -0
  61. package/out/interface/provider/index.js +1 -0
  62. package/out/interface/register/i-register.d.ts +8 -1
  63. package/out/interface/register/i-register.d.ts.map +1 -1
  64. package/out/interface/register/i-ui-action-register.d.ts +15 -0
  65. package/out/interface/register/i-ui-action-register.d.ts.map +1 -0
  66. package/out/interface/register/i-ui-action-register.js +1 -0
  67. package/out/interface/register/index.d.ts +3 -0
  68. package/out/interface/register/index.d.ts.map +1 -0
  69. package/out/interface/register/index.js +2 -0
  70. package/out/interface/util/i-loading-util/i-loading-util.d.ts +14 -0
  71. package/out/interface/util/i-loading-util/i-loading-util.d.ts.map +1 -1
  72. package/out/interface/util/i-modal-util/i-modal-util.d.ts +8 -0
  73. package/out/interface/util/i-modal-util/i-modal-util.d.ts.map +1 -1
  74. package/out/interface/util/i-open-view-util/i-open-view-util.d.ts +10 -11
  75. package/out/interface/util/i-open-view-util/i-open-view-util.d.ts.map +1 -1
  76. package/out/interface/util/i-overlay-container/i-overlay-container.d.ts +37 -0
  77. package/out/interface/util/i-overlay-container/i-overlay-container.d.ts.map +1 -0
  78. package/out/interface/util/i-overlay-container/i-overlay-container.js +1 -0
  79. package/out/interface/util/i-overlay-controller/i-overlay-controller.d.ts +86 -0
  80. package/out/interface/util/i-overlay-controller/i-overlay-controller.d.ts.map +1 -0
  81. package/out/interface/util/i-overlay-controller/i-overlay-controller.js +1 -0
  82. package/out/interface/util/i-overlay-popover-container/i-overlay-popover-container.d.ts +23 -0
  83. package/out/interface/util/i-overlay-popover-container/i-overlay-popover-container.d.ts.map +1 -0
  84. package/out/interface/util/i-overlay-popover-container/i-overlay-popover-container.js +1 -0
  85. package/out/interface/util/index.d.ts +3 -0
  86. package/out/interface/util/index.d.ts.map +1 -1
  87. package/out/logic-scheduler/executor/logic-executor-factory.d.ts +34 -0
  88. package/out/logic-scheduler/executor/logic-executor-factory.d.ts.map +1 -0
  89. package/out/logic-scheduler/executor/logic-executor-factory.js +42 -0
  90. package/out/logic-scheduler/executor/logic-executor.d.ts +32 -0
  91. package/out/logic-scheduler/executor/logic-executor.d.ts.map +1 -0
  92. package/out/logic-scheduler/executor/logic-executor.js +30 -0
  93. package/out/logic-scheduler/executor/script-executor.d.ts +39 -0
  94. package/out/logic-scheduler/executor/script-executor.d.ts.map +1 -0
  95. package/out/logic-scheduler/executor/script-executor.js +53 -0
  96. package/out/logic-scheduler/index.d.ts +12 -0
  97. package/out/logic-scheduler/index.d.ts.map +1 -0
  98. package/out/logic-scheduler/index.js +17 -0
  99. package/out/logic-scheduler/logic-scheduler-center.d.ts +45 -0
  100. package/out/logic-scheduler/logic-scheduler-center.d.ts.map +1 -0
  101. package/out/logic-scheduler/logic-scheduler-center.js +49 -0
  102. package/out/logic-scheduler/scheduler/control-logic-scheduler.d.ts +14 -0
  103. package/out/logic-scheduler/scheduler/control-logic-scheduler.d.ts.map +1 -0
  104. package/out/logic-scheduler/scheduler/control-logic-scheduler.js +16 -0
  105. package/out/logic-scheduler/scheduler/logic-scheduler.d.ts +105 -0
  106. package/out/logic-scheduler/scheduler/logic-scheduler.d.ts.map +1 -0
  107. package/out/logic-scheduler/scheduler/logic-scheduler.js +148 -0
  108. package/out/logic-scheduler/scheduler/view-logic-scheduler.d.ts +14 -0
  109. package/out/logic-scheduler/scheduler/view-logic-scheduler.d.ts.map +1 -0
  110. package/out/logic-scheduler/scheduler/view-logic-scheduler.js +14 -0
  111. package/out/logic-scheduler/trigger/item-dyna-logic-trigger.d.ts +12 -0
  112. package/out/logic-scheduler/trigger/item-dyna-logic-trigger.d.ts.map +1 -0
  113. package/out/logic-scheduler/trigger/item-dyna-logic-trigger.js +26 -0
  114. package/out/logic-scheduler/trigger/logic-trigger-factory.d.ts +34 -0
  115. package/out/logic-scheduler/trigger/logic-trigger-factory.d.ts.map +1 -0
  116. package/out/logic-scheduler/trigger/logic-trigger-factory.js +42 -0
  117. package/out/logic-scheduler/trigger/logic-trigger.d.ts +55 -0
  118. package/out/logic-scheduler/trigger/logic-trigger.d.ts.map +1 -0
  119. package/out/logic-scheduler/trigger/logic-trigger.js +52 -0
  120. package/out/plugin/index.d.ts +3 -0
  121. package/out/plugin/index.d.ts.map +1 -0
  122. package/out/plugin/index.js +2 -0
  123. package/out/plugin/plugin-static-resource/plugin-static-resource.d.ts +55 -0
  124. package/out/plugin/plugin-static-resource/plugin-static-resource.d.ts.map +1 -0
  125. package/out/plugin/plugin-static-resource/plugin-static-resource.js +67 -0
  126. package/out/plugin/remote-plugin-item/remote-plugin-item.d.ts +111 -0
  127. package/out/plugin/remote-plugin-item/remote-plugin-item.d.ts.map +1 -0
  128. package/out/plugin/remote-plugin-item/remote-plugin-item.js +24 -0
  129. package/out/provider/index.d.ts +2 -0
  130. package/out/provider/index.d.ts.map +1 -0
  131. package/out/provider/index.js +1 -0
  132. package/out/provider/ui-action/backend-ui-action-provider.d.ts +15 -0
  133. package/out/provider/ui-action/backend-ui-action-provider.d.ts.map +1 -0
  134. package/out/provider/ui-action/backend-ui-action-provider.js +18 -0
  135. package/out/provider/ui-action/common-sys-ui-action-provider.d.ts +15 -0
  136. package/out/provider/ui-action/common-sys-ui-action-provider.d.ts.map +1 -0
  137. package/out/provider/ui-action/common-sys-ui-action-provider.js +18 -0
  138. package/out/provider/ui-action/front-ui-action-provider.d.ts +15 -0
  139. package/out/provider/ui-action/front-ui-action-provider.d.ts.map +1 -0
  140. package/out/provider/ui-action/front-ui-action-provider.js +18 -0
  141. package/out/provider/ui-action/index.d.ts +14 -0
  142. package/out/provider/ui-action/index.d.ts.map +1 -0
  143. package/out/provider/ui-action/index.js +48 -0
  144. package/out/provider/ui-action/wf-withdraw-ui-action-provider.d.ts +15 -0
  145. package/out/provider/ui-action/wf-withdraw-ui-action-provider.d.ts.map +1 -0
  146. package/out/provider/ui-action/wf-withdraw-ui-action-provider.js +18 -0
  147. package/out/register/index.d.ts +4 -0
  148. package/out/register/index.d.ts.map +1 -0
  149. package/out/register/index.js +3 -0
  150. package/out/register/register-base.d.ts +18 -0
  151. package/out/register/register-base.d.ts.map +1 -0
  152. package/out/register/register-base.js +24 -0
  153. package/out/register/register-center.d.ts +20 -0
  154. package/out/register/register-center.d.ts.map +1 -0
  155. package/out/register/register-center.js +21 -0
  156. package/out/register/ui-action-register.d.ts +17 -0
  157. package/out/register/ui-action-register.d.ts.map +1 -0
  158. package/out/register/ui-action-register.js +41 -0
  159. package/out/types.d.ts +35 -3
  160. package/out/types.d.ts.map +1 -1
  161. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts +0 -59
  162. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts.map +1 -1
  163. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.js +3 -240
  164. package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.d.ts +16 -0
  165. package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.d.ts.map +1 -0
  166. package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.js +31 -0
  167. package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.d.ts +16 -0
  168. package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.d.ts.map +1 -0
  169. package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.js +103 -0
  170. package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.d.ts +16 -0
  171. package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.d.ts.map +1 -0
  172. package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.js +47 -0
  173. package/out/utils/app-de-ui-action-util/handler/index.d.ts +6 -0
  174. package/out/utils/app-de-ui-action-util/handler/index.d.ts.map +1 -0
  175. package/out/utils/app-de-ui-action-util/handler/index.js +5 -0
  176. package/out/utils/app-de-ui-action-util/handler/ui-action-handler.d.ts +72 -0
  177. package/out/utils/app-de-ui-action-util/handler/ui-action-handler.d.ts.map +1 -0
  178. package/out/utils/app-de-ui-action-util/handler/ui-action-handler.js +166 -0
  179. package/out/utils/app-de-ui-action-util/handler/wf-withdraw-handler.d.ts +16 -0
  180. package/out/utils/app-de-ui-action-util/handler/wf-withdraw-handler.d.ts.map +1 -0
  181. package/out/utils/app-de-ui-action-util/handler/wf-withdraw-handler.js +27 -0
  182. package/out/utils/app-de-ui-action-util/index.d.ts +3 -0
  183. package/out/utils/app-de-ui-action-util/index.d.ts.map +1 -0
  184. package/out/utils/app-de-ui-action-util/index.js +2 -0
  185. package/out/utils/index.d.ts +4 -1
  186. package/out/utils/index.d.ts.map +1 -1
  187. package/out/utils/index.js +4 -1
  188. package/out/utils/nav-params/calc-nav-params.d.ts +29 -0
  189. package/out/utils/nav-params/calc-nav-params.d.ts.map +1 -0
  190. package/out/utils/nav-params/calc-nav-params.js +34 -0
  191. package/out/utils/nav-params/nav-params.d.ts +20 -1
  192. package/out/utils/nav-params/nav-params.d.ts.map +1 -1
  193. package/out/utils/nav-params/nav-params.js +58 -4
  194. package/out/utils/open-redirect-view/open-redirect-view.d.ts +54 -0
  195. package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -0
  196. package/out/utils/open-redirect-view/open-redirect-view.js +232 -0
  197. package/out/utils/wf-helper/wf-helper.d.ts +9 -0
  198. package/out/utils/wf-helper/wf-helper.d.ts.map +1 -0
  199. package/out/utils/wf-helper/wf-helper.js +14 -0
  200. package/out/view-logic/view-logic.d.ts.map +1 -1
  201. package/out/view-logic/view-logic.js +111 -32
  202. package/package.json +27 -16
  203. package/src/command/app/app-func/app-func.ts +27 -27
  204. package/src/command/app/open-app-view/open-app-view.ts +24 -41
  205. package/src/config/global-config.ts +22 -0
  206. package/src/index.ts +4 -1
  207. package/src/install.ts +11 -2
  208. package/src/interface/i-drawer-options/i-drawer-options.ts +28 -0
  209. package/src/interface/i-global-config/i-global-config.ts +65 -0
  210. package/src/interface/i-modal/i-modal.ts +8 -0
  211. package/src/interface/i-modal-data/i-modal-data.ts +1 -1
  212. package/src/interface/i-modal-options/i-modal-options.ts +44 -0
  213. package/src/interface/i-plugin-factory/i-plugin-factory.ts +66 -0
  214. package/src/interface/i-plugin-item/i-plugin-item.ts +27 -0
  215. package/src/interface/i-popover-options/i-popover-options.ts +85 -0
  216. package/src/interface/i-ui-action-handler/i-ui-action-handler.ts +32 -0
  217. package/src/interface/i-ui-action-result/i-ui-action-result.ts +20 -0
  218. package/src/interface/i-ui-logic-params/i-ui-logic-params.ts +31 -0
  219. package/src/interface/index.ts +15 -3
  220. package/src/interface/logic-scheduler/i-scheduler-logic.ts +58 -0
  221. package/src/interface/logic-scheduler/i-trigger-match-params.ts +18 -0
  222. package/src/interface/logic-scheduler/index.ts +7 -0
  223. package/src/interface/provider/i-ui-action-provider.ts +20 -0
  224. package/src/interface/provider/index.ts +1 -0
  225. package/src/interface/register/i-register.ts +8 -1
  226. package/src/interface/register/i-ui-action-register.ts +15 -0
  227. package/src/interface/register/index.ts +2 -0
  228. package/src/interface/util/i-loading-util/i-loading-util.ts +14 -0
  229. package/src/interface/util/i-modal-util/i-modal-util.ts +8 -0
  230. package/src/interface/util/i-open-view-util/i-open-view-util.ts +11 -11
  231. package/src/interface/util/i-overlay-container/i-overlay-container.ts +38 -0
  232. package/src/interface/util/i-overlay-controller/i-overlay-controller.ts +116 -0
  233. package/src/interface/util/i-overlay-popover-container/i-overlay-popover-container.ts +23 -0
  234. package/src/interface/util/index.ts +3 -0
  235. package/src/logic-scheduler/executor/logic-executor-factory.ts +48 -0
  236. package/src/logic-scheduler/executor/logic-executor.ts +43 -0
  237. package/src/logic-scheduler/executor/script-executor.ts +63 -0
  238. package/src/logic-scheduler/index.ts +41 -0
  239. package/src/logic-scheduler/logic-scheduler-center.ts +52 -0
  240. package/src/logic-scheduler/scheduler/control-logic-scheduler.ts +21 -0
  241. package/src/logic-scheduler/scheduler/logic-scheduler.ts +192 -0
  242. package/src/logic-scheduler/scheduler/view-logic-scheduler.ts +17 -0
  243. package/src/logic-scheduler/trigger/item-dyna-logic-trigger.ts +41 -0
  244. package/src/logic-scheduler/trigger/logic-trigger-factory.ts +48 -0
  245. package/src/logic-scheduler/trigger/logic-trigger.ts +77 -0
  246. package/src/plugin/index.ts +5 -0
  247. package/src/plugin/plugin-static-resource/plugin-static-resource.ts +80 -0
  248. package/src/plugin/remote-plugin-item/remote-plugin-item.ts +118 -0
  249. package/src/provider/index.ts +1 -0
  250. package/src/provider/ui-action/backend-ui-action-provider.ts +22 -0
  251. package/src/provider/ui-action/common-sys-ui-action-provider.ts +22 -0
  252. package/src/provider/ui-action/front-ui-action-provider.ts +22 -0
  253. package/src/provider/ui-action/index.ts +56 -0
  254. package/src/provider/ui-action/wf-withdraw-ui-action-provider.ts +22 -0
  255. package/src/register/index.ts +3 -0
  256. package/src/register/register-base.ts +27 -0
  257. package/src/register/register-center.ts +20 -0
  258. package/src/register/ui-action-register.ts +48 -0
  259. package/src/types.ts +39 -3
  260. package/src/utils/app-de-ui-action-util/app-de-ui-action-util.ts +4 -329
  261. package/src/utils/app-de-ui-action-util/handler/backend-ui-action-handler.ts +51 -0
  262. package/src/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.ts +124 -0
  263. package/src/utils/app-de-ui-action-util/handler/front-ui-action-handler.ts +69 -0
  264. package/src/utils/app-de-ui-action-util/handler/index.ts +5 -0
  265. package/src/utils/app-de-ui-action-util/handler/ui-action-handler.ts +253 -0
  266. package/src/utils/app-de-ui-action-util/handler/wf-withdraw-handler.ts +36 -0
  267. package/src/utils/app-de-ui-action-util/index.ts +2 -0
  268. package/src/utils/index.ts +7 -1
  269. package/src/utils/nav-params/calc-nav-params.ts +59 -0
  270. package/src/utils/nav-params/nav-params.ts +66 -5
  271. package/src/utils/open-redirect-view/open-redirect-view.ts +308 -0
  272. package/src/utils/wf-helper/wf-helper.ts +14 -0
  273. package/src/view-logic/view-logic.ts +123 -30
  274. package/LICENSE +0 -21
  275. package/out/interface/provider/i-editor-provider.d.ts +0 -38
  276. package/out/interface/provider/i-editor-provider.d.ts.map +0 -1
  277. package/out/interface/register/i-editor-register.d.ts +0 -23
  278. package/out/interface/register/i-editor-register.d.ts.map +0 -1
  279. package/out/register/register.d.ts +0 -20
  280. package/out/register/register.d.ts.map +0 -1
  281. package/out/register/register.js +0 -10
  282. package/src/interface/provider/i-editor-provider.ts +0 -44
  283. package/src/interface/register/i-editor-register.ts +0 -23
  284. package/src/register/register.ts +0 -20
  285. /package/out/interface/{provider/i-editor-provider.js → i-drawer-options/i-drawer-options.js} +0 -0
  286. /package/out/interface/{register/i-editor-register.js → i-global-config/i-global-config.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { IBizContext } from '@ibiz-template/core';
2
- import { IPSAppView } from '@ibiz-template/model';
1
+ import { IPSAppRedirectView, IPSAppView } from '@ibiz-template/model';
3
2
  import { IModalData } from '../../../interface';
3
+ import { openRedirectView } from '../../../utils';
4
4
 
5
5
  /**
6
6
  * 打开应用视图
@@ -23,20 +23,25 @@ export class OpenAppViewCommand {
23
23
  * @author chitanda
24
24
  * @date 2022-08-25 23:08:08
25
25
  * @param {IPSAppView} appView
26
- * @param {IBizContext} [context]
26
+ * @param {IContext} [context]
27
27
  * @param {IParams} [params={}]
28
28
  * @param {IData} [_opts={}]
29
29
  * @return {*} {(Promise<IModalData | void>)}
30
30
  */
31
31
  async exec(
32
32
  appView: IPSAppView,
33
- context?: IBizContext,
33
+ context: IContext,
34
34
  params: IParams = {},
35
- _opts: IData = {},
35
+ opts: IData = {},
36
36
  ): Promise<IModalData | void> {
37
37
  await appView.fill(true);
38
38
  if (appView.redirectView) {
39
- return this.openRedirectView(appView);
39
+ return openRedirectView(
40
+ appView as IPSAppRedirectView,
41
+ context,
42
+ params,
43
+ opts.data,
44
+ );
40
45
  }
41
46
  const { openMode = 'INDEXVIEWTAB' } = appView;
42
47
  switch (openMode) {
@@ -49,7 +54,7 @@ export class OpenAppViewCommand {
49
54
  case 'POPUPAPP':
50
55
  throw new Error('未支持的视图打开模式: POPUPAPP');
51
56
  case 'POPOVER':
52
- return this.openPopover(appView, context, params);
57
+ return this.openPopover(appView, opts.event, context, params);
53
58
  case 'DRAWER_LEFT':
54
59
  case 'DRAWER_RIGHT':
55
60
  case 'DRAWER_TOP':
@@ -62,29 +67,6 @@ export class OpenAppViewCommand {
62
67
  }
63
68
  }
64
69
 
65
- /**
66
- * 打开重定向视图
67
- *
68
- * @author chitanda
69
- * @date 2022-07-25 20:07:24
70
- * @protected
71
- * @param {IPSAppView} appView
72
- * @param {IBizContext} [context]
73
- * @param {IParams} [params={}]
74
- */
75
- protected openRedirectView(
76
- appView: IPSAppView,
77
- context?: IBizContext,
78
- params: IParams = {},
79
- ): void {
80
- console.log(
81
- 'OpenAppViewCommand.openRedirectView',
82
- appView,
83
- context,
84
- params,
85
- );
86
- }
87
-
88
70
  /**
89
71
  * 首页导航模式打开
90
72
  *
@@ -92,12 +74,12 @@ export class OpenAppViewCommand {
92
74
  * @date 2022-07-25 20:07:43
93
75
  * @protected
94
76
  * @param {IPSAppView} appView
95
- * @param {IBizContext} [context]
77
+ * @param {IContext} [context]
96
78
  * @param {IParams} [params={}]
97
79
  */
98
80
  protected openIndexViewTab(
99
81
  appView: IPSAppView,
100
- context?: IBizContext,
82
+ context: IContext,
101
83
  params: IParams = {},
102
84
  ): void {
103
85
  return ibiz.openView.root(appView, context, params);
@@ -110,13 +92,13 @@ export class OpenAppViewCommand {
110
92
  * @date 2022-07-25 20:07:55
111
93
  * @protected
112
94
  * @param {IPSAppView} appView
113
- * @param {IBizContext} [context]
95
+ * @param {IContext} [context]
114
96
  * @param {IParams} [params={}]
115
97
  * @return {*} {Promise<IModalData>}
116
98
  */
117
99
  protected async openModal(
118
100
  appView: IPSAppView,
119
- context?: IBizContext,
101
+ context: IContext,
120
102
  params: IParams = {},
121
103
  ): Promise<IModalData> {
122
104
  return ibiz.openView.modal(appView, context, params);
@@ -129,16 +111,17 @@ export class OpenAppViewCommand {
129
111
  * @date 2022-07-25 20:07:17
130
112
  * @protected
131
113
  * @param {IPSAppView} appView
132
- * @param {IBizContext} [context]
114
+ * @param {IContext} [context]
133
115
  * @param {IParams} [params={}]
134
116
  * @return {*} {Promise<IModalData>}
135
117
  */
136
118
  protected async openPopover(
137
119
  appView: IPSAppView,
138
- context?: IBizContext,
120
+ event: MouseEvent,
121
+ context: IContext,
139
122
  params: IParams = {},
140
123
  ): Promise<IModalData> {
141
- return ibiz.openView.popover(appView, context, params);
124
+ return ibiz.openView.popover(appView, event, context, params);
142
125
  }
143
126
 
144
127
  /**
@@ -148,13 +131,13 @@ export class OpenAppViewCommand {
148
131
  * @date 2022-07-25 20:07:08
149
132
  * @protected
150
133
  * @param {IPSAppView} appView
151
- * @param {IBizContext} [context]
134
+ * @param {IContext} [context]
152
135
  * @param {IParams} [params={}]
153
136
  * @return {*} {Promise<void>}
154
137
  */
155
138
  protected async openDrawer(
156
139
  appView: IPSAppView,
157
- context?: IBizContext,
140
+ context: IContext,
158
141
  params: IParams = {},
159
142
  ): Promise<IModalData> {
160
143
  return ibiz.openView.drawer(appView, context, params);
@@ -167,13 +150,13 @@ export class OpenAppViewCommand {
167
150
  * @date 2022-07-25 20:07:41
168
151
  * @protected
169
152
  * @param {IPSAppView} appView
170
- * @param {IBizContext} [context]
153
+ * @param {IContext} [context]
171
154
  * @param {IParams} [params={}]
172
155
  * @return {*} {Promise<void>}
173
156
  */
174
157
  protected async openUserCustom(
175
158
  appView: IPSAppView,
176
- context?: IBizContext,
159
+ context: IContext,
177
160
  params: IParams = {},
178
161
  ): Promise<IModalData> {
179
162
  return ibiz.openView.custom(appView, context, params);
@@ -0,0 +1,22 @@
1
+ import { IGlobalConfig } from '../interface/i-global-config/i-global-config';
2
+
3
+ /**
4
+ * 全局配置类,控制应用的功能开关。
5
+ *
6
+ * @author lxm
7
+ * @date 2022-12-09 14:12:28
8
+ * @export
9
+ * @class GlobalConfig
10
+ * @implements {IGlobalConfig}
11
+ */
12
+ export class GlobalConfig implements IGlobalConfig {
13
+ enableDataInfoBar: boolean = true;
14
+
15
+ defaultCodeListCacheTimeout: number = 3600000;
16
+
17
+ gridEditShowMode: 'cell' | 'row' | 'all' = 'cell';
18
+
19
+ gridEditSaveMode: 'cell-blur' | 'auto' | 'manual' = 'cell-blur';
20
+
21
+ isShowTabPageExp: boolean = false;
22
+ }
package/src/index.ts CHANGED
@@ -4,6 +4,9 @@ export { install } from './install';
4
4
  export * from './command';
5
5
  export * from './constant';
6
6
  export * from './interface';
7
- export * from './register/register';
7
+ export * from './plugin';
8
+ export * from './provider';
9
+ export * from './register';
8
10
  export * from './utils';
9
11
  export * from './view-logic';
12
+ export * from './logic-scheduler';
package/src/install.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  import { commands } from '@ibiz-template/command';
2
- import { Register } from './register/register';
2
+ import { GlobalConfig } from './config/global-config';
3
+ import { RegisterCenter } from './register/register-center';
3
4
  import { installCommand } from './command';
5
+ import { presetUIActionProvider } from './provider';
6
+ import { installLogicSchedule } from './logic-scheduler';
4
7
 
5
8
  /**
6
9
  * 安装运行时
@@ -14,7 +17,13 @@ export function install(): void {
14
17
  // 挂载指令控制器
15
18
  ibiz.commands = commands;
16
19
  // 挂载注册中心
17
- ibiz.register = new Register();
20
+ ibiz.register = new RegisterCenter();
21
+ // 初始化全局配置
22
+ ibiz.config = new GlobalConfig();
18
23
  // 安装默认指令
19
24
  installCommand();
25
+ // 注册预置的界面行为适配器
26
+ presetUIActionProvider();
27
+ // 安装逻辑调度器
28
+ installLogicSchedule();
20
29
  }
@@ -0,0 +1,28 @@
1
+ export interface IDrawerOptions {
2
+ /**
3
+ * 抽屉宽度
4
+ * 左、右方向时可用。当其值不大于 100 时以百分比显示,大于 100 时为像素
5
+ *
6
+ * @author lxm
7
+ * @date 2022-09-12 20:09:20
8
+ * @type {string | number}
9
+ */
10
+ width?: string | number;
11
+ /**
12
+ * 抽屉高度
13
+ * 上、下方向时可用。当其值不大于 100 时以百分比显示,大于 100 时为像素
14
+ *
15
+ * @author lxm
16
+ * @date 2022-09-12 20:09:22
17
+ * @type {string | number}
18
+ */
19
+ height?: string | number;
20
+ /**
21
+ * 抽屉的方向
22
+ *
23
+ * @author lxm
24
+ * @date 2022-09-15 14:09:13
25
+ * @type {('left' | 'right' | 'top' | 'bottom')}
26
+ */
27
+ placement?: 'left' | 'right' | 'top' | 'bottom';
28
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * 全局配置类,控制应用的功能开关。
3
+ *
4
+ * @author lxm
5
+ * @date 2022-12-09 14:12:44
6
+ * @export
7
+ * @interface IGlobalConfig
8
+ */
9
+ export interface IGlobalConfig {
10
+ /**
11
+ * 是否启用信息栏
12
+ * - true:后才会识别模型的isShowDataInfoBar来控制是否显示信息栏
13
+ * - false:则一律不显示信息栏
14
+ *
15
+ * @author lxm
16
+ * @date 2022-12-09 14:12:13
17
+ * @type {boolean}
18
+ */
19
+ enableDataInfoBar: boolean;
20
+
21
+ /**
22
+ * 默认代码表超时时间(单位:毫秒)
23
+ *
24
+ * @author lxm
25
+ * @date 2023-03-08 03:12:28
26
+ * @type {number}
27
+ * @memberof IGlobalConfig
28
+ */
29
+ defaultCodeListCacheTimeout: number;
30
+
31
+ /**
32
+ * 表格行编辑呈现模式
33
+ * - cell 每次只呈现悬浮点击之后的一个单元格的编辑态
34
+ * - row 每次呈现编辑中的那一行所有单元格的编辑态 TODO
35
+ * - all 呈现所有编辑项的编辑态
36
+ * @author lxm
37
+ * @date 2023-03-06 09:42:44
38
+ * @type {('cell' | 'row' | 'all')}
39
+ * @memberof IGlobalConfig
40
+ */
41
+ gridEditShowMode: 'cell' | 'row' | 'all';
42
+
43
+ /**
44
+ * 表格行编辑保存模式
45
+ * - cell-blur 单元格失焦时保存整行数据
46
+ * - auto 自动保存,值变更之后一段时间保存整行数据
47
+ * - manual 手动保存,由界面行为调用表格整体保存或行保存。
48
+ * @author lxm
49
+ * @date 2023-03-06 03:33:35
50
+ * @type {('cell-blur' | 'auto' | 'manual')}
51
+ * @memberof IGlobalConfig
52
+ */
53
+ gridEditSaveMode: 'cell-blur' | 'auto' | 'manual';
54
+
55
+ /**
56
+ * 是否启用首页多标签导航
57
+ * - true:启用
58
+ * - false:不启用
59
+ *
60
+ * @author lxm
61
+ * @date 2022-12-09 14:12:13
62
+ * @type {boolean}
63
+ */
64
+ isShowTabPageExp: boolean;
65
+ }
@@ -18,6 +18,14 @@ export interface IModal {
18
18
  */
19
19
  mode: ViewMode;
20
20
 
21
+ /**
22
+ * 路由层级
23
+ *
24
+ * @type {number}
25
+ * @memberof IModal
26
+ */
27
+ level?: number;
28
+
21
29
  /**
22
30
  * 关闭模态窗
23
31
  *
@@ -22,7 +22,7 @@ export interface IModalData {
22
22
  * @date 2022-08-17 18:08:20
23
23
  * @type {IData[]}
24
24
  */
25
- data: IData[];
25
+ data?: IData[];
26
26
  /**
27
27
  * 额外参数
28
28
  *
@@ -0,0 +1,44 @@
1
+ export interface IModalOptions {
2
+ /**
3
+ * 宽度
4
+ *
5
+ * @author lxm
6
+ * @date 2022-09-12 20:09:20
7
+ * @type {string | number}
8
+ */
9
+ width?: string | number;
10
+ /**
11
+ * 高度
12
+ *
13
+ * @author lxm
14
+ * @date 2022-09-12 20:09:22
15
+ * @type {string | number}
16
+ */
17
+ height?: string | number;
18
+ /**
19
+ * 是否隐藏底部按钮(默认false)
20
+ *
21
+ * @author lxm
22
+ * @date 2022-09-12 20:09:23
23
+ * @type {boolean}
24
+ */
25
+ footerHide?: boolean;
26
+
27
+ /**
28
+ * 显示位置
29
+ *
30
+ * @author lxm
31
+ * @date 2022-11-08 16:11:38
32
+ * @type {'center'}
33
+ */
34
+ placement?: 'center';
35
+
36
+ /**
37
+ * 自定义模态的类名,用来自定义模态样式
38
+ *
39
+ * @author lxm
40
+ * @date 2022-11-21 15:11:29
41
+ * @type {string}
42
+ */
43
+ modalClass?: string;
44
+ }
@@ -0,0 +1,66 @@
1
+ import { IPSSysPFPlugin } from '@ibiz-template/model';
2
+ import { IPluginItem } from '../i-plugin-item/i-plugin-item';
3
+
4
+ /**
5
+ * 插件工厂
6
+ *
7
+ * @author chitanda
8
+ * @date 2022-10-21 16:10:19
9
+ * @export
10
+ * @interface IPluginFactory
11
+ */
12
+ export interface IPluginFactory {
13
+ /**
14
+ * 设置开发插件,用于本地调试
15
+ *
16
+ * @author chitanda
17
+ * @date 2022-11-02 21:11:01
18
+ * @param {string} name
19
+ * @param {() => Promise<unknown>} fn
20
+ */
21
+ setDevPlugin(name: string, fn: () => Promise<unknown>): void;
22
+ /**
23
+ * 加载插件
24
+ *
25
+ * @author chitanda
26
+ * @date 2022-10-21 16:10:27
27
+ * @param {IPSSysPFPlugin} plugin
28
+ * @return {*} {Promise<boolean>}
29
+ */
30
+ loadPlugin(plugin: IPSSysPFPlugin): Promise<boolean>;
31
+ /**
32
+ * 加载应用引用插件
33
+ *
34
+ * @author chitanda
35
+ * @date 2023-02-02 15:02:58
36
+ * @param {string} rtObjectName
37
+ * @param {string} rtObjectRepo
38
+ * @return {*} {Promise<boolean>}
39
+ */
40
+ loadPluginRef(rtObjectName: string, rtObjectRepo: string): Promise<boolean>;
41
+ /**
42
+ * 给入应用实例,将已经加载的过插件注入。主要用于多实例的情况
43
+ *
44
+ * @author chitanda
45
+ * @date 2023-02-02 16:02:39
46
+ * @param {unknown} app
47
+ */
48
+ register(app: unknown): void;
49
+ /**
50
+ * 注册默认视图插件
51
+ *
52
+ * @author chitanda
53
+ * @date 2023-02-06 21:02:06
54
+ * @param {IPluginItem} plugin 其中 Name 将作为插件标识
55
+ */
56
+ registerPredefinedPlugin(plugin: IPluginItem): void;
57
+ /**
58
+ * 加载指定标识视图插件
59
+ *
60
+ * @author chitanda
61
+ * @date 2023-03-09 18:03:44
62
+ * @param {string} name 插件标识
63
+ * @return {*} {Promise<void>}
64
+ */
65
+ loadPredefinedPlugin(name: string): Promise<void>;
66
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * 插件项
3
+ *
4
+ * @author chitanda
5
+ * @date 2023-02-06 21:02:03
6
+ * @export
7
+ * @interface IPluginItem
8
+ */
9
+ export interface IPluginItem {
10
+ /**
11
+ * 插件名称,对应模型 rtObjectName
12
+ *
13
+ * @description 预置插件类型名称规则: 视图(VIEW_${视图类型}_DEFAULT)、部件(CONTROL_${部件类型}_DEFAULT)、编辑器(EDITOR_${编辑器类型}_DEFAULT)
14
+ * @author chitanda
15
+ * @date 2023-02-06 21:02:21
16
+ * @type {string}
17
+ */
18
+ name: string;
19
+ /**
20
+ * 插件对应路径,对应模型 rtObjectRepo
21
+ *
22
+ * @author chitanda
23
+ * @date 2023-02-06 21:02:39
24
+ * @type {string}
25
+ */
26
+ path: string;
27
+ }
@@ -0,0 +1,85 @@
1
+ export declare type Alignment = 'start' | 'end';
2
+ export declare type Side = 'top' | 'right' | 'bottom' | 'left';
3
+ export declare type AlignedPlacement = `${Side}-${Alignment}`;
4
+ export declare type Placement = Side | AlignedPlacement;
5
+ interface AxesOffsets {
6
+ /**
7
+ * 浮动元素与参考元素之间的间距
8
+ *
9
+ * @author lxm
10
+ * @date 2022-11-16 18:11:27
11
+ * @type {number}
12
+ */
13
+ mainAxis?: number;
14
+ /**
15
+ * 浮动元素与参考元素之间的偏移量,与mainAxis垂直
16
+ *
17
+ * @author lxm
18
+ * @date 2022-11-16 18:11:49
19
+ * @type {number}
20
+ */
21
+ crossAxis?: number;
22
+ alignmentAxis?: number | null;
23
+ }
24
+
25
+ /**
26
+ * 飘窗参数
27
+ *
28
+ * @author chitanda
29
+ * @date 2022-11-08 16:11:37
30
+ * @export
31
+ * @interface IPopoverOptions
32
+ */
33
+ export interface IPopoverOptions {
34
+ /**
35
+ * 宽度
36
+ *
37
+ * @author chitanda
38
+ * @date 2022-11-08 16:11:26
39
+ * @type {string}
40
+ */
41
+ width?: string;
42
+ /**
43
+ * 高度
44
+ *
45
+ * @author chitanda
46
+ * @date 2022-11-08 16:11:33
47
+ * @type {string}
48
+ */
49
+ height?: string;
50
+ /**
51
+ * 展示方向
52
+ *
53
+ * @author chitanda
54
+ * @date 2022-11-08 16:11:41
55
+ * @type {Placement}
56
+ */
57
+ placement?: Placement;
58
+ /**
59
+ * 是否自动关闭
60
+ *
61
+ * @default true
62
+ * @author chitanda
63
+ * @date 2022-11-08 16:11:43
64
+ * @type {boolean}
65
+ */
66
+ autoClose?: boolean;
67
+
68
+ /**
69
+ * offset的参数
70
+ *
71
+ * @author lxm
72
+ * @date 2022-11-16 18:11:13
73
+ * @type {(AxesOffsets | number)}
74
+ */
75
+ offsetOpts?: AxesOffsets | number;
76
+
77
+ /**
78
+ * 不显示箭头
79
+ *
80
+ * @author lxm
81
+ * @date 2022-11-16 20:11:58
82
+ * @type {boolean}
83
+ */
84
+ noArrow?: boolean;
85
+ }
@@ -0,0 +1,32 @@
1
+ import { IPSAppDEUIAction } from '@ibiz-template/model';
2
+ import { IUIActionResult } from '../i-ui-action-result/i-ui-action-result';
3
+
4
+ /**
5
+ * 界面行为处理器接口
6
+ *
7
+ * @author lxm
8
+ * @date 2022-10-25 14:10:59
9
+ * @export
10
+ * @interface IUIActionHandler
11
+ */
12
+ export interface IUIActionHandler {
13
+ /**
14
+ * 执行界面行为
15
+ *
16
+ * @author lxm
17
+ * @date 2022-10-25 14:10:15
18
+ * @param {IPSAppDEUIAction} action 界面行为模型
19
+ * @param {IContext} context 上下文
20
+ * @param {(IData[] | null)} data 数据集合
21
+ * @param {IParams} params 视图参数
22
+ * @param {IData} [opts] 额外参数
23
+ * @returns {*} {Promise<IUIActionResult>}
24
+ */
25
+ exec(
26
+ action: IPSAppDEUIAction,
27
+ context: IContext,
28
+ data: IData[] | null,
29
+ params: IParams,
30
+ opts?: IData,
31
+ ): Promise<IUIActionResult>;
32
+ }
@@ -15,6 +15,7 @@ export interface IUIActionResult {
15
15
  * @type {boolean}
16
16
  */
17
17
  refresh?: boolean;
18
+
18
19
  /**
19
20
  * 是否关闭界面
20
21
  *
@@ -23,4 +24,23 @@ export interface IUIActionResult {
23
24
  * @type {boolean}
24
25
  */
25
26
  closeView?: boolean;
27
+
28
+ /**
29
+ * 中途取消操作
30
+ *
31
+ * @author lxm
32
+ * @date 2023-02-09 06:51:37
33
+ * @type {boolean}
34
+ * @memberof IUIActionResult
35
+ */
36
+ cancel?: boolean;
37
+
38
+ /**
39
+ * 返回的数据
40
+ *
41
+ * @author chitanda
42
+ * @date 2022-08-17 18:08:20
43
+ * @type {IData[]}
44
+ */
45
+ data?: IData[];
26
46
  }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * 界面逻辑通用参数(界面行为,事件,界面逻辑,实体逻辑等)
3
+ * @author lxm
4
+ * @date 2023-05-08 09:31:01
5
+ * @export
6
+ * @interface IUILogicParams
7
+ */
8
+ export interface IUILogicParams {
9
+ /**
10
+ * 上下文
11
+ * @author lxm
12
+ * @date 2023-03-21 05:53:33
13
+ * @type {IContext}
14
+ */
15
+ context: IContext;
16
+ /**
17
+ * 视图参数
18
+ * @author lxm
19
+ * @date 2023-03-21 05:54:23
20
+ * @type {IParams}
21
+ */
22
+ params: IParams;
23
+
24
+ /**
25
+ * 涉及的数据集合
26
+ * @author lxm
27
+ * @date 2023-03-21 05:54:33
28
+ * @type {IData[]}
29
+ */
30
+ data: IData[];
31
+ }
@@ -1,7 +1,19 @@
1
+ export { IDrawerOptions } from './i-drawer-options/i-drawer-options';
2
+ export {
3
+ IPopoverOptions,
4
+ Placement,
5
+ } from './i-popover-options/i-popover-options';
1
6
  export { IModal } from './i-modal/i-modal';
2
7
  export { IModalData } from './i-modal-data/i-modal-data';
8
+ export { IModalOptions } from './i-modal-options/i-modal-options';
9
+ export { IPluginFactory } from './i-plugin-factory/i-plugin-factory';
10
+ export { IPluginItem } from './i-plugin-item/i-plugin-item';
3
11
  export { IUIActionResult } from './i-ui-action-result/i-ui-action-result';
12
+ export { IUIActionHandler } from './i-ui-action-handler/i-ui-action-handler';
13
+ export { IGlobalConfig } from './i-global-config/i-global-config';
14
+ export { IUILogicParams } from './i-ui-logic-params/i-ui-logic-params';
15
+
4
16
  export * from './util';
5
- export * from './provider/i-editor-provider';
6
- export * from './register/i-register';
7
- export * from './register/i-editor-register';
17
+ export * from './provider';
18
+ export * from './register';
19
+ export * from './logic-scheduler';