@genesislcap/pbc-reporting-ui 1.0.391 → 1.0.393

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 (43) hide show
  1. package/dist/dts/new/main/edit-config/col-rename-alias/col-rename-alias-grid.d.ts.map +1 -1
  2. package/dist/dts/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.d.ts +10 -1
  3. package/dist/dts/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.d.ts.map +1 -1
  4. package/dist/dts/new/main/edit-config/datasource-config/datasource-config-item.d.ts +3 -3
  5. package/dist/dts/new/main/edit-config/datasource-config/datasource-config-item.d.ts.map +1 -1
  6. package/dist/dts/new/main/edit-config/shared/datasource-data-base-component.d.ts +2 -2
  7. package/dist/dts/new/main/edit-config/shared/datasource-data-base-component.d.ts.map +1 -1
  8. package/dist/dts/new/main/edit-config/shared/datasource-data-base-component.helpers.ts.d.ts +9 -5
  9. package/dist/dts/new/main/edit-config/shared/datasource-data-base-component.helpers.ts.d.ts.map +1 -1
  10. package/dist/dts/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.d.ts +5 -5
  11. package/dist/dts/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.d.ts.map +1 -1
  12. package/dist/dts/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.types.d.ts +2 -2
  13. package/dist/dts/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.types.d.ts.map +1 -1
  14. package/dist/dts/new/main/generated-reports/generated-reports.d.ts.map +1 -1
  15. package/dist/dts/new/store/slices/datasources-config.d.ts +12 -11
  16. package/dist/dts/new/store/slices/datasources-config.d.ts.map +1 -1
  17. package/dist/dts/new/store/slices/types.d.ts +2 -2
  18. package/dist/dts/new/store/slices/types.d.ts.map +1 -1
  19. package/dist/dts/new/store/store.d.ts +21 -14
  20. package/dist/dts/new/store/store.d.ts.map +1 -1
  21. package/dist/dts/new/types/misc.d.ts +2 -2
  22. package/dist/dts/new/types/misc.d.ts.map +1 -1
  23. package/dist/dts/new/utils/renderer.d.ts +1 -1
  24. package/dist/dts/new/utils/renderer.d.ts.map +1 -1
  25. package/dist/dts/new/utils/transformers.d.ts +2 -2
  26. package/dist/dts/new/utils/transformers.d.ts.map +1 -1
  27. package/dist/esm/new/main/edit-config/col-filters/col-filters-grid.helpers.js +2 -2
  28. package/dist/esm/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.js +39 -6
  29. package/dist/esm/new/main/edit-config/col-rename-alias/col-rename-alias-grid.js +20 -5
  30. package/dist/esm/new/main/edit-config/col-rename-alias/col-rename-alias-grid.template.js +1 -1
  31. package/dist/esm/new/main/edit-config/datasource-config/datasource-config-item.js +16 -16
  32. package/dist/esm/new/main/edit-config/datasource-config/datasource-config-item.template.js +5 -5
  33. package/dist/esm/new/main/edit-config/datasource-config/datasources-config-container.helpers.js +2 -2
  34. package/dist/esm/new/main/edit-config/datasource-config/datasources-config-container.template.js +1 -1
  35. package/dist/esm/new/main/edit-config/row-filters/row-filters.js +4 -4
  36. package/dist/esm/new/main/edit-config/shared/datasource-data-base-component.helpers.ts.js +16 -9
  37. package/dist/esm/new/main/edit-config/shared/datasource-data-base-component.js +4 -4
  38. package/dist/esm/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.js +7 -7
  39. package/dist/esm/new/main/generated-reports/generated-reports.js +1 -1
  40. package/dist/esm/new/store/slices/datasources-config.js +11 -8
  41. package/dist/esm/new/utils/renderer.js +2 -1
  42. package/dist/esm/new/utils/transformers.js +2 -2
  43. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"col-rename-alias-grid.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAuB,MAAM,6BAA6B,CAAC;AAGrF,OAAO,EACL,2BAA2B,EAK5B,MAAM,WAAW,CAAC;AAMnB,qBAKa,iBAAkB,SAAQ,2BAA2B;IAChE;;OAEG;cACa,gBAAgB;IAYhC,cAAc,IAAI,iBAAiB;CAoDpC"}
1
+ {"version":3,"file":"col-rename-alias-grid.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAuB,MAAM,6BAA6B,CAAC;AAGrF,OAAO,EACL,2BAA2B,EAM5B,MAAM,WAAW,CAAC;AAWnB,qBAKa,iBAAkB,SAAQ,2BAA2B;IAChE;;OAEG;cACa,gBAAgB;IAahC,cAAc,IAAI,iBAAiB;CAmEpC"}
@@ -1,11 +1,20 @@
1
- import { ICellRendererParams } from '@ag-grid-community/core';
1
+ import { CellClassParams, CellStyle, ICellRendererParams, RowSelectedEvent } from '@ag-grid-community/core';
2
+ import { GridColumnNames, GridRowData } from '../shared';
2
3
  import { ColumnRenameAliasRowData } from './col-rename-alias-grid.types';
3
4
  /**
4
5
  * Adds display name info from store to the row data
5
6
  */
6
7
  export declare function lookupColumnRename(data: ColumnRenameAliasRowData): ColumnRenameAliasRowData;
8
+ /**
9
+ * Factory for creating cell styles based on filter status for rename grid cells
10
+ */
11
+ export declare function buildRenameCellStyle<T extends Pick<GridRowData, GridColumnNames.Datasource | GridColumnNames.ColumnName>>(rowDeselectedStyle: CellStyle, rowSelectedStyle?: CellStyle): (params: CellClassParams<T>) => CellStyle;
7
12
  /**
8
13
  * Handler for display name changes in the grid
9
14
  */
10
15
  export declare const displayNameOnChangeHandler: (callback: () => any) => (value: string, params: ICellRendererParams<ColumnRenameAliasRowData>) => void;
16
+ /**
17
+ * Handler for row selection changes in the grid
18
+ */
19
+ export declare function renameRowSelectionChangedHandler(event: RowSelectedEvent<ColumnRenameAliasRowData>): void;
11
20
  //# sourceMappingURL=col-rename-alias-grid.helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"col-rename-alias-grid.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,wBAAwB,GAAG,wBAAwB,CAW3F;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B,aAAc,MAAM,GAAG,aAC7C,MAAM,UAAU,oBAAoB,wBAAwB,CAAC,SAa7E,CAAC"}
1
+ {"version":3,"file":"col-rename-alias-grid.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,SAAS,EACT,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,eAAe,EACf,WAAW,EAIZ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,wBAAwB,GAAG,wBAAwB,CAU3F;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,CAAC,SAAS,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,UAAU,GAAG,eAAe,CAAC,UAAU,CAAC,EACpF,kBAAkB,EAAE,SAAS,EAAE,gBAAgB,GAAE,SAAc,YAC/C,gBAAgB,CAAC,CAAC,KAAG,SAAS,CAM/C;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B,aAAc,MAAM,GAAG,aAC7C,MAAM,UAAU,oBAAoB,wBAAwB,CAAC,SAc7E,CAAC;AAEF;;GAEG;AACH,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,GAChD,IAAI,CAiBN"}
@@ -1,16 +1,16 @@
1
1
  import { Connect } from '@genesislcap/foundation-comms';
2
2
  import { GenesisElement } from '@genesislcap/web-core';
3
- import { DatasourceKey, DatasourceOutputTypes } from '../../../store';
3
+ import { DatasourceName, DatasourceOutputTypes } from '../../../store';
4
4
  import { DatasourceChoice } from './types';
