@ibiz-template/runtime 0.0.1-beta.1 → 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 (186) hide show
  1. package/dist/system/index.system.js +1 -1
  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 +19 -20
  5. package/out/command/app/open-app-view/open-app-view.d.ts +12 -13
  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 +6 -6
  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 +1 -0
  12. package/out/index.d.ts.map +1 -1
  13. package/out/index.js +1 -0
  14. package/out/install.d.ts.map +1 -1
  15. package/out/install.js +6 -0
  16. package/out/interface/i-global-config/i-global-config.d.ts +62 -0
  17. package/out/interface/i-global-config/i-global-config.d.ts.map +1 -0
  18. package/out/interface/i-global-config/i-global-config.js +1 -0
  19. package/out/interface/i-modal/i-modal.d.ts +7 -0
  20. package/out/interface/i-modal/i-modal.d.ts.map +1 -1
  21. package/out/interface/i-modal-options/i-modal-options.d.ts +8 -0
  22. package/out/interface/i-modal-options/i-modal-options.d.ts.map +1 -1
  23. package/out/interface/i-plugin-factory/i-plugin-factory.d.ts +32 -5
  24. package/out/interface/i-plugin-factory/i-plugin-factory.d.ts.map +1 -1
  25. package/out/interface/i-plugin-item/i-plugin-item.d.ts +28 -0
  26. package/out/interface/i-plugin-item/i-plugin-item.d.ts.map +1 -0
  27. package/out/interface/i-plugin-item/i-plugin-item.js +1 -0
  28. package/out/interface/i-ui-action-handler/i-ui-action-handler.d.ts +2 -3
  29. package/out/interface/i-ui-action-handler/i-ui-action-handler.d.ts.map +1 -1
  30. package/out/interface/i-ui-action-result/i-ui-action-result.d.ts +17 -0
  31. package/out/interface/i-ui-action-result/i-ui-action-result.d.ts.map +1 -1
  32. package/out/interface/i-ui-logic-params/i-ui-logic-params.d.ts +31 -0
  33. package/out/interface/i-ui-logic-params/i-ui-logic-params.d.ts.map +1 -0
  34. package/out/interface/i-ui-logic-params/i-ui-logic-params.js +1 -0
  35. package/out/interface/index.d.ts +4 -0
  36. package/out/interface/index.d.ts.map +1 -1
  37. package/out/interface/index.js +1 -0
  38. package/out/interface/logic-scheduler/i-scheduler-logic.d.ts +35 -0
  39. package/out/interface/logic-scheduler/i-scheduler-logic.d.ts.map +1 -0
  40. package/out/interface/logic-scheduler/i-scheduler-logic.js +1 -0
  41. package/out/interface/logic-scheduler/i-trigger-match-params.d.ts +17 -0
  42. package/out/interface/logic-scheduler/i-trigger-match-params.d.ts.map +1 -0
  43. package/out/interface/logic-scheduler/i-trigger-match-params.js +1 -0
  44. package/out/interface/logic-scheduler/index.d.ts +3 -0
  45. package/out/interface/logic-scheduler/index.d.ts.map +1 -0
  46. package/out/interface/logic-scheduler/index.js +1 -0
  47. package/out/interface/util/i-modal-util/i-modal-util.d.ts +8 -0
  48. package/out/interface/util/i-modal-util/i-modal-util.d.ts.map +1 -1
  49. package/out/interface/util/i-open-view-util/i-open-view-util.d.ts +10 -11
  50. package/out/interface/util/i-open-view-util/i-open-view-util.d.ts.map +1 -1
  51. package/out/logic-scheduler/executor/logic-executor-factory.d.ts +34 -0
  52. package/out/logic-scheduler/executor/logic-executor-factory.d.ts.map +1 -0
  53. package/out/logic-scheduler/executor/logic-executor-factory.js +42 -0
  54. package/out/logic-scheduler/executor/logic-executor.d.ts +32 -0
  55. package/out/logic-scheduler/executor/logic-executor.d.ts.map +1 -0
  56. package/out/logic-scheduler/executor/logic-executor.js +30 -0
  57. package/out/logic-scheduler/executor/script-executor.d.ts +39 -0
  58. package/out/logic-scheduler/executor/script-executor.d.ts.map +1 -0
  59. package/out/logic-scheduler/executor/script-executor.js +53 -0
  60. package/out/logic-scheduler/index.d.ts +12 -0
  61. package/out/logic-scheduler/index.d.ts.map +1 -0
  62. package/out/logic-scheduler/index.js +17 -0
  63. package/out/logic-scheduler/logic-scheduler-center.d.ts +45 -0
  64. package/out/logic-scheduler/logic-scheduler-center.d.ts.map +1 -0
  65. package/out/logic-scheduler/logic-scheduler-center.js +49 -0
  66. package/out/logic-scheduler/scheduler/control-logic-scheduler.d.ts +14 -0
  67. package/out/logic-scheduler/scheduler/control-logic-scheduler.d.ts.map +1 -0
  68. package/out/logic-scheduler/scheduler/control-logic-scheduler.js +16 -0
  69. package/out/logic-scheduler/scheduler/logic-scheduler.d.ts +105 -0
  70. package/out/logic-scheduler/scheduler/logic-scheduler.d.ts.map +1 -0
  71. package/out/logic-scheduler/scheduler/logic-scheduler.js +148 -0
  72. package/out/logic-scheduler/scheduler/view-logic-scheduler.d.ts +14 -0
  73. package/out/logic-scheduler/scheduler/view-logic-scheduler.d.ts.map +1 -0
  74. package/out/logic-scheduler/scheduler/view-logic-scheduler.js +14 -0
  75. package/out/logic-scheduler/trigger/item-dyna-logic-trigger.d.ts +12 -0
  76. package/out/logic-scheduler/trigger/item-dyna-logic-trigger.d.ts.map +1 -0
  77. package/out/logic-scheduler/trigger/item-dyna-logic-trigger.js +26 -0
  78. package/out/logic-scheduler/trigger/logic-trigger-factory.d.ts +34 -0
  79. package/out/logic-scheduler/trigger/logic-trigger-factory.d.ts.map +1 -0
  80. package/out/logic-scheduler/trigger/logic-trigger-factory.js +42 -0
  81. package/out/logic-scheduler/trigger/logic-trigger.d.ts +55 -0
  82. package/out/logic-scheduler/trigger/logic-trigger.d.ts.map +1 -0
  83. package/out/logic-scheduler/trigger/logic-trigger.js +52 -0
  84. package/out/plugin/plugin-static-resource/plugin-static-resource.d.ts +18 -0
  85. package/out/plugin/plugin-static-resource/plugin-static-resource.d.ts.map +1 -1
  86. package/out/plugin/plugin-static-resource/plugin-static-resource.js +36 -0
  87. package/out/plugin/remote-plugin-item/remote-plugin-item.d.ts +12 -3
  88. package/out/plugin/remote-plugin-item/remote-plugin-item.d.ts.map +1 -1
  89. package/out/plugin/remote-plugin-item/remote-plugin-item.js +5 -3
  90. package/out/provider/ui-action/index.d.ts +2 -1
  91. package/out/provider/ui-action/index.d.ts.map +1 -1
  92. package/out/provider/ui-action/index.js +5 -1
  93. package/out/provider/ui-action/wf-withdraw-ui-action-provider.d.ts +15 -0
  94. package/out/provider/ui-action/wf-withdraw-ui-action-provider.d.ts.map +1 -0
  95. package/out/provider/ui-action/wf-withdraw-ui-action-provider.js +18 -0
  96. package/out/types.d.ts +17 -1
  97. package/out/types.d.ts.map +1 -1
  98. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts +2 -3
  99. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts.map +1 -1
  100. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.js +1 -1
  101. package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.d.ts +1 -2
  102. package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.d.ts.map +1 -1
  103. package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.js +7 -4
  104. package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.d.ts +1 -2
  105. package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.d.ts.map +1 -1
  106. package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.js +1 -1
  107. package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.d.ts +1 -2
  108. package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.d.ts.map +1 -1
  109. package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.js +31 -8
  110. package/out/utils/app-de-ui-action-util/handler/index.d.ts +1 -0
  111. package/out/utils/app-de-ui-action-util/handler/index.d.ts.map +1 -1
  112. package/out/utils/app-de-ui-action-util/handler/index.js +1 -0
  113. package/out/utils/app-de-ui-action-util/handler/ui-action-handler.d.ts +10 -20
  114. package/out/utils/app-de-ui-action-util/handler/ui-action-handler.d.ts.map +1 -1
  115. package/out/utils/app-de-ui-action-util/handler/ui-action-handler.js +82 -59
  116. package/out/utils/app-de-ui-action-util/handler/wf-withdraw-handler.d.ts +16 -0
  117. package/out/utils/app-de-ui-action-util/handler/wf-withdraw-handler.d.ts.map +1 -0
  118. package/out/utils/app-de-ui-action-util/handler/wf-withdraw-handler.js +27 -0
  119. package/out/utils/index.d.ts +3 -1
  120. package/out/utils/index.d.ts.map +1 -1
  121. package/out/utils/index.js +3 -1
  122. package/out/utils/nav-params/calc-nav-params.d.ts +29 -0
  123. package/out/utils/nav-params/calc-nav-params.d.ts.map +1 -0
  124. package/out/utils/nav-params/calc-nav-params.js +34 -0
  125. package/out/utils/nav-params/nav-params.d.ts +20 -1
  126. package/out/utils/nav-params/nav-params.d.ts.map +1 -1
  127. package/out/utils/nav-params/nav-params.js +58 -4
  128. package/out/utils/open-redirect-view/open-redirect-view.d.ts +19 -8
  129. package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
  130. package/out/utils/open-redirect-view/open-redirect-view.js +107 -14
  131. package/out/utils/wf-helper/wf-helper.d.ts +9 -0
  132. package/out/utils/wf-helper/wf-helper.d.ts.map +1 -0
  133. package/out/utils/wf-helper/wf-helper.js +14 -0
  134. package/out/view-logic/view-logic.d.ts +6 -7
  135. package/out/view-logic/view-logic.d.ts.map +1 -1
  136. package/out/view-logic/view-logic.js +102 -29
  137. package/package.json +14 -13
  138. package/src/command/app/app-func/app-func.ts +24 -24
  139. package/src/command/app/open-app-view/open-app-view.ts +12 -13
  140. package/src/config/global-config.ts +22 -0
  141. package/src/index.ts +1 -0
  142. package/src/install.ts +6 -0
  143. package/src/interface/i-global-config/i-global-config.ts +65 -0
  144. package/src/interface/i-modal/i-modal.ts +8 -0
  145. package/src/interface/i-modal-options/i-modal-options.ts +9 -0
  146. package/src/interface/i-plugin-factory/i-plugin-factory.ts +32 -5
  147. package/src/interface/i-plugin-item/i-plugin-item.ts +27 -0
  148. package/src/interface/i-ui-action-handler/i-ui-action-handler.ts +2 -3
  149. package/src/interface/i-ui-action-result/i-ui-action-result.ts +20 -0
  150. package/src/interface/i-ui-logic-params/i-ui-logic-params.ts +31 -0
  151. package/src/interface/index.ts +5 -0
  152. package/src/interface/logic-scheduler/i-scheduler-logic.ts +58 -0
  153. package/src/interface/logic-scheduler/i-trigger-match-params.ts +18 -0
  154. package/src/interface/logic-scheduler/index.ts +7 -0
  155. package/src/interface/util/i-modal-util/i-modal-util.ts +8 -0
  156. package/src/interface/util/i-open-view-util/i-open-view-util.ts +10 -11
  157. package/src/logic-scheduler/executor/logic-executor-factory.ts +48 -0
  158. package/src/logic-scheduler/executor/logic-executor.ts +43 -0
  159. package/src/logic-scheduler/executor/script-executor.ts +63 -0
  160. package/src/logic-scheduler/index.ts +41 -0
  161. package/src/logic-scheduler/logic-scheduler-center.ts +52 -0
  162. package/src/logic-scheduler/scheduler/control-logic-scheduler.ts +21 -0
  163. package/src/logic-scheduler/scheduler/logic-scheduler.ts +192 -0
  164. package/src/logic-scheduler/scheduler/view-logic-scheduler.ts +17 -0
  165. package/src/logic-scheduler/trigger/item-dyna-logic-trigger.ts +41 -0
  166. package/src/logic-scheduler/trigger/logic-trigger-factory.ts +48 -0
  167. package/src/logic-scheduler/trigger/logic-trigger.ts +77 -0
  168. package/src/plugin/plugin-static-resource/plugin-static-resource.ts +38 -0
  169. package/src/plugin/remote-plugin-item/remote-plugin-item.ts +14 -3
  170. package/src/provider/ui-action/index.ts +6 -0
  171. package/src/provider/ui-action/wf-withdraw-ui-action-provider.ts +22 -0
  172. package/src/types.ts +19 -0
  173. package/src/utils/app-de-ui-action-util/app-de-ui-action-util.ts +2 -3
  174. package/src/utils/app-de-ui-action-util/handler/backend-ui-action-handler.ts +13 -5
  175. package/src/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.ts +2 -3
  176. package/src/utils/app-de-ui-action-util/handler/front-ui-action-handler.ts +46 -23
  177. package/src/utils/app-de-ui-action-util/handler/index.ts +1 -0
  178. package/src/utils/app-de-ui-action-util/handler/ui-action-handler.ts +113 -75
  179. package/src/utils/app-de-ui-action-util/handler/wf-withdraw-handler.ts +36 -0
  180. package/src/utils/index.ts +6 -1
  181. package/src/utils/nav-params/calc-nav-params.ts +59 -0
  182. package/src/utils/nav-params/nav-params.ts +66 -5
  183. package/src/utils/open-redirect-view/open-redirect-view.ts +142 -14
  184. package/src/utils/wf-helper/wf-helper.ts +14 -0
  185. package/src/view-logic/view-logic.ts +111 -31
  186. package/LICENSE +0 -21
