@adaptabletools/adaptable 20.0.0-canary.5 → 20.0.0-canary.7
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/AdaptableOptions/ExportOptions.d.ts +2 -2
- package/src/Api/ExportApi.d.ts +1 -6
- package/src/Api/Fdc3Api.d.ts +5 -3
- package/src/Api/Implementation/ExportApiImpl.d.ts +1 -2
- package/src/Api/Implementation/ExportApiImpl.js +14 -8
- package/src/Api/Implementation/Fdc3ApiImpl.d.ts +3 -3
- package/src/Api/Implementation/Fdc3ApiImpl.js +4 -4
- package/src/Api/Implementation/LayoutHelpers.js +8 -27
- package/src/Api/Internal/ActionColumnInternalApi.js +16 -19
- package/src/Api/Internal/ExportInternalApi.d.ts +1 -5
- package/src/Api/Internal/ExportInternalApi.js +10 -131
- package/src/PredefinedConfig/ExportState.d.ts +0 -13
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +2 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +10 -0
- package/src/Utilities/Services/Fdc3Service.d.ts +2 -2
- package/src/Utilities/Services/Fdc3Service.js +7 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +41 -0
- package/src/agGrid/AdaptableAgGrid.js +4 -0
- package/src/agGrid/AgGridAdapter.js +1 -1
- package/src/agGrid/AgGridColumnAdapter.js +0 -3
- package/src/agGrid/AgGridExportAdapter.d.ts +1 -0
- package/src/agGrid/AgGridExportAdapter.js +4 -2
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
|
@@ -2961,6 +2961,10 @@ You need to define at least one Layout!`);
|
|
|
2961
2961
|
};
|
|
2962
2962
|
this.agGridColumnAdapter.setupColumnHeader(colSetupInfo);
|
|
2963
2963
|
});
|
|
2964
|
+
// need to refresh the header,
|
|
2965
|
+
// as the Layout.ColumnHeaders state property is not implemented in the LayoutManager
|
|
2966
|
+
// and is specific to Adaptable, therefore we need to refresh it manually
|
|
2967
|
+
this.refreshHeader();
|
|
2964
2968
|
const layoutModel = layoutStateToLayoutModel(layout);
|
|
2965
2969
|
this.layoutManager?.setLayout(layoutModel, {
|
|
2966
2970
|
skipApplyRowGroupsExpandedState: !shouldUpdateExpandState,
|
|
@@ -96,7 +96,7 @@ export class AgGridAdapter {
|
|
|
96
96
|
// `context`
|
|
97
97
|
const passedContext = options.context;
|
|
98
98
|
if (passedContext) {
|
|
99
|
-
passedContext['__adaptable'] = self;
|
|
99
|
+
passedContext['__adaptable'] = self._adaptableInstance;
|
|
100
100
|
passedContext['adaptableApi'] = self.adaptableApi;
|
|
101
101
|
}
|
|
102
102
|
// we mutated the options array, so it's OK to use the 'arguments' object
|
|
@@ -387,9 +387,6 @@ export class AgGridColumnAdapter {
|
|
|
387
387
|
if (layoutCustomHeader) {
|
|
388
388
|
resultHeaderName = layoutCustomHeader;
|
|
389
389
|
}
|
|
390
|
-
// required here for the initial layout rendering
|
|
391
|
-
// Removed by JW, 3 october 2023; i don't think we need it and it overrides stuff unnecessarily
|
|
392
|
-
abColumn.friendlyName = resultHeaderName;
|
|
393
390
|
return resultHeaderName;
|
|
394
391
|
});
|
|
395
392
|
const newColumnHeader = col?.getColDef()?.headerName;
|
|
@@ -23,6 +23,7 @@ export declare class AgGridExportAdapter {
|
|
|
23
23
|
private get agGridApi();
|
|
24
24
|
private get adaptableApi();
|
|
25
25
|
private get exportOptions();
|
|
26
|
+
private get logger();
|
|
26
27
|
static getExcelClassNameForCell(colId: string, primaryKeyValue: any, userDefinedCellClass?: string | string[]): string;
|
|
27
28
|
destroy(): void;
|
|
28
29
|
exportData(config: ExportConfig): Promise<null | ExportResultData>;
|
|
@@ -29,6 +29,9 @@ export class AgGridExportAdapter {
|
|
|
29
29
|
get exportOptions() {
|
|
30
30
|
return this._adaptableInstance.api.optionsApi.getExportOptions();
|
|
31
31
|
}
|
|
32
|
+
get logger() {
|
|
33
|
+
return this._adaptableInstance.logger;
|
|
34
|
+
}
|
|
32
35
|
static getExcelClassNameForCell(colId, primaryKeyValue, userDefinedCellClass) {
|
|
33
36
|
let excelClassName = `--excel-cell-${colId}-${primaryKeyValue}`;
|
|
34
37
|
if (excelClassName.indexOf(' ') > 0) {
|
|
@@ -98,8 +101,7 @@ export class AgGridExportAdapter {
|
|
|
98
101
|
};
|
|
99
102
|
}
|
|
100
103
|
catch (error) {
|
|
101
|
-
|
|
102
|
-
console.error(error);
|
|
104
|
+
this.logger.consoleError(`Error exporting ${report.Name} in ${format} format to ${config.destination}`, error);
|
|
103
105
|
}
|
|
104
106
|
finally {
|
|
105
107
|
/**
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
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" || '',
|
|
3
|
-
PUBLISH_TIMESTAMP:
|
|
4
|
-
VERSION: "20.0.0-canary.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1741274222010 || Date.now(),
|
|
4
|
+
VERSION: "20.0.0-canary.7" || '--current-version--',
|
|
5
5
|
};
|