5
5
  export declare class DatasourceConfigItem extends GenesisElement {
6
6
  connect: Connect;
7
7
  private getSchema;
8
- datasourceKey: DatasourceKey | null;
8
+ datasourceName: DatasourceName | null;
9
9
  datasourceChoices: DatasourceChoice[] | null;
10
10
  canRemove: boolean;
11
11
  position: 'below' | 'above';
12
12
  deleteDatasourceHandler(): void;
13
- updateNameHandler(newName: string): void;
13
+ updateKeyHandler(newKey: string): void;
14
14
  updateOutputTypeHandler(newType: DatasourceOutputTypes): void;
15
15
  updateDatasourceSourceHandler(selectedOption: HTMLSelectElement): Promise<void>;
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"datasource-config-item.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/datasource-config/datasource-config-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAuB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAGL,aAAa,EACb,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AASxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,qBAKa,oBAAqB,SAAQ,cAAc;IAC7C,OAAO,EAAG,OAAO,CAAC;IAC3B,OAAO,CAAC,SAAS,CAAqC;IAE1C,aAAa,EAAE,aAAa,GAAG,IAAI,CAAQ;IAC3C,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAQ;IACZ,SAAS,EAAE,OAAO,CAAS;IAEzE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAW;IAE5C,uBAAuB;IAQvB,iBAAiB,CAAC,OAAO,EAAE,MAAM;IAUjC,uBAAuB,CAAC,OAAO,EAAE,qBAAqB;IAUhD,6BAA6B,CAAC,cAAc,EAAE,iBAAiB;CAoCtE"}
1
+ {"version":3,"file":"datasource-config-item.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/datasource-config/datasource-config-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAuB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAGL,cAAc,EACd,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AASxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,qBAKa,oBAAqB,SAAQ,cAAc;IAC7C,OAAO,EAAG,OAAO,CAAC;IAC3B,OAAO,CAAC,SAAS,CAAqC;IAE1C,cAAc,EAAE,cAAc,GAAG,IAAI,CAAQ;IAC7C,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAQ;IACZ,SAAS,EAAE,OAAO,CAAS;IAEzE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAW;IAE5C,uBAAuB;IAQvB,gBAAgB,CAAC,MAAM,EAAE,MAAM;IAU/B,uBAAuB,CAAC,OAAO,EAAE,qBAAqB;IAUhD,6BAA6B,CAAC,cAAc,EAAE,iBAAiB;CAoCtE"}
@@ -16,8 +16,8 @@ export declare abstract class DatasourceDataBaseComponent extends GenesisElement
16
16
  name: string;
17
17
  spec: JSONSchema7;
18
18
  }[];
19
- datasourceKey: MultiDatasourceHandler['datasourceKey'];
20
- datasourceKeyChanged(): void;
19
+ datasourceName: MultiDatasourceHandler['datasourceName'];
20
+ datasourceNameChanged(): void;
21
21
  /**
22
22
  * Updates the datasource specifications based on the selected datasource key
23
23
  */
@@ -1 +1 @@
1
- {"version":3,"file":"datasource-data-base-component.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/shared/datasource-data-base-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAc,MAAM,uBAAuB,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAErE;;;GAGG;AACH,8BAAsB,2BACpB,SAAQ,cACR,YAAW,sBAAsB;IAExB,OAAO,EAAG,OAAO,CAAC;IAEf,SAAS,EAAE,WAAW,EAAE,CAAM;IAC9B,SAAS,UAAS;IAE9B,SAAS,CAAC,SAAS,kFAAqC;IACxD,SAAS,CAAC,cAAc,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,WAAW,CAAA;KAAE,EAAE,CAAM;IAEzD,aAAa,EAAE,sBAAsB,CAAC,eAAe,CAAC,CAAC;IAEnE,oBAAoB;IAIpB;;OAEG;cACa,wBAAwB;IAiBxC;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAEpD;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM;CAKjD"}
1
+ {"version":3,"file":"datasource-data-base-component.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/shared/datasource-data-base-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAc,MAAM,uBAAuB,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAErE;;;GAGG;AACH,8BAAsB,2BACpB,SAAQ,cACR,YAAW,sBAAsB;IAExB,OAAO,EAAG,OAAO,CAAC;IAEf,SAAS,EAAE,WAAW,EAAE,CAAM;IAC9B,SAAS,UAAS;IAE9B,SAAS,CAAC,SAAS,kFAAqC;IACxD,SAAS,CAAC,cAAc,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,WAAW,CAAA;KAAE,EAAE,CAAM;IAEzD,cAAc,EAAE,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;IAErE,qBAAqB;IAIrB;;OAEG;cACa,wBAAwB;IAiBxC;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAEpD;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM;CAKjD"}
@@ -1,6 +1,6 @@
1
1
  import { CellClassParams, CellStyle } from '@ag-grid-community/core';
2
2
  import type { JSONSchema7 } from 'json-schema';
3
- import { DatasourceInputTypes, DatasourceKey } from '../../../store';
3
+ import { DatasourceInputTypes, DatasourceName } from '../../../store';
4
4
  import { Genesis } from '../../../types';
5
5
  import { GridColumnNames, GridRowData } from './datasource-data-base-component.types';
6
6
  /**
@@ -26,14 +26,18 @@ export declare function configureDisabledColumns(data: Pick<GridRowData, GridCol
26
26
  * Checks if a column is filtered in the current configuration
27
27
  */
28
28
  export declare function lookupColumnIsIncluded(data: Pick<GridRowData, GridColumnNames.Datasource | GridColumnNames.ColumnName>): boolean;
29
+ /**
30
+ * Checks if a column is filtered in the current configuration
31
+ */
32
+ export declare function lookupColumnIsRenamed(data: Pick<GridRowData, GridColumnNames.Datasource | GridColumnNames.ColumnName>): boolean;
29
33
  /**
30
34
  * Converts display-formatted datasource name to internal key format
31
35
  */
32
- export declare function datasourceKeyFromDisplay(input: string): DatasourceKey;
36
+ export declare function datasourceNameFromDisplay(input: string): DatasourceName;
33
37
  /**
34
- * Formats datasource key for display
38
+ * Formats datasource name for display
35
39
  */
36
- export declare function datasourceKeyForDisplay(datasource: string, type: DatasourceInputTypes): string;
40
+ export declare function datasourceNameForDisplay(datasource: string, type: DatasourceInputTypes): string;
37
41
  /**
38
42
  * Factory for creating cell styles based on filter status
39
43
  */
@@ -49,7 +53,7 @@ export declare function mapTypeToRenderer(type: Genesis.GenesisFieldTypes): 'str
49
53
  /**
50
54
  * Common implementation for fetching and processing datasource schemas
51
55
  */
