@adaptabletools/adaptable 15.4.3 → 16.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 +1 -1
- package/base.css.map +1 -1
- package/bundle.cjs.js +234 -228
- package/index.css +1 -1
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +8 -2
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +82 -0
- package/src/AdaptableOptions/{ActionOptions.d.ts → ActionRowOptions.d.ts} +15 -90
- package/src/AdaptableOptions/AdaptableOptions.d.ts +32 -12
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -12
- package/src/AdaptableOptions/AlertOptions.d.ts +9 -0
- package/src/AdaptableOptions/CalendarOptions.d.ts +11 -0
- package/src/AdaptableOptions/CellSummaryOptions.d.ts +10 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +0 -4
- package/src/AdaptableOptions/CustomSortOptions.d.ts +24 -0
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +5 -1
- package/src/AdaptableOptions/DataSetOptions.d.ts +41 -0
- package/src/AdaptableOptions/DataSetOptions.js +2 -0
- package/src/AdaptableOptions/EditOptions.d.ts +4 -4
- package/src/AdaptableOptions/EntitlementOptions.d.ts +0 -16
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -4
- package/src/AdaptableOptions/ExpressionOptions.d.ts +7 -0
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/GroupingOptions.d.ts +50 -0
- package/src/AdaptableOptions/GroupingOptions.js +2 -0
- package/src/AdaptableOptions/MasterDetailPluginOptions.d.ts +9 -0
- package/src/AdaptableOptions/PredicateOptions.d.ts +4 -0
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +0 -8
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +30 -1
- package/src/Api/ActionColumnApi.d.ts +10 -0
- package/src/Api/ActionColumnApi.js +2 -0
- package/src/Api/{ActionApi.d.ts → ActionRowApi.d.ts} +4 -15
- package/src/Api/ActionRowApi.js +2 -0
- package/src/Api/AdaptableApi.d.ts +11 -6
- package/src/Api/AlertApi.d.ts +2 -111
- package/src/Api/BulkUpdateApi.d.ts +0 -7
- package/src/Api/CalculatedColumnApi.d.ts +0 -31
- package/src/Api/CalendarApi.d.ts +1 -1
- package/src/Api/CellSummaryApi.d.ts +0 -7
- package/src/Api/ChartingApi.d.ts +0 -7
- package/src/Api/ColumnApi.d.ts +1 -131
- package/src/Api/ConfigApi.d.ts +1 -7
- package/src/Api/CustomSortApi.d.ts +0 -25
- package/src/Api/DashboardApi.d.ts +0 -16
- package/src/Api/DataChangeHistoryApi.d.ts +0 -7
- package/src/Api/DataSetApi.d.ts +1 -16
- package/src/Api/EventApi.d.ts +1 -9
- package/src/Api/Events/AdaptableStateChanged.d.ts +0 -8
- package/src/Api/Events/AdaptableStateReloaded.d.ts +0 -4
- package/src/Api/Events/BaseEventInfo.d.ts +9 -1
- package/src/Api/Events/LiveDataChanged.d.ts +3 -7
- package/src/Api/ExportApi.d.ts +7 -31
- package/src/Api/{QueryLanguageApi.d.ts → ExpressionApi.d.ts} +2 -2
- package/src/Api/ExpressionApi.js +2 -0
- package/src/Api/FilterApi.d.ts +1 -59
- package/src/Api/FlashingCellApi.d.ts +0 -15
- package/src/Api/FormatColumnApi.d.ts +1 -91
- package/src/Api/FreeTextColumnApi.d.ts +0 -39
- package/src/Api/GridApi.d.ts +0 -31
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +7 -0
- package/src/Api/Implementation/ActionColumnApiImpl.js +14 -0
- package/src/Api/Implementation/ActionRowApiImpl.d.ts +12 -0
- package/src/Api/Implementation/{ActionApiImpl.js → ActionRowApiImpl.js} +8 -15
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -4
- package/src/Api/Implementation/AdaptableApiImpl.js +7 -5
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -43
- package/src/Api/Implementation/AlertApiImpl.js +4 -94
- package/src/Api/Implementation/ApiBase.d.ts +15 -5
- package/src/Api/Implementation/ApiBase.js +26 -8
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +0 -7
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +0 -32
- package/src/Api/Implementation/CalendarApiImpl.d.ts +1 -0
- package/src/Api/Implementation/CalendarApiImpl.js +20 -17
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +0 -1
- package/src/Api/Implementation/CellSummaryApiImpl.js +3 -6
- package/src/Api/Implementation/ChartingApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ChartingApiImpl.js +0 -5
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -35
- package/src/Api/Implementation/ColumnApiImpl.js +1 -138
- package/src/Api/Implementation/ConfigApiImpl.js +2 -1
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -5
- package/src/Api/Implementation/CustomSortApiImpl.js +0 -16
- package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -4
- package/src/Api/Implementation/DashboardApiImpl.js +2 -24
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +0 -1
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +0 -5
- package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -4
- package/src/Api/Implementation/DataSetApiImpl.js +1 -14
- package/src/Api/Implementation/ExportApiImpl.d.ts +4 -10
- package/src/Api/Implementation/ExportApiImpl.js +15 -34
- package/src/Api/Implementation/{QueryLanguageApiImpl.d.ts → ExpressionApiImpl.d.ts} +4 -4
- package/src/Api/Implementation/{QueryLanguageApiImpl.js → ExpressionApiImpl.js} +7 -5
- package/src/Api/Implementation/FilterApiImpl.d.ts +1 -17
- package/src/Api/Implementation/FilterApiImpl.js +0 -53
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +0 -3
- package/src/Api/Implementation/FlashingCellApiImpl.js +2 -13
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +2 -34
- package/src/Api/Implementation/FormatColumnApiImpl.js +0 -73
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -8
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -29
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -7
- package/src/Api/Implementation/GridApiImpl.js +3 -32
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -6
- package/src/Api/Implementation/LayoutApiImpl.js +2 -27
- package/src/Api/Implementation/OptionsApiImpl.d.ts +10 -5
- package/src/Api/Implementation/OptionsApiImpl.js +19 -7
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +0 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +0 -5
- package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -8
- package/src/Api/Implementation/PredicateApiImpl.js +2 -30
- package/src/Api/Implementation/QueryApiImpl.d.ts +0 -5
- package/src/Api/Implementation/QueryApiImpl.js +0 -21
- package/src/Api/Implementation/QuickSearchApiImpl.d.ts +0 -1
- package/src/Api/Implementation/QuickSearchApiImpl.js +0 -5
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -18
- package/src/Api/Implementation/ScheduleApiImpl.js +0 -69
- package/src/Api/Implementation/ScopeApiImpl.js +1 -1
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +0 -2
- package/src/Api/Implementation/SettingsPanelApiImpl.js +0 -9
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -6
- package/src/Api/Implementation/ShortcutApiImpl.js +0 -21
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +0 -1
- package/src/Api/Implementation/SmartEditApiImpl.js +0 -5
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -5
- package/src/Api/Implementation/StyledColumnApiImpl.js +2 -17
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +0 -2
- package/src/Api/Implementation/SystemStatusApiImpl.js +0 -9
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +0 -5
- package/src/Api/Implementation/TeamSharingApiImpl.js +0 -21
- package/src/Api/Implementation/ThemeApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ThemeApiImpl.js +2 -17
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +4 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +17 -10
- package/src/Api/Internal/{ActionInternalApi.d.ts → ActionRowInternalApi.d.ts} +2 -2
- package/src/Api/Internal/{ActionInternalApi.js → ActionRowInternalApi.js} +12 -5
- package/src/Api/Internal/AdaptableInternalApi.d.ts +1 -10
- package/src/Api/Internal/AdaptableInternalApi.js +9 -20
- package/src/Api/Internal/AlertInternalApi.js +9 -6
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
- package/src/Api/Internal/CustomSortInternalApi.d.ts +1 -1
- package/src/Api/Internal/CustomSortInternalApi.js +1 -1
- package/src/Api/Internal/DashboardInternalApi.js +2 -0
- package/src/Api/Internal/DataSetInternalApi.d.ts +1 -1
- package/src/Api/Internal/DataSetInternalApi.js +2 -1
- package/src/Api/Internal/ExportInternalApi.js +1 -1
- package/src/Api/Internal/{QueryLanguageInternalApi.d.ts → ExpressionnternalApi.d.ts} +1 -1
- package/src/Api/Internal/{QueryLanguageInternalApi.js → ExpressionnternalApi.js} +9 -5
- package/src/Api/Internal/FilterInternalApi.js +4 -1
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -1
- package/src/Api/Internal/GridInternalApi.js +8 -0
- package/src/Api/Internal/LayoutInternalApi.js +6 -1
- package/src/Api/Internal/PredicateInternalApi.js +10 -0
- package/src/Api/Internal/QueryInternalApi.js +3 -1
- package/src/Api/Internal/SystemStatusInternalApi.js +4 -1
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -0
- package/src/Api/LayoutApi.d.ts +3 -27
- package/src/Api/OptionsApi.d.ts +28 -10
- package/src/Api/PlusMinusApi.d.ts +0 -7
- package/src/Api/PredicateApi.d.ts +1 -32
- package/src/Api/QueryApi.d.ts +0 -23
- package/src/Api/QuickSearchApi.d.ts +0 -4
- package/src/Api/ScheduleApi.d.ts +0 -81
- package/src/Api/SettingsPanelApi.d.ts +0 -11
- package/src/Api/ShortcutApi.d.ts +0 -25
- package/src/Api/SmartEditApi.d.ts +0 -7
- package/src/Api/StyledColumnApi.d.ts +0 -21
- package/src/Api/SystemStatusApi.d.ts +0 -11
- package/src/Api/TeamSharingApi.d.ts +0 -23
- package/src/Api/ThemeApi.d.ts +0 -19
- package/src/Api/UserInterfaceApi.d.ts +4 -9
- package/src/PredefinedConfig/AlertState.d.ts +4 -1
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +4 -1
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +3 -0
- package/src/PredefinedConfig/Common/BaseContext.d.ts +8 -0
- package/src/PredefinedConfig/Common/CellSummary.d.ts +1 -0
- package/src/PredefinedConfig/Common/DataChangedScope.d.ts +9 -0
- package/src/PredefinedConfig/Common/Entitlement.d.ts +1 -1
- package/src/PredefinedConfig/Common/Enums.d.ts +2 -1
- package/src/PredefinedConfig/Common/Enums.js +1 -0
- package/src/PredefinedConfig/LayoutState.d.ts +0 -6
- package/src/PredefinedConfig/SystemState.d.ts +1 -1
- package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
- package/src/PredefinedConfig/ThemeState.d.ts +3 -0
- package/src/Strategy/AdaptableModuleBase.js +3 -3
- package/src/Strategy/AlertModule.js +3 -3
- package/src/Strategy/CalculatedColumnModule.js +2 -2
- package/src/Strategy/CellSummaryModule.js +3 -0
- package/src/Strategy/DataSetModule.d.ts +1 -1
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.js +4 -0
- package/src/Strategy/FlashingCellModule.js +4 -4
- package/src/Strategy/FormatColumnModule.js +3 -3
- package/src/Strategy/QueryModule.js +1 -1
- package/src/Strategy/SmartEditModule.js +2 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +25 -23
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +4 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +12 -6
- package/src/Utilities/Helpers/FormatHelper.js +7 -0
- package/src/Utilities/ObjectFactory.d.ts +2 -2
- package/src/Utilities/ObjectFactory.js +7 -4
- package/src/Utilities/Services/AlertService.js +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -2
- package/src/Utilities/Services/ChartingService.js +2 -0
- package/src/Utilities/Services/EntitlementService.js +2 -2
- package/src/Utilities/Services/MetamodelService.js +4 -0
- package/src/Utilities/Services/ModuleService.js +10 -10
- package/src/Utilities/Services/QueryLanguageService.js +16 -0
- package/src/Utilities/Services/ReportService.js +8 -6
- package/src/Utilities/Services/RowEditService.js +4 -2
- package/src/Utilities/Services/ValidationService.js +2 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +5 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +9 -9
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +4 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +3 -3
- package/src/View/AdaptableWizardView/Wizard.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +1 -1
- package/src/View/Components/AdaptableIconSelector/index.d.ts +6 -0
- package/src/View/Components/AdaptableIconSelector/index.js +18 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -2
- package/src/View/Components/AdaptableViewIcon/index.d.ts +10 -0
- package/src/View/Components/AdaptableViewIcon/index.js +18 -0
- package/src/View/Components/EntityRulesEditor/Utilities.js +3 -3
- package/src/View/Components/ExternalRenderer.js +14 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +4 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -0
- package/src/View/Components/RangesComponent.d.ts +4 -4
- package/src/View/Components/RangesComponent.js +13 -22
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
- package/src/View/Dashboard/CustomDashboardButton.js +2 -0
- package/src/View/Dashboard/CustomToolbarWrapper.js +13 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +11 -7
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
- package/src/View/DataChangeHistory/buildActionColumnButton.js +3 -2
- package/src/View/Export/ExportViewPanel.d.ts +1 -1
- package/src/View/Export/ExportViewPanel.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +3 -1
- package/src/View/GridInfo/GridInfoPopup.d.ts +0 -1
- package/src/View/GridInfo/GridInfoPopup.js +1 -2
- package/src/View/GridInfo/GridOptionsComponent.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +2 -0
- package/src/View/Layout/SaveLayoutButton.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +8 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +5 -1
- package/src/agGrid/Adaptable.d.ts +21 -10
- package/src/agGrid/Adaptable.js +164 -63
- package/src/agGrid/BadgeRenderer.js +10 -2
- package/src/agGrid/CheckboxRenderer.d.ts +1 -2
- package/src/agGrid/agGridHelper.js +4 -5
- package/src/agGrid/agGridMenuHelper.js +4 -0
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +11 -11
- package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +6 -3
- package/src/components/AdaptableIconComponent/index.js +6 -3
- package/src/components/ExpressionEditor/BaseEditorInput.js +2 -0
- package/src/components/ExpressionEditor/index.js +1 -1
- package/src/components/IconSelector/IconSelector.d.ts +2 -0
- package/src/components/IconSelector/IconSelector.js +21 -5
- package/src/components/Input/NumberInput.d.ts +10 -0
- package/src/components/Input/NumberInput.js +46 -0
- package/src/metamodel/adaptable.metamodel.d.ts +230 -145
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +14 -8
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +0 -159
- package/src/Api/Events/SearchChanged.d.ts +0 -12
- package/src/Api/Implementation/ActionApiImpl.d.ts +0 -14
- /package/src/AdaptableOptions/{ActionOptions.js → ActionColumnOptions.js} +0 -0
- /package/src/AdaptableOptions/{GeneralOptions.js → ActionRowOptions.js} +0 -0
- /package/src/{Api/ActionApi.js → AdaptableOptions/CalendarOptions.js} +0 -0
- /package/src/{Api/Events/SearchChanged.js → AdaptableOptions/CellSummaryOptions.js} +0 -0
- /package/src/{Api/QueryLanguageApi.js → AdaptableOptions/CustomSortOptions.js} +0 -0
|
@@ -12,7 +12,11 @@ function assignAdaptableOptions(adaptableOptions) {
|
|
|
12
12
|
returnedAdaptableOptions.adaptableStateKey =
|
|
13
13
|
(_a = returnedAdaptableOptions.adaptableStateKey) !== null && _a !== void 0 ? _a : returnedAdaptableOptions.adaptableId;
|
|
14
14
|
returnedAdaptableOptions.adaptableQLOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions, adaptableOptions.adaptableQLOptions);
|
|
15
|
+
returnedAdaptableOptions.calendarOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.calendarOptions, adaptableOptions.calendarOptions);
|
|
15
16
|
returnedAdaptableOptions.columnOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.columnOptions, adaptableOptions.columnOptions);
|
|
17
|
+
returnedAdaptableOptions.customSortOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.customSortOptions, adaptableOptions.customSortOptions);
|
|
18
|
+
returnedAdaptableOptions.dataSetOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.dataSetOptions, adaptableOptions.dataSetOptions);
|
|
19
|
+
returnedAdaptableOptions.cellSummaryOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.cellSummaryOptions, adaptableOptions.cellSummaryOptions);
|
|
16
20
|
returnedAdaptableOptions.adaptableQLOptions.expressionOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions.expressionOptions, returnedAdaptableOptions.adaptableQLOptions.expressionOptions);
|
|
17
21
|
returnedAdaptableOptions.adaptableQLOptions.predicateOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions.predicateOptions, returnedAdaptableOptions.adaptableQLOptions.predicateOptions);
|
|
18
22
|
returnedAdaptableOptions.layoutOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.layoutOptions, adaptableOptions.layoutOptions);
|
|
@@ -22,12 +26,14 @@ function assignAdaptableOptions(adaptableOptions) {
|
|
|
22
26
|
returnedAdaptableOptions.entitlementOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.entitlementOptions, adaptableOptions.entitlementOptions);
|
|
23
27
|
returnedAdaptableOptions.dashboardOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.dashboardOptions, adaptableOptions.dashboardOptions);
|
|
24
28
|
returnedAdaptableOptions.editOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.editOptions, adaptableOptions.editOptions);
|
|
25
|
-
returnedAdaptableOptions.
|
|
26
|
-
|
|
27
|
-
returnedAdaptableOptions.
|
|
28
|
-
|
|
29
|
+
returnedAdaptableOptions.actionColumnOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionColumnOptions, adaptableOptions.actionColumnOptions);
|
|
30
|
+
// to do
|
|
31
|
+
returnedAdaptableOptions.actionRowOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionRowOptions, adaptableOptions.actionRowOptions);
|
|
32
|
+
returnedAdaptableOptions.actionRowOptions.actionRowButtonOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionRowOptions.actionRowButtonOptions, returnedAdaptableOptions.actionRowOptions.actionRowButtonOptions);
|
|
33
|
+
returnedAdaptableOptions.actionRowOptions.actionRowFormOptions =
|
|
34
|
+
Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionRowOptions.actionRowFormOptions, returnedAdaptableOptions.actionRowOptions.actionRowFormOptions);
|
|
29
35
|
returnedAdaptableOptions.containerOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.containerOptions, adaptableOptions.containerOptions);
|
|
30
|
-
returnedAdaptableOptions.
|
|
36
|
+
returnedAdaptableOptions.groupingOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.groupingOptions, adaptableOptions.groupingOptions);
|
|
31
37
|
returnedAdaptableOptions.searchOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.searchOptions, adaptableOptions.searchOptions);
|
|
32
38
|
returnedAdaptableOptions.filterOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.filterOptions, adaptableOptions.filterOptions);
|
|
33
39
|
returnedAdaptableOptions.userInterfaceOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.userInterfaceOptions, adaptableOptions.userInterfaceOptions);
|
|
@@ -68,7 +74,7 @@ function checkValidPrimaryKey(adaptable) {
|
|
|
68
74
|
const pkColumn = adaptable.api.columnApi.getColumnWithColumnId(adaptable.adaptableOptions.primaryKey);
|
|
69
75
|
if (pkColumn == undefined && !adaptable.adaptableOptions.autogeneratePrimaryKey) {
|
|
70
76
|
const errorMessage = `The Primary Key Column '${adaptable.adaptableOptions.primaryKey}' does not exist. This will affect many functions in Adaptable.`;
|
|
71
|
-
if (adaptable.adaptableOptions.
|
|
77
|
+
if (adaptable.adaptableOptions.alertOptions.showMissingPrimaryKeyAlert == true) {
|
|
72
78
|
// show an alert if that is the option
|
|
73
79
|
adaptable.api.alertApi.showAlertError('No Primary Key', errorMessage);
|
|
74
80
|
}
|
|
@@ -36,6 +36,13 @@ function NumberFormatter(input, options = {}) {
|
|
|
36
36
|
n *= multiplier;
|
|
37
37
|
n = parseFloat(n.toFixed(12));
|
|
38
38
|
}
|
|
39
|
+
// Set Integer and Fraction Digits to a max of 20
|
|
40
|
+
if (options.IntegerDigits > 20) {
|
|
41
|
+
options.IntegerDigits = 20;
|
|
42
|
+
}
|
|
43
|
+
if (options.FractionDigits > 20) {
|
|
44
|
+
options.FractionDigits = 20;
|
|
45
|
+
}
|
|
39
46
|
if (options.Parentheses === true && preparedInput < 0) {
|
|
40
47
|
n *= -1;
|
|
41
48
|
n = parseFloat(n.toFixed(12));
|
|
@@ -39,7 +39,7 @@ export declare function CreateEmptyAlertDefinition(): AlertDefinition;
|
|
|
39
39
|
export declare function CreateEmptyFlashingCellDefinition(): FlashingCellDefinition;
|
|
40
40
|
export declare function CreateInternalAlertDefinitionForMessages(messageType: AdaptableMessageType, alertProperties?: AlertProperties): AlertDefinition;
|
|
41
41
|
export declare function CreateEmptyReport(): Report;
|
|
42
|
-
export declare function
|
|
42
|
+
export declare function CreateExternalReport(reportName: string): Report;
|
|
43
43
|
export declare function CreateEmptyBaseSchedule(scheduleType: ScheduleType): BaseSchedule;
|
|
44
44
|
export declare function CreateEmptyReminderSchedule(): ReminderSchedule;
|
|
45
45
|
export declare function CreateEmptyReportSchedule(): ReportSchedule;
|
|
@@ -85,7 +85,7 @@ export declare const ObjectFactory: {
|
|
|
85
85
|
CreateEmptyAlertDefinition: typeof CreateEmptyAlertDefinition;
|
|
86
86
|
CreateEmptyFlashingCellDefinition: typeof CreateEmptyFlashingCellDefinition;
|
|
87
87
|
CreateInternalAlertDefinitionForMessages: typeof CreateInternalAlertDefinitionForMessages;
|
|
88
|
-
|
|
88
|
+
CreateExternalReport: typeof CreateExternalReport;
|
|
89
89
|
CreateEmptyReport: typeof CreateEmptyReport;
|
|
90
90
|
CreateEmptyBaseSchedule: typeof CreateEmptyBaseSchedule;
|
|
91
91
|
CreateEmptyReminderSchedule: typeof CreateEmptyReminderSchedule;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ObjectFactory = exports.CreateToastOptions = exports.CreateEmptyTheme = exports.CreateCustomDisplayFormatterContext = exports.CreateEmptyChartDefinition = exports.CreateDefaultStyledColumnBadge = exports.CreateEmptyStyledColumn = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.CreateEmptyOpenFinSchedule = exports.CreateEmptyGlue42Schedule = exports.CreateEmptyIPushPullSchedule = exports.CreateEmptyOpenFinReport = exports.CreateEmptyGlue42Report = exports.CreateEmptyIPushPullReport = exports.CreateEmptyReportSchedule = exports.CreateEmptyReminderSchedule = exports.CreateEmptyBaseSchedule = exports.
|
|
3
|
+
exports.ObjectFactory = exports.CreateToastOptions = exports.CreateEmptyTheme = exports.CreateCustomDisplayFormatterContext = exports.CreateEmptyChartDefinition = exports.CreateDefaultStyledColumnBadge = exports.CreateEmptyStyledColumn = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.CreateEmptyOpenFinSchedule = exports.CreateEmptyGlue42Schedule = exports.CreateEmptyIPushPullSchedule = exports.CreateEmptyOpenFinReport = exports.CreateEmptyGlue42Report = exports.CreateEmptyIPushPullReport = exports.CreateEmptyReportSchedule = exports.CreateEmptyReminderSchedule = exports.CreateEmptyBaseSchedule = exports.CreateExternalReport = exports.CreateEmptyReport = exports.CreateInternalAlertDefinitionForMessages = exports.CreateEmptyFlashingCellDefinition = exports.CreateEmptyAlertDefinition = exports.CreateRowChangedAlert = exports.CreateCellChangedAlert = exports.CreateGenericAlert = exports.CreateEmptyPlusMinusNudge = exports.CreateEmptyNamedQuery = exports.CreateEmptyCalculatedColumn = exports.CreateEmptyCustomSort = void 0;
|
|
4
4
|
const Enums_1 = require("../PredefinedConfig/Common/Enums");
|
|
5
5
|
const GeneralConstants_1 = require("./Constants/GeneralConstants");
|
|
6
6
|
const Uuid_1 = require("../PredefinedConfig/Uuid");
|
|
@@ -133,7 +133,7 @@ function CreateEmptyReport() {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
exports.CreateEmptyReport = CreateEmptyReport;
|
|
136
|
-
function
|
|
136
|
+
function CreateExternalReport(reportName) {
|
|
137
137
|
return {
|
|
138
138
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
139
139
|
Name: reportName,
|
|
@@ -143,7 +143,7 @@ function CreateServerReport(reportName) {
|
|
|
143
143
|
Query: undefined,
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
exports.
|
|
146
|
+
exports.CreateExternalReport = CreateExternalReport;
|
|
147
147
|
function CreateEmptyBaseSchedule(scheduleType) {
|
|
148
148
|
return {
|
|
149
149
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
@@ -347,6 +347,7 @@ function CreateEmptyCellSummmary() {
|
|
|
347
347
|
Max: undefined,
|
|
348
348
|
Min: undefined,
|
|
349
349
|
Count: undefined,
|
|
350
|
+
Only: undefined
|
|
350
351
|
};
|
|
351
352
|
}
|
|
352
353
|
exports.CreateEmptyCellSummmary = CreateEmptyCellSummmary;
|
|
@@ -388,6 +389,8 @@ function CreateCustomDisplayFormatterContext(value, node, abColumn, api) {
|
|
|
388
389
|
cellValue: value,
|
|
389
390
|
rowNode: node,
|
|
390
391
|
adaptableApi: api,
|
|
392
|
+
userName: api.optionsApi.getUserName(),
|
|
393
|
+
adaptableId: api.optionsApi.getAdaptableId(),
|
|
391
394
|
};
|
|
392
395
|
}
|
|
393
396
|
exports.CreateCustomDisplayFormatterContext = CreateCustomDisplayFormatterContext;
|
|
@@ -464,7 +467,7 @@ exports.ObjectFactory = {
|
|
|
464
467
|
CreateEmptyAlertDefinition,
|
|
465
468
|
CreateEmptyFlashingCellDefinition,
|
|
466
469
|
CreateInternalAlertDefinitionForMessages,
|
|
467
|
-
|
|
470
|
+
CreateExternalReport,
|
|
468
471
|
CreateEmptyReport,
|
|
469
472
|
CreateEmptyBaseSchedule,
|
|
470
473
|
CreateEmptyReminderSchedule,
|
|
@@ -27,7 +27,7 @@ class AlertService {
|
|
|
27
27
|
if (!alertDefinition.Rule.ObservableExpression) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
const isValidExpression = this.adaptableApi.
|
|
30
|
+
const isValidExpression = this.adaptableApi.expressionApi.isValidObservableExpression(alertDefinition.Rule.ObservableExpression, ModuleConstants_1.AlertModuleId, `Invalid Alert rule with observable expression `);
|
|
31
31
|
if (!isValidExpression) {
|
|
32
32
|
this.adaptableApi.logWarn(`Could NOT create reactive alert due to invalid Rule definition!`, alertDefinition.Rule);
|
|
33
33
|
return;
|
|
@@ -73,7 +73,7 @@ class CalculatedColumnExpressionService {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
catch (e) {
|
|
76
|
-
this.adaptableApi.logError(`Invalid CalculatedColumn expression ${this.adaptableApi.
|
|
76
|
+
this.adaptableApi.logError(`Invalid CalculatedColumn expression ${this.adaptableApi.expressionApi.getAdaptableQueryExpression(calculatedColumnQuery)} :: ${e}`);
|
|
77
77
|
return 'Number';
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -93,7 +93,7 @@ class CalculatedColumnExpressionService {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
if (calculatedColumnQuery.AggregatedScalarExpression) {
|
|
96
|
-
const validationResult = this.adaptableApi.
|
|
96
|
+
const validationResult = this.adaptableApi.expressionApi.isValidAggregatedScalarExpression(calculatedColumnQuery.AggregatedScalarExpression, ModuleConstants_1.CalculatedColumnModuleId);
|
|
97
97
|
return validationResult;
|
|
98
98
|
}
|
|
99
99
|
// if query has neither a ScalarExpression nor an AggregatedScalarExpression => it can only be false
|
|
@@ -49,6 +49,8 @@ class ChartingService {
|
|
|
49
49
|
const chartChangedInfo = {
|
|
50
50
|
chartingOpenState: chartingOpenState,
|
|
51
51
|
adaptableApi: this.api,
|
|
52
|
+
userName: this.api.optionsApi.getUserName(),
|
|
53
|
+
adaptableId: this.api.optionsApi.getAdaptableId(),
|
|
52
54
|
};
|
|
53
55
|
this.api.eventApi.emit('ChartChanged', chartChangedInfo);
|
|
54
56
|
}
|
|
@@ -30,7 +30,7 @@ class EntitlementService {
|
|
|
30
30
|
const defaultAccessLevelContext = {
|
|
31
31
|
userName: adaptableOptions.userName,
|
|
32
32
|
adaptableId: adaptableOptions.adaptableId,
|
|
33
|
-
adaptableApi: this.adaptableApi
|
|
33
|
+
adaptableApi: this.adaptableApi,
|
|
34
34
|
};
|
|
35
35
|
const defaultAccessLevel = typeof entitlementOptions.defaultAccessLevel === 'function'
|
|
36
36
|
? entitlementOptions.defaultAccessLevel(defaultAccessLevelContext)
|
|
@@ -43,7 +43,7 @@ class EntitlementService {
|
|
|
43
43
|
userName: adaptableOptions.userName,
|
|
44
44
|
adaptableId: adaptableOptions.adaptableId,
|
|
45
45
|
defaultAccessLevel,
|
|
46
|
-
adaptableApi: this.adaptableApi
|
|
46
|
+
adaptableApi: this.adaptableApi,
|
|
47
47
|
};
|
|
48
48
|
const dynamicModuleEntitlement = moduleEntitlements(entitlementContext);
|
|
49
49
|
return dynamicModuleEntitlement !== null && dynamicModuleEntitlement !== void 0 ? dynamicModuleEntitlement : defaultAccessLevel;
|
|
@@ -49,6 +49,10 @@ class MetamodelService {
|
|
|
49
49
|
validateOptionsObject(validationErrors, optionsObjectName, optionsObject, optionsObjectMetamodel, optionsObjectDefaultValues) {
|
|
50
50
|
Object.entries(optionsObject).forEach(([optionKey, optionValue]) => {
|
|
51
51
|
var _a;
|
|
52
|
+
if (optionKey === 'gridOptions') {
|
|
53
|
+
// gridOptions is aspecial case as it's NOT a public property, but we set and use it internally
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
52
56
|
const optionMetamodel = (_a = optionsObjectMetamodel === null || optionsObjectMetamodel === void 0 ? void 0 : optionsObjectMetamodel.props) === null || _a === void 0 ? void 0 : _a.find((metamodelProperty) => metamodelProperty.name === optionKey);
|
|
53
57
|
if (!optionMetamodel) {
|
|
54
58
|
validationErrors.push(`${optionsObjectName}.${optionKey} (value=${optionValue}) :: unknown/unsupported property, will be ignored`);
|
|
@@ -82,11 +82,11 @@ class ModuleService {
|
|
|
82
82
|
case 'Alert':
|
|
83
83
|
return learnUrl + 'handbook-alerting';
|
|
84
84
|
case 'BulkUpdate':
|
|
85
|
-
return url + 'handbook-editing
|
|
85
|
+
return url + 'handbook-editing-bulk-update';
|
|
86
86
|
case 'CalculatedColumn':
|
|
87
87
|
return learnUrl + 'handbook-calculated-column';
|
|
88
88
|
case 'CellSummary':
|
|
89
|
-
return learnUrl + 'handbook-summarising
|
|
89
|
+
return learnUrl + 'handbook-summarising';
|
|
90
90
|
case 'CustomSort':
|
|
91
91
|
return learnUrl + 'handbook-sorting';
|
|
92
92
|
case 'Dashboard':
|
|
@@ -94,7 +94,7 @@ class ModuleService {
|
|
|
94
94
|
case 'DataSet':
|
|
95
95
|
return learnUrl + 'handbook-data-sets';
|
|
96
96
|
case 'DataChangeHistory':
|
|
97
|
-
return learnUrl + 'handbook-monitoring
|
|
97
|
+
return learnUrl + 'handbook-monitoring-data-change-history';
|
|
98
98
|
case 'Export':
|
|
99
99
|
return learnUrl + 'handbook-exporting';
|
|
100
100
|
case 'Filter':
|
|
@@ -106,29 +106,29 @@ class ModuleService {
|
|
|
106
106
|
case 'FreeTextColumn':
|
|
107
107
|
return learnUrl + 'handbook-freetext-column';
|
|
108
108
|
case 'GridInfo':
|
|
109
|
-
return learnUrl + 'handbook-monitoring
|
|
109
|
+
return learnUrl + 'handbook-monitoring-grid-info';
|
|
110
110
|
case 'Layout':
|
|
111
111
|
return learnUrl + 'handbook-layouts';
|
|
112
112
|
case 'PlusMinus':
|
|
113
|
-
return learnUrl + 'handbook-editing
|
|
113
|
+
return learnUrl + 'handbook-editing-plus-minus';
|
|
114
114
|
case 'Query':
|
|
115
115
|
return learnUrl + 'handbook-querying';
|
|
116
116
|
case 'QuickSearch':
|
|
117
|
-
return learnUrl + 'handbook-
|
|
117
|
+
return learnUrl + 'handbook-quick-search';
|
|
118
118
|
case 'Schedule':
|
|
119
119
|
return learnUrl + 'handbook-scheduling';
|
|
120
120
|
case 'Shortcut':
|
|
121
|
-
return learnUrl + 'handbook-editing
|
|
121
|
+
return learnUrl + 'handbook-editing-shortcut';
|
|
122
122
|
case 'SmartEdit':
|
|
123
|
-
return learnUrl + 'handbook-editing
|
|
123
|
+
return learnUrl + 'handbook-editing-smart-edit';
|
|
124
124
|
case 'StateManagement':
|
|
125
125
|
return learnUrl + 'dev-guide-adaptable-state';
|
|
126
126
|
case 'StatusBar':
|
|
127
127
|
return learnUrl + 'ui-status-bar';
|
|
128
128
|
case 'SystemStatus':
|
|
129
|
-
return learnUrl + 'handbook-
|
|
129
|
+
return learnUrl + 'handbook-system-status-message';
|
|
130
130
|
case 'TeamSharing':
|
|
131
|
-
return learnUrl + 'handbook-
|
|
131
|
+
return learnUrl + 'handbook-team-sharing';
|
|
132
132
|
case 'Theme':
|
|
133
133
|
return learnUrl + 'handbook-theming';
|
|
134
134
|
case 'ToolPanel':
|
|
@@ -26,6 +26,8 @@ class QueryLanguageService {
|
|
|
26
26
|
return parser.evaluate(expression, {
|
|
27
27
|
node: rowNode,
|
|
28
28
|
adaptableApi: this.adaptableApi,
|
|
29
|
+
userName: this.adaptableApi.optionsApi.getUserName(),
|
|
30
|
+
adaptableId: this.adaptableApi.optionsApi.getAdaptableId(),
|
|
29
31
|
functions: booleanAndScalarFunctions,
|
|
30
32
|
evaluateCustomQueryVariable: this.evaluateCustomQueryVariable,
|
|
31
33
|
});
|
|
@@ -39,6 +41,8 @@ class QueryLanguageService {
|
|
|
39
41
|
return parser.evaluate(expression, {
|
|
40
42
|
node: null,
|
|
41
43
|
adaptableApi: this.adaptableApi,
|
|
44
|
+
userName: this.adaptableApi.optionsApi.getUserName(),
|
|
45
|
+
adaptableId: this.adaptableApi.optionsApi.getAdaptableId(),
|
|
42
46
|
functions: aggregatedScalarFunctions,
|
|
43
47
|
evaluateCustomQueryVariable: this.evaluateCustomQueryVariable,
|
|
44
48
|
});
|
|
@@ -49,6 +53,8 @@ class QueryLanguageService {
|
|
|
49
53
|
const reactiveExpression$ = parser.evaluate(reactiveExpression, {
|
|
50
54
|
node: reactiveExpression,
|
|
51
55
|
adaptableApi: this.adaptableApi,
|
|
56
|
+
userName: this.adaptableApi.optionsApi.getUserName(),
|
|
57
|
+
adaptableId: this.adaptableApi.optionsApi.getAdaptableId(),
|
|
52
58
|
functions: moduleExpressionFunctions.observableFunctions,
|
|
53
59
|
whereClauseFunctions: booleanAndScalarFunctions,
|
|
54
60
|
evaluateCustomQueryVariable: this.evaluateCustomQueryVariable,
|
|
@@ -61,6 +67,8 @@ class QueryLanguageService {
|
|
|
61
67
|
const aggregationEvaluation = parser.evaluate(aggregationExpression, {
|
|
62
68
|
node: aggregationExpression,
|
|
63
69
|
adaptableApi: this.adaptableApi,
|
|
70
|
+
userName: this.adaptableApi.optionsApi.getUserName(),
|
|
71
|
+
adaptableId: this.adaptableApi.optionsApi.getAdaptableId(),
|
|
64
72
|
functions: moduleExpressionFunctionsMap.aggregatedBooleanFunctions,
|
|
65
73
|
whereClauseFunctions: booleanAndScalarFunctions,
|
|
66
74
|
evaluateCustomQueryVariable: this.evaluateCustomQueryVariable,
|
|
@@ -301,6 +309,8 @@ class QueryLanguageService {
|
|
|
301
309
|
if (typeof expressionOptions.moduleExpressionFunctions === 'function') {
|
|
302
310
|
const context = {
|
|
303
311
|
adaptableApi: this.adaptableApi,
|
|
312
|
+
userName: this.adaptableApi.optionsApi.getUserName(),
|
|
313
|
+
adaptableId: this.adaptableApi.optionsApi.getAdaptableId(),
|
|
304
314
|
module,
|
|
305
315
|
availableBooleanFunctionNames: (0, TypeExtensions_1.getTypedKeys)(generalBooleanExpressionFunctions),
|
|
306
316
|
availableScalarFunctionNames: (0, TypeExtensions_1.getTypedKeys)(generalScalarExpressionFunctions),
|
|
@@ -327,6 +337,8 @@ class QueryLanguageService {
|
|
|
327
337
|
const systemFunctionNames = typeof systemFunctions === 'function'
|
|
328
338
|
? systemFunctions({
|
|
329
339
|
adaptableApi: this.adaptableApi,
|
|
340
|
+
userName: this.adaptableApi.optionsApi.getUserName(),
|
|
341
|
+
adaptableId: this.adaptableApi.optionsApi.getAdaptableId(),
|
|
330
342
|
availableExpressionFunctionNames: (0, TypeExtensions_1.getTypedKeys)(availableExpressionFunctions),
|
|
331
343
|
})
|
|
332
344
|
: systemFunctions;
|
|
@@ -346,6 +358,8 @@ class QueryLanguageService {
|
|
|
346
358
|
const customFunctionDefinitions = typeof customFunctions === 'function'
|
|
347
359
|
? customFunctions({
|
|
348
360
|
adaptableApi: this.adaptableApi,
|
|
361
|
+
userName: this.adaptableApi.optionsApi.getUserName(),
|
|
362
|
+
adaptableId: this.adaptableApi.optionsApi.getAdaptableId(),
|
|
349
363
|
availableExpressionFunctionNames: (0, TypeExtensions_1.getTypedKeys)(generalExpressionFunctions),
|
|
350
364
|
})
|
|
351
365
|
: customFunctions;
|
|
@@ -358,6 +372,8 @@ class QueryLanguageService {
|
|
|
358
372
|
var _a, _b, _c;
|
|
359
373
|
const context = {
|
|
360
374
|
adaptableApi: this.adaptableApi,
|
|
375
|
+
userName: this.adaptableApi.optionsApi.getUserName(),
|
|
376
|
+
adaptableId: this.adaptableApi.optionsApi.getAdaptableId(),
|
|
361
377
|
args,
|
|
362
378
|
};
|
|
363
379
|
const customQueryVariableDefinition = (_c = (_b = (_a = this.adaptableApi.optionsApi.getAdaptableQLOptions()) === null || _a === void 0 ? void 0 : _a.expressionOptions) === null || _b === void 0 ? void 0 : _b.customQueryVariables) === null || _c === void 0 ? void 0 : _c[functionName];
|
|
@@ -120,7 +120,7 @@ class ReportService {
|
|
|
120
120
|
}
|
|
121
121
|
GetReportColumnScopeShortDescription(report) {
|
|
122
122
|
var _a, _b;
|
|
123
|
-
if (this.adaptableApi.exportApi.
|
|
123
|
+
if (this.adaptableApi.exportApi.isExternalReport(report)) {
|
|
124
124
|
return ['[Custom Columns]'];
|
|
125
125
|
}
|
|
126
126
|
switch (report.ReportColumnScope) {
|
|
@@ -138,7 +138,7 @@ class ReportService {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
GetReportColumnScopeLongDescription(report) {
|
|
141
|
-
if (this.adaptableApi.exportApi.
|
|
141
|
+
if (this.adaptableApi.exportApi.isExternalReport(report)) {
|
|
142
142
|
return '[Custom Columns]';
|
|
143
143
|
}
|
|
144
144
|
switch (report.ReportColumnScope) {
|
|
@@ -153,7 +153,7 @@ class ReportService {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
GetReportExpressionDescription(report, cols) {
|
|
156
|
-
if (this.adaptableApi.exportApi.
|
|
156
|
+
if (this.adaptableApi.exportApi.isExternalReport(report)) {
|
|
157
157
|
return '[Custom Data]';
|
|
158
158
|
}
|
|
159
159
|
if (this.IsSystemReport(report.Name)) {
|
|
@@ -189,7 +189,7 @@ class ReportService {
|
|
|
189
189
|
getReportDataColumns(report, includePrimaryKey = false) {
|
|
190
190
|
let reportColumns = [];
|
|
191
191
|
let gridColumns = this.adaptableApi.columnApi.getExportableColumns();
|
|
192
|
-
if (this.adaptableApi.exportApi.
|
|
192
|
+
if (this.adaptableApi.exportApi.isExternalReport(report)) {
|
|
193
193
|
return reportColumns;
|
|
194
194
|
}
|
|
195
195
|
// first get the cols depending on the Column Scope
|
|
@@ -297,8 +297,8 @@ class ReportService {
|
|
|
297
297
|
return resultRowData;
|
|
298
298
|
}
|
|
299
299
|
getReportData(report, includePrimaryKey = false) {
|
|
300
|
-
if (this.adaptableApi.exportApi.
|
|
301
|
-
return this.adaptableApi.exportApi.
|
|
300
|
+
if (this.adaptableApi.exportApi.isExternalReport(report)) {
|
|
301
|
+
return this.adaptableApi.exportApi.runExternalReport(report.Name);
|
|
302
302
|
}
|
|
303
303
|
const columns = this.getReportDataColumns(report, includePrimaryKey);
|
|
304
304
|
const rows = this.getReportDataRows(report, columns, includePrimaryKey);
|
|
@@ -326,6 +326,8 @@ class ReportService {
|
|
|
326
326
|
reportDestination: reportDestination,
|
|
327
327
|
liveDataTrigger: liveDataTrigger,
|
|
328
328
|
liveReport: liveReport,
|
|
329
|
+
userName: this.adaptableApi.optionsApi.getUserName(),
|
|
330
|
+
adaptableId: this.adaptableApi.optionsApi.getAdaptableId(),
|
|
329
331
|
};
|
|
330
332
|
this.adaptableApi.eventApi.emit('LiveDataChanged', liveDataChangedInfo);
|
|
331
333
|
}
|
|
@@ -6,7 +6,7 @@ class RowEditService {
|
|
|
6
6
|
constructor(adaptableApi) {
|
|
7
7
|
this.adaptableApi = adaptableApi;
|
|
8
8
|
const adaptableInstance = this.adaptableApi.internalApi.getAdaptableInstance();
|
|
9
|
-
if (adaptableInstance.adaptableOptions.
|
|
9
|
+
if (adaptableInstance.adaptableOptions.actionRowOptions.autoHandle) {
|
|
10
10
|
adaptableInstance.api.eventApi.on('ActionRowSubmitted', (eventInfo) => this.autoHandleActionRowButtons(eventInfo));
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -24,12 +24,14 @@ class RowEditService {
|
|
|
24
24
|
}
|
|
25
25
|
if (actionRowSubmittedInfo.type === 'rowCreated') {
|
|
26
26
|
const { formData } = actionRowSubmittedInfo;
|
|
27
|
-
const setPrimaryKeyValueFunction = adaptableApi.internalApi.getAdaptableInstance().adaptableOptions.
|
|
27
|
+
const setPrimaryKeyValueFunction = adaptableApi.internalApi.getAdaptableInstance().adaptableOptions.actionRowOptions
|
|
28
28
|
.actionRowButtonOptions.setPrimaryKeyValue;
|
|
29
29
|
const newRowData = typeof setPrimaryKeyValueFunction === 'function'
|
|
30
30
|
? setPrimaryKeyValueFunction({
|
|
31
31
|
rowData: formData,
|
|
32
32
|
adaptableApi,
|
|
33
|
+
userName: this.adaptableApi.optionsApi.getUserName(),
|
|
34
|
+
adaptableId: this.adaptableApi.optionsApi.getAdaptableId(),
|
|
33
35
|
})
|
|
34
36
|
: Object.assign({}, formData);
|
|
35
37
|
const config = {
|
|
@@ -76,6 +76,8 @@ class ValidationService {
|
|
|
76
76
|
const serverValidationContext = {
|
|
77
77
|
cellDataChangedInfo: cellDataChangedInfo,
|
|
78
78
|
adaptableApi: this.adaptableApi,
|
|
79
|
+
userName: this.adaptableApi.optionsApi.getUserName(),
|
|
80
|
+
adaptableId: this.adaptableApi.optionsApi.getAdaptableId(),
|
|
79
81
|
};
|
|
80
82
|
return () => {
|
|
81
83
|
this.adaptableApi.optionsApi
|
|
@@ -23,11 +23,11 @@ const ConfigurationWizard = (props) => {
|
|
|
23
23
|
toolPanels: ['columns', 'filters', 'adaptable'],
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
|
-
const preparedAdaptableOptions = Object.assign(Object.assign({}, props.adaptableOptions), { gridOptions: Object.assign(Object.assign({}, gridOptionDefaults), (_a = props === null || props === void 0 ? void 0 : props.adaptableOptions) === null || _a === void 0 ? void 0 : _a.
|
|
26
|
+
const preparedAdaptableOptions = Object.assign(Object.assign({}, props.adaptableOptions), { gridOptions: Object.assign(Object.assign({}, gridOptionDefaults), (_a = props === null || props === void 0 ? void 0 : props.adaptableOptions) === null || _a === void 0 ? void 0 : _a._gridOptions) });
|
|
27
27
|
return AdaptableHelper_1.default.assignAdaptableOptions(preparedAdaptableOptions);
|
|
28
28
|
});
|
|
29
29
|
const [selectedColumns, setSelectedColumns] = (0, react_1.useState)(() => {
|
|
30
|
-
return props.adaptableOptions.
|
|
30
|
+
return props.adaptableOptions._gridOptions.columnDefs.reduce((acc, col) => {
|
|
31
31
|
acc[col.field] = true;
|
|
32
32
|
return acc;
|
|
33
33
|
}, {});
|
|
@@ -35,9 +35,9 @@ const ConfigurationWizard = (props) => {
|
|
|
35
35
|
const columnsHandle = React.useRef();
|
|
36
36
|
const handleFinish = () => {
|
|
37
37
|
const newAdaptableOptions = Object.assign({}, adaptableOptions);
|
|
38
|
-
newAdaptableOptions.
|
|
38
|
+
newAdaptableOptions._gridOptions = Object.assign({}, adaptableOptions._gridOptions);
|
|
39
39
|
if (columnsHandle.current) {
|
|
40
|
-
newAdaptableOptions.
|
|
40
|
+
newAdaptableOptions._gridOptions.columnDefs = columnsHandle
|
|
41
41
|
.current.getColumns()
|
|
42
42
|
.map((column) => {
|
|
43
43
|
const newColumn = Object.assign(Object.assign({}, column), { headerName: column.caption || StringExtensions_1.default.Humanize(column.field) });
|
|
@@ -53,7 +53,7 @@ const ConfigurationWizard = (props) => {
|
|
|
53
53
|
setIsValid(newIsValid);
|
|
54
54
|
}, []);
|
|
55
55
|
const handleColumnsChange = React.useCallback((columns) => {
|
|
56
|
-
setAdaptableOptions((adaptableOptions) => (Object.assign(Object.assign({}, adaptableOptions), {
|
|
56
|
+
setAdaptableOptions((adaptableOptions) => (Object.assign(Object.assign({}, adaptableOptions), { _gridOptions: Object.assign(Object.assign({}, adaptableOptions._gridOptions), { columnDefs: columns }) })));
|
|
57
57
|
}, []);
|
|
58
58
|
const handleColumnSelectionChange = React.useCallback((col, flag) => {
|
|
59
59
|
setSelectedColumns((selectedColumns) => {
|
package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js
CHANGED
|
@@ -13,6 +13,6 @@ const ConfigurationWizardColumnsStep = (props) => {
|
|
|
13
13
|
}
|
|
14
14
|
return (React.createElement(ColumnsList_1.default, { theme: theme, handle: props.columnsHandle, onValidityChange: (valid) => {
|
|
15
15
|
props.setPrimaryKeyIsNotSelected(valid);
|
|
16
|
-
}, selectedColumns: props.selectedColumns, onChange: props.onColumnChange, onSelectionChange: props.onSelectionChange, columns: (_c = (_b = props.adaptableOptions) === null || _b === void 0 ? void 0 : _b.
|
|
16
|
+
}, selectedColumns: props.selectedColumns, onChange: props.onColumnChange, onSelectionChange: props.onSelectionChange, columns: (_c = (_b = props.adaptableOptions) === null || _b === void 0 ? void 0 : _b._gridOptions) === null || _c === void 0 ? void 0 : _c.columnDefs }));
|
|
17
17
|
};
|
|
18
18
|
exports.ConfigurationWizardColumnsStep = ConfigurationWizardColumnsStep;
|
package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js
CHANGED
|
@@ -217,7 +217,7 @@ const FinanceFormSectionTitle = (props) => (React.createElement(rebass_1.Box, Ob
|
|
|
217
217
|
React.createElement(HelpBlock_1.default, null, props.children)));
|
|
218
218
|
const FinanceForm = (props) => {
|
|
219
219
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
220
|
-
const columnOptions = (_d = (_c = (_b = (_a = props.adaptableOptions) === null || _a === void 0 ? void 0 : _a.
|
|
220
|
+
const columnOptions = (_d = (_c = (_b = (_a = props.adaptableOptions) === null || _a === void 0 ? void 0 : _a._gridOptions) === null || _b === void 0 ? void 0 : _b.columnDefs) === null || _c === void 0 ? void 0 : _c.map) === null || _d === void 0 ? void 0 : _d.call(_c, (item) => {
|
|
221
221
|
var _a;
|
|
222
222
|
return ({
|
|
223
223
|
label: StringExtensions_1.default.Humanize((_a = item.headerName) !== null && _a !== void 0 ? _a : item.field),
|
|
@@ -10,22 +10,22 @@ const rebass_1 = require("rebass");
|
|
|
10
10
|
const GridOptionsForm = (props) => {
|
|
11
11
|
var _a;
|
|
12
12
|
let abOptions = props.adaptableOptions;
|
|
13
|
-
const gridOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.
|
|
13
|
+
const gridOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions._gridOptions), abOptions._gridOptions);
|
|
14
14
|
return (React.createElement(rebass_1.Box, { p: 2 },
|
|
15
15
|
React.createElement(HelpBlock_1.default, null, "Grid Options"),
|
|
16
16
|
React.createElement(FormLayout_1.default, { margin: 2, columns: [{ name: 'children' }, { name: 'label', style: { textAlign: 'start' } }] },
|
|
17
17
|
React.createElement(FormLayout_1.FormRow, { label: "Enable Range Selection" },
|
|
18
18
|
React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.enableRangeSelection, onChange: (enableRangeSelection) => {
|
|
19
19
|
abOptions = Object.assign({}, abOptions);
|
|
20
|
-
abOptions.
|
|
21
|
-
abOptions.
|
|
20
|
+
abOptions._gridOptions = Object.assign({}, abOptions._gridOptions);
|
|
21
|
+
abOptions._gridOptions.enableRangeSelection = enableRangeSelection;
|
|
22
22
|
props.onChangeadAptableOptions(abOptions);
|
|
23
23
|
} })),
|
|
24
24
|
React.createElement(FormLayout_1.FormRow, { label: "Show Quick Filter" },
|
|
25
25
|
React.createElement(CheckBox_1.CheckBox, { checked: (_a = gridOptions.defaultColDef) === null || _a === void 0 ? void 0 : _a.floatingFilter, onChange: (floatingFilter) => {
|
|
26
26
|
abOptions = Object.assign({}, abOptions);
|
|
27
|
-
abOptions.
|
|
28
|
-
abOptions.
|
|
27
|
+
abOptions._gridOptions = Object.assign({}, abOptions._gridOptions);
|
|
28
|
+
abOptions._gridOptions.defaultColDef = {
|
|
29
29
|
floatingFilter,
|
|
30
30
|
};
|
|
31
31
|
props.onChangeadAptableOptions(abOptions);
|
|
@@ -33,15 +33,15 @@ const GridOptionsForm = (props) => {
|
|
|
33
33
|
React.createElement(FormLayout_1.FormRow, { label: "Suppress Column Virtualisation" },
|
|
34
34
|
React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.suppressColumnVirtualisation, onChange: (suppressColumnVirtualisation) => {
|
|
35
35
|
abOptions = Object.assign({}, abOptions);
|
|
36
|
-
abOptions.
|
|
37
|
-
abOptions.
|
|
36
|
+
abOptions._gridOptions = Object.assign({}, abOptions._gridOptions);
|
|
37
|
+
abOptions._gridOptions.suppressColumnVirtualisation = suppressColumnVirtualisation;
|
|
38
38
|
props.onChangeadAptableOptions(abOptions);
|
|
39
39
|
} })),
|
|
40
40
|
React.createElement(FormLayout_1.FormRow, { label: "Show Column Menu Button" },
|
|
41
41
|
React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.suppressMenuHide, onChange: (suppressMenuHide) => {
|
|
42
42
|
abOptions = Object.assign({}, abOptions);
|
|
43
|
-
abOptions.
|
|
44
|
-
abOptions.
|
|
43
|
+
abOptions._gridOptions = Object.assign({}, abOptions._gridOptions);
|
|
44
|
+
abOptions._gridOptions.suppressMenuHide = suppressMenuHide;
|
|
45
45
|
props.onChangeadAptableOptions(abOptions);
|
|
46
46
|
} })))));
|
|
47
47
|
};
|
|
@@ -14,8 +14,8 @@ const UIOptionsActionColumnsForm = (props) => {
|
|
|
14
14
|
{ value: 'edit', label: 'Edit' },
|
|
15
15
|
{ value: 'delete', label: 'Delete' },
|
|
16
16
|
];
|
|
17
|
-
const actionRowButtons = Array.isArray((_b = (_a = props.abOptions) === null || _a === void 0 ? void 0 : _a.
|
|
18
|
-
? (_d = (_c = props.abOptions) === null || _c === void 0 ? void 0 : _c.
|
|
17
|
+
const actionRowButtons = Array.isArray((_b = (_a = props.abOptions) === null || _a === void 0 ? void 0 : _a.actionRowOptions) === null || _b === void 0 ? void 0 : _b.actionRowButtons)
|
|
18
|
+
? (_d = (_c = props.abOptions) === null || _c === void 0 ? void 0 : _c.actionRowOptions) === null || _d === void 0 ? void 0 : _d.actionRowButtons
|
|
19
19
|
: (_e = []) !== null && _e !== void 0 ? _e : [];
|
|
20
20
|
const handleCheckChange = (type, checked) => {
|
|
21
21
|
var _a;
|
|
@@ -26,7 +26,7 @@ const UIOptionsActionColumnsForm = (props) => {
|
|
|
26
26
|
else {
|
|
27
27
|
newActionRowButtons = newActionRowButtons.filter((item) => item !== type);
|
|
28
28
|
}
|
|
29
|
-
props.onChange(Object.assign(Object.assign({}, props.abOptions), {
|
|
29
|
+
props.onChange(Object.assign(Object.assign({}, props.abOptions), { actionRowOptions: Object.assign(Object.assign({}, (_a = props.abOptions) === null || _a === void 0 ? void 0 : _a.actionRowOptions), { actionRowButtons: newActionRowButtons }) }));
|
|
30
30
|
};
|
|
31
31
|
return (React.createElement(rebass_1.Box, null,
|
|
32
32
|
React.createElement(HelpBlock_1.default, null, "Action Row Buttons"),
|
package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js
CHANGED
|
@@ -39,8 +39,8 @@ const isSidebarChecked = (sideBar, panelName) => {
|
|
|
39
39
|
const UIOptionsSidebarForm = (props) => {
|
|
40
40
|
var _a;
|
|
41
41
|
const { abOptions, onChange } = props;
|
|
42
|
-
const {
|
|
43
|
-
const sideBar = prepareSidebarDef(
|
|
42
|
+
const { _gridOptions } = props.abOptions;
|
|
43
|
+
const sideBar = prepareSidebarDef(_gridOptions.sideBar);
|
|
44
44
|
const renderSidebarCheckbox = (sidebarName) => {
|
|
45
45
|
return (React.createElement(CheckBox_1.CheckBox, { mr: 3, key: sidebarName, checked: isSidebarChecked(sideBar, sidebarName), onChange: (check) => handleToolpanelsChange(sidebarName, check) }, StringExtensions_1.default.Humanize(sidebarName)));
|
|
46
46
|
};
|
|
@@ -60,12 +60,12 @@ const UIOptionsSidebarForm = (props) => {
|
|
|
60
60
|
if (newPanels.length === 0) {
|
|
61
61
|
hiddenByDefault = true;
|
|
62
62
|
}
|
|
63
|
-
const newAbOptions = Object.assign(Object.assign({}, abOptions), {
|
|
63
|
+
const newAbOptions = Object.assign(Object.assign({}, abOptions), { _gridOptions: Object.assign(Object.assign({}, abOptions._gridOptions), { sideBar: Object.assign(Object.assign({}, sideBar), { toolPanels: newPanels, hiddenByDefault }) }) });
|
|
64
64
|
props.onChange(newAbOptions);
|
|
65
65
|
};
|
|
66
66
|
let sidebarPosition = (_a = sideBar === null || sideBar === void 0 ? void 0 : sideBar.position) !== null && _a !== void 0 ? _a : 'right';
|
|
67
67
|
const handleSidebarPositionChange = (position) => {
|
|
68
|
-
const newAbOptions = Object.assign(Object.assign({}, abOptions), { gridOptions: Object.assign(Object.assign({}, abOptions.
|
|
68
|
+
const newAbOptions = Object.assign(Object.assign({}, abOptions), { gridOptions: Object.assign(Object.assign({}, abOptions._gridOptions), { sideBar: Object.assign(Object.assign({}, sideBar), { position }) }) });
|
|
69
69
|
props.onChange(newAbOptions);
|
|
70
70
|
};
|
|
71
71
|
return (React.createElement(rebass_1.Box, null,
|
|
@@ -13,7 +13,7 @@ const DropdownButton_1 = tslib_1.__importDefault(require("../../../../components
|
|
|
13
13
|
const FormBox_1 = require("../Components/FormBox");
|
|
14
14
|
const UIOptionsStatusbarForm = (props) => {
|
|
15
15
|
var _a, _b, _c, _d;
|
|
16
|
-
const allPanels = (_c = (_b = (_a = props.abOptions.
|
|
16
|
+
const allPanels = (_c = (_b = (_a = props.abOptions._gridOptions) === null || _a === void 0 ? void 0 : _a.statusBar) === null || _b === void 0 ? void 0 : _b.statusPanels) !== null && _c !== void 0 ? _c : [];
|
|
17
17
|
const panelIdtoPanel = (panelsIds, align) => panelsIds.map((panelId) => {
|
|
18
18
|
const previousItem = allPanels.find((panel) => panel.key === panelId || panel.statusPanel === panelId);
|
|
19
19
|
if (previousItem) {
|
|
@@ -35,7 +35,7 @@ const UIOptionsStatusbarForm = (props) => {
|
|
|
35
35
|
const centerPanels = panelIdtoPanel(tabs[1].Items, 'center');
|
|
36
36
|
const rightPanels = panelIdtoPanel(tabs[2].Items, 'right');
|
|
37
37
|
const newStatusbarPanels = [...leftPanels, ...centerPanels, ...rightPanels];
|
|
38
|
-
props.onChange(Object.assign(Object.assign({}, props.abOptions), {
|
|
38
|
+
props.onChange(Object.assign(Object.assign({}, props.abOptions), { _gridOptions: Object.assign(Object.assign({}, props.abOptions._gridOptions), { statusBar: Object.assign(Object.assign({}, props.abOptions._gridOptions.statusBar), { statusPanels: newStatusbarPanels }) }) }));
|
|
39
39
|
};
|
|
40
40
|
const disabled = false;
|
|
41
41
|
const panelToTabItemId = (panel) => { var _a; return (_a = panel.key) !== null && _a !== void 0 ? _a : panel.statusPanel; };
|
|
@@ -78,7 +78,7 @@ const UIOptionsStatusbarForm = (props) => {
|
|
|
78
78
|
const newStatusbarPanels = [...allPanels, newAdaptablePanel];
|
|
79
79
|
setAdaptablePanelTitle('');
|
|
80
80
|
setAdaptablePanelAlign('left');
|
|
81
|
-
props.onChange(Object.assign(Object.assign({}, props.abOptions), {
|
|
81
|
+
props.onChange(Object.assign(Object.assign({}, props.abOptions), { _gridOptions: Object.assign(Object.assign({}, props.abOptions._gridOptions), { statusBar: Object.assign(Object.assign({}, props.abOptions._gridOptions.statusBar), { statusPanels: newStatusbarPanels }) }) }));
|
|
82
82
|
};
|
|
83
83
|
return (React.createElement(rebass_1.Box, null,
|
|
84
84
|
React.createElement(HelpBlock_1.default, null, "Status Bar"),
|
|
@@ -52,10 +52,10 @@ const Wizard = (props) => {
|
|
|
52
52
|
payload: `Invalid adaptable configuration - ${err}`,
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
const gridOptions = (0, helper_1.prepareGridOptions)(dataSourceInfo, (_a = props.adaptableOptions) === null || _a === void 0 ? void 0 : _a.
|
|
55
|
+
const gridOptions = (0, helper_1.prepareGridOptions)(dataSourceInfo, (_a = props.adaptableOptions) === null || _a === void 0 ? void 0 : _a._gridOptions);
|
|
56
56
|
const adaptableOptions = Object.assign({}, props.adaptableOptions);
|
|
57
57
|
adaptableOptions.adaptableId = adaptableOptions.adaptableId || (file ? file.name : '');
|
|
58
|
-
adaptableOptions.
|
|
58
|
+
adaptableOptions._gridOptions = gridOptions;
|
|
59
59
|
if (dataSourceInfo.primaryKey) {
|
|
60
60
|
adaptableOptions.primaryKey = dataSourceInfo.primaryKey;
|
|
61
61
|
}
|