@adaptabletools/adaptable-cjs 21.2.0 → 21.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-cjs",
3
- "version": "21.2.0",
3
+ "version": "21.2.1",
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",
@@ -89,7 +89,14 @@ exports.SystemPredicateDefs = [
89
89
  if (column.columnId === GeneralConstants_1.AG_GRID_GROUPED_COLUMN) {
90
90
  const { node, treeSelectionState } = context;
91
91
  const groupValues = getGroupValuesForNode({ node, value });
92
- if (!treeSelectionState) {
92
+ // for non-trees, this line is reached for every leaf-row
93
+ // so for 2 levels-deep, groupValues is an array of ['level1-value','level2-value','leaf-value']
94
+ // but for trees, the groupValues is first an array with only
95
+ // one value, the current branch root - and if we go via the treeSelectionState
96
+ // that root might have a leaf selected, but if we return true here
97
+ // ag grid would include all rows of that branch - which is not what we want
98
+ // so we want to enter the `if` block and use the startsWith check
99
+ if (column.isTreeColumn || !treeSelectionState) {
93
100
  // in case we don't have treeSelectionState
94
101
  // this is another possible implementation
95
102
  // though it won't be as performant as using the treeSelectionState
package/src/env.js CHANGED
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  NEXT_PUBLIC_INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
5
- PUBLISH_TIMESTAMP: 1767878413718 || Date.now(),
6
- VERSION: "21.2.0" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1768226539470 || Date.now(),
6
+ VERSION: "21.2.1" || '--current-version--',
7
7
  };