@adaptabletools/adaptable-cjs 18.0.0-canary.24 → 18.0.0-canary.25
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": "18.0.0-canary.
|
|
3
|
+
"version": "18.0.0-canary.25",
|
|
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",
|
|
@@ -33,6 +33,7 @@ const LayoutWizard = (props) => {
|
|
|
33
33
|
preparedLayout = (0, Helper_1.cloneObject)(initialLayout);
|
|
34
34
|
if (((_a = props === null || props === void 0 ? void 0 : props.popupParams) === null || _a === void 0 ? void 0 : _a.action) === 'Clone') {
|
|
35
35
|
preparedLayout.Name = '';
|
|
36
|
+
delete preparedLayout.Uuid;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
else {
|
|
@@ -372,6 +372,16 @@ class AdaptableAgGrid {
|
|
|
372
372
|
this.temporaryAdaptableStateUpdates();
|
|
373
373
|
this.redrawBody();
|
|
374
374
|
this.refreshHeader();
|
|
375
|
+
const currentLayout = this.api.layoutApi.getCurrentLayout();
|
|
376
|
+
if (currentLayout.EnablePivot) {
|
|
377
|
+
// this is very very strange!
|
|
378
|
+
// for some projects, if the initial layout is pivot, the columnDefs of the pivot resutl columns are NOT derived correctly from the main colDefs
|
|
379
|
+
// doing the following line fixes the issue because it foces the pivot columns to be created again
|
|
380
|
+
// this proj works without the hack: /tests/pages/format-column/initial-pivot-layout.page.tsx
|
|
381
|
+
// but this proj needs the hack: /tests/pages/format-column/initial-pivot-layout-docs.page.tsx
|
|
382
|
+
this.agGridAdapter.setGridOption('pivotMode', false);
|
|
383
|
+
this.agGridAdapter.setGridOption('pivotMode', true);
|
|
384
|
+
}
|
|
375
385
|
// create the module menu (for use in the dashboard and the toolpanel)
|
|
376
386
|
// TODO see #create-create-module-menu - make sure it's the same here and there
|
|
377
387
|
this.ModuleService.createModuleMenus();
|
|
@@ -989,7 +999,9 @@ class AdaptableAgGrid {
|
|
|
989
999
|
// framework wrapper may pass the rowData as a prop
|
|
990
1000
|
const rowData = agGridApi.getGridOption('rowData');
|
|
991
1001
|
this.initWithLazyData = rowData == undefined || rowData.length === 0;
|
|
992
|
-
this.
|
|
1002
|
+
if (this.initWithLazyData) {
|
|
1003
|
+
this.logger.info('initWithLazyData = TRUE');
|
|
1004
|
+
}
|
|
993
1005
|
if (!this.getAgGridContainerElement()) {
|
|
994
1006
|
// initialize the agGridContainerElement from the AgGrid instance
|
|
995
1007
|
// @ts-ignore
|
|
@@ -1375,17 +1387,17 @@ class AdaptableAgGrid {
|
|
|
1375
1387
|
// ADD filter event
|
|
1376
1388
|
this.agGridAdapter.getAgGridApi().addGlobalListener((this.listenerGlobalColumnEventsThatTriggerAutoLayoutSave = (type) => {
|
|
1377
1389
|
if (columnEventsThatTriggersAutoLayoutSave.indexOf(type) > -1) {
|
|
1378
|
-
this.
|
|
1379
|
-
this.debouncedSaveGridLayout();
|
|
1390
|
+
this.debouncedSaveGridLayout(type);
|
|
1380
1391
|
}
|
|
1381
1392
|
}));
|
|
1382
1393
|
/**
|
|
1383
1394
|
* Save Layout if Display Row Groups is "dynamic
|
|
1384
1395
|
*/
|
|
1385
|
-
this.debouncedSaveGridLayout = (0, debounce_1.default)(() => {
|
|
1396
|
+
this.debouncedSaveGridLayout = (0, debounce_1.default)((type) => {
|
|
1386
1397
|
if (!this.isReady) {
|
|
1387
1398
|
return;
|
|
1388
1399
|
}
|
|
1400
|
+
this.logger.info('Event Triggering Auto Layout Save', type || '');
|
|
1389
1401
|
this.updateLayoutFromGrid();
|
|
1390
1402
|
}, GeneralConstants_1.HALF_SECOND);
|
|
1391
1403
|
const rowGroupEventsThatTriggersAutoLayoutSave = [
|
|
@@ -1395,7 +1407,7 @@ class AdaptableAgGrid {
|
|
|
1395
1407
|
this.agGridAdapter.getAgGridApi().addGlobalListener((this.listenerGlobalRowGroupEventsThatTriggerAutoLayoutSave = (type) => {
|
|
1396
1408
|
if (rowGroupEventsThatTriggersAutoLayoutSave.indexOf(type) > -1) {
|
|
1397
1409
|
if (this.adaptableOptions.layoutOptions.displayRowGroups == 'dynamic') {
|
|
1398
|
-
this.debouncedSaveGridLayout();
|
|
1410
|
+
this.debouncedSaveGridLayout(type);
|
|
1399
1411
|
}
|
|
1400
1412
|
}
|
|
1401
1413
|
}));
|
|
@@ -1419,7 +1431,7 @@ class AdaptableAgGrid {
|
|
|
1419
1431
|
*/
|
|
1420
1432
|
this.agGridAdapter.getAgGridApi().addEventListener(core_1.Events.EVENT_COLUMN_RESIZED, (this.listenerColumnResized = (params) => {
|
|
1421
1433
|
if (params.finished == true && params.type == 'columnResized' && params.column) {
|
|
1422
|
-
this.debouncedSaveGridLayout();
|
|
1434
|
+
this.debouncedSaveGridLayout(params.type);
|
|
1423
1435
|
}
|
|
1424
1436
|
}));
|
|
1425
1437
|
/**
|
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: "18.0.0-canary.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1712327561436 || Date.now(),
|
|
6
|
+
VERSION: "18.0.0-canary.25" || '--current-version--',
|
|
7
7
|
};
|