@ibiz-template/runtime 0.7.25 → 0.7.26-alpha.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 +220 -151
- package/dist/index.system.min.js +1 -1
- package/out/controller/control/dashboard/dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/dashboard.controller.js +1 -0
- package/out/controller/control/dashboard/portlet/index.d.ts +1 -0
- package/out/controller/control/dashboard/portlet/index.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/index.js +1 -0
- package/out/controller/control/dashboard/portlet/report-portlet/index.d.ts +2 -0
- package/out/controller/control/dashboard/portlet/report-portlet/index.d.ts.map +1 -0
- package/out/controller/control/dashboard/portlet/report-portlet/index.js +1 -0
- package/out/controller/control/dashboard/portlet/report-portlet/report-portlet.controller.d.ts +12 -0
- package/out/controller/control/dashboard/portlet/report-portlet/report-portlet.controller.d.ts.map +1 -0
- package/out/controller/control/dashboard/portlet/report-portlet/report-portlet.controller.js +14 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.js +12 -2
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.d.ts +8 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +2 -1
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +40 -42
- package/out/controller/control/kanban/kanban.controller.d.ts +4 -1
- package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
- package/out/controller/control/kanban/kanban.controller.js +39 -36
- package/out/controller/control/report-panel/generator/base-generator.d.ts +13 -3
- package/out/controller/control/report-panel/generator/base-generator.d.ts.map +1 -1
- package/out/controller/control/report-panel/generator/base-generator.js +3 -2
- package/out/controller/control/report-panel/generator/bi-generator.d.ts +9 -0
- package/out/controller/control/report-panel/generator/bi-generator.d.ts.map +1 -1
- package/out/controller/control/report-panel/generator/bi-generator.js +14 -0
- package/out/controller/control/report-panel/generator/generator-factory.d.ts +5 -2
- package/out/controller/control/report-panel/generator/generator-factory.d.ts.map +1 -1
- package/out/controller/control/report-panel/generator/generator-factory.js +7 -5
- package/out/controller/control/report-panel/generator/user-generator.d.ts +1 -1
- package/out/controller/control/report-panel/generator/user-generator.d.ts.map +1 -1
- package/out/controller/control/report-panel/generator/user-generator.js +1 -1
- package/out/controller/control/report-panel/report-panel.controller.d.ts +11 -3
- package/out/controller/control/report-panel/report-panel.controller.d.ts.map +1 -1
- package/out/controller/control/report-panel/report-panel.controller.js +38 -24
- package/out/engine/md-view.engine.d.ts +1 -29
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +0 -55
- package/out/engine/view-base.engine.d.ts +29 -1
- package/out/engine/view-base.engine.d.ts.map +1 -1
- package/out/engine/view-base.engine.js +55 -0
- package/out/interface/controller/controller/control/i-report-panel.controller.d.ts +11 -2
- package/out/interface/controller/controller/control/i-report-panel.controller.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-report-panel.state.d.ts +1 -1
- package/out/interface/controller/state/control/i-report-panel.state.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -21,6 +21,6 @@ export declare class UserReportPanelGenerator extends ReportPanelBaseGenerator {
|
|
|
21
21
|
* @return {*} {Promise<IData>}
|
|
22
22
|
* @memberof UserReportPanelGenerator
|
|
23
23
|
*/
|
|
24
|
-
load(data
|
|
24
|
+
load(data?: IData): Promise<IData>;
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=user-generator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-generator.d.ts","sourceRoot":"","sources":["../../../../../src/controller/control/report-panel/generator/user-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAE5D;;;;;;GAMG;AACH,qBAAa,wBAAyB,SAAQ,wBAAwB;IACpE;;;;;OAKG;IACH,SAAS,CAAC,SAAS,IAAI,IAAI;IA2C3B;;;;;;OAMG;IACI,IAAI,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"user-generator.d.ts","sourceRoot":"","sources":["../../../../../src/controller/control/report-panel/generator/user-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAE5D;;;;;;GAMG;AACH,qBAAa,wBAAyB,SAAQ,wBAAwB;IACpE;;;;;OAKG;IACH,SAAS,CAAC,SAAS,IAAI,IAAI;IA2C3B;;;;;;OAMG;IACI,IAAI,CAAC,IAAI,GAAE,KAAU,GAAG,OAAO,CAAC,KAAK,CAAC;CAM9C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IDEReportPanel, IAppDataEntity } from '@ibiz/model-core';
|
|
2
|
-
import { MDCtrlLoadParams, IReportPanelController, IReportPanelEvent, IReportPanelState } from '../../../interface';
|
|
2
|
+
import { MDCtrlLoadParams, IReportPanelController, IReportPanelEvent, IReportPanelState, IModalData } from '../../../interface';
|
|
3
3
|
import { ControlController } from '../../common';
|
|
4
4
|
import { ReportPanelService } from './report-panel.service';
|
|
5
5
|
import { ControllerEvent } from '../../utils';
|
|
@@ -35,6 +35,14 @@ export declare class ReportPanelController extends ControlController<IDEReportPa
|
|
|
35
35
|
* @memberof ReportPanelController
|
|
36
36
|
*/
|
|
37
37
|
protected get _evt(): ControllerEvent<IReportPanelEvent>;
|
|
38
|
+
/**
|
|
39
|
+
* 是否为bi报表
|
|
40
|
+
*
|
|
41
|
+
* @author tony001
|
|
42
|
+
* @date 2024-06-19 18:06:02
|
|
43
|
+
* @readonly
|
|
44
|
+
*/
|
|
45
|
+
get isBIReport(): boolean;
|
|
38
46
|
/**
|
|
39
47
|
* 初始化状态
|
|
40
48
|
*
|
|
@@ -107,8 +115,8 @@ export declare class ReportPanelController extends ControlController<IDEReportPa
|
|
|
107
115
|
*
|
|
108
116
|
* @author tony001
|
|
109
117
|
* @date 2024-06-18 16:06:46
|
|
110
|
-
* @return {*} {Promise<
|
|
118
|
+
* @return {*} {Promise<IModalData>}
|
|
111
119
|
*/
|
|
112
|
-
openReportDesignPage(): Promise<
|
|
120
|
+
openReportDesignPage(): Promise<IModalData>;
|
|
113
121
|
}
|
|
114
122
|
//# sourceMappingURL=report-panel.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-panel.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/report-panel/report-panel.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"report-panel.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/report-panel/report-panel.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,qBAAa,qBACX,SAAQ,iBAAiB,CACvB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,CAEnB,YAAW,sBAAsB;IAEjC;;;;OAIG;IACH,SAAS,CAAC,OAAO,EAAG,kBAAkB,CAAC;IAEvC;;;;;OAKG;IACH,SAAS,CAAC,UAAU,EAAG,cAAc,CAAC;IAEtC;;;;;;OAMG;IACI,SAAS,EAAG,wBAAwB,CAAC;IAE5C;;;;;;;OAOG;IACH,SAAS,KAAK,IAAI,IAAI,eAAe,CAAC,iBAAiB,CAAC,CAEvD;IAED;;;;;;OAMG;IACH,IAAI,UAAU,IAAI,OAAO,CAaxB;IAED;;;;;OAKG;IACH,SAAS,CAAC,SAAS,IAAI,IAAI;IAQ3B;;;;;OAKG;cACa,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAW1C;;;;;;OAMG;cACa,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ1C;;;;;;OAMG;IACH,SAAS,CAAC,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAItC;;;;;;;OAOG;IACU,IAAI,CAAC,IAAI,GAAE,gBAAqB,GAAG,OAAO,CAAC,KAAK,CAAC;IA+B9D;;;;;;;;OAQG;IACG,SAAS,CAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IAIpE;;;;OAIG;IACG,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAkB7D;;;;;OAKG;IACH,OAAO,IAAI,KAAK,EAAE;IAOlB;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAU9B;;;;;;OAMG;IACG,oBAAoB,IAAI,OAAO,CAAC,UAAU,CAAC;CAsBlD"}
|
|
@@ -13,6 +13,25 @@ export class ReportPanelController extends ControlController {
|
|
|
13
13
|
get _evt() {
|
|
14
14
|
return this.evt;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* 是否为bi报表
|
|
18
|
+
*
|
|
19
|
+
* @author tony001
|
|
20
|
+
* @date 2024-06-19 18:06:02
|
|
21
|
+
* @readonly
|
|
22
|
+
*/
|
|
23
|
+
get isBIReport() {
|
|
24
|
+
if (this.state.reportType === 'DESYSBIREPORTS' ||
|
|
25
|
+
this.state.reportType === 'SYSBICUBE' ||
|
|
26
|
+
this.state.reportType === 'DESYSBICUBES' ||
|
|
27
|
+
this.state.reportType === 'ALLSYSBICUBES' ||
|
|
28
|
+
this.state.reportType === 'SYSBIREPORT' ||
|
|
29
|
+
this.state.reportType === 'SYSBICUBEREPORTS' ||
|
|
30
|
+
this.state.reportType === 'ALLSYSBIREPORTS') {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
16
35
|
/**
|
|
17
36
|
* 初始化状态
|
|
18
37
|
*
|
|
@@ -34,7 +53,7 @@ export class ReportPanelController extends ControlController {
|
|
|
34
53
|
*/
|
|
35
54
|
async onCreated() {
|
|
36
55
|
await super.onCreated();
|
|
37
|
-
this.generator = ReportPanelGeneratorFactory.getInstance(this.model);
|
|
56
|
+
this.generator = ReportPanelGeneratorFactory.getInstance(this.model, this);
|
|
38
57
|
this.dataEntity = await ibiz.hub.getAppDataEntity(this.model.appDataEntityId, this.model.appId);
|
|
39
58
|
this.service = new ReportPanelService(this.model);
|
|
40
59
|
await this.service.init(this.context);
|
|
@@ -72,14 +91,7 @@ export class ReportPanelController extends ControlController {
|
|
|
72
91
|
* @memberof ReportPanelController
|
|
73
92
|
*/
|
|
74
93
|
async load(args = {}) {
|
|
75
|
-
if (this.state.reportType &&
|
|
76
|
-
(this.state.reportType === 'DESYSBIREPORTS' ||
|
|
77
|
-
this.state.reportType === 'SYSBICUBE' ||
|
|
78
|
-
this.state.reportType === 'DESYSBICUBES' ||
|
|
79
|
-
this.state.reportType === 'ALLSYSBICUBES' ||
|
|
80
|
-
this.state.reportType === 'SYSBIREPORT' ||
|
|
81
|
-
this.state.reportType === 'SYSBICUBEREPORTS' ||
|
|
82
|
-
this.state.reportType === 'ALLSYSBIREPORTS')) {
|
|
94
|
+
if (this.state.reportType && this.isBIReport) {
|
|
83
95
|
return {};
|
|
84
96
|
}
|
|
85
97
|
await this.startLoading();
|
|
@@ -142,6 +154,10 @@ export class ReportPanelController extends ControlController {
|
|
|
142
154
|
* @memberof ReportPanelController
|
|
143
155
|
*/
|
|
144
156
|
getData() {
|
|
157
|
+
var _a;
|
|
158
|
+
if (this.isBIReport) {
|
|
159
|
+
return ((_a = this.generator.protoRef) === null || _a === void 0 ? void 0 : _a.state.items) || [];
|
|
160
|
+
}
|
|
145
161
|
return [this.state.data];
|
|
146
162
|
}
|
|
147
163
|
/**
|
|
@@ -149,28 +165,26 @@ export class ReportPanelController extends ControlController {
|
|
|
149
165
|
* @date 2023-05-23 03:42:41
|
|
150
166
|
*/
|
|
151
167
|
async refresh() {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
168
|
+
if (this.isBIReport) {
|
|
169
|
+
this.generator.load();
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
this.doNextActive(() => this.load({ isInitialLoad: false }), {
|
|
173
|
+
key: 'refresh',
|
|
174
|
+
});
|
|
175
|
+
}
|
|
155
176
|
}
|
|
156
177
|
/**
|
|
157
178
|
* 打开设计界面
|
|
158
179
|
*
|
|
159
180
|
* @author tony001
|
|
160
181
|
* @date 2024-06-18 16:06:46
|
|
161
|
-
* @return {*} {Promise<
|
|
182
|
+
* @return {*} {Promise<IModalData>}
|
|
162
183
|
*/
|
|
163
184
|
async openReportDesignPage() {
|
|
164
|
-
if (this.state.reportType &&
|
|
165
|
-
(this.state.reportType === 'DESYSBIREPORTS' ||
|
|
166
|
-
this.state.reportType === 'SYSBICUBE' ||
|
|
167
|
-
this.state.reportType === 'DESYSBICUBES' ||
|
|
168
|
-
this.state.reportType === 'ALLSYSBICUBES' ||
|
|
169
|
-
this.state.reportType === 'SYSBIREPORT' ||
|
|
170
|
-
this.state.reportType === 'SYSBICUBEREPORTS' ||
|
|
171
|
-
this.state.reportType === 'ALLSYSBIREPORTS')) {
|
|
185
|
+
if (this.state.reportType && this.isBIReport) {
|
|
172
186
|
const modal = ibiz.overlay.createModal('iBizBIReportDesign', {
|
|
173
|
-
dismiss: () => modal.dismiss(),
|
|
187
|
+
dismiss: (_data) => modal.dismiss(_data),
|
|
174
188
|
context: this.context,
|
|
175
189
|
viewParams: this.params,
|
|
176
190
|
config: this.generator.config,
|
|
@@ -181,8 +195,8 @@ export class ReportPanelController extends ControlController {
|
|
|
181
195
|
});
|
|
182
196
|
modal.present();
|
|
183
197
|
const result = await modal.onWillDismiss();
|
|
184
|
-
return result
|
|
198
|
+
return result;
|
|
185
199
|
}
|
|
186
|
-
return
|
|
200
|
+
return { ok: false, data: [] };
|
|
187
201
|
}
|
|
188
202
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAppDEMultiDataView } from '@ibiz/model-core';
|
|
2
2
|
import { ViewController } from '../controller';
|
|
3
|
-
import { IMDViewEvent, IMDViewState, IMDControlController,
|
|
3
|
+
import { IMDViewEvent, IMDViewState, IMDControlController, MDCtrlRemoveParams, ISearchBarController, MDCtrlLoadParams, EventBase, IUIActionResult, IToolbarController } from '../interface';
|
|
4
4
|
import { ViewEngineBase } from './view-base.engine';
|
|
5
5
|
/**
|
|
6
6
|
* 多数据视图引擎
|
|
@@ -20,20 +20,6 @@ export declare class MDViewEngine extends ViewEngineBase {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
*/
|
|
22
22
|
get xdataControlName(): string;
|
|
23
|
-
/**
|
|
24
|
-
* 搜索表单控制器
|
|
25
|
-
* @author lxm
|
|
26
|
-
* @date 2023-05-22 01:56:25
|
|
27
|
-
* @readonly
|
|
28
|
-
*/
|
|
29
|
-
protected get searchForm(): ISearchFormController;
|
|
30
|
-
/**
|
|
31
|
-
* 搜索栏控制器
|
|
32
|
-
* @author lxm
|
|
33
|
-
* @date 2023-05-22 01:56:25
|
|
34
|
-
* @readonly
|
|
35
|
-
*/
|
|
36
|
-
protected get searchBar(): ISearchBarController;
|
|
37
23
|
/**
|
|
38
24
|
* 获取分页搜索视图上移的工具栏控制器
|
|
39
25
|
* @author lxm
|
|
@@ -43,13 +29,6 @@ export declare class MDViewEngine extends ViewEngineBase {
|
|
|
43
29
|
* @type {(IToolbarController | undefined)}
|
|
44
30
|
*/
|
|
45
31
|
protected get tabToolbar(): IToolbarController | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* 获取分页搜索视图上移的搜索表单控制器
|
|
48
|
-
* @author lxm
|
|
49
|
-
* @date 2023-05-22 01:56:25
|
|
50
|
-
* @readonly
|
|
51
|
-
*/
|
|
52
|
-
protected get tabSearchForm(): ISearchFormController;
|
|
53
32
|
/**
|
|
54
33
|
* 获取分页搜索视图上移的搜索栏控制器
|
|
55
34
|
* @author lxm
|
|
@@ -198,13 +177,6 @@ export declare class MDViewEngine extends ViewEngineBase {
|
|
|
198
177
|
* @memberof MDViewEngine
|
|
199
178
|
*/
|
|
200
179
|
protected calcViewSearchBarVisible(): boolean;
|
|
201
|
-
/**
|
|
202
|
-
* 切换搜索表单的显示与否
|
|
203
|
-
* @author lxm
|
|
204
|
-
* @date 2023-06-06 09:20:35
|
|
205
|
-
* @protected
|
|
206
|
-
*/
|
|
207
|
-
protected toggleFilter(): void;
|
|
208
180
|
/**
|
|
209
181
|
* 计算移除的模型名称
|
|
210
182
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"md-view.engine.d.ts","sourceRoot":"","sources":["../../src/engine/md-view.engine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAc,MAAM,kBAAkB,CAAC;AAGnE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"md-view.engine.d.ts","sourceRoot":"","sources":["../../src/engine/md-view.engine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAc,MAAM,kBAAkB,CAAC;AAGnE,OA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索表单控制器
|
|
27
|
-
* @author lxm
|
|
28
|
-
* @date 2023-05-22 01:56:25
|
|
29
|
-
* @readonly
|
|
30
|
-
*/
|
|
31
|
-
get searchForm() {
|
|
32
|
-
return this.view.getController('searchform');
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* 搜索栏控制器
|
|
36
|
-
* @author lxm
|
|
37
|
-
* @date 2023-05-22 01:56:25
|
|
38
|
-
* @readonly
|
|
39
|
-
*/
|
|
40
|
-
get searchBar() {
|
|
41
|
-
return this.view.getController('searchbar');
|
|
42
|
-
}
|
|
43
25
|
/**
|
|
44
26
|
* 获取分页搜索视图上移的工具栏控制器
|
|
45
27
|
* @author lxm
|
|
@@ -51,15 +33,6 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
51
33
|
get tabToolbar() {
|
|
52
34
|
return this.view.getController('tabtoolbar');
|
|
53
35
|
}
|
|
54
|
-
/**
|
|
55
|
-
* 获取分页搜索视图上移的搜索表单控制器
|
|
56
|
-
* @author lxm
|
|
57
|
-
* @date 2023-05-22 01:56:25
|
|
58
|
-
* @readonly
|
|
59
|
-
*/
|
|
60
|
-
get tabSearchForm() {
|
|
61
|
-
return this.view.getController('tabsearchform');
|
|
62
|
-
}
|
|
63
36
|
/**
|
|
64
37
|
* 获取分页搜索视图上移的搜索栏控制器
|
|
65
38
|
* @author lxm
|
|
@@ -193,10 +166,6 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
193
166
|
}
|
|
194
167
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
195
168
|
async call(key, args) {
|
|
196
|
-
if (key === SysUIActionTag.TOGGLE_FILTER) {
|
|
197
|
-
this.toggleFilter();
|
|
198
|
-
return null;
|
|
199
|
-
}
|
|
200
169
|
if (key === SysUIActionTag.EDIT || key === SysUIActionTag.VIEW) {
|
|
201
170
|
return this.openData(args);
|
|
202
171
|
}
|
|
@@ -219,16 +188,6 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
219
188
|
await this.exportData(args);
|
|
220
189
|
return null;
|
|
221
190
|
}
|
|
222
|
-
if (key === SysUIActionTag.SEARCH) {
|
|
223
|
-
const searchForm = this.searchForm || this.tabSearchForm;
|
|
224
|
-
await searchForm.search();
|
|
225
|
-
return null;
|
|
226
|
-
}
|
|
227
|
-
if (key === SysUIActionTag.RESET) {
|
|
228
|
-
const searchForm = this.searchForm || this.tabSearchForm;
|
|
229
|
-
await searchForm.reset();
|
|
230
|
-
return null;
|
|
231
|
-
}
|
|
232
191
|
if (key === SysUIActionTag.COPY) {
|
|
233
192
|
this.copy(args);
|
|
234
193
|
return null;
|
|
@@ -447,20 +406,6 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
447
406
|
searchBar.enableFilter === true);
|
|
448
407
|
return visible;
|
|
449
408
|
}
|
|
450
|
-
/**
|
|
451
|
-
* 切换搜索表单的显示与否
|
|
452
|
-
* @author lxm
|
|
453
|
-
* @date 2023-06-06 09:20:35
|
|
454
|
-
* @protected
|
|
455
|
-
*/
|
|
456
|
-
toggleFilter() {
|
|
457
|
-
if (this.searchForm) {
|
|
458
|
-
const searchformContainer = this.viewLayoutPanel.panelItems.view_searchform;
|
|
459
|
-
if (searchformContainer) {
|
|
460
|
-
searchformContainer.state.visible = !searchformContainer.state.visible;
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
409
|
/**
|
|
465
410
|
* 计算移除的模型名称
|
|
466
411
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IViewController, IToolbarController, IViewLayoutPanelController } from '../interface';
|
|
1
|
+
import { IViewController, IToolbarController, IViewLayoutPanelController, ISearchFormController, ISearchBarController } from '../interface';
|
|
2
2
|
import { IViewEngine } from '../interface/engine';
|
|
3
3
|
/**
|
|
4
4
|
* 视图引擎基类
|
|
@@ -45,6 +45,27 @@ export declare class ViewEngineBase implements IViewEngine {
|
|
|
45
45
|
* @type {(IToolbarController | undefined)}
|
|
46
46
|
*/
|
|
47
47
|
protected get footerToolbar(): IToolbarController | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* 搜索表单控制器
|
|
50
|
+
* @author lxm
|
|
51
|
+
* @date 2023-05-22 01:56:25
|
|
52
|
+
* @readonly
|
|
53
|
+
*/
|
|
54
|
+
protected get searchForm(): ISearchFormController;
|
|
55
|
+
/**
|
|
56
|
+
* 搜索栏控制器
|
|
57
|
+
* @author lxm
|
|
58
|
+
* @date 2023-05-22 01:56:25
|
|
59
|
+
* @readonly
|
|
60
|
+
*/
|
|
61
|
+
protected get searchBar(): ISearchBarController;
|
|
62
|
+
/**
|
|
63
|
+
* 获取分页搜索视图上移的搜索表单控制器
|
|
64
|
+
* @author lxm
|
|
65
|
+
* @date 2023-05-22 01:56:25
|
|
66
|
+
* @readonly
|
|
67
|
+
*/
|
|
68
|
+
protected get tabSearchForm(): ISearchFormController;
|
|
48
69
|
/**
|
|
49
70
|
* 获取视图布局面板控制器
|
|
50
71
|
* @author lxm
|
|
@@ -179,5 +200,12 @@ export declare class ViewEngineBase implements IViewEngine {
|
|
|
179
200
|
* @return {*} {Promise<void>}
|
|
180
201
|
*/
|
|
181
202
|
protected handleEntityPrivilege(data: IData, context: IContext): Promise<void>;
|
|
203
|
+
/**
|
|
204
|
+
* 切换搜索表单的显示与否
|
|
205
|
+
* @author lxm
|
|
206
|
+
* @date 2023-06-06 09:20:35
|
|
207
|
+
* @protected
|
|
208
|
+
*/
|
|
209
|
+
protected toggleFilter(): void;
|
|
182
210
|
}
|
|
183
211
|
//# sourceMappingURL=view-base.engine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-base.engine.d.ts","sourceRoot":"","sources":["../../src/engine/view-base.engine.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"view-base.engine.d.ts","sourceRoot":"","sources":["../../src/engine/view-base.engine.ts"],"names":[],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,IAAI,OAAO,CAAC,IAAI,CAAC;IAW1B,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;IAwBzE;;;;;;OAMG;IAEG,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAmCzC;;;;;OAKG;IACH,SAAS,CAAC,aAAa,IAAI,IAAI;IAI/B;;;;;OAKG;IACH,SAAS,CAAC,OAAO,IAAI,KAAK,EAAE;IAI5B;;;;;;;OAOG;IACH,SAAS,CAAC,qBAAqB,IAAI,OAAO;IAsB1C;;;;;;;;OAQG;IACH,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAmBzC;;;;;;OAMG;IACH,SAAS,CAAC,qBAAqB,IAAI,OAAO;IAU1C;;;;;OAKG;IACG,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAiCrC;;;;;OAKG;cACa,qBAAqB,CACnC,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,QAAQ,GAChB,OAAO,CAAC,IAAI,CAAC;IAahB;;;;;OAKG;IACH,SAAS,CAAC,YAAY,IAAI,IAAI;CAS/B"}
|
|
@@ -54,6 +54,33 @@ export class ViewEngineBase {
|
|
|
54
54
|
get footerToolbar() {
|
|
55
55
|
return this.view.getController('footertoolbar');
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* 搜索表单控制器
|
|
59
|
+
* @author lxm
|
|
60
|
+
* @date 2023-05-22 01:56:25
|
|
61
|
+
* @readonly
|
|
62
|
+
*/
|
|
63
|
+
get searchForm() {
|
|
64
|
+
return this.view.getController('searchform');
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 搜索栏控制器
|
|
68
|
+
* @author lxm
|
|
69
|
+
* @date 2023-05-22 01:56:25
|
|
70
|
+
* @readonly
|
|
71
|
+
*/
|
|
72
|
+
get searchBar() {
|
|
73
|
+
return this.view.getController('searchbar');
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* 获取分页搜索视图上移的搜索表单控制器
|
|
77
|
+
* @author lxm
|
|
78
|
+
* @date 2023-05-22 01:56:25
|
|
79
|
+
* @readonly
|
|
80
|
+
*/
|
|
81
|
+
get tabSearchForm() {
|
|
82
|
+
return this.view.getController('tabsearchform');
|
|
83
|
+
}
|
|
57
84
|
/**
|
|
58
85
|
* 获取视图布局面板控制器
|
|
59
86
|
* @author lxm
|
|
@@ -214,6 +241,20 @@ export class ViewEngineBase {
|
|
|
214
241
|
if (key === SysUIActionTag.SHOTR_CUT) {
|
|
215
242
|
return this.onShortCut(_args);
|
|
216
243
|
}
|
|
244
|
+
if (key === SysUIActionTag.TOGGLE_FILTER) {
|
|
245
|
+
this.toggleFilter();
|
|
246
|
+
return null;
|
|
247
|
+
}
|
|
248
|
+
if (key === SysUIActionTag.SEARCH) {
|
|
249
|
+
const searchForm = this.searchForm || this.tabSearchForm;
|
|
250
|
+
await searchForm.search();
|
|
251
|
+
return null;
|
|
252
|
+
}
|
|
253
|
+
if (key === SysUIActionTag.RESET) {
|
|
254
|
+
const searchForm = this.searchForm || this.tabSearchForm;
|
|
255
|
+
await searchForm.reset();
|
|
256
|
+
return null;
|
|
257
|
+
}
|
|
217
258
|
return undefined;
|
|
218
259
|
}
|
|
219
260
|
/**
|
|
@@ -388,4 +429,18 @@ export class ViewEngineBase {
|
|
|
388
429
|
const deAuthority = await app.authority.getService(appDataEntityId);
|
|
389
430
|
deAuthority.setDataAccAction({ srfkey: data.srfkey, srfsessionid: context.srfsessionid }, data.srfdataaccaction);
|
|
390
431
|
}
|
|
432
|
+
/**
|
|
433
|
+
* 切换搜索表单的显示与否
|
|
434
|
+
* @author lxm
|
|
435
|
+
* @date 2023-06-06 09:20:35
|
|
436
|
+
* @protected
|
|
437
|
+
*/
|
|
438
|
+
toggleFilter() {
|
|
439
|
+
if (this.searchForm) {
|
|
440
|
+
const searchformContainer = this.viewLayoutPanel.panelItems.view_searchform;
|
|
441
|
+
if (searchformContainer) {
|
|
442
|
+
searchformContainer.state.visible = !searchformContainer.state.visible;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
391
446
|
}
|
|
@@ -3,6 +3,7 @@ import { IReportPanelEvent } from '../../event';
|
|
|
3
3
|
import { IReportPanelState } from '../../state';
|
|
4
4
|
import { IControlController } from './i-control.controller';
|
|
5
5
|
import { MDCtrlLoadParams } from './i-md-control.controller';
|
|
6
|
+
import { IModalData } from '../../../common';
|
|
6
7
|
/**
|
|
7
8
|
* 报表部件控制器
|
|
8
9
|
* @author lxm
|
|
@@ -27,8 +28,16 @@ export interface IReportPanelController extends IControlController<IDEReportPane
|
|
|
27
28
|
*
|
|
28
29
|
* @author tony001
|
|
29
30
|
* @date 2024-06-18 16:06:59
|
|
30
|
-
* @return {*} {Promise<
|
|
31
|
+
* @return {*} {Promise<IModalData>}
|
|
31
32
|
*/
|
|
32
|
-
openReportDesignPage(): Promise<
|
|
33
|
+
openReportDesignPage(): Promise<IModalData>;
|
|
34
|
+
/**
|
|
35
|
+
* 刷新
|
|
36
|
+
*
|
|
37
|
+
* @author tony001
|
|
38
|
+
* @date 2024-06-19 18:06:51
|
|
39
|
+
* @return {*} {Promise<void>}
|
|
40
|
+
*/
|
|
41
|
+
refresh(): Promise<void>;
|
|
33
42
|
}
|
|
34
43
|
//# sourceMappingURL=i-report-panel.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-report-panel.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-report-panel.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"i-report-panel.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-report-panel.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;;;;GAOG;AACH,MAAM,WAAW,sBACf,SAAQ,kBAAkB,CACxB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,CAClB;IACD;;;OAGG;IACH,IAAI,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAE9C;;;OAGG;IACH,OAAO,IAAI,KAAK,EAAE,CAAC;IAEnB;;;;;;OAMG;IACH,oBAAoB,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAE5C;;;;;;OAMG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-report-panel.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-report-panel.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"i-report-panel.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-report-panel.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,IAAI,EAAE,KAAK,GAAG,KAAK,EAAE,CAAC;IAEtB;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/runtime",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.26-alpha.0",
|
|
4
4
|
"description": "控制器包",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"qx-util": "^0.4.8",
|
|
67
67
|
"ramda": "^0.29.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "1ca87b0da3c01b72e5afaf88cb841c432f955240"
|
|
70
70
|
}
|