@adaptabletools/adaptable 16.0.0-canary.7 → 16.0.0-canary.8
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/bundle.cjs.js +4 -4
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/agGrid/Adaptable.d.ts +1 -1
- package/src/agGrid/Adaptable.js +12 -7
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "16.0.0-canary.
|
|
3
|
+
"version": "16.0.0-canary.8",
|
|
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",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1691669676457;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -290,7 +290,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
290
290
|
getColDefs(): ColDef[];
|
|
291
291
|
getGroupedColDefs(): ColDef[];
|
|
292
292
|
getColumnDefsWithCorrectVisibility: () => ColDef[];
|
|
293
|
-
getFirstRowNode(): IRowNode;
|
|
293
|
+
getFirstRowNode(): IRowNode | undefined;
|
|
294
294
|
getFirstDisplayedRowNode(): IRowNode;
|
|
295
295
|
destroy(config?: {
|
|
296
296
|
unmount: boolean;
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -1709,7 +1709,7 @@ class Adaptable {
|
|
|
1709
1709
|
if (
|
|
1710
1710
|
// check first row node for presence of data without iterating over whole grid
|
|
1711
1711
|
this.api.layoutApi.internalApi.areExpandedRowGroupsSavedInLayouts() &&
|
|
1712
|
-
this.api.gridApi.
|
|
1712
|
+
this.api.gridApi.getFirstDisplayedRowNode()) {
|
|
1713
1713
|
layout.ExpandedRowGroupValues = this.getExpandRowGroupsKeys();
|
|
1714
1714
|
}
|
|
1715
1715
|
this.persistLayout(layout);
|
|
@@ -2679,7 +2679,16 @@ class Adaptable {
|
|
|
2679
2679
|
return justGroupColDefs;
|
|
2680
2680
|
}
|
|
2681
2681
|
getFirstRowNode() {
|
|
2682
|
-
|
|
2682
|
+
let startIndex = 0;
|
|
2683
|
+
let firstRowNode = this.gridOptions.api.getDisplayedRowAtIndex(startIndex);
|
|
2684
|
+
while (firstRowNode && firstRowNode.group) {
|
|
2685
|
+
startIndex++;
|
|
2686
|
+
firstRowNode = this.gridOptions.api.getDisplayedRowAtIndex(startIndex);
|
|
2687
|
+
}
|
|
2688
|
+
if (!firstRowNode) {
|
|
2689
|
+
firstRowNode = this.gridOptions.api.getDisplayedRowAtIndex(0);
|
|
2690
|
+
}
|
|
2691
|
+
return firstRowNode;
|
|
2683
2692
|
}
|
|
2684
2693
|
getFirstDisplayedRowNode() {
|
|
2685
2694
|
const firstDisplayedRowIndex = this.gridOptions.api.getFirstDisplayedRow();
|
|
@@ -4643,7 +4652,6 @@ class Adaptable {
|
|
|
4643
4652
|
return this.isAgGridModulePresent(core_1.ModuleNames.ExcelExportModule);
|
|
4644
4653
|
}
|
|
4645
4654
|
exportToExcel(reportData, fileName) {
|
|
4646
|
-
var _a;
|
|
4647
4655
|
const columnDefs = reportData.columns.map((column) => ({
|
|
4648
4656
|
field: column.columnId,
|
|
4649
4657
|
headerName: column.friendlyName,
|
|
@@ -4680,10 +4688,7 @@ class Adaptable {
|
|
|
4680
4688
|
columnDefs,
|
|
4681
4689
|
rowData: reportData.rows,
|
|
4682
4690
|
};
|
|
4683
|
-
let gridParams;
|
|
4684
|
-
if ((_a = this.runtimeConfig.agGridModules) === null || _a === void 0 ? void 0 : _a.length) {
|
|
4685
|
-
gridParams = { modules: this.runtimeConfig.agGridModules };
|
|
4686
|
-
}
|
|
4691
|
+
let gridParams = { modules: this.getAgGridRegisteredModules() };
|
|
4687
4692
|
const grid = new core_1.Grid(document.createElement('div'), gridOptions, gridParams);
|
|
4688
4693
|
gridOptions.api.exportDataAsExcel({
|
|
4689
4694
|
sheetName: 'Sheet 1',
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "16.0.0-canary.
|
|
1
|
+
declare const _default: "16.0.0-canary.8";
|
|
2
2
|
export default _default;
|
package/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = '16.0.0-canary.
|
|
3
|
+
exports.default = '16.0.0-canary.8'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
|