@adaptabletools/adaptable-cjs 19.1.0-canary.0 → 19.1.1
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/FormatColumnOptions.d.ts +4 -4
- package/src/Api/GridApi.d.ts +2 -1
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ActionColumnApiImpl.js +1 -4
- package/src/Api/Implementation/ActionRowApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ActionRowApiImpl.js +4 -4
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +6 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
- package/src/Api/Implementation/AlertApiImpl.js +16 -15
- package/src/Api/Implementation/ApiBase.d.ts +12 -3
- package/src/Api/Implementation/ApiBase.js +39 -24
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -3
- package/src/Api/Implementation/CalendarApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +9 -9
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +18 -18
- package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnFilterApiImpl.js +7 -7
- package/src/Api/Implementation/ColumnMenuApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ColumnMenuApiImpl.js +2 -5
- package/src/Api/Implementation/CommentsApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CommentsApiImpl.js +6 -4
- package/src/Api/Implementation/ConfigApiImpl.js +23 -24
- package/src/Api/Implementation/ContextMenuApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ContextMenuApiImpl.js +1 -4
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +3 -3
- package/src/Api/Implementation/DashboardApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DashboardApiImpl.js +5 -5
- package/src/Api/Implementation/DataImportApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DataImportApiImpl.js +3 -3
- package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DataSetApiImpl.js +5 -5
- package/src/Api/Implementation/EntitlementApiImpl.d.ts +1 -1
- package/src/Api/Implementation/EntitlementApiImpl.js +5 -5
- package/src/Api/Implementation/EventApiImpl.d.ts +1 -1
- package/src/Api/Implementation/EventApiImpl.js +2 -2
- package/src/Api/Implementation/ExportApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExportApiImpl.js +7 -7
- package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExpressionApiImpl.js +5 -5
- package/src/Api/Implementation/Fdc3ApiImpl.d.ts +1 -1
- package/src/Api/Implementation/Fdc3ApiImpl.js +4 -4
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +7 -7
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +4 -4
- package/src/Api/Implementation/GridApiImpl.d.ts +3 -2
- package/src/Api/Implementation/GridApiImpl.js +106 -103
- package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridFilterApiImpl.js +4 -4
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -1
- package/src/Api/Implementation/LayoutApiImpl.js +3 -3
- package/src/Api/Implementation/NamedQueryApiImpl.d.ts +1 -1
- package/src/Api/Implementation/NamedQueryApiImpl.js +3 -3
- package/src/Api/Implementation/NoteApiImpl.d.ts +1 -1
- package/src/Api/Implementation/NoteApiImpl.js +3 -3
- package/src/Api/Implementation/OptionsApiImpl.js +7 -7
- package/src/Api/Implementation/PluginsApiImpl.js +1 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
- package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -1
- package/src/Api/Implementation/PredicateApiImpl.js +4 -4
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ScheduleApiImpl.js +3 -3
- package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
- package/src/Api/Implementation/StatusBarApiImpl.js +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.js +4 -4
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SystemStatusApiImpl.js +4 -4
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/TeamSharingApiImpl.js +11 -11
- package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ThemeApiImpl.js +8 -8
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -5
- package/src/Api/Internal/ActionRowInternalApi.js +8 -8
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
- package/src/Api/Internal/AdaptableInternalApi.js +55 -50
- package/src/Api/Internal/AlertInternalApi.js +9 -9
- package/src/Api/Internal/CalculatedColumnInternalApi.js +11 -9
- package/src/Api/Internal/ChartingInternalApi.js +1 -1
- package/src/Api/Internal/ColumnFilterInternalApi.js +7 -9
- package/src/Api/Internal/ColumnInternalApi.js +3 -3
- package/src/Api/Internal/CustomSortInternalApi.js +3 -3
- package/src/Api/Internal/DashboardInternalApi.js +4 -3
- package/src/Api/Internal/DataImportInternalApi.js +2 -2
- package/src/Api/Internal/DataSetInternalApi.js +2 -2
- package/src/Api/Internal/ExportInternalApi.js +21 -22
- package/src/Api/Internal/ExpressionInternalApi.js +4 -4
- package/src/Api/Internal/Fdc3InternalApi.d.ts +0 -1
- package/src/Api/Internal/Fdc3InternalApi.js +9 -12
- package/src/Api/Internal/FlashingCellInternalApi.js +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +2 -3
- package/src/Api/Internal/FreeTextColumnInternalApi.js +5 -2
- package/src/Api/Internal/GridFilterInternalApi.js +2 -2
- package/src/Api/Internal/GridInternalApi.js +26 -26
- package/src/Api/Internal/LayoutInternalApi.js +6 -5
- package/src/Api/Internal/NamedQueryInternalApi.js +2 -2
- package/src/Api/Internal/PredicateInternalApi.js +5 -5
- package/src/Api/Internal/ScheduleInternalApi.js +1 -1
- package/src/Api/Internal/StyledColumnInternalApi.js +2 -2
- package/src/Api/Internal/SystemStatusInternalApi.js +1 -1
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -2
- package/src/Api/Internal/ThemeInternalApi.js +1 -1
- package/src/Strategy/NoteModule.d.ts +0 -1
- package/src/Strategy/NoteModule.js +4 -5
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +1 -1
- package/src/Utilities/Services/CellPopupService.js +4 -4
- package/src/Utilities/Services/Fdc3Service.js +1 -3
- package/src/Utilities/Services/FlashingCellService.d.ts +0 -2
- package/src/Utilities/Services/FlashingCellService.js +2 -3
- package/src/Utilities/Services/RowEditService.js +3 -5
- package/src/View/Alert/AlertStatusSubPanel.js +4 -4
- package/src/View/Charting/ShowChartButton.js +4 -4
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +14 -13
- package/src/agGrid/FloatingFilterWrapper.js +4 -3
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
- package/src/components/ExpressionEditor/ExpressionPreview.js +4 -4
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/tsconfig.cjs.tsbuildinfo +1 -1
|
@@ -23,9 +23,9 @@ function isAutoPivotColumn(columnId) {
|
|
|
23
23
|
}
|
|
24
24
|
exports.isAutoPivotColumn = isAutoPivotColumn;
|
|
25
25
|
class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
26
|
-
constructor(
|
|
27
|
-
super(
|
|
28
|
-
this.internalApi = new ColumnInternalApi_1.ColumnInternalApi(
|
|
26
|
+
constructor(_adaptable) {
|
|
27
|
+
super(_adaptable);
|
|
28
|
+
this.internalApi = new ColumnInternalApi_1.ColumnInternalApi(_adaptable);
|
|
29
29
|
}
|
|
30
30
|
getColumns() {
|
|
31
31
|
var _a;
|
|
@@ -50,34 +50,34 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
50
50
|
return this.getColumns().filter((c) => visibleCols[c.columnId]);
|
|
51
51
|
}
|
|
52
52
|
selectColumn(columnId) {
|
|
53
|
-
this.
|
|
53
|
+
this._adaptable.selectColumn(columnId);
|
|
54
54
|
}
|
|
55
55
|
selectColumns(columnIds) {
|
|
56
|
-
this.
|
|
56
|
+
this._adaptable.selectColumns(columnIds);
|
|
57
57
|
}
|
|
58
58
|
addColumnToSelection(columnId) {
|
|
59
|
-
this.
|
|
59
|
+
this._adaptable.selectColumn(columnId, { keepExistingSelection: true });
|
|
60
60
|
}
|
|
61
61
|
addColumnsToSelection(columnIds) {
|
|
62
|
-
this.
|
|
62
|
+
this._adaptable.selectColumns(columnIds, { keepExistingSelection: true });
|
|
63
63
|
}
|
|
64
64
|
selectAllColumns() {
|
|
65
|
-
this.
|
|
65
|
+
this._adaptable.selectAll();
|
|
66
66
|
}
|
|
67
67
|
autosizeColumn(columnId) {
|
|
68
|
-
this.
|
|
68
|
+
this._adaptable.autoSizeColumn(columnId);
|
|
69
69
|
}
|
|
70
70
|
autosizeColumns(columnIds) {
|
|
71
|
-
this.
|
|
71
|
+
this._adaptable.autoSizeColumns(columnIds);
|
|
72
72
|
}
|
|
73
73
|
autosizeAllColumns() {
|
|
74
|
-
this.
|
|
74
|
+
this._adaptable.autoSizeAllColumns();
|
|
75
75
|
}
|
|
76
76
|
hideColumn(columnId) {
|
|
77
|
-
this.
|
|
77
|
+
this._adaptable.hideColumn(columnId);
|
|
78
78
|
}
|
|
79
79
|
showColumn(columnId) {
|
|
80
|
-
this.
|
|
80
|
+
this._adaptable.showColumn(columnId);
|
|
81
81
|
}
|
|
82
82
|
isAutoRowGroupColumn(columnId) {
|
|
83
83
|
return isAutoRowGroupColumn(columnId);
|
|
@@ -334,7 +334,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
334
334
|
return this.getColumns().filter((c) => c.exportable);
|
|
335
335
|
}
|
|
336
336
|
logMissingColumnWarning(columnId) {
|
|
337
|
-
if (this.
|
|
337
|
+
if (this.getColumnOptions().showMissingColumnsWarning === true) {
|
|
338
338
|
if (!this.isAutoRowGroupColumn(columnId) &&
|
|
339
339
|
!this.isCalculatedColumn(columnId) &&
|
|
340
340
|
!this.isFreeTextColumn(columnId) &&
|
|
@@ -344,7 +344,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
getPrimaryKeyColumn() {
|
|
347
|
-
return this.getColumnWithColumnId(this.
|
|
347
|
+
return this.getColumnWithColumnId(this.getOptions().primaryKey);
|
|
348
348
|
}
|
|
349
349
|
getDefaultAggFunc(columnId) {
|
|
350
350
|
var _a, _b, _c;
|
|
@@ -391,15 +391,15 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
391
391
|
return this.getAdaptableApi().layoutApi.setColumnCaption(columnId, caption);
|
|
392
392
|
}
|
|
393
393
|
updateColumnConfiguration(columnConfig) {
|
|
394
|
-
(0, logDeprecation_1.logDeprecationExternal)(this.
|
|
394
|
+
(0, logDeprecation_1.logDeprecationExternal)(this.getAdatableLogger(), 'ColumnApi', 'updateColumnConfiguration', 'GridApi', 'updateAgGridColumnState');
|
|
395
395
|
this.getGridApi().updateAgGridColumnState(columnConfig);
|
|
396
396
|
}
|
|
397
397
|
updateColumnConfigurations(columnConfigs) {
|
|
398
|
-
(0, logDeprecation_1.logDeprecationExternal)(this.
|
|
398
|
+
(0, logDeprecation_1.logDeprecationExternal)(this.getAdatableLogger(), 'ColumnApi', 'updateColumnConfigurations', 'GridApi', 'updateAgGridColumnStates');
|
|
399
399
|
this.getGridApi().updateAgGridColumnStates(columnConfigs);
|
|
400
400
|
}
|
|
401
401
|
setColumnDefinitions(columnDefinitions) {
|
|
402
|
-
(0, logDeprecation_1.logDeprecationExternal)(this.
|
|
402
|
+
(0, logDeprecation_1.logDeprecationExternal)(this.getAdatableLogger(), 'ColumnApi', 'setColumnDefinitions', 'GridApi', 'setAgGridColumnDefinitions');
|
|
403
403
|
this.getGridApi().setAgGridColumnDefinitions(columnDefinitions);
|
|
404
404
|
}
|
|
405
405
|
}
|
|
@@ -7,7 +7,7 @@ import { ColumnFilterInternalApi } from '../Internal/ColumnFilterInternalApi';
|
|
|
7
7
|
import { ColumnFilterApi } from '../ColumnFilterApi';
|
|
8
8
|
export declare class ColumnFilterApiImpl extends ApiBase implements ColumnFilterApi {
|
|
9
9
|
internalApi: ColumnFilterInternalApi;
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(_adaptable: IAdaptable);
|
|
11
11
|
getFilterPredicateDefsForColumn(column: AdaptableColumn): AdaptablePredicateDef[];
|
|
12
12
|
getFilterPredicateDefsForColumnId(columnId: string): AdaptablePredicateDef[] | undefined;
|
|
13
13
|
showQuickFilterBar(): void;
|
|
@@ -8,9 +8,9 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
8
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
9
9
|
const ColumnFilterInternalApi_1 = require("../Internal/ColumnFilterInternalApi");
|
|
10
10
|
class ColumnFilterApiImpl extends ApiBase_1.ApiBase {
|
|
11
|
-
constructor(
|
|
12
|
-
super(
|
|
13
|
-
this.internalApi = new ColumnFilterInternalApi_1.ColumnFilterInternalApi(
|
|
11
|
+
constructor(_adaptable) {
|
|
12
|
+
super(_adaptable);
|
|
13
|
+
this.internalApi = new ColumnFilterInternalApi_1.ColumnFilterInternalApi(_adaptable);
|
|
14
14
|
}
|
|
15
15
|
getFilterPredicateDefsForColumn(column) {
|
|
16
16
|
const scope = {
|
|
@@ -31,11 +31,11 @@ class ColumnFilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
31
31
|
this.dispatchAction(SystemRedux.SystemQuickFilterBarHide());
|
|
32
32
|
}
|
|
33
33
|
isQuickFilterAvailable() {
|
|
34
|
-
return this.
|
|
34
|
+
return this._adaptable.isQuickFilterAvailable();
|
|
35
35
|
}
|
|
36
36
|
isQuickFilterVisible() {
|
|
37
37
|
return (this.isQuickFilterAvailable() &&
|
|
38
|
-
this.
|
|
38
|
+
this.getAdaptableInternalApi().getSystemState().IsQuickFilterVisible);
|
|
39
39
|
}
|
|
40
40
|
getColumnFilters() {
|
|
41
41
|
var _a;
|
|
@@ -95,7 +95,7 @@ class ColumnFilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
95
95
|
}
|
|
96
96
|
clearColumnFilters() {
|
|
97
97
|
this.dispatchAction(LayoutRedux.LayoutColumnFilterClearAll());
|
|
98
|
-
this.
|
|
98
|
+
this._adaptable.clearColumnFiltering();
|
|
99
99
|
}
|
|
100
100
|
clearAndSetColumnFilters(columnFilters) {
|
|
101
101
|
this.clearColumnFilters();
|
|
@@ -170,7 +170,7 @@ class ColumnFilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
170
170
|
let columnFilterForColumn = this.getColumnFilterForColumn(columnId);
|
|
171
171
|
if (columnFilterForColumn) {
|
|
172
172
|
this.dispatchAction(LayoutRedux.LayoutColumnFilterClear(columnFilterForColumn));
|
|
173
|
-
this.
|
|
173
|
+
this._adaptable.clearColumnFilteringForColumns([columnId]);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ColumnMenuApi } from '../ColumnMenuApi';
|
|
2
|
-
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
3
2
|
import { ApiBase } from './ApiBase';
|
|
4
3
|
export declare class ColumnMenuApiImpl extends ApiBase implements ColumnMenuApi {
|
|
5
|
-
constructor(adaptable: IAdaptable);
|
|
6
4
|
showColumnMenu(columnKey: string): void;
|
|
7
5
|
hideColumnMenu(): void;
|
|
8
6
|
}
|
|
@@ -3,14 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ColumnMenuApiImpl = void 0;
|
|
4
4
|
const ApiBase_1 = require("./ApiBase");
|
|
5
5
|
class ColumnMenuApiImpl extends ApiBase_1.ApiBase {
|
|
6
|
-
constructor(adaptable) {
|
|
7
|
-
super(adaptable);
|
|
8
|
-
}
|
|
9
6
|
showColumnMenu(columnKey) {
|
|
10
|
-
this.
|
|
7
|
+
this.getAgGridApi().showColumnMenu(columnKey);
|
|
11
8
|
}
|
|
12
9
|
hideColumnMenu() {
|
|
13
|
-
this.
|
|
10
|
+
this.getAgGridApi().hidePopupMenu();
|
|
14
11
|
}
|
|
15
12
|
}
|
|
16
13
|
exports.ColumnMenuApiImpl = ColumnMenuApiImpl;
|
|
@@ -5,7 +5,7 @@ import { CommentsInternalApi } from '../Internal/CommentsInternalApi';
|
|
|
5
5
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
6
6
|
export declare class CommentsApiImpl extends ApiBase implements CommentApi {
|
|
7
7
|
internalApi: CommentsInternalApi;
|
|
8
|
-
constructor(
|
|
8
|
+
constructor(_adaptable: IAdaptable);
|
|
9
9
|
getCommentThread(address: CellAddress): CommentThread | undefined;
|
|
10
10
|
getGridComments(): CommentThread[];
|
|
11
11
|
editComment(comment: AdaptableComment, address: CellAddress): void;
|
|
@@ -7,10 +7,11 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
7
7
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
8
8
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
9
9
|
const CommentsInternalApi_1 = require("../Internal/CommentsInternalApi");
|
|
10
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
10
11
|
class CommentsApiImpl extends ApiBase_1.ApiBase {
|
|
11
|
-
constructor(
|
|
12
|
-
super(
|
|
13
|
-
this.internalApi = new CommentsInternalApi_1.CommentsInternalApi(
|
|
12
|
+
constructor(_adaptable) {
|
|
13
|
+
super(_adaptable);
|
|
14
|
+
this.internalApi = new CommentsInternalApi_1.CommentsInternalApi(_adaptable);
|
|
14
15
|
}
|
|
15
16
|
getCommentThread(address) {
|
|
16
17
|
return CommentRedux.GetCellCommentSelector(this.getAdaptableState().Comment, address);
|
|
@@ -18,6 +19,7 @@ class CommentsApiImpl extends ApiBase_1.ApiBase {
|
|
|
18
19
|
getGridComments() {
|
|
19
20
|
var _a;
|
|
20
21
|
return (_a = this.getAdaptableState().Comment.CommentThreads) !== null && _a !== void 0 ? _a : [];
|
|
22
|
+
lodash_1.default;
|
|
21
23
|
}
|
|
22
24
|
editComment(comment, address) {
|
|
23
25
|
this.dispatchAction(CommentRedux.CommentsEdit({ comment, cellAddress: address }));
|
|
@@ -49,7 +51,7 @@ class CommentsApiImpl extends ApiBase_1.ApiBase {
|
|
|
49
51
|
this.setGridComments([]);
|
|
50
52
|
}
|
|
51
53
|
hideCommentsPopup() {
|
|
52
|
-
this.
|
|
54
|
+
this.getAdaptableInternalApi().getCellPopupService().hidePopup();
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
exports.CommentsApiImpl = CommentsApiImpl;
|
|
@@ -43,21 +43,21 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
43
43
|
Helper_1.default.copyToClipboard(stringifiedState);
|
|
44
44
|
}
|
|
45
45
|
getPredefinedConfig() {
|
|
46
|
-
return this.
|
|
46
|
+
return this.getPredefinedConfig;
|
|
47
47
|
}
|
|
48
48
|
reloadPredefinedConfig(newPredefinedConfig) {
|
|
49
49
|
var _a;
|
|
50
|
-
const adaptableOptions = this.
|
|
50
|
+
const adaptableOptions = this.getOptions();
|
|
51
51
|
const oldState = this.getPersistedState();
|
|
52
52
|
// clearing filters so that AG Grid doesnt display the filter icon in a column header after grid reloads
|
|
53
53
|
// but this is a hack so would be nicer if there was a better way to do this
|
|
54
|
-
this.
|
|
54
|
+
this.getGridApi().clearGridFiltering();
|
|
55
55
|
const clearStateFn = ((_a = adaptableOptions.stateOptions) === null || _a === void 0 ? void 0 : _a.clearState) ||
|
|
56
56
|
(() => {
|
|
57
57
|
localStorage.removeItem(adaptableOptions.adaptableStateKey);
|
|
58
58
|
return Promise.resolve(true);
|
|
59
59
|
});
|
|
60
|
-
this.
|
|
60
|
+
this.getAdaptableSore().saveStateNow(this._adaptable).then(() => {
|
|
61
61
|
const promise = clearStateFn({
|
|
62
62
|
adaptableId: adaptableOptions.adaptableId,
|
|
63
63
|
adaptableStateKey: adaptableOptions.adaptableStateKey,
|
|
@@ -70,7 +70,7 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
70
70
|
}).then(() => {
|
|
71
71
|
const newState = this.getPersistedState();
|
|
72
72
|
const stateReloadedInfo = Object.assign({ oldState,
|
|
73
|
-
newState, adaptableStateKey: adaptableOptions.adaptableStateKey }, this.
|
|
73
|
+
newState, adaptableStateKey: adaptableOptions.adaptableStateKey }, this.getAdaptableInternalApi().buildBaseContext());
|
|
74
74
|
this.getAdaptableApi().eventApi.emit('AdaptableStateReloaded', stateReloadedInfo);
|
|
75
75
|
});
|
|
76
76
|
});
|
|
@@ -81,15 +81,14 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
81
81
|
}
|
|
82
82
|
getPersistedState() {
|
|
83
83
|
// no assertion should be required here as soon as we make order in our state typings
|
|
84
|
-
return this.
|
|
84
|
+
return this.getAdaptableSore().getCurrentStorageState();
|
|
85
85
|
}
|
|
86
86
|
getAllUserState() {
|
|
87
87
|
return Object.values(this.getPersistedState());
|
|
88
88
|
}
|
|
89
89
|
loadUserState(state) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
predefinedConfig: state || adaptableOptions.predefinedConfig,
|
|
90
|
+
this.setAdaptableStateKey(this.getOptions().adaptableStateKey, {
|
|
91
|
+
predefinedConfig: state || this.getOptions().predefinedConfig,
|
|
93
92
|
flushCurrentState: false,
|
|
94
93
|
});
|
|
95
94
|
}
|
|
@@ -118,40 +117,40 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
118
117
|
setAdaptableStateKey(adaptableStateKey, config) {
|
|
119
118
|
return new Promise((resolve, reject) => {
|
|
120
119
|
var _a;
|
|
121
|
-
this.
|
|
120
|
+
this.getAdaptableInternalApi().executeWithProgressIndicator((_a = config === null || config === void 0 ? void 0 : config.progressIndicatorLabel) !== null && _a !== void 0 ? _a : `Initialising...`, () => {
|
|
122
121
|
const flushCurrentState = !config || config.flushCurrentState !== false;
|
|
123
122
|
// make sure we persist any "pending" changes to state - since stateOptions.debounceStateDelay can cause
|
|
124
123
|
// the state to be persisted with a delay, which we dont want in this case
|
|
125
124
|
const flushStatePromise = flushCurrentState
|
|
126
|
-
? this.
|
|
125
|
+
? this.getAdaptableSore().saveStateNow(this._adaptable)
|
|
127
126
|
: Promise.resolve(true);
|
|
128
127
|
flushStatePromise.then(() => {
|
|
129
|
-
this.
|
|
128
|
+
this.getOptions().adaptableStateKey = adaptableStateKey;
|
|
130
129
|
let predefinedConfig = config === null || config === void 0 ? void 0 : config.predefinedConfig;
|
|
131
130
|
if (predefinedConfig) {
|
|
132
131
|
predefinedConfig = (0, AdaptableHelper_1.initPredefinedConfigWithUuids)(predefinedConfig);
|
|
133
132
|
}
|
|
134
|
-
const promise = this.
|
|
135
|
-
adaptable: this.
|
|
133
|
+
const promise = this.getAdaptableSore().loadStore({
|
|
134
|
+
adaptable: this._adaptable,
|
|
136
135
|
adaptableStateKey,
|
|
137
136
|
predefinedConfig,
|
|
138
137
|
postLoadHook: (state) => {
|
|
139
138
|
const agGridOptions = {
|
|
140
|
-
columnDefs: this.
|
|
141
|
-
autoGroupColumnDef: this.
|
|
142
|
-
rowModelType: this.
|
|
143
|
-
treeData: this.
|
|
139
|
+
columnDefs: this._adaptable.agGridAdapter.getGridOption('columnDefs'),
|
|
140
|
+
autoGroupColumnDef: this._adaptable.agGridAdapter.getGridOption('autoGroupColumnDef'),
|
|
141
|
+
rowModelType: this._adaptable.agGridAdapter.getGridOption('rowModelType'),
|
|
142
|
+
treeData: this._adaptable.agGridAdapter.getGridOption('treeData'),
|
|
144
143
|
};
|
|
145
|
-
return this.
|
|
144
|
+
return this._adaptable.normalizeAdaptableState(state, agGridOptions);
|
|
146
145
|
},
|
|
147
146
|
});
|
|
148
147
|
promise
|
|
149
148
|
.then(() => {
|
|
150
|
-
this.
|
|
149
|
+
this._adaptable.updateColumnModelAndRefreshGrid({
|
|
151
150
|
preemptiveColumnStateRefresh: true,
|
|
152
151
|
});
|
|
153
|
-
this.
|
|
154
|
-
this.
|
|
152
|
+
this._adaptable.setLayout();
|
|
153
|
+
this._adaptable.applyColumnFiltering();
|
|
155
154
|
})
|
|
156
155
|
.then(() => {
|
|
157
156
|
// resolve main(result) promise
|
|
@@ -171,10 +170,10 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
171
170
|
});
|
|
172
171
|
}
|
|
173
172
|
getDescriptionForModule(module) {
|
|
174
|
-
return this.
|
|
173
|
+
return this._adaptable.ModuleService.getModuleInfoByModule(module).Description;
|
|
175
174
|
}
|
|
176
175
|
getHelpPageForModule(module) {
|
|
177
|
-
return this.
|
|
176
|
+
return this._adaptable.ModuleService.getModuleInfoByModule(module).HelpPage;
|
|
178
177
|
}
|
|
179
178
|
getUserStateByStateKey(stateKey, returnJson = false) {
|
|
180
179
|
switch (stateKey) {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { ContextMenuApi } from '../ContextMenuApi';
|
|
3
|
-
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
4
3
|
export declare class ContextMenuApiImpl extends ApiBase implements ContextMenuApi {
|
|
5
|
-
constructor(adaptable: IAdaptable);
|
|
6
4
|
hideContextMenu(): void;
|
|
7
5
|
}
|
|
@@ -3,11 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ContextMenuApiImpl = void 0;
|
|
4
4
|
const ApiBase_1 = require("./ApiBase");
|
|
5
5
|
class ContextMenuApiImpl extends ApiBase_1.ApiBase {
|
|
6
|
-
constructor(adaptable) {
|
|
7
|
-
super(adaptable);
|
|
8
|
-
}
|
|
9
6
|
hideContextMenu() {
|
|
10
|
-
this.
|
|
7
|
+
this.getAgGridApi().hidePopupMenu();
|
|
11
8
|
}
|
|
12
9
|
}
|
|
13
10
|
exports.ContextMenuApiImpl = ContextMenuApiImpl;
|
|
@@ -5,7 +5,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
5
5
|
import { CustomSortInternalApi } from '../Internal/CustomSortInternalApi';
|
|
6
6
|
export declare class CustomSortApiImpl extends ApiBase implements CustomSortApi {
|
|
7
7
|
internalApi: CustomSortInternalApi;
|
|
8
|
-
constructor(
|
|
8
|
+
constructor(_adaptable: IAdaptable);
|
|
9
9
|
getCustomSortState(): CustomSortState;
|
|
10
10
|
getCustomSorts(config?: {
|
|
11
11
|
includeLayoutNotAssociatedObjects?: boolean;
|
|
@@ -7,9 +7,9 @@ const CustomSortRedux = tslib_1.__importStar(require("../../Redux/ActionsReducer
|
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
8
|
const CustomSortInternalApi_1 = require("../Internal/CustomSortInternalApi");
|
|
9
9
|
class CustomSortApiImpl extends ApiBase_1.ApiBase {
|
|
10
|
-
constructor(
|
|
11
|
-
super(
|
|
12
|
-
this.internalApi = new CustomSortInternalApi_1.CustomSortInternalApi(
|
|
10
|
+
constructor(_adaptable) {
|
|
11
|
+
super(_adaptable);
|
|
12
|
+
this.internalApi = new CustomSortInternalApi_1.CustomSortInternalApi(_adaptable);
|
|
13
13
|
}
|
|
14
14
|
getCustomSortState() {
|
|
15
15
|
return this.getAdaptableState().CustomSort;
|
|
@@ -8,7 +8,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
8
8
|
import { DashboardInternalApi } from '../Internal/DashboardInternalApi';
|
|
9
9
|
export declare class DashboardApiImpl extends ApiBase implements DashboardApi {
|
|
10
10
|
internalApi: DashboardInternalApi;
|
|
11
|
-
constructor(
|
|
11
|
+
constructor(_adaptable: IAdaptable);
|
|
12
12
|
getDashboardState(): DashboardState;
|
|
13
13
|
getCustomToolbars(): CustomToolbar[];
|
|
14
14
|
getCustomDashboardButtons(): AdaptableButton<DashboardButtonContext>[];
|
|
@@ -9,9 +9,9 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
9
9
|
const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
|
|
10
10
|
const DashboardInternalApi_1 = require("../Internal/DashboardInternalApi");
|
|
11
11
|
class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
12
|
-
constructor(
|
|
13
|
-
super(
|
|
14
|
-
this.internalApi = new DashboardInternalApi_1.DashboardInternalApi(
|
|
12
|
+
constructor(_adaptable) {
|
|
13
|
+
super(_adaptable);
|
|
14
|
+
this.internalApi = new DashboardInternalApi_1.DashboardInternalApi(_adaptable);
|
|
15
15
|
}
|
|
16
16
|
getDashboardState() {
|
|
17
17
|
return this.getAdaptableState().Dashboard;
|
|
@@ -24,7 +24,7 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
|
24
24
|
}
|
|
25
25
|
getCustomDashboardButtonByLabel(buttonLabel) {
|
|
26
26
|
const api = this.getAdaptableApi();
|
|
27
|
-
const dashboardContext = Object.assign(Object.assign({}, this.
|
|
27
|
+
const dashboardContext = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { dashboardState: api.dashboardApi.getDashboardState() });
|
|
28
28
|
return this.getDashboardOptions().customDashboardButtons.find((cb) => {
|
|
29
29
|
api.internalApi.getLabelForButton(cb, dashboardContext) == buttonLabel;
|
|
30
30
|
});
|
|
@@ -56,7 +56,7 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
|
56
56
|
setCustomToolbarHTMLContent(customToolbarName, htmlContent) {
|
|
57
57
|
let customRenderedContainer = this.getCustomToolbarHTMLElement(customToolbarName);
|
|
58
58
|
if (customRenderedContainer) {
|
|
59
|
-
this.
|
|
59
|
+
this._adaptable.renderReactRoot(React.createElement("div", { dangerouslySetInnerHTML: { __html: htmlContent } }), customRenderedContainer);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
getCustomToolbarByName(customToolbarName) {
|
|
@@ -4,7 +4,7 @@ import { DataImportInternalApi } from '../Internal/DataImportInternalApi';
|
|
|
4
4
|
import { ApiBase } from './ApiBase';
|
|
5
5
|
export declare class DataImportApiImpl extends ApiBase implements DataImportApi {
|
|
6
6
|
internalApi: DataImportInternalApi;
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(_adaptable: IAdaptable);
|
|
8
8
|
openImportWizard(): void;
|
|
9
9
|
importData(partialRows: any[]): void;
|
|
10
10
|
}
|
|
@@ -4,9 +4,9 @@ exports.DataImportApiImpl = void 0;
|
|
|
4
4
|
const DataImportInternalApi_1 = require("../Internal/DataImportInternalApi");
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
class DataImportApiImpl extends ApiBase_1.ApiBase {
|
|
7
|
-
constructor(
|
|
8
|
-
super(
|
|
9
|
-
this.internalApi = new DataImportInternalApi_1.DataImportInternalApi(
|
|
7
|
+
constructor(_adaptable) {
|
|
8
|
+
super(_adaptable);
|
|
9
|
+
this.internalApi = new DataImportInternalApi_1.DataImportInternalApi(_adaptable);
|
|
10
10
|
}
|
|
11
11
|
openImportWizard() {
|
|
12
12
|
this.getSettingsPanelApi().openSettingsPanel('DataImport');
|
|
@@ -5,7 +5,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
5
5
|
import { DataSetInternalApi } from '../Internal/DataSetInternalApi';
|
|
6
6
|
export declare class DataSetApiImpl extends ApiBase implements DataSetApi {
|
|
7
7
|
internalApi: DataSetInternalApi;
|
|
8
|
-
constructor(
|
|
8
|
+
constructor(_adaptable: IAdaptable);
|
|
9
9
|
getDataSets(): DataSet[];
|
|
10
10
|
getCurrentDataSet(): DataSet | undefined;
|
|
11
11
|
getDataSetByName(dataSetName: string): DataSet | undefined;
|
|
@@ -7,13 +7,13 @@ const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Sy
|
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
8
|
const DataSetInternalApi_1 = require("../Internal/DataSetInternalApi");
|
|
9
9
|
class DataSetApiImpl extends ApiBase_1.ApiBase {
|
|
10
|
-
constructor(
|
|
11
|
-
super(
|
|
12
|
-
this.internalApi = new DataSetInternalApi_1.DataSetInternalApi(
|
|
10
|
+
constructor(_adaptable) {
|
|
11
|
+
super(_adaptable);
|
|
12
|
+
this.internalApi = new DataSetInternalApi_1.DataSetInternalApi(_adaptable);
|
|
13
13
|
}
|
|
14
14
|
getDataSets() {
|
|
15
|
-
var _a, _b
|
|
16
|
-
return (
|
|
15
|
+
var _a, _b;
|
|
16
|
+
return (_b = (_a = this.getDataSetOptions()) === null || _a === void 0 ? void 0 : _a.dataSets) !== null && _b !== void 0 ? _b : [];
|
|
17
17
|
}
|
|
18
18
|
getCurrentDataSet() {
|
|
19
19
|
let currentDataSetName = this.getAdaptableState().System.CurrentDataSet;
|
|
@@ -5,7 +5,7 @@ import { EntitlementInternalApi } from '../Internal/EntitlementInternalApi';
|
|
|
5
5
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
6
6
|
export declare class EntitlementApiImpl extends ApiBase implements EntitlementApi {
|
|
7
7
|
internalApi: EntitlementInternalApi;
|
|
8
|
-
constructor(
|
|
8
|
+
constructor(_adaptable: IAdaptable);
|
|
9
9
|
getEntitlementAccessLevelForModule(adaptableModule: AdaptableModule): AccessLevel;
|
|
10
10
|
isObjectReadonly(object: AdaptableObject): boolean;
|
|
11
11
|
isModuleHiddenEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
@@ -4,21 +4,21 @@ exports.EntitlementApiImpl = void 0;
|
|
|
4
4
|
const ApiBase_1 = require("./ApiBase");
|
|
5
5
|
const EntitlementInternalApi_1 = require("../Internal/EntitlementInternalApi");
|
|
6
6
|
class EntitlementApiImpl extends ApiBase_1.ApiBase {
|
|
7
|
-
constructor(
|
|
8
|
-
super(
|
|
9
|
-
this.internalApi = new EntitlementInternalApi_1.EntitlementInternalApi(
|
|
7
|
+
constructor(_adaptable) {
|
|
8
|
+
super(_adaptable);
|
|
9
|
+
this.internalApi = new EntitlementInternalApi_1.EntitlementInternalApi(_adaptable);
|
|
10
10
|
}
|
|
11
11
|
getEntitlementAccessLevelForModule(adaptableModule) {
|
|
12
12
|
let entitlementOptions = this.getEntitlementOptions();
|
|
13
13
|
if (entitlementOptions) {
|
|
14
|
-
const defaultAccessLevelContext = this.
|
|
14
|
+
const defaultAccessLevelContext = this.getAdaptableInternalApi().buildBaseContext();
|
|
15
15
|
const defaultAccessLevel = typeof entitlementOptions.defaultAccessLevel === 'function'
|
|
16
16
|
? entitlementOptions.defaultAccessLevel(defaultAccessLevelContext)
|
|
17
17
|
: entitlementOptions.defaultAccessLevel;
|
|
18
18
|
const moduleEntitlements = entitlementOptions.moduleEntitlements;
|
|
19
19
|
if (moduleEntitlements) {
|
|
20
20
|
if (typeof moduleEntitlements === 'function') {
|
|
21
|
-
const entitlementContext = Object.assign(Object.assign({ adaptableModule }, this.
|
|
21
|
+
const entitlementContext = Object.assign(Object.assign({ adaptableModule }, this.getAdaptableInternalApi().buildBaseContext()), { defaultAccessLevel });
|
|
22
22
|
const dynamicModuleEntitlement = moduleEntitlements(entitlementContext);
|
|
23
23
|
return dynamicModuleEntitlement !== null && dynamicModuleEntitlement !== void 0 ? dynamicModuleEntitlement : defaultAccessLevel;
|
|
24
24
|
}
|
|
@@ -4,7 +4,7 @@ import { EventApi } from '../EventApi';
|
|
|
4
4
|
import { EmitterCallback } from '../../Utilities/Emitter';
|
|
5
5
|
export declare class EventApiImpl extends ApiBase implements EventApi {
|
|
6
6
|
private emitter;
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(_adaptable: IAdaptable);
|
|
8
8
|
destroy(): void;
|
|
9
9
|
on: (eventName: string, callback: EmitterCallback) => (() => void);
|
|
10
10
|
off: (eventName: string, callback: EmitterCallback) => void;
|
|
@@ -5,8 +5,8 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
const Emitter_1 = tslib_1.__importDefault(require("../../Utilities/Emitter"));
|
|
7
7
|
class EventApiImpl extends ApiBase_1.ApiBase {
|
|
8
|
-
constructor(
|
|
9
|
-
super(
|
|
8
|
+
constructor(_adaptable) {
|
|
9
|
+
super(_adaptable);
|
|
10
10
|
this.on = (eventName, callback) => {
|
|
11
11
|
let result;
|
|
12
12
|
if (eventName === 'AdaptableReady') {
|
|
@@ -8,7 +8,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
8
8
|
import { ExportInternalApi } from '../Internal/ExportInternalApi';
|
|
9
9
|
export declare class ExportApiImpl extends ApiBase implements ExportApi {
|
|
10
10
|
internalApi: ExportInternalApi;
|
|
11
|
-
constructor(
|
|
11
|
+
constructor(_adaptable: IAdaptable);
|
|
12
12
|
getExportState(): ExportState;
|
|
13
13
|
getCurrentReportName(): string;
|
|
14
14
|
getCurrentReport(): Report;
|
|
@@ -10,9 +10,9 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectF
|
|
|
10
10
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
11
11
|
const ExportInternalApi_1 = require("../Internal/ExportInternalApi");
|
|
12
12
|
class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
13
|
-
constructor(
|
|
14
|
-
super(
|
|
15
|
-
this.internalApi = new ExportInternalApi_1.ExportInternalApi(
|
|
13
|
+
constructor(_adaptable) {
|
|
14
|
+
super(_adaptable);
|
|
15
|
+
this.internalApi = new ExportInternalApi_1.ExportInternalApi(_adaptable);
|
|
16
16
|
}
|
|
17
17
|
getExportState() {
|
|
18
18
|
return this.getAdaptableState().Export;
|
|
@@ -101,10 +101,10 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
101
101
|
return (_a = this.getCustomDestinations().find((destination) => destination.name === destinationName)) === null || _a === void 0 ? void 0 : _a.form;
|
|
102
102
|
}
|
|
103
103
|
canExportToExcel() {
|
|
104
|
-
return this.
|
|
104
|
+
return this._adaptable.canExportToExcel();
|
|
105
105
|
}
|
|
106
106
|
exportDataToExcel(reportData, fileName) {
|
|
107
|
-
this.
|
|
107
|
+
this._adaptable.exportToExcel(reportData, fileName);
|
|
108
108
|
}
|
|
109
109
|
openExportSettingsPanel() {
|
|
110
110
|
this.showModulePopup(ModuleConstants.ExportModuleId);
|
|
@@ -120,7 +120,7 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
120
120
|
return reports === null || reports === void 0 ? void 0 : reports.map((report) => this.getReportById(report.Uuid));
|
|
121
121
|
}
|
|
122
122
|
exportVisualDataToExcel() {
|
|
123
|
-
this.
|
|
123
|
+
this._adaptable.exportVisualDataToExcel();
|
|
124
124
|
}
|
|
125
125
|
getExternalReports() {
|
|
126
126
|
var _a;
|
|
@@ -150,7 +150,7 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
150
150
|
isColumnExportable(adaptableColumn) {
|
|
151
151
|
const isExportableFn = this.getExportOptions().isColumnExportable;
|
|
152
152
|
if (typeof isExportableFn === 'function') {
|
|
153
|
-
return isExportableFn(Object.assign(Object.assign({}, this.
|
|
153
|
+
return isExportableFn(Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { adaptableColumn }));
|
|
154
154
|
}
|
|
155
155
|
return true;
|
|
156
156
|
}
|
|
@@ -7,7 +7,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
7
7
|
import { ExpressionInternalApi } from '../Internal/ExpressionInternalApi';
|
|
8
8
|
export declare class ExpressionApiImpl extends ApiBase implements ExpressionApi {
|
|
9
9
|
internalApi: ExpressionInternalApi;
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(_adaptable: IAdaptable);
|
|
11
11
|
isValidBooleanExpression(query: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
12
12
|
isValidObservableExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
13
13
|
isValidAggregatedBooleanExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|