@adaptabletools/adaptable 15.2.0-canary.3 → 15.2.0-canary.5
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/Api/ColumnApi.d.ts +5 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +5 -0
- package/src/Strategy/ExportModule.js +5 -0
- 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": "15.2.0-canary.
|
|
3
|
+
"version": "15.2.0-canary.5",
|
|
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: 1680879586791;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
package/src/Api/ColumnApi.d.ts
CHANGED
|
@@ -137,6 +137,11 @@ export interface ColumnApi {
|
|
|
137
137
|
* @param columnId ColumnId to check
|
|
138
138
|
*/
|
|
139
139
|
isAutoPivotColumn(columnId: string): boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Checks if Column with given ColumnId is a Calculated Column or a Free Text Column or an Action Column
|
|
142
|
+
* @param columnId ColumnId to check
|
|
143
|
+
*/
|
|
144
|
+
isSpecialColumn(columnId: string): boolean;
|
|
140
145
|
/**
|
|
141
146
|
* Checks if Column with given ColumnId is a Calculated Column
|
|
142
147
|
* @param columnId ColumnId to check
|
|
@@ -92,4 +92,5 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
92
92
|
isActionRowButtonColumn(columnId: string): boolean;
|
|
93
93
|
getDefaultAggFunc(columnId: string): string;
|
|
94
94
|
getTypesForColumn(columnId: string): string | string[] | undefined;
|
|
95
|
+
isSpecialColumn(columnId: string): boolean;
|
|
95
96
|
}
|
|
@@ -443,5 +443,10 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
443
443
|
const agGridColumn = this.getAgGridColumnForAdaptableColumn(columnId);
|
|
444
444
|
return (_a = agGridColumn === null || agGridColumn === void 0 ? void 0 : agGridColumn.getColDef()) === null || _a === void 0 ? void 0 : _a.type;
|
|
445
445
|
}
|
|
446
|
+
isSpecialColumn(columnId) {
|
|
447
|
+
return (this.isCalculatedColumn(columnId) ||
|
|
448
|
+
this.isFreeTextColumn(columnId) ||
|
|
449
|
+
this.isActionColumn(columnId));
|
|
450
|
+
}
|
|
446
451
|
}
|
|
447
452
|
exports.ColumnApiImpl = ColumnApiImpl;
|
|
@@ -110,6 +110,11 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
110
110
|
else {
|
|
111
111
|
this.api.logInfo(`Export ${report.Name} (${exportDestination}) using data from preProcessExport()`);
|
|
112
112
|
reportData = preProcessedExport;
|
|
113
|
+
if (!reportData.columns.length) {
|
|
114
|
+
// an empty column array means that all columns have been exported
|
|
115
|
+
// we have to update the report to reflect this
|
|
116
|
+
reportData.columns = this.api.internalApi.getReportService().getReportDataColumns(report);
|
|
117
|
+
}
|
|
113
118
|
}
|
|
114
119
|
if (this.isCustomDestination(exportDestination)) {
|
|
115
120
|
const customDestination = (_a = this.api.optionsApi
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "15.2.0-canary.
|
|
1
|
+
declare const _default: "15.2.0-canary.5";
|
|
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 = '15.2.0-canary.
|
|
3
|
+
exports.default = '15.2.0-canary.5'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
|