@adaptabletools/adaptable-cjs 17.0.0-canary.4 → 18.0.0-canary.1
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 +62 -14
- package/base.css.map +1 -1
- package/index.css +267 -165
- package/index.css.map +1 -1
- package/package.json +5 -4
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
- package/src/AdaptableOptions/AlertOptions.d.ts +7 -7
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +9 -9
- package/src/AdaptableOptions/CommentsOptions.d.ts +28 -0
- package/src/AdaptableOptions/EditOptions.d.ts +6 -6
- package/src/AdaptableOptions/GridFilterOptions.d.ts +13 -8
- package/src/AdaptableOptions/GroupingOptions.d.ts +9 -9
- package/src/AdaptableOptions/InteropioPluginOptions.d.ts +10 -0
- package/src/AdaptableOptions/MenuOptions.d.ts +18 -4
- package/src/AdaptableOptions/MenuOptions.js +14 -6
- package/src/AdaptableOptions/NotesOptions.d.ts +2 -9
- package/src/Api/AdaptableApi.d.ts +6 -1
- package/src/Api/CommentApi.d.ts +58 -0
- package/src/Api/EventApi.d.ts +48 -12
- package/src/Api/Events/CalculatedColumnChanged.d.ts +19 -0
- package/src/Api/Events/CellSelectionChanged.d.ts +11 -0
- package/src/Api/Events/CommentsChangedInfo.d.ts +5 -0
- package/src/Api/Events/LiveDataChanged.d.ts +3 -3
- package/src/Api/Events/RowSelectionChanged.d.ts +11 -0
- package/src/Api/GridApi.d.ts +0 -6
- package/src/Api/GridFilterApi.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -6
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/CommentsApiImpl.d.ts +15 -0
- package/src/Api/Implementation/CommentsApiImpl.js +46 -0
- package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExpressionApiImpl.js +3 -4
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -1
- package/src/Api/Implementation/GridApiImpl.js +0 -4
- package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridFilterApiImpl.js +1 -1
- package/src/Api/Implementation/NotesApiImpl.d.ts +3 -7
- package/src/Api/Implementation/NotesApiImpl.js +1 -15
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -0
- package/src/Api/Implementation/OptionsApiImpl.js +3 -0
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -6
- package/src/Api/Implementation/PluginsApiImpl.js +3 -15
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -12
- package/src/Api/Implementation/ScheduleApiImpl.js +0 -36
- package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +3 -0
- package/src/Api/Internal/ActionRowInternalApi.js +1 -1
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
- package/src/Api/Internal/AdaptableInternalApi.js +3 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +16 -0
- package/src/Api/Internal/DashboardInternalApi.d.ts +1 -0
- package/src/Api/Internal/DashboardInternalApi.js +5 -0
- package/src/Api/Internal/DataImportInternalApi.js +2 -0
- package/src/Api/Internal/DataSetInternalApi.js +2 -1
- package/src/Api/Internal/GridInternalApi.d.ts +3 -1
- package/src/Api/Internal/GridInternalApi.js +32 -9
- package/src/Api/Internal/LayoutInternalApi.d.ts +2 -2
- package/src/Api/Internal/LayoutInternalApi.js +11 -11
- package/src/Api/InteropioPluginApi.d.ts +10 -0
- package/src/Api/{NotesAPi.d.ts → NotesApi.d.ts} +19 -21
- package/src/Api/OptionsApi.d.ts +5 -0
- package/src/Api/PluginsApi.d.ts +3 -13
- package/src/Api/ScheduleApi.d.ts +1 -48
- package/src/Api/ThemeApi.d.ts +5 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +4 -2
- package/src/PredefinedConfig/CellAddress.d.ts +13 -0
- package/src/PredefinedConfig/CellAddress.js +5 -0
- package/src/PredefinedConfig/CommentState.d.ts +48 -0
- package/src/PredefinedConfig/CommentState.js +2 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +2 -1
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
- package/src/PredefinedConfig/Common/Enums.js +0 -1
- package/src/PredefinedConfig/Common/Schedule.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +5 -5
- package/src/PredefinedConfig/Common/Types.js +0 -2
- package/src/PredefinedConfig/NotesState.d.ts +0 -13
- package/src/PredefinedConfig/PredefinedConfig.d.ts +3 -0
- package/src/PredefinedConfig/ScheduleState.d.ts +0 -5
- package/src/PredefinedConfig/SystemState.d.ts +5 -6
- package/src/PredefinedConfig/ThemeState.d.ts +1 -1
- package/src/Redux/ActionsReducers/CommentsRedux.d.ts +79 -0
- package/src/Redux/ActionsReducers/CommentsRedux.js +189 -0
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NotesRedux.js +4 -5
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +0 -48
- package/src/Redux/ActionsReducers/PluginsRedux.js +1 -49
- package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +16 -0
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +47 -1
- package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +0 -53
- package/src/Redux/ActionsReducers/ScheduleRedux.js +2 -90
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +23 -12
- package/src/Redux/ActionsReducers/SystemRedux.js +55 -23
- package/src/Redux/Store/AdaptableStore.d.ts +2 -2
- package/src/Redux/Store/AdaptableStore.js +107 -46
- package/src/Strategy/CommentsModule.d.ts +16 -0
- package/src/Strategy/CommentsModule.js +82 -0
- package/src/Strategy/LayoutModule.d.ts +12 -4
- package/src/Strategy/LayoutModule.js +19 -14
- package/src/Strategy/NotesModule.d.ts +0 -13
- package/src/Strategy/NotesModule.js +9 -88
- package/src/Strategy/PlusMinusModule.js +2 -0
- package/src/Strategy/ScheduleModule.js +0 -23
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.d.ts +2 -1
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +14 -5
- package/src/Strategy/Utilities/getExpressionViewItems.js +8 -2
- package/src/Utilities/Constants/ConfigConstants.d.ts +1 -0
- package/src/Utilities/Constants/ConfigConstants.js +2 -1
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +8 -3
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -3
- package/src/Utilities/Constants/ModuleConstants.js +4 -4
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -3
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +7 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +6 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +18 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +12 -12
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +8 -1
- package/src/Utilities/Helpers/PreviewHelper.js +5 -2
- package/src/Utilities/ObjectFactory.d.ts +19 -22
- package/src/Utilities/ObjectFactory.js +51 -60
- package/src/Utilities/Services/CellPopupService.d.ts +23 -0
- package/src/Utilities/Services/CellPopupService.js +138 -0
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IThemeService.d.ts +8 -0
- package/src/Utilities/Services/ModuleService.js +1 -3
- package/src/Utilities/Services/ReportService.d.ts +1 -1
- package/src/Utilities/Services/ThemeService.d.ts +3 -0
- package/src/Utilities/Services/ThemeService.js +33 -1
- package/src/Utilities/Services/ValidationService.js +11 -11
- package/src/View/AdaptableView.js +3 -3
- package/src/View/AdaptableViewFactory.js +4 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +1 -1
- package/src/View/Charting/useChartingElements.js +8 -3
- package/src/View/Comments/CommentsEditor.d.ts +7 -0
- package/src/View/Comments/CommentsEditor.js +100 -0
- package/src/View/Comments/CommentsPopup.d.ts +2 -0
- package/src/View/Comments/CommentsPopup.js +87 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -1
- package/src/View/Components/CellPopup/index.js +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +8 -2
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -3
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -4
- package/src/View/Components/FilterForm/QuickFilterValues.d.ts +2 -2
- package/src/View/Components/FilterForm/QuickFilterValues.js +4 -3
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.d.ts +5 -0
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +67 -0
- package/src/View/Components/Popups/GridCellPopup/index.d.ts +1 -0
- package/src/View/Components/Popups/GridCellPopup/index.js +5 -0
- package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -0
- package/src/View/Components/Selectors/ColumnSelector.js +2 -1
- package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +5 -4
- package/src/View/Components/Selectors/PermittedValuesSelector.js +25 -3
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -4
- package/src/View/Dashboard/ModuleToolbarWrapper.js +1 -1
- package/src/View/Dashboard/PinnedDashboard.js +2 -1
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +2 -2
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +3 -1
- package/src/View/GridFilter/GridFilterExpressionEditor.js +1 -1
- package/src/View/GridFilter/GridFilterPopup.js +10 -8
- package/src/View/GridFilter/GridFilterViewPanel.js +51 -14
- package/src/View/GridFilter/NamedQuerySelector.js +1 -1
- package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +3 -0
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +17 -6
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +5 -23
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +3 -2
- package/src/View/Layout/Wizard/getGridFilterPreview.d.ts +6 -0
- package/src/View/Layout/Wizard/getGridFilterPreview.js +16 -0
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +4 -4
- package/src/View/NamedQuery/EditCurrentQueryButton.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Notes/NoteEditor.d.ts +8 -0
- package/src/View/Notes/NoteEditor.js +33 -0
- package/src/View/Notes/NotesPopup.d.ts +2 -2
- package/src/View/Notes/NotesPopup.js +78 -55
- package/src/View/PlusMinus/MovePlusMinus.d.ts +7 -0
- package/src/View/PlusMinus/MovePlusMinus.js +27 -0
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +0 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +0 -4
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +2 -8
- package/src/View/Schedule/Wizard/ScheduleWizard.js +0 -8
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +3 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -2
- package/src/agGrid/Adaptable.d.ts +7 -0
- package/src/agGrid/Adaptable.js +49 -35
- package/src/agGrid/BadgeRenderer.js +9 -5
- package/src/agGrid/agGridHelper.d.ts +2 -1
- package/src/agGrid/agGridHelper.js +15 -3
- package/src/agGrid/agGridMenuHelper.d.ts +2 -0
- package/src/agGrid/agGridMenuHelper.js +73 -25
- package/src/components/Datepicker/index.js +4 -4
- package/src/components/ExpressionEditor/ExpressionPreview.d.ts +7 -0
- package/src/components/ExpressionEditor/ExpressionPreview.js +25 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +2 -2
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +6 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +40 -11
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +14 -2
- package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +1 -0
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +1 -1
- package/src/components/ExpressionEditor/index.js +4 -7
- package/src/components/InputGroup/InputGroup.d.ts +7 -0
- package/src/components/InputGroup/InputGroup.js +12 -0
- package/src/components/InputGroup/index.d.ts +1 -0
- package/src/components/InputGroup/index.js +4 -0
- package/src/components/OverlayTrigger/index.js +7 -2
- package/src/components/Select/Select.d.ts +1 -2
- package/src/components/Select/Select.js +63 -23
- package/src/components/Textarea/index.d.ts +9 -0
- package/src/components/Textarea/index.js +50 -2
- package/src/components/Toastify/index.d.ts +2 -2
- package/src/components/Toastify/index.js +1 -1
- package/src/components/icons/comments.d.ts +3 -0
- package/src/components/icons/comments.js +7 -0
- package/src/components/icons/index.js +3 -1
- package/src/env.d.ts +3 -1
- package/src/env.js +3 -1
- package/src/metamodel/adaptable.metamodel.d.ts +72 -158
- package/src/metamodel/adaptable.metamodel.js +138 -260
- package/src/parser/src/parser.d.ts +2 -0
- package/src/parser/src/parser.js +1880 -705
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +5 -2
- package/src/parser/src/predicate/types.d.ts +1 -1
- package/src/parser/src/types.d.ts +1 -1
- package/src/renderReactRoot.js +15 -0
- package/src/themes/index.js +4 -0
- package/src/types.d.ts +10 -13
- package/themes/dark.css +3 -3
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +0 -35
- package/src/AdaptableOptions/Glue42PluginOptions.d.ts +0 -25
- package/src/AdaptableOptions/Glue42WebPluginOptions.d.ts +0 -10
- package/src/Api/Events/SelectionChanged.d.ts +0 -16
- package/src/Api/FinsembleApi.d.ts +0 -10
- package/src/Api/Glue42Api.d.ts +0 -75
- package/src/Api/Glue42WebApi.d.ts +0 -10
- package/src/PredefinedConfig/Glue42State.d.ts +0 -46
- package/src/View/Notes/NotesListing.d.ts +0 -2
- package/src/View/Notes/NotesListing.js +0 -88
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.d.ts +0 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +0 -25
- package/src/bundle-dependencies/bundles/react-toastify/components/CloseButton.d.ts +0 -9
- package/src/bundle-dependencies/bundles/react-toastify/components/Icons.d.ts +0 -24
- package/src/bundle-dependencies/bundles/react-toastify/components/ProgressBar.d.ts +0 -59
- package/src/bundle-dependencies/bundles/react-toastify/components/Toast.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-toastify/components/ToastContainer.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-toastify/components/Transitions.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-toastify/components/index.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-toastify/core/eventManager.d.ts +0 -39
- package/src/bundle-dependencies/bundles/react-toastify/core/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/core/toast.d.ts +0 -41
- package/src/bundle-dependencies/bundles/react-toastify/hooks/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/hooks/useToast.d.ts +0 -10
- package/src/bundle-dependencies/bundles/react-toastify/hooks/useToastContainer.d.ts +0 -23
- package/src/bundle-dependencies/bundles/react-toastify/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/index.js +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/inject-style.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-toastify/types/index.d.ts +0 -269
- package/src/bundle-dependencies/bundles/react-toastify/utils/collapseToast.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/utils/constant.d.ts +0 -23
- package/src/bundle-dependencies/bundles/react-toastify/utils/cssTransition.d.ts +0 -43
- package/src/bundle-dependencies/bundles/react-toastify/utils/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/utils/mapper.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/utils/propValidator.d.ts +0 -9
- /package/src/AdaptableOptions/{FinsemblePluginOptions.js → CommentsOptions.js} +0 -0
- /package/src/AdaptableOptions/{Glue42PluginOptions.js → InteropioPluginOptions.js} +0 -0
- /package/src/{AdaptableOptions/Glue42WebPluginOptions.js → Api/CommentApi.js} +0 -0
- /package/src/Api/Events/{SelectionChanged.js → CalculatedColumnChanged.js} +0 -0
- /package/src/Api/{FinsembleApi.js → Events/CellSelectionChanged.js} +0 -0
- /package/src/Api/{Glue42Api.js → Events/CommentsChangedInfo.js} +0 -0
- /package/src/Api/{Glue42WebApi.js → Events/RowSelectionChanged.js} +0 -0
- /package/src/Api/Internal/{ExpressionnternalApi.d.ts → ExpressionInternalApi.d.ts} +0 -0
- /package/src/Api/Internal/{ExpressionnternalApi.js → ExpressionInternalApi.js} +0 -0
- /package/src/Api/{NotesAPi.js → InteropioPluginApi.js} +0 -0
- /package/src/{PredefinedConfig/Glue42State.js → Api/NotesApi.js} +0 -0
|
@@ -2,10 +2,8 @@ import { PluginsState } from '../../Redux/ActionsReducers/PluginsRedux';
|
|
|
2
2
|
import { PluginsApi } from '../PluginsApi';
|
|
3
3
|
import { ApiBase } from './ApiBase';
|
|
4
4
|
import { IPushPullApi } from '../IPushPullApi';
|
|
5
|
-
import { Glue42Api } from '../Glue42Api';
|
|
6
5
|
import { OpenFinApi } from '../OpenFinApi';
|
|
7
|
-
import {
|
|
8
|
-
import { Glue42WebApi } from '../Glue42WebApi';
|
|
6
|
+
import { InteropioPluginApi } from '../InteropioPluginApi';
|
|
9
7
|
export declare class PluginsApiImpl extends ApiBase implements PluginsApi {
|
|
10
8
|
getPluginsState(): PluginsState;
|
|
11
9
|
getPluginState(pluginId: string): any;
|
|
@@ -13,8 +11,6 @@ export declare class PluginsApiImpl extends ApiBase implements PluginsApi {
|
|
|
13
11
|
setPluginState(pluginId: string, newPluginState: any): void;
|
|
14
12
|
private getPluginApi;
|
|
15
13
|
getipushpullPluginApi(): IPushPullApi;
|
|
16
|
-
|
|
17
|
-
getGlue42WebPluginApi(): Glue42WebApi;
|
|
14
|
+
getInteropioPluginApi(): InteropioPluginApi;
|
|
18
15
|
getOpenFinPluginApi(): OpenFinApi;
|
|
19
|
-
getFinsemblePluginApi(): FinsembleApi;
|
|
20
16
|
}
|
|
@@ -23,16 +23,10 @@ class PluginsApiImpl extends ApiBase_1.ApiBase {
|
|
|
23
23
|
if (pluginId === 'ipushpull') {
|
|
24
24
|
return api;
|
|
25
25
|
}
|
|
26
|
-
if (pluginId === 'glue42') {
|
|
27
|
-
return api;
|
|
28
|
-
}
|
|
29
|
-
if (pluginId === 'glue42web') {
|
|
30
|
-
return api;
|
|
31
|
-
}
|
|
32
26
|
if (pluginId === 'openfin') {
|
|
33
27
|
return api;
|
|
34
28
|
}
|
|
35
|
-
if (pluginId === '
|
|
29
|
+
if (pluginId === 'interopio') {
|
|
36
30
|
return api;
|
|
37
31
|
}
|
|
38
32
|
return api;
|
|
@@ -44,17 +38,11 @@ class PluginsApiImpl extends ApiBase_1.ApiBase {
|
|
|
44
38
|
getipushpullPluginApi() {
|
|
45
39
|
return this.getPluginApi('ipushpull');
|
|
46
40
|
}
|
|
47
|
-
|
|
48
|
-
return this.getPluginApi('
|
|
49
|
-
}
|
|
50
|
-
getGlue42WebPluginApi() {
|
|
51
|
-
return this.getPluginApi('glue42web');
|
|
41
|
+
getInteropioPluginApi() {
|
|
42
|
+
return this.getPluginApi('interopio');
|
|
52
43
|
}
|
|
53
44
|
getOpenFinPluginApi() {
|
|
54
45
|
return this.getPluginApi('openfin');
|
|
55
46
|
}
|
|
56
|
-
getFinsemblePluginApi() {
|
|
57
|
-
return this.getPluginApi('finsemble');
|
|
58
|
-
}
|
|
59
47
|
}
|
|
60
48
|
exports.PluginsApiImpl = PluginsApiImpl;
|
|
@@ -2,7 +2,6 @@ import { ApiBase } from './ApiBase';
|
|
|
2
2
|
import { ScheduleApi } from '../ScheduleApi';
|
|
3
3
|
import { BaseSchedule } from '../../PredefinedConfig/Common/Schedule';
|
|
4
4
|
import { ReportSchedule } from '../../PredefinedConfig/ExportState';
|
|
5
|
-
import { Glue42Schedule } from '../../PredefinedConfig/Glue42State';
|
|
6
5
|
import { IPushPullSchedule } from '../../PredefinedConfig/IPushPullState';
|
|
7
6
|
import { OpenFinSchedule } from '../../PredefinedConfig/OpenFinState';
|
|
8
7
|
import { ReminderSchedule, ScheduleState } from '../../PredefinedConfig/ScheduleState';
|
|
@@ -44,16 +43,6 @@ export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
|
|
|
44
43
|
deleteIPushPullSchedule(schedule: IPushPullSchedule): void;
|
|
45
44
|
suspendIPushPullSchedule(schedule: IPushPullSchedule): IPushPullSchedule;
|
|
46
45
|
unSuspendIPushPullSchedule(schedule: IPushPullSchedule): IPushPullSchedule;
|
|
47
|
-
getGlue42Schedules(config?: {
|
|
48
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
49
|
-
}): Glue42Schedule[];
|
|
50
|
-
getActiveGlue42Schedules(): Glue42Schedule[];
|
|
51
|
-
getSuspendedGlue42Schedules(): Glue42Schedule[];
|
|
52
|
-
addGlue42Schedule(schedule: Glue42Schedule): Glue42Schedule;
|
|
53
|
-
editGlue42Schedule(schedule: Glue42Schedule): Glue42Schedule;
|
|
54
|
-
deleteGlue42Schedule(schedule: Glue42Schedule): void;
|
|
55
|
-
suspendGlue42Schedule(schedule: Glue42Schedule): Glue42Schedule;
|
|
56
|
-
unSuspendGlue42Schedule(schedule: Glue42Schedule): Glue42Schedule;
|
|
57
46
|
getOpenFinSchedules(config?: {
|
|
58
47
|
includeLayoutNotAssociatedObjects?: boolean;
|
|
59
48
|
}): OpenFinSchedule[];
|
|
@@ -64,6 +53,6 @@ export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
|
|
|
64
53
|
deleteOpenFinSchedule(schedule: OpenFinSchedule): void;
|
|
65
54
|
suspendOpenFinSchedule(schedule: OpenFinSchedule): OpenFinSchedule;
|
|
66
55
|
unSuspendOpenFinSchedule(schedule: OpenFinSchedule): OpenFinSchedule;
|
|
67
|
-
applySchedule(schedule: BaseSchedule, scheduleType: 'Report' | 'ipushpull' | '
|
|
56
|
+
applySchedule(schedule: BaseSchedule, scheduleType: 'Report' | 'ipushpull' | 'Reminder' | 'OpenFin'): void;
|
|
68
57
|
openScheduleSettingsPanel(): void;
|
|
69
58
|
}
|
|
@@ -19,7 +19,6 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
19
19
|
allSchedules.push(...this.getReminderSchedules());
|
|
20
20
|
allSchedules.push(...this.getReportSchedules());
|
|
21
21
|
allSchedules.push(...this.getIPushPullSchedules());
|
|
22
|
-
allSchedules.push(...this.getGlue42Schedules());
|
|
23
22
|
allSchedules.push(...this.getOpenFinSchedules());
|
|
24
23
|
return allSchedules;
|
|
25
24
|
}
|
|
@@ -114,36 +113,6 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
114
113
|
this.dispatchAction(ScheduleRedux.IPushPullScheduleUnSuspend(schedule));
|
|
115
114
|
return this.getScheduleById(schedule.Uuid);
|
|
116
115
|
}
|
|
117
|
-
getGlue42Schedules(config) {
|
|
118
|
-
var _a;
|
|
119
|
-
const glue42Api = this.adaptable.api.pluginsApi.getGlue42PluginApi();
|
|
120
|
-
return ((_a = this.handleLayoutAssociatedObjects(glue42Api === null || glue42Api === void 0 ? void 0 : glue42Api.getGlue42Schedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
|
|
121
|
-
}
|
|
122
|
-
getActiveGlue42Schedules() {
|
|
123
|
-
return this.getGlue42Schedules().filter((schedule) => !schedule.IsSuspended);
|
|
124
|
-
}
|
|
125
|
-
getSuspendedGlue42Schedules() {
|
|
126
|
-
return this.getGlue42Schedules().filter((schedule) => schedule.IsSuspended);
|
|
127
|
-
}
|
|
128
|
-
addGlue42Schedule(schedule) {
|
|
129
|
-
this.dispatchAction(ScheduleRedux.Glue42ScheduleAdd(schedule));
|
|
130
|
-
return this.getScheduleById(schedule.Uuid);
|
|
131
|
-
}
|
|
132
|
-
editGlue42Schedule(schedule) {
|
|
133
|
-
this.dispatchAction(ScheduleRedux.Glue42ScheduleEdit(schedule));
|
|
134
|
-
return this.getScheduleById(schedule.Uuid);
|
|
135
|
-
}
|
|
136
|
-
deleteGlue42Schedule(schedule) {
|
|
137
|
-
this.dispatchAction(ScheduleRedux.Glue42ScheduleDelete(schedule));
|
|
138
|
-
}
|
|
139
|
-
suspendGlue42Schedule(schedule) {
|
|
140
|
-
this.dispatchAction(ScheduleRedux.Glue42ScheduleSuspend(schedule));
|
|
141
|
-
return this.getScheduleById(schedule.Uuid);
|
|
142
|
-
}
|
|
143
|
-
unSuspendGlue42Schedule(schedule) {
|
|
144
|
-
this.dispatchAction(ScheduleRedux.Glue42ScheduleUnSuspend(schedule));
|
|
145
|
-
return this.getScheduleById(schedule.Uuid);
|
|
146
|
-
}
|
|
147
116
|
getOpenFinSchedules(config) {
|
|
148
117
|
var _a;
|
|
149
118
|
const openFinApi = this.adaptable.api.pluginsApi.getOpenFinPluginApi();
|
|
@@ -210,11 +179,6 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
210
179
|
ippApi.startLiveData(iPushPullSchedule.IPushPullReport);
|
|
211
180
|
}
|
|
212
181
|
}
|
|
213
|
-
else if (scheduleType == 'Glue42') {
|
|
214
|
-
const glue42Api = this.adaptable.api.pluginsApi.getGlue42PluginApi();
|
|
215
|
-
const glue42Schedule = schedule;
|
|
216
|
-
glue42Api.sendSnapshotToDo(glue42Schedule.Glue42Report);
|
|
217
|
-
}
|
|
218
182
|
else if (scheduleType == 'OpenFin') {
|
|
219
183
|
const openFinApi = this.adaptable.api.pluginsApi.getOpenFinPluginApi();
|
|
220
184
|
const openFinSchedule = schedule;
|
|
@@ -18,6 +18,7 @@ export declare class ThemeApiImpl extends ApiBase implements ThemeApi {
|
|
|
18
18
|
applyCurrentTheme(): void;
|
|
19
19
|
getUserThemes(): AdaptableTheme[];
|
|
20
20
|
getThemes(): AdaptableTheme[];
|
|
21
|
+
getThemeByName(themeName: string): AdaptableTheme;
|
|
21
22
|
openThemeSettingsPanel(): void;
|
|
22
23
|
getAgGridCurrentThemeName(): string;
|
|
23
24
|
editTheme(theme: AdaptableTheme): void;
|
|
@@ -76,6 +76,9 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
|
|
|
76
76
|
getThemes() {
|
|
77
77
|
return [...this.getSystemThemes(), ...this.getUserThemes()];
|
|
78
78
|
}
|
|
79
|
+
getThemeByName(themeName) {
|
|
80
|
+
return this.getThemes().find((theme) => theme.Name === themeName);
|
|
81
|
+
}
|
|
79
82
|
openThemeSettingsPanel() {
|
|
80
83
|
this.showModulePopup(ModuleConstants.ThemeModuleId);
|
|
81
84
|
}
|
|
@@ -26,6 +26,7 @@ import { IModuleCollection } from '../../Strategy/Interface/IModule';
|
|
|
26
26
|
import { AdaptableObjectTag, AdaptableObjectWithScope } from '../../PredefinedConfig/Common/AdaptableObject';
|
|
27
27
|
import { IRowEditService } from '../../Utilities/Services/Interface/IRowEditService';
|
|
28
28
|
import { Fdc3Service } from '../../Utilities/Services/Fdc3Service';
|
|
29
|
+
import { CellPopupService } from '../../Utilities/Services/CellPopupService';
|
|
29
30
|
export declare class AdaptableInternalApi extends ApiBase {
|
|
30
31
|
getSystemState(): SystemState;
|
|
31
32
|
showPopupConfirmation(confirmation: UIConfirmation): void;
|
|
@@ -56,6 +57,7 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
56
57
|
getValidationService(): IValidationService;
|
|
57
58
|
getModuleService(): IModuleService;
|
|
58
59
|
getDataService(): IDataService;
|
|
60
|
+
getCellPopupService(): CellPopupService;
|
|
59
61
|
getReportService(): IReportService;
|
|
60
62
|
getCalculatedColumnExpressionService(): ICalculatedColumnExpressionService;
|
|
61
63
|
getEntitlementService(): IEntitlementService;
|
|
@@ -92,6 +92,9 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
92
92
|
getDataService() {
|
|
93
93
|
return this.adaptable.DataService;
|
|
94
94
|
}
|
|
95
|
+
getCellPopupService() {
|
|
96
|
+
return this.adaptable.CellPopupService;
|
|
97
|
+
}
|
|
95
98
|
getReportService() {
|
|
96
99
|
return this.adaptable.ReportService;
|
|
97
100
|
}
|
|
@@ -25,4 +25,6 @@ export declare class CalculatedColumnInternalApi extends ApiBase {
|
|
|
25
25
|
getCalculatedColumnsDependentOnColumn(column: AdaptableColumn): string[];
|
|
26
26
|
isCumulativeAggregatedExpression(input: string): boolean;
|
|
27
27
|
isQuantileAggregatedExpression(input: string): boolean;
|
|
28
|
+
getExpressionFromCalculatedColumn(calculatedColumn: CalculatedColumn): string;
|
|
29
|
+
fireCalculatedColumnChangedEvent(trigger: string, calculatedColumn: CalculatedColumn): void;
|
|
28
30
|
}
|
|
@@ -74,5 +74,21 @@ class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
74
74
|
.internalApi.getQueryLanguageService()
|
|
75
75
|
.getNodesFromExpression(input, 'QUANT')) === null || _a === void 0 ? void 0 : _a.length);
|
|
76
76
|
}
|
|
77
|
+
getExpressionFromCalculatedColumn(calculatedColumn) {
|
|
78
|
+
var _a;
|
|
79
|
+
return ((_a = calculatedColumn.Query.ScalarExpression) !== null && _a !== void 0 ? _a : calculatedColumn.Query.AggregatedScalarExpression);
|
|
80
|
+
}
|
|
81
|
+
fireCalculatedColumnChangedEvent(trigger, calculatedColumn) {
|
|
82
|
+
const adaptableApi = this.getAdaptableApi();
|
|
83
|
+
const calculatedColumnChangedInfo = {
|
|
84
|
+
adaptableApi: adaptableApi,
|
|
85
|
+
actionName: trigger,
|
|
86
|
+
calculatedColumn: calculatedColumn,
|
|
87
|
+
calculatedColumnExpressionAST: adaptableApi.expressionApi.getASTForExpression(this.getExpressionFromCalculatedColumn(calculatedColumn)),
|
|
88
|
+
userName: adaptableApi.optionsApi.getUserName(),
|
|
89
|
+
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
90
|
+
};
|
|
91
|
+
this.adaptable.api.eventApi.emit('CalculatedColumnChanged', calculatedColumnChangedInfo);
|
|
92
|
+
}
|
|
77
93
|
}
|
|
78
94
|
exports.CalculatedColumnInternalApi = CalculatedColumnInternalApi;
|
|
@@ -6,6 +6,7 @@ export declare class DashboardInternalApi extends ApiBase {
|
|
|
6
6
|
*/
|
|
7
7
|
fireDashboardChangedEvent(trigger: string, oldDashboardState: DashboardState, newDashboardState: DashboardState): void;
|
|
8
8
|
isToolbarInActiveTab(toolbarName: string, dashboardState: DashboardState): boolean;
|
|
9
|
+
isToolbarCustom(toolbarName: string): boolean;
|
|
9
10
|
getCustomToolbarRenderContainerId(customToolbarName: string): string;
|
|
10
11
|
getCustomToolbarButtonsContainerId(customToolbarName: string): string;
|
|
11
12
|
getCustomToolbarComponentContainerId(customToolbarName: string): string;
|
|
@@ -60,6 +60,11 @@ class DashboardInternalApi extends ApiBase_1.ApiBase {
|
|
|
60
60
|
}
|
|
61
61
|
return false;
|
|
62
62
|
}
|
|
63
|
+
isToolbarCustom(toolbarName) {
|
|
64
|
+
return this.adaptable.api.dashboardApi
|
|
65
|
+
.getCustomToolbars()
|
|
66
|
+
.some((tb) => tb.name === toolbarName);
|
|
67
|
+
}
|
|
63
68
|
getCustomToolbarRenderContainerId(customToolbarName) {
|
|
64
69
|
return `ab-CustomToolbar__${customToolbarName}__renderContent`;
|
|
65
70
|
}
|
|
@@ -4,6 +4,7 @@ exports.DataImportInternalApi = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ObjectFactory_1 = tslib_1.__importStar(require("../../Utilities/ObjectFactory"));
|
|
6
6
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
7
|
+
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
7
8
|
class DataImportInternalApi extends ApiBase_1.ApiBase {
|
|
8
9
|
async importData(partialRows) {
|
|
9
10
|
const dataImportOptions = this.getOptions().dataImportOptions;
|
|
@@ -64,6 +65,7 @@ class DataImportInternalApi extends ApiBase_1.ApiBase {
|
|
|
64
65
|
userName: adaptableApi.optionsApi.getUserName(),
|
|
65
66
|
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
66
67
|
};
|
|
68
|
+
this.adaptable.api.internalApi.dispatchReduxAction(SystemRedux.DataImportCompleted(dataImportedInfo));
|
|
67
69
|
this.getEventApi().emit('DataImported', dataImportedInfo);
|
|
68
70
|
}
|
|
69
71
|
}
|
|
@@ -11,7 +11,8 @@ class DataSetInternalApi extends ApiBase_1.ApiBase {
|
|
|
11
11
|
if (this.adaptable.isLive) {
|
|
12
12
|
const dataSetSelectedInfo = {
|
|
13
13
|
adaptableApi: this.adaptable.api,
|
|
14
|
-
dataSet,
|
|
14
|
+
dataSet,
|
|
15
|
+
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
15
16
|
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
16
17
|
};
|
|
17
18
|
this.adaptable.api.eventApi.emit('DataSetSelected', dataSetSelectedInfo);
|
|
@@ -26,7 +26,9 @@ export declare class GridInternalApi extends ApiBase {
|
|
|
26
26
|
*/
|
|
27
27
|
getDistinctDisplayValuesForColumn(columnId: string): any[];
|
|
28
28
|
/**
|
|
29
|
-
* Gets all distinct Filter values for the Column with the given ColumnId
|
|
29
|
+
* Gets all distinct Filter values for the Column with the given ColumnId
|
|
30
|
+
* used for Floating Filter and Column Header filter
|
|
31
|
+
* either returns a list of values or al ist a list of values with count
|
|
30
32
|
* @param columnId Column to check
|
|
31
33
|
* @param columnFilter Current applied filter
|
|
32
34
|
*/
|
|
@@ -74,11 +74,14 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
* Gets all distinct Filter values for the Column with the given ColumnId
|
|
77
|
+
* Gets all distinct Filter values for the Column with the given ColumnId
|
|
78
|
+
* used for Floating Filter and Column Header filter
|
|
79
|
+
* either returns a list of values or al ist a list of values with count
|
|
78
80
|
* @param columnId Column to check
|
|
79
81
|
* @param columnFilter Current applied filter
|
|
80
82
|
*/
|
|
81
83
|
async getDistinctFilterDisplayValuesForColumn(columnId, filter, showFilteredRowsOnly) {
|
|
84
|
+
var _a;
|
|
82
85
|
const abColumn = this.getColumnApi().getColumnWithColumnId(columnId);
|
|
83
86
|
if (abColumn == undefined) {
|
|
84
87
|
return {
|
|
@@ -90,19 +93,39 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
90
93
|
visibleRowsOnly: showFilteredRowsOnly,
|
|
91
94
|
};
|
|
92
95
|
const { gridCells, suppressClientSideFilter } = await this.adaptable.getDistinctFilterListValuesForColumn(abColumn, filter, distinctValuesParams);
|
|
93
|
-
|
|
96
|
+
const sortedDistinctValues = this.sortDistinctValues(gridCells, abColumn);
|
|
97
|
+
let shouldShowValuesCount = false;
|
|
94
98
|
const showValuesCountFunction = this.getColumnFilterOptions().valuesFilterOptions.showValuesCount;
|
|
95
99
|
if (showValuesCountFunction) {
|
|
96
|
-
|
|
100
|
+
const columnFilterContext = {
|
|
101
|
+
column: abColumn,
|
|
102
|
+
adaptableApi: this.adaptable.api,
|
|
103
|
+
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
104
|
+
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
105
|
+
};
|
|
106
|
+
shouldShowValuesCount = showValuesCountFunction(columnFilterContext);
|
|
107
|
+
}
|
|
108
|
+
if (shouldShowValuesCount) {
|
|
109
|
+
const allColumnDisplayValues = (_a = this.adaptable
|
|
110
|
+
.getGridCellsForColumn(columnId)) === null || _a === void 0 ? void 0 : _a.map((gc) => {
|
|
111
|
+
return gc.displayValue;
|
|
112
|
+
});
|
|
113
|
+
return {
|
|
114
|
+
values: sortedDistinctValues.map((cv) => {
|
|
115
|
+
const label = cv.displayValue +
|
|
116
|
+
NumberExtensions_1.default.WrapInParentheses(ArrayExtensions_1.default.getOccurrence(allColumnDisplayValues, cv.displayValue));
|
|
117
|
+
return {
|
|
118
|
+
label: label,
|
|
119
|
+
value: cv.normalisedValue,
|
|
120
|
+
};
|
|
121
|
+
}),
|
|
122
|
+
suppressClientSideFilter,
|
|
123
|
+
};
|
|
97
124
|
}
|
|
98
125
|
return {
|
|
99
|
-
values:
|
|
100
|
-
const label = showValuesCount
|
|
101
|
-
? cv.displayValue +
|
|
102
|
-
NumberExtensions_1.default.WrapInParentheses(this.getGridApi().getCellDisplayValueCount(abColumn.columnId, cv.displayValue))
|
|
103
|
-
: cv.displayValue;
|
|
126
|
+
values: sortedDistinctValues.map((cv) => {
|
|
104
127
|
return {
|
|
105
|
-
label:
|
|
128
|
+
label: cv.displayValue,
|
|
106
129
|
value: cv.normalisedValue,
|
|
107
130
|
};
|
|
108
131
|
}),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
|
-
import { Layout, LayoutState } from '../../PredefinedConfig/LayoutState';
|
|
3
1
|
import { LayoutAssociatedObject } from '../../AdaptableOptions/LayoutOptions';
|
|
4
2
|
import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
|
|
3
|
+
import { Layout, LayoutState } from '../../PredefinedConfig/LayoutState';
|
|
4
|
+
import { ApiBase } from '../Implementation/ApiBase';
|
|
5
5
|
export declare class LayoutInternalApi extends ApiBase {
|
|
6
6
|
/**
|
|
7
7
|
* Fires the `LayoutChanged` event
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LayoutInternalApi = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
6
5
|
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
|
|
7
|
-
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
8
|
-
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
9
6
|
const GridRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/GridRedux"));
|
|
10
|
-
const
|
|
7
|
+
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
11
8
|
const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
|
|
9
|
+
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
10
|
+
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
11
|
+
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
12
12
|
class LayoutInternalApi extends ApiBase_1.ApiBase {
|
|
13
13
|
/**
|
|
14
14
|
* Fires the `LayoutChanged` event
|
|
@@ -62,16 +62,15 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
|
|
|
62
62
|
let layoutState = this.getLayoutApi().getLayoutState();
|
|
63
63
|
const isLayoutDefined = (layoutName) => !!layoutState.Layouts.filter((layout) => layout.Name === layoutName)[0];
|
|
64
64
|
let defaultLayoutColumns = gridState.Columns.filter((column) => column.visible);
|
|
65
|
-
const columnsMap = gridState.Columns.reduce((acc, col) => {
|
|
66
|
-
acc[col.columnId] = col;
|
|
67
|
-
return acc;
|
|
68
|
-
}, {});
|
|
69
65
|
let shouldCreateDefaultLayout = this.getLayoutOptions().createDefaultLayout;
|
|
70
66
|
if (!layoutState.Layouts || !layoutState.Layouts.length) {
|
|
71
67
|
shouldCreateDefaultLayout = true;
|
|
72
68
|
}
|
|
73
69
|
if (shouldCreateDefaultLayout) {
|
|
74
70
|
if (!layoutState.Layouts || !isLayoutDefined(GeneralConstants_1.DEFAULT_LAYOUT)) {
|
|
71
|
+
// augogroup columns are not in columns list
|
|
72
|
+
// the code that adds column ok grid state explicitly ignores autoColumns
|
|
73
|
+
const allGridColumns = this.adaptable.getAgGridAllGridColumns();
|
|
75
74
|
let defaultLayout = ObjectFactory_1.default.CreateEmptyLayout({
|
|
76
75
|
Name: GeneralConstants_1.DEFAULT_LAYOUT,
|
|
77
76
|
Columns: defaultLayoutColumns.map((c) => c.columnId),
|
|
@@ -81,9 +80,10 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
|
|
|
81
80
|
}
|
|
82
81
|
return acc;
|
|
83
82
|
}, {}),
|
|
84
|
-
PinnedColumnsMap:
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
PinnedColumnsMap: allGridColumns.reduce((acc, col) => {
|
|
84
|
+
const pinned = col.getPinned();
|
|
85
|
+
if (pinned) {
|
|
86
|
+
acc[col.getColId()] = pinned === true ? 'left' : pinned;
|
|
87
87
|
}
|
|
88
88
|
return acc;
|
|
89
89
|
}, {}),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InteropioPluginOptions } from '../AdaptableOptions/InteropioPluginOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Provides run-time access to the Glue42Web Plugin
|
|
4
|
+
*/
|
|
5
|
+
export interface InteropioPluginApi {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves the Glue42WebPlugOptions provided in Glue42Web Plugin
|
|
8
|
+
*/
|
|
9
|
+
getPluginOptions(): InteropioPluginOptions;
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AdaptableNote, AdaptableNotes,
|
|
1
|
+
import { AdaptableNote, AdaptableNotes, NotesState } from '../PredefinedConfig/NotesState';
|
|
2
|
+
import { CellAddress } from '../PredefinedConfig/CellAddress';
|
|
2
3
|
/**
|
|
3
4
|
* Provides run-time access to Notes Module and related State
|
|
4
5
|
*/
|
|
@@ -10,41 +11,38 @@ export interface NotesApi {
|
|
|
10
11
|
* @param columnId
|
|
11
12
|
*/
|
|
12
13
|
addNote(note: string, primaryKeyValue: any, columnId: string): void;
|
|
14
|
+
/**
|
|
15
|
+
* Edit note
|
|
16
|
+
* @param note
|
|
17
|
+
*/
|
|
13
18
|
editNote(note: AdaptableNote): void;
|
|
19
|
+
/**
|
|
20
|
+
* Edit note text
|
|
21
|
+
* @param noteStr
|
|
22
|
+
* @param note
|
|
23
|
+
*/
|
|
14
24
|
updateNoteText(noteStr: string, note: AdaptableNote): void;
|
|
15
25
|
/**
|
|
16
26
|
*
|
|
17
27
|
* @param note
|
|
18
28
|
*/
|
|
19
29
|
deleteNote(note: AdaptableNote): void;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the Notes State
|
|
32
|
+
*/
|
|
20
33
|
getNotesState(): NotesState;
|
|
34
|
+
/**
|
|
35
|
+
* Gets all notes
|
|
36
|
+
*/
|
|
21
37
|
getAllNotes(): AdaptableNotes;
|
|
22
38
|
/**
|
|
23
39
|
* Gets all notes for a cell
|
|
24
|
-
* @param
|
|
40
|
+
* @param CellAddress note position
|
|
25
41
|
*/
|
|
26
|
-
getCellNotes(
|
|
42
|
+
getCellNotes(CellAddress: CellAddress): AdaptableNote[];
|
|
27
43
|
/**
|
|
28
44
|
* Returns a note by uuid
|
|
29
45
|
* @param uuid note uuid
|
|
30
46
|
*/
|
|
31
47
|
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
48
|
}
|
package/src/Api/OptionsApi.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions,
|
|
|
5
5
|
import { Fdc3Options } from '../AdaptableOptions/Fdc3Options';
|
|
6
6
|
import { ExpressionOptions } from '../AdaptableOptions/ExpressionOptions';
|
|
7
7
|
import { DataImportOptions } from '../AdaptableOptions/DataImportOptions';
|
|
8
|
+
import { CommentsOptions } from '../AdaptableOptions/CommentsOptions';
|
|
8
9
|
/**
|
|
9
10
|
* Range of functions to access Adaptable Options
|
|
10
11
|
*/
|
|
@@ -77,6 +78,10 @@ export interface OptionsApi {
|
|
|
77
78
|
* Returns `AdaptableOptions.noteOptions`
|
|
78
79
|
*/
|
|
79
80
|
getNotesOptions(): Readonly<NotesOptions>;
|
|
81
|
+
/**
|
|
82
|
+
* Returns `AdaptableOptions.commentsOptions`
|
|
83
|
+
*/
|
|
84
|
+
getCommentsOptions(): Readonly<CommentsOptions>;
|
|
80
85
|
/**
|
|
81
86
|
* Returns `AdaptableOptions.customSortOptions`
|
|
82
87
|
*/
|
package/src/Api/PluginsApi.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { PluginsState } from '../Redux/ActionsReducers/PluginsRedux';
|
|
2
2
|
import { IPushPullApi } from './IPushPullApi';
|
|
3
|
-
import { Glue42Api } from './Glue42Api';
|
|
4
3
|
import { OpenFinApi } from './OpenFinApi';
|
|
5
|
-
import {
|
|
6
|
-
import { Glue42WebApi } from './Glue42WebApi';
|
|
4
|
+
import { InteropioPluginApi } from './InteropioPluginApi';
|
|
7
5
|
/**
|
|
8
6
|
* API methods dealing with AdapTable plugins
|
|
9
7
|
*/
|
|
@@ -33,20 +31,12 @@ export interface PluginsApi {
|
|
|
33
31
|
* Returns ipushpull API class in Adaptable API
|
|
34
32
|
*/
|
|
35
33
|
getipushpullPluginApi(): IPushPullApi;
|
|
36
|
-
/**
|
|
37
|
-
* Returns Glue42 (Desktop) API class in Adaptable API
|
|
38
|
-
*/
|
|
39
|
-
getGlue42PluginApi(): Glue42Api;
|
|
40
|
-
/**
|
|
41
|
-
* Returns Glue42 (Web) API class in Adaptable API
|
|
42
|
-
*/
|
|
43
|
-
getGlue42WebPluginApi(): Glue42WebApi;
|
|
44
34
|
/**
|
|
45
35
|
* Returns OpenFin API class in Adaptable API
|
|
46
36
|
*/
|
|
47
37
|
getOpenFinPluginApi(): OpenFinApi;
|
|
48
38
|
/**
|
|
49
|
-
* Returns
|
|
39
|
+
* Returns Interopio API class in Adaptable API
|
|
50
40
|
*/
|
|
51
|
-
|
|
41
|
+
getInteropioPluginApi(): InteropioPluginApi;
|
|
52
42
|
}
|
package/src/Api/ScheduleApi.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseSchedule } from '../PredefinedConfig/Common/Schedule';
|
|
2
2
|
import { ReportSchedule } from '../PredefinedConfig/ExportState';
|
|
3
|
-
import { Glue42Schedule } from '../PredefinedConfig/Glue42State';
|
|
4
3
|
import { IPushPullSchedule } from '../PredefinedConfig/IPushPullState';
|
|
5
4
|
import { OpenFinSchedule } from '../PredefinedConfig/OpenFinState';
|
|
6
5
|
import { ReminderSchedule, ScheduleState } from '../PredefinedConfig/ScheduleState';
|
|
@@ -161,52 +160,6 @@ export interface ScheduleApi {
|
|
|
161
160
|
* @returns IPushPull schedule
|
|
162
161
|
*/
|
|
163
162
|
unSuspendIPushPullSchedule(iPushPullSchedule: IPushPullSchedule): IPushPullSchedule;
|
|
164
|
-
/**
|
|
165
|
-
* Retrieves all Glue42-based Schedules from Schedule State
|
|
166
|
-
* @returns Glue42 schedules
|
|
167
|
-
*/
|
|
168
|
-
getGlue42Schedules(config?: {
|
|
169
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
170
|
-
}): Glue42Schedule[];
|
|
171
|
-
/**
|
|
172
|
-
* Retrieves all active (not-suspended) Glue42-based Schedules from Schedule State
|
|
173
|
-
* @returns Glue42 schedules
|
|
174
|
-
*/
|
|
175
|
-
getActiveGlue42Schedules(): Glue42Schedule[];
|
|
176
|
-
/**
|
|
177
|
-
* Retrieves all suspended Glue42-based Schedules from Schedule State
|
|
178
|
-
* @returns Glue42 schedules
|
|
179
|
-
*/
|
|
180
|
-
getSuspendedGlue42Schedules(): Glue42Schedule[];
|
|
181
|
-
/**
|
|
182
|
-
* Add Glue42-based Schedule
|
|
183
|
-
* @param Glue42Schedule Glue42-based Schedule to add
|
|
184
|
-
* @returns Glue42 schedule
|
|
185
|
-
*/
|
|
186
|
-
addGlue42Schedule(glue42Schedule: Glue42Schedule): Glue42Schedule;
|
|
187
|
-
/**
|
|
188
|
-
* Edit Glue42-based Schedule
|
|
189
|
-
* @param Glue42Schedule Glue42-based Schedule to edit
|
|
190
|
-
* @returns Glue42 schedule
|
|
191
|
-
*/
|
|
192
|
-
editGlue42Schedule(glue42Schedule: Glue42Schedule): Glue42Schedule;
|
|
193
|
-
/**
|
|
194
|
-
* Delete Glue42-based Schedule
|
|
195
|
-
* @param Glue42Schedule Glue42-based Schedule to delete
|
|
196
|
-
*/
|
|
197
|
-
deleteGlue42Schedule(glue42Schedule: Glue42Schedule): void;
|
|
198
|
-
/**
|
|
199
|
-
* Suspends Glue42-based Schedule
|
|
200
|
-
* @param Glue42Schedule Glue42-based Schedule to suspend
|
|
201
|
-
* @returns Glue42 schedule
|
|
202
|
-
*/
|
|
203
|
-
suspendGlue42Schedule(glue42Schedule: Glue42Schedule): Glue42Schedule;
|
|
204
|
-
/**
|
|
205
|
-
* Activates a suspended Glue42-based Schedule
|
|
206
|
-
* @param Glue42Schedule Glue42-based Schedule to Un-suspend (activate)
|
|
207
|
-
* @returns Glue42 schedule
|
|
208
|
-
*/
|
|
209
|
-
unSuspendGlue42Schedule(glue42Schedule: Glue42Schedule): Glue42Schedule;
|
|
210
163
|
/**
|
|
211
164
|
* Retrieves all OpenFin-based Schedules from Schedule State
|
|
212
165
|
* @returns OpenFin schedules
|
|
@@ -259,7 +212,7 @@ export interface ScheduleApi {
|
|
|
259
212
|
* @param schedule Schedule to apply
|
|
260
213
|
* @param scheduleType type of Schedule
|
|
261
214
|
*/
|
|
262
|
-
applySchedule(schedule: BaseSchedule, scheduleType: 'Report' | 'ipushpull' | '
|
|
215
|
+
applySchedule(schedule: BaseSchedule, scheduleType: 'Report' | 'ipushpull' | 'Reminder' | 'OpenFin'): void;
|
|
263
216
|
/**
|
|
264
217
|
* Opens Settings Panel with Schedule section selected and visible
|
|
265
218
|
*/
|
package/src/Api/ThemeApi.d.ts
CHANGED
|
@@ -70,6 +70,11 @@ export interface ThemeApi {
|
|
|
70
70
|
* Retrieves all Themes (both System & User) in State
|
|
71
71
|
*/
|
|
72
72
|
getThemes(): AdaptableTheme[];
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves a Theme by name
|
|
75
|
+
* @param themeName
|
|
76
|
+
*/
|
|
77
|
+
getThemeByName(themeName: string): AdaptableTheme;
|
|
73
78
|
/**
|
|
74
79
|
* Opens Settings Panel with Theme section selected and visible
|
|
75
80
|
*/
|