@adaptabletools/adaptable-cjs 18.0.0-canary.11 → 18.0.0-canary.13
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/base.css +5 -1
- package/base.css.map +1 -1
- package/index.css +7 -1
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +2 -2
- package/src/AdaptableOptions/ColumnOptions.d.ts +7 -4
- package/src/AdaptableOptions/CommentOptions.d.ts +9 -7
- package/src/AdaptableOptions/MenuOptions.d.ts +1 -53
- package/src/AdaptableOptions/MenuOptions.js +3 -3
- package/src/AdaptableOptions/NoteOptions.d.ts +4 -1
- package/src/Api/AdaptableApi.d.ts +4 -4
- package/src/Api/ColumnApi.d.ts +4 -0
- package/src/Api/CommentApi.d.ts +11 -12
- package/src/Api/ConfigApi.d.ts +3 -4
- package/src/Api/EventApi.d.ts +7 -9
- package/src/Api/Events/CommentChanged.d.ts +11 -0
- package/src/Api/GridApi.d.ts +6 -1
- package/src/Api/Implementation/ActionColumnApiImpl.js +3 -6
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -2
- package/src/Api/Implementation/ApiBase.d.ts +2 -2
- package/src/Api/Implementation/ApiBase.js +1 -1
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +10 -0
- package/src/Api/Implementation/CommentsApiImpl.d.ts +1 -2
- package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ConfigApiImpl.js +8 -8
- package/src/Api/Implementation/GridApiImpl.d.ts +3 -1
- package/src/Api/Implementation/GridApiImpl.js +17 -1
- package/src/Api/Implementation/{NotesApiImpl.d.ts → NoteApiImpl.d.ts} +8 -8
- package/src/Api/Implementation/{NotesApiImpl.js → NoteApiImpl.js} +14 -14
- package/src/Api/Implementation/OptionsApiImpl.d.ts +4 -5
- package/src/Api/Implementation/OptionsApiImpl.js +2 -12
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +0 -3
- package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -8
- package/src/Api/Internal/ActionRowInternalApi.js +1 -1
- package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -3
- package/src/Api/Internal/AdaptableInternalApi.js +11 -11
- package/src/Api/Internal/CalculatedColumnInternalApi.js +3 -2
- package/src/Api/Internal/ExportInternalApi.d.ts +2 -1
- package/src/Api/Internal/ExportInternalApi.js +4 -1
- package/src/Api/Internal/Fdc3InternalApi.js +2 -2
- package/src/Api/Internal/FreeTextColumnInternalApi.js +3 -2
- package/src/Api/Internal/GridInternalApi.d.ts +2 -0
- package/src/Api/Internal/GridInternalApi.js +15 -0
- package/src/Api/Internal/{NotesInternalApi.d.ts → NoteInternalApi.d.ts} +1 -1
- package/src/Api/Internal/{NotesInternalApi.js → NoteInternalApi.js} +3 -3
- package/src/Api/NoteApi.d.ts +48 -0
- package/src/Api/OptionsApi.d.ts +8 -12
- package/src/Api/UserInterfaceApi.d.ts +0 -11
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
- package/src/PredefinedConfig/CommentState.d.ts +27 -23
- package/src/PredefinedConfig/Common/RowSummary.d.ts +6 -0
- package/src/PredefinedConfig/Common/TransposeConfig.d.ts +6 -0
- package/src/PredefinedConfig/Common/Types.d.ts +4 -4
- package/src/PredefinedConfig/Common/Types.js +4 -1
- package/src/PredefinedConfig/{NotesState.d.ts → NoteState.d.ts} +3 -3
- package/src/PredefinedConfig/{CellAddress.js → NoteState.js} +0 -3
- package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -2
- package/src/PredefinedConfig/Selection/GridCell.d.ts +13 -0
- package/src/PredefinedConfig/SystemState.d.ts +2 -3
- package/src/Redux/ActionsReducers/NoteRedux.d.ts +38 -0
- package/src/Redux/ActionsReducers/{NotesRedux.js → NoteRedux.js} +27 -27
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/SystemRedux.js +3 -3
- package/src/Redux/Store/AdaptableStore.js +10 -16
- package/src/Strategy/{CommentsModule.d.ts → CommentModule.d.ts} +1 -5
- package/src/Strategy/{CommentsModule.js → CommentModule.js} +11 -12
- package/src/Strategy/LayoutModule.d.ts +1 -0
- package/src/Strategy/LayoutModule.js +17 -1
- package/src/Strategy/{NotesModule.d.ts → NoteModule.d.ts} +2 -1
- package/src/Strategy/{NotesModule.js → NoteModule.js} +13 -9
- package/src/Strategy/Utilities/getScopeViewItems.js +3 -0
- package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
- package/src/Utilities/Constants/ModuleConstants.js +7 -7
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -2
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +10 -0
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -3
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +15 -0
- package/src/Utilities/ObjectFactory.d.ts +3 -3
- package/src/Utilities/ObjectFactory.js +4 -24
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +1 -0
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +12 -10
- package/src/Utilities/Services/CellPopupService.js +2 -2
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -4
- package/src/Utilities/Services/ModuleService.js +4 -0
- package/src/Utilities/Services/QueryLanguageService.js +2 -2
- package/src/Utilities/Services/ReportService.d.ts +7 -5
- package/src/Utilities/Services/ReportService.js +238 -22
- package/src/Utilities/Services/SummaryService.d.ts +1 -1
- package/src/Utilities/adaptableQlUtils.d.ts +2 -0
- package/src/Utilities/adaptableQlUtils.js +18 -0
- package/src/View/AdaptableViewFactory.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +1 -1
- package/src/View/Comments/CommentsEditor.js +1 -1
- package/src/View/Comments/CommentsPopup.js +8 -4
- package/src/View/Components/NewScopeComponent.js +2 -2
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +6 -6
- package/src/View/Components/ValueSelector/index.d.ts +1 -0
- package/src/View/Components/ValueSelector/index.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +0 -1
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +3 -1
- package/src/View/Layout/LayoutViewPanel.js +2 -1
- package/src/View/Layout/TransposedPopup.js +19 -18
- package/src/View/Layout/Wizard/LayoutWizard.js +11 -2
- package/src/View/Layout/Wizard/sections/RowSummarySection.d.ts +8 -0
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +146 -0
- package/src/View/Note/NotePopup.d.ts +2 -0
- package/src/View/{Notes/NotesPopup.js → Note/NotePopup.js} +8 -8
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/agGrid/AdaptableAgGrid.d.ts +2 -0
- package/src/agGrid/AdaptableAgGrid.js +97 -58
- package/src/agGrid/AgGridAdapter.d.ts +2 -0
- package/src/agGrid/AgGridAdapter.js +8 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -1
- package/src/agGrid/AgGridColumnAdapter.js +4 -4
- package/src/agGrid/AgGridOptionsService.d.ts +4 -1
- package/src/agGrid/AgGridOptionsService.js +22 -0
- package/src/agGrid/defaultAdaptableOptions.js +0 -7
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +2 -1
- package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +0 -1
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +3 -17
- package/src/components/icons/note.js +2 -2
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +77 -14
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/parser.js +117 -1257
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +1 -1
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +2 -1
- package/src/parser/src/types.d.ts +2 -2
- package/src/types.d.ts +23 -20
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/Api/Events/CommentsChangedInfo.d.ts +0 -5
- package/src/Api/NotesApi.d.ts +0 -48
- package/src/PredefinedConfig/CellAddress.d.ts +0 -13
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +0 -38
- package/src/View/Notes/NotesPopup.d.ts +0 -2
- /package/src/Api/Events/{CommentsChangedInfo.js → CommentChanged.js} +0 -0
- /package/src/Api/{NotesApi.js → NoteApi.js} +0 -0
- /package/src/PredefinedConfig/{NotesState.js → Common/TransposeConfig.js} +0 -0
- /package/src/View/{Notes → Note}/NoteEditor.d.ts +0 -0
- /package/src/View/{Notes → Note}/NoteEditor.js +0 -0
|
@@ -37,6 +37,15 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
37
37
|
getFilteredData() {
|
|
38
38
|
return this.adaptable.getFilteredData();
|
|
39
39
|
}
|
|
40
|
+
getVisibleData() {
|
|
41
|
+
const data = [];
|
|
42
|
+
this.adaptable.forAllVisibleRowNodesDo((rowNode) => {
|
|
43
|
+
if (!this.isGroupRowNode(rowNode)) {
|
|
44
|
+
data.push(rowNode.data);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
return data;
|
|
48
|
+
}
|
|
40
49
|
async updateGridData(dataRows, dataUpdateConfig) {
|
|
41
50
|
const rowNodes = await this.adaptable.updateRows(dataRows, dataUpdateConfig);
|
|
42
51
|
this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, 'Edit');
|
|
@@ -520,7 +529,12 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
520
529
|
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'getVisibleRowCount', 'getRowCount');
|
|
521
530
|
return this.getRowCount();
|
|
522
531
|
}
|
|
523
|
-
showTransposedView(
|
|
532
|
+
showTransposedView(transposeConfig) {
|
|
533
|
+
var _a, _b, _c, _d;
|
|
534
|
+
const transposedColumnId = (_a = transposeConfig.transposedColumnId) !== null && _a !== void 0 ? _a : this.getAdaptableApi().optionsApi.getPrimaryKey();
|
|
535
|
+
const hideTransposedColumn = (_b = transposeConfig.hideTransposedColumn) !== null && _b !== void 0 ? _b : true;
|
|
536
|
+
const visibleColumns = (_c = transposeConfig.visibleColumns) !== null && _c !== void 0 ? _c : false;
|
|
537
|
+
const visibleRows = (_d = transposeConfig.visibleRows) !== null && _d !== void 0 ? _d : false;
|
|
524
538
|
this.adaptable.api.internalApi.showPopupWindow({
|
|
525
539
|
id: windowFactory_1.WINDOW_SHOW_TRANSPOSED_VIEW,
|
|
526
540
|
factoryId: windowFactory_1.WINDOW_SHOW_TRANSPOSED_VIEW,
|
|
@@ -529,6 +543,8 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
529
543
|
popupProps: {
|
|
530
544
|
transposedColumnId,
|
|
531
545
|
hideTransposedColumn,
|
|
546
|
+
visibleColumns,
|
|
547
|
+
visibleRows,
|
|
532
548
|
},
|
|
533
549
|
});
|
|
534
550
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
|
-
import {
|
|
3
|
-
import { AdaptableNote, AdaptableNotes,
|
|
4
|
-
import { CellAddress } from '../../PredefinedConfig/CellAddress';
|
|
2
|
+
import { NoteApi } from '../NoteApi';
|
|
3
|
+
import { AdaptableNote, AdaptableNotes, NoteState } from '../../PredefinedConfig/NoteState';
|
|
5
4
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import { NoteInternalApi } from '../Internal/NoteInternalApi';
|
|
6
|
+
import { CellAddress } from '../../types';
|
|
7
|
+
export declare class NoteApiImpl extends ApiBase implements NoteApi {
|
|
8
|
+
internalApi: NoteInternalApi;
|
|
9
9
|
constructor(adaptable: IAdaptable);
|
|
10
10
|
addNote(noteStr: string, primaryKeyValue: any, columnId: string): void;
|
|
11
11
|
editNote(note: AdaptableNote): void;
|
|
12
12
|
updateNoteText(noteStr: string, note: AdaptableNote): void;
|
|
13
13
|
deleteNote(note: AdaptableNote): void;
|
|
14
|
-
|
|
14
|
+
getNoteState(): NoteState;
|
|
15
15
|
getAllNotes(): AdaptableNotes;
|
|
16
|
-
|
|
16
|
+
getNotesForCell(address: CellAddress): AdaptableNote[];
|
|
17
17
|
getNoteByUuid(uuid: string): AdaptableNote | undefined;
|
|
18
18
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NoteApiImpl = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
class
|
|
6
|
+
const NoteRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NoteRedux"));
|
|
7
|
+
const NoteInternalApi_1 = require("../Internal/NoteInternalApi");
|
|
8
|
+
class NoteApiImpl extends ApiBase_1.ApiBase {
|
|
9
9
|
constructor(adaptable) {
|
|
10
10
|
super(adaptable);
|
|
11
|
-
this.internalApi = new
|
|
11
|
+
this.internalApi = new NoteInternalApi_1.NoteInternalApi(adaptable);
|
|
12
12
|
}
|
|
13
13
|
addNote(noteStr, primaryKeyValue, columnId) {
|
|
14
14
|
const note = {
|
|
@@ -17,29 +17,29 @@ class NotesApiImpl extends ApiBase_1.ApiBase {
|
|
|
17
17
|
ColumnId: columnId,
|
|
18
18
|
Timestamp: Date.now(),
|
|
19
19
|
};
|
|
20
|
-
this.dispatchAction(
|
|
20
|
+
this.dispatchAction(NoteRedux.NoteAdd(note));
|
|
21
21
|
}
|
|
22
22
|
editNote(note) {
|
|
23
23
|
note.Timestamp = Date.now();
|
|
24
|
-
this.dispatchAction(
|
|
24
|
+
this.dispatchAction(NoteRedux.NoteEdit(note));
|
|
25
25
|
}
|
|
26
26
|
updateNoteText(noteStr, note) {
|
|
27
27
|
this.editNote(Object.assign(Object.assign({}, note), { Text: noteStr }));
|
|
28
28
|
}
|
|
29
29
|
deleteNote(note) {
|
|
30
|
-
this.dispatchAction(
|
|
30
|
+
this.dispatchAction(NoteRedux.NoteDelete(note));
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
return this.getAdaptableState().
|
|
32
|
+
getNoteState() {
|
|
33
|
+
return this.getAdaptableState().Note;
|
|
34
34
|
}
|
|
35
35
|
getAllNotes() {
|
|
36
|
-
return this.
|
|
36
|
+
return this.getNoteState().Notes;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
return
|
|
38
|
+
getNotesForCell(address) {
|
|
39
|
+
return NoteRedux.GetNotesSelector(this.getAdaptableState().Note, address);
|
|
40
40
|
}
|
|
41
41
|
getNoteByUuid(uuid) {
|
|
42
42
|
return this.getAllNotes().find((note) => note.Uuid === uuid);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
exports.
|
|
45
|
+
exports.NoteApiImpl = NoteApiImpl;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
|
-
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions,
|
|
2
|
+
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, NoteOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, DataSetOptions, EditOptions, EntitlementOptions, ExportOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotificationsOptions, OptionsApi, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions, GridFilterOptions } from '../../types';
|
|
3
3
|
import { GroupingOptions } from '../../AdaptableOptions/GroupingOptions';
|
|
4
4
|
import { CustomSortOptions } from '../../AdaptableOptions/CustomSortOptions';
|
|
5
5
|
import { Fdc3Options } from '../../AdaptableOptions/Fdc3Options';
|
|
6
6
|
import { ExpressionOptions } from '../../AdaptableOptions/ExpressionOptions';
|
|
7
7
|
import { ColumnFilterOptions } from '../../AdaptableOptions/ColumnFilterOptions';
|
|
8
|
-
import {
|
|
8
|
+
import { CommentOptions } from '../../AdaptableOptions/CommentOptions';
|
|
9
9
|
export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
|
|
10
10
|
getAdaptableId(): string;
|
|
11
11
|
getAdaptableStateKey(): string;
|
|
@@ -15,13 +15,12 @@ export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
|
|
|
15
15
|
getUserName(): string;
|
|
16
16
|
getAdaptableOptions(): AdaptableOptions;
|
|
17
17
|
getActionColumnOptions(): ActionColumnOptions;
|
|
18
|
-
getColumnTypes(): string[];
|
|
19
18
|
getActionRowOptions(): ActionRowOptions;
|
|
20
19
|
getCellSummaryOptions(): CellSummaryOptions;
|
|
21
20
|
getCalendarOptions(): CalendarOptions;
|
|
22
21
|
getColumnOptions(): ColumnOptions;
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
getNoteOptions(): NoteOptions;
|
|
23
|
+
getCommentOptions(): Readonly<CommentOptions<any>>;
|
|
25
24
|
getCustomSortOptions(): CustomSortOptions;
|
|
26
25
|
getContainerOptions(): ContainerOptions;
|
|
27
26
|
getDataSetOptions(): DataSetOptions;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OptionsApiImpl = void 0;
|
|
4
4
|
const ApiBase_1 = require("./ApiBase");
|
|
5
|
-
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
6
5
|
class OptionsApiImpl extends ApiBase_1.ApiBase {
|
|
7
6
|
getAdaptableId() {
|
|
8
7
|
return this.adaptable.adaptableOptions.adaptableId;
|
|
@@ -28,15 +27,6 @@ class OptionsApiImpl extends ApiBase_1.ApiBase {
|
|
|
28
27
|
getActionColumnOptions() {
|
|
29
28
|
return this.getOptions().actionColumnOptions;
|
|
30
29
|
}
|
|
31
|
-
getColumnTypes() {
|
|
32
|
-
const columnTypes = this.getOptions().columnOptions.columnTypes;
|
|
33
|
-
if (typeof columnTypes === 'function') {
|
|
34
|
-
return columnTypes((0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi()));
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return columnTypes;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
30
|
getActionRowOptions() {
|
|
41
31
|
return this.getOptions().actionRowOptions;
|
|
42
32
|
}
|
|
@@ -49,10 +39,10 @@ class OptionsApiImpl extends ApiBase_1.ApiBase {
|
|
|
49
39
|
getColumnOptions() {
|
|
50
40
|
return this.getOptions().columnOptions;
|
|
51
41
|
}
|
|
52
|
-
|
|
42
|
+
getNoteOptions() {
|
|
53
43
|
return this.getOptions().noteOptions;
|
|
54
44
|
}
|
|
55
|
-
|
|
45
|
+
getCommentOptions() {
|
|
56
46
|
return this.getOptions().commentOptions;
|
|
57
47
|
}
|
|
58
48
|
getCustomSortOptions() {
|
|
@@ -2,7 +2,6 @@ import { ApiBase } from './ApiBase';
|
|
|
2
2
|
import { UserInterfaceApi } from '../UserInterfaceApi';
|
|
3
3
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
4
4
|
import { AdaptableStyle } from '../../PredefinedConfig/Common/AdaptableStyle';
|
|
5
|
-
import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
6
5
|
import { BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../../AdaptableOptions/UserInterfaceOptions';
|
|
7
6
|
import { AdaptableObjectTag, CustomWindowConfig, GridCell } from '../../types';
|
|
8
7
|
import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
|
|
@@ -24,8 +23,6 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
|
|
|
24
23
|
getEditLookUpItems(): EditLookUpPermittedValues[];
|
|
25
24
|
getEditLookUpItemForColumn(column: AdaptableColumn): EditLookUpPermittedValues | undefined;
|
|
26
25
|
getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, gridCell: GridCell): any[] | undefined;
|
|
27
|
-
addColumnMenuItem(userMenuItem: UserMenuItem<ColumnMenuContext>): void;
|
|
28
|
-
addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
|
|
29
26
|
getEditableCellStyle(): AdaptableStyle | undefined;
|
|
30
27
|
getReadOnlyCellStyle(): AdaptableStyle | undefined;
|
|
31
28
|
getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
|
|
@@ -146,14 +146,6 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
146
146
|
}
|
|
147
147
|
return this.adaptable.api.gridApi.internalApi.getEditLookUpValuesForColumn(editLookUpItem, gridCell.column, gridCell);
|
|
148
148
|
}
|
|
149
|
-
addColumnMenuItem(userMenuItem) {
|
|
150
|
-
var _a;
|
|
151
|
-
(_a = this.getMenuOptions().columnMenuItems) === null || _a === void 0 ? void 0 : _a.push(userMenuItem);
|
|
152
|
-
}
|
|
153
|
-
addContextMenuItem(userMenuItem) {
|
|
154
|
-
var _a;
|
|
155
|
-
(_a = this.getMenuOptions().contextMenuItems) === null || _a === void 0 ? void 0 : _a.push(userMenuItem);
|
|
156
|
-
}
|
|
157
149
|
getEditableCellStyle() {
|
|
158
150
|
return this.getUserInterfaceOptions().editableCellStyle;
|
|
159
151
|
}
|
|
@@ -224,7 +224,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
|
|
|
224
224
|
lockVisible: true,
|
|
225
225
|
suppressColumnsToolPanel: true,
|
|
226
226
|
suppressFiltersToolPanel: true,
|
|
227
|
-
|
|
227
|
+
suppressHeaderMenuButton: true,
|
|
228
228
|
suppressMovable: true,
|
|
229
229
|
filter: false,
|
|
230
230
|
sortable: false,
|
|
@@ -72,7 +72,7 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
72
72
|
includeGroupRows?: boolean;
|
|
73
73
|
filterFn?: (rowNode: IRowNode) => boolean;
|
|
74
74
|
}): void;
|
|
75
|
-
forAllVisibleRowNodesDo(func: (rowNode: IRowNode) => void, config?: {
|
|
75
|
+
forAllVisibleRowNodesDo(func: (rowNode: IRowNode, index: number) => void, config?: {
|
|
76
76
|
includeGroupRows?: boolean;
|
|
77
77
|
filterFn?: (rowNode: IRowNode) => boolean;
|
|
78
78
|
}): void;
|
|
@@ -105,8 +105,8 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
105
105
|
getPreviousGroupedColumnsIndex(layoutId: string): {
|
|
106
106
|
[key: string]: number;
|
|
107
107
|
};
|
|
108
|
-
getValueUsingField(rowData: Record<string, any>,
|
|
109
|
-
setValueUsingField(rowData: Record<string, any>,
|
|
108
|
+
getValueUsingField(rowData: Record<string, any>, fieldName: string): any;
|
|
109
|
+
setValueUsingField(rowData: Record<string, any>, fieldName: string, newValue: any): Record<string, any>;
|
|
110
110
|
findAdaptableObjectsByLookupCriteria<T extends AdaptableObjectWithScope>({ scope, tag, ids }: AdaptableObjectLookupCriteria, specificAdaptableObjects: T[]): T[];
|
|
111
111
|
buildBaseContext(): BaseContext;
|
|
112
112
|
getActionButtonsAndActionColumn(colDef: ColDef): {
|
|
@@ -370,17 +370,17 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
370
370
|
return (_a = SystemRedux.SystemPreviousGroupedColumnsSelector(this.getAdaptableState().System)) === null || _a === void 0 ? void 0 : _a[layoutId];
|
|
371
371
|
}
|
|
372
372
|
// "borrowed" from https://github.com/ag-grid/ag-grid/blob/v28.2.1/community-modules/core/src/ts/utils/object.ts#L205
|
|
373
|
-
getValueUsingField(rowData,
|
|
374
|
-
if (!rowData || !(
|
|
373
|
+
getValueUsingField(rowData, fieldName) {
|
|
374
|
+
if (!rowData || !(fieldName === null || fieldName === void 0 ? void 0 : fieldName.length)) {
|
|
375
375
|
return;
|
|
376
376
|
}
|
|
377
|
-
const isColumnValueKeyNested =
|
|
377
|
+
const isColumnValueKeyNested = fieldName === null || fieldName === void 0 ? void 0 : fieldName.includes('.');
|
|
378
378
|
// if no '.', then it's not a deep value
|
|
379
379
|
if (!isColumnValueKeyNested) {
|
|
380
|
-
return rowData[
|
|
380
|
+
return rowData[fieldName];
|
|
381
381
|
}
|
|
382
382
|
// otherwise it is a deep value, so need to dig for it
|
|
383
|
-
const fields =
|
|
383
|
+
const fields = fieldName.split('.');
|
|
384
384
|
let currentObject = rowData;
|
|
385
385
|
for (let i = 0; i < fields.length; i++) {
|
|
386
386
|
if (currentObject == null) {
|
|
@@ -391,22 +391,22 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
391
391
|
return currentObject;
|
|
392
392
|
}
|
|
393
393
|
// "borrowed" from https://github.com/ag-grid/ag-grid/blob/v28.2.1/community-modules/core/src/ts/valueService/valueService.ts#L236
|
|
394
|
-
setValueUsingField(rowData,
|
|
395
|
-
if (!rowData || !(
|
|
394
|
+
setValueUsingField(rowData, fieldName, newValue) {
|
|
395
|
+
if (!rowData || !(fieldName === null || fieldName === void 0 ? void 0 : fieldName.length)) {
|
|
396
396
|
return;
|
|
397
397
|
}
|
|
398
|
-
const isColumnValueKeyContainsDots =
|
|
398
|
+
const isColumnValueKeyContainsDots = fieldName === null || fieldName === void 0 ? void 0 : fieldName.includes('.');
|
|
399
399
|
let valuesAreSame = false;
|
|
400
400
|
if (!isColumnValueKeyContainsDots) {
|
|
401
401
|
// soft comparison to match strings and numbers
|
|
402
|
-
valuesAreSame = rowData[
|
|
402
|
+
valuesAreSame = rowData[fieldName] == newValue;
|
|
403
403
|
if (!valuesAreSame) {
|
|
404
|
-
rowData[
|
|
404
|
+
rowData[fieldName] = newValue;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
else {
|
|
408
408
|
// otherwise it is a deep value, so need to dig for it
|
|
409
|
-
const fieldPieces =
|
|
409
|
+
const fieldPieces = fieldName.split('.');
|
|
410
410
|
let currentObject = rowData;
|
|
411
411
|
while (fieldPieces.length > 0 && currentObject) {
|
|
412
412
|
const fieldPiece = fieldPieces.shift();
|
|
@@ -96,7 +96,8 @@ class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
96
96
|
this.adaptable.api.eventApi.emit('CalculatedColumnChanged', calculatedColumnChangedInfo);
|
|
97
97
|
}
|
|
98
98
|
getColDefsForCalculatedColumns() {
|
|
99
|
-
const
|
|
99
|
+
const defaultSpecialColumnSettings = this.getGridApi().internalApi.deriveSpecialColumnSettingsFromAgGridDefaultColDef();
|
|
100
|
+
const defaultCalculatedColumnSettings = (0, ObjectFactory_1.CreateEmptyCalculatedColumn)(defaultSpecialColumnSettings).CalculatedColumnSettings;
|
|
100
101
|
return this.getCalculatedColumnApi()
|
|
101
102
|
.getCalculatedColumns()
|
|
102
103
|
.map((calculatedColumn) => {
|
|
@@ -143,7 +144,7 @@ class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
143
144
|
enableRowGroup: calculatedColumnSettings.Groupable,
|
|
144
145
|
sortable: calculatedColumnSettings.Sortable,
|
|
145
146
|
enablePivot: calculatedColumnSettings.Pivotable,
|
|
146
|
-
|
|
147
|
+
suppressHeaderMenuButton: calculatedColumnSettings.SuppressMenu,
|
|
147
148
|
suppressMovable: calculatedColumnSettings.SuppressMovable,
|
|
148
149
|
type: columnTypes,
|
|
149
150
|
valueGetter,
|
|
@@ -2,7 +2,7 @@ import { ApiBase } from '../Implementation/ApiBase';
|
|
|
2
2
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
3
3
|
import { Report } from '../../PredefinedConfig/ExportState';
|
|
4
4
|
import { AdaptableColumnType } from '../../PredefinedConfig/Common/Types';
|
|
5
|
-
import { ExcelDataType } from '@ag-grid-community/core';
|
|
5
|
+
import { ExcelDataType, ExcelStyle } from '@ag-grid-community/core';
|
|
6
6
|
import { AdaptableColumnDataType } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
7
7
|
import { DataFormatType } from '../../AdaptableOptions/ExportOptions';
|
|
8
8
|
export declare class ExportInternalApi extends ApiBase {
|
|
@@ -17,4 +17,5 @@ export declare class ExportInternalApi extends ApiBase {
|
|
|
17
17
|
isDateCellExportedAsFormattedValue(): boolean;
|
|
18
18
|
getCellExportFormatType(columnDataType: AdaptableColumnDataType): DataFormatType;
|
|
19
19
|
isDestinationEnabled(destination: string): boolean;
|
|
20
|
+
getExcelStylesForVisualDataExport(original_excelStyles: ExcelStyle[]): ExcelStyle[];
|
|
20
21
|
}
|
|
@@ -95,7 +95,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
isVisualDataExportInProgress() {
|
|
98
|
-
return this.getAdaptableState().System.Export.
|
|
98
|
+
return this.getAdaptableState().System.Export.visualDataExportInProgress;
|
|
99
99
|
}
|
|
100
100
|
isDateCellExportedAsFormattedValue() {
|
|
101
101
|
return (!!this.getExportOptions().exportDateFormat ||
|
|
@@ -126,5 +126,8 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
|
|
|
126
126
|
}
|
|
127
127
|
return true;
|
|
128
128
|
}
|
|
129
|
+
getExcelStylesForVisualDataExport(original_excelStyles) {
|
|
130
|
+
return [];
|
|
131
|
+
}
|
|
129
132
|
}
|
|
130
133
|
exports.ExportInternalApi = ExportInternalApi;
|
|
@@ -42,7 +42,7 @@ class Fdc3InternalApi extends ApiBase_1.ApiBase {
|
|
|
42
42
|
editable: false,
|
|
43
43
|
width: actionColumnConfig.width,
|
|
44
44
|
resizable: actionColumnConfig.resizable,
|
|
45
|
-
|
|
45
|
+
suppressHeaderMenuButton: true,
|
|
46
46
|
suppressMovable: !actionColumnConfig.movable,
|
|
47
47
|
filter: false,
|
|
48
48
|
sortable: false,
|
|
@@ -62,7 +62,7 @@ class Fdc3InternalApi extends ApiBase_1.ApiBase {
|
|
|
62
62
|
editable: false,
|
|
63
63
|
width: actionColumnConfig.defaultWidth,
|
|
64
64
|
resizable: true,
|
|
65
|
-
|
|
65
|
+
suppressHeaderMenuButton: true,
|
|
66
66
|
suppressMovable: false,
|
|
67
67
|
filter: false,
|
|
68
68
|
sortable: false,
|
|
@@ -47,7 +47,8 @@ class FreeTextColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
47
47
|
return references;
|
|
48
48
|
}
|
|
49
49
|
getColDefsForFreeTextColumns() {
|
|
50
|
-
const
|
|
50
|
+
const defaultSpecialColumnSettings = this.getGridApi().internalApi.deriveSpecialColumnSettingsFromAgGridDefaultColDef();
|
|
51
|
+
const defaultFreeTextColumnSettings = (0, ObjectFactory_1.CreateEmptyFreeTextColumn)(defaultSpecialColumnSettings).FreeTextColumnSettings;
|
|
51
52
|
return this.getFreeTextColumnApi()
|
|
52
53
|
.getFreeTextColumns()
|
|
53
54
|
.map((freeTextColumn) => {
|
|
@@ -78,7 +79,7 @@ class FreeTextColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
78
79
|
enableRowGroup: freeTextColumnSettings.Groupable,
|
|
79
80
|
sortable: freeTextColumnSettings.Sortable,
|
|
80
81
|
enablePivot: freeTextColumnSettings.Pivotable,
|
|
81
|
-
|
|
82
|
+
suppressHeaderMenuButton: freeTextColumnSettings.SuppressMenu,
|
|
82
83
|
suppressMovable: freeTextColumnSettings.SuppressMovable,
|
|
83
84
|
cellEditor: dataTypeEditor !== null && dataTypeEditor !== void 0 ? dataTypeEditor : (freeTextColumn.TextEditor && freeTextColumn.TextEditor == 'Large'
|
|
84
85
|
? 'agLargeTextCellEditor'
|
|
@@ -10,6 +10,7 @@ import { AdaptableMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
|
10
10
|
import { EditLookUpPermittedValues } from '../../AdaptableOptions/UserInterfaceOptions';
|
|
11
11
|
import { DistinctValuesParams } from '../../AdaptableInterfaces/IAdaptable';
|
|
12
12
|
import { AdaptableColumnType } from '../../PredefinedConfig/Common/Types';
|
|
13
|
+
import { SpecialColumnSettings } from '../../PredefinedConfig/Common/SpecialColumnSettings';
|
|
13
14
|
export declare class GridInternalApi extends ApiBase {
|
|
14
15
|
/**
|
|
15
16
|
* Fires Grid Sorted Event
|
|
@@ -96,4 +97,5 @@ export declare class GridInternalApi extends ApiBase {
|
|
|
96
97
|
};
|
|
97
98
|
getAlertRowClass(params: RowClassParams): string | null;
|
|
98
99
|
getRowHighlightClass(params: RowClassParams): string | null;
|
|
100
|
+
deriveSpecialColumnSettingsFromAgGridDefaultColDef(): Partial<SpecialColumnSettings>;
|
|
99
101
|
}
|
|
@@ -408,5 +408,20 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
408
408
|
? highlightRow.highlightStyle.ClassName
|
|
409
409
|
: null;
|
|
410
410
|
}
|
|
411
|
+
deriveSpecialColumnSettingsFromAgGridDefaultColDef() {
|
|
412
|
+
const defaultColumnDefinition = this.adaptable.agGridAdapter.getDefaultColumnDefinition();
|
|
413
|
+
return {
|
|
414
|
+
Filterable: defaultColumnDefinition.filter,
|
|
415
|
+
Resizable: defaultColumnDefinition.resizable,
|
|
416
|
+
Groupable: defaultColumnDefinition.enableRowGroup,
|
|
417
|
+
Sortable: defaultColumnDefinition.sortable,
|
|
418
|
+
Pivotable: defaultColumnDefinition.enablePivot,
|
|
419
|
+
Aggregatable: defaultColumnDefinition.enableValue,
|
|
420
|
+
SuppressMenu: defaultColumnDefinition.suppressHeaderMenuButton,
|
|
421
|
+
SuppressMovable: defaultColumnDefinition.suppressMovable,
|
|
422
|
+
HeaderToolTip: defaultColumnDefinition.headerTooltip,
|
|
423
|
+
Width: defaultColumnDefinition.width,
|
|
424
|
+
};
|
|
425
|
+
}
|
|
411
426
|
}
|
|
412
427
|
exports.GridInternalApi = GridInternalApi;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NoteInternalApi = void 0;
|
|
4
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
|
-
class
|
|
5
|
+
class NoteInternalApi extends ApiBase_1.ApiBase {
|
|
6
6
|
areNotesAvailable() {
|
|
7
7
|
var _a;
|
|
8
8
|
const currentLayout = this.getLayoutApi().getCurrentLayout();
|
|
@@ -15,4 +15,4 @@ class NotesInternalApi extends ApiBase_1.ApiBase {
|
|
|
15
15
|
return true;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
18
|
+
exports.NoteInternalApi = NoteInternalApi;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AdaptableNote, AdaptableNotes, NoteState } from '../PredefinedConfig/NoteState';
|
|
2
|
+
import { CellAddress } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Provides run-time access to Notes Module and related State
|
|
5
|
+
*/
|
|
6
|
+
export interface NoteApi {
|
|
7
|
+
/**
|
|
8
|
+
* Adds a new Note
|
|
9
|
+
* @param text
|
|
10
|
+
* @param primaryKeyValue
|
|
11
|
+
* @param columnId
|
|
12
|
+
*/
|
|
13
|
+
addNote(text: string, primaryKeyValue: any, columnId: string): void;
|
|
14
|
+
/**
|
|
15
|
+
* Edits a Note
|
|
16
|
+
* @param note
|
|
17
|
+
*/
|
|
18
|
+
editNote(note: AdaptableNote): void;
|
|
19
|
+
/**
|
|
20
|
+
* Edits text of a Note
|
|
21
|
+
* @param text
|
|
22
|
+
* @param note
|
|
23
|
+
*/
|
|
24
|
+
updateNoteText(text: string, note: AdaptableNote): void;
|
|
25
|
+
/**
|
|
26
|
+
* Deletes a Note
|
|
27
|
+
* @param note
|
|
28
|
+
*/
|
|
29
|
+
deleteNote(note: AdaptableNote): void;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the Note State
|
|
32
|
+
*/
|
|
33
|
+
getNoteState(): NoteState;
|
|
34
|
+
/**
|
|
35
|
+
* Gets all Notes
|
|
36
|
+
*/
|
|
37
|
+
getAllNotes(): AdaptableNotes;
|
|
38
|
+
/**
|
|
39
|
+
* Gets all Notes for a cell
|
|
40
|
+
* @param CellAddress note position
|
|
41
|
+
*/
|
|
42
|
+
getNotesForCell(CellAddress: CellAddress): AdaptableNote[];
|
|
43
|
+
/**
|
|
44
|
+
* Returns a Note by uuid
|
|
45
|
+
* @param uuid note uuid
|
|
46
|
+
*/
|
|
47
|
+
getNoteByUuid(uuid: string): AdaptableNote | undefined;
|
|
48
|
+
}
|
package/src/Api/OptionsApi.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CustomSortOptions } from '../AdaptableOptions/CustomSortOptions';
|
|
2
2
|
import { DataSetOptions } from '../AdaptableOptions/DataSetOptions';
|
|
3
3
|
import { GroupingOptions } from '../AdaptableOptions/GroupingOptions';
|
|
4
|
-
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnFilterOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FlashingCellOptions, FormatColumnOptions, GridFilterOptions, LayoutOptions, MenuOptions,
|
|
4
|
+
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnFilterOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FlashingCellOptions, FormatColumnOptions, GridFilterOptions, LayoutOptions, MenuOptions, NoteOptions, NotificationsOptions, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../types';
|
|
5
5
|
import { Fdc3Options } from '../AdaptableOptions/Fdc3Options';
|
|
6
6
|
import { ExpressionOptions } from '../AdaptableOptions/ExpressionOptions';
|
|
7
7
|
import { DataImportOptions } from '../AdaptableOptions/DataImportOptions';
|
|
8
|
-
import {
|
|
8
|
+
import { CommentOptions } from '../AdaptableOptions/CommentOptions';
|
|
9
9
|
/**
|
|
10
10
|
* Range of functions to access Adaptable Options
|
|
11
11
|
*/
|
|
@@ -42,10 +42,6 @@ export interface OptionsApi {
|
|
|
42
42
|
* Returns `AdaptableOptions.actionColumnOptions`
|
|
43
43
|
*/
|
|
44
44
|
getActionColumnOptions(): Readonly<ActionColumnOptions>;
|
|
45
|
-
/**
|
|
46
|
-
* Returns available columns types defined under columnOptions.columnTypes
|
|
47
|
-
*/
|
|
48
|
-
getColumnTypes(): string[];
|
|
49
45
|
/**
|
|
50
46
|
* Returns `AdaptableOptions.actionRowOptions`
|
|
51
47
|
*/
|
|
@@ -79,13 +75,9 @@ export interface OptionsApi {
|
|
|
79
75
|
*/
|
|
80
76
|
getColumnOptions(): Readonly<ColumnOptions>;
|
|
81
77
|
/**
|
|
82
|
-
* Returns `AdaptableOptions.
|
|
83
|
-
*/
|
|
84
|
-
getNotesOptions(): Readonly<NotesOptions>;
|
|
85
|
-
/**
|
|
86
|
-
* Returns `AdaptableOptions.commentsOptions`
|
|
78
|
+
* Returns `AdaptableOptions.commentOptions`
|
|
87
79
|
*/
|
|
88
|
-
|
|
80
|
+
getCommentOptions(): Readonly<CommentOptions>;
|
|
89
81
|
/**
|
|
90
82
|
* Returns `AdaptableOptions.customSortOptions`
|
|
91
83
|
*/
|
|
@@ -150,6 +142,10 @@ export interface OptionsApi {
|
|
|
150
142
|
* Returns `AdaptableOptions.formatColumnOptions`
|
|
151
143
|
*/
|
|
152
144
|
getFormatColumnOptions(): Readonly<FormatColumnOptions>;
|
|
145
|
+
/**
|
|
146
|
+
* Returns `AdaptableOptions.noteOptions`
|
|
147
|
+
*/
|
|
148
|
+
getNoteOptions(): Readonly<NoteOptions>;
|
|
153
149
|
/**
|
|
154
150
|
* Returns `AdaptableOptions.settingsPanelOptions`
|
|
155
151
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
2
2
|
import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
|
|
3
|
-
import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
4
3
|
import { BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../AdaptableOptions/UserInterfaceOptions';
|
|
5
4
|
import { GridCell } from '../PredefinedConfig/Selection/GridCell';
|
|
6
5
|
import { AdaptableObjectTag } from '../PredefinedConfig/Common/AdaptableObject';
|
|
@@ -54,16 +53,6 @@ export interface UserInterfaceApi {
|
|
|
54
53
|
* @param gridCell: the currently edited Grid Cell
|
|
55
54
|
*/
|
|
56
55
|
getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, gridCell: GridCell): any[] | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Adds menu item to Column Menu
|
|
59
|
-
* @param userMenuItem Menu Item to add
|
|
60
|
-
*/
|
|
61
|
-
addColumnMenuItem(userMenuItem: UserMenuItem<ColumnMenuContext>): void;
|
|
62
|
-
/**
|
|
63
|
-
* Adds menu item to Context Menu
|
|
64
|
-
* @param userMenuItem Menu Item to add
|
|
65
|
-
*/
|
|
66
|
-
addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
|
|
67
56
|
/**
|
|
68
57
|
* Returns Style set for Editable cells
|
|
69
58
|
*/
|
|
@@ -23,7 +23,7 @@ import { FlashingCellState } from './FlashingCellState';
|
|
|
23
23
|
import { StatusBarState } from './StatusBarState';
|
|
24
24
|
import { ChartingState } from './ChartingState';
|
|
25
25
|
import { StyledColumnState } from './StyledColumnState';
|
|
26
|
-
import {
|
|
26
|
+
import { NoteState } from './NoteState';
|
|
27
27
|
import { NamedQueryState } from './NamedQueryState';
|
|
28
28
|
import { CommentState } from './CommentState';
|
|
29
29
|
/**
|
|
@@ -57,7 +57,7 @@ export interface AdaptablePersistentState {
|
|
|
57
57
|
Theme: ThemeState;
|
|
58
58
|
ToolPanel: ToolPanelState;
|
|
59
59
|
Charting: ChartingState;
|
|
60
|
-
|
|
60
|
+
Note: NoteState;
|
|
61
61
|
/**
|
|
62
62
|
* @deprecated
|
|
63
63
|
*/
|