@adaptabletools/adaptable 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.esm.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
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",
|
|
@@ -429,12 +429,13 @@ export class AdaptableAgGrid {
|
|
|
429
429
|
this.lifecycleState = 'ready';
|
|
430
430
|
this.forPlugins((plugin) => plugin.onAdaptableReady(this, this.adaptableOptions));
|
|
431
431
|
setTimeout(() => {
|
|
432
|
+
var _a, _b;
|
|
432
433
|
// without the setTimeout, calling autoSizeAllColumns immediately in the onAdaptableReady
|
|
433
434
|
// does not work. (I prefer setTimeout to rAF, as raf is not running when you switch tabs)
|
|
434
435
|
//
|
|
435
436
|
// it also makes it possible to listen to CALCULATED_COLUMN_READY, DASHBOARD_READY, etc.
|
|
436
437
|
// in onAdaptableReady - without this those event listeners are not triggered
|
|
437
|
-
this.api.eventApi.emit('AdaptableReady', {
|
|
438
|
+
(_b = (_a = this.api) === null || _a === void 0 ? void 0 : _a.eventApi) === null || _b === void 0 ? void 0 : _b.emit('AdaptableReady', {
|
|
438
439
|
adaptableApi: this.api,
|
|
439
440
|
agGridApi: this.agGridAdapter.getAgGridApi(),
|
|
440
441
|
});
|
|
@@ -1629,7 +1630,10 @@ export class AdaptableAgGrid {
|
|
|
1629
1630
|
autoSizeLayoutIfNeeded() {
|
|
1630
1631
|
if (this.shouldAutoSizeLayout()) {
|
|
1631
1632
|
requestAnimationFrame(() => {
|
|
1632
|
-
|
|
1633
|
+
var _a;
|
|
1634
|
+
if (this.isAvailable) {
|
|
1635
|
+
(_a = this.agGridAdapter.getAgGridApi()) === null || _a === void 0 ? void 0 : _a.autoSizeAllColumns();
|
|
1636
|
+
}
|
|
1633
1637
|
});
|
|
1634
1638
|
}
|
|
1635
1639
|
}
|
|
@@ -3081,8 +3085,8 @@ export class AdaptableAgGrid {
|
|
|
3081
3085
|
this.previousAgGridLayoutState = '';
|
|
3082
3086
|
const gridContainerElement = this.getAgGridContainerElement();
|
|
3083
3087
|
if (gridContainerElement) {
|
|
3084
|
-
gridContainerElement.removeEventListener('keydown', this.agGridListenerKeydown);
|
|
3085
|
-
gridContainerElement.removeEventListener('mouseenter', this.agGridListenerMouseEnter);
|
|
3088
|
+
gridContainerElement.removeEventListener('keydown', this.agGridListenerKeydown, true);
|
|
3089
|
+
gridContainerElement.removeEventListener('mouseenter', this.agGridListenerMouseEnter, true);
|
|
3086
3090
|
gridContainerElement.removeEventListener('mouseleave', this.agGridListenerMouseLeave);
|
|
3087
3091
|
this.agGridListenerKeydown = null;
|
|
3088
3092
|
this.agGridListenerMouseEnter = null;
|
|
@@ -3507,7 +3511,9 @@ export class AdaptableAgGrid {
|
|
|
3507
3511
|
if (pivoted && ((_d = (_c = this.adaptableOptions) === null || _c === void 0 ? void 0 : _c.layoutOptions) === null || _d === void 0 ? void 0 : _d.autoSizeColumnsInPivotLayout)) {
|
|
3508
3512
|
// when a pivoted layout loads, autosize all cols
|
|
3509
3513
|
requestAnimationFrame(() => {
|
|
3510
|
-
this.
|
|
3514
|
+
if (this.isAvailable) {
|
|
3515
|
+
this.agGridAdapter.getAgGridApi().autoSizeAllColumns();
|
|
3516
|
+
}
|
|
3511
3517
|
});
|
|
3512
3518
|
// //but if it's also the first time the grid is loading
|
|
3513
3519
|
// //it's not timely enough the above call, so we keep trying... I know it's ugly, we need to find a better way
|
|
@@ -3522,7 +3528,9 @@ export class AdaptableAgGrid {
|
|
|
3522
3528
|
if (((_f = (_e = this.adaptableOptions) === null || _e === void 0 ? void 0 : _e.layoutOptions) === null || _f === void 0 ? void 0 : _f.autoSizeColumnsInLayout) &&
|
|
3523
3529
|
colsToAutoSizeArray.length) {
|
|
3524
3530
|
requestAnimationFrame(() => {
|
|
3525
|
-
this.
|
|
3531
|
+
if (this.isAvailable) {
|
|
3532
|
+
this.autoSizeColumns(colsToAutoSizeArray);
|
|
3533
|
+
}
|
|
3526
3534
|
});
|
|
3527
3535
|
}
|
|
3528
3536
|
}
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
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: "19.2.2
|
|
3
|
+
PUBLISH_TIMESTAMP: 1732896393268 || Date.now(),
|
|
4
|
+
VERSION: "19.2.2" || '--current-version--',
|
|
5
5
|
};
|