@genesislcap/pbc-reconciliation-ui 0.0.5 → 0.0.6
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/buildOutputCleanup/outputFiles.bin +0 -0
- 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 +27 -11
- 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/rapid-components.d.ts.map +1 -1
- package/dist/dts/components/zero-components.d.ts.map +1 -1
- package/dist/dts/config/templates.d.ts +2 -0
- package/dist/dts/config/templates.d.ts.map +1 -1
- package/dist/dts/reconciliation.types.d.ts +31 -2
- package/dist/dts/reconciliation.types.d.ts.map +1 -1
- package/dist/dts/services/data-dictionary.service.d.ts +6 -0
- package/dist/dts/services/data-dictionary.service.d.ts.map +1 -0
- package/dist/dts/services/reconciliation-configuration.service.d.ts +12 -0
- package/dist/dts/services/reconciliation-configuration.service.d.ts.map +1 -0
- package/dist/dts/tags/tags.d.ts +2 -0
- package/dist/dts/tags/tags.d.ts.map +1 -1
- package/dist/esm/components/configurations-panel/configurations-panel.js +182 -23
- package/dist/esm/components/configurations-panel/configurations-panel.js.map +1 -1
- package/dist/esm/components/configurations-panel/configurations-panel.styles.js +47 -23
- package/dist/esm/components/configurations-panel/configurations-panel.styles.js.map +1 -1
- package/dist/esm/components/configurations-panel/configurations-panel.template.js +37 -23
- package/dist/esm/components/configurations-panel/configurations-panel.template.js.map +1 -1
- package/dist/esm/components/rapid-components.js +2 -2
- package/dist/esm/components/rapid-components.js.map +1 -1
- package/dist/esm/components/zero-components.js +2 -2
- package/dist/esm/components/zero-components.js.map +1 -1
- package/dist/esm/config/templates.js +2 -0
- package/dist/esm/config/templates.js.map +1 -1
- package/dist/esm/reconciliation.types.js +10 -0
- package/dist/esm/reconciliation.types.js.map +1 -1
- package/dist/esm/services/data-dictionary.service.js +29 -0
- package/dist/esm/services/data-dictionary.service.js.map +1 -0
- package/dist/esm/services/reconciliation-configuration.service.js +82 -0
- package/dist/esm/services/reconciliation-configuration.service.js.map +1 -0
- package/dist/esm/tags/tags.js +2 -0
- package/dist/esm/tags/tags.js.map +1 -1
- package/package.json +3 -1
- package/src/components/configurations-panel/configurations-panel.styles.ts +47 -23
- package/src/components/configurations-panel/configurations-panel.template.ts +59 -26
- package/src/components/configurations-panel/configurations-panel.ts +189 -25
- package/src/components/rapid-components.ts +4 -0
- package/src/components/zero-components.ts +4 -0
- package/src/config/templates.ts +4 -0
- package/src/reconciliation.types.ts +38 -2
- package/src/services/data-dictionary.service.ts +35 -0
- package/src/services/reconciliation-configuration.service.ts +92 -0
- package/src/tags/tags.ts +10 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Mon Jun 10 15:38:20 UTC 2024
|
|
2
2
|
gradle.version=8.3
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,21 +1,37 @@
|
|
|
1
1
|
import { GenesisElement } from '@genesislcap/web-core';
|
|
2
|
-
import { Configuration, DataSource } from '../../reconciliation.types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
DATABASE = "DATABASE",
|
|
6
|
-
DATA_PIPELINE = "DATA_PIPELINE"
|
|
7
|
-
}
|
|
2
|
+
import { Configuration, ConfigurationMode, DataDictionary, DataSource, DataSourceType, ReconConfigurationRule } from '../../reconciliation.types';
|
|
3
|
+
import { ReconConfigurationService } from '../../services/reconciliation-configuration.service';
|
|
4
|
+
import { DataDictionaryService } from '../../services/data-dictionary.service';
|
|
8
5
|
export declare class ConfigurationsPanel extends GenesisElement {
|
|
6
|
+
configurationsService: ReconConfigurationService;
|
|
7
|
+
dataDictionaryService: DataDictionaryService;
|
|
9
8
|
configurations: Array<Configuration>;
|
|
10
9
|
dataSources: Array<DataSource>;
|
|
11
|
-
|
|
10
|
+
dataDictionaries: Array<DataDictionary>;
|
|
11
|
+
reconRules: Array<ReconConfigurationRule>;
|
|
12
|
+
selectedConfiguration: Configuration;
|
|
12
13
|
configurationName: string;
|
|
13
14
|
dataSourceType: string;
|
|
15
|
+
dataDictionaryId: string;
|
|
16
|
+
configurationMode: (typeof ConfigurationMode)[keyof typeof ConfigurationMode];
|
|
17
|
+
showConfigurationDetails: boolean;
|
|
18
|
+
connectedCallback(): Promise<void>;
|
|
19
|
+
setConfigurations(): Promise<void>;
|
|
20
|
+
setDataDictionaries(): Promise<void>;
|
|
14
21
|
addConfiguration(): void;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
22
|
+
reset(): void;
|
|
23
|
+
selectConfiguration(configuration: Configuration): Promise<void>;
|
|
24
|
+
deleteConfiguration(evt: CustomEvent, index: number): void;
|
|
25
|
+
addDataSource(dataSourceType: DataSourceType): void;
|
|
26
|
+
deleteDataSource(index: number): void;
|
|
27
|
+
transformDatasources(): {
|
|
28
|
+
NAME: string;
|
|
29
|
+
INDEX: number;
|
|
30
|
+
TYPE: DataSourceType;
|
|
31
|
+
}[];
|
|
32
|
+
showErrorNotification(title: any, body: any): void;
|
|
18
33
|
saveConfiguration(): void;
|
|
19
|
-
|
|
34
|
+
showNotificationError(error: any): void;
|
|
35
|
+
validateResponse(response: any): void;
|
|
20
36
|
}
|
|
21
37
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"configurations-panel.d.ts","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.ts"],"names":[],"mappings":"AACA,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,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAG/E,qBAKa,mBAAoB,SAAQ,cAAc;IAC1B,qBAAqB,EAAE,yBAAyB,CAAC;IACrD,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;IAEhD,iBAAiB;IAMjB,iBAAiB;IAIjB,mBAAmB;IAIzB,gBAAgB;IAMhB,KAAK;IAUC,mBAAmB,CAAC,aAAa,EAAE,aAAa;IAiBtD,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;IA4CjB,qBAAqB,CAAC,KAAK,KAAA;IAe3B,gBAAgB,CAAC,QAAQ,KAAA;CAU1B"}
|
|
@@ -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":"AAqPA,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,
|
|
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;AAc7D,eAAO,MAAM,2BAA2B,0EAsIvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rapid-components.d.ts","sourceRoot":"","sources":["../../../src/components/rapid-components.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rapid-components.d.ts","sourceRoot":"","sources":["../../../src/components/rapid-components.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,6BAA6B,qBAuBzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zero-components.d.ts","sourceRoot":"","sources":["../../../src/components/zero-components.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zero-components.d.ts","sourceRoot":"","sources":["../../../src/components/zero-components.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,4BAA4B,qBAuBxC,CAAC"}
|
|
@@ -2,8 +2,10 @@ import { SyntheticViewTemplate, TemplateElementDependency } from '@genesislcap/w
|
|
|
2
2
|
export type TemplateComponents = {
|
|
3
3
|
icon: TemplateElementDependency;
|
|
4
4
|
button: TemplateElementDependency;
|
|
5
|
+
divider: TemplateElementDependency;
|
|
5
6
|
textFieled: TemplateElementDependency;
|
|
6
7
|
select: TemplateElementDependency;
|
|
8
|
+
option: TemplateElementDependency;
|
|
7
9
|
segmentedControl: TemplateElementDependency;
|
|
8
10
|
segmentedItem: TemplateElementDependency;
|
|
9
11
|
tabs: TemplateElementDependency;
|
|
@@ -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,IAAI,EAAE,yBAAyB,CAAC;IAChC,MAAM,EAAE,yBAAyB,CAAC;IAClC,UAAU,EAAE,yBAAyB,CAAC;IACtC,MAAM,EAAE,yBAAyB,CAAC;IAClC,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,aAAa,EAAE,yBAAyB,CAAC;IACzC,IAAI,EAAE,yBAAyB,CAAC;IAChC,GAAG,EAAE,yBAAyB,CAAC;IAC/B,QAAQ,EAAE,yBAAyB,CAAC;IACpC,IAAI,EAAE,yBAAyB,CAAC;CACjC,CAAC;AAMF,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG;IAM1D,WAAW,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAAC;CAC9C,CAAC;AAQF,eAAO,MAAM,sBAAsB,EAAE,
|
|
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,IAAI,EAAE,yBAAyB,CAAC;IAChC,MAAM,EAAE,yBAAyB,CAAC;IAClC,OAAO,EAAE,yBAAyB,CAAC;IACnC,UAAU,EAAE,yBAAyB,CAAC;IACtC,MAAM,EAAE,yBAAyB,CAAC;IAClC,MAAM,EAAE,yBAAyB,CAAC;IAClC,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,aAAa,EAAE,yBAAyB,CAAC;IACzC,IAAI,EAAE,yBAAyB,CAAC;IAChC,GAAG,EAAE,yBAAyB,CAAC;IAC/B,QAAQ,EAAE,yBAAyB,CAAC;IACpC,IAAI,EAAE,yBAAyB,CAAC;CACjC,CAAC;AAMF,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG;IAM1D,WAAW,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAAC;CAC9C,CAAC;AAQF,eAAO,MAAM,sBAAsB,EAAE,eAapC,CAAC"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
export type Configuration = {
|
|
2
|
-
|
|
2
|
+
NAME?: string;
|
|
3
|
+
RECONCILIATION_CONFIG_ID?: string;
|
|
4
|
+
RECONCILIATION_STRATEGY?: string;
|
|
5
|
+
DICTIONARY_ID?: string;
|
|
6
|
+
RULES?: Array<ReconConfigurationRule>;
|
|
7
|
+
DATASOURCES?: Array<DataSource>;
|
|
8
|
+
};
|
|
9
|
+
export type ReconConfigurationRule = {
|
|
10
|
+
RECONCILIATION_CONFIG_ID: string;
|
|
11
|
+
FIELD_NAME: string;
|
|
12
|
+
IS_PRIMARY_KEY: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const ConfigurationMode: {
|
|
15
|
+
readonly CREATE: "create";
|
|
16
|
+
readonly EDIT: "edit";
|
|
17
|
+
};
|
|
18
|
+
export type DataDictionary = {
|
|
19
|
+
DICTIONARY_ID: string;
|
|
20
|
+
DICTIONARY_NAME: string;
|
|
21
|
+
};
|
|
22
|
+
export type DataDictionaryField = {
|
|
23
|
+
DICTIONARY_ID: string;
|
|
24
|
+
FIELD_NAME: string;
|
|
25
|
+
FIELD_TYPE: FieldType;
|
|
3
26
|
};
|
|
4
27
|
export type DataSource = {
|
|
5
|
-
|
|
28
|
+
NAME: string;
|
|
29
|
+
TYPE: DataSourceType;
|
|
6
30
|
};
|
|
31
|
+
export declare enum DataSourceType {
|
|
32
|
+
CSV = "FILE",
|
|
33
|
+
DATABASE = "DATABASE",
|
|
34
|
+
DATA_PIPELINE = "PIPELINE"
|
|
35
|
+
}
|
|
7
36
|
export declare enum FieldType {
|
|
8
37
|
STRING = "STRING",
|
|
9
38
|
SHORT = "SHORT",
|
|
@@ -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,EAAE,MAAM,CAAC;
|
|
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;CACjC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,wBAAwB,EAAE,MAAM,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IAGnB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAA;AAED,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,SAAS,CAAC;CACvB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;CACtB,CAAA;AAED,oBAAY,cAAc;IACxB,GAAG,SAAS;IACZ,QAAQ,aAAa;IACrB,aAAa,aAAa;CAC3B;AAED,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,cAAc,mBAAmB;CAClC;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;CACd,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface DataDictionaryService {
|
|
2
|
+
getDataDictionary(): Promise<any>;
|
|
3
|
+
getDataDictionaryFields(dictionaryId: string): Promise<any>;
|
|
4
|
+
}
|
|
5
|
+
export declare const DataDictionaryService: import("@microsoft/fast-foundation").InterfaceSymbol<DataDictionaryService>;
|
|
6
|
+
//# sourceMappingURL=data-dictionary.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-dictionary.service.d.ts","sourceRoot":"","sources":["../../../src/services/data-dictionary.service.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,qBAAqB;IACpC,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAClC,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CAC7D;AA4BD,eAAO,MAAM,qBAAqB,6EAA2F,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Message } from '@genesislcap/foundation-comms';
|
|
2
|
+
export interface ReconConfigurationService {
|
|
3
|
+
getReconConfigurations(): Promise<any>;
|
|
4
|
+
getReconConfigurationDetails(configurationId: string): Promise<any>;
|
|
5
|
+
getReconConfigurationRules(configurationId: string): Promise<any>;
|
|
6
|
+
getReconDatasourceConfig(configurationId: string): Promise<any>;
|
|
7
|
+
createReconConfiguration(configuration: any): Promise<Message>;
|
|
8
|
+
updateReconConfiguration(configuration: any): Promise<Message>;
|
|
9
|
+
deleteReconConfiguration(configurationId: string): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ReconConfigurationService: import("@microsoft/fast-foundation").InterfaceSymbol<ReconConfigurationService>;
|
|
12
|
+
//# sourceMappingURL=reconciliation-configuration.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconciliation-configuration.service.d.ts","sourceRoot":"","sources":["../../../src/services/reconciliation-configuration.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAGjE,MAAM,WAAW,yBAAyB;IACxC,sBAAsB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACvC,4BAA4B,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACpE,0BAA0B,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAClE,wBAAwB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAChE,wBAAwB,CAAC,aAAa,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/D,wBAAwB,CAAC,aAAa,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/D,wBAAwB,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CACzD;AAgFD,eAAO,MAAM,yBAAyB,iFAAmG,CAAC"}
|
package/dist/dts/tags/tags.d.ts
CHANGED
|
@@ -9,4 +9,6 @@ export declare const tabsTag: string;
|
|
|
9
9
|
export declare const tabTag: string;
|
|
10
10
|
export declare const tabPanelTag: string;
|
|
11
11
|
export declare const gridTag: string;
|
|
12
|
+
export declare const optionTag: string;
|
|
13
|
+
export declare const dividerTag: string;
|
|
12
14
|
//# 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,QAAqC,CAAC;AAK/D,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,OAAO,QAA+B,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,QAAqC,CAAC;AAK/D,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,OAAO,QAA+B,CAAC;AAKpD,eAAO,MAAM,SAAS,QAAiC,CAAC;AAKxD,eAAO,MAAM,UAAU,QAAkC,CAAC"}
|
|
@@ -1,45 +1,189 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
1
|
+
import { __awaiter, __decorate } from "tslib";
|
|
2
|
+
import { showNotificationDialog, showNotification } from '@genesislcap/foundation-notifications';
|
|
2
3
|
import { GenesisElement, customElement, observable } from '@genesislcap/web-core';
|
|
3
4
|
import { ConfigurationsPanelTemplate } from './configurations-panel.template';
|
|
4
5
|
import { ConfigurationsPanelStyles } from './configurations-panel.styles';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
DataSourceType["DATA_PIPELINE"] = "DATA_PIPELINE";
|
|
10
|
-
})(DataSourceType || (DataSourceType = {}));
|
|
6
|
+
import { ConfigurationMode, } from '../../reconciliation.types';
|
|
7
|
+
import { ReconConfigurationService } from '../../services/reconciliation-configuration.service';
|
|
8
|
+
import { DataDictionaryService } from '../../services/data-dictionary.service';
|
|
9
|
+
import { logger } from '../../utils';
|
|
11
10
|
let ConfigurationsPanel = class ConfigurationsPanel extends GenesisElement {
|
|
12
11
|
constructor() {
|
|
13
12
|
super(...arguments);
|
|
14
13
|
this.configurations = [];
|
|
15
14
|
this.dataSources = [];
|
|
16
|
-
this.
|
|
15
|
+
this.dataDictionaries = [];
|
|
16
|
+
this.reconRules = [];
|
|
17
|
+
this.selectedConfiguration = null;
|
|
17
18
|
this.configurationName = null;
|
|
19
|
+
this.dataDictionaryId = '';
|
|
20
|
+
this.showConfigurationDetails = false;
|
|
21
|
+
}
|
|
22
|
+
connectedCallback() {
|
|
23
|
+
const _super = Object.create(null, {
|
|
24
|
+
connectedCallback: { get: () => super.connectedCallback }
|
|
25
|
+
});
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
_super.connectedCallback.call(this);
|
|
28
|
+
yield this.setConfigurations();
|
|
29
|
+
yield this.setDataDictionaries();
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
setConfigurations() {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
this.configurations = yield this.configurationsService.getReconConfigurations();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
setDataDictionaries() {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
this.dataDictionaries = yield this.dataDictionaryService.getDataDictionary();
|
|
40
|
+
});
|
|
18
41
|
}
|
|
19
42
|
addConfiguration() {
|
|
20
|
-
this.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
43
|
+
this.configurationMode = ConfigurationMode.CREATE;
|
|
44
|
+
this.reset();
|
|
45
|
+
this.showConfigurationDetails = true;
|
|
46
|
+
}
|
|
47
|
+
reset() {
|
|
48
|
+
this.selectedConfiguration = {};
|
|
49
|
+
this.configurationName = null;
|
|
50
|
+
this.dataSources = [];
|
|
51
|
+
this.reconRules = [];
|
|
52
|
+
this.dataSourceType = null;
|
|
53
|
+
this.dataDictionaryId =
|
|
54
|
+
this.dataDictionaries.length > 0 ? this.dataDictionaries[0].DICTIONARY_ID : '';
|
|
25
55
|
}
|
|
26
56
|
selectConfiguration(configuration) {
|
|
27
|
-
this
|
|
28
|
-
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
this.configurationMode = ConfigurationMode.EDIT;
|
|
59
|
+
this.selectedConfiguration = configuration;
|
|
60
|
+
this.configurationName = configuration.NAME;
|
|
61
|
+
this.dataDictionaryId = configuration.DICTIONARY_ID;
|
|
62
|
+
const configurationRules = yield this.configurationsService.getReconConfigurationRules(configuration.RECONCILIATION_CONFIG_ID);
|
|
63
|
+
console.log(configurationRules);
|
|
64
|
+
this.reconRules = configurationRules || [];
|
|
65
|
+
const dataSourceConfig = yield this.configurationsService.getReconDatasourceConfig(configuration.RECONCILIATION_CONFIG_ID);
|
|
66
|
+
this.dataSources = dataSourceConfig;
|
|
67
|
+
this.showConfigurationDetails = true;
|
|
68
|
+
});
|
|
29
69
|
}
|
|
30
|
-
deleteConfiguration(
|
|
70
|
+
deleteConfiguration(evt, index) {
|
|
71
|
+
evt.stopPropagation();
|
|
72
|
+
showNotificationDialog({
|
|
73
|
+
title: 'Confirm Delete',
|
|
74
|
+
body: `Do you really want to delete "${this.configurations[index].NAME}"?`,
|
|
75
|
+
dialog: {
|
|
76
|
+
dismissingAction: {
|
|
77
|
+
label: 'Dismiss',
|
|
78
|
+
action: () => null,
|
|
79
|
+
},
|
|
80
|
+
confirmingActions: [
|
|
81
|
+
{
|
|
82
|
+
label: 'Confirm',
|
|
83
|
+
action: () => __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
const response = yield this.configurationsService.deleteReconConfiguration(this.configurations[index].RECONCILIATION_CONFIG_ID);
|
|
85
|
+
if (response.MESSAGE_TYPE === 'EVENT_ACK') {
|
|
86
|
+
this.configurations.splice(index, 1);
|
|
87
|
+
this.showConfigurationDetails = false;
|
|
88
|
+
}
|
|
89
|
+
}),
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
}, 'rapid');
|
|
31
94
|
}
|
|
32
|
-
|
|
95
|
+
addDataSource(dataSourceType) {
|
|
96
|
+
this.dataSources.push({ NAME: 'Data Source', TYPE: dataSourceType });
|
|
97
|
+
}
|
|
98
|
+
deleteDataSource(index) {
|
|
99
|
+
if (this.configurationMode === ConfigurationMode.CREATE) {
|
|
100
|
+
this.dataSources.splice(index, 1);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
transformDatasources() {
|
|
104
|
+
return this.dataSources.map((dataSource, index) => {
|
|
105
|
+
return Object.assign(Object.assign({}, dataSource), { NAME: `${dataSource.NAME} ${index + 1}`, INDEX: index });
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
showErrorNotification(title, body) {
|
|
109
|
+
showNotification({
|
|
110
|
+
title,
|
|
111
|
+
body,
|
|
112
|
+
config: {
|
|
113
|
+
snackbar: {
|
|
114
|
+
type: 'error',
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
}, 'rapid');
|
|
33
118
|
}
|
|
34
119
|
saveConfiguration() {
|
|
120
|
+
if (!this.configurationName || !this.dataDictionaryId || this.dataSources.length === 0) {
|
|
121
|
+
this.showErrorNotification('Missing fields', 'Please fill in all required fields.');
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
if (this.dataSources.length > 2) {
|
|
125
|
+
this.showErrorNotification('Datsources limit exceeded', 'Only 2 datasources are allowed for a configuration.');
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
let reqObject;
|
|
129
|
+
switch (this.configurationMode) {
|
|
130
|
+
case ConfigurationMode.CREATE:
|
|
131
|
+
reqObject = {
|
|
132
|
+
DICTIONARY_ID: this.dataDictionaryId,
|
|
133
|
+
RECONCILIATION_STRATEGY: 'ONE_TO_ONE',
|
|
134
|
+
NAME: this.configurationName,
|
|
135
|
+
RULES: this.reconRules,
|
|
136
|
+
DATASOURCES: this.transformDatasources(),
|
|
137
|
+
};
|
|
138
|
+
this.configurationsService
|
|
139
|
+
.createReconConfiguration(reqObject)
|
|
140
|
+
.then((response) => this.validateResponse(response));
|
|
141
|
+
break;
|
|
142
|
+
case ConfigurationMode.EDIT:
|
|
143
|
+
reqObject = {
|
|
144
|
+
RECONCILIATION_CONFIG_ID: this.selectedConfiguration.RECONCILIATION_CONFIG_ID,
|
|
145
|
+
DICTIONARY_ID: this.dataDictionaryId,
|
|
146
|
+
RECONCILIATION_STRATEGY: this.selectedConfiguration.RECONCILIATION_STRATEGY,
|
|
147
|
+
NAME: this.configurationName,
|
|
148
|
+
RULES: this.reconRules,
|
|
149
|
+
DATASOURCES: this.dataSources,
|
|
150
|
+
};
|
|
151
|
+
this.configurationsService
|
|
152
|
+
.updateReconConfiguration(reqObject)
|
|
153
|
+
.then((response) => this.validateResponse(response));
|
|
154
|
+
break;
|
|
155
|
+
default:
|
|
156
|
+
logger.error(`Unknown operation ${this.configurationMode}`);
|
|
157
|
+
}
|
|
35
158
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
159
|
+
showNotificationError(error) {
|
|
160
|
+
var _a, _b;
|
|
161
|
+
showNotification({
|
|
162
|
+
title: (_a = error[0]) === null || _a === void 0 ? void 0 : _a.CODE,
|
|
163
|
+
body: (_b = error[0]) === null || _b === void 0 ? void 0 : _b.TEXT,
|
|
164
|
+
config: {
|
|
165
|
+
snackbar: {
|
|
166
|
+
type: 'error',
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
}, 'rapid');
|
|
170
|
+
}
|
|
171
|
+
validateResponse(response) {
|
|
172
|
+
if (response.MESSAGE_TYPE === 'EVENT_ACK') {
|
|
173
|
+
this.reset();
|
|
174
|
+
this.showConfigurationDetails = false;
|
|
175
|
+
this.setConfigurations();
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
this.showNotificationError(response.ERROR);
|
|
41
179
|
}
|
|
42
180
|
};
|
|
181
|
+
__decorate([
|
|
182
|
+
ReconConfigurationService
|
|
183
|
+
], ConfigurationsPanel.prototype, "configurationsService", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
DataDictionaryService
|
|
186
|
+
], ConfigurationsPanel.prototype, "dataDictionaryService", void 0);
|
|
43
187
|
__decorate([
|
|
44
188
|
observable
|
|
45
189
|
], ConfigurationsPanel.prototype, "configurations", void 0);
|
|
@@ -48,13 +192,28 @@ __decorate([
|
|
|
48
192
|
], ConfigurationsPanel.prototype, "dataSources", void 0);
|
|
49
193
|
__decorate([
|
|
50
194
|
observable
|
|
51
|
-
], ConfigurationsPanel.prototype, "
|
|
195
|
+
], ConfigurationsPanel.prototype, "dataDictionaries", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
observable
|
|
198
|
+
], ConfigurationsPanel.prototype, "reconRules", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
observable
|
|
201
|
+
], ConfigurationsPanel.prototype, "selectedConfiguration", void 0);
|
|
52
202
|
__decorate([
|
|
53
203
|
observable
|
|
54
204
|
], ConfigurationsPanel.prototype, "configurationName", void 0);
|
|
55
205
|
__decorate([
|
|
56
206
|
observable
|
|
57
207
|
], ConfigurationsPanel.prototype, "dataSourceType", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
observable
|
|
210
|
+
], ConfigurationsPanel.prototype, "dataDictionaryId", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
observable
|
|
213
|
+
], ConfigurationsPanel.prototype, "configurationMode", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
observable
|
|
216
|
+
], ConfigurationsPanel.prototype, "showConfigurationDetails", void 0);
|
|
58
217
|
ConfigurationsPanel = __decorate([
|
|
59
218
|
customElement({
|
|
60
219
|
name: 'configurations-panel',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurations-panel.js","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":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ACrD;IAAtB,qBAAqB;kEAA8C;AACxD;IAAX,UAAU;2DAA2C;AAC1C;IAAX,UAAU;wDAAqC;AACpC;IAAX,UAAU;6DAA8C;AAC7C;IAAX,UAAU;uDAAgD;AAC/C;IAAX,UAAU;kEAA6C;AAC5C;IAAX,UAAU;8DAAkC;AACjC;IAAX,UAAU;2DAAwB;AACvB;IAAX,UAAU;6DAA+B;AAC9B;IAAX,UAAU;8DAA+E;AAC9E;IAAX,UAAU;qEAA2C;AAZ3C,mBAAmB;IAL/B,aAAa,CAAC;QACb,IAAI,EAAE,sBAAsB;QAC5B,QAAQ,EAAE,2BAA2B;QACrC,MAAM,EAAE,yBAAyB;KAClC,CAAC;GACW,mBAAmB,CAoM/B;SApMY,mBAAmB"}
|
|
@@ -6,24 +6,47 @@ const common = css `
|
|
|
6
6
|
.data-source-record {
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
|
-
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
padding: 0 calc(var(--design-unit) * 4px);
|
|
10
12
|
gap: calc(var(--design-unit) * 2px);
|
|
13
|
+
border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
14
|
+
height: calc((var(--base-height-multiplier) + 1) * 4px);
|
|
15
|
+
color: var(--neutral-foreground-hint);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.configuration-record-selected {
|
|
19
|
+
border-left: calc(var(--stroke-width) * 3px) solid var(--accent-fill-rest);
|
|
20
|
+
color: var(--neutral-foreground-rest);
|
|
21
|
+
background: var(--neutral-layer-3);
|
|
11
22
|
}
|
|
12
23
|
|
|
13
|
-
.configuration-record:hover
|
|
14
|
-
|
|
15
|
-
background-color: var(--neutral-color);
|
|
24
|
+
.configuration-record:hover {
|
|
25
|
+
background-color: var(--neutral-layer-3);
|
|
16
26
|
cursor: pointer;
|
|
17
27
|
}
|
|
18
28
|
|
|
29
|
+
.data-source-record {
|
|
30
|
+
background-color: var(--neutral-layer-2);
|
|
31
|
+
color: var(--neutral-foreground-rest);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.data-source-record-disabled {
|
|
35
|
+
cursor: not-allowed;
|
|
36
|
+
opacity: var(--disabled-opacity);
|
|
37
|
+
}
|
|
38
|
+
|
|
19
39
|
.configuration-record-delete,
|
|
20
40
|
.data-source-record-delete {
|
|
21
41
|
display: flex;
|
|
22
42
|
margin-left: auto;
|
|
43
|
+
margin-right: calc(var(--design-unit) * 2px);
|
|
23
44
|
}
|
|
24
45
|
|
|
25
46
|
.configuration-record-name,
|
|
26
47
|
.data-source-record-name {
|
|
48
|
+
font-size: var(--type-ramp-minus-1-font-size);
|
|
49
|
+
font-weight: 700;
|
|
27
50
|
text-overflow: ellipsis;
|
|
28
51
|
white-space: nowrap;
|
|
29
52
|
overflow: hidden;
|
|
@@ -44,8 +67,9 @@ const allConfigurations = css `
|
|
|
44
67
|
flex-direction: row;
|
|
45
68
|
flex: 0;
|
|
46
69
|
align-items: center;
|
|
47
|
-
padding: calc(var(--design-unit) * 2px);
|
|
70
|
+
padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
|
|
48
71
|
border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
72
|
+
height: calc((var(--base-height-multiplier) + 1) * 4px);
|
|
49
73
|
}
|
|
50
74
|
|
|
51
75
|
.configuration-list-title {
|
|
@@ -87,8 +111,8 @@ const configuration = css `
|
|
|
87
111
|
.configuration-name-and-data-sources-fields {
|
|
88
112
|
display: flex;
|
|
89
113
|
flex-direction: column;
|
|
90
|
-
padding: calc(var(--design-unit) *
|
|
91
|
-
gap: calc(var(--design-unit) *
|
|
114
|
+
padding: calc(var(--design-unit) * 4px);
|
|
115
|
+
gap: calc(var(--design-unit) * 3px);
|
|
92
116
|
}
|
|
93
117
|
|
|
94
118
|
.configuration-name {
|
|
@@ -96,12 +120,14 @@ const configuration = css `
|
|
|
96
120
|
flex-direction: column;
|
|
97
121
|
}
|
|
98
122
|
|
|
99
|
-
.configuration-name-label
|
|
123
|
+
.configuration-name-label,
|
|
124
|
+
.data-sources-label {
|
|
125
|
+
padding-bottom: calc(var(--design-unit) * 4px);
|
|
100
126
|
font-weight: bold;
|
|
101
127
|
}
|
|
102
128
|
|
|
103
129
|
.current-data-source-label {
|
|
104
|
-
padding: 0 calc(var(--design-unit) *
|
|
130
|
+
padding: 0 calc(var(--design-unit) * 4px);
|
|
105
131
|
}
|
|
106
132
|
|
|
107
133
|
/* #region Data Sources */
|
|
@@ -110,10 +136,6 @@ const configuration = css `
|
|
|
110
136
|
flex-direction: column;
|
|
111
137
|
}
|
|
112
138
|
|
|
113
|
-
.data-sources-label {
|
|
114
|
-
font-weight: bold;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
139
|
.data-source-list {
|
|
118
140
|
display: flex;
|
|
119
141
|
flex-direction: column;
|
|
@@ -126,9 +148,11 @@ const configuration = css `
|
|
|
126
148
|
}
|
|
127
149
|
|
|
128
150
|
.new-data-source-label,
|
|
129
|
-
.current-data-source-label
|
|
151
|
+
.current-data-source-label,
|
|
152
|
+
.select-dictionary {
|
|
130
153
|
font-weight: bold;
|
|
131
|
-
color: var(--
|
|
154
|
+
color: var(--neutral-foreground-hint);
|
|
155
|
+
padding-bottom: calc(var(--design-unit) * 2px);
|
|
132
156
|
}
|
|
133
157
|
|
|
134
158
|
.data-source-types {
|
|
@@ -144,6 +168,10 @@ const configuration = css `
|
|
|
144
168
|
flex: auto;
|
|
145
169
|
place-content: center;
|
|
146
170
|
}
|
|
171
|
+
|
|
172
|
+
${segmentedItemTag}[disabled] {
|
|
173
|
+
cursor: not-allowed;
|
|
174
|
+
}
|
|
147
175
|
/* #region Data Sources */
|
|
148
176
|
|
|
149
177
|
/* #region Reconciliation Rules */
|
|
@@ -153,8 +181,8 @@ const configuration = css `
|
|
|
153
181
|
width: 100%;
|
|
154
182
|
flex: 1 1 70%;
|
|
155
183
|
max-width: 70%;
|
|
156
|
-
padding: calc(var(--design-unit) *
|
|
157
|
-
gap: calc(var(--design-unit) *
|
|
184
|
+
padding: calc(var(--design-unit) * 4px);
|
|
185
|
+
gap: calc(var(--design-unit) * 3px);
|
|
158
186
|
}
|
|
159
187
|
|
|
160
188
|
.reconciliation-rules-label {
|
|
@@ -164,17 +192,13 @@ const configuration = css `
|
|
|
164
192
|
.rule-dictionary {
|
|
165
193
|
}
|
|
166
194
|
|
|
167
|
-
.select-dictionary {
|
|
168
|
-
font-weight: bold;
|
|
169
|
-
color: var(--rapid-ag-header-foreground-color);
|
|
170
|
-
}
|
|
171
195
|
/* #endregion Reconciliation Rules */
|
|
172
196
|
|
|
173
197
|
.configuration-footer {
|
|
174
198
|
display: flex;
|
|
175
199
|
flex-direction: row-reverse;
|
|
176
200
|
border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
177
|
-
padding: calc(var(--design-unit) *
|
|
201
|
+
padding: calc(var(--design-unit) * 4px);
|
|
178
202
|
}
|
|
179
203
|
`;
|
|
180
204
|
const fields = css `
|
|
@@ -219,7 +243,7 @@ export const ConfigurationsPanelStyles = css `
|
|
|
219
243
|
height: 100%;
|
|
220
244
|
width: 100%;
|
|
221
245
|
}
|
|
222
|
-
|
|
246
|
+
|
|
223
247
|
.configurations-panel {
|
|
224
248
|
display: flex;
|
|
225
249
|
flex-direction: row;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurations-panel.styles.js","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAElF,MAAM,aAAa,GAAG,IAAI,CAAC;AAE3B,MAAM,MAAM,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"configurations-panel.styles.js","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAElF,MAAM,aAAa,GAAG,IAAI,CAAC;AAE3B,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDjB,CAAC;AAEF,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;gBAKb,aAAa;iBACZ,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BxD,CAAC;AAEF,MAAM,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6ErB,gBAAgB;;;;;;IAMhB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BnB,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;IASd,YAAY;;;;;IAKZ,YAAY;;;;IAIZ,SAAS;;;;;IAKT,SAAS;;;;IAIT,SAAS;;;;;;;;CAQZ,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAA;;;;;;;;;;;;;IAaxC,MAAM;IACN,iBAAiB;IACjB,aAAa;IACb,MAAM;;;;;CAKT,CAAC"}
|