@ibiz-template/runtime 0.7.4 → 0.7.6
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 +704 -78
- package/dist/index.system.min.js +1 -1
- package/out/application.d.ts +10 -1
- package/out/application.d.ts.map +1 -1
- package/out/application.js +13 -0
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +12 -8
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts +80 -6
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/custom-dashboard.controller.js +109 -14
- package/out/controller/control/dashboard/dashboard.controller.d.ts +8 -0
- package/out/controller/control/dashboard/dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/dashboard.controller.js +17 -0
- package/out/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.d.ts +7 -0
- package/out/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.js +11 -0
- package/out/controller/control/dashboard/portlet/list-portlet/list-portlet.controller.d.ts +7 -0
- package/out/controller/control/dashboard/portlet/list-portlet/list-portlet.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/list-portlet/list-portlet.controller.js +11 -0
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts +31 -2
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.js +62 -15
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.state.d.ts +15 -0
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.state.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.d.ts +7 -0
- package/out/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.js +12 -0
- package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form/form.controller.js +2 -1
- package/out/controller/control/grid/grid/grid.controller.d.ts +37 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +135 -1
- package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
- package/out/controller/control/tree/tree.controller.js +1 -1
- package/out/controller/control/wizard-panel/wizard-panel.controller.d.ts +18 -0
- package/out/controller/control/wizard-panel/wizard-panel.controller.d.ts.map +1 -1
- package/out/controller/control/wizard-panel/wizard-panel.controller.js +70 -1
- package/out/controller/utils/view-msg/view-msg-controller.d.ts +10 -1
- package/out/controller/utils/view-msg/view-msg-controller.d.ts.map +1 -1
- package/out/controller/utils/view-msg/view-msg-controller.js +17 -3
- package/out/interface/common/i-app-service/i-app-service.d.ts +10 -1
- package/out/interface/common/i-app-service/i-app-service.d.ts.map +1 -1
- package/out/interface/controller/common/view-message/i-view-message.d.ts +8 -0
- package/out/interface/controller/common/view-message/i-view-message.d.ts.map +1 -1
- package/out/interface/controller/controller/control/portlet/i-portlet.controller.d.ts +14 -0
- package/out/interface/controller/controller/control/portlet/i-portlet.controller.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-dashboard.event.d.ts +15 -1
- package/out/interface/controller/event/control/i-dashboard.event.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-drtab.state.d.ts +7 -0
- package/out/interface/controller/state/control/i-drtab.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-wizard-panel.state.d.ts +7 -0
- package/out/interface/controller/state/control/i-wizard-panel.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/portlet/i-portlet.state.d.ts +15 -0
- package/out/interface/controller/state/control/portlet/i-portlet.state.d.ts.map +1 -1
- package/out/service/service/control/control.service.js +1 -1
- package/out/service/service/index.d.ts +1 -0
- package/out/service/service/index.d.ts.map +1 -1
- package/out/service/service/index.js +1 -0
- package/out/service/service/util/util.service.d.ts +93 -0
- package/out/service/service/util/util.service.d.ts.map +1 -0
- package/out/service/service/util/util.service.js +148 -0
- package/out/ui-logic/ui-logic-param/ui-logic-param.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-param/ui-logic-param.js +21 -9
- package/out/utils/nav-params/nav-params.d.ts +2 -0
- package/out/utils/nav-params/nav-params.d.ts.map +1 -1
- package/out/utils/nav-params/nav-params.js +25 -1
- package/package.json +3 -3
package/out/application.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Net } from '@ibiz-template/core';
|
|
2
|
-
import { IAppDEUIAction, IAppFunc, IApplication, IDEOPPriv, IDEUILogic } from '@ibiz/model-core';
|
|
2
|
+
import { IAppDEUIAction, IAppFunc, IAppUtil, IApplication, IDEOPPriv, IDEUILogic } from '@ibiz/model-core';
|
|
3
3
|
import { AuthorityService, CodeListService, ConfigService, DEServiceUtil, MqttService } from './service';
|
|
4
4
|
import { IAppService } from './interface';
|
|
5
5
|
/**
|
|
@@ -111,6 +111,15 @@ export declare class Application implements IAppService {
|
|
|
111
111
|
* @return {*} {(IAppFunc | null)}
|
|
112
112
|
*/
|
|
113
113
|
getAppFunc(id: string): IAppFunc | null;
|
|
114
|
+
/**
|
|
115
|
+
* 根据id获取应用功能组件
|
|
116
|
+
*
|
|
117
|
+
* @author tony001
|
|
118
|
+
* @date 2024-04-23 11:04:27
|
|
119
|
+
* @param {string} id
|
|
120
|
+
* @return {*} {(IAppUtil | null)}
|
|
121
|
+
*/
|
|
122
|
+
getAppUtil(id: string): IAppUtil | null;
|
|
114
123
|
/**
|
|
115
124
|
* 获取界面行为模型
|
|
116
125
|
* @author lxm
|
package/out/application.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../src/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAY,MAAM,qBAAqB,CA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I,CAAC,EAAE,WAAW,CAAC;IAEnB;;;;;;OAMG;gBACyB,KAAK,EAAE,YAAY;IAc/C;;;;;;OAMG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAM3B;;;;;;;OAOG;cACa,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAWlD;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI;IAMvC;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI;IAMvC;;;;;;;OAOG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAqBxE;;;;;;;OAOG;IACG,SAAS,CACb,EAAE,EAAE,MAAM,EACV,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IAajC;;;;;;;OAOG;IACG,YAAY,CAChB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAUlC;;;;;OAKG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAwB/B;;;;;OAKG;IACH,OAAO,IAAI,IAAI;CAGhB"}
|
package/out/application.js
CHANGED
|
@@ -89,6 +89,19 @@ export class Application {
|
|
|
89
89
|
const item = items.find(func => func.id === id);
|
|
90
90
|
return item || null;
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* 根据id获取应用功能组件
|
|
94
|
+
*
|
|
95
|
+
* @author tony001
|
|
96
|
+
* @date 2024-04-23 11:04:27
|
|
97
|
+
* @param {string} id
|
|
98
|
+
* @return {*} {(IAppUtil | null)}
|
|
99
|
+
*/
|
|
100
|
+
getAppUtil(id) {
|
|
101
|
+
const appUtils = this.model.appUtils || [];
|
|
102
|
+
const appUtil = appUtils.find(item => item.id === id);
|
|
103
|
+
return appUtil || null;
|
|
104
|
+
}
|
|
92
105
|
/**
|
|
93
106
|
* 获取界面行为模型
|
|
94
107
|
* @author lxm
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/common/view/view.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EACL,eAAe,EACf,UAAU,EACV,0BAA0B,EAC1B,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,eAAe,EACf,cAAc,EACd,WAAW,EACX,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAM9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;;;;;;GAOG;AACH,qBAAa,cAAc,CACvB,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAC7B,CAAC,SAAS,UAAU,GAAG,UAAU,EACjC,CAAC,SAAS,UAAU,GAAG,UAAU,CAEnC,SAAQ,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAC9B,YAAW,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAEnC,OAAO,EAAE,KAAK,CAAM;IAEpB,KAAK,EAAE,MAAM,CAAiB;IAE9B,SAAS,KAAK,IAAI,IAAI,eAAe,CAAC,UAAU,CAAC,CAEhD;IAED,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAE,CAAM;IAEpD,OAAO,EAAE,WAAW,EAAE,CAAM;IAE5B,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;KAAE,CAAM;IAEzC,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAM;IAE7C;;;;;OAKG;IACH,SAAS,CAAC,WAAW,eAAsB;IAE3C;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,EAAE,OAAO,CAAS;IAEvC;;;;;;OAMG;IACH,IAAI,UAAU,IAAI,eAAe,GAAG,SAAS,CAE5C;IAED;;;;;;;OAOG;IACH,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED;;;;;OAKG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAE/B,WAAW,CAAC,EAAE,0BAA0B,CAAC;IAEzC;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAEtC;;;;;;;;OAQG;gBACS,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,GAAG;IAcpE;;;;;OAKG;IACH,WAAW,IAAI,IAAI;IAKnB;;;;;OAKG;IACH,aAAa,IAAI,IAAI;IAKrB;;;;;OAKG;IACH,SAAS,CAAC,WAAW,IAAI,IAAI;IA2B7B;;;;;OAKG;cACa,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"view.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/common/view/view.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EACL,eAAe,EACf,UAAU,EACV,0BAA0B,EAC1B,gBAAgB,EAChB,MAAM,EACN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IAAI;IAsBvD;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBlC;;;;;;OAMG;IACG,gBAAgB,CAAC,QAAQ,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAiC/D;;;;;OAKG;IACH,SAAS,CAAC,wBAAwB,IAAI,IAAI;CAQ3C"}
|
|
@@ -150,7 +150,7 @@ export class ViewController extends BaseController {
|
|
|
150
150
|
if (appCounterRefs && appCounterRefs.length > 0) {
|
|
151
151
|
try {
|
|
152
152
|
await Promise.all(appCounterRefs.map(async (counterRef) => {
|
|
153
|
-
const counter = await CounterService.getCounterByRef(counterRef, this.context);
|
|
153
|
+
const counter = await CounterService.getCounterByRef(counterRef, this.context, Object.assign({}, this.params));
|
|
154
154
|
this.counters[counterRef.id] = counter;
|
|
155
155
|
}));
|
|
156
156
|
}
|
|
@@ -353,10 +353,10 @@ export class ViewController extends BaseController {
|
|
|
353
353
|
* @date 2023-09-20 09:19:20
|
|
354
354
|
*/
|
|
355
355
|
async initViewMsg() {
|
|
356
|
-
const { appViewMsgGroupId } = this.model;
|
|
356
|
+
const { appViewMsgGroupId, codeName } = this.model;
|
|
357
357
|
if (appViewMsgGroupId) {
|
|
358
358
|
this.state.viewMessages = { TOP: [], BOTTOM: [], BODY: [], POPUP: [] };
|
|
359
|
-
this.viewMsgController = new ViewMsgController(appViewMsgGroupId);
|
|
359
|
+
this.viewMsgController = new ViewMsgController(appViewMsgGroupId, `${codeName}_${this.modal.mode}`);
|
|
360
360
|
await this.viewMsgController.init(this.context);
|
|
361
361
|
const messages = await this.viewMsgController.calcViewMessages(this.context, this.params);
|
|
362
362
|
messages.forEach(message => {
|
|
@@ -381,11 +381,15 @@ export class ViewController extends BaseController {
|
|
|
381
381
|
const modalParams = {
|
|
382
382
|
title: message.title,
|
|
383
383
|
desc: message.message,
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
384
|
+
options: {
|
|
385
|
+
showClose: message.removeMode !== 0,
|
|
386
|
+
showConfirmButton: message.removeMode !== 0,
|
|
387
|
+
callback: () => {
|
|
388
|
+
if (message.removeMode === 1) {
|
|
389
|
+
localStorage.setItem(message.key, '1');
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
},
|
|
389
393
|
};
|
|
390
394
|
// userTag为确认按钮文本
|
|
391
395
|
if (message.extraParams.userTag) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IDashboard } from '@ibiz/model-core';
|
|
2
|
-
import {
|
|
2
|
+
import { IBizParams } from '@ibiz-template/core';
|
|
3
|
+
import { ConfigService, UtilService } from '../../../service';
|
|
4
|
+
import { DashboardController } from './dashboard.controller';
|
|
3
5
|
/**
|
|
4
6
|
* 自定义数据看板部件控制器
|
|
5
7
|
* @author lxm
|
|
@@ -29,13 +31,20 @@ export declare class CustomDashboardController {
|
|
|
29
31
|
* @Date: 2023-09-20 16:43:39
|
|
30
32
|
*/
|
|
31
33
|
layoutRowH: number;
|
|
34
|
+
/**
|
|
35
|
+
* 门户配置
|
|
36
|
+
*
|
|
37
|
+
* @type {IData}
|
|
38
|
+
* @memberof CustomDashboardController
|
|
39
|
+
*/
|
|
40
|
+
portletConfig: IData;
|
|
32
41
|
/**
|
|
33
42
|
* 看板模型
|
|
34
43
|
*
|
|
35
44
|
* @author: zhujiamin
|
|
36
45
|
* @Date: 2023-09-20 16:43:39
|
|
37
46
|
*/
|
|
38
|
-
model: IDashboard
|
|
47
|
+
model: IDashboard;
|
|
39
48
|
/**
|
|
40
49
|
* 应用配置存储服务
|
|
41
50
|
*
|
|
@@ -43,27 +52,92 @@ export declare class CustomDashboardController {
|
|
|
43
52
|
* @author: zhujiamin
|
|
44
53
|
* @Date: 2023-09-22 18:07:42
|
|
45
54
|
*/
|
|
46
|
-
config: ConfigService;
|
|
55
|
+
config: ConfigService | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* 应用功能组件服务
|
|
58
|
+
*
|
|
59
|
+
* @author tony001
|
|
60
|
+
* @date 2024-04-24 14:04:46
|
|
61
|
+
* @type {UtilService}
|
|
62
|
+
*/
|
|
63
|
+
util: UtilService | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* 上下文对象
|
|
66
|
+
*
|
|
67
|
+
* @author tony001
|
|
68
|
+
* @date 2024-04-24 14:04:35
|
|
69
|
+
* @type {IContext}
|
|
70
|
+
*/
|
|
71
|
+
context: IContext;
|
|
72
|
+
/**
|
|
73
|
+
* 视图参数
|
|
74
|
+
*
|
|
75
|
+
* @author tony001
|
|
76
|
+
* @date 2024-04-24 14:04:42
|
|
77
|
+
* @type {IBizParams}
|
|
78
|
+
*/
|
|
79
|
+
params: IBizParams;
|
|
80
|
+
/**
|
|
81
|
+
* 自定义定制范围类型(public:公开,personal:个人,data:数据,默认是按照个人区分,配置了应用功能组件才生效)
|
|
82
|
+
*
|
|
83
|
+
* @author tony001
|
|
84
|
+
* @date 2024-04-24 19:04:47
|
|
85
|
+
* @type {('public' | 'personal' | 'data')}
|
|
86
|
+
*/
|
|
87
|
+
type: 'public' | 'personal' | 'data';
|
|
88
|
+
/**
|
|
89
|
+
* 所属数据类型(仅限自定义定制为data类型时生效,配置了应用功能组件才生效)
|
|
90
|
+
*
|
|
91
|
+
* @author tony001
|
|
92
|
+
* @date 2024-04-24 19:04:06
|
|
93
|
+
* @type {string}
|
|
94
|
+
*/
|
|
95
|
+
ownerType: string;
|
|
96
|
+
/**
|
|
97
|
+
* 所属数据标识(仅限自定义定制为data类型时生效,配置了应用功能组件才生效)
|
|
98
|
+
*
|
|
99
|
+
* @author tony001
|
|
100
|
+
* @date 2024-04-24 19:04:18
|
|
101
|
+
* @type {string}
|
|
102
|
+
*/
|
|
103
|
+
ownerId: string;
|
|
47
104
|
/**
|
|
48
105
|
* Creates an instance of BaseController.
|
|
49
106
|
* @author lxm
|
|
50
107
|
* @date 2023-04-26 06:46:21
|
|
51
108
|
* @param {CTX} ctx 跨组件上下文环境,内部机制不暴露
|
|
52
109
|
*/
|
|
53
|
-
constructor(model: IDashboard);
|
|
110
|
+
constructor(model: IDashboard, dashboard: DashboardController);
|
|
111
|
+
/**
|
|
112
|
+
* 初始化
|
|
113
|
+
*
|
|
114
|
+
* @author tony001
|
|
115
|
+
* @date 2024-04-24 20:04:14
|
|
116
|
+
* @private
|
|
117
|
+
*/
|
|
118
|
+
private init;
|
|
119
|
+
/**
|
|
120
|
+
* 获取资源标识
|
|
121
|
+
*
|
|
122
|
+
* @author tony001
|
|
123
|
+
* @date 2024-04-24 14:04:55
|
|
124
|
+
* @private
|
|
125
|
+
* @return {*} {string}
|
|
126
|
+
*/
|
|
127
|
+
private getResourceTag;
|
|
54
128
|
/**
|
|
55
129
|
* 加载自定义布局模型数据
|
|
56
130
|
*
|
|
57
131
|
* @author: zhujiamin
|
|
58
132
|
* @Date: 2023-09-20 16:22:49
|
|
59
133
|
*/
|
|
60
|
-
loadCustomModelData(): Promise<IData
|
|
134
|
+
loadCustomModelData(): Promise<IData>;
|
|
61
135
|
/**
|
|
62
136
|
* 保存自定义布局模型数据
|
|
63
137
|
*
|
|
64
138
|
* @author: zhujiamin
|
|
65
139
|
* @Date: 2023-09-20 16:22:49
|
|
66
140
|
*/
|
|
67
|
-
saveCustomModelData(model: IData[]): Promise<IData
|
|
141
|
+
saveCustomModelData(model: IData[], config?: IData): Promise<IData>;
|
|
68
142
|
}
|
|
69
143
|
//# sourceMappingURL=custom-dashboard.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-dashboard.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/dashboard/custom-dashboard.controller.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"custom-dashboard.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/dashboard/custom-dashboard.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAA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|
+
import { ConfigService, UtilService } from '../../../service';
|
|
2
3
|
/**
|
|
3
4
|
* 自定义数据看板部件控制器
|
|
4
5
|
* @author lxm
|
|
@@ -13,8 +14,7 @@ export class CustomDashboardController {
|
|
|
13
14
|
* @date 2023-04-26 06:46:21
|
|
14
15
|
* @param {CTX} ctx 跨组件上下文环境,内部机制不暴露
|
|
15
16
|
*/
|
|
16
|
-
constructor(model) {
|
|
17
|
-
var _a, _b;
|
|
17
|
+
constructor(model, dashboard) {
|
|
18
18
|
/**
|
|
19
19
|
* 自定义布局模型数据
|
|
20
20
|
*
|
|
@@ -37,14 +37,91 @@ export class CustomDashboardController {
|
|
|
37
37
|
*/
|
|
38
38
|
this.layoutRowH = 80;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* 门户配置
|
|
41
41
|
*
|
|
42
|
-
* @
|
|
43
|
-
* @
|
|
42
|
+
* @type {IData}
|
|
43
|
+
* @memberof CustomDashboardController
|
|
44
|
+
*/
|
|
45
|
+
this.portletConfig = {};
|
|
46
|
+
/**
|
|
47
|
+
* 自定义定制范围类型(public:公开,personal:个人,data:数据,默认是按照个人区分,配置了应用功能组件才生效)
|
|
48
|
+
*
|
|
49
|
+
* @author tony001
|
|
50
|
+
* @date 2024-04-24 19:04:47
|
|
51
|
+
* @type {('public' | 'personal' | 'data')}
|
|
52
|
+
*/
|
|
53
|
+
this.type = 'personal';
|
|
54
|
+
/**
|
|
55
|
+
* 所属数据类型(仅限自定义定制为data类型时生效,配置了应用功能组件才生效)
|
|
56
|
+
*
|
|
57
|
+
* @author tony001
|
|
58
|
+
* @date 2024-04-24 19:04:06
|
|
59
|
+
* @type {string}
|
|
44
60
|
*/
|
|
45
|
-
this.
|
|
61
|
+
this.ownerType = '';
|
|
62
|
+
/**
|
|
63
|
+
* 所属数据标识(仅限自定义定制为data类型时生效,配置了应用功能组件才生效)
|
|
64
|
+
*
|
|
65
|
+
* @author tony001
|
|
66
|
+
* @date 2024-04-24 19:04:18
|
|
67
|
+
* @type {string}
|
|
68
|
+
*/
|
|
69
|
+
this.ownerId = '';
|
|
46
70
|
this.model = model;
|
|
47
|
-
this.
|
|
71
|
+
this.context = dashboard.context;
|
|
72
|
+
this.params = dashboard.params;
|
|
73
|
+
this.init(dashboard.controlParams);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* 初始化
|
|
77
|
+
*
|
|
78
|
+
* @author tony001
|
|
79
|
+
* @date 2024-04-24 20:04:14
|
|
80
|
+
* @private
|
|
81
|
+
*/
|
|
82
|
+
init(controlParams) {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
// 默认走个人
|
|
85
|
+
this.type = 'personal';
|
|
86
|
+
this.ownerId = this.context.srfpersonid;
|
|
87
|
+
// 识别动态控件参数
|
|
88
|
+
if (controlParams.type) {
|
|
89
|
+
this.type = controlParams.type;
|
|
90
|
+
}
|
|
91
|
+
if (controlParams.owner_type) {
|
|
92
|
+
this.ownerType = controlParams.owner_type;
|
|
93
|
+
}
|
|
94
|
+
if (controlParams.owner_id) {
|
|
95
|
+
this.ownerId = this.context[controlParams.owner_id];
|
|
96
|
+
}
|
|
97
|
+
// 配置了应用功能组件则走应用功能组件服务存储,否则走rt的config存储
|
|
98
|
+
if (this.model.appDynaDashboardUtilId) {
|
|
99
|
+
const app = ibiz.hub.getApp(this.context.srfappid);
|
|
100
|
+
this.util = new UtilService(app.getAppUtil(this.model.appDynaDashboardUtilId));
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
this.config = new ConfigService(this.model.appId, 'dynadashboard', `dashboard_${((_a = this.model.appDataEntityId) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || 'app'}_${(_b = this.model.codeName) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* 获取资源标识
|
|
108
|
+
*
|
|
109
|
+
* @author tony001
|
|
110
|
+
* @date 2024-04-24 14:04:55
|
|
111
|
+
* @private
|
|
112
|
+
* @return {*} {string}
|
|
113
|
+
*/
|
|
114
|
+
getResourceTag() {
|
|
115
|
+
var _a, _b;
|
|
116
|
+
const base = `${this.context.srfappid}_dashboard_${((_a = this.model.appDataEntityId) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || 'app'}_${(_b = this.model.codeName) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`;
|
|
117
|
+
switch (this.type) {
|
|
118
|
+
case 'personal':
|
|
119
|
+
return `${base}_${this.context.srfpersonid}`;
|
|
120
|
+
case 'data':
|
|
121
|
+
return `${base}_${this.ownerType}_${this.ownerId}`;
|
|
122
|
+
default:
|
|
123
|
+
return base;
|
|
124
|
+
}
|
|
48
125
|
}
|
|
49
126
|
/**
|
|
50
127
|
* 加载自定义布局模型数据
|
|
@@ -53,7 +130,13 @@ export class CustomDashboardController {
|
|
|
53
130
|
* @Date: 2023-09-20 16:22:49
|
|
54
131
|
*/
|
|
55
132
|
async loadCustomModelData() {
|
|
56
|
-
|
|
133
|
+
let res;
|
|
134
|
+
if (this.model.appDynaDashboardUtilId) {
|
|
135
|
+
res = await this.util.load(this.getResourceTag(), this.context, this.params);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
res = await this.config.load();
|
|
139
|
+
}
|
|
57
140
|
if (res.model) {
|
|
58
141
|
this.customModelData = res.model;
|
|
59
142
|
}
|
|
@@ -63,7 +146,10 @@ export class CustomDashboardController {
|
|
|
63
146
|
if (res.rowH) {
|
|
64
147
|
this.layoutRowH = res.rowH;
|
|
65
148
|
}
|
|
66
|
-
|
|
149
|
+
if (res.config) {
|
|
150
|
+
this.portletConfig = res.config;
|
|
151
|
+
}
|
|
152
|
+
return { model: this.customModelData, config: this.portletConfig };
|
|
67
153
|
}
|
|
68
154
|
/**
|
|
69
155
|
* 保存自定义布局模型数据
|
|
@@ -71,15 +157,24 @@ export class CustomDashboardController {
|
|
|
71
157
|
* @author: zhujiamin
|
|
72
158
|
* @Date: 2023-09-20 16:22:49
|
|
73
159
|
*/
|
|
74
|
-
async saveCustomModelData(model) {
|
|
75
|
-
|
|
160
|
+
async saveCustomModelData(model, config = {}) {
|
|
161
|
+
merge(this.portletConfig, config);
|
|
162
|
+
let res;
|
|
163
|
+
const data = {
|
|
76
164
|
model,
|
|
77
165
|
colNum: this.layoutColNum,
|
|
78
166
|
rowH: this.layoutRowH,
|
|
79
|
-
|
|
167
|
+
config: this.portletConfig,
|
|
168
|
+
};
|
|
169
|
+
if (this.model.appDynaDashboardUtilId) {
|
|
170
|
+
res = await this.util.save(this.getResourceTag(), this.context, Object.assign(Object.assign({}, this.params), { type: this.type, ownerType: this.ownerType, ownerId: this.ownerId, modelId: this.model.id }), data);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
res = await this.config.save(data);
|
|
174
|
+
}
|
|
80
175
|
if (res) {
|
|
81
176
|
this.customModelData = model;
|
|
82
177
|
}
|
|
83
|
-
return model;
|
|
178
|
+
return { model, config: this.portletConfig };
|
|
84
179
|
}
|
|
85
180
|
}
|
|
@@ -43,6 +43,14 @@ export declare class DashboardController extends ControlController<IDashboard, I
|
|
|
43
43
|
* @returns {*} {Promise<void>}
|
|
44
44
|
*/
|
|
45
45
|
initPortlets(portletModels: IDBPortletPart[], parent?: IPortletContainerController): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* 初始化
|
|
48
|
+
*
|
|
49
|
+
* @param {IData} [config={}]
|
|
50
|
+
* @return {*} {Promise<void>}
|
|
51
|
+
* @memberof DashboardController
|
|
52
|
+
*/
|
|
53
|
+
initPortletsConfig(config?: IData): Promise<void>;
|
|
46
54
|
/**
|
|
47
55
|
* 通知所有表单成员表单操作过程中的数据变更
|
|
48
56
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/dashboard/dashboard.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAEV,cAAc,EACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGjD;;;;;;;;GAQG;AACH,qBAAa,mBACX,SAAQ,iBAAiB,CAAC,UAAU,EAAE,eAAe,EAAE,eAAe,CACtE,YAAW,oBAAoB;IAE/B;;;;;;OAMG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAE,CAAM;IAEpD;;;;;;OAMG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE,CAAM;IAErD,SAAS,CAAC,SAAS,IAAI,IAAI;cAIX,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAgB1C;;;;;;;;OAQG;IACG,YAAY,CAChB,aAAa,EAAE,cAAc,EAAE,EAC/B,MAAM,CAAC,EAAE,2BAA2B,GACnC,OAAO,CAAC,IAAI,CAAC;IAuChB;;;;;;OAMG;IACG,gBAAgB,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;CAQnD"}
|
|
1
|
+
{"version":3,"file":"dashboard.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/dashboard/dashboard.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAEV,cAAc,EACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGjD;;;;;;;;GAQG;AACH,qBAAa,mBACX,SAAQ,iBAAiB,CAAC,UAAU,EAAE,eAAe,EAAE,eAAe,CACtE,YAAW,oBAAoB;IAE/B;;;;;;OAMG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAE,CAAM;IAEpD;;;;;;OAMG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE,CAAM;IAErD,SAAS,CAAC,SAAS,IAAI,IAAI;cAIX,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAgB1C;;;;;;;;OAQG;IACG,YAAY,CAChB,aAAa,EAAE,cAAc,EAAE,EAC/B,MAAM,CAAC,EAAE,2BAA2B,GACnC,OAAO,CAAC,IAAI,CAAC;IAuChB;;;;;;OAMG;IACG,kBAAkB,CAAC,MAAM,GAAE,KAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAW3D;;;;;;OAMG;IACG,gBAAgB,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;CAQnD"}
|
|
@@ -86,6 +86,23 @@ export class DashboardController extends ControlController {
|
|
|
86
86
|
}
|
|
87
87
|
}));
|
|
88
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* 初始化
|
|
91
|
+
*
|
|
92
|
+
* @param {IData} [config={}]
|
|
93
|
+
* @return {*} {Promise<void>}
|
|
94
|
+
* @memberof DashboardController
|
|
95
|
+
*/
|
|
96
|
+
async initPortletsConfig(config = {}) {
|
|
97
|
+
Object.keys(config).forEach((key) => {
|
|
98
|
+
const portlet = this.portlets[key];
|
|
99
|
+
if (portlet) {
|
|
100
|
+
portlet.config = config[key];
|
|
101
|
+
portlet.state.title = portlet.config.srftitle;
|
|
102
|
+
Object.assign(portlet.params, portlet.config);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
89
106
|
/**
|
|
90
107
|
* 通知所有表单成员表单操作过程中的数据变更
|
|
91
108
|
*
|
package/out/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { IDBChartPortlet } from '@ibiz/model-core';
|
|
2
2
|
import { PortletPartController } from '../portlet-part/portlet-part.controller';
|
|
3
3
|
export declare class ChartPortletController extends PortletPartController<IDBChartPortlet> {
|
|
4
|
+
/**
|
|
5
|
+
* 刷新门户部件
|
|
6
|
+
*
|
|
7
|
+
* @author zzq
|
|
8
|
+
* @date 2024-04-25 10:03:33
|
|
9
|
+
*/
|
|
10
|
+
refresh(): void;
|
|
4
11
|
}
|
|
5
12
|
//# sourceMappingURL=chart-portlet.controller.d.ts.map
|
package/out/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-portlet.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"chart-portlet.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGhF,qBAAa,sBAAuB,SAAQ,qBAAqB,CAAC,eAAe,CAAC;IAChF;;;;;OAKG;IACH,OAAO,IAAI,IAAI;CAKhB"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
import { PortletPartController } from '../portlet-part/portlet-part.controller';
|
|
2
2
|
export class ChartPortletController extends PortletPartController {
|
|
3
|
+
/**
|
|
4
|
+
* 刷新门户部件
|
|
5
|
+
*
|
|
6
|
+
* @author zzq
|
|
7
|
+
* @date 2024-04-25 10:03:33
|
|
8
|
+
*/
|
|
9
|
+
refresh() {
|
|
10
|
+
if (this.contentController) {
|
|
11
|
+
this.contentController.refresh();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
3
14
|
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { IDBListPortletPart } from '@ibiz/model-core';
|
|
2
2
|
import { PortletPartController } from '../portlet-part/portlet-part.controller';
|
|
3
3
|
export declare class ListPortletController extends PortletPartController<IDBListPortletPart> {
|
|
4
|
+
/**
|
|
5
|
+
* 刷新门户部件
|
|
6
|
+
*
|
|
7
|
+
* @author zzq
|
|
8
|
+
* @date 2024-04-25 10:03:33
|
|
9
|
+
*/
|
|
10
|
+
refresh(): void;
|
|
4
11
|
}
|
|
5
12
|
//# sourceMappingURL=list-portlet.controller.d.ts.map
|
package/out/controller/control/dashboard/portlet/list-portlet/list-portlet.controller.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-portlet.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/controller/control/dashboard/portlet/list-portlet/list-portlet.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"list-portlet.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/controller/control/dashboard/portlet/list-portlet/list-portlet.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGhF,qBAAa,qBAAsB,SAAQ,qBAAqB,CAAC,kBAAkB,CAAC;IAClF;;;;;OAKG;IACH,OAAO,IAAI,IAAI;CAKhB"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
import { PortletPartController } from '../portlet-part/portlet-part.controller';
|
|
2
2
|
export class ListPortletController extends PortletPartController {
|
|
3
|
+
/**
|
|
4
|
+
* 刷新门户部件
|
|
5
|
+
*
|
|
6
|
+
* @author zzq
|
|
7
|
+
* @date 2024-04-25 10:03:33
|
|
8
|
+
*/
|
|
9
|
+
refresh() {
|
|
10
|
+
if (this.contentController) {
|
|
11
|
+
this.contentController.refresh();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
3
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IDBPortletPart, IUIActionGroupDetail } from '@ibiz/model-core';
|
|
2
|
-
import { IPortletController, IDashboardController, IPortletContainerController, DataChangeEvent } from '../../../../../interface';
|
|
2
|
+
import { IPortletController, IDashboardController, IPortletContainerController, DataChangeEvent, IController } from '../../../../../interface';
|
|
3
3
|
import { PortletPartState } from './portlet-part.state';
|
|
4
4
|
/**
|
|
5
5
|
* 门户部件控制器基类
|
|
@@ -52,7 +52,14 @@ export declare class PortletPartController<T extends IDBPortletPart = IDBPortlet
|
|
|
52
52
|
* @readonly
|
|
53
53
|
* @type {IParams}
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
readonly params: IParams;
|
|
56
|
+
/**
|
|
57
|
+
* 门户配置
|
|
58
|
+
*
|
|
59
|
+
* @type {IData}
|
|
60
|
+
* @memberof PortletPartController
|
|
61
|
+
*/
|
|
62
|
+
config: IData;
|
|
56
63
|
/**
|
|
57
64
|
* 获取容器类名集合
|
|
58
65
|
* @author lxm
|
|
@@ -61,6 +68,14 @@ export declare class PortletPartController<T extends IDBPortletPart = IDBPortlet
|
|
|
61
68
|
* @type {string[]}
|
|
62
69
|
*/
|
|
63
70
|
get containerClass(): string[];
|
|
71
|
+
/**
|
|
72
|
+
* 内容控制器
|
|
73
|
+
* @author zzq
|
|
74
|
+
* @readonly
|
|
75
|
+
* @type {IController | undefined}
|
|
76
|
+
* @memberof PortletPartController
|
|
77
|
+
*/
|
|
78
|
+
get contentController(): IController | undefined;
|
|
64
79
|
/**
|
|
65
80
|
* Creates an instance of PortletPartController.
|
|
66
81
|
* @author lxm
|
|
@@ -87,6 +102,20 @@ export declare class PortletPartController<T extends IDBPortletPart = IDBPortlet
|
|
|
87
102
|
* @memberof PortletPartController
|
|
88
103
|
*/
|
|
89
104
|
protected createState(): PortletPartState;
|
|
105
|
+
/**
|
|
106
|
+
* 刷新门户部件
|
|
107
|
+
*
|
|
108
|
+
* @author zzq
|
|
109
|
+
* @date 2024-04-25 10:03:33
|
|
110
|
+
*/
|
|
111
|
+
refresh(): void;
|
|
112
|
+
/**
|
|
113
|
+
* 设置配置数据
|
|
114
|
+
*
|
|
115
|
+
* @param {IData} config
|
|
116
|
+
* @memberof PortletPartController
|
|
117
|
+
*/
|
|
118
|
+
setConfig(config: IData): Promise<void>;
|
|
90
119
|
/**
|
|
91
120
|
* 数据改变方法
|
|
92
121
|
* @param {DataChangeEvent} event
|
package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portlet-part.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"portlet-part.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,2BAA2B,EAC3B,eAAe,EACf,WAAW,EAEZ,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;;;;;GAQG;AACH,qBAAa,qBAAqB,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,CAC1E,YAAW,kBAAkB;IAE7B,QAAQ,CAAC,KAAK,EA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