@ibiz-template/runtime 0.1.9 → 0.1.10
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 +259 -96
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/config/global-config.js +1 -1
- package/out/interface/common/i-ui-action-result/i-ui-action-result.d.ts +7 -0
- package/out/interface/common/i-ui-action-result/i-ui-action-result.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-form.controller.d.ts +7 -0
- package/out/interface/controller/controller/control/i-form.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-grid.controller.d.ts +9 -1
- package/out/interface/controller/controller/control/i-grid.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-tree.controller.d.ts +6 -4
- package/out/interface/controller/controller/control/i-tree.controller.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-pickup-view-panel.event.d.ts +0 -15
- package/out/interface/controller/event/control/i-pickup-view-panel.event.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-tree-exp-bar.state.d.ts +8 -0
- package/out/interface/controller/state/control/i-tree-exp-bar.state.d.ts.map +1 -1
- package/out/register/helper/common-register.d.ts +11 -0
- package/out/register/helper/common-register.d.ts.map +1 -0
- package/out/register/helper/common-register.js +20 -0
- package/out/register/helper/control-register.d.ts.map +1 -1
- package/out/register/helper/control-register.js +22 -5
- package/out/register/helper/editor-register.d.ts.map +1 -1
- package/out/register/helper/editor-register.js +25 -5
- package/out/register/helper/form-detail-register.d.ts.map +1 -1
- package/out/register/helper/form-detail-register.js +19 -5
- package/out/register/helper/grid-column-register.d.ts.map +1 -1
- package/out/register/helper/grid-column-register.js +19 -5
- package/out/register/helper/panel-item-register.d.ts.map +1 -1
- package/out/register/helper/panel-item-register.js +25 -5
- package/out/register/helper/portlet-register.d.ts.map +1 -1
- package/out/register/helper/portlet-register.js +19 -5
- package/out/register/helper/ui-action-register.d.ts.map +1 -1
- package/out/register/helper/ui-action-register.js +19 -5
- package/out/register/helper/view-register.d.ts.map +1 -1
- package/out/register/helper/view-register.js +18 -1
- package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
- package/out/service/app-data-entity/app-data-entity.js +0 -1
- package/out/service/service/counter/counter.service.d.ts.map +1 -1
- package/out/service/service/counter/counter.service.js +4 -1
- package/out/ui-action/provider/sys-ui-action-provider.d.ts +1 -0
- package/out/ui-action/provider/sys-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/sys-ui-action-provider.js +42 -1
- package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
- package/out/ui-action/provider/ui-action-provider-base.js +1 -0
- package/out/ui-action/uiaction-util.d.ts.map +1 -1
- package/out/ui-action/uiaction-util.js +13 -1
- package/package.json +4 -4
- package/src/config/global-config.ts +1 -1
- package/src/interface/common/i-ui-action-result/i-ui-action-result.ts +8 -0
- package/src/interface/controller/controller/control/i-form.controller.ts +8 -0
- package/src/interface/controller/controller/control/i-grid.controller.ts +10 -1
- package/src/interface/controller/controller/control/i-tree.controller.ts +9 -4
- package/src/interface/controller/event/control/i-pickup-view-panel.event.ts +0 -16
- package/src/interface/controller/state/control/i-tree-exp-bar.state.ts +10 -1
- package/src/register/helper/common-register.ts +28 -0
- package/src/register/helper/control-register.ts +21 -6
- package/src/register/helper/editor-register.ts +22 -7
- package/src/register/helper/form-detail-register.ts +18 -6
- package/src/register/helper/grid-column-register.ts +19 -6
- package/src/register/helper/panel-item-register.ts +22 -6
- package/src/register/helper/portlet-register.ts +19 -6
- package/src/register/helper/ui-action-register.ts +19 -6
- package/src/register/helper/view-register.ts +18 -1
- package/src/service/app-data-entity/app-data-entity.ts +0 -1
- package/src/service/service/counter/counter.service.ts +4 -1
- package/src/ui-action/provider/sys-ui-action-provider.ts +41 -1
- package/src/ui-action/provider/ui-action-provider-base.ts +1 -0
- package/src/ui-action/uiaction-util.ts +12 -1
|
@@ -15,6 +15,13 @@ export interface IUIActionResult {
|
|
|
15
15
|
* @type {boolean}
|
|
16
16
|
*/
|
|
17
17
|
refresh?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 刷新引用视图模式
|
|
20
|
+
* @description 值模式 [界面行为重新加载数据模式] {0:无、 1:引用视图或树节点、 2:引用树节点父节点、 3:引用树节点根节点 }
|
|
21
|
+
* @type {( number | 0 | 1 | 2 | 3)}
|
|
22
|
+
* @default 0
|
|
23
|
+
*/
|
|
24
|
+
refreshMode?: number | 0 | 1 | 2 | 3;
|
|
18
25
|
/**
|
|
19
26
|
* 是否关闭界面
|
|
20
27
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-ui-action-result.d.ts","sourceRoot":"","sources":["../../../../src/interface/common/i-ui-action-result/i-ui-action-result.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;IAEf;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IAEvB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
1
|
+
{"version":3,"file":"i-ui-action-result.d.ts","sourceRoot":"","sources":["../../../../src/interface/common/i-ui-action-result/i-ui-action-result.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAErC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;IAEf;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IAEvB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -18,5 +18,12 @@ export interface IFormController<T extends IDEForm = IDEForm, S extends IFormSta
|
|
|
18
18
|
* @return {*} {IData[]}
|
|
19
19
|
*/
|
|
20
20
|
getData(): IData[];
|
|
21
|
+
/**
|
|
22
|
+
* 表单值规则校验
|
|
23
|
+
* @author zzq
|
|
24
|
+
* @date 2023-08-23 16:38:33
|
|
25
|
+
* @return {*} {Promise<boolean>}
|
|
26
|
+
*/
|
|
27
|
+
validate(): Promise<boolean>;
|
|
21
28
|
}
|
|
22
29
|
//# sourceMappingURL=i-form.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-form.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-form.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe,CAC9B,CAAC,SAAS,OAAO,GAAG,OAAO,EAC3B,CAAC,SAAS,UAAU,GAAG,UAAU,EACjC,CAAC,SAAS,UAAU,GAAG,UAAU,CACjC,SAAQ,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACnC;;;;;OAKG;IACH,OAAO,IAAI,KAAK,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"i-form.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-form.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe,CAC9B,CAAC,SAAS,OAAO,GAAG,OAAO,EAC3B,CAAC,SAAS,UAAU,GAAG,UAAU,EACjC,CAAC,SAAS,UAAU,GAAG,UAAU,CACjC,SAAQ,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACnC;;;;;OAKG;IACH,OAAO,IAAI,KAAK,EAAE,CAAC;IAEnB;;;;;OAKG;IACH,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IDEGrid } from '@ibiz/model-core';
|
|
2
2
|
import { ControlVO } from '../../../../service';
|
|
3
3
|
import { IGridEvent } from '../../event';
|
|
4
|
-
import { IGridState } from '../../state';
|
|
4
|
+
import { IGridRowState, IGridState } from '../../state';
|
|
5
5
|
import { IMDControlController } from './i-md-control.controller';
|
|
6
6
|
/**
|
|
7
7
|
* 表格控制器
|
|
@@ -54,5 +54,13 @@ export interface IGridController extends IMDControlController<IDEGrid, IGridStat
|
|
|
54
54
|
event: MouseEvent;
|
|
55
55
|
params: IData;
|
|
56
56
|
}): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* 值规则校验
|
|
59
|
+
*
|
|
60
|
+
* @author zzq
|
|
61
|
+
* @date 2023-08-23 18:23:26
|
|
62
|
+
* @memberof IGridController
|
|
63
|
+
*/
|
|
64
|
+
validate(row: IGridRowState): Promise<boolean>;
|
|
57
65
|
}
|
|
58
66
|
//# sourceMappingURL=i-grid.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-grid.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-grid.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"i-grid.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-grid.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,WAAW,eACf,SAAQ,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;IAC7D;;;;;;OAMG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAExB;;;;;;OAMG;IACH,IAAI,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC;;;;;;OAMG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB;;;;;OAKG;IACH,aAAa,IAAI,IAAI,CAAC;IAEtB;;;;;;OAMG;IACH,UAAU,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,UAAU,CAAC;QAAC,MAAM,EAAE,KAAK,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvE;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAChD"}
|
|
@@ -37,11 +37,13 @@ export interface ITreeController extends IMDControlController<IDETree, ITreeStat
|
|
|
37
37
|
*/
|
|
38
38
|
doUIAction(uiActionId: string, nodeData: ITreeNodeData, event: MouseEvent): Promise<void>;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* 刷新指定树节点的子节点数据
|
|
41
41
|
* @author lxm
|
|
42
|
-
* @date 2023-08-
|
|
43
|
-
* @param {ITreeNodeData}
|
|
42
|
+
* @date 2023-08-23 08:23:59
|
|
43
|
+
* @param {(ITreeNodeData | IData)} nodeData 指定树节点数据,可以是节点数据,也可以是对应的实体数据
|
|
44
|
+
* @param {boolean} [refreshParent=false] 是否是刷新给定节点数据的父节点的子节点数据
|
|
45
|
+
* @return {*} {Promise<void>}
|
|
44
46
|
*/
|
|
45
|
-
|
|
47
|
+
refreshNodeChildren(nodeData: ITreeNodeData | IData, refreshParent?: boolean): Promise<void>;
|
|
46
48
|
}
|
|
47
49
|
//# sourceMappingURL=i-tree.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-tree.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-tree.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,WAAW,eACf,SAAQ,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;IAC7D;;;;;;OAMG;IACH,eAAe,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExD;;;;;OAKG;IACH,iBAAiB,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1D;;;;;;;;OAQG;IACH,UAAU,CACR,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB
|
|
1
|
+
{"version":3,"file":"i-tree.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-tree.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,WAAW,eACf,SAAQ,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;IAC7D;;;;;;OAMG;IACH,eAAe,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExD;;;;;OAKG;IACH,iBAAiB,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1D;;;;;;;;OAQG;IACH,UAAU,CACR,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;OAOG;IACH,mBAAmB,CACjB,QAAQ,EAAE,aAAa,GAAG,KAAK,EAC/B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -40,20 +40,5 @@ export interface IPickupViewPanelEvent extends IControlEvent {
|
|
|
40
40
|
data: IData[];
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
-
/**
|
|
44
|
-
* 选择视图初始化
|
|
45
|
-
*
|
|
46
|
-
* @author zk
|
|
47
|
-
* @date 2023-08-04 05:08:37
|
|
48
|
-
* @type {{
|
|
49
|
-
* event: EventBase;
|
|
50
|
-
* emitArgs: { data: IViewController };
|
|
51
|
-
* }}
|
|
52
|
-
* @memberof IPickupViewPanelEvent
|
|
53
|
-
*/
|
|
54
|
-
onPickUpViewMounted: {
|
|
55
|
-
event: EventBase;
|
|
56
|
-
emitArgs: undefined;
|
|
57
|
-
};
|
|
58
43
|
}
|
|
59
44
|
//# sourceMappingURL=i-pickup-view-panel.event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-pickup-view-panel.event.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/event/control/i-pickup-view-panel.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D;;;;;;;;OAQG;IACH,iBAAiB,EAAE;QACjB,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE;YAAE,IAAI,EAAE,KAAK,EAAE,CAAA;SAAE,CAAC;KAC7B,CAAC;IAEF;;;;;;;;;;OAUG;IACH,YAAY,EAAE;QACZ,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE;YAAE,IAAI,EAAE,KAAK,EAAE,CAAA;SAAE,CAAC;KAC7B,CAAC;
|
|
1
|
+
{"version":3,"file":"i-pickup-view-panel.event.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/event/control/i-pickup-view-panel.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D;;;;;;;;OAQG;IACH,iBAAiB,EAAE;QACjB,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE;YAAE,IAAI,EAAE,KAAK,EAAE,CAAA;SAAE,CAAC;KAC7B,CAAC;IAEF;;;;;;;;;;OAUG;IACH,YAAY,EAAE;QACZ,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE;YAAE,IAAI,EAAE,KAAK,EAAE,CAAA;SAAE,CAAC;KAC7B,CAAC;CACH"}
|
|
@@ -7,5 +7,13 @@ import { IExpBarControlState } from './i-exp-bar-control.state';
|
|
|
7
7
|
* @extends {IExpBarControlState}
|
|
8
8
|
*/
|
|
9
9
|
export interface ITreeExpBarState extends IExpBarControlState {
|
|
10
|
+
/**
|
|
11
|
+
* 不需要配置导航视图
|
|
12
|
+
* 没有配置导航视图的情况下也正常抛出导航事件,由外部决定导航参数用在哪个导航视图里。
|
|
13
|
+
* @author lxm
|
|
14
|
+
* @date 2023-08-22 03:39:14
|
|
15
|
+
* @type {boolean}
|
|
16
|
+
*/
|
|
17
|
+
noNeedNavView: boolean;
|
|
10
18
|
}
|
|
11
19
|
//# sourceMappingURL=i-tree-exp-bar.state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-tree-exp-bar.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-tree-exp-bar.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;
|
|
1
|
+
{"version":3,"file":"i-tree-exp-bar.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-tree-exp-bar.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC3D;;;;;;OAMG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取插件的注册唯一标识
|
|
3
|
+
* @author lxm
|
|
4
|
+
* @date 2023-08-23 11:04:04
|
|
5
|
+
* @export
|
|
6
|
+
* @param {string} pluginId
|
|
7
|
+
* @param {string} [appId]
|
|
8
|
+
* @return {*} {string}
|
|
9
|
+
*/
|
|
10
|
+
export declare function getPluginRegisterKey(pluginId: string, appId?: string): Promise<string | undefined>;
|
|
11
|
+
//# sourceMappingURL=common-register.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/common-register.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAe7B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取插件的注册唯一标识
|
|
3
|
+
* @author lxm
|
|
4
|
+
* @date 2023-08-23 11:04:04
|
|
5
|
+
* @export
|
|
6
|
+
* @param {string} pluginId
|
|
7
|
+
* @param {string} [appId]
|
|
8
|
+
* @return {*} {string}
|
|
9
|
+
*/
|
|
10
|
+
export async function getPluginRegisterKey(pluginId, appId) {
|
|
11
|
+
var _a;
|
|
12
|
+
const app = ibiz.hub.getApp(appId);
|
|
13
|
+
const plugin = (_a = app.model.appPFPluginRefs) === null || _a === void 0 ? void 0 : _a.find(item => item.pluginCode.toLowerCase() === pluginId);
|
|
14
|
+
if (!plugin) {
|
|
15
|
+
ibiz.log.error(`找不到${pluginId}的插件模型`);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
await ibiz.plugin.loadPlugin(plugin);
|
|
19
|
+
return `${plugin.pluginType}_${plugin.pluginCode}`;
|
|
20
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/control-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"control-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/control-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,cAAc;AACd,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAEjD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,gBAAgB,GAC/B,IAAI,CAEN;AAQD;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,QAAQ,GACd,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAwCvC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getPluginRegisterKey } from './common-register';
|
|
1
2
|
/** 部件适配器前缀 */
|
|
2
3
|
export const CONTROL_PROVIDER_PREFIX = 'CONTROL';
|
|
3
4
|
/**
|
|
@@ -24,7 +25,20 @@ function getProvider(key) {
|
|
|
24
25
|
*/
|
|
25
26
|
export async function getControlProvider(model) {
|
|
26
27
|
let provider;
|
|
27
|
-
const { controlType, controlStyle } = model;
|
|
28
|
+
const { controlType, controlStyle, sysPFPluginId, appId } = model;
|
|
29
|
+
// 找插件适配器
|
|
30
|
+
if (sysPFPluginId) {
|
|
31
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
32
|
+
if (pluginKey) {
|
|
33
|
+
provider = getProvider(pluginKey);
|
|
34
|
+
}
|
|
35
|
+
if (!provider) {
|
|
36
|
+
ibiz.log.error(`找不到部件插件${pluginKey}对应的适配器`);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return provider;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
28
42
|
// 再找部件类型和部件样式
|
|
29
43
|
if (controlStyle && controlStyle !== 'DEFAULT') {
|
|
30
44
|
const key = `${controlType}_${controlStyle}`;
|
|
@@ -32,13 +46,16 @@ export async function getControlProvider(model) {
|
|
|
32
46
|
if (!provider) {
|
|
33
47
|
ibiz.log.error(`找不到部件类型:[${controlType}]的部件样式:[${controlStyle}]对应的适配器`, model);
|
|
34
48
|
}
|
|
49
|
+
else {
|
|
50
|
+
return provider;
|
|
51
|
+
}
|
|
35
52
|
}
|
|
36
53
|
// 找部件类型
|
|
37
|
-
|
|
38
|
-
provider = getProvider(controlType);
|
|
39
|
-
}
|
|
54
|
+
provider = getProvider(controlType);
|
|
40
55
|
if (!provider) {
|
|
41
56
|
ibiz.log.error(`找不到部件类型${controlType}对应的适配器`);
|
|
42
57
|
}
|
|
43
|
-
|
|
58
|
+
else {
|
|
59
|
+
return provider;
|
|
60
|
+
}
|
|
44
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/editor-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"editor-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/editor-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,eAAe;AACf,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAE/C;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,eAAe,GAC9B,IAAI,CAEN;AAQD;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAwDtC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getPluginRegisterKey } from './common-register';
|
|
1
2
|
/** 编辑器适配器前缀 */
|
|
2
3
|
export const EDITOR_PROVIDER_PREFIX = 'EDITOR';
|
|
3
4
|
/**
|
|
@@ -24,7 +25,20 @@ function getProvider(key) {
|
|
|
24
25
|
*/
|
|
25
26
|
export async function getEditorProvider(model) {
|
|
26
27
|
let provider;
|
|
27
|
-
const { editorType, editorStyle, predefinedType } = model;
|
|
28
|
+
const { editorType, editorStyle, predefinedType, sysPFPluginId, appId } = model;
|
|
29
|
+
// 找插件适配器
|
|
30
|
+
if (sysPFPluginId) {
|
|
31
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
32
|
+
if (pluginKey) {
|
|
33
|
+
provider = getProvider(pluginKey);
|
|
34
|
+
}
|
|
35
|
+
if (!provider) {
|
|
36
|
+
ibiz.log.error(`找不到编辑器插件${pluginKey}对应的适配器`);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return provider;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
28
42
|
// 再找编辑器类型和编辑器样式
|
|
29
43
|
if (editorStyle && editorStyle !== 'DEFAULT') {
|
|
30
44
|
const key = `${editorType}_${editorStyle}`;
|
|
@@ -32,6 +46,9 @@ export async function getEditorProvider(model) {
|
|
|
32
46
|
if (!provider) {
|
|
33
47
|
ibiz.log.error(`找不到编辑器类型:[${editorType}]的编辑器样式:[${editorStyle}]对应的适配器`, model);
|
|
34
48
|
}
|
|
49
|
+
else {
|
|
50
|
+
return provider;
|
|
51
|
+
}
|
|
35
52
|
}
|
|
36
53
|
// 编辑器预置类型
|
|
37
54
|
if (predefinedType) {
|
|
@@ -43,13 +60,16 @@ export async function getEditorProvider(model) {
|
|
|
43
60
|
if (!provider) {
|
|
44
61
|
ibiz.log.error(`找不到编辑器类型:[${editorType}]的预置类型:[${predefinedType}]对应的适配器`, model);
|
|
45
62
|
}
|
|
63
|
+
else {
|
|
64
|
+
return provider;
|
|
65
|
+
}
|
|
46
66
|
}
|
|
47
67
|
// 找编辑器类型
|
|
48
|
-
|
|
49
|
-
provider = getProvider(editorType);
|
|
50
|
-
}
|
|
68
|
+
provider = getProvider(editorType);
|
|
51
69
|
if (!provider) {
|
|
52
70
|
ibiz.log.error(`找不到编辑器类型${editorType}对应的适配器`);
|
|
53
71
|
}
|
|
54
|
-
|
|
72
|
+
else {
|
|
73
|
+
return provider;
|
|
74
|
+
}
|
|
55
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-detail-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/form-detail-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"form-detail-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/form-detail-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtD,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,eAAe,CAAC;AAEvD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,mBAAmB,GAClC,IAAI,CAEN;AAQD;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,aAAa,GACnB,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAwB1C"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getPluginRegisterKey } from './common-register';
|
|
1
2
|
/** 表单成员适配器前缀 */
|
|
2
3
|
export const FORMDETAIL_PROVIDER_PREFIX = 'FORMDETAIL';
|
|
3
4
|
/**
|
|
@@ -24,13 +25,26 @@ function getProvider(key) {
|
|
|
24
25
|
*/
|
|
25
26
|
export async function getFormDetailProvider(model) {
|
|
26
27
|
let provider;
|
|
27
|
-
const { detailType } = model;
|
|
28
|
-
//
|
|
29
|
-
if (
|
|
30
|
-
|
|
28
|
+
const { detailType, sysPFPluginId, appId } = model;
|
|
29
|
+
// 找插件适配器
|
|
30
|
+
if (sysPFPluginId) {
|
|
31
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
32
|
+
if (pluginKey) {
|
|
33
|
+
provider = getProvider(pluginKey);
|
|
34
|
+
}
|
|
35
|
+
if (!provider) {
|
|
36
|
+
ibiz.log.error(`找不到表单成员插件${pluginKey}对应的适配器`);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return provider;
|
|
40
|
+
}
|
|
31
41
|
}
|
|
42
|
+
// 找表单成员类型
|
|
43
|
+
provider = getProvider(detailType);
|
|
32
44
|
if (!provider) {
|
|
33
45
|
ibiz.log.error(`找不到表单成员类型${detailType}对应的适配器`);
|
|
34
46
|
}
|
|
35
|
-
|
|
47
|
+
else {
|
|
48
|
+
return provider;
|
|
49
|
+
}
|
|
36
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-column-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/grid-column-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-column-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/grid-column-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtD,eAAe;AACf,eAAO,MAAM,0BAA0B,eAAe,CAAC;AAEvD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,mBAAmB,GAClC,IAAI,CAEN;AAQD;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,aAAa,GACnB,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CA0B1C"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getPluginRegisterKey } from './common-register';
|
|
1
2
|
/** 表格列适配器前缀 */
|
|
2
3
|
export const GRIDCOLUMN_PROVIDER_PREFIX = 'GRIDCOLUMN';
|
|
3
4
|
/**
|
|
@@ -24,14 +25,27 @@ function getProvider(key) {
|
|
|
24
25
|
*/
|
|
25
26
|
export async function getGridColumnProvider(model) {
|
|
26
27
|
let provider;
|
|
27
|
-
const { columnType, enableRowEdit } = model;
|
|
28
|
+
const { columnType, enableRowEdit, sysPFPluginId, appId } = model;
|
|
29
|
+
// 找插件适配器
|
|
30
|
+
if (sysPFPluginId) {
|
|
31
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
32
|
+
if (pluginKey) {
|
|
33
|
+
provider = getProvider(pluginKey);
|
|
34
|
+
}
|
|
35
|
+
if (!provider) {
|
|
36
|
+
ibiz.log.error(`找不到表格列插件${pluginKey}对应的适配器`);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return provider;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
28
42
|
const key = enableRowEdit ? `${columnType}_EDIT` : columnType;
|
|
29
43
|
// 找表格列类型
|
|
30
|
-
|
|
31
|
-
provider = getProvider(key);
|
|
32
|
-
}
|
|
44
|
+
provider = getProvider(key);
|
|
33
45
|
if (!provider) {
|
|
34
46
|
ibiz.log.error(`找不到表格列类型${key}对应的适配器`);
|
|
35
47
|
}
|
|
36
|
-
|
|
48
|
+
else {
|
|
49
|
+
return provider;
|
|
50
|
+
}
|
|
37
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel-item-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/panel-item-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAiB,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"panel-item-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/panel-item-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAiB,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGrD,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,cAAc,CAAC;AAErD;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,kBAAkB,GACjC,IAAI,CAKN;AAQD;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAoDzC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getPluginRegisterKey } from './common-register';
|
|
1
2
|
/** 面板成员适配器前缀 */
|
|
2
3
|
export const PANELITEM_PROVIDER_PREFIX = 'PANELITEM';
|
|
3
4
|
/**
|
|
@@ -25,7 +26,20 @@ function getProvider(key) {
|
|
|
25
26
|
export async function getPanelItemProvider(model) {
|
|
26
27
|
var _a;
|
|
27
28
|
let provider;
|
|
28
|
-
const { itemType } = model;
|
|
29
|
+
const { itemType, sysPFPluginId, appId } = model;
|
|
30
|
+
// 找插件适配器
|
|
31
|
+
if (sysPFPluginId) {
|
|
32
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
33
|
+
if (pluginKey) {
|
|
34
|
+
provider = getProvider(pluginKey);
|
|
35
|
+
}
|
|
36
|
+
if (!provider) {
|
|
37
|
+
ibiz.log.error(`找不到面板成员插件${pluginKey}对应的适配器`);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
return provider;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
29
43
|
// 特殊容器类型
|
|
30
44
|
if (itemType === 'CONTAINER') {
|
|
31
45
|
const predefinedType = model.predefinedType || 'DEFAULT';
|
|
@@ -34,6 +48,9 @@ export async function getPanelItemProvider(model) {
|
|
|
34
48
|
if (!provider) {
|
|
35
49
|
ibiz.log.error(`找不到面板容器预置类型为${predefinedType}的适配器`);
|
|
36
50
|
}
|
|
51
|
+
else {
|
|
52
|
+
return provider;
|
|
53
|
+
}
|
|
37
54
|
}
|
|
38
55
|
// 特殊直接内容类型
|
|
39
56
|
if (itemType === 'RAWITEM') {
|
|
@@ -43,13 +60,16 @@ export async function getPanelItemProvider(model) {
|
|
|
43
60
|
if (!provider) {
|
|
44
61
|
ibiz.log.error(`找不到面板成员直接内容预置类型为${predefinedType}的适配器`);
|
|
45
62
|
}
|
|
63
|
+
else {
|
|
64
|
+
return provider;
|
|
65
|
+
}
|
|
46
66
|
}
|
|
47
67
|
// 找面板成员类型
|
|
48
|
-
|
|
49
|
-
provider = getProvider(itemType);
|
|
50
|
-
}
|
|
68
|
+
provider = getProvider(itemType);
|
|
51
69
|
if (!provider) {
|
|
52
70
|
ibiz.log.error(`找不到面板成员类型${itemType}对应的适配器`);
|
|
53
71
|
}
|
|
54
|
-
|
|
72
|
+
else {
|
|
73
|
+
return provider;
|
|
74
|
+
}
|
|
55
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portlet-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/portlet-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"portlet-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/portlet-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,kBAAkB;AAClB,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAEjD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,gBAAgB,GAC/B,IAAI,CAEN;AAQD;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAyBvC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getPluginRegisterKey } from './common-register';
|
|
1
2
|
/** 门户部件成员适配器前缀 */
|
|
2
3
|
export const PORTLET_PROVIDER_PREFIX = 'PORTLET';
|
|
3
4
|
/**
|
|
@@ -24,13 +25,26 @@ function getProvider(key) {
|
|
|
24
25
|
*/
|
|
25
26
|
export async function getPortletProvider(model) {
|
|
26
27
|
let provider;
|
|
27
|
-
const { portletType } = model;
|
|
28
|
-
//
|
|
29
|
-
if (
|
|
30
|
-
|
|
28
|
+
const { portletType, sysPFPluginId, appId } = model;
|
|
29
|
+
// 找插件适配器
|
|
30
|
+
if (sysPFPluginId) {
|
|
31
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
32
|
+
if (pluginKey) {
|
|
33
|
+
provider = getProvider(pluginKey);
|
|
34
|
+
}
|
|
35
|
+
if (!provider) {
|
|
36
|
+
ibiz.log.error(`找不到门户部件插件${pluginKey}对应的适配器`);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return provider;
|
|
40
|
+
}
|
|
31
41
|
}
|
|
42
|
+
// 找门户部件成员类型
|
|
43
|
+
provider = getProvider(portletType);
|
|
32
44
|
if (!provider) {
|
|
33
45
|
ibiz.log.error(`找不到门户部件成员类型${portletType}对应的适配器`);
|
|
34
46
|
}
|
|
35
|
-
|
|
47
|
+
else {
|
|
48
|
+
return provider;
|
|
49
|
+
}
|
|
36
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-action-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/ui-action-register.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"ui-action-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/ui-action-register.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,aAAa,CAAC;AAEnD;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,iBAAiB,GAChC,IAAI,CAEN;AAQD;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,YAAY,GAClB,OAAO,CAAC,iBAAiB,CAAC,CAyB5B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RuntimeError } from '@ibiz-template/core';
|
|
2
|
+
import { getPluginRegisterKey } from './common-register';
|
|
2
3
|
/** 界面行为适配器前缀 */
|
|
3
4
|
export const UIACTION_PROVIDER_PREFIX = 'UIACTION';
|
|
4
5
|
/**
|
|
@@ -25,13 +26,26 @@ function getProvider(key) {
|
|
|
25
26
|
*/
|
|
26
27
|
export async function getUIActionProvider(model) {
|
|
27
28
|
let provider;
|
|
28
|
-
const { uiactionMode } = model;
|
|
29
|
-
//
|
|
30
|
-
if (
|
|
31
|
-
|
|
29
|
+
const { uiactionMode, sysPFPluginId, appId } = model;
|
|
30
|
+
// 找插件适配器
|
|
31
|
+
if (sysPFPluginId) {
|
|
32
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
33
|
+
if (pluginKey) {
|
|
34
|
+
provider = getProvider(pluginKey);
|
|
35
|
+
}
|
|
36
|
+
if (!provider) {
|
|
37
|
+
ibiz.log.error(`找不到界面行为插件${pluginKey}对应的适配器`);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
return provider;
|
|
41
|
+
}
|
|
32
42
|
}
|
|
43
|
+
// 找界面行为类型
|
|
44
|
+
provider = getProvider(uiactionMode);
|
|
33
45
|
if (!provider) {
|
|
34
46
|
throw new RuntimeError(`找不界面行为模式${uiactionMode}对应的适配器`);
|
|
35
47
|
}
|
|
36
|
-
|
|
48
|
+
else {
|
|
49
|
+
return provider;
|
|
50
|
+
}
|
|
37
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/view-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"view-register.d.ts","sourceRoot":"","sources":["../../../src/register/helper/view-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,cAAc;AACd,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAE3C;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,aAAa,GAC5B,IAAI,CAEN;AAMD;;;;;;;GAOG;AACH,wBAAsB,eAAe,CACnC,KAAK,EAAE,QAAQ,GACd,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CA0CpC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getPluginRegisterKey } from './common-register';
|
|
1
2
|
/** 视图适配器前缀 */
|
|
2
3
|
export const VIEW_PROVIDER_PREFIX = 'VIEW';
|
|
3
4
|
/**
|
|
@@ -24,7 +25,20 @@ function getProvider(key) {
|
|
|
24
25
|
*/
|
|
25
26
|
export async function getViewProvider(model) {
|
|
26
27
|
let provider;
|
|
27
|
-
const { viewType, viewStyle } = model;
|
|
28
|
+
const { viewType, viewStyle, sysPFPluginId, appId } = model;
|
|
29
|
+
// 找插件适配器
|
|
30
|
+
if (sysPFPluginId) {
|
|
31
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
32
|
+
if (pluginKey) {
|
|
33
|
+
provider = getProvider(pluginKey);
|
|
34
|
+
}
|
|
35
|
+
if (!provider) {
|
|
36
|
+
ibiz.log.error(`找不到视图插件${pluginKey}对应的适配器`);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return provider;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
28
42
|
// 再找视图类型和视图样式
|
|
29
43
|
if (viewStyle && viewStyle !== 'DEFAULT') {
|
|
30
44
|
const key = `${viewType}_${viewStyle}`;
|
|
@@ -32,6 +46,9 @@ export async function getViewProvider(model) {
|
|
|
32
46
|
if (!provider) {
|
|
33
47
|
ibiz.log.error(`找不到视图类型:[${viewType}]的视图样式:[${viewStyle}]对应的适配器`, model);
|
|
34
48
|
}
|
|
49
|
+
else {
|
|
50
|
+
return provider;
|
|
51
|
+
}
|
|
35
52
|
}
|
|
36
53
|
// 找视图类型
|
|
37
54
|
if (!provider) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-data-entity.d.ts","sourceRoot":"","sources":["../../../src/service/app-data-entity/app-data-entity.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;;;;GAOG;AACH,qBAAa,aAAc,YAAW,WAAW;IAC/C,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B,UAAkB,KAAK,EAAE,KAAK,CAAC;IAE/B,UAAkB,OAAO,EAAE,cAAc,CAAC;IAElC,OAAO,EAAE,MAAM,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;IAEtB,UAAU,EAAE,MAAM,CAAC;IAEnB,YAAY,EAAE,MAAM,CAAC;IAErB,MAAM,EAAE,MAAM,CAAC;IAEf,YAAY,EAAE,MAAM,CAAC;IAE7B,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED;;;;;;;OAOG;gBACS,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,GAAG,aAAa;
|
|
1
|
+
{"version":3,"file":"app-data-entity.d.ts","sourceRoot":"","sources":["../../../src/service/app-data-entity/app-data-entity.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;;;;GAOG;AACH,qBAAa,aAAc,YAAW,WAAW;IAC/C,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B,UAAkB,KAAK,EAAE,KAAK,CAAC;IAE/B,UAAkB,OAAO,EAAE,cAAc,CAAC;IAElC,OAAO,EAAE,MAAM,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;IAEtB,UAAU,EAAE,MAAM,CAAC;IAEnB,YAAY,EAAE,MAAM,CAAC;IAErB,MAAM,EAAE,MAAM,CAAC;IAEf,YAAY,EAAE,MAAM,CAAC;IAE7B,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED;;;;;;;OAOG;gBACS,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,GAAG,aAAa;IAqE/D;;;;;;OAMG;IACH,SAAS,CAAC,gBAAgB,IAAI,IAAI;IAgClC;;;;;;OAMG;IACH,KAAK,IAAI,aAAa;IAItB;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,KAAK,GAAG,aAAa,GAAG,aAAa;CAQnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"counter.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/counter/counter.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;;GAOG;AACH,qBAAa,cAAc;IACzB;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAa;IAEjE;;;;;;;OAOG;WACU,UAAU,CACrB,KAAK,EAAE,WAAW,EAClB,OAAO,CAAC,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC;IAetB;;;;;;;;;;OAUG;WACU,eAAe,CAC1B,KAAK,EAAE,cAAc,EACrB,OAAO,CAAC,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"counter.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/counter/counter.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;;GAOG;AACH,qBAAa,cAAc;IACzB;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAa;IAEjE;;;;;;;OAOG;WACU,UAAU,CACrB,KAAK,EAAE,WAAW,EAClB,OAAO,CAAC,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC;IAetB;;;;;;;;;;OAUG;WACU,eAAe,CAC1B,KAAK,EAAE,cAAc,EACrB,OAAO,CAAC,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC;CAUvB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
import { RuntimeModelError } from '@ibiz-template/core';
|
|
2
|
+
import { ModelError, RuntimeModelError } from '@ibiz-template/core';
|
|
3
3
|
import { AppCounter } from '../../utils';
|
|
4
4
|
/**
|
|
5
5
|
* 计数器服务,用来获取计数器实例
|
|
@@ -48,6 +48,9 @@ export class CounterService {
|
|
|
48
48
|
if (!appCounter) {
|
|
49
49
|
throw new RuntimeModelError(model, `未配置应用计数器!`);
|
|
50
50
|
}
|
|
51
|
+
if (appCounter.counterType === 'CUSTOM') {
|
|
52
|
+
throw new ModelError(appCounter, `未支持自定义计数器`);
|
|
53
|
+
}
|
|
51
54
|
return this.getCounter(appCounter, context, params);
|
|
52
55
|
}
|
|
53
56
|
}
|