@adaptabletools/adaptable-cjs 20.2.0-canary.0 → 20.2.0-canary.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 +1 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +4 -0
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +3 -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.cjs.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-cjs",
|
|
3
|
-
"version": "20.2.0-canary.
|
|
3
|
+
"version": "20.2.0-canary.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",
|
|
@@ -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
|
*/
|
|
@@ -9,6 +9,9 @@ export interface QuickSearchOptions<TData = any> {
|
|
|
9
9
|
* @param quickSearchContext Contains quick search text and current Grid Cell
|
|
10
10
|
*/
|
|
11
11
|
isCellSearchable?: (quickSearchContext: QuickSearchContext) => boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Allows a different value to be used for a cell when searching (instead of its raw value)
|
|
14
|
+
*/
|
|
12
15
|
getCellSearchText?: (quickSearchContext: QuickSearchContext) => string | null;
|
|
13
16
|
/**
|
|
14
17
|
* Value to use as placeholder in QuickSearch controls (e.g. in Dashboard)
|
|
@@ -29,19 +29,19 @@ const isScopeValid = ({ Scope }) => {
|
|
|
29
29
|
};
|
|
30
30
|
exports.isScopeValid = isScopeValid;
|
|
31
31
|
const DATA_TYPES_MAP = {
|
|
32
|
-
|
|
32
|
+
date: {
|
|
33
33
|
label: 'Date',
|
|
34
34
|
value: 'date',
|
|
35
35
|
},
|
|
36
|
-
|
|
36
|
+
number: {
|
|
37
37
|
label: 'Number',
|
|
38
38
|
value: 'number',
|
|
39
39
|
},
|
|
40
|
-
|
|
40
|
+
text: {
|
|
41
41
|
label: 'Text',
|
|
42
42
|
value: 'text',
|
|
43
43
|
},
|
|
44
|
-
|
|
44
|
+
boolean: {
|
|
45
45
|
label: 'Boolean',
|
|
46
46
|
value: 'boolean',
|
|
47
47
|
},
|
|
@@ -200,14 +200,16 @@ const ColumnsSection = (props) => {
|
|
|
200
200
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
201
201
|
const { data: layout } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
202
202
|
const [searchInputValue, setSearchInputValue] = React.useState('');
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
203
|
+
const allColumns = adaptable.api.columnApi
|
|
204
|
+
.getUIAvailableColumns()
|
|
205
|
+
.filter((col) => {
|
|
206
|
+
// since the "Row Groups" section of the editor can determine a change
|
|
207
|
+
// which is not reflected into AG Grid until we hit finish
|
|
208
|
+
// so we only rely on non-generated columns, which are the same
|
|
209
209
|
return !col.isGeneratedRowGroupColumn;
|
|
210
|
-
})
|
|
210
|
+
})
|
|
211
|
+
// if the current Layout is a PivotLayout, then we also filter out current Pivot Result Columns
|
|
212
|
+
.filter((col) => !col.isGeneratedPivotResultColumn);
|
|
211
213
|
// however, changes in RowGroupedColumns done in the previous step
|
|
212
214
|
// are reflected into the layout, so we use the latest layout.RowGroupedColumns
|
|
213
215
|
// to create new columns
|
|
@@ -2252,6 +2252,9 @@ You need to define at least one Layout!`);
|
|
|
2252
2252
|
get visible() {
|
|
2253
2253
|
return gridCell.visible;
|
|
2254
2254
|
},
|
|
2255
|
+
get visibleCount() {
|
|
2256
|
+
return gridCell.visibleCount;
|
|
2257
|
+
},
|
|
2255
2258
|
};
|
|
2256
2259
|
});
|
|
2257
2260
|
return result;
|
|
@@ -2266,6 +2269,9 @@ You need to define at least one Layout!`);
|
|
|
2266
2269
|
get visible() {
|
|
2267
2270
|
return gridCell.visible;
|
|
2268
2271
|
},
|
|
2272
|
+
get visibleCount() {
|
|
2273
|
+
return gridCell.visibleCount;
|
|
2274
|
+
},
|
|
2269
2275
|
};
|
|
2270
2276
|
});
|
|
2271
2277
|
return result;
|
|
@@ -2434,6 +2440,11 @@ You need to define at least one Layout!`);
|
|
|
2434
2440
|
return (rowNodesWithSameCellValue.findIndex((pk) => self.isRowNodeAvailableAfterFiltering(pk) === true) !== -1);
|
|
2435
2441
|
},
|
|
2436
2442
|
});
|
|
2443
|
+
Object.defineProperty(cellWithCount, 'visibleCount', {
|
|
2444
|
+
get: () => {
|
|
2445
|
+
return rowNodesWithSameCellValue.filter((pk) => self.isRowNodeAvailableAfterFiltering(pk) === true).length;
|
|
2446
|
+
},
|
|
2447
|
+
});
|
|
2437
2448
|
result.push(cellWithCount);
|
|
2438
2449
|
});
|
|
2439
2450
|
return result;
|
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:
|
|
6
|
-
VERSION: "20.2.0-canary.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1749490708802 || Date.now(),
|
|
6
|
+
VERSION: "20.2.0-canary.1" || '--current-version--',
|
|
7
7
|
};
|