@adaptabletools/adaptable 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} +12 -12
- 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} +1 -1
- 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/NoteState.js +1 -0
- 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} +21 -21
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/SystemRedux.js +3 -3
- package/src/Redux/Store/AdaptableStore.js +11 -17
- package/src/Strategy/{CommentsModule.d.ts → CommentModule.d.ts} +1 -5
- package/src/Strategy/{CommentsModule.js → CommentModule.js} +9 -10
- 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} +11 -7
- package/src/Strategy/Utilities/getScopeViewItems.js +3 -0
- package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
- package/src/Utilities/Constants/ModuleConstants.js +6 -6
- 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 +14 -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 +140 -0
- package/src/View/Note/NotePopup.d.ts +2 -0
- package/src/View/{Notes/NotesPopup.js → Note/NotePopup.js} +6 -6
- 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 +1 -14
- 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.esm.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/PredefinedConfig/CellAddress.js +0 -4
- 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
|
@@ -34,7 +34,7 @@ import { PredicateOptions } from './PredicateOptions';
|
|
|
34
34
|
import { DataImportOptions } from './DataImportOptions';
|
|
35
35
|
import { ColumnFilterOptions } from './ColumnFilterOptions';
|
|
36
36
|
import { GridFilterOptions } from './GridFilterOptions';
|
|
37
|
-
import {
|
|
37
|
+
import { CommentOptions } from './CommentOptions';
|
|
38
38
|
/**
|
|
39
39
|
* Large group of options enabling developers to set up AdapTable at design time to fit precise requirements
|
|
40
40
|
*/
|
|
@@ -140,7 +140,7 @@ export interface AdaptableOptions<TData = any> {
|
|
|
140
140
|
/**
|
|
141
141
|
* Options for managing AdapTable Comments
|
|
142
142
|
*/
|
|
143
|
-
commentOptions?:
|
|
143
|
+
commentOptions?: CommentOptions<TData>;
|
|
144
144
|
/**
|
|
145
145
|
* Options for using Custom Sort
|
|
146
146
|
*/
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Column } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableColumnGroup, BaseContext } from '../types';
|
|
3
|
-
export interface ColumnTypesContext extends BaseContext {
|
|
4
|
-
}
|
|
5
3
|
/**
|
|
6
4
|
* Options related to managing Columns in Adaptable.
|
|
7
5
|
*/
|
|
@@ -12,8 +10,8 @@ export interface ColumnOptions {
|
|
|
12
10
|
*/
|
|
13
11
|
columnFriendlyName?: (columnFriendlyNameContext: ColumnFriendlyNameContext) => string | undefined;
|
|
14
12
|
/**
|
|
15
|
-
* Optional list of Column Types - used
|
|
16
|
-
* @defaultValue
|
|
13
|
+
* Optional list of Column Types - used for Scope and creating Special Columns
|
|
14
|
+
* @defaultValue Empty Array
|
|
17
15
|
*/
|
|
18
16
|
columnTypes?: string[] | ((context: ColumnTypesContext) => string[]);
|
|
19
17
|
/**
|
|
@@ -54,3 +52,8 @@ export interface ColumnFriendlyNameContext {
|
|
|
54
52
|
*/
|
|
55
53
|
columnGroup: AdaptableColumnGroup;
|
|
56
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Context used when retrieving Column Types
|
|
57
|
+
*/
|
|
58
|
+
export interface ColumnTypesContext extends BaseContext {
|
|
59
|
+
}
|
|
@@ -2,27 +2,29 @@ import { CommentThread, BaseContext, CellAddress } from '../../types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Options for managing Comments and Comment Threads in AdapTable
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface CommentOptions<TData = any> {
|
|
6
6
|
/**
|
|
7
|
-
* Whether a cell can be
|
|
8
|
-
* TODO: check if it works
|
|
7
|
+
* Whether a cell can be receive Comments
|
|
9
8
|
*/
|
|
10
9
|
isCellCommentable?: (commentableCellContext: CommentableCellContext) => boolean;
|
|
11
10
|
/**
|
|
12
|
-
*
|
|
11
|
+
* Loads initial Comments
|
|
13
12
|
*/
|
|
14
13
|
loadCommentThreads?(commentLoadContext: CommentLoadContext): Promise<CommentThread[]>;
|
|
15
14
|
/**
|
|
16
|
-
* Called when
|
|
15
|
+
* Called when Comments change
|
|
17
16
|
* @param commentThreads
|
|
18
17
|
*/
|
|
19
18
|
persistCommentThreads?(commentThreads: CommentThread[]): void;
|
|
20
19
|
}
|
|
21
20
|
/**
|
|
22
|
-
* Context used when determining if a
|
|
21
|
+
* Context used when determining if a cell can show Comments
|
|
23
22
|
*/
|
|
24
23
|
export interface CommentableCellContext extends BaseContext {
|
|
25
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Cell in AdapTable which might receive a Comment
|
|
26
|
+
*/
|
|
27
|
+
cellAddress: CellAddress;
|
|
26
28
|
}
|
|
27
29
|
export interface CommentLoadContext extends BaseContext {
|
|
28
30
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdaptableMenuItem, ColumnMenuContext, ContextMenuContext
|
|
1
|
+
import { AdaptableMenuItem, ColumnMenuContext, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
2
2
|
import { AdaptableColumn, AdaptableIcon, AdaptableModule, BaseContext } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Options for managing menus in AdapTable – provided using 2 collections
|
|
@@ -12,58 +12,6 @@ export interface MenuOptions<TData = any> {
|
|
|
12
12
|
* Customises Column Menu (default column menu items are available in the provided context)
|
|
13
13
|
*/
|
|
14
14
|
customColumnMenu?: (menuContext: CustomColumnMenuContext<TData>) => CustomColumnMenuItem[];
|
|
15
|
-
/**
|
|
16
|
-
* Show Adaptable Context Menu (or specific items); can be boolean value or function invoked for each menu item
|
|
17
|
-
*
|
|
18
|
-
* @deprecated Use `customContextMenu` instead
|
|
19
|
-
* @defaultValue true
|
|
20
|
-
* @gridInfoItem
|
|
21
|
-
*/
|
|
22
|
-
showAdaptableContextMenu?: boolean | ((menuItem: AdaptableMenuItem, menuContext: ContextMenuContext<TData>) => boolean);
|
|
23
|
-
/**
|
|
24
|
-
* Show AdapTable Column Menu (or specific items); can be boolean value or function invoked for each menu item
|
|
25
|
-
*
|
|
26
|
-
* @deprecated Use `customColumnMenu` instead
|
|
27
|
-
* @defaultValue true
|
|
28
|
-
* @gridInfoItem
|
|
29
|
-
*/
|
|
30
|
-
showAdaptableColumnMenu?: boolean | ((menuItem: AdaptableMenuItem, menuContext: ColumnMenuContext<TData>) => boolean);
|
|
31
|
-
/**
|
|
32
|
-
* Adds 'Ungroup' Column Menu item to a row grouped column menu
|
|
33
|
-
*
|
|
34
|
-
* @deprecated Now provided by AG Grid and property is ignored
|
|
35
|
-
* @defaultValue true
|
|
36
|
-
* @gridInfoItem
|
|
37
|
-
*/
|
|
38
|
-
showUngroupColumnMenuItem?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Order in which AG Grid, AdapTable and User Menu sections will appear in Column Menu (list or function)
|
|
41
|
-
*
|
|
42
|
-
* @deprecated Use `customColumnMenu` instead
|
|
43
|
-
* @defaultValue 'aggrid', 'adaptable', 'user'
|
|
44
|
-
* @gridInfoItem
|
|
45
|
-
*/
|
|
46
|
-
columnMenuOrder?: ((context: MenuOrderContext) => ('aggrid' | 'adaptable' | 'user')[]) | ('aggrid' | 'adaptable' | 'user')[];
|
|
47
|
-
/**
|
|
48
|
-
* Order in which AG Grid, AdapTable and User Menu sections will appear in Context Menu (list or function)
|
|
49
|
-
*
|
|
50
|
-
* @deprecated Use `customContextMenu` instead
|
|
51
|
-
* @defaultValue 'aggrid', 'adaptable', 'user'
|
|
52
|
-
* @gridInfoItem
|
|
53
|
-
*/
|
|
54
|
-
contextMenuOrder?: ((context: MenuOrderContext) => ('aggrid' | 'adaptable' | 'user')[]) | ('aggrid' | 'adaptable' | 'user')[];
|
|
55
|
-
/**
|
|
56
|
-
* User-defined Menu Items to add to the Column Menu
|
|
57
|
-
*
|
|
58
|
-
* @deprecated Use `customColumnMenu` instead
|
|
59
|
-
*/
|
|
60
|
-
columnMenuItems?: UserMenuItem<ColumnMenuContext>[];
|
|
61
|
-
/**
|
|
62
|
-
* Customised Context Menu. Default context menu items are available in the provided context.
|
|
63
|
-
*
|
|
64
|
-
* @deprecated Use `customContextMenu` instead
|
|
65
|
-
*/
|
|
66
|
-
contextMenuItems?: UserMenuItem<ContextMenuContext>[];
|
|
67
15
|
}
|
|
68
16
|
/**
|
|
69
17
|
* Context info provided when building Custom Context Menus
|
|
@@ -45,8 +45,8 @@ export const DEFAULT_ADAPTABLE_CONTEXT_MENU_STRUCTURE = [
|
|
|
45
45
|
ModuleConstants.StateManagementModuleId,
|
|
46
46
|
ModuleConstants.ThemeModuleId,
|
|
47
47
|
ModuleConstants.ChartingModuleId,
|
|
48
|
-
ModuleConstants.
|
|
49
|
-
ModuleConstants.
|
|
48
|
+
ModuleConstants.NoteModuleId,
|
|
49
|
+
ModuleConstants.CommentModuleId,
|
|
50
50
|
];
|
|
51
51
|
export const DEFAULT_ADAPTABLE_COLUMN_MENU_STRUCTURE = [
|
|
52
52
|
ModuleConstants.SettingsPanelModuleId,
|
|
@@ -91,5 +91,5 @@ export const DEFAULT_ADAPTABLE_COLUMN_MENU_STRUCTURE = [
|
|
|
91
91
|
ModuleConstants.StateManagementModuleId,
|
|
92
92
|
ModuleConstants.ThemeModuleId,
|
|
93
93
|
ModuleConstants.ChartingModuleId,
|
|
94
|
-
ModuleConstants.
|
|
94
|
+
ModuleConstants.NoteModuleId,
|
|
95
95
|
];
|
|
@@ -4,7 +4,7 @@ import { BaseContext, CellAddress } from '../../types';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface NoteOptions<TData = any> {
|
|
6
6
|
/**
|
|
7
|
-
* Whether a cell can
|
|
7
|
+
* Whether a cell can contain Notes
|
|
8
8
|
*/
|
|
9
9
|
isCellNotable?: (context: NotableCellContext) => boolean;
|
|
10
10
|
}
|
|
@@ -12,5 +12,8 @@ export interface NoteOptions<TData = any> {
|
|
|
12
12
|
* Context used when determining if a Note can be added to a Cell
|
|
13
13
|
*/
|
|
14
14
|
export interface NotableCellContext extends BaseContext {
|
|
15
|
+
/**
|
|
16
|
+
* Cell which should contain the Note
|
|
17
|
+
*/
|
|
15
18
|
address: CellAddress;
|
|
16
19
|
}
|
|
@@ -40,7 +40,7 @@ import { StyledColumnApi } from './StyledColumnApi';
|
|
|
40
40
|
import { OptionsApi } from './OptionsApi';
|
|
41
41
|
import { ActionColumnApi } from './ActionColumnApi';
|
|
42
42
|
import { ActionRowApi } from './ActionRowApi';
|
|
43
|
-
import {
|
|
43
|
+
import { NoteApi } from './NoteApi';
|
|
44
44
|
import { Fdc3Api } from './Fdc3Api';
|
|
45
45
|
import { DataImportApi } from './DataImportApi';
|
|
46
46
|
import { GridFilterApi } from './GridFilterApi';
|
|
@@ -231,11 +231,11 @@ export interface AdaptableApi {
|
|
|
231
231
|
*/
|
|
232
232
|
userInterfaceApi: UserInterfaceApi;
|
|
233
233
|
/**
|
|
234
|
-
* Provides access to the
|
|
234
|
+
* Provides access to the Note Module
|
|
235
235
|
*/
|
|
236
|
-
|
|
236
|
+
noteApi: NoteApi;
|
|
237
237
|
/**
|
|
238
|
-
* Provides access to the
|
|
238
|
+
* Provides access to the Comment Module
|
|
239
239
|
*/
|
|
240
240
|
commentApi: CommentApi;
|
|
241
241
|
/**
|
package/src/Api/ColumnApi.d.ts
CHANGED
|
@@ -262,4 +262,8 @@ export interface ColumnApi {
|
|
|
262
262
|
* Opens Settings Panel with Column Info section selected and visible
|
|
263
263
|
*/
|
|
264
264
|
openColumnInfoSettingsPanel(): void;
|
|
265
|
+
/**
|
|
266
|
+
* Returns available columns types defined under columnOptions.columnTypes
|
|
267
|
+
*/
|
|
268
|
+
getColumnTypes(): string[];
|
|
265
269
|
}
|
package/src/Api/CommentApi.d.ts
CHANGED
|
@@ -1,56 +1,55 @@
|
|
|
1
1
|
import { CommentThread } from '../PredefinedConfig/CommentState';
|
|
2
|
-
import { CellAddress } from '../
|
|
3
|
-
import { AdaptableComment } from '../types';
|
|
2
|
+
import { AdaptableComment, CellAddress } from '../types';
|
|
4
3
|
/**
|
|
5
|
-
* Provides run-time access to
|
|
4
|
+
* Provides run-time access to Comment Module and related State
|
|
6
5
|
*/
|
|
7
6
|
export interface CommentApi {
|
|
8
7
|
/**
|
|
9
|
-
* Add
|
|
8
|
+
* Add a Comment to a Comment Thread
|
|
10
9
|
*
|
|
11
10
|
* @param comment comment
|
|
12
11
|
* @param address where the comment should be added
|
|
13
12
|
*/
|
|
14
13
|
addComment(commentText: string, address: CellAddress): void;
|
|
15
14
|
/**
|
|
16
|
-
* Edit
|
|
15
|
+
* Edit a Comment
|
|
17
16
|
*
|
|
18
17
|
* @param comment Comment to edit
|
|
19
18
|
* @param cellAddress Location of the comment, if not provided all comments will be traversed to find the comment
|
|
20
19
|
*/
|
|
21
20
|
editComment(comment: AdaptableComment, cellAddress?: CellAddress): void;
|
|
22
21
|
/**
|
|
23
|
-
* Delete a
|
|
22
|
+
* Delete a Comment
|
|
24
23
|
* @param address Location of the comment, if not provided all comments will be traversed to find the comment
|
|
25
24
|
*/
|
|
26
25
|
deleteComment(comment: AdaptableComment, cellAddress: CellAddress): void;
|
|
27
26
|
/**
|
|
28
|
-
*
|
|
27
|
+
* Get Comments for a particular cell
|
|
29
28
|
* @param CellAddress
|
|
30
29
|
*/
|
|
31
30
|
getComments(cellAddress: CellAddress): AdaptableComment[];
|
|
32
31
|
/**
|
|
33
|
-
* Delete all
|
|
32
|
+
* Delete all Comments for a particular cell
|
|
34
33
|
* @param cellAddress
|
|
35
34
|
*/
|
|
36
35
|
deleteCommentThread(cellAddress: CellAddress): void;
|
|
37
36
|
/**
|
|
38
|
-
*
|
|
37
|
+
* Return all Comments for a particular cell
|
|
39
38
|
* @param cellAddress
|
|
40
39
|
*/
|
|
41
40
|
getCommentThread(cellAddress: CellAddress): CommentThread | undefined;
|
|
42
41
|
/**
|
|
43
|
-
*
|
|
42
|
+
* Return all Comment Threads
|
|
44
43
|
*/
|
|
45
44
|
getCommentThreads(): CommentThread[];
|
|
46
45
|
/**
|
|
47
|
-
*
|
|
46
|
+
* Create a new Comment Thread
|
|
48
47
|
*
|
|
49
48
|
* @param commentThread
|
|
50
49
|
*/
|
|
51
50
|
addCommentThread(commentThread: CommentThread): void;
|
|
52
51
|
/**
|
|
53
|
-
*
|
|
52
|
+
* Load all Comment Threads
|
|
54
53
|
*
|
|
55
54
|
* @param commentThreads new cell comments
|
|
56
55
|
*/
|
package/src/Api/ConfigApi.d.ts
CHANGED
|
@@ -15,8 +15,7 @@ import { AdaptablePersistentState, AdaptableState } from '../PredefinedConfig/Ad
|
|
|
15
15
|
import { FreeTextColumnState } from '../PredefinedConfig/FreeTextColumnState';
|
|
16
16
|
import { ToolPanelState } from '../PredefinedConfig/ToolPanelState';
|
|
17
17
|
import { AdaptableStateKey, AdaptableModule } from '../PredefinedConfig/Common/Types';
|
|
18
|
-
import { AdaptableSearchState, AdaptableSortState, NamedQueryState, PredefinedConfig, ScheduleState } from '../types';
|
|
19
|
-
import { NotesState } from '../PredefinedConfig/NotesState';
|
|
18
|
+
import { AdaptableSearchState, AdaptableSortState, NamedQueryState, PredefinedConfig, ScheduleState, NoteState } from '../types';
|
|
20
19
|
/**
|
|
21
20
|
* Range of functions to access Predefined Config and Adaptable State
|
|
22
21
|
*/
|
|
@@ -105,10 +104,10 @@ export interface ConfigApi {
|
|
|
105
104
|
*/
|
|
106
105
|
getCalculatedColumnState(returnJson?: boolean): CalculatedColumnState;
|
|
107
106
|
/**
|
|
108
|
-
* Returns
|
|
107
|
+
* Returns Note section of Adaptable State
|
|
109
108
|
* @param returnJson return as JSON rather than object
|
|
110
109
|
*/
|
|
111
|
-
|
|
110
|
+
getNoteState(returnJson?: boolean): NoteState;
|
|
112
111
|
/**
|
|
113
112
|
* Returns Custom Sort section of Adaptable State
|
|
114
113
|
* @param returnJson return as JSON rather than object
|
package/src/Api/EventApi.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ActionRowSubmittedInfo, AdaptableReadyInfo, AdaptableStateChangedInfo, AdaptableStateReloadedInfo, AlertFiredInfo, CellChangedInfo, CellSelectionChangedInfo, ChartChangedInfo, ColumnFilterAppliedInfo, CustomToolbarConfiguredInfo, DashboardChangedInfo, DataImportedInfo, DataSetSelectedInfo, Fdc3MessageInfo, FlashingCellDisplayedInfo, GridDataChangedInfo, GridFilterAppliedInfo, GridSortedInfo, LayoutChangedInfo, LiveDataChangedInfo, RowSelectionChangedInfo, ScheduleTriggeredInfo, SystemStatusMessageDisplayedInfo, TeamSharingEntityChangedInfo, ThemeChangedInfo, ThemeEditedInfo } from '../types';
|
|
2
|
-
import { CalculatedColumnChangedInfo } from './Events/CalculatedColumnChanged';
|
|
3
|
-
import { CommentsChangedInfo } from './Events/CommentsChangedInfo';
|
|
1
|
+
import { ActionRowSubmittedInfo, AdaptableReadyInfo, AdaptableStateChangedInfo, AdaptableStateReloadedInfo, AlertFiredInfo, CalculatedColumnChangedInfo, CellChangedInfo, CellSelectionChangedInfo, ChartChangedInfo, ColumnFilterAppliedInfo, CommentChangedInfo, CustomToolbarConfiguredInfo, DashboardChangedInfo, DataImportedInfo, DataSetSelectedInfo, Fdc3MessageInfo, FlashingCellDisplayedInfo, GridDataChangedInfo, GridFilterAppliedInfo, GridSortedInfo, LayoutChangedInfo, LiveDataChangedInfo, RowSelectionChangedInfo, ScheduleTriggeredInfo, SystemStatusMessageDisplayedInfo, TeamSharingEntityChangedInfo, ThemeChangedInfo, ThemeEditedInfo } from '../types';
|
|
4
2
|
/**
|
|
5
3
|
* Responsible for publishing the many Events that AdapTable fires
|
|
6
4
|
*/
|
|
@@ -297,17 +295,17 @@ export interface EventApi {
|
|
|
297
295
|
*/
|
|
298
296
|
off(eventName: 'ChartChanged', callback: (chartChangedInfo: ChartChangedInfo) => void): void;
|
|
299
297
|
/**
|
|
300
|
-
* Event fired when
|
|
301
|
-
* @param eventName
|
|
298
|
+
* Event fired when a Comment is Changed
|
|
299
|
+
* @param eventName CommentChanged
|
|
302
300
|
* @param callback
|
|
303
301
|
*/
|
|
304
|
-
on(eventName: '
|
|
302
|
+
on(eventName: 'CommentChanged', callback: (commentChangedInfo: CommentChangedInfo) => void): () => void;
|
|
305
303
|
/**
|
|
306
|
-
* Unsubscribe from
|
|
304
|
+
* Unsubscribe from CommentChanged
|
|
307
305
|
* @param eventName
|
|
308
306
|
* @param callback
|
|
309
307
|
*/
|
|
310
|
-
off(eventName: '
|
|
308
|
+
off(eventName: 'CommentChanged', callback: (commentChangedInfo: CommentChangedInfo) => void): void;
|
|
311
309
|
/**
|
|
312
310
|
* Fired when Adaptable is up and running - has no arguments.
|
|
313
311
|
* @param eventName - AdaptableReady
|
|
@@ -352,6 +350,6 @@ export interface EventApi {
|
|
|
352
350
|
emitSync(eventName: 'DashboardChanged', data?: any): any[];
|
|
353
351
|
emitSync(eventName: 'FlashingCellDisplayed', data?: any): any[];
|
|
354
352
|
emitSync(eventName: 'AdaptableDestroy'): any[];
|
|
355
|
-
emit(eventName: 'ActionRowSubmitted' | 'AdaptableReady' | 'AlertFired' | 'AdaptableStateChanged' | 'AdaptableStateReloaded' | 'CellChanged' | 'ChartChanged' | 'CheckboxColumnClicked' | 'CustomToolbarConfigured' | 'DashboardChanged' | 'DataImported' | 'DataSetSelected' | 'ColumnFilterApplied' | 'Fdc3Message' | 'GridDataChanged' | 'GridSorted' | 'LayoutChanged' | 'CalculatedColumnChanged' | 'LiveDataChanged' | 'ScheduleTriggered' | 'SearchChanged' | 'CellSelectionChanged' | 'RowSelectionChanged' | 'SystemStatusMessageDisplayed' | 'TeamSharingEntityChanged' | 'ThemeChanged' | 'ThemeEdited' | 'GridFilterApplied' | '
|
|
353
|
+
emit(eventName: 'ActionRowSubmitted' | 'AdaptableReady' | 'AlertFired' | 'AdaptableStateChanged' | 'AdaptableStateReloaded' | 'CellChanged' | 'ChartChanged' | 'CheckboxColumnClicked' | 'CustomToolbarConfigured' | 'DashboardChanged' | 'DataImported' | 'DataSetSelected' | 'ColumnFilterApplied' | 'Fdc3Message' | 'GridDataChanged' | 'GridSorted' | 'LayoutChanged' | 'CalculatedColumnChanged' | 'LiveDataChanged' | 'ScheduleTriggered' | 'SearchChanged' | 'CellSelectionChanged' | 'RowSelectionChanged' | 'SystemStatusMessageDisplayed' | 'TeamSharingEntityChanged' | 'ThemeChanged' | 'ThemeEdited' | 'GridFilterApplied' | 'CommentChanged', data?: any): Promise<any>;
|
|
356
354
|
destroy(): void;
|
|
357
355
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CommentThread } from '../../types';
|
|
2
|
+
import { BaseEventInfo } from './BaseEventInfo';
|
|
3
|
+
/**
|
|
4
|
+
* Event fired when a Comment has changed
|
|
5
|
+
*/
|
|
6
|
+
export interface CommentChangedInfo extends BaseEventInfo {
|
|
7
|
+
/**
|
|
8
|
+
* All current Comment Threads
|
|
9
|
+
*/
|
|
10
|
+
commentThreads: CommentThread[];
|
|
11
|
+
}
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { RowHighlightInfo } from '../PredefinedConfig/Common/RowHighlightInfo';
|
|
|
10
10
|
import { IRowNode, RowModelType } from '@ag-grid-community/core';
|
|
11
11
|
import { GridCellRange } from '../PredefinedConfig/Selection/GridCellRange';
|
|
12
12
|
import { RowsHighlightInfo } from '../PredefinedConfig/Common/RowsHighlightInfo';
|
|
13
|
+
import { TransposeConfig } from '../PredefinedConfig/Common/TransposeConfig';
|
|
13
14
|
/**
|
|
14
15
|
* Provides access to important properites of AdapTable e.g. sorting, selected cells etc.
|
|
15
16
|
*/
|
|
@@ -26,6 +27,10 @@ export interface GridApi {
|
|
|
26
27
|
* Retrieves filtered data from the grid
|
|
27
28
|
*/
|
|
28
29
|
getFilteredData(): any[];
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves visible data from the grid (filtered and sorted)
|
|
32
|
+
*/
|
|
33
|
+
getVisibleData(): any[];
|
|
29
34
|
/**
|
|
30
35
|
* @deprecated use `loadGridData()` instead
|
|
31
36
|
*/
|
|
@@ -519,5 +524,5 @@ export interface GridApi {
|
|
|
519
524
|
/**
|
|
520
525
|
* Opens a window with a transposed view of Grid
|
|
521
526
|
*/
|
|
522
|
-
showTransposedView(
|
|
527
|
+
showTransposedView(transposeConfig: TransposeConfig): void;
|
|
523
528
|
}
|
|
@@ -10,11 +10,8 @@ export class ActionColumnApiImpl extends ApiBase {
|
|
|
10
10
|
return (_a = this.getActionColumnOptions().actionColumns) !== null && _a !== void 0 ? _a : [];
|
|
11
11
|
}
|
|
12
12
|
getColDefsForActionColumns() {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
suppressMenu: false,
|
|
16
|
-
suppressMovable: false,
|
|
17
|
-
};
|
|
13
|
+
const defaultSpecialColumnSettings = this.getGridApi().internalApi.deriveSpecialColumnSettingsFromAgGridDefaultColDef();
|
|
14
|
+
const defaultActionColumnSettings = Object.assign(Object.assign({}, defaultSpecialColumnSettings), { resizable: true, suppressMenu: false, suppressMovable: false });
|
|
18
15
|
return this.getActionColumnApi()
|
|
19
16
|
.getActionColumns()
|
|
20
17
|
.map((actionColumn) => {
|
|
@@ -26,7 +23,7 @@ export class ActionColumnApiImpl extends ApiBase {
|
|
|
26
23
|
editable: false,
|
|
27
24
|
width: actionColumnSettings.width,
|
|
28
25
|
resizable: actionColumnSettings.resizable,
|
|
29
|
-
|
|
26
|
+
suppressHeaderMenuButton: actionColumnSettings.suppressMenu,
|
|
30
27
|
suppressMovable: actionColumnSettings.suppressMovable,
|
|
31
28
|
filter: false,
|
|
32
29
|
sortable: false,
|
|
@@ -40,7 +40,7 @@ import { StatusBarApi } from '../StatusBarApi';
|
|
|
40
40
|
import { StyledColumnApi } from '../StyledColumnApi';
|
|
41
41
|
import { ActionColumnApi } from '../ActionColumnApi';
|
|
42
42
|
import { ActionRowApi } from '../ActionRowApi';
|
|
43
|
-
import {
|
|
43
|
+
import { NoteApi } from '../NoteApi';
|
|
44
44
|
import { Fdc3Api } from '../Fdc3Api';
|
|
45
45
|
import { GridFilterApi } from '../GridFilterApi';
|
|
46
46
|
import { ColumnFilterApi } from '../ColumnFilterApi';
|
|
@@ -90,7 +90,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
90
90
|
dataChangeHistoryApi: DataChangeHistoryApi;
|
|
91
91
|
chartingApi: ChartingApi;
|
|
92
92
|
statusBarApi: StatusBarApi;
|
|
93
|
-
|
|
93
|
+
noteApi: NoteApi;
|
|
94
94
|
fdc3Api: Fdc3Api;
|
|
95
95
|
dataImportApi: DataImportApi;
|
|
96
96
|
gridFilterApi: GridFilterApi;
|
|
@@ -40,7 +40,7 @@ import { StyledColumnApiImpl } from './StyledColumnApiImpl';
|
|
|
40
40
|
import { CalendarApiImpl } from './CalendarApiImpl';
|
|
41
41
|
import { EntitlementApiImpl } from './EntitlementApiImpl';
|
|
42
42
|
import { OptionsApiImpl } from './OptionsApiImpl';
|
|
43
|
-
import {
|
|
43
|
+
import { NoteApiImpl } from './NoteApiImpl';
|
|
44
44
|
import { Fdc3ApiImpl } from './Fdc3ApiImpl';
|
|
45
45
|
import { DataImportApiImpl } from './DataImportApiImpl';
|
|
46
46
|
import { GridFilterApiImpl } from './GridFilterApiImpl';
|
|
@@ -94,7 +94,7 @@ export class AdaptableApiImpl {
|
|
|
94
94
|
this.dataChangeHistoryApi = new DataChangeHistoryApiImpl(adaptable);
|
|
95
95
|
this.chartingApi = new ChartingApiImpl(adaptable);
|
|
96
96
|
this.statusBarApi = new StatusBarApiImpl(adaptable);
|
|
97
|
-
this.
|
|
97
|
+
this.noteApi = new NoteApiImpl(adaptable);
|
|
98
98
|
this.fdc3Api = new Fdc3ApiImpl(adaptable);
|
|
99
99
|
this.dataImportApi = new DataImportApiImpl(adaptable);
|
|
100
100
|
this.gridFilterApi = new GridFilterApiImpl(adaptable);
|
|
@@ -7,7 +7,7 @@ import { ModuleInfo } from '../../Strategy/Interface/IModule';
|
|
|
7
7
|
import { AdaptableOptions } from '../../AdaptableOptions/AdaptableOptions';
|
|
8
8
|
import { AdaptableApi } from '../AdaptableApi';
|
|
9
9
|
import { ExportOptions } from '../../AdaptableOptions/ExportOptions';
|
|
10
|
-
import { ActionColumnApi, ActionColumnOptions, ActionRowApi, ActionRowOptions, AlertApi, AlertOptions, ApplicationApi, BulkUpdateApi, CalculatedColumnApi, CalendarApi, CalendarOptions, CellSummaryApi, CellSummaryOptions, ChartingApi, ChartingOptions, ColumnApi, ColumnFilterApi, ColumnFilterOptions, ColumnOptions, ConfigApi, ContainerOptions, CustomSortApi, CustomSortOptions, DashboardApi, DashboardOptions, DataChangeHistoryApi, DataChangeHistoryOptions, DataSetApi, DataSetOptions, EditOptions, EntitlementApi, EntitlementOptions, EventApi, ExportApi, ExpressionApi, ExpressionOptions, Fdc3Api, Fdc3Options, FlashingCellApi, FlashingCellOptions, FormatColumnApi, FormatColumnOptions, FreeTextColumnApi, GridApi, GridFilterApi, GroupingOptions, LayoutApi, LayoutAssociatedObject, LayoutOptions, MenuOptions, NamedQueryApi,
|
|
10
|
+
import { ActionColumnApi, ActionColumnOptions, ActionRowApi, ActionRowOptions, AlertApi, AlertOptions, ApplicationApi, BulkUpdateApi, CalculatedColumnApi, CalendarApi, CalendarOptions, CellSummaryApi, CellSummaryOptions, ChartingApi, ChartingOptions, ColumnApi, ColumnFilterApi, ColumnFilterOptions, ColumnOptions, ConfigApi, ContainerOptions, CustomSortApi, CustomSortOptions, DashboardApi, DashboardOptions, DataChangeHistoryApi, DataChangeHistoryOptions, DataSetApi, DataSetOptions, EditOptions, EntitlementApi, EntitlementOptions, EventApi, ExportApi, ExpressionApi, ExpressionOptions, Fdc3Api, Fdc3Options, FlashingCellApi, FlashingCellOptions, FormatColumnApi, FormatColumnOptions, FreeTextColumnApi, GridApi, GridFilterApi, GroupingOptions, LayoutApi, LayoutAssociatedObject, LayoutOptions, MenuOptions, NamedQueryApi, NoteOptions, NotificationsOptions, PluginsApi, PlusMinusApi, PredicateApi, PredicateOptions, QuickSearchApi, QuickSearchOptions, ScheduleApi, ScopeApi, SettingsPanelApi, SettingsPanelOptions, ShortcutApi, SmartEditApi, StateOptions, StatusBarApi, StyledColumnApi, SystemStatusApi, TeamSharingApi, TeamSharingOptions, ThemeApi, ToolPanelApi, ToolPanelOptions, UserInterfaceApi, UserInterfaceOptions } from '../../types';
|
|
11
11
|
import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
|
|
12
12
|
export declare abstract class ApiBase {
|
|
13
13
|
protected adaptable: IAdaptable;
|
|
@@ -53,7 +53,7 @@ export declare abstract class ApiBase {
|
|
|
53
53
|
protected getActionColumnOptions(): ActionColumnOptions;
|
|
54
54
|
protected getActionRowOptions(): ActionRowOptions;
|
|
55
55
|
protected getColumnOptions(): ColumnOptions;
|
|
56
|
-
protected
|
|
56
|
+
protected getNoteOptions(): NoteOptions;
|
|
57
57
|
protected getCustomSortOptions(): CustomSortOptions;
|
|
58
58
|
protected getDataSetOptions(): DataSetOptions;
|
|
59
59
|
protected getCalendarOptions(): CalendarOptions;
|
|
@@ -3,6 +3,7 @@ import * as GeneralConstants from '../../Utilities/Constants/GeneralConstants';
|
|
|
3
3
|
import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
4
4
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
5
5
|
import { ColumnInternalApi } from '../Internal/ColumnInternalApi';
|
|
6
|
+
import { createBaseContext } from '../../Utilities/ObjectFactory';
|
|
6
7
|
export class ColumnApiImpl extends ApiBase {
|
|
7
8
|
constructor(adaptable) {
|
|
8
9
|
super(adaptable);
|
|
@@ -333,4 +334,13 @@ export class ColumnApiImpl extends ApiBase {
|
|
|
333
334
|
openColumnInfoSettingsPanel() {
|
|
334
335
|
this.showModulePopup(ModuleConstants.ColumnInfoModuleId);
|
|
335
336
|
}
|
|
337
|
+
getColumnTypes() {
|
|
338
|
+
const columnTypes = this.getOptions().columnOptions.columnTypes;
|
|
339
|
+
if (typeof columnTypes === 'function') {
|
|
340
|
+
return columnTypes(createBaseContext(this.getAdaptableApi()));
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
return columnTypes;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
336
346
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
|
-
import { CellAddress } from '../../
|
|
3
|
-
import { CommentThread, AdaptableComment } from '../../types';
|
|
2
|
+
import { CommentThread, AdaptableComment, CellAddress } from '../../types';
|
|
4
3
|
import { CommentApi } from '../CommentApi';
|
|
5
4
|
import { CommentsInternalApi } from '../Internal/CommentsInternalApi';
|
|
6
5
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
@@ -20,7 +20,7 @@ import { AdaptableModule, AdaptableStateKey } from '../../PredefinedConfig/Commo
|
|
|
20
20
|
import { AdaptableOptions, AdaptableSearchState, AdaptableSortState, NamedQueryState, ScheduleState } from '../../types';
|
|
21
21
|
import { PredefinedConfig } from '../../PredefinedConfig/PredefinedConfig';
|
|
22
22
|
import { ChartingState } from '../../PredefinedConfig/ChartingState';
|
|
23
|
-
import {
|
|
23
|
+
import { NoteState } from '../../PredefinedConfig/NoteState';
|
|
24
24
|
export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
|
|
25
25
|
configInit(): void;
|
|
26
26
|
copyAllStateToClipboard(): void;
|
|
@@ -48,7 +48,7 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
|
|
|
48
48
|
getApplicationState(returnJson?: boolean): ApplicationState;
|
|
49
49
|
getCalculatedColumnState(returnJson?: boolean): CalculatedColumnState;
|
|
50
50
|
getChartingState(returnJson?: boolean): ChartingState;
|
|
51
|
-
|
|
51
|
+
getNoteState(returnJson?: boolean): NoteState;
|
|
52
52
|
getCustomSortState(returnJson?: boolean): CustomSortState;
|
|
53
53
|
getDashboardState(returnJson?: boolean): DashboardState;
|
|
54
54
|
getExportState(returnJson?: boolean): ExportState;
|
|
@@ -8,7 +8,7 @@ import * as AlertRedux from '../../Redux/ActionsReducers/AlertRedux';
|
|
|
8
8
|
import * as BulkUpdateRedux from '../../Redux/ActionsReducers/BulkUpdateRedux';
|
|
9
9
|
import * as CalculatedColumnRedux from '../../Redux/ActionsReducers/CalculatedColumnRedux';
|
|
10
10
|
import * as ChartingRedux from '../../Redux/ActionsReducers/ChartingRedux';
|
|
11
|
-
import * as
|
|
11
|
+
import * as NoteRedux from '../../Redux/ActionsReducers/NoteRedux';
|
|
12
12
|
import * as CustomSortRedux from '../../Redux/ActionsReducers/CustomSortRedux';
|
|
13
13
|
import * as ExportRedux from '../../Redux/ActionsReducers/ExportRedux';
|
|
14
14
|
import * as FormatColumnRedux from '../../Redux/ActionsReducers/FormatColumnRedux';
|
|
@@ -178,10 +178,10 @@ export class ConfigApiImpl extends ApiBase {
|
|
|
178
178
|
return returnJson
|
|
179
179
|
? JSON.stringify(this.getAdaptableState().Charting)
|
|
180
180
|
: this.getAdaptableState().Charting;
|
|
181
|
-
case '
|
|
181
|
+
case 'Note':
|
|
182
182
|
return returnJson
|
|
183
|
-
? JSON.stringify(this.getAdaptableState().
|
|
184
|
-
: this.getAdaptableState().
|
|
183
|
+
? JSON.stringify(this.getAdaptableState().Note)
|
|
184
|
+
: this.getAdaptableState().Note;
|
|
185
185
|
case 'CustomSort':
|
|
186
186
|
return returnJson
|
|
187
187
|
? JSON.stringify(this.getAdaptableState().CustomSort)
|
|
@@ -258,8 +258,8 @@ export class ConfigApiImpl extends ApiBase {
|
|
|
258
258
|
getChartingState(returnJson = false) {
|
|
259
259
|
return this.getUserStateByStateKey('Charting', returnJson);
|
|
260
260
|
}
|
|
261
|
-
|
|
262
|
-
return this.getUserStateByStateKey('
|
|
261
|
+
getNoteState(returnJson = false) {
|
|
262
|
+
return this.getUserStateByStateKey('Note', returnJson);
|
|
263
263
|
}
|
|
264
264
|
getCustomSortState(returnJson = false) {
|
|
265
265
|
return this.getUserStateByStateKey('CustomSort', returnJson);
|
|
@@ -314,8 +314,8 @@ export class ConfigApiImpl extends ApiBase {
|
|
|
314
314
|
case 'Charting':
|
|
315
315
|
this.dispatchAction(ChartingRedux.ChartingReady(this.getChartingState()));
|
|
316
316
|
break;
|
|
317
|
-
case '
|
|
318
|
-
this.dispatchAction(
|
|
317
|
+
case 'Note':
|
|
318
|
+
this.dispatchAction(NoteRedux.NoteReady(this.getNoteState()));
|
|
319
319
|
break;
|
|
320
320
|
case 'CustomSort':
|
|
321
321
|
this.dispatchAction(CustomSortRedux.CustomSortReady(this.getCustomSortState()));
|
|
@@ -14,6 +14,7 @@ import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChang
|
|
|
14
14
|
import { RowsHighlightInfo } from '../../PredefinedConfig/Common/RowsHighlightInfo';
|
|
15
15
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
16
16
|
import { GridInternalApi } from '../Internal/GridInternalApi';
|
|
17
|
+
import { TransposeConfig } from '../../PredefinedConfig/Common/TransposeConfig';
|
|
17
18
|
export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
18
19
|
internalApi: GridInternalApi;
|
|
19
20
|
constructor(adaptable: IAdaptable);
|
|
@@ -23,6 +24,7 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
23
24
|
setInitialGridData(data: any): void;
|
|
24
25
|
getGridData(): any[];
|
|
25
26
|
getFilteredData(): any[];
|
|
27
|
+
getVisibleData(): any[];
|
|
26
28
|
updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
27
29
|
addOrUpdateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<{
|
|
28
30
|
addedRows: IRowNode[];
|
|
@@ -130,5 +132,5 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
130
132
|
openGridInfoSettingsPanel(): void;
|
|
131
133
|
getAgGridRowModelType(): RowModelType;
|
|
132
134
|
getVisibleRowCount(): number;
|
|
133
|
-
showTransposedView(
|
|
135
|
+
showTransposedView(transposeConfig: TransposeConfig): void;
|
|
134
136
|
}
|