@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.
- package/dist/system/index.system.js +1 -0
- package/out/command/app/app-func/app-func.d.ts +10 -11
- package/out/command/app/app-func/app-func.d.ts.map +1 -1
- package/out/command/app/app-func/app-func.js +22 -23
- package/out/command/app/open-app-view/open-app-view.d.ts +12 -24
- package/out/command/app/open-app-view/open-app-view.d.ts.map +1 -1
- package/out/command/app/open-app-view/open-app-view.js +12 -24
- package/out/config/global-config.d.ts +18 -0
- package/out/config/global-config.d.ts.map +1 -0
- package/out/config/global-config.js +18 -0
- package/out/index.d.ts +4 -1
- package/out/index.d.ts.map +1 -1
- package/out/index.js +4 -1
- package/out/install.d.ts.map +1 -1
- package/out/install.js +11 -2
- package/out/interface/i-drawer-options/i-drawer-options.d.ts +29 -0
- package/out/interface/i-drawer-options/i-drawer-options.d.ts.map +1 -0
- package/out/interface/i-global-config/i-global-config.d.ts +62 -0
- package/out/interface/i-global-config/i-global-config.d.ts.map +1 -0
- package/out/interface/i-modal/i-modal.d.ts +7 -0
- package/out/interface/i-modal/i-modal.d.ts.map +1 -1
- package/out/interface/i-modal-data/i-modal-data.d.ts +1 -1
- package/out/interface/i-modal-data/i-modal-data.d.ts.map +1 -1
- package/out/interface/i-modal-options/i-modal-options.d.ts +43 -0
- package/out/interface/i-modal-options/i-modal-options.d.ts.map +1 -0
- package/out/interface/i-modal-options/i-modal-options.js +1 -0
- package/out/interface/i-plugin-factory/i-plugin-factory.d.ts +66 -0
- package/out/interface/i-plugin-factory/i-plugin-factory.d.ts.map +1 -0
- package/out/interface/i-plugin-factory/i-plugin-factory.js +1 -0
- package/out/interface/i-plugin-item/i-plugin-item.d.ts +28 -0
- package/out/interface/i-plugin-item/i-plugin-item.d.ts.map +1 -0
- package/out/interface/i-plugin-item/i-plugin-item.js +1 -0
- package/out/interface/i-popover-options/i-popover-options.d.ts +84 -0
- package/out/interface/i-popover-options/i-popover-options.d.ts.map +1 -0
- package/out/interface/i-popover-options/i-popover-options.js +1 -0
- package/out/interface/i-ui-action-handler/i-ui-action-handler.d.ts +26 -0
- package/out/interface/i-ui-action-handler/i-ui-action-handler.d.ts.map +1 -0
- package/out/interface/i-ui-action-handler/i-ui-action-handler.js +1 -0
- package/out/interface/i-ui-action-result/i-ui-action-result.d.ts +17 -0
- package/out/interface/i-ui-action-result/i-ui-action-result.d.ts.map +1 -1
- package/out/interface/i-ui-logic-params/i-ui-logic-params.d.ts +31 -0
- package/out/interface/i-ui-logic-params/i-ui-logic-params.d.ts.map +1 -0
- package/out/interface/i-ui-logic-params/i-ui-logic-params.js +1 -0
- package/out/interface/index.d.ts +11 -3
- package/out/interface/index.d.ts.map +1 -1
- package/out/interface/index.js +3 -3
- package/out/interface/logic-scheduler/i-scheduler-logic.d.ts +35 -0
- package/out/interface/logic-scheduler/i-scheduler-logic.d.ts.map +1 -0
- package/out/interface/logic-scheduler/i-scheduler-logic.js +1 -0
- package/out/interface/logic-scheduler/i-trigger-match-params.d.ts +17 -0
- package/out/interface/logic-scheduler/i-trigger-match-params.d.ts.map +1 -0
- package/out/interface/logic-scheduler/i-trigger-match-params.js +1 -0
- package/out/interface/logic-scheduler/index.d.ts +3 -0
- package/out/interface/logic-scheduler/index.d.ts.map +1 -0
- package/out/interface/logic-scheduler/index.js +1 -0
- package/out/interface/provider/i-ui-action-provider.d.ts +20 -0
- package/out/interface/provider/i-ui-action-provider.d.ts.map +1 -0
- package/out/interface/provider/i-ui-action-provider.js +1 -0
- package/out/interface/provider/index.d.ts +2 -0
- package/out/interface/provider/index.d.ts.map +1 -0
- package/out/interface/provider/index.js +1 -0
- package/out/interface/register/i-register.d.ts +8 -1
- package/out/interface/register/i-register.d.ts.map +1 -1
- package/out/interface/register/i-ui-action-register.d.ts +15 -0
- package/out/interface/register/i-ui-action-register.d.ts.map +1 -0
- package/out/interface/register/i-ui-action-register.js +1 -0
- package/out/interface/register/index.d.ts +3 -0
- package/out/interface/register/index.d.ts.map +1 -0
- package/out/interface/register/index.js +2 -0
- package/out/interface/util/i-loading-util/i-loading-util.d.ts +14 -0
- package/out/interface/util/i-loading-util/i-loading-util.d.ts.map +1 -1
- package/out/interface/util/i-modal-util/i-modal-util.d.ts +8 -0
- package/out/interface/util/i-modal-util/i-modal-util.d.ts.map +1 -1
- package/out/interface/util/i-open-view-util/i-open-view-util.d.ts +10 -11
- package/out/interface/util/i-open-view-util/i-open-view-util.d.ts.map +1 -1
- package/out/interface/util/i-overlay-container/i-overlay-container.d.ts +37 -0
- package/out/interface/util/i-overlay-container/i-overlay-container.d.ts.map +1 -0
- package/out/interface/util/i-overlay-container/i-overlay-container.js +1 -0
- package/out/interface/util/i-overlay-controller/i-overlay-controller.d.ts +86 -0
- package/out/interface/util/i-overlay-controller/i-overlay-controller.d.ts.map +1 -0
- package/out/interface/util/i-overlay-controller/i-overlay-controller.js +1 -0
- package/out/interface/util/i-overlay-popover-container/i-overlay-popover-container.d.ts +23 -0
- package/out/interface/util/i-overlay-popover-container/i-overlay-popover-container.d.ts.map +1 -0
- package/out/interface/util/i-overlay-popover-container/i-overlay-popover-container.js +1 -0
- package/out/interface/util/index.d.ts +3 -0
- package/out/interface/util/index.d.ts.map +1 -1
- package/out/logic-scheduler/executor/logic-executor-factory.d.ts +34 -0
- package/out/logic-scheduler/executor/logic-executor-factory.d.ts.map +1 -0
- package/out/logic-scheduler/executor/logic-executor-factory.js +42 -0
- package/out/logic-scheduler/executor/logic-executor.d.ts +32 -0
- package/out/logic-scheduler/executor/logic-executor.d.ts.map +1 -0
- package/out/logic-scheduler/executor/logic-executor.js +30 -0
- package/out/logic-scheduler/executor/script-executor.d.ts +39 -0
- package/out/logic-scheduler/executor/script-executor.d.ts.map +1 -0
- package/out/logic-scheduler/executor/script-executor.js +53 -0
- package/out/logic-scheduler/index.d.ts +12 -0
- package/out/logic-scheduler/index.d.ts.map +1 -0
- package/out/logic-scheduler/index.js +17 -0
- package/out/logic-scheduler/logic-scheduler-center.d.ts +45 -0
- package/out/logic-scheduler/logic-scheduler-center.d.ts.map +1 -0
- package/out/logic-scheduler/logic-scheduler-center.js +49 -0
- package/out/logic-scheduler/scheduler/control-logic-scheduler.d.ts +14 -0
- package/out/logic-scheduler/scheduler/control-logic-scheduler.d.ts.map +1 -0
- package/out/logic-scheduler/scheduler/control-logic-scheduler.js +16 -0
- package/out/logic-scheduler/scheduler/logic-scheduler.d.ts +105 -0
- package/out/logic-scheduler/scheduler/logic-scheduler.d.ts.map +1 -0
- package/out/logic-scheduler/scheduler/logic-scheduler.js +148 -0
- package/out/logic-scheduler/scheduler/view-logic-scheduler.d.ts +14 -0
- package/out/logic-scheduler/scheduler/view-logic-scheduler.d.ts.map +1 -0
- package/out/logic-scheduler/scheduler/view-logic-scheduler.js +14 -0
- package/out/logic-scheduler/trigger/item-dyna-logic-trigger.d.ts +12 -0
- package/out/logic-scheduler/trigger/item-dyna-logic-trigger.d.ts.map +1 -0
- package/out/logic-scheduler/trigger/item-dyna-logic-trigger.js +26 -0
- package/out/logic-scheduler/trigger/logic-trigger-factory.d.ts +34 -0
- package/out/logic-scheduler/trigger/logic-trigger-factory.d.ts.map +1 -0
- package/out/logic-scheduler/trigger/logic-trigger-factory.js +42 -0
- package/out/logic-scheduler/trigger/logic-trigger.d.ts +55 -0
- package/out/logic-scheduler/trigger/logic-trigger.d.ts.map +1 -0
- package/out/logic-scheduler/trigger/logic-trigger.js +52 -0
- package/out/plugin/index.d.ts +3 -0
- package/out/plugin/index.d.ts.map +1 -0
- package/out/plugin/index.js +2 -0
- package/out/plugin/plugin-static-resource/plugin-static-resource.d.ts +55 -0
- package/out/plugin/plugin-static-resource/plugin-static-resource.d.ts.map +1 -0
- package/out/plugin/plugin-static-resource/plugin-static-resource.js +67 -0
- package/out/plugin/remote-plugin-item/remote-plugin-item.d.ts +111 -0
- package/out/plugin/remote-plugin-item/remote-plugin-item.d.ts.map +1 -0
- package/out/plugin/remote-plugin-item/remote-plugin-item.js +24 -0
- package/out/provider/index.d.ts +2 -0
- package/out/provider/index.d.ts.map +1 -0
- package/out/provider/index.js +1 -0
- package/out/provider/ui-action/backend-ui-action-provider.d.ts +15 -0
- package/out/provider/ui-action/backend-ui-action-provider.d.ts.map +1 -0
- package/out/provider/ui-action/backend-ui-action-provider.js +18 -0
- package/out/provider/ui-action/common-sys-ui-action-provider.d.ts +15 -0
- package/out/provider/ui-action/common-sys-ui-action-provider.d.ts.map +1 -0
- package/out/provider/ui-action/common-sys-ui-action-provider.js +18 -0
- package/out/provider/ui-action/front-ui-action-provider.d.ts +15 -0
- package/out/provider/ui-action/front-ui-action-provider.d.ts.map +1 -0
- package/out/provider/ui-action/front-ui-action-provider.js +18 -0
- package/out/provider/ui-action/index.d.ts +14 -0
- package/out/provider/ui-action/index.d.ts.map +1 -0
- package/out/provider/ui-action/index.js +48 -0
- package/out/provider/ui-action/wf-withdraw-ui-action-provider.d.ts +15 -0
- package/out/provider/ui-action/wf-withdraw-ui-action-provider.d.ts.map +1 -0
- package/out/provider/ui-action/wf-withdraw-ui-action-provider.js +18 -0
- package/out/register/index.d.ts +4 -0
- package/out/register/index.d.ts.map +1 -0
- package/out/register/index.js +3 -0
- package/out/register/register-base.d.ts +18 -0
- package/out/register/register-base.d.ts.map +1 -0
- package/out/register/register-base.js +24 -0
- package/out/register/register-center.d.ts +20 -0
- package/out/register/register-center.d.ts.map +1 -0
- package/out/register/register-center.js +21 -0
- package/out/register/ui-action-register.d.ts +17 -0
- package/out/register/ui-action-register.d.ts.map +1 -0
- package/out/register/ui-action-register.js +41 -0
- package/out/types.d.ts +35 -3
- package/out/types.d.ts.map +1 -1
- package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts +0 -59
- package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts.map +1 -1
- package/out/utils/app-de-ui-action-util/app-de-ui-action-util.js +3 -240
- package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.d.ts +16 -0
- package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.d.ts.map +1 -0
- package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.js +31 -0
- package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.d.ts +16 -0
- package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.d.ts.map +1 -0
- package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.js +103 -0
- package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.d.ts +16 -0
- package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.d.ts.map +1 -0
- package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.js +47 -0
- package/out/utils/app-de-ui-action-util/handler/index.d.ts +6 -0
- package/out/utils/app-de-ui-action-util/handler/index.d.ts.map +1 -0
- package/out/utils/app-de-ui-action-util/handler/index.js +5 -0
- package/out/utils/app-de-ui-action-util/handler/ui-action-handler.d.ts +72 -0
- package/out/utils/app-de-ui-action-util/handler/ui-action-handler.d.ts.map +1 -0
- package/out/utils/app-de-ui-action-util/handler/ui-action-handler.js +166 -0
- package/out/utils/app-de-ui-action-util/handler/wf-withdraw-handler.d.ts +16 -0
- package/out/utils/app-de-ui-action-util/handler/wf-withdraw-handler.d.ts.map +1 -0
- package/out/utils/app-de-ui-action-util/handler/wf-withdraw-handler.js +27 -0
- package/out/utils/app-de-ui-action-util/index.d.ts +3 -0
- package/out/utils/app-de-ui-action-util/index.d.ts.map +1 -0
- package/out/utils/app-de-ui-action-util/index.js +2 -0
- package/out/utils/index.d.ts +4 -1
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +4 -1
- package/out/utils/nav-params/calc-nav-params.d.ts +29 -0
- package/out/utils/nav-params/calc-nav-params.d.ts.map +1 -0
- package/out/utils/nav-params/calc-nav-params.js +34 -0
- package/out/utils/nav-params/nav-params.d.ts +20 -1
- package/out/utils/nav-params/nav-params.d.ts.map +1 -1
- package/out/utils/nav-params/nav-params.js +58 -4
- package/out/utils/open-redirect-view/open-redirect-view.d.ts +54 -0
- package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -0
- package/out/utils/open-redirect-view/open-redirect-view.js +232 -0
- package/out/utils/wf-helper/wf-helper.d.ts +9 -0
- package/out/utils/wf-helper/wf-helper.d.ts.map +1 -0
- package/out/utils/wf-helper/wf-helper.js +14 -0
- package/out/view-logic/view-logic.d.ts.map +1 -1
- package/out/view-logic/view-logic.js +111 -32
- package/package.json +27 -16
- package/src/command/app/app-func/app-func.ts +27 -27
- package/src/command/app/open-app-view/open-app-view.ts +24 -41
- package/src/config/global-config.ts +22 -0
- package/src/index.ts +4 -1
- package/src/install.ts +11 -2
- package/src/interface/i-drawer-options/i-drawer-options.ts +28 -0
- package/src/interface/i-global-config/i-global-config.ts +65 -0
- package/src/interface/i-modal/i-modal.ts +8 -0
- package/src/interface/i-modal-data/i-modal-data.ts +1 -1
- package/src/interface/i-modal-options/i-modal-options.ts +44 -0
- package/src/interface/i-plugin-factory/i-plugin-factory.ts +66 -0
- package/src/interface/i-plugin-item/i-plugin-item.ts +27 -0
- package/src/interface/i-popover-options/i-popover-options.ts +85 -0
- package/src/interface/i-ui-action-handler/i-ui-action-handler.ts +32 -0
- package/src/interface/i-ui-action-result/i-ui-action-result.ts +20 -0
- package/src/interface/i-ui-logic-params/i-ui-logic-params.ts +31 -0
- package/src/interface/index.ts +15 -3
- package/src/interface/logic-scheduler/i-scheduler-logic.ts +58 -0
- package/src/interface/logic-scheduler/i-trigger-match-params.ts +18 -0
- package/src/interface/logic-scheduler/index.ts +7 -0
- package/src/interface/provider/i-ui-action-provider.ts +20 -0
- package/src/interface/provider/index.ts +1 -0
- package/src/interface/register/i-register.ts +8 -1
- package/src/interface/register/i-ui-action-register.ts +15 -0
- package/src/interface/register/index.ts +2 -0
- package/src/interface/util/i-loading-util/i-loading-util.ts +14 -0
- package/src/interface/util/i-modal-util/i-modal-util.ts +8 -0
- package/src/interface/util/i-open-view-util/i-open-view-util.ts +11 -11
- package/src/interface/util/i-overlay-container/i-overlay-container.ts +38 -0
- package/src/interface/util/i-overlay-controller/i-overlay-controller.ts +116 -0
- package/src/interface/util/i-overlay-popover-container/i-overlay-popover-container.ts +23 -0
- package/src/interface/util/index.ts +3 -0
- package/src/logic-scheduler/executor/logic-executor-factory.ts +48 -0
- package/src/logic-scheduler/executor/logic-executor.ts +43 -0
- package/src/logic-scheduler/executor/script-executor.ts +63 -0
- package/src/logic-scheduler/index.ts +41 -0
- package/src/logic-scheduler/logic-scheduler-center.ts +52 -0
- package/src/logic-scheduler/scheduler/control-logic-scheduler.ts +21 -0
- package/src/logic-scheduler/scheduler/logic-scheduler.ts +192 -0
- package/src/logic-scheduler/scheduler/view-logic-scheduler.ts +17 -0
- package/src/logic-scheduler/trigger/item-dyna-logic-trigger.ts +41 -0
- package/src/logic-scheduler/trigger/logic-trigger-factory.ts +48 -0
- package/src/logic-scheduler/trigger/logic-trigger.ts +77 -0
- package/src/plugin/index.ts +5 -0
- package/src/plugin/plugin-static-resource/plugin-static-resource.ts +80 -0
- package/src/plugin/remote-plugin-item/remote-plugin-item.ts +118 -0
- package/src/provider/index.ts +1 -0
- package/src/provider/ui-action/backend-ui-action-provider.ts +22 -0
- package/src/provider/ui-action/common-sys-ui-action-provider.ts +22 -0
- package/src/provider/ui-action/front-ui-action-provider.ts +22 -0
- package/src/provider/ui-action/index.ts +56 -0
- package/src/provider/ui-action/wf-withdraw-ui-action-provider.ts +22 -0
- package/src/register/index.ts +3 -0
- package/src/register/register-base.ts +27 -0
- package/src/register/register-center.ts +20 -0
- package/src/register/ui-action-register.ts +48 -0
- package/src/types.ts +39 -3
- package/src/utils/app-de-ui-action-util/app-de-ui-action-util.ts +4 -329
- package/src/utils/app-de-ui-action-util/handler/backend-ui-action-handler.ts +51 -0
- package/src/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.ts +124 -0
- package/src/utils/app-de-ui-action-util/handler/front-ui-action-handler.ts +69 -0
- package/src/utils/app-de-ui-action-util/handler/index.ts +5 -0
- package/src/utils/app-de-ui-action-util/handler/ui-action-handler.ts +253 -0
- package/src/utils/app-de-ui-action-util/handler/wf-withdraw-handler.ts +36 -0
- package/src/utils/app-de-ui-action-util/index.ts +2 -0
- package/src/utils/index.ts +7 -1
- package/src/utils/nav-params/calc-nav-params.ts +59 -0
- package/src/utils/nav-params/nav-params.ts +66 -5
- package/src/utils/open-redirect-view/open-redirect-view.ts +308 -0
- package/src/utils/wf-helper/wf-helper.ts +14 -0
- package/src/view-logic/view-logic.ts +123 -30
- package/LICENSE +0 -21
- package/out/interface/provider/i-editor-provider.d.ts +0 -38
- package/out/interface/provider/i-editor-provider.d.ts.map +0 -1
- package/out/interface/register/i-editor-register.d.ts +0 -23
- package/out/interface/register/i-editor-register.d.ts.map +0 -1
- package/out/register/register.d.ts +0 -20
- package/out/register/register.d.ts.map +0 -1
- package/out/register/register.js +0 -10
- package/src/interface/provider/i-editor-provider.ts +0 -44
- package/src/interface/register/i-editor-register.ts +0 -23
- package/src/register/register.ts +0 -20
- /package/out/interface/{provider/i-editor-provider.js → i-drawer-options/i-drawer-options.js} +0 -0
- /package/out/interface/{register/i-editor-register.js → i-global-config/i-global-config.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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
|
|
33
|
+
context: IContext,
|
|
34
34
|
params: IParams = {},
|
|
35
|
-
|
|
35
|
+
opts: IData = {},
|
|
36
36
|
): Promise<IModalData | void> {
|
|
37
37
|
await appView.fill(true);
|
|
38
38
|
if (appView.redirectView) {
|
|
39
|
-
return
|
|
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 {
|
|
77
|
+
* @param {IContext} [context]
|
|
96
78
|
* @param {IParams} [params={}]
|
|
97
79
|
*/
|
|
98
80
|
protected openIndexViewTab(
|
|
99
81
|
appView: IPSAppView,
|
|
100
|
-
context
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
-
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 './
|
|
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 {
|
|
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
|
|
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
|
+
}
|
|
@@ -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
|
+
}
|
package/src/interface/index.ts
CHANGED
|
@@ -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
|
|
6
|
-
export * from './register
|
|
7
|
-
export * from './
|
|
17
|
+
export * from './provider';
|
|
18
|
+
export * from './register';
|
|
19
|
+
export * from './logic-scheduler';
|