@genesislcap/pbc-reconciliation-ui 0.0.15 → 0.0.17
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/.gradle/8.3/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.3/executionHistory/executionHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/.gradle/file-system.probe +0 -0
- package/build/distributions/web-distribution.tar +0 -0
- package/build/distributions/web-distribution.zip +0 -0
- package/dist/dts/components/configurations-panel/configurations-panel.d.ts +7 -25
- package/dist/dts/components/configurations-panel/configurations-panel.d.ts.map +1 -1
- package/dist/dts/components/configurations-panel/configurations-panel.styles.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 +30 -0
- package/dist/dts/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.d.ts.map +1 -0
- package/dist/dts/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.styles.d.ts +2 -0
- package/dist/dts/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.styles.d.ts.map +1 -0
- package/dist/dts/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.d.ts +3 -0
- package/dist/dts/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.d.ts.map +1 -0
- package/dist/dts/components/data-dictionaries/data-dictionaries.d.ts +2 -2
- package/dist/dts/components/data-dictionaries/data-dictionaries.d.ts.map +1 -1
- package/dist/dts/components/data-dictionaries/data-dictionaries.styles.d.ts.map +1 -1
- package/dist/dts/components/data-dictionaries/data-dictionaries.template.d.ts.map +1 -1
- package/dist/dts/components/list/list.d.ts +15 -0
- package/dist/dts/components/list/list.d.ts.map +1 -0
- package/dist/dts/components/list/list.styles.d.ts +2 -0
- package/dist/dts/components/list/list.styles.d.ts.map +1 -0
- package/dist/dts/components/list/list.template.d.ts +3 -0
- package/dist/dts/components/list/list.template.d.ts.map +1 -0
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.styles.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/reconciliation.types.d.ts +4 -0
- package/dist/dts/reconciliation.types.d.ts.map +1 -1
- package/dist/dts/utils/notification.d.ts.map +1 -1
- package/dist/esm/components/configurations-panel/configurations-panel.js +32 -176
- package/dist/esm/components/configurations-panel/configurations-panel.js.map +1 -1
- package/dist/esm/components/configurations-panel/configurations-panel.styles.js +1 -91
- package/dist/esm/components/configurations-panel/configurations-panel.styles.js.map +1 -1
- package/dist/esm/components/configurations-panel/configurations-panel.template.js +145 -219
- 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 +216 -0
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.js.map +1 -0
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.styles.js +63 -0
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.styles.js.map +1 -0
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.js +76 -0
- package/dist/esm/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.js.map +1 -0
- package/dist/esm/components/data-dictionaries/data-dictionaries.js +6 -8
- package/dist/esm/components/data-dictionaries/data-dictionaries.js.map +1 -1
- package/dist/esm/components/data-dictionaries/data-dictionaries.styles.js +0 -75
- package/dist/esm/components/data-dictionaries/data-dictionaries.styles.js.map +1 -1
- package/dist/esm/components/data-dictionaries/data-dictionaries.template.js +13 -20
- package/dist/esm/components/data-dictionaries/data-dictionaries.template.js.map +1 -1
- package/dist/esm/components/list/list.js +51 -0
- package/dist/esm/components/list/list.js.map +1 -0
- package/dist/esm/components/list/list.styles.js +86 -0
- package/dist/esm/components/list/list.styles.js.map +1 -0
- package/dist/esm/components/list/list.template.js +27 -0
- package/dist/esm/components/list/list.template.js.map +1 -0
- package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.styles.js +1 -1
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.styles.js +12 -5
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.styles.js.map +1 -1
- package/dist/esm/main/main.template.js +2 -0
- package/dist/esm/main/main.template.js.map +1 -1
- package/dist/esm/reconciliation.types.js +5 -0
- package/dist/esm/reconciliation.types.js.map +1 -1
- package/dist/esm/utils/notification.js +1 -0
- package/dist/esm/utils/notification.js.map +1 -1
- package/package.json +1 -1
- package/src/components/configurations-panel/configurations-panel.styles.ts +0 -92
- package/src/components/configurations-panel/configurations-panel.template.ts +156 -249
- package/src/components/configurations-panel/configurations-panel.ts +29 -189
- package/src/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.styles.ts +63 -0
- package/src/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.ts +115 -0
- package/src/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.ts +202 -0
- package/src/components/data-dictionaries/data-dictionaries.styles.ts +0 -76
- package/src/components/data-dictionaries/data-dictionaries.template.ts +12 -23
- package/src/components/data-dictionaries/data-dictionaries.ts +6 -10
- package/src/components/list/list.styles.ts +85 -0
- package/src/components/list/list.template.ts +33 -0
- package/src/components/list/list.ts +32 -0
- package/src/components/reconciliations-panel/input-parameter/input-parameter.styles.ts +1 -1
- package/src/components/reconciliations-panel/reconciliations-panel.styles.ts +12 -5
- package/src/main/main.template.ts +2 -1
- package/src/reconciliation.types.ts +7 -3
- package/src/utils/notification.ts +1 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Tue Jul 02 14:19:20 UTC 2024
|
|
2
2
|
gradle.version=8.3
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Switch } from '@genesislcap/rapid-design-system';
|
|
2
2
|
import { GenesisElement } from '@genesislcap/web-core';
|
|
3
|
-
import { Configuration, ConfigurationMode, DataDictionary, DataDictionaryField, Datasource, DatasourceType,
|
|
3
|
+
import { Configuration, ConfigurationMode, DataDictionary, DataDictionaryField, Datasource, DatasourceType, ReconConfigurationRule } from '../../reconciliation.types';
|
|
4
4
|
import { ReconciliationConfigurationService } from '../../services/reconciliation-configuration.service';
|
|
5
5
|
import { DataDictionaryService } from '../../services/data-dictionary.service';
|
|
6
6
|
export declare class ConfigurationsPanel extends GenesisElement {
|
|
@@ -9,32 +9,24 @@ export declare class ConfigurationsPanel extends GenesisElement {
|
|
|
9
9
|
configurations: Array<Configuration>;
|
|
10
10
|
dataSources: Array<Datasource>;
|
|
11
11
|
dataDictionaries: Array<DataDictionary>;
|
|
12
|
-
dataDictionaryFields: Array<DataDictionaryField>;
|
|
13
|
-
filteredRuleFields: Array<DataDictionaryField>;
|
|
14
|
-
reconRules: Array<ReconConfigurationRule>;
|
|
15
12
|
selectedConfiguration: Configuration;
|
|
16
13
|
configurationName: string;
|
|
17
14
|
dataSourceType: string;
|
|
18
15
|
dataDictionaryId: string;
|
|
19
16
|
configurationMode: (typeof ConfigurationMode)[keyof typeof ConfigurationMode];
|
|
20
17
|
showConfigurationDetails: boolean;
|
|
21
|
-
toleranceTypes: Array<ToleranceType>;
|
|
22
|
-
fieldName: string;
|
|
23
|
-
fieldType: FieldType;
|
|
24
|
-
toleranceType: ToleranceType;
|
|
25
|
-
toleranceValue: string;
|
|
26
|
-
isPrimaryKey: boolean;
|
|
27
18
|
matchNullValue: Switch;
|
|
19
|
+
reconRules: Array<ReconConfigurationRule>;
|
|
20
|
+
dataDictionaryFields: Array<DataDictionaryField>;
|
|
21
|
+
filteredRuleFields: Array<DataDictionaryField>;
|
|
28
22
|
connectedCallback(): Promise<void>;
|
|
29
23
|
setConfigurations(): Promise<void>;
|
|
30
24
|
setDataDictionaries(): Promise<void>;
|
|
31
25
|
dataDictionaryChanged(): Promise<void>;
|
|
32
|
-
dataDictionaryFieldChanged(): void;
|
|
33
|
-
getToleranceTypes(fieldType: any): any[];
|
|
34
26
|
addConfiguration(): void;
|
|
35
27
|
reset(): void;
|
|
36
28
|
selectConfiguration(configuration: Configuration): Promise<void>;
|
|
37
|
-
deleteConfiguration(
|
|
29
|
+
deleteConfiguration(index: number): void;
|
|
38
30
|
addDataSource(dataSourceType: DatasourceType): void;
|
|
39
31
|
deleteDataSource(index: number): void;
|
|
40
32
|
transformDatasources(): {
|
|
@@ -42,21 +34,11 @@ export declare class ConfigurationsPanel extends GenesisElement {
|
|
|
42
34
|
INDEX: number;
|
|
43
35
|
TYPE: DatasourceType;
|
|
44
36
|
}[];
|
|
45
|
-
showErrorNotification(title: any, body: any): void;
|
|
46
37
|
saveConfiguration(): void;
|
|
47
|
-
showNotificationError(error: any): void;
|
|
48
38
|
validateResponse(response: any): Promise<void>;
|
|
49
|
-
|
|
50
|
-
addReconRule(): void;
|
|
39
|
+
addReconRule(rule: any): void;
|
|
51
40
|
filterReconRuleFields(): void;
|
|
52
|
-
resetRule(): void;
|
|
53
41
|
removeRule(index: any): void;
|
|
54
|
-
|
|
55
|
-
gridToleranceValueChanged(evt: any, index: any): void;
|
|
56
|
-
formatToleranceValue(type: any, value: any): any;
|
|
57
|
-
toleranceValChanged(evt: any): void;
|
|
58
|
-
adjustDecimalPoints(value: any, parts: any): any;
|
|
59
|
-
convertToAbsolute(value: any): any;
|
|
60
|
-
convertToPercentage(value: any): string;
|
|
42
|
+
updateRule(rule: any, index: any): void;
|
|
61
43
|
}
|
|
62
44
|
//# sourceMappingURL=configurations-panel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurations-panel.d.ts","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE/D,OAAO,EAAE,cAAc,EAA6B,MAAM,uBAAuB,CAAC;AAGlF,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,
|
|
1
|
+
{"version":3,"file":"configurations-panel.d.ts","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE/D,OAAO,EAAE,cAAc,EAA6B,MAAM,uBAAuB,CAAC;AAGlF,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,kCAAkC,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAI/E,qBAKa,mBAAoB,SAAQ,cAAc;IAErD,kCAAkC,EAAE,kCAAkC,CAAC;IAChD,qBAAqB,EAAE,qBAAqB,CAAC;IACxD,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,CAAM;IAC1C,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC,CAAM;IACpC,gBAAgB,EAAE,KAAK,CAAC,cAAc,CAAC,CAAM;IAE7C,qBAAqB,EAAE,aAAa,CAAQ;IAC5C,iBAAiB,EAAE,MAAM,CAAQ;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAM;IAC9B,iBAAiB,EAAE,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;IAC9E,wBAAwB,EAAE,OAAO,CAAS;IAC1C,cAAc,EAAE,MAAM,CAAC;IAEvB,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAC/C,oBAAoB,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAM;IACtD,kBAAkB,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAM;IAE1D,iBAAiB;IAMjB,iBAAiB;IAKjB,mBAAmB;IAMnB,qBAAqB;IAO3B,gBAAgB;IAOhB,KAAK;IAaC,mBAAmB,CAAC,aAAa,EAAE,aAAa;IAiCtD,mBAAmB,CAAC,KAAK,EAAE,MAAM;IA+BjC,aAAa,CAAC,cAAc,EAAE,cAAc;IAI5C,gBAAgB,CAAC,KAAK,EAAE,MAAM;IAM9B,oBAAoB;;;;;IAUpB,iBAAiB;IAkDX,gBAAgB,CAAC,QAAQ,KAAA;IAW/B,YAAY,CAAC,IAAI,KAAA;IAcjB,qBAAqB;IAMrB,UAAU,CAAC,KAAK,KAAA;IAKhB,UAAU,CAAC,IAAI,KAAA,EAAE,KAAK,KAAA;CAGvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurations-panel.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"configurations-panel.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.styles.ts"],"names":[],"mappings":"AAwRA,eAAO,MAAM,yBAAyB,iDAoBrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurations-panel.template.d.ts","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"configurations-panel.template.d.ts","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAkL7D,eAAO,MAAM,2BAA2B,0EAqBvC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { GenesisElement } from '@genesislcap/web-core';
|
|
2
|
+
import { DataDictionaryField, FieldType, ReconConfigurationRule, ToleranceType, RuleMode } from '../../../reconciliation.types';
|
|
3
|
+
export declare class ReconciliationRuleRow extends GenesisElement {
|
|
4
|
+
dataDictionaryFields: Array<DataDictionaryField>;
|
|
5
|
+
filteredRuleFields: Array<DataDictionaryField>;
|
|
6
|
+
toleranceTypes: Array<ToleranceType>;
|
|
7
|
+
fieldName: string;
|
|
8
|
+
fieldType: FieldType;
|
|
9
|
+
toleranceType: ToleranceType;
|
|
10
|
+
toleranceValue: string;
|
|
11
|
+
isPrimaryKey: boolean;
|
|
12
|
+
mode: RuleMode;
|
|
13
|
+
reconRule: ReconConfigurationRule;
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
dataDictionaryFieldChanged(): void;
|
|
16
|
+
getToleranceTypes(fieldType: any): any[];
|
|
17
|
+
formatToleranceValue(type: any, value: any): any;
|
|
18
|
+
toleranceValChanged(evt: any): void;
|
|
19
|
+
tolTypeChanged(): void;
|
|
20
|
+
togglePrimaryKey(): void;
|
|
21
|
+
adjustDecimalPoints(value: any, parts: any): any;
|
|
22
|
+
convertToAbsolute(value: any): any;
|
|
23
|
+
convertToPercentage(value: any): string;
|
|
24
|
+
resetRule(): void;
|
|
25
|
+
validateTolerance(): boolean;
|
|
26
|
+
addRule(): void;
|
|
27
|
+
deleteRule(): void;
|
|
28
|
+
updateReconRule(): void;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=reconciliation-rule-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconciliation-rule-row.d.ts","sourceRoot":"","sources":["../../../../../src/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA8C,MAAM,uBAAuB,CAAC;AAGnG,OAAO,EACL,mBAAmB,EACnB,SAAS,EACT,sBAAsB,EACtB,aAAa,EACb,QAAQ,EACT,MAAM,+BAA+B,CAAC;AAGvC,qBAKa,qBAAsB,SAAQ,cAAc;IAC3C,oBAAoB,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAM;IACtD,kBAAkB,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAM;IACpD,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,CAAM;IAC1C,SAAS,EAAE,MAAM,CAAQ;IACzB,SAAS,EAAE,SAAS,CAAQ;IAC5B,aAAa,EAAE,aAAa,CAAQ;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,OAAO,CAAS;IAC9B,IAAI,EAAE,QAAQ,CAAgB;IAC9B,SAAS,EAAE,sBAAsB,CAAC;IAC9C,iBAAiB;IAYjB,0BAA0B;IAQ1B,iBAAiB,CAAC,SAAS,KAAA;IAsB3B,oBAAoB,CAAC,IAAI,KAAA,EAAE,KAAK,KAAA;IAWhC,mBAAmB,CAAC,GAAG,KAAA;IAUvB,cAAc;IAOd,gBAAgB;IAOhB,mBAAmB,CAAC,KAAK,KAAA,EAAE,KAAK,KAAA;IAOhC,iBAAiB,CAAC,KAAK,KAAA;IAyBvB,mBAAmB,CAAC,KAAK,KAAA;IAezB,SAAS;IAQT,iBAAiB;IAMjB,OAAO;IAqBP,UAAU;IAIV,eAAe;CAUhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconciliation-rule-row.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B,iDA2DvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconciliation-rule-row.template.d.ts","sourceRoot":"","sources":["../../../../../src/components/configurations-panel/reconciliation-rule-row/reconciliation-rule-row.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAYlE,eAAO,MAAM,6BAA6B,4EAqGzC,CAAC"}
|
|
@@ -20,9 +20,9 @@ export declare class DataDictionaries extends GenesisElement {
|
|
|
20
20
|
connectedCallback(): Promise<void>;
|
|
21
21
|
createDataDictionary(): void;
|
|
22
22
|
editDataDictionary(dataDictionary: DataDictionary): Promise<void>;
|
|
23
|
-
deleteDataDictionary(
|
|
23
|
+
deleteDataDictionary(index: number): Promise<void>;
|
|
24
24
|
clear(): void;
|
|
25
|
-
executeDeleteDictionary(
|
|
25
|
+
executeDeleteDictionary(index: any): Promise<void>;
|
|
26
26
|
loadGrid(): void;
|
|
27
27
|
addField(): void;
|
|
28
28
|
private editRow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-dictionaries.d.ts","sourceRoot":"","sources":["../../../../src/components/data-dictionaries/data-dictionaries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAmC,MAAM,uBAAuB,CAAC;AAGxF,OAAO,EAAE,cAAc,EAAa,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAMtD,oBAAY,uBAAuB;IACjC,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,qBAKa,gBAAiB,SAAQ,cAAc;IAC3B,qBAAqB,EAAE,qBAAqB,CAAC;IAExD,SAAS,EAAE,uBAAuB,CAAQ;IAC1C,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,CAAM;IAEzC,kBAAkB,EAAE,cAAc,CAAQ;IAE1C,cAAc,EAAE,MAAM,CAAQ;IAC9B,SAAS,EAAE,MAAM,CAAQ;IACzB,SAAS,EAAE,MAAM,CAAQ;IAEzB,MAAM,QAAM;IAExB,IAAI,EAAE,OAAO,CAAC;IAER,iBAAiB;IAOvB,oBAAoB;IAQd,kBAAkB,CAAC,cAAc,EAAE,cAAc;
|
|
1
|
+
{"version":3,"file":"data-dictionaries.d.ts","sourceRoot":"","sources":["../../../../src/components/data-dictionaries/data-dictionaries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAmC,MAAM,uBAAuB,CAAC;AAGxF,OAAO,EAAE,cAAc,EAAa,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAMtD,oBAAY,uBAAuB;IACjC,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,qBAKa,gBAAiB,SAAQ,cAAc;IAC3B,qBAAqB,EAAE,qBAAqB,CAAC;IAExD,SAAS,EAAE,uBAAuB,CAAQ;IAC1C,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,CAAM;IAEzC,kBAAkB,EAAE,cAAc,CAAQ;IAE1C,cAAc,EAAE,MAAM,CAAQ;IAC9B,SAAS,EAAE,MAAM,CAAQ;IACzB,SAAS,EAAE,MAAM,CAAQ;IAEzB,MAAM,QAAM;IAExB,IAAI,EAAE,OAAO,CAAC;IAER,iBAAiB;IAOvB,oBAAoB;IAQd,kBAAkB,CAAC,cAAc,EAAE,cAAc;IAWjD,oBAAoB,CAAC,KAAK,EAAE,MAAM;IAexC,KAAK;IAIC,uBAAuB,CAAC,KAAK,KAAA;IAenC,QAAQ;IASR,QAAQ;IAyBR,OAAO,CAAC,OAAO;IAOf,cAAc,CAAC,MAAM,KAAA;IAIrB,WAAW,CAAC,IAAI,KAAA;IAMhB,WAAW;IAIX,KAAK;IASC,MAAM;IA2CN,gBAAgB,CAAC,QAAQ,KAAA;CAShC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-dictionaries.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-dictionaries/data-dictionaries.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data-dictionaries.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-dictionaries/data-dictionaries.styles.ts"],"names":[],"mappings":"AAkFA,eAAO,MAAM,sBAAsB,iDASlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-dictionaries.template.d.ts","sourceRoot":"","sources":["../../../../src/components/data-dictionaries/data-dictionaries.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAA2B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"data-dictionaries.template.d.ts","sourceRoot":"","sources":["../../../../src/components/data-dictionaries/data-dictionaries.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAA2B,MAAM,qBAAqB,CAAC;AAMhF,eAAO,MAAM,wBAAwB,uEAsEpC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GenesisElement } from '@genesislcap/web-core';
|
|
2
|
+
import type { Configuration, DataDictionary } from '../../reconciliation.types';
|
|
3
|
+
export declare class List extends GenesisElement {
|
|
4
|
+
items: Array<Configuration | DataDictionary>;
|
|
5
|
+
selectedItemIndex: number;
|
|
6
|
+
selectedItem: Configuration | DataDictionary;
|
|
7
|
+
idProperty: string;
|
|
8
|
+
nameProperty: string;
|
|
9
|
+
title: string;
|
|
10
|
+
addButtonLabel: string;
|
|
11
|
+
addRecord(): void;
|
|
12
|
+
selectRecord(index: any): void;
|
|
13
|
+
deleteItem(event: any, index: any): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/components/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA6B,MAAM,uBAAuB,CAAC;AAGlF,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAChF,qBAKa,IAAK,SAAQ,cAAc;IAC1B,KAAK,EAAE,KAAK,CAAC,aAAa,GAAG,cAAc,CAAC,CAAM;IAClD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,aAAa,GAAG,cAAc,CAAC;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IAEnC,SAAS;IAIT,YAAY,CAAC,KAAK,KAAA;IAKlB,UAAU,CAAC,KAAK,KAAA,EAAE,KAAK,KAAA;CAIxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/list/list.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,iDAkFtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.template.d.ts","sourceRoot":"","sources":["../../../../src/components/list/list.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,eAAO,MAAM,YAAY,2DA4BxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconciliations-panel.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/reconciliations-panel/reconciliations-panel.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reconciliations-panel.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/reconciliations-panel/reconciliations-panel.styles.ts"],"names":[],"mappings":"AA2KA,eAAO,MAAM,0BAA0B,iDAiBtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAGlD,oBAAY,iBAAiB;IAC3B,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IACnC,gBAAgB,sBAAsB;CACvC;
|
|
1
|
+
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAGlD,oBAAY,iBAAiB;IAC3B,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IACnC,gBAAgB,sBAAsB;CACvC;AAUD,eAAO,MAAM,gCAAgC,+EAqC5C,CAAC"}
|
|
@@ -19,6 +19,10 @@ export declare const ConfigurationMode: {
|
|
|
19
19
|
readonly CREATE: "create";
|
|
20
20
|
readonly EDIT: "edit";
|
|
21
21
|
};
|
|
22
|
+
export declare enum RuleMode {
|
|
23
|
+
ADD = "add",
|
|
24
|
+
EDIT = "edit"
|
|
25
|
+
}
|
|
22
26
|
export type DataDictionary = {
|
|
23
27
|
DICTIONARY_ID: string;
|
|
24
28
|
DICTIONARY_NAME: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconciliation.types.d.ts","sourceRoot":"","sources":["../../src/reconciliation.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IACtC,WAAW,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,UAAU,EAAE,SAAS,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,aAAa,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;CACzB,
|
|
1
|
+
{"version":3,"file":"reconciliation.types.d.ts","sourceRoot":"","sources":["../../src/reconciliation.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/utils/notification.ts"],"names":[],"mappings":"AAEA,wBAAgB,qBAAqB,CAAC,KAAK,KAAA,
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/utils/notification.ts"],"names":[],"mappings":"AAEA,wBAAgB,qBAAqB,CAAC,KAAK,KAAA,QAc1C"}
|
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { showNotificationDialog
|
|
2
|
+
import { showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
3
3
|
import { GenesisElement, customElement, observable } from '@genesislcap/web-core';
|
|
4
4
|
import { ConfigurationsPanelTemplate } from './configurations-panel.template';
|
|
5
5
|
import { ConfigurationsPanelStyles } from './configurations-panel.styles';
|
|
6
|
-
import { ConfigurationMode,
|
|
6
|
+
import { ConfigurationMode, } from '../../reconciliation.types';
|
|
7
7
|
import { ReconciliationConfigurationService } from '../../services/reconciliation-configuration.service';
|
|
8
8
|
import { DataDictionaryService } from '../../services/data-dictionary.service';
|
|
9
9
|
import { logger } from '../../utils';
|
|
10
|
+
import { showNotificationError } from '../../utils/notification';
|
|
10
11
|
let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments);
|
|
13
14
|
this.configurations = [];
|
|
14
15
|
this.dataSources = [];
|
|
15
16
|
this.dataDictionaries = [];
|
|
16
|
-
this.dataDictionaryFields = [];
|
|
17
|
-
this.filteredRuleFields = [];
|
|
18
|
-
this.reconRules = [];
|
|
19
17
|
this.selectedConfiguration = null;
|
|
20
18
|
this.configurationName = null;
|
|
21
19
|
this.dataDictionaryId = '';
|
|
22
20
|
this.showConfigurationDetails = false;
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.toleranceType = null;
|
|
27
|
-
this.isPrimaryKey = false;
|
|
21
|
+
this.reconRules = [];
|
|
22
|
+
this.dataDictionaryFields = [];
|
|
23
|
+
this.filteredRuleFields = [];
|
|
28
24
|
}
|
|
29
25
|
connectedCallback() {
|
|
30
26
|
const _super = Object.create(null, {
|
|
@@ -56,32 +52,8 @@ let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
|
|
|
56
52
|
this.dataDictionaryFields = fields;
|
|
57
53
|
this.filteredRuleFields = fields;
|
|
58
54
|
this.reconRules = [];
|
|
59
|
-
this.fieldName = fields.length > 0 ? fields[0].FIELD_NAME : '';
|
|
60
|
-
this.dataDictionaryFieldChanged();
|
|
61
55
|
});
|
|
62
56
|
}
|
|
63
|
-
dataDictionaryFieldChanged() {
|
|
64
|
-
this.fieldType = this.dataDictionaryFields.find((field) => field.FIELD_NAME === this.fieldName).FIELD_TYPE;
|
|
65
|
-
this.toleranceTypes = this.getToleranceTypes(this.fieldType);
|
|
66
|
-
this.toleranceType = this.toleranceTypes[0];
|
|
67
|
-
}
|
|
68
|
-
getToleranceTypes(fieldType) {
|
|
69
|
-
let toleranceTypes = [];
|
|
70
|
-
switch (fieldType) {
|
|
71
|
-
case FieldType.DATE:
|
|
72
|
-
toleranceTypes = [ToleranceType.DAYS];
|
|
73
|
-
break;
|
|
74
|
-
case FieldType.DATETIME:
|
|
75
|
-
toleranceTypes = [ToleranceType.MINUTES];
|
|
76
|
-
break;
|
|
77
|
-
case (FieldType.INT, FieldType.BIGDECIMAL):
|
|
78
|
-
toleranceTypes = [ToleranceType.ABSOLUTE, ToleranceType.PERCENTAGE, ToleranceType.EQUALITY];
|
|
79
|
-
break;
|
|
80
|
-
default:
|
|
81
|
-
toleranceTypes = [ToleranceType.EQUALITY];
|
|
82
|
-
}
|
|
83
|
-
return toleranceTypes;
|
|
84
|
-
}
|
|
85
57
|
addConfiguration() {
|
|
86
58
|
this.configurationMode = ConfigurationMode.CREATE;
|
|
87
59
|
this.reset();
|
|
@@ -102,6 +74,7 @@ let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
|
|
|
102
74
|
}
|
|
103
75
|
selectConfiguration(configuration) {
|
|
104
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
this.reset();
|
|
105
78
|
this.configurationMode = ConfigurationMode.EDIT;
|
|
106
79
|
this.selectedConfiguration = configuration;
|
|
107
80
|
this.configurationName = configuration.NAME;
|
|
@@ -114,7 +87,6 @@ let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
|
|
|
114
87
|
return Object.assign(Object.assign({}, rule), { FIELD_TYPE: this.dataDictionaryFields.find((field) => field.FIELD_NAME === rule.FIELD_NAME).FIELD_TYPE });
|
|
115
88
|
}) || [];
|
|
116
89
|
this.filterReconRuleFields();
|
|
117
|
-
this.resetRule();
|
|
118
90
|
const dataSourceConfig = yield this.reconciliationConfigurationService.getReconciliationDatasourceConfiguration(configuration.RECONCILIATION_CONFIG_ID);
|
|
119
91
|
this.dataSources = dataSourceConfig;
|
|
120
92
|
if (this.matchNullValue) {
|
|
@@ -123,8 +95,7 @@ let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
|
|
|
123
95
|
this.showConfigurationDetails = true;
|
|
124
96
|
});
|
|
125
97
|
}
|
|
126
|
-
deleteConfiguration(
|
|
127
|
-
evt.stopPropagation();
|
|
98
|
+
deleteConfiguration(index) {
|
|
128
99
|
showNotificationDialog({
|
|
129
100
|
title: 'Confirm Delete',
|
|
130
101
|
body: `Do you really want to delete "${this.configurations[index].NAME}"?`,
|
|
@@ -161,24 +132,20 @@ let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
|
|
|
161
132
|
return Object.assign(Object.assign({}, dataSource), { NAME: `${dataSource.NAME} ${index + 1}`, INDEX: index });
|
|
162
133
|
});
|
|
163
134
|
}
|
|
164
|
-
showErrorNotification(title, body) {
|
|
165
|
-
showNotification({
|
|
166
|
-
title,
|
|
167
|
-
body,
|
|
168
|
-
config: {
|
|
169
|
-
snackbar: {
|
|
170
|
-
type: 'error',
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
}, 'rapid');
|
|
174
|
-
}
|
|
175
135
|
saveConfiguration() {
|
|
176
136
|
if (!this.configurationName || !this.dataDictionaryId || this.dataSources.length === 0) {
|
|
177
|
-
|
|
137
|
+
showNotificationError([
|
|
138
|
+
{ CODE: 'Missing fields', TEXT: 'Please fill in all required fields.' },
|
|
139
|
+
]);
|
|
178
140
|
return;
|
|
179
141
|
}
|
|
180
142
|
if (this.dataSources.length > 2) {
|
|
181
|
-
|
|
143
|
+
showNotificationError([
|
|
144
|
+
{
|
|
145
|
+
CODE: 'Datasources limit exceeded',
|
|
146
|
+
TEXT: 'Only 2 datasources are allowed for a configuration.',
|
|
147
|
+
},
|
|
148
|
+
]);
|
|
182
149
|
return;
|
|
183
150
|
}
|
|
184
151
|
let reqObject;
|
|
@@ -214,18 +181,6 @@ let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
|
|
|
214
181
|
logger.error(`Unknown operation ${this.configurationMode}`);
|
|
215
182
|
}
|
|
216
183
|
}
|
|
217
|
-
showNotificationError(error) {
|
|
218
|
-
var _a, _b;
|
|
219
|
-
showNotification({
|
|
220
|
-
title: (_a = error[0]) === null || _a === void 0 ? void 0 : _a.CODE,
|
|
221
|
-
body: (_b = error[0]) === null || _b === void 0 ? void 0 : _b.TEXT,
|
|
222
|
-
config: {
|
|
223
|
-
snackbar: {
|
|
224
|
-
type: 'error',
|
|
225
|
-
},
|
|
226
|
-
},
|
|
227
|
-
}, 'rapid');
|
|
228
|
-
}
|
|
229
184
|
validateResponse(response) {
|
|
230
185
|
return __awaiter(this, void 0, void 0, function* () {
|
|
231
186
|
if (response.MESSAGE_TYPE === 'EVENT_ACK') {
|
|
@@ -234,112 +189,31 @@ let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
|
|
|
234
189
|
yield this.setConfigurations();
|
|
235
190
|
return;
|
|
236
191
|
}
|
|
237
|
-
|
|
192
|
+
showNotificationError(response.ERROR);
|
|
238
193
|
});
|
|
239
194
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
195
|
+
addReconRule(rule) {
|
|
196
|
+
if (this.reconRules.some((r) => r.FIELD_NAME === rule.FIELD_NAME)) {
|
|
197
|
+
showNotificationError([
|
|
198
|
+
{
|
|
199
|
+
CODE: 'Duplicate Field',
|
|
200
|
+
TEXT: 'Field already exists in the reconciliation rules.',
|
|
201
|
+
},
|
|
202
|
+
]);
|
|
246
203
|
return;
|
|
247
204
|
}
|
|
248
|
-
const rule = {
|
|
249
|
-
FIELD_NAME: this.fieldName,
|
|
250
|
-
FIELD_TYPE: this.fieldType,
|
|
251
|
-
TOLERANCE_TYPE: this.toleranceType,
|
|
252
|
-
TOLERANCE_VALUE: this.toleranceValue || null,
|
|
253
|
-
IS_PRIMARY_KEY: this.isPrimaryKey,
|
|
254
|
-
};
|
|
255
205
|
this.reconRules.push(rule);
|
|
256
206
|
this.filterReconRuleFields();
|
|
257
|
-
this.resetRule();
|
|
258
207
|
}
|
|
259
208
|
filterReconRuleFields() {
|
|
260
209
|
this.filteredRuleFields = this.dataDictionaryFields.filter((field) => !this.reconRules.some((rule) => rule.FIELD_NAME === field.FIELD_NAME));
|
|
261
210
|
}
|
|
262
|
-
resetRule() {
|
|
263
|
-
this.fieldName =
|
|
264
|
-
this.filteredRuleFields.length > 0 ? this.filteredRuleFields[0].FIELD_NAME : '';
|
|
265
|
-
this.fieldType =
|
|
266
|
-
this.filteredRuleFields.length > 0 ? this.filteredRuleFields[0].FIELD_TYPE : null;
|
|
267
|
-
this.toleranceTypes = this.getToleranceTypes(this.fieldType);
|
|
268
|
-
this.toleranceType = this.toleranceTypes.length > 0 ? this.toleranceTypes[0] : null;
|
|
269
|
-
this.toleranceValue = null;
|
|
270
|
-
this.isPrimaryKey = false;
|
|
271
|
-
}
|
|
272
211
|
removeRule(index) {
|
|
273
212
|
this.reconRules.splice(index, 1);
|
|
274
213
|
this.filterReconRuleFields();
|
|
275
214
|
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
const ruleObject = Object.assign(Object.assign({}, this.reconRules[index]), { TOLERANCE_TYPE: value, TOLERANCE_VALUE: null });
|
|
279
|
-
this.reconRules.splice(index, 1, ruleObject);
|
|
280
|
-
}
|
|
281
|
-
gridToleranceValueChanged(evt, index) {
|
|
282
|
-
const { value } = evt.target;
|
|
283
|
-
const toleanceValue = this.formatToleranceValue(this.reconRules[index].TOLERANCE_TYPE, value);
|
|
284
|
-
const ruleObject = Object.assign(Object.assign({}, this.reconRules[index]), { TOLERANCE_VALUE: toleanceValue });
|
|
285
|
-
this.reconRules.splice(index, 1, ruleObject);
|
|
286
|
-
}
|
|
287
|
-
formatToleranceValue(type, value) {
|
|
288
|
-
if (type === ToleranceType.ABSOLUTE) {
|
|
289
|
-
value = this.convertToAbsolute(value);
|
|
290
|
-
}
|
|
291
|
-
else if (type === ToleranceType.PERCENTAGE) {
|
|
292
|
-
value = this.convertToPercentage(value);
|
|
293
|
-
}
|
|
294
|
-
else if (type === ToleranceType.DAYS || this.toleranceType === ToleranceType.MINUTES) {
|
|
295
|
-
value = value.replace(/[^0-9]/g, '');
|
|
296
|
-
}
|
|
297
|
-
return value;
|
|
298
|
-
}
|
|
299
|
-
toleranceValChanged(evt) {
|
|
300
|
-
const { value } = evt.target;
|
|
301
|
-
this.toleranceValue = this.formatToleranceValue(this.toleranceType, value);
|
|
302
|
-
}
|
|
303
|
-
adjustDecimalPoints(value, parts) {
|
|
304
|
-
if (parts.length > 2) {
|
|
305
|
-
value = parts[0] + '.' + parts.slice(1).join('');
|
|
306
|
-
}
|
|
307
|
-
return value;
|
|
308
|
-
}
|
|
309
|
-
convertToAbsolute(value) {
|
|
310
|
-
const parts = value.split('.');
|
|
311
|
-
value = this.adjustDecimalPoints(value, parts);
|
|
312
|
-
const digitsCount = value.replace(/\./g, '').length;
|
|
313
|
-
if (digitsCount > 8) {
|
|
314
|
-
if (parts.length > 1) {
|
|
315
|
-
const integerPart = parts[0];
|
|
316
|
-
const fractionalPart = parts[1];
|
|
317
|
-
if (integerPart.length >= 8) {
|
|
318
|
-
value = integerPart.slice(0, 8);
|
|
319
|
-
}
|
|
320
|
-
else {
|
|
321
|
-
const remainingDigits = 8 - integerPart.length;
|
|
322
|
-
value = integerPart + '.' + fractionalPart.slice(0, remainingDigits);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
else {
|
|
326
|
-
value = value.slice(0, 8);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
return value;
|
|
330
|
-
}
|
|
331
|
-
convertToPercentage(value) {
|
|
332
|
-
const parts = value.split('.');
|
|
333
|
-
value = this.adjustDecimalPoints(value, parts);
|
|
334
|
-
if (parts.length === 2) {
|
|
335
|
-
parts[1] = parts[1].slice(0, 2);
|
|
336
|
-
value = parts[0] + '.' + parts[1];
|
|
337
|
-
}
|
|
338
|
-
let numericValue = parseFloat(value);
|
|
339
|
-
if (isNaN(numericValue) || numericValue < 0 || numericValue > 100) {
|
|
340
|
-
numericValue = null;
|
|
341
|
-
}
|
|
342
|
-
return numericValue !== null ? numericValue.toString() : '0';
|
|
215
|
+
updateRule(rule, index) {
|
|
216
|
+
this.reconRules.splice(index, 1, rule);
|
|
343
217
|
}
|
|
344
218
|
};
|
|
345
219
|
__decorate([
|
|
@@ -357,15 +231,6 @@ __decorate([
|
|
|
357
231
|
__decorate([
|
|
358
232
|
observable
|
|
359
233
|
], ConfigurationsPanel.prototype, "dataDictionaries", void 0);
|
|
360
|
-
__decorate([
|
|
361
|
-
observable
|
|
362
|
-
], ConfigurationsPanel.prototype, "dataDictionaryFields", void 0);
|
|
363
|
-
__decorate([
|
|
364
|
-
observable
|
|
365
|
-
], ConfigurationsPanel.prototype, "filteredRuleFields", void 0);
|
|
366
|
-
__decorate([
|
|
367
|
-
observable
|
|
368
|
-
], ConfigurationsPanel.prototype, "reconRules", void 0);
|
|
369
234
|
__decorate([
|
|
370
235
|
observable
|
|
371
236
|
], ConfigurationsPanel.prototype, "selectedConfiguration", void 0);
|
|
@@ -386,25 +251,16 @@ __decorate([
|
|
|
386
251
|
], ConfigurationsPanel.prototype, "showConfigurationDetails", void 0);
|
|
387
252
|
__decorate([
|
|
388
253
|
observable
|
|
389
|
-
], ConfigurationsPanel.prototype, "
|
|
390
|
-
__decorate([
|
|
391
|
-
observable
|
|
392
|
-
], ConfigurationsPanel.prototype, "fieldName", void 0);
|
|
393
|
-
__decorate([
|
|
394
|
-
observable
|
|
395
|
-
], ConfigurationsPanel.prototype, "fieldType", void 0);
|
|
396
|
-
__decorate([
|
|
397
|
-
observable
|
|
398
|
-
], ConfigurationsPanel.prototype, "toleranceType", void 0);
|
|
254
|
+
], ConfigurationsPanel.prototype, "matchNullValue", void 0);
|
|
399
255
|
__decorate([
|
|
400
256
|
observable
|
|
401
|
-
], ConfigurationsPanel.prototype, "
|
|
257
|
+
], ConfigurationsPanel.prototype, "reconRules", void 0);
|
|
402
258
|
__decorate([
|
|
403
259
|
observable
|
|
404
|
-
], ConfigurationsPanel.prototype, "
|
|
260
|
+
], ConfigurationsPanel.prototype, "dataDictionaryFields", void 0);
|
|
405
261
|
__decorate([
|
|
406
262
|
observable
|
|
407
|
-
], ConfigurationsPanel.prototype, "
|
|
263
|
+
], ConfigurationsPanel.prototype, "filteredRuleFields", void 0);
|
|
408
264
|
ConfigurationsPanel = __decorate([
|
|
409
265
|
customElement({
|
|
410
266
|
name: 'configurations-panel',
|