@genesislcap/pbc-reconciliation-ui 0.0.46 → 14.339.1-alpha-d5fee56.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/.env +3 -0
- package/dist/dts/components/configurations-panel/configuration-datasources/configuration-datasources.d.ts.map +1 -1
- package/dist/dts/components/configurations-panel/configuration-datasources/configuration-datasources.template.d.ts.map +1 -1
- package/dist/dts/components/configurations-panel/configurations-panel.d.ts +2 -2
- package/dist/dts/components/configurations-panel/configurations-panel.d.ts.map +1 -1
- package/dist/dts/components/configurations-panel/configurations-panel.template.d.ts.map +1 -1
- package/dist/dts/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.d.ts.map +1 -1
- package/dist/dts/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.d.ts.map +1 -1
- package/dist/dts/components/data-dictionaries/columns.d.ts +2 -2
- package/dist/dts/components/data-dictionaries/columns.d.ts.map +1 -1
- package/dist/dts/components/data-dictionaries/data-dictionaries-utils.d.ts.map +1 -1
- package/dist/dts/components/data-dictionaries/data-dictionaries.d.ts +3 -6
- package/dist/dts/components/data-dictionaries/data-dictionaries.d.ts.map +1 -1
- package/dist/dts/components/data-dictionaries/data-dictionaries.template.d.ts +1 -1
- package/dist/dts/components/data-dictionaries/data-dictionaries.template.d.ts.map +1 -1
- package/dist/dts/components/data-dictionaries/data-dictionaries.types.d.ts +6 -0
- package/dist/dts/components/data-dictionaries/data-dictionaries.types.d.ts.map +1 -0
- package/dist/dts/components/list/list.d.ts.map +1 -1
- package/dist/dts/components/list/list.template.d.ts.map +1 -1
- package/dist/dts/components/rapid-components.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/columns.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.d.ts +3 -14
- package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.template.d.ts +1 -1
- package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.template.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.types.d.ts +13 -0
- package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.types.d.ts.map +1 -0
- package/dist/dts/components/reconciliations-panel/reconciliation-no-rows-overlay.d.ts +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliation-no-rows-overlay.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.d.ts +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.styles.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.template.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.utils.d.ts +1 -1
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.utils.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/result-details/result-details.d.ts +4 -33
- package/dist/dts/components/reconciliations-panel/result-details/result-details.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/result-details/result-details.template.d.ts +1 -1
- package/dist/dts/components/reconciliations-panel/result-details/result-details.template.d.ts.map +1 -1
- package/dist/dts/components/reconciliations-panel/result-details/result-details.types.d.ts +30 -0
- package/dist/dts/components/reconciliations-panel/result-details/result-details.types.d.ts.map +1 -0
- package/dist/dts/components/zero-components.d.ts.map +1 -1
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/config/configure.d.ts.map +1 -1
- package/dist/dts/config/templates.d.ts +2 -2
- package/dist/dts/config/templates.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +2 -2
- 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 +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/reconciliation.types.d.ts +13 -13
- package/dist/dts/reconciliation.types.d.ts.map +1 -1
- package/dist/dts/sandbox.d.ts +2 -2
- package/dist/dts/sandbox.d.ts.map +1 -1
- package/dist/dts/services/document.service.d.ts.map +1 -1
- package/dist/dts/services/reconciliation-configuration.service.d.ts.map +1 -1
- package/dist/dts/services/reconciliation.service.d.ts.map +1 -1
- package/dist/dts/utils/delete-row-action-cell-renderer.d.ts.map +1 -1
- package/dist/dts/utils/endpoint.d.ts.map +1 -1
- package/dist/dts/utils/eventDetail.d.ts.map +1 -1
- package/dist/dts/utils/format-date.d.ts.map +1 -1
- package/dist/dts/utils/humanize.d.ts.map +1 -1
- package/dist/dts/utils/isEmpty.d.ts.map +1 -1
- package/dist/dts/utils/notification.d.ts.map +1 -1
- package/dist/esm/components/configurations-panel/configuration-datasources/configuration-datasources.js +3 -3
- package/dist/esm/components/configurations-panel/configuration-datasources/configuration-datasources.js.map +1 -1
- package/dist/esm/components/configurations-panel/configuration-datasources/configuration-datasources.styles.js +4 -4
- package/dist/esm/components/configurations-panel/configuration-datasources/configuration-datasources.styles.js.map +1 -1
- package/dist/esm/components/configurations-panel/configuration-datasources/configuration-datasources.template.js +1 -1
- package/dist/esm/components/configurations-panel/configuration-datasources/configuration-datasources.template.js.map +1 -1
- package/dist/esm/components/configurations-panel/configurations-panel.js +15 -11
- package/dist/esm/components/configurations-panel/configurations-panel.js.map +1 -1
- package/dist/esm/components/configurations-panel/configurations-panel.styles.js +346 -346
- package/dist/esm/components/configurations-panel/configurations-panel.styles.js.map +1 -1
- package/dist/esm/components/configurations-panel/configurations-panel.template.js +276 -278
- package/dist/esm/components/configurations-panel/configurations-panel.template.js.map +1 -1
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.js +3 -3
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.js.map +1 -1
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.styles.js +1 -1
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.js +1 -1
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.js.map +1 -1
- package/dist/esm/components/data-dictionaries/columns.js +4 -4
- package/dist/esm/components/data-dictionaries/data-dictionaries-utils.js.map +1 -1
- package/dist/esm/components/data-dictionaries/data-dictionaries.js +7 -11
- package/dist/esm/components/data-dictionaries/data-dictionaries.js.map +1 -1
- package/dist/esm/components/data-dictionaries/data-dictionaries.styles.js +1 -1
- package/dist/esm/components/data-dictionaries/data-dictionaries.template.js +3 -3
- package/dist/esm/components/data-dictionaries/data-dictionaries.template.js.map +1 -1
- package/dist/esm/components/data-dictionaries/data-dictionaries.types.js +7 -0
- package/dist/esm/components/data-dictionaries/data-dictionaries.types.js.map +1 -0
- package/dist/esm/components/list/list.js +1 -1
- package/dist/esm/components/list/list.js.map +1 -1
- package/dist/esm/components/list/list.template.js.map +1 -1
- package/dist/esm/components/rapid-components.js +1 -2
- package/dist/esm/components/rapid-components.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/columns.js +9 -15
- package/dist/esm/components/reconciliations-panel/columns.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.js +8 -21
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.styles.js +7 -7
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.template.js +9 -12
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.template.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.types.js +16 -0
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.types.js.map +1 -0
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.js +40 -32
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.styles.js +300 -301
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.styles.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.template.js +335 -331
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.template.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.utils.js +9 -9
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.utils.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/result-details/result-details.js +24 -43
- package/dist/esm/components/reconciliations-panel/result-details/result-details.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/result-details/result-details.template.js +7 -7
- package/dist/esm/components/reconciliations-panel/result-details/result-details.template.js.map +1 -1
- package/dist/esm/components/reconciliations-panel/result-details/result-details.types.js +17 -0
- package/dist/esm/components/reconciliations-panel/result-details/result-details.types.js.map +1 -0
- package/dist/esm/components/zero-components.js +2 -3
- package/dist/esm/components/zero-components.js.map +1 -1
- package/dist/esm/config/config.js.map +1 -1
- package/dist/esm/config/configure.js +1 -1
- package/dist/esm/config/configure.js.map +1 -1
- package/dist/esm/config/templates.js +1 -1
- package/dist/esm/main/main.js +4 -4
- package/dist/esm/main/main.js.map +1 -1
- package/dist/esm/main/main.styles.js +1 -0
- package/dist/esm/main/main.styles.js.map +1 -1
- package/dist/esm/main/main.template.js +8 -7
- package/dist/esm/main/main.template.js.map +1 -1
- package/dist/esm/sandbox.js +15 -8
- package/dist/esm/sandbox.js.map +1 -1
- package/dist/esm/services/data-dictionary.service.js +6 -6
- package/dist/esm/services/data-dictionary.service.js.map +1 -1
- package/dist/esm/services/document.service.js +3 -4
- package/dist/esm/services/document.service.js.map +1 -1
- package/dist/esm/services/reconciliation-configuration.service.js +3 -1
- package/dist/esm/services/reconciliation-configuration.service.js.map +1 -1
- package/dist/esm/services/reconciliation.service.js +8 -5
- package/dist/esm/services/reconciliation.service.js.map +1 -1
- package/dist/esm/utils/delete-row-action-cell-renderer.js +1 -3
- package/dist/esm/utils/delete-row-action-cell-renderer.js.map +1 -1
- package/dist/esm/utils/endpoint.js.map +1 -1
- package/dist/esm/utils/humanize.js.map +1 -1
- package/dist/esm/utils/icons.js +1 -1
- package/dist/esm/utils/isEmpty.js.map +1 -1
- package/dist/esm/utils/notification.js +1 -1
- package/dist/esm/utils/notification.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/license.txt +46 -0
- package/package.json +31 -30
- package/src/components/configurations-panel/configuration-datasources/configuration-datasources.styles.ts +72 -0
- package/src/components/configurations-panel/configuration-datasources/configuration-datasources.template.ts +73 -0
- package/src/components/configurations-panel/configuration-datasources/configuration-datasources.ts +64 -0
- package/src/components/configurations-panel/configurations-panel.styles.ts +363 -0
- package/src/components/configurations-panel/configurations-panel.template.ts +356 -0
- package/src/components/configurations-panel/configurations-panel.ts +387 -0
- package/src/components/configurations-panel/recon-rules-columns.ts +117 -0
- package/src/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.styles.ts +73 -0
- package/src/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.ts +122 -0
- package/src/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.ts +202 -0
- package/src/components/data-dictionaries/columns.ts +42 -0
- package/src/components/data-dictionaries/data-dictionaries-utils.ts +40 -0
- package/src/components/data-dictionaries/data-dictionaries.styles.ts +92 -0
- package/src/components/data-dictionaries/data-dictionaries.template.ts +78 -0
- package/src/components/data-dictionaries/data-dictionaries.ts +236 -0
- package/src/components/data-dictionaries/data-dictionaries.types.ts +5 -0
- package/src/components/list/list.styles.ts +88 -0
- package/src/components/list/list.template.ts +36 -0
- package/src/components/list/list.ts +33 -0
- package/src/components/rapid-components.ts +69 -0
- package/src/components/reconciliations-panel/columns.ts +74 -0
- package/src/components/reconciliations-panel/input-parameter/input-parameter.styles.ts +104 -0
- package/src/components/reconciliations-panel/input-parameter/input-parameter.template.ts +93 -0
- package/src/components/reconciliations-panel/input-parameter/input-parameter.ts +131 -0
- package/src/components/reconciliations-panel/input-parameter/input-parameter.types.ts +14 -0
- package/src/components/reconciliations-panel/reconciliation-no-rows-overlay.ts +18 -0
- package/src/components/reconciliations-panel/reconciliations-panel.styles.ts +328 -0
- package/src/components/reconciliations-panel/reconciliations-panel.template.ts +432 -0
- package/src/components/reconciliations-panel/reconciliations-panel.ts +441 -0
- package/src/components/reconciliations-panel/reconciliations-panel.utils.ts +103 -0
- package/src/components/reconciliations-panel/result-details/result-details.styles.ts +108 -0
- package/src/components/reconciliations-panel/result-details/result-details.template.ts +88 -0
- package/src/components/reconciliations-panel/result-details/result-details.ts +200 -0
- package/src/components/reconciliations-panel/result-details/result-details.types.ts +30 -0
- package/src/components/zero-components.ts +61 -0
- package/src/config/config.ts +49 -0
- package/src/config/configure.ts +72 -0
- package/src/config/index.ts +2 -0
- package/src/config/templates.ts +80 -0
- package/src/globals.d.ts +7 -0
- package/src/index.federated.ts +1 -0
- package/src/index.ts +3 -0
- package/src/main/index.ts +3 -0
- package/src/main/main.styles.ts +33 -0
- package/src/main/main.template.ts +65 -0
- package/src/main/main.ts +153 -0
- package/src/reconciliation.types.ts +170 -0
- package/src/sandbox.ts +40 -0
- package/src/services/data-dictionary.service.ts +64 -0
- package/src/services/document.service.ts +72 -0
- package/src/services/reconciliation-configuration.service.ts +105 -0
- package/src/services/reconciliation.service.ts +120 -0
- package/src/styles/scrollbar.styles.ts +15 -0
- package/src/tags/index.ts +1 -0
- package/src/tags/tags.ts +143 -0
- package/src/typings.d.ts +1 -0
- package/src/utils/delete-row-action-cell-renderer.ts +71 -0
- package/src/utils/endpoint.ts +15 -0
- package/src/utils/eventDetail.ts +5 -0
- package/src/utils/format-date.ts +9 -0
- package/src/utils/humanize.ts +14 -0
- package/src/utils/icons.ts +24 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/isEmpty.ts +2 -0
- package/src/utils/logger.ts +3 -0
- package/src/utils/notification.ts +35 -0
- package/tsconfig.json +45 -0
- package/Dockerfile +0 -12
- package/docs/images/lsp_jetbrains_one.png +0 -0
- package/docs/images/lsp_jetbrains_two.png +0 -0
- package/docs/images/lsp_vscode_one.png +0 -0
- package/docs/images/lsp_vscode_two.png +0 -0
- package/playwright.config.ts +0 -1
- package/test/README.md +0 -3
- package/test/e2e/fixture.ts +0 -25
- package/test/e2e/flows/001-protected.e2e.ts +0 -6
- package/test/e2e/index.ts +0 -2
- package/test/e2e/pages/index.ts +0 -1
- package/test/e2e/pages/protected.ts +0 -16
- package/test/unit/mock/services/data-dictionary-service-mock.ts +0 -15
- package/test/unit/mock/services/reconciliation-configuration-service-mock.ts +0 -26
- package/test/unit/mock/services/reconciliation-service-mock.ts +0 -11
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
import { GridProGenesisDatasource } from '@genesislcap/rapid-grid-pro';
|
|
2
|
+
import { GenesisElement, Tabs, customElement, html, observable } from '@genesislcap/web-core';
|
|
3
|
+
import {
|
|
4
|
+
DatasourceConfiguration,
|
|
5
|
+
CRITERIA_NO_ROWS,
|
|
6
|
+
Reconciliation,
|
|
7
|
+
ReconciliationInsert,
|
|
8
|
+
ReconciliationStatus,
|
|
9
|
+
DatasourceType,
|
|
10
|
+
MessageType,
|
|
11
|
+
} from '../../reconciliation.types';
|
|
12
|
+
import { ReconciliationConfigurationService } from '../../services/reconciliation-configuration.service';
|
|
13
|
+
import { ReconciliationService } from '../../services/reconciliation.service';
|
|
14
|
+
import { getFormattedDate } from '../../utils';
|
|
15
|
+
import { showNotificationError } from '../../utils/notification';
|
|
16
|
+
import { RECONCILIATION_COLUMNS } from './columns';
|
|
17
|
+
import { ReconciliationNoRowsOverlay } from './reconciliation-no-rows-overlay';
|
|
18
|
+
import { ReconciliationsPanelStyles } from './reconciliations-panel.styles';
|
|
19
|
+
import { ReconciliationsPanelTemplate } from './reconciliations-panel.template';
|
|
20
|
+
import {
|
|
21
|
+
getDatasourcePairResultCriteria,
|
|
22
|
+
createInputParameters,
|
|
23
|
+
getStatusIcon,
|
|
24
|
+
createDatasourcePairItemsOptions,
|
|
25
|
+
ReconciliationsTab,
|
|
26
|
+
ReconciliationOperation,
|
|
27
|
+
} from './reconciliations-panel.utils';
|
|
28
|
+
import { ResultDetails } from './result-details/result-details';
|
|
29
|
+
|
|
30
|
+
@customElement({
|
|
31
|
+
name: 'reconciliations-panel',
|
|
32
|
+
template: ReconciliationsPanelTemplate,
|
|
33
|
+
styles: ReconciliationsPanelStyles,
|
|
34
|
+
})
|
|
35
|
+
export class ReconciliationsPanel extends GenesisElement {
|
|
36
|
+
@ReconciliationConfigurationService
|
|
37
|
+
reconciliationConfigurationService: ReconciliationConfigurationService;
|
|
38
|
+
@ReconciliationService reconciliationService: ReconciliationService;
|
|
39
|
+
|
|
40
|
+
@observable toggleTodaysReconciliations: boolean = true;
|
|
41
|
+
@observable togglePreviousReconciliations: boolean = true;
|
|
42
|
+
@observable reconciliationsInProgress: Array<Reconciliation> = [];
|
|
43
|
+
@observable historicalReconciliationsToday: Array<Reconciliation> = [];
|
|
44
|
+
@observable historicalReconciliationsTodayFiltered: Array<Reconciliation> = [];
|
|
45
|
+
@observable historicalReconciliationsPrevious: Array<Reconciliation> = [];
|
|
46
|
+
@observable historicalReconciliationsPreviousFiltered: Array<Reconciliation> = [];
|
|
47
|
+
|
|
48
|
+
@observable datasourceConfigurations: Array<DatasourceConfiguration> = [];
|
|
49
|
+
@observable reconciliationConfigurations: any = [];
|
|
50
|
+
@observable reconciliationConfiguration: string = null;
|
|
51
|
+
|
|
52
|
+
@observable reconciliationName: string = null;
|
|
53
|
+
|
|
54
|
+
@observable reconciliation: any = null;
|
|
55
|
+
|
|
56
|
+
private generatedReconciliationId: string = null;
|
|
57
|
+
|
|
58
|
+
@observable lockInputParameters = false;
|
|
59
|
+
@observable runReconciliationButtonDisable: boolean = true;
|
|
60
|
+
|
|
61
|
+
@observable matchedTabCriteria: string = CRITERIA_NO_ROWS;
|
|
62
|
+
@observable breaksTabCriteria: string = CRITERIA_NO_ROWS;
|
|
63
|
+
|
|
64
|
+
@observable filterType: string = 'Name';
|
|
65
|
+
@observable textFilter: string = '';
|
|
66
|
+
@observable dateFilter: string = '';
|
|
67
|
+
|
|
68
|
+
@observable files: Map<string, any> = new Map();
|
|
69
|
+
|
|
70
|
+
reconciliationSubscription: any;
|
|
71
|
+
|
|
72
|
+
resultDetails: ResultDetails;
|
|
73
|
+
|
|
74
|
+
@observable allBreaksDatasource: GridProGenesisDatasource;
|
|
75
|
+
@observable allMatchedDatasource: GridProGenesisDatasource;
|
|
76
|
+
|
|
77
|
+
@observable selectedTab: ReconciliationsTab = ReconciliationsTab.ALL_BREAKS;
|
|
78
|
+
|
|
79
|
+
@observable datasourcePairs: Map<string, any> = new Map();
|
|
80
|
+
@observable viewDatasourcePairValue: string = null;
|
|
81
|
+
@observable datasourcePairsItemsOptions = html``;
|
|
82
|
+
|
|
83
|
+
tabs: Tabs;
|
|
84
|
+
|
|
85
|
+
async connectedCallback() {
|
|
86
|
+
super.connectedCallback();
|
|
87
|
+
this.getReconciliations();
|
|
88
|
+
await this.setReconciliationConfigurations();
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public async setReconciliationConfigurations() {
|
|
92
|
+
this.reconciliationConfigurations =
|
|
93
|
+
await this.reconciliationConfigurationService.getReconciliationConfigurations();
|
|
94
|
+
this.reconciliationConfiguration =
|
|
95
|
+
this.reconciliationConfigurations[0]?.RECONCILIATION_CONFIG_ID;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
disconnectedCallback() {
|
|
99
|
+
super.disconnectedCallback();
|
|
100
|
+
this.reconciliationSubscription.unsubscribe();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
async reconciliationConfigurationChanged(oldValue, newValue) {
|
|
104
|
+
if (!oldValue || !newValue) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (!this.reconciliationConfiguration) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const nameExist =
|
|
113
|
+
this.reconciliationConfigurations.filter((x) => x.NAME === this.reconciliationName).length >
|
|
114
|
+
0;
|
|
115
|
+
|
|
116
|
+
if (nameExist) {
|
|
117
|
+
this.reconciliationName = this.reconciliationConfigurations.filter(
|
|
118
|
+
(x) => x.RECONCILIATION_CONFIG_ID === this.reconciliationConfiguration,
|
|
119
|
+
)[0].NAME;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (!this.reconciliation?.RECONCILIATION_ID) {
|
|
123
|
+
await this.clearFields();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
getReconciliations() {
|
|
128
|
+
this.reconciliationSubscription = this.reconciliationService
|
|
129
|
+
.getReconciliations()
|
|
130
|
+
.subscribe(async (reconciliations) => {
|
|
131
|
+
this.filterAndSortReconciliations(reconciliations);
|
|
132
|
+
|
|
133
|
+
// 1
|
|
134
|
+
if (this.generatedReconciliationId) {
|
|
135
|
+
const generatedReconciliation = reconciliations.find(
|
|
136
|
+
(reconciliation) => reconciliation.RECONCILIATION_ID == this.generatedReconciliationId,
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
this.reconciliation = { ...generatedReconciliation };
|
|
140
|
+
|
|
141
|
+
if (generatedReconciliation.STATUS !== ReconciliationStatus.IN_PROGRESS) {
|
|
142
|
+
await this.reloadView(generatedReconciliation);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
this.generatedReconciliationId = null;
|
|
146
|
+
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// 2
|
|
151
|
+
if (this.reconciliation?.RECONCILIATION_ID) {
|
|
152
|
+
const selectedReconciliationModified = reconciliations.find(
|
|
153
|
+
(reconciliation) =>
|
|
154
|
+
reconciliation.RECONCILIATION_ID == this.reconciliation.RECONCILIATION_ID,
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
if (selectedReconciliationModified) {
|
|
158
|
+
if (
|
|
159
|
+
this.reconciliation.STATUS == ReconciliationStatus.IN_PROGRESS &&
|
|
160
|
+
selectedReconciliationModified.STATUS !== ReconciliationStatus.IN_PROGRESS
|
|
161
|
+
) {
|
|
162
|
+
await this.reloadView(selectedReconciliationModified);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
async reloadView(reconciliation) {
|
|
172
|
+
this.reconciliation = { ...reconciliation };
|
|
173
|
+
await this.getDatasourcePairs(reconciliation.RECONCILIATION_ID);
|
|
174
|
+
this.populateDatasourcePairItemsOptions();
|
|
175
|
+
this.changeViewSelect();
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
filterAndSortReconciliations(reconciliations) {
|
|
179
|
+
const inProgress: Array<Reconciliation> = [];
|
|
180
|
+
const remainingStatuses: Array<Reconciliation> = [];
|
|
181
|
+
|
|
182
|
+
reconciliations.forEach((record) => {
|
|
183
|
+
if (record.STATUS === ReconciliationStatus.IN_PROGRESS) {
|
|
184
|
+
inProgress.push(record);
|
|
185
|
+
} else {
|
|
186
|
+
remainingStatuses.push(record);
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
inProgress.sort((a, b) => b.DATETIME - a.DATETIME);
|
|
191
|
+
this.reconciliationsInProgress = inProgress;
|
|
192
|
+
this.filterHistoricalReconciliations(remainingStatuses);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
filterHistoricalReconciliations(remainingStatuses: Array<Reconciliation>) {
|
|
196
|
+
const todayRecords: Array<Reconciliation> = [];
|
|
197
|
+
const previousDayRecords: Array<Reconciliation> = [];
|
|
198
|
+
remainingStatuses.sort((a, b) => b.DATETIME - a.DATETIME);
|
|
199
|
+
const today = new Date();
|
|
200
|
+
today.setHours(0, 0, 0, 0);
|
|
201
|
+
const todayTimestamp = today.getTime();
|
|
202
|
+
remainingStatuses.forEach((record) => {
|
|
203
|
+
const { iconName, iconClass } = getStatusIcon(record.STATUS);
|
|
204
|
+
|
|
205
|
+
if (record.DATETIME <= todayTimestamp) {
|
|
206
|
+
previousDayRecords.push({ ...record, iconName, iconClass });
|
|
207
|
+
} else {
|
|
208
|
+
todayRecords.push({ ...record, iconName, iconClass });
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
this.historicalReconciliationsToday = todayRecords;
|
|
212
|
+
this.historicalReconciliationsTodayFiltered = todayRecords;
|
|
213
|
+
this.historicalReconciliationsPrevious = previousDayRecords;
|
|
214
|
+
this.historicalReconciliationsPreviousFiltered = previousDayRecords;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
filterTypeChanged() {
|
|
218
|
+
this.toggleTodaysReconciliations = this.filterType === 'Name';
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
async selectReconciliation(reconciliation: Reconciliation) {
|
|
222
|
+
this.reconciliation = reconciliation;
|
|
223
|
+
this.reconciliationName = reconciliation.RECONCILIATION_NAME;
|
|
224
|
+
|
|
225
|
+
const inputParameters = JSON.parse(reconciliation.INPUT_PARAMETERS);
|
|
226
|
+
this.files = new Map(Object.entries(inputParameters));
|
|
227
|
+
|
|
228
|
+
this.datasourceConfigurations = Object.keys(inputParameters).map((key) => ({
|
|
229
|
+
NAME: key,
|
|
230
|
+
RECONCILIATION_CONFIG_ID: reconciliation.RECONCILIATION_CONFIG_ID,
|
|
231
|
+
INPUT_PARAMETER: {
|
|
232
|
+
FILE_STORAGE_ID: inputParameters[key].FILE_STORAGE_ID,
|
|
233
|
+
FILE_NAME: inputParameters[key].FILE_NAME,
|
|
234
|
+
},
|
|
235
|
+
TYPE: inputParameters[key].TYPE,
|
|
236
|
+
}));
|
|
237
|
+
|
|
238
|
+
this.reconciliationConfiguration = reconciliation.RECONCILIATION_CONFIG_ID;
|
|
239
|
+
this.runReconciliationButtonDisable =
|
|
240
|
+
this.reconciliation.STATUS !== ReconciliationStatus.CANCELLED;
|
|
241
|
+
this.lockInputParameters = this.reconciliation.STATUS !== ReconciliationStatus.CANCELLED;
|
|
242
|
+
await this.getDatasourcePairs(this.reconciliation.RECONCILIATION_ID);
|
|
243
|
+
this.reloadGridsAndCriterias();
|
|
244
|
+
this.tabs.activeid = ReconciliationsTab.ALL_BREAKS.toString();
|
|
245
|
+
this.reconciliationsTabChanged(ReconciliationsTab.ALL_BREAKS);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
async newReconciliation() {
|
|
249
|
+
this.lockInputParameters = false;
|
|
250
|
+
this.reconciliationName = this.reconciliationConfigurations[0].NAME;
|
|
251
|
+
this.reconciliationConfiguration =
|
|
252
|
+
this.reconciliationConfigurations[0].RECONCILIATION_CONFIG_ID;
|
|
253
|
+
this.matchedTabCriteria = CRITERIA_NO_ROWS;
|
|
254
|
+
this.breaksTabCriteria = CRITERIA_NO_ROWS;
|
|
255
|
+
this.reconciliation = {};
|
|
256
|
+
await this.clearFields();
|
|
257
|
+
this.filterType = 'Name';
|
|
258
|
+
this.viewDatasourcePairValue = null;
|
|
259
|
+
this.tabs.activeid = ReconciliationsTab.ALL_BREAKS.toString();
|
|
260
|
+
this.reloadDatasource(this.allBreaksDatasource, ReconciliationOperation.NEW);
|
|
261
|
+
this.reloadDatasource(this.allMatchedDatasource, ReconciliationOperation.NEW);
|
|
262
|
+
this.clearFilters();
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
async runReconciliation() {
|
|
266
|
+
const reconciliationInsert: ReconciliationInsert = {
|
|
267
|
+
RECONCILIATION_NAME: this.reconciliationName,
|
|
268
|
+
RECONCILIATION_CONFIG_ID: this.reconciliationConfiguration,
|
|
269
|
+
INPUT_PARAMETERS: createInputParameters(this.datasourceConfigurations, this.files),
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
const response = await this.reconciliationService.runReconciliation(reconciliationInsert);
|
|
273
|
+
|
|
274
|
+
if (response.MESSAGE_TYPE === MessageType.EVENT_ACK) {
|
|
275
|
+
this.lockInputParameters = true;
|
|
276
|
+
this.generatedReconciliationId = response.GENERATED[0].RECONCILIATION_ID;
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
showNotificationError(response.ERROR);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
downloadReconciliationReport() {}
|
|
284
|
+
|
|
285
|
+
fileUploaded(datasourceNameAndFileInfo) {
|
|
286
|
+
this.files.set(
|
|
287
|
+
datasourceNameAndFileInfo.DATASOURCE_CONFIG_NAME,
|
|
288
|
+
datasourceNameAndFileInfo.FILE_INFO,
|
|
289
|
+
);
|
|
290
|
+
const onlyTypeFileDatasourceConfigurations = this.datasourceConfigurations.filter(
|
|
291
|
+
(datasourceConfiguration) => datasourceConfiguration.TYPE === DatasourceType.FILE,
|
|
292
|
+
);
|
|
293
|
+
this.runReconciliationButtonDisable =
|
|
294
|
+
onlyTypeFileDatasourceConfigurations.length !== this.files.size;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
async clearFields() {
|
|
298
|
+
this.datasourceConfigurations = [];
|
|
299
|
+
this.datasourceConfigurations =
|
|
300
|
+
await this.reconciliationConfigurationService.getReconciliationDatasourceConfiguration(
|
|
301
|
+
this.reconciliationConfiguration,
|
|
302
|
+
);
|
|
303
|
+
this.datasourcePairs = new Map();
|
|
304
|
+
this.files = new Map();
|
|
305
|
+
|
|
306
|
+
const allConfigurationsArePipelines = this.datasourceConfigurations.every(
|
|
307
|
+
(configuration) => configuration.TYPE === DatasourceType.PIPELINE,
|
|
308
|
+
);
|
|
309
|
+
|
|
310
|
+
this.runReconciliationButtonDisable = !allConfigurationsArePipelines;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
async stopReconciliation(evt: CustomEvent, reconciliationId: string) {
|
|
314
|
+
evt.stopPropagation();
|
|
315
|
+
|
|
316
|
+
const response = await this.reconciliationService.stopReconciliation(reconciliationId);
|
|
317
|
+
|
|
318
|
+
if (response.MESSAGE_TYPE === MessageType.EVENT_ACK) {
|
|
319
|
+
this.lockInputParameters = false;
|
|
320
|
+
this.runReconciliationButtonDisable = false;
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
showNotificationError(response.ERROR);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
openResultDetails(params) {
|
|
328
|
+
this.resultDetails.open(
|
|
329
|
+
params.data.RECONCILIATION_RECORD_RESULT_ID,
|
|
330
|
+
this.datasourceConfigurations,
|
|
331
|
+
{
|
|
332
|
+
USER_NAME: params.data.USER_NAME,
|
|
333
|
+
TEXT: params.data.TEXT,
|
|
334
|
+
TIMESTAMP: params.data.DATETIME,
|
|
335
|
+
},
|
|
336
|
+
);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
clearFilters() {
|
|
340
|
+
this.textFilter = '';
|
|
341
|
+
this.dateFilter = '';
|
|
342
|
+
this.historicalReconciliationsPreviousFiltered = this.historicalReconciliationsPrevious;
|
|
343
|
+
this.historicalReconciliationsTodayFiltered = this.historicalReconciliationsToday;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
filterByName(evt) {
|
|
347
|
+
evt.preventDefault();
|
|
348
|
+
evt.stopPropagation();
|
|
349
|
+
const { value } = evt.target;
|
|
350
|
+
|
|
351
|
+
if (value.length > 0) {
|
|
352
|
+
this.historicalReconciliationsPreviousFiltered =
|
|
353
|
+
this.historicalReconciliationsPrevious.filter((record) =>
|
|
354
|
+
record.RECONCILIATION_NAME.toLowerCase().includes(value.toLowerCase()),
|
|
355
|
+
);
|
|
356
|
+
this.historicalReconciliationsTodayFiltered = this.historicalReconciliationsToday.filter(
|
|
357
|
+
(record) => record.RECONCILIATION_NAME.toLowerCase().includes(value.toLowerCase()),
|
|
358
|
+
);
|
|
359
|
+
} else {
|
|
360
|
+
this.historicalReconciliationsPreviousFiltered = this.historicalReconciliationsPrevious;
|
|
361
|
+
this.historicalReconciliationsTodayFiltered = this.historicalReconciliationsToday;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
filterByDate(evt) {
|
|
366
|
+
evt.preventDefault();
|
|
367
|
+
evt.stopPropagation();
|
|
368
|
+
const { value } = evt.target;
|
|
369
|
+
const formattedDate = getFormattedDate(value);
|
|
370
|
+
|
|
371
|
+
this.historicalReconciliationsPreviousFiltered = this.historicalReconciliationsPrevious.filter(
|
|
372
|
+
(record) => getFormattedDate(record.DATETIME) === formattedDate,
|
|
373
|
+
);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
reloadDatasource(datasource: GridProGenesisDatasource, operation: ReconciliationOperation) {
|
|
377
|
+
if (!datasource) {
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
datasource.deferredGridOptions = {
|
|
382
|
+
noRowsOverlayComponent:
|
|
383
|
+
operation === ReconciliationOperation.NEW ? ReconciliationNoRowsOverlay : null,
|
|
384
|
+
onCellDoubleClicked: (params) => this.openResultDetails(params),
|
|
385
|
+
columnDefs: RECONCILIATION_COLUMNS(this.datasourcePairs.get(this.viewDatasourcePairValue)),
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
datasource.restart();
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
reconciliationsTabChanged(reconciliationsTab: ReconciliationsTab) {
|
|
392
|
+
this.selectedTab = reconciliationsTab;
|
|
393
|
+
this.populateDatasourcePairItemsOptions();
|
|
394
|
+
this.changeViewSelect();
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
async changeViewSelect() {
|
|
398
|
+
this.reloadGridsAndCriterias();
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
populateDatasourcePairItemsOptions() {
|
|
402
|
+
this.datasourcePairsItemsOptions = createDatasourcePairItemsOptions(
|
|
403
|
+
this.datasourcePairs,
|
|
404
|
+
this.reconciliation.STATUS,
|
|
405
|
+
);
|
|
406
|
+
|
|
407
|
+
const firstDatasourcePair = this.datasourcePairs.values().next().value;
|
|
408
|
+
|
|
409
|
+
this.viewDatasourcePairValue =
|
|
410
|
+
this.datasourcePairs.size > 0
|
|
411
|
+
? `${firstDatasourcePair.FIRST_DATA_SOURCE_NAME}${firstDatasourcePair.SECOND_DATA_SOURCE_NAME}`
|
|
412
|
+
: null;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
async getDatasourcePairs(reconciliationId) {
|
|
416
|
+
this.datasourcePairs =
|
|
417
|
+
await this.reconciliationService.getReconciliationDatasourcePairs(reconciliationId);
|
|
418
|
+
|
|
419
|
+
const firstDatasourcePair = this.datasourcePairs.values().next().value;
|
|
420
|
+
|
|
421
|
+
this.viewDatasourcePairValue = `${firstDatasourcePair.FIRST_DATA_SOURCE_NAME}${firstDatasourcePair.SECOND_DATA_SOURCE_NAME}`;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
private reloadGridsAndCriterias() {
|
|
425
|
+
// Breaks
|
|
426
|
+
this.breaksTabCriteria = getDatasourcePairResultCriteria(
|
|
427
|
+
this.reconciliation.RECONCILIATION_ID,
|
|
428
|
+
this.datasourcePairs.get(this.viewDatasourcePairValue),
|
|
429
|
+
false,
|
|
430
|
+
);
|
|
431
|
+
this.reloadDatasource(this.allBreaksDatasource, ReconciliationOperation.HISTORICAL);
|
|
432
|
+
|
|
433
|
+
// Matched
|
|
434
|
+
this.matchedTabCriteria = getDatasourcePairResultCriteria(
|
|
435
|
+
this.reconciliation.RECONCILIATION_ID,
|
|
436
|
+
this.datasourcePairs.get(this.viewDatasourcePairValue),
|
|
437
|
+
true,
|
|
438
|
+
);
|
|
439
|
+
this.reloadDatasource(this.allMatchedDatasource, ReconciliationOperation.HISTORICAL);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { normaliseCriteria } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { html, repeat } from '@genesislcap/web-core';
|
|
3
|
+
import {
|
|
4
|
+
ComparisonResult,
|
|
5
|
+
DatasourceType,
|
|
6
|
+
KeyResult,
|
|
7
|
+
ReconciliationStatus,
|
|
8
|
+
} from '../../reconciliation.types';
|
|
9
|
+
import { optionTag } from '../../tags';
|
|
10
|
+
|
|
11
|
+
export enum ReconciliationsTab {
|
|
12
|
+
ALL_BREAKS,
|
|
13
|
+
ALL_MATCHED,
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export enum ReconciliationOperation {
|
|
17
|
+
NEW = 'NEW',
|
|
18
|
+
HISTORICAL = 'HISTORICAL',
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const createInputParameters = (
|
|
22
|
+
datasourceConfigurations: Array<any>,
|
|
23
|
+
files: Map<string, any>,
|
|
24
|
+
): {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
} => {
|
|
27
|
+
if (!datasourceConfigurations || datasourceConfigurations.length === 0) {
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const inputParameters = {};
|
|
32
|
+
|
|
33
|
+
datasourceConfigurations.forEach((datasourceConfiguration) => {
|
|
34
|
+
inputParameters[datasourceConfiguration.NAME] = {
|
|
35
|
+
TYPE: datasourceConfiguration.TYPE,
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
if (datasourceConfiguration.TYPE !== DatasourceType.FILE) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const file = files.get(datasourceConfiguration.NAME);
|
|
43
|
+
|
|
44
|
+
inputParameters[datasourceConfiguration.NAME] = {
|
|
45
|
+
...inputParameters[datasourceConfiguration.NAME],
|
|
46
|
+
FILE_STORAGE_ID: file.FILE_STORAGE_ID,
|
|
47
|
+
FILE_NAME: file.FILE_NAME,
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
return inputParameters;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const getDatasourcePairResultCriteria = (
|
|
55
|
+
reconciliationId: string,
|
|
56
|
+
datasourcePair: any,
|
|
57
|
+
matched?: boolean,
|
|
58
|
+
) => {
|
|
59
|
+
const criteria = `RECONCILIATION_ID == "${reconciliationId}"
|
|
60
|
+
&& (KEY_RESULT ${matched ? '==' : '!='} "${KeyResult.MATCHED}"
|
|
61
|
+
${matched ? '&&' : '||'} COMPARISON_RESULT ${matched ? '==' : '!='} "${ComparisonResult.MATCHED}")
|
|
62
|
+
&& (FIRST_DATASOURCE_NAME == "${datasourcePair.FIRST_DATA_SOURCE_NAME}"
|
|
63
|
+
&& SECOND_DATASOURCE_NAME == "${datasourcePair.SECOND_DATA_SOURCE_NAME}")`;
|
|
64
|
+
|
|
65
|
+
return normaliseCriteria(criteria);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export function getStatusIcon(status: ReconciliationStatus) {
|
|
69
|
+
switch (status) {
|
|
70
|
+
case ReconciliationStatus.COMPLETED:
|
|
71
|
+
return createIcon('check', 'completed-status');
|
|
72
|
+
case ReconciliationStatus.FAILED:
|
|
73
|
+
return createIcon('xmark', 'failed-status');
|
|
74
|
+
default:
|
|
75
|
+
return createIcon('exclamation', 'cancelled-status');
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export const createIcon = (iconName: string, iconClass: string) => ({
|
|
80
|
+
iconName: iconName,
|
|
81
|
+
iconClass: iconClass,
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export const createDatasourcePairItemsOptions = (
|
|
85
|
+
datasourcePairsItems,
|
|
86
|
+
reconciliationStatus,
|
|
87
|
+
) => html`
|
|
88
|
+
${repeat(
|
|
89
|
+
() => Array.from(datasourcePairsItems.values()),
|
|
90
|
+
html`
|
|
91
|
+
<${optionTag} :value="${(x) => `${x.FIRST_DATA_SOURCE_NAME}${x.SECOND_DATA_SOURCE_NAME}`}">
|
|
92
|
+
${(x, c) => `${x.FIRST_DATA_SOURCE_NAME} > ${x.SECOND_DATA_SOURCE_NAME}${getBreaksCounter(x, c.parent.selectedTab, reconciliationStatus)}`}
|
|
93
|
+
</${optionTag}>
|
|
94
|
+
`,
|
|
95
|
+
)}
|
|
96
|
+
`;
|
|
97
|
+
|
|
98
|
+
const getBreaksCounter = (datasourcePair, selectedTab, reconciliationStatus) => {
|
|
99
|
+
return selectedTab === ReconciliationsTab.ALL_BREAKS &&
|
|
100
|
+
reconciliationStatus !== ReconciliationStatus.IN_PROGRESS
|
|
101
|
+
? ` (${datasourcePair.BREAKS_COUNTER})`
|
|
102
|
+
: '';
|
|
103
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { css } from '@genesislcap/web-core';
|
|
2
|
+
import { scrollbarStyles } from '../../../styles/scrollbar.styles';
|
|
3
|
+
import { textAreaTag } from '../../../tags';
|
|
4
|
+
|
|
5
|
+
const top = css`
|
|
6
|
+
.modal::part(top) {
|
|
7
|
+
height: 0;
|
|
8
|
+
margin: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.modal-top {
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: calc(var(--design-unit) * 2px);
|
|
14
|
+
border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
15
|
+
font-weight: bold;
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
const recordInformation = css`
|
|
20
|
+
.parent-container {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.record-information {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
width: 100%;
|
|
30
|
+
overflow: hidden auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.record-information-column {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
width: 100%;
|
|
37
|
+
text-wrap: nowrap;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.record-information-cell {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
44
|
+
padding: calc(var(--design-unit) * 1px) calc(var(--design-unit) * 2px);
|
|
45
|
+
height: calc(var(--base-height-multiplier) * 2px);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.record-information-data,
|
|
49
|
+
.record-information-data-field-name {
|
|
50
|
+
display: flex;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.record-information-data-field-name {
|
|
54
|
+
font-weight: bold;
|
|
55
|
+
color: var(--rapid-ag-header-foreground-color);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.green {
|
|
59
|
+
color: var(--success-color);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.red {
|
|
63
|
+
color: var(--error-color);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.amber {
|
|
67
|
+
color: var(--warning-color);
|
|
68
|
+
}
|
|
69
|
+
`;
|
|
70
|
+
|
|
71
|
+
export const ResultDetailsStyles = css`
|
|
72
|
+
${scrollbarStyles}
|
|
73
|
+
|
|
74
|
+
.modal::part(dialog) {
|
|
75
|
+
padding: 0;
|
|
76
|
+
margin-right: 0;
|
|
77
|
+
height: 100%;
|
|
78
|
+
max-height: none;
|
|
79
|
+
overflow: hidden auto;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.modal-main {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.comment-container {
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.space-x {
|
|
93
|
+
padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.save-comment-button {
|
|
97
|
+
display: flex;
|
|
98
|
+
justify-content: end;
|
|
99
|
+
padding: 0 calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px) 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
${top}
|
|
103
|
+
${recordInformation}
|
|
104
|
+
|
|
105
|
+
${textAreaTag}::part(control) {
|
|
106
|
+
display: flex;
|
|
107
|
+
}
|
|
108
|
+
`;
|