@adaptabletools/adaptable 20.1.8 → 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 +1 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +4 -0
- package/src/AdaptableState/Selection/GridCell.d.ts +1 -0
- package/src/View/Components/NewScopeComponent.js +4 -4
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +9 -7
- package/src/agGrid/AdaptableAgGrid.js +11 -0
- package/src/env.js +2 -2
- package/tsconfig.esm.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "20.1.
|
|
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
|
*/
|
|
@@ -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
|
-
|
|
27
|
+
date: {
|
|
28
28
|
label: 'Date',
|
|
29
29
|
value: 'date',
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
number: {
|
|
32
32
|
label: 'Number',
|
|
33
33
|
value: 'number',
|
|
34
34
|
},
|
|
35
|
-
|
|
35
|
+
text: {
|
|
36
36
|
label: 'Text',
|
|
37
37
|
value: 'text',
|
|
38
38
|
},
|
|
39
|
-
|
|
39
|
+
boolean: {
|
|
40
40
|
label: 'Boolean',
|
|
41
41
|
value: 'boolean',
|
|
42
42
|
},
|
|
@@ -195,14 +195,16 @@ export const ColumnsSection = (props) => {
|
|
|
195
195
|
const adaptable = useAdaptable();
|
|
196
196
|
const { data: layout } = useOnePageAdaptableWizardContext();
|
|
197
197
|
const [searchInputValue, setSearchInputValue] = React.useState('');
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
198
|
+
const allColumns = adaptable.api.columnApi
|
|
199
|
+
.getUIAvailableColumns()
|
|
200
|
+
.filter((col) => {
|
|
201
|
+
// since the "Row Groups" section of the editor can determine a change
|
|
202
|
+
// which is not reflected into AG Grid until we hit finish
|
|
203
|
+
// so we only rely on non-generated columns, which are the same
|
|
204
204
|
return !col.isGeneratedRowGroupColumn;
|
|
205
|
-
})
|
|
205
|
+
})
|
|
206
|
+
// if the current Layout is a PivotLayout, then we also filter out current Pivot Result Columns
|
|
207
|
+
.filter((col) => !col.isGeneratedPivotResultColumn);
|
|
206
208
|
// however, changes in RowGroupedColumns done in the previous step
|
|
207
209
|
// are reflected into the layout, so we use the latest layout.RowGroupedColumns
|
|
208
210
|
// to create new columns
|
|
@@ -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:
|
|
4
|
-
VERSION: "20.1.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1749491077709 || Date.now(),
|
|
4
|
+
VERSION: "20.1.10" || '--current-version--',
|
|
5
5
|
};
|