Skip to content

Commit

Permalink
#627 bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
arawinters committed Apr 30, 2024
1 parent 5230fbb commit 231c6c2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 11 deletions.
20 changes: 19 additions & 1 deletion src/lib/scss/stats-sample-data-table.scss
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
@import '@angular/cdk/overlay-prebuilt.css';
@import '@angular/cdk/overlay-prebuilt.css';

sz-cross-source-results {
/* specific cell styles */
span.data-item {
white-space: nowrap;
display: block;
margin-right: 1px;
&:before {
content: "\2022 ";
margin-right: 4px;
}

&:only-of-type:before {
content: "";
margin-right: 0;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,22 @@ export class SzCrossSourceResultsDataTable extends SzDataTable implements OnInit
}

override get cellFormatters() {
return {
'addressData': (addresses: string[]) => {
let retVal = '';
if(addresses && addresses.length > 0) {
let retStr = addresses.map((value: string) => {
return `${value}`;
});
retVal = '<div class="sz-stat-table-cell address">'+ retStr.join('</div><div class="sz-stat-table-cell address">')+'</div>'
}
return retVal;
let dataFieldRenderer = (data: string[]) => {
let retVal = '';
if(data && data.length > 0) {
retVal = data.map((strVal: string) => {
return `<span class="data-item">${strVal}</span>`;
}).join('');
}
return retVal;
}
return {
'nameData': dataFieldRenderer,
'identifierData': dataFieldRenderer,
'addressData': dataFieldRenderer,
'phoneData': dataFieldRenderer,
'relationshipData': dataFieldRenderer,
'otherData': dataFieldRenderer,
}
}

Expand Down

0 comments on commit 231c6c2

Please sign in to comment.