@@ -31,5 +31,13 @@ export interface IModalOptions {
31
31
  * @type {'center'}
32
32
  */
33
33
  placement?: 'center';
34
+ /**
35
+ * 自定义模态的类名,用来自定义模态样式
36
+ *
37
+ * @author lxm
38
+ * @date 2022-11-21 15:11:29
39
+ * @type {string}
40
+ */
41
+ modalClass?: string;
34
42
  }
35
43
  //# sourceMappingURL=i-modal-options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i-modal-options.d.ts","sourceRoot":"","sources":["../../../src/interface/i-modal-options/i-modal-options.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC;CACtB"}
1
+ {"version":3,"file":"i-modal-options.d.ts","sourceRoot":"","sources":["../../../src/interface/i-modal-options/i-modal-options.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC;IAErB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -1,4 +1,5 @@
1
- import { IPSAppPFPluginRef, IPSSysPFPlugin } from '@ibiz-template/model';
1
+ import { IPSSysPFPlugin } from '@ibiz-template/model';
2
+ import { IPluginItem } from '../i-plugin-item/i-plugin-item';
2
3
  /**
3
4
  * 插件工厂
4
5
  *
@@ -27,13 +28,39 @@ export interface IPluginFactory {
27
28
  */
28
29
  loadPlugin(plugin: IPSSysPFPlugin): Promise<boolean>;
29
30
  /**
30
- * 加载应用饮用插件
31
+ * 加载应用引用插件
31
32
  *
32
33
  * @author chitanda
33
- * @date 2022-10-31 16:10:58
34
- * @param {IPSAppPFPluginRef} pluginRef
34
+ * @date 2023-02-02 15:02:58
35
+ * @param {string} rtObjectName
36
+ * @param {string} rtObjectRepo
35
37
  * @return {*} {Promise<boolean>}
36
38
  */
37
- loadPluginRef(pluginRef: IPSAppPFPluginRef): Promise<boolean>;
39
+ loadPluginRef(rtObjectName: string, rtObjectRepo: string): Promise<boolean>;
40
+ /**
41
+ * 给入应用实例,将已经加载的过插件注入。主要用于多实例的情况
42
+ *
43
+ * @author chitanda
44
+ * @date 2023-02-02 16:02:39
45
+ * @param {unknown} app
46
+ */
47
+ register(app: unknown): void;
48
+ /**
49
+ * 注册默认视图插件
50
+ *
51
+ * @author chitanda
52
+ * @date 2023-02-06 21:02:06
53
+ * @param {IPluginItem} plugin 其中 Name 将作为插件标识
54
+ */
55
+ registerPredefinedPlugin(plugin: IPluginItem): void;
56
+ /**
57
+ * 加载指定标识视图插件
58
+ *
59
+ * @author chitanda
60
+ * @date 2023-03-09 18:03:44
61
+ * @param {string} name 插件标识
62
+ * @return {*} {Promise<void>}
63
+ */
64
+ loadPredefinedPlugin(name: string): Promise<void>;
38
65
  }
39
66
  //# sourceMappingURL=i-plugin-factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i-plugin-factory.d.ts","sourceRoot":"","sources":["../../../src/interface/i-plugin-factory/i-plugin-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEzE;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;OAOG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAC7D;;;;;;;OAOG;IACH,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACrD;;;;;;;OAOG;IACH,aAAa,CAAC,SAAS,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/D"}
1
+ {"version":3,"file":"i-plugin-factory.d.ts","sourceRoot":"","sources":["../../../src/interface/i-plugin-factory/i-plugin-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;OAOG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAC7D;;;;;;;OAOG;IACH,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACrD;;;;;;;;OAQG;IACH,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5E;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B;;;;;;OAMG;IACH,wBAAwB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IACpD;;;;;;;OAOG;IACH,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnD"}
@@ -0,0 +1,28 @@
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
+ }
28
+ //# sourceMappingURL=i-plugin-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-plugin-item.d.ts","sourceRoot":"","sources":["../../../src/interface/i-plugin-item/i-plugin-item.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,3 @@
1
- import { IBizContext } from '@ibiz-template/core';
2
1
  import { IPSAppDEUIAction } from '@ibiz-template/model';
3
2
  import { IUIActionResult } from '../i-ui-action-result/i-ui-action-result';
4
3
  /**
@@ -16,12 +15,12 @@ export interface IUIActionHandler {
16
15
  * @author lxm
17
16
  * @date 2022-10-25 14:10:15
18
17
  * @param {IPSAppDEUIAction} action 界面行为模型
19
- * @param {IBizContext} context 上下文
18
+ * @param {IContext} context 上下文
20
19
  * @param {(IData[] | null)} data 数据集合
21
20
  * @param {IParams} params 视图参数
22
21
  * @param {IData} [opts] 额外参数
23
22
  * @returns {*} {Promise<IUIActionResult>}
24
23
  */
25
- exec(action: IPSAppDEUIAction, context: IBizContext, data: IData[] | null, params: IParams, opts?: IData): Promise<IUIActionResult>;
24
+ exec(action: IPSAppDEUIAction, context: IContext, data: IData[] | null, params: IParams, opts?: IData): Promise<IUIActionResult>;
26
25
  }
