@genesislcap/pbc-reconciliation-ui 0.0.13 → 0.0.15

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.
Files changed (93) hide show
  1. package/.gradle/8.3/executionHistory/executionHistory.bin +0 -0
  2. package/.gradle/8.3/executionHistory/executionHistory.lock +0 -0
  3. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  4. package/.gradle/buildOutputCleanup/cache.properties +1 -1
  5. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  6. package/.gradle/file-system.probe +0 -0
  7. package/build/distributions/web-distribution.tar +0 -0
  8. package/build/distributions/web-distribution.zip +0 -0
  9. package/dist/dts/components/configurations-panel/configurations-panel.d.ts +25 -2
  10. package/dist/dts/components/configurations-panel/configurations-panel.d.ts.map +1 -1
  11. package/dist/dts/components/configurations-panel/configurations-panel.styles.d.ts.map +1 -1
  12. package/dist/dts/components/configurations-panel/configurations-panel.template.d.ts.map +1 -1
  13. package/dist/dts/components/configurations-panel/recon-rules-columns.d.ts +1 -0
  14. package/dist/dts/components/configurations-panel/recon-rules-columns.d.ts.map +1 -0
  15. package/dist/dts/components/data-dictionaries/data-dictionaries-utils.d.ts +2 -0
  16. package/dist/dts/components/data-dictionaries/data-dictionaries-utils.d.ts.map +1 -0
  17. package/dist/dts/components/data-dictionaries/data-dictionaries.d.ts +3 -1
  18. package/dist/dts/components/data-dictionaries/data-dictionaries.d.ts.map +1 -1
  19. package/dist/dts/components/data-dictionaries/data-dictionaries.styles.d.ts.map +1 -1
  20. package/dist/dts/components/rapid-components.d.ts.map +1 -1
  21. package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.d.ts +4 -3
  22. package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.d.ts.map +1 -1
  23. package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.template.d.ts +1 -1
  24. package/dist/dts/components/reconciliations-panel/input-parameter/input-parameter.template.d.ts.map +1 -1
  25. package/dist/dts/components/reconciliations-panel/reconciliations-panel.d.ts +5 -1
  26. package/dist/dts/components/reconciliations-panel/reconciliations-panel.d.ts.map +1 -1
  27. package/dist/dts/components/zero-components.d.ts.map +1 -1
  28. package/dist/dts/config/templates.d.ts +2 -0
  29. package/dist/dts/config/templates.d.ts.map +1 -1
  30. package/dist/dts/main/main.d.ts +9 -0
  31. package/dist/dts/main/main.d.ts.map +1 -1
  32. package/dist/dts/main/main.template.d.ts.map +1 -1
  33. package/dist/dts/reconciliation.types.d.ts +14 -4
  34. package/dist/dts/reconciliation.types.d.ts.map +1 -1
  35. package/dist/dts/tags/tags.d.ts +2 -0
  36. package/dist/dts/tags/tags.d.ts.map +1 -1
  37. package/dist/esm/components/configurations-panel/configurations-panel.js +192 -8
  38. package/dist/esm/components/configurations-panel/configurations-panel.js.map +1 -1
  39. package/dist/esm/components/configurations-panel/configurations-panel.styles.js +108 -4
  40. package/dist/esm/components/configurations-panel/configurations-panel.styles.js.map +1 -1
  41. package/dist/esm/components/configurations-panel/configurations-panel.template.js +108 -4
  42. package/dist/esm/components/configurations-panel/configurations-panel.template.js.map +1 -1
  43. package/dist/esm/components/configurations-panel/recon-rules-columns.js +1 -0
  44. package/dist/esm/components/configurations-panel/recon-rules-columns.js.map +1 -0
  45. package/dist/esm/components/data-dictionaries/data-dictionaries-utils.js +27 -0
  46. package/dist/esm/components/data-dictionaries/data-dictionaries-utils.js.map +1 -0
  47. package/dist/esm/components/data-dictionaries/data-dictionaries.js +21 -45
  48. package/dist/esm/components/data-dictionaries/data-dictionaries.js.map +1 -1
  49. package/dist/esm/components/data-dictionaries/data-dictionaries.styles.js +38 -36
  50. package/dist/esm/components/data-dictionaries/data-dictionaries.styles.js.map +1 -1
  51. package/dist/esm/components/data-dictionaries/data-dictionaries.template.js +17 -17
  52. package/dist/esm/components/data-dictionaries/data-dictionaries.template.js.map +1 -1
  53. package/dist/esm/components/rapid-components.js +3 -2
  54. package/dist/esm/components/rapid-components.js.map +1 -1
  55. package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.js +18 -12
  56. package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.js.map +1 -1
  57. package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.template.js +6 -6
  58. package/dist/esm/components/reconciliations-panel/input-parameter/input-parameter.template.js.map +1 -1
  59. package/dist/esm/components/reconciliations-panel/reconciliations-panel.js +13 -2
  60. package/dist/esm/components/reconciliations-panel/reconciliations-panel.js.map +1 -1
  61. package/dist/esm/components/reconciliations-panel/reconciliations-panel.styles.js.map +1 -1
  62. package/dist/esm/components/zero-components.js +2 -2
  63. package/dist/esm/components/zero-components.js.map +1 -1
  64. package/dist/esm/config/templates.js +2 -0
  65. package/dist/esm/config/templates.js.map +1 -1
  66. package/dist/esm/main/main.js +24 -1
  67. package/dist/esm/main/main.js.map +1 -1
  68. package/dist/esm/main/main.template.js +6 -3
  69. package/dist/esm/main/main.template.js.map +1 -1
  70. package/dist/esm/reconciliation.types.js +8 -0
  71. package/dist/esm/reconciliation.types.js.map +1 -1
  72. package/dist/esm/tags/tags.js +2 -0
  73. package/dist/esm/tags/tags.js.map +1 -1
  74. package/package.json +1 -1
  75. package/src/components/configurations-panel/configurations-panel.styles.ts +115 -4
  76. package/src/components/configurations-panel/configurations-panel.template.ts +134 -3
  77. package/src/components/configurations-panel/configurations-panel.ts +213 -15
  78. package/src/components/configurations-panel/recon-rules-columns.ts +117 -0
  79. package/src/components/data-dictionaries/data-dictionaries-utils.ts +39 -0
  80. package/src/components/data-dictionaries/data-dictionaries.styles.ts +38 -36
  81. package/src/components/data-dictionaries/data-dictionaries.template.ts +17 -17
  82. package/src/components/data-dictionaries/data-dictionaries.ts +39 -57
  83. package/src/components/rapid-components.ts +24 -19
  84. package/src/components/reconciliations-panel/input-parameter/input-parameter.template.ts +11 -8
  85. package/src/components/reconciliations-panel/input-parameter/input-parameter.ts +21 -21
  86. package/src/components/reconciliations-panel/reconciliations-panel.styles.ts +2 -2
  87. package/src/components/reconciliations-panel/reconciliations-panel.ts +17 -6
  88. package/src/components/zero-components.ts +4 -0
  89. package/src/config/templates.ts +4 -0
  90. package/src/main/main.template.ts +5 -2
  91. package/src/main/main.ts +29 -1
  92. package/src/reconciliation.types.ts +18 -8
  93. package/src/tags/tags.ts +10 -0
