@genesislcap/pbc-reporting-ui 1.0.401 → 1.0.403
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/dts/new/main/edit-config/base-config/base-config.styles.d.ts.map +1 -1
- package/dist/dts/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.styles.d.ts.map +1 -1
- package/dist/dts/new/utils/tooltip.d.ts +1 -0
- package/dist/dts/new/utils/tooltip.d.ts.map +1 -1
- package/dist/esm/new/main/edit-config/base-config/base-config.styles.js +1 -0
- package/dist/esm/new/main/edit-config/base-config/base-config.template.js +19 -19
- package/dist/esm/new/main/edit-config/config-journey-orchestrator.styles.js +2 -2
- package/dist/esm/new/main/edit-config/datasource-config/datasource-config-item.template.js +1 -1
- package/dist/esm/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.styles.js +0 -6
- package/dist/esm/new/utils/tooltip.js +4 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-config.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/base-config/base-config.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"base-config.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/base-config/base-config.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,iDAkBlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabbed-datasource-container.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"tabbed-datasource-container.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/tabbed-datasource-container/tabbed-datasource-container.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,iDAQlB,CAAC"}
|
|
@@ -6,6 +6,7 @@ export declare namespace TOOLTIP {
|
|
|
6
6
|
const SETUP_DIRECTORY = "\n <h3>Output directory</h3>\n <p>This is the filepath that the generated file will be stored at.</p>\n <p>This applies to looking at the generated reports inside of the Document Management PBC.</p>\n";
|
|
7
7
|
const SETUP_DESCRIPTION = "\n <h3>Description</h3>\n <p>Here you can set a description for this reporting config.</p>\n <p>You could use this to write a summary of the generated report for future reference.</p>\n";
|
|
8
8
|
const SETUP_FILE_TYPE = "\n <h3>File type</h3>\n <p>Here you can choose the filetype generated for your report, automatically setting the file extension. You can choose between CSV, XLSX, and PDF; they each differ in functionality.</p>\n <ul>\n <li><strong>CSV</strong>: Allows you to generate a simple report consisting of a single datasource to a simple csv file where every column corresponds to a field from the datasource.</li>\n <li><strong>XLSX</strong>: Allows you to generate a simple xlxs workbook, consisting of one or many datasources where each datasource creates a sheet similar to the CSV option. When using XLXS you may optionally select a <code>xls</code> or <code>xlxs</code> template that you've uploaded to the document manager PBC to have more control over the generated report.</li>\n <li><strong>PDF</strong>: Allows you to generate a PDF file, consisting of one or many datasources. When using PDF you must select a <code>html</code> or <code>xhtml</code> template that you've uploaded to the document manager PBC to define how the output report is generated.</li>\n </ul>\n <p>If you currently have more than one datasource selected in the \"Add Datasources\" step then you cannot select CSV output here, please delete all but one datasource to do that.</p>\n";
|
|
9
|
+
const SETUP_FILE_TEMPLATE = "\n <h3>File template</h3>\n <p>The template file to use when generating the report</p>\n ";
|
|
9
10
|
const DATASOURCES_NAME = "\n <h3>Datasource name</h3>\n <p>Allows you to set a name for the datasource which you'll use to refer to the datasource in the template file.</p>\n";
|
|
10
11
|
const DATASOURCES_TYPE = "\n <h3>Datasource type</h3>\n <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>\n";
|
|
11
12
|
const DELVIERY_TIMEZONE = "\n <h3>Timezone</h3>\n <p>Select the timezone in which the report schedule should be executed.</p>\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/new/utils/tooltip.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,SAAU,MAAM,SAAS,MAAM,6DAElD,CAAC;AAMF,eAAO,MAAM,eAAe,0DAA0C,CAAC;AAEvE,yBAAiB,OAAO,CAAC;IAChB,MAAM,UAAU,iJAIxB,CAAC;IAEO,MAAM,cAAc,6OAI5B,CAAC;IAEO,MAAM,eAAe,gNAI7B,CAAC;IAEO,MAAM,iBAAiB,iMAI/B,CAAC;IAEO,MAAM,eAAe,8vCAS7B,CAAC;IAEO,MAAM,gBAAgB,2JAG9B,CAAC;IAEO,MAAM,gBAAgB,mRAG9B,CAAC;IAEO,MAAM,iBAAiB,2GAG/B,CAAC;IAEO,MAAM,sBAAsB,yIAGpC,CAAC;IAEO,MAAM,gBAAgB,kHAG9B,CAAC;CACD"}
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/new/utils/tooltip.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,SAAU,MAAM,SAAS,MAAM,6DAElD,CAAC;AAMF,eAAO,MAAM,eAAe,0DAA0C,CAAC;AAEvE,yBAAiB,OAAO,CAAC;IAChB,MAAM,UAAU,iJAIxB,CAAC;IAEO,MAAM,cAAc,6OAI5B,CAAC;IAEO,MAAM,eAAe,gNAI7B,CAAC;IAEO,MAAM,iBAAiB,iMAI/B,CAAC;IAEO,MAAM,eAAe,8vCAS7B,CAAC;IAEO,MAAM,mBAAmB,iGAG/B,CAAC;IAEK,MAAM,gBAAgB,2JAG9B,CAAC;IAEO,MAAM,gBAAgB,mRAG9B,CAAC;IAEO,MAAM,iBAAiB,2GAG/B,CAAC;IAEO,MAAM,sBAAsB,yIAGpC,CAAC;IAEO,MAAM,gBAAgB,kHAG9B,CAAC;CACD"}
|
|
@@ -10,7 +10,7 @@ export const allowedTemplateFiletypes = {
|
|
|
10
10
|
};
|
|
11
11
|
const fileTemplatePicker = html `
|
|
12
12
|
${when((_) => selectors.baseConfig.getConfig().OUTPUT_FORMAT !== 'CSV', html `
|
|
13
|
-
<label class="label">
|
|
13
|
+
<label class="label">File template${tooltip(TOOLTIP.SETUP_FILE_TEMPLATE)}</label>
|
|
14
14
|
${whenElse((x) => { var _a; return ((_a = x.allowedTemplates) === null || _a === void 0 ? void 0 : _a.length) > 0; }, html `
|
|
15
15
|
<rapid-select
|
|
16
16
|
data-test-id="config-document-template"
|
|
@@ -55,6 +55,23 @@ export const template = html `
|
|
|
55
55
|
value: ctx.event.target.value,
|
|
56
56
|
})}"
|
|
57
57
|
></rapid-text-field>
|
|
58
|
+
<label class="label">File type${tooltip(TOOLTIP.SETUP_FILE_TYPE)}</label>
|
|
59
|
+
<rapid-select
|
|
60
|
+
data-test-id="config-report-file-type"
|
|
61
|
+
value=${() => selectors.baseConfig.getConfig().OUTPUT_FORMAT}
|
|
62
|
+
@change=${(_, ctx) => actions.baseConfig.setOutputFormat({
|
|
63
|
+
format: ctx.event.target.value,
|
|
64
|
+
})}
|
|
65
|
+
>
|
|
66
|
+
${repeat(() => reportOutputFormats, html `
|
|
67
|
+
<rapid-option
|
|
68
|
+
value="${(x) => x}"
|
|
69
|
+
?disabled=${(x) => x === 'CSV' && Object.keys(selectors.datasourceConfig.getAllConfigSet()).length > 1}
|
|
70
|
+
>
|
|
71
|
+
${(x) => '.' + x.toLowerCase()}
|
|
72
|
+
</rapid-option>
|
|
73
|
+
`)}
|
|
74
|
+
</rapid-select>
|
|
58
75
|
<label class="label">File name${requiredTooltip}${tooltip(TOOLTIP.SETUP_DIRECTORY)}</label>
|
|
59
76
|
<rapid-text-field
|
|
60
77
|
data-test-id="config-report-filename"
|
|
@@ -65,6 +82,7 @@ export const template = html `
|
|
|
65
82
|
value: ctx.event.target.value,
|
|
66
83
|
})}"
|
|
67
84
|
></rapid-text-field>
|
|
85
|
+
${fileTemplatePicker}
|
|
68
86
|
<label class="label">Output directory${requiredTooltip}${tooltip(TOOLTIP.SETUP_DIRECTORY)}</label>
|
|
69
87
|
<rapid-text-field
|
|
70
88
|
data-test-id="config-report-output-directory"
|
|
@@ -85,22 +103,4 @@ export const template = html `
|
|
|
85
103
|
value: ctx.event.target.value,
|
|
86
104
|
})}"
|
|
87
105
|
></rapid-text-area>
|
|
88
|
-
<label class="label">File type${tooltip(TOOLTIP.SETUP_FILE_TYPE)}</label>
|
|
89
|
-
<rapid-select
|
|
90
|
-
data-test-id="config-report-file-type"
|
|
91
|
-
value=${() => selectors.baseConfig.getConfig().OUTPUT_FORMAT}
|
|
92
|
-
@change=${(_, ctx) => actions.baseConfig.setOutputFormat({
|
|
93
|
-
format: ctx.event.target.value,
|
|
94
|
-
})}
|
|
95
|
-
>
|
|
96
|
-
${repeat(() => reportOutputFormats, html `
|
|
97
|
-
<rapid-option
|
|
98
|
-
value="${(x) => x}"
|
|
99
|
-
?disabled=${(x) => x === 'CSV' && Object.keys(selectors.datasourceConfig.getAllConfigSet()).length > 1}
|
|
100
|
-
>
|
|
101
|
-
${(x) => '.' + x.toLowerCase()}
|
|
102
|
-
</rapid-option>
|
|
103
|
-
`)}
|
|
104
|
-
</rapid-select>
|
|
105
|
-
${fileTemplatePicker}
|
|
106
106
|
`;
|
|
@@ -7,12 +7,12 @@ export const styles = css `
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
div.pad {
|
|
10
|
-
padding-top:
|
|
10
|
+
padding-top: 50px;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.centered {
|
|
14
14
|
max-width: var(--constrained-width);
|
|
15
|
-
max-height: var(--
|
|
15
|
+
max-height: calc(100vh - var(--reporting-header-to-content-height));
|
|
16
16
|
width: 100%;
|
|
17
17
|
margin: auto;
|
|
18
18
|
}
|
|
@@ -50,7 +50,7 @@ const component = html `
|
|
|
50
50
|
`)}
|
|
51
51
|
</rapid-select>
|
|
52
52
|
${when((_) => Boolean(selectors.baseConfig.getConfig().DOCUMENT_TEMPLATE_ID), datasourceAlias)}
|
|
53
|
-
${when((_) => selectors.baseConfig.getConfig().OUTPUT_FORMAT === 'CSV', processType)}
|
|
53
|
+
<!-- ${when((_) => selectors.baseConfig.getConfig().OUTPUT_FORMAT === 'CSV', processType)} -->
|
|
54
54
|
</div>
|
|
55
55
|
`;
|
|
56
56
|
export const template = html `
|
|
@@ -39,6 +39,10 @@ export var TOOLTIP;
|
|
|
39
39
|
</ul>
|
|
40
40
|
<p>If you currently have more than one datasource selected in the "Add Datasources" step then you cannot select CSV output here, please delete all but one datasource to do that.</p>
|
|
41
41
|
`;
|
|
42
|
+
TOOLTIP.SETUP_FILE_TEMPLATE = `
|
|
43
|
+
<h3>File template</h3>
|
|
44
|
+
<p>The template file to use when generating the report</p>
|
|
45
|
+
`;
|
|
42
46
|
TOOLTIP.DATASOURCES_NAME = `
|
|
43
47
|
<h3>Datasource name</h3>
|
|
44
48
|
<p>Allows you to set a name for the datasource which you'll use to refer to the datasource in the template file.</p>
|
package/package.json
CHANGED