@genesislcap/pbc-reporting-ui 15.19.0 → 15.19.1
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/custom-elements.json +4247 -5382
- package/dist/dts/react.d.ts +44 -44
- package/dist/react.cjs +65 -65
- package/dist/react.mjs +57 -57
- package/package.json +22 -23
- package/.env +0 -3
- package/api-extractor.json +0 -4
- package/dist/dts/new/main/edit-config/col-filters/col-filters-grid.helpers.test.d.ts +0 -2
- package/dist/dts/new/main/edit-config/col-filters/col-filters-grid.helpers.test.d.ts.map +0 -1
- package/dist/dts/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.test.d.ts +0 -2
- package/dist/dts/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.test.d.ts.map +0 -1
- package/dist/dts/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.test.d.ts +0 -2
- package/dist/dts/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.test.d.ts.map +0 -1
- package/dist/dts/new/main/edit-config/datasource-config/datasources-config-container.helpers.test.d.ts +0 -2
- package/dist/dts/new/main/edit-config/datasource-config/datasources-config-container.helpers.test.d.ts.map +0 -1
- package/dist/dts/new/main/edit-config/row-filters/row-filters.helpers.test.d.ts +0 -2
- package/dist/dts/new/main/edit-config/row-filters/row-filters.helpers.test.d.ts.map +0 -1
- package/dist/dts/new/main/edit-config/shared/datasource-data-base-component.test.d.ts +0 -5
- package/dist/dts/new/main/edit-config/shared/datasource-data-base-component.test.d.ts.map +0 -1
- package/dist/dts/new/utils/alias-generator.test.d.ts +0 -2
- package/dist/dts/new/utils/alias-generator.test.d.ts.map +0 -1
- package/dist/dts/new/utils/endpoint.test.d.ts +0 -2
- package/dist/dts/new/utils/endpoint.test.d.ts.map +0 -1
- package/dist/dts/new/utils/transformers.test.d.ts +0 -2
- package/dist/dts/new/utils/transformers.test.d.ts.map +0 -1
- package/dist/dts/new/utils/validators.test.d.ts +0 -2
- package/dist/dts/new/utils/validators.test.d.ts.map +0 -1
- package/dist/dts/old/main/main.test.d.ts +0 -2
- package/dist/dts/old/main/main.test.d.ts.map +0 -1
- package/dist/dts/old/utils/filterObjectArray.test.d.ts +0 -2
- package/dist/dts/old/utils/filterObjectArray.test.d.ts.map +0 -1
- package/dist/esm/new/main/edit-config/col-filters/col-filters-grid.helpers.test.js +0 -200
- package/dist/esm/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.test.js +0 -152
- package/dist/esm/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.test.js +0 -629
- package/dist/esm/new/main/edit-config/datasource-config/datasources-config-container.helpers.test.js +0 -268
- package/dist/esm/new/main/edit-config/row-filters/row-filters.helpers.test.js +0 -1
- package/dist/esm/new/main/edit-config/shared/datasource-data-base-component.test.js +0 -426
- package/dist/esm/new/utils/alias-generator.test.js +0 -36
- package/dist/esm/new/utils/endpoint.test.js +0 -162
- package/dist/esm/new/utils/transformers.test.js +0 -469
- package/dist/esm/new/utils/validators.test.js +0 -139
- package/dist/esm/old/main/main.test.js +0 -5
- package/dist/esm/old/utils/filterObjectArray.test.js +0 -46
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/src/globals.d.ts +0 -7
- package/src/index.federated.ts +0 -1
- package/src/index.ts +0 -8
- package/src/new/components/clone-report-config-modal/clone-report-config-modal.styles.ts +0 -47
- package/src/new/components/clone-report-config-modal/clone-report-config-modal.template.ts +0 -55
- package/src/new/components/clone-report-config-modal/clone-report-config-modal.ts +0 -173
- package/src/new/components/components.ts +0 -118
- package/src/new/components/renderers/data-transform-renderer.ts +0 -111
- package/src/new/components/reporting-configurations/reporting-configurations.styles.ts +0 -42
- package/src/new/components/reporting-configurations/reporting-configurations.template.ts +0 -59
- package/src/new/components/reporting-configurations/reporting-configurations.ts +0 -366
- package/src/new/components/shared/file-template-picker.template.ts +0 -45
- package/src/new/lib/redux-store/README.md +0 -55
- package/src/new/lib/redux-store/index.ts +0 -2
- package/src/new/lib/redux-store/state-utils.ts +0 -1
- package/src/new/lib/redux-store/store.ts +0 -135
- package/src/new/main/edit-config/base-config/base-config.styles.ts +0 -26
- package/src/new/main/edit-config/base-config/base-config.template.ts +0 -71
- package/src/new/main/edit-config/base-config/base-config.ts +0 -116
- package/src/new/main/edit-config/col-filters/col-filters-grid.helpers.test.ts +0 -232
- package/src/new/main/edit-config/col-filters/col-filters-grid.helpers.ts +0 -35
- package/src/new/main/edit-config/col-filters/col-filters-grid.styles.ts +0 -22
- package/src/new/main/edit-config/col-filters/col-filters-grid.ts +0 -150
- package/src/new/main/edit-config/col-filters/col-filters-grid.types.ts +0 -7
- package/src/new/main/edit-config/col-filters/col-filters-tutorial.ts +0 -25
- package/src/new/main/edit-config/col-filters/col-fitlers-grid.template.ts +0 -15
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.test.ts +0 -187
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts +0 -89
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.styles.ts +0 -22
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.template.ts +0 -14
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.ts +0 -119
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.types.ts +0 -10
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-tutorial.ts +0 -33
- package/src/new/main/edit-config/config-journey-orchestrator.styles.ts +0 -120
- package/src/new/main/edit-config/config-journey-orchestrator.template.ts +0 -149
- package/src/new/main/edit-config/config-journey-orchestrator.ts +0 -92
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms-tutorial.ts +0 -127
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.test.ts +0 -799
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts +0 -371
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms.styles.ts +0 -22
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms.template.ts +0 -21
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms.ts +0 -162
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts +0 -211
- package/src/new/main/edit-config/data-transforms-derived-fields/date-format-modal/date-format-modal.styles.ts +0 -79
- package/src/new/main/edit-config/data-transforms-derived-fields/date-format-modal/date-format-modal.template.ts +0 -217
- package/src/new/main/edit-config/data-transforms-derived-fields/date-format-modal/date-format-modal.ts +0 -280
- package/src/new/main/edit-config/data-transforms-derived-fields/date-format-modal/index.ts +0 -1
- package/src/new/main/edit-config/data-transforms-derived-fields/format-warning.ts +0 -43
- package/src/new/main/edit-config/data-transforms-derived-fields/number-format-modal/index.ts +0 -1
- package/src/new/main/edit-config/data-transforms-derived-fields/number-format-modal/number-format-modal.styles.ts +0 -68
- package/src/new/main/edit-config/data-transforms-derived-fields/number-format-modal/number-format-modal.template.ts +0 -93
- package/src/new/main/edit-config/data-transforms-derived-fields/number-format-modal/number-format-modal.ts +0 -152
- package/src/new/main/edit-config/datasource-config/datasource-config-container.styles.ts +0 -22
- package/src/new/main/edit-config/datasource-config/datasource-config-item.styles.ts +0 -76
- package/src/new/main/edit-config/datasource-config/datasource-config-item.template.ts +0 -141
- package/src/new/main/edit-config/datasource-config/datasource-config-item.ts +0 -212
- package/src/new/main/edit-config/datasource-config/datasources-config-container.helpers.test.ts +0 -341
- package/src/new/main/edit-config/datasource-config/datasources-config-container.helpers.ts +0 -99
- package/src/new/main/edit-config/datasource-config/datasources-config-container.template.ts +0 -68
- package/src/new/main/edit-config/datasource-config/datasources-config-container.ts +0 -55
- package/src/new/main/edit-config/datasource-config/types.ts +0 -6
- package/src/new/main/edit-config/outputs-config/outputs-config.style.ts +0 -11
- package/src/new/main/edit-config/outputs-config/outputs-config.template.ts +0 -66
- package/src/new/main/edit-config/outputs-config/outputs-config.ts +0 -66
- package/src/new/main/edit-config/row-filters/row-filters-tutorial.styles.ts +0 -16
- package/src/new/main/edit-config/row-filters/row-filters-tutorial.template.ts +0 -229
- package/src/new/main/edit-config/row-filters/row-filters-tutorial.ts +0 -15
- package/src/new/main/edit-config/row-filters/row-filters.helpers.test.ts +0 -2
- package/src/new/main/edit-config/row-filters/row-filters.helpers.ts +0 -53
- package/src/new/main/edit-config/row-filters/row-filters.styles.ts +0 -23
- package/src/new/main/edit-config/row-filters/row-filters.template.ts +0 -15
- package/src/new/main/edit-config/row-filters/row-filters.ts +0 -58
- package/src/new/main/edit-config/row-filters/row-filters.types.ts +0 -14
- package/src/new/main/edit-config/scheduling/scheduling.styles.ts +0 -59
- package/src/new/main/edit-config/scheduling/scheduling.template.ts +0 -80
- package/src/new/main/edit-config/scheduling/scheduling.ts +0 -101
- package/src/new/main/edit-config/shared/datasource-data-base-component.helpers.ts.ts +0 -250
- package/src/new/main/edit-config/shared/datasource-data-base-component.test.ts +0 -568
- package/src/new/main/edit-config/shared/datasource-data-base-component.ts +0 -65
- package/src/new/main/edit-config/shared/datasource-data-base-component.types.ts +0 -55
- package/src/new/main/edit-config/shared/index.ts +0 -3
- package/src/new/main/edit-config/tabbed-datasource-container/index.ts +0 -2
- package/src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.styles.ts +0 -12
- package/src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.template.ts +0 -29
- package/src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.ts +0 -69
- package/src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.types.ts +0 -7
- package/src/new/main/generated-reports/generated-reports.styles.ts +0 -15
- package/src/new/main/generated-reports/generated-reports.template.ts +0 -29
- package/src/new/main/generated-reports/generated-reports.ts +0 -270
- package/src/new/main/index.ts +0 -3
- package/src/new/main/main.styles.ts +0 -31
- package/src/new/main/main.template.ts +0 -92
- package/src/new/main/main.ts +0 -117
- package/src/new/main/report-destinations/report-destinations.template.ts +0 -39
- package/src/new/main/report-destinations/report-destinations.ts +0 -63
- package/src/new/store/index.ts +0 -3
- package/src/new/store/slices/base-config.ts +0 -50
- package/src/new/store/slices/datasources-config.ts +0 -297
- package/src/new/store/slices/index.ts +0 -3
- package/src/new/store/slices/types.ts +0 -90
- package/src/new/store/store.ts +0 -36
- package/src/new/store/types.ts +0 -10
- package/src/new/styles/constraints.styles.ts +0 -32
- package/src/new/styles/forms.styles.ts +0 -38
- package/src/new/styles/index.ts +0 -3
- package/src/new/styles/misc.styles.ts +0 -25
- package/src/new/types/display.ts +0 -4
- package/src/new/types/index.ts +0 -4
- package/src/new/types/misc.ts +0 -73
- package/src/new/types/redux.ts +0 -73
- package/src/new/types/rights.ts +0 -28
- package/src/new/utils/alias-generator.test.ts +0 -44
- package/src/new/utils/alias-generator.ts +0 -18
- package/src/new/utils/date-filter-params.ts +0 -28
- package/src/new/utils/endpoint.test.ts +0 -193
- package/src/new/utils/endpoint.ts +0 -62
- package/src/new/utils/event-map.ts +0 -11
- package/src/new/utils/format-utils.ts +0 -22
- package/src/new/utils/formatters.ts +0 -36
- package/src/new/utils/index.ts +0 -10
- package/src/new/utils/notifications.ts +0 -9
- package/src/new/utils/renderer.ts +0 -38
- package/src/new/utils/rights.ts +0 -66
- package/src/new/utils/sorter.ts +0 -19
- package/src/new/utils/tooltip.ts +0 -94
- package/src/new/utils/transformers.test.ts +0 -549
- package/src/new/utils/transformers.ts +0 -174
- package/src/new/utils/validators.test.ts +0 -165
- package/src/new/utils/validators.ts +0 -81
- package/src/old/assets/images/index.ts +0 -69
- package/src/old/components/create-edit/create-edit.styles.ts +0 -16
- package/src/old/components/create-edit/create-edit.template.ts +0 -15
- package/src/old/components/create-edit/create-edit.ts +0 -70
- package/src/old/components/create-edit/index.ts +0 -3
- package/src/old/components/list/columns.ts +0 -175
- package/src/old/components/list/index.ts +0 -3
- package/src/old/components/list/list.styles.ts +0 -9
- package/src/old/components/list/list.template.ts +0 -40
- package/src/old/components/list/list.ts +0 -109
- package/src/old/components/preview/columns.ts +0 -58
- package/src/old/components/preview/index.ts +0 -3
- package/src/old/components/preview/preview.styles.ts +0 -22
- package/src/old/components/preview/preview.template.ts +0 -33
- package/src/old/components/preview/preview.ts +0 -143
- package/src/old/components/rapid-components.ts +0 -64
- package/src/old/components/renderers/custom-header-component.ts +0 -92
- package/src/old/components/renderers/filter-value-renderer.ts +0 -237
- package/src/old/components/renderers/row-select.renderer.ts +0 -148
- package/src/old/components/select-fields/columns.ts +0 -83
- package/src/old/components/select-fields/data.ts +0 -218
- package/src/old/components/select-fields/index.ts +0 -3
- package/src/old/components/select-fields/select-fields.styles.ts +0 -22
- package/src/old/components/select-fields/select-fields.template.ts +0 -58
- package/src/old/components/select-fields/select-fields.ts +0 -218
- package/src/old/components/select-filters/columns.ts +0 -78
- package/src/old/components/select-filters/index.ts +0 -3
- package/src/old/components/select-filters/select-filters.styles.ts +0 -21
- package/src/old/components/select-filters/select-filters.template.ts +0 -58
- package/src/old/components/select-filters/select-filters.ts +0 -255
- package/src/old/components/wizard/debug.ts +0 -35
- package/src/old/components/wizard/index.ts +0 -2
- package/src/old/components/wizard/steps/filters.ts +0 -13
- package/src/old/components/wizard/steps/index.ts +0 -4
- package/src/old/components/wizard/steps/name.ts +0 -72
- package/src/old/components/wizard/steps/run.ts +0 -14
- package/src/old/components/wizard/steps/select.ts +0 -14
- package/src/old/components/wizard/wizard.styles.ts +0 -198
- package/src/old/components/wizard/wizard.template.ts +0 -147
- package/src/old/components/wizard/wizard.ts +0 -398
- package/src/old/components/wizard/wizard.types.ts +0 -43
- package/src/old/components/zero-components.ts +0 -61
- package/src/old/config/config.ts +0 -59
- package/src/old/config/configure.ts +0 -66
- package/src/old/config/index.ts +0 -2
- package/src/old/config/templates.ts +0 -59
- package/src/old/constants/grid-config.ts +0 -19
- package/src/old/layouts/default.ts +0 -30
- package/src/old/layouts/index.ts +0 -2
- package/src/old/layouts/two-pane-horizontal.ts +0 -81
- package/src/old/main/index.ts +0 -3
- package/src/old/main/main.styles.ts +0 -69
- package/src/old/main/main.template.ts +0 -127
- package/src/old/main/main.test.ts +0 -7
- package/src/old/main/main.ts +0 -250
- package/src/old/main/types.ts +0 -29
- package/src/old/styles/colors.ts +0 -16
- package/src/old/styles/helpers.ts +0 -181
- package/src/old/styles/index.ts +0 -4
- package/src/old/styles/normalize.ts +0 -14
- package/src/old/styles/styles.ts +0 -24
- package/src/old/tags/index.ts +0 -1
- package/src/old/tags/tags.ts +0 -79
- package/src/old/tsconfig.json +0 -10
- package/src/old/utils/filterObjectArray.test.ts +0 -110
- package/src/old/utils/filterObjectArray.ts +0 -23
- package/src/old/utils/getFiltersByType.ts +0 -92
- package/src/old/utils/getSelectedFields.ts +0 -16
- package/src/old/utils/index.ts +0 -4
- package/src/old/utils/logger.ts +0 -3
- package/src/sandbox.ts +0 -51
- package/src/tsconfig.base.json +0 -24
- package/src/typings.d.ts +0 -1
- package/tsconfig.json +0 -9
package/src/old/main/main.ts
DELETED
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
import { Connect, DatasourceDefaults } from '@genesislcap/foundation-comms';
|
|
2
|
-
import type { Tabs } from '@genesislcap/foundation-ui';
|
|
3
|
-
import { customElement, GenesisElement, NavigationPhase, observable } from '@genesislcap/web-core';
|
|
4
|
-
import { List } from '../components/list';
|
|
5
|
-
import { ReportingConfig } from '../config/config';
|
|
6
|
-
import { MainStyles as styles } from './main.styles';
|
|
7
|
-
import { MainTemplate as template } from './main.template';
|
|
8
|
-
import { ReportingEventListeners, ReportNotification, Settings } from './types';
|
|
9
|
-
|
|
10
|
-
export namespace LegacyReporting {
|
|
11
|
-
/**
|
|
12
|
-
* FoundationReporting.
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Base MF export used by host application `configure` calls. It does not set up a design system or components. Both are
|
|
16
|
-
* expected to be registered in the host application, which should provide the details of which to the MF via
|
|
17
|
-
* TemplateOptions.
|
|
18
|
-
*
|
|
19
|
-
* See the configure hook for more information on how to set up and use this micro frontend in your application.
|
|
20
|
-
*
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
@customElement({
|
|
24
|
-
name: 'foundation-reporting-legacy',
|
|
25
|
-
template,
|
|
26
|
-
styles,
|
|
27
|
-
})
|
|
28
|
-
export class FoundationReporting extends GenesisElement {
|
|
29
|
-
@Connect connect!: Connect;
|
|
30
|
-
@observable fields: string[] = [];
|
|
31
|
-
@observable selectedRows = [];
|
|
32
|
-
@observable activeReport: any = {};
|
|
33
|
-
@observable notifications: ReportNotification[] = [];
|
|
34
|
-
@observable datasourceSettings;
|
|
35
|
-
@observable ready: boolean;
|
|
36
|
-
@ReportingConfig config!: ReportingConfig;
|
|
37
|
-
|
|
38
|
-
public listBox: HTMLElement;
|
|
39
|
-
public reportsGrid!: List;
|
|
40
|
-
public tabs: Tabs;
|
|
41
|
-
|
|
42
|
-
private firstReportRun = true;
|
|
43
|
-
public createEditTabId = 'create-edit-report';
|
|
44
|
-
|
|
45
|
-
async enter(phase: NavigationPhase<Settings>) {
|
|
46
|
-
this.datasourceSettings = {
|
|
47
|
-
maxRows: phase.route.settings?.maxRows ?? DatasourceDefaults.MAX_ROWS_250,
|
|
48
|
-
maxView: phase.route.settings?.maxView ?? DatasourceDefaults.MAX_VIEW_1000,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
async connectedCallback(): Promise<void> {
|
|
53
|
-
super.connectedCallback();
|
|
54
|
-
this.ready = true;
|
|
55
|
-
console.log('reporting config', this.config);
|
|
56
|
-
this.addEventListener(ReportingEventListeners.notify, this.handleNotifyEvent);
|
|
57
|
-
this.addEventListener(ReportingEventListeners.listReports, this.handleListReportsEvent);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
handleRowSelectionEvent = (e: CustomEvent) => {
|
|
61
|
-
this.selectedRows = e.detail.selectedRows();
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
private handleNotifyEvent = (e: CustomEvent) => {
|
|
65
|
-
this.notifications = [...this.notifications, e.detail];
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
private handleListReportsEvent = (e: CustomEvent) => {
|
|
69
|
-
this.setPageTab('list-reports');
|
|
70
|
-
this.clearActiveReport();
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
handleRunReportEvent = (e: CustomEvent) => {
|
|
74
|
-
this.run(e.detail);
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
handleEditReportEvent = (e: CustomEvent) => {
|
|
78
|
-
this.edit(e.detail);
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
private clearActiveReport() {
|
|
82
|
-
this.activeReport = {};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
public handleTabsChange({ detail }: CustomEvent) {
|
|
86
|
-
if (detail?.id === this.createEditTabId) {
|
|
87
|
-
this.clearActiveReport();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// TODO: use const for tab identifiers
|
|
92
|
-
public create() {
|
|
93
|
-
this.clearActiveReport();
|
|
94
|
-
this.setPageTab('create-edit-report');
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
public edit(rowData) {
|
|
98
|
-
this.activeReport = {
|
|
99
|
-
...rowData,
|
|
100
|
-
REPORT_COLUMNS: JSON.parse(rowData['REPORT_COLUMNS']),
|
|
101
|
-
};
|
|
102
|
-
this.setPageTab('create-edit-report');
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
public run(rowData) {
|
|
106
|
-
this.activeReport = {
|
|
107
|
-
...rowData,
|
|
108
|
-
REPORT_COLUMNS: JSON.parse(rowData['REPORT_COLUMNS']),
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
if (this.firstReportRun) {
|
|
112
|
-
setTimeout(() => {
|
|
113
|
-
this.setPageTab('run-report');
|
|
114
|
-
this.firstReportRun = false;
|
|
115
|
-
}, 100);
|
|
116
|
-
} else {
|
|
117
|
-
this.setPageTab('run-report');
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
public setPageTab(tab: string) {
|
|
122
|
-
this.tabs.activeid = tab;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
public async getFields(resourceName: string) {
|
|
126
|
-
const temp = await this.connect.getMetadata(resourceName);
|
|
127
|
-
for (let i = 0; i < temp.FIELD.length; i += 1) {
|
|
128
|
-
this.fields.push(temp.FIELD[i].NAME);
|
|
129
|
-
}
|
|
130
|
-
this.listBox.hidden = false;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
disconnectedCallback(): void {
|
|
134
|
-
this.reportsGrid.removeEventListener('rowSelectionEvent', this.handleRowSelectionEvent);
|
|
135
|
-
this.removeEventListener(ReportingEventListeners.notify, this.handleNotifyEvent);
|
|
136
|
-
this.removeEventListener(ReportingEventListeners.listReports, this.handleListReportsEvent);
|
|
137
|
-
this.reportsGrid.removeEventListener(
|
|
138
|
-
ReportingEventListeners.runReport,
|
|
139
|
-
this.handleRunReportEvent,
|
|
140
|
-
);
|
|
141
|
-
this.reportsGrid.removeEventListener(
|
|
142
|
-
ReportingEventListeners.editReport,
|
|
143
|
-
this.handleEditReportEvent,
|
|
144
|
-
);
|
|
145
|
-
super.disconnectedCallback();
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* RapidReporting.
|
|
151
|
-
*
|
|
152
|
-
* @remarks
|
|
153
|
-
* A rapid version that pre-registers rapid components and uses the rapid design system.
|
|
154
|
-
*
|
|
155
|
-
* @example
|
|
156
|
-
* ```ts
|
|
157
|
-
* import { RapidReporting } from '@genesislcap/pbc-reporting-ui';
|
|
158
|
-
* ...
|
|
159
|
-
* RapidReporting
|
|
160
|
-
* ```
|
|
161
|
-
*
|
|
162
|
-
* @example Load the micro frontend on-demand
|
|
163
|
-
* ```ts
|
|
164
|
-
|
|
165
|
-
* const { RapidReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
166
|
-
* return RapidReporting;
|
|
167
|
-
* },
|
|
168
|
-
* ```
|
|
169
|
-
*
|
|
170
|
-
* @public
|
|
171
|
-
*/
|
|
172
|
-
@customElement({
|
|
173
|
-
name: 'rapid-reporting-legacy',
|
|
174
|
-
template,
|
|
175
|
-
styles,
|
|
176
|
-
})
|
|
177
|
-
export class RapidReporting extends FoundationReporting {
|
|
178
|
-
/**
|
|
179
|
-
* @internal
|
|
180
|
-
*/
|
|
181
|
-
async connectedCallback() {
|
|
182
|
-
await this.loadRemotes();
|
|
183
|
-
await super.connectedCallback();
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* @internal
|
|
188
|
-
*/
|
|
189
|
-
protected async loadRemotes() {
|
|
190
|
-
const { registerCommonRapidComponents } = await import('../components/rapid-components');
|
|
191
|
-
await registerCommonRapidComponents();
|
|
192
|
-
this.ready = true;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* ZeroReporting.
|
|
198
|
-
*
|
|
199
|
-
* @remarks
|
|
200
|
-
* A zero version that pre-registers zero components and uses the zero design system.
|
|
201
|
-
*
|
|
202
|
-
* @example
|
|
203
|
-
* ```ts
|
|
204
|
-
* import { ZeroReporting } from '@genesislcap/pbc-reporting-ui';
|
|
205
|
-
* ...
|
|
206
|
-
* ZeroReporting
|
|
207
|
-
* ```
|
|
208
|
-
*
|
|
209
|
-
* @example Load the micro frontend on-demand
|
|
210
|
-
* ```ts
|
|
211
|
-
|
|
212
|
-
* const { ZeroReporting } = await import('@genesislcap/pbc-reporting-ui');
|
|
213
|
-
* return ZeroReporting;
|
|
214
|
-
* },
|
|
215
|
-
* ```
|
|
216
|
-
*
|
|
217
|
-
* @public
|
|
218
|
-
*/
|
|
219
|
-
@customElement({
|
|
220
|
-
name: 'zero-reporting-legacy',
|
|
221
|
-
template,
|
|
222
|
-
styles,
|
|
223
|
-
})
|
|
224
|
-
export class ZeroReporting extends FoundationReporting {
|
|
225
|
-
/**
|
|
226
|
-
* @internal
|
|
227
|
-
*/
|
|
228
|
-
async connectedCallback() {
|
|
229
|
-
await this.loadRemotes();
|
|
230
|
-
await super.connectedCallback();
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* @internal
|
|
235
|
-
*/
|
|
236
|
-
protected async loadRemotes() {
|
|
237
|
-
const { registerCommonZeroComponents } = await import('../components/zero-components');
|
|
238
|
-
await registerCommonZeroComponents();
|
|
239
|
-
this.ready = true;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* @privateRemarks
|
|
245
|
-
* Keeps backwards compatability with original export.
|
|
246
|
-
*
|
|
247
|
-
* @public
|
|
248
|
-
*/
|
|
249
|
-
export class Reporting extends ZeroReporting {}
|
|
250
|
-
}
|
package/src/old/main/types.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Renamed from `Notification` to avoid colliding with the DOM global `Notification`
|
|
15
|
-
* once rolled up into the package's public API surface.
|
|
16
|
-
*/
|
|
17
|
-
export type ReportNotification = {
|
|
18
|
-
type: string;
|
|
19
|
-
title: string;
|
|
20
|
-
message?: string;
|
|
21
|
-
autoClose?: boolean;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export enum ReportingEventListeners {
|
|
25
|
-
notify = 'notify',
|
|
26
|
-
listReports = 'listReports',
|
|
27
|
-
runReport = 'runReport',
|
|
28
|
-
editReport = 'editReport',
|
|
29
|
-
}
|
package/src/old/styles/colors.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export enum ColorHEX {
|
|
2
|
-
lightBlue = '#11c9fc',
|
|
3
|
-
lightBlue1 = '#47bce0',
|
|
4
|
-
blackPearl = '#111315',
|
|
5
|
-
dark = '#181A1f',
|
|
6
|
-
grey = '#2e3339',
|
|
7
|
-
darkGrey = '#1c2024',
|
|
8
|
-
darkGrey1 = '#292e30',
|
|
9
|
-
darkGrey2 = '#323739',
|
|
10
|
-
lightGrey = '#c9c9c9',
|
|
11
|
-
lightGrey1 = '#f1f1f1',
|
|
12
|
-
cyan = '#879ba6',
|
|
13
|
-
lightGreen = '#48e89b',
|
|
14
|
-
darkGreen = '#434e49',
|
|
15
|
-
orange = '#f96449',
|
|
16
|
-
}
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { css } from '@genesislcap/web-core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Helper classes
|
|
5
|
-
*/
|
|
6
|
-
export const helperStyles = css`
|
|
7
|
-
::-webkit-scrollbar {
|
|
8
|
-
width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
::-webkit-scrollbar-track {
|
|
12
|
-
background: var(--neutral-layer-1);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
::-webkit-scrollbar-thumb {
|
|
16
|
-
background: var(--neutral-fill-rest);
|
|
17
|
-
}
|
|
18
|
-
.text-center {
|
|
19
|
-
text-align: center;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.text-right {
|
|
23
|
-
text-align: right;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.text-left {
|
|
27
|
-
text-align: left;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.my-20 {
|
|
31
|
-
margin-top: calc(var(--design-unit) * 5px);
|
|
32
|
-
margin-bottom: calc(var(--design-unit) * 5px);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.h-full {
|
|
36
|
-
height: 100%;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.h-90pc {
|
|
40
|
-
height: 90%;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.w-full {
|
|
44
|
-
width: 100%;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.max-w-50pc {
|
|
48
|
-
max-width: 50%;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.max-w-360px {
|
|
52
|
-
max-width: 360px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.flex {
|
|
56
|
-
display: flex;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.flex-column {
|
|
60
|
-
flex-direction: column;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.flex-wrap {
|
|
64
|
-
flex-wrap: wrap;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.flex-grow {
|
|
68
|
-
flex-grow: 1;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.flex-column {
|
|
72
|
-
flex-direction: column;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.flex-1 {
|
|
76
|
-
flex: 1;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.space-between {
|
|
80
|
-
justify-content: space-between;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.flex-end {
|
|
84
|
-
justify-content: flex-end;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.items-center {
|
|
88
|
-
align-items: center;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.gap-1 {
|
|
92
|
-
gap: calc(var(--design-unit) * 4px);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.gap-2 {
|
|
96
|
-
gap: 2rem;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.gap-3 {
|
|
100
|
-
gap: 3rem;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.gap-4 {
|
|
104
|
-
gap: 4rem;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.mt-1 {
|
|
108
|
-
margin-top: calc(var(--design-unit) * 4px);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.mt-15px {
|
|
112
|
-
margin-top: calc(var(--design-unit) * 4px);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.mt-2 {
|
|
116
|
-
margin-top: 2rem;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.ml-5px {
|
|
120
|
-
margin-left: 5px;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.mr-5px {
|
|
124
|
-
margin-right: 5px;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.p-2 {
|
|
128
|
-
padding: 0.625rem;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.card {
|
|
132
|
-
padding: calc(var(--design-unit) * 4px);
|
|
133
|
-
width: 100%;
|
|
134
|
-
background-color: var(--neutral-layer-3);
|
|
135
|
-
border: none;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.overflow-auto {
|
|
139
|
-
overflow: auto;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.section-title {
|
|
143
|
-
font-size: var(--type-ramp-plus-4-font-size);
|
|
144
|
-
font-weight: 700;
|
|
145
|
-
line-height: normal;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.card-title {
|
|
149
|
-
color: var(--neutral-foreground-rest);
|
|
150
|
-
font-size: var(--type-ramp-base-font-size);
|
|
151
|
-
font-weight: 700;
|
|
152
|
-
line-height: normal;
|
|
153
|
-
margin-top: 0;
|
|
154
|
-
text-align: 'left';
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.step-title {
|
|
158
|
-
font-size: var(--type-ramp-base-font-size);
|
|
159
|
-
line-height: 22px;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.card-description {
|
|
163
|
-
color: var(--neutral-foreground-hint);
|
|
164
|
-
line-height: normal;
|
|
165
|
-
font-size: var(--type-ramp-base-font-size);
|
|
166
|
-
font-weight: 700;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.spacer-3 {
|
|
170
|
-
height: 1.3rem;
|
|
171
|
-
margin: calc(var(--design-unit) * 4px) 0 calc(var(--design-unit) * 4px);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.light-grey {
|
|
175
|
-
color: var(--neutral-foreground-rest);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.dark-grey {
|
|
179
|
-
color: var(--neutral-foreground-hint);
|
|
180
|
-
}
|
|
181
|
-
`;
|
package/src/old/styles/index.ts
DELETED
package/src/old/styles/styles.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { css } from '@genesislcap/web-core';
|
|
2
|
-
|
|
3
|
-
export const stylesCardHeading = css`
|
|
4
|
-
.heading {
|
|
5
|
-
background-color: var(--neutral-layer-1);
|
|
6
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
|
|
7
|
-
margin: -4px -16px 0 -16px;
|
|
8
|
-
padding: 8px 16px;
|
|
9
|
-
font-size: 20px;
|
|
10
|
-
font-weight: 700;
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
export const mixinScreen = (display: string = 'block') => `
|
|
15
|
-
contain: content;
|
|
16
|
-
display: ${display};
|
|
17
|
-
height: 100%;
|
|
18
|
-
width: 100%;
|
|
19
|
-
overflow-y: auto;
|
|
20
|
-
`;
|
|
21
|
-
|
|
22
|
-
export const mixinCardStyles = `
|
|
23
|
-
padding: 4px 16px 16px 16px;
|
|
24
|
-
`;
|
package/src/old/tags/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './tags';
|
package/src/old/tags/tags.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { tagFor } from '@genesislcap/foundation-ui';
|
|
2
|
-
import { DI } from '@genesislcap/web-core';
|
|
3
|
-
import { ReportingConfig } from '../config/config';
|
|
4
|
-
import { defaultTemplateOptions } from '../config/templates';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* It's important this file isn't referenced ahead of a `configure` call, otherwise these values may remain fixed at
|
|
8
|
-
* their defaults. Consumers must use the `/config` subpath to help avoid this. Files with references to tags should be
|
|
9
|
-
* lazily loaded. There is an alternative `getTags` utility at the end which could offer another approach, but direct
|
|
10
|
-
* tag exports and inline template references feel cleaner than having to convert all component `template` and `styles`
|
|
11
|
-
* exports to functions to call `getTags` on execution.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
export const { templateOptions = defaultTemplateOptions } =
|
|
18
|
-
DI.getOrCreateDOMContainer().get(ReportingConfig);
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
|
-
export const iconTag = tagFor(templateOptions.icon);
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
export const buttonTag = tagFor(templateOptions.button);
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
export const cardTag = tagFor(templateOptions.card);
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
|
-
export const tabsTag = tagFor(templateOptions.tabs);
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
|
-
export const tabTag = tagFor(templateOptions.tab);
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
47
|
-
export const tabPanelTag = tagFor(templateOptions.tabPanel);
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
|
-
export const textFieldTag = tagFor(templateOptions.textField);
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
|
-
export const textAreaTag = tagFor(templateOptions.textArea);
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
export const radioGroupTag = tagFor(templateOptions.radioGroup);
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
export const radioTag = tagFor(templateOptions.radio);
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
|
-
export const toastTag = tagFor(templateOptions.toast);
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
export const designSystemProviderTag = tagFor(templateOptions.designSystemProvider);
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
75
|
-
export const gridTag = tagFor(templateOptions.grid);
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
79
|
-
export const checkboxTag = tagFor(templateOptions.checkbox);
|
package/src/old/tsconfig.json
DELETED