@ibiz-template/runtime 0.4.15 → 0.4.17-dev.0
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/index.esm.js +527 -362
- package/dist/index.system.min.js +2 -2
- package/out/app-hub.d.ts +8 -0
- package/out/app-hub.d.ts.map +1 -1
- package/out/app-hub.js +14 -1
- package/out/controller/common/base.controller.d.ts +1 -0
- package/out/controller/common/base.controller.d.ts.map +1 -1
- package/out/controller/common/base.controller.js +2 -0
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +9 -3
- package/out/controller/common/view/wf-step-trace-view.controller.d.ts.map +1 -1
- package/out/controller/common/view/wf-step-trace-view.controller.js +3 -2
- package/out/controller/control/calendar/calendar.service.d.ts +3 -3
- package/out/controller/control/calendar/calendar.service.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.service.js +2 -2
- package/out/controller/control/form/edit-form/edit-form.service.d.ts +18 -18
- package/out/controller/control/form/edit-form/edit-form.service.d.ts.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.service.js +11 -11
- package/out/controller/control/form/form/form.service.d.ts +2 -2
- package/out/controller/control/form/form/form.service.d.ts.map +1 -1
- package/out/controller/control/form/form/form.service.js +1 -1
- package/out/controller/control/form/search-form/search-form.service.d.ts +2 -2
- package/out/controller/control/form/search-form/search-form.service.d.ts.map +1 -1
- package/out/controller/control/form/search-form/search-form.service.js +1 -1
- package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.controller.js +1 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +1 -1
- package/out/controller/control/grid/grid/grid.service.d.ts +2 -2
- package/out/controller/control/grid/grid/grid.service.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.service.js +2 -2
- package/out/controller/control/kanban/kanban.service.d.ts +2 -2
- package/out/controller/control/kanban/kanban.service.d.ts.map +1 -1
- package/out/controller/control/kanban/kanban.service.js +1 -1
- package/out/controller/control/map/map.service.d.ts +1 -1
- package/out/controller/control/map/map.service.js +1 -1
- package/out/controller/control/report-panel/report-panel.service.d.ts +2 -2
- package/out/controller/control/report-panel/report-panel.service.d.ts.map +1 -1
- package/out/controller/control/report-panel/report-panel.service.js +1 -1
- package/out/controller/control/tree/tree.service.d.ts +2 -2
- package/out/controller/control/tree/tree.service.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +1 -0
- package/out/controller/control/wizard-panel/wizard-panel.service.d.ts +4 -4
- package/out/controller/control/wizard-panel/wizard-panel.service.d.ts.map +1 -1
- package/out/controller/control/wizard-panel/wizard-panel.service.js +2 -2
- package/out/controller/utils/value-default/value-default.d.ts +1 -1
- package/out/controller/utils/value-default/value-default.d.ts.map +1 -1
- package/out/de-logic/de-logic-context.d.ts +5 -5
- package/out/de-logic/de-logic-context.d.ts.map +1 -1
- package/out/de-logic/de-logic-context.js +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.d.ts +2 -2
- package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.d.ts.map +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.js +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.d.ts +2 -2
- package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.d.ts.map +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.js +1 -1
- package/out/de-logic/de-logic-link/de-logic-link.d.ts +1 -1
- package/out/de-logic/de-logic-link/de-logic-link.js +1 -1
- package/out/de-logic/de-logic-node/de-logic-node.d.ts +1 -1
- package/out/de-logic/de-logic-param/de-logic-param.d.ts +1 -1
- package/out/de-logic/de-logic-param/de-logic-param.js +1 -1
- package/out/de-logic/de-logic.d.ts +3 -3
- package/out/de-logic/de-logic.d.ts.map +1 -1
- package/out/de-logic/de-logic.js +2 -2
- package/out/de-logic/index.d.ts +8 -8
- package/out/de-logic/index.d.ts.map +1 -1
- package/out/de-logic/index.js +5 -5
- package/out/hub/config/app-config-service.d.ts +1 -0
- package/out/hub/config/app-config-service.d.ts.map +1 -1
- package/out/hub/config/app-config-service.js +1 -0
- package/out/hub/config/app-view-config-service.d.ts +20 -1
- package/out/hub/config/app-view-config-service.d.ts.map +1 -1
- package/out/hub/config/app-view-config-service.js +39 -6
- package/out/install.d.ts.map +1 -1
- package/out/install.js +3 -0
- package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts +8 -0
- package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts.map +1 -1
- package/out/interface/common/i-app-view-config-service/i-app-view-config-service.d.ts +8 -0
- package/out/interface/common/i-app-view-config-service/i-app-view-config-service.d.ts.map +1 -1
- package/out/interface/common/i-data-ability-params/i-data-ability-params.d.ts +1 -1
- package/out/interface/common/i-data-ability-params/i-data-ability-params.d.ts.map +1 -1
- package/out/interface/controller/controller/i.controller.d.ts +8 -0
- package/out/interface/controller/controller/i.controller.d.ts.map +1 -1
- package/out/interface/provider/i-de-method.provider.d.ts +10 -1
- package/out/interface/provider/i-de-method.provider.d.ts.map +1 -1
- package/out/interface/provider/i-grid-column.provider.d.ts +2 -2
- package/out/interface/provider/i-grid-column.provider.d.ts.map +1 -1
- package/out/interface/service/service/i-app-de.service.d.ts +49 -43
- package/out/interface/service/service/i-app-de.service.d.ts.map +1 -1
- package/out/interface/service/service/i-file.service.d.ts +2 -2
- package/out/interface/service/service/i-file.service.d.ts.map +1 -1
- package/out/interface/service/service/i-wf.service.d.ts +12 -12
- package/out/interface/service/service/i-wf.service.d.ts.map +1 -1
- package/out/register/helper/grid-column-register.d.ts +2 -2
- package/out/register/helper/grid-column-register.d.ts.map +1 -1
- package/out/register/helper/grid-column-register.js +0 -14
- package/out/service/de-service-util.d.ts +26 -13
- package/out/service/de-service-util.d.ts.map +1 -1
- package/out/service/de-service-util.js +45 -16
- package/out/service/dto/method.dto.d.ts +20 -8
- package/out/service/dto/method.dto.d.ts.map +1 -1
- package/out/service/dto/method.dto.js +33 -15
- package/out/service/service/authority/authority.service.d.ts +1 -1
- package/out/service/service/authority/authority.service.js +1 -1
- package/out/service/service/code-list/code-list.service.d.ts +3 -3
- package/out/service/service/code-list/code-list.service.d.ts.map +1 -1
- package/out/service/service/code-list/code-list.service.js +2 -2
- package/out/service/service/control/control.service.d.ts +2 -2
- package/out/service/service/control/control.service.d.ts.map +1 -1
- package/out/service/service/control/control.service.js +1 -1
- package/out/service/service/control/md-control.service.d.ts +23 -13
- package/out/service/service/control/md-control.service.d.ts.map +1 -1
- package/out/service/service/control/md-control.service.js +23 -7
- package/out/service/service/counter/counter.service.d.ts +3 -3
- package/out/service/service/counter/counter.service.d.ts.map +1 -1
- package/out/service/service/counter/counter.service.js +1 -1
- package/out/service/service/entity/de.service.d.ts +46 -28
- package/out/service/service/entity/de.service.d.ts.map +1 -1
- package/out/service/service/entity/de.service.js +35 -71
- package/out/service/service/entity/method/de-action.d.ts +23 -33
- package/out/service/service/entity/method/de-action.d.ts.map +1 -1
- package/out/service/service/entity/method/de-action.js +18 -35
- package/out/service/service/entity/method/fetch.d.ts +3 -4
- package/out/service/service/entity/method/fetch.d.ts.map +1 -1
- package/out/service/service/entity/method/fetch.js +3 -8
- package/out/service/service/entity/method/method-input.d.ts +10 -5
- package/out/service/service/entity/method/method-input.d.ts.map +1 -1
- package/out/service/service/entity/method/method-input.js +9 -8
- package/out/service/service/entity/method/method-renturn.d.ts +10 -7
- package/out/service/service/entity/method/method-renturn.d.ts.map +1 -1
- package/out/service/service/entity/method/method-renturn.js +9 -9
- package/out/service/service/entity/method/method.d.ts +11 -27
- package/out/service/service/entity/method/method.d.ts.map +1 -1
- package/out/service/service/entity/method/method.js +9 -21
- package/out/service/service/entity/method/provider/de-action-de-method.provider.d.ts +2 -2
- package/out/service/service/entity/method/provider/de-action-de-method.provider.d.ts.map +1 -1
- package/out/service/service/entity/method/provider/de-action-de-method.provider.js +2 -2
- package/out/service/service/entity/method/provider/fetch-de-method.provider.d.ts +2 -2
- package/out/service/service/entity/method/provider/fetch-de-method.provider.d.ts.map +1 -1
- package/out/service/service/entity/method/provider/fetch-de-method.provider.js +3 -3
- package/out/service/service/file/file.service.d.ts +2 -2
- package/out/service/service/file/file.service.d.ts.map +1 -1
- package/out/service/service/file/file.service.js +1 -1
- package/out/service/service/work-flow/work-flow.service.d.ts +28 -28
- package/out/service/service/work-flow/work-flow.service.d.ts.map +1 -1
- package/out/service/service/work-flow/work-flow.service.js +15 -15
- package/out/service/utils/app-counter/app-counter.d.ts +7 -7
- package/out/service/utils/app-counter/app-counter.d.ts.map +1 -1
- package/out/service/utils/app-counter/app-counter.js +3 -3
- package/out/service/utils/app-counter/app-de-counter.d.ts +2 -2
- package/out/service/utils/app-counter/app-de-counter.d.ts.map +1 -1
- package/out/service/utils/app-counter/app-de-counter.js +1 -1
- package/out/service/utils/de-cache/de-cache.d.ts +44 -39
- package/out/service/utils/de-cache/de-cache.d.ts.map +1 -1
- package/out/service/utils/de-cache/de-cache.js +115 -75
- package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts +2 -2
- package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts.map +1 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.js +2 -2
- package/out/service/utils/res-path/res-path.d.ts +4 -4
- package/out/service/utils/res-path/res-path.d.ts.map +1 -1
- package/out/service/utils/res-path/res-path.js +2 -2
- package/out/service/utils/search-filter/search-filter.d.ts +2 -2
- package/out/service/utils/search-filter/search-filter.d.ts.map +1 -1
- package/out/service/utils/service-exist-util/service-exist-util.d.ts +2 -2
- package/out/service/utils/service-exist-util/service-exist-util.d.ts.map +1 -1
- package/out/service/utils/service-exist-util/service-exist-util.js +1 -1
- package/out/types.d.ts +9 -0
- package/out/types.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-param/ui-logic-param.js +1 -1
- package/out/utils/index.d.ts +2 -0
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +2 -0
- package/out/utils/nav-params/calc-nav-params.d.ts +2 -2
- package/out/utils/nav-params/calc-nav-params.d.ts.map +1 -1
- package/out/utils/nav-params/calc-nav-params.js +1 -1
- package/out/utils/open-redirect-view/open-redirect-view.js +1 -1
- package/out/utils/ui-domain/ui-domain.d.ts +35 -0
- package/out/utils/ui-domain/ui-domain.d.ts.map +1 -0
- package/out/utils/ui-domain/ui-domain.js +42 -0
- package/out/utils/ui-domain-manager/ui-domain-manager.d.ts +47 -0
- package/out/utils/ui-domain-manager/ui-domain-manager.d.ts.map +1 -0
- package/out/utils/ui-domain-manager/ui-domain-manager.js +62 -0
- package/package.json +3 -3
- package/src/app-hub.ts +15 -1
- package/src/controller/common/base.controller.ts +3 -0
- package/src/controller/common/view/view.controller.ts +9 -3
- package/src/controller/common/view/wf-step-trace-view.controller.ts +4 -2
- package/src/controller/control/calendar/calendar.service.ts +4 -4
- package/src/controller/control/form/edit-form/edit-form.service.ts +23 -18
- package/src/controller/control/form/form/form.service.ts +2 -2
- package/src/controller/control/form/search-form/search-form.service.ts +2 -2
- package/src/controller/control/gantt/gantt.controller.ts +2 -1
- package/src/controller/control/grid/grid/grid.controller.ts +1 -0
- package/src/controller/control/grid/grid/grid.service.ts +3 -2
- package/src/controller/control/kanban/kanban.service.ts +2 -2
- package/src/controller/control/map/map.service.ts +1 -1
- package/src/controller/control/report-panel/report-panel.service.ts +2 -2
- package/src/controller/control/tree/tree.service.ts +2 -2
- package/src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts +2 -1
- package/src/controller/control/wizard-panel/wizard-panel.service.ts +4 -4
- package/src/controller/utils/value-default/value-default.ts +1 -1
- package/src/de-logic/de-logic-context.ts +5 -5
- package/src/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.ts +2 -2
- package/src/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.ts +2 -2
- package/src/de-logic/de-logic-link/de-logic-link.ts +1 -1
- package/src/de-logic/de-logic-node/de-logic-node.ts +1 -1
- package/src/de-logic/de-logic-param/de-logic-param.ts +1 -1
- package/src/de-logic/de-logic.ts +3 -3
- package/src/de-logic/index.ts +10 -10
- package/src/hub/config/app-config-service.ts +1 -0
- package/src/hub/config/app-view-config-service.ts +39 -6
- package/src/install.ts +3 -0
- package/src/interface/common/i-app-hub-service/i-app-hub-service.ts +9 -0
- package/src/interface/common/i-app-view-config-service/i-app-view-config-service.ts +8 -0
- package/src/interface/common/i-data-ability-params/i-data-ability-params.ts +1 -1
- package/src/interface/controller/controller/i.controller.ts +9 -0
- package/src/interface/provider/i-de-method.provider.ts +10 -0
- package/src/interface/provider/i-grid-column.provider.ts +2 -7
- package/src/interface/service/service/i-app-de.service.ts +51 -44
- package/src/interface/service/service/i-file.service.ts +2 -2
- package/src/interface/service/service/i-wf.service.ts +12 -12
- package/src/register/helper/grid-column-register.ts +2 -17
- package/src/service/de-service-util.ts +59 -27
- package/src/service/dto/method.dto.ts +39 -19
- package/src/service/service/authority/authority.service.ts +1 -1
- package/src/service/service/code-list/code-list.service.ts +3 -3
- package/src/service/service/control/control.service.ts +2 -2
- package/src/service/service/control/md-control.service.ts +40 -13
- package/src/service/service/counter/counter.service.ts +3 -3
- package/src/service/service/entity/de.service.ts +57 -89
- package/src/service/service/entity/method/de-action.ts +29 -47
- package/src/service/service/entity/method/fetch.ts +5 -11
- package/src/service/service/entity/method/method-input.ts +10 -9
- package/src/service/service/entity/method/method-renturn.ts +10 -11
- package/src/service/service/entity/method/method.ts +12 -35
- package/src/service/service/entity/method/provider/de-action-de-method.provider.ts +4 -2
- package/src/service/service/entity/method/provider/fetch-de-method.provider.ts +4 -2
- package/src/service/service/file/file.service.ts +2 -2
- package/src/service/service/work-flow/work-flow.service.ts +30 -30
- package/src/service/utils/app-counter/app-counter.ts +7 -7
- package/src/service/utils/app-counter/app-de-counter.ts +2 -2
- package/src/service/utils/de-cache/de-cache.ts +124 -85
- package/src/service/utils/dynamic-code-list/dynamic-code-list.ts +2 -5
- package/src/service/utils/res-path/res-path.ts +4 -4
- package/src/service/utils/search-filter/search-filter.ts +2 -2
- package/src/service/utils/service-exist-util/service-exist-util.ts +2 -2
- package/src/types.ts +10 -0
- package/src/ui-logic/ui-logic-param/ui-logic-param.ts +1 -1
- package/src/utils/index.ts +2 -0
- package/src/utils/nav-params/calc-nav-params.ts +2 -2
- package/src/utils/open-redirect-view/open-redirect-view.ts +1 -1
- package/src/utils/ui-domain/ui-domain.ts +52 -0
- package/src/utils/ui-domain-manager/ui-domain-manager.ts +64 -0
- package/out/service/service/entity/util/util.d.ts +0 -13
- package/out/service/service/entity/util/util.d.ts.map +0 -1
- package/out/service/service/entity/util/util.js +0 -14
- package/src/service/service/entity/util/util.ts +0 -18
|
@@ -12,7 +12,7 @@ export declare class SearchFilter {
|
|
|
12
12
|
* @date 2022-08-17 22:08:24
|
|
13
13
|
* @type {IParams}
|
|
14
14
|
*/
|
|
15
|
-
readonly context:
|
|
15
|
+
readonly context: IContext;
|
|
16
16
|
/**
|
|
17
17
|
* 父关系实体
|
|
18
18
|
*
|
|
@@ -77,7 +77,7 @@ export declare class SearchFilter {
|
|
|
77
77
|
* @param {*} [data]
|
|
78
78
|
* @memberof SearchFilter
|
|
79
79
|
*/
|
|
80
|
-
constructor(context:
|
|
80
|
+
constructor(context: IContext, data?: IData);
|
|
81
81
|
/**
|
|
82
82
|
* 获取条件值
|
|
83
83
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-filter.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/search-filter/search-filter.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,qBAAa,YAAY;IACvB;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"search-filter.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/search-filter/search-filter.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,qBAAa,YAAY;IACvB;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;IAE3B;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAElC;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,KAAK;IAElB;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,QAAQ;IAErB;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,EAAG,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAM;IAE1B;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,mBAAmB;IAErC;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,KAAK,GAAG,MAAM,CAAS;IAE1C;;;;;;OAMG;gBACS,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,KAAK;IAqC3C;;;;;;;OAOG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;CAM/B"}
|
|
@@ -13,8 +13,8 @@ export declare function isExistSrfKey(funcName: string, entity: IDataEntity): bo
|
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
15
|
* @param {string} funcName 执行方法名称
|
|
16
|
-
* @param {
|
|
16
|
+
* @param {IContext} context 上下文
|
|
17
17
|
* @return {*} {boolean}
|
|
18
18
|
*/
|
|
19
|
-
export declare function isExistSessionId(funcName: string, context:
|
|
19
|
+
export declare function isExistSessionId(funcName: string, context: IContext): boolean;
|
|
20
20
|
//# sourceMappingURL=service-exist-util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-exist-util.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/service-exist-util/service-exist-util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAQ5E;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"service-exist-util.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/service-exist-util/service-exist-util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAQ5E;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,GAAG,OAAO,CAM7E"}
|
|
@@ -22,7 +22,7 @@ export function isExistSrfKey(funcName, entity) {
|
|
|
22
22
|
*
|
|
23
23
|
* @export
|
|
24
24
|
* @param {string} funcName 执行方法名称
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {IContext} context 上下文
|
|
26
26
|
* @return {*} {boolean}
|
|
27
27
|
*/
|
|
28
28
|
export function isExistSessionId(funcName, context) {
|
package/out/types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { GlobalUtil } from './global';
|
|
|
4
4
|
import { IMessageUtil, INotificationUtil, IOpenViewUtil, IModalUtil, IConfirmUtil, ILoadingUtil, IPluginFactory, IOverlayController, IGlobalConfig, IAppHubService, IAuthService, IAsyncActionService, IPlatformProvider } from './interface';
|
|
5
5
|
import { LogicSchedulerCenter } from './logic-scheduler';
|
|
6
6
|
import { RegisterCenter } from './register/register-center';
|
|
7
|
+
import { UIDomainManager } from './utils';
|
|
7
8
|
declare module '@ibiz-template/core' {
|
|
8
9
|
interface IBizSys {
|
|
9
10
|
/**
|
|
@@ -154,6 +155,14 @@ declare module '@ibiz-template/core' {
|
|
|
154
155
|
* @memberof IBizSys
|
|
155
156
|
*/
|
|
156
157
|
platform: IPlatformProvider;
|
|
158
|
+
/**
|
|
159
|
+
* UI域管理器
|
|
160
|
+
*
|
|
161
|
+
* @author chitanda
|
|
162
|
+
* @date 2023-12-22 15:12:41
|
|
163
|
+
* @type {UIDomainManager}
|
|
164
|
+
*/
|
|
165
|
+
uiDomainManager: UIDomainManager;
|
|
157
166
|
}
|
|
158
167
|
interface IEnvironment {
|
|
159
168
|
/**
|
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,IAAI,EAAE,MAAM,mCAAmC,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,OAAO;QACf;;;;;;WAMG;QACH,OAAO,EAAE,YAAY,CAAC;QAEtB;;;;;;WAMG;QACH,GAAG,EAAE,cAAc,CAAC;QAEpB;;;;;;;WAOG;QACH,KAAK,EAAE,UAAU,CAAC;QAElB;;;;;;;WAOG;QACH,OAAO,EAAE,YAAY,CAAC;QAEtB;;;;;;;WAOG;QACH,OAAO,EAAE,YAAY,CAAC;QAEtB;;;;;;;WAOG;QACH,YAAY,EAAE,iBAAiB,CAAC;QAEhC;;;;;;;WAOG;QACH,QAAQ,EAAE,aAAa,CAAC;QAExB;;;;;;WAMG;QACH,OAAO,EAAE,kBAAkB,CAAC;QAE5B;;;;;;WAMG;QACH,MAAM,EAAE,cAAc,CAAC;QAEvB;;;;;;WAMG;QACH,QAAQ,EAAE,cAAc,CAAC;QAEzB;;;;;;WAMG;QACH,MAAM,EAAE,aAAa,CAAC;QAEtB;;;;;;WAMG;QACH,IAAI,EAAE,YAAY,CAAC;QAEnB;;;;;;WAMG;QACH,WAAW,EAAE,mBAAmB,CAAC;QAEjC;;;;;WAKG;QACH,MAAM,EAAE,aAAa,CAAC;QAEtB;;;;;;WAMG;QACH,IAAI,EAAE,UAAU,CAAC;QAEjB;;;;;;WAMG;QACH,IAAI,EAAE,IAAI,CAAC;QAEX;;;;;WAKG;QACH,SAAS,EAAE,oBAAoB,CAAC;QAEhC;;;;;;;WAOG;QACH,QAAQ,EAAE,iBAAiB,CAAC;QAE5B;;;;;;WAMG;QACH,eAAe,EAAE,eAAe,CAAC;KAClC;IAED,UAAU,YAAY;QACpB;;;;;;;WAOG;QACH,YAAY,CAAC,EAAE,aAAa,CAAC;KAC9B;CACF"}
|
|
@@ -30,7 +30,7 @@ export class UILogicParam {
|
|
|
30
30
|
const m = this.model;
|
|
31
31
|
const { parameters } = ctx;
|
|
32
32
|
const { context, params, data } = parameters;
|
|
33
|
-
const app = ibiz.hub.getApp(
|
|
33
|
+
const app = ibiz.hub.getApp(m.appId);
|
|
34
34
|
// 特殊变量的特殊处理
|
|
35
35
|
if (m.codeName === 'layoutPanel') {
|
|
36
36
|
ctx.params[tag] = parameters.view.layoutPanel.panelItems;
|
package/out/utils/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export * from './value-rule/value-rule';
|
|
|
10
10
|
export * from './script/index';
|
|
11
11
|
export { TextUtil } from './text-util/text-util';
|
|
12
12
|
export { ThemeUtil } from './theme-util/theme-util';
|
|
13
|
+
export { UIDomain } from './ui-domain/ui-domain';
|
|
14
|
+
export { UIDomainManager } from './ui-domain-manager/ui-domain-manager';
|
|
13
15
|
export { RawValueUtil } from './raw-value-util/raw-value-util';
|
|
14
16
|
export { handleAllSettled } from './promise/promise';
|
|
15
17
|
//# sourceMappingURL=index.d.ts.map
|
package/out/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,cAAc,yBAAyB,CAAC;AACxC,OAAO,EACL,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,yCAAyC,CAAC;AACjD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,cAAc,yBAAyB,CAAC;AACxC,OAAO,EACL,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,yCAAyC,CAAC;AACjD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC"}
|
package/out/utils/index.js
CHANGED
|
@@ -10,5 +10,7 @@ export * from './value-rule/value-rule';
|
|
|
10
10
|
export * from './script/index';
|
|
11
11
|
export { TextUtil } from './text-util/text-util';
|
|
12
12
|
export { ThemeUtil } from './theme-util/theme-util';
|
|
13
|
+
export { UIDomain } from './ui-domain/ui-domain';
|
|
14
|
+
export { UIDomainManager } from './ui-domain-manager/ui-domain-manager';
|
|
13
15
|
export { RawValueUtil } from './raw-value-util/raw-value-util';
|
|
14
16
|
export { handleAllSettled } from './promise/promise';
|
|
@@ -13,7 +13,7 @@ import { INavigateParam } from '@ibiz/model-core';
|
|
|
13
13
|
* })} model
|
|
14
14
|
* @param {{
|
|
15
15
|
* derValue?: string; 关系父实体的主键值
|
|
16
|
-
* context:
|
|
16
|
+
* context: IContext; 上下文
|
|
17
17
|
* params: IParams; 视图参数
|
|
18
18
|
* data: IData; 关系父的数据
|
|
19
19
|
* }} originParams
|
|
@@ -33,7 +33,7 @@ export declare function calcNavParams(model: {
|
|
|
33
33
|
* 关系父主键值
|
|
34
34
|
*/
|
|
35
35
|
derValue?: string;
|
|
36
|
-
context:
|
|
36
|
+
context: IContext;
|
|
37
37
|
params: IParams;
|
|
38
38
|
data: IData;
|
|
39
39
|
}): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calc-nav-params.d.ts","sourceRoot":"","sources":["../../../src/utils/nav-params/calc-nav-params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE;IACL;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,WAAW,CAAC,EAAE,cAAc,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IAClD,SAAS,CAAC,EAAE,cAAc,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;CACjD,EACD,YAAY,EAAE;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"calc-nav-params.d.ts","sourceRoot":"","sources":["../../../src/utils/nav-params/calc-nav-params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE;IACL;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,WAAW,CAAC,EAAE,cAAc,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IAClD,SAAS,CAAC,EAAE,cAAc,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;CACjD,EACD,YAAY,EAAE;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,KAAK,CAAC;CACb,GACA;IAAE,aAAa,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE,CA6BnD"}
|
|
@@ -98,7 +98,7 @@ export async function openDERedirectView(appView, context, params = {}, opts = {
|
|
|
98
98
|
// 实体重定向视图获取数据行为
|
|
99
99
|
const actionId = appView.getDataAppDEActionId;
|
|
100
100
|
const app = ibiz.hub.getApp(appView.appId);
|
|
101
|
-
const service = await app.deService.getService(entityId);
|
|
101
|
+
const service = await app.deService.getService(context, entityId);
|
|
102
102
|
ibiz.loading.showRedirect();
|
|
103
103
|
try {
|
|
104
104
|
// 获取数据,未配置行为时,默认走 Get 行为
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 界面域
|
|
3
|
+
*
|
|
4
|
+
* @author chitanda
|
|
5
|
+
* @date 2023-12-22 15:12:07
|
|
6
|
+
* @export
|
|
7
|
+
* @class UIDomain
|
|
8
|
+
*/
|
|
9
|
+
export declare class UIDomain {
|
|
10
|
+
/**
|
|
11
|
+
* 唯一域标识
|
|
12
|
+
*
|
|
13
|
+
* @author chitanda
|
|
14
|
+
* @date 2023-12-22 15:12:12
|
|
15
|
+
* @type {string}
|
|
16
|
+
*/
|
|
17
|
+
readonly id: string;
|
|
18
|
+
/**
|
|
19
|
+
* Creates an instance of UIDomain.
|
|
20
|
+
*
|
|
21
|
+
* @author chitanda
|
|
22
|
+
* @date 2023-12-22 16:12:03
|
|
23
|
+
* @param {string} appId
|
|
24
|
+
* @param {string} [id]
|
|
25
|
+
*/
|
|
26
|
+
constructor(id?: string);
|
|
27
|
+
/**
|
|
28
|
+
* 界面域销毁
|
|
29
|
+
*
|
|
30
|
+
* @author chitanda
|
|
31
|
+
* @date 2023-12-22 15:12:49
|
|
32
|
+
*/
|
|
33
|
+
destroy(): void;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=ui-domain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-domain.d.ts","sourceRoot":"","sources":["../../../src/utils/ui-domain/ui-domain.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,qBAAa,QAAQ;IACnB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAEpB;;;;;;;OAOG;gBACS,EAAE,CAAC,EAAE,MAAM;IAQvB;;;;;OAKG;IACH,OAAO,IAAI,IAAI;CAShB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { createUUID } from 'qx-util';
|
|
2
|
+
/**
|
|
3
|
+
* 界面域
|
|
4
|
+
*
|
|
5
|
+
* @author chitanda
|
|
6
|
+
* @date 2023-12-22 15:12:07
|
|
7
|
+
* @export
|
|
8
|
+
* @class UIDomain
|
|
9
|
+
*/
|
|
10
|
+
export class UIDomain {
|
|
11
|
+
/**
|
|
12
|
+
* Creates an instance of UIDomain.
|
|
13
|
+
*
|
|
14
|
+
* @author chitanda
|
|
15
|
+
* @date 2023-12-22 16:12:03
|
|
16
|
+
* @param {string} appId
|
|
17
|
+
* @param {string} [id]
|
|
18
|
+
*/
|
|
19
|
+
constructor(id) {
|
|
20
|
+
if (id) {
|
|
21
|
+
this.id = id;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
this.id = createUUID();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 界面域销毁
|
|
29
|
+
*
|
|
30
|
+
* @author chitanda
|
|
31
|
+
* @date 2023-12-22 15:12:49
|
|
32
|
+
*/
|
|
33
|
+
destroy() {
|
|
34
|
+
const apps = ibiz.hub.getAllApps();
|
|
35
|
+
apps.forEach(app => {
|
|
36
|
+
app.deService.reset({
|
|
37
|
+
srfappid: app.appId,
|
|
38
|
+
srfsessionid: this.id,
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { UIDomain } from '../ui-domain/ui-domain';
|
|
2
|
+
/**
|
|
3
|
+
* 界面域管理器
|
|
4
|
+
*
|
|
5
|
+
* @author chitanda
|
|
6
|
+
* @date 2023-12-22 15:12:10
|
|
7
|
+
* @export
|
|
8
|
+
* @class UIDomainManager
|
|
9
|
+
*/
|
|
10
|
+
export declare class UIDomainManager {
|
|
11
|
+
/**
|
|
12
|
+
* 界面域实例缓存
|
|
13
|
+
*
|
|
14
|
+
* @author chitanda
|
|
15
|
+
* @date 2023-12-22 15:12:53
|
|
16
|
+
* @protected
|
|
17
|
+
* @type {Map<string, UIDomain>}
|
|
18
|
+
*/
|
|
19
|
+
protected domainMap: Map<string, UIDomain>;
|
|
20
|
+
/**
|
|
21
|
+
* 创建域
|
|
22
|
+
*
|
|
23
|
+
* @author chitanda
|
|
24
|
+
* @date 2023-12-22 16:12:44
|
|
25
|
+
* @param {string} [id] 可选,不传则自动生成
|
|
26
|
+
* @return {*} {UIDomain}
|
|
27
|
+
*/
|
|
28
|
+
create(id?: string): UIDomain;
|
|
29
|
+
/**
|
|
30
|
+
* 获取域
|
|
31
|
+
*
|
|
32
|
+
* @author chitanda
|
|
33
|
+
* @date 2023-12-22 15:12:17
|
|
34
|
+
* @param {string} id
|
|
35
|
+
* @return {*} {UIDomain}
|
|
36
|
+
*/
|
|
37
|
+
get(id: string): UIDomain;
|
|
38
|
+
/**
|
|
39
|
+
* 销毁域
|
|
40
|
+
*
|
|
41
|
+
* @author chitanda
|
|
42
|
+
* @date 2023-12-22 15:12:03
|
|
43
|
+
* @param {string} id
|
|
44
|
+
*/
|
|
45
|
+
destroy(id: string): void;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=ui-domain-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-domain-manager.d.ts","sourceRoot":"","sources":["../../../src/utils/ui-domain-manager/ui-domain-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD;;;;;;;GAOG;AACH,qBAAa,eAAe;IAC1B;;;;;;;OAOG;IACH,SAAS,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAa;IAEvD;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,QAAQ;IAM7B;;;;;;;OAOG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ;IAOzB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;CAM1B"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { UIDomain } from '../ui-domain/ui-domain';
|
|
2
|
+
/**
|
|
3
|
+
* 界面域管理器
|
|
4
|
+
*
|
|
5
|
+
* @author chitanda
|
|
6
|
+
* @date 2023-12-22 15:12:10
|
|
7
|
+
* @export
|
|
8
|
+
* @class UIDomainManager
|
|
9
|
+
*/
|
|
10
|
+
export class UIDomainManager {
|
|
11
|
+
constructor() {
|
|
12
|
+
/**
|
|
13
|
+
* 界面域实例缓存
|
|
14
|
+
*
|
|
15
|
+
* @author chitanda
|
|
16
|
+
* @date 2023-12-22 15:12:53
|
|
17
|
+
* @protected
|
|
18
|
+
* @type {Map<string, UIDomain>}
|
|
19
|
+
*/
|
|
20
|
+
this.domainMap = new Map();
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 创建域
|
|
24
|
+
*
|
|
25
|
+
* @author chitanda
|
|
26
|
+
* @date 2023-12-22 16:12:44
|
|
27
|
+
* @param {string} [id] 可选,不传则自动生成
|
|
28
|
+
* @return {*} {UIDomain}
|
|
29
|
+
*/
|
|
30
|
+
create(id) {
|
|
31
|
+
const domain = new UIDomain(id);
|
|
32
|
+
this.domainMap.set(domain.id, domain);
|
|
33
|
+
return domain;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 获取域
|
|
37
|
+
*
|
|
38
|
+
* @author chitanda
|
|
39
|
+
* @date 2023-12-22 15:12:17
|
|
40
|
+
* @param {string} id
|
|
41
|
+
* @return {*} {UIDomain}
|
|
42
|
+
*/
|
|
43
|
+
get(id) {
|
|
44
|
+
if (this.domainMap.has(id)) {
|
|
45
|
+
return this.domainMap.get(id);
|
|
46
|
+
}
|
|
47
|
+
throw new Error(`无效的界面域标识[${id}]`);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* 销毁域
|
|
51
|
+
*
|
|
52
|
+
* @author chitanda
|
|
53
|
+
* @date 2023-12-22 15:12:03
|
|
54
|
+
* @param {string} id
|
|
55
|
+
*/
|
|
56
|
+
destroy(id) {
|
|
57
|
+
if (this.domainMap.has(id)) {
|
|
58
|
+
this.domainMap.get(id).destroy();
|
|
59
|
+
this.domainMap.delete(id);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/runtime",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.17-dev.0",
|
|
4
4
|
"description": "控制器包",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "chitanda",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@ibiz-template/core": "^0.4.
|
|
32
|
+
"@ibiz-template/core": "^0.4.17-dev.0",
|
|
33
33
|
"@ibiz/model-core": "^0.0.28",
|
|
34
34
|
"@types/path-browserify": "^1.0.2",
|
|
35
35
|
"@types/qs": "^6.9.10",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"qx-util": "^0.4.8",
|
|
60
60
|
"ramda": "^0.29.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "b0dfe9a357b41c7a97b640704a460cc485315ed9"
|
|
63
63
|
}
|
package/src/app-hub.ts
CHANGED
|
@@ -145,7 +145,7 @@ export class AppHub implements IAppHubService {
|
|
|
145
145
|
* @param {IAppView} model
|
|
146
146
|
*/
|
|
147
147
|
registerAppView(model: IAppView): void {
|
|
148
|
-
this.views.set(model.codeName
|
|
148
|
+
this.views.set(model.codeName!.toLowerCase(), model);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
/**
|
|
@@ -331,4 +331,18 @@ export class AppHub implements IAppHubService {
|
|
|
331
331
|
}
|
|
332
332
|
return this.appMap.get(key!)!;
|
|
333
333
|
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* 获取所有应用实例
|
|
337
|
+
*
|
|
338
|
+
* @author chitanda
|
|
339
|
+
* @date 2023-12-22 16:12:28
|
|
340
|
+
* @return {*} {IAppService[]}
|
|
341
|
+
*/
|
|
342
|
+
getAllApps(): IAppService[] {
|
|
343
|
+
if (this.appMap.size > 0) {
|
|
344
|
+
return Array.from(this.appMap.values());
|
|
345
|
+
}
|
|
346
|
+
return [];
|
|
347
|
+
}
|
|
334
348
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IModelObject } from '@ibiz/model-core';
|
|
2
|
+
import { createUUID } from 'qx-util';
|
|
2
3
|
import { CTX } from '../ctx';
|
|
3
4
|
import {
|
|
4
5
|
EventBase,
|
|
@@ -24,6 +25,8 @@ export class BaseController<
|
|
|
24
25
|
E extends IComponentEvent = IComponentEvent,
|
|
25
26
|
> implements IController<T, S, E>
|
|
26
27
|
{
|
|
28
|
+
id: string = createUUID();
|
|
29
|
+
|
|
27
30
|
/**
|
|
28
31
|
* 中间层的基类才会使用,用于在内部使用自身的事件,事件类型不是泛型用evt就能正确推导出来。
|
|
29
32
|
* @author lxm
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import {
|
|
2
|
+
import { notNilEmpty } from 'qx-util';
|
|
3
3
|
import { IBizContext, RuntimeError } from '@ibiz-template/core';
|
|
4
4
|
import { IAppView } from '@ibiz/model-core';
|
|
5
5
|
import { isEmpty, isNil, isNotNil } from 'ramda';
|
|
@@ -320,11 +320,15 @@ export class ViewController<
|
|
|
320
320
|
await Promise.all(this.engines.map(engine => engine.onDestroyed()));
|
|
321
321
|
}
|
|
322
322
|
this.ctx.destroy();
|
|
323
|
-
this.context.destroy();
|
|
324
323
|
this.engines = [];
|
|
325
324
|
if (this.scheduler) {
|
|
326
325
|
this.scheduler.destroy();
|
|
327
326
|
}
|
|
327
|
+
// 销毁界面域,谁创建谁销毁
|
|
328
|
+
if (this.id === this.context.srfsessionid) {
|
|
329
|
+
ibiz.uiDomainManager.destroy(this.context.srfsessionid);
|
|
330
|
+
}
|
|
331
|
+
this.context.destroy();
|
|
328
332
|
ibiz.log.debug(`视图[${this.model.name}](${this.model.id})销毁`);
|
|
329
333
|
}
|
|
330
334
|
|
|
@@ -343,7 +347,9 @@ export class ViewController<
|
|
|
343
347
|
isNil(this.context.srfsessionid) ||
|
|
344
348
|
isEmpty(this.context.srfsessionid)
|
|
345
349
|
) {
|
|
346
|
-
|
|
350
|
+
// 生成一个界面域,界面域标识为当前控制器实例的标识
|
|
351
|
+
const domain = ibiz.uiDomainManager.create(this.id);
|
|
352
|
+
this.context.srfsessionid = domain.id;
|
|
347
353
|
}
|
|
348
354
|
|
|
349
355
|
// 处理自定义导航上下文
|
|
@@ -22,9 +22,11 @@ export class WFStepTraceViewController<
|
|
|
22
22
|
protected async onCreated(): Promise<void> {
|
|
23
23
|
await super.onCreated();
|
|
24
24
|
const app = ibiz.hub.getApp(this.context.srfappid);
|
|
25
|
-
|
|
25
|
+
const view = this.ctx.parent?.view;
|
|
26
|
+
if (view && view.model.appDataEntityId) {
|
|
26
27
|
const entityService = await app.deService.getService(
|
|
27
|
-
|
|
28
|
+
view.context,
|
|
29
|
+
view.model.appDataEntityId,
|
|
28
30
|
);
|
|
29
31
|
const params = Object.assign(this.context.clone(), this.params);
|
|
30
32
|
const res = await entityService.wf.getWFHistory(params);
|
|
@@ -18,13 +18,13 @@ export class CalendarService extends MDControlService<ISysCalendar> {
|
|
|
18
18
|
*
|
|
19
19
|
* @author zk
|
|
20
20
|
* @date 2023-08-08 10:08:47
|
|
21
|
-
* @param {
|
|
21
|
+
* @param {IContext} context
|
|
22
22
|
* @param {IParams} [params={}]
|
|
23
23
|
* @return {*} Promise<ICalendarItemData[]>
|
|
24
24
|
* @memberof CalendarService
|
|
25
25
|
*/
|
|
26
26
|
async search(
|
|
27
|
-
context:
|
|
27
|
+
context: IContext,
|
|
28
28
|
params: IParams = {},
|
|
29
29
|
): Promise<ICalendarItemData[]> {
|
|
30
30
|
const { sysCalendarItems } = this.model;
|
|
@@ -86,7 +86,7 @@ export class CalendarService extends MDControlService<ISysCalendar> {
|
|
|
86
86
|
* @author zk
|
|
87
87
|
* @date 2023-08-08 06:08:49
|
|
88
88
|
* @param {string} methodName
|
|
89
|
-
* @param {
|
|
89
|
+
* @param {IContext} context
|
|
90
90
|
* @param {IData} [data={}]
|
|
91
91
|
* @param {IParams} [params={}]
|
|
92
92
|
* @param {string} [appDataEntityId=this.model.appDataEntityId!]
|
|
@@ -95,7 +95,7 @@ export class CalendarService extends MDControlService<ISysCalendar> {
|
|
|
95
95
|
*/
|
|
96
96
|
private async exec2(
|
|
97
97
|
methodName: string,
|
|
98
|
-
context:
|
|
98
|
+
context: IContext,
|
|
99
99
|
data: IData = {},
|
|
100
100
|
params: IParams = {},
|
|
101
101
|
appDataEntityId: string = this.model.appDataEntityId!,
|