@lavalogic/scoria 0.3.1 → 0.3.2

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.
@@ -1749,7 +1749,9 @@ export class TableContext {
1749
1749
  targetRow.push(key !== undefined && this.selectedItems.has(key) ? 'true' : 'false');
1750
1750
  continue;
1751
1751
  }
1752
- const x = 'accessorFn' in col && (await col.accessorFn?.(item, this.sortedData.indexOf(item)));
1752
+ const x = (col instanceof SelectDef &&
1753
+ (await col.getDisplayValue(item, this.sortedData.lastIndexOf(item)))) ||
1754
+ ('accessorFn' in col && (await col.accessorFn?.(item, this.sortedData.indexOf(item))));
1753
1755
  if (x && typeof x === 'string') {
1754
1756
  targetRow.push(x);
1755
1757
  continue;
@@ -1817,7 +1819,9 @@ export class TableContext {
1817
1819
  targetRow.push(key !== undefined && this.selectedItems.has(key) ? 'true' : 'false');
1818
1820
  continue;
1819
1821
  }
1820
- const x = 'accessorFn' in col && (await col.accessorFn?.(item, this.sortedData.indexOf(item)));
1822
+ const x = (col instanceof SelectDef &&
1823
+ (await col.getDisplayValue(item, this.sortedData.lastIndexOf(item)))) ||
1824
+ ('accessorFn' in col && (await col.accessorFn?.(item, this.sortedData.indexOf(item))));
1821
1825
  if (x && typeof x === 'string') {
1822
1826
  targetRow.push(x);
1823
1827
  continue;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lavalogic/scoria",
3
3
  "description": "Svelte components used for the FloWMS Web Frontend",
4
- "version": "0.3.1",
4
+ "version": "0.3.2",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
7
7
  },