@genesislcap/pbc-reporting-ui 1.0.5 → 1.0.7
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/README.md +0 -14
- package/dist/dts/components/create-edit/create-edit.d.ts +2 -2
- package/dist/dts/components/create-edit/create-edit.d.ts.map +1 -1
- package/dist/dts/components/create-edit/create-edit.styles.d.ts.map +1 -1
- package/dist/dts/components/create-edit/create-edit.template.d.ts +2 -2
- package/dist/dts/components/create-edit/create-edit.template.d.ts.map +1 -1
- package/dist/dts/components/list/columns.d.ts.map +1 -1
- package/dist/dts/components/list/list.d.ts +6 -4
- package/dist/dts/components/list/list.d.ts.map +1 -1
- package/dist/dts/components/list/list.styles.d.ts.map +1 -1
- package/dist/dts/components/list/list.template.d.ts +2 -2
- package/dist/dts/components/list/list.template.d.ts.map +1 -1
- package/dist/dts/components/preview/preview.d.ts +6 -4
- package/dist/dts/components/preview/preview.d.ts.map +1 -1
- package/dist/dts/components/preview/preview.template.d.ts +2 -2
- package/dist/dts/components/preview/preview.template.d.ts.map +1 -1
- package/dist/dts/components/rapid-components.d.ts +5 -0
- package/dist/dts/components/rapid-components.d.ts.map +1 -0
- package/dist/dts/components/select-fields/select-fields.d.ts +7 -5
- package/dist/dts/components/select-fields/select-fields.d.ts.map +1 -1
- package/dist/dts/components/select-fields/select-fields.template.d.ts +1 -2
- package/dist/dts/components/select-fields/select-fields.template.d.ts.map +1 -1
- package/dist/dts/components/select-filters/select-filters.d.ts +7 -5
- package/dist/dts/components/select-filters/select-filters.d.ts.map +1 -1
- package/dist/dts/components/select-filters/select-filters.template.d.ts +1 -2
- package/dist/dts/components/select-filters/select-filters.template.d.ts.map +1 -1
- package/dist/dts/components/wizard/debug.d.ts +1 -2
- package/dist/dts/components/wizard/debug.d.ts.map +1 -1
- package/dist/dts/components/wizard/steps/filters.d.ts +1 -2
- package/dist/dts/components/wizard/steps/filters.d.ts.map +1 -1
- package/dist/dts/components/wizard/steps/name.d.ts +1 -2
- package/dist/dts/components/wizard/steps/name.d.ts.map +1 -1
- package/dist/dts/components/wizard/steps/run.d.ts +2 -2
- package/dist/dts/components/wizard/steps/run.d.ts.map +1 -1
- package/dist/dts/components/wizard/steps/select.d.ts +1 -2
- package/dist/dts/components/wizard/steps/select.d.ts.map +1 -1
- package/dist/dts/components/wizard/wizard.d.ts +4 -2
- package/dist/dts/components/wizard/wizard.d.ts.map +1 -1
- package/dist/dts/components/wizard/wizard.styles.d.ts.map +1 -1
- package/dist/dts/components/wizard/wizard.template.d.ts +1 -2
- package/dist/dts/components/wizard/wizard.template.d.ts.map +1 -1
- package/dist/dts/components/zero-components.d.ts +5 -0
- package/dist/dts/components/zero-components.d.ts.map +1 -0
- package/dist/dts/config/config.d.ts +47 -0
- package/dist/dts/config/config.d.ts.map +1 -0
- package/dist/dts/config/configure.d.ts +30 -0
- package/dist/dts/config/configure.d.ts.map +1 -0
- package/dist/dts/config/index.d.ts +3 -0
- package/dist/dts/config/index.d.ts.map +1 -0
- package/dist/dts/config/templates.d.ts +41 -0
- package/dist/dts/config/templates.d.ts.map +1 -0
- package/dist/dts/constants/grid-config.d.ts.map +1 -1
- package/dist/dts/index.d.ts +2 -2
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/layouts/default.d.ts +2 -2
- package/dist/dts/layouts/default.d.ts.map +1 -1
- package/dist/dts/layouts/two-pane-horizontal.d.ts +2 -2
- package/dist/dts/layouts/two-pane-horizontal.d.ts.map +1 -1
- package/dist/dts/main/index.d.ts +1 -0
- package/dist/dts/main/index.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +110 -16
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.styles.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts +3 -5
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/main/types.d.ts +24 -0
- package/dist/dts/main/types.d.ts.map +1 -0
- package/dist/dts/styles/helpers.d.ts.map +1 -1
- package/dist/dts/styles/styles.d.ts.map +1 -1
- package/dist/dts/tags/index.d.ts +2 -0
- package/dist/dts/tags/index.d.ts.map +1 -0
- package/dist/dts/tags/tags.d.ts +64 -0
- package/dist/dts/tags/tags.d.ts.map +1 -0
- package/dist/esm/components/create-edit/create-edit.js +3 -3
- package/dist/esm/components/create-edit/create-edit.styles.js +2 -5
- package/dist/esm/components/create-edit/create-edit.template.js +1 -1
- package/dist/esm/components/list/columns.js +2 -3
- package/dist/esm/components/list/list.js +9 -6
- package/dist/esm/components/list/list.styles.js +1 -21
- package/dist/esm/components/list/list.template.js +4 -3
- package/dist/esm/components/preview/preview.js +6 -2
- package/dist/esm/components/preview/preview.styles.js +1 -1
- package/dist/esm/components/preview/preview.template.js +10 -9
- package/dist/esm/components/rapid-components.js +21 -0
- package/dist/esm/components/select-fields/select-fields.js +8 -4
- package/dist/esm/components/select-fields/select-fields.styles.js +4 -4
- package/dist/esm/components/select-fields/select-fields.template.js +13 -12
- package/dist/esm/components/select-filters/select-filters.js +9 -5
- package/dist/esm/components/select-filters/select-filters.styles.js +1 -1
- package/dist/esm/components/select-filters/select-filters.template.js +13 -12
- package/dist/esm/components/wizard/debug.js +1 -1
- package/dist/esm/components/wizard/steps/filters.js +1 -1
- package/dist/esm/components/wizard/steps/name.js +14 -13
- package/dist/esm/components/wizard/steps/run.js +1 -1
- package/dist/esm/components/wizard/steps/select.js +1 -1
- package/dist/esm/components/wizard/wizard.js +7 -3
- package/dist/esm/components/wizard/wizard.styles.js +57 -55
- package/dist/esm/components/wizard/wizard.template.js +13 -12
- package/dist/esm/components/zero-components.js +17 -0
- package/dist/esm/config/config.js +20 -0
- package/dist/esm/config/configure.js +58 -0
- package/dist/esm/config/index.js +2 -0
- package/dist/esm/config/templates.js +21 -0
- package/dist/esm/constants/grid-config.js +1 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/layouts/default.js +2 -3
- package/dist/esm/layouts/two-pane-horizontal.js +5 -6
- package/dist/esm/main/index.js +1 -0
- package/dist/esm/main/main.js +207 -53
- package/dist/esm/main/main.styles.js +59 -6
- package/dist/esm/main/main.template.js +95 -8
- package/dist/esm/styles/helpers.js +30 -29
- package/dist/esm/styles/normalize.js +2 -2
- package/dist/esm/styles/styles.js +2 -3
- package/dist/esm/tags/index.js +1 -0
- package/dist/esm/tags/tags.js +67 -0
- package/package.json +22 -5
- package/dist/dts/components/components.d.ts +0 -5
- package/dist/dts/components/components.d.ts.map +0 -1
- package/dist/dts/components/index.d.ts +0 -2
- package/dist/dts/components/index.d.ts.map +0 -1
- package/dist/dts/routes/config.d.ts +0 -25
- package/dist/dts/routes/config.d.ts.map +0 -1
- package/dist/dts/routes/index.d.ts +0 -2
- package/dist/dts/routes/index.d.ts.map +0 -1
- package/dist/dts/routes/not-found/not-found.d.ts +0 -4
- package/dist/dts/routes/not-found/not-found.d.ts.map +0 -1
- package/dist/dts/routes/protected/protected.d.ts +0 -8
- package/dist/dts/routes/protected/protected.d.ts.map +0 -1
- package/dist/dts/routes/protected/protected.styles.d.ts +0 -2
- package/dist/dts/routes/protected/protected.styles.d.ts.map +0 -1
- package/dist/dts/routes/protected/protected.template.d.ts +0 -3
- package/dist/dts/routes/protected/protected.template.d.ts.map +0 -1
- package/dist/dts/routes/reporting-home/reporting-home-styles.d.ts +0 -2
- package/dist/dts/routes/reporting-home/reporting-home-styles.d.ts.map +0 -1
- package/dist/dts/routes/reporting-home/reporting-home-template.d.ts +0 -4
- package/dist/dts/routes/reporting-home/reporting-home-template.d.ts.map +0 -1
- package/dist/dts/routes/reporting-home/reporting-home.d.ts +0 -26
- package/dist/dts/routes/reporting-home/reporting-home.d.ts.map +0 -1
- package/dist/dts/routes/reporting-home/types.d.ts +0 -13
- package/dist/dts/routes/reporting-home/types.d.ts.map +0 -1
- package/dist/esm/components/components.js +0 -51
- package/dist/esm/components/index.js +0 -1
- package/dist/esm/routes/config.js +0 -84
- package/dist/esm/routes/index.js +0 -1
- package/dist/esm/routes/not-found/not-found.js +0 -29
- package/dist/esm/routes/protected/protected.js +0 -32
- package/dist/esm/routes/protected/protected.styles.js +0 -18
- package/dist/esm/routes/protected/protected.template.js +0 -7
- package/dist/esm/routes/reporting-home/reporting-home-styles.js +0 -74
- package/dist/esm/routes/reporting-home/reporting-home-template.js +0 -85
- package/dist/esm/routes/reporting-home/reporting-home.js +0 -103
- /package/dist/esm/{routes/reporting-home → main}/types.js +0 -0
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -1,18 +1,112 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { Connect } from '@genesislcap/foundation-comms';
|
|
2
|
+
import type { Tabs } from '@genesislcap/foundation-ui';
|
|
3
|
+
import { GenesisElement, NavigationPhase } from '@genesislcap/web-core';
|
|
4
|
+
import { List } from '../components/list';
|
|
5
|
+
import { Notification, Settings } from './types';
|
|
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
|
+
config: ReportingConfig;
|
|
27
|
+
listBox: HTMLElement;
|
|
28
|
+
reportsGrid: List;
|
|
29
|
+
tabs: Tabs;
|
|
30
|
+
enter(phase: NavigationPhase<Settings>): Promise<void>;
|
|
31
|
+
connectedCallback(): Promise<void>;
|
|
32
|
+
create(): void;
|
|
33
|
+
edit(rowData: any): void;
|
|
34
|
+
run(rowData: any): Promise<void>;
|
|
35
|
+
setPageTab(tab: string): void;
|
|
36
|
+
getFields(resourceName: string): Promise<void>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* RapidReporting.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* A rapid version that pre-registers rapid components and uses the rapid design system.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* import { RapidReporting } from '@genesislcap/pbc-reporting-ui';
|
|
47
|
+
* ...
|
|
48
|
+
* RapidReporting
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @example Load the micro frontend on-demand
|
|
52
|
+
* ```ts
|
|
53
|
+
|
|
54
|
+
* const { RapidReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
55
|
+
* return RapidReporting;
|
|
56
|
+
* },
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export declare class RapidReporting extends FoundationReporting {
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
connectedCallback(): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
protected loadRemotes(): Promise<void>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* ZeroReporting.
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
* A zero version that pre-registers zero components and uses the zero design system.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* import { ZeroReporting } from '@genesislcap/pbc-reporting-ui';
|
|
80
|
+
* ...
|
|
81
|
+
* ZeroReporting
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* @example Load the micro frontend on-demand
|
|
85
|
+
* ```ts
|
|
86
|
+
|
|
87
|
+
* const { ZeroReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
88
|
+
* return ZeroReporting;
|
|
89
|
+
* },
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export declare class ZeroReporting extends FoundationReporting {
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
connectedCallback(): Promise<void>;
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
protected loadRemotes(): Promise<void>;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @privateRemarks
|
|
106
|
+
* Keeps backwards compatability with original export.
|
|
107
|
+
*
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
export declare class Reporting extends ZeroReporting {
|
|
17
111
|
}
|
|
18
112
|
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/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;;;;;;;;;;;GAWG;AACH,qBAKa,mBAAoB,SAAQ,cAAc;IAC5C,OAAO,EAAG,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAM;IACtB,YAAY,QAAM;IAClB,YAAY,EAAE,GAAG,CAAM;IACvB,aAAa,EAAE,YAAY,EAAE,CAAM;IACnC,kBAAkB,MAAC;IACd,MAAM,EAAG,eAAe,CAAC;IAEnC,OAAO,EAAE,WAAW,CAAC;IACrB,WAAW,EAAG,IAAI,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IAEZ,KAAK,CAAC,KAAK,EAAE,eAAe,CAAC,QAAQ,CAAC;IAOtC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAsBjC,MAAM;IAKN,IAAI,CAAC,OAAO,KAAA;IAQN,GAAG,CAAC,OAAO,KAAA;IAQjB,UAAU,CAAC,GAAG,EAAE,MAAM;IAIhB,SAAS,CAAC,YAAY,EAAE,MAAM;CAO5C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAKa,cAAe,SAAQ,mBAAmB;IACrD;;OAEG;IACG,iBAAiB;IAKvB;;OAEG;cACa,WAAW;CAI5B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAKa,aAAc,SAAQ,mBAAmB;IACpD;;OAEG;IACG,iBAAiB;IAKvB;;OAEG;cACa,WAAW;CAI5B;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,aAAa;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.styles.d.ts","sourceRoot":"","sources":["../../../src/main/main.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.styles.d.ts","sourceRoot":"","sources":["../../../src/main/main.styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,iDAgEtB,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Reporting } from
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const LoadingTemplate: ViewTemplate<Reporting>;
|
|
5
|
-
export declare const MainTemplate: ViewTemplate<Reporting>;
|
|
1
|
+
import { ViewTemplate } from "@genesislcap/web-core";
|
|
2
|
+
import type { Reporting } from "./main";
|
|
3
|
+
export declare const MainTemplate: ViewTemplate<Reporting, any>;
|
|
6
4
|
//# sourceMappingURL=main.template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAQ9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAgExC,eAAO,MAAM,YAAY,8BAiDxB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type Settings = {
|
|
2
|
+
public?: boolean;
|
|
3
|
+
resetPassword?: boolean;
|
|
4
|
+
requestAccount?: boolean;
|
|
5
|
+
forgotPassword?: boolean;
|
|
6
|
+
logoSrc?: string;
|
|
7
|
+
logoWidth?: string;
|
|
8
|
+
logoHeight?: string;
|
|
9
|
+
maxRows?: number;
|
|
10
|
+
maxView?: number;
|
|
11
|
+
};
|
|
12
|
+
export type Notification = {
|
|
13
|
+
type: string;
|
|
14
|
+
title: string;
|
|
15
|
+
message?: string;
|
|
16
|
+
autoClose?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare enum ReportingEventListeners {
|
|
19
|
+
notify = "notify",
|
|
20
|
+
listReports = "listReports",
|
|
21
|
+
runReport = "runReport",
|
|
22
|
+
editReport = "editReport"
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/main/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,oBAAY,uBAAuB;IACjC,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,UAAU,eAAe;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/styles/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/styles/helpers.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,YAAY,iDA+KxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/styles/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/styles/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,iDAS7B,CAAC;AAEF,eAAO,MAAM,WAAW,aAAa,MAAM,WAM1C,CAAC;AAEF,eAAO,MAAM,eAAe,uCAE3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tags/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* It's important this file isn't referenced ahead of a `configure` call, otherwise these values may remain fixed at
|
|
3
|
+
* their defaults. Consumers must use the `/config` subpath to help avoid this. Files with references to tags should be
|
|
4
|
+
* lazily loaded. There is an alternative `getTags` utility at the end which could offer another approach, but direct
|
|
5
|
+
* tag exports and inline template references feel cleaner than having to convert all component `template` and `styles`
|
|
6
|
+
* exports to functions to call `getTags` on execution.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare const templateOptions: import("../config/templates").TemplateOptions;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare const iconTag: string;
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export declare const buttonTag: string;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare const cardTag: string;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const tabsTag: string;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export declare const tabTag: string;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
export declare const tabPanelTag: string;
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export declare const textFieldTag: string;
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
export declare const textAreaTag: string;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
export declare const radioGroupTag: string;
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
export declare const radioTag: string;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
export declare const toastTag: string;
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
export declare const designSystemProviderTag: string;
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
export declare const gridTag: string;
|
|
64
|
+
//# sourceMappingURL=tags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/tags/tags.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AAEH;;GAEG;AACH,eAAO,MAAQ,eAAe,+CACqB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,OAAO,QAA+B,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,SAAS,QAAiC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,OAAO,QAA+B,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,OAAO,QAA+B,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,MAAM,QAA8B,CAAC;AAClD;;GAEG;AACH,eAAO,MAAM,WAAW,QAAmC,CAAC;AAC5D;;GAEG;AACH,eAAO,MAAM,YAAY,QAAoC,CAAC;AAC9D;;GAEG;AACH,eAAO,MAAM,WAAW,QAAmC,CAAC;AAC5D;;GAEG;AACH,eAAO,MAAM,aAAa,QAAqC,CAAC;AAChE;;GAEG;AACH,eAAO,MAAM,QAAQ,QAAgC,CAAC;AACtD;;GAEG;AACH,eAAO,MAAM,QAAQ,QAAgC,CAAC;AACtD;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAA+C,CAAC;AACpF;;GAEG;AACH,eAAO,MAAM,OAAO,QAA+B,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
|
-
import { customElement,
|
|
4
|
-
import { ReportingEventListeners } from '../../
|
|
3
|
+
import { customElement, GenesisElement, observable } from '@genesislcap/web-core';
|
|
4
|
+
import { ReportingEventListeners } from '../../main/types';
|
|
5
5
|
import { CreateEditStyles as styles } from './create-edit.styles';
|
|
6
6
|
import { CreateEditTemplate as template } from './create-edit.template';
|
|
7
7
|
const name = 'reporting-create-edit';
|
|
8
|
-
let CreateEdit = class CreateEdit extends
|
|
8
|
+
let CreateEdit = class CreateEdit extends GenesisElement {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments);
|
|
11
11
|
this.report = {};
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { css } from '@microsoft/fast-element';
|
|
3
|
-
import { ColorHEX } from '../../styles';
|
|
4
|
-
const { blackPearl } = ColorHEX;
|
|
1
|
+
import { css } from '@genesislcap/web-core';
|
|
5
2
|
export const CreateEditStyles = css `
|
|
6
3
|
.create-edit {
|
|
7
4
|
width: 100%;
|
|
8
5
|
height: 98%;
|
|
9
6
|
margin: 0;
|
|
10
7
|
padding: 0;
|
|
11
|
-
color:
|
|
8
|
+
color: var(--neutral-foreground-rest);
|
|
12
9
|
}
|
|
13
10
|
|
|
14
11
|
.container {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { formatDateTimestamp } from '@genesislcap/foundation-utils';
|
|
2
|
-
import { ColorHEX } from '../../styles';
|
|
3
2
|
export var REPORT_FIELDS;
|
|
4
3
|
(function (REPORT_FIELDS) {
|
|
5
4
|
REPORT_FIELDS["REPORT_ID"] = "REPORT_ID";
|
|
@@ -32,7 +31,7 @@ export function REPORT_COLUMN_DEFS(context) {
|
|
|
32
31
|
justifyContent: 'flex-start',
|
|
33
32
|
alignItems: 'center',
|
|
34
33
|
textAlign: 'left',
|
|
35
|
-
color:
|
|
34
|
+
color: 'var(--accent-fill-rest)',
|
|
36
35
|
},
|
|
37
36
|
cellRendererSelector: (params) => {
|
|
38
37
|
return {
|
|
@@ -94,7 +93,7 @@ export function REPORT_COLUMN_DEFS(context) {
|
|
|
94
93
|
params: {
|
|
95
94
|
actionClick: () => { var _a; return context.runReport((_a = params === null || params === void 0 ? void 0 : params.node) === null || _a === void 0 ? void 0 : _a.data); },
|
|
96
95
|
actionName: 'Run',
|
|
97
|
-
appearance:
|
|
96
|
+
appearance: context.config.buttonAppearance,
|
|
98
97
|
},
|
|
99
98
|
};
|
|
100
99
|
},
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
|
-
import { getActionsMenuDef } from '@genesislcap/
|
|
4
|
-
import { customElement,
|
|
3
|
+
import { getActionsMenuDef } from '@genesislcap/grid-pro';
|
|
4
|
+
import { customElement, GenesisElement, observable } from '@genesislcap/web-core';
|
|
5
5
|
import { actionsOpenIcon } from '../../assets/images';
|
|
6
|
-
import { ReportingEventListeners } from '../../
|
|
7
|
-
import { ColorHEX } from '../../styles';
|
|
6
|
+
import { ReportingEventListeners } from '../../main/types';
|
|
8
7
|
import { ListStyles as styles } from './list.styles';
|
|
9
8
|
import { ListTemplate as template } from './list.template';
|
|
9
|
+
import { ReportingConfig } from '../../config/config';
|
|
10
10
|
const name = 'reporting-list';
|
|
11
|
-
let List = class List extends
|
|
11
|
+
let List = class List extends GenesisElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
14
14
|
this.userInteractedRow = {};
|
|
@@ -37,7 +37,7 @@ let List = class List extends FASTElement {
|
|
|
37
37
|
callback: (rowData) => {
|
|
38
38
|
this.delete(rowData);
|
|
39
39
|
},
|
|
40
|
-
color:
|
|
40
|
+
color: 'var(--error-color)',
|
|
41
41
|
},
|
|
42
42
|
], {
|
|
43
43
|
width: 60,
|
|
@@ -117,6 +117,9 @@ __decorate([
|
|
|
117
117
|
__decorate([
|
|
118
118
|
observable
|
|
119
119
|
], List.prototype, "selectedRows", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
ReportingConfig
|
|
122
|
+
], List.prototype, "config", void 0);
|
|
120
123
|
List = __decorate([
|
|
121
124
|
customElement({
|
|
122
125
|
name,
|
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { css } from '@microsoft/fast-element';
|
|
3
|
-
import { ColorHEX } from '../../styles';
|
|
4
|
-
const { dark } = ColorHEX;
|
|
1
|
+
import { css } from '@genesislcap/web-core';
|
|
5
2
|
export const ListStyles = css `
|
|
6
3
|
:host {
|
|
7
4
|
display: block;
|
|
8
5
|
width: 100%;
|
|
9
6
|
height: 100%;
|
|
10
|
-
|
|
11
|
-
--design-unit: 3.5;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.container {
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
height: 100%;
|
|
18
|
-
width: 100%;
|
|
19
|
-
color: ${neutralForegroundRest};
|
|
20
|
-
background-color: ${dark};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.saved-reports-grid {
|
|
24
|
-
padding: 10px;
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 80%;
|
|
27
7
|
}
|
|
28
8
|
`;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { html, repeat, ref } from '@
|
|
1
|
+
import { html, repeat, ref } from '@genesislcap/web-core';
|
|
2
2
|
import { REPORT_COLUMN_DEFS } from './columns';
|
|
3
|
+
import { gridTag } from '../../tags';
|
|
3
4
|
// TODO: provide gridoptions in class
|
|
4
5
|
export const ListTemplate = html `
|
|
5
|
-
|
|
6
|
+
<${gridTag}
|
|
6
7
|
${ref('grid')}
|
|
7
8
|
data-test-id="report-grid"
|
|
8
9
|
only-template-col-defs
|
|
@@ -21,5 +22,5 @@ export const ListTemplate = html `
|
|
|
21
22
|
data-test-id="report-grid-actions-column"
|
|
22
23
|
:definition=${(x) => x.actionsMenuSlottedConfig}
|
|
23
24
|
></grid-pro-column>
|
|
24
|
-
|
|
25
|
+
</${gridTag}>
|
|
25
26
|
`;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Datasource } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { formatDateTimestamp, formatDateTimeTimestamp } from '@genesislcap/foundation-utils';
|
|
4
|
-
import { customElement,
|
|
4
|
+
import { customElement, GenesisElement, observable, attr } from '@genesislcap/web-core';
|
|
5
5
|
import { getColumns, getGridOptions } from './columns';
|
|
6
6
|
import { PreviewStyles as styles } from './preview.styles';
|
|
7
7
|
import { PreviewReportTemplate as template } from './preview.template';
|
|
8
|
+
import { ReportingConfig } from '../../config/config';
|
|
8
9
|
const name = 'reporting-preview';
|
|
9
|
-
let Preview = class Preview extends
|
|
10
|
+
let Preview = class Preview extends GenesisElement {
|
|
10
11
|
constructor() {
|
|
11
12
|
super(...arguments);
|
|
12
13
|
this.report = {};
|
|
@@ -101,6 +102,9 @@ __decorate([
|
|
|
101
102
|
__decorate([
|
|
102
103
|
observable
|
|
103
104
|
], Preview.prototype, "datasourceSettings", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
ReportingConfig
|
|
107
|
+
], Preview.prototype, "config", void 0);
|
|
104
108
|
Preview = __decorate([
|
|
105
109
|
customElement({
|
|
106
110
|
name,
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { html, ref } from '@
|
|
1
|
+
import { html, ref } from '@genesislcap/web-core';
|
|
2
|
+
import { buttonTag, cardTag, gridTag, iconTag } from '../../tags';
|
|
2
3
|
export const PreviewReportTemplate = html `
|
|
3
4
|
<div class="preview" data-test-id="preview">
|
|
4
|
-
|
|
5
|
+
<${cardTag} class="card">
|
|
5
6
|
<div class="header">
|
|
6
7
|
<div>
|
|
7
8
|
<h3 class="card-title">${(x) => x.report['REPORT_NAME']}</h3>
|
|
8
9
|
<p>${(x) => x.report['REPORT_DESCRIPTION']}</p>
|
|
9
10
|
</div>
|
|
10
11
|
<div class="controls">
|
|
11
|
-
|
|
12
|
-
appearance="
|
|
12
|
+
<${buttonTag}
|
|
13
|
+
appearance="${(x) => x.config.buttonAppearance}"
|
|
13
14
|
@click=${(x) => x.exportToCsv()}
|
|
14
15
|
data-test-id="export-csv-button"
|
|
15
16
|
>
|
|
16
17
|
Export to csv
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
<${iconTag} class="ml-5px" name="arrow-down"></${iconTag}>
|
|
19
|
+
</${buttonTag}>
|
|
19
20
|
</div>
|
|
20
21
|
</div>
|
|
21
22
|
<div class="w-full h-90pc">
|
|
22
|
-
|
|
23
|
+
<${gridTag}
|
|
23
24
|
${ref('grid')}
|
|
24
25
|
floatingFilter="false"
|
|
25
26
|
rowSelection="multiple"
|
|
26
|
-
|
|
27
|
+
></${gridTag}>
|
|
27
28
|
</div>
|
|
28
|
-
|
|
29
|
+
</${cardTag}>
|
|
29
30
|
</div>
|
|
30
31
|
`;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { baseComponents, provideDesignSystem, rapidIcon, rapidButton, rapidCard, rapidTabs, rapidTab, rapidTabPanel, rapidTextField, rapidTextArea, rapidRadioGroup, rapidRadio, rapidToast, } from '@genesislcap/rapid-design-system';
|
|
3
|
+
import { rapidGridComponents } from '@genesislcap/rapid-grid-pro';
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export const registerCommonRapidComponents = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
8
|
+
/**
|
|
9
|
+
* Register the components the app is using with the system.
|
|
10
|
+
*/
|
|
11
|
+
provideDesignSystem()
|
|
12
|
+
.register(
|
|
13
|
+
/**
|
|
14
|
+
* Common across most routes, so batch register these lightweight components upfront.
|
|
15
|
+
*/
|
|
16
|
+
rapidIcon(), rapidButton(), rapidCard(), rapidTabs(), rapidTab(), rapidTabPanel(), rapidTextField(), rapidTextArea(), rapidRadioGroup(), rapidRadio(), rapidToast(),
|
|
17
|
+
/**
|
|
18
|
+
* A re-export of designSystemProvider is missing from the top level index file in rapid
|
|
19
|
+
*/
|
|
20
|
+
baseComponents.designSystemProvider(), rapidGridComponents);
|
|
21
|
+
});
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
|
-
import {
|
|
4
|
-
import { customElement,
|
|
3
|
+
import { RapidAgTextRenderer } from '@genesislcap/rapid-grid-pro';
|
|
4
|
+
import { customElement, GenesisElement, observable, attr } from '@genesislcap/web-core';
|
|
5
5
|
import { filterObjectArray, getSelectedFields } from '../../utils';
|
|
6
6
|
import { FIELD_SELECT_CONFIG, SELECTED_FIELDS_CONFIG } from './columns';
|
|
7
7
|
import { SelectFieldsStyles } from './select-fields.styles';
|
|
8
8
|
import { SelectFieldsTemplate } from './select-fields.template';
|
|
9
|
-
|
|
9
|
+
import { ReportingConfig } from '../../config/config';
|
|
10
|
+
let SelectFields = class SelectFields extends GenesisElement {
|
|
10
11
|
constructor() {
|
|
11
12
|
super(...arguments);
|
|
12
13
|
this.fieldsToRemove = [];
|
|
@@ -126,7 +127,7 @@ let SelectFields = class SelectFields extends FASTElement {
|
|
|
126
127
|
{
|
|
127
128
|
field: 'displayName',
|
|
128
129
|
headerName: 'Display name',
|
|
129
|
-
cellRenderer:
|
|
130
|
+
cellRenderer: RapidAgTextRenderer,
|
|
130
131
|
cellRendererParams: {
|
|
131
132
|
accessor: 'displayName',
|
|
132
133
|
onChange: this.onTextFieldChange,
|
|
@@ -187,6 +188,9 @@ __decorate([
|
|
|
187
188
|
__decorate([
|
|
188
189
|
attr
|
|
189
190
|
], SelectFields.prototype, "selectedDatasource", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
ReportingConfig
|
|
193
|
+
], SelectFields.prototype, "config", void 0);
|
|
190
194
|
SelectFields = __decorate([
|
|
191
195
|
customElement({
|
|
192
196
|
name: 'reporting-select-fields',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { css } from '@genesislcap/web-core';
|
|
2
|
+
import { cardTag } from '../../tags';
|
|
3
3
|
import { helperStyles, normalizeStyles } from '../../styles';
|
|
4
4
|
export const SelectFieldsStyles = css `
|
|
5
5
|
${helperStyles}
|
|
@@ -15,7 +15,7 @@ export const SelectFieldsStyles = css `
|
|
|
15
15
|
height: 100%;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
background-color:
|
|
18
|
+
${cardTag} {
|
|
19
|
+
background-color: var(--neutral-layer-3);
|
|
20
20
|
}
|
|
21
21
|
`;
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
import { html, ref } from '@
|
|
1
|
+
import { html, ref } from '@genesislcap/web-core';
|
|
2
|
+
import { buttonTag, cardTag, gridTag } from '../../tags';
|
|
2
3
|
const availableFieldsTemplate = html `
|
|
3
4
|
<section class="available-fields" slot="left-section">
|
|
4
5
|
<h3 class="mt-1 section-title dark-grey">Select fields</h3>
|
|
5
|
-
|
|
6
|
+
<${cardTag} class="card">
|
|
6
7
|
<div class="flex space-between">
|
|
7
8
|
<h5 class="card-title">All fields</h5>
|
|
8
9
|
</div>
|
|
9
10
|
|
|
10
11
|
<div class="w-full h-90pc">
|
|
11
|
-
|
|
12
|
+
<${gridTag}
|
|
12
13
|
${ref('allFieldsGrid')}
|
|
13
14
|
rowSelection="multiple"
|
|
14
15
|
data-test-id="select-fields-available"
|
|
15
|
-
|
|
16
|
+
></${gridTag}>
|
|
16
17
|
</div>
|
|
17
|
-
|
|
18
|
+
</${cardTag}>
|
|
18
19
|
</section>
|
|
19
20
|
`;
|
|
20
21
|
const selectedFieldsTemplate = html `
|
|
21
22
|
<section class="selected-fields" slot="right-section">
|
|
22
23
|
<div class="spacer-3"></div>
|
|
23
|
-
|
|
24
|
+
<${cardTag} class="card">
|
|
24
25
|
<div class="flex space-between">
|
|
25
26
|
<h5 class="card-title">Selected fields</h5>
|
|
26
|
-
|
|
27
|
+
<${buttonTag}
|
|
27
28
|
@click=${(x) => x.removeSelectedFields()}
|
|
28
29
|
?disabled=${(x) => !x.fieldsToRemove.length}
|
|
29
|
-
appearance="
|
|
30
|
+
appearance="${(x) => x.config.buttonAppearance}"
|
|
30
31
|
>
|
|
31
32
|
Remove fields
|
|
32
|
-
|
|
33
|
+
</${buttonTag}>
|
|
33
34
|
</div>
|
|
34
35
|
<div class="w-full h-90pc">
|
|
35
|
-
|
|
36
|
+
<${gridTag}
|
|
36
37
|
${ref('selectedFieldsGrid')}
|
|
37
38
|
rowSelection="multiple"
|
|
38
39
|
data-test-id="select-fields-selected"
|
|
39
|
-
|
|
40
|
+
></${gridTag}>
|
|
40
41
|
</div>
|
|
41
|
-
|
|
42
|
+
</${cardTag}>
|
|
42
43
|
</section>
|
|
43
44
|
`;
|
|
44
45
|
// TODO: review classes from merge conflict
|