@genesislcap/pbc-reporting-ui 1.0.412 → 2.0.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/dts/index.d.ts +2 -2
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/new/main/main.d.ts +55 -57
- package/dist/dts/new/main/main.d.ts.map +1 -1
- package/dist/dts/new/main/main.template.d.ts +2 -2
- package/dist/dts/new/main/main.template.d.ts.map +1 -1
- package/dist/dts/new/store/store.d.ts +21 -21
- package/dist/dts/new/utils/date-filter-params.d.ts +1 -1
- package/dist/dts/old/components/list/columns.d.ts +1 -1
- package/dist/dts/old/main/main.d.ts +109 -107
- package/dist/dts/old/main/main.d.ts.map +1 -1
- package/dist/dts/old/main/main.template.d.ts +2 -2
- package/dist/dts/old/main/main.template.d.ts.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/new/main/main.js +100 -104
- package/dist/esm/old/main/main.js +227 -223
- package/dist/esm/sandbox.js +2 -2
- package/package.json +1 -1
package/dist/dts/index.d.ts
CHANGED
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,cAAc,WAAW,CAAC"}
|
|
@@ -2,66 +2,64 @@ import { Tabs } from '@genesislcap/rapid-design-system';
|
|
|
2
2
|
import { GenesisElement } from '@genesislcap/web-core';
|
|
3
3
|
import { ReportingEventDetailMap, ReportingEvents } from '../utils/event-map';
|
|
4
4
|
import { GeneratedReports } from './generated-reports/generated-reports';
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* FoundationReporting.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Base MF export. It does not set up a design system or components.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export declare class FoundationReporting extends GenesisElement {
|
|
14
|
+
tabs: Tabs;
|
|
15
|
+
ready: boolean;
|
|
16
|
+
reportConfigMode: ReportingEventDetailMap[ReportingEvents.setReportConfigDisplayMode];
|
|
17
|
+
generatedReportsComponent: GeneratedReports;
|
|
18
|
+
connectedCallback(): Promise<void>;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
handleTabsChange({ detail }: CustomEvent): void;
|
|
21
|
+
handleRunReportEvent({ detail }: CustomEvent): void;
|
|
22
|
+
handleReportConfigDisplayMode({ detail, }: CustomEvent<ReportingEventDetailMap[ReportingEvents.setReportConfigDisplayMode]>): void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* RapidReporting.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* A rapid version that pre-registers rapid components and uses the rapid design system.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* import { RapidReporting } from '@genesislcap/pbc-reporting-ui';
|
|
33
|
+
* ...
|
|
34
|
+
* RapidReporting
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @example Load the micro frontend on-demand
|
|
38
|
+
* ```ts
|
|
39
|
+
|
|
40
|
+
* const { RapidReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
41
|
+
* return RapidReporting;
|
|
42
|
+
* },
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
export declare class RapidReporting extends FoundationReporting {
|
|
6
48
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* Base MF export. It does not set up a design system or components.
|
|
11
|
-
*
|
|
12
|
-
* @public
|
|
49
|
+
* @internal
|
|
13
50
|
*/
|
|
14
|
-
|
|
15
|
-
tabs: Tabs;
|
|
16
|
-
ready: boolean;
|
|
17
|
-
reportConfigMode: ReportingEventDetailMap[ReportingEvents.setReportConfigDisplayMode];
|
|
18
|
-
generatedReportsComponent: GeneratedReports;
|
|
19
|
-
connectedCallback(): Promise<void>;
|
|
20
|
-
disconnectedCallback(): void;
|
|
21
|
-
handleTabsChange({ detail }: CustomEvent): void;
|
|
22
|
-
handleRunReportEvent({ detail }: CustomEvent): void;
|
|
23
|
-
handleReportConfigDisplayMode({ detail, }: CustomEvent<ReportingEventDetailMap[ReportingEvents.setReportConfigDisplayMode]>): void;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* RapidReporting.
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* A rapid version that pre-registers rapid components and uses the rapid design system.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* import { RapidReporting } from '@genesislcap/pbc-reporting-ui';
|
|
34
|
-
* ...
|
|
35
|
-
* RapidReporting
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @example Load the micro frontend on-demand
|
|
39
|
-
* ```ts
|
|
40
|
-
|
|
41
|
-
* const { RapidReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
42
|
-
* return RapidReporting;
|
|
43
|
-
* },
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
|
-
* @public
|
|
47
|
-
*/
|
|
48
|
-
class RapidReporting extends FoundationReporting {
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
*/
|
|
52
|
-
connectedCallback(): Promise<void>;
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
|
-
protected loadRemotes(): Promise<void>;
|
|
57
|
-
}
|
|
51
|
+
connectedCallback(): Promise<void>;
|
|
58
52
|
/**
|
|
59
|
-
* @
|
|
60
|
-
* Keeps backwards compatability with original export.
|
|
61
|
-
*
|
|
62
|
-
* @public
|
|
53
|
+
* @internal
|
|
63
54
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
55
|
+
protected loadRemotes(): Promise<void>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @privateRemarks
|
|
59
|
+
* Keeps backwards compatability with original export.
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
export declare class Reporting extends RapidReporting {
|
|
66
64
|
}
|
|
67
65
|
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/new/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAIzE
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/new/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAIzE;;;;;;;GAOG;AACH,qBAKa,mBAAoB,SAAQ,cAAc;IAC9C,IAAI,EAAE,IAAI,CAAC;IACN,KAAK,EAAE,OAAO,CAAS;IAEnC,gBAAgB,EAAE,uBAAuB,CAAC,eAAe,CAAC,0BAA0B,CAAC,CAAU;IAC/F,yBAAyB,EAAE,gBAAgB,CAAC;IAEtC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAYxC,oBAAoB;IAQb,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW;IAI/C,oBAAoB,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW;IAK5C,6BAA6B,CAAC,EAC5B,MAAM,GACP,EAAE,WAAW,CAAC,uBAAuB,CAAC,eAAe,CAAC,0BAA0B,CAAC,CAAC;CAGpF;AAED;;;;;;;;;;;;;;;;;;;;;;EAsBE;AACF,qBAKa,cAAe,SAAQ,mBAAmB;IACrD;;OAEG;IACG,iBAAiB;IAKvB;;OAEG;cACa,WAAW;CAK5B;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,cAAc;CAAG"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Reporting } from './main';
|
|
2
2
|
export declare enum ReportingTab {
|
|
3
3
|
REPORT_CONFIGURATIONS = 0,
|
|
4
4
|
CREATE_REPORT = 1,
|
|
5
5
|
REPORT_DESTINATIONS = 2,
|
|
6
6
|
GENERATED_REPORTS = 3
|
|
7
7
|
}
|
|
8
|
-
export declare const MainTemplate: import("@microsoft/fast-element").ViewTemplate<
|
|
8
|
+
export declare const MainTemplate: import("@microsoft/fast-element").ViewTemplate<Reporting, any>;
|
|
9
9
|
//# sourceMappingURL=main.template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../../src/new/main/main.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../../src/new/main/main.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAQxC,oBAAY,YAAY;IACtB,qBAAqB,IAAA;IACrB,aAAa,IAAA;IACb,mBAAmB,IAAA;IACnB,iBAAiB,IAAA;CAClB;AACD,eAAO,MAAM,YAAY,gEAsExB,CAAC"}
|
|
@@ -3,14 +3,14 @@ export declare const reduxBlankState: ReportingConfig;
|
|
|
3
3
|
export declare const store: import("../types").RootStateFromSlices<(import("@reduxjs/toolkit").Slice<import("./slices").BaseConfig, {
|
|
4
4
|
updateState(state: import("./slices").BaseConfig, action: {
|
|
5
5
|
payload: {
|
|
6
|
-
key: "NAME";
|
|
7
|
-
value: string;
|
|
8
|
-
} | {
|
|
9
6
|
key: "SCHEDULE";
|
|
10
7
|
value: import("./slices").Schedule;
|
|
11
8
|
} | {
|
|
12
9
|
key: "ID";
|
|
13
10
|
value: string;
|
|
11
|
+
} | {
|
|
12
|
+
key: "NAME";
|
|
13
|
+
value: string;
|
|
14
14
|
} | {
|
|
15
15
|
key: "DESCRIPTION";
|
|
16
16
|
value: string;
|
|
@@ -232,14 +232,14 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
232
232
|
}>)[]>, actions: import("../types").ActionsFromSlices<(import("@reduxjs/toolkit").Slice<import("./slices").BaseConfig, {
|
|
233
233
|
updateState(state: import("./slices").BaseConfig, action: {
|
|
234
234
|
payload: {
|
|
235
|
-
key: "NAME";
|
|
236
|
-
value: string;
|
|
237
|
-
} | {
|
|
238
235
|
key: "SCHEDULE";
|
|
239
236
|
value: import("./slices").Schedule;
|
|
240
237
|
} | {
|
|
241
238
|
key: "ID";
|
|
242
239
|
value: string;
|
|
240
|
+
} | {
|
|
241
|
+
key: "NAME";
|
|
242
|
+
value: string;
|
|
243
243
|
} | {
|
|
244
244
|
key: "DESCRIPTION";
|
|
245
245
|
value: string;
|
|
@@ -464,14 +464,14 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
464
464
|
}, selectors: import("../types").SelectorsFromSlices<(import("@reduxjs/toolkit").Slice<import("./slices").BaseConfig, {
|
|
465
465
|
updateState(state: import("./slices").BaseConfig, action: {
|
|
466
466
|
payload: {
|
|
467
|
-
key: "NAME";
|
|
468
|
-
value: string;
|
|
469
|
-
} | {
|
|
470
467
|
key: "SCHEDULE";
|
|
471
468
|
value: import("./slices").Schedule;
|
|
472
469
|
} | {
|
|
473
470
|
key: "ID";
|
|
474
471
|
value: string;
|
|
472
|
+
} | {
|
|
473
|
+
key: "NAME";
|
|
474
|
+
value: string;
|
|
475
475
|
} | {
|
|
476
476
|
key: "DESCRIPTION";
|
|
477
477
|
value: string;
|
|
@@ -693,14 +693,14 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
693
693
|
}>)[]>, subscribe: (cb: (state: import("../types").RootStateFromSlices<(import("@reduxjs/toolkit").Slice<import("./slices").BaseConfig, {
|
|
694
694
|
updateState(state: import("./slices").BaseConfig, action: {
|
|
695
695
|
payload: {
|
|
696
|
-
key: "NAME";
|
|
697
|
-
value: string;
|
|
698
|
-
} | {
|
|
699
696
|
key: "SCHEDULE";
|
|
700
697
|
value: import("./slices").Schedule;
|
|
701
698
|
} | {
|
|
702
699
|
key: "ID";
|
|
703
700
|
value: string;
|
|
701
|
+
} | {
|
|
702
|
+
key: "NAME";
|
|
703
|
+
value: string;
|
|
704
704
|
} | {
|
|
705
705
|
key: "DESCRIPTION";
|
|
706
706
|
value: string;
|
|
@@ -922,14 +922,14 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
922
922
|
}>)[]>) => void) => void, dispatch: (action: import("redux").Action<string>) => void, getState: () => import("../types").RootStateFromSlices<(import("@reduxjs/toolkit").Slice<import("./slices").BaseConfig, {
|
|
923
923
|
updateState(state: import("./slices").BaseConfig, action: {
|
|
924
924
|
payload: {
|
|
925
|
-
key: "NAME";
|
|
926
|
-
value: string;
|
|
927
|
-
} | {
|
|
928
925
|
key: "SCHEDULE";
|
|
929
926
|
value: import("./slices").Schedule;
|
|
930
927
|
} | {
|
|
931
928
|
key: "ID";
|
|
932
929
|
value: string;
|
|
930
|
+
} | {
|
|
931
|
+
key: "NAME";
|
|
932
|
+
value: string;
|
|
933
933
|
} | {
|
|
934
934
|
key: "DESCRIPTION";
|
|
935
935
|
value: string;
|
|
@@ -1151,14 +1151,14 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
1151
1151
|
}>)[]>, subscribeKey: (checkerFn: (s: import("../types").RootStateFromSlices<(import("@reduxjs/toolkit").Slice<import("./slices").BaseConfig, {
|
|
1152
1152
|
updateState(state: import("./slices").BaseConfig, action: {
|
|
1153
1153
|
payload: {
|
|
1154
|
-
key: "NAME";
|
|
1155
|
-
value: string;
|
|
1156
|
-
} | {
|
|
1157
1154
|
key: "SCHEDULE";
|
|
1158
1155
|
value: import("./slices").Schedule;
|
|
1159
1156
|
} | {
|
|
1160
1157
|
key: "ID";
|
|
1161
1158
|
value: string;
|
|
1159
|
+
} | {
|
|
1160
|
+
key: "NAME";
|
|
1161
|
+
value: string;
|
|
1162
1162
|
} | {
|
|
1163
1163
|
key: "DESCRIPTION";
|
|
1164
1164
|
value: string;
|
|
@@ -1380,14 +1380,14 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
1380
1380
|
}>)[]>) => string, callbackFn: (s: import("../types").RootStateFromSlices<(import("@reduxjs/toolkit").Slice<import("./slices").BaseConfig, {
|
|
1381
1381
|
updateState(state: import("./slices").BaseConfig, action: {
|
|
1382
1382
|
payload: {
|
|
1383
|
-
key: "NAME";
|
|
1384
|
-
value: string;
|
|
1385
|
-
} | {
|
|
1386
1383
|
key: "SCHEDULE";
|
|
1387
1384
|
value: import("./slices").Schedule;
|
|
1388
1385
|
} | {
|
|
1389
1386
|
key: "ID";
|
|
1390
1387
|
value: string;
|
|
1388
|
+
} | {
|
|
1389
|
+
key: "NAME";
|
|
1390
|
+
value: string;
|
|
1391
1391
|
} | {
|
|
1392
1392
|
key: "DESCRIPTION";
|
|
1393
1393
|
value: string;
|
|
@@ -112,7 +112,7 @@ export declare const REPORT_COLUMN_DEFS: (context: any) => ({
|
|
|
112
112
|
headerName: string;
|
|
113
113
|
filter: string;
|
|
114
114
|
filterParams: {
|
|
115
|
-
comparator: (filterLocalDateAtMidnight: Date, cellValue: number) =>
|
|
115
|
+
comparator: (filterLocalDateAtMidnight: Date, cellValue: number) => 0 | 1 | -1;
|
|
116
116
|
buttons: string[];
|
|
117
117
|
closeOnApply: boolean;
|
|
118
118
|
closeOnClear: boolean;
|
|
@@ -4,120 +4,122 @@ import { GenesisElement, NavigationPhase } from '@genesislcap/web-core';
|
|
|
4
4
|
import { List } from '../components/list';
|
|
5
5
|
import { Notification, Settings } from './types';
|
|
6
6
|
import { ReportingConfig } from '../config/config';
|
|
7
|
-
|
|
8
|
-
* FoundationReporting.
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* Base MF export used by host application `configure` calls. It does not set up a design system or components. Both are
|
|
12
|
-
* expected to be registered in the host application, which should provide the details of which to the MF via
|
|
13
|
-
* TemplateOptions.
|
|
14
|
-
*
|
|
15
|
-
* See the {@link configure} hook for more information on how to set up and use this micro frontend in your application.
|
|
16
|
-
*
|
|
17
|
-
* @public
|
|
18
|
-
*/
|
|
19
|
-
export declare class FoundationReporting extends GenesisElement {
|
|
20
|
-
connect: Connect;
|
|
21
|
-
fields: string[];
|
|
22
|
-
selectedRows: any[];
|
|
23
|
-
activeReport: any;
|
|
24
|
-
notifications: Notification[];
|
|
25
|
-
datasourceSettings: any;
|
|
26
|
-
ready: boolean;
|
|
27
|
-
config: ReportingConfig;
|
|
28
|
-
listBox: HTMLElement;
|
|
29
|
-
reportsGrid: List;
|
|
30
|
-
tabs: Tabs;
|
|
31
|
-
private firstReportRun;
|
|
32
|
-
createEditTabId: string;
|
|
33
|
-
enter(phase: NavigationPhase<Settings>): Promise<void>;
|
|
34
|
-
connectedCallback(): Promise<void>;
|
|
35
|
-
handleRowSelectionEvent: (e: CustomEvent) => void;
|
|
36
|
-
private handleNotifyEvent;
|
|
37
|
-
private handleListReportsEvent;
|
|
38
|
-
handleRunReportEvent: (e: CustomEvent) => void;
|
|
39
|
-
handleEditReportEvent: (e: CustomEvent) => void;
|
|
40
|
-
private clearActiveReport;
|
|
41
|
-
handleTabsChange({ detail }: CustomEvent): void;
|
|
42
|
-
create(): void;
|
|
43
|
-
edit(rowData: any): void;
|
|
44
|
-
run(rowData: any): void;
|
|
45
|
-
setPageTab(tab: string): void;
|
|
46
|
-
getFields(resourceName: string): Promise<void>;
|
|
47
|
-
disconnectedCallback(): void;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* RapidReporting.
|
|
51
|
-
*
|
|
52
|
-
* @remarks
|
|
53
|
-
* A rapid version that pre-registers rapid components and uses the rapid design system.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* import { RapidReporting } from '@genesislcap/pbc-reporting-ui';
|
|
58
|
-
* ...
|
|
59
|
-
* RapidReporting
|
|
60
|
-
* ```
|
|
61
|
-
*
|
|
62
|
-
* @example Load the micro frontend on-demand
|
|
63
|
-
* ```ts
|
|
64
|
-
|
|
65
|
-
* const { RapidReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
66
|
-
* return RapidReporting;
|
|
67
|
-
* },
|
|
68
|
-
* ```
|
|
69
|
-
*
|
|
70
|
-
* @public
|
|
71
|
-
*/
|
|
72
|
-
export declare class RapidReporting extends FoundationReporting {
|
|
7
|
+
export declare namespace LegacyReporting {
|
|
73
8
|
/**
|
|
74
|
-
*
|
|
9
|
+
* FoundationReporting.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* Base MF export used by host application `configure` calls. It does not set up a design system or components. Both are
|
|
13
|
+
* expected to be registered in the host application, which should provide the details of which to the MF via
|
|
14
|
+
* TemplateOptions.
|
|
15
|
+
*
|
|
16
|
+
* See the {@link configure} hook for more information on how to set up and use this micro frontend in your application.
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
75
19
|
*/
|
|
76
|
-
|
|
20
|
+
class FoundationReporting extends GenesisElement {
|
|
21
|
+
connect: Connect;
|
|
22
|
+
fields: string[];
|
|
23
|
+
selectedRows: any[];
|
|
24
|
+
activeReport: any;
|
|
25
|
+
notifications: Notification[];
|
|
26
|
+
datasourceSettings: any;
|
|
27
|
+
ready: boolean;
|
|
28
|
+
config: ReportingConfig;
|
|
29
|
+
listBox: HTMLElement;
|
|
30
|
+
reportsGrid: List;
|
|
31
|
+
tabs: Tabs;
|
|
32
|
+
private firstReportRun;
|
|
33
|
+
createEditTabId: string;
|
|
34
|
+
enter(phase: NavigationPhase<Settings>): Promise<void>;
|
|
35
|
+
connectedCallback(): Promise<void>;
|
|
36
|
+
handleRowSelectionEvent: (e: CustomEvent) => void;
|
|
37
|
+
private handleNotifyEvent;
|
|
38
|
+
private handleListReportsEvent;
|
|
39
|
+
handleRunReportEvent: (e: CustomEvent) => void;
|
|
40
|
+
handleEditReportEvent: (e: CustomEvent) => void;
|
|
41
|
+
private clearActiveReport;
|
|
42
|
+
handleTabsChange({ detail }: CustomEvent): void;
|
|
43
|
+
create(): void;
|
|
44
|
+
edit(rowData: any): void;
|
|
45
|
+
run(rowData: any): void;
|
|
46
|
+
setPageTab(tab: string): void;
|
|
47
|
+
getFields(resourceName: string): Promise<void>;
|
|
48
|
+
disconnectedCallback(): void;
|
|
49
|
+
}
|
|
77
50
|
/**
|
|
78
|
-
*
|
|
51
|
+
* RapidReporting.
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* A rapid version that pre-registers rapid components and uses the rapid design system.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* import { RapidReporting } from '@genesislcap/pbc-reporting-ui';
|
|
59
|
+
* ...
|
|
60
|
+
* RapidReporting
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @example Load the micro frontend on-demand
|
|
64
|
+
* ```ts
|
|
65
|
+
|
|
66
|
+
* const { RapidReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
67
|
+
* return RapidReporting;
|
|
68
|
+
* },
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @public
|
|
79
72
|
*/
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
* import { ZeroReporting } from '@genesislcap/pbc-reporting-ui';
|
|
91
|
-
* ...
|
|
92
|
-
* ZeroReporting
|
|
93
|
-
* ```
|
|
94
|
-
*
|
|
95
|
-
* @example Load the micro frontend on-demand
|
|
96
|
-
* ```ts
|
|
97
|
-
|
|
98
|
-
* const { ZeroReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
99
|
-
* return ZeroReporting;
|
|
100
|
-
* },
|
|
101
|
-
* ```
|
|
102
|
-
*
|
|
103
|
-
* @public
|
|
104
|
-
*/
|
|
105
|
-
export declare class ZeroReporting extends FoundationReporting {
|
|
73
|
+
class RapidReporting extends FoundationReporting {
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
connectedCallback(): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
protected loadRemotes(): Promise<void>;
|
|
82
|
+
}
|
|
106
83
|
/**
|
|
107
|
-
*
|
|
84
|
+
* ZeroReporting.
|
|
85
|
+
*
|
|
86
|
+
* @remarks
|
|
87
|
+
* A zero version that pre-registers zero components and uses the zero design system.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* import { ZeroReporting } from '@genesislcap/pbc-reporting-ui';
|
|
92
|
+
* ...
|
|
93
|
+
* ZeroReporting
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
* @example Load the micro frontend on-demand
|
|
97
|
+
* ```ts
|
|
98
|
+
|
|
99
|
+
* const { ZeroReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
100
|
+
* return ZeroReporting;
|
|
101
|
+
* },
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* @public
|
|
108
105
|
*/
|
|
109
|
-
|
|
106
|
+
class ZeroReporting extends FoundationReporting {
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
connectedCallback(): Promise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
protected loadRemotes(): Promise<void>;
|
|
115
|
+
}
|
|
110
116
|
/**
|
|
111
|
-
* @
|
|
117
|
+
* @privateRemarks
|
|
118
|
+
* Keeps backwards compatability with original export.
|
|
119
|
+
*
|
|
120
|
+
* @public
|
|
112
121
|
*/
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* @privateRemarks
|
|
117
|
-
* Keeps backwards compatability with original export.
|
|
118
|
-
*
|
|
119
|
-
* @public
|
|
120
|
-
*/
|
|
121
|
-
export declare class Reporting extends ZeroReporting {
|
|
122
|
+
class Reporting extends ZeroReporting {
|
|
123
|
+
}
|
|
122
124
|
}
|
|
123
125
|
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/old/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAsB,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAiB,cAAc,EAAE,eAAe,EAAc,MAAM,uBAAuB,CAAC;AACnG,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,OAAO,EAAE,YAAY,EAA2B,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/old/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAsB,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAiB,cAAc,EAAE,eAAe,EAAc,MAAM,uBAAuB,CAAC;AACnG,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,OAAO,EAAE,YAAY,EAA2B,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,yBAAiB,eAAe,CAAC;IAC/B;;;;;;;;;;;OAWG;IACH,MAKa,mBAAoB,SAAQ,cAAc;QAC5C,OAAO,EAAG,OAAO,CAAC;QACf,MAAM,EAAE,MAAM,EAAE,CAAM;QACtB,YAAY,QAAM;QAClB,YAAY,EAAE,GAAG,CAAM;QACvB,aAAa,EAAE,YAAY,EAAE,CAAM;QACnC,kBAAkB,MAAC;QACnB,KAAK,EAAE,OAAO,CAAC;QACV,MAAM,EAAG,eAAe,CAAC;QAEnC,OAAO,EAAE,WAAW,CAAC;QACrB,WAAW,EAAG,IAAI,CAAC;QACnB,IAAI,EAAE,IAAI,CAAC;QAElB,OAAO,CAAC,cAAc,CAAQ;QACvB,eAAe,SAAwB;QAExC,KAAK,CAAC,KAAK,EAAE,eAAe,CAAC,QAAQ,CAAC;QAOtC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;QAQxC,uBAAuB,MAAO,WAAW,UAEvC;QAEF,OAAO,CAAC,iBAAiB,CAEvB;QAEF,OAAO,CAAC,sBAAsB,CAG5B;QAEF,oBAAoB,MAAO,WAAW,UAEpC;QAEF,qBAAqB,MAAO,WAAW,UAErC;QAEF,OAAO,CAAC,iBAAiB;QAIlB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW;QAOxC,MAAM;QAKN,IAAI,CAAC,OAAO,KAAA;QAQZ,GAAG,CAAC,OAAO,KAAA;QAgBX,UAAU,CAAC,GAAG,EAAE,MAAM;QAIhB,SAAS,CAAC,YAAY,EAAE,MAAM;QAQ3C,oBAAoB,IAAI,IAAI;KAQ7B;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAKa,cAAe,SAAQ,mBAAmB;QACrD;;WAEG;QACG,iBAAiB;QAKvB;;WAEG;kBACa,WAAW;KAK5B;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAKa,aAAc,SAAQ,mBAAmB;QACpD;;WAEG;QACG,iBAAiB;QAKvB;;WAEG;kBACa,WAAW;KAK5B;IAED;;;;;OAKG;IACH,MAAa,SAAU,SAAQ,aAAa;KAAI;CACjD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ViewTemplate } from "@genesislcap/web-core";
|
|
2
|
-
import type {
|
|
3
|
-
export declare const MainTemplate: ViewTemplate<Reporting, any>;
|
|
2
|
+
import type { LegacyReporting } from "./main";
|
|
3
|
+
export declare const MainTemplate: ViewTemplate<LegacyReporting.Reporting, any>;
|
|
4
4
|
//# sourceMappingURL=main.template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../../src/old/main/main.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAQ9E,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../../src/old/main/main.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAQ9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAgE9C,eAAO,MAAM,YAAY,8CAsDrB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export {
|
|
1
|
+
export * from './new/main';
|
|
2
|
+
export { LegacyReporting } from './old/main';
|
|
3
3
|
export * from './sandbox';
|
|
@@ -3,112 +3,108 @@ import { customElement, GenesisElement, observable } from '@genesislcap/web-core
|
|
|
3
3
|
import { ReportingEvents } from '../utils/event-map';
|
|
4
4
|
import { MainStyles as styles } from './main.styles';
|
|
5
5
|
import { ReportingTab, MainTemplate as template } from './main.template';
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* FoundationReporting.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* Base MF export. It does not set up a design system or components.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
let FoundationReporting = class FoundationReporting extends GenesisElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.ready = false;
|
|
18
|
+
this.reportConfigMode = 'list';
|
|
19
|
+
}
|
|
20
|
+
async connectedCallback() {
|
|
21
|
+
super.connectedCallback();
|
|
22
|
+
this.addEventListener(ReportingEvents.highlightGridRow, this.handleRunReportEvent);
|
|
23
|
+
this.addEventListener(ReportingEvents.setReportConfigDisplayMode, this.handleReportConfigDisplayMode);
|
|
24
|
+
this.ready = true;
|
|
25
|
+
}
|
|
26
|
+
disconnectedCallback() {
|
|
27
|
+
this.removeEventListener(ReportingEvents.highlightGridRow, this.handleRunReportEvent);
|
|
28
|
+
this.removeEventListener(ReportingEvents.setReportConfigDisplayMode, this.handleReportConfigDisplayMode);
|
|
29
|
+
}
|
|
30
|
+
handleTabsChange({ detail }) {
|
|
31
|
+
console.log(detail);
|
|
32
|
+
}
|
|
33
|
+
handleRunReportEvent({ detail }) {
|
|
34
|
+
this.generatedReportsComponent.generatedReportId = detail;
|
|
35
|
+
this.tabs.activeid = ReportingTab.GENERATED_REPORTS.toString();
|
|
36
|
+
}
|
|
37
|
+
handleReportConfigDisplayMode({ detail, }) {
|
|
38
|
+
this.reportConfigMode = detail;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
__decorate([
|
|
42
|
+
observable
|
|
43
|
+
], FoundationReporting.prototype, "ready", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
observable
|
|
46
|
+
], FoundationReporting.prototype, "reportConfigMode", void 0);
|
|
47
|
+
FoundationReporting = __decorate([
|
|
48
|
+
customElement({
|
|
49
|
+
name: 'foundation-reporting',
|
|
50
|
+
template,
|
|
51
|
+
styles,
|
|
52
|
+
})
|
|
53
|
+
], FoundationReporting);
|
|
54
|
+
export { FoundationReporting };
|
|
55
|
+
/**
|
|
56
|
+
* RapidReporting.
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* A rapid version that pre-registers rapid components and uses the rapid design system.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* import { RapidReporting } from '@genesislcap/pbc-reporting-ui';
|
|
64
|
+
* ...
|
|
65
|
+
* RapidReporting
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @example Load the micro frontend on-demand
|
|
69
|
+
* ```ts
|
|
70
|
+
|
|
71
|
+
* const { RapidReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
72
|
+
* return RapidReporting;
|
|
73
|
+
* },
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
let RapidReporting = class RapidReporting extends FoundationReporting {
|
|
8
79
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* Base MF export. It does not set up a design system or components.
|
|
13
|
-
*
|
|
14
|
-
* @public
|
|
80
|
+
* @internal
|
|
15
81
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
this.reportConfigMode = 'list';
|
|
21
|
-
}
|
|
22
|
-
async connectedCallback() {
|
|
23
|
-
super.connectedCallback();
|
|
24
|
-
this.addEventListener(ReportingEvents.highlightGridRow, this.handleRunReportEvent);
|
|
25
|
-
this.addEventListener(ReportingEvents.setReportConfigDisplayMode, this.handleReportConfigDisplayMode);
|
|
26
|
-
this.ready = true;
|
|
27
|
-
}
|
|
28
|
-
disconnectedCallback() {
|
|
29
|
-
this.removeEventListener(ReportingEvents.highlightGridRow, this.handleRunReportEvent);
|
|
30
|
-
this.removeEventListener(ReportingEvents.setReportConfigDisplayMode, this.handleReportConfigDisplayMode);
|
|
31
|
-
}
|
|
32
|
-
handleTabsChange({ detail }) {
|
|
33
|
-
console.log(detail);
|
|
34
|
-
}
|
|
35
|
-
handleRunReportEvent({ detail }) {
|
|
36
|
-
this.generatedReportsComponent.generatedReportId = detail;
|
|
37
|
-
this.tabs.activeid = ReportingTab.GENERATED_REPORTS.toString();
|
|
38
|
-
}
|
|
39
|
-
handleReportConfigDisplayMode({ detail, }) {
|
|
40
|
-
this.reportConfigMode = detail;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
__decorate([
|
|
44
|
-
observable
|
|
45
|
-
], FoundationReporting.prototype, "ready", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
observable
|
|
48
|
-
], FoundationReporting.prototype, "reportConfigMode", void 0);
|
|
49
|
-
FoundationReporting = __decorate([
|
|
50
|
-
customElement({
|
|
51
|
-
name: 'foundation-reporting-beta',
|
|
52
|
-
template,
|
|
53
|
-
styles,
|
|
54
|
-
})
|
|
55
|
-
], FoundationReporting);
|
|
56
|
-
ReportingBeta.FoundationReporting = FoundationReporting;
|
|
57
|
-
/**
|
|
58
|
-
* RapidReporting.
|
|
59
|
-
*
|
|
60
|
-
* @remarks
|
|
61
|
-
* A rapid version that pre-registers rapid components and uses the rapid design system.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* ```ts
|
|
65
|
-
* import { RapidReporting } from '@genesislcap/pbc-reporting-ui';
|
|
66
|
-
* ...
|
|
67
|
-
* RapidReporting
|
|
68
|
-
* ```
|
|
69
|
-
*
|
|
70
|
-
* @example Load the micro frontend on-demand
|
|
71
|
-
* ```ts
|
|
72
|
-
|
|
73
|
-
* const { RapidReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
74
|
-
* return RapidReporting;
|
|
75
|
-
* },
|
|
76
|
-
* ```
|
|
77
|
-
*
|
|
78
|
-
* @public
|
|
79
|
-
*/
|
|
80
|
-
let RapidReporting = class RapidReporting extends FoundationReporting {
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
async connectedCallback() {
|
|
85
|
-
await this.loadRemotes();
|
|
86
|
-
await super.connectedCallback();
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* @internal
|
|
90
|
-
*/
|
|
91
|
-
async loadRemotes() {
|
|
92
|
-
const { registerCommonRapidComponents } = await import('../components/components');
|
|
93
|
-
await registerCommonRapidComponents();
|
|
94
|
-
// this.ready = true;
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
RapidReporting = __decorate([
|
|
98
|
-
customElement({
|
|
99
|
-
name: 'rapid-reporting-beta',
|
|
100
|
-
template,
|
|
101
|
-
styles,
|
|
102
|
-
})
|
|
103
|
-
], RapidReporting);
|
|
104
|
-
ReportingBeta.RapidReporting = RapidReporting;
|
|
82
|
+
async connectedCallback() {
|
|
83
|
+
await this.loadRemotes();
|
|
84
|
+
await super.connectedCallback();
|
|
85
|
+
}
|
|
105
86
|
/**
|
|
106
|
-
* @
|
|
107
|
-
* Keeps backwards compatability with original export.
|
|
108
|
-
*
|
|
109
|
-
* @public
|
|
87
|
+
* @internal
|
|
110
88
|
*/
|
|
111
|
-
|
|
89
|
+
async loadRemotes() {
|
|
90
|
+
const { registerCommonRapidComponents } = await import('../components/components');
|
|
91
|
+
await registerCommonRapidComponents();
|
|
92
|
+
// this.ready = true;
|
|
112
93
|
}
|
|
113
|
-
|
|
114
|
-
|
|
94
|
+
};
|
|
95
|
+
RapidReporting = __decorate([
|
|
96
|
+
customElement({
|
|
97
|
+
name: 'rapid-reporting',
|
|
98
|
+
template,
|
|
99
|
+
styles,
|
|
100
|
+
})
|
|
101
|
+
], RapidReporting);
|
|
102
|
+
export { RapidReporting };
|
|
103
|
+
/**
|
|
104
|
+
* @privateRemarks
|
|
105
|
+
* Keeps backwards compatability with original export.
|
|
106
|
+
*
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
export class Reporting extends RapidReporting {
|
|
110
|
+
}
|
|
@@ -5,239 +5,243 @@ import { MainStyles as styles } from './main.styles';
|
|
|
5
5
|
import { MainTemplate as template } from './main.template';
|
|
6
6
|
import { ReportingEventListeners } from './types';
|
|
7
7
|
import { ReportingConfig } from '../config/config';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
this.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
this.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
8
|
+
export var LegacyReporting;
|
|
9
|
+
(function (LegacyReporting) {
|
|
10
|
+
/**
|
|
11
|
+
* FoundationReporting.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* Base MF export used by host application `configure` calls. It does not set up a design system or components. Both are
|
|
15
|
+
* expected to be registered in the host application, which should provide the details of which to the MF via
|
|
16
|
+
* TemplateOptions.
|
|
17
|
+
*
|
|
18
|
+
* See the {@link configure} hook for more information on how to set up and use this micro frontend in your application.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
let FoundationReporting = class FoundationReporting extends GenesisElement {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
this.fields = [];
|
|
26
|
+
this.selectedRows = [];
|
|
27
|
+
this.activeReport = {};
|
|
28
|
+
this.notifications = [];
|
|
29
|
+
this.firstReportRun = true;
|
|
30
|
+
this.createEditTabId = 'create-edit-report';
|
|
31
|
+
this.handleRowSelectionEvent = (e) => {
|
|
32
|
+
this.selectedRows = e.detail.selectedRows();
|
|
33
|
+
};
|
|
34
|
+
this.handleNotifyEvent = (e) => {
|
|
35
|
+
this.notifications = [...this.notifications, e.detail];
|
|
36
|
+
};
|
|
37
|
+
this.handleListReportsEvent = (e) => {
|
|
38
|
+
this.setPageTab('list-reports');
|
|
39
|
+
this.clearActiveReport();
|
|
40
|
+
};
|
|
41
|
+
this.handleRunReportEvent = (e) => {
|
|
42
|
+
this.run(e.detail);
|
|
43
|
+
};
|
|
44
|
+
this.handleEditReportEvent = (e) => {
|
|
45
|
+
this.edit(e.detail);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
async enter(phase) {
|
|
49
|
+
var _a, _b, _c, _d;
|
|
50
|
+
this.datasourceSettings = {
|
|
51
|
+
maxRows: (_b = (_a = phase.route.settings) === null || _a === void 0 ? void 0 : _a.maxRows) !== null && _b !== void 0 ? _b : DatasourceDefaults.MAX_ROWS_250,
|
|
52
|
+
maxView: (_d = (_c = phase.route.settings) === null || _c === void 0 ? void 0 : _c.maxView) !== null && _d !== void 0 ? _d : DatasourceDefaults.MAX_VIEW_1000,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
async connectedCallback() {
|
|
56
|
+
super.connectedCallback();
|
|
57
|
+
this.ready = true;
|
|
58
|
+
console.log('reporting config', this.config);
|
|
59
|
+
this.addEventListener(ReportingEventListeners.notify, this.handleNotifyEvent);
|
|
60
|
+
this.addEventListener(ReportingEventListeners.listReports, this.handleListReportsEvent);
|
|
61
|
+
}
|
|
62
|
+
clearActiveReport() {
|
|
63
|
+
this.activeReport = {};
|
|
64
|
+
}
|
|
65
|
+
handleTabsChange({ detail }) {
|
|
66
|
+
if ((detail === null || detail === void 0 ? void 0 : detail.id) === this.createEditTabId) {
|
|
67
|
+
this.clearActiveReport();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
// TODO: use const for tab identifiers
|
|
71
|
+
create() {
|
|
65
72
|
this.clearActiveReport();
|
|
73
|
+
this.setPageTab('create-edit-report');
|
|
66
74
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
setTimeout(() => {
|
|
75
|
+
edit(rowData) {
|
|
76
|
+
this.activeReport = Object.assign(Object.assign({}, rowData), { REPORT_COLUMNS: JSON.parse(rowData['REPORT_COLUMNS']) });
|
|
77
|
+
this.setPageTab('create-edit-report');
|
|
78
|
+
}
|
|
79
|
+
run(rowData) {
|
|
80
|
+
this.activeReport = Object.assign(Object.assign({}, rowData), { REPORT_COLUMNS: JSON.parse(rowData['REPORT_COLUMNS']) });
|
|
81
|
+
if (this.firstReportRun) {
|
|
82
|
+
setTimeout(() => {
|
|
83
|
+
this.setPageTab('run-report');
|
|
84
|
+
this.firstReportRun = false;
|
|
85
|
+
}, 100);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
81
88
|
this.setPageTab('run-report');
|
|
82
|
-
|
|
83
|
-
}, 100);
|
|
89
|
+
}
|
|
84
90
|
}
|
|
85
|
-
|
|
86
|
-
this.
|
|
91
|
+
setPageTab(tab) {
|
|
92
|
+
this.tabs.activeid = tab;
|
|
87
93
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
for (let i = 0; i < temp.FIELD.length; i += 1) {
|
|
95
|
-
this.fields.push(temp.FIELD[i].NAME);
|
|
94
|
+
async getFields(resourceName) {
|
|
95
|
+
const temp = await this.connect.getMetadata(resourceName);
|
|
96
|
+
for (let i = 0; i < temp.FIELD.length; i += 1) {
|
|
97
|
+
this.fields.push(temp.FIELD[i].NAME);
|
|
98
|
+
}
|
|
99
|
+
this.listBox.hidden = false;
|
|
96
100
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
], FoundationReporting);
|
|
139
|
-
export { FoundationReporting };
|
|
140
|
-
/**
|
|
141
|
-
* RapidReporting.
|
|
142
|
-
*
|
|
143
|
-
* @remarks
|
|
144
|
-
* A rapid version that pre-registers rapid components and uses the rapid design system.
|
|
145
|
-
*
|
|
146
|
-
* @example
|
|
147
|
-
* ```ts
|
|
148
|
-
* import { RapidReporting } from '@genesislcap/pbc-reporting-ui';
|
|
149
|
-
* ...
|
|
150
|
-
* RapidReporting
|
|
151
|
-
* ```
|
|
152
|
-
*
|
|
153
|
-
* @example Load the micro frontend on-demand
|
|
154
|
-
* ```ts
|
|
155
|
-
|
|
156
|
-
* const { RapidReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
157
|
-
* return RapidReporting;
|
|
158
|
-
* },
|
|
159
|
-
* ```
|
|
160
|
-
*
|
|
161
|
-
* @public
|
|
162
|
-
*/
|
|
163
|
-
let RapidReporting = class RapidReporting extends FoundationReporting {
|
|
164
|
-
/**
|
|
165
|
-
* @internal
|
|
166
|
-
*/
|
|
167
|
-
async connectedCallback() {
|
|
168
|
-
await this.loadRemotes();
|
|
169
|
-
await super.connectedCallback();
|
|
170
|
-
}
|
|
101
|
+
disconnectedCallback() {
|
|
102
|
+
this.reportsGrid.removeEventListener('rowSelectionEvent', this.handleRowSelectionEvent);
|
|
103
|
+
this.removeEventListener(ReportingEventListeners.notify, this.handleNotifyEvent);
|
|
104
|
+
this.removeEventListener(ReportingEventListeners.listReports, this.handleListReportsEvent);
|
|
105
|
+
this.reportsGrid.removeEventListener(ReportingEventListeners.runReport, this.handleRunReportEvent);
|
|
106
|
+
this.reportsGrid.removeEventListener(ReportingEventListeners.editReport, this.handleEditReportEvent);
|
|
107
|
+
super.disconnectedCallback();
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
__decorate([
|
|
111
|
+
Connect
|
|
112
|
+
], FoundationReporting.prototype, "connect", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
observable
|
|
115
|
+
], FoundationReporting.prototype, "fields", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
observable
|
|
118
|
+
], FoundationReporting.prototype, "selectedRows", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
observable
|
|
121
|
+
], FoundationReporting.prototype, "activeReport", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
observable
|
|
124
|
+
], FoundationReporting.prototype, "notifications", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
observable
|
|
127
|
+
], FoundationReporting.prototype, "datasourceSettings", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
observable
|
|
130
|
+
], FoundationReporting.prototype, "ready", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
ReportingConfig
|
|
133
|
+
], FoundationReporting.prototype, "config", void 0);
|
|
134
|
+
FoundationReporting = __decorate([
|
|
135
|
+
customElement({
|
|
136
|
+
name: 'foundation-reporting-legacy',
|
|
137
|
+
template,
|
|
138
|
+
styles,
|
|
139
|
+
})
|
|
140
|
+
], FoundationReporting);
|
|
141
|
+
LegacyReporting.FoundationReporting = FoundationReporting;
|
|
171
142
|
/**
|
|
172
|
-
*
|
|
143
|
+
* RapidReporting.
|
|
144
|
+
*
|
|
145
|
+
* @remarks
|
|
146
|
+
* A rapid version that pre-registers rapid components and uses the rapid design system.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* ```ts
|
|
150
|
+
* import { RapidReporting } from '@genesislcap/pbc-reporting-ui';
|
|
151
|
+
* ...
|
|
152
|
+
* RapidReporting
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* @example Load the micro frontend on-demand
|
|
156
|
+
* ```ts
|
|
157
|
+
|
|
158
|
+
* const { RapidReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
159
|
+
* return RapidReporting;
|
|
160
|
+
* },
|
|
161
|
+
* ```
|
|
162
|
+
*
|
|
163
|
+
* @public
|
|
173
164
|
*/
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
* ```
|
|
200
|
-
*
|
|
201
|
-
* @example Load the micro frontend on-demand
|
|
202
|
-
* ```ts
|
|
203
|
-
|
|
204
|
-
* const { ZeroReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
205
|
-
* return ZeroReporting;
|
|
206
|
-
* },
|
|
207
|
-
* ```
|
|
208
|
-
*
|
|
209
|
-
* @public
|
|
210
|
-
*/
|
|
211
|
-
let ZeroReporting = class ZeroReporting extends FoundationReporting {
|
|
165
|
+
let RapidReporting = class RapidReporting extends FoundationReporting {
|
|
166
|
+
/**
|
|
167
|
+
* @internal
|
|
168
|
+
*/
|
|
169
|
+
async connectedCallback() {
|
|
170
|
+
await this.loadRemotes();
|
|
171
|
+
await super.connectedCallback();
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
async loadRemotes() {
|
|
177
|
+
const { registerCommonRapidComponents } = await import('../components/rapid-components');
|
|
178
|
+
await registerCommonRapidComponents();
|
|
179
|
+
this.ready = true;
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
RapidReporting = __decorate([
|
|
183
|
+
customElement({
|
|
184
|
+
name: 'rapid-reporting-legacy',
|
|
185
|
+
template,
|
|
186
|
+
styles,
|
|
187
|
+
})
|
|
188
|
+
], RapidReporting);
|
|
189
|
+
LegacyReporting.RapidReporting = RapidReporting;
|
|
212
190
|
/**
|
|
213
|
-
*
|
|
191
|
+
* ZeroReporting.
|
|
192
|
+
*
|
|
193
|
+
* @remarks
|
|
194
|
+
* A zero version that pre-registers zero components and uses the zero design system.
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* ```ts
|
|
198
|
+
* import { ZeroReporting } from '@genesislcap/pbc-reporting-ui';
|
|
199
|
+
* ...
|
|
200
|
+
* ZeroReporting
|
|
201
|
+
* ```
|
|
202
|
+
*
|
|
203
|
+
* @example Load the micro frontend on-demand
|
|
204
|
+
* ```ts
|
|
205
|
+
|
|
206
|
+
* const { ZeroReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
207
|
+
* return ZeroReporting;
|
|
208
|
+
* },
|
|
209
|
+
* ```
|
|
210
|
+
*
|
|
211
|
+
* @public
|
|
214
212
|
*/
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
213
|
+
let ZeroReporting = class ZeroReporting extends FoundationReporting {
|
|
214
|
+
/**
|
|
215
|
+
* @internal
|
|
216
|
+
*/
|
|
217
|
+
async connectedCallback() {
|
|
218
|
+
await this.loadRemotes();
|
|
219
|
+
await super.connectedCallback();
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
*/
|
|
224
|
+
async loadRemotes() {
|
|
225
|
+
const { registerCommonZeroComponents } = await import('../components/zero-components');
|
|
226
|
+
await registerCommonZeroComponents();
|
|
227
|
+
this.ready = true;
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
ZeroReporting = __decorate([
|
|
231
|
+
customElement({
|
|
232
|
+
name: 'zero-reporting-legacy',
|
|
233
|
+
template,
|
|
234
|
+
styles,
|
|
235
|
+
})
|
|
236
|
+
], ZeroReporting);
|
|
237
|
+
LegacyReporting.ZeroReporting = ZeroReporting;
|
|
219
238
|
/**
|
|
220
|
-
* @
|
|
239
|
+
* @privateRemarks
|
|
240
|
+
* Keeps backwards compatability with original export.
|
|
241
|
+
*
|
|
242
|
+
* @public
|
|
221
243
|
*/
|
|
222
|
-
|
|
223
|
-
const { registerCommonZeroComponents } = await import('../components/zero-components');
|
|
224
|
-
await registerCommonZeroComponents();
|
|
225
|
-
this.ready = true;
|
|
244
|
+
class Reporting extends ZeroReporting {
|
|
226
245
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
customElement({
|
|
230
|
-
name: 'zero-reporting',
|
|
231
|
-
template,
|
|
232
|
-
styles,
|
|
233
|
-
})
|
|
234
|
-
], ZeroReporting);
|
|
235
|
-
export { ZeroReporting };
|
|
236
|
-
/**
|
|
237
|
-
* @privateRemarks
|
|
238
|
-
* Keeps backwards compatability with original export.
|
|
239
|
-
*
|
|
240
|
-
* @public
|
|
241
|
-
*/
|
|
242
|
-
export class Reporting extends ZeroReporting {
|
|
243
|
-
}
|
|
246
|
+
LegacyReporting.Reporting = Reporting;
|
|
247
|
+
})(LegacyReporting || (LegacyReporting = {}));
|
package/dist/esm/sandbox.js
CHANGED
|
@@ -41,10 +41,10 @@ ReportingSandbox = __decorate([
|
|
|
41
41
|
${when((x) => x.ready, html `
|
|
42
42
|
<rapid-design-system-provider>
|
|
43
43
|
<rapid-tabs>
|
|
44
|
-
<rapid-tab>Reporting Beta</rapid-tab>
|
|
45
44
|
<rapid-tab>Reporting</rapid-tab>
|
|
46
|
-
<rapid-tab
|
|
45
|
+
<rapid-tab>Legacy Reporting</rapid-tab>
|
|
47
46
|
<rapid-tab-panel><rapid-reporting></rapid-reporting></rapid-tab-panel>
|
|
47
|
+
<rapid-tab-panel><rapid-reporting-legacy></rapid-reporting-legacy></rapid-tab-panel>
|
|
48
48
|
</rapid-tabs>
|
|
49
49
|
</rapid-design-system-provider>
|
|
50
50
|
`)}
|
package/package.json
CHANGED