@ibiz-template/runtime 0.0.1-alpha.9 → 0.0.1-beta.16
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.js +3 -3
- package/out/command/app/open-app-view/open-app-view.d.ts +2 -13
- 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 +6 -18
- package/out/config/global-config.d.ts +14 -0
- package/out/config/global-config.d.ts.map +1 -0
- package/out/config/global-config.js +14 -0
- package/out/index.d.ts +3 -1
- package/out/index.d.ts.map +1 -1
- package/out/index.js +3 -1
- package/out/install.d.ts.map +1 -1
- package/out/install.js +8 -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/{provider/i-editor-provider.js → i-drawer-options/i-drawer-options.js} +0 -0
- package/out/interface/i-global-config/i-global-config.d.ts +21 -0
- package/out/interface/i-global-config/i-global-config.d.ts.map +1 -0
- package/out/interface/{register/i-editor-register.js → i-global-config/i-global-config.js} +0 -0
- 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 +39 -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-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 +27 -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/index.d.ts +8 -3
- package/out/interface/index.d.ts.map +1 -1
- package/out/interface/index.js +2 -3
- 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-open-view-util/i-open-view-util.d.ts +1 -1
- 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/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 +37 -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 +31 -0
- package/out/plugin/remote-plugin-item/remote-plugin-item.d.ts +102 -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 +22 -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 +27 -3
- package/out/types.d.ts.map +1 -1
- package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts +3 -61
- 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 +4 -241
- package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.d.ts +17 -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 +28 -0
- package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.d.ts +17 -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 +17 -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 +24 -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 +82 -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 +144 -0
- package/out/utils/app-de-ui-action-util/handler/wf-withdraw-handler.d.ts +17 -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 +2 -1
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +2 -1
- package/out/utils/nav-params/nav-params.js +4 -4
- package/out/utils/open-redirect-view/open-redirect-view.d.ts +43 -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 +139 -0
- package/out/view-logic/view-logic.d.ts +7 -6
- package/out/view-logic/view-logic.d.ts.map +1 -1
- package/out/view-logic/view-logic.js +19 -13
- package/package.json +25 -16
- package/src/command/app/app-func/app-func.ts +3 -3
- package/src/command/app/open-app-view/open-app-view.ts +12 -28
- package/src/config/global-config.ts +14 -0
- package/src/index.ts +3 -1
- package/src/install.ts +8 -2
- package/src/interface/i-drawer-options/i-drawer-options.ts +28 -0
- package/src/interface/i-global-config/i-global-config.ts +20 -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 +39 -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 +33 -0
- package/src/interface/index.ts +12 -3
- 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-open-view-util/i-open-view-util.ts +1 -0
- 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/plugin/index.ts +5 -0
- package/src/plugin/plugin-static-resource/plugin-static-resource.ts +42 -0
- package/src/plugin/remote-plugin-item/remote-plugin-item.ts +107 -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 +30 -3
- package/src/utils/app-de-ui-action-util/app-de-ui-action-util.ts +6 -330
- package/src/utils/app-de-ui-action-util/handler/backend-ui-action-handler.ts +43 -0
- package/src/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.ts +125 -0
- package/src/utils/app-de-ui-action-util/handler/front-ui-action-handler.ts +46 -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 +216 -0
- package/src/utils/app-de-ui-action-util/handler/wf-withdraw-handler.ts +37 -0
- package/src/utils/app-de-ui-action-util/index.ts +2 -0
- package/src/utils/index.ts +2 -1
- package/src/utils/nav-params/nav-params.ts +4 -4
- package/src/utils/open-redirect-view/open-redirect-view.ts +180 -0
- package/src/view-logic/view-logic.ts +30 -17
- 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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BackendUIActionProvider } from './backend-ui-action-provider';
|
|
2
|
+
import { CommonSysUIActionProvider } from './common-sys-ui-action-provider';
|
|
3
|
+
import { FrontUIActionProvider } from './front-ui-action-provider';
|
|
4
|
+
import { WFWithdrawUIActionProvider } from './wf-withdraw-ui-action-provider';
|
|
5
|
+
/**
|
|
6
|
+
* 预置默认的界面行为适配器
|
|
7
|
+
*
|
|
8
|
+
* @author lxm
|
|
9
|
+
* @date 2022-09-19 22:09:50
|
|
10
|
+
* @export
|
|
11
|
+
*/
|
|
12
|
+
export declare function presetUIActionProvider(): void;
|
|
13
|
+
export { FrontUIActionProvider, CommonSysUIActionProvider, BackendUIActionProvider, WFWithdrawUIActionProvider, };
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/ui-action/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAE9E;;;;;;GAMG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAoC7C;AAED,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,GAC3B,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BackendUIActionProvider } from './backend-ui-action-provider';
|
|
2
|
+
import { CommonSysUIActionProvider } from './common-sys-ui-action-provider';
|
|
3
|
+
import { FrontUIActionProvider } from './front-ui-action-provider';
|
|
4
|
+
import { WFWithdrawUIActionProvider } from './wf-withdraw-ui-action-provider';
|
|
5
|
+
/**
|
|
6
|
+
* 预置默认的界面行为适配器
|
|
7
|
+
*
|
|
8
|
+
* @author lxm
|
|
9
|
+
* @date 2022-09-19 22:09:50
|
|
10
|
+
* @export
|
|
11
|
+
*/
|
|
12
|
+
export function presetUIActionProvider() {
|
|
13
|
+
const { uiAction } = ibiz.register;
|
|
14
|
+
if (!uiAction) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
// *前台调用
|
|
18
|
+
uiAction.register('FRONT', new FrontUIActionProvider());
|
|
19
|
+
// *后台调用
|
|
20
|
+
uiAction.register('BACKEND', new BackendUIActionProvider());
|
|
21
|
+
// *系统预置界面行为
|
|
22
|
+
// 打开新建数据视图
|
|
23
|
+
uiAction.register('SYS_New', new CommonSysUIActionProvider());
|
|
24
|
+
// 打开编辑数据视图
|
|
25
|
+
uiAction.register('SYS_Edit', new CommonSysUIActionProvider());
|
|
26
|
+
// 保存
|
|
27
|
+
uiAction.register('SYS_Save', new CommonSysUIActionProvider());
|
|
28
|
+
uiAction.register('SYS_SaveAndExit', new CommonSysUIActionProvider());
|
|
29
|
+
uiAction.register('SYS_SaveRow', new CommonSysUIActionProvider());
|
|
30
|
+
uiAction.register('SYS_SaveAndNew', new CommonSysUIActionProvider());
|
|
31
|
+
// 删除
|
|
32
|
+
uiAction.register('SYS_Remove', new CommonSysUIActionProvider());
|
|
33
|
+
uiAction.register('SYS_RemoveAndExit', new CommonSysUIActionProvider());
|
|
34
|
+
uiAction.register('SYS_NewRow', new CommonSysUIActionProvider());
|
|
35
|
+
// 工作流
|
|
36
|
+
uiAction.register('SYS_SaveAndStart', new CommonSysUIActionProvider());
|
|
37
|
+
uiAction.register('SYS_ViewWFStep', new CommonSysUIActionProvider());
|
|
38
|
+
// 其他
|
|
39
|
+
uiAction.register('SYS_ToggleFilter', new CommonSysUIActionProvider());
|
|
40
|
+
uiAction.register('SYS_Exit', new CommonSysUIActionProvider());
|
|
41
|
+
uiAction.register('SYS_Refresh', new CommonSysUIActionProvider());
|
|
42
|
+
uiAction.register('SYS_Import', new CommonSysUIActionProvider());
|
|
43
|
+
uiAction.register('SYS_ExportExcel', new CommonSysUIActionProvider());
|
|
44
|
+
// 预置插件
|
|
45
|
+
// 工作流撤回
|
|
46
|
+
uiAction.register('DEUIACTION_WFWithdraw', new WFWithdrawUIActionProvider());
|
|
47
|
+
}
|
|
48
|
+
export { FrontUIActionProvider, CommonSysUIActionProvider, BackendUIActionProvider, WFWithdrawUIActionProvider, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IUIActionHandler, IUIActionProvider } from '../../interface';
|
|
2
|
+
/**
|
|
3
|
+
* 工作流流程撤回界面行为适配器
|
|
4
|
+
*
|
|
5
|
+
* @author lxm
|
|
6
|
+
* @date 2022-10-25 15:10:51
|
|
7
|
+
* @export
|
|
8
|
+
* @class WFWithdrawUIActionProvider
|
|
9
|
+
* @implements {IUIActionProvider}
|
|
10
|
+
*/
|
|
11
|
+
export declare class WFWithdrawUIActionProvider implements IUIActionProvider {
|
|
12
|
+
private handler?;
|
|
13
|
+
getHandler(): Promise<IUIActionHandler>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=wf-withdraw-ui-action-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wf-withdraw-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/provider/ui-action/wf-withdraw-ui-action-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGtE;;;;;;;;GAQG;AACH,qBAAa,0BAA2B,YAAW,iBAAiB;IAClE,OAAO,CAAC,OAAO,CAAC,CAAmB;IAE7B,UAAU,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAM9C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { WFWithdrawUIActionHandler } from '../../utils';
|
|
2
|
+
/**
|
|
3
|
+
* 工作流流程撤回界面行为适配器
|
|
4
|
+
*
|
|
5
|
+
* @author lxm
|
|
6
|
+
* @date 2022-10-25 15:10:51
|
|
7
|
+
* @export
|
|
8
|
+
* @class WFWithdrawUIActionProvider
|
|
9
|
+
* @implements {IUIActionProvider}
|
|
10
|
+
*/
|
|
11
|
+
export class WFWithdrawUIActionProvider {
|
|
12
|
+
async getHandler() {
|
|
13
|
+
if (!this.handler) {
|
|
14
|
+
this.handler = new WFWithdrawUIActionHandler();
|
|
15
|
+
}
|
|
16
|
+
return this.handler;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/register/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IRegister } from '../interface';
|
|
2
|
+
/**
|
|
3
|
+
* 注册器基类
|
|
4
|
+
*
|
|
5
|
+
* @author lxm
|
|
6
|
+
* @date 2022-10-17 16:10:54
|
|
7
|
+
* @export
|
|
8
|
+
* @class RegisterBase
|
|
9
|
+
* @implements {IRegister<T>}
|
|
10
|
+
* @template T
|
|
11
|
+
*/
|
|
12
|
+
export declare class RegisterBase<T> implements IRegister<T> {
|
|
13
|
+
providers: Map<string, T>;
|
|
14
|
+
register(key: string, provider: T): void;
|
|
15
|
+
unRegister(key: string): void;
|
|
16
|
+
getByKey(key: string): T | undefined;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=register-base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-base.d.ts","sourceRoot":"","sources":["../../src/register/register-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC;;;;;;;;;GASG;AACH,qBAAa,YAAY,CAAC,CAAC,CAAE,YAAW,SAAS,CAAC,CAAC,CAAC;IAClD,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAa;IAEtC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI;IAIxC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI7B,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;CAGrC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 注册器基类
|
|
3
|
+
*
|
|
4
|
+
* @author lxm
|
|
5
|
+
* @date 2022-10-17 16:10:54
|
|
6
|
+
* @export
|
|
7
|
+
* @class RegisterBase
|
|
8
|
+
* @implements {IRegister<T>}
|
|
9
|
+
* @template T
|
|
10
|
+
*/
|
|
11
|
+
export class RegisterBase {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.providers = new Map();
|
|
14
|
+
}
|
|
15
|
+
register(key, provider) {
|
|
16
|
+
this.providers.set(key, provider);
|
|
17
|
+
}
|
|
18
|
+
unRegister(key) {
|
|
19
|
+
this.providers.delete(key);
|
|
20
|
+
}
|
|
21
|
+
getByKey(key) {
|
|
22
|
+
return this.providers.get(key);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UIActionRegister } from './ui-action-register';
|
|
2
|
+
/**
|
|
3
|
+
* 注册中心
|
|
4
|
+
*
|
|
5
|
+
* @author lxm
|
|
6
|
+
* @date 2022-09-19 19:09:10
|
|
7
|
+
* @export
|
|
8
|
+
* @class Register
|
|
9
|
+
*/
|
|
10
|
+
export declare class RegisterCenter {
|
|
11
|
+
/**
|
|
12
|
+
* 界面行为注册器
|
|
13
|
+
*
|
|
14
|
+
* @author lxm
|
|
15
|
+
* @date 2022-10-25 15:10:39
|
|
16
|
+
* @type {UIActionRegister}
|
|
17
|
+
*/
|
|
18
|
+
uiAction: UIActionRegister;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=register-center.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-center.d.ts","sourceRoot":"","sources":["../../src/register/register-center.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;;;;GAOG;AACH,qBAAa,cAAc;IACzB;;;;;;OAMG;IACH,QAAQ,EAAE,gBAAgB,CAA0B;CACrD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UIActionRegister } from './ui-action-register';
|
|
2
|
+
/**
|
|
3
|
+
* 注册中心
|
|
4
|
+
*
|
|
5
|
+
* @author lxm
|
|
6
|
+
* @date 2022-09-19 19:09:10
|
|
7
|
+
* @export
|
|
8
|
+
* @class Register
|
|
9
|
+
*/
|
|
10
|
+
export class RegisterCenter {
|
|
11
|
+
constructor() {
|
|
12
|
+
/**
|
|
13
|
+
* 界面行为注册器
|
|
14
|
+
*
|
|
15
|
+
* @author lxm
|
|
16
|
+
* @date 2022-10-25 15:10:39
|
|
17
|
+
* @type {UIActionRegister}
|
|
18
|
+
*/
|
|
19
|
+
this.uiAction = new UIActionRegister();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IPSAppUIAction } from '@ibiz-template/model';
|
|
2
|
+
import { IUIActionRegister, IUIActionProvider } from '../interface';
|
|
3
|
+
import { RegisterBase } from './register-base';
|
|
4
|
+
/**
|
|
5
|
+
* 界面行为注册器
|
|
6
|
+
*
|
|
7
|
+
* @author lxm
|
|
8
|
+
* @date 2022-10-25 15:10:38
|
|
9
|
+
* @export
|
|
10
|
+
* @class UIActionRegister
|
|
11
|
+
* @extends {RegisterBase<IUIActionProvider>}
|
|
12
|
+
* @implements {IUIActionRegister}
|
|
13
|
+
*/
|
|
14
|
+
export declare class UIActionRegister extends RegisterBase<IUIActionProvider> implements IUIActionRegister {
|
|
15
|
+
get(model: IPSAppUIAction): Promise<IUIActionProvider>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ui-action-register.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-action-register.d.ts","sourceRoot":"","sources":["../../src/register/ui-action-register.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C;;;;;;;;;GASG;AACH,qBAAa,gBACX,SAAQ,YAAY,CAAC,iBAAiB,CACtC,YAAW,iBAAiB;IAEtB,GAAG,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC;CA4B7D"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RuntimeError } from '@ibiz-template/core';
|
|
2
|
+
import { RegisterBase } from './register-base';
|
|
3
|
+
/**
|
|
4
|
+
* 界面行为注册器
|
|
5
|
+
*
|
|
6
|
+
* @author lxm
|
|
7
|
+
* @date 2022-10-25 15:10:38
|
|
8
|
+
* @export
|
|
9
|
+
* @class UIActionRegister
|
|
10
|
+
* @extends {RegisterBase<IUIActionProvider>}
|
|
11
|
+
* @implements {IUIActionRegister}
|
|
12
|
+
*/
|
|
13
|
+
export class UIActionRegister extends RegisterBase {
|
|
14
|
+
async get(model) {
|
|
15
|
+
// 先找插件标识和类型
|
|
16
|
+
if (model.getPSSysPFPlugin()) {
|
|
17
|
+
await ibiz.plugin.loadPlugin(model.getPSSysPFPlugin());
|
|
18
|
+
const { pluginType, pluginCode } = model.getPSSysPFPlugin();
|
|
19
|
+
const key = `${pluginType}_${pluginCode}`;
|
|
20
|
+
if (this.providers.has(key)) {
|
|
21
|
+
return this.providers.get(key);
|
|
22
|
+
}
|
|
23
|
+
throw new RuntimeError(`找不到插件标识${key}对应的适配器`);
|
|
24
|
+
}
|
|
25
|
+
// 找界面行为模式和界面行为标记
|
|
26
|
+
const { uIActionMode, uIActionTag } = model;
|
|
27
|
+
if (uIActionMode === 'SYS') {
|
|
28
|
+
const key = `${uIActionMode}_${uIActionTag}`;
|
|
29
|
+
if (this.providers.has(key)) {
|
|
30
|
+
return this.providers.get(key);
|
|
31
|
+
}
|
|
32
|
+
throw new RuntimeError(`找不到系统预置界面行为${uIActionTag}对应的适配器`);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
if (this.providers.has(uIActionMode)) {
|
|
36
|
+
return this.providers.get(uIActionMode);
|
|
37
|
+
}
|
|
38
|
+
throw new RuntimeError(`找不界面行为模式${uIActionMode}对应的适配器`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
package/out/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommandController } from '@ibiz-template/command';
|
|
2
2
|
import '@ibiz-template/service';
|
|
3
|
-
import { IMessageUtil, INotificationUtil, IOpenViewUtil, IModalUtil, ILoadingUtil } from './interface';
|
|
4
|
-
import {
|
|
3
|
+
import { IMessageUtil, INotificationUtil, IOpenViewUtil, IModalUtil, ILoadingUtil, IPluginFactory, IOverlayController, IGlobalConfig } from './interface';
|
|
4
|
+
import { RegisterCenter } from './register/register-center';
|
|
5
5
|
declare module '@ibiz-template/core' {
|
|
6
6
|
interface IBizSys {
|
|
7
7
|
/**
|
|
@@ -56,6 +56,22 @@ declare module '@ibiz-template/core' {
|
|
|
56
56
|
* @type {IOpenViewUtil}
|
|
57
57
|
*/
|
|
58
58
|
openView: IOpenViewUtil;
|
|
59
|
+
/**
|
|
60
|
+
* 全局多种组件呈现工具类
|
|
61
|
+
*
|
|
62
|
+
* @author chitanda
|
|
63
|
+
* @date 2022-11-08 15:11:08
|
|
64
|
+
* @type {IOverlayController}
|
|
65
|
+
*/
|
|
66
|
+
overlay: IOverlayController;
|
|
67
|
+
/**
|
|
68
|
+
* 插件工具工厂
|
|
69
|
+
*
|
|
70
|
+
* @author chitanda
|
|
71
|
+
* @date 2022-10-20 16:10:36
|
|
72
|
+
* @type {IPluginFactory}
|
|
73
|
+
*/
|
|
74
|
+
plugin: IPluginFactory;
|
|
59
75
|
/**
|
|
60
76
|
* 注册中心
|
|
61
77
|
*
|
|
@@ -63,7 +79,15 @@ declare module '@ibiz-template/core' {
|
|
|
63
79
|
* @date 2022-09-19 19:09:23
|
|
64
80
|
* @type {Register}
|
|
65
81
|
*/
|
|
66
|
-
register:
|
|
82
|
+
register: RegisterCenter;
|
|
83
|
+
/**
|
|
84
|
+
* 全局配置
|
|
85
|
+
*
|
|
86
|
+
* @author lxm
|
|
87
|
+
* @date 2022-12-09 14:12:14
|
|
88
|
+
* @type {IGlobalConfig}
|
|
89
|
+
*/
|
|
90
|
+
config: IGlobalConfig;
|
|
67
91
|
}
|
|
68
92
|
}
|
|
69
93
|
//# sourceMappingURL=types.d.ts.map
|
package/out/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,wBAAwB,CAAC;AAChC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,YAAY,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,wBAAwB,CAAC;AAChC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,aAAa,EACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,OAAO;QACf;;;;;;WAMG;QACH,QAAQ,EAAE,iBAAiB,CAAC;QAC5B;;;;;;WAMG;QACH,OAAO,EAAE,YAAY,CAAC;QACtB;;;;;;;WAOG;QACH,KAAK,EAAE,UAAU,CAAC;QAClB;;;;;;;WAOG;QACH,OAAO,EAAE,YAAY,CAAC;QACtB;;;;;;;WAOG;QACH,YAAY,EAAE,iBAAiB,CAAC;QAChC;;;;;;;WAOG;QACH,QAAQ,EAAE,aAAa,CAAC;QACxB;;;;;;WAMG;QACH,OAAO,EAAE,kBAAkB,CAAC;QAC5B;;;;;;WAMG;QACH,MAAM,EAAE,cAAc,CAAC;QACvB;;;;;;WAMG;QACH,QAAQ,EAAE,cAAc,CAAC;QAEzB;;;;;;WAMG;QACH,MAAM,EAAE,aAAa,CAAC;KACvB;CACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IBizContext } from '@ibiz-template/core';
|
|
1
2
|
import { IPSAppDEUIAction } from '@ibiz-template/model';
|
|
2
3
|
import { IUIActionResult } from '../../interface';
|
|
3
4
|
/**
|
|
@@ -16,71 +17,12 @@ export declare class AppDEUIActionUtil {
|
|
|
16
17
|
* @date 2022-08-29 15:08:47
|
|
17
18
|
* @static
|
|
18
19
|
* @param {IPSAppDEUIAction} action
|
|
19
|
-
* @param {
|
|
20
|
+
* @param {IBizContext} context
|
|
20
21
|
* @param {(IData | null)} data
|
|
21
22
|
* @param {IParams} [params]
|
|
22
23
|
* @param {IData} [opts]
|
|
23
24
|
* @return {*} {Promise<IUIActionResult>}
|
|
24
25
|
*/
|
|
25
|
-
static exec(action: IPSAppDEUIAction, context:
|
|
26
|
-
/**
|
|
27
|
-
* 参数处理(根据数据目标和数据参数,导航参数)
|
|
28
|
-
*
|
|
29
|
-
* @author lxm
|
|
30
|
-
* @date 2022-08-29 17:08:00
|
|
31
|
-
* @protected
|
|
32
|
-
* @static
|
|
33
|
-
* @param {IPSAppDEUIAction} action 界面行为
|
|
34
|
-
* @param {IContext} context 上下文
|
|
35
|
-
* @param {(IData[] | null)} data 数据集合
|
|
36
|
-
* @param {IParams} params 视图参数
|
|
37
|
-
* @returns {*} {Promise<{
|
|
38
|
-
* resultContext: IContext; 处理后的上下文
|
|
39
|
-
* resultData: IData[]; 处理后的数据集合
|
|
40
|
-
* resultParams: IParams; 处理后的视图参数
|
|
41
|
-
* }>}
|
|
42
|
-
*/
|
|
43
|
-
protected static handleParams(action: IPSAppDEUIAction, context: IContext, data: IData[] | null, params: IParams): Promise<{
|
|
44
|
-
resultContext: IContext;
|
|
45
|
-
resultData: IData[];
|
|
46
|
-
resultParams: IParams;
|
|
47
|
-
}>;
|
|
48
|
-
/**
|
|
49
|
-
* 执行系统预置界面行为
|
|
50
|
-
*
|
|
51
|
-
* @author lxm
|
|
52
|
-
* @date 2022-08-29 15:08:29
|
|
53
|
-
* @static
|
|
54
|
-
* @param {IPSAppDEUIAction} action
|
|
55
|
-
* @returns {*} {Promise<IUIActionResult>}
|
|
56
|
-
*/
|
|
57
|
-
static executeSysUIAction(action: IPSAppDEUIAction, data: IData[] | null, opts?: IData): Promise<IUIActionResult>;
|
|
58
|
-
/**
|
|
59
|
-
* 执行前台调用
|
|
60
|
-
*
|
|
61
|
-
* @author lxm
|
|
62
|
-
* @date 2022-08-29 15:08:51
|
|
63
|
-
* @static
|
|
64
|
-
* @param {IPSAppDEUIAction} action
|
|
65
|
-
* @param {IContext} context
|
|
66
|
-
* @param {(IData[] | null)} data
|
|
67
|
-
* @param {IParams} params
|
|
68
|
-
* @param {IData} [opts]
|
|
69
|
-
* @returns {*} {Promise<IUIActionResult>}
|
|
70
|
-
*/
|
|
71
|
-
static executeFrontUIAction(action: IPSAppDEUIAction, context: IContext, _data: IData[] | null, params: IParams, opts?: IData): Promise<IUIActionResult>;
|
|
72
|
-
/**
|
|
73
|
-
* 执行后台调用
|
|
74
|
-
*
|
|
75
|
-
* @author lxm
|
|
76
|
-
* @date 2022-08-28 20:08:35
|
|
77
|
-
* @export
|
|
78
|
-
* @param {IPSAppDEUIAction} action
|
|
79
|
-
* @param {IContext} context
|
|
80
|
-
* @param {IData[]} data
|
|
81
|
-
* @param {IParams} params
|
|
82
|
-
* @returns {*} {Promise<IUIActionResult>}
|
|
83
|
-
*/
|
|
84
|
-
static executeBackEndUIAction(action: IPSAppDEUIAction, context: IContext, _data: IData[], params: IParams): Promise<IUIActionResult>;
|
|
26
|
+
static exec(action: IPSAppDEUIAction, context: IBizContext, data: IData[] | null, params: IParams, opts?: IData): Promise<IUIActionResult>;
|
|
85
27
|
}
|
|
86
28
|
//# sourceMappingURL=app-de-ui-action-util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-de-ui-action-util.d.ts","sourceRoot":"","sources":["../../../src/utils/app-de-ui-action-util/app-de-ui-action-util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-de-ui-action-util.d.ts","sourceRoot":"","sources":["../../../src/utils/app-de-ui-action-util/app-de-ui-action-util.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,iBAAiB,CAAC;AAElD;;;;;;;GAOG;AACH,qBAAa,iBAAiB;IAC5B;;;;;;;;;;;;OAYG;WACU,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;CAK5B"}
|