@adaptabletools/adaptable 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",
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",
@@ -85,7 +85,14 @@ export const SystemPredicateDefs = [
85
85
  if (column.columnId === AG_GRID_GROUPED_COLUMN) {
86
86
  const { node, treeSelectionState } = context;
87
87
  const groupValues = getGroupValuesForNode({ node, value });
88
- if (!treeSelectionState) {
88
+ // for non-trees, this line is reached for every leaf-row
89
+ // so for 2 levels-deep, groupValues is an array of ['level1-value','level2-value','leaf-value']
90
+ // but for trees, the groupValues is first an array with only
91
+ // one value, the current branch root - and if we go via the treeSelectionState
92
+ // that root might have a leaf selected, but if we return true here
93
+ // ag grid would include all rows of that branch - which is not what we want
94
+ // so we want to enter the `if` block and use the startsWith check
95
+ if (column.isTreeColumn || !treeSelectionState) {
89
96
  // in case we don't have treeSelectionState
90
97
  // this is another possible implementation
91
98
  // though it won't be as performant as using the treeSelectionState
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  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" || '',
3
- PUBLISH_TIMESTAMP: 1767878374936 || Date.now(),
4
- VERSION: "21.2.0" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1768226502639 || Date.now(),
4
+ VERSION: "21.2.1" || '--current-version--',
5
5
  };