@adaptabletools/adaptable 17.0.1 → 17.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "17.0.1",
3
+ "version": "17.0.2",
4
4
  "description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [
6
6
  "web-components",
@@ -1,2 +1,2 @@
1
- declare const _default: 1705922479309;
1
+ declare const _default: 1705992544629;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1705922479309;
3
+ exports.default = 1705992544629;
@@ -346,12 +346,30 @@ class agGridMenuHelper {
346
346
  let isSingleSelectedColumn = false;
347
347
  let isSelectedCell = false;
348
348
  let isSelectedRow = false;
349
- let clickedCell = undefined;
350
- if (adaptableColumn) {
351
- clickedCell = this.adaptable.getGridCellFromRowNode(params.node, adaptableColumn.columnId);
349
+ // row group columns dont provide an AdapTable Column so return bare minimum
350
+ if (!adaptableColumn) {
351
+ return {
352
+ isSelectedCell: false,
353
+ isSelectedRow: false,
354
+ gridCell: undefined,
355
+ adaptableColumn: undefined,
356
+ agGridColumn: params.column,
357
+ rowNode: params.node,
358
+ isGroupedNode: params.node ? params.node.group : false,
359
+ isSingleSelectedColumn: false,
360
+ isSingleSelectedCell: false,
361
+ primaryKeyValue: undefined,
362
+ adaptableApi: this.adaptable.api,
363
+ userName: this.adaptable.adaptableOptions.userName,
364
+ adaptableId: this.adaptable.adaptableOptions.adaptableId,
365
+ selectedCellInfo: undefined,
366
+ selectedRowInfo: undefined,
367
+ isRowGroupColumn: this.adaptable.api.columnApi.isAutoRowGroupColumn(params.column.getColId()),
368
+ };
352
369
  }
353
- let selectedCellInfo = this.adaptable.api.gridApi.getSelectedCellInfo();
354
- if (clickedCell && selectedCellInfo) {
370
+ const clickedCell = this.adaptable.getGridCellFromRowNode(params.node, adaptableColumn.columnId);
371
+ const selectedCellInfo = this.adaptable.api.gridApi.getSelectedCellInfo();
372
+ if (selectedCellInfo) {
355
373
  let matchedCell = selectedCellInfo.gridCells.find((gc) => gc != null &&
356
374
  gc.column == clickedCell.column &&
357
375
  gc.primaryKeyValue == clickedCell.primaryKeyValue);
@@ -360,9 +378,9 @@ class agGridMenuHelper {
360
378
  isSingleSelectedColumn = ArrayExtensions_1.ArrayExtensions.CorrectLength(selectedCellInfo.columns, 1);
361
379
  }
362
380
  }
363
- let selectedRowInfo = this.adaptable.api.gridApi.getSelectedRowInfo();
381
+ const selectedRowInfo = this.adaptable.api.gridApi.getSelectedRowInfo();
364
382
  if (selectedRowInfo) {
365
- let matchedPKValue = selectedRowInfo.gridRows.find((gr) => gr != null && gr.primaryKeyValue == clickedCell.primaryKeyValue);
383
+ const matchedPKValue = selectedRowInfo.gridRows.find((gr) => gr != null && gr.primaryKeyValue == clickedCell.primaryKeyValue);
366
384
  isSelectedRow = matchedPKValue != null;
367
385
  }
368
386
  return {
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "17.0.1";
1
+ declare const _default: "17.0.2";
2
2
  export default _default;
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '17.0.1'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '17.0.2'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version