@adaptabletools/adaptable-cjs 19.2.2-canary.1 → 19.2.2
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/agGrid/AdaptableAgGrid.js +14 -6
- 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": "19.2.2
|
|
3
|
+
"version": "19.2.2",
|
|
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",
|
|
@@ -433,12 +433,13 @@ class AdaptableAgGrid {
|
|
|
433
433
|
this.lifecycleState = 'ready';
|
|
434
434
|
this.forPlugins((plugin) => plugin.onAdaptableReady(this, this.adaptableOptions));
|
|
435
435
|
setTimeout(() => {
|
|
436
|
+
var _a, _b;
|
|
436
437
|
// without the setTimeout, calling autoSizeAllColumns immediately in the onAdaptableReady
|
|
437
438
|
// does not work. (I prefer setTimeout to rAF, as raf is not running when you switch tabs)
|
|
438
439
|
//
|
|
439
440
|
// it also makes it possible to listen to CALCULATED_COLUMN_READY, DASHBOARD_READY, etc.
|
|
440
441
|
// in onAdaptableReady - without this those event listeners are not triggered
|
|
441
|
-
this.api.eventApi.emit('AdaptableReady', {
|
|
442
|
+
(_b = (_a = this.api) === null || _a === void 0 ? void 0 : _a.eventApi) === null || _b === void 0 ? void 0 : _b.emit('AdaptableReady', {
|
|
442
443
|
adaptableApi: this.api,
|
|
443
444
|
agGridApi: this.agGridAdapter.getAgGridApi(),
|
|
444
445
|
});
|
|
@@ -1633,7 +1634,10 @@ class AdaptableAgGrid {
|
|
|
1633
1634
|
autoSizeLayoutIfNeeded() {
|
|
1634
1635
|
if (this.shouldAutoSizeLayout()) {
|
|
1635
1636
|
requestAnimationFrame(() => {
|
|
1636
|
-
|
|
1637
|
+
var _a;
|
|
1638
|
+
if (this.isAvailable) {
|
|
1639
|
+
(_a = this.agGridAdapter.getAgGridApi()) === null || _a === void 0 ? void 0 : _a.autoSizeAllColumns();
|
|
1640
|
+
}
|
|
1637
1641
|
});
|
|
1638
1642
|
}
|
|
1639
1643
|
}
|
|
@@ -3085,8 +3089,8 @@ class AdaptableAgGrid {
|
|
|
3085
3089
|
this.previousAgGridLayoutState = '';
|
|
3086
3090
|
const gridContainerElement = this.getAgGridContainerElement();
|
|
3087
3091
|
if (gridContainerElement) {
|
|
3088
|
-
gridContainerElement.removeEventListener('keydown', this.agGridListenerKeydown);
|
|
3089
|
-
gridContainerElement.removeEventListener('mouseenter', this.agGridListenerMouseEnter);
|
|
3092
|
+
gridContainerElement.removeEventListener('keydown', this.agGridListenerKeydown, true);
|
|
3093
|
+
gridContainerElement.removeEventListener('mouseenter', this.agGridListenerMouseEnter, true);
|
|
3090
3094
|
gridContainerElement.removeEventListener('mouseleave', this.agGridListenerMouseLeave);
|
|
3091
3095
|
this.agGridListenerKeydown = null;
|
|
3092
3096
|
this.agGridListenerMouseEnter = null;
|
|
@@ -3511,7 +3515,9 @@ class AdaptableAgGrid {
|
|
|
3511
3515
|
if (pivoted && ((_d = (_c = this.adaptableOptions) === null || _c === void 0 ? void 0 : _c.layoutOptions) === null || _d === void 0 ? void 0 : _d.autoSizeColumnsInPivotLayout)) {
|
|
3512
3516
|
// when a pivoted layout loads, autosize all cols
|
|
3513
3517
|
requestAnimationFrame(() => {
|
|
3514
|
-
this.
|
|
3518
|
+
if (this.isAvailable) {
|
|
3519
|
+
this.agGridAdapter.getAgGridApi().autoSizeAllColumns();
|
|
3520
|
+
}
|
|
3515
3521
|
});
|
|
3516
3522
|
// //but if it's also the first time the grid is loading
|
|
3517
3523
|
// //it's not timely enough the above call, so we keep trying... I know it's ugly, we need to find a better way
|
|
@@ -3526,7 +3532,9 @@ class AdaptableAgGrid {
|
|
|
3526
3532
|
if (((_f = (_e = this.adaptableOptions) === null || _e === void 0 ? void 0 : _e.layoutOptions) === null || _f === void 0 ? void 0 : _f.autoSizeColumnsInLayout) &&
|
|
3527
3533
|
colsToAutoSizeArray.length) {
|
|
3528
3534
|
requestAnimationFrame(() => {
|
|
3529
|
-
this.
|
|
3535
|
+
if (this.isAvailable) {
|
|
3536
|
+
this.autoSizeColumns(colsToAutoSizeArray);
|
|
3537
|
+
}
|
|
3530
3538
|
});
|
|
3531
3539
|
}
|
|
3532
3540
|
}
|
package/src/env.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
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: "19.2.2
|
|
5
|
+
PUBLISH_TIMESTAMP: 1732896423270 || Date.now(),
|
|
6
|
+
VERSION: "19.2.2" || '--current-version--',
|
|
7
7
|
};
|