@deephaven/iris-grid 1.8.0 → 1.8.1-beta.1

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.
@@ -1192,6 +1192,9 @@ class IrisGridTableModelTemplate extends IrisGridModel {
1192
1192
  isKeyColumn(x) {
1193
1193
  return this.keyColumnSet.has(this.columns[x].name);
1194
1194
  }
1195
+ isValueColumn(x) {
1196
+ return this.valueColumnSet.has(this.columns[x].name);
1197
+ }
1195
1198
  isRowMovable() {
1196
1199
  return false;
1197
1200
  }
@@ -1212,7 +1215,13 @@ class IrisGridTableModelTemplate extends IrisGridModel {
1212
1215
  // Check if any of the columns in grid range are key columns
1213
1216
  var bound = (_range$endColumn = range.endColumn) !== null && _range$endColumn !== void 0 ? _range$endColumn : this.table.size;
1214
1217
  for (var column = range.startColumn; column <= bound; column += 1) {
1215
- if (this.isKeyColumn(column)) {
1218
+ var isKey = this.isKeyColumn(column);
1219
+ var isValue = this.isValueColumn(column);
1220
+ if (!isKey && !isValue) {
1221
+ // If any column is not a key or value column, range is not editable
1222
+ return false;
1223
+ }
1224
+ if (isKey) {
1216
1225
  isKeyColumnInRange = true;
1217
1226
  break;
1218
1227
  }
@@ -1271,7 +1280,7 @@ class IrisGridTableModelTemplate extends IrisGridModel {
1271
1280
  var _this6 = this;
1272
1281
  return _asyncToGenerator(function* () {
1273
1282
  if (!_this6.isEditableRanges(ranges)) {
1274
- throw new Error("Uneditable ranges ".concat(ranges));
1283
+ throw new Error("Edits contain uneditable ranges");
1275
1284
  }
1276
1285
  try {
1277
1286
  // Cache the value in our pending string cache so that it stays displayed until our edit has been completed
@@ -1380,7 +1389,7 @@ class IrisGridTableModelTemplate extends IrisGridModel {
1380
1389
  var _edit$column, _edit$row;
1381
1390
  return _this7.isEditableRange(GridRange.makeCell((_edit$column = edit.column) !== null && _edit$column !== void 0 ? _edit$column : edit.x, (_edit$row = edit.row) !== null && _edit$row !== void 0 ? _edit$row : edit.y));
1382
1391
  })) {
1383
- throw new Error("Uneditable ranges ".concat(edits));
1392
+ throw new Error("Edits contain uneditable ranges");
1384
1393
  }
1385
1394
  try {
1386
1395
  var newDataMap = new Map(_this7.pendingNewDataMap);