@@ -1,2 +1,2 @@
1
- #Wed Jun 26 11:16:02 UTC 2024
1
+ #Fri Jun 28 13:07:34 UTC 2024
2
2
  gradle.version=8.3
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, Datasource, DatasourceType, ReconConfigurationRule } from '../../reconciliation.types';
3
+ import { Configuration, ConfigurationMode, DataDictionary, DataDictionaryField, Datasource, DatasourceType, FieldType, ReconConfigurationRule, ToleranceType } 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,6 +9,8 @@ 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>;
12
14
  reconRules: Array<ReconConfigurationRule>;
13
15
  selectedConfiguration: Configuration;
14
16
  configurationName: string;
@@ -16,10 +18,19 @@ export declare class ConfigurationsPanel extends GenesisElement {
16
18
  dataDictionaryId: string;
17
19
  configurationMode: (typeof ConfigurationMode)[keyof typeof ConfigurationMode];
18
20
  showConfigurationDetails: boolean;
21
+ toleranceTypes: Array<ToleranceType>;
22
+ fieldName: string;
23
+ fieldType: FieldType;
24
+ toleranceType: ToleranceType;
25
+ toleranceValue: string;
26
+ isPrimaryKey: boolean;
19
27
  matchNullValue: Switch;
20
28
  connectedCallback(): Promise<void>;
21
29
  setConfigurations(): Promise<void>;
22
30
  setDataDictionaries(): Promise<void>;
31
+ dataDictionaryChanged(): Promise<void>;
32
+ dataDictionaryFieldChanged(): void;
33
+ getToleranceTypes(fieldType: any): any[];
23
34
  addConfiguration(): void;
24
35
  reset(): void;
25
36
  selectConfiguration(configuration: Configuration): Promise<void>;
@@ -34,6 +45,18 @@ export declare class ConfigurationsPanel extends GenesisElement {
34
45
  showErrorNotification(title: any, body: any): void;
35
46
  saveConfiguration(): void;
36
47
  showNotificationError(error: any): void;
37
- validateResponse(response: any): void;
48
+ validateResponse(response: any): Promise<void>;
49
+ validateTolerance(): boolean;
50
+ addReconRule(): void;
51
+ filterReconRuleFields(): void;
52
+ resetRule(): void;
53
+ removeRule(index: any): void;
54
+ resetGridToleranceValue(evt: any, index: any): void;
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;
38
61
  }
39
62
  //# 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,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;AAG/E,qBAKa,mBAAoB,SAAQ,cAAc;IACjB,kCAAkC,EAAE,kCAAkC,CAAC;IACpF,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;IAC7C,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAC/C,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;IAE7B,iBAAiB;IAMjB,iBAAiB;IAIjB,mBAAmB;IAIzB,gBAAgB;IAMhB,KAAK;IAUC,mBAAmB,CAAC,aAAa,EAAE,aAAa;IAmBtD,mBAAmB,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM;IA+BnD,aAAa,CAAC,cAAc,EAAE,cAAc;IAI5C,gBAAgB,CAAC,KAAK,EAAE,MAAM;IAM9B,oBAAoB;;;;;IAUpB,qBAAqB,CAAC,KAAK,KAAA,EAAE,IAAI,KAAA;IAejC,iBAAiB;IA8CjB,qBAAqB,CAAC,KAAK,KAAA;IAe3B,gBAAgB,CAAC,QAAQ,KAAA;CAU1B"}
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,SAA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AE,aAAa;IAiCtD,mBAAmB,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM;IAgCnD,aAAa,CAAC,cAAc,EAAE,cAAc;IAI5C,gBAAgB,CAAC,KAAK,EAAE,MAAM;IAM9B,oBAAoB;;;;;IAUpB,qBAAqB,CAAC,KAAK,KAAA,EAAE,IAAI,KAAA;IAejC,iBAAiB;IA8CjB,qBAAqB,CAAC,KAAK,KAAA;IAerB,gBAAgB,CAAC,QAAQ,KAAA;IAW/B,iBAAiB;IAMjB,YAAY;IAoBZ,qBAAqB;IAMrB,SAAS;IAWT,UAAU,CAAC,KAAK,KAAA;IAKhB,uBAAuB,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;IAUlC,yBAAyB,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;IAUpC,oBAAoB,CAAC,IAAI,KAAA,EAAE,KAAK,KAAA;IAWhC,mBAAmB,CAAC,GAAG,KAAA;IAKvB,mBAAmB,CAAC,KAAK,KAAA,EAAE,KAAK,KAAA;IAOhC,iBAAiB,CAAC,KAAK,KAAA;IAsBvB,mBAAmB,CAAC,KAAK,KAAA;CAc1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"configurations-panel.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.styles.ts"],"names":[],"mappings":"AAoQA,eAAO,MAAM,yBAAyB,iDAqBrC,CAAC"}
1
+ {"version":3,"file":"configurations-panel.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.styles.ts"],"names":[],"mappings":"AAmXA,eAAO,MAAM,yBAAyB,iDAqBrC,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;AAe7D,eAAO,MAAM,2BAA2B,0EAkJvC,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;AAuB7D,eAAO,MAAM,2BAA2B,0EA6QvC,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=recon-rules-columns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recon-rules-columns.d.ts","sourceRoot":"","sources":["../../../../src/components/configurations-panel/recon-rules-columns.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare function createNotificationDialog(context: any, title: string, body: string, labelDismissing: string, actionDismissing: any, labelConfirming: string, actionConfirming: any, actionParams?: Array<any>): void;
2
+ //# sourceMappingURL=data-dictionaries-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-dictionaries-utils.d.ts","sourceRoot":"","sources":["../../../../src/components/data-dictionaries/data-dictionaries-utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,GAAG,EACZ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,eAAe,EAAE,MAAM,EACvB,gBAAgB,EAAE,GAAG,EACrB,eAAe,EAAE,MAAM,EACvB,gBAAgB,EAAE,GAAG,EACrB,YAAY,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,QA4B1B"}
@@ -18,9 +18,11 @@ export declare class DataDictionaries extends GenesisElement {
18
18
  fields: any[];
19
19
  grid: GridPro;
20
20
  connectedCallback(): Promise<void>;
21
- newDataDictionary(): void;
21
+ createDataDictionary(): void;
22
22
  editDataDictionary(dataDictionary: DataDictionary): Promise<void>;
23
23
  deleteDataDictionary(dataDictionary: DataDictionary): Promise<void>;
24
+ clear(): void;
25
+ executeDeleteDictionary(dataDictionary: any): Promise<void>;
24
26
  loadGrid(): void;
25
27
  addField(): void;
26
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,iBAAiB;IAQX,kBAAkB,CAAC,cAAc,EAAE,cAAc;IAcjD,oBAAoB,CAAC,cAAc,EAAE,cAAc;IAwCzD,QAAQ;IASR,QAAQ;IAmCR,OAAO,CAAC,OAAO;IAOf,cAAc,CAAC,MAAM,KAAA;IAIrB,WAAW,CAAC,IAAI,KAAA;IAMhB,WAAW;IAIX,KAAK;IAYC,MAAM;IA2CN,gBAAgB,CAAC,QAAQ,KAAA;CAShC"}
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;IAcjD,oBAAoB,CAAC,cAAc,EAAE,cAAc;IAczD,KAAK;IAIC,uBAAuB,CAAC,cAAc,KAAA;IAiB5C,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":"AA2JA,eAAO,MAAM,sBAAsB,iDAUlC,CAAC"}
1
+ {"version":3,"file":"data-dictionaries.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-dictionaries/data-dictionaries.styles.ts"],"names":[],"mappings":"AA6JA,eAAO,MAAM,sBAAsB,iDAUlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"rapid-components.d.ts","sourceRoot":"","sources":["../../../src/components/rapid-components.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,6BAA6B,qBAuBzC,CAAC"}
1
+ {"version":3,"file":"rapid-components.d.ts","sourceRoot":"","sources":["../../../src/components/rapid-components.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,6BAA6B,qBA0BzC,CAAC"}
@@ -1,6 +1,6 @@
1
- import { GenesisElement } from "@genesislcap/web-core";
2
- import { DocumentService } from "../../../services/document.service";
3
- import { DatasourceConfiguration } from "../../../reconciliation.types";
1
+ import { GenesisElement } from '@genesislcap/web-core';
2
+ import { DocumentService } from '../../../services/document.service';
3
+ import { DatasourceConfiguration } from '../../../reconciliation.types';
4
4
  export declare enum ShowHideUpload {
5
5
  CHEVRON_RIGHT = "chevron-right",
6
6
  CHEVRON_DOWN = "chevron-down"
@@ -25,6 +25,7 @@ export declare class InputParameter extends GenesisElement {
25
25
  toggleChevron(): void;
26
26
  loadFile(): void;
27
27
  private fileSelected;
28
+ private uploadFile;
28
29
  }
29
30
  export {};
30
31
  //# sourceMappingURL=input-parameter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-parameter.d.ts","sourceRoot":"","sources":["../../../../../src/components/reconciliations-panel/input-parameter/input-parameter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAmC,MAAM,uBAAuB,CAAC;AAI7F,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAExE,oBAAY,cAAc;IACxB,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;CAC9B;AAED,aAAK,qBAAqB;IACxB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;CAC9B;AAED,qBAKa,cAAe,SAAQ,cAAc;IAE/B,eAAe,EAAE,eAAe,CAAC;IAElD,MAAM,CAAC,QAAQ,CAAC,gBAAgB,sBAAsB;IAEpC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,MAAM,EAAE,OAAO,CAAS;IAE9B,cAAc,EAAE,MAAM,CAAC;IAEvB,cAAc,EAAE,cAAc,CAAgC;IAC9D,qBAAqB,EAAE,qBAAqB,CAAqC;IACjF,QAAQ,MAAQ;IAErB,UAAU,EAAE,gBAAgB,CAAC;IACpC,OAAO,CAAC,IAAI,CAAM;IAElB,iBAAiB;IAYjB,8BAA8B;IAS9B,aAAa;IAMb,QAAQ;YAIM,YAAY;CAwB3B"}
1
+ {"version":3,"file":"input-parameter.d.ts","sourceRoot":"","sources":["../../../../../src/components/reconciliations-panel/input-parameter/input-parameter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAmC,MAAM,uBAAuB,CAAC;AAI7F,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAExE,oBAAY,cAAc;IACxB,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;CAC9B;AAED,aAAK,qBAAqB;IACxB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;CAC9B;AAED,qBAKa,cAAe,SAAQ,cAAc;IAC/B,eAAe,EAAE,eAAe,CAAC;IAElD,MAAM,CAAC,QAAQ,CAAC,gBAAgB,sBAAsB;IAEpC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,MAAM,EAAE,OAAO,CAAS;IAE9B,cAAc,EAAE,MAAM,CAAC;IAEvB,cAAc,EAAE,cAAc,CAAgC;IAC9D,qBAAqB,EAAE,qBAAqB,CAAqC;IACjF,QAAQ,MAAQ;IAErB,UAAU,EAAE,gBAAgB,CAAC;IACpC,OAAO,CAAC,IAAI,CAAM;IAElB,iBAAiB;IAYjB,8BAA8B;IAS9B,aAAa;IAOb,QAAQ;YAIM,YAAY;YAQZ,UAAU;CAgBzB"}
@@ -1,3 +1,3 @@
1
- import { InputParameter } from "./input-parameter";
1
+ import { InputParameter } from './input-parameter';
2
2
  export declare const InputParameterTemplate: import("@microsoft/fast-element").ViewTemplate<InputParameter, any>;
3
3
  //# sourceMappingURL=input-parameter.template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-parameter.template.d.ts","sourceRoot":"","sources":["../../../../../src/components/reconciliations-panel/input-parameter/input-parameter.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAkB,MAAM,mBAAmB,CAAC;AAInE,eAAO,MAAM,sBAAsB,qEA4BlC,CAAC"}
1
+ {"version":3,"file":"input-parameter.template.d.ts","sourceRoot":"","sources":["../../../../../src/components/reconciliations-panel/input-parameter/input-parameter.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAkB,MAAM,mBAAmB,CAAC;AAInE,eAAO,MAAM,sBAAsB,qEA+BlC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { GenesisElement } from '@genesislcap/web-core';
2
2
  import { DatasourceConfiguration, Reconciliation } from '../../reconciliation.types';
3
- import { GridPro } from '@genesislcap/rapid-grid-pro';
3
+ import { GridPro, GridProGenesisDatasource } from '@genesislcap/rapid-grid-pro';
4
4
  import { ReconciliationConfigurationService } from '../../services/reconciliation-configuration.service';
5
5
  import { ReconciliationService } from '../../services/reconciliation.service';
6
6
  export declare class ReconciliationsPanel extends GenesisElement {
@@ -21,7 +21,11 @@ export declare class ReconciliationsPanel extends GenesisElement {
21
21
  criteria: string;
22
22
  files: Map<string, any>;
23
23
  grid: GridPro;
24
+ datasource: GridProGenesisDatasource;
25
+ reconciliationSubscription: any;
24
26
  connectedCallback(): Promise<void>;
27
+ setReconciliationConfigurations(): Promise<void>;
28
+ disconnectedCallback(): void;
25
29
  getReconciliations(): void;
26
30
  filterAndSortReconciliations(reconciliations: any): void;
27
31
  filterHistoricalReconciliations(remainingStatuses: Array<Reconciliation>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"reconciliations-panel.d.ts","sourceRoot":"","sources":["../../../../src/components/reconciliations-panel/reconciliations-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAA6B,MAAM,uBAA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;IAkB5C,+BAA+B,CAAC,iBAAiB,EAAE,KAAK,CAAC,cAAc,CAAC;IAkBlE,oBAAoB,CAAC,cAAc,EAAE,cAAc;IAsBnD,iBAAiB;IASjB,iBAAiB;IAkBvB,4BAA4B;IAEtB,oBAAoB;IAQ1B,YAAY,CAAC,iBAAiB,KAAA;IAKxB,WAAW;CASlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"zero-components.d.ts","sourceRoot":"","sources":["../../../src/components/zero-components.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,4BAA4B,qBAwBxC,CAAC"}
1
+ {"version":3,"file":"zero-components.d.ts","sourceRoot":"","sources":["../../../src/components/zero-components.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,4BAA4B,qBA0BxC,CAAC"}
@@ -14,6 +14,8 @@ export type TemplateComponents = {
14
14
  tabs: TemplateElementDependency;
15
15
  tab: TemplateElementDependency;
16
16
  tabPanel: TemplateElementDependency;
17
+ numberField: TemplateElementDependency;
18
+ checkbox: TemplateElementDependency;
17
19
  switch: TemplateElementDependency;
18
20
  };
19
21
  export type TemplateOptions = Partial<TemplateComponents> & {
@@ -1 +1 @@
1
- {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/config/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAMzF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,yBAAyB,CAAC;IAClC,OAAO,EAAE,yBAAyB,CAAC;IACnC,IAAI,EAAE,yBAAyB,CAAC;IAChC,IAAI,EAAE,yBAAyB,CAAC;IAChC,MAAM,EAAE,yBAAyB,CAAC;IAClC,QAAQ,EAAE,yBAAyB,CAAC;IACpC,YAAY,EAAE,yBAAyB,CAAC;IACxC,SAAS,EAAE,yBAAyB,CAAC;IACrC,MAAM,EAAE,yBAAyB,CAAC;IAClC,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,aAAa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AM,sBAAsB,EAAE,eAkBpC,CAAC"}
@@ -1,6 +1,15 @@
1
1
  import { GenesisElement } from '@genesislcap/web-core';
2
+ import { ReconciliationTab } from './main.template';
3
+ import { DataDictionaries } from '../components/data-dictionaries/data-dictionaries';
4
+ import { ConfigurationsPanel } from '../components/configurations-panel/configurations-panel';
5
+ import { ReconciliationsPanel } from '../components/reconciliations-panel/reconciliations-panel';
2
6
  export declare class FoundationReconciliation extends GenesisElement {
7
+ selectedTab: ReconciliationTab;
8
+ dataDictionaries: DataDictionaries;
9
+ configurationsPanel: ConfigurationsPanel;
10
+ reconciliationsPanel: ReconciliationsPanel;
3
11
  connectedCallback(): Promise<void>;
12
+ tabChanged(tab: ReconciliationTab): Promise<void>;
4
13
  }
5
14
  export declare class RapidReconciliation extends FoundationReconciliation {
6
15
  connectedCallback(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiB,MAAM,uBAAuB,CAAC;AAgBtE,qBAAa,wBAAyB,SAAQ,cAAc;IACpD,iBAAiB;CAGxB;AAyBD,qBAKa,mBAAoB,SAAQ,wBAAwB;IAIzD,iBAAiB;cAQP,WAAW;CAI5B;AAyBD,qBAKa,kBAAmB,SAAQ,wBAAwB;IAIxD,iBAAiB;cAQP,WAAW;CAI5B;AAQD,qBAAa,cAAe,SAAQ,kBAAkB;CAAG"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiB,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAgD,MAAM,iBAAiB,CAAC;AAGlG,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAC9F,OAAO,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAC;AAcjG,qBAAa,wBAAyB,SAAQ,cAAc;IAC1D,WAAW,EAAE,iBAAiB,CAAsC;IAEpE,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,oBAAoB,EAAE,oBAAoB,CAAC;IAErC,iBAAiB;IAIjB,UAAU,CAAC,GAAG,EAAE,iBAAiB;CAiBxC;AAyBD,qBAKa,mBAAoB,SAAQ,wBAAwB;IAIzD,iBAAiB;cAQP,WAAW;CAI5B;AAyBD,qBAKa,kBAAmB,SAAQ,wBAAwB;IAIxD,iBAAiB;cAQP,WAAW;CAI5B;AAQD,qBAAa,cAAe,SAAQ,kBAAkB;CAAG"}
@@ -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;AASD,eAAO,MAAM,gCAAgC,+EAkC5C,CAAC"}
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;AASD,eAAO,MAAM,gCAAgC,+EAqC5C,CAAC"}
@@ -8,8 +8,11 @@ export type Configuration = {
8
8
  MATCH_NULL?: boolean;
9
9
  };
10
10
  export type ReconConfigurationRule = {
11
- RECONCILIATION_CONFIG_ID: string;
11
+ RECONCILIATION_CONFIG_ID?: string;
12
+ FIELD_TYPE: FieldType;
12
13
  FIELD_NAME: string;
14
+ TOLERANCE_TYPE: ToleranceType;
15
+ TOLERANCE_VALUE: string;
13
16
  IS_PRIMARY_KEY: boolean;
14
17
  };
15
18
  export declare const ConfigurationMode: {
@@ -21,9 +24,9 @@ export type DataDictionary = {
21
24
  DICTIONARY_NAME: string;
22
25
  };
23
26
  export type DataDictionaryField = {
24
- DICTIONARY_ID: string;
25
- FIELD_NAME: string;
26
- FIELD_TYPE: FieldType;
27
+ DICTIONARY_ID?: string;
28
+ FIELD_NAME?: string;
29
+ FIELD_TYPE?: FieldType;
27
30
  };
28
31
  export type Datasource = {
29
32
  NAME: string;
@@ -53,6 +56,13 @@ export declare enum ReconciliationStatus {
53
56
  FAILED = "FAILED",
54
57
  CANCELLED = "CANCELLED"
55
58
  }
59
+ export declare enum ToleranceType {
60
+ ABSOLUTE = "ABSOLUTE",
61
+ PERCENTAGE = "PERCENTAGE",
62
+ EQUALITY = "EQUALITY",
63
+ DAYS = "DAYS",
64
+ MINUTES = "MINUTES"
65
+ }
56
66
  export type DatasourceRule = {
57
67
  field: string;
58
68
  type: FieldType;
@@ -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,EAAE,MAAM,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IAGnB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX,MAAM,M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wBAAwB,EAAE,MAAM,CAAC;IACjC,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,wBAAwB,EAAE,MAAM,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,uBAAuB,EAAE,MAAM,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAChD,eAAO,MAAM,8BAA8B,QAAS,CAAC"}
@@ -13,5 +13,7 @@ export declare const gridTag: string;
13
13
  export declare const optionTag: string;
14
14
  export declare const dividerTag: string;
15
15
  export declare const progressTag: string;
16
+ export declare const numberFieldTag: string;
17
+ export declare const checkboxTag: string;
16
18
  export declare const switchTag: string;
17
19
  //# sourceMappingURL=tags.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/tags/tags.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAQ,eAAe,+CAC0B,CAAC;AAKzD,eAAO,MAAM,OAAO,QAA+B,CAAC;AAKpD,eAAO,MAAM,SAAS,QAAiC,CAAC;AAKxD,eAAO,MAAM,YAAY,QAAoC,CAAC;AAK9D,eAAO,MAAM,SAAS,QAAiC,CAAC;AAKxD,eAAO,MAAM,mBAAmB,QAA2C,CAAC;AAK5E,eAAO,MAAM,gBAAgB,QAAwC,CAAC;AAKtE,eAAO,MAAM,OAAO,QAA+B,CAAC;AAKpD,eAAO,MAAM,MAAM,QAA8B,CAAC;AAKlD,eAAO,MAAM,WAAW,QAAmC,CAAC;AAK5D,eAAO,MAAM,eAAe,QAAuC,CAAC;AAKpE,eAAO,MAAM,OAAO,QAA+B,CAAC;AAKpD,eAAO,MAAM,SAAS,QAAiC,CAAC;AAKxD,eAAO,MAAM,UAAU,QAAkC,CAAC;AAK1D,eAAO,MAAM,WAAW,QAAmC,CAAC;AAK5D,eAAO,MAAM,SAAS,QAAiC,CAAC"}
1
+ {"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/tags/tags.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAQ,eAAe,+CAC0B,CAAC;AAKzD,eAAO,MAAM,OAAO,QAA+B,CAAC;AAKpD,eAAO,MAAM,SAAS,QAAiC,CAAC;AAKxD,eAAO,MAAM,YAAY,QAAoC,CAAC;AAK9D,eAAO,MAAM,SAAS,QAAiC,CAAC;AAKxD,eAAO,MAAM,mBAAmB,QAA2C,CAAC;AAK5E,eAAO,MAAM,gBAAgB,QAAwC,CAAC;AAKtE,eAAO,MAAM,OAAO,QAA+B,CAAC;AAKpD,eAAO,MAAM,MAAM,QAA8B,CAAC;AAKlD,eAAO,MAAM,WAAW,QAAmC,CAAC;AAK5D,eAAO,MAAM,eAAe,QAAuC,CAAC;AAKpE,eAAO,MAAM,OAAO,QAA+B,CAAC;AAKpD,eAAO,MAAM,SAAS,QAAiC,CAAC;AAKxD,eAAO,MAAM,UAAU,QAAkC,CAAC;AAK1D,eAAO,MAAM,WAAW,QAAmC,CAAC;AAK5D,eAAO,MAAM,cAAc,QAAsC,CAAC;AAKlE,eAAO,MAAM,WAAW,QAAmC,CAAC;AAK5D,eAAO,MAAM,SAAS,QAAiC,CAAC"}
@@ -3,7 +3,7 @@ import { showNotificationDialog, showNotification } from '@genesislcap/foundatio
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, } from '../../reconciliation.types';
6
+ import { ConfigurationMode, FieldType, ToleranceType, } 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';
@@ -13,11 +13,18 @@ let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
13
13
  this.configurations = [];
14
14
  this.dataSources = [];
15
15
  this.dataDictionaries = [];
16
+ this.dataDictionaryFields = [];
17
+ this.filteredRuleFields = [];
16
18
  this.reconRules = [];
17
19
  this.selectedConfiguration = null;
18
20
  this.configurationName = null;
19
21
  this.dataDictionaryId = '';
20
22
  this.showConfigurationDetails = false;
23
+ this.toleranceTypes = [];
24
+ this.fieldName = null;
25
+ this.fieldType = null;
26
+ this.toleranceType = null;
27
+ this.isPrimaryKey = false;
21
28
  }
22
29
  connectedCallback() {
23
30
  const _super = Object.create(null, {
@@ -31,17 +38,54 @@ let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
31
38
  }
32
39
  setConfigurations() {
33
40
  return __awaiter(this, void 0, void 0, function* () {
34
- this.configurations = yield this.reconciliationConfigurationService.getReconciliationConfigurations();
41
+ this.configurations =
42
+ yield this.reconciliationConfigurationService.getReconciliationConfigurations();
35
43
  });
36
44
  }
37
45
  setDataDictionaries() {
46
+ var _a;
38
47
  return __awaiter(this, void 0, void 0, function* () {
39
48
  this.dataDictionaries = yield this.dataDictionaryService.getDataDictionaries();
49
+ this.dataDictionaryId = (_a = this.dataDictionaries[0]) === null || _a === void 0 ? void 0 : _a.DICTIONARY_ID;
50
+ this.dataDictionaryChanged();
40
51
  });
41
52
  }
53
+ dataDictionaryChanged() {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ const fields = yield this.dataDictionaryService.getDataDictionaryFields(this.dataDictionaryId);
56
+ this.dataDictionaryFields = fields;
57
+ this.filteredRuleFields = fields;
58
+ this.reconRules = [];
59
+ this.fieldName = fields.length > 0 ? fields[0].FIELD_NAME : '';
60
+ this.dataDictionaryFieldChanged();
61
+ });
62
+ }
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
+ }
42
85
  addConfiguration() {
43
86
  this.configurationMode = ConfigurationMode.CREATE;
44
87
  this.reset();
88
+ this.dataDictionaryChanged();
45
89
  this.showConfigurationDetails = true;
46
90
  }
47
91
  reset() {
@@ -52,6 +96,9 @@ let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
52
96
  this.dataSourceType = null;
53
97
  this.dataDictionaryId =
54
98
  this.dataDictionaries.length > 0 ? this.dataDictionaries[0].DICTIONARY_ID : '';
99
+ if (this.matchNullValue) {
100
+ this.matchNullValue.checked = false;
101
+ }
55
102
  }
56
103
  selectConfiguration(configuration) {
57
104
  return __awaiter(this, void 0, void 0, function* () {
@@ -59,8 +106,15 @@ let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
59
106
  this.selectedConfiguration = configuration;
60
107
  this.configurationName = configuration.NAME;
61
108
  this.dataDictionaryId = configuration.DICTIONARY_ID;
109
+ const fields = yield this.dataDictionaryService.getDataDictionaryFields(this.dataDictionaryId);
110
+ this.dataDictionaryFields = fields;
62
111
  const configurationRules = yield this.reconciliationConfigurationService.getReconciliationConfigurationRules(configuration.RECONCILIATION_CONFIG_ID);
63
- this.reconRules = configurationRules || [];
112
+ this.reconRules =
113
+ configurationRules.map((rule) => {
114
+ return Object.assign(Object.assign({}, rule), { FIELD_TYPE: this.dataDictionaryFields.find((field) => field.FIELD_NAME === rule.FIELD_NAME).FIELD_TYPE });
115
+ }) || [];
116
+ this.filterReconRuleFields();
117
+ this.resetRule();
64
118
  const dataSourceConfig = yield this.reconciliationConfigurationService.getReconciliationDatasourceConfiguration(configuration.RECONCILIATION_CONFIG_ID);
65
119
  this.dataSources = dataSourceConfig;
66
120
  if (this.matchNullValue) {
@@ -173,13 +227,119 @@ let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
173
227
  }, 'rapid');
174
228
  }
175
229
  validateResponse(response) {
176
- if (response.MESSAGE_TYPE === 'EVENT_ACK') {
177
- this.reset();
178
- this.showConfigurationDetails = false;
179
- this.setConfigurations();
230
+ return __awaiter(this, void 0, void 0, function* () {
231
+ if (response.MESSAGE_TYPE === 'EVENT_ACK') {
232
+ this.reset();
233
+ this.showConfigurationDetails = false;
234
+ yield this.setConfigurations();
235
+ return;
236
+ }
237
+ this.showNotificationError(response.ERROR);
238
+ });
239
+ }
240
+ validateTolerance() {
241
+ return (this.toleranceType && this.toleranceType !== ToleranceType.EQUALITY && !this.toleranceValue);
242
+ }
243
+ addReconRule() {
244
+ if (!this.fieldName || !this.fieldType || !this.toleranceType || this.validateTolerance()) {
245
+ this.showErrorNotification('Missing fields', 'Please fill in all required fields for adding a rule.');
180
246
  return;
181
247
  }
182
- this.showNotificationError(response.ERROR);
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
+ this.reconRules.push(rule);
256
+ this.filterReconRuleFields();
257
+ this.resetRule();
258
+ }
259
+ filterReconRuleFields() {
260
+ this.filteredRuleFields = this.dataDictionaryFields.filter((field) => !this.reconRules.some((rule) => rule.FIELD_NAME === field.FIELD_NAME));
261
+ }
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
+ removeRule(index) {
273
+ this.reconRules.splice(index, 1);
274
+ this.filterReconRuleFields();
275
+ }
276
+ resetGridToleranceValue(evt, index) {
277
+ const { value } = evt.target;
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';
183
343
  }
184
344
  };
185
345
  __decorate([
@@ -197,6 +357,12 @@ __decorate([
197
357
  __decorate([
198
358
  observable
199
359
  ], 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);
200
366
  __decorate([
201
367
  observable
202
368
  ], ConfigurationsPanel.prototype, "reconRules", void 0);
@@ -218,6 +384,24 @@ __decorate([
218
384
  __decorate([
219
385
  observable
220
386
  ], ConfigurationsPanel.prototype, "showConfigurationDetails", void 0);
387
+ __decorate([
388
+ observable
389
+ ], ConfigurationsPanel.prototype, "toleranceTypes", void 0);
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);
399
+ __decorate([
400
+ observable
401
+ ], ConfigurationsPanel.prototype, "toleranceValue", void 0);
402
+ __decorate([
403
+ observable
404
+ ], ConfigurationsPanel.prototype, "isPrimaryKey", void 0);
221
405
  __decorate([
222
406
  observable
223
407
  ], ConfigurationsPanel.prototype, "matchNullValue", void 0);