27
26
  //# sourceMappingURL=i-ui-action-handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i-ui-action-handler.d.ts","sourceRoot":"","sources":["../../../src/interface/i-ui-action-handler/i-ui-action-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAE3E;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;;OAWG;IACH,IAAI,CACF,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EACpB,MAAM,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,KAAK,GACX,OAAO,CAAC,eAAe,CAAC,CAAC;CAC7B"}
1
+ {"version":3,"file":"i-ui-action-handler.d.ts","sourceRoot":"","sources":["../../../src/interface/i-ui-action-handler/i-ui-action-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAE3E;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;;OAWG;IACH,IAAI,CACF,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EACpB,MAAM,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,KAAK,GACX,OAAO,CAAC,eAAe,CAAC,CAAC;CAC7B"}
@@ -23,5 +23,22 @@ export interface IUIActionResult {
23
23
  * @type {boolean}
24
24
  */
25
25
  closeView?: boolean;
26
+ /**
27
+ * 中途取消操作
28
+ *
29
+ * @author lxm
30
+ * @date 2023-02-09 06:51:37
31
+ * @type {boolean}
32
+ * @memberof IUIActionResult
33
+ */
34
+ cancel?: boolean;
35
+ /**
36
+ * 返回的数据
37
+ *
38
+ * @author chitanda
39
+ * @date 2022-08-17 18:08:20
40
+ * @type {IData[]}
41
+ */
42
+ data?: IData[];
26
43
  }
27
44
  //# sourceMappingURL=i-ui-action-result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i-ui-action-result.d.ts","sourceRoot":"","sources":["../../../src/interface/i-ui-action-result/i-ui-action-result.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
1
+ {"version":3,"file":"i-ui-action-result.d.ts","sourceRoot":"","sources":["../../../src/interface/i-ui-action-result/i-ui-action-result.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;CAChB"}
@@ -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
+ * @author lxm
26
+ * @date 2023-03-21 05:54:33
27
+ * @type {IData[]}
28
+ */
29
+ data: IData[];
30
+ }
31
+ //# sourceMappingURL=i-ui-logic-params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-ui-logic-params.d.ts","sourceRoot":"","sources":["../../../src/interface/i-ui-logic-params/i-ui-logic-params.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;;OAKG;IACH,IAAI,EAAE,KAAK,EAAE,CAAC;CACf"}
@@ -4,9 +4,13 @@ export { IModal } from './i-modal/i-modal';
4
4
  export { IModalData } from './i-modal-data/i-modal-data';
5
5
  export { IModalOptions } from './i-modal-options/i-modal-options';
6
6
  export { IPluginFactory } from './i-plugin-factory/i-plugin-factory';
7
+ export { IPluginItem } from './i-plugin-item/i-plugin-item';
7
8
  export { IUIActionResult } from './i-ui-action-result/i-ui-action-result';
8
9
  export { IUIActionHandler } from './i-ui-action-handler/i-ui-action-handler';
10
+ export { IGlobalConfig } from './i-global-config/i-global-config';
11
+ export { IUILogicParams } from './i-ui-logic-params/i-ui-logic-params';
9
12
  export * from './util';
10
13
  export * from './provider';
11
14
  export * from './register';
15
+ export * from './logic-scheduler';
12
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EACL,eAAe,EACf,SAAS,GACV,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EACL,eAAe,EACf,SAAS,GACV,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAEvE,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './util';
2
2
  export * from './provider';
3
3
  export * from './register';
4
+ export * from './logic-scheduler';
@@ -0,0 +1,35 @@
1
+ export type TriggerType = 'TIMER' | 'CTRLEVENT' | 'ITEMVISIBLE' | 'ITEMENABLE' | 'ITEMBLANK' | 'ATTRIBUTE' | 'CUSTOM' | 'VUE_DIRECTIVE';
2
+ export type LogicType = 'APPDEUILOGIC' | 'APPDEUIACTION' | 'APPUILOGIC' | 'APPVIEWLOGIC' | 'APPVIEWENGINE' | 'PFPLUGIN' | 'SCRIPT' | 'DEUILOGIC' | 'DEUIACTION' | 'SYSVIEWLOGIC';
3
+ export interface ISchedulerLogic {
4
+ /**
5
+ * 触发器类型
6
+ * @author lxm
7
+ * @date 2023-06-25 06:19:21
8
+ */
9
+ triggerType: TriggerType;
10
+ /**
11
+ * 逻辑执行类型
12
+ * @author lxm
13
+ * @date 2023-06-25 06:23:53
14
+ * @type {LogicType}
15
+ */
16
+ logicType: LogicType;
17
+ /**
18
+ * 唯一标识
19
+ * @author lxm
20
+ * @date 2023-06-25 07:13:40
21
+ * @type {string}
22
+ */
23
+ id: string;
24
+ /**
25
+ * 子项名称
26
+ * @type {string}
27
+ */
28
+ itemName?: string;
29
+ /**
30
+ * 脚本代码
31
+ * @type {string}
32
+ */
33
+ scriptCode?: string;
34
+ }
35
+ //# sourceMappingURL=i-scheduler-logic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-scheduler-logic.d.ts","sourceRoot":"","sources":["../../../src/interface/logic-scheduler/i-scheduler-logic.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GACnB,OAAO,GACP,WAAW,GACX,aAAa,GACb,YAAY,GACZ,WAAW,GACX,WAAW,GACX,QAAQ,GACR,eAAe,CAAC;AAEpB,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,eAAe,GACf,YAAY,GACZ,cAAc,GACd,eAAe,GACf,UAAU,GACV,QAAQ,GACR,WAAW,GACX,YAAY,GACZ,cAAc,CAAC;AAEnB,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,WAAW,EAAE,WAAW,CAAC;IAEzB;;;;;OAKG;IACH,SAAS,EAAE,SAAS,CAAC;IAErB;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import { TriggerType } from './i-scheduler-logic';
2
+ export interface ITriggerMatchParams {
3
+ /**
4
+ * 触发类型
5
+ * @author lxm
6
+ * @date 2023-06-26 01:34:14
7
+ * @type {TriggerType}
8
+ */
9
+ triggerType: TriggerType;
10
+ /**
11
+ * 子项名称
12
+ * @type {string}
13
+ * 来源 getItemName
14
+ */
15
+ itemName?: string;
16
+ }
17
+ //# sourceMappingURL=i-trigger-match-params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-trigger-match-params.d.ts","sourceRoot":"","sources":["../../../src/interface/logic-scheduler/i-trigger-match-params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,WAAW,mBAAmB;IAClC;;;;;OAKG;IACH,WAAW,EAAE,WAAW,CAAC;IAEzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ export type { TriggerType, ISchedulerLogic, LogicType, } from './i-scheduler-logic';
2
+ export type { ITriggerMatchParams } from './i-trigger-match-params';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/logic-scheduler/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,WAAW,EACX,eAAe,EACf,SAAS,GACV,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -23,6 +23,14 @@ export interface ModalParams {
23
23
  * @type {string}
24
24
  */
25
25
  desc?: string;
26
+ /**
27
+ * ok文本
28
+ *
29
+ * @author fzh
30
+ * @date 2023-10-18 14:04:09
31
+ * @type {string}
32
+ */
33
+ okText?: string;
26
34
  }
27
35
  /**
28
36
  * 简洁确认框
@@ -1 +1 @@
1
- {"version":3,"file":"i-modal-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-modal-util/i-modal-util.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;OAOG;IACH,IAAI,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAChD"}
1
+ {"version":3,"file":"i-modal-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-modal-util/i-modal-util.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;OAOG;IACH,IAAI,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAChD"}
@@ -1,4 +1,3 @@
1
- import { IBizContext } from '@ibiz-template/core';
2
1
  import { IPSAppView } from '@ibiz-template/model';
3
2
  import { IModalData } from '../../i-modal-data/i-modal-data';
4
3
  /**
@@ -17,53 +16,53 @@ export interface IOpenViewUtil {
17
16
  * @author chitanda
18
17
  * @date 2022-08-16 20:08:57
19
18
  * @param {IPSAppView} appView
20
- * @param {IBizContext} [context]
19
+ * @param {IContext} [context]
21
20
  * @param {IParams} [params]
22
21
  */
23
- root(appView: IPSAppView, context?: IBizContext, params?: IParams): void;
22
+ root(appView: IPSAppView, context: IContext, params?: IParams): void;
24
23
  /**
25
24
  * 打开模态视图
26
25
  *
27
26
  * @author chitanda
28
27
  * @date 2022-08-16 20:08:41
29
28
  * @param {IPSAppView} appView
30
- * @param {IBizContext} [context]
29
+ * @param {IContext} [context]
31
30
  * @param {IParams} [params]
32
31
  * @return {*} {Promise<IModalData>}
33
32
  */
34
- modal(appView: IPSAppView, context?: IBizContext, params?: IParams): Promise<IModalData>;
33
+ modal(appView: IPSAppView, context: IContext, params?: IParams): Promise<IModalData>;
35
34
  /**
36
35
  * 气泡模式打开
37
36
  *
38
37
  * @author chitanda
39
38
  * @date 2022-08-16 20:08:22
40
39
  * @param {IPSAppView} appView
41
- * @param {IBizContext} [context]
40
+ * @param {IContext} [context]
42
41
  * @param {IParams} [params]
43
42
  * @return {*} {Promise<IModalData>}
44
43
  */
45
- popover(appView: IPSAppView, event: MouseEvent, context?: IBizContext, params?: IParams): Promise<IModalData>;
44
+ popover(appView: IPSAppView, event: MouseEvent, context: IContext, params?: IParams): Promise<IModalData>;
46
45
  /**
47
46
  * 抽屉模式打开
48
47
  *
49
48
  * @author chitanda
50
49
  * @date 2022-08-16 20:08:46
51
50
  * @param {IPSAppView} appView
52
- * @param {IBizContext} [context]
51
+ * @param {IContext} [context]
53
52
  * @param {IParams} [params]
54
53
  * @return {*} {Promise<IModalData>}
55
54
  */
56
- drawer(appView: IPSAppView, context?: IBizContext, params?: IParams): Promise<IModalData>;
55
+ drawer(appView: IPSAppView, context: IContext, params?: IParams): Promise<IModalData>;
57
56
  /**
58
57
  * 自定义打开方式
59
58
  *
60
59
  * @author chitanda
61
60
  * @date 2022-08-16 20:08:29
62
61
  * @param {IPSAppView} appView
63
- * @param {IBizContext} [context]
62
+ * @param {IContext} [context]
64
63
  * @param {IParams} [params]
65
64
  * @return {*} {Promise<IModalData>}
66
65
  */
67
- custom(appView: IPSAppView, context?: IBizContext, params?: IParams): Promise<IModalData>;
66
+ custom(appView: IPSAppView, context: IContext, params?: IParams): Promise<IModalData>;
68
67
  }
