@vuu-ui/vuu-data-local 4.0.0-alpha.2 → 4.0.0-alpha.4

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.0.0-alpha.2",
2
+ "version": "4.0.0-alpha.4",
3
3
  "main": "./src/index.js",
4
4
  "author": "heswell",
5
5
  "type": "module",
@@ -11,14 +11,14 @@
11
11
  "type-defs": "node ../../scripts/build-type-defs.mjs"
12
12
  },
13
13
  "devDependencies": {
14
- "@vuu-ui/vuu-data-types": "4.0.0-alpha.2",
15
- "@vuu-ui/vuu-table-types": "4.0.0-alpha.2",
16
- "@vuu-ui/vuu-filter-types": "4.0.0-alpha.2",
17
- "@vuu-ui/vuu-protocol-types": "4.0.0-alpha.2"
14
+ "@vuu-ui/vuu-data-types": "4.0.0-alpha.4",
15
+ "@vuu-ui/vuu-table-types": "4.0.0-alpha.4",
16
+ "@vuu-ui/vuu-filter-types": "4.0.0-alpha.4",
17
+ "@vuu-ui/vuu-protocol-types": "4.0.0-alpha.4"
18
18
  },
19
19
  "dependencies": {
20
- "@vuu-ui/vuu-filter-parser": "4.0.0-alpha.2",
21
- "@vuu-ui/vuu-utils": "4.0.0-alpha.2"
20
+ "@vuu-ui/vuu-filter-parser": "4.0.0-alpha.4",
21
+ "@vuu-ui/vuu-utils": "4.0.0-alpha.4"
22
22
  },
23
23
  "sideEffects": false,
24
24
  "files": [
@@ -448,12 +448,12 @@ class ArrayDataSource extends EventEmitter {
448
448
  }
449
449
  indexOfRowWithKey = (key)=>this.#data.findIndex((row)=>row[KEY] === key);
450
450
  update = (row, columnName)=>{
451
- const keyValue = row[this.key];
451
+ const keyValue = String(row[this.key]);
452
452
  const dataColIndex = this.dataMap?.[columnName];
453
453
  return this.updateDataItem(keyValue, columnName, row[dataColIndex]);
454
454
  };
455
455
  updateRow = (row, _columnName)=>{
456
- const keyValue = row[this.key];
456
+ const keyValue = String(row[this.key]);
457
457
  const dataIndex = this.#data.findIndex((row)=>row[KEY] === keyValue);
458
458
  if (-1 !== dataIndex) {
459
459
  const dataSourceRow = toDataSourceRow(this.key)(row, dataIndex);