@genesislcap/pbc-reporting-ui 15.19.0 → 15.19.1
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/dist/custom-elements.json +4247 -5382
- package/dist/dts/react.d.ts +44 -44
- package/dist/react.cjs +65 -65
- package/dist/react.mjs +57 -57
- package/package.json +22 -23
- package/.env +0 -3
- package/api-extractor.json +0 -4
- package/dist/dts/new/main/edit-config/col-filters/col-filters-grid.helpers.test.d.ts +0 -2
- package/dist/dts/new/main/edit-config/col-filters/col-filters-grid.helpers.test.d.ts.map +0 -1
- package/dist/dts/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.test.d.ts +0 -2
- package/dist/dts/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.test.d.ts.map +0 -1
- package/dist/dts/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.test.d.ts +0 -2
- package/dist/dts/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.test.d.ts.map +0 -1
- package/dist/dts/new/main/edit-config/datasource-config/datasources-config-container.helpers.test.d.ts +0 -2
- package/dist/dts/new/main/edit-config/datasource-config/datasources-config-container.helpers.test.d.ts.map +0 -1
- package/dist/dts/new/main/edit-config/row-filters/row-filters.helpers.test.d.ts +0 -2
- package/dist/dts/new/main/edit-config/row-filters/row-filters.helpers.test.d.ts.map +0 -1
- package/dist/dts/new/main/edit-config/shared/datasource-data-base-component.test.d.ts +0 -5
- package/dist/dts/new/main/edit-config/shared/datasource-data-base-component.test.d.ts.map +0 -1
- package/dist/dts/new/utils/alias-generator.test.d.ts +0 -2
- package/dist/dts/new/utils/alias-generator.test.d.ts.map +0 -1
- package/dist/dts/new/utils/endpoint.test.d.ts +0 -2
- package/dist/dts/new/utils/endpoint.test.d.ts.map +0 -1
- package/dist/dts/new/utils/transformers.test.d.ts +0 -2
- package/dist/dts/new/utils/transformers.test.d.ts.map +0 -1
- package/dist/dts/new/utils/validators.test.d.ts +0 -2
- package/dist/dts/new/utils/validators.test.d.ts.map +0 -1
- package/dist/dts/old/main/main.test.d.ts +0 -2
- package/dist/dts/old/main/main.test.d.ts.map +0 -1
- package/dist/dts/old/utils/filterObjectArray.test.d.ts +0 -2
- package/dist/dts/old/utils/filterObjectArray.test.d.ts.map +0 -1
- package/dist/esm/new/main/edit-config/col-filters/col-filters-grid.helpers.test.js +0 -200
- package/dist/esm/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.test.js +0 -152
- package/dist/esm/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.test.js +0 -629
- package/dist/esm/new/main/edit-config/datasource-config/datasources-config-container.helpers.test.js +0 -268
- package/dist/esm/new/main/edit-config/row-filters/row-filters.helpers.test.js +0 -1
- package/dist/esm/new/main/edit-config/shared/datasource-data-base-component.test.js +0 -426
- package/dist/esm/new/utils/alias-generator.test.js +0 -36
- package/dist/esm/new/utils/endpoint.test.js +0 -162
- package/dist/esm/new/utils/transformers.test.js +0 -469
- package/dist/esm/new/utils/validators.test.js +0 -139
- package/dist/esm/old/main/main.test.js +0 -5
- package/dist/esm/old/utils/filterObjectArray.test.js +0 -46
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/src/globals.d.ts +0 -7
- package/src/index.federated.ts +0 -1
- package/src/index.ts +0 -8
- package/src/new/components/clone-report-config-modal/clone-report-config-modal.styles.ts +0 -47
- package/src/new/components/clone-report-config-modal/clone-report-config-modal.template.ts +0 -55
- package/src/new/components/clone-report-config-modal/clone-report-config-modal.ts +0 -173
- package/src/new/components/components.ts +0 -118
- package/src/new/components/renderers/data-transform-renderer.ts +0 -111
- package/src/new/components/reporting-configurations/reporting-configurations.styles.ts +0 -42
- package/src/new/components/reporting-configurations/reporting-configurations.template.ts +0 -59
- package/src/new/components/reporting-configurations/reporting-configurations.ts +0 -366
- package/src/new/components/shared/file-template-picker.template.ts +0 -45
- package/src/new/lib/redux-store/README.md +0 -55
- package/src/new/lib/redux-store/index.ts +0 -2
- package/src/new/lib/redux-store/state-utils.ts +0 -1
- package/src/new/lib/redux-store/store.ts +0 -135
- package/src/new/main/edit-config/base-config/base-config.styles.ts +0 -26
- package/src/new/main/edit-config/base-config/base-config.template.ts +0 -71
- package/src/new/main/edit-config/base-config/base-config.ts +0 -116
- package/src/new/main/edit-config/col-filters/col-filters-grid.helpers.test.ts +0 -232
- package/src/new/main/edit-config/col-filters/col-filters-grid.helpers.ts +0 -35
- package/src/new/main/edit-config/col-filters/col-filters-grid.styles.ts +0 -22
- package/src/new/main/edit-config/col-filters/col-filters-grid.ts +0 -150
- package/src/new/main/edit-config/col-filters/col-filters-grid.types.ts +0 -7
- package/src/new/main/edit-config/col-filters/col-filters-tutorial.ts +0 -25
- package/src/new/main/edit-config/col-filters/col-fitlers-grid.template.ts +0 -15
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.test.ts +0 -187
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts +0 -89
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.styles.ts +0 -22
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.template.ts +0 -14
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.ts +0 -119
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.types.ts +0 -10
- package/src/new/main/edit-config/col-rename-alias/col-rename-alias-tutorial.ts +0 -33
- package/src/new/main/edit-config/config-journey-orchestrator.styles.ts +0 -120
- package/src/new/main/edit-config/config-journey-orchestrator.template.ts +0 -149
- package/src/new/main/edit-config/config-journey-orchestrator.ts +0 -92
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms-tutorial.ts +0 -127
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.test.ts +0 -799
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts +0 -371
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms.styles.ts +0 -22
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms.template.ts +0 -21
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms.ts +0 -162
- package/src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts +0 -211
- package/src/new/main/edit-config/data-transforms-derived-fields/date-format-modal/date-format-modal.styles.ts +0 -79
- package/src/new/main/edit-config/data-transforms-derived-fields/date-format-modal/date-format-modal.template.ts +0 -217
- package/src/new/main/edit-config/data-transforms-derived-fields/date-format-modal/date-format-modal.ts +0 -280
- package/src/new/main/edit-config/data-transforms-derived-fields/date-format-modal/index.ts +0 -1
- package/src/new/main/edit-config/data-transforms-derived-fields/format-warning.ts +0 -43
- package/src/new/main/edit-config/data-transforms-derived-fields/number-format-modal/index.ts +0 -1
- package/src/new/main/edit-config/data-transforms-derived-fields/number-format-modal/number-format-modal.styles.ts +0 -68
- package/src/new/main/edit-config/data-transforms-derived-fields/number-format-modal/number-format-modal.template.ts +0 -93
- package/src/new/main/edit-config/data-transforms-derived-fields/number-format-modal/number-format-modal.ts +0 -152
- package/src/new/main/edit-config/datasource-config/datasource-config-container.styles.ts +0 -22
- package/src/new/main/edit-config/datasource-config/datasource-config-item.styles.ts +0 -76
- package/src/new/main/edit-config/datasource-config/datasource-config-item.template.ts +0 -141
- package/src/new/main/edit-config/datasource-config/datasource-config-item.ts +0 -212
- package/src/new/main/edit-config/datasource-config/datasources-config-container.helpers.test.ts +0 -341
- package/src/new/main/edit-config/datasource-config/datasources-config-container.helpers.ts +0 -99
- package/src/new/main/edit-config/datasource-config/datasources-config-container.template.ts +0 -68
- package/src/new/main/edit-config/datasource-config/datasources-config-container.ts +0 -55
- package/src/new/main/edit-config/datasource-config/types.ts +0 -6
- package/src/new/main/edit-config/outputs-config/outputs-config.style.ts +0 -11
- package/src/new/main/edit-config/outputs-config/outputs-config.template.ts +0 -66
- package/src/new/main/edit-config/outputs-config/outputs-config.ts +0 -66
- package/src/new/main/edit-config/row-filters/row-filters-tutorial.styles.ts +0 -16
- package/src/new/main/edit-config/row-filters/row-filters-tutorial.template.ts +0 -229
- package/src/new/main/edit-config/row-filters/row-filters-tutorial.ts +0 -15
- package/src/new/main/edit-config/row-filters/row-filters.helpers.test.ts +0 -2
- package/src/new/main/edit-config/row-filters/row-filters.helpers.ts +0 -53
- package/src/new/main/edit-config/row-filters/row-filters.styles.ts +0 -23
- package/src/new/main/edit-config/row-filters/row-filters.template.ts +0 -15
- package/src/new/main/edit-config/row-filters/row-filters.ts +0 -58
- package/src/new/main/edit-config/row-filters/row-filters.types.ts +0 -14
- package/src/new/main/edit-config/scheduling/scheduling.styles.ts +0 -59
- package/src/new/main/edit-config/scheduling/scheduling.template.ts +0 -80
- package/src/new/main/edit-config/scheduling/scheduling.ts +0 -101
- package/src/new/main/edit-config/shared/datasource-data-base-component.helpers.ts.ts +0 -250
- package/src/new/main/edit-config/shared/datasource-data-base-component.test.ts +0 -568
- package/src/new/main/edit-config/shared/datasource-data-base-component.ts +0 -65
- package/src/new/main/edit-config/shared/datasource-data-base-component.types.ts +0 -55
- package/src/new/main/edit-config/shared/index.ts +0 -3
- package/src/new/main/edit-config/tabbed-datasource-container/index.ts +0 -2
- package/src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.styles.ts +0 -12
- package/src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.template.ts +0 -29
- package/src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.ts +0 -69
- package/src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.types.ts +0 -7
- package/src/new/main/generated-reports/generated-reports.styles.ts +0 -15
- package/src/new/main/generated-reports/generated-reports.template.ts +0 -29
- package/src/new/main/generated-reports/generated-reports.ts +0 -270
- package/src/new/main/index.ts +0 -3
- package/src/new/main/main.styles.ts +0 -31
- package/src/new/main/main.template.ts +0 -92
- package/src/new/main/main.ts +0 -117
- package/src/new/main/report-destinations/report-destinations.template.ts +0 -39
- package/src/new/main/report-destinations/report-destinations.ts +0 -63
- package/src/new/store/index.ts +0 -3
- package/src/new/store/slices/base-config.ts +0 -50
- package/src/new/store/slices/datasources-config.ts +0 -297
- package/src/new/store/slices/index.ts +0 -3
- package/src/new/store/slices/types.ts +0 -90
- package/src/new/store/store.ts +0 -36
- package/src/new/store/types.ts +0 -10
- package/src/new/styles/constraints.styles.ts +0 -32
- package/src/new/styles/forms.styles.ts +0 -38
- package/src/new/styles/index.ts +0 -3
- package/src/new/styles/misc.styles.ts +0 -25
- package/src/new/types/display.ts +0 -4
- package/src/new/types/index.ts +0 -4
- package/src/new/types/misc.ts +0 -73
- package/src/new/types/redux.ts +0 -73
- package/src/new/types/rights.ts +0 -28
- package/src/new/utils/alias-generator.test.ts +0 -44
- package/src/new/utils/alias-generator.ts +0 -18
- package/src/new/utils/date-filter-params.ts +0 -28
- package/src/new/utils/endpoint.test.ts +0 -193
- package/src/new/utils/endpoint.ts +0 -62
- package/src/new/utils/event-map.ts +0 -11
- package/src/new/utils/format-utils.ts +0 -22
- package/src/new/utils/formatters.ts +0 -36
- package/src/new/utils/index.ts +0 -10
- package/src/new/utils/notifications.ts +0 -9
- package/src/new/utils/renderer.ts +0 -38
- package/src/new/utils/rights.ts +0 -66
- package/src/new/utils/sorter.ts +0 -19
- package/src/new/utils/tooltip.ts +0 -94
- package/src/new/utils/transformers.test.ts +0 -549
- package/src/new/utils/transformers.ts +0 -174
- package/src/new/utils/validators.test.ts +0 -165
- package/src/new/utils/validators.ts +0 -81
- package/src/old/assets/images/index.ts +0 -69
- package/src/old/components/create-edit/create-edit.styles.ts +0 -16
- package/src/old/components/create-edit/create-edit.template.ts +0 -15
- package/src/old/components/create-edit/create-edit.ts +0 -70
- package/src/old/components/create-edit/index.ts +0 -3
- package/src/old/components/list/columns.ts +0 -175
- package/src/old/components/list/index.ts +0 -3
- package/src/old/components/list/list.styles.ts +0 -9
- package/src/old/components/list/list.template.ts +0 -40
- package/src/old/components/list/list.ts +0 -109
- package/src/old/components/preview/columns.ts +0 -58
- package/src/old/components/preview/index.ts +0 -3
- package/src/old/components/preview/preview.styles.ts +0 -22
- package/src/old/components/preview/preview.template.ts +0 -33
- package/src/old/components/preview/preview.ts +0 -143
- package/src/old/components/rapid-components.ts +0 -64
- package/src/old/components/renderers/custom-header-component.ts +0 -92
- package/src/old/components/renderers/filter-value-renderer.ts +0 -237
- package/src/old/components/renderers/row-select.renderer.ts +0 -148
- package/src/old/components/select-fields/columns.ts +0 -83
- package/src/old/components/select-fields/data.ts +0 -218
- package/src/old/components/select-fields/index.ts +0 -3
- package/src/old/components/select-fields/select-fields.styles.ts +0 -22
- package/src/old/components/select-fields/select-fields.template.ts +0 -58
- package/src/old/components/select-fields/select-fields.ts +0 -218
- package/src/old/components/select-filters/columns.ts +0 -78
- package/src/old/components/select-filters/index.ts +0 -3
- package/src/old/components/select-filters/select-filters.styles.ts +0 -21
- package/src/old/components/select-filters/select-filters.template.ts +0 -58
- package/src/old/components/select-filters/select-filters.ts +0 -255
- package/src/old/components/wizard/debug.ts +0 -35
- package/src/old/components/wizard/index.ts +0 -2
- package/src/old/components/wizard/steps/filters.ts +0 -13
- package/src/old/components/wizard/steps/index.ts +0 -4
- package/src/old/components/wizard/steps/name.ts +0 -72
- package/src/old/components/wizard/steps/run.ts +0 -14
- package/src/old/components/wizard/steps/select.ts +0 -14
- package/src/old/components/wizard/wizard.styles.ts +0 -198
- package/src/old/components/wizard/wizard.template.ts +0 -147
- package/src/old/components/wizard/wizard.ts +0 -398
- package/src/old/components/wizard/wizard.types.ts +0 -43
- package/src/old/components/zero-components.ts +0 -61
- package/src/old/config/config.ts +0 -59
- package/src/old/config/configure.ts +0 -66
- package/src/old/config/index.ts +0 -2
- package/src/old/config/templates.ts +0 -59
- package/src/old/constants/grid-config.ts +0 -19
- package/src/old/layouts/default.ts +0 -30
- package/src/old/layouts/index.ts +0 -2
- package/src/old/layouts/two-pane-horizontal.ts +0 -81
- package/src/old/main/index.ts +0 -3
- package/src/old/main/main.styles.ts +0 -69
- package/src/old/main/main.template.ts +0 -127
- package/src/old/main/main.test.ts +0 -7
- package/src/old/main/main.ts +0 -250
- package/src/old/main/types.ts +0 -29
- package/src/old/styles/colors.ts +0 -16
- package/src/old/styles/helpers.ts +0 -181
- package/src/old/styles/index.ts +0 -4
- package/src/old/styles/normalize.ts +0 -14
- package/src/old/styles/styles.ts +0 -24
- package/src/old/tags/index.ts +0 -1
- package/src/old/tags/tags.ts +0 -79
- package/src/old/tsconfig.json +0 -10
- package/src/old/utils/filterObjectArray.test.ts +0 -110
- package/src/old/utils/filterObjectArray.ts +0 -23
- package/src/old/utils/getFiltersByType.ts +0 -92
- package/src/old/utils/getSelectedFields.ts +0 -16
- package/src/old/utils/index.ts +0 -4
- package/src/old/utils/logger.ts +0 -3
- package/src/sandbox.ts +0 -51
- package/src/tsconfig.base.json +0 -24
- package/src/typings.d.ts +0 -1
- package/tsconfig.json +0 -9
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { ICellRendererParams } from '@ag-grid-community/core';
|
|
2
|
-
import { assert, sinon, suite } from '@genesislcap/foundation-testing';
|
|
3
|
-
import { actions, selectors } from '../../../store';
|
|
4
|
-
import { GridColumnNames } from '../shared';
|
|
5
|
-
import { displayNameOnChangeHandler, lookupColumnRename } from './col-rename-alias-grid.helpers';
|
|
6
|
-
import { ColumnRenameAliasRowData } from './col-rename-alias-grid.types';
|
|
7
|
-
|
|
8
|
-
// When running all tests, the shared helper tests will be executed separately
|
|
9
|
-
// Here we only test the col-rename-alias-specific helpers
|
|
10
|
-
|
|
11
|
-
const LookupColumnRename = suite('lookupColumnRename()');
|
|
12
|
-
|
|
13
|
-
LookupColumnRename.before.each(() => {
|
|
14
|
-
sinon.restore();
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
LookupColumnRename('should return original data when no rename is found', () => {
|
|
18
|
-
const mockData: ColumnRenameAliasRowData = {
|
|
19
|
-
[GridColumnNames.ColumnName]: 'originalColumn',
|
|
20
|
-
[GridColumnNames.DisplayName]: 'Original Display',
|
|
21
|
-
[GridColumnNames.Type]: 'STRING',
|
|
22
|
-
[GridColumnNames.Datasource]: 'Test (Snapshot)',
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const getDatasourceStub = sinon.stub(selectors.datasourceConfig, 'getDatasource').returns({
|
|
26
|
-
KEY: 'test',
|
|
27
|
-
NAME: 'Test Datasource',
|
|
28
|
-
INPUT_TYPE: 'REQ_REP' as const,
|
|
29
|
-
OUTPUT_TYPE: 'TABLE' as const,
|
|
30
|
-
TRANSFORMER_CONFIGURATION: { COLUMN_RENAMES: {} },
|
|
31
|
-
GROUPING_STRATEGY: 'NONE',
|
|
32
|
-
GROUP_KEY: null,
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
const result = lookupColumnRename(mockData);
|
|
36
|
-
|
|
37
|
-
assert.equal(result, mockData);
|
|
38
|
-
assert.ok(getDatasourceStub.calledOnce);
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
LookupColumnRename('should return data with renamed display name when rename exists', () => {
|
|
42
|
-
const originalColumn = 'originalColumn';
|
|
43
|
-
const newDisplayName = 'Renamed Display';
|
|
44
|
-
const mockData: ColumnRenameAliasRowData = {
|
|
45
|
-
[GridColumnNames.ColumnName]: originalColumn,
|
|
46
|
-
[GridColumnNames.DisplayName]: 'Original Display',
|
|
47
|
-
[GridColumnNames.Type]: 'STRING',
|
|
48
|
-
[GridColumnNames.Datasource]: 'Test (Snapshot)',
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
const getDatasourceStub = sinon.stub(selectors.datasourceConfig, 'getDatasource').returns({
|
|
52
|
-
KEY: 'test',
|
|
53
|
-
NAME: 'Test Datasource',
|
|
54
|
-
INPUT_TYPE: 'REQ_REP' as const,
|
|
55
|
-
OUTPUT_TYPE: 'TABLE' as const,
|
|
56
|
-
TRANSFORMER_CONFIGURATION: {
|
|
57
|
-
COLUMN_RENAMES: {
|
|
58
|
-
[originalColumn]: newDisplayName,
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
GROUPING_STRATEGY: 'NONE',
|
|
62
|
-
GROUP_KEY: null,
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
const result = lookupColumnRename(mockData);
|
|
66
|
-
|
|
67
|
-
assert.equal(result[GridColumnNames.DisplayName], newDisplayName);
|
|
68
|
-
assert.equal(result[GridColumnNames.ColumnName], mockData[GridColumnNames.ColumnName]);
|
|
69
|
-
assert.equal(result[GridColumnNames.Type], mockData[GridColumnNames.Type]);
|
|
70
|
-
assert.equal(result[GridColumnNames.Datasource], mockData[GridColumnNames.Datasource]);
|
|
71
|
-
assert.ok(getDatasourceStub.calledOnce);
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
LookupColumnRename('should handle undefined COLUMN_RENAMES', () => {
|
|
75
|
-
const mockData: ColumnRenameAliasRowData = {
|
|
76
|
-
[GridColumnNames.ColumnName]: 'originalColumn',
|
|
77
|
-
[GridColumnNames.DisplayName]: 'Original Display',
|
|
78
|
-
[GridColumnNames.Type]: 'STRING',
|
|
79
|
-
[GridColumnNames.Datasource]: 'Test (Snapshot)',
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
const getDatasourceStub = sinon.stub(selectors.datasourceConfig, 'getDatasource').returns({
|
|
83
|
-
KEY: 'test',
|
|
84
|
-
NAME: 'Test Datasource',
|
|
85
|
-
INPUT_TYPE: 'REQ_REP' as const,
|
|
86
|
-
OUTPUT_TYPE: 'TABLE' as const,
|
|
87
|
-
TRANSFORMER_CONFIGURATION: {},
|
|
88
|
-
GROUPING_STRATEGY: 'NONE',
|
|
89
|
-
GROUP_KEY: null,
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
const result = lookupColumnRename(mockData);
|
|
93
|
-
|
|
94
|
-
assert.equal(result, mockData);
|
|
95
|
-
assert.ok(getDatasourceStub.calledOnce);
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
LookupColumnRename.run();
|
|
99
|
-
|
|
100
|
-
const DisplayNameOnChangeHandler = suite('displayNameOnChangeHandler');
|
|
101
|
-
|
|
102
|
-
DisplayNameOnChangeHandler.before.each(() => {
|
|
103
|
-
sinon.restore();
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
DisplayNameOnChangeHandler('calls setColumnRename with correct parameters when valid input', () => {
|
|
107
|
-
const callback = sinon.spy();
|
|
108
|
-
const handler = displayNameOnChangeHandler(callback);
|
|
109
|
-
const mockData = {
|
|
110
|
-
[GridColumnNames.Datasource]: 'testAlias (Snapshot)',
|
|
111
|
-
[GridColumnNames.ColumnName]: 'originalColumn',
|
|
112
|
-
[GridColumnNames.DisplayName]: 'Original Display',
|
|
113
|
-
[GridColumnNames.Type]: 'STRING',
|
|
114
|
-
} as ColumnRenameAliasRowData;
|
|
115
|
-
|
|
116
|
-
const setColumnRenameStub = sinon.stub(actions.datasourceConfig, 'setColumnRename');
|
|
117
|
-
sinon.stub(selectors.datasourceConfig, 'getAllConfigSet').returns({
|
|
118
|
-
REQ_REP_testSource_testAlias: {
|
|
119
|
-
KEY: 'testAlias',
|
|
120
|
-
NAME: 'testSource',
|
|
121
|
-
INPUT_TYPE: 'REQ_REP',
|
|
122
|
-
OUTPUT_TYPE: 'TABLE',
|
|
123
|
-
TRANSFORMER_CONFIGURATION: {},
|
|
124
|
-
GROUPING_STRATEGY: 'NONE',
|
|
125
|
-
GROUP_KEY: null,
|
|
126
|
-
},
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
handler('newColumn', { data: mockData } as ICellRendererParams<ColumnRenameAliasRowData>);
|
|
130
|
-
|
|
131
|
-
assert.equal(setColumnRenameStub.calledOnce, true);
|
|
132
|
-
|
|
133
|
-
// Check each property individually instead of using deepEqual
|
|
134
|
-
const firstCallArg = setColumnRenameStub.firstCall.args[0];
|
|
135
|
-
assert.equal(firstCallArg.key, 'REQ_REP_testSource_testAlias');
|
|
136
|
-
assert.equal(firstCallArg.columnFrom, 'originalColumn');
|
|
137
|
-
assert.equal(firstCallArg.columnTo, 'newColumn');
|
|
138
|
-
|
|
139
|
-
assert.equal(callback.called, false);
|
|
140
|
-
});
|
|
141
|
-
|
|
142
|
-
DisplayNameOnChangeHandler('removes prohibited characters and calls callback', () => {
|
|
143
|
-
const callback = sinon.spy();
|
|
144
|
-
const handler = displayNameOnChangeHandler(callback);
|
|
145
|
-
const mockData = {
|
|
146
|
-
[GridColumnNames.Datasource]: 'testAlias (Snapshot)',
|
|
147
|
-
[GridColumnNames.ColumnName]: 'originalColumn',
|
|
148
|
-
[GridColumnNames.DisplayName]: 'Original Display',
|
|
149
|
-
[GridColumnNames.Type]: 'STRING',
|
|
150
|
-
} as ColumnRenameAliasRowData;
|
|
151
|
-
|
|
152
|
-
const setColumnRenameStub = sinon.stub(actions.datasourceConfig, 'setColumnRename');
|
|
153
|
-
sinon.stub(selectors.datasourceConfig, 'getAllConfigSet').returns({
|
|
154
|
-
REQ_REP_testSource_testAlias: {
|
|
155
|
-
KEY: 'testAlias',
|
|
156
|
-
NAME: 'testSource',
|
|
157
|
-
INPUT_TYPE: 'REQ_REP',
|
|
158
|
-
OUTPUT_TYPE: 'TABLE',
|
|
159
|
-
TRANSFORMER_CONFIGURATION: {},
|
|
160
|
-
GROUPING_STRATEGY: 'NONE',
|
|
161
|
-
GROUP_KEY: null,
|
|
162
|
-
},
|
|
163
|
-
});
|
|
164
|
-
|
|
165
|
-
handler('new@Column-=+test', { data: mockData } as ICellRendererParams<ColumnRenameAliasRowData>);
|
|
166
|
-
|
|
167
|
-
assert.equal(setColumnRenameStub.calledOnce, true);
|
|
168
|
-
|
|
169
|
-
// Check each property individually instead of using deepEqual
|
|
170
|
-
const firstCallArg = setColumnRenameStub.firstCall.args[0];
|
|
171
|
-
assert.equal(firstCallArg.key, 'REQ_REP_testSource_testAlias');
|
|
172
|
-
assert.equal(firstCallArg.columnFrom, 'originalColumn');
|
|
173
|
-
assert.equal(firstCallArg.columnTo, 'newColumntest');
|
|
174
|
-
|
|
175
|
-
assert.equal(callback.calledOnce, true);
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
DisplayNameOnChangeHandler('throws error when params.data is undefined', () => {
|
|
179
|
-
const callback = sinon.spy();
|
|
180
|
-
const handler = displayNameOnChangeHandler(callback);
|
|
181
|
-
|
|
182
|
-
assert.throws(() => {
|
|
183
|
-
handler('newColumn', { data: undefined } as any);
|
|
184
|
-
}, 'displayNameOnChangeHandler with invalid data');
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
DisplayNameOnChangeHandler.run();
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CellClassParams,
|
|
3
|
-
CellStyle,
|
|
4
|
-
ICellRendererParams,
|
|
5
|
-
RowSelectedEvent,
|
|
6
|
-
} from '@ag-grid-community/core';
|
|
7
|
-
import { capitalCase } from 'change-case';
|
|
8
|
-
import { actions, selectors } from '../../../store';
|
|
9
|
-
import {
|
|
10
|
-
GridColumnNames,
|
|
11
|
-
GridRowData,
|
|
12
|
-
datasourceNameFromDisplay,
|
|
13
|
-
lookupColumnIsRenamed,
|
|
14
|
-
shouldDisableColumn,
|
|
15
|
-
} from '../shared';
|
|
16
|
-
import { ColumnRenameAliasRowData } from './col-rename-alias-grid.types';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Adds display name info from store to the row data
|
|
20
|
-
*/
|
|
21
|
-
export function lookupColumnRename(data: ColumnRenameAliasRowData): ColumnRenameAliasRowData {
|
|
22
|
-
const key = datasourceNameFromDisplay(data[GridColumnNames.Datasource]);
|
|
23
|
-
const rename =
|
|
24
|
-
selectors.datasourceConfig.getDatasource(key).TRANSFORMER_CONFIGURATION.COLUMN_RENAMES?.[
|
|
25
|
-
data[GridColumnNames.ColumnName]
|
|
26
|
-
];
|
|
27
|
-
return {
|
|
28
|
-
...data,
|
|
29
|
-
[GridColumnNames.DisplayName]: rename || capitalCase(data[GridColumnNames.DisplayName]),
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Factory for creating cell styles based on filter status for rename grid cells
|
|
35
|
-
*/
|
|
36
|
-
export function buildRenameCellStyle<
|
|
37
|
-
T extends Pick<GridRowData, GridColumnNames.Datasource | GridColumnNames.ColumnName>,
|
|
38
|
-
>(rowDeselectedStyle: CellStyle, rowSelectedStyle: CellStyle = {}) {
|
|
39
|
-
return (params: CellClassParams<T>): CellStyle => {
|
|
40
|
-
if (params.data && lookupColumnIsRenamed(params.data as any)) {
|
|
41
|
-
return rowSelectedStyle;
|
|
42
|
-
}
|
|
43
|
-
return rowDeselectedStyle;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Handler for display name changes in the grid
|
|
49
|
-
*/
|
|
50
|
-
export const displayNameOnChangeHandler = (callback: () => any) => {
|
|
51
|
-
return (value: string, params: ICellRendererParams<ColumnRenameAliasRowData>) => {
|
|
52
|
-
if (!params.data) throw new Error('displayNameOnChangeHandler with invalid data');
|
|
53
|
-
const prohibitedChars = /[-@=+]/g;
|
|
54
|
-
const columnTo = value.replace(prohibitedChars, '');
|
|
55
|
-
actions.datasourceConfig.setColumnRename({
|
|
56
|
-
key: datasourceNameFromDisplay(params.data[GridColumnNames.Datasource]),
|
|
57
|
-
columnFrom: params.data[GridColumnNames.ColumnName],
|
|
58
|
-
columnTo,
|
|
59
|
-
included: true,
|
|
60
|
-
});
|
|
61
|
-
if (value !== columnTo) {
|
|
62
|
-
callback();
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Handler for row selection changes in the grid
|
|
69
|
-
*/
|
|
70
|
-
export function renameRowSelectionChangedHandler(
|
|
71
|
-
event: RowSelectedEvent<ColumnRenameAliasRowData>,
|
|
72
|
-
): void {
|
|
73
|
-
if (!event.data) return;
|
|
74
|
-
|
|
75
|
-
// gate event listener to only trigger if the data is actually changed by the user
|
|
76
|
-
// (return if setting the same value as in the store, e.g. when first loading
|
|
77
|
-
// the grid data)
|
|
78
|
-
if (lookupColumnIsRenamed(event.data) === (event.node.isSelected() ?? true)) return;
|
|
79
|
-
|
|
80
|
-
if (shouldDisableColumn(event.data)) return;
|
|
81
|
-
actions.datasourceConfig.setColumnRename({
|
|
82
|
-
key: datasourceNameFromDisplay(event.data[GridColumnNames.Datasource]),
|
|
83
|
-
columnFrom: event.data[GridColumnNames.ColumnName],
|
|
84
|
-
columnTo: event.data[GridColumnNames.DisplayName],
|
|
85
|
-
included: event.node.isSelected() ?? true,
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
event.api.redrawRows();
|
|
89
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { css } from '@genesislcap/web-core';
|
|
2
|
-
|
|
3
|
-
export const styles = css`
|
|
4
|
-
div.grid-container {
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: calc(var(--constrained-height) - 160px);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
div.grid-container.error {
|
|
10
|
-
cursor: not-allowed;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
div.error rapid-grid-pro {
|
|
14
|
-
pointer-events: none;
|
|
15
|
-
opacity: 80%;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
rapid-grid-pro::part(grid) {
|
|
19
|
-
--base-height-multiplier: 9;
|
|
20
|
-
--ag-selected-row-background-color: transparent !important;
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { classNames, html } from '@genesislcap/web-core';
|
|
2
|
-
import type { ColRenamesAliases } from './col-rename-alias-grid';
|
|
3
|
-
|
|
4
|
-
export const template = html<ColRenamesAliases>`
|
|
5
|
-
<div class="grid-container ${(x) => classNames(['error', x.dataError])}">
|
|
6
|
-
<rapid-grid-pro
|
|
7
|
-
class="${(x) => classNames(['error', x.dataError])}"
|
|
8
|
-
data-test-id="datasource-config-col-rename-grid"
|
|
9
|
-
:gridOptions=${(x) => x.getGridOptions()}
|
|
10
|
-
:rowData=${(x) => x.fieldData}
|
|
11
|
-
grid-autosizing
|
|
12
|
-
></rapid-grid-pro>
|
|
13
|
-
</div>
|
|
14
|
-
`;
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { ColDef, IRowNode, RowDataUpdatedEvent, ValueGetterParams } from '@ag-grid-community/core';
|
|
2
|
-
import { GridOptionsConfig, RapidAgTextRenderer } from '@genesislcap/rapid-grid-pro';
|
|
3
|
-
import { customElement } from '@genesislcap/web-core';
|
|
4
|
-
import { RowSelectRenderer } from '../../../../old/components/renderers/row-select.renderer';
|
|
5
|
-
import { selectors } from '../../../store';
|
|
6
|
-
import {
|
|
7
|
-
datasourceNameFromDisplay,
|
|
8
|
-
DatasourceDataBaseComponent,
|
|
9
|
-
GridColumnNames,
|
|
10
|
-
pathParameters,
|
|
11
|
-
lookupColumnIsRenamed,
|
|
12
|
-
lookupColumnIsIncluded,
|
|
13
|
-
orderRowsByIncludeColumns,
|
|
14
|
-
} from '../shared';
|
|
15
|
-
import {
|
|
16
|
-
buildRenameCellStyle,
|
|
17
|
-
displayNameOnChangeHandler,
|
|
18
|
-
lookupColumnRename,
|
|
19
|
-
renameRowSelectionChangedHandler,
|
|
20
|
-
} from './col-rename-alias-grid.helpers';
|
|
21
|
-
import { styles } from './col-rename-alias-grid.styles';
|
|
22
|
-
import { template } from './col-rename-alias-grid.template';
|
|
23
|
-
import { ColumnRenameAliasRowData } from './col-rename-alias-grid.types';
|
|
24
|
-
|
|
25
|
-
@customElement({
|
|
26
|
-
name: 'col-rename-alias',
|
|
27
|
-
template,
|
|
28
|
-
styles,
|
|
29
|
-
})
|
|
30
|
-
export class ColRenamesAliases extends DatasourceDataBaseComponent {
|
|
31
|
-
/**
|
|
32
|
-
* Override updateGridData to include column rename information
|
|
33
|
-
*/
|
|
34
|
-
protected async updateDataFields() {
|
|
35
|
-
try {
|
|
36
|
-
const rows = this.datasourceSpec
|
|
37
|
-
.flatMap(pathParameters)
|
|
38
|
-
.filter(lookupColumnIsIncluded)
|
|
39
|
-
.map(lookupColumnRename);
|
|
40
|
-
const currentDisplay = this.datasourceSpec[0]?.name;
|
|
41
|
-
const include = currentDisplay
|
|
42
|
-
? selectors.datasourceConfig.getDatasource(datasourceNameFromDisplay(currentDisplay))
|
|
43
|
-
?.TRANSFORMER_CONFIGURATION?.INCLUDE_COLUMNS
|
|
44
|
-
: undefined;
|
|
45
|
-
this.fieldData = orderRowsByIncludeColumns(rows as any, include) as any;
|
|
46
|
-
this.dataError = false;
|
|
47
|
-
} catch (e) {
|
|
48
|
-
this.handleError(e as Error, 'There were errors when loading the datasource fields');
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
getGridOptions(): GridOptionsConfig {
|
|
53
|
-
const disableCellStyle = {
|
|
54
|
-
opacity: '0.5',
|
|
55
|
-
pointerEvents: 'none',
|
|
56
|
-
};
|
|
57
|
-
const hideCellStyle = {
|
|
58
|
-
display: 'none',
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const columnDefs: ColDef[] = [
|
|
62
|
-
{
|
|
63
|
-
field: '',
|
|
64
|
-
headerTooltip: 'Controls whether this column is added to the renamed columns.',
|
|
65
|
-
headerCheckboxSelection: true,
|
|
66
|
-
cellRenderer: 'row-select',
|
|
67
|
-
valueGetter: (params: ValueGetterParams<ColumnRenameAliasRowData>) =>
|
|
68
|
-
lookupColumnIsRenamed(params.data!),
|
|
69
|
-
maxWidth: 60,
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
field: GridColumnNames.ColumnName,
|
|
73
|
-
headerTooltip: 'The name of the field as defined on the selected datasource.',
|
|
74
|
-
cellStyle: buildRenameCellStyle<ColumnRenameAliasRowData>(disableCellStyle),
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
field: GridColumnNames.DisplayName,
|
|
78
|
-
headerTooltip: 'Configurable name for the associated column name.',
|
|
79
|
-
cellStyle: buildRenameCellStyle<ColumnRenameAliasRowData>(hideCellStyle),
|
|
80
|
-
cellRenderer: RapidAgTextRenderer,
|
|
81
|
-
cellRendererParams: {
|
|
82
|
-
accessor: GridColumnNames.DisplayName,
|
|
83
|
-
onChange: displayNameOnChangeHandler(this.updateDataFields.bind(this)),
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
field: GridColumnNames.Type,
|
|
88
|
-
headerTooltip: 'The type of the field on the underlying datasource.',
|
|
89
|
-
cellStyle: buildRenameCellStyle<ColumnRenameAliasRowData>(disableCellStyle),
|
|
90
|
-
},
|
|
91
|
-
];
|
|
92
|
-
|
|
93
|
-
return {
|
|
94
|
-
components: {
|
|
95
|
-
'row-select': RowSelectRenderer,
|
|
96
|
-
},
|
|
97
|
-
suppressRowTransform: true,
|
|
98
|
-
columnDefs,
|
|
99
|
-
rowData: [],
|
|
100
|
-
headerHeight: 30,
|
|
101
|
-
rowHeight: 38,
|
|
102
|
-
tooltipShowDelay: 0,
|
|
103
|
-
rowSelection: 'multiple',
|
|
104
|
-
onGridReady: () => {
|
|
105
|
-
this.handleUpdatedDatasources();
|
|
106
|
-
},
|
|
107
|
-
context: {
|
|
108
|
-
ariaLabelField: GridColumnNames.ColumnName,
|
|
109
|
-
},
|
|
110
|
-
suppressRowClickSelection: true,
|
|
111
|
-
onRowSelected: renameRowSelectionChangedHandler,
|
|
112
|
-
onRowDataUpdated(params: RowDataUpdatedEvent) {
|
|
113
|
-
params.api.forEachNode((node: IRowNode<ColumnRenameAliasRowData>) => {
|
|
114
|
-
node.setSelected(lookupColumnIsRenamed(node.data!));
|
|
115
|
-
});
|
|
116
|
-
},
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { GridColumnNames, GridRowData } from '../shared';
|
|
2
|
-
|
|
3
|
-
// Define the specific subset of fields needed for this component
|
|
4
|
-
export type ColumnRenameAliasRowData = Pick<
|
|
5
|
-
GridRowData,
|
|
6
|
-
| GridColumnNames.ColumnName
|
|
7
|
-
| GridColumnNames.DisplayName
|
|
8
|
-
| GridColumnNames.Type
|
|
9
|
-
| GridColumnNames.Datasource
|
|
10
|
-
>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { customElement, GenesisElement, html, whenElse } from '@genesislcap/web-core';
|
|
2
|
-
import { selectors } from '../../../store';
|
|
3
|
-
|
|
4
|
-
@customElement({
|
|
5
|
-
name: 'col-renames-aliases-tutorial',
|
|
6
|
-
template: html`
|
|
7
|
-
<template>
|
|
8
|
-
${whenElse(
|
|
9
|
-
(_) => Boolean(selectors.baseConfig.getConfig().DOCUMENT_TEMPLATE_ID),
|
|
10
|
-
html`
|
|
11
|
-
<h1>Column Aliases</h1>
|
|
12
|
-
<p>
|
|
13
|
-
In this step, configure the aliases that will be used to reference the datasource column
|
|
14
|
-
(field) in your template. Where the checkbox is checked, the value in "Display Name"
|
|
15
|
-
will be used as the alias. Where the checkbox is unchecked, the "Column Name" value will
|
|
16
|
-
be used as the alias.
|
|
17
|
-
</p>
|
|
18
|
-
`,
|
|
19
|
-
html`
|
|
20
|
-
<h1>Column Renames</h1>
|
|
21
|
-
<p>
|
|
22
|
-
In this step, configure the column headers you wish to see in the generated report.
|
|
23
|
-
Where the checkbox is checked, the value in "Display Name" will be used as the column
|
|
24
|
-
header. Where the checkbox is unchecked, the "Column Name" value will be used as the
|
|
25
|
-
column header.
|
|
26
|
-
</p>
|
|
27
|
-
`,
|
|
28
|
-
)}
|
|
29
|
-
<p>Any columns you've previously set as not-visible will not be configured here.</p>
|
|
30
|
-
</template>
|
|
31
|
-
`,
|
|
32
|
-
})
|
|
33
|
-
export class ColRenamesAliasesTutorial extends GenesisElement {}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { css } from '@genesislcap/web-core';
|
|
2
|
-
import { constrainedDimensions } from '../../styles';
|
|
3
|
-
|
|
4
|
-
export const styles = css`
|
|
5
|
-
:host {
|
|
6
|
-
--stepper-size: 50px;
|
|
7
|
-
${constrainedDimensions({ navToContentPx: 300 })}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
div.pad {
|
|
11
|
-
padding-top: 50px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.centered {
|
|
15
|
-
max-width: var(--constrained-width);
|
|
16
|
-
max-height: calc(100vh - var(--reporting-header-to-content-height));
|
|
17
|
-
width: 100%;
|
|
18
|
-
margin: auto;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.scheduling-container {
|
|
22
|
-
display: flex;
|
|
23
|
-
height: 100%;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.scheduling-container-margin {
|
|
27
|
-
margin: 0 auto;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.block {
|
|
31
|
-
display: block;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
datasource-config-container,
|
|
35
|
-
base-config {
|
|
36
|
-
overflow-y: auto;
|
|
37
|
-
overflow-x: clip;
|
|
38
|
-
min-height: var(--constrained-height);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
div.button-container {
|
|
42
|
-
z-index: 1 !important;
|
|
43
|
-
position: absolute;
|
|
44
|
-
top: calc(var(--stepper-size) + calc(var(--design-unit) * 3px));
|
|
45
|
-
right: calc(var(--design-unit) * 3px);
|
|
46
|
-
display: flex;
|
|
47
|
-
align-content: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
gap: calc(var(--design-unit) * 3px);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
tabbed-datasource-container,
|
|
53
|
-
row-filters {
|
|
54
|
-
max-width: var(--constrained-width);
|
|
55
|
-
margin: auto;
|
|
56
|
-
display: block;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
rapid-stepper::part(action-buttons-container) {
|
|
60
|
-
border-top: calc(var(--stroke-width) * 1px) solid
|
|
61
|
-
color-mix(in srgb, var(--neutral-stroke-divider-rest), transparent 50%);
|
|
62
|
-
padding: calc(var(--design-unit) * 3px) calc(var(--design-unit) * 4px);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
rapid-stepper::part(stepper-tab-panel) {
|
|
66
|
-
background: var(--app-bg-color);
|
|
67
|
-
justify-content: space-between;
|
|
68
|
-
border-bottom: calc(var(--stroke-width) * 1px) solid
|
|
69
|
-
color-mix(in srgb, var(--neutral-stroke-divider-rest), transparent 50%);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
rapid-stepper::part(stepper-tab) {
|
|
73
|
-
border-bottom: calc(var(--stroke-width) * 1px) solid
|
|
74
|
-
color-mix(in srgb, var(--neutral-stroke-divider-rest), transparent 50%);
|
|
75
|
-
height: var(--stepper-size);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
rapid-stepper::part(stepper-panel-container) {
|
|
79
|
-
overflow: hidden;
|
|
80
|
-
contain: size;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
rapid-stepper.hidden::part(action-buttons-container) {
|
|
84
|
-
display: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
rapid-stepper::part(stepper-tab-menu) {
|
|
88
|
-
margin: 0;
|
|
89
|
-
gap: 0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
rapid-stepper::part(stepper-tab-progress) {
|
|
93
|
-
background: var(--app-bg-color);
|
|
94
|
-
justify-content: center;
|
|
95
|
-
padding: 0;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Hacky way for now - need to adjust it in foundation
|
|
100
|
-
*/
|
|
101
|
-
rapid-stepper-tab {
|
|
102
|
-
--neutral-layer-3: var(--app-bg-color);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
:host(.readonly) rapid-stepper-tab-panel {
|
|
106
|
-
pointer-events: none;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
::-webkit-scrollbar {
|
|
110
|
-
width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
::-webkit-scrollbar-track {
|
|
114
|
-
background: var(--neutral-layer-1);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
::-webkit-scrollbar-thumb {
|
|
118
|
-
background: var(--neutral-fill-rest);
|
|
119
|
-
}
|
|
120
|
-
`;
|