@adaptabletools/adaptable 16.0.9 → 16.1.0-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/agGrid.d.ts +4 -0
- package/agGrid.js +4 -0
- package/base.css +16 -14
- package/base.css.map +1 -1
- package/bundle.cjs.js +171 -170
- package/index.css +18 -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/AdaptableFrameworkComponent.d.ts +12 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -2
- package/src/AdaptableOptions/ChartingOptions.d.ts +48 -3
- package/src/AdaptableOptions/ColumnOptions.d.ts +17 -0
- package/src/AdaptableOptions/DataImportOptions.d.ts +57 -0
- package/src/AdaptableOptions/MenuOptions.d.ts +147 -8
- package/src/AdaptableOptions/MenuOptions.js +75 -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 +8 -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/DataImportApi.d.ts +9 -0
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +4 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +4 -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/DataImportApiImpl.d.ts +10 -0
- package/src/Api/Implementation/DataImportApiImpl.js +14 -0
- package/src/Api/Implementation/ExpressionApiImpl.js +1 -1
- package/src/Api/Implementation/NotesApiImpl.d.ts +20 -0
- package/src/Api/Implementation/NotesApiImpl.js +58 -0
- package/src/Api/Implementation/OptionsApiImpl.d.ts +3 -2
- package/src/Api/Implementation/OptionsApiImpl.js +5 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +7 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +30 -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/Internal/DataImportInternalApi.d.ts +4 -0
- package/src/Api/Internal/DataImportInternalApi.js +49 -0
- package/src/Api/NotesAPi.d.ts +50 -0
- package/src/Api/NotesAPi.js +2 -0
- package/src/Api/OptionsApi.d.ts +8 -3
- package/src/Api/UserInterfaceApi.d.ts +22 -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 +2 -7
- package/src/PredefinedConfig/Common/Types.d.ts +4 -4
- package/src/PredefinedConfig/Common/Types.js +3 -1
- package/src/PredefinedConfig/NotesState.d.ts +59 -0
- package/src/PredefinedConfig/NotesState.js +2 -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/DataImportModule.d.ts +11 -0
- package/src/Strategy/DataImportModule.js +36 -0
- package/src/Strategy/DataSetModule.js +1 -0
- package/src/Strategy/Fdc3Module.js +3 -2
- 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/LayoutModule.js +1 -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 +9 -3
- package/src/Utilities/Constants/ModuleConstants.js +11 -5
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +5 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +3 -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/Helpers/AdaptableHelper.js +2 -0
- package/src/Utilities/Interface/MessagePopups.d.ts +2 -2
- 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/ModuleService.js +2 -0
- 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 +7 -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/ExternalRenderer.d.ts +1 -0
- package/src/View/Components/ExternalRenderer.js +2 -1
- package/src/View/Components/Panels/PanelWithImage.js +3 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +4 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +3 -0
- package/src/View/Components/Popups/WindowPopups/WindowPopups.d.ts +1 -0
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +12 -2
- package/src/View/Components/Selectors/ColumnSelector.js +1 -1
- package/src/View/DataImport/DataImportPopup.d.ts +6 -0
- package/src/View/DataImport/DataImportPopup.js +32 -0
- package/src/View/DataImport/DataImportWizard/DataImportWizard.d.ts +8 -0
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +176 -0
- package/src/View/DataImport/DataImportWizard/index.d.ts +1 -0
- package/src/View/DataImport/DataImportWizard/index.js +4 -0
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.d.ts +10 -0
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +154 -0
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +9 -0
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +24 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.d.ts +8 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.js +11 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.d.ts +13 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +23 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.d.ts +8 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +13 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.d.ts +1 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.js +4 -0
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.d.ts +11 -0
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +35 -0
- package/src/View/DataImport/systemFileHandlers.d.ts +3 -0
- package/src/View/DataImport/systemFileHandlers.js +44 -0
- 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/View/Wizard/OnePageAdaptableWizard.d.ts +1 -0
- package/src/View/Wizard/OnePageWizards.d.ts +1 -0
- package/src/View/Wizard/OnePageWizards.js +2 -2
- 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 +58 -30
- package/src/agGrid/agGridMenuHelper.d.ts +20 -9
- package/src/agGrid/agGridMenuHelper.js +292 -135
- 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/FileDroppable/index.d.ts +2 -1
- package/src/components/FileDroppable/index.js +8 -7
- package/src/components/icons/import.d.ts +3 -0
- package/src/components/icons/import.js +7 -0
- package/src/components/icons/index.js +4 -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 +243 -61
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/index.d.ts +2 -2
- package/src/parser/src/index.js +4 -4
- package/src/parser/src/tokenizer.d.ts +1 -1
- package/src/parser/src/tokenizer.js +14 -6
- package/src/parser/src/types.d.ts +2 -2
- package/src/types.d.ts +9 -8
- 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 → DataImportOptions.js} +0 -0
- /package/src/{Api/CommentsApi.js → AdaptableOptions/NotesOptions.js} +0 -0
- /package/src/{PredefinedConfig/CommentsState.js → Api/DataImportApi.js} +0 -0
- /package/src/View/GridInfo/{AdaptableObjectsSummary.d.ts → GridInfoPopup/AdaptableObjectsSummary.d.ts} +0 -0
|
@@ -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,10 @@
|
|
|
1
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
2
|
+
import { DataImportApi } from '../DataImportApi';
|
|
3
|
+
import { DataImportInternalApi } from '../Internal/DataImportInternalApi';
|
|
4
|
+
import { ApiBase } from './ApiBase';
|
|
5
|
+
export declare class DataImportApiImpl extends ApiBase implements DataImportApi {
|
|
6
|
+
internalApi: DataImportInternalApi;
|
|
7
|
+
constructor(adaptable: IAdaptable);
|
|
8
|
+
openImportWizard(): void;
|
|
9
|
+
importData(partialRows: any[]): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataImportApiImpl = void 0;
|
|
4
|
+
const DataImportInternalApi_1 = require("../Internal/DataImportInternalApi");
|
|
5
|
+
const ApiBase_1 = require("./ApiBase");
|
|
6
|
+
class DataImportApiImpl extends ApiBase_1.ApiBase {
|
|
7
|
+
constructor(adaptable) {
|
|
8
|
+
super(adaptable);
|
|
9
|
+
this.internalApi = new DataImportInternalApi_1.DataImportInternalApi(adaptable);
|
|
10
|
+
}
|
|
11
|
+
openImportWizard() { }
|
|
12
|
+
importData(partialRows) { }
|
|
13
|
+
}
|
|
14
|
+
exports.DataImportApiImpl = DataImportApiImpl;
|
|
@@ -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;
|
|
@@ -43,4 +43,5 @@ export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
|
|
|
43
43
|
getFlashingCellOptions(): FlashingCellOptions;
|
|
44
44
|
getSettingsPanelOptions(): SettingsPanelOptions;
|
|
45
45
|
getFdc3Options(): Fdc3Options;
|
|
46
|
+
getDataImportOptions(): import("../../types").DataImportOptions<any>;
|
|
46
47
|
}
|
|
@@ -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;
|
|
@@ -117,5 +117,8 @@ class OptionsApiImpl extends ApiBase_1.ApiBase {
|
|
|
117
117
|
getFdc3Options() {
|
|
118
118
|
return this.adaptable.adaptableOptions.fdc3Options;
|
|
119
119
|
}
|
|
120
|
+
getDataImportOptions() {
|
|
121
|
+
return this.getOptions().dataImportOptions;
|
|
122
|
+
}
|
|
120
123
|
}
|
|
121
124
|
exports.OptionsApiImpl = OptionsApiImpl;
|
|
@@ -4,7 +4,7 @@ import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
|
4
4
|
import { AdaptableStyle } from '../../PredefinedConfig/Common/AdaptableStyle';
|
|
5
5
|
import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
6
6
|
import { BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../../AdaptableOptions/UserInterfaceOptions';
|
|
7
|
-
import { AdaptableObjectTag, GridCell } from '../../types';
|
|
7
|
+
import { AdaptableObjectTag, CustomWindowConfig, GridCell } from '../../types';
|
|
8
8
|
import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
|
|
9
9
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
10
10
|
export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfaceApi {
|
|
@@ -30,4 +30,10 @@ 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;
|
|
35
|
+
openCustomWindowPopup(config: CustomWindowConfig): {
|
|
36
|
+
close: () => void;
|
|
37
|
+
};
|
|
38
|
+
closeCustomWindowPopup(windowId: string): void;
|
|
33
39
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
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");
|
|
9
|
+
const WindowPopups_1 = require("../../View/Components/Popups/WindowPopups/WindowPopups");
|
|
7
10
|
class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
8
11
|
constructor(adaptable) {
|
|
9
12
|
super(adaptable);
|
|
@@ -183,5 +186,32 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
183
186
|
}
|
|
184
187
|
return customIcon;
|
|
185
188
|
}
|
|
189
|
+
showLoadingScreen() {
|
|
190
|
+
this.dispatchAction(PopupRedux.PopupShowLoading());
|
|
191
|
+
}
|
|
192
|
+
hideLoadingScreen() {
|
|
193
|
+
this.dispatchAction(PopupRedux.PopupHideLoading());
|
|
194
|
+
}
|
|
195
|
+
openCustomWindowPopup(config) {
|
|
196
|
+
const close = () => {
|
|
197
|
+
this.dispatchAction(PopupRedux.PopupHideWindow(config.id));
|
|
198
|
+
};
|
|
199
|
+
const action = PopupRedux.PopupShowWindow({
|
|
200
|
+
Id: config.id,
|
|
201
|
+
Title: config.title,
|
|
202
|
+
FactoryId: WindowPopups_1.CUSTOM_WINDOW_FACTORY_ID,
|
|
203
|
+
PopupProps: {
|
|
204
|
+
render: config.render,
|
|
205
|
+
frameworkComponent: config.frameworkComponent,
|
|
206
|
+
onFrameworkComponentDestroyed: config.onFrameworkComponentDestroyed,
|
|
207
|
+
},
|
|
208
|
+
Icon: config.icon,
|
|
209
|
+
});
|
|
210
|
+
this.dispatchAction(action);
|
|
211
|
+
return { close };
|
|
212
|
+
}
|
|
213
|
+
closeCustomWindowPopup(windowId) {
|
|
214
|
+
this.dispatchAction(PopupRedux.PopupHideWindow(windowId));
|
|
215
|
+
}
|
|
186
216
|
}
|
|
187
217
|
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().externalChartingOptions;
|
|
31
|
+
if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.isChartOpened)) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
if (!chartDefinition) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
return externalChartingOptions.isChartOpened(Object.assign({ chartDefinition: chartDefinition }, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)));
|
|
38
|
+
}
|
|
39
|
+
onHideExternalChart(chartDefinition) {
|
|
40
|
+
const externalChartingOptions = this.adaptable.api.optionsApi.getChartingOptions().externalChartingOptions;
|
|
41
|
+
if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.onHideChart)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
externalChartingOptions.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().externalChartingOptions;
|
|
48
|
+
if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.onShowChart)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
externalChartingOptions.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().externalChartingOptions;
|
|
55
|
+
if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.onPreviewChart)) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
return externalChartingOptions.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().externalChartingOptions;
|
|
62
|
+
if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.onDeleteChart)) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
externalChartingOptions.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,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataImportInternalApi = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ObjectFactory_1 = tslib_1.__importStar(require("../../Utilities/ObjectFactory"));
|
|
6
|
+
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
7
|
+
class DataImportInternalApi extends ApiBase_1.ApiBase {
|
|
8
|
+
async importData(partialRows) {
|
|
9
|
+
const dataImportOptions = this.getOptions().dataImportOptions;
|
|
10
|
+
if (dataImportOptions.applyImport) {
|
|
11
|
+
dataImportOptions.applyImport(Object.assign({ data: partialRows }, (0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi())));
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const gridApi = this.getGridApi();
|
|
15
|
+
const primaryKey = this.getOptions().primaryKey;
|
|
16
|
+
let newRows = 0;
|
|
17
|
+
let updatedRows = 0;
|
|
18
|
+
const preparedDataRows = partialRows.map((dataRow) => {
|
|
19
|
+
const node = gridApi.getRowNodeForPrimaryKey(dataRow[primaryKey]);
|
|
20
|
+
if (!node) {
|
|
21
|
+
newRows += 1;
|
|
22
|
+
return dataRow;
|
|
23
|
+
}
|
|
24
|
+
updatedRows += 1;
|
|
25
|
+
return Object.assign(Object.assign({}, node === null || node === void 0 ? void 0 : node.data), dataRow);
|
|
26
|
+
});
|
|
27
|
+
await gridApi.addOrUpdateGridData(preparedDataRows);
|
|
28
|
+
let message = '';
|
|
29
|
+
if (newRows && updatedRows) {
|
|
30
|
+
message = `Added: ${newRows} new Row${newRows > 1 ? 's' : ''}; Updated: ${updatedRows} existing Row${updatedRows > 1 ? 's' : ''}`;
|
|
31
|
+
}
|
|
32
|
+
else if (newRows && !updatedRows) {
|
|
33
|
+
message = `Added: ${newRows} new Row${newRows > 1 ? 's' : ''}`;
|
|
34
|
+
}
|
|
35
|
+
else if (!newRows && updatedRows) {
|
|
36
|
+
message = `Updated: ${updatedRows} existing Row${updatedRows > 1 ? 's' : ''}`;
|
|
37
|
+
}
|
|
38
|
+
const alert = {
|
|
39
|
+
alertType: 'generic',
|
|
40
|
+
header: 'Data Imported',
|
|
41
|
+
message,
|
|
42
|
+
alertDefinition: Object.assign(Object.assign({}, ObjectFactory_1.default.CreateEmptyAlertDefinition()), { MessageType: 'Info', AlertProperties: {
|
|
43
|
+
DisplayNotification: true,
|
|
44
|
+
} }),
|
|
45
|
+
};
|
|
46
|
+
this.getAlertApi().showAdaptableAlert(alert);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.DataImportInternalApi = DataImportInternalApi;
|
|
@@ -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,9 +1,10 @@
|
|
|
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
|
+
import { DataImportOptions } from '../AdaptableOptions/DataImportOptions';
|
|
7
8
|
/**
|
|
8
9
|
* Range of functions to access Adaptable Options
|
|
9
10
|
*/
|
|
@@ -73,9 +74,9 @@ export interface OptionsApi {
|
|
|
73
74
|
*/
|
|
74
75
|
getColumnOptions(): Readonly<ColumnOptions>;
|
|
75
76
|
/**
|
|
76
|
-
* Returns `AdaptableOptions.
|
|
77
|
+
* Returns `AdaptableOptions.noteOptions`
|
|
77
78
|
*/
|
|
78
|
-
|
|
79
|
+
getNotesOptions(): Readonly<NotesOptions>;
|
|
79
80
|
/**
|
|
80
81
|
* Returns `AdaptableOptions.customSortOptions`
|
|
81
82
|
*/
|
|
@@ -160,4 +161,8 @@ export interface OptionsApi {
|
|
|
160
161
|
* Returns `AdaptableOptions.fdc3Options`
|
|
161
162
|
*/
|
|
162
163
|
getFdc3Options(): Readonly<Fdc3Options>;
|
|
164
|
+
/**
|
|
165
|
+
* Returns `AdaptableOptions.dataImportOptions`
|
|
166
|
+
*/
|
|
167
|
+
getDataImportOptions(): Readonly<DataImportOptions>;
|
|
163
168
|
}
|
|
@@ -5,6 +5,7 @@ import { BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermitt
|
|
|
5
5
|
import { GridCell } from '../PredefinedConfig/Selection/GridCell';
|
|
6
6
|
import { AdaptableObjectTag } from '../PredefinedConfig/Common/AdaptableObject';
|
|
7
7
|
import { AdaptableIcon } from '../types';
|
|
8
|
+
import { CustomWindowConfig } from '../AdaptableOptions/AdaptableFrameworkComponent';
|
|
8
9
|
/**
|
|
9
10
|
* Functions relating to User Interface section of Adaptable State
|
|
10
11
|
*/
|
|
@@ -80,4 +81,25 @@ export interface UserInterfaceApi {
|
|
|
80
81
|
* @param name name of Icon
|
|
81
82
|
*/
|
|
82
83
|
getCustomIconDefinition(name: string): AdaptableIcon | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Displays the popup that says getting data and initialising grid
|
|
86
|
+
*/
|
|
87
|
+
showLoadingScreen(): void;
|
|
88
|
+
/**
|
|
89
|
+
* Hides the popup that says getting data and initialising grid
|
|
90
|
+
*/
|
|
91
|
+
hideLoadingScreen(): void;
|
|
92
|
+
/**
|
|
93
|
+
* Opens window with custom content
|
|
94
|
+
* @param config
|
|
95
|
+
*/
|
|
96
|
+
openCustomWindowPopup(config: CustomWindowConfig): {
|
|
97
|
+
close: () => void;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Closes a custom window
|
|
101
|
+
*
|
|
102
|
+
* @param windowId window popup id
|
|
103
|
+
*/
|
|
104
|
+
closeCustomWindowPopup(windowId: string): void;
|
|
83
105
|
}
|
|
@@ -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
|