@one-paragon/angular-utilities 2.2.12 → 2.2.14

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.
@@ -2149,7 +2149,7 @@ class TableStore extends ComponentStore {
2149
2149
  this.$footerCollapsed = this.selectSignal(state => state.persistedTableSettings.collapseFooter);
2150
2150
  this.$headerCollapsed = this.selectSignal(state => state.persistedTableSettings.collapseHeader);
2151
2151
  this.$groupBy = this.selectSignal(state => state.groupBy);
2152
- this.$groupByKeys = this.selectSignal(this.$groupBy, gb => gb.map(gbk => gbk.key), {
2152
+ this.$groupByKeys = this.selectSignal(this.$groupBy, this.$metaDataArray, (gb, mds) => gb.map(gbk => gbk.key).filter(bg => mds.some(md => md.key === bg)), {
2153
2153
  equal: (prev, curr) => prev.length === curr.length && curr.every((k, i) => prev[i] === k)
2154
2154
  });
2155
2155
  this.groupByKeys$ = this.select(state => state.groupBy.map(gbk => gbk.key))
@@ -4643,7 +4643,7 @@ class ExportToCsvService {
4643
4643
  return val;
4644
4644
  }
4645
4645
  cleanValForCsv(val) {
4646
- if (typeof val === 'string' && (val.includes(', ') || val.includes('"') || val.includes('\n'))) {
4646
+ if (typeof val === 'string' && (val.includes(',') || val.includes('"') || val.includes('\n'))) {
4647
4647
  val = val.replaceAll('"', '""');
4648
4648
  val = '"' + val + '"';
4649
4649
  }