@adaptabletools/adaptable 16.0.8 → 16.0.10-canary.0
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 +14 -14
- package/base.css.map +1 -1
- package/bundle.cjs.js +169 -169
- package/index.css +14 -14
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +2 -2
- package/src/AdaptableOptions/ChartingOptions.d.ts +40 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +17 -0
- package/src/AdaptableOptions/NotesOptions.d.ts +23 -0
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +8 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -0
- package/src/Api/AdaptableApi.d.ts +3 -3
- package/src/Api/ChartingApi.d.ts +30 -0
- package/src/Api/ColumnApi.d.ts +5 -0
- package/src/Api/ConfigApi.d.ts +4 -3
- 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 +2 -2
- package/src/Api/Implementation/ChartingApiImpl.d.ts +8 -2
- package/src/Api/Implementation/ChartingApiImpl.js +64 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +4 -0
- package/src/Api/Implementation/ConfigApiImpl.d.ts +3 -2
- package/src/Api/Implementation/ConfigApiImpl.js +9 -9
- package/src/Api/Implementation/NotesApiImpl.d.ts +20 -0
- package/src/Api/Implementation/NotesApiImpl.js +58 -0
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -2
- package/src/Api/Implementation/OptionsApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +2 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +8 -0
- package/src/Api/Internal/AdaptableInternalApi.d.ts +0 -2
- package/src/Api/Internal/AdaptableInternalApi.js +0 -6
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +12 -0
- package/src/Api/Internal/ChartingInternalApi.d.ts +7 -0
- package/src/Api/Internal/ChartingInternalApi.js +45 -0
- package/src/Api/Internal/ColumnInternalApi.d.ts +3 -0
- package/src/Api/Internal/ColumnInternalApi.js +3 -0
- package/src/Api/NotesAPi.d.ts +50 -0
- package/src/Api/OptionsApi.d.ts +3 -3
- package/src/Api/UserInterfaceApi.d.ts +8 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
- package/src/PredefinedConfig/ChartingState.d.ts +22 -0
- package/src/PredefinedConfig/ChartingState.js +9 -0
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +12 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/Menu.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +2 -2
- package/src/PredefinedConfig/Common/Types.js +1 -1
- package/src/PredefinedConfig/NotesState.d.ts +59 -0
- package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -2
- package/src/PredefinedConfig/SystemState.d.ts +5 -3
- package/src/Redux/ActionsReducers/ChartingRedux.d.ts +28 -3
- package/src/Redux/ActionsReducers/ChartingRedux.js +52 -5
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +39 -0
- package/src/Redux/ActionsReducers/NotesRedux.js +88 -0
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +10 -10
- package/src/Redux/ActionsReducers/SystemRedux.js +23 -22
- package/src/Redux/Store/AdaptableStore.js +19 -11
- package/src/Strategy/ChartingModule.d.ts +5 -2
- package/src/Strategy/ChartingModule.js +28 -7
- package/src/Strategy/ColumnInfoModule.d.ts +11 -0
- package/src/Strategy/ColumnInfoModule.js +47 -0
- package/src/Strategy/DataSetModule.js +1 -0
- package/src/Strategy/Fdc3Module.js +28 -26
- package/src/Strategy/FilterModule.js +5 -0
- package/src/Strategy/GridInfoModule.js +13 -82
- package/src/Strategy/Interface/IModule.d.ts +2 -0
- package/src/Strategy/{CommentsModule.d.ts → NotesModule.d.ts} +6 -6
- package/src/Strategy/{CommentsModule.js → NotesModule.js} +41 -41
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.d.ts +2 -0
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +20 -18
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +6 -3
- package/src/Utilities/Constants/ModuleConstants.js +8 -5
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -2
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +36 -10
- package/src/Utilities/Extensions/ObjectExtensions.d.ts +1 -0
- package/src/Utilities/Extensions/ObjectExtensions.js +5 -1
- package/src/Utilities/ObjectFactory.d.ts +2 -1
- package/src/Utilities/ObjectFactory.js +10 -2
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +4 -0
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +1 -2
- package/src/Utilities/Services/QueryLanguageService.js +1 -6
- package/src/Utilities/Services/ValidationService.js +15 -5
- package/src/View/AdaptableView.js +2 -2
- package/src/View/AdaptableViewFactory.js +5 -3
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +20 -4
- package/src/View/Alert/Wizard/AlertWizard.js +14 -7
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +2 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +25 -46
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.d.ts +8 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +19 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +2 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +44 -3
- package/src/View/CalculatedColumn/utils.d.ts +2 -0
- package/src/View/CalculatedColumn/utils.js +14 -0
- package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.d.ts +6 -0
- package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +47 -0
- package/src/View/Charting/ChartingWizard/{PreviewChartSection.d.ts → AgChargingWizard/PreviewChartSection.d.ts} +1 -1
- package/src/View/Charting/ChartingWizard/{PreviewChartSection.js → AgChargingWizard/PreviewChartSection.js} +2 -2
- package/src/View/Charting/ChartingWizard/{SettingsSection.d.ts → AgChargingWizard/SettingsSection.d.ts} +1 -1
- package/src/View/Charting/ChartingWizard/{SettingsSection.js → AgChargingWizard/SettingsSection.js} +4 -4
- package/src/View/Charting/ChartingWizard/AgChargingWizard/index.d.ts +1 -0
- package/src/View/Charting/ChartingWizard/AgChargingWizard/index.js +4 -0
- package/src/View/Charting/ChartingWizard/ChartingWizard.d.ts +4 -3
- package/src/View/Charting/ChartingWizard/ChartingWizard.js +12 -39
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.d.ts +6 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +59 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.d.ts +9 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +25 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.d.ts +1 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.js +4 -0
- package/src/View/Charting/ChartingWizard/index.d.ts +1 -0
- package/src/View/Charting/ChartingWizard/index.js +4 -0
- package/src/View/Charting/DeleteChartButton.d.ts +2 -1
- package/src/View/Charting/DeleteChartButton.js +4 -2
- package/src/View/Charting/EditChartButton.d.ts +2 -1
- package/src/View/Charting/ShowChartButton.js +47 -16
- package/src/View/Charting/{useChartState.d.ts → useAgChartState.d.ts} +1 -1
- package/src/View/Charting/{useChartState.js → useAgChartState.js} +7 -7
- package/src/View/Charting/useChartingElements.d.ts +2 -1
- package/src/View/Charting/useChartingElements.js +36 -26
- package/src/View/Charting/useExternalChartState.d.ts +7 -0
- package/src/View/Charting/useExternalChartState.js +56 -0
- package/src/View/ColumnInfo/ColumnInfo.d.ts +5 -0
- package/src/View/ColumnInfo/ColumnInfo.js +185 -0
- package/src/View/ColumnInfo/ColumnInfoPopup.d.ts +3 -0
- package/src/View/ColumnInfo/ColumnInfoPopup.js +15 -0
- package/src/View/Components/AdaptableIconSelector/index.d.ts +1 -1
- package/src/View/Components/Selectors/ColumnSelector.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +6 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -0
- package/src/View/GridInfo/{AdaptableObjectsSummary.js → GridInfoPopup/AdaptableObjectsSummary.js} +2 -2
- package/src/View/GridInfo/{AdaptableOptionsComponent.d.ts → GridInfoPopup/AdaptableOptionsComponent.d.ts} +1 -1
- package/src/View/GridInfo/{AdaptableOptionsComponent.js → GridInfoPopup/AdaptableOptionsComponent.js} +6 -6
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.d.ts +6 -0
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +82 -0
- package/src/View/GridInfo/GridInfoPopup/index.d.ts +1 -0
- package/src/View/GridInfo/GridInfoPopup/index.js +4 -0
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
- package/src/View/Notes/NotesListing.d.ts +2 -0
- package/src/View/{Comments/CommentListing.js → Notes/NotesListing.js} +13 -14
- package/src/View/Notes/NotesPopup.d.ts +2 -0
- package/src/View/{Comments/CommentPopup.js → Notes/NotesPopup.js} +21 -21
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +6 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +14 -0
- package/src/agGrid/Adaptable.d.ts +1 -1
- package/src/agGrid/Adaptable.js +28 -16
- package/src/agGrid/agGridHelper.d.ts +3 -3
- package/src/agGrid/agGridHelper.js +56 -30
- package/src/agGrid/agGridMenuHelper.js +4 -2
- package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.js +15 -6
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +5 -10
- package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +5 -5
- package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.d.ts +2 -0
- package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.js +25 -0
- package/src/components/ExpressionEditor/index.d.ts +1 -1
- package/src/components/ExpressionEditor/index.js +2 -1
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/note.d.ts +3 -0
- package/src/components/icons/note.js +7 -0
- package/src/metamodel/adaptable.metamodel.d.ts +72 -59
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/CommentsOptions.d.ts +0 -23
- package/src/Api/CommentsApi.d.ts +0 -50
- package/src/Api/Implementation/CommentsApiImpl.d.ts +0 -20
- package/src/Api/Implementation/CommentsApiImpl.js +0 -58
- package/src/PredefinedConfig/CommentsState.d.ts +0 -59
- package/src/Redux/ActionsReducers/CommentsRedux.d.ts +0 -39
- package/src/Redux/ActionsReducers/CommentsRedux.js +0 -92
- package/src/View/Comments/CommentListing.d.ts +0 -2
- package/src/View/Comments/CommentPopup.d.ts +0 -2
- package/src/View/GridInfo/ColumnInfoComponent.d.ts +0 -20
- package/src/View/GridInfo/ColumnInfoComponent.js +0 -176
- package/src/View/GridInfo/GridInfoPopup.d.ts +0 -16
- package/src/View/GridInfo/GridInfoPopup.js +0 -117
- package/src/View/GridInfo/GridOptionsComponent.d.ts +0 -16
- package/src/View/GridInfo/GridOptionsComponent.js +0 -36
- /package/src/AdaptableOptions/{CommentsOptions.js → NotesOptions.js} +0 -0
- /package/src/Api/{CommentsApi.js → NotesAPi.js} +0 -0
- /package/src/PredefinedConfig/{CommentsState.js → NotesState.js} +0 -0
- /package/src/View/GridInfo/{AdaptableObjectsSummary.d.ts → GridInfoPopup/AdaptableObjectsSummary.d.ts} +0 -0
|
@@ -20,7 +20,7 @@ import { ExpressionApi } from '../ExpressionApi';
|
|
|
20
20
|
import { CalendarOptions } from '../../AdaptableOptions/CalendarOptions';
|
|
21
21
|
import { Fdc3Api } from '../Fdc3Api';
|
|
22
22
|
import { Fdc3Options } from '../../AdaptableOptions/Fdc3Options';
|
|
23
|
-
import {
|
|
23
|
+
import { NotesOptions } from '../../AdaptableOptions/NotesOptions';
|
|
24
24
|
export declare abstract class ApiBase {
|
|
25
25
|
protected adaptable: IAdaptable;
|
|
26
26
|
/**
|
|
@@ -64,7 +64,7 @@ export declare abstract class ApiBase {
|
|
|
64
64
|
protected getActionColumnOptions(): ActionColumnOptions;
|
|
65
65
|
protected getActionRowOptions(): ActionRowOptions;
|
|
66
66
|
protected getColumnOptions(): ColumnOptions;
|
|
67
|
-
protected
|
|
67
|
+
protected getNotesOptions(): NotesOptions;
|
|
68
68
|
protected getCustomSortOptions(): CustomSortOptions;
|
|
69
69
|
protected getDataSetOptions(): DataSetOptions;
|
|
70
70
|
protected getCalendarOptions(): CalendarOptions;
|
|
@@ -102,8 +102,8 @@ class ApiBase {
|
|
|
102
102
|
getColumnOptions() {
|
|
103
103
|
return this.getOptions().columnOptions;
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
return this.getOptions().
|
|
105
|
+
getNotesOptions() {
|
|
106
|
+
return this.getOptions().notesOptions;
|
|
107
107
|
}
|
|
108
108
|
getCustomSortOptions() {
|
|
109
109
|
return this.getOptions().customSortOptions;
|
|
@@ -2,10 +2,9 @@ import { ChartModel, ChartRef } from '@ag-grid-community/core';
|
|
|
2
2
|
import { ChartingApi } from '../ChartingApi';
|
|
3
3
|
import { ApiBase } from './ApiBase';
|
|
4
4
|
import { ChartContainer, ChartDefinition } from '../../types';
|
|
5
|
-
import { ChartingInternalApi } from '../Internal/ChartingInternalApi';
|
|
6
5
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
6
|
+
import { ExternalChartDefinition } from '../../PredefinedConfig/ChartingState';
|
|
7
7
|
export declare class ChartingApiImpl extends ApiBase implements ChartingApi {
|
|
8
|
-
internalApi: ChartingInternalApi;
|
|
9
8
|
constructor(adaptable: IAdaptable);
|
|
10
9
|
isChartingEnabled(): boolean;
|
|
11
10
|
getCurrentChartModels(): ChartModel[];
|
|
@@ -32,4 +31,11 @@ export declare class ChartingApiImpl extends ApiBase implements ChartingApi {
|
|
|
32
31
|
getOpenChartContainer(chartDefinition: ChartDefinition): ChartContainer | null;
|
|
33
32
|
setChartReadOnly(chartDefinition: ChartDefinition): void;
|
|
34
33
|
setChartEditable(chartDefinition: ChartDefinition): void;
|
|
34
|
+
addExternalChartDefinition(chartDefinition: ExternalChartDefinition, options: {
|
|
35
|
+
saveStrategy: 'auto' | 'manual';
|
|
36
|
+
}): void;
|
|
37
|
+
editExternalChartDefinition(chartDefinition: ExternalChartDefinition): void;
|
|
38
|
+
deleteExternalChartDefinition(chartDefinition: ExternalChartDefinition): void;
|
|
39
|
+
getExternalChartDefinitions(): ExternalChartDefinition<unknown>[];
|
|
40
|
+
getExternalChartDefinitionByName(name: string): ExternalChartDefinition | undefined;
|
|
35
41
|
}
|
|
@@ -115,5 +115,69 @@ class ChartingApiImpl extends ApiBase_1.ApiBase {
|
|
|
115
115
|
setChartEditable(chartDefinition) {
|
|
116
116
|
this.dispatchAction(ChartingRedux.ChartingEditChart(Object.assign(Object.assign({}, chartDefinition), { IsReadOnly: false })));
|
|
117
117
|
}
|
|
118
|
+
addExternalChartDefinition(chartDefinition, options) {
|
|
119
|
+
var _a, _b, _c;
|
|
120
|
+
const saveStrategy = (_a = options === null || options === void 0 ? void 0 : options.saveStrategy) !== null && _a !== void 0 ? _a : 'manual';
|
|
121
|
+
if (saveStrategy === 'auto') {
|
|
122
|
+
this.dispatchAction(ChartingRedux.ChartingAddExternalChart(Object.assign(Object.assign({}, chartDefinition), { Name: (_b = chartDefinition.Name) !== null && _b !== void 0 ? _b : this.internalApi.getUniqueChartName() })));
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
const alert = {
|
|
126
|
+
alertType: 'generic',
|
|
127
|
+
header: 'Save chart',
|
|
128
|
+
message: 'Do you want to save this Chart?',
|
|
129
|
+
alertDefinition: Object.assign(Object.assign({}, ObjectFactory_1.default.CreateEmptyAlertDefinition()), { MessageType: 'Info', AlertProperties: {
|
|
130
|
+
DisplayNotification: true,
|
|
131
|
+
NotificationDuration: 'always',
|
|
132
|
+
}, AlertForm: {
|
|
133
|
+
Buttons: [
|
|
134
|
+
{
|
|
135
|
+
Label: 'Save',
|
|
136
|
+
Action: (context) => {
|
|
137
|
+
this.dispatchAction(ChartingRedux.ChartingAddExternalChart(Object.assign(Object.assign({}, chartDefinition), { Name: context.formData.name || this.internalApi.getUniqueChartName() })));
|
|
138
|
+
},
|
|
139
|
+
ButtonStyle: {
|
|
140
|
+
tone: 'info',
|
|
141
|
+
variant: 'raised',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
Label: 'Dismiss',
|
|
146
|
+
ButtonStyle: {
|
|
147
|
+
tone: 'neutral',
|
|
148
|
+
variant: 'raised',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
fields: [
|
|
153
|
+
{
|
|
154
|
+
name: 'name',
|
|
155
|
+
label: 'Name',
|
|
156
|
+
fieldType: 'text',
|
|
157
|
+
defaultValue: (_c = chartDefinition.Name) !== null && _c !== void 0 ? _c : '',
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
} }),
|
|
161
|
+
};
|
|
162
|
+
this.adaptable.api.alertApi.showAdaptableAlert(alert);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
editExternalChartDefinition(chartDefinition) {
|
|
166
|
+
this.dispatchAction(ChartingRedux.ChartingEditExternalChart(chartDefinition));
|
|
167
|
+
}
|
|
168
|
+
deleteExternalChartDefinition(chartDefinition) {
|
|
169
|
+
this.dispatchAction(ChartingRedux.ChartingDeleteExternalChart(chartDefinition));
|
|
170
|
+
}
|
|
171
|
+
getExternalChartDefinitions() {
|
|
172
|
+
return this.getAdaptableState().Charting.ExternalChartDefinitions;
|
|
173
|
+
}
|
|
174
|
+
getExternalChartDefinitionByName(name) {
|
|
175
|
+
if (StringExtensions_1.default.IsNotNullOrEmpty(name)) {
|
|
176
|
+
let chartDefinition = this.getExternalChartDefinitions().find((c) => c.Name == name);
|
|
177
|
+
if (this.checkItemExists(chartDefinition, name, 'Chart')) {
|
|
178
|
+
return chartDefinition;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
118
182
|
}
|
|
119
183
|
exports.ChartingApiImpl = ChartingApiImpl;
|
|
@@ -32,6 +32,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
32
32
|
hasDateDataType(columnId: string): boolean;
|
|
33
33
|
getColumnDataTypeForColumnId(columnId: string): AdaptableColumnDataType | undefined;
|
|
34
34
|
getFriendlyNameForColumnId(columnId: string): string;
|
|
35
|
+
doesColumnExist(columnId: string): boolean;
|
|
35
36
|
getFriendlyNamesForColumnIds(columnIds: string[]): string[];
|
|
36
37
|
getColumnIdForFriendlyName(friendlyName: string): string;
|
|
37
38
|
getColumnIdsForFriendlyNames(friendlyNames: string[]): string[];
|
|
@@ -164,6 +164,10 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
164
164
|
this.logMissingColumnWarning(columnId);
|
|
165
165
|
return result;
|
|
166
166
|
}
|
|
167
|
+
doesColumnExist(columnId) {
|
|
168
|
+
const foundColumn = this.getColumns().find((c) => c.columnId == columnId);
|
|
169
|
+
return foundColumn ? true : false;
|
|
170
|
+
}
|
|
167
171
|
getFriendlyNamesForColumnIds(columnIds) {
|
|
168
172
|
const friendlyNames = [];
|
|
169
173
|
if (ArrayExtensions_1.default.IsNullOrEmpty(columnIds)) {
|
|
@@ -17,10 +17,11 @@ import { FreeTextColumnState } from '../../PredefinedConfig/FreeTextColumnState'
|
|
|
17
17
|
import { ToolPanelState } from '../../PredefinedConfig/ToolPanelState';
|
|
18
18
|
import { ConfigApi } from '../ConfigApi';
|
|
19
19
|
import { AdaptableModule, AdaptableStateKey } from '../../PredefinedConfig/Common/Types';
|
|
20
|
-
import { AdaptableOptions, AdaptableSearchState, AdaptableSortState,
|
|
20
|
+
import { AdaptableOptions, AdaptableSearchState, AdaptableSortState, ScheduleState } from '../../types';
|
|
21
21
|
import { QueryState } from '../../PredefinedConfig/QueryState';
|
|
22
22
|
import { PredefinedConfig } from '../../PredefinedConfig/PredefinedConfig';
|
|
23
23
|
import { ChartingState } from '../../PredefinedConfig/ChartingState';
|
|
24
|
+
import { NotesState } from '../../PredefinedConfig/NotesState';
|
|
24
25
|
export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
|
|
25
26
|
configInit(): void;
|
|
26
27
|
copyAllStateToClipboard(): void;
|
|
@@ -48,7 +49,7 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
|
|
|
48
49
|
getApplicationState(returnJson?: boolean): ApplicationState;
|
|
49
50
|
getCalculatedColumnState(returnJson?: boolean): CalculatedColumnState;
|
|
50
51
|
getChartingState(returnJson?: boolean): ChartingState;
|
|
51
|
-
|
|
52
|
+
getNotesState(returnJson?: boolean): NotesState;
|
|
52
53
|
getCustomSortState(returnJson?: boolean): CustomSortState;
|
|
53
54
|
getDashboardState(returnJson?: boolean): DashboardState;
|
|
54
55
|
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 NotesRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NotesRedux"));
|
|
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"));
|
|
@@ -137,7 +137,7 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
137
137
|
promise
|
|
138
138
|
.then(() => {
|
|
139
139
|
this.adaptable.prepareGrid();
|
|
140
|
-
this.adaptable.api.
|
|
140
|
+
this.adaptable.api.userInterfaceApi.hideLoadingScreen();
|
|
141
141
|
})
|
|
142
142
|
.then(() => {
|
|
143
143
|
// resolve main(result) promise
|
|
@@ -174,10 +174,10 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
174
174
|
return returnJson
|
|
175
175
|
? JSON.stringify(this.getAdaptableState().Charting)
|
|
176
176
|
: this.getAdaptableState().Charting;
|
|
177
|
-
case '
|
|
177
|
+
case 'Notes':
|
|
178
178
|
return returnJson
|
|
179
|
-
? JSON.stringify(this.getAdaptableState().
|
|
180
|
-
: this.getAdaptableState().
|
|
179
|
+
? JSON.stringify(this.getAdaptableState().Notes)
|
|
180
|
+
: this.getAdaptableState().Notes;
|
|
181
181
|
case 'CustomSort':
|
|
182
182
|
return returnJson
|
|
183
183
|
? JSON.stringify(this.getAdaptableState().CustomSort)
|
|
@@ -254,8 +254,8 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
254
254
|
getChartingState(returnJson = false) {
|
|
255
255
|
return this.getUserStateByStateKey('Charting', returnJson);
|
|
256
256
|
}
|
|
257
|
-
|
|
258
|
-
return this.getUserStateByStateKey('
|
|
257
|
+
getNotesState(returnJson = false) {
|
|
258
|
+
return this.getUserStateByStateKey('Notes', returnJson);
|
|
259
259
|
}
|
|
260
260
|
getCustomSortState(returnJson = false) {
|
|
261
261
|
return this.getUserStateByStateKey('CustomSort', returnJson);
|
|
@@ -310,8 +310,8 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
310
310
|
case 'Charting':
|
|
311
311
|
this.dispatchAction(ChartingRedux.ChartingReady(this.getChartingState()));
|
|
312
312
|
break;
|
|
313
|
-
case '
|
|
314
|
-
this.dispatchAction(
|
|
313
|
+
case 'Notes':
|
|
314
|
+
this.dispatchAction(NotesRedux.NotesReady(this.getNotesState()));
|
|
315
315
|
break;
|
|
316
316
|
case 'CustomSort':
|
|
317
317
|
this.dispatchAction(CustomSortRedux.CustomSortReady(this.getCustomSortState()));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ApiBase } from './ApiBase';
|
|
2
|
+
import { NotesApi } from '../NotesAPi';
|
|
3
|
+
import { AdaptableNote, AdaptableNotes, NoteGridCell, NotesState } from '../../PredefinedConfig/NotesState';
|
|
4
|
+
export declare class NotesApiImpl extends ApiBase implements NotesApi {
|
|
5
|
+
addNote(noteStr: string, primaryKeyValue: any, columnId: string): void;
|
|
6
|
+
editNote(note: AdaptableNote): void;
|
|
7
|
+
updateNoteText(noteStr: string, note: AdaptableNote): void;
|
|
8
|
+
deleteNote(note: AdaptableNote): void;
|
|
9
|
+
getNotesState(): NotesState;
|
|
10
|
+
getAllNotes(): AdaptableNotes;
|
|
11
|
+
getCellNotes(config: {
|
|
12
|
+
PrimaryKeyValue: string | number;
|
|
13
|
+
ColumnId: string;
|
|
14
|
+
}): AdaptableNotes;
|
|
15
|
+
getNoteByUuid(uuid: string): AdaptableNote | undefined;
|
|
16
|
+
showNotes(noteGridCell: NoteGridCell, editMode?: boolean): void;
|
|
17
|
+
hideNote(): void;
|
|
18
|
+
getOpenNoteGridCell(): NoteGridCell | undefined;
|
|
19
|
+
getNotePopupEditMode(): boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotesApiImpl = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ApiBase_1 = require("./ApiBase");
|
|
6
|
+
const NotesRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NotesRedux"));
|
|
7
|
+
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
8
|
+
class NotesApiImpl extends ApiBase_1.ApiBase {
|
|
9
|
+
addNote(noteStr, primaryKeyValue, columnId) {
|
|
10
|
+
const note = {
|
|
11
|
+
Value: noteStr,
|
|
12
|
+
PrimaryKeyValue: primaryKeyValue,
|
|
13
|
+
ColumnId: columnId,
|
|
14
|
+
AdaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
15
|
+
Author: {
|
|
16
|
+
UserName: this.adaptable.api.optionsApi.getUserName(),
|
|
17
|
+
},
|
|
18
|
+
Timestamp: Date.now(),
|
|
19
|
+
};
|
|
20
|
+
this.dispatchAction(NotesRedux.NotesAdd(note));
|
|
21
|
+
}
|
|
22
|
+
editNote(note) {
|
|
23
|
+
note.Timestamp = Date.now();
|
|
24
|
+
this.dispatchAction(NotesRedux.NotesEdit(note));
|
|
25
|
+
}
|
|
26
|
+
updateNoteText(noteStr, note) {
|
|
27
|
+
note.Value = noteStr;
|
|
28
|
+
this.editNote(note);
|
|
29
|
+
}
|
|
30
|
+
deleteNote(note) {
|
|
31
|
+
this.dispatchAction(NotesRedux.NotesDelete(note));
|
|
32
|
+
}
|
|
33
|
+
getNotesState() {
|
|
34
|
+
return this.getAdaptableState().Notes;
|
|
35
|
+
}
|
|
36
|
+
getAllNotes() {
|
|
37
|
+
return this.getNotesState().Notes;
|
|
38
|
+
}
|
|
39
|
+
getCellNotes(config) {
|
|
40
|
+
return NotesRedux.GetNotesSelector(this.getAdaptableState().Notes, config);
|
|
41
|
+
}
|
|
42
|
+
getNoteByUuid(uuid) {
|
|
43
|
+
return this.getAllNotes().find((note) => note.Uuid === uuid);
|
|
44
|
+
}
|
|
45
|
+
showNotes(noteGridCell, editMode) {
|
|
46
|
+
this.dispatchAction(SystemRedux.SystemNotesShow(noteGridCell, editMode));
|
|
47
|
+
}
|
|
48
|
+
hideNote() {
|
|
49
|
+
this.dispatchAction(SystemRedux.SystemNoteHide());
|
|
50
|
+
}
|
|
51
|
+
getOpenNoteGridCell() {
|
|
52
|
+
return SystemRedux.SystemNotesSelector(this.getAdaptableState().System);
|
|
53
|
+
}
|
|
54
|
+
getNotePopupEditMode() {
|
|
55
|
+
return SystemRedux.SystemNotesEditModeSelector(this.getAdaptableState().System);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.NotesApiImpl = NotesApiImpl;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
|
-
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions,
|
|
2
|
+
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, NotesOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, DataSetOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotificationsOptions, OptionsApi, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../../types';
|
|
3
3
|
import { GroupingOptions } from '../../AdaptableOptions/GroupingOptions';
|
|
4
4
|
import { CustomSortOptions } from '../../AdaptableOptions/CustomSortOptions';
|
|
5
5
|
import { Fdc3Options } from '../../AdaptableOptions/Fdc3Options';
|
|
@@ -17,7 +17,7 @@ export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
|
|
|
17
17
|
getCellSummaryOptions(): CellSummaryOptions;
|
|
18
18
|
getCalendarOptions(): CalendarOptions;
|
|
19
19
|
getColumnOptions(): ColumnOptions;
|
|
20
|
-
|
|
20
|
+
getNotesOptions(): NotesOptions;
|
|
21
21
|
getCustomSortOptions(): CustomSortOptions;
|
|
22
22
|
getContainerOptions(): ContainerOptions;
|
|
23
23
|
getDataSetOptions(): DataSetOptions;
|
|
@@ -39,8 +39,8 @@ class OptionsApiImpl extends ApiBase_1.ApiBase {
|
|
|
39
39
|
getColumnOptions() {
|
|
40
40
|
return this.getOptions().columnOptions;
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
return this.getOptions().
|
|
42
|
+
getNotesOptions() {
|
|
43
|
+
return this.getOptions().notesOptions;
|
|
44
44
|
}
|
|
45
45
|
getCustomSortOptions() {
|
|
46
46
|
return this.getOptions().customSortOptions;
|
|
@@ -30,4 +30,6 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
|
|
|
30
30
|
getReadOnlyCellStyle(): AdaptableStyle | undefined;
|
|
31
31
|
getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
|
|
32
32
|
getCustomIconDefinition(iconName: string): import("../../types").AdaptableIcon | import("../../types").CustomIcon;
|
|
33
|
+
showLoadingScreen(): void;
|
|
34
|
+
hideLoadingScreen(): void;
|
|
33
35
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserInterfaceApiImpl = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
|
+
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
5
7
|
const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
|
|
6
8
|
const UserInterfaceInternalApi_1 = require("../Internal/UserInterfaceInternalApi");
|
|
7
9
|
class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
@@ -183,5 +185,11 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
183
185
|
}
|
|
184
186
|
return customIcon;
|
|
185
187
|
}
|
|
188
|
+
showLoadingScreen() {
|
|
189
|
+
this.dispatchAction(PopupRedux.PopupShowLoading());
|
|
190
|
+
}
|
|
191
|
+
hideLoadingScreen() {
|
|
192
|
+
this.dispatchAction(PopupRedux.PopupHideLoading());
|
|
193
|
+
}
|
|
186
194
|
}
|
|
187
195
|
exports.UserInterfaceApiImpl = UserInterfaceApiImpl;
|
|
@@ -30,8 +30,6 @@ import { ColDef } from '@ag-grid-community/core/dist/esm/es6/entities/colDef';
|
|
|
30
30
|
export declare class AdaptableInternalApi extends ApiBase {
|
|
31
31
|
getSystemState(): SystemState;
|
|
32
32
|
showPopupConfirmation(confirmation: UIConfirmation): void;
|
|
33
|
-
showLoadingScreen(): void;
|
|
34
|
-
hideLoadingScreen(): void;
|
|
35
33
|
showPopupScreen(module: AdaptableModule, componentName: string, popupParams?: ModuleParams, popupProps?: {
|
|
36
34
|
[key: string]: any;
|
|
37
35
|
}): void;
|
|
@@ -21,12 +21,6 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
21
21
|
showPopupConfirmation(confirmation) {
|
|
22
22
|
this.dispatchAction(PopupRedux.PopupShowConfirmation(confirmation));
|
|
23
23
|
}
|
|
24
|
-
showLoadingScreen() {
|
|
25
|
-
this.dispatchAction(PopupRedux.PopupShowLoading());
|
|
26
|
-
}
|
|
27
|
-
hideLoadingScreen() {
|
|
28
|
-
this.dispatchAction(PopupRedux.PopupHideLoading());
|
|
29
|
-
}
|
|
30
24
|
showPopupScreen(module, componentName, popupParams, popupProps) {
|
|
31
25
|
this.dispatchAction(PopupRedux.PopupShowScreen(module, componentName, popupParams, popupProps));
|
|
32
26
|
}
|
|
@@ -23,4 +23,6 @@ export declare class CalculatedColumnInternalApi extends ApiBase {
|
|
|
23
23
|
*/
|
|
24
24
|
getReferencedColumnIdsForCalculatedColumnId(calculatedColumnId: string): string[];
|
|
25
25
|
getCalculatedColumnsDependentOnColumn(column: AdaptableColumn): string[];
|
|
26
|
+
isCumulativeAggregatedExpression(input: string): boolean;
|
|
27
|
+
isQuantileAggregatedExpression(input: string): boolean;
|
|
26
28
|
}
|
|
@@ -62,5 +62,17 @@ class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
62
62
|
})
|
|
63
63
|
.map((calculatedColumn) => calculatedColumn.ColumnId);
|
|
64
64
|
}
|
|
65
|
+
isCumulativeAggregatedExpression(input) {
|
|
66
|
+
var _a;
|
|
67
|
+
return !!((_a = this.getAdaptableApi()
|
|
68
|
+
.internalApi.getQueryLanguageService()
|
|
69
|
+
.getNodesFromExpression(input, 'CUMUL')) === null || _a === void 0 ? void 0 : _a.length);
|
|
70
|
+
}
|
|
71
|
+
isQuantileAggregatedExpression(input) {
|
|
72
|
+
var _a;
|
|
73
|
+
return !!((_a = this.getAdaptableApi()
|
|
74
|
+
.internalApi.getQueryLanguageService()
|
|
75
|
+
.getNodesFromExpression(input, 'QUANT')) === null || _a === void 0 ? void 0 : _a.length);
|
|
76
|
+
}
|
|
65
77
|
}
|
|
66
78
|
exports.CalculatedColumnInternalApi = CalculatedColumnInternalApi;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
2
|
import { ChartContainer } from '../../types';
|
|
3
|
+
import { ExternalChartDefinition } from '../../PredefinedConfig/ChartingState';
|
|
3
4
|
export declare class ChartingInternalApi extends ApiBase {
|
|
4
5
|
getContainerElement(chartContainer: ChartContainer): HTMLElement | null;
|
|
5
6
|
getContainerElemetnByName(containerName: string): HTMLElement | null;
|
|
7
|
+
getUniqueChartName(): string;
|
|
8
|
+
isExternalChartOpened(chartDefinition: ExternalChartDefinition): boolean;
|
|
9
|
+
onHideExternalChart(chartDefinition: ExternalChartDefinition): void;
|
|
10
|
+
onShowExternalChart(chartDefinition: ExternalChartDefinition, container: ChartContainer): void;
|
|
11
|
+
onPreviewExternalChart(chartDefinition: ExternalChartDefinition, container: ChartContainer): ExternalChartDefinition<unknown>;
|
|
12
|
+
onDeleteExternalChart(chartDefinition: ExternalChartDefinition): void;
|
|
6
13
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ChartingInternalApi = void 0;
|
|
4
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
|
+
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
5
6
|
class ChartingInternalApi extends ApiBase_1.ApiBase {
|
|
6
7
|
getContainerElement(chartContainer) {
|
|
7
8
|
const element = typeof (chartContainer === null || chartContainer === void 0 ? void 0 : chartContainer.element) === 'string'
|
|
@@ -19,5 +20,49 @@ class ChartingInternalApi extends ApiBase_1.ApiBase {
|
|
|
19
20
|
const chartContainer = chartContainers.find((container) => container.name === containerName);
|
|
20
21
|
return this.getContainerElement(chartContainer);
|
|
21
22
|
}
|
|
23
|
+
getUniqueChartName() {
|
|
24
|
+
const charts = this.adaptable.api.chartingApi.getChartDefinitions();
|
|
25
|
+
const externalCharts = this.adaptable.api.chartingApi.getExternalChartDefinitions();
|
|
26
|
+
return `Chart ${charts.length + externalCharts.length + 1}`;
|
|
27
|
+
}
|
|
28
|
+
// External lib charting service
|
|
29
|
+
isExternalChartOpened(chartDefinition) {
|
|
30
|
+
const externalChartingOptions = this.adaptable.api.optionsApi.getChartingOptions();
|
|
31
|
+
if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.externalCharting.isChartOpened)) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
if (!chartDefinition) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
return externalChartingOptions.externalCharting.isChartOpened(Object.assign({ chartDefinition: chartDefinition }, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)));
|
|
38
|
+
}
|
|
39
|
+
onHideExternalChart(chartDefinition) {
|
|
40
|
+
const externalChartingOptions = this.adaptable.api.optionsApi.getChartingOptions();
|
|
41
|
+
if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.externalCharting.onHideChart)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
externalChartingOptions.externalCharting.onHideChart(Object.assign({ chartDefinition: chartDefinition }, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)));
|
|
45
|
+
}
|
|
46
|
+
onShowExternalChart(chartDefinition, container) {
|
|
47
|
+
const externalChartingOptions = this.adaptable.api.optionsApi.getChartingOptions();
|
|
48
|
+
if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.externalCharting.onShowChart)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
externalChartingOptions.externalCharting.onShowChart(Object.assign({ chartDefinition: chartDefinition, container: container }, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)));
|
|
52
|
+
}
|
|
53
|
+
onPreviewExternalChart(chartDefinition, container) {
|
|
54
|
+
const externalChartingOptions = this.adaptable.api.optionsApi.getChartingOptions();
|
|
55
|
+
if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.externalCharting.onPreviewChart)) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
return externalChartingOptions.externalCharting.onPreviewChart(Object.assign({ chartDefinition: chartDefinition, container: container }, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)));
|
|
59
|
+
}
|
|
60
|
+
onDeleteExternalChart(chartDefinition) {
|
|
61
|
+
const externalChartingOptions = this.adaptable.api.optionsApi.getChartingOptions();
|
|
62
|
+
if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.externalCharting.onDeleteChart)) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
externalChartingOptions.externalCharting.onDeleteChart(Object.assign({ chartDefinition: chartDefinition }, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)));
|
|
66
|
+
}
|
|
22
67
|
}
|
|
23
68
|
exports.ChartingInternalApi = ChartingInternalApi;
|
|
@@ -3,6 +3,9 @@ import { Column } from '@ag-grid-community/core';
|
|
|
3
3
|
export declare class ColumnInternalApi extends ApiBase {
|
|
4
4
|
/**
|
|
5
5
|
* Retrieves 'ColumnType' property for a given Column
|
|
6
|
+
* isCumulativeAggregate(input: string): boolean {
|
|
7
|
+
* return !!this.getNodesFromExpression(input, 'CUMUL')?.length;
|
|
8
|
+
* }
|
|
6
9
|
* @param columnId Column to use
|
|
7
10
|
*/
|
|
8
11
|
getAgGridColumnType(columnId: string): string | string[];
|
|
@@ -6,6 +6,9 @@ const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants")
|
|
|
6
6
|
class ColumnInternalApi extends ApiBase_1.ApiBase {
|
|
7
7
|
/**
|
|
8
8
|
* Retrieves 'ColumnType' property for a given Column
|
|
9
|
+
* isCumulativeAggregate(input: string): boolean {
|
|
10
|
+
* return !!this.getNodesFromExpression(input, 'CUMUL')?.length;
|
|
11
|
+
* }
|
|
9
12
|
* @param columnId Column to use
|
|
10
13
|
*/
|
|
11
14
|
getAgGridColumnType(columnId) {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AdaptableNote, AdaptableNotes, NoteGridCell, NotesState } from '../PredefinedConfig/NotesState';
|
|
2
|
+
/**
|
|
3
|
+
* Provides run-time access to Notes Module and related State
|
|
4
|
+
*/
|
|
5
|
+
export interface NotesApi {
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param note
|
|
9
|
+
* @param primaryKeyValue
|
|
10
|
+
* @param columnId
|
|
11
|
+
*/
|
|
12
|
+
addNote(note: string, primaryKeyValue: any, columnId: string): void;
|
|
13
|
+
editNote(note: AdaptableNote): void;
|
|
14
|
+
updateNoteText(noteStr: string, note: AdaptableNote): void;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param note
|
|
18
|
+
*/
|
|
19
|
+
deleteNote(note: AdaptableNote): void;
|
|
20
|
+
getNotesState(): NotesState;
|
|
21
|
+
getAllNotes(): AdaptableNotes;
|
|
22
|
+
/**
|
|
23
|
+
* Gets all notes for a cell
|
|
24
|
+
* @param noteGridCell note position
|
|
25
|
+
*/
|
|
26
|
+
getCellNotes(noteGridCell: NoteGridCell): AdaptableNote[];
|
|
27
|
+
/**
|
|
28
|
+
* Returns a note by uuid
|
|
29
|
+
* @param uuid note uuid
|
|
30
|
+
*/
|
|
31
|
+
getNoteByUuid(uuid: string): AdaptableNote | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Gets all note for a cell
|
|
34
|
+
* @param noteGridCell note position
|
|
35
|
+
* @param editMode whether to show the note in edit mode
|
|
36
|
+
*/
|
|
37
|
+
showNotes(noteGridCell: NoteGridCell, editMode?: boolean): void;
|
|
38
|
+
/**
|
|
39
|
+
* Hides the note popup
|
|
40
|
+
*/
|
|
41
|
+
hideNote(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Gets the note position of the currently open note popup
|
|
44
|
+
*/
|
|
45
|
+
getOpenNoteGridCell(): NoteGridCell | null;
|
|
46
|
+
/**
|
|
47
|
+
* Gets the note edit mode
|
|
48
|
+
*/
|
|
49
|
+
getNotePopupEditMode(): boolean;
|
|
50
|
+
}
|
package/src/Api/OptionsApi.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, ColumnOptions,
|
|
4
|
+
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotesOptions, 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
|
/**
|
|
@@ -73,9 +73,9 @@ export interface OptionsApi {
|
|
|
73
73
|
*/
|
|
74
74
|
getColumnOptions(): Readonly<ColumnOptions>;
|
|
75
75
|
/**
|
|
76
|
-
* Returns `AdaptableOptions.
|
|
76
|
+
* Returns `AdaptableOptions.noteOptions`
|
|
77
77
|
*/
|
|
78
|
-
|
|
78
|
+
getNotesOptions(): Readonly<NotesOptions>;
|
|
79
79
|
/**
|
|
80
80
|
* Returns `AdaptableOptions.customSortOptions`
|
|
81
81
|
*/
|
|
@@ -80,4 +80,12 @@ export interface UserInterfaceApi {
|
|
|
80
80
|
* @param name name of Icon
|
|
81
81
|
*/
|
|
82
82
|
getCustomIconDefinition(name: string): AdaptableIcon | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Displays the popup that says getting data and initialising grid
|
|
85
|
+
*/
|
|
86
|
+
showLoadingScreen(): void;
|
|
87
|
+
/**
|
|
88
|
+
* Hides the popup that says getting data and initialising grid
|
|
89
|
+
*/
|
|
90
|
+
hideLoadingScreen(): void;
|
|
83
91
|
}
|
|
@@ -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 { NotesState } from './NotesState';
|
|
27
27
|
/**
|
|
28
28
|
* The main state object of Adaptable
|
|
29
29
|
*/
|
|
@@ -55,7 +55,7 @@ export interface AdaptablePersistentState {
|
|
|
55
55
|
Theme: ThemeState;
|
|
56
56
|
ToolPanel: ToolPanelState;
|
|
57
57
|
Charting: ChartingState;
|
|
58
|
-
|
|
58
|
+
Notes: NotesState;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* The state which is available in the internal Redux store but never persisted
|