@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
|
@@ -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
|
|
@@ -49,8 +49,8 @@ exports.DEFAULT_ADAPTABLE_CONTEXT_MENU_STRUCTURE = [
|
|
|
49
49
|
ModuleConstants.StateManagementModuleId,
|
|
50
50
|
ModuleConstants.ThemeModuleId,
|
|
51
51
|
ModuleConstants.ChartingModuleId,
|
|
52
|
-
ModuleConstants.
|
|
53
|
-
ModuleConstants.
|
|
52
|
+
ModuleConstants.NoteModuleId,
|
|
53
|
+
ModuleConstants.CommentModuleId,
|
|
54
54
|
];
|
|
55
55
|
exports.DEFAULT_ADAPTABLE_COLUMN_MENU_STRUCTURE = [
|
|
56
56
|
ModuleConstants.SettingsPanelModuleId,
|
|
@@ -95,5 +95,5 @@ exports.DEFAULT_ADAPTABLE_COLUMN_MENU_STRUCTURE = [
|
|
|
95
95
|
ModuleConstants.StateManagementModuleId,
|
|
96
96
|
ModuleConstants.ThemeModuleId,
|
|
97
97
|
ModuleConstants.ChartingModuleId,
|
|
98
|
-
ModuleConstants.
|
|
98
|
+
ModuleConstants.NoteModuleId,
|
|
99
99
|
];
|
|
@@ -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
|
}
|
|
@@ -13,11 +13,8 @@ class ActionColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
13
13
|
return (_a = this.getActionColumnOptions().actionColumns) !== null && _a !== void 0 ? _a : [];
|
|
14
14
|
}
|
|
15
15
|
getColDefsForActionColumns() {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
suppressMenu: false,
|
|
19
|
-
suppressMovable: false,
|
|
20
|
-
};
|
|
16
|
+
const defaultSpecialColumnSettings = this.getGridApi().internalApi.deriveSpecialColumnSettingsFromAgGridDefaultColDef();
|
|
17
|
+
const defaultActionColumnSettings = Object.assign(Object.assign({}, defaultSpecialColumnSettings), { resizable: true, suppressMenu: false, suppressMovable: false });
|
|
21
18
|
return this.getActionColumnApi()
|
|
22
19
|
.getActionColumns()
|
|
23
20
|
.map((actionColumn) => {
|
|
@@ -29,7 +26,7 @@ class ActionColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
29
26
|
editable: false,
|
|
30
27
|
width: actionColumnSettings.width,
|
|
31
28
|
resizable: actionColumnSettings.resizable,
|
|
32
|
-
|
|
29
|
+
suppressHeaderMenuButton: actionColumnSettings.suppressMenu,
|
|
33
30
|
suppressMovable: actionColumnSettings.suppressMovable,
|
|
34
31
|
filter: false,
|
|
35
32
|
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;
|
|
@@ -43,7 +43,7 @@ const StyledColumnApiImpl_1 = require("./StyledColumnApiImpl");
|
|
|
43
43
|
const CalendarApiImpl_1 = require("./CalendarApiImpl");
|
|
44
44
|
const EntitlementApiImpl_1 = require("./EntitlementApiImpl");
|
|
45
45
|
const OptionsApiImpl_1 = require("./OptionsApiImpl");
|
|
46
|
-
const
|
|
46
|
+
const NoteApiImpl_1 = require("./NoteApiImpl");
|
|
47
47
|
const Fdc3ApiImpl_1 = require("./Fdc3ApiImpl");
|
|
48
48
|
const DataImportApiImpl_1 = require("./DataImportApiImpl");
|
|
49
49
|
const GridFilterApiImpl_1 = require("./GridFilterApiImpl");
|
|
@@ -97,7 +97,7 @@ class AdaptableApiImpl {
|
|
|
97
97
|
this.dataChangeHistoryApi = new DataChangeHistoryApiImpl_1.DataChangeHistoryApiImpl(adaptable);
|
|
98
98
|
this.chartingApi = new ChartingApiImpl_1.ChartingApiImpl(adaptable);
|
|
99
99
|
this.statusBarApi = new StatusBarApiImpl_1.StatusBarApiImpl(adaptable);
|
|
100
|
-
this.
|
|
100
|
+
this.noteApi = new NoteApiImpl_1.NoteApiImpl(adaptable);
|
|
101
101
|
this.fdc3Api = new Fdc3ApiImpl_1.Fdc3ApiImpl(adaptable);
|
|
102
102
|
this.dataImportApi = new DataImportApiImpl_1.DataImportApiImpl(adaptable);
|
|
103
103
|
this.gridFilterApi = new GridFilterApiImpl_1.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;
|
|
@@ -7,6 +7,7 @@ const GeneralConstants = tslib_1.__importStar(require("../../Utilities/Constants
|
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
9
9
|
const ColumnInternalApi_1 = require("../Internal/ColumnInternalApi");
|
|
10
|
+
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
10
11
|
class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
11
12
|
constructor(adaptable) {
|
|
12
13
|
super(adaptable);
|
|
@@ -337,5 +338,14 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
337
338
|
openColumnInfoSettingsPanel() {
|
|
338
339
|
this.showModulePopup(ModuleConstants.ColumnInfoModuleId);
|
|
339
340
|
}
|
|
341
|
+
getColumnTypes() {
|
|
342
|
+
const columnTypes = this.getOptions().columnOptions.columnTypes;
|
|
343
|
+
if (typeof columnTypes === 'function') {
|
|
344
|
+
return columnTypes((0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi()));
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
return columnTypes;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
340
350
|
}
|
|
341
351
|
exports.ColumnApiImpl = ColumnApiImpl;
|
|
@@ -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;
|
|
@@ -12,7 +12,7 @@ const AlertRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Ale
|
|
|
12
12
|
const BulkUpdateRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/BulkUpdateRedux"));
|
|
13
13
|
const CalculatedColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CalculatedColumnRedux"));
|
|
14
14
|
const ChartingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ChartingRedux"));
|
|
15
|
-
const
|
|
15
|
+
const NoteRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NoteRedux"));
|
|
16
16
|
const CustomSortRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CustomSortRedux"));
|
|
17
17
|
const ExportRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ExportRedux"));
|
|
18
18
|
const FormatColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FormatColumnRedux"));
|
|
@@ -182,10 +182,10 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
182
182
|
return returnJson
|
|
183
183
|
? JSON.stringify(this.getAdaptableState().Charting)
|
|
184
184
|
: this.getAdaptableState().Charting;
|
|
185
|
-
case '
|
|
185
|
+
case 'Note':
|
|
186
186
|
return returnJson
|
|
187
|
-
? JSON.stringify(this.getAdaptableState().
|
|
188
|
-
: this.getAdaptableState().
|
|
187
|
+
? JSON.stringify(this.getAdaptableState().Note)
|
|
188
|
+
: this.getAdaptableState().Note;
|
|
189
189
|
case 'CustomSort':
|
|
190
190
|
return returnJson
|
|
191
191
|
? JSON.stringify(this.getAdaptableState().CustomSort)
|
|
@@ -262,8 +262,8 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
262
262
|
getChartingState(returnJson = false) {
|
|
263
263
|
return this.getUserStateByStateKey('Charting', returnJson);
|
|
264
264
|
}
|
|
265
|
-
|
|
266
|
-
return this.getUserStateByStateKey('
|
|
265
|
+
getNoteState(returnJson = false) {
|
|
266
|
+
return this.getUserStateByStateKey('Note', returnJson);
|
|
267
267
|
}
|
|
268
268
|
getCustomSortState(returnJson = false) {
|
|
269
269
|
return this.getUserStateByStateKey('CustomSort', returnJson);
|
|
@@ -318,8 +318,8 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
318
318
|
case 'Charting':
|
|
319
319
|
this.dispatchAction(ChartingRedux.ChartingReady(this.getChartingState()));
|
|
320
320
|
break;
|
|
321
|
-
case '
|
|
322
|
-
this.dispatchAction(
|
|
321
|
+
case 'Note':
|
|
322
|
+
this.dispatchAction(NoteRedux.NoteReady(this.getNoteState()));
|
|
323
323
|
break;
|
|
324
324
|
case 'CustomSort':
|
|
325
325
|
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
|
}
|