69
68
  //# sourceMappingURL=i-open-view-util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i-open-view-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-open-view-util/i-open-view-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D;;;;;;;;GAQG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEzE;;;;;;;;;OASG;IACH,KAAK,CACH,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvB;;;;;;;;;OASG;IACH,OAAO,CACL,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,UAAU,EACjB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvB;;;;;;;;;OASG;IACH,MAAM,CACJ,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvB;;;;;;;;;OASG;IACH,MAAM,CACJ,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC,CAAC;CACxB"}
1
+ {"version":3,"file":"i-open-view-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-open-view-util/i-open-view-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D;;;;;;;;GAQG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAErE;;;;;;;;;OASG;IACH,KAAK,CACH,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvB;;;;;;;;;OASG;IACH,OAAO,CACL,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvB;;;;;;;;;OASG;IACH,MAAM,CACJ,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvB;;;;;;;;;OASG;IACH,MAAM,CACJ,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC,CAAC;CACxB"}
@@ -0,0 +1,34 @@
1
+ import type { ISchedulerLogic } from '../../interface';
2
+ import { LogicExecutor } from './logic-executor';
3
+ /**
4
+ * 逻辑执行工厂
5
+ * @author lxm
6
+ * @date 2023-06-25 06:37:54
7
+ * @export
8
+ * @class LogicExecutorFactory
9
+ */
10
+ export declare class LogicExecutorFactory {
11
+ /**
12
+ * 构造回调方法集合
13
+ * @author lxm
14
+ * @date 2023-06-25 06:53:31
15
+ */
16
+ constructorMap: Map<string, (logic: ISchedulerLogic) => LogicExecutor>;
17
+ /**
18
+ * 注册
19
+ * @author lxm
20
+ * @date 2023-06-25 06:54:17
21
+ * @param {string} key 注册标识
22
+ * @param {(logic: ISchedulerLogic) => LogicExecutor} callback
23
+ */
24
+ register(key: string, callback: (logic: ISchedulerLogic) => LogicExecutor): void;
25
+ /**
26
+ * 创建执行器实例
27
+ * @author lxm
28
+ * @date 2023-06-25 06:59:51
29
+ * @param {ISchedulerLogic} logic
30
+ * @return {*}
31
+ */
32
+ createExecutor(logic: ISchedulerLogic): LogicExecutor;
33
+ }
34
+ //# sourceMappingURL=logic-executor-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logic-executor-factory.d.ts","sourceRoot":"","sources":["../../../src/logic-scheduler/executor/logic-executor-factory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;;GAMG;AACH,qBAAa,oBAAoB;IAC/B;;;;OAIG;IACH,cAAc,sBAA2B,eAAe,KAAK,aAAa,EAAI;IAE9E;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,aAAa;IAIzE;;;;;;OAMG;IACH,cAAc,CAAC,KAAK,EAAE,eAAe;CAUtC"}
@@ -0,0 +1,42 @@
1
+ import { UnsupportedModelError } from '@ibiz-template/model';
2
+ /**
3
+ * 逻辑执行工厂
4
+ * @author lxm
5
+ * @date 2023-06-25 06:37:54
6
+ * @export
7
+ * @class LogicExecutorFactory
8
+ */
9
+ export class LogicExecutorFactory {
10
+ constructor() {
11
+ /**
12
+ * 构造回调方法集合
13
+ * @author lxm
14
+ * @date 2023-06-25 06:53:31
15
+ */
16
+ this.constructorMap = new Map();
17
+ }
18
+ /**
19
+ * 注册
20
+ * @author lxm
21
+ * @date 2023-06-25 06:54:17
22
+ * @param {string} key 注册标识
23
+ * @param {(logic: ISchedulerLogic) => LogicExecutor} callback
24
+ */
25
+ register(key, callback) {
26
+ this.constructorMap.set(key, callback);
27
+ }
28
+ /**
29
+ * 创建执行器实例
30
+ * @author lxm
31
+ * @date 2023-06-25 06:59:51
32
+ * @param {ISchedulerLogic} logic
33
+ * @return {*}
34
+ */
35
+ createExecutor(logic) {
36
+ const constructor = this.constructorMap.get(logic.logicType);
37
+ if (!constructor) {
38
+ throw new UnsupportedModelError(logic, `逻辑类型 ${logic.logicType} 暂未支持!`);
39
+ }
40
+ return constructor(logic);
41
+ }
42
+ }
@@ -0,0 +1,32 @@
1
+ import type { ISchedulerLogic, IUILogicParams, LogicType } from '../../interface';
2
+ /**
3
+ * 逻辑执行器实例
4
+ * @author lxm
5
+ * @date 2023-06-25 06:07:24
6
+ * @export
7
+ * @class LogicExecutor
8
+ */
9
+ export declare class LogicExecutor {
10
+ protected logic: ISchedulerLogic;
11
+ /**
12
+ * 执行逻辑类型
13
+ * @author lxm
14
+ * @date 2023-06-25 07:32:04
15
+ */
16
+ type: LogicType;
17
+ /**
18
+ * @author lxm
19
+ * @date 2023-06-25 07:32:57
20
+ * @param {ISchedulerLogic} logic 逻辑
21
+ */
22
+ constructor(logic: ISchedulerLogic);
23
+ /**
24
+ * 执行逻辑
25
+ * @author lxm
26
+ * @date 2023-06-26 02:55:40
27
+ * @param {IUILogicParams} _executeParams 执行参数
28
+ * @return {*} {*}
29
+ */
30
+ execute(_executeParams: IUILogicParams): any;
31
+ }
32
+ //# sourceMappingURL=logic-executor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logic-executor.d.ts","sourceRoot":"","sources":["../../../src/logic-scheduler/executor/logic-executor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,SAAS,EACV,MAAM,iBAAiB,CAAC;AAEzB;;;;;;GAMG;AACH,qBAAa,aAAa;IAaZ,SAAS,CAAC,KAAK,EAAE,eAAe;IAZ5C;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;;;OAIG;gBACmB,KAAK,EAAE,eAAe;IAI5C;;;;;;OAMG;IAEH,OAAO,CAAC,cAAc,EAAE,cAAc,GAAG,GAAG;CAG7C"}
@@ -0,0 +1,30 @@
1
+ import { RuntimeError } from '@ibiz-template/core';
2
+ /**
3
+ * 逻辑执行器实例
4
+ * @author lxm
5
+ * @date 2023-06-25 06:07:24
6
+ * @export
7
+ * @class LogicExecutor
8
+ */
9
+ export class LogicExecutor {
10
+ /**
11
+ * @author lxm
12
+ * @date 2023-06-25 07:32:57
13
+ * @param {ISchedulerLogic} logic 逻辑
14
+ */
15
+ constructor(logic) {
16
+ this.logic = logic;
17
+ this.type = logic.logicType;
18
+ }
19
+ /**
20
+ * 执行逻辑
21
+ * @author lxm
22
+ * @date 2023-06-26 02:55:40
23
+ * @param {IUILogicParams} _executeParams 执行参数
24
+ * @return {*} {*}
25
+ */
26
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
27
+ execute(_executeParams) {
28
+ throw new RuntimeError('Method not implemented.');
29
+ }
30
+ }
@@ -0,0 +1,39 @@
1
+ import { IUILogicParams } from '../../interface';
2
+ import { LogicExecutor } from './logic-executor';
3
+ /**
4
+ * 脚本代码执行器
5
+ * @author lxm
6
+ * @date 2023-06-25 08:36:00
7
+ * @export
8
+ * @class ScriptExecutor
9
+ * @extends {LogicExecutor}
10
+ */
11
+ export declare class ScriptExecutor extends LogicExecutor {
12
+ type: 'SCRIPT';
13
+ scriptFn?: Function;
14
+ /**
15
+ * 是否单行返回,脚本只是单行的且默认把值返回
16
+ * @author lxm
17
+ * @date 2023-06-25 10:06:32
18
+ * @type {boolean}
19
+ */
20
+ isRowReturn: boolean;
21
+ /**
22
+ * 执行参数转换成脚本执行作用域参数
23
+ * @author lxm
24
+ * @date 2023-06-26 03:29:24
25
+ * @param {IUILogicParams} _executeParams
26
+ * @return {*} {IData[]}
27
+ */
28
+ convertScriptArgs(_executeParams: IUILogicParams): IData[];
29
+ /**
30
+ * 初始化脚本执行器
31
+ * @author lxm
32
+ * @date 2023-06-26 03:27:50
33
+ * @param {string[]} paramKeys 脚本作用域参数键值和顺序
34
+ * @param {(executeParams: IUILogicParams) => IData[]} convertFun 脚本参数转换方法
35
+ */
36
+ init(paramKeys: string[], convertFun: (executeParams: IUILogicParams) => IData[]): void;
37
+ execute(executeParams: IUILogicParams): any;
38
+ }
39
+ //# sourceMappingURL=script-executor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"script-executor.d.ts","sourceRoot":"","sources":["../../../src/logic-scheduler/executor/script-executor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;;;GAOG;AACH,qBAAa,cAAe,SAAQ,aAAa;IACvC,IAAI,EAAE,QAAQ,CAAC;IAGvB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;;;OAKG;IACH,WAAW,EAAE,OAAO,CAAS;IAE7B;;;;;;OAMG;IACH,iBAAiB,CAAC,cAAc,EAAE,cAAc,GAAG,KAAK,EAAE;IAI1D;;;;;;OAMG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EAAE,EACnB,UAAU,EAAE,CAAC,aAAa,EAAE,cAAc,KAAK,KAAK,EAAE;IAYxD,OAAO,CAAC,aAAa,EAAE,cAAc,GAAG,GAAG;CAI5C"}