@adaptabletools/adaptable-cjs 18.0.0-canary.12 → 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 +1 -1
- package/base.css.map +1 -1
- package/index.css +1 -1
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +1 -53
- package/src/AdaptableOptions/MenuOptions.js +3 -3
- package/src/Api/AdaptableApi.d.ts +2 -2
- package/src/Api/ConfigApi.d.ts +2 -3
- package/src/Api/GridApi.d.ts +2 -1
- package/src/Api/Implementation/ActionColumnApiImpl.js +3 -6
- package/src/Api/Implementation/ConfigApiImpl.js +7 -7
- package/src/Api/Implementation/GridApiImpl.d.ts +2 -1
- package/src/Api/Implementation/GridApiImpl.js +8 -1
- package/src/Api/Implementation/NoteApiImpl.d.ts +2 -2
- package/src/Api/Implementation/NoteApiImpl.js +9 -9
- 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 +2 -2
- package/src/Api/Internal/AdaptableInternalApi.js +11 -11
- package/src/Api/Internal/CalculatedColumnInternalApi.js +3 -2
- 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/NoteApi.d.ts +5 -5
- package/src/Api/OptionsApi.d.ts +2 -2
- package/src/Api/UserInterfaceApi.d.ts +0 -11
- package/src/PredefinedConfig/AdaptableState.d.ts +1 -1
- package/src/PredefinedConfig/CommentState.d.ts +16 -12
- package/src/PredefinedConfig/Common/TransposeConfig.d.ts +6 -0
- package/src/PredefinedConfig/Common/TransposeConfig.js +2 -0
- package/src/PredefinedConfig/Common/Types.d.ts +4 -4
- package/src/PredefinedConfig/Common/Types.js +4 -1
- package/src/PredefinedConfig/NoteState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -1
- package/src/Redux/ActionsReducers/NoteRedux.d.ts +38 -0
- package/src/Redux/ActionsReducers/{NotesRedux.js → NoteRedux.js} +26 -26
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +1 -1
- package/src/Redux/Store/AdaptableStore.js +7 -7
- package/src/Strategy/{CommentsModule.d.ts → CommentModule.d.ts} +1 -5
- package/src/Strategy/{CommentsModule.js → CommentModule.js} +7 -8
- 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} +9 -5
- 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/ModuleService.js +4 -0
- package/src/Utilities/Services/QueryLanguageService.js +2 -2
- 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/Popups/GridCellPopup/GridCellPopup.js +5 -5
- 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/TransposedPopup.js +19 -18
- package/src/View/Layout/Wizard/LayoutWizard.js +8 -0
- 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} +5 -5
- package/src/agGrid/AdaptableAgGrid.js +4 -4
- package/src/agGrid/AgGridAdapter.d.ts +1 -0
- package/src/agGrid/AgGridAdapter.js +5 -0
- package/src/agGrid/AgGridColumnAdapter.js +3 -3
- 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 +36 -11
- 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 +1 -0
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +0 -38
- package/src/View/Notes/NotesPopup.d.ts +0 -2
- /package/src/Api/Internal/{NotesInternalApi.d.ts → NoteInternalApi.d.ts} +0 -0
- /package/src/Api/Internal/{NotesInternalApi.js → NoteInternalApi.js} +0 -0
- /package/src/View/{Notes → Note}/NoteEditor.d.ts +0 -0
- /package/src/View/{Notes → Note}/NoteEditor.js +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CellAddress } from '../types';
|
|
2
|
+
import { InternalState } from './InternalState';
|
|
3
|
+
import { TypeUuid } from './Uuid';
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
+
* Internal State used for Comments Module
|
|
5
6
|
*/
|
|
6
|
-
export interface CommentState extends
|
|
7
|
+
export interface CommentState extends InternalState {
|
|
7
8
|
/**
|
|
8
9
|
* Collection of AdapTable Comments
|
|
9
10
|
*/
|
|
@@ -12,7 +13,11 @@ export interface CommentState extends ConfigState {
|
|
|
12
13
|
/**
|
|
13
14
|
* Comment that can be applied to a Cell in AdapTable
|
|
14
15
|
*/
|
|
15
|
-
export interface AdaptableComment
|
|
16
|
+
export interface AdaptableComment {
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier for the Comment
|
|
19
|
+
*/
|
|
20
|
+
Uuid?: TypeUuid;
|
|
16
21
|
/**
|
|
17
22
|
* When Comment was made
|
|
18
23
|
*/
|
|
@@ -32,15 +37,14 @@ export interface AdaptableComment extends AdaptableObject {
|
|
|
32
37
|
*/
|
|
33
38
|
AdaptableId?: string;
|
|
34
39
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
PrimaryKeyValue: string | number;
|
|
40
|
+
/**
|
|
41
|
+
* Thread of Comments for an Adaptable Cell
|
|
42
|
+
*/
|
|
43
|
+
export interface CommentThread extends CellAddress {
|
|
40
44
|
/**
|
|
41
|
-
*
|
|
45
|
+
* Unique identifier for Comment
|
|
42
46
|
*/
|
|
43
|
-
|
|
47
|
+
Uuid?: TypeUuid;
|
|
44
48
|
/**
|
|
45
49
|
* Collection of Comments for this Cell
|
|
46
50
|
*/
|
|
@@ -11,7 +11,7 @@ export declare const ALL_TOOLBARS: AdaptableDashboardToolbar[];
|
|
|
11
11
|
/**
|
|
12
12
|
* Modules which can appear in the AdapTable Status Bar
|
|
13
13
|
*/
|
|
14
|
-
export type AdaptableStatusBarPanel = 'Alert' | 'CalculatedColumn' | 'BulkUpdate' | 'CellSummary' | 'Charting' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataImport' | 'DataSet' | 'Export' | 'ColumnFilter' | 'GridFilter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'SmartEdit' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
14
|
+
export type AdaptableStatusBarPanel = 'Alert' | 'CalculatedColumn' | 'BulkUpdate' | 'CellSummary' | 'Charting' | 'Comment' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataImport' | 'DataSet' | 'Export' | 'ColumnFilter' | 'GridFilter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'Note' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'SmartEdit' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
15
15
|
export declare const ALL_STATUS_SUB_PANELS: AdaptableStatusBarPanel[];
|
|
16
16
|
export type AdaptableToolPanels = AdaptableToolPanel[];
|
|
17
17
|
/**
|
|
@@ -28,18 +28,18 @@ export type AdaptableModuleButtons = AdaptableModuleButton[];
|
|
|
28
28
|
/**
|
|
29
29
|
* List of all the Module buttons Adaptable provides - each Module has a popup for which this is a shortcut button
|
|
30
30
|
*/
|
|
31
|
-
export type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataImport' | 'DataSet' | 'Export' | 'ColumnFilter' | 'GridFilter' | 'NamedQuery' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme';
|
|
31
|
+
export type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Comment' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataImport' | 'DataSet' | 'Export' | 'ColumnFilter' | 'GridFilter' | 'NamedQuery' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'Note' | 'OpenFin' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme';
|
|
32
32
|
export type AdaptableStateKeys = AdaptableStateKey[];
|
|
33
33
|
export type AdaptableStateKey = keyof AdaptablePersistentState | 'OpenFin' | 'IPushPull';
|
|
34
34
|
/**
|
|
35
35
|
* Modules provided by AdapTable, subject to Entitlements and usually have Predefined Config
|
|
36
36
|
*/
|
|
37
|
-
export type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Fdc3' | 'ColumnFilter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'ColumnInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel' | '
|
|
37
|
+
export type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'Comment' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Fdc3' | 'ColumnFilter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'ColumnInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel' | 'Note' | 'DataImport' | 'GridFilter' | 'NamedQuery';
|
|
38
38
|
export declare const ALL_MODULES: AdaptableModule[];
|
|
39
39
|
/**
|
|
40
40
|
* Modules which can appear in the Settings Panel
|
|
41
41
|
*/
|
|
42
|
-
export type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'Charting' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'ColumnFilter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'ColumnInfo' | 'Layout' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'StyledColumn' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel' | '
|
|
42
|
+
export type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'Charting' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'ColumnFilter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'ColumnInfo' | 'Layout' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'StyledColumn' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel' | 'Note' | 'DataImport' | 'GridFilter' | 'NamedQuery' | 'Comment';
|
|
43
43
|
export type TypeHint<Base, Literals> = (Base & {
|
|
44
44
|
__subType?: true;
|
|
45
45
|
}) | Literals;
|
|
@@ -30,6 +30,7 @@ exports.ALL_STATUS_SUB_PANELS = [
|
|
|
30
30
|
'BulkUpdate',
|
|
31
31
|
'CalculatedColumn',
|
|
32
32
|
'CellSummary',
|
|
33
|
+
'Comment',
|
|
33
34
|
'CustomSort',
|
|
34
35
|
'Charting',
|
|
35
36
|
'Dashboard',
|
|
@@ -44,6 +45,7 @@ exports.ALL_STATUS_SUB_PANELS = [
|
|
|
44
45
|
'FreeTextColumn',
|
|
45
46
|
'GridInfo',
|
|
46
47
|
'Layout',
|
|
48
|
+
'Note',
|
|
47
49
|
'PlusMinus',
|
|
48
50
|
'QuickSearch',
|
|
49
51
|
'Schedule',
|
|
@@ -81,7 +83,8 @@ exports.ALL_MODULES = [
|
|
|
81
83
|
ModuleConstants.BulkUpdateModuleId,
|
|
82
84
|
ModuleConstants.CalculatedColumnModuleId,
|
|
83
85
|
ModuleConstants.CellSummaryModuleId,
|
|
84
|
-
ModuleConstants.
|
|
86
|
+
ModuleConstants.NoteModuleId,
|
|
87
|
+
ModuleConstants.CommentModuleId,
|
|
85
88
|
ModuleConstants.ChartingModuleId,
|
|
86
89
|
ModuleConstants.CustomSortModuleId,
|
|
87
90
|
ModuleConstants.DashboardModuleId,
|
|
@@ -46,7 +46,7 @@ export interface PredefinedConfig {
|
|
|
46
46
|
/**
|
|
47
47
|
* Collection of personal Notes that are edited at Cell level
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
Note?: 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
|
*/
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Redux from 'redux';
|
|
2
|
+
import { AdaptableNote, NoteState } from '../../PredefinedConfig/NoteState';
|
|
3
|
+
import { CellAddress } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* @ReduxAction A Note has been added
|
|
6
|
+
*/
|
|
7
|
+
export declare const NOTE_ADD = "NOTE_ADD";
|
|
8
|
+
/**
|
|
9
|
+
* @ReduxAction A Note has been edited
|
|
10
|
+
*/
|
|
11
|
+
export declare const NOTE_EDIT = "NOTE_EDIT";
|
|
12
|
+
/**
|
|
13
|
+
* @ReduxAction A Note has been deleted
|
|
14
|
+
*/
|
|
15
|
+
export declare const NOTE_DELETE = "NOTE_DELETE";
|
|
16
|
+
/**
|
|
17
|
+
* @ReduxAction Note Module is ready
|
|
18
|
+
*/
|
|
19
|
+
export declare const NOTE_READY = "NOTE_READY";
|
|
20
|
+
export interface AdaptableNoteAction extends Redux.Action {
|
|
21
|
+
adaptableNote: AdaptableNote;
|
|
22
|
+
}
|
|
23
|
+
export interface AdaptableNoteAddAction extends AdaptableNoteAction {
|
|
24
|
+
}
|
|
25
|
+
export interface AdaptableNoteEditAction extends AdaptableNoteAction {
|
|
26
|
+
}
|
|
27
|
+
export interface AdaptableNoteDeleteAction extends AdaptableNoteAction {
|
|
28
|
+
}
|
|
29
|
+
export interface NoteReadyAction extends Redux.Action {
|
|
30
|
+
noteState: NoteState;
|
|
31
|
+
}
|
|
32
|
+
export declare const NoteAdd: (note: AdaptableNote) => AdaptableNoteAddAction;
|
|
33
|
+
export declare const NoteEdit: (note: AdaptableNote) => AdaptableNoteEditAction;
|
|
34
|
+
export declare const NoteDelete: (note: AdaptableNote) => AdaptableNoteDeleteAction;
|
|
35
|
+
export declare const NoteReady: (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 NoteReducer: Redux.Reducer<NoteState>;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NoteReducer = exports.GetNotesSelector = exports.GetAllNotesSelector = exports.NoteReady = exports.NoteDelete = exports.NoteEdit = exports.NoteAdd = exports.NOTE_READY = exports.NOTE_DELETE = exports.NOTE_EDIT = exports.NOTE_ADD = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
6
6
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
7
7
|
/**
|
|
8
|
-
* @ReduxAction A
|
|
8
|
+
* @ReduxAction A Note has been added
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.NOTE_ADD = 'NOTE_ADD';
|
|
11
11
|
/**
|
|
12
|
-
* @ReduxAction A
|
|
12
|
+
* @ReduxAction A Note has been edited
|
|
13
13
|
*/
|
|
14
|
-
exports.
|
|
14
|
+
exports.NOTE_EDIT = 'NOTE_EDIT';
|
|
15
15
|
/**
|
|
16
|
-
* @ReduxAction A
|
|
16
|
+
* @ReduxAction A Note has been deleted
|
|
17
17
|
*/
|
|
18
|
-
exports.
|
|
18
|
+
exports.NOTE_DELETE = 'NOTE_DELETE';
|
|
19
19
|
/**
|
|
20
|
-
* @ReduxAction
|
|
20
|
+
* @ReduxAction Note Module is ready
|
|
21
21
|
*/
|
|
22
|
-
exports.
|
|
23
|
-
const
|
|
24
|
-
type: exports.
|
|
22
|
+
exports.NOTE_READY = 'NOTE_READY';
|
|
23
|
+
const NoteAdd = (note) => ({
|
|
24
|
+
type: exports.NOTE_ADD,
|
|
25
25
|
adaptableNote: note,
|
|
26
26
|
});
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
29
|
-
type: exports.
|
|
27
|
+
exports.NoteAdd = NoteAdd;
|
|
28
|
+
const NoteEdit = (note) => ({
|
|
29
|
+
type: exports.NOTE_EDIT,
|
|
30
30
|
adaptableNote: note,
|
|
31
31
|
});
|
|
32
|
-
exports.
|
|
33
|
-
const
|
|
34
|
-
type: exports.
|
|
32
|
+
exports.NoteEdit = NoteEdit;
|
|
33
|
+
const NoteDelete = (note) => ({
|
|
34
|
+
type: exports.NOTE_DELETE,
|
|
35
35
|
adaptableNote: note,
|
|
36
36
|
});
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
39
|
-
type: exports.
|
|
37
|
+
exports.NoteDelete = NoteDelete;
|
|
38
|
+
const NoteReady = (note) => ({
|
|
39
|
+
type: exports.NOTE_READY,
|
|
40
40
|
noteState: note,
|
|
41
41
|
});
|
|
42
|
-
exports.
|
|
42
|
+
exports.NoteReady = NoteReady;
|
|
43
43
|
const GetAllNotesSelector = (state) => state.Notes;
|
|
44
44
|
exports.GetAllNotesSelector = GetAllNotesSelector;
|
|
45
45
|
const GetNotesSelector = (state, address) => {
|
|
@@ -65,20 +65,20 @@ exports.GetNotesSelector = GetNotesSelector;
|
|
|
65
65
|
const initialState = {
|
|
66
66
|
Notes: GeneralConstants_1.EMPTY_ARRAY,
|
|
67
67
|
};
|
|
68
|
-
const
|
|
68
|
+
const NoteReducer = (state = initialState, action) => {
|
|
69
69
|
let adaptableNotes;
|
|
70
70
|
switch (action.type) {
|
|
71
|
-
case exports.
|
|
71
|
+
case exports.NOTE_ADD: {
|
|
72
72
|
const note = action.adaptableNote;
|
|
73
73
|
AdaptableHelper_1.default.addUuidAndSource(note);
|
|
74
74
|
adaptableNotes = [...state.Notes, note];
|
|
75
75
|
return Object.assign(Object.assign({}, state), { Notes: adaptableNotes });
|
|
76
76
|
}
|
|
77
|
-
case exports.
|
|
77
|
+
case exports.NOTE_EDIT: {
|
|
78
78
|
const note = action.adaptableNote;
|
|
79
79
|
return Object.assign(Object.assign({}, state), { Notes: state.Notes.map((abObject) => (abObject.Uuid === note.Uuid ? note : abObject)) });
|
|
80
80
|
}
|
|
81
|
-
case exports.
|
|
81
|
+
case exports.NOTE_DELETE: {
|
|
82
82
|
const note = action.adaptableNote;
|
|
83
83
|
return Object.assign(Object.assign({}, state), { Notes: state.Notes.filter((abObject) => abObject.Uuid !== note.Uuid) });
|
|
84
84
|
}
|
|
@@ -86,4 +86,4 @@ const NotesReducer = (state = initialState, action) => {
|
|
|
86
86
|
return state;
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
exports.
|
|
89
|
+
exports.NoteReducer = NoteReducer;
|
|
@@ -339,6 +339,6 @@ export declare const SystemPreviousGroupedColumnsSelector: (state: SystemState)
|
|
|
339
339
|
export declare const SystemQuickSearchFloatingVisibilitySelector: (state: SystemState) => boolean;
|
|
340
340
|
export declare const SystemCommentsAndNotesSelector: (state: SystemState) => CellAddress;
|
|
341
341
|
export declare const SystemCommentsAndNotesEditModeSelector: (state: SystemState) => boolean;
|
|
342
|
-
export declare const SystemCommentsAndNotesFocusedEntitySelector: (state: SystemState) => "
|
|
342
|
+
export declare const SystemCommentsAndNotesFocusedEntitySelector: (state: SystemState) => "Comment" | "Note";
|
|
343
343
|
export declare const DataImportCompleted: (dataImportedInfo: DataImportedInfo) => DataImportCompletedAction;
|
|
344
344
|
export declare const SystemReducer: Redux.Reducer<SystemState>;
|
|
@@ -33,7 +33,7 @@ const FreeTextColumnRedux = tslib_1.__importStar(require("../ActionsReducers/Fre
|
|
|
33
33
|
const GridRedux = tslib_1.__importStar(require("../ActionsReducers/GridRedux"));
|
|
34
34
|
const LayoutRedux = tslib_1.__importStar(require("../ActionsReducers/LayoutRedux"));
|
|
35
35
|
const NamedQueryRedux = tslib_1.__importStar(require("../ActionsReducers/NamedQueryRedux"));
|
|
36
|
-
const
|
|
36
|
+
const NoteRedux = tslib_1.__importStar(require("../ActionsReducers/NoteRedux"));
|
|
37
37
|
const PlusMinusRedux = tslib_1.__importStar(require("../ActionsReducers/PlusMinusRedux"));
|
|
38
38
|
const QueryRedux = tslib_1.__importStar(require("../ActionsReducers/QueryRedux"));
|
|
39
39
|
const QuickSearchRedux = tslib_1.__importStar(require("../ActionsReducers/QuickSearchRedux"));
|
|
@@ -127,6 +127,7 @@ class AdaptableStore {
|
|
|
127
127
|
Popup: PopupRedux.PopupReducer,
|
|
128
128
|
System: SystemRedux.SystemReducer,
|
|
129
129
|
Plugins: PluginsRedux.PluginsReducer,
|
|
130
|
+
Comment: CommentsRedux.CommentsReducer,
|
|
130
131
|
// Reducers for Persisted State
|
|
131
132
|
Alert: AlertRedux.AlertReducer,
|
|
132
133
|
FlashingCell: FlashingCellRedux.FlashingCellReducer,
|
|
@@ -148,8 +149,7 @@ class AdaptableStore {
|
|
|
148
149
|
ToolPanel: ToolPanelRedux.ToolPanelReducer,
|
|
149
150
|
Charting: ChartingRedux.ChartingReducer,
|
|
150
151
|
StyledColumn: StyledColumnRedux.StyledColumnReducer,
|
|
151
|
-
|
|
152
|
-
Comment: CommentsRedux.CommentsReducer,
|
|
152
|
+
Note: NoteRedux.NoteReducer,
|
|
153
153
|
Query: QueryRedux.QueryReducer,
|
|
154
154
|
NamedQuery: NamedQueryRedux.NamedQueryReducer,
|
|
155
155
|
};
|
|
@@ -868,12 +868,12 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
868
868
|
* Note ACTIONS
|
|
869
869
|
*******************/
|
|
870
870
|
/**
|
|
871
|
-
* Use Case:
|
|
871
|
+
* Use Case: Note has been edited/deleted/added
|
|
872
872
|
* Action: Triangle can be removed/added
|
|
873
873
|
*/
|
|
874
|
-
case
|
|
875
|
-
case
|
|
876
|
-
case
|
|
874
|
+
case NoteRedux.NOTE_ADD:
|
|
875
|
+
case NoteRedux.NOTE_EDIT:
|
|
876
|
+
case NoteRedux.NOTE_DELETE: {
|
|
877
877
|
let returnAction = next(action);
|
|
878
878
|
const node = adaptable.api.gridApi.getRowNodeForPrimaryKey(returnAction.adaptableNote.PrimaryKeyValue);
|
|
879
879
|
adaptable.refreshCells([node], [returnAction.adaptableNote.ColumnId], true);
|
|
@@ -2,11 +2,7 @@ import { AdaptableApi } from '../Api/AdaptableApi';
|
|
|
2
2
|
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
3
3
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
4
4
|
import { IModule } from './Interface/IModule';
|
|
5
|
-
|
|
6
|
-
* In the first iteration a cell can have only one note, the
|
|
7
|
-
* notes is a list to allow further development.
|
|
8
|
-
*/
|
|
9
|
-
export declare class CommentsModule extends AdaptableModuleBase implements IModule {
|
|
5
|
+
export declare class CommentModule extends AdaptableModuleBase implements IModule {
|
|
10
6
|
private adaptable;
|
|
11
7
|
constructor(api: AdaptableApi);
|
|
12
8
|
onAdaptableReady(): void;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CommentModule = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
6
6
|
const ObjectFactory_1 = require("../Utilities/ObjectFactory");
|
|
7
7
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
8
|
-
|
|
9
|
-
* In the first iteration a cell can have only one note, the
|
|
10
|
-
* notes is a list to allow further development.
|
|
11
|
-
*/
|
|
12
|
-
class CommentsModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
|
+
class CommentModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
13
9
|
constructor(api) {
|
|
14
|
-
super(ModuleConstants.
|
|
10
|
+
super(ModuleConstants.CommentModuleId, ModuleConstants.CommentFriendlyName, 'comments', 'CommentsPopup', 'comments', api);
|
|
15
11
|
this.adaptable = api.internalApi.getAdaptableInstance();
|
|
16
12
|
}
|
|
17
13
|
onAdaptableReady() {
|
|
@@ -22,6 +18,9 @@ class CommentsModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
22
18
|
if (!options || !options.persistCommentThreads || !options.loadCommentThreads) {
|
|
23
19
|
return false;
|
|
24
20
|
}
|
|
21
|
+
if (this.api.optionsApi.getAutogeneratePrimaryKey()) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
25
24
|
return super.isModuleAvailable();
|
|
26
25
|
}
|
|
27
26
|
async loadComments() {
|
|
@@ -83,4 +82,4 @@ class CommentsModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
83
82
|
return items;
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
|
-
exports.
|
|
85
|
+
exports.CommentModule = CommentModule;
|
|
@@ -13,6 +13,7 @@ export declare class LayoutModule extends AdaptableModuleBase implements IModule
|
|
|
13
13
|
protected LayoutState: LayoutState;
|
|
14
14
|
constructor(api: AdaptableApi);
|
|
15
15
|
onAdaptableReady(): void;
|
|
16
|
+
rowSummariesSubscribtions(): void;
|
|
16
17
|
getModuleAdaptableObjects(): AdaptableObject[];
|
|
17
18
|
getExplicitlyReferencedColumnIds(layout: Layout): string[];
|
|
18
19
|
getTeamSharingReferences(adaptableObject: AdaptableObject): TeamSharingReferences;
|
|
@@ -39,6 +39,10 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
39
39
|
requestAnimationFrame(() => {
|
|
40
40
|
this.api.layoutApi.internalApi.fireLayoutChangedEvent('ADAPTABLE_READY', null, this.api.layoutApi.getLayoutState());
|
|
41
41
|
});
|
|
42
|
+
this.rowSummariesSubscribtions();
|
|
43
|
+
}
|
|
44
|
+
rowSummariesSubscribtions() {
|
|
45
|
+
// ROW SUMMARY
|
|
42
46
|
this.evaluateRowSummary();
|
|
43
47
|
this.api.eventApi.on('AdaptableStateReloaded', () => {
|
|
44
48
|
this.evaluateRowSummary();
|
|
@@ -53,9 +57,21 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
53
57
|
});
|
|
54
58
|
});
|
|
55
59
|
this.api.eventApi.on('LayoutChanged', (event) => {
|
|
56
|
-
|
|
60
|
+
// exclude filter events, those are handled in another event
|
|
61
|
+
if (event.actionName.includes('FILTER')) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
setTimeout(() => {
|
|
65
|
+
// the timeout is added so the grid has time to repond to the layout changed
|
|
66
|
+
this.evaluateRowSummary();
|
|
67
|
+
}, 16);
|
|
57
68
|
});
|
|
58
69
|
const adaptable = this.api.internalApi.getAdaptableInstance();
|
|
70
|
+
adaptable._on('AdapTableFiltersApplied', () => {
|
|
71
|
+
// we need to use this instead of layout changed
|
|
72
|
+
// so the rows have time to update
|
|
73
|
+
this.evaluateRowSummary();
|
|
74
|
+
});
|
|
59
75
|
adaptable._on('FirstDataRendered', () => {
|
|
60
76
|
this.evaluateRowSummary();
|
|
61
77
|
});
|
|
@@ -2,9 +2,10 @@ import { AdaptableApi } from '../Api/AdaptableApi';
|
|
|
2
2
|
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
3
3
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
4
4
|
import { IModule } from './Interface/IModule';
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class NoteModule extends AdaptableModuleBase implements IModule {
|
|
6
6
|
private adaptable;
|
|
7
7
|
constructor(api: AdaptableApi);
|
|
8
|
+
isModuleAvailable(): boolean;
|
|
8
9
|
addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
9
10
|
private getAddRemoveNoteMenuItems;
|
|
10
11
|
}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NoteModule = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
6
6
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
7
|
-
class
|
|
7
|
+
class NoteModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
8
|
constructor(api) {
|
|
9
|
-
super(ModuleConstants.
|
|
9
|
+
super(ModuleConstants.NoteModuleId, ModuleConstants.NoteFriendlyName, 'note', 'NotePopup', 'Notes', api);
|
|
10
10
|
this.adaptable = api.internalApi.getAdaptableInstance();
|
|
11
11
|
}
|
|
12
|
+
isModuleAvailable() {
|
|
13
|
+
// Note module doesn't support autogenerated primary keys
|
|
14
|
+
return super.isModuleAvailable() && !this.api.optionsApi.getAutogeneratePrimaryKey();
|
|
15
|
+
}
|
|
12
16
|
addContextMenuItems(menuContext) {
|
|
13
17
|
var _a, _b;
|
|
14
18
|
if (!this.isModuleAvailable()) {
|
|
@@ -36,7 +40,7 @@ class NotesModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
36
40
|
return items;
|
|
37
41
|
}
|
|
38
42
|
// does not have note
|
|
39
|
-
const [note] = (_a = this.adaptable.api.noteApi.
|
|
43
|
+
const [note] = (_a = this.adaptable.api.noteApi.getNotesForCell({
|
|
40
44
|
PrimaryKeyValue: menuContext.primaryKeyValue,
|
|
41
45
|
ColumnId: menuContext.adaptableColumn.columnId,
|
|
42
46
|
})) !== null && _a !== void 0 ? _a : [];
|
|
@@ -58,4 +62,4 @@ class NotesModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
58
62
|
return items;
|
|
59
63
|
}
|
|
60
64
|
}
|
|
61
|
-
exports.
|
|
65
|
+
exports.NoteModule = NoteModule;
|
|
@@ -37,10 +37,10 @@ export declare const GridInfoModuleId: ModuleConstants;
|
|
|
37
37
|
export declare const GridInfoFriendlyName = "Grid Info";
|
|
38
38
|
export declare const ColumnInfoModuleId: ModuleConstants;
|
|
39
39
|
export declare const ColumnInfoFriendlyName = "Column Info";
|
|
40
|
-
export declare const
|
|
41
|
-
export declare const
|
|
42
|
-
export declare const
|
|
43
|
-
export declare const
|
|
40
|
+
export declare const NoteModuleId: ModuleConstants;
|
|
41
|
+
export declare const NoteFriendlyName = "Note";
|
|
42
|
+
export declare const CommentModuleId: ModuleConstants;
|
|
43
|
+
export declare const CommentFriendlyName = "Comment";
|
|
44
44
|
export declare const IPushPullModuleId: ModuleConstants;
|
|
45
45
|
export declare const IPushPullFriendlyName = "IPushPull";
|
|
46
46
|
export declare const LayoutModuleId: ModuleConstants;
|
|
@@ -108,12 +108,12 @@ export declare const ADAPTABLE_MODULE_MAP: {
|
|
|
108
108
|
ToolPanel: string;
|
|
109
109
|
SettingsPanel: string;
|
|
110
110
|
StatusBar: string;
|
|
111
|
-
|
|
111
|
+
Note: string;
|
|
112
112
|
ColumnInfo: string;
|
|
113
113
|
DataImport: string;
|
|
114
114
|
NamedQuery: string;
|
|
115
115
|
GridFilter: string;
|
|
116
|
-
|
|
116
|
+
Comment: string;
|
|
117
117
|
Query: string;
|
|
118
118
|
Filter: string;
|
|
119
119
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlusMinusFriendlyName = exports.PlusMinusModuleId = exports.OpenFinFriendlyName = exports.OpenFinModuleId = exports.LayoutFriendlyName = exports.LayoutModuleId = exports.IPushPullFriendlyName = exports.IPushPullModuleId = exports.
|
|
3
|
+
exports.PlusMinusFriendlyName = exports.PlusMinusModuleId = exports.OpenFinFriendlyName = exports.OpenFinModuleId = exports.LayoutFriendlyName = exports.LayoutModuleId = exports.IPushPullFriendlyName = exports.IPushPullModuleId = exports.CommentFriendlyName = exports.CommentModuleId = exports.NoteFriendlyName = exports.NoteModuleId = exports.ColumnInfoFriendlyName = exports.ColumnInfoModuleId = exports.GridInfoFriendlyName = exports.GridInfoModuleId = exports.FreeTextColumnFriendlyName = exports.FreeTextColumnModuleId = exports.FormatColumnFriendlyName = exports.FormatColumnModuleId = exports.NamedQueryFriendlyName = exports.NamedQueryModuleId = exports.GridFilterFriendlyName = exports.GridFilterModuleId = exports.ColumnFilterFriendlyName = exports.ColumnFilterModuleId = exports.Fdc3FriendlyName = exports.Fdc3ModuleId = exports.ExportFriendlyName = exports.ExportModuleId = exports.DataSetFriendlyName = exports.DataSetModuleId = exports.DataChangeHistoryFriendlyName = exports.DataChangeHistoryModuleId = exports.DashboardFriendlyName = exports.DashboardModuleId = exports.CustomSortFriendlyName = exports.CustomSortModuleId = exports.ChartingFriendlyName = exports.ChartingModuleId = exports.CellSummaryFriendlyName = exports.CellSummaryModuleId = exports.CalculatedColumnFriendlyName = exports.CalculatedColumnModuleId = exports.BulkUpdateFriendlyName = exports.BulkUpdateModuleId = exports.FlashingCellFriendlyName = exports.FlashingCellModuleId = exports.AlertModuleFriendlyName = exports.AlertModuleId = void 0;
|
|
4
4
|
exports.ADAPTABLE_MODULE_MAP = exports.DataImportFriendyName = exports.DataImportModuleId = exports.StatusBarFriendlyName = exports.StatusBarModuleId = exports.SettingsPanelFriendlyName = exports.SettingsPanelModuleId = exports.ToolPanelFriendlyName = exports.ToolPanelModuleId = exports.ThemeFriendlyName = exports.ThemeModuleId = exports.TeamSharingFriendlyName = exports.TeamSharingModuleId = exports.SystemStatusFriendlyName = exports.SystemStatusModuleId = exports.StateManagementFriendlyName = exports.StateManagementModuleId = exports.StyledColumnFriendlyName = exports.StyledColumnModuleId = exports.SmartEditFriendlyName = exports.SmartEditModuleId = exports.ShortcutFriendlyName = exports.ShortcutModuleId = exports.ScheduleFriendlyName = exports.ScheduleModuleId = exports.QuickSearchFriendlyName = exports.QuickSearchModuleId = void 0;
|
|
5
5
|
exports.AlertModuleId = 'Alert';
|
|
6
6
|
exports.AlertModuleFriendlyName = 'Alert';
|
|
@@ -40,10 +40,10 @@ exports.GridInfoModuleId = 'GridInfo';
|
|
|
40
40
|
exports.GridInfoFriendlyName = 'Grid Info';
|
|
41
41
|
exports.ColumnInfoModuleId = 'ColumnInfo';
|
|
42
42
|
exports.ColumnInfoFriendlyName = 'Column Info';
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
43
|
+
exports.NoteModuleId = 'Note';
|
|
44
|
+
exports.NoteFriendlyName = 'Note';
|
|
45
|
+
exports.CommentModuleId = 'Comment';
|
|
46
|
+
exports.CommentFriendlyName = 'Comment';
|
|
47
47
|
exports.IPushPullModuleId = 'IPushPull';
|
|
48
48
|
exports.IPushPullFriendlyName = 'IPushPull';
|
|
49
49
|
exports.LayoutModuleId = 'Layout';
|
|
@@ -111,12 +111,12 @@ exports.ADAPTABLE_MODULE_MAP = {
|
|
|
111
111
|
[exports.ToolPanelModuleId]: exports.ToolPanelFriendlyName,
|
|
112
112
|
[exports.SettingsPanelModuleId]: exports.SettingsPanelFriendlyName,
|
|
113
113
|
[exports.StatusBarModuleId]: exports.StatusBarFriendlyName,
|
|
114
|
-
[exports.
|
|
114
|
+
[exports.NoteModuleId]: exports.NoteFriendlyName,
|
|
115
115
|
[exports.ColumnInfoModuleId]: exports.ColumnInfoFriendlyName,
|
|
116
116
|
[exports.DataImportModuleId]: exports.DataImportFriendyName,
|
|
117
117
|
[exports.NamedQueryModuleId]: exports.NamedQueryFriendlyName,
|
|
118
118
|
[exports.GridFilterModuleId]: exports.GridFilterFriendlyName,
|
|
119
|
-
[exports.
|
|
119
|
+
[exports.CommentModuleId]: exports.CommentFriendlyName,
|
|
120
120
|
// Remove next version
|
|
121
121
|
['Query']: 'Query',
|
|
122
122
|
['Filter']: 'Filter',
|