@one-paragon/angular-utilities 2.2.9 → 2.2.10
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/fesm2022/one-paragon-angular-utilities.mjs +9 -5
- package/fesm2022/one-paragon-angular-utilities.mjs.map +1 -1
- package/package.json +1 -1
- package/table-builder/classes/TableBuilderConfig.d.ts +2 -2
- package/table-builder/components/table-container/table-container.component.d.ts +1 -1
- package/table-builder/directives/table-wrapper.directive.d.ts +1 -1
|
@@ -4565,11 +4565,12 @@ class ExportToCsvService {
|
|
|
4565
4565
|
if (!md.additional?.link)
|
|
4566
4566
|
return;
|
|
4567
4567
|
const exportForCol = merge$1({}, this.$exportSettings(), md.additional?.export);
|
|
4568
|
-
return exportForCol.mapLink === 'add link';
|
|
4568
|
+
return exportForCol.mapLink === 'add link' || exportForCol.mapLink === 'add excell';
|
|
4569
4569
|
}).map(md => {
|
|
4570
|
+
const exportForCol = merge$1({}, this.$exportSettings(), md.additional?.export);
|
|
4570
4571
|
const newCol = cloneDeep(md);
|
|
4571
4572
|
newCol.additional.export ??= {};
|
|
4572
|
-
newCol.additional.export.mapLink =
|
|
4573
|
+
newCol.additional.export.mapLink = exportForCol.mapLink === 'add link' ? 'as link' : 'as excell',
|
|
4573
4574
|
newCol.displayName = newCol.additional.export.linkColumnName || ((newCol.displayName || newCol.key) + ' - (Link)');
|
|
4574
4575
|
return newCol;
|
|
4575
4576
|
});
|
|
@@ -4591,13 +4592,16 @@ class ExportToCsvService {
|
|
|
4591
4592
|
const transform = meta.transform;
|
|
4592
4593
|
return isPipe(transform) ? transform.transform(val) : transform(val);
|
|
4593
4594
|
}
|
|
4594
|
-
if (meta.additional?.link && exportForCol.mapLink === 'as link') {
|
|
4595
|
+
if (meta.additional?.link && exportForCol.mapLink === 'as link' || exportForCol.mapLink === 'as excell') {
|
|
4595
4596
|
let mapper = this.state.$getLinkInfo(meta)()?.link;
|
|
4596
4597
|
if (mapper) {
|
|
4597
4598
|
let mapped = mapper(row);
|
|
4598
|
-
if (exportForCol.
|
|
4599
|
+
if (exportForCol.linkDomainPrefix) {
|
|
4599
4600
|
const bet = mapped.startsWith('/') ? '' : '/';
|
|
4600
|
-
mapped = `${exportForCol.
|
|
4601
|
+
mapped = `${exportForCol.linkDomainPrefix}${bet}${mapped}`;
|
|
4602
|
+
}
|
|
4603
|
+
if (exportForCol.mapLink === 'as excell') {
|
|
4604
|
+
mapped = this.cleanValForCsv(`=HYPERLINK("${mapped}", "${mapped}")`);
|
|
4601
4605
|
}
|
|
4602
4606
|
return mapped;
|
|
4603
4607
|
}
|