@adaptabletools/adaptable 20.1.9 → 20.1.10

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": "20.1.9",
3
+ "version": "20.1.10",
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",
@@ -186,6 +186,10 @@ export interface InFilterValueInfo {
186
186
  * How many times the item appears in the column
187
187
  */
188
188
  count?: number;
189
+ /**
190
+ * How many times the item appears in the column in filtered rows
191
+ */
192
+ visibleCount?: number;
189
193
  /**
190
194
  * Whether the item is currently visible in the Grid (i.e. in filtered rows)
191
195
  */
@@ -56,6 +56,7 @@ export interface GridCell<TData = any> {
56
56
  }
57
57
  export interface GridCellWithCount extends GridCell {
58
58
  count: number;
59
+ visibleCount: number;
59
60
  }
60
61
  /**
61
62
  * Lightweight object used for identifying a Cell to be updated
@@ -24,19 +24,19 @@ export const isScopeValid = ({ Scope }) => {
24
24
  return result.length ? result.join(', ') : true;
25
25
  };
26
26
  const DATA_TYPES_MAP = {
27
- Date: {
27
+ date: {
28
28
  label: 'Date',
29
29
  value: 'date',
30
30
  },
31
- Number: {
31
+ number: {
32
32
  label: 'Number',
33
33
  value: 'number',
34
34
  },
35
- String: {
35
+ text: {
36
36
  label: 'Text',
37
37
  value: 'text',
38
38
  },
39
- Boolean: {
39
+ boolean: {
40
40
  label: 'Boolean',
41
41
  value: 'boolean',
42
42
  },
@@ -2190,6 +2190,9 @@ You need to define at least one Layout!`);
2190
2190
  get visible() {
2191
2191
  return gridCell.visible;
2192
2192
  },
2193
+ get visibleCount() {
2194
+ return gridCell.visibleCount;
2195
+ },
2193
2196
  };
2194
2197
  });
2195
2198
  return result;
@@ -2204,6 +2207,9 @@ You need to define at least one Layout!`);
2204
2207
  get visible() {
2205
2208
  return gridCell.visible;
2206
2209
  },
2210
+ get visibleCount() {
2211
+ return gridCell.visibleCount;
2212
+ },
2207
2213
  };
2208
2214
  });
2209
2215
  return result;
@@ -2352,6 +2358,11 @@ You need to define at least one Layout!`);
2352
2358
  return (rowNodesWithSameCellValue.findIndex((pk) => self.isRowNodeAvailableAfterFiltering(pk) === true) !== -1);
2353
2359
  },
2354
2360
  });
2361
+ Object.defineProperty(cellWithCount, 'visibleCount', {
2362
+ get: () => {
2363
+ return rowNodesWithSameCellValue.filter((pk) => self.isRowNodeAvailableAfterFiltering(pk) === true).length;
2364
+ },
2365
+ });
2355
2366
  result.push(cellWithCount);
2356
2367
  });
2357
2368
  return result;
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: 1749212715232 || Date.now(),
4
- VERSION: "20.1.9" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1749491077709 || Date.now(),
4
+ VERSION: "20.1.10" || '--current-version--',
5
5
  };