@genesislcap/pbc-reporting-ui 14.436.0-FUI-2489.2 → 14.437.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-extractor.json +2 -2
- package/dist/dts/new/main/edit-config/col-filters/col-filters-grid.d.ts.map +1 -1
- package/dist/dts/new/main/edit-config/config-journey-orchestrator.template.d.ts.map +1 -1
- package/dist/dts/new/main/edit-config/datasource-config/datasources-config-container.helpers.d.ts.map +1 -1
- package/dist/dts/new/main/edit-config/row-filters/row-filters.d.ts.map +1 -1
- package/dist/dts/new/main/edit-config/row-filters/row-filters.helpers.test.d.ts +0 -1
- package/dist/dts/new/main/edit-config/row-filters/row-filters.helpers.test.d.ts.map +1 -1
- package/dist/dts/new/main/main.d.ts.map +1 -1
- package/dist/dts/new/utils/notifications.d.ts.map +1 -1
- package/dist/dts/old/components/preview/columns.d.ts +1 -1
- package/dist/dts/old/components/preview/columns.d.ts.map +1 -1
- package/dist/dts/old/components/renderers/row-select.renderer.d.ts.map +1 -1
- package/dist/dts/old/components/wizard/wizard.types.d.ts +1 -1
- package/dist/dts/old/layouts/two-pane-horizontal.d.ts.map +1 -1
- package/dist/esm/new/main/edit-config/col-filters/col-filters-grid.js +2 -1
- package/dist/esm/new/main/edit-config/config-journey-orchestrator.template.js +1 -1
- package/dist/esm/new/main/edit-config/datasource-config/datasources-config-container.helpers.js +1 -2
- package/dist/esm/new/main/edit-config/row-filters/row-filters.helpers.test.js +1 -1
- package/dist/esm/new/main/edit-config/row-filters/row-filters.js +2 -1
- package/dist/esm/new/main/main.js +0 -1
- package/dist/esm/new/utils/notifications.js +2 -1
- package/dist/esm/old/components/preview/columns.js +14 -12
- package/dist/esm/old/components/renderers/row-select.renderer.js +0 -1
- package/dist/esm/old/layouts/two-pane-horizontal.js +0 -2
- package/dist/esm/old/utils/filterObjectArray.js +1 -1
- package/package.json +45 -22
- package/src/new/main/edit-config/col-filters/col-filters-grid.ts +1 -1
- package/src/new/main/edit-config/config-journey-orchestrator.template.ts +2 -1
- package/src/new/main/edit-config/datasource-config/datasources-config-container.helpers.ts +1 -2
- package/src/new/main/edit-config/row-filters/row-filters.helpers.test.ts +0 -1
- package/src/new/main/edit-config/row-filters/row-filters.ts +2 -1
- package/src/new/main/main.ts +0 -1
- package/src/new/utils/notifications.ts +2 -5
- package/src/old/components/preview/columns.ts +4 -3
- package/src/old/components/renderers/row-select.renderer.ts +0 -1
- package/src/old/components/wizard/wizard.types.ts +1 -1
- package/src/old/layouts/two-pane-horizontal.ts +0 -2
- package/src/old/utils/filterObjectArray.ts +1 -1
- package/src/tsconfig.base.json +50 -41
- package/src/typings.d.ts +0 -1
- package/tsconfig.json +3 -1
package/api-extractor.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
+
"extends": "../../../../api-extractor.json"
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"col-filters-grid.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/col-filters/col-filters-grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EAKR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAI1D,OAAO,EACL,2BAA2B,
|
|
1
|
+
{"version":3,"file":"col-filters-grid.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/col-filters/col-filters-grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EAKR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAI1D,OAAO,EACL,2BAA2B,EAQ5B,MAAM,WAAW,CAAC;AAOnB,qBAKa,cAAe,SAAQ,2BAA2B;IAC7D,IAAI,EAAG,WAAW,CAAC;IACnB,OAAO,CAAC,gBAAgB,CAAC,CAAmB;IAE5C,iBAAiB;IAejB;;OAEG;cACa,gBAAgB;IAehC,eAAe,GAAI,SAAS,OAAO,UAkBjC;IAEF,cAAc,IAAI,iBAAiB;CA2DpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-journey-orchestrator.template.d.ts","sourceRoot":"","sources":["../../../../../src/new/main/edit-config/config-journey-orchestrator.template.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAyB/E,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"config-journey-orchestrator.template.d.ts","sourceRoot":"","sources":["../../../../../src/new/main/edit-config/config-journey-orchestrator.template.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAyB/E,eAAO,MAAM,QAAQ,gFAmHpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasources-config-container.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/datasource-config/datasources-config-container.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;AAElF,eAAO,MAAM,yBAAyB,GACnC,WAAW,gBAAgB,MACrB,SAAS,gBAAgB,EAAE,KAAG,OAAO,CAAC,IAAI,CA4ChD,CAAC;AAEJ,eAAO,MAAM,wBAAwB,GAClC,WAAW,gBAAgB,MAAY,kBAAkB,gBAAgB,EAAE;;;;
|
|
1
|
+
{"version":3,"file":"datasources-config-container.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/datasource-config/datasources-config-container.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;AAElF,eAAO,MAAM,yBAAyB,GACnC,WAAW,gBAAgB,MACrB,SAAS,gBAAgB,EAAE,KAAG,OAAO,CAAC,IAAI,CA4ChD,CAAC;AAEJ,eAAO,MAAM,wBAAwB,GAClC,WAAW,gBAAgB,MAAY,kBAAkB,gBAAgB,EAAE;;;;EAc3E,CAAC;AAGJ,eAAO,MAAM,cAAc,GAAU,SAAS,OAAO,KAAG,OAAO,CAAC,gBAAgB,EAAE,CAsBjF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-filters.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/row-filters/row-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"row-filters.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/row-filters/row-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAI1E,OAAO,EAAE,2BAA2B,EAA+B,MAAM,WAAW,CAAC;AAWrF,qBAKa,UAAW,SAAQ,2BAA2B;IAC7C,oBAAoB,EAAE,sBAAsB,CAAC,UAAU,CAGjE;IAEF,2BAA2B,CACzB,KAAK,EAAE,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;cAMtD,gBAAgB;CAwBjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-filters.helpers.test.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/row-filters/row-filters.helpers.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"row-filters.helpers.test.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/row-filters/row-filters.helpers.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/new/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAIzE;;;;;;;GAOG;AACH,qBAKa,mBAAoB,SAAQ,cAAc;IAC9C,IAAI,EAAE,IAAI,CAAC;IACN,KAAK,EAAE,OAAO,CAAS;IAEnC,gBAAgB,EAAE,uBAAuB,CAAC,eAAe,CAAC,0BAA0B,CAAC,CAAU;IAC/F,yBAAyB,EAAE,gBAAgB,CAAC;IAEtC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAYxC,oBAAoB;IAQpB,gBAAgB;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/new/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAIzE;;;;;;;GAOG;AACH,qBAKa,mBAAoB,SAAQ,cAAc;IAC9C,IAAI,EAAE,IAAI,CAAC;IACN,KAAK,EAAE,OAAO,CAAS;IAEnC,gBAAgB,EAAE,uBAAuB,CAAC,eAAe,CAAC,0BAA0B,CAAC,CAAU;IAC/F,yBAAyB,EAAE,gBAAgB,CAAC;IAEtC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAYxC,oBAAoB;IAQpB,gBAAgB;IAChB,gBAAgB,CAAC,EAAE,EAAE,WAAW;IAEhC,oBAAoB,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW;IAK5C,6BAA6B,CAAC,EAC5B,MAAM,GACP,EAAE,WAAW,CAAC,uBAAuB,CAAC,eAAe,CAAC,0BAA0B,CAAC,CAAC;CAGpF;AAED;;;;;;;;;;;;;;;;;;;;;;EAsBE;AACF,qBAKa,cAAe,SAAQ,mBAAmB;IACrD;;OAEG;IACG,iBAAiB;IAKvB;;OAEG;cACa,WAAW;CAK5B;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,cAAc;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../../src/new/utils/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../../src/new/utils/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAKjG,eAAO,MAAM,qBAAqB,GAAI,QAAQ,cAAc,SAAsC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../../../src/old/components/preview/columns.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,UAAU,GAAI,YAAO,
|
|
1
|
+
{"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../../../src/old/components/preview/columns.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,UAAU,GAAI,YAAO,UAuBjC,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;CAc1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-select.renderer.d.ts","sourceRoot":"","sources":["../../../../../src/old/components/renderers/row-select.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAuB,MAAM,uCAAuC,CAAC;AACnG,OAAO,EAAyB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEjF;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,iBAAkB,YAAW,iBAAiB;IAE5E,MAAM,EAAE,mBAAmB,GAAG,qBAAqB,CAAC;IAG3D,OAAO,EAAE,OAAO,CAAC;IAEV,UAAU,CAAC,IAAI,KAAA,GAAG,OAAO;IAWzB,IAAI,CAAC,MAAM,EAAE,mBAAmB;IAShC,kBAAkB;IAMlB,aAAa,CAAC,CAAC,KAAA;IAKf,MAAM,IAAI,WAAW;IAIrB,OAAO;
|
|
1
|
+
{"version":3,"file":"row-select.renderer.d.ts","sourceRoot":"","sources":["../../../../../src/old/components/renderers/row-select.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAuB,MAAM,uCAAuC,CAAC;AACnG,OAAO,EAAyB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEjF;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,iBAAkB,YAAW,iBAAiB;IAE5E,MAAM,EAAE,mBAAmB,GAAG,qBAAqB,CAAC;IAG3D,OAAO,EAAE,OAAO,CAAC;IAEV,UAAU,CAAC,IAAI,KAAA,GAAG,OAAO;IAWzB,IAAI,CAAC,MAAM,EAAE,mBAAmB;IAShC,kBAAkB;IAMlB,aAAa,CAAC,CAAC,KAAA;IAKf,MAAM,IAAI,WAAW;IAIrB,OAAO;IAMP,OAAO,CAAC,MAAM,EAAE,mBAAmB;IAK1C,QAAQ;IAIR,mBAAmB;CAGpB;AAED;;;GAGG;AACH,eAAO,MAAM,yBAAyB,iDAsCrC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,GAAI,qBAAsB,2EAYpE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;4BAIxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"two-pane-horizontal.d.ts","sourceRoot":"","sources":["../../../../src/old/layouts/two-pane-horizontal.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,cAAc,EAAc,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"two-pane-horizontal.d.ts","sourceRoot":"","sources":["../../../../src/old/layouts/two-pane-horizontal.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAsE7F,qBAKa,uBAAwB,SAAQ,cAAc;IAC9B,WAAW,EAAE,OAAO,CAAS;IAClD,UAAU,EAAE,MAAM,CAAW;CACpC"}
|
|
@@ -2,7 +2,8 @@ import { __awaiter, __decorate } from "tslib";
|
|
|
2
2
|
import { customElement } from '@genesislcap/web-core';
|
|
3
3
|
import { RowSelectRenderer } from '../../../../old/components/renderers/row-select.renderer';
|
|
4
4
|
import { actions, selectors } from '../../../store';
|
|
5
|
-
import { DatasourceDataBaseComponent, GridColumnNames, buildCellStyle, configureDisabledColumns, lookupColumnIsIncluded, pathParameters, orderRowsByIncludeColumns,
|
|
5
|
+
import { DatasourceDataBaseComponent, GridColumnNames, buildCellStyle, configureDisabledColumns, lookupColumnIsIncluded, pathParameters, orderRowsByIncludeColumns, } from '../shared';
|
|
6
|
+
import { datasourceNameFromDisplay } from '../shared';
|
|
6
7
|
import { rowSelectionChangedHandler } from './col-filters-grid.helpers';
|
|
7
8
|
import { styles } from './col-filters-grid.styles';
|
|
8
9
|
import { template } from './col-fitlers-grid.template';
|
|
@@ -63,7 +63,7 @@ export const template = html `
|
|
|
63
63
|
<!--<rapid-stepper-tab>Sorting</rapid-stepper-tab>-->
|
|
64
64
|
<rapid-stepper-tab>
|
|
65
65
|
Column
|
|
66
|
-
${(_) => (selectors.baseConfig.getConfig().DOCUMENT_TEMPLATE_ID ? 'Aliases' : 'Renames'
|
|
66
|
+
${(_) => Boolean(selectors.baseConfig.getConfig().DOCUMENT_TEMPLATE_ID) ? 'Aliases' : 'Renames'}
|
|
67
67
|
</rapid-stepper-tab>
|
|
68
68
|
<rapid-stepper-tab>Delivery</rapid-stepper-tab>
|
|
69
69
|
|
package/dist/esm/new/main/edit-config/datasource-config/datasources-config-container.helpers.js
CHANGED
|
@@ -34,9 +34,9 @@ export const createNewDatasourceConfig = (getSchema) => (choices) => __awaiter(v
|
|
|
34
34
|
setDefaultFormatsForDatasource(datasourceName, schema);
|
|
35
35
|
});
|
|
36
36
|
export const findFirstValidDatasource = (getSchema) => (validDatasources) => __awaiter(void 0, void 0, void 0, function* () {
|
|
37
|
-
/* oxlint-disable no-await-in-loop -- try datasources until one resolves */
|
|
38
37
|
for (const { name: KEY, inputType: INPUT_TYPE } of validDatasources) {
|
|
39
38
|
try {
|
|
39
|
+
// eslint-disable-next-line no-await-in-loop
|
|
40
40
|
const schema = yield getSchema(KEY);
|
|
41
41
|
if (schema.properties)
|
|
42
42
|
return {
|
|
@@ -47,7 +47,6 @@ export const findFirstValidDatasource = (getSchema) => (validDatasources) => __a
|
|
|
47
47
|
}
|
|
48
48
|
catch (_) { }
|
|
49
49
|
}
|
|
50
|
-
/* oxlint-enable no-await-in-loop */
|
|
51
50
|
throw new Error(`No valid datasources found`);
|
|
52
51
|
});
|
|
53
52
|
// TODO: temporarily removing data pipelines until later requested
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
// TODO: add tests in next PR
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { customElement
|
|
2
|
+
import { customElement } from '@genesislcap/web-core';
|
|
3
|
+
import { observable } from '@genesislcap/web-core';
|
|
3
4
|
import { actions, selectors } from '../../../store';
|
|
4
5
|
import { DatasourceDataBaseComponent, pathParameters } from '../shared';
|
|
5
6
|
import { mapTableRowToRuleField } from './row-filters.helpers';
|
|
@@ -33,7 +33,6 @@ let FoundationReporting = class FoundationReporting extends GenesisElement {
|
|
|
33
33
|
this.removeEventListener(ReportingEvents.setReportConfigDisplayMode, this.handleReportConfigDisplayMode);
|
|
34
34
|
}
|
|
35
35
|
/** @internal */
|
|
36
|
-
// oxlint-disable-next-line no-empty-pattern -- unused event payload
|
|
37
36
|
handleTabsChange({}) { }
|
|
38
37
|
handleRunReportEvent({ detail }) {
|
|
39
38
|
this.generatedReportsComponent.generatedReportId = detail;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { getNotificationContainer
|
|
1
|
+
import { getNotificationContainer } from '@genesislcap/foundation-notifications';
|
|
2
|
+
import { showNotificationToast as toast } from '@genesislcap/foundation-notifications';
|
|
2
3
|
const container = getNotificationContainer('notify-container', 'rapid');
|
|
3
4
|
export const showNotificationToast = (config) => toast(config, 'rapid', container);
|
|
@@ -15,18 +15,20 @@ const getAgGridFilter = (fieldType) => {
|
|
|
15
15
|
return 'agTextColumnFilter';
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
export const getColumns = (columns) =>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
18
|
+
export const getColumns = (columns) => [
|
|
19
|
+
...columns.map(({ name, displayName, type }) => {
|
|
20
|
+
const isDateType = type === 'DATE' || type === 'DATETIME';
|
|
21
|
+
return Object.assign({ field: name, headerName: displayName, filter: getAgGridFilter(type), valueFormatter: type === 'DATE'
|
|
22
|
+
? (rowData) => formatDateTimestamp(rowData.data[name])
|
|
23
|
+
: type === 'DATETIME'
|
|
24
|
+
? (rowData) => formatDateTimeTimestamp(rowData.data[name])
|
|
25
|
+
: '' }, (isDateType
|
|
26
|
+
? {
|
|
27
|
+
comparator: (valueA, valueB) => valueA - valueB,
|
|
28
|
+
}
|
|
29
|
+
: {}));
|
|
30
|
+
}),
|
|
31
|
+
];
|
|
30
32
|
export const getGridOptions = () => {
|
|
31
33
|
return {
|
|
32
34
|
defaultColDef: Object.assign(Object.assign({}, defaultCellConfig), { filter: true, floatingFilter: false, sortable: false, suppressMenu: false, resizable: false, autoSizeStrategy: {
|
|
@@ -43,7 +43,6 @@ export class RowSelectRenderer extends FoundationElement {
|
|
|
43
43
|
}
|
|
44
44
|
destroy() {
|
|
45
45
|
if (this.params && this.params.api) {
|
|
46
|
-
// oxlint-disable-next-line unicorn/no-invalid-remove-event-listener -- symmetric to addEventListener(.bind)
|
|
47
46
|
this.params.api.removeEventListener('selectionChanged', this.onSelectionChanged.bind(this));
|
|
48
47
|
}
|
|
49
48
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { attr, css, customElement, GenesisElement, html, when } from '@genesislcap/web-core';
|
|
3
3
|
import { iconTag } from '../tags';
|
|
4
|
-
/* oxlint-disable typescript/no-duplicate-enum-values -- layout CSS tokens: equal and rightMain both use hyphen */
|
|
5
4
|
var Divider;
|
|
6
5
|
(function (Divider) {
|
|
7
6
|
Divider["equal"] = "hyphen";
|
|
8
7
|
Divider["leftMain"] = "";
|
|
9
8
|
Divider["rightMain"] = "hyphen";
|
|
10
9
|
})(Divider || (Divider = {}));
|
|
11
|
-
/* oxlint-enable typescript/no-duplicate-enum-values */
|
|
12
10
|
const name = 'layout-two-pane-horizontal';
|
|
13
11
|
const styles = css `
|
|
14
12
|
.container {
|
|
@@ -9,5 +9,5 @@ export function filterObjectArray(accessor, baseArray, removalArray) {
|
|
|
9
9
|
return baseArray;
|
|
10
10
|
}
|
|
11
11
|
const removalKeys = new Set(removalArray.map((object) => object[accessor]));
|
|
12
|
-
return baseArray.filter((object) => !removalKeys.has(object[accessor]));
|
|
12
|
+
return [...baseArray.filter((object) => !removalKeys.has(object[accessor]))];
|
|
13
13
|
}
|
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": "14.
|
|
4
|
+
"version": "14.437.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/dts/index.d.ts",
|
|
@@ -71,6 +71,29 @@
|
|
|
71
71
|
"test:unit:browser:watch": "genx test --browser --watch",
|
|
72
72
|
"test:unit:watch": "genx test --watch"
|
|
73
73
|
},
|
|
74
|
+
"husky": {
|
|
75
|
+
"hooks": {
|
|
76
|
+
"pre-commit": "lint-staged"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"lint-staged": {
|
|
80
|
+
"*.{ts,js}": [
|
|
81
|
+
"eslint"
|
|
82
|
+
],
|
|
83
|
+
"*.styles.ts": [
|
|
84
|
+
"stylelint"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"eslintConfig": {
|
|
88
|
+
"extends": "@genesislcap/eslint-config",
|
|
89
|
+
"ignorePatterns": [
|
|
90
|
+
"**/dist/**",
|
|
91
|
+
"**/public/**",
|
|
92
|
+
"**/coverage/**",
|
|
93
|
+
"src/old/**",
|
|
94
|
+
"playwright.config.ts"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
74
97
|
"stylelint": {
|
|
75
98
|
"extends": "@genesislcap/stylelint-config"
|
|
76
99
|
},
|
|
@@ -86,21 +109,21 @@
|
|
|
86
109
|
"@ag-grid-community/core": "29.2.0"
|
|
87
110
|
},
|
|
88
111
|
"dependencies": {
|
|
89
|
-
"@genesislcap/foundation-comms": "14.
|
|
90
|
-
"@genesislcap/foundation-entity-management": "14.
|
|
91
|
-
"@genesislcap/foundation-events": "14.
|
|
92
|
-
"@genesislcap/foundation-forms": "14.
|
|
93
|
-
"@genesislcap/foundation-logger": "14.
|
|
94
|
-
"@genesislcap/foundation-notifications": "14.
|
|
95
|
-
"@genesislcap/foundation-ui": "14.
|
|
96
|
-
"@genesislcap/foundation-user": "14.
|
|
97
|
-
"@genesislcap/foundation-utils": "14.
|
|
98
|
-
"@genesislcap/foundation-zero": "14.
|
|
99
|
-
"@genesislcap/foundation-zero-grid-pro": "14.
|
|
100
|
-
"@genesislcap/grid-pro": "14.
|
|
101
|
-
"@genesislcap/rapid-design-system": "14.
|
|
102
|
-
"@genesislcap/rapid-grid-pro": "14.
|
|
103
|
-
"@genesislcap/web-core": "14.
|
|
112
|
+
"@genesislcap/foundation-comms": "14.437.0",
|
|
113
|
+
"@genesislcap/foundation-entity-management": "14.437.0",
|
|
114
|
+
"@genesislcap/foundation-events": "14.437.0",
|
|
115
|
+
"@genesislcap/foundation-forms": "14.437.0",
|
|
116
|
+
"@genesislcap/foundation-logger": "14.437.0",
|
|
117
|
+
"@genesislcap/foundation-notifications": "14.437.0",
|
|
118
|
+
"@genesislcap/foundation-ui": "14.437.0",
|
|
119
|
+
"@genesislcap/foundation-user": "14.437.0",
|
|
120
|
+
"@genesislcap/foundation-utils": "14.437.0",
|
|
121
|
+
"@genesislcap/foundation-zero": "14.437.0",
|
|
122
|
+
"@genesislcap/foundation-zero-grid-pro": "14.437.0",
|
|
123
|
+
"@genesislcap/grid-pro": "14.437.0",
|
|
124
|
+
"@genesislcap/rapid-design-system": "14.437.0",
|
|
125
|
+
"@genesislcap/rapid-grid-pro": "14.437.0",
|
|
126
|
+
"@genesislcap/web-core": "14.437.0",
|
|
104
127
|
"@reduxjs/toolkit": "^2.2.5",
|
|
105
128
|
"@types/node": "^22.10.2",
|
|
106
129
|
"change-case": "^5.4.3",
|
|
@@ -109,11 +132,11 @@
|
|
|
109
132
|
"devDependencies": {
|
|
110
133
|
"@genesiscommunitysuccess/cep-fast-plugin": "^5.0.3",
|
|
111
134
|
"@genesiscommunitysuccess/custom-elements-lsp": "^5.0.3",
|
|
112
|
-
"@genesislcap/eslint-config": "14.
|
|
113
|
-
"@genesislcap/foundation-testing": "14.
|
|
114
|
-
"@genesislcap/genx": "14.
|
|
115
|
-
"@genesislcap/prettier-config": "14.
|
|
116
|
-
"@genesislcap/stylelint-config": "14.
|
|
135
|
+
"@genesislcap/eslint-config": "14.437.0",
|
|
136
|
+
"@genesislcap/foundation-testing": "14.437.0",
|
|
137
|
+
"@genesislcap/genx": "14.437.0",
|
|
138
|
+
"@genesislcap/prettier-config": "14.437.0",
|
|
139
|
+
"@genesislcap/stylelint-config": "14.437.0",
|
|
117
140
|
"@types/json-schema": "^7.0.11",
|
|
118
141
|
"playwright-lighthouse": "^4.0.0",
|
|
119
142
|
"rimraf": "^5.0.0"
|
|
@@ -122,5 +145,5 @@
|
|
|
122
145
|
"access": "public"
|
|
123
146
|
},
|
|
124
147
|
"customElements": "dist/custom-elements.json",
|
|
125
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "c30c777f0ab5e45f4e931a9cc1200ac85bcace35"
|
|
126
149
|
}
|
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
lookupColumnIsIncluded,
|
|
20
20
|
pathParameters,
|
|
21
21
|
orderRowsByIncludeColumns,
|
|
22
|
-
datasourceNameFromDisplay,
|
|
23
22
|
} from '../shared';
|
|
23
|
+
import { datasourceNameFromDisplay } from '../shared';
|
|
24
24
|
import { rowSelectionChangedHandler } from './col-filters-grid.helpers';
|
|
25
25
|
import { styles } from './col-filters-grid.styles';
|
|
26
26
|
import { ColFilterData } from './col-filters-grid.types';
|
|
@@ -73,7 +73,8 @@ export const template = html<ConfigJourneyOrchestrator>`
|
|
|
73
73
|
<!--<rapid-stepper-tab>Sorting</rapid-stepper-tab>-->
|
|
74
74
|
<rapid-stepper-tab>
|
|
75
75
|
Column
|
|
76
|
-
${(_) =>
|
|
76
|
+
${(_) =>
|
|
77
|
+
Boolean(selectors.baseConfig.getConfig().DOCUMENT_TEMPLATE_ID) ? 'Aliases' : 'Renames'}
|
|
77
78
|
</rapid-stepper-tab>
|
|
78
79
|
<rapid-stepper-tab>Delivery</rapid-stepper-tab>
|
|
79
80
|
|
|
@@ -57,9 +57,9 @@ export const createNewDatasourceConfig =
|
|
|
57
57
|
|
|
58
58
|
export const findFirstValidDatasource =
|
|
59
59
|
(getSchema: GetGenesisSchema) => async (validDatasources: DatasourceChoice[]) => {
|
|
60
|
-
/* oxlint-disable no-await-in-loop -- try datasources until one resolves */
|
|
61
60
|
for (const { name: KEY, inputType: INPUT_TYPE } of validDatasources) {
|
|
62
61
|
try {
|
|
62
|
+
// eslint-disable-next-line no-await-in-loop
|
|
63
63
|
const schema = await getSchema(KEY);
|
|
64
64
|
if (schema.properties)
|
|
65
65
|
return {
|
|
@@ -69,7 +69,6 @@ export const findFirstValidDatasource =
|
|
|
69
69
|
};
|
|
70
70
|
} catch (_) {}
|
|
71
71
|
}
|
|
72
|
-
/* oxlint-enable no-await-in-loop */
|
|
73
72
|
throw new Error(`No valid datasources found`);
|
|
74
73
|
};
|
|
75
74
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RuleExpression } from '@genesislcap/foundation-ui';
|
|
2
2
|
import { ExpressionBuilderTypes } from '@genesislcap/rapid-design-system';
|
|
3
|
-
import { customElement
|
|
3
|
+
import { customElement } from '@genesislcap/web-core';
|
|
4
|
+
import { observable } from '@genesislcap/web-core';
|
|
4
5
|
import { actions, selectors } from '../../../store';
|
|
5
6
|
import { DatasourceDataBaseComponent, GridRowData, pathParameters } from '../shared';
|
|
6
7
|
import { mapTableRowToRuleField } from './row-filters.helpers';
|
package/src/new/main/main.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
ToastStructure,
|
|
4
|
-
showNotificationToast as toast,
|
|
5
|
-
} from '@genesislcap/foundation-notifications';
|
|
1
|
+
import { getNotificationContainer, ToastStructure } from '@genesislcap/foundation-notifications';
|
|
2
|
+
import { showNotificationToast as toast } from '@genesislcap/foundation-notifications';
|
|
6
3
|
|
|
7
4
|
const container = getNotificationContainer('notify-container', 'rapid');
|
|
8
5
|
|
|
@@ -17,8 +17,8 @@ const getAgGridFilter = (fieldType: string): string | boolean => {
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
export const getColumns = (columns) =>
|
|
21
|
-
columns.map(({ name, displayName, type }) => {
|
|
20
|
+
export const getColumns = (columns) => [
|
|
21
|
+
...columns.map(({ name, displayName, type }) => {
|
|
22
22
|
const isDateType = type === 'DATE' || type === 'DATETIME';
|
|
23
23
|
|
|
24
24
|
return {
|
|
@@ -39,7 +39,8 @@ export const getColumns = (columns) =>
|
|
|
39
39
|
}
|
|
40
40
|
: {}),
|
|
41
41
|
};
|
|
42
|
-
})
|
|
42
|
+
}),
|
|
43
|
+
];
|
|
43
44
|
|
|
44
45
|
export const getGridOptions = () => {
|
|
45
46
|
return {
|
|
@@ -51,7 +51,6 @@ export class RowSelectRenderer extends FoundationElement implements ICellRendere
|
|
|
51
51
|
|
|
52
52
|
public destroy() {
|
|
53
53
|
if (this.params && this.params.api) {
|
|
54
|
-
// oxlint-disable-next-line unicorn/no-invalid-remove-event-listener -- symmetric to addEventListener(.bind)
|
|
55
54
|
this.params.api.removeEventListener('selectionChanged', this.onSelectionChanged.bind(this));
|
|
56
55
|
}
|
|
57
56
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { attr, css, customElement, GenesisElement, html, when } from '@genesislcap/web-core';
|
|
2
2
|
import { iconTag } from '../tags';
|
|
3
3
|
|
|
4
|
-
/* oxlint-disable typescript/no-duplicate-enum-values -- layout CSS tokens: equal and rightMain both use hyphen */
|
|
5
4
|
enum Divider {
|
|
6
5
|
equal = 'hyphen',
|
|
7
6
|
leftMain = '',
|
|
8
7
|
rightMain = 'hyphen',
|
|
9
8
|
}
|
|
10
|
-
/* oxlint-enable typescript/no-duplicate-enum-values */
|
|
11
9
|
|
|
12
10
|
const name = 'layout-two-pane-horizontal';
|
|
13
11
|
|
|
@@ -19,5 +19,5 @@ export function filterObjectArray(
|
|
|
19
19
|
|
|
20
20
|
const removalKeys = new Set(removalArray.map((object) => object[accessor]));
|
|
21
21
|
|
|
22
|
-
return baseArray.filter((object) => !removalKeys.has(object[accessor]));
|
|
22
|
+
return [...baseArray.filter((object) => !removalKeys.has(object[accessor]))];
|
|
23
23
|
}
|
package/src/tsconfig.base.json
CHANGED
|
@@ -1,44 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declarationDir": "./dist/dts",
|
|
4
|
+
"outDir": "./dist/esm",
|
|
5
|
+
"plugins": [
|
|
6
|
+
{
|
|
7
|
+
"name": "@genesiscommunitysuccess/custom-elements-lsp",
|
|
8
|
+
"srcRouteFromTSServer": "../../..",
|
|
9
|
+
"designSystemPrefix": "rapid",
|
|
10
|
+
"parser": {
|
|
11
|
+
"fastEnable": true,
|
|
12
|
+
"timeout": 2000,
|
|
13
|
+
"src": "./new/**/*{js,ts}",
|
|
14
|
+
"dependencies": [
|
|
15
|
+
"node_modules/@genesislcap/**/custom-elements.json",
|
|
16
|
+
"!**/@custom-elements-manifest/**/*"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"plugins": [
|
|
20
|
+
"@genesiscommunitysuccess/cep-fast-plugin",
|
|
21
|
+
"@genesislcap/cep-foundation-plugin"
|
|
17
22
|
]
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"allowJs": true,
|
|
26
|
+
"allowSyntheticDefaultImports": true,
|
|
27
|
+
"declaration": true,
|
|
28
|
+
"declarationMap": true,
|
|
29
|
+
"esModuleInterop": true,
|
|
30
|
+
"experimentalDecorators": true,
|
|
31
|
+
"importHelpers": true,
|
|
32
|
+
"lib": [
|
|
33
|
+
"DOM",
|
|
34
|
+
"DOM.Iterable",
|
|
35
|
+
"ES2015",
|
|
36
|
+
"ES2016",
|
|
37
|
+
"ES2017",
|
|
38
|
+
"ES2019",
|
|
39
|
+
"ES2020"
|
|
40
|
+
],
|
|
41
|
+
"module": "ESNext",
|
|
42
|
+
"moduleResolution": "node",
|
|
43
|
+
"noEmitOnError": true,
|
|
44
|
+
"preserveConstEnums": true,
|
|
45
|
+
"pretty": true,
|
|
46
|
+
"removeComments": false,
|
|
47
|
+
"resolveJsonModule": true,
|
|
48
|
+
"skipLibCheck": true,
|
|
49
|
+
"sourceMap": false,
|
|
50
|
+
"target": "es2017"
|
|
51
|
+
}
|
|
43
52
|
}
|
|
44
|
-
|
|
53
|
+
|
package/src/typings.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|