@adaptabletools/adaptable 12.2.2 → 14.0.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.css +2 -2
- package/bundle.cjs.js +419 -143
- package/index.css +2 -2
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +3 -2
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -2
- package/src/AdaptableOptions/ActionOptions.d.ts +1 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +1 -5
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +1 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +1 -1
- package/src/AdaptableOptions/EntitlementOptions.d.ts +15 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
- package/src/Api/ChartingApi.d.ts +1 -1
- package/src/Api/ColumnApi.d.ts +1 -1
- package/src/Api/Events/ActionRowSubmitted.d.ts +1 -1
- package/src/Api/Events/AdaptableReady.d.ts +1 -1
- package/src/Api/Events/GridDataChanged.d.ts +1 -1
- package/src/Api/ExportApi.d.ts +5 -1
- package/src/Api/FilterApi.d.ts +1 -1
- package/src/Api/FinanceApi.d.ts +1 -1
- package/src/Api/FormatColumnApi.d.ts +1 -1
- package/src/Api/FreeTextColumnApi.d.ts +1 -1
- package/src/Api/GridApi.d.ts +4 -3
- package/src/Api/Implementation/ActionApiImpl.js +5 -5
- package/src/Api/Implementation/AlertApiImpl.js +9 -9
- package/src/Api/Implementation/ApiBase.js +3 -3
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CellSummaryApiImpl.js +5 -2
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +1 -1
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +1 -1
- package/src/Api/Implementation/ConfigApiImpl.js +2 -2
- package/src/Api/Implementation/DashboardApiImpl.js +2 -2
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -5
- package/src/Api/Implementation/ExportApiImpl.js +2 -2
- package/src/Api/Implementation/FilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FilterApiImpl.js +6 -6
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
- package/src/Api/Implementation/GridApiImpl.js +12 -12
- package/src/Api/Implementation/InternalApiImpl.d.ts +1 -1
- package/src/Api/Implementation/InternalApiImpl.js +5 -5
- package/src/Api/Implementation/LayoutApiImpl.js +12 -12
- package/src/Api/Implementation/PredicateApiImpl.js +3 -3
- package/src/Api/Implementation/QueryApiImpl.js +6 -6
- package/src/Api/Implementation/QueryLanguageApiImpl.js +5 -5
- package/src/Api/Implementation/ScopeApiImpl.js +3 -3
- package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StatusBarApiImpl.js +2 -2
- package/src/Api/Implementation/SystemStatusApiImpl.js +9 -9
- package/src/Api/Implementation/TeamSharingApiImpl.js +10 -10
- package/src/Api/InternalApi.d.ts +1 -1
- package/src/Api/StatusBarApi.d.ts +1 -1
- package/src/PredefinedConfig/ChartingState.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +17 -17
- package/src/PredefinedConfig/Common/CellDataChangedInfo.d.ts +1 -1
- package/src/PredefinedConfig/Common/Menu.d.ts +1 -1
- package/src/PredefinedConfig/Selection/GridCell.d.ts +1 -1
- package/src/PredefinedConfig/Selection/GridRow.d.ts +1 -1
- package/src/PredefinedConfig/Uuid.js +1 -1
- package/src/Redux/ActionsReducers/AlertRedux.js +2 -2
- package/src/Redux/ActionsReducers/ChartingRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +2 -2
- package/src/Redux/ActionsReducers/CustomSortRedux.js +2 -2
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +2 -2
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +2 -2
- package/src/Redux/ActionsReducers/GridRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +2 -2
- package/src/Redux/ActionsReducers/ScheduleRedux.js +10 -10
- package/src/Redux/ActionsReducers/ShortcutRedux.js +2 -2
- package/src/Redux/ActionsReducers/SystemRedux.js +2 -2
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +8 -8
- package/src/Redux/Store/AdaptableReduxMerger.js +9 -9
- package/src/Redux/Store/AdaptableStore.js +23 -23
- package/src/Strategy/AlertModule.js +6 -6
- package/src/Strategy/CalculatedColumnModule.js +4 -4
- package/src/Strategy/ConditionalStyleModule.js +8 -8
- package/src/Strategy/CustomSortModule.js +3 -3
- package/src/Strategy/DashboardModule.js +1 -1
- package/src/Strategy/DataChangeHistoryModule.js +1 -1
- package/src/Strategy/DataSetModule.js +2 -2
- package/src/Strategy/ExportModule.js +4 -4
- package/src/Strategy/FilterModule.js +1 -1
- package/src/Strategy/FlashingCellModule.js +7 -7
- package/src/Strategy/FormatColumnModule.js +8 -8
- package/src/Strategy/FreeTextColumnModule.js +1 -1
- package/src/Strategy/LayoutModule.js +2 -2
- package/src/Strategy/PlusMinusModule.js +3 -3
- package/src/Strategy/QueryModule.js +1 -1
- package/src/Strategy/ScheduleModule.js +2 -2
- package/src/Strategy/ShortcutModule.js +3 -3
- package/src/Strategy/StatusBarModule.d.ts +1 -1
- package/src/Strategy/TeamSharingModule.js +6 -6
- package/src/Strategy/ToolPanelModule.js +4 -4
- package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.js +2 -2
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +1 -1
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
- package/src/Utilities/Constants/GeneralConstants.js +2 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +35 -35
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +18 -18
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +10 -10
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +48 -48
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +19 -19
- package/src/Utilities/Extensions/StringExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +5 -5
- package/src/Utilities/Helpers/DateHelper.js +9 -9
- package/src/Utilities/Helpers/FormatHelper.js +2 -2
- package/src/Utilities/Helpers/Helper.js +3 -9
- package/src/Utilities/Helpers/LoggingHelper.js +1 -1
- package/src/Utilities/Helpers/StyleHelper.js +1 -1
- package/src/Utilities/Interface/Preview.d.ts +1 -1
- package/src/Utilities/ObjectFactory.d.ts +1 -1
- package/src/Utilities/ObjectFactory.js +30 -30
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +1 -1
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +1 -1
- package/src/Utilities/Services/AlertService.js +3 -3
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +3 -3
- package/src/Utilities/Services/DataService.js +1 -1
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +1 -1
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/MetamodelService.js +3 -3
- package/src/Utilities/Services/QueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +2 -2
- package/src/Utilities/Services/ReportService.d.ts +1 -1
- package/src/Utilities/Services/ReportService.js +7 -7
- package/src/Utilities/Services/RowEditService.d.ts +1 -1
- package/src/Utilities/Services/TeamSharingService.js +1 -1
- package/src/Utilities/license/decode.js +1 -1
- package/src/View/AdaptableView.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +10 -10
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +1 -1
- package/src/View/AdaptableWizardView/Wizard.js +6 -6
- package/src/View/AdaptableWizardView/helper.d.ts +1 -1
- package/src/View/AdaptableWizardView/helper.js +1 -1
- package/src/View/Alert/ActiveAlertsPanel.js +2 -2
- package/src/View/Alert/AlertEmptyView.js +1 -1
- package/src/View/Alert/AlertEntityRow.js +1 -1
- package/src/View/Alert/AlertStatusSubPanel.js +3 -3
- package/src/View/Alert/AlertViewPanel.js +2 -2
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +5 -5
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertWizard.js +4 -4
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +2 -2
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +4 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +5 -5
- package/src/View/CellSummary/CellSummaryPopup.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -2
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/ColorPicker.js +2 -2
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.js +4 -4
- package/src/View/Components/AdaptableInput/index.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +4 -4
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -4
- package/src/View/Components/AdaptableObjectRow/index.js +1 -1
- package/src/View/Components/Buttons/ButtonBase/index.js +1 -1
- package/src/View/Components/Buttons/ButtonDelete.js +1 -1
- package/src/View/Components/ColumnSelector/index.js +1 -1
- package/src/View/Components/EntityRulesEditor/index.js +3 -3
- package/src/View/Components/ExpressionWizard.js +1 -1
- package/src/View/Components/ExternalRenderer.js +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +7 -7
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +4 -4
- package/src/View/Components/FilterForm/QuickFilterForm.js +13 -13
- package/src/View/Components/ListBox/DualListBoxEditor.js +10 -10
- package/src/View/Components/ModuleValueSelector/index.js +6 -6
- package/src/View/Components/NewScopeComponent.js +3 -3
- package/src/View/Components/Panels/PanelToolPanel/index.js +1 -1
- package/src/View/Components/Panels/PanelWithImage.js +1 -1
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +3 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +8 -8
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +4 -4
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +3 -3
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -2
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +1 -1
- package/src/View/Components/Popups/FormPopups/FormPopups.js +5 -5
- package/src/View/Components/Popups/Utilities.js +5 -5
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +6 -6
- package/src/View/Components/RangesComponent.js +2 -2
- package/src/View/Components/Selectors/ColumnValueSelector.js +2 -2
- package/src/View/Components/TagValueSelector/index.js +2 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +2 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +6 -6
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -6
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelWrapper.d.ts +6 -4
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
- package/src/View/Components/ValueSelector/index.js +7 -7
- package/src/View/Components/WizardSummaryRow.js +1 -1
- package/src/View/ConditionalStyle/ConditionalStyleSummary.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +3 -3
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +9 -9
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
- package/src/View/Dashboard/CustomDashboardButton.js +2 -2
- package/src/View/Dashboard/CustomToolbarWrapper.js +7 -7
- package/src/View/Dashboard/Dashboard.js +4 -4
- package/src/View/Dashboard/DashboardPopup.js +1 -1
- package/src/View/Dashboard/DashboardViewPanel.js +1 -1
- package/src/View/Dashboard/ModuleToolbarWrapper.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +7 -9
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -7
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +9 -9
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
- package/src/View/DataSet/DataSetSelector.js +1 -1
- package/src/View/DataSet/DataSetStatusPanelPopover.js +1 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
- package/src/View/DataSet/DataSetViewPanel.js +1 -1
- package/src/View/Export/ExportSelector.js +1 -1
- package/src/View/Export/ExportViewPanel.d.ts +2 -1
- package/src/View/Export/ExportViewPanel.js +14 -5
- package/src/View/Export/ReportExportDropdown.js +3 -3
- package/src/View/Export/Wizard/NewReportWizard.js +4 -4
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +2 -2
- package/src/View/Export/Wizard/ReportNameWizardSection.js +2 -2
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +3 -3
- package/src/View/Filter/ActiveFiltersPanel.js +1 -1
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterSummary.js +2 -2
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +7 -7
- package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +5 -5
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +5 -5
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +6 -6
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +5 -5
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +4 -4
- package/src/View/GridInfo/AdaptableObjectsSummary.js +2 -2
- package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -4
- package/src/View/Layout/EditCurrentLayoutButton.js +1 -1
- package/src/View/Layout/LayoutCloneButton.js +1 -1
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +1 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/LayoutViewPanel.js +2 -2
- package/src/View/Layout/SaveLayoutButton.js +3 -3
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +5 -5
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +7 -7
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +8 -8
- package/src/View/Layout/Wizard/sections/FilterSection.js +5 -5
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +5 -5
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +5 -5
- package/src/View/Layout/Wizard/sections/SettingsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/SortSection.js +6 -6
- package/src/View/PlusMinus/PlusMinusSummary.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +3 -3
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +3 -3
- package/src/View/Query/EditCurrentQueryButton.js +1 -1
- package/src/View/Query/ExpandedQueryPopup.js +3 -3
- package/src/View/Query/QueryViewPanel.d.ts +1 -1
- package/src/View/Query/QueryViewPanel.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +3 -3
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQueryWizard.js +3 -3
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +3 -3
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
- package/src/View/QuickSearch/QuickSearchViewPanel.js +2 -2
- package/src/View/QuickSearch/useQuickSearchDebounced.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleWizard.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +4 -4
- package/src/View/SmartEdit/SmartEditPopup.js +1 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +2 -2
- package/src/View/StateManagement/StateManagementViewPanel.js +1 -1
- package/src/View/StateManagement/components/ExportDropdown.js +2 -2
- package/src/View/StateManagement/components/LoadButton.js +1 -1
- package/src/View/StateManagement/handleExportState.js +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +5 -5
- package/src/View/StatusBar/StatusBarPopup.js +2 -2
- package/src/View/SystemStatus/SystemStatusEntityRow.js +1 -1
- package/src/View/SystemStatus/SystemStatusPopup.js +1 -1
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +2 -2
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/SystemStatus/SystemStatusViewPanel.js +2 -2
- package/src/View/TeamSharing/SharedEntityDependencies.js +1 -1
- package/src/View/TeamSharing/SharedEntityObjectView.js +2 -2
- package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
- package/src/View/Theme/ThemePopup.js +1 -1
- package/src/View/Theme/ThemeStatusPanelPopover.js +1 -1
- package/src/View/Theme/ThemeViewPanel.js +2 -2
- package/src/View/Wizard/AdaptableWizard.js +1 -1
- package/src/View/Wizard/ObjectTagsWizardSection.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +5 -5
- package/src/View/Wizard/OnePageWizards.js +14 -12
- package/src/View/Wizard/useKeyboardNavigation.js +1 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +3 -3
- package/src/agGrid/Adaptable.d.ts +19 -11
- package/src/agGrid/Adaptable.js +157 -160
- package/src/agGrid/CheckboxRenderer.d.ts +1 -1
- package/src/agGrid/ColumnSetupInfo.d.ts +1 -1
- package/src/agGrid/FilterWrapper.js +1 -1
- package/src/agGrid/FloatingFilterWrapper.js +1 -1
- package/src/agGrid/GroupCellRenderer.d.ts +1 -1
- package/src/agGrid/GroupCellRenderer.js +2 -2
- package/src/agGrid/PercentBarRenderer.js +1 -1
- package/src/agGrid/agGridHelper.d.ts +1 -1
- package/src/agGrid/agGridHelper.js +12 -13
- package/src/agGrid/agGridMenuHelper.d.ts +1 -1
- package/src/agGrid/agGridMenuHelper.js +5 -5
- package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -1
- package/src/agGrid/createAgStatusPanelComponent.js +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +3 -3
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.js +5 -5
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +4 -4
- package/src/agGrid/weightedAverage.d.ts +1 -1
- package/src/agGrid/weightedAverage.js +3 -3
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -1
- package/src/components/AdaptableIconComponent/index.js +14 -17
- package/src/components/CheckBox/index.js +3 -3
- package/src/components/CodeBlock/index.js +1 -1
- package/src/components/Dashboard/Dashboard.js +8 -8
- package/src/components/Dashboard/DashboardToolbar.js +1 -1
- package/src/components/Datepicker/Caption.js +7 -7
- package/src/components/Datepicker/CaptionLabel.js +4 -4
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Datepicker/index.js +10 -10
- package/src/components/Dialog/index.js +9 -9
- package/src/components/Dialog/useIsOpen.js +1 -1
- package/src/components/Dropdown/index.js +6 -6
- package/src/components/DropdownButton/index.js +7 -7
- package/src/components/DropdownButton/renderItem.js +1 -1
- package/src/components/DropdownButton/useExpanded.js +4 -4
- package/src/components/EllipsisContainer/index.js +8 -8
- package/src/components/EmptyContent/index.js +1 -1
- package/src/components/ErrorBox/index.js +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +20 -7
- package/src/components/ExpressionEditor/EditorButton.js +1 -1
- package/src/components/ExpressionEditor/EditorContext.js +2 -2
- package/src/components/ExpressionEditor/EditorInput.js +2 -2
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +9 -9
- package/src/components/ExpressionEditor/NamedQueryContext.js +2 -2
- package/src/components/ExpressionEditor/index.js +8 -8
- package/src/components/FieldWrap/index.js +1 -1
- package/src/components/FileDroppable/index.js +4 -4
- package/src/components/FormLayout/index.js +4 -4
- package/src/components/HelpBlock/index.js +1 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/Input/index.js +1 -1
- package/src/components/List/GridList/index.js +1 -1
- package/src/components/List/ListGroup/index.js +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.js +2 -2
- package/src/components/Modal/Backdrop.js +5 -5
- package/src/components/Modal/index.js +5 -5
- package/src/components/NotifyResize/index.js +1 -1
- package/src/components/OverlayTrigger/Overlay.js +15 -15
- package/src/components/OverlayTrigger/getOverlayStyle.js +1 -1
- package/src/components/OverlayTrigger/index.js +24 -24
- package/src/components/OverlayTrigger/useAgGridClassName.js +2 -2
- package/src/components/Panel/index.js +3 -3
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/ProgressIndicator/ProgressIndicator.js +5 -5
- package/src/components/Radio/index.js +3 -3
- package/src/components/ResizeObserver/index.js +10 -10
- package/src/components/SelectableList/index.js +4 -4
- package/src/components/SimpleButton/index.js +3 -3
- package/src/components/StylePreview.js +1 -1
- package/src/components/Table/index.js +1 -1
- package/src/components/Tabs/index.js +6 -7
- package/src/components/Tag/Tag.js +1 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/Textarea/index.js +1 -1
- package/src/components/ToggleButton/index.js +1 -1
- package/src/components/WindowModal/WindowModal.js +4 -4
- package/src/components/WindowModal/useStacking.js +1 -1
- package/src/components/WizardPanel/index.js +1 -1
- package/src/components/icons/DefaultIcon.js +2 -2
- package/src/components/icons/index.js +1 -1
- package/src/components/utils/batchUpdate.js +1 -1
- package/src/components/utils/useAutoFocus.js +2 -2
- package/src/components/utils/useContainerScrollObserver/index.js +7 -7
- package/src/components/utils/useDraggable.js +5 -5
- package/src/components/utils/useLatest.js +2 -2
- package/src/components/utils/usePrevious.js +2 -2
- package/src/components/utils/usePropState.js +1 -1
- package/src/components/utils/useProperty.js +2 -2
- package/src/components/utils/useRerender.js +2 -2
- package/src/components/utils/useSelectionRange.js +3 -3
- package/src/components/utils/uuid.js +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +18 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/index.js +1 -1
- package/src/types.d.ts +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/src/Api/InternalApi.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ import { AdaptableForm } from '../PredefinedConfig/Common/AdaptableForm';
|
|
|
31
31
|
import { AlertButtonForm } from '../PredefinedConfig/AlertState';
|
|
32
32
|
import { AdaptableFrameworkComponent } from '../AdaptableOptions/AdaptableFrameworkComponent';
|
|
33
33
|
import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelService';
|
|
34
|
-
import { RowNode } from '@ag-grid-community/
|
|
34
|
+
import { RowNode } from '@ag-grid-community/core';
|
|
35
35
|
import { IModuleCollection } from '../Strategy/Interface/IModule';
|
|
36
36
|
import { AdaptableObjectTag } from '../PredefinedConfig/Common/AdaptableObject';
|
|
37
37
|
import { IRowEditService } from '../Utilities/Services/Interface/IRowEditService';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RowNode } from '@ag-grid-community/
|
|
1
|
+
import { RowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { InitialGroupOrderComparatorParams } from '@ag-grid-community/core/dist/cjs/es5/entities/iCallbackParams';
|
|
3
3
|
/**
|
|
4
4
|
* Standard comparer function used to evaluate custom sorts, returns -1, 0, 1 as required
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdaptableScope } from './AdaptableScope';
|
|
2
2
|
import { AdaptableColumn, AdaptableColumnDataType } from './AdaptableColumn';
|
|
3
3
|
import { AdaptableApi, AdaptableIcon, ColumnFilter } from '../../types';
|
|
4
|
-
import { RowNode } from '@ag-grid-community/
|
|
4
|
+
import { RowNode } from '@ag-grid-community/core';
|
|
5
5
|
/**
|
|
6
6
|
* Predicate object used by AdapTableQL - essentially a boolean function
|
|
7
7
|
*/
|
|
@@ -34,7 +34,7 @@ exports.SystemPredicateDefs = [
|
|
|
34
34
|
}
|
|
35
35
|
if (column.dataType === 'Date') {
|
|
36
36
|
return inputs.some((input) => {
|
|
37
|
-
return isSameDay_1.default(input, value);
|
|
37
|
+
return (0, isSameDay_1.default)(input, value);
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
if (column.dataType === 'Number') {
|
|
@@ -61,7 +61,7 @@ exports.SystemPredicateDefs = [
|
|
|
61
61
|
}
|
|
62
62
|
if (column.dataType === 'Date') {
|
|
63
63
|
return inputs.every((input) => {
|
|
64
|
-
return !isSameDay_1.default(input, value);
|
|
64
|
+
return !(0, isSameDay_1.default)(input, value);
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
if (column.dataType === 'Number') {
|
|
@@ -344,7 +344,7 @@ exports.SystemPredicateDefs = [
|
|
|
344
344
|
icon: { name: 'calendar' },
|
|
345
345
|
columnScope: { DataTypes: ['Date'] },
|
|
346
346
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
347
|
-
handler: ({ value }) => isToday_1.default(DateHelper_1.parseDateValue(value)),
|
|
347
|
+
handler: ({ value }) => (0, isToday_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
id: 'Yesterday',
|
|
@@ -352,7 +352,7 @@ exports.SystemPredicateDefs = [
|
|
|
352
352
|
icon: { name: 'calendar' },
|
|
353
353
|
columnScope: { DataTypes: ['Date'] },
|
|
354
354
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
355
|
-
handler: ({ value }) => isYesterday_1.default(DateHelper_1.parseDateValue(value)),
|
|
355
|
+
handler: ({ value }) => (0, isYesterday_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
358
|
id: 'Tomorrow',
|
|
@@ -360,7 +360,7 @@ exports.SystemPredicateDefs = [
|
|
|
360
360
|
icon: { name: 'calendar' },
|
|
361
361
|
columnScope: { DataTypes: ['Date'] },
|
|
362
362
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
363
|
-
handler: ({ value }) => isTomorrow_1.default(DateHelper_1.parseDateValue(value)),
|
|
363
|
+
handler: ({ value }) => (0, isTomorrow_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
366
|
id: 'ThisWeek',
|
|
@@ -368,7 +368,7 @@ exports.SystemPredicateDefs = [
|
|
|
368
368
|
icon: { name: 'calendar' },
|
|
369
369
|
columnScope: { DataTypes: ['Date'] },
|
|
370
370
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
371
|
-
handler: ({ value }) => isThisWeek_1.default(DateHelper_1.parseDateValue(value)),
|
|
371
|
+
handler: ({ value }) => (0, isThisWeek_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
id: 'ThisMonth',
|
|
@@ -376,7 +376,7 @@ exports.SystemPredicateDefs = [
|
|
|
376
376
|
icon: { name: 'calendar' },
|
|
377
377
|
columnScope: { DataTypes: ['Date'] },
|
|
378
378
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
379
|
-
handler: ({ value }) => isThisMonth_1.default(DateHelper_1.parseDateValue(value)),
|
|
379
|
+
handler: ({ value }) => (0, isThisMonth_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
380
380
|
},
|
|
381
381
|
{
|
|
382
382
|
id: 'ThisQuarter',
|
|
@@ -384,7 +384,7 @@ exports.SystemPredicateDefs = [
|
|
|
384
384
|
icon: { name: 'calendar' },
|
|
385
385
|
columnScope: { DataTypes: ['Date'] },
|
|
386
386
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
387
|
-
handler: ({ value }) => isThisQuarter_1.default(DateHelper_1.parseDateValue(value)),
|
|
387
|
+
handler: ({ value }) => (0, isThisQuarter_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
388
388
|
},
|
|
389
389
|
{
|
|
390
390
|
id: 'ThisYear',
|
|
@@ -392,7 +392,7 @@ exports.SystemPredicateDefs = [
|
|
|
392
392
|
icon: { name: 'calendar' },
|
|
393
393
|
columnScope: { DataTypes: ['Date'] },
|
|
394
394
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
395
|
-
handler: ({ value }) => isThisYear_1.default(DateHelper_1.parseDateValue(value)),
|
|
395
|
+
handler: ({ value }) => (0, isThisYear_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
398
|
id: 'InPast',
|
|
@@ -400,7 +400,7 @@ exports.SystemPredicateDefs = [
|
|
|
400
400
|
icon: { name: 'calendar' },
|
|
401
401
|
columnScope: { DataTypes: ['Date'] },
|
|
402
402
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
403
|
-
handler: ({ value }) => isPast_1.default(DateHelper_1.parseDateValue(value)),
|
|
403
|
+
handler: ({ value }) => (0, isPast_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
id: 'InFuture',
|
|
@@ -408,7 +408,7 @@ exports.SystemPredicateDefs = [
|
|
|
408
408
|
icon: { name: 'calendar' },
|
|
409
409
|
columnScope: { DataTypes: ['Date'] },
|
|
410
410
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
411
|
-
handler: ({ value }) => isFuture_1.default(DateHelper_1.parseDateValue(value)),
|
|
411
|
+
handler: ({ value }) => (0, isFuture_1.default)((0, DateHelper_1.parseDateValue)(value)),
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
414
|
id: 'After',
|
|
@@ -417,7 +417,7 @@ exports.SystemPredicateDefs = [
|
|
|
417
417
|
columnScope: { DataTypes: ['Date'] },
|
|
418
418
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
419
419
|
inputs: [{ type: 'date' }],
|
|
420
|
-
handler: ({ value, inputs }) => isAfter_1.default(DateHelper_1.parseDateValue(value), DateHelper_1.parseDateValue(inputs[0])),
|
|
420
|
+
handler: ({ value, inputs }) => (0, isAfter_1.default)((0, DateHelper_1.parseDateValue)(value), (0, DateHelper_1.parseDateValue)(inputs[0])),
|
|
421
421
|
toString: ({ inputs }) => `> ${inputs[0]}`,
|
|
422
422
|
},
|
|
423
423
|
{
|
|
@@ -427,7 +427,7 @@ exports.SystemPredicateDefs = [
|
|
|
427
427
|
columnScope: { DataTypes: ['Date'] },
|
|
428
428
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
429
429
|
inputs: [{ type: 'date' }],
|
|
430
|
-
handler: ({ value, inputs }) => isBefore_1.default(DateHelper_1.parseDateValue(value), DateHelper_1.parseDateValue(inputs[0])),
|
|
430
|
+
handler: ({ value, inputs }) => (0, isBefore_1.default)((0, DateHelper_1.parseDateValue)(value), (0, DateHelper_1.parseDateValue)(inputs[0])),
|
|
431
431
|
toString: ({ inputs }) => `< ${inputs[0]}`,
|
|
432
432
|
},
|
|
433
433
|
{
|
|
@@ -437,7 +437,7 @@ exports.SystemPredicateDefs = [
|
|
|
437
437
|
columnScope: { DataTypes: ['Date'] },
|
|
438
438
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
439
439
|
inputs: [{ type: 'date' }],
|
|
440
|
-
handler: ({ value, inputs }) => isSameDay_1.default(DateHelper_1.parseDateValue(value), DateHelper_1.parseDateValue(inputs[0])),
|
|
440
|
+
handler: ({ value, inputs }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), (0, DateHelper_1.parseDateValue)(inputs[0])),
|
|
441
441
|
toString: ({ inputs }) => `= ${inputs[0]}`,
|
|
442
442
|
},
|
|
443
443
|
{
|
|
@@ -447,7 +447,7 @@ exports.SystemPredicateDefs = [
|
|
|
447
447
|
columnScope: { DataTypes: ['Date'] },
|
|
448
448
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
449
449
|
inputs: [{ type: 'date' }],
|
|
450
|
-
handler: ({ value, inputs }) => !isSameDay_1.default(DateHelper_1.parseDateValue(value), DateHelper_1.parseDateValue(inputs[0])),
|
|
450
|
+
handler: ({ value, inputs }) => !(0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), (0, DateHelper_1.parseDateValue)(inputs[0])),
|
|
451
451
|
toString: ({ inputs }) => `!= ${inputs[0]}`,
|
|
452
452
|
},
|
|
453
453
|
{
|
|
@@ -456,7 +456,7 @@ exports.SystemPredicateDefs = [
|
|
|
456
456
|
icon: { name: 'calendar' },
|
|
457
457
|
columnScope: { DataTypes: ['Date'] },
|
|
458
458
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
459
|
-
handler: ({ value, api }) => isSameDay_1.default(DateHelper_1.parseDateValue(value), CalendarHelper_1.default.getNextWorkingDay()),
|
|
459
|
+
handler: ({ value, api }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), CalendarHelper_1.default.getNextWorkingDay()),
|
|
460
460
|
},
|
|
461
461
|
{
|
|
462
462
|
id: 'LastWorkDay',
|
|
@@ -464,7 +464,7 @@ exports.SystemPredicateDefs = [
|
|
|
464
464
|
icon: { name: 'calendar' },
|
|
465
465
|
columnScope: { DataTypes: ['Date'] },
|
|
466
466
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
467
|
-
handler: ({ value, api }) => isSameDay_1.default(DateHelper_1.parseDateValue(value), CalendarHelper_1.default.getPreviousWorkingDay()),
|
|
467
|
+
handler: ({ value, api }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), CalendarHelper_1.default.getPreviousWorkingDay()),
|
|
468
468
|
},
|
|
469
469
|
{
|
|
470
470
|
id: 'InRange',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RowNode } from '@ag-grid-community/
|
|
1
|
+
import { RowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableColumn } from './AdaptableColumn';
|
|
3
3
|
/**
|
|
4
4
|
* Defines a Cell Edit - includes full details of old and new values, the column and the enclosing Row
|
|
@@ -4,7 +4,7 @@ import { AdaptableColumn } from './AdaptableColumn';
|
|
|
4
4
|
import { AdaptableModule } from './Types';
|
|
5
5
|
import { SelectedCellInfo } from '../Selection/SelectedCellInfo';
|
|
6
6
|
import { SelectedRowInfo } from '../Selection/SelectedRowInfo';
|
|
7
|
-
import { Column, RowNode } from '@ag-grid-community/
|
|
7
|
+
import { Column, RowNode } from '@ag-grid-community/core';
|
|
8
8
|
import { AdaptableIcon, BaseContext } from '../../types';
|
|
9
9
|
/**
|
|
10
10
|
* Menu item used by Adaptable in both Column and Context Menus
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RowNode } from '@ag-grid-community/
|
|
1
|
+
import { RowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableColumn } from '../Common/AdaptableColumn';
|
|
3
3
|
/**
|
|
4
4
|
* Defines a Cell in Adaptable - every cell is an intersection of a Column Id and a Primary Key Value
|
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createUuid = void 0;
|
|
4
4
|
const uuid_1 = require("uuid");
|
|
5
5
|
// TODO: replace this redundancy with 'the createUuid()' from 'utils/uuid.ts'
|
|
6
|
-
const createUuid = () => uuid_1.v4();
|
|
6
|
+
const createUuid = () => (0, uuid_1.v4)();
|
|
7
7
|
exports.createUuid = createUuid;
|
|
@@ -89,10 +89,10 @@ const AlertReducer = (state = initialState, action) => {
|
|
|
89
89
|
return Object.assign(Object.assign({}, state), { AlertDefinitions: state.AlertDefinitions.filter((abObject) => abObject.Uuid !== actionAlertDefinition.Uuid) });
|
|
90
90
|
}
|
|
91
91
|
case exports.ALERT_DEFINITION_SUSPEND: {
|
|
92
|
-
return Object.assign(Object.assign({}, state), { AlertDefinitions: utils_1.changeIsSuspendInList(action.alertDefinition, state.AlertDefinitions, true) });
|
|
92
|
+
return Object.assign(Object.assign({}, state), { AlertDefinitions: (0, utils_1.changeIsSuspendInList)(action.alertDefinition, state.AlertDefinitions, true) });
|
|
93
93
|
}
|
|
94
94
|
case exports.ALERT_DEFINITION_UNSUSPEND: {
|
|
95
|
-
return Object.assign(Object.assign({}, state), { AlertDefinitions: utils_1.changeIsSuspendInList(action.alertDefinition, state.AlertDefinitions, false) });
|
|
95
|
+
return Object.assign(Object.assign({}, state), { AlertDefinitions: (0, utils_1.changeIsSuspendInList)(action.alertDefinition, state.AlertDefinitions, false) });
|
|
96
96
|
}
|
|
97
97
|
case exports.ALERT_CLEAR_FLASHING_CELLS: {
|
|
98
98
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartModel } from '@ag-grid-community/
|
|
1
|
+
import { ChartModel } from '@ag-grid-community/core';
|
|
2
2
|
import * as Redux from 'redux';
|
|
3
3
|
import { AdaptableState } from '../../../types';
|
|
4
4
|
import { ChartingState } from '../../PredefinedConfig/ChartingState';
|
|
@@ -83,10 +83,10 @@ const ConditionalStyleReducer = (state = initialState, action) => {
|
|
|
83
83
|
return Object.assign(Object.assign({}, state), { ConditionalStyles: state.ConditionalStyles.filter((abObject) => abObject.Uuid !== actionConditionalStyle.Uuid) });
|
|
84
84
|
}
|
|
85
85
|
case exports.CONDITIONAL_STYLE_SUSPEND: {
|
|
86
|
-
return Object.assign(Object.assign({}, state), { ConditionalStyles: utils_1.changeIsSuspendInList(action.conditionalStyle, state.ConditionalStyles, true) });
|
|
86
|
+
return Object.assign(Object.assign({}, state), { ConditionalStyles: (0, utils_1.changeIsSuspendInList)(action.conditionalStyle, state.ConditionalStyles, true) });
|
|
87
87
|
}
|
|
88
88
|
case exports.CONDITIONAL_STYLE_UNSUSPEND: {
|
|
89
|
-
return Object.assign(Object.assign({}, state), { ConditionalStyles: utils_1.changeIsSuspendInList(action.conditionalStyle, state.ConditionalStyles, false) });
|
|
89
|
+
return Object.assign(Object.assign({}, state), { ConditionalStyles: (0, utils_1.changeIsSuspendInList)(action.conditionalStyle, state.ConditionalStyles, false) });
|
|
90
90
|
}
|
|
91
91
|
default:
|
|
92
92
|
return state;
|
|
@@ -81,10 +81,10 @@ const CustomSortReducer = (state = initialState, action) => {
|
|
|
81
81
|
return Object.assign(Object.assign({}, state), { CustomSorts: state.CustomSorts.filter((abObject) => abObject.Uuid !== actionCustomSort.Uuid) });
|
|
82
82
|
}
|
|
83
83
|
case exports.CUSTOM_SORT_SUSPEND: {
|
|
84
|
-
return Object.assign(Object.assign({}, state), { CustomSorts: utils_1.changeIsSuspendInList(action.customSort, state.CustomSorts, true) });
|
|
84
|
+
return Object.assign(Object.assign({}, state), { CustomSorts: (0, utils_1.changeIsSuspendInList)(action.customSort, state.CustomSorts, true) });
|
|
85
85
|
}
|
|
86
86
|
case exports.CUSTOM_SORT_UNSUSPEND: {
|
|
87
|
-
return Object.assign(Object.assign({}, state), { CustomSorts: utils_1.changeIsSuspendInList(action.customSort, state.CustomSorts, false) });
|
|
87
|
+
return Object.assign(Object.assign({}, state), { CustomSorts: (0, utils_1.changeIsSuspendInList)(action.customSort, state.CustomSorts, false) });
|
|
88
88
|
}
|
|
89
89
|
default:
|
|
90
90
|
return state;
|
|
@@ -92,10 +92,10 @@ const FlashingCellReducer = (state = initialState, action) => {
|
|
|
92
92
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: state.FlashingCellDefinitions.filter((abObject) => abObject.Uuid !== actionFlashingCellDefinition.Uuid) });
|
|
93
93
|
}
|
|
94
94
|
case exports.FLASHING_CELL_DEFINITION_SUSPEND: {
|
|
95
|
-
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: utils_1.changeIsSuspendInList(action.flashingCellDefinition, state.FlashingCellDefinitions, true) });
|
|
95
|
+
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: (0, utils_1.changeIsSuspendInList)(action.flashingCellDefinition, state.FlashingCellDefinitions, true) });
|
|
96
96
|
}
|
|
97
97
|
case exports.FLASHING_CELL_DEFINITION_UNSUSPEND: {
|
|
98
|
-
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: utils_1.changeIsSuspendInList(action.flashingCellDefinition, state.FlashingCellDefinitions, false) });
|
|
98
|
+
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: (0, utils_1.changeIsSuspendInList)(action.flashingCellDefinition, state.FlashingCellDefinitions, false) });
|
|
99
99
|
}
|
|
100
100
|
default:
|
|
101
101
|
return state;
|
|
@@ -80,10 +80,10 @@ const FormatColumnReducer = (state = initialState, action) => {
|
|
|
80
80
|
return Object.assign(Object.assign({}, state), { FormatColumns: state.FormatColumns.filter((abObject) => abObject.Uuid !== actionFormatColumn.Uuid) });
|
|
81
81
|
}
|
|
82
82
|
case exports.FORMAT_COLUMN_SUSPEND: {
|
|
83
|
-
return Object.assign(Object.assign({}, state), { FormatColumns: utils_1.changeIsSuspendInList(action.formatColumn, state.FormatColumns, true) });
|
|
83
|
+
return Object.assign(Object.assign({}, state), { FormatColumns: (0, utils_1.changeIsSuspendInList)(action.formatColumn, state.FormatColumns, true) });
|
|
84
84
|
}
|
|
85
85
|
case exports.FORMAT_COLUMN_UNSUSPEND: {
|
|
86
|
-
return Object.assign(Object.assign({}, state), { FormatColumns: utils_1.changeIsSuspendInList(action.formatColumn, state.FormatColumns, false) });
|
|
86
|
+
return Object.assign(Object.assign({}, state), { FormatColumns: (0, utils_1.changeIsSuspendInList)(action.formatColumn, state.FormatColumns, false) });
|
|
87
87
|
}
|
|
88
88
|
default:
|
|
89
89
|
return state;
|
|
@@ -7,7 +7,7 @@ import { AdaptableMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
|
7
7
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
8
8
|
import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
|
|
9
9
|
import { Layout, CellSummmary, ColumnFilter } from '../../types';
|
|
10
|
-
import { RowNode } from '@ag-grid-community/
|
|
10
|
+
import { RowNode } from '@ag-grid-community/core';
|
|
11
11
|
/**
|
|
12
12
|
* @ReduxAction Columns have been set in the Grid
|
|
13
13
|
*/
|
|
@@ -93,10 +93,10 @@ const PlusMinusReducer = (state = initialState, action) => {
|
|
|
93
93
|
return Object.assign(Object.assign({}, state), { PlusMinusNudges: state.PlusMinusNudges.filter((abObject) => abObject.Uuid !== actionPlusMinusNudge.Uuid) });
|
|
94
94
|
}
|
|
95
95
|
case exports.PLUS_MINUS_RULE_SUSPEND: {
|
|
96
|
-
return Object.assign(Object.assign({}, state), { PlusMinusNudges: utils_1.changeIsSuspendInList(action.plusMinusNudge, state.PlusMinusNudges, true) });
|
|
96
|
+
return Object.assign(Object.assign({}, state), { PlusMinusNudges: (0, utils_1.changeIsSuspendInList)(action.plusMinusNudge, state.PlusMinusNudges, true) });
|
|
97
97
|
}
|
|
98
98
|
case exports.PLUS_MINUS_RULE_UNSUSPEND: {
|
|
99
|
-
return Object.assign(Object.assign({}, state), { PlusMinusNudges: utils_1.changeIsSuspendInList(action.plusMinusNudge, state.PlusMinusNudges, false) });
|
|
99
|
+
return Object.assign(Object.assign({}, state), { PlusMinusNudges: (0, utils_1.changeIsSuspendInList)(action.plusMinusNudge, state.PlusMinusNudges, false) });
|
|
100
100
|
}
|
|
101
101
|
default:
|
|
102
102
|
return state;
|
|
@@ -275,10 +275,10 @@ const ScheduleReducer = (state = initialState, action) => {
|
|
|
275
275
|
return Object.assign(Object.assign({}, state), { Glue42Schedules: state.Glue42Schedules.filter((abObject) => abObject.Uuid !== actionSchedule.Uuid) });
|
|
276
276
|
}
|
|
277
277
|
case exports.GLUE42_SCHEDULE_SUSPEND: {
|
|
278
|
-
return Object.assign(Object.assign({}, state), { Glue42Schedules: utils_1.changeIsSuspendInList(action.glue42Schedule, state.Glue42Schedules, true) });
|
|
278
|
+
return Object.assign(Object.assign({}, state), { Glue42Schedules: (0, utils_1.changeIsSuspendInList)(action.glue42Schedule, state.Glue42Schedules, true) });
|
|
279
279
|
}
|
|
280
280
|
case exports.GLUE42_SCHEDULE_UNSUSPEND: {
|
|
281
|
-
return Object.assign(Object.assign({}, state), { Glue42Schedules: utils_1.changeIsSuspendInList(action.glue42Schedule, state.Glue42Schedules, false) });
|
|
281
|
+
return Object.assign(Object.assign({}, state), { Glue42Schedules: (0, utils_1.changeIsSuspendInList)(action.glue42Schedule, state.Glue42Schedules, false) });
|
|
282
282
|
}
|
|
283
283
|
case exports.OPENFIN_SCHEDULE_ADD: {
|
|
284
284
|
const actionSchedule = action.openFinSchedule;
|
|
@@ -296,10 +296,10 @@ const ScheduleReducer = (state = initialState, action) => {
|
|
|
296
296
|
return Object.assign(Object.assign({}, state), { OpenFinSchedules: state.OpenFinSchedules.filter((abObject) => abObject.Uuid !== actionSchedule.Uuid) });
|
|
297
297
|
}
|
|
298
298
|
case exports.OPENFIN_SCHEDULE_SUSPEND: {
|
|
299
|
-
return Object.assign(Object.assign({}, state), { OpenFinSchedules: utils_1.changeIsSuspendInList(action.openFinSchedule, state.OpenFinSchedules, true) });
|
|
299
|
+
return Object.assign(Object.assign({}, state), { OpenFinSchedules: (0, utils_1.changeIsSuspendInList)(action.openFinSchedule, state.OpenFinSchedules, true) });
|
|
300
300
|
}
|
|
301
301
|
case exports.OPENFIN_SCHEDULE_UNSUSPEND: {
|
|
302
|
-
return Object.assign(Object.assign({}, state), { OpenFinSchedules: utils_1.changeIsSuspendInList(action.openFinSchedule, state.OpenFinSchedules, false) });
|
|
302
|
+
return Object.assign(Object.assign({}, state), { OpenFinSchedules: (0, utils_1.changeIsSuspendInList)(action.openFinSchedule, state.OpenFinSchedules, false) });
|
|
303
303
|
}
|
|
304
304
|
case exports.REPORT_SCHEDULE_ADD: {
|
|
305
305
|
const actionSchedule = action.reportSchedule;
|
|
@@ -317,10 +317,10 @@ const ScheduleReducer = (state = initialState, action) => {
|
|
|
317
317
|
return Object.assign(Object.assign({}, state), { ReportSchedules: state.ReportSchedules.filter((abObject) => abObject.Uuid !== actionSchedule.Uuid) });
|
|
318
318
|
}
|
|
319
319
|
case exports.REPORT_SCHEDULE_SUSPEND: {
|
|
320
|
-
return Object.assign(Object.assign({}, state), { ReportSchedules: utils_1.changeIsSuspendInList(action.reportSchedule, state.ReportSchedules, true) });
|
|
320
|
+
return Object.assign(Object.assign({}, state), { ReportSchedules: (0, utils_1.changeIsSuspendInList)(action.reportSchedule, state.ReportSchedules, true) });
|
|
321
321
|
}
|
|
322
322
|
case exports.REPORT_SCHEDULE_UNSUSPEND: {
|
|
323
|
-
return Object.assign(Object.assign({}, state), { ReportSchedules: utils_1.changeIsSuspendInList(action.reportSchedule, state.ReportSchedules, false) });
|
|
323
|
+
return Object.assign(Object.assign({}, state), { ReportSchedules: (0, utils_1.changeIsSuspendInList)(action.reportSchedule, state.ReportSchedules, false) });
|
|
324
324
|
}
|
|
325
325
|
case exports.REMINDER_SCHEDULE_ADD: {
|
|
326
326
|
const actionSchedule = action.reminderSchedule;
|
|
@@ -338,10 +338,10 @@ const ScheduleReducer = (state = initialState, action) => {
|
|
|
338
338
|
return Object.assign(Object.assign({}, state), { Reminders: state.Reminders.filter((abObject) => abObject.Uuid !== actionSchedule.Uuid) });
|
|
339
339
|
}
|
|
340
340
|
case exports.REMINDER_SCHEDULE_SUSPEND: {
|
|
341
|
-
return Object.assign(Object.assign({}, state), { Reminders: utils_1.changeIsSuspendInList(action.reminderSchedule, state.Reminders, true) });
|
|
341
|
+
return Object.assign(Object.assign({}, state), { Reminders: (0, utils_1.changeIsSuspendInList)(action.reminderSchedule, state.Reminders, true) });
|
|
342
342
|
}
|
|
343
343
|
case exports.REMINDER_SCHEDULE_UNSUSPEND: {
|
|
344
|
-
return Object.assign(Object.assign({}, state), { Reminders: utils_1.changeIsSuspendInList(action.reminderSchedule, state.Reminders, false) });
|
|
344
|
+
return Object.assign(Object.assign({}, state), { Reminders: (0, utils_1.changeIsSuspendInList)(action.reminderSchedule, state.Reminders, false) });
|
|
345
345
|
}
|
|
346
346
|
case exports.IPUSHPULL_SCHEDULE_ADD: {
|
|
347
347
|
const actionSchedule = action
|
|
@@ -362,10 +362,10 @@ const ScheduleReducer = (state = initialState, action) => {
|
|
|
362
362
|
return Object.assign(Object.assign({}, state), { IPushPullSchedules: (state.IPushPullSchedules || []).filter((abObject) => abObject.Uuid !== actionSchedule.Uuid) });
|
|
363
363
|
}
|
|
364
364
|
case exports.IPUSHPULL_SCHEDULE_SUSPEND: {
|
|
365
|
-
return Object.assign(Object.assign({}, state), { IPushPullSchedules: utils_1.changeIsSuspendInList(action.iPushPullSchedule, state.IPushPullSchedules, true) });
|
|
365
|
+
return Object.assign(Object.assign({}, state), { IPushPullSchedules: (0, utils_1.changeIsSuspendInList)(action.iPushPullSchedule, state.IPushPullSchedules, true) });
|
|
366
366
|
}
|
|
367
367
|
case exports.IPUSHPULL_SCHEDULE_UNSUSPEND: {
|
|
368
|
-
return Object.assign(Object.assign({}, state), { IPushPullSchedules: utils_1.changeIsSuspendInList(action.iPushPullSchedule, state.IPushPullSchedules, false) });
|
|
368
|
+
return Object.assign(Object.assign({}, state), { IPushPullSchedules: (0, utils_1.changeIsSuspendInList)(action.iPushPullSchedule, state.IPushPullSchedules, false) });
|
|
369
369
|
}
|
|
370
370
|
default:
|
|
371
371
|
return state;
|
|
@@ -81,10 +81,10 @@ const ShortcutReducer = (state = initialState, action) => {
|
|
|
81
81
|
return Object.assign(Object.assign({}, state), { Shortcuts: state.Shortcuts.filter((abObject) => abObject.Uuid !== actionShortcut.Uuid) });
|
|
82
82
|
}
|
|
83
83
|
case exports.SHORTCUT_SUSPEND: {
|
|
84
|
-
return Object.assign(Object.assign({}, state), { Shortcuts: utils_1.changeIsSuspendInList(action.shortcut, state.Shortcuts, true) });
|
|
84
|
+
return Object.assign(Object.assign({}, state), { Shortcuts: (0, utils_1.changeIsSuspendInList)(action.shortcut, state.Shortcuts, true) });
|
|
85
85
|
}
|
|
86
86
|
case exports.SHORTCUT_UNSUSPEND: {
|
|
87
|
-
return Object.assign(Object.assign({}, state), { Shortcuts: utils_1.changeIsSuspendInList(action.shortcut, state.Shortcuts, false) });
|
|
87
|
+
return Object.assign(Object.assign({}, state), { Shortcuts: (0, utils_1.changeIsSuspendInList)(action.shortcut, state.Shortcuts, false) });
|
|
88
88
|
}
|
|
89
89
|
default:
|
|
90
90
|
return state;
|
|
@@ -375,7 +375,7 @@ const SystemReducer = (state = initialState, action) => {
|
|
|
375
375
|
if (abObject.Uuid === adaptableAlert.Uuid) {
|
|
376
376
|
// AdaptableAlerts are still linked to the live AlertDefinitions, so we have to decouple them
|
|
377
377
|
const newAbObject = Object.assign({}, abObject);
|
|
378
|
-
newAbObject.alertDefinition = Helper_1.cloneObject(abObject.alertDefinition);
|
|
378
|
+
newAbObject.alertDefinition = (0, Helper_1.cloneObject)(abObject.alertDefinition);
|
|
379
379
|
delete newAbObject.alertDefinition.AlertProperties.HighlightCell;
|
|
380
380
|
return newAbObject;
|
|
381
381
|
}
|
|
@@ -388,7 +388,7 @@ const SystemReducer = (state = initialState, action) => {
|
|
|
388
388
|
if (abObject.Uuid === adaptableAlert.Uuid) {
|
|
389
389
|
// AdaptableAlerts are still linked to the live AlertDefinitions, so we have to decouple them
|
|
390
390
|
const newAbObject = Object.assign({}, abObject);
|
|
391
|
-
newAbObject.alertDefinition = Helper_1.cloneObject(abObject.alertDefinition);
|
|
391
|
+
newAbObject.alertDefinition = (0, Helper_1.cloneObject)(abObject.alertDefinition);
|
|
392
392
|
delete newAbObject.alertDefinition.AlertProperties.HighlightRow;
|
|
393
393
|
return newAbObject;
|
|
394
394
|
}
|
|
@@ -40,7 +40,7 @@ class AdaptableReduxLocalStorageEngine {
|
|
|
40
40
|
this.persistState = config.persistState;
|
|
41
41
|
this.save =
|
|
42
42
|
config.debounceStateDelay > 0
|
|
43
|
-
? debounce_1.default(this.save, config.debounceStateDelay, {
|
|
43
|
+
? (0, debounce_1.default)(this.save, config.debounceStateDelay, {
|
|
44
44
|
maxWait: 1000,
|
|
45
45
|
})
|
|
46
46
|
: this.save;
|
|
@@ -57,25 +57,25 @@ class AdaptableReduxLocalStorageEngine {
|
|
|
57
57
|
if (typeof predefinedConfig === 'string' &&
|
|
58
58
|
StringExtensions_1.StringExtensions.IsNotNullOrEmpty(predefinedConfig)) {
|
|
59
59
|
// we have config in a file so lets merge it with the other state
|
|
60
|
-
return isomorphic_fetch_1.default(predefinedConfig)
|
|
60
|
+
return (0, isomorphic_fetch_1.default)(predefinedConfig)
|
|
61
61
|
.then(checkStatus)
|
|
62
62
|
.then((response) => response.json())
|
|
63
63
|
.then((parsedPredefinedState) => {
|
|
64
|
-
return AdaptableReduxMerger_1.MergeStateFunction(parsedPredefinedState, parsedJsonState);
|
|
64
|
+
return (0, AdaptableReduxMerger_1.MergeStateFunction)(parsedPredefinedState, parsedJsonState);
|
|
65
65
|
})
|
|
66
|
-
.catch((err) => LoggingHelper_1.LogAdaptableError(err));
|
|
66
|
+
.catch((err) => (0, LoggingHelper_1.LogAdaptableError)(err));
|
|
67
67
|
}
|
|
68
68
|
if (predefinedConfig != null) {
|
|
69
69
|
// we have config as an object so need to merge that
|
|
70
70
|
return Promise.resolve(predefinedConfig)
|
|
71
71
|
.then((parsedPredefinedState) => {
|
|
72
|
-
return AdaptableReduxMerger_1.MergeStateFunction(parsedPredefinedState, parsedJsonState);
|
|
72
|
+
return (0, AdaptableReduxMerger_1.MergeStateFunction)(parsedPredefinedState, parsedJsonState);
|
|
73
73
|
})
|
|
74
|
-
.catch((err) => LoggingHelper_1.LogAdaptableError(err));
|
|
74
|
+
.catch((err) => (0, LoggingHelper_1.LogAdaptableError)(err));
|
|
75
75
|
}
|
|
76
76
|
// no predefined config so nothing to merge
|
|
77
77
|
return new Promise((resolve) => {
|
|
78
|
-
resolve(!!parsedJsonState ? AdaptableReduxMerger_1.AddStateSource(parsedJsonState, 'User') : {});
|
|
78
|
+
resolve(!!parsedJsonState ? (0, AdaptableReduxMerger_1.AddStateSource)(parsedJsonState, 'User') : {});
|
|
79
79
|
}).catch(rejectWithMessage);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
@@ -95,7 +95,7 @@ class AdaptableReduxLocalStorageEngine {
|
|
|
95
95
|
}
|
|
96
96
|
const promise = (_a = (this.persistState || persistState)(result, config)) === null || _a === void 0 ? void 0 : _a.catch(rejectWithMessage);
|
|
97
97
|
if (!(promise instanceof Promise)) {
|
|
98
|
-
LoggingHelper_1.ConsoleLogByMessageType('stateOptions.persistState should return a promise, it returned', 'Error', promise);
|
|
98
|
+
(0, LoggingHelper_1.ConsoleLogByMessageType)('stateOptions.persistState should return a promise, it returned', 'Error', promise);
|
|
99
99
|
}
|
|
100
100
|
return promise;
|
|
101
101
|
}
|
|
@@ -10,7 +10,7 @@ const isObject_1 = tslib_1.__importDefault(require("lodash/isObject"));
|
|
|
10
10
|
const isAdaptableObject_1 = require("../../Utilities/isAdaptableObject");
|
|
11
11
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
12
12
|
function customizer(objValue, srcValue) {
|
|
13
|
-
if (isArray_1.default(objValue)) {
|
|
13
|
+
if ((0, isArray_1.default)(objValue)) {
|
|
14
14
|
if (!Array.isArray(srcValue)) {
|
|
15
15
|
// TODO AFL: clarify if this is still relevant, after the config/options refactoring
|
|
16
16
|
/**
|
|
@@ -21,7 +21,7 @@ function customizer(objValue, srcValue) {
|
|
|
21
21
|
return srcValue;
|
|
22
22
|
}
|
|
23
23
|
const length = srcValue ? srcValue.length : null;
|
|
24
|
-
const result = mergeWith_1.default(objValue, srcValue, customizer);
|
|
24
|
+
const result = (0, mergeWith_1.default)(objValue, srcValue, customizer);
|
|
25
25
|
if (length != null) {
|
|
26
26
|
// when merging arrays, lodash result has the length of the
|
|
27
27
|
// longest array, but we don't want that to happen
|
|
@@ -35,7 +35,7 @@ function AddStateSource(stateObject = {}, source) {
|
|
|
35
35
|
const traverseStateObject = (object) => {
|
|
36
36
|
Object.values(object).forEach((value) => {
|
|
37
37
|
// add a Source only to AdaptableObjects which do NOT already have a source defined
|
|
38
|
-
if (isAdaptableObject_1.isAdaptableObject(value) && value.Source == null) {
|
|
38
|
+
if ((0, isAdaptableObject_1.isAdaptableObject)(value) && value.Source == null) {
|
|
39
39
|
value.Source = source;
|
|
40
40
|
}
|
|
41
41
|
if (value !== null && typeof value === 'object') {
|
|
@@ -53,7 +53,7 @@ function ProcessKeepUserDefinedRevision(configState, currentUserState) {
|
|
|
53
53
|
const stateValue = stateObject[key];
|
|
54
54
|
if (Array.isArray(configValue) && Array.isArray(stateValue)) {
|
|
55
55
|
const userDefinedItems = stateValue.filter((item) => {
|
|
56
|
-
return isAdaptableObject_1.isAdaptableObject(item) && item.Source !== 'Config';
|
|
56
|
+
return (0, isAdaptableObject_1.isAdaptableObject)(item) && item.Source !== 'Config';
|
|
57
57
|
});
|
|
58
58
|
configObject[key] = configValue.concat(userDefinedItems);
|
|
59
59
|
// we probably don't need to call traverseStateObject on the array as well,
|
|
@@ -87,7 +87,7 @@ function MergeStateFunction(oldState, newState) {
|
|
|
87
87
|
let state = newState;
|
|
88
88
|
if (!state || typeof state !== 'object') {
|
|
89
89
|
// in case loadState returns something different than an empty object
|
|
90
|
-
LoggingHelper_1.LogAdaptableWarning('State is something different that expected, expected object, received: ', state);
|
|
90
|
+
(0, LoggingHelper_1.LogAdaptableWarning)('State is something different that expected, expected object, received: ', state);
|
|
91
91
|
state = {};
|
|
92
92
|
}
|
|
93
93
|
// any Module in config that doesn't exist in state will be added
|
|
@@ -120,7 +120,7 @@ function MergeStateFunction(oldState, newState) {
|
|
|
120
120
|
exports.MergeStateFunction = MergeStateFunction;
|
|
121
121
|
// main merge function
|
|
122
122
|
function MergeState(oldState, newState) {
|
|
123
|
-
const result = extend_1.default({}, oldState);
|
|
123
|
+
const result = (0, extend_1.default)({}, oldState);
|
|
124
124
|
for (const key in newState) {
|
|
125
125
|
if (!newState.hasOwnProperty(key)) {
|
|
126
126
|
continue;
|
|
@@ -128,13 +128,13 @@ function MergeState(oldState, newState) {
|
|
|
128
128
|
const value = newState[key];
|
|
129
129
|
// Assign if we don't need to merge at all
|
|
130
130
|
if (!result.hasOwnProperty(key)) {
|
|
131
|
-
result[key] = isObject_1.default(value) && !Array.isArray(value) ? merge_1.default({}, value) : value;
|
|
131
|
+
result[key] = (0, isObject_1.default)(value) && !Array.isArray(value) ? (0, merge_1.default)({}, value) : value;
|
|
132
132
|
continue;
|
|
133
133
|
}
|
|
134
134
|
const oldValue = result[key];
|
|
135
|
-
if (isObject_1.default(value) && !Array.isArray(value)) {
|
|
135
|
+
if ((0, isObject_1.default)(value) && !Array.isArray(value)) {
|
|
136
136
|
// use both lodash functions so that we can merge from State onto Predefined Config where it exists but from the former where it doesnt.
|
|
137
|
-
result[key] = mergeWith_1.default({}, oldValue, value, customizer);
|
|
137
|
+
result[key] = (0, mergeWith_1.default)({}, oldValue, value, customizer);
|
|
138
138
|
}
|
|
139
139
|
else {
|
|
140
140
|
result[key] = value;
|