@adaptabletools/adaptable-cjs 18.0.0-canary.11 → 18.0.0-canary.12
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 +4 -0
- package/base.css.map +1 -1
- package/index.css +6 -0
- 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/NoteOptions.d.ts +4 -1
- package/src/Api/AdaptableApi.d.ts +2 -2
- package/src/Api/ColumnApi.d.ts +4 -0
- package/src/Api/CommentApi.d.ts +11 -12
- package/src/Api/ConfigApi.d.ts +2 -2
- package/src/Api/EventApi.d.ts +7 -9
- package/src/Api/Events/CommentChanged.d.ts +11 -0
- package/src/Api/GridApi.d.ts +4 -0
- 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 +2 -2
- package/src/Api/Implementation/GridApiImpl.d.ts +1 -0
- package/src/Api/Implementation/GridApiImpl.js +9 -0
- package/src/Api/Implementation/{NotesApiImpl.d.ts → NoteApiImpl.d.ts} +7 -7
- package/src/Api/Implementation/{NotesApiImpl.js → NoteApiImpl.js} +6 -6
- package/src/Api/Implementation/OptionsApiImpl.d.ts +4 -5
- package/src/Api/Implementation/OptionsApiImpl.js +2 -12
- package/src/Api/Internal/AdaptableInternalApi.d.ts +1 -1
- package/src/Api/Internal/ExportInternalApi.d.ts +2 -1
- package/src/Api/Internal/ExportInternalApi.js +4 -1
- package/src/Api/Internal/NotesInternalApi.d.ts +1 -1
- package/src/Api/Internal/NotesInternalApi.js +3 -3
- package/src/Api/{NotesApi.d.ts → NoteApi.d.ts} +14 -14
- package/src/Api/OptionsApi.d.ts +8 -12
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
- package/src/PredefinedConfig/CommentState.d.ts +13 -13
- package/src/PredefinedConfig/Common/RowSummary.d.ts +6 -0
- package/src/PredefinedConfig/{NotesState.d.ts → NoteState.d.ts} +2 -2
- 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/NotesRedux.d.ts +6 -6
- package/src/Redux/ActionsReducers/NotesRedux.js +1 -1
- package/src/Redux/ActionsReducers/SystemRedux.js +3 -3
- package/src/Redux/Store/AdaptableStore.js +3 -9
- package/src/Strategy/CommentsModule.js +4 -4
- package/src/Strategy/NotesModule.js +5 -5
- package/src/Utilities/Services/CellPopupService.js +2 -2
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -4
- package/src/Utilities/Services/ReportService.d.ts +7 -5
- package/src/Utilities/Services/ReportService.js +238 -22
- package/src/View/Components/NewScopeComponent.js +2 -2
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +2 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +3 -2
- package/src/View/Notes/NotesPopup.js +3 -3
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/agGrid/AdaptableAgGrid.d.ts +2 -0
- package/src/agGrid/AdaptableAgGrid.js +93 -54
- package/src/agGrid/AgGridAdapter.d.ts +1 -0
- package/src/agGrid/AgGridAdapter.js +3 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -1
- package/src/agGrid/AgGridColumnAdapter.js +2 -2
- package/src/agGrid/AgGridOptionsService.d.ts +4 -1
- package/src/agGrid/AgGridOptionsService.js +22 -0
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +41 -3
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +22 -20
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/Api/Events/CommentsChangedInfo.d.ts +0 -5
- package/src/PredefinedConfig/CellAddress.d.ts +0 -13
- package/src/PredefinedConfig/CellAddress.js +0 -5
- /package/src/Api/Events/{CommentsChangedInfo.js → CommentChanged.js} +0 -0
- /package/src/Api/{NotesApi.js → NoteApi.js} +0 -0
- /package/src/PredefinedConfig/{NotesState.js → NoteState.js} +0 -0
|
@@ -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;
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { AdaptableNote, AdaptableNotes,
|
|
2
|
-
import { CellAddress } from '
|
|
1
|
+
import { AdaptableNote, AdaptableNotes, NoteState } from '../PredefinedConfig/NoteState';
|
|
2
|
+
import { CellAddress } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Provides run-time access to Notes Module and related State
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface NoteApi {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Adds a new Note
|
|
9
9
|
* @param note
|
|
10
10
|
* @param primaryKeyValue
|
|
11
11
|
* @param columnId
|
|
12
12
|
*/
|
|
13
13
|
addNote(note: string, primaryKeyValue: any, columnId: string): void;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Edits a Note
|
|
16
16
|
* @param note
|
|
17
17
|
*/
|
|
18
18
|
editNote(note: AdaptableNote): void;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @param
|
|
20
|
+
* Edits text of a Note
|
|
21
|
+
* @param notetext
|
|
22
22
|
* @param note
|
|
23
23
|
*/
|
|
24
|
-
updateNoteText(
|
|
24
|
+
updateNoteText(notetext: string, note: AdaptableNote): void;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Deletes a Note
|
|
27
27
|
* @param note
|
|
28
28
|
*/
|
|
29
29
|
deleteNote(note: AdaptableNote): void;
|
|
30
30
|
/**
|
|
31
|
-
* Gets the
|
|
31
|
+
* Gets the Note State
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
getNoteState(): NoteState;
|
|
34
34
|
/**
|
|
35
|
-
* Gets all
|
|
35
|
+
* Gets all Notes
|
|
36
36
|
*/
|
|
37
37
|
getAllNotes(): AdaptableNotes;
|
|
38
38
|
/**
|
|
39
|
-
* Gets all
|
|
39
|
+
* Gets all Notes for a cell
|
|
40
40
|
* @param CellAddress note position
|
|
41
41
|
*/
|
|
42
42
|
getCellNotes(CellAddress: CellAddress): AdaptableNote[];
|
|
43
43
|
/**
|
|
44
|
-
* Returns a
|
|
44
|
+
* Returns a Note by uuid
|
|
45
45
|
* @param uuid note uuid
|
|
46
46
|
*/
|
|
47
47
|
getNoteByUuid(uuid: string): AdaptableNote | undefined;
|
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.
|
|
78
|
+
* Returns `AdaptableOptions.commentOptions`
|
|
83
79
|
*/
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Returns `AdaptableOptions.commentsOptions`
|
|
87
|
-
*/
|
|
88
|
-
getCommentsOptions(): Readonly<CommentsOptions>;
|
|
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
|
*/
|
|
@@ -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
|
-
Notes:
|
|
60
|
+
Notes: NoteState;
|
|
61
61
|
/**
|
|
62
62
|
* @deprecated
|
|
63
63
|
*/
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import { AdaptableObject } from '../types';
|
|
2
2
|
import { ConfigState } from './ConfigState';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Predefined Configuration for Comments Module
|
|
5
|
+
*/
|
|
6
|
+
export interface CommentState extends ConfigState {
|
|
7
|
+
/**
|
|
8
|
+
* Collection of AdapTable Comments
|
|
9
|
+
*/
|
|
10
|
+
CommentThreads?: CommentThread[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Comment that can be applied to a Cell in AdapTable
|
|
5
14
|
*/
|
|
6
15
|
export interface AdaptableComment extends AdaptableObject {
|
|
7
16
|
/**
|
|
8
|
-
* When
|
|
17
|
+
* When Comment was made
|
|
9
18
|
*/
|
|
10
19
|
Timestamp: number;
|
|
11
20
|
/**
|
|
12
|
-
*
|
|
21
|
+
* Content of the Comment
|
|
13
22
|
*/
|
|
14
23
|
Value: string;
|
|
15
24
|
/**
|
|
16
|
-
* Author of the
|
|
25
|
+
* Author of the Comment
|
|
17
26
|
*/
|
|
18
27
|
Author?: {
|
|
19
28
|
UserName: string;
|
|
@@ -37,12 +46,3 @@ export interface CommentThread extends AdaptableObject {
|
|
|
37
46
|
*/
|
|
38
47
|
Comments: AdaptableComment[];
|
|
39
48
|
}
|
|
40
|
-
/**
|
|
41
|
-
* Predefined Configuration for Notes Module
|
|
42
|
-
*/
|
|
43
|
-
export interface CommentState extends ConfigState {
|
|
44
|
-
/**
|
|
45
|
-
* Collection of AdapTable Notes
|
|
46
|
-
*/
|
|
47
|
-
CommentThreads?: CommentThread[];
|
|
48
|
-
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { SummarySupportedExpression } from '../../Utilities/Services/SummaryService';
|
|
2
2
|
export declare const ROW_SUMMARY_ROW_ID = "__ROW_SUMMARY_ROW_ID";
|
|
3
|
+
/**
|
|
4
|
+
* Position of Row Summary - 'Top' or 'Bottom'
|
|
5
|
+
*/
|
|
3
6
|
export type RowSummaryPosition = 'Top' | 'Bottom';
|
|
7
|
+
/**
|
|
8
|
+
* Defines a Row Summary used in a Layout
|
|
9
|
+
*/
|
|
4
10
|
export interface RowSummary {
|
|
5
11
|
Position?: RowSummaryPosition;
|
|
6
12
|
ColumnsMap: Record<string, SummarySupportedExpression>;
|
|
@@ -3,7 +3,7 @@ import { ConfigState } from './ConfigState';
|
|
|
3
3
|
/**
|
|
4
4
|
* Predefined Configuration for Notes Module
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface NoteState extends ConfigState {
|
|
7
7
|
/**
|
|
8
8
|
* Collection of AdapTable Notes
|
|
9
9
|
*/
|
|
@@ -18,7 +18,7 @@ export interface AdaptableNote extends AdaptableObject {
|
|
|
18
18
|
*/
|
|
19
19
|
Timestamp: number;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Content of the Note
|
|
22
22
|
*/
|
|
23
23
|
Text: string;
|
|
24
24
|
/**
|
|
@@ -17,7 +17,7 @@ import { ToolPanelState } from './ToolPanelState';
|
|
|
17
17
|
import { StatusBarState } from './StatusBarState';
|
|
18
18
|
import { ChartingState } from './ChartingState';
|
|
19
19
|
import { StyledColumnState } from './StyledColumnState';
|
|
20
|
-
import {
|
|
20
|
+
import { NoteState } from './NoteState';
|
|
21
21
|
import { NamedQueryState } from '../types';
|
|
22
22
|
/**
|
|
23
23
|
* This is the main Predefined Config interface which developers will populate at design-time
|
|
@@ -46,7 +46,7 @@ export interface PredefinedConfig {
|
|
|
46
46
|
/**
|
|
47
47
|
* Collection of personal Notes that are edited at Cell level
|
|
48
48
|
*/
|
|
49
|
-
Notes?:
|
|
49
|
+
Notes?: NoteState;
|
|
50
50
|
/**
|
|
51
51
|
* Large series of properties to give users full control over the look and feel of the *Dashboard* - the section above the grid with toolbars and buttons
|
|
52
52
|
*/
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableColumn } from '../Common/AdaptableColumn';
|
|
3
|
+
/**
|
|
4
|
+
* Very lightweight object to define an AdapTable Cell
|
|
5
|
+
*/
|
|
6
|
+
export type CellAddress = {
|
|
7
|
+
/**
|
|
8
|
+
* Value in Primary Key Column
|
|
9
|
+
*/
|
|
10
|
+
PrimaryKeyValue: string | number;
|
|
11
|
+
/**
|
|
12
|
+
* Id of Column containing the Note
|
|
13
|
+
*/
|
|
14
|
+
ColumnId: string;
|
|
15
|
+
};
|
|
3
16
|
/**
|
|
4
17
|
* Defines a Cell in Adaptable - every cell is an intersection of a Column Id and a Primary Key Value
|
|
5
18
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PreviewInfo } from '../Utilities/Interface/Preview';
|
|
2
2
|
import { InternalState } from './InternalState';
|
|
3
3
|
import { BulkUpdateValidationResult } from '../Strategy/Interface/IBulkUpdateModule';
|
|
4
|
-
import { CellDataChangedInfo, GridCell, SmartEditOperation } from '../types';
|
|
4
|
+
import { CellAddress, CellDataChangedInfo, GridCell, SmartEditOperation } from '../types';
|
|
5
5
|
import type { IPushPullState, IPushPullReport, IPushPullDomain } from './IPushPullState';
|
|
6
6
|
import { OpenFinState, OpenFinReport } from './OpenFinState';
|
|
7
7
|
import { AdaptableAlert } from './Common/AdaptableAlert';
|
|
@@ -12,7 +12,6 @@ import { AdaptableFlashingCell } from './Common/AdaptableFlashingCell';
|
|
|
12
12
|
import { TypeUuid } from './Uuid';
|
|
13
13
|
import { SummaryOperation } from './Common/Enums';
|
|
14
14
|
import { ChartModel } from '@ag-grid-community/core';
|
|
15
|
-
import { CellAddress } from './CellAddress';
|
|
16
15
|
import { ExternalChartDefinition } from './ChartingState';
|
|
17
16
|
import { CachedQuery } from './NamedQueryState';
|
|
18
17
|
export type { IPushPullReport, IPushPullDomain };
|
|
@@ -97,7 +96,7 @@ export interface SystemState extends InternalState, IPushPullState, OpenFinState
|
|
|
97
96
|
*/
|
|
98
97
|
DisableDeleteConfirmation: boolean;
|
|
99
98
|
Export: {
|
|
100
|
-
|
|
99
|
+
visualDataExportInProgress: boolean;
|
|
101
100
|
};
|
|
102
101
|
QuickSearch?: {
|
|
103
102
|
floatingVisible?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdaptableNote,
|
|
1
|
+
import { AdaptableNote, NoteState } from '../../PredefinedConfig/NoteState';
|
|
2
2
|
import * as Redux from 'redux';
|
|
3
3
|
import { CellAddress } from '../../types';
|
|
4
4
|
/**
|
|
@@ -27,12 +27,12 @@ export interface AdaptableNotesEditAction extends AdaptableNoteAction {
|
|
|
27
27
|
export interface AdaptableNotesDeleteAction extends AdaptableNoteAction {
|
|
28
28
|
}
|
|
29
29
|
export interface NoteReadyAction extends Redux.Action {
|
|
30
|
-
|
|
30
|
+
noteState: NoteState;
|
|
31
31
|
}
|
|
32
32
|
export declare const NotesAdd: (note: AdaptableNote) => AdaptableNotesAddAction;
|
|
33
33
|
export declare const NotesEdit: (note: AdaptableNote) => AdaptableNotesEditAction;
|
|
34
34
|
export declare const NotesDelete: (note: AdaptableNote) => AdaptableNotesDeleteAction;
|
|
35
|
-
export declare const NotesReady: (note:
|
|
36
|
-
export declare const GetAllNotesSelector: (state:
|
|
37
|
-
export declare const GetNotesSelector: (state:
|
|
38
|
-
export declare const NotesReducer: Redux.Reducer<
|
|
35
|
+
export declare const NotesReady: (note: NoteState) => NoteReadyAction;
|
|
36
|
+
export declare const GetAllNotesSelector: (state: NoteState) => AdaptableNote[];
|
|
37
|
+
export declare const GetNotesSelector: (state: NoteState, address: CellAddress) => AdaptableNote[];
|
|
38
|
+
export declare const NotesReducer: Redux.Reducer<NoteState>;
|
|
@@ -37,7 +37,7 @@ const NotesDelete = (note) => ({
|
|
|
37
37
|
exports.NotesDelete = NotesDelete;
|
|
38
38
|
const NotesReady = (note) => ({
|
|
39
39
|
type: exports.NOTES_READY,
|
|
40
|
-
|
|
40
|
+
noteState: note,
|
|
41
41
|
});
|
|
42
42
|
exports.NotesReady = NotesReady;
|
|
43
43
|
const GetAllNotesSelector = (state) => state.Notes;
|
|
@@ -468,7 +468,7 @@ const initialState = {
|
|
|
468
468
|
},
|
|
469
469
|
DisableDeleteConfirmation: false,
|
|
470
470
|
Export: {
|
|
471
|
-
|
|
471
|
+
visualDataExportInProgress: false,
|
|
472
472
|
},
|
|
473
473
|
};
|
|
474
474
|
const SystemReducer = (state = initialState, action) => {
|
|
@@ -801,12 +801,12 @@ const SystemReducer = (state = initialState, action) => {
|
|
|
801
801
|
}
|
|
802
802
|
case exports.SYSTEM_VISUAL_EXPORT_BEGIN: {
|
|
803
803
|
return Object.assign(Object.assign({}, state), { Export: {
|
|
804
|
-
|
|
804
|
+
visualDataExportInProgress: true,
|
|
805
805
|
} });
|
|
806
806
|
}
|
|
807
807
|
case exports.SYSTEM_VISUAL_EXPORT_END: {
|
|
808
808
|
return Object.assign(Object.assign({}, state), { Export: {
|
|
809
|
-
|
|
809
|
+
visualDataExportInProgress: false,
|
|
810
810
|
} });
|
|
811
811
|
}
|
|
812
812
|
case exports.SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY: {
|
|
@@ -907,9 +907,9 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
907
907
|
requestAnimationFrame(() => {
|
|
908
908
|
var _a, _b;
|
|
909
909
|
const commentThreads = adaptable.api.commentApi.getCommentThreads();
|
|
910
|
-
adaptable.api.eventApi.emit('
|
|
910
|
+
adaptable.api.eventApi.emit('CommentChanged', adaptable.api.commentApi.getCommentThreads());
|
|
911
911
|
(_b = (_a = adaptable.api.optionsApi
|
|
912
|
-
.
|
|
912
|
+
.getCommentOptions()) === null || _a === void 0 ? void 0 : _a.persistCommentThreads) === null || _b === void 0 ? void 0 : _b.call(_a, commentThreads);
|
|
913
913
|
});
|
|
914
914
|
}
|
|
915
915
|
return returnAction;
|
|
@@ -934,7 +934,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
// This cannot be called because it would trigger an infinite loop
|
|
937
|
-
// adaptable.api.eventApi.emit('
|
|
937
|
+
// adaptable.api.eventApi.emit('CommentChanged', commentThreads);
|
|
938
938
|
// refresh all comments cells to show or hide the triangle
|
|
939
939
|
[...addedCommentThreads, ...deletedCommentThreads].forEach((commentThread) => {
|
|
940
940
|
const node = adaptable.api.gridApi.getRowNodeForPrimaryKey(commentThread.PrimaryKeyValue);
|
|
@@ -1273,12 +1273,6 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
return next(action);
|
|
1275
1275
|
}
|
|
1276
|
-
case SystemRedux_1.SYSTEM_VISUAL_EXPORT_BEGIN:
|
|
1277
|
-
case SystemRedux_1.SYSTEM_VISUAL_EXPORT_END: {
|
|
1278
|
-
let returnAction = next(action);
|
|
1279
|
-
adaptable.ReportService.resetExcelStyleMemoization();
|
|
1280
|
-
return returnAction;
|
|
1281
|
-
}
|
|
1282
1276
|
/*******************
|
|
1283
1277
|
* CHARTING ACTIONS
|
|
1284
1278
|
*******************/
|
|
@@ -18,7 +18,7 @@ class CommentsModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
18
18
|
this.loadComments();
|
|
19
19
|
}
|
|
20
20
|
isModuleAvailable() {
|
|
21
|
-
const options = this.adaptable.api.optionsApi.
|
|
21
|
+
const options = this.adaptable.api.optionsApi.getCommentOptions();
|
|
22
22
|
if (!options || !options.persistCommentThreads || !options.loadCommentThreads) {
|
|
23
23
|
return false;
|
|
24
24
|
}
|
|
@@ -27,7 +27,7 @@ class CommentsModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
27
27
|
async loadComments() {
|
|
28
28
|
var _a, _b;
|
|
29
29
|
const commentThreads = await ((_b = (_a = this.api.optionsApi
|
|
30
|
-
.
|
|
30
|
+
.getCommentOptions()) === null || _a === void 0 ? void 0 : _a.loadCommentThreads) === null || _b === void 0 ? void 0 : _b.call(_a, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)));
|
|
31
31
|
this.api.commentApi.loadCommentThreads(commentThreads);
|
|
32
32
|
}
|
|
33
33
|
addContextMenuItems(menuContext) {
|
|
@@ -36,11 +36,11 @@ class CommentsModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
36
36
|
return undefined;
|
|
37
37
|
}
|
|
38
38
|
const items = [];
|
|
39
|
-
const isCellCommentable = (_b = (_a = this.adaptable.api.optionsApi) === null || _a === void 0 ? void 0 : _a.
|
|
39
|
+
const isCellCommentable = (_b = (_a = this.adaptable.api.optionsApi) === null || _a === void 0 ? void 0 : _a.getCommentOptions()) === null || _b === void 0 ? void 0 : _b.isCellCommentable;
|
|
40
40
|
if (!isCellCommentable ||
|
|
41
41
|
isCellCommentable({
|
|
42
42
|
adaptableApi: this.adaptable.api,
|
|
43
|
-
|
|
43
|
+
cellAddress: {
|
|
44
44
|
PrimaryKeyValue: menuContext.primaryKeyValue,
|
|
45
45
|
ColumnId: menuContext.adaptableColumn.columnId,
|
|
46
46
|
},
|
|
@@ -15,7 +15,7 @@ class NotesModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
15
15
|
return undefined;
|
|
16
16
|
}
|
|
17
17
|
const items = [];
|
|
18
|
-
const isCellNotable = (_b = (_a = this.adaptable.api.optionsApi) === null || _a === void 0 ? void 0 : _a.
|
|
18
|
+
const isCellNotable = (_b = (_a = this.adaptable.api.optionsApi) === null || _a === void 0 ? void 0 : _a.getNoteOptions()) === null || _b === void 0 ? void 0 : _b.isCellNotable;
|
|
19
19
|
if (!isCellNotable ||
|
|
20
20
|
isCellNotable({
|
|
21
21
|
adaptableApi: this.adaptable.api,
|
|
@@ -32,23 +32,23 @@ class NotesModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
32
32
|
getAddRemoveNoteMenuItems(menuContext) {
|
|
33
33
|
var _a;
|
|
34
34
|
const items = [];
|
|
35
|
-
if (!this.api.
|
|
35
|
+
if (!this.api.noteApi.internalApi.areNotesAvailable()) {
|
|
36
36
|
return items;
|
|
37
37
|
}
|
|
38
38
|
// does not have note
|
|
39
|
-
const [note] = (_a = this.adaptable.api.
|
|
39
|
+
const [note] = (_a = this.adaptable.api.noteApi.getCellNotes({
|
|
40
40
|
PrimaryKeyValue: menuContext.primaryKeyValue,
|
|
41
41
|
ColumnId: menuContext.adaptableColumn.columnId,
|
|
42
42
|
})) !== null && _a !== void 0 ? _a : [];
|
|
43
43
|
if (note) {
|
|
44
44
|
items.push(this.createColumnMenuItemClickFunction('Remove Note', this.moduleInfo.Glyph, () => {
|
|
45
|
-
this.api.
|
|
45
|
+
this.api.noteApi.deleteNote(note);
|
|
46
46
|
}));
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
49
|
items.push(this.createColumnMenuItemClickFunction('Add Note', this.moduleInfo.Glyph, () => {
|
|
50
50
|
// add an empty one
|
|
51
|
-
this.api.
|
|
51
|
+
this.api.noteApi.addNote('', menuContext.primaryKeyValue, menuContext.adaptableColumn.columnId);
|
|
52
52
|
this.api.internalApi.getCellPopupService().showPopup({
|
|
53
53
|
PrimaryKeyValue: menuContext.primaryKeyValue,
|
|
54
54
|
ColumnId: menuContext.adaptableColumn.columnId,
|
|
@@ -78,7 +78,7 @@ class CellPopupService {
|
|
|
78
78
|
this.hidePopup();
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
const cellNotes = this.adaptable.api.
|
|
81
|
+
const cellNotes = this.adaptable.api.noteApi.getCellNotes(cellPosition);
|
|
82
82
|
const cellComments = this.adaptable.api.commentApi.getCommentThread(cellPosition);
|
|
83
83
|
const hasNotesOrComments = (cellNotes === null || cellNotes === void 0 ? void 0 : cellNotes.length) || cellComments;
|
|
84
84
|
// call only if it is different
|
|
@@ -96,7 +96,7 @@ class CellPopupService {
|
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
98
|
// if open but this has no note, close
|
|
99
|
-
const cellNotes = this.adaptable.api.
|
|
99
|
+
const cellNotes = this.adaptable.api.noteApi.getCellNotes(cellAddress);
|
|
100
100
|
const cellComments = this.adaptable.api.commentApi.getCommentThread(cellAddress);
|
|
101
101
|
const hasNotesOrComments = (cellNotes === null || cellNotes === void 0 ? void 0 : cellNotes.length) || cellComments;
|
|
102
102
|
if (openCellAddress && !hasNotesOrComments) {
|
|
@@ -4,11 +4,8 @@ import { IAdaptableService } from './IAdaptableService';
|
|
|
4
4
|
import { ExcelStyle, IRowNode } from '@ag-grid-community/core';
|
|
5
5
|
import { CustomDestination, SystemExportDestination } from '../../../types';
|
|
6
6
|
export interface IReportService extends IAdaptableService {
|
|
7
|
-
|
|
8
|
-
registerExcelStyle(excelStyle: Partial<ExcelStyle>, cellClassKey: string): void;
|
|
9
|
-
getRegisteredExcelStyles(): ExcelStyle[];
|
|
7
|
+
buildExcelStylesForVisualReports(): ExcelStyle[];
|
|
10
8
|
getExcelStyleIdForCellClassKey(cellClassKey: string): string;
|
|
11
|
-
registerExcelStyleWithFormattedDate(cellClassId: string, isoFormattedValue: string): void;
|
|
12
9
|
getExcelStyleWithFormattedDate(cellClassId: string): string;
|
|
13
10
|
CreateSystemReport(systemReportName: SystemReportName): Report;
|
|
14
11
|
IsSystemReport(reportName: string): boolean;
|
|
@@ -10,11 +10,8 @@ export declare class ReportService implements IReportService {
|
|
|
10
10
|
private cellClassKey2excelStyleIdMap;
|
|
11
11
|
private excelStylesWithFormattedDate;
|
|
12
12
|
constructor(adaptableApi: AdaptableApi);
|
|
13
|
-
|
|
14
|
-
registerExcelStyle(excelStyle: Partial<ExcelStyle>, cellClassKey: string): void;
|
|
15
|
-
getRegisteredExcelStyles(): ExcelStyle[];
|
|
13
|
+
destroy(): void;
|
|
16
14
|
getExcelStyleIdForCellClassKey(cellClassKey: string): string;
|
|
17
|
-
registerExcelStyleWithFormattedDate(cellClassId: string, isoFormattedValue: string): void;
|
|
18
15
|
getExcelStyleWithFormattedDate(cellClassId: string): string;
|
|
19
16
|
CreateSystemReport(systemReportName: SystemReportName): Report;
|
|
20
17
|
IsSystemReport(reportName: string): boolean;
|
|
@@ -33,7 +30,12 @@ export declare class ReportService implements IReportService {
|
|
|
33
30
|
getCellExportValueFromRowNode(rowNode: IRowNode, columnId: string): any;
|
|
34
31
|
getCellExportValueFromRawValue(rowNode: IRowNode, cellRawValue: any, columnId: string): any;
|
|
35
32
|
getReportFileName(reportName: string, destination: SystemExportDestination | CustomDestination): string;
|
|
36
|
-
destroy(): void;
|
|
37
33
|
private getCustomExportDateFormat;
|
|
38
34
|
private getCellExportValueFromRawValueByType;
|
|
35
|
+
buildExcelStylesForVisualReports(): ExcelStyle[];
|
|
36
|
+
createExcelStyleMemoization(): void;
|
|
37
|
+
private convertCSSToExcelStyle;
|
|
38
|
+
private resetExcelStyleMemoization;
|
|
39
|
+
private registerExcelStyle;
|
|
40
|
+
private registerExcelStyleWithFormattedDate;
|
|
39
41
|
}
|