52
- export declare function fetchDatasourceSpecs(datasourceKey: DatasourceKey | null, getSchema: (name: string) => Promise<JSONSchema7>, onError: (error: Error, message: string) => void): Promise<{
56
+ export declare function fetchDatasourceSpecs(datasourceName: DatasourceName | null, getSchema: (name: string) => Promise<JSONSchema7>, onError: (error: Error, message: string) => void): Promise<{
53
57
  name: string;
54
58
  spec: JSONSchema7;
55
59
  }[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"datasource-data-base-component.helpers.ts.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/shared/datasource-data-base-component.helpers.ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAW,oBAAoB,EAAE,aAAa,EAAa,MAAM,gBAAgB,CAAC;AACzF,OAAO,EAAW,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAMlD,OAAO,EACL,eAAe,EACf,WAAW,EAEZ,MAAM,wCAAwC,CAAC;AAEhD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC;CAC3B,GAAG,WAAW,EAAE,CAahB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG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AAI,EAAE,WAAW,CAAA;CAAE,EAAE,CAAC,CAqBhD"}
1
+ {"version":3,"file":"datasource-data-base-component.helpers.ts.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/shared/datasource-data-base-component.helpers.ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAW,oBAAoB,EAAE,cAAc,EAAa,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAW,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAMlD,OAAO,EACL,eAAe,EACf,WAAW,EAEZ,MAAM,wCAAwC,CAAC;AAEhD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC;CAC3B,GAAG,WAAW,EAAE,CAahB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG,OAAO,CAE1F;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,IAAI,CACR,WAAW,EACX,eAAe,CAAC,UAAU,GAAG,eAAe,CAAC,UAAU,GAAG,eAAe,CAAC,IAAI,CAC/E,GACA,WAAW,CAUb;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,UAAU,GAAG,eAAe,CAAC,UAAU,CAAC,GAC/E,OAAO,CAMT;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,UAAU,GAAG,eAAe,CAAC,UAAU,CAAC,GAC/E,OAAO,CAMT;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAQvE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,MAAM,CAE/F;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,CAAC,SAAS,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,UAAU,GAAG,eAAe,CAAC,UAAU,CAAC,EACpF,kBAAkB,EAAE,SAAS,EAAE,gBAAgB,GAAE,SAAc,YAC/C,gBAAgB,CAAC,CAAC,KAAG,SAAS,CAM/C;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAQhE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,CAAC,iBAAiB,GAC9B,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,IAAI,CAWxC;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,cAAc,EAAE,cAAc,GAAG,IAAI,EACrC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,EACjD,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,GAC/C,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,WAAW,CAAA;CAAE,EAAE,CAAC,CAqBhD"}
@@ -4,22 +4,22 @@ import { MultiDatasourceHandler } from './tabbed-datasource-container.types';
4
4
  /**
5
5
  * This is a container which wraps up content which should
6
6
  * implement MultiDatasourceHandler interface, and this will
7
- * hanlde passing in the relevent `datasourceKey` to it.
7
+ * handle passing in the relevant `datasourceName` to it.
8
8
  *
9
9
  * This uses rapid-tabs just for the tabs themselves, but
10
10
  * performs virtual tabbing by just using one slotted component
11
- * but changing the `datasourceKey` attribute as you click through tabs
11
+ * but changing the `datasourceName` attribute as you click through tabs
12
12
  *
13
- * This uses the IntersectionObserver to know when the instance is visible (on the stepper steps) and if it's not then it supplies `null` as the `datasourceKey` for the slotted content
13
+ * This uses the IntersectionObserver to know when the instance is visible (on the stepper steps) and if it's not then it supplies `null` as the `datasourceName` for the slotted content
14
14
  */
15
15
  export declare class TabbedDatasourceContainer extends GenesisElement implements MultiDatasourceHandler {
16
- datasourceKey: MultiDatasourceHandler['datasourceKey'];
16
+ datasourceName: MultiDatasourceHandler['datasourceName'];
17
17
  isActive: boolean;
18
18
  tabs: Tabs;
19
19
  isActiveChanged(_: any, active: boolean): void;
20
20
  private observer;
21
21
  connectedCallback(): void;
22
22
  disconnectedCallback(): void;
23
- handleDatasourceChanged(key: MultiDatasourceHandler['datasourceKey']): void;
23
+ handleDatasourceChanged(key: MultiDatasourceHandler['datasourceName']): void;
24
24
  }
25
25
  //# sourceMappingURL=tabbed-datasource-container.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabbed-datasource-container.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAsB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAIvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,qBAKa,yBAA0B,SAAQ,cAAe,YAAW,sBAAsB;IACjF,aAAa,EAAE,sBAAsB,CAAC,eAAe,CAAC,CAAC;IACvD,QAAQ,UAAS;IAEjB,IAAI,EAAE,IAAI,CAAC;IAEvB,eAAe,CAAC,CAAC,KAAA,EAAE,MAAM,EAAE,OAAO;IAWlC,OAAO,CAAC,QAAQ,CAAuB;IAEvC,iBAAiB;IAQjB,oBAAoB,IAAI,IAAI;IAK5B,uBAAuB,CAAC,GAAG,EAAE,sBAAsB,CAAC,eAAe,CAAC;CAarE"}
1
+ {"version":3,"file":"tabbed-datasource-container.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAsB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAIvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,qBAKa,yBAA0B,SAAQ,cAAe,YAAW,sBAAsB;IACjF,cAAc,EAAE,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;IACzD,QAAQ,UAAS;IAEjB,IAAI,EAAE,IAAI,CAAC;IAEvB,eAAe,CAAC,CAAC,KAAA,EAAE,MAAM,EAAE,OAAO;IAWlC,OAAO,CAAC,QAAQ,CAAuB;IAEvC,iBAAiB;IAQjB,oBAAoB,IAAI,IAAI;IAK5B,uBAAuB,CAAC,GAAG,EAAE,sBAAsB,CAAC,gBAAgB,CAAC;CAatE"}
@@ -1,5 +1,5 @@
1
- import { DatasourceKey } from '../../../store';
1
+ import { DatasourceName } from '../../../store';
2
2
  export interface MultiDatasourceHandler {
3
- datasourceKey: DatasourceKey | null;
3
+ datasourceName: DatasourceName | null;
4
4
  }
5
5
  //# sourceMappingURL=tabbed-datasource-container.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabbed-datasource-container.types.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;CACrC"}
1
+ {"version":3,"file":"tabbed-datasource-container.types.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;CACvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"generated-reports.d.ts","sourceRoot":"","sources":["../../../../../src/new/main/generated-reports/generated-reports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuB,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAU,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAiB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;AAS5E,qBAKa,gBAAiB,SAAQ,cAAc;IACzC,OAAO,EAAE,OAAO,CAAC;IAC1B,0BAA0B,EAAE,wBAAwB,CAAC;IACrD,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,QAAQ,WAAY,MAAM,uFAYxB;IAEF,iBAAiB,yBAEf;IAEF,aAAa;IAkEb,cAAc;YA6BA,cAAc;YAkCd,YAAY;CA6B3B"}
1
+ {"version":3,"file":"generated-reports.d.ts","sourceRoot":"","sources":["../../../../../src/new/main/generated-reports/generated-reports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuB,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAU,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAiB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;AAS5E,qBAKa,gBAAiB,SAAQ,cAAc;IACzC,OAAO,EAAE,OAAO,CAAC;IAC1B,0BAA0B,EAAE,wBAAwB,CAAC;IACrD,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,QAAQ,WAAY,MAAM,uFAYxB;IAEF,iBAAiB,yBAEf;IAEF,aAAa;IAmEb,cAAc;YA6BA,cAAc;YAkCd,YAAY;CA6B3B"}
@@ -1,38 +1,39 @@
1
1
  import { RuleExpression } from '@genesislcap/foundation-ui';
2
2
  import { PayloadAction } from '@reduxjs/toolkit';
3
- import { DatasourceConfig, DatasourceKey, DatasourceOutputTypes } from './types';
3
+ import { DatasourceConfig, DatasourceName, DatasourceOutputTypes } from './types';
4
4
  export declare const initialState: DatasourceConfig;
5
5
  export declare const datasourceSlice: import("@reduxjs/toolkit").Slice<DatasourceConfig, {
6
6
  initDatasourceConfiguration(state: DatasourceConfig, action: PayloadAction<{
7
- base: Pick<DatasourceConfig[DatasourceKey], 'KEY' | 'INPUT_TYPE'>;
7
+ base: Pick<DatasourceConfig[DatasourceName], 'KEY' | 'INPUT_TYPE'>;
8
8
  fields: string[];
9
9
  }>): void;
10
- updateDatasourceName(state: DatasourceConfig, action: PayloadAction<{
11
- key: DatasourceKey;
12
- newName: string;
10
+ updateDatasourceKey(state: DatasourceConfig, action: PayloadAction<{
11
+ key: DatasourceName;
12
+ newKey: string;
13
13
  }>): void;
14
14
  updateDatasourceOutputType(state: DatasourceConfig, action: PayloadAction<{
15
- key: DatasourceKey;
15
+ key: DatasourceName;
16
16
  newType: DatasourceOutputTypes;
17
17
  }>): void;
18
18
  deleteDatasource(state: DatasourceConfig, action: PayloadAction<{
19
- key: DatasourceKey;
19
+ key: DatasourceName;
20
20
  }>): void;
21
21
  setColumnRename(state: DatasourceConfig, action: PayloadAction<{
22
- key: DatasourceKey;
22
+ key: DatasourceName;
23
23
  columnFrom: string;
24
24
  columnTo: string;
25
+ included: boolean;
25
26
  }>): void;
26
27
  /**
27
28
  * Will also clean up data associated with this field, such as rename transformers
28
29
  */
29
30
  setColumnIncluded(state: DatasourceConfig, action: PayloadAction<{
30
- key: DatasourceKey;
31
+ key: DatasourceName;
31
32
  column: string;
32
33
  included: boolean;
33
34
  }>): void;
34
35
  setRowFilter(state: DatasourceConfig, action: PayloadAction<{
35
- key: DatasourceKey;
36
+ key: DatasourceName;
36
37
  expression: RuleExpression.Expression['PredicateExpression'];
37
38
  }>): void;
38
39
  loadState(_: DatasourceConfig, action: PayloadAction<DatasourceConfig>): DatasourceConfig;
@@ -45,7 +46,7 @@ export declare const datasourceSlice: import("@reduxjs/toolkit").Slice<Datasourc
45
46
  OUTPUT_TYPE: "TABLE";
46
47
  TRANSFORMER_CONFIGURATION: import("./types").TransformerConfig;
47
48
  };
48
- getRowFilterExpression(state: DatasourceConfig, key: DatasourceKey): {
49
+ getRowFilterExpression(state: DatasourceConfig, key: DatasourceName): {
49
50
  TYPE: "PREDICATE_EXPRESSION";
50
51
  OPERATION: "AND" | "OR";
51
52
  EXPRESSIONS: (any | RuleExpression.BooleanValue | RuleExpression.Field | RuleExpression.NumericValue | RuleExpression.StringValue | RuleExpression.PlaceHolder | RuleExpression.NullValue | {
@@ -1 +1 @@
1
- {"version":3,"file":"datasources-config.d.ts","sourceRoot":"","sources":["../../../../../src/new/store/slices/datasources-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAG9D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEjF,eAAO,MAAM,YAAY,EAAE,gBAAqB,CAAC;AAEjD,eAAO,MAAM,eAAe;uCAKf,gBAAgB,UACf,cAAc;QACpB,IAAI,EAAE,KAAK,gBAAgB,CAAC,aAAa,CAAC,EAAE,KAAK,GAAG,YAAY,CAAC,CAAC;QAClE,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;gCAuBK,gBAAgB,UACf,cAAc;QAAE,GAAG,EAAE,aAAa,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,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,EAAE,CAAC;KAClB,CAAC;+BAwBK,gBAAgB,UACf,cAAc;QAAE,GAAG,EAAE,cAAc,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;sCAKvD,gBAAgB,UACf,cAAc;QAAE,GAAG,EAAE,cAAc,CAAC;QAAC,OAAO,EAAE,qBAAqB,CAAA;KAAE,CAAC;4BAIxD,gBAAgB,UAAU,cAAc;QAAE,GAAG,EAAE,cAAc,CAAA;KAAE,CAAC;2BAI/E,gBAAgB,UACf,cAAc;QACpB,GAAG,EAAE,cAAc,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;IAcJ;;OAEG;6BAEM,gBAAgB,UACf,cAAc;QAAE,GAAG,EAAE,cAAc,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;wBAyB1E,gBAAgB,UACf,cAAc;QACpB,GAAG,EAAE,cAAc,CAAC;QACpB,UAAU,EAAE,eAAe,UAAU,CAAC,qBAAqB,CAAC,CAAC;KAC9D,CAAC;iBAKS,gBAAgB,UAAU,cAAc,gBAAgB,CAAC;;2BAK/C,gBAAgB;yBAGlB,gBAAgB,OAAO,MAAM,gBAAgB;;;;;;;kCAGpC,gBAAgB,OAAO,cAAc;;;;;;;;;;;;;;;;;;;;;;EAIrE,CAAC"}
@@ -3,7 +3,7 @@ export declare const datasourceInputs: readonly ["REQ_REP", "DATA_PIPELINE"];
3
3
  export type DatasourceInputTypes = (typeof datasourceInputs)[number];
4
4
  export declare const datasourceOutputs: readonly ["TABLE"];
5
5
  export type DatasourceOutputTypes = (typeof datasourceOutputs)[number];
6
- export type DatasourceKey = `${DatasourceInputTypes}_${string}`;
6
+ export type DatasourceName = `${DatasourceInputTypes}_${string}`;
7
7
  export type TransformerConfig = {
8
8
  COLUMN_RENAMES?: {
9
9
  [k: string]: string;
@@ -12,7 +12,7 @@ export type TransformerConfig = {
12
12
  ROW_FILTERS?: RuleExpression.Expression['PredicateExpression'];
13
13
  };
14
14
  export type DatasourceConfig = {
15
- [k: DatasourceKey]: {
15
+ [k: DatasourceName]: {
16
16
  KEY: string;
17
17
  NAME: string;
18
18
  INPUT_TYPE: DatasourceInputTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/new/store/slices/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,eAAO,MAAM,gBAAgB,uCAAwC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAGrE,eAAO,MAAM,iBAAiB,oBAGpB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAIvE,MAAM,MAAM,aAAa,GAAG,GAAG,oBAAoB,IAAI,MAAM,EAAE,CAAC;AAEhE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,cAAc,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,WAAW,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;CAChE,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,CAAC,EAAE,aAAa,GAAG;QAClB,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,oBAAoB,CAAC;QACjC,WAAW,EAAE,qBAAqB,CAAC;QACnC,yBAAyB,EAAE,iBAAiB,CAAC;KAC9C,CAAC;CACH,CAAC;AAIF,eAAO,MAAM,mBAAmB,iCAAkC,CAAC;AAEnE,MAAM,MAAM,iB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AC,qBAAqB,CAAC,CAAC;CAChE,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,CAAC,EAAE,cAAc,GAAG;QACnB,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,oBAAoB,CAAC;QACjC,WAAW,EAAE,qBAAqB,CAAC;QACnC,yBAAyB,EAAE,iBAAiB,CAAC;KAC9C,CAAC;CACH,CAAC;AAIF,eAAO,MAAM,mBAAmB,iCAAkC,CAAC;AAEnE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,MAAM,MAAM,QAAQ,GAAG;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC"}
@@ -64,10 +64,10 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
64
64
  };
65
65
  type: string;
66
66
  }): void;
67
- updateDatasourceName(state: import("./slices").DatasourceConfig, action: {
67
+ updateDatasourceKey(state: import("./slices").DatasourceConfig, action: {
68
68
  payload: {
69
69
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
70
- newName: string;
70
+ newKey: string;
71
71
  };
72
72
  type: string;
73
73
  }): void;
@@ -89,6 +89,7 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
89
89
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
90
90
  columnFrom: string;
91
91
  columnTo: string;
92
+ included: boolean;
92
93
  };
93
94
  type: string;
94
95
  }): void;
@@ -227,10 +228,10 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
227
228
  };
228
229
  type: string;
229
230
  }): void;
230
- updateDatasourceName(state: import("./slices").DatasourceConfig, action: {
231
+ updateDatasourceKey(state: import("./slices").DatasourceConfig, action: {
231
232
  payload: {
232
233
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
233
- newName: string;
234
+ newKey: string;
234
235
  };
235
236
  type: string;
236
237
  }): void;
@@ -252,6 +253,7 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
252
253
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
253
254
  columnFrom: string;
254
255
  columnTo: string;
256
+ included: boolean;
255
257
  };
256
258
  type: string;
257
259
  }): void;
@@ -393,10 +395,10 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
393
395
  };
394
396
  type: string;
395
397
  }): void;
396
- updateDatasourceName(state: import("./slices").DatasourceConfig, action: {
398
+ updateDatasourceKey(state: import("./slices").DatasourceConfig, action: {
397
399
  payload: {
398
400
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
399
- newName: string;
401
+ newKey: string;
400
402
  };
401
403
  type: string;
402
404
  }): void;
@@ -418,6 +420,7 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
418
420
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
419
421
  columnFrom: string;
420
422
  columnTo: string;
423
+ included: boolean;
421
424
  };
422
425
  type: string;
423
426
  }): void;
@@ -556,10 +559,10 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
556
559
  };
557
560
  type: string;
558
561
  }): void;
