@trudb/tru-common-lib 0.2.256 → 0.2.258

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.
@@ -1837,6 +1837,9 @@ class TruEntityAccessor {
1837
1837
  }
1838
1838
  }
1839
1839
  };
1840
+ var argsText = this.textManager.formatAsUrlParameters(args);
1841
+ if (queryText)
1842
+ argsText += '&' + queryText;
1840
1843
  xhr.open('POST', this._baseUrl + '/api/export/execute');
1841
1844
  xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8');
1842
1845
  xhr.responseType = 'arraybuffer';
@@ -2222,7 +2225,6 @@ class TruDataContext {
2222
2225
  }
2223
2226
  resolve();
2224
2227
  }).catch((e) => {
2225
- this.uiNotification.error(e.message);
2226
2228
  this.appEnvironment.saveComplete({ successful: false });
2227
2229
  reject(e);
2228
2230
  }).finally(() => {
@@ -7909,12 +7911,15 @@ class TruDataGrid {
7909
7911
  let isArrowLeft = params.event.code === 'ArrowLeft';
7910
7912
  let isArrowRight = params.event.code === 'ArrowRight';
7911
7913
  let isSpace = params.event.code === 'Space';
7914
+ let isDelete = params.event.code === 'Delete';
7912
7915
  let isShiftKey = params.event.shiftKey;
7913
7916
  let isAltKey = params.event.altKey;
7914
7917
  let focusedCell = params.api.getFocusedCell();
7915
7918
  let hasChoices = params.data[params.column.getColId()] && params.data[params.column.getColId()].choices ? true : false;
7916
7919
  if (isSpace)
7917
7920
  return true;
7921
+ if (isDelete)
7922
+ return true;
7918
7923
  if (params.column.isPinned()) {
7919
7924
  if (isTabKey && !isShiftKey)
7920
7925
  params.api.tabToNextCell();
@@ -8111,6 +8116,15 @@ class TruDataGrid {
8111
8116
  key: event.code
8112
8117
  });
8113
8118
  }
8119
+ else if (event.code === 'Delete' && !editingCells.length) {
8120
+ event.preventDefault();
8121
+ event.stopPropagation();
8122
+ this.api?.startEditingCell({
8123
+ rowIndex: params.rowIndex,
8124
+ colKey: params.column.getColId(),
8125
+ key: event.code
8126
+ });
8127
+ }
8114
8128
  else if (params.column.isPinned() && event.ctrlKey && event.code === 'KeyC') {
8115
8129
  let selectedRows = this.api.getSelectedRows();
8116
8130
  let columnDefs = this.api.getColumnDefs();