@adaptabletools/adaptable-cjs 21.1.0-canary.1 → 21.1.0-canary.3
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.1.0-canary.
|
|
3
|
+
"version": "21.1.0-canary.3",
|
|
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",
|
|
@@ -99,6 +99,22 @@ class AgGridAdapter {
|
|
|
99
99
|
colDef.hide = !allDisplayedColIds.includes(colDef.colId);
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
+
// for pre-existing ColDefs, keep the filter property from the previous one
|
|
103
|
+
if (self.adaptableApi.optionsApi.getFilterOptions().useAdaptableFiltering) {
|
|
104
|
+
const hasActiveFilters = self.adaptableApi.filterApi.columnFilterApi.getActiveColumnFilters().length;
|
|
105
|
+
// theoretically we should always update the filter property
|
|
106
|
+
// practically, only do it if there are active filters to avoid unnecessary processing
|
|
107
|
+
if (hasActiveFilters) {
|
|
108
|
+
self.patchColDefs(colDefsWithSpecialColumns, (colDef) => {
|
|
109
|
+
if (colDef.filter !== false) {
|
|
110
|
+
const originalColDef = self.getAgGridApi().getColumnDef(colDef.colId);
|
|
111
|
+
if (originalColDef) {
|
|
112
|
+
colDef.filter = originalColDef.filter;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
102
118
|
options['columnDefs'] = colDefsWithSpecialColumns;
|
|
103
119
|
self.logger.info(`Added SpecialColumns on GridOptions.columnDefs update (source=${source})`);
|
|
104
120
|
}
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const InfiniteTable_1 = require("../../InfiniteTable");
|
|
7
7
|
const rebass_1 = require("rebass");
|
|
8
|
-
const join_1 = tslib_1.__importDefault(require("
|
|
8
|
+
const join_1 = tslib_1.__importDefault(require("../../utils/join"));
|
|
9
9
|
const columns = {
|
|
10
10
|
label: {
|
|
11
11
|
field: 'label',
|
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: "21.1.0-canary.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1763413218524 || Date.now(),
|
|
6
|
+
VERSION: "21.1.0-canary.3" || '--current-version--',
|
|
7
7
|
};
|