559
- updateDatasourceName(state: import("./slices").DatasourceConfig, action: {
562
+ updateDatasourceKey(state: import("./slices").DatasourceConfig, action: {
560
563
  payload: {
561
564
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
562
- newName: string;
565
+ newKey: string;
563
566
  };
564
567
  type: string;
565
568
  }): void;
@@ -581,6 +584,7 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
581
584
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
582
585
  columnFrom: string;
583
586
  columnTo: string;
587
+ included: boolean;
584
588
  };
585
589
  type: string;
586
590
  }): void;
@@ -719,10 +723,10 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
719
723
  };
720
724
  type: string;
721
725
  }): void;
722
- updateDatasourceName(state: import("./slices").DatasourceConfig, action: {
726
+ updateDatasourceKey(state: import("./slices").DatasourceConfig, action: {
723
727
  payload: {
724
728
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
725
- newName: string;
729
+ newKey: string;
726
730
  };
727
731
  type: string;
728
732
  }): void;
@@ -744,6 +748,7 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
744
748
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
745
749
  columnFrom: string;
746
750
  columnTo: string;
751
+ included: boolean;
747
752
  };
748
753
  type: string;
749
754
  }): void;
@@ -882,10 +887,10 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
882
887
  };
883
888
  type: string;
884
889
  }): void;
885
- updateDatasourceName(state: import("./slices").DatasourceConfig, action: {
890
+ updateDatasourceKey(state: import("./slices").DatasourceConfig, action: {
886
891
  payload: {
887
892
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
888
- newName: string;
893
+ newKey: string;
889
894
  };
890
895
  type: string;
891
896
  }): void;
@@ -907,6 +912,7 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
907
912
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
908
913
  columnFrom: string;
909
914
  columnTo: string;
915
+ included: boolean;
910
916
  };
911
917
  type: string;
912
918
  }): void;
@@ -1045,10 +1051,10 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
1045
1051
  };
1046
1052
  type: string;
1047
1053
  }): void;
1048
- updateDatasourceName(state: import("./slices").DatasourceConfig, action: {
1054
+ updateDatasourceKey(state: import("./slices").DatasourceConfig, action: {
1049
1055
  payload: {
1050
1056
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
1051
- newName: string;
1057
+ newKey: string;
1052
1058
  };
1053
1059
  type: string;
1054
1060
  }): void;
@@ -1070,6 +1076,7 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
1070
1076
  key: `REQ_REP_${string}` | `DATA_PIPELINE_${string}`;
1071
1077
  columnFrom: string;
1072
1078
  columnTo: string;
1079
+ included: boolean;
1073
1080
  };
1074
1081
  type: string;
1075
1082
  }): void;
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/new/store/store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,eAAe,EAAE,eAO7B,CAAC;AAEF,eAAO,MACL,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACL,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACP,WAAW;;;GACX,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBACgD,CAAC;AAE/D,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,QAAQ,CAAC;AAE1C,eAAO,MAAM,eAAe,UAAW,eAAe,SAGrD,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,eAGhC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { JSONSchema7 as JSONShemaBase } from 'json-schema';
2
- import { BaseConfig, DatasourceConfig, DatasourceKey, Schedule } from '../store';
2
+ import { BaseConfig, DatasourceConfig, DatasourceName, Schedule } from '../store';
3
3
  export declare namespace Genesis {
4
4
  const genesisFieldTypes: readonly ["STRING", "ENUM", "INT", "SHORT", "DOUBLE", "LONG", "BOOLEAN", "BIGDECIMAL", "DATE", "DATETIME", "RAW", "NANO_TIMESTAMP"];
5
5
  type GenesisFieldTypes = (typeof genesisFieldTypes)[number];
@@ -11,7 +11,7 @@ export declare namespace Genesis {
11
11
  } | undefined;
12
12
  };
13
13
  type ServerReportConfig = Omit<BaseConfig, 'SCHEDULE'> & {
14
- DATA_SOURCES: DatasourceConfig[DatasourceKey][];
14
+ DATA_SOURCES: DatasourceConfig[DatasourceName][];
15
15
  SCHEDULES: Schedule[];
16
16
  };
17
17
  const FileStorageFields: {
@@ -1 +1 @@
1
- {"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../../src/new/types/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,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QACtC,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QACxC,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QACxC,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QACvC,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QACvC,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC9C,CAAC;CACH;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI;IAAE,CAAC,EAAE,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,CAAC,EAAE,KAAK,CAAC;IAAC,IAAI,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { ColDef } from '@ag-grid-community/core';
2
- export declare const buttonCellRenderer: (title: any, clickHandler: any, contentTemplate: any) => ColDef;
2
+ export declare const buttonCellRenderer: (title: any, clickHandler: any, contentTemplate: any, isDisabled?: any) => ColDef;
3
3
  //# sourceMappingURL=renderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../src/new/utils/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,2DAA2C,MA2BxE,CAAC"}
1
+ {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../src/new/utils/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,6EAAwD,MA4BrF,CAAC"}
@@ -1,8 +1,8 @@
1
- import { DatasourceInputTypes, DatasourceKey, ReportingConfig } from '../store';
1
+ import { DatasourceInputTypes, DatasourceName, ReportingConfig } from '../store';
2
2
  import { Display, Genesis } from '../types';
3
3
  export declare function transformToServerPayload(state: ReportingConfig): Genesis.ServerReportConfig;
4
4
  export declare function transformFromServerPaylaod(payload: Genesis.ServerReportConfig): ReportingConfig;
5
5
  export declare function datasourceInputForDisplay(input: DatasourceInputTypes): Display.DatasourceInputTypes;
6
6
  export declare function datasourceInputFromDisplay(display: Display.DatasourceInputTypes): DatasourceInputTypes;
7
- export declare function buildDatasourceKey(key: string, type: DatasourceInputTypes): DatasourceKey;
7
+ export declare function buildDatasourceName(key: string, type: DatasourceInputTypes): DatasourceName;
8
8
  //# sourceMappingURL=transformers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../../../../src/new/utils/transformers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,oBAAoB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAY3F;AAID,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,GAAG,eAAe,CA6C/F;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,oBAAoB,CAI9B;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,OAAO,CAAC,oBAAoB,GACpC,oBAAoB,CAItB;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,aAAa,CAEzF"}
1
+ {"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../../../../src/new/utils/transformers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,oBAAoB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC7F,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAY3F;AAID,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,GAAG,eAAe,CA6C/F;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,oBAAoB,CAI9B;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,OAAO,CAAC,oBAAoB,GACpC,oBAAoB,CAItB;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,cAAc,CAE3F"}
@@ -1,5 +1,5 @@
1
1
  import { actions } from '../../../store';
2
- import { GridColumnNames, datasourceKeyFromDisplay, lookupColumnIsIncluded, shouldDisableColumn, } from '../shared';
2
+ import { GridColumnNames, datasourceNameFromDisplay, lookupColumnIsIncluded, shouldDisableColumn, } from '../shared';
3
3
  /**
4
4
  * Handler for row selection changes in the grid
5
5
  */
@@ -15,7 +15,7 @@ export function rowSelectionChangedHandler(event) {
15
15
  if (shouldDisableColumn(event.data))
16
16
  return;
17
17
  actions.datasourceConfig.setColumnIncluded({
18
- key: datasourceKeyFromDisplay(event.data[GridColumnNames.Datasource]),
18
+ key: datasourceNameFromDisplay(event.data[GridColumnNames.Datasource]),
19
19
  column: event.data[GridColumnNames.ColumnName],
20
20
  included: (_b = event.node.isSelected()) !== null && _b !== void 0 ? _b : true,
21
21
  });
@@ -1,15 +1,25 @@
1
+ import { capitalCase } from 'change-case';
1
2
  import { actions, selectors } from '../../../store';
2
- import { GridColumnNames, datasourceKeyFromDisplay } from '../shared';
3
+ import { GridColumnNames, datasourceNameFromDisplay, lookupColumnIsRenamed, shouldDisableColumn, } from '../shared';
3
4
  /**
4
5
  * Adds display name info from store to the row data
5
6
  */
6
7
  export function lookupColumnRename(data) {
7
8
  var _a;
8
- const key = datasourceKeyFromDisplay(data[GridColumnNames.Datasource]);
9
+ const key = datasourceNameFromDisplay(data[GridColumnNames.Datasource]);
9
10
  const rename = (_a = selectors.datasourceConfig.getDatasource(key).TRANSFORMER_CONFIGURATION.COLUMN_RENAMES) === null || _a === void 0 ? void 0 : _a[data[GridColumnNames.ColumnName]];
10
- if (!rename)
11
- return data;
12
- return Object.assign(Object.assign({}, data), { [GridColumnNames.DisplayName]: rename });
11
+ return Object.assign(Object.assign({}, data), { [GridColumnNames.DisplayName]: rename || capitalCase(data[GridColumnNames.DisplayName]) });
12
+ }
13
+ /**
14
+ * Factory for creating cell styles based on filter status for rename grid cells
15
+ */
16
+ export function buildRenameCellStyle(rowDeselectedStyle, rowSelectedStyle = {}) {
17
+ return (params) => {
18
+ if (params.data && lookupColumnIsRenamed(params.data)) {
19
+ return rowSelectedStyle;
20
+ }
21
+ return rowDeselectedStyle;
22
+ };
13
23
  }
14
24
  /**
15
25
  * Handler for display name changes in the grid
@@ -21,12 +31,35 @@ export const displayNameOnChangeHandler = (callback) => {
21
31
  const prohibitedChars = /[-@=+]/g;
22
32
  const columnTo = value.replace(prohibitedChars, '');
23
33
  actions.datasourceConfig.setColumnRename({
24
- key: datasourceKeyFromDisplay(params.data[GridColumnNames.Datasource]),
34
+ key: datasourceNameFromDisplay(params.data[GridColumnNames.Datasource]),
25
35
  columnFrom: params.data[GridColumnNames.ColumnName],
26
36
  columnTo,
37
+ included: true,
27
38
  });
28
39
  if (value !== columnTo) {
29
40
  callback();
30
41
  }
31
42
  };
32
43
  };
44
+ /**
45
+ * Handler for row selection changes in the grid
46
+ */
47
+ export function renameRowSelectionChangedHandler(event) {
48
+ var _a, _b;
49
+ if (!event.data)
50
+ return;
51
+ // gate event listener to only trigger if the data is actually changed by the user
52
+ // (return if setting the same value as in the store, e.g. when first loading
53
+ // the grid data)
54
+ if (lookupColumnIsRenamed(event.data) === ((_a = event.node.isSelected()) !== null && _a !== void 0 ? _a : true))
55
+ return;
56
+ if (shouldDisableColumn(event.data))
57
+ return;
58
+ actions.datasourceConfig.setColumnRename({
59
+ key: datasourceNameFromDisplay(event.data[GridColumnNames.Datasource]),
60
+ columnFrom: event.data[GridColumnNames.ColumnName],
61
+ columnTo: event.data[GridColumnNames.DisplayName],
62
+ included: (_b = event.node.isSelected()) !== null && _b !== void 0 ? _b : true,
63
+ });
64
+ event.api.redrawRows();
65
+ }
@@ -2,8 +2,8 @@ import { __decorate } from "tslib";
2
2
  import { RapidAgTextRenderer } from '@genesislcap/rapid-grid-pro';
3
3
  import { customElement } from '@genesislcap/web-core';
4
4
  import { RowSelectRenderer } from '../../../../old/components/renderers/row-select.renderer';
5
- import { DatasourceDataBaseComponent, GridColumnNames, buildCellStyle, pathParameters, configureDisabledColumns, } from '../shared';
6
- import { displayNameOnChangeHandler, lookupColumnRename } from './col-rename-alias-grid.helpers';
5
+ import { DatasourceDataBaseComponent, GridColumnNames, pathParameters, configureDisabledColumns, lookupColumnIsRenamed, lookupColumnIsIncluded, } from '../shared';
6
+ import { buildRenameCellStyle, displayNameOnChangeHandler, lookupColumnRename, renameRowSelectionChangedHandler, } from './col-rename-alias-grid.helpers';
7
7
  import { styles } from './col-rename-alias-grid.styles';
8
8
  import { template } from './col-rename-alias-grid.template';
9
9
  let ColRenamesAliases = class ColRenamesAliases extends DatasourceDataBaseComponent {
@@ -15,6 +15,7 @@ let ColRenamesAliases = class ColRenamesAliases extends DatasourceDataBaseCompon
15
15
  this.fieldData = this.datasourceSpec
16
16
  .flatMap(pathParameters)
17
17
  .map(configureDisabledColumns)
18
+ .filter(lookupColumnIsIncluded)
18
19
  .map(lookupColumnRename);
19
20
  this.dataError = false;
20
21
  }
@@ -31,15 +32,23 @@ let ColRenamesAliases = class ColRenamesAliases extends DatasourceDataBaseCompon
31
32
  display: 'none',
32
33
  };
33
34
  const columnDefs = [
35
+ {
36
+ field: '',
37
+ headerTooltip: 'Controls whether this column is added to the renamed columns.',
38
+ headerCheckboxSelection: true,
39
+ cellRenderer: 'row-select',
40
+ valueGetter: (params) => lookupColumnIsRenamed(params.data),
41
+ maxWidth: 60,
42
+ },
34
43
  {
35
44
  field: GridColumnNames.ColumnName,
36
45
  headerTooltip: 'The name of the field as defined on the selected datasource.',
37
- cellStyle: buildCellStyle(disableCellStyle),
46
+ cellStyle: buildRenameCellStyle(disableCellStyle),
38
47
  },
39
48
  {
40
49
  field: GridColumnNames.DisplayName,
41
50
  headerTooltip: 'Configurable name for the associated column name.',
42
- cellStyle: buildCellStyle(hideCellStyle),
51
+ cellStyle: buildRenameCellStyle(hideCellStyle),
43
52
  cellRenderer: RapidAgTextRenderer,
44
53
  cellRendererParams: {
45
54
  accessor: GridColumnNames.DisplayName,
@@ -49,7 +58,7 @@ let ColRenamesAliases = class ColRenamesAliases extends DatasourceDataBaseCompon
49
58
  {
50
59
  field: GridColumnNames.Type,
51
60
  headerTooltip: 'The type of the field on the underlying datasource.',
52
- cellStyle: buildCellStyle(disableCellStyle),
61
+ cellStyle: buildRenameCellStyle(disableCellStyle),
53
62
  },
54
63
  ];
55
64
  return {
@@ -70,6 +79,12 @@ let ColRenamesAliases = class ColRenamesAliases extends DatasourceDataBaseCompon
70
79
  ariaLabelField: GridColumnNames.ColumnName,
71
80
  },
72
81
  suppressRowClickSelection: true,
82
+ onRowSelected: renameRowSelectionChangedHandler,
83
+ onRowDataUpdated(params) {
84
+ params.api.forEachNode((node) => {
85
+ node.setSelected(lookupColumnIsRenamed(node.data));
86
+ });
87
+ },
73
88
  };
74
89
  }
75
90
  };
@@ -3,7 +3,7 @@ export const template = html `
3
3
  <div class="grid-container ${(x) => classNames(['error', x.dataError])}">
4
4
  <rapid-grid-pro
5
5
  class="${(x) => classNames(['error', x.dataError])}"
6
- data-test-id="datasource-config-grid"
6
+ data-test-id="datasource-config-col-rename-grid"
7
7
  :gridOptions=${(x) => x.getGridOptions()}
8
8
  :rowData=${(x) => x.fieldData}
9
9
  grid-autosizing
@@ -9,7 +9,7 @@ let DatasourceConfigItem = class DatasourceConfigItem extends GenesisElement {
9
9
  constructor() {
10
10
  super(...arguments);
11
11
  this.getSchema = getDatasourceSchema(this.connect);
12
- this.datasourceKey = null;
12
+ this.datasourceName = null;
13
13
  this.datasourceChoices = null;
14
14
  this.canRemove = false;
15
15
  this.position = 'below';
@@ -17,27 +17,27 @@ let DatasourceConfigItem = class DatasourceConfigItem extends GenesisElement {
17
17
  deleteDatasourceHandler() {
18
18
  if (!this.canRemove)
19
19
  throw new Error('Trying to remove final datasource!');
20
- if (!this.datasourceKey)
20
+ if (!this.datasourceName)
21
21
  throw new Error('deleteDatasourceHandler - Datasource key unset!');
22
22
  actions.datasourceConfig.deleteDatasource({
23
- key: this.datasourceKey,
23
+ key: this.datasourceName,
24
24
  });
25
25
  }
26
- updateNameHandler(newName) {
27
- if (!this.datasourceKey) {
28
- throw new Error('updateNameHandler - datasourceKey unset');
26
+ updateKeyHandler(newKey) {
27
+ if (!this.datasourceName) {
28
+ throw new Error('updateKeyHandler - datasourceName unset');
29
29
  }
30
- actions.datasourceConfig.updateDatasourceName({
31
- key: this.datasourceKey,
32
- newName,
30
+ actions.datasourceConfig.updateDatasourceKey({
31
+ key: this.datasourceName,
32
+ newKey,
33
33
  });
34
34
  }
35
35
  updateOutputTypeHandler(newType) {
36
- if (!this.datasourceKey) {
37
- throw new Error('updateNameHandler - datasourceKey unset');
36
+ if (!this.datasourceName) {
37
+ throw new Error('updateKeyHandler - datasourceName unset');
38
38
  }
39
39
  actions.datasourceConfig.updateDatasourceOutputType({
40
- key: this.datasourceKey,
40
+ key: this.datasourceName,
41
41
  newType,
42
42
  });
43
43
  }
@@ -49,14 +49,14 @@ let DatasourceConfigItem = class DatasourceConfigItem extends GenesisElement {
49
49
  if (!dataAttr)
50
50
  throw new Error(`Unable to read datasource from attribute ${dataAttr}`);
51
51
  const INPUT_TYPE = datasourceInputFromDisplay(dataAttr);
52
- if (!this.datasourceKey || !INPUT_TYPE) {
53
- throw new Error('updateNameHandler - datasourceKey or INPUT_TYPE null');
52
+ if (!this.datasourceName || !INPUT_TYPE) {
53
+ throw new Error('updateKeyHandler - datasourceName or INPUT_TYPE null');
54
54
  }
55
55
  const schema = await this.getSchema(KEY);
56
56
  if (!schema.properties)
57
57
  throw new Error(`schema properties for ${KEY} undefined`);
58
58
  const fields = Object.keys(schema.properties);
59
- actions.datasourceConfig.deleteDatasource({ key: this.datasourceKey });
59
+ actions.datasourceConfig.deleteDatasource({ key: this.datasourceName });
60
60
  actions.datasourceConfig.initDatasourceConfiguration({
61
61
  base: {
62
62
  KEY,
@@ -80,7 +80,7 @@ __decorate([
80
80
  ], DatasourceConfigItem.prototype, "connect", void 0);
81
81
  __decorate([
82
82
  observable
83
- ], DatasourceConfigItem.prototype, "datasourceKey", void 0);
83
+ ], DatasourceConfigItem.prototype, "datasourceName", void 0);
84
84
  __decorate([
85
85
  observable
86
86
  ], DatasourceConfigItem.prototype, "datasourceChoices", void 0);
@@ -6,14 +6,14 @@ const configSection = html `
6
6
  <div>
7
7
  <p class="label">Name</p>
8
8
  <rapid-text-field
9
- value=${(x) => selectors.datasourceConfig.getDatasource(x.datasourceKey).NAME}
10
- @change=${(x, ctx) => x.updateNameHandler(ctx.event.target.value)}
9
+ value=${(x) => selectors.datasourceConfig.getDatasource(x.datasourceName).KEY}
10
+ @change=${(x, ctx) => x.updateKeyHandler(ctx.event.target.value)}
11
11
  ></rapid-text-field>
12
12
  </div>
13
13
  <div>
14
14
  <p class="label">Type</p>
15
15
  <rapid-select
16
- :value=${(x) => selectors.datasourceConfig.getDatasource(x.datasourceKey).OUTPUT_TYPE}
16
+ :value=${(x) => selectors.datasourceConfig.getDatasource(x.datasourceName).OUTPUT_TYPE}
17
17
  @change=${(x, ctx) => x.updateOutputTypeHandler(ctx.event.target.value)}
18
18
  >
19
19
  ${repeat(() => datasourceOutputs, html `
@@ -35,7 +35,7 @@ const component = html `
35
35
  <div class="container">
36
36
  <rapid-select
37
37
  class="datasource"
38
- :value=${(x) => selectors.datasourceConfig.getDatasource(x.datasourceKey).KEY}
38
+ :value=${(x) => selectors.datasourceConfig.getDatasource(x.datasourceName).NAME}
39
39
  @change=${(x, ctx) => x.updateDatasourceSourceHandler(ctx.event.target)}
40
40
  position="${(x) => x.position}"
41
41
  >
@@ -53,7 +53,7 @@ const component = html `
53
53
  </div>
54
54
  `;
55
55
  export const template = html `
56
- ${whenElse((x) => x.datasourceKey && x.datasourceChoices, component, html `
56
+ ${whenElse((x) => x.datasourceName && x.datasourceChoices, component, html `
57
57
  Missing attributes
58
58
  `)}
59
59
  `;
@@ -1,9 +1,9 @@
1
1
  import { logger } from '@genesislcap/foundation-comms';
2
2
  import { actions, selectors } from '../../../store';
3
- import { buildDatasourceKey } from '../../../utils';
3
+ import { buildDatasourceName } from '../../../utils';
4
4
  export const createNewDatasourceConfig = (getSchema) => async (choices) => {
5
5
  var _a;
6
- const validDatasources = (_a = choices.filter((ds) => !(buildDatasourceKey(ds.name, ds.inputType) in
6
+ const validDatasources = (_a = choices.filter((ds) => !(buildDatasourceName(ds.name, ds.inputType) in
7
7
  selectors.datasourceConfig.getAllConfigSet()))) !== null && _a !== void 0 ? _a : [];
8
8
  if ((validDatasources === null || validDatasources === void 0 ? void 0 : validDatasources.length) < 1) {
9
9
  logger.error('No datasources available to create new config from');
@@ -20,7 +20,7 @@ const container = html `
20
20
  <div>
21
21
  ${repeat((_) => Object.keys(selectors.datasourceConfig.getAllConfigSet()), html `
22
22
  <datasource-config-item
23
- :datasourceKey=${(x) => x}
23
+ :datasourceName=${(x) => x}
24
24
  :datasourceChoices=${(_, c) => c.parent.datasourceChoices}
25
25
  ?can-remove=${(_, ctx) => !ctx.isFirst}
26
26
  position="${(_, c) => (c.index > 1 ? 'above' : 'below')}"
@@ -19,16 +19,16 @@ let RowFilters = class RowFilters extends DatasourceDataBaseComponent {
19
19
  };
20
20
  }
21
21
  handleChangedRuleExpression(event) {
22
- if (!this.datasourceKey)
22
+ if (!this.datasourceName)
23
23
  return;
24
- actions.datasourceConfig.setRowFilter({ key: this.datasourceKey, expression: event.detail });
24
+ actions.datasourceConfig.setRowFilter({ key: this.datasourceName, expression: event.detail });
25
25
  }
26
26
  async updateDataFields() {
27
27
  try {
28
- if (!this.datasourceKey)
28
+ if (!this.datasourceName)
29
29
  throw new Error('Cannot load rule expression model with no key');
30
30
  this.fieldData = this.datasourceSpec.flatMap(pathParameters);
31
- const maybeExistingExpression = selectors.datasourceConfig.getRowFilterExpression(this.datasourceKey);
31
+ const maybeExistingExpression = selectors.datasourceConfig.getRowFilterExpression(this.datasourceName);
32
32
  this.ruleExpressionConfig = {
33
33
  fields: this.fieldData
34
34
  .map(mapTableRowToRuleField)
@@ -30,7 +30,7 @@ export function configureDisabledColumns(data) {
30
30
  const shouldDisable = shouldDisableColumn(data);
31
31
  if (shouldDisable) {
32
32
  actions.datasourceConfig.setColumnIncluded({
33
- key: datasourceKeyFromDisplay(data[GridColumnNames.Datasource]),
33
+ key: datasourceNameFromDisplay(data[GridColumnNames.Datasource]),
34
34
  column: data[GridColumnNames.ColumnName],
35
35
  included: false,
36
36
  });
@@ -42,12 +42,19 @@ export function configureDisabledColumns(data) {
42
42
  */
43
43
  export function lookupColumnIsIncluded(data) {
44
44
  var _a;
45
- return ((_a = selectors.datasourceConfig.getDatasource(datasourceKeyFromDisplay(data[GridColumnNames.Datasource])).TRANSFORMER_CONFIGURATION.INCLUDE_COLUMNS) !== null && _a !== void 0 ? _a : []).includes(data[GridColumnNames.ColumnName]);
45
+ return ((_a = selectors.datasourceConfig.getDatasource(datasourceNameFromDisplay(data[GridColumnNames.Datasource])).TRANSFORMER_CONFIGURATION.INCLUDE_COLUMNS) !== null && _a !== void 0 ? _a : []).includes(data[GridColumnNames.ColumnName]);
46
+ }
47
+ /**
48
+ * Checks if a column is filtered in the current configuration
49
+ */
50
+ export function lookupColumnIsRenamed(data) {
51
+ var _a;
52
+ return Object.keys((_a = selectors.datasourceConfig.getDatasource(datasourceNameFromDisplay(data[GridColumnNames.Datasource])).TRANSFORMER_CONFIGURATION.COLUMN_RENAMES) !== null && _a !== void 0 ? _a : {}).includes(data[GridColumnNames.ColumnName]);
46
53
  }
47
54
  /**
48
55
  * Converts display-formatted datasource name to internal key format
49
56
  */
50
- export function datasourceKeyFromDisplay(input) {
57
+ export function datasourceNameFromDisplay(input) {
51
58
  const parts = input
52
59
  .replace(/[)]/g, '')
53
60
  .split('(')
@@ -57,9 +64,9 @@ export function datasourceKeyFromDisplay(input) {
57
64
  parts[0]);
58
65
  }
59
66
  /**
60
- * Formats datasource key for display
67
+ * Formats datasource name for display
61
68
  */
62
- export function datasourceKeyForDisplay(datasource, type) {
69
+ export function datasourceNameForDisplay(datasource, type) {
63
70
  return `${datasource} (${datasourceInputForDisplay(type)})`;
64
71
  }
65
72
  /**
@@ -106,16 +113,16 @@ export function mapTypeToRenderer(type) {
106
113
  /**
107
114
  * Common implementation for fetching and processing datasource schemas
108
115
  */
109
- export async function fetchDatasourceSpecs(datasourceKey, getSchema, onError) {
110
- if (datasourceKey === null) {
116
+ export async function fetchDatasourceSpecs(datasourceName, getSchema, onError) {
117
+ if (datasourceName === null) {
111
118
  return [];
112
119
  }
113
120
  try {
114
121
  return await Promise.all(Object.values(selectors.datasourceConfig.getAllConfigSet())
115
- .filter(({ KEY, INPUT_TYPE }) => INPUT_TYPE === 'REQ_REP' && `${INPUT_TYPE}_${KEY}` === datasourceKey)
122
+ .filter(({ NAME, INPUT_TYPE }) => INPUT_TYPE === 'REQ_REP' && `${INPUT_TYPE}_${NAME}` === datasourceName)
116
123
  .map(async ({ NAME }) => ({
117
124
  spec: await getSchema(NAME),
118
- name: datasourceKeyForDisplay(NAME, 'REQ_REP'),
125
+ name: datasourceNameForDisplay(NAME, 'REQ_REP'),
119
126
  })));
120
127
  }
121
128
  catch (e) {
@@ -15,18 +15,18 @@ export class DatasourceDataBaseComponent extends GenesisElement {
15
15
  this.getSchema = getDatasourceSchema(this.connect);
16
16
  this.datasourceSpec = [];
17
17
  }
18
- datasourceKeyChanged() {
18
+ datasourceNameChanged() {
19
19
  this.handleUpdatedDatasources();
20
20
  }
21
21
  /**
22
22
  * Updates the datasource specifications based on the selected datasource key
23
23
  */
24
24
  async handleUpdatedDatasources() {
25
- if (this.datasourceKey === null) {
25
+ if (this.datasourceName === null) {
26
26
  this.fieldData = [];
27
27
  return;
28
28
  }
29
- this.datasourceSpec = await fetchDatasourceSpecs(this.datasourceKey, this.getSchema, (error, message) => {
29
+ this.datasourceSpec = await fetchDatasourceSpecs(this.datasourceName, this.getSchema, (error, message) => {
30
30
  this.handleError(error, message);
31
31
  });
32
32
  this.updateDataFields();
@@ -51,4 +51,4 @@ __decorate([
51
51
  ], DatasourceDataBaseComponent.prototype, "dataError", void 0);
52
52
  __decorate([
53
53
  observable
54
- ], DatasourceDataBaseComponent.prototype, "datasourceKey", void 0);
54
+ ], DatasourceDataBaseComponent.prototype, "datasourceName", void 0);
@@ -6,13 +6,13 @@ import { template } from './tabbed-datasource-container.template';
6
6
  /**
7
7
  * This is a container which wraps up content which should
8
8
  * implement MultiDatasourceHandler interface, and this will
9
- * hanlde passing in the relevent `datasourceKey` to it.
9
+ * handle passing in the relevant `datasourceName` to it.
10
10
  *
11
11
  * This uses rapid-tabs just for the tabs themselves, but
12
12
  * performs virtual tabbing by just using one slotted component
13
- * but changing the `datasourceKey` attribute as you click through tabs
13
+ * but changing the `datasourceName` attribute as you click through tabs
14
14
  *
15
- * This uses the IntersectionObserver to know when the instance is visible (on the stepper steps) and if it's not then it supplies `null` as the `datasourceKey` for the slotted content
15
+ * This uses the IntersectionObserver to know when the instance is visible (on the stepper steps) and if it's not then it supplies `null` as the `datasourceName` for the slotted content
16
16
  */
17
17
  let TabbedDatasourceContainer = class TabbedDatasourceContainer extends GenesisElement {
18
18
  constructor() {
@@ -38,21 +38,21 @@ let TabbedDatasourceContainer = class TabbedDatasourceContainer extends GenesisE
38
38
  }
39
39
  handleDatasourceChanged(key) {
40
40
  var _a;
41
- this.datasourceKey = key;
41
+ this.datasourceName = key;
42
42
  const slot = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
43
43
  if (!slot)
44
44
  throw new Error(`TabbedDatasourceContainer unable to find slot content`);
45
45
  slot.assignedElements().forEach((c) => {
46
- if (!('datasourceKey' in c)) {
46
+ if (!('datasourceName' in c)) {
47
47
  throw new Error(`Incompatible element used as TabbedDatasourceContainer slot content - ${c.nodeName}`);
48
48
  }
49
- c.datasourceKey = this.datasourceKey;
49
+ c.datasourceName = this.datasourceName;
50
50
  });
51
51
  }
52
52
  };
53
53
  __decorate([
54
54
  observable
55
- ], TabbedDatasourceContainer.prototype, "datasourceKey", void 0);
55
+ ], TabbedDatasourceContainer.prototype, "datasourceName", void 0);
56
56
  __decorate([
57
57
  observable
58
58
  ], TabbedDatasourceContainer.prototype, "isActive", void 0);
@@ -81,7 +81,7 @@ let GeneratedReports = class GeneratedReports extends GenesisElement {
81
81
  `),
82
82
  buttonCellRenderer('Download', (e) => this.downloadReport(e.REPORT_FILE_STORAGE_ID), html `
83
83
  <rapid-icon style="opacity: 0.5" variant="solid" name="download" size="lg"></rapid-icon>
84
- `),
84
+ `, (e) => e.STATUS === 'Failed'),
85
85
  ];
86
86
  return columnDefs;
87
87
  }
@@ -1,6 +1,6 @@
1
1
  import { createSlice } from '@reduxjs/toolkit';
2
2
  import { capitalCase } from 'change-case';
3
- import { buildDatasourceKey } from '../../utils';
3
+ import { buildDatasourceName } from '../../utils';
4
4
  export const initialState = {};
5
5
  export const datasourceSlice = createSlice({
6
6
  name: 'datasourceConfig',
@@ -8,7 +8,7 @@ export const datasourceSlice = createSlice({
8
8
  reducers: {
9
9
  initDatasourceConfiguration(state, action) {
10
10
  const { KEY, INPUT_TYPE } = action.payload.base;
11
- const key = buildDatasourceKey(KEY, INPUT_TYPE);
11
+ const key = buildDatasourceName(KEY, INPUT_TYPE);
12
12
  state[key] = {
13
13
  KEY: KEY,
14
14
  INPUT_TYPE: INPUT_TYPE,
@@ -21,11 +21,12 @@ export const datasourceSlice = createSlice({
21
21
  key,
22
22
  columnFrom: field,
23
23
  columnTo: capitalCase(field),
24
+ included: true,
24
25
  } }));
25
26
  });
26
27
  },
27
- updateDatasourceName(state, action) {
28
- state[action.payload.key].NAME = action.payload.newName;
28
+ updateDatasourceKey(state, action) {
29
+ state[action.payload.key].KEY = action.payload.newKey;
29
30
  },
30
31
  updateDatasourceOutputType(state, action) {
31
32
  state[action.payload.key].OUTPUT_TYPE = action.payload.newType;
@@ -35,14 +36,15 @@ export const datasourceSlice = createSlice({
35
36
  },
36
37
  setColumnRename(state, action) {
37
38
  var _a;
38
- const { key, columnFrom, columnTo } = action.payload;
39
- if (columnFrom === columnTo) {
39
+ const { key, columnFrom, columnTo, included } = action.payload;
40
+ if (included) {
41
+ state[key].TRANSFORMER_CONFIGURATION.COLUMN_RENAMES = Object.assign(Object.assign({}, state[key].TRANSFORMER_CONFIGURATION.COLUMN_RENAMES), { [columnFrom]: columnTo });
42
+ }
43
+ else {
40
44
  if ((_a = state[key].TRANSFORMER_CONFIGURATION) === null || _a === void 0 ? void 0 : _a.COLUMN_RENAMES) {
41
45
  delete state[key].TRANSFORMER_CONFIGURATION.COLUMN_RENAMES[columnFrom];
42
46
  }
43
- return;
44
47
  }
45
- state[key].TRANSFORMER_CONFIGURATION.COLUMN_RENAMES = Object.assign(Object.assign({}, state[key].TRANSFORMER_CONFIGURATION.COLUMN_RENAMES), { [columnFrom]: columnTo });
46
48
  },
47
49
  /**
48
50
  * Will also clean up data associated with this field, such as rename transformers
@@ -63,6 +65,7 @@ export const datasourceSlice = createSlice({
63
65
  key,
64
66
  columnFrom: column,
65
67
  columnTo: !included ? column : capitalCase(column),
68
+ included,
66
69
  } }));
67
70
  },
68
71
  setRowFilter(state, action) {
@@ -1,4 +1,4 @@
1
- export const buttonCellRenderer = (title, clickHandler, contentTemplate) => ({
1
+ export const buttonCellRenderer = (title, clickHandler, contentTemplate, isDisabled) => ({
2
2
  colId: `action-${title}`,
3
3
  width: 50,
4
4
  pinned: 'right',
@@ -20,6 +20,7 @@ export const buttonCellRenderer = (title, clickHandler, contentTemplate) => ({
20
20
  actionName: title,
21
21
  contentTemplate,
22
22
  appearance: 'neutral',
23
+ isDisabled: title === 'Download' && isDisabled,
23
24
  actionButtonStyle: 'width: 24px; height: 24px; min-width: 24px; border: none; background: var(--neutral-layer-2);',
24
25
  },
25
26
  },
@@ -29,7 +29,7 @@ export function transformFromServerPaylaod(payload) {
29
29
  NAME: DS_NAME,
30
30
  OUTPUT_TYPE,
31
31
  TRANSFORMER_CONFIGURATION,
32
- })).reduce((acum, ds) => (Object.assign(Object.assign({}, acum), { [buildDatasourceKey(ds.KEY, ds.INPUT_TYPE)]: ds })), {}),
32
+ })).reduce((acum, ds) => (Object.assign(Object.assign({}, acum), { [buildDatasourceName(ds.NAME, ds.INPUT_TYPE)]: ds })), {}),
33
33
  };
34
34
  }
35
35
  export function datasourceInputForDisplay(input) {
@@ -48,6 +48,6 @@ export function datasourceInputFromDisplay(display) {
48
48
  else
49
49
  throw new Error(`datasourceInputFromDisplay - Uncaught case ${display}`);
50
50
  }
51
- export function buildDatasourceKey(key, type) {
51
+ export function buildDatasourceName(key, type) {
52
52
  return `${type}_${key}`;
53
53
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-reporting-ui",
3
3
  "description": "Genesis PBC Reporting UI",
4
- "version": "1.0.391",
4
+ "version": "1.0.393",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/dts/index.d.ts",