@adaptabletools/adaptable-cjs 21.1.1 → 21.1.3-canary.0
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.
|
|
3
|
+
"version": "21.1.3-canary.0",
|
|
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",
|
|
@@ -1148,8 +1148,9 @@ You need to define at least one Layout!`);
|
|
|
1148
1148
|
format: '0.###############',
|
|
1149
1149
|
},
|
|
1150
1150
|
});
|
|
1151
|
-
|
|
1152
|
-
this.agGridExportAdapter.
|
|
1151
|
+
// store original excel styles, we will have to revert to them after each VISUAL EXPORT
|
|
1152
|
+
this.agGridExportAdapter.originalExcelStyles = [...excelStyles];
|
|
1153
|
+
this.agGridExportAdapter.DANGER_excelStyles = excelStyles;
|
|
1153
1154
|
// this array reference will be used for the entire AG Grid session
|
|
1154
1155
|
return this.agGridExportAdapter.DANGER_excelStyles;
|
|
1155
1156
|
});
|
|
@@ -450,10 +450,11 @@ class AgGridExportAdapter {
|
|
|
450
450
|
}
|
|
451
451
|
patchExcelStyles(exportContext) {
|
|
452
452
|
const exportExcelStyles = this.buildExcelStyles(exportContext);
|
|
453
|
-
//
|
|
454
|
-
this.DANGER_excelStyles.
|
|
453
|
+
// Concatenate exportExcelStyles to DANGER_excelStyles without changing the array reference
|
|
454
|
+
this.DANGER_excelStyles.push(...exportExcelStyles);
|
|
455
455
|
}
|
|
456
456
|
resetExcelStyles() {
|
|
457
|
+
// Revert to original state without changing the array reference
|
|
457
458
|
this.DANGER_excelStyles.splice(0, this.DANGER_excelStyles.length, ...this.originalExcelStyles);
|
|
458
459
|
this.excelStylesCache = {};
|
|
459
460
|
this.cellClassKey2excelStyleIdMap = {};
|
|
@@ -606,27 +607,6 @@ class AgGridExportAdapter {
|
|
|
606
607
|
this.registerExcelStyle(finalCellExcelStyle, cellClassId);
|
|
607
608
|
});
|
|
608
609
|
}, forAllVisibleRowNodesDoConfig);
|
|
609
|
-
// see #EXCEL_EXPORT_DATA_TYPES
|
|
610
|
-
this.excelStylesCache['stringExcelType'] = {
|
|
611
|
-
id: 'stringExcelType',
|
|
612
|
-
dataType: 'String',
|
|
613
|
-
};
|
|
614
|
-
this.excelStylesCache['booleanExcelType'] = {
|
|
615
|
-
id: 'booleanExcelType',
|
|
616
|
-
dataType: 'Boolean',
|
|
617
|
-
};
|
|
618
|
-
this.excelStylesCache['dateExcelType'] = {
|
|
619
|
-
id: 'dateExcelType',
|
|
620
|
-
dataType: 'DateTime',
|
|
621
|
-
};
|
|
622
|
-
this.excelStylesCache['numberExcelType'] = {
|
|
623
|
-
id: 'numberExcelType',
|
|
624
|
-
// dataType: 'Number',
|
|
625
|
-
// AG Grid requires either dataType or numberFormat to be set for Numbers
|
|
626
|
-
numberFormat: {
|
|
627
|
-
format: '0.###############',
|
|
628
|
-
},
|
|
629
|
-
};
|
|
630
610
|
return Object.values(this.excelStylesCache);
|
|
631
611
|
}
|
|
632
612
|
registerExcelStyle(excelStyle, cellClassKey) {
|
|
@@ -61,7 +61,7 @@ const getLabelColumn = (field, { includeExpandCollapseButton }) => {
|
|
|
61
61
|
dataSourceApi.treeApi.selectAll();
|
|
62
62
|
}
|
|
63
63
|
api.focus();
|
|
64
|
-
} }),
|
|
64
|
+
} }, allRowsSelected ? '(Deselect All)' : '(Select All)'),
|
|
65
65
|
React.createElement(rebass_1.Flex, { flex: 1 }),
|
|
66
66
|
includeExpandCollapseButton ? (React.createElement(SimpleButton_1.default, { label: "toggle-expand-collapse", icon: allFirstLevelCollapsed ? 'expand-all' : 'collapse-all', onMouseDown: () => {
|
|
67
67
|
if (allFirstLevelCollapsed) {
|
|
@@ -70,7 +70,7 @@ const getLabelColumn = (field, { includeExpandCollapseButton }) => {
|
|
|
70
70
|
else {
|
|
71
71
|
dataSourceApi.treeApi.collapseAll();
|
|
72
72
|
}
|
|
73
|
-
}, iconPosition: "end" }
|
|
73
|
+
}, iconPosition: "end" })) : null));
|
|
74
74
|
},
|
|
75
75
|
};
|
|
76
76
|
};
|
|
@@ -231,7 +231,7 @@ function TreeDropdown(props) {
|
|
|
231
231
|
// @ts-ignore - don't leave any space for the > expand icon, as there are no children
|
|
232
232
|
treeListStyle['--infinite-group-row-column-nesting'] = 'var(--ab-space-2)';
|
|
233
233
|
}
|
|
234
|
-
const treeList = (React.createElement(TreeList_1.TreeList, { primaryKey: props.primaryKey ?? 'id', treeFilterFunction: filterFunction, columnHeaderHeight:
|
|
234
|
+
const treeList = (React.createElement(TreeList_1.TreeList, { primaryKey: props.primaryKey ?? 'id', treeFilterFunction: filterFunction, columnHeaderHeight: 30, onReady: ({ api }) => {
|
|
235
235
|
setTreeListApi(api);
|
|
236
236
|
api.focus();
|
|
237
237
|
}, defaultTreeExpandState: treeExpandState, onTreeExpandStateChange: setTreeExpandState, columns: columns, options: props.options, treeSelection: treeSelection, onTreeSelectionChange: (0, InfiniteTable_1.withSelectedLeafNodesOnly)(onChange), style: treeListStyle }));
|
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.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1765279179972 || Date.now(),
|
|
6
|
+
VERSION: "21.1.3-canary.0" || '--current-version--',
|
|
7
7
|
};
|