@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,38 +0,0 @@
|
|
|
1
|
-
import { ColDef } from '@ag-grid-community/core';
|
|
2
|
-
|
|
3
|
-
export const buttonCellRenderer = (
|
|
4
|
-
title,
|
|
5
|
-
clickHandler,
|
|
6
|
-
contentTemplate,
|
|
7
|
-
isDisabled?,
|
|
8
|
-
tooltip?,
|
|
9
|
-
): ColDef => ({
|
|
10
|
-
colId: `action-${title}`,
|
|
11
|
-
width: 50,
|
|
12
|
-
pinned: 'right',
|
|
13
|
-
enableCellChangeFlash: false,
|
|
14
|
-
cellStyle: { padding: '0', lineHeight: '25px' },
|
|
15
|
-
filter: false,
|
|
16
|
-
suppressFiltersToolPanel: true,
|
|
17
|
-
suppressColumnsToolPanel: true,
|
|
18
|
-
headerName: '',
|
|
19
|
-
minWidth: 35,
|
|
20
|
-
maxWidth: 35,
|
|
21
|
-
resizable: false,
|
|
22
|
-
headerTooltip: tooltip,
|
|
23
|
-
cellRendererSelector: (params) =>
|
|
24
|
-
params.node.group
|
|
25
|
-
? undefined
|
|
26
|
-
: {
|
|
27
|
-
component: 'action',
|
|
28
|
-
params: {
|
|
29
|
-
actionClick: clickHandler,
|
|
30
|
-
actionName: title,
|
|
31
|
-
contentTemplate,
|
|
32
|
-
appearance: 'neutral',
|
|
33
|
-
isDisabled: title === 'Download' && isDisabled,
|
|
34
|
-
actionButtonStyle:
|
|
35
|
-
'width: 24px; height: 24px; min-width: 24px; border: none; background: var(--neutral-layer-2);',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
});
|
package/src/new/utils/rights.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { User } from '@genesislcap/foundation-user';
|
|
2
|
-
import {
|
|
3
|
-
css,
|
|
4
|
-
customElement,
|
|
5
|
-
GenesisElement,
|
|
6
|
-
html,
|
|
7
|
-
ViewTemplate,
|
|
8
|
-
whenElse,
|
|
9
|
-
} from '@genesislcap/web-core';
|
|
10
|
-
import { errorMessageStyles, mixinScreen } from '../styles';
|
|
11
|
-
import { Permissions } from '../types';
|
|
12
|
-
|
|
13
|
-
@customElement({
|
|
14
|
-
name: 'not-permitted',
|
|
15
|
-
template: html<NotPermitted>`
|
|
16
|
-
<slot>
|
|
17
|
-
<h1 class="error-message">
|
|
18
|
-
You do not have permission to access this part of the application, please contact your
|
|
19
|
-
administrator.
|
|
20
|
-
</h1>
|
|
21
|
-
</slot>
|
|
22
|
-
`,
|
|
23
|
-
styles: css`
|
|
24
|
-
${errorMessageStyles}
|
|
25
|
-
|
|
26
|
-
:host {
|
|
27
|
-
${mixinScreen('flex')}
|
|
28
|
-
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
}
|
|
32
|
-
`,
|
|
33
|
-
})
|
|
34
|
-
export class NotPermitted extends GenesisElement {}
|
|
35
|
-
|
|
36
|
-
NotPermitted;
|
|
37
|
-
|
|
38
|
-
// Used as an explicit param to not show the default "you don't have
|
|
39
|
-
// permission to access this part" message
|
|
40
|
-
export const blankTemplate = html`
|
|
41
|
-
<!-- null template -->
|
|
42
|
-
`;
|
|
43
|
-
|
|
44
|
-
export const permissionGuard = (
|
|
45
|
-
classInstance: { user: User },
|
|
46
|
-
permission: Permissions | Permissions[],
|
|
47
|
-
) => {
|
|
48
|
-
const permsChecks = Array.isArray(permission) ? permission : [permission];
|
|
49
|
-
return permsChecks.some((p) => classInstance.user.hasPermission(p));
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export const permissionTemplateGuard = <TSource = any, TParent = any>(
|
|
53
|
-
classInstance: { user: User },
|
|
54
|
-
permission: Permissions | Permissions[],
|
|
55
|
-
template: ViewTemplate<TSource, TParent>,
|
|
56
|
-
banTemplate?: ViewTemplate<TSource, TParent>,
|
|
57
|
-
) => html`
|
|
58
|
-
${whenElse(
|
|
59
|
-
() => permissionGuard(classInstance, permission),
|
|
60
|
-
template,
|
|
61
|
-
banTemplate ??
|
|
62
|
-
html`
|
|
63
|
-
<not-permitted></not-permitted>
|
|
64
|
-
`,
|
|
65
|
-
)}
|
|
66
|
-
`;
|
package/src/new/utils/sorter.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sorts items using `localCompare` but allowing for a priority list whcih moves priority items to the top
|
|
3
|
-
* @param priorityList - `string[]` of values which are a priority and are sorted to the top
|
|
4
|
-
* @param extract - `(v: TVal) => string` extract function to extract string from object to be used as comparison
|
|
5
|
-
* @typeparam TVal - the type of the objects which are being sorted, which must have a string extracted from them from comparison
|
|
6
|
-
* @returns - function passed into `.sort()` to execute sorting on `TVAL[]`
|
|
7
|
-
*/
|
|
8
|
-
export const prioritySorter =
|
|
9
|
-
<TVal>(priorityList: string[], extract: (v: TVal) => string) =>
|
|
10
|
-
(a: TVal, b: TVal): number => {
|
|
11
|
-
const aVal = extract(a);
|
|
12
|
-
const bVal = extract(b);
|
|
13
|
-
// If 'a' is in priority list, move it up
|
|
14
|
-
if (priorityList.includes(aVal) && !priorityList.includes(bVal)) return -1;
|
|
15
|
-
// If 'b' is in priority list, move it up
|
|
16
|
-
if (!priorityList.includes(aVal) && priorityList.includes(bVal)) return 1;
|
|
17
|
-
// Otherwise, sort alphabetically
|
|
18
|
-
return aVal.localeCompare(bVal);
|
|
19
|
-
};
|
package/src/new/utils/tooltip.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { html } from '@genesislcap/web-core';
|
|
2
|
-
|
|
3
|
-
export const tooltip = (text: string, icon?: string) => html`
|
|
4
|
-
<rapid-icon tooltip="${() => text}" name="${() => icon}"></rapid-icon>
|
|
5
|
-
`;
|
|
6
|
-
const REQUIRED = `
|
|
7
|
-
<h3>Required</h3>
|
|
8
|
-
<p>This field is required.</p>
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
export const requiredTooltip = tooltip(REQUIRED, 'circle-exclamation');
|
|
12
|
-
|
|
13
|
-
export namespace TOOLTIP {
|
|
14
|
-
export const SETUP_NAME = `
|
|
15
|
-
<h3>Report name</h3>
|
|
16
|
-
<p>Configure the name of this report configuration, this is used to uniquely identify this report configuration.</p>
|
|
17
|
-
`;
|
|
18
|
-
|
|
19
|
-
export const SETUP_FILENAME = `
|
|
20
|
-
<h3>File name</h3>
|
|
21
|
-
<p>Configure the file name to apply to generated reports.</p>
|
|
22
|
-
<p>The file extension type will automatically be added to this file name.</p>
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
export const SETUP_DIRECTORY = `
|
|
26
|
-
<h3>Output directory</h3>
|
|
27
|
-
<p>Configure the directory that generated reports will be stored under within the Document Manager</p>
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
|
-
export const SETUP_DESCRIPTION = `
|
|
31
|
-
<h3>Description</h3>
|
|
32
|
-
<p>Here you may optionally include a more detailed description describing this report configuration.</p>
|
|
33
|
-
`;
|
|
34
|
-
|
|
35
|
-
export const SETUP_FILE_TYPE = `
|
|
36
|
-
<h3>File type</h3>
|
|
37
|
-
<p>Select the type of file to use when generating the report. You can choose between CSV, XLSX, and PDF</p>
|
|
38
|
-
<ul>
|
|
39
|
-
<li><strong>CSV</strong>: Generates a CSV report. Selecting a template is optional</li>
|
|
40
|
-
<li><strong>XLSX</strong>: Generates an Excel workbook. Selecting a template is optional</li>
|
|
41
|
-
<li><strong>PDF</strong>: Generates a PDF file. Selecting a template is mandatory</li>
|
|
42
|
-
</ul>
|
|
43
|
-
`;
|
|
44
|
-
|
|
45
|
-
export const SETUP_FILE_TEMPLATE = `
|
|
46
|
-
<h3>File template</h3>
|
|
47
|
-
<p>The template file to use when generating the report. This will only display relevant template files that are available in the Document Manager for the file type configured.</p>
|
|
48
|
-
<ul>
|
|
49
|
-
<li>Where File type is set to <strong>CSV</strong> you may optionally select a <code>.csv</code> or <code>.txt</code> template. To use multiple datasources with <strong>CSV</strong> you must select a template.</li>
|
|
50
|
-
<li>Where File type is set to <strong>XLSX</strong> you may optionally select a <code>.xls</code> or <code>.xlsx</code> template. Where no template file is selected, the workbook will be generated with a tab for each of the data sources configured in the "Add Datasources" step.</li>
|
|
51
|
-
<li>Where File type is set to <strong>PDF</strong> you must select a <code>.html</code> or <code>.xhtml</code> template that you've uploaded to the document manager PBC</li>
|
|
52
|
-
</ul>
|
|
53
|
-
`;
|
|
54
|
-
|
|
55
|
-
export const DATASOURCES_DATASOURCE = `
|
|
56
|
-
<h3>Datasource</h3>
|
|
57
|
-
<p>This is the name of the server resource that data will be pulled from to generate the report.</p>
|
|
58
|
-
`;
|
|
59
|
-
|
|
60
|
-
export const DATASOURCES_NAME = `
|
|
61
|
-
<h3>Datasource name</h3>
|
|
62
|
-
<p>Allows you to set a name for the datasource which must correspond with your template data references where the report is configured to use a template file.</p>
|
|
63
|
-
<p>Where File Type is XLSX and no template is selected, this will be the name of the tab containing this data source's data in the resulting workbook.</p>
|
|
64
|
-
`;
|
|
65
|
-
|
|
66
|
-
export const DATASOURCES_TYPE = `
|
|
67
|
-
<h3>Datasource type</h3>
|
|
68
|
-
<p>Configures the method by which the server constructs the report configuration. Currently only TABLE is supported, which means the entire datasource is loaded into memory when generating the report using this report configuration.</p>
|
|
69
|
-
`;
|
|
70
|
-
|
|
71
|
-
export const DATASOURCES_GROUPING_STRATEGY = `
|
|
72
|
-
<h3>Grouping Strategy</h3>
|
|
73
|
-
<p>Select "None" to disable grouping strategies, or select the strategy you'd like to use.</p>
|
|
74
|
-
<ul>
|
|
75
|
-
<li><strong>Multi-sheet</strong>: Group data for <code>JXLS</code> template Multi-sheet functionality, to split different groups across multiple excel worksheets.</li>
|
|
76
|
-
<li><strong>Lookup-table</strong>: Create a lookup table of key value pairs in the template data, where the group key field is the map key.</li>
|
|
77
|
-
</ul>
|
|
78
|
-
`;
|
|
79
|
-
|
|
80
|
-
export const DATASOURCES_GROUPING_KEY = `
|
|
81
|
-
<h3>Grouping Key</h3>
|
|
82
|
-
<p>Select the field for this datasource you want to operate the grouping strategy on.</p>
|
|
83
|
-
`;
|
|
84
|
-
|
|
85
|
-
export const DELIVERY_TIMEZONE = `
|
|
86
|
-
<h3>Timezone</h3>
|
|
87
|
-
<p>Select the timezone to be used for this schedule.</p>
|
|
88
|
-
`;
|
|
89
|
-
|
|
90
|
-
export const DELIVERY_OUTPUTS = `
|
|
91
|
-
<h3>Outputs</h3>
|
|
92
|
-
<p>Optionally select the destinations to distribute the report to.</p>
|
|
93
|
-
`;
|
|
94
|
-
}
|