@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,363 @@
|
|
|
1
|
+
import { css } from '@genesislcap/web-core';
|
|
2
|
+
import { scrollbarStyles } from '../../styles/scrollbar.styles';
|
|
3
|
+
import {
|
|
4
|
+
badgeTag,
|
|
5
|
+
buttonTag,
|
|
6
|
+
dividerTag,
|
|
7
|
+
segmentedItemTag,
|
|
8
|
+
selectTag,
|
|
9
|
+
textFieldTag,
|
|
10
|
+
} from '../../tags';
|
|
11
|
+
|
|
12
|
+
const common = css`
|
|
13
|
+
.data-source-record {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
|
+
padding: 0 calc(var(--design-unit) * 4px);
|
|
19
|
+
border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
20
|
+
height: calc(var(--base-height-multiplier) * 4px);
|
|
21
|
+
background-color: var(--neutral-layer-2);
|
|
22
|
+
color: var(--neutral-foreground-rest);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.data-source-record-disabled {
|
|
26
|
+
cursor: not-allowed;
|
|
27
|
+
opacity: var(--disabled-opacity);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.data-source-record-delete {
|
|
31
|
+
display: flex;
|
|
32
|
+
margin-left: auto;
|
|
33
|
+
|
|
34
|
+
/* margin-right: calc(var(--design-unit) * 2px); */
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.data-source-record-name {
|
|
39
|
+
font-size: var(--type-ramp-minus-1-font-size);
|
|
40
|
+
font-weight: 700;
|
|
41
|
+
text-overflow: ellipsis;
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
width: 100%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.data-source-record-name-label {
|
|
50
|
+
width: 100%;
|
|
51
|
+
margin: 0 calc(var(--design-unit) * 1px);
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
|
|
55
|
+
const configuration = css`
|
|
56
|
+
.configuration {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
flex: 1 1 80%;
|
|
60
|
+
min-height: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.configuration-content {
|
|
64
|
+
display: flex;
|
|
65
|
+
height: 100%;
|
|
66
|
+
min-height: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.configuration-name-and-data-sources {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
border-right: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
73
|
+
flex: 1 1 30%;
|
|
74
|
+
max-width: 30%;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.configuration-name-and-data-sources-fields {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
padding: calc(var(--design-unit) * 4px);
|
|
81
|
+
gap: calc(var(--design-unit) * 3px);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.configuration-name {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
gap: calc(var(--design-unit) * 2px);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.configuration-name-label,
|
|
91
|
+
.data-sources-label {
|
|
92
|
+
font-weight: bold;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.current-data-source-label {
|
|
96
|
+
padding: 0 calc(var(--design-unit) * 4px);
|
|
97
|
+
margin-bottom: calc(var(--design-unit) * 3px);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* #region Data Sources */
|
|
101
|
+
.data-sources {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
gap: calc(var(--design-unit) * 3px);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.data-source-list {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
overflow: auto;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.new-data-source-label,
|
|
114
|
+
.current-data-source-label,
|
|
115
|
+
.select-dictionary,
|
|
116
|
+
.match-null-value,
|
|
117
|
+
.data-source-name-label {
|
|
118
|
+
font-weight: bold;
|
|
119
|
+
color: var(--neutral-foreground-hint);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.data-source-types {
|
|
123
|
+
margin: 0;
|
|
124
|
+
width: 100%;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.data-source-types::part(positioning-region) {
|
|
128
|
+
width: 100%;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.datasources-list-header {
|
|
132
|
+
display: flex;
|
|
133
|
+
justify-content: space-between;
|
|
134
|
+
width: 95%;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.file-type {
|
|
138
|
+
color: var(--success-color);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.file-type[aria-checked='true'] {
|
|
142
|
+
background-color: var(--success-color);
|
|
143
|
+
color: var(--neutral-foreground-rest);
|
|
144
|
+
border-color: var(--success-color);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.datapipeline-type {
|
|
148
|
+
color: var(--error-color);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.datapipeline-type[aria-checked='true'] {
|
|
152
|
+
background-color: var(--error-color);
|
|
153
|
+
color: var(--neutral-foreground-rest);
|
|
154
|
+
border-color: var(--error-color);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.datapipeline-select {
|
|
158
|
+
width: 100%;
|
|
159
|
+
}
|
|
160
|
+
${badgeTag}::part(control) {
|
|
161
|
+
font-weight: 700;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
${segmentedItemTag} {
|
|
165
|
+
margin: 0;
|
|
166
|
+
flex: auto;
|
|
167
|
+
place-content: center;
|
|
168
|
+
font-size: var(--type-ramp-minus-1-font-size);
|
|
169
|
+
|
|
170
|
+
&[disabled] {
|
|
171
|
+
cursor: not-allowed;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* #region Data Sources */
|
|
176
|
+
|
|
177
|
+
/* #region Reconciliation Rules */
|
|
178
|
+
.reconciliation-rules {
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
gap: calc(var(--design-unit) * 3px);
|
|
182
|
+
width: 100%;
|
|
183
|
+
flex: 1 1 70%;
|
|
184
|
+
max-width: 70%;
|
|
185
|
+
height: 100%;
|
|
186
|
+
min-height: 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.reconciliation-rules-fields {
|
|
190
|
+
display: flex;
|
|
191
|
+
flex-direction: row;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.reconciliation-rules-label {
|
|
195
|
+
font-weight: bold;
|
|
196
|
+
margin: calc(var(--design-unit) * 4px) calc(var(--design-unit) * 4px) 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.rule-dictionary {
|
|
200
|
+
display: flex;
|
|
201
|
+
flex-direction: column;
|
|
202
|
+
padding: 0 calc(var(--design-unit) * 4px);
|
|
203
|
+
gap: calc(var(--design-unit) * 2px);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.recon-rule-row,
|
|
207
|
+
.recon-rule-row-grid {
|
|
208
|
+
display: flex;
|
|
209
|
+
gap: calc(var(--design-unit) * 3px);
|
|
210
|
+
align-items: center;
|
|
211
|
+
padding: 0 calc(var(--design-unit) * 4px);
|
|
212
|
+
font-size: var(--type-ramp-minus-2-font-size);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.recon-rule-row-grid {
|
|
216
|
+
border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
217
|
+
padding: calc(var(--design-unit) * 4px);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.recon-rule-subheader-label {
|
|
221
|
+
font-size: var(--type-ramp-minus-2-font-size);
|
|
222
|
+
padding: 0 calc(var(--design-unit) * 4px);
|
|
223
|
+
font-weight: 700;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.recon-rules {
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-direction: column;
|
|
229
|
+
overflow: hidden auto;
|
|
230
|
+
height: 100%;
|
|
231
|
+
gap: calc(var(--design-unit) * 2px);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.reconciliation-rules-list {
|
|
235
|
+
display: flex;
|
|
236
|
+
flex-direction: column;
|
|
237
|
+
gap: calc(var(--design-unit) * 2px);
|
|
238
|
+
height: 100%;
|
|
239
|
+
flex: 1;
|
|
240
|
+
min-height: 0;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.reconciliation-rules-list ${dividerTag} {
|
|
244
|
+
margin: 0;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.header-col-label {
|
|
248
|
+
font-weight: 700;
|
|
249
|
+
font-size: var(--type-ramp-minus-2-font-size);
|
|
250
|
+
color: var(--neutral-foreground-hint);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.col-width {
|
|
254
|
+
width: 20%;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.col-width-5 {
|
|
258
|
+
width: 5%;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.col-width-30 {
|
|
262
|
+
width: 30%;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.col-center {
|
|
266
|
+
display: flex;
|
|
267
|
+
justify-content: center;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.rule-match-null-value {
|
|
271
|
+
display: flex;
|
|
272
|
+
flex-direction: column;
|
|
273
|
+
margin-left: auto;
|
|
274
|
+
padding: 0 calc(var(--design-unit) * 4px);
|
|
275
|
+
gap: calc(var(--design-unit) * 2px);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/* #endregion Reconciliation Rules */
|
|
279
|
+
|
|
280
|
+
.configuration-footer {
|
|
281
|
+
display: flex;
|
|
282
|
+
flex-direction: row-reverse;
|
|
283
|
+
border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
284
|
+
padding: calc(var(--design-unit) * 4px);
|
|
285
|
+
gap: calc(var(--design-unit) * 2px);
|
|
286
|
+
}
|
|
287
|
+
`;
|
|
288
|
+
|
|
289
|
+
const fields = css`
|
|
290
|
+
label {
|
|
291
|
+
display: flex;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.bold {
|
|
295
|
+
font-weight: bold;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
${textFieldTag} {
|
|
299
|
+
display: flex;
|
|
300
|
+
margin: 0;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
${textFieldTag}::part(root) {
|
|
304
|
+
width: 100%;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
${buttonTag} {
|
|
308
|
+
display: flex;
|
|
309
|
+
margin: 0;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
${buttonTag}.add::part(control) {
|
|
313
|
+
padding: 0;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
${selectTag} {
|
|
317
|
+
width: 20%;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.field-label {
|
|
321
|
+
font-weight: bold;
|
|
322
|
+
color: var(--rapid-ag-header-foreground-color);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
rapid-switch::part(label) {
|
|
326
|
+
margin-inline-end: 0;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.add-datasource {
|
|
330
|
+
display: flex;
|
|
331
|
+
background-color: rgb(122 204 121 / 50%);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
${buttonTag}.add-datasource::part(control) {
|
|
335
|
+
padding: 0;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
${textFieldTag}.data-source-record-name-edit {
|
|
339
|
+
margin: 0 calc(var(--design-unit) * 1px);
|
|
340
|
+
}
|
|
341
|
+
`;
|
|
342
|
+
|
|
343
|
+
export const ConfigurationsPanelStyles = css`
|
|
344
|
+
:host {
|
|
345
|
+
display: flex;
|
|
346
|
+
height: 100%;
|
|
347
|
+
width: 100%;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.configurations-panel {
|
|
351
|
+
display: flex;
|
|
352
|
+
flex-direction: row;
|
|
353
|
+
width: 100%;
|
|
354
|
+
}
|
|
355
|
+
${scrollbarStyles}
|
|
356
|
+
${common}
|
|
357
|
+
${configuration}
|
|
358
|
+
${fields}
|
|
359
|
+
|
|
360
|
+
.excel-icon {
|
|
361
|
+
color: #48d745;
|
|
362
|
+
}
|
|
363
|
+
`;
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import { sync } from '@genesislcap/foundation-utils';
|
|
2
|
+
import { html, ref, repeat, when, whenElse } from '@genesislcap/web-core';
|
|
3
|
+
import {
|
|
4
|
+
ConfigurationMode,
|
|
5
|
+
ReconciliationFrequency,
|
|
6
|
+
DatasourceType,
|
|
7
|
+
RuleMode,
|
|
8
|
+
ReconciliationMethod,
|
|
9
|
+
} from '../../reconciliation.types';
|
|
10
|
+
import {
|
|
11
|
+
badgeTag,
|
|
12
|
+
buttonTag,
|
|
13
|
+
dividerTag,
|
|
14
|
+
iconTag,
|
|
15
|
+
optionTag,
|
|
16
|
+
radioTag,
|
|
17
|
+
segmentedControlTag,
|
|
18
|
+
segmentedItemTag,
|
|
19
|
+
selectTag,
|
|
20
|
+
switchTag,
|
|
21
|
+
textFieldTag,
|
|
22
|
+
} from '../../tags';
|
|
23
|
+
import { eventDetail } from '../../utils/eventDetail';
|
|
24
|
+
import { ConfigurationDatasources } from './configuration-datasources/configuration-datasources';
|
|
25
|
+
import { ConfigurationsPanel, DatasourceEdit } from './configurations-panel';
|
|
26
|
+
import { ReconciliationRuleRow } from './reconciliation-rule-row/reconciliation-rule-row';
|
|
27
|
+
|
|
28
|
+
ReconciliationRuleRow;
|
|
29
|
+
ConfigurationDatasources;
|
|
30
|
+
|
|
31
|
+
const listTemplate = html<ConfigurationsPanel>`
|
|
32
|
+
<item-list
|
|
33
|
+
:items=${(x) => x.configurations}
|
|
34
|
+
:idProperty=${(_) => 'RECONCILIATION_CONFIG_ID'}
|
|
35
|
+
:nameProperty=${(_) => 'NAME'}
|
|
36
|
+
:title=${(_) => 'All Configurations'}
|
|
37
|
+
:addButtonLabel=${(_) => 'New Configuration'}
|
|
38
|
+
:selectedItem=${(x) => x.selectedConfiguration}
|
|
39
|
+
@addRecord=${(x) => x.addConfiguration()}
|
|
40
|
+
@selectRecord=${(x, c) => x.selectConfiguration(eventDetail(c))}
|
|
41
|
+
@deleteRecord=${(x, c) => x.deleteConfiguration(eventDetail(c))}
|
|
42
|
+
></item-list>
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
const configurationNameAndDatasourcesTemplate = html<ConfigurationsPanel>`
|
|
46
|
+
<div class="configuration-name-and-data-sources">
|
|
47
|
+
<div class="configuration-name-and-data-sources-fields">
|
|
48
|
+
<div class="configuration-name">
|
|
49
|
+
<label class="configuration-name-label">Configuration Name</label>
|
|
50
|
+
<${textFieldTag}
|
|
51
|
+
:value=${sync((x) => x.configurationName)}
|
|
52
|
+
:disabled=${(x) => x.configurationMode === ConfigurationMode.EDIT}>
|
|
53
|
+
</${textFieldTag}>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<div class="configuration-name">
|
|
57
|
+
<label class="configuration-name-label">Configuration Method</label>
|
|
58
|
+
|
|
59
|
+
<${segmentedControlTag}
|
|
60
|
+
class="data-source-types"
|
|
61
|
+
:value=${sync((x) => x.reconciliationFrequency)}
|
|
62
|
+
>
|
|
63
|
+
<${segmentedItemTag}
|
|
64
|
+
:value=${(_) => ReconciliationFrequency.BATCH}
|
|
65
|
+
>
|
|
66
|
+
Batch
|
|
67
|
+
</${segmentedItemTag}>
|
|
68
|
+
<${segmentedItemTag}
|
|
69
|
+
disabled
|
|
70
|
+
:value=${(_) => ReconciliationFrequency.REAL_TIME}
|
|
71
|
+
>
|
|
72
|
+
Real-time
|
|
73
|
+
</${segmentedItemTag}>
|
|
74
|
+
</${segmentedControlTag}>
|
|
75
|
+
|
|
76
|
+
<${segmentedControlTag}
|
|
77
|
+
class="data-source-types"
|
|
78
|
+
:value=${sync((x) => x.reconciliationStrategy)}
|
|
79
|
+
@change=${(x, c) => x.reconStrategyChanged()}
|
|
80
|
+
disabled=${(x) => x.configurationMode === ConfigurationMode.EDIT}
|
|
81
|
+
>
|
|
82
|
+
<${segmentedItemTag}
|
|
83
|
+
:value=${(_) => ReconciliationMethod.ONE_TO_ONE}
|
|
84
|
+
@click=${(x, c) => x.clearDatasources()}
|
|
85
|
+
>
|
|
86
|
+
1:1
|
|
87
|
+
</${segmentedItemTag}>
|
|
88
|
+
<${segmentedItemTag}
|
|
89
|
+
:value=${(_) => ReconciliationMethod.ONE_TO_MANY}
|
|
90
|
+
>
|
|
91
|
+
1:N
|
|
92
|
+
</${segmentedItemTag}>
|
|
93
|
+
<${segmentedItemTag}
|
|
94
|
+
:value=${(_) => ReconciliationMethod.MANY_TO_MANY}
|
|
95
|
+
@click=${(x, c) => (x.primaryDatasource = null)}
|
|
96
|
+
>
|
|
97
|
+
N:N
|
|
98
|
+
</${segmentedItemTag}>
|
|
99
|
+
</${segmentedControlTag}>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<${dividerTag}></${dividerTag}>
|
|
103
|
+
|
|
104
|
+
<div class="data-sources">
|
|
105
|
+
<label class="data-sources-label">Data Sources</label>
|
|
106
|
+
|
|
107
|
+
${whenElse(
|
|
108
|
+
(x) => x.reconciliationStrategy === ReconciliationMethod.ONE_TO_ONE,
|
|
109
|
+
html<ConfigurationsPanel>`
|
|
110
|
+
<label class="data-source-name-label">Add 1st Data Source</label>
|
|
111
|
+
|
|
112
|
+
<configuration-datasources
|
|
113
|
+
:configurationMode=${(x) => x.configurationMode}
|
|
114
|
+
${ref('firstDatasource')}
|
|
115
|
+
:dataPipelineList=${(x) => x.dataPipelineList}
|
|
116
|
+
>
|
|
117
|
+
</configuration-datasources>
|
|
118
|
+
|
|
119
|
+
<${dividerTag}></${dividerTag}>
|
|
120
|
+
|
|
121
|
+
<label class="data-source-name-label">Add 2nd Data Source</label>
|
|
122
|
+
|
|
123
|
+
<configuration-datasources
|
|
124
|
+
:configurationMode=${(x) => x.configurationMode}
|
|
125
|
+
${ref('secondDatasource')}
|
|
126
|
+
:dataPipelineList=${(x) => x.dataPipelineList}
|
|
127
|
+
>
|
|
128
|
+
</configuration-datasources>
|
|
129
|
+
`,
|
|
130
|
+
html`
|
|
131
|
+
<label class="data-source-name-label">Add New Data Source</label>
|
|
132
|
+
|
|
133
|
+
<configuration-datasources
|
|
134
|
+
show-add-button
|
|
135
|
+
:configurationMode=${(x) => x.configurationMode}
|
|
136
|
+
:dataPipelineList=${(x) => x.dataPipelineList}
|
|
137
|
+
@addDatasource=${(x, c) => x.addDataSource(eventDetail(c))}
|
|
138
|
+
></configuration-datasources>
|
|
139
|
+
`,
|
|
140
|
+
)}
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
${when(
|
|
145
|
+
(x) => x.reconciliationStrategy !== ReconciliationMethod.ONE_TO_ONE,
|
|
146
|
+
html`
|
|
147
|
+
<div class="configuration-name-and-data-sources-list">
|
|
148
|
+
<div class="datasources-list-header">
|
|
149
|
+
<label class="current-data-source-label">Current Data Sources</label>
|
|
150
|
+
<label class="current-data-source-label">
|
|
151
|
+
${(x) =>
|
|
152
|
+
x.reconciliationStrategy === ReconciliationMethod.ONE_TO_MANY ? 'Primary?' : ''}
|
|
153
|
+
</label>
|
|
154
|
+
</div>
|
|
155
|
+
|
|
156
|
+
<div class="data-source-list">
|
|
157
|
+
${repeat(
|
|
158
|
+
(x) => x.datasources,
|
|
159
|
+
html<DatasourceEdit>`
|
|
160
|
+
<div class="data-source-record ${(x, c) => (c.parent.configurationMode === ConfigurationMode.EDIT ? 'data-source-record-disabled' : '')}" >
|
|
161
|
+
<span class="data-source-record-name">
|
|
162
|
+
<${badgeTag} fill="${(x) => (x.TYPE === DatasourceType.FILE ? 'success' : 'danger')}" color="text" style="font-size: calc(var(--type-ramp-minus-2-font-size) - 1px); line-height: calc(var(--type-ramp-minus-2-font-size) - 2px);">
|
|
163
|
+
${(x) => (x.TYPE === DatasourceType.FILE ? 'File' : 'DPL')}
|
|
164
|
+
</${badgeTag}>
|
|
165
|
+
|
|
166
|
+
${whenElse(
|
|
167
|
+
(x, c) => c.parent.isEditingDatasourceName && x.IS_EDITING,
|
|
168
|
+
html`
|
|
169
|
+
<${textFieldTag}
|
|
170
|
+
class="data-source-record-name-edit"
|
|
171
|
+
autofocus=true
|
|
172
|
+
:value=${(x) => x.NAME}
|
|
173
|
+
@keydown=${(x, c) => {
|
|
174
|
+
if ((c.event as KeyboardEvent).key === 'Enter') {
|
|
175
|
+
x.IS_EDITING = false;
|
|
176
|
+
c.parent.isEditingDatasourceName = false;
|
|
177
|
+
}
|
|
178
|
+
return true;
|
|
179
|
+
}}
|
|
180
|
+
@input=${(x, c) => c.parent.datasourceNameChanged(c.event as CustomEvent, c.index)}
|
|
181
|
+
@blur=${(x, c) => {
|
|
182
|
+
x.IS_EDITING = false;
|
|
183
|
+
c.parent.isEditingDatasourceName = false;
|
|
184
|
+
}}
|
|
185
|
+
>
|
|
186
|
+
</${textFieldTag}>
|
|
187
|
+
`,
|
|
188
|
+
html`
|
|
189
|
+
${whenElse(
|
|
190
|
+
(x, c) => c.parent.configurationMode !== ConfigurationMode.EDIT,
|
|
191
|
+
html`
|
|
192
|
+
<span
|
|
193
|
+
class="data-source-record-name-label"
|
|
194
|
+
@click=${(x, c) => {
|
|
195
|
+
x.IS_EDITING = true;
|
|
196
|
+
c.parent.isEditingDatasourceName = true;
|
|
197
|
+
}}
|
|
198
|
+
>
|
|
199
|
+
${(x) => `${x.NAME}`}
|
|
200
|
+
</span>
|
|
201
|
+
`,
|
|
202
|
+
html`
|
|
203
|
+
<span class="data-source-record-name-label">
|
|
204
|
+
${(x) => `${x.NAME}`}
|
|
205
|
+
</span>
|
|
206
|
+
`,
|
|
207
|
+
)}
|
|
208
|
+
`,
|
|
209
|
+
)}
|
|
210
|
+
</span>
|
|
211
|
+
|
|
212
|
+
<div class="data-source-record-name-label">${(x) => x.CONFIG_DATA ?? ''}</div>
|
|
213
|
+
|
|
214
|
+
${when(
|
|
215
|
+
(x, c) => c.parent.reconciliationStrategy === ReconciliationMethod.ONE_TO_MANY,
|
|
216
|
+
html`
|
|
217
|
+
<${radioTag}
|
|
218
|
+
:checked=${(x, c) => c.parent.primaryDatasource === x.NAME}
|
|
219
|
+
:value=${(x) => x.NAME}
|
|
220
|
+
@click=${(x, c) => c.parent.onPrimaryDatasourceChange(x.NAME)}
|
|
221
|
+
class="radio-button${(x, c) => (c.parent.primaryDatasource === x.NAME ? ' active' : '')}"
|
|
222
|
+
data-test-id=${(x) => `datasource-option-${x.NAME}`}
|
|
223
|
+
>
|
|
224
|
+
</${radioTag}>
|
|
225
|
+
`,
|
|
226
|
+
)}
|
|
227
|
+
|
|
228
|
+
<span class="data-source-record-delete"
|
|
229
|
+
@click=${(x, c) => c.parent.deleteDataSource(c.index)}
|
|
230
|
+
>
|
|
231
|
+
<${iconTag} name="trash-alt"></${iconTag}>
|
|
232
|
+
</span>
|
|
233
|
+
</div>
|
|
234
|
+
`,
|
|
235
|
+
{ positioning: true },
|
|
236
|
+
)}
|
|
237
|
+
</div>
|
|
238
|
+
</div>
|
|
239
|
+
`,
|
|
240
|
+
)}
|
|
241
|
+
</div>
|
|
242
|
+
`;
|
|
243
|
+
|
|
244
|
+
const reconciliationRulesTemplate = html<ConfigurationsPanel>`
|
|
245
|
+
<div class="reconciliation-rules">
|
|
246
|
+
<label class="reconciliation-rules-label">Reconciliation Rules</label>
|
|
247
|
+
|
|
248
|
+
<div class="reconciliation-rules-fields">
|
|
249
|
+
<div class="rule-dictionary">
|
|
250
|
+
<label class="select-dictionary">Select Data Dictionary</label>
|
|
251
|
+
|
|
252
|
+
<${selectTag}
|
|
253
|
+
:value=${sync((x) => x.dataDictionaryId)}
|
|
254
|
+
:disabled=${(x) => x.configurationMode === ConfigurationMode.EDIT}
|
|
255
|
+
@change=${(x) => x.dataDictionaryChanged()}
|
|
256
|
+
>
|
|
257
|
+
${repeat(
|
|
258
|
+
(x) => x.dataDictionaries,
|
|
259
|
+
html`
|
|
260
|
+
<${optionTag} :value=${(x) => x.DICTIONARY_ID}>
|
|
261
|
+
${(x) => x.DICTIONARY_NAME}
|
|
262
|
+
</${optionTag}>
|
|
263
|
+
`,
|
|
264
|
+
)}
|
|
265
|
+
</${selectTag}>
|
|
266
|
+
</div>
|
|
267
|
+
|
|
268
|
+
<div class="rule-match-null-value">
|
|
269
|
+
<label class="match-null-value">Match Null Value</label>
|
|
270
|
+
|
|
271
|
+
<${switchTag}
|
|
272
|
+
@click=${(x) => (x.matchNull = !x.matchNull)}
|
|
273
|
+
?current-checked=${(x) => x.matchNull}
|
|
274
|
+
>
|
|
275
|
+
</${switchTag}>
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
|
|
279
|
+
<div class="reconciliation-rules-list">
|
|
280
|
+
<div class="recon-rule-row">
|
|
281
|
+
<div class="col-width-30 header-col-label">Name</div>
|
|
282
|
+
<div class="col-width header-col-label">Type</div>
|
|
283
|
+
<div class="col-width-30 header-col-label">Tolerance</div>
|
|
284
|
+
<div class="col-width header-col-label"></div>
|
|
285
|
+
<div class="col-width header-col-label col-center">Match Key</div>
|
|
286
|
+
<div class="col-width-5 header-col-label"></div>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
<${dividerTag}></${dividerTag}>
|
|
290
|
+
|
|
291
|
+
<label class="recon-rule-subheader-label">New Rule</label>
|
|
292
|
+
|
|
293
|
+
<${dividerTag}></${dividerTag}>
|
|
294
|
+
|
|
295
|
+
<reconciliation-rule-row
|
|
296
|
+
:dataDictionaryFields=${(x) => x.dataDictionaryFields}
|
|
297
|
+
:filteredRuleFields=${(x) => x.filteredRuleFields}
|
|
298
|
+
@addRule=${(x, c) => x.addReconRule(eventDetail(c))}
|
|
299
|
+
>
|
|
300
|
+
</reconciliation-rule-row>
|
|
301
|
+
|
|
302
|
+
<${dividerTag}></${dividerTag}>
|
|
303
|
+
|
|
304
|
+
<label class="recon-rule-subheader-label">Existing Rules</label>
|
|
305
|
+
|
|
306
|
+
<${dividerTag}></${dividerTag}>
|
|
307
|
+
|
|
308
|
+
<div class="recon-rules">
|
|
309
|
+
${repeat(
|
|
310
|
+
(x, c) => x.reconRules,
|
|
311
|
+
html`
|
|
312
|
+
<reconciliation-rule-row
|
|
313
|
+
:mode=${(_) => RuleMode.EDIT}
|
|
314
|
+
:reconRule=${(x) => x}
|
|
315
|
+
:dataDictionaryFields=${(x) => x.dataDictionaryFields}
|
|
316
|
+
:filteredRuleFields=${(x) => x.filteredRuleFields}
|
|
317
|
+
@updateRule=${(x, c) => c.parent.updateRule(eventDetail(c), c.index)}
|
|
318
|
+
@deleteRule=${(x, c) => c.parent.removeRule(c.index)}
|
|
319
|
+
>
|
|
320
|
+
</reconciliation-rule-row>
|
|
321
|
+
|
|
322
|
+
<${dividerTag}></${dividerTag}>
|
|
323
|
+
`,
|
|
324
|
+
{ positioning: true },
|
|
325
|
+
)}
|
|
326
|
+
</div>
|
|
327
|
+
</div>
|
|
328
|
+
</div>
|
|
329
|
+
`;
|
|
330
|
+
|
|
331
|
+
export const ConfigurationsPanelTemplate = html<ConfigurationsPanel>`
|
|
332
|
+
<div class="configurations-panel">
|
|
333
|
+
${listTemplate}
|
|
334
|
+
${when(
|
|
335
|
+
(x) => x.showConfigurationDetails,
|
|
336
|
+
html<ConfigurationsPanel>`
|
|
337
|
+
<div class="configuration">
|
|
338
|
+
<div class="configuration-content">
|
|
339
|
+
${configurationNameAndDatasourcesTemplate}
|
|
340
|
+
${reconciliationRulesTemplate}
|
|
341
|
+
</div>
|
|
342
|
+
|
|
343
|
+
<div class="configuration-footer">
|
|
344
|
+
<${buttonTag} appearance="primary" @click=${(x) => x.saveConfiguration()}>
|
|
345
|
+
Save Configuration
|
|
346
|
+
</${buttonTag}>
|
|
347
|
+
<${buttonTag} @click=${(x) => x.clearReconciliationRules()}>
|
|
348
|
+
<${iconTag} name="broom" size="lg"></${iconTag}>
|
|
349
|
+
Clear
|
|
350
|
+
</${buttonTag}>
|
|
351
|
+
</div>
|
|
352
|
+
</div>
|
|
353
|
+
`,
|
|
354
|
+
)}
|
|
355
|
+
</div>
|
|
356
|
+
`;
|