@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
|
@@ -21,7 +21,7 @@ function renderConditionalStyleRuleSummary(data) {
|
|
|
21
21
|
}
|
|
22
22
|
exports.renderConditionalStyleRuleSummary = renderConditionalStyleRuleSummary;
|
|
23
23
|
function ConditionalStyleRuleWizardSection(props) {
|
|
24
|
-
const { data, api, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
24
|
+
const { data, api, moduleInfo } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
25
25
|
return (React.createElement(React.Fragment, null,
|
|
26
26
|
React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: props.defaultPredicateId, predicateDefs: api.conditionalStyleApi.getCondStylePredicateDefsForScope(data.Scope), showAggregation: false, showObservable: false, showPredicate: !api.scopeApi.scopeIsAll(data.Scope), data: data, onChange: props.onChange, descriptions: {
|
|
27
27
|
selectPredicate: 'Select a Conditional Style Rule - to be applied when data changes',
|
|
@@ -7,7 +7,7 @@ const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
|
7
7
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
8
8
|
const DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE_1 = require("./DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE");
|
|
9
9
|
const renderConditionalStyleScopeSummary = (data) => {
|
|
10
|
-
return NewScopeComponent_1.renderScopeSummary(data.Scope, {
|
|
10
|
+
return (0, NewScopeComponent_1.renderScopeSummary)(data.Scope, {
|
|
11
11
|
scopeWholeRow: 'Matching rows will display the Conditionally Style',
|
|
12
12
|
scopeColumns: 'Cells in selected columns will display the Conditionally Style',
|
|
13
13
|
scopeDataTypes: 'Cells in columns of the selected data-types will display the Conditionally Style',
|
|
@@ -15,7 +15,7 @@ const renderConditionalStyleScopeSummary = (data) => {
|
|
|
15
15
|
};
|
|
16
16
|
exports.renderConditionalStyleScopeSummary = renderConditionalStyleScopeSummary;
|
|
17
17
|
function ConditionalStyleScopeWizardSection(props) {
|
|
18
|
-
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
18
|
+
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
19
19
|
return (React.createElement(React.Fragment, null,
|
|
20
20
|
React.createElement(NewScopeComponent_1.NewScopeComponent, { scope: data.Scope, descriptions: {
|
|
21
21
|
rowScope: 'Matching Rows will have the Conditional Style applied',
|
|
@@ -13,7 +13,7 @@ const renderConditionalStyleSettingsSummary = (data) => (React.createElement(reb
|
|
|
13
13
|
React.createElement(rebass_1.Text, { mt: 3 }, data.IncludeGroupedRows ? 'Yes' : 'No')));
|
|
14
14
|
exports.renderConditionalStyleSettingsSummary = renderConditionalStyleSettingsSummary;
|
|
15
15
|
const ConditionalStyleSettingsWizardSettings = (props) => {
|
|
16
|
-
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
16
|
+
const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
17
17
|
const onIncludeGroupedRowsChanged = (checked) => {
|
|
18
18
|
props.onChange(Object.assign(Object.assign({}, data), { IncludeGroupedRows: checked }));
|
|
19
19
|
};
|
|
@@ -8,14 +8,14 @@ const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
|
8
8
|
const rebass_1 = require("rebass");
|
|
9
9
|
const StyleHelper_1 = require("../../../Utilities/Helpers/StyleHelper");
|
|
10
10
|
const toStyle = (style) => {
|
|
11
|
-
return Object.assign(Object.assign({}, StyleHelper_1.convertAdaptableStyleToCSS(style !== null && style !== void 0 ? style : {})), { borderWidth: (style === null || style === void 0 ? void 0 : style.BorderColor) ? 2 : 0, borderStyle: 'solid' });
|
|
11
|
+
return Object.assign(Object.assign({}, (0, StyleHelper_1.convertAdaptableStyleToCSS)(style !== null && style !== void 0 ? style : {})), { borderWidth: (style === null || style === void 0 ? void 0 : style.BorderColor) ? 2 : 0, borderStyle: 'solid' });
|
|
12
12
|
};
|
|
13
13
|
const renderConditionalStyleStyleSummary = (data) => {
|
|
14
14
|
return (React.createElement(rebass_1.Text, { padding: 2, style: toStyle(data.Style) }, "Preview result"));
|
|
15
15
|
};
|
|
16
16
|
exports.renderConditionalStyleStyleSummary = renderConditionalStyleStyleSummary;
|
|
17
17
|
function ConditionalStyleStyleWizardSection(props) {
|
|
18
|
-
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
18
|
+
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
19
19
|
return (React.createElement(StyleComponent_1.StyleComponent, { headless: true, api: api, Style: data.Style, UpdateStyle: (Style) => {
|
|
20
20
|
props.onChange(Object.assign(Object.assign({}, data), { Style }));
|
|
21
21
|
} }));
|
|
@@ -22,12 +22,12 @@ const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection"
|
|
|
22
22
|
const ConditionalStyleWizard = (props) => {
|
|
23
23
|
var _a, _b;
|
|
24
24
|
const data = (_a = props.data) !== null && _a !== void 0 ? _a : (_b = props.popupParams) === null || _b === void 0 ? void 0 : _b.value;
|
|
25
|
-
const [conditionalStyle, setConditionalStyle] = react_1.useState(() => {
|
|
25
|
+
const [conditionalStyle, setConditionalStyle] = (0, react_1.useState)(() => {
|
|
26
26
|
var _a, _b, _c;
|
|
27
27
|
const DEFAULT_RULE = {
|
|
28
28
|
BooleanExpression: '',
|
|
29
29
|
};
|
|
30
|
-
const conditionalStyle = data ? Helper_1.cloneObject(data) : ObjectFactory_1.default.CreateEmptyConditionalStyle();
|
|
30
|
+
const conditionalStyle = data ? (0, Helper_1.cloneObject)(data) : ObjectFactory_1.default.CreateEmptyConditionalStyle();
|
|
31
31
|
conditionalStyle.Scope = (_a = conditionalStyle.Scope) !== null && _a !== void 0 ? _a : { All: true };
|
|
32
32
|
if (!conditionalStyle.Rule) {
|
|
33
33
|
conditionalStyle.Rule = DEFAULT_RULE;
|
|
@@ -42,7 +42,7 @@ const ConditionalStyleWizard = (props) => {
|
|
|
42
42
|
}
|
|
43
43
|
return conditionalStyle;
|
|
44
44
|
});
|
|
45
|
-
const dispatch = react_redux_1.useDispatch();
|
|
45
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
46
46
|
const handleFinish = () => {
|
|
47
47
|
if (data) {
|
|
48
48
|
dispatch(ConditionalStyleRedux.ConditionalStyleEdit(conditionalStyle));
|
|
@@ -107,4 +107,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
107
107
|
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.CustomSortModuleId, config)),
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
exports.CustomSortSummary = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(CustomSortSummaryComponent);
|
|
110
|
+
exports.CustomSortSummary = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(CustomSortSummaryComponent);
|
|
@@ -9,7 +9,7 @@ const Tag_1 = require("../../../components/Tag");
|
|
|
9
9
|
const ColumnSelector_1 = require("../../Components/ColumnSelector");
|
|
10
10
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
11
11
|
const renderCustomSortColumn = (data) => {
|
|
12
|
-
const { api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
12
|
+
const { api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
13
13
|
return (React.createElement(rebass_1.Text, { pr: 2, py: 2, fontSize: 2 },
|
|
14
14
|
"Custom sort column: ",
|
|
15
15
|
React.createElement(Tag_1.Tag, null, api.columnApi.getFriendlyNameFromColumnId(data.ColumnId))));
|
|
@@ -23,7 +23,7 @@ const isValidCustomSortColumn = (data) => {
|
|
|
23
23
|
};
|
|
24
24
|
exports.isValidCustomSortColumn = isValidCustomSortColumn;
|
|
25
25
|
const CustomSortColumnWizardSection = (props) => {
|
|
26
|
-
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
26
|
+
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
27
27
|
const sortableCols = React.useMemo(() => {
|
|
28
28
|
var _a, _b;
|
|
29
29
|
const sortableColumns = api.columnApi.getSortableColumns();
|
|
@@ -25,15 +25,15 @@ const renderCustomSortValuesSummary = (data) => {
|
|
|
25
25
|
};
|
|
26
26
|
exports.renderCustomSortValuesSummary = renderCustomSortValuesSummary;
|
|
27
27
|
const CustomSortValuesWizardSection = (props) => {
|
|
28
|
-
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
29
|
-
const [distinctValues, setDistinctValues] = react_1.useState([]);
|
|
30
|
-
const [isDistinctValuesLoading, setIsDistinctValuesLoading] = react_1.useState(false);
|
|
31
|
-
react_1.useEffect(() => {
|
|
28
|
+
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
29
|
+
const [distinctValues, setDistinctValues] = (0, react_1.useState)([]);
|
|
30
|
+
const [isDistinctValuesLoading, setIsDistinctValuesLoading] = (0, react_1.useState)(false);
|
|
31
|
+
(0, react_1.useEffect)(() => {
|
|
32
32
|
let isMounted = true;
|
|
33
33
|
(async () => {
|
|
34
34
|
// for sync and very fast resolving promises does not make sense to show a loader
|
|
35
35
|
setDistinctValues([]);
|
|
36
|
-
const newValues = await runIfNotResolvedIn_1.runIfNotResolvedIn(api.columnApi.getDistinctCustomSortDisplayValuesForColumn(data.ColumnId), () => isMounted && setIsDistinctValuesLoading(true));
|
|
36
|
+
const newValues = await (0, runIfNotResolvedIn_1.runIfNotResolvedIn)(api.columnApi.getDistinctCustomSortDisplayValuesForColumn(data.ColumnId), () => isMounted && setIsDistinctValuesLoading(true));
|
|
37
37
|
if (!isMounted) {
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
@@ -44,7 +44,7 @@ const CustomSortValuesWizardSection = (props) => {
|
|
|
44
44
|
isMounted = false;
|
|
45
45
|
};
|
|
46
46
|
}, [data.ColumnId]);
|
|
47
|
-
const sortedValuesMap = react_1.useMemo(() => {
|
|
47
|
+
const sortedValuesMap = (0, react_1.useMemo)(() => {
|
|
48
48
|
if (!data.SortedValues || !data.SortedValues.length) {
|
|
49
49
|
return new Map();
|
|
50
50
|
}
|
|
@@ -56,13 +56,13 @@ const CustomSortValuesWizardSection = (props) => {
|
|
|
56
56
|
const allowReorder = React.useCallback((option) => {
|
|
57
57
|
return sortedValuesMap.has(option);
|
|
58
58
|
}, [sortedValuesMap]);
|
|
59
|
-
const options = react_1.useMemo(() => {
|
|
60
|
-
return sortWithOrder_1.sortWithOrderArray(distinctValues, data.SortedValues, {
|
|
59
|
+
const options = (0, react_1.useMemo)(() => {
|
|
60
|
+
return (0, sortWithOrder_1.sortWithOrderArray)(distinctValues, data.SortedValues, {
|
|
61
61
|
sortUnorderedItems: false,
|
|
62
62
|
});
|
|
63
63
|
}, [allowReorder, distinctValues, data.SortedValues]);
|
|
64
64
|
const baseClassName = 'ab-CustomSortWizard__SortOrder';
|
|
65
|
-
const className = join_1.default(baseClassName, isDistinctValuesLoading && `${baseClassName}--loading`);
|
|
65
|
+
const className = (0, join_1.default)(baseClassName, isDistinctValuesLoading && `${baseClassName}--loading`);
|
|
66
66
|
return (React.createElement(Tabs_1.Tabs, { style: { height: '100%' }, className: className },
|
|
67
67
|
React.createElement(Tabs_1.Tabs.Tab, null, "Sort Order"),
|
|
68
68
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
@@ -16,14 +16,14 @@ const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection"
|
|
|
16
16
|
const CustomSortWizard = (props) => {
|
|
17
17
|
var _a, _b;
|
|
18
18
|
let data = props.data;
|
|
19
|
-
const allCustomSorts = react_redux_1.useSelector((state) => { var _a; return (_a = state.CustomSort) === null || _a === void 0 ? void 0 : _a.CustomSorts; });
|
|
19
|
+
const allCustomSorts = (0, react_redux_1.useSelector)((state) => { var _a; return (_a = state.CustomSort) === null || _a === void 0 ? void 0 : _a.CustomSorts; });
|
|
20
20
|
if (((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.action) === 'Edit' && ((_b = props.popupParams) === null || _b === void 0 ? void 0 : _b.column)) {
|
|
21
21
|
data = allCustomSorts.find((x) => { var _a; return x.ColumnId == ((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.column.columnId); });
|
|
22
22
|
}
|
|
23
|
-
const [customSort, setCustomSort] = react_1.useState(() => {
|
|
23
|
+
const [customSort, setCustomSort] = (0, react_1.useState)(() => {
|
|
24
24
|
var _a, _b;
|
|
25
25
|
if (data) {
|
|
26
|
-
return Helper_1.cloneObject(data);
|
|
26
|
+
return (0, Helper_1.cloneObject)(data);
|
|
27
27
|
}
|
|
28
28
|
const newData = ObjectFactory_1.default.CreateEmptyCustomSort();
|
|
29
29
|
if ((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.column) {
|
|
@@ -31,7 +31,7 @@ const CustomSortWizard = (props) => {
|
|
|
31
31
|
}
|
|
32
32
|
return newData;
|
|
33
33
|
});
|
|
34
|
-
const dispatch = react_redux_1.useDispatch();
|
|
34
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
35
35
|
const handleFinish = () => {
|
|
36
36
|
if (data) {
|
|
37
37
|
dispatch(CustomSortRedux.CustomSortEdit(customSort));
|
|
@@ -8,7 +8,7 @@ const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleB
|
|
|
8
8
|
const kebabCase_1 = tslib_1.__importDefault(require("lodash/kebabCase"));
|
|
9
9
|
const CustomDashboardButton = (props) => {
|
|
10
10
|
const { button } = props;
|
|
11
|
-
const [componentRevision, setComponentRevision] = react_1.useState(1);
|
|
11
|
+
const [componentRevision, setComponentRevision] = (0, react_1.useState)(1);
|
|
12
12
|
// TODO: variants of this mapping are present in several places (just search for api.internalApi.getStyleForButton() usages)
|
|
13
13
|
// with the next opportunity we should abstract it
|
|
14
14
|
const dashboardContext = {
|
|
@@ -23,7 +23,7 @@ const CustomDashboardButton = (props) => {
|
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
25
25
|
const disabled = button.disabled && button.disabled(button, dashboardContext);
|
|
26
|
-
return (React.createElement(SimpleButton_1.default, { key: buttonLabel, variant: buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'text', tone: buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'none', className: `ab-DashboardToolbar__Home__${kebabCase_1.default(buttonLabel)} ${(buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || ''}`, tooltip: buttonTooltip, icon: buttonIcon, disabled: disabled || props.accessLevel == 'ReadOnly', onClick: () => {
|
|
26
|
+
return (React.createElement(SimpleButton_1.default, { key: buttonLabel, variant: buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'text', tone: buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'none', className: `ab-DashboardToolbar__Home__${(0, kebabCase_1.default)(buttonLabel)} ${(buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || ''}`, tooltip: buttonTooltip, icon: buttonIcon, disabled: disabled || props.accessLevel == 'ReadOnly', onClick: () => {
|
|
27
27
|
var _a;
|
|
28
28
|
(_a = button.onClick) === null || _a === void 0 ? void 0 : _a.call(button, button, dashboardContext);
|
|
29
29
|
setTimeout(() => {
|
|
@@ -10,12 +10,12 @@ const AdaptableContext_1 = require("../AdaptableContext");
|
|
|
10
10
|
const CustomToolbarWrapper = (props) => {
|
|
11
11
|
let contentsDivId = 'ab-CustomToolbar__' + props.customToolbar.name + '__contents';
|
|
12
12
|
let buttonsDivId = 'ab-CustomToolbar__' + props.customToolbar.name + '__buttons';
|
|
13
|
-
const [contentsHTML, setContentsHTML] = react_1.useState('');
|
|
13
|
+
const [contentsHTML, setContentsHTML] = (0, react_1.useState)('');
|
|
14
14
|
// dummy object which is used to force a re-render of the toolbar
|
|
15
|
-
const [componentRevision, setComponentRevision] = react_1.useState(1);
|
|
16
|
-
const contentsDivRef = react_1.useRef(null);
|
|
17
|
-
const { api } = AdaptableContext_1.useAdaptable();
|
|
18
|
-
react_1.useLayoutEffect(() => {
|
|
15
|
+
const [componentRevision, setComponentRevision] = (0, react_1.useState)(1);
|
|
16
|
+
const contentsDivRef = (0, react_1.useRef)(null);
|
|
17
|
+
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
18
|
+
(0, react_1.useLayoutEffect)(() => {
|
|
19
19
|
const element = contentsDivRef.current;
|
|
20
20
|
const adaptableApi = api;
|
|
21
21
|
if (props.customToolbar.render) {
|
|
@@ -27,7 +27,7 @@ const CustomToolbarWrapper = (props) => {
|
|
|
27
27
|
setContentsHTML(html);
|
|
28
28
|
}
|
|
29
29
|
}, [componentRevision, props.dashboardRevision]);
|
|
30
|
-
react_1.useLayoutEffect(() => {
|
|
30
|
+
(0, react_1.useLayoutEffect)(() => {
|
|
31
31
|
const element = contentsDivRef.current;
|
|
32
32
|
const adaptableApi = api;
|
|
33
33
|
// cleanup runs in a separate effect, this way it's executed only once on unmount
|
|
@@ -37,7 +37,7 @@ const CustomToolbarWrapper = (props) => {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
}, []);
|
|
40
|
-
react_1.useLayoutEffect(() => {
|
|
40
|
+
(0, react_1.useLayoutEffect)(() => {
|
|
41
41
|
const element = contentsDivRef.current;
|
|
42
42
|
const adaptableApi = api;
|
|
43
43
|
if (props.customToolbar.frameworkComponent) {
|
|
@@ -23,7 +23,7 @@ const CustomToolbarWrapper_1 = require("./CustomToolbarWrapper");
|
|
|
23
23
|
const CustomDashboardButton_1 = require("./CustomDashboardButton");
|
|
24
24
|
const AdaptableIconComponent_1 = require("../../components/AdaptableIconComponent");
|
|
25
25
|
const DashboardComponent = (props) => {
|
|
26
|
-
const [searchText, search] = useQuickSearchDebounced_1.useQuickSearchDebounced(props);
|
|
26
|
+
const [searchText, search] = (0, useQuickSearchDebounced_1.useQuickSearchDebounced)(props);
|
|
27
27
|
const dashboardAccessLevel = props.api.internalApi
|
|
28
28
|
.getEntitlementService()
|
|
29
29
|
.getEntitlementAccessLevelForModule('Dashboard');
|
|
@@ -60,7 +60,7 @@ const DashboardComponent = (props) => {
|
|
|
60
60
|
React.createElement(ModuleToolbarWrapper_1.ModuleToolbarWrapper, { moduleInfo: moduleInfo, accessLevel: dashboardAccessLevel }, moduleToolbarElement)));
|
|
61
61
|
}
|
|
62
62
|
else {
|
|
63
|
-
LoggingHelper_1.LogAdaptableError('Cannot find Dashboard Control for ' + visibleToolbarName);
|
|
63
|
+
(0, LoggingHelper_1.LogAdaptableError)('Cannot find Dashboard Control for ' + visibleToolbarName);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -81,7 +81,7 @@ const DashboardComponent = (props) => {
|
|
|
81
81
|
var _a, _b, _c;
|
|
82
82
|
let menuItem = props.GridState.ModuleButtonMenuItems.find((y) => y.isVisible && y.module == x);
|
|
83
83
|
if (menuItem) {
|
|
84
|
-
return (React.createElement(SimpleButton_1.default, { "data-name": `dashboard-module-button-${(_a = menuItem.module) !== null && _a !== void 0 ? _a : 'custom-' + index}`, key: menuItem.label, variant: menuItem.module === 'SystemStatus' ? 'outlined' : 'text', tone: menuItem.module === 'SystemStatus' ? 'neutral' : 'none', className: `ab-DashboardToolbar__Home__${kebabCase_1.default(menuItem.label)}`, icon: menuItem.icon, tooltip: menuItem.label, disabled: props.accessLevel == 'ReadOnly', onClick: () => props.dispatch(menuItem.reduxAction), accessLevel: 'Full', style: menuItem.module === 'SystemStatus'
|
|
84
|
+
return (React.createElement(SimpleButton_1.default, { "data-name": `dashboard-module-button-${(_a = menuItem.module) !== null && _a !== void 0 ? _a : 'custom-' + index}`, key: menuItem.label, variant: menuItem.module === 'SystemStatus' ? 'outlined' : 'text', tone: menuItem.module === 'SystemStatus' ? 'neutral' : 'none', className: `ab-DashboardToolbar__Home__${(0, kebabCase_1.default)(menuItem.label)}`, icon: menuItem.icon, tooltip: menuItem.label, disabled: props.accessLevel == 'ReadOnly', onClick: () => props.dispatch(menuItem.reduxAction), accessLevel: 'Full', style: menuItem.module === 'SystemStatus'
|
|
85
85
|
? Object.assign(Object.assign({}, UIHelper_1.default.getStyleForMessageType((_c = (_b = props.api.systemStatusApi.getCurrentSystemStatusMessageInfo()) === null || _b === void 0 ? void 0 : _b.statusType) !== null && _c !== void 0 ? _c : 'Success')), { border: 0 }) : {} }));
|
|
86
86
|
}
|
|
87
87
|
});
|
|
@@ -152,4 +152,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
152
152
|
onShowDashboardPopup: () => dispatch(PopupRedux.PopupShowScreen(ModuleConstants.DashboardModuleId, 'DashboardPopup')),
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
exports.Dashboard = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(DashboardComponent);
|
|
155
|
+
exports.Dashboard = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(DashboardComponent);
|
|
@@ -114,4 +114,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
114
114
|
onSetDashboardFloating: (isFloating) => dispatch(DashboardRedux.DashboardSetIsFloating(isFloating)),
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
exports.DashboardPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(DashboardPopupComponent);
|
|
117
|
+
exports.DashboardPopup = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(DashboardPopupComponent);
|
|
@@ -36,4 +36,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
36
36
|
onSetDashboardFloating: (isFloating) => dispatch(DashboardRedux.DashboardSetIsFloating(isFloating)),
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
exports.DashboardViewPanelControl = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(DashboardViewPanelComponent);
|
|
39
|
+
exports.DashboardViewPanelControl = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(DashboardViewPanelComponent);
|
|
@@ -10,7 +10,7 @@ const AdaptableContext_1 = require("../AdaptableContext");
|
|
|
10
10
|
const ModuleToolbarWrapper = (props) => {
|
|
11
11
|
const moduleName = props.moduleInfo.ModuleName;
|
|
12
12
|
const moduleFriendlyName = props.moduleInfo.FriendlyName;
|
|
13
|
-
const { api } = AdaptableContext_1.useAdaptable();
|
|
13
|
+
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
14
14
|
const isConfigurable = moduleName !== 'OpenFin' && moduleName !== 'IPushPull' && moduleName !== 'Glue42';
|
|
15
15
|
return (React.createElement(PanelDashboard_1.PanelDashboard, { className: `ab-DashboardToolbar__${moduleName}`, "data-name": `ab-DashboardToolbar__${moduleName}`, headerText: moduleFriendlyName, showConfigureButton: isConfigurable, onConfigure: () => {
|
|
16
16
|
const maxWidth = api.internalApi.getModuleService().getPopupMaxWidth(moduleName);
|
|
@@ -4,23 +4,22 @@ exports.DataChangeHistoryGrid = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
7
|
-
const all_modules_1 = require("@ag-grid-community/all-modules");
|
|
8
7
|
const react_1 = require("react");
|
|
9
8
|
const usePrevious_1 = tslib_1.__importDefault(require("../../components/utils/usePrevious"));
|
|
10
9
|
const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
|
|
11
10
|
const buildActionColumnButton_1 = require("./buildActionColumnButton");
|
|
12
11
|
const DataChangeHistoryGrid = (props) => {
|
|
13
12
|
const { changeHistoryLog, adaptableContainerId, agGridContainerId, onUndoChange } = props;
|
|
14
|
-
const mainAdaptableInstance = AdaptableContext_1.useAdaptable();
|
|
15
|
-
const [_adaptableApi, setAdaptableApi] = react_1.useState(null);
|
|
16
|
-
const adaptableApiRef = react_1.useRef(null);
|
|
13
|
+
const mainAdaptableInstance = (0, AdaptableContext_1.useAdaptable)();
|
|
14
|
+
const [_adaptableApi, setAdaptableApi] = (0, react_1.useState)(null);
|
|
15
|
+
const adaptableApiRef = (0, react_1.useRef)(null);
|
|
17
16
|
adaptableApiRef.current = _adaptableApi;
|
|
18
17
|
const undoChangeEnabled = mainAdaptableInstance.api.internalApi
|
|
19
18
|
.getEntitlementService()
|
|
20
19
|
.isModuleFullEntitlement(ModuleConstants_1.DataChangeHistoryModuleId);
|
|
21
|
-
const previousChangeHistoryLog = usePrevious_1.default(changeHistoryLog, changeHistoryLog);
|
|
20
|
+
const previousChangeHistoryLog = (0, usePrevious_1.default)(changeHistoryLog, changeHistoryLog);
|
|
22
21
|
// initialize Adaptable grid
|
|
23
|
-
react_1.useEffect(() => {
|
|
22
|
+
(0, react_1.useEffect)(() => {
|
|
24
23
|
const initializeAdaptableGrid = async () => {
|
|
25
24
|
const gridOptions = buildGridOptions(mainAdaptableInstance, changeHistoryLog);
|
|
26
25
|
const adaptableOptions = buildAdaptableOptions(mainAdaptableInstance, gridOptions, adaptableContainerId, agGridContainerId, undoChangeEnabled, onUndoChange);
|
|
@@ -36,7 +35,7 @@ const DataChangeHistoryGrid = (props) => {
|
|
|
36
35
|
};
|
|
37
36
|
}, []);
|
|
38
37
|
// update row data
|
|
39
|
-
react_1.useEffect(() => {
|
|
38
|
+
(0, react_1.useEffect)(() => {
|
|
40
39
|
const adaptableApi = adaptableApiRef.current;
|
|
41
40
|
if (!adaptableApi) {
|
|
42
41
|
// initial render
|
|
@@ -82,7 +81,7 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
|
|
|
82
81
|
const changeKey = rowData === null || rowData === void 0 ? void 0 : rowData['changeKey'];
|
|
83
82
|
changeKey && onUndoChange(changeKey);
|
|
84
83
|
};
|
|
85
|
-
const actionColumnButton = buildActionColumnButton_1.buildActionColumnButton((_a = mainAdaptableInstance.adaptableOptions) === null || _a === void 0 ? void 0 : _a.dataChangeHistoryOptions, undoRowNode);
|
|
84
|
+
const actionColumnButton = (0, buildActionColumnButton_1.buildActionColumnButton)((_a = mainAdaptableInstance.adaptableOptions) === null || _a === void 0 ? void 0 : _a.dataChangeHistoryOptions, undoRowNode);
|
|
86
85
|
let actionOptions = undefined;
|
|
87
86
|
if (actionColumnButton) {
|
|
88
87
|
actionOptions = {
|
|
@@ -99,7 +98,6 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
|
|
|
99
98
|
}
|
|
100
99
|
const options = {
|
|
101
100
|
gridOptions: gridOptions,
|
|
102
|
-
modules: [...all_modules_1.AllCommunityModules],
|
|
103
101
|
primaryKey: 'primaryKey',
|
|
104
102
|
licenseKey: mainAdaptableOptions.licenseKey,
|
|
105
103
|
userName: `${mainAdaptableOptions.userName}`,
|
|
@@ -38,13 +38,13 @@ class DataChangeHistoryPopupComponent extends React.Component {
|
|
|
38
38
|
React.createElement(rebass_1.Text, { className: "ab-DataChangeHistoryPanel--status-active", style: { color: 'var(--ab-color-success)', fontWeight: 'bold' } }, "Active"),
|
|
39
39
|
!!activationTime && (React.createElement(rebass_1.Text, { style: { fontStyle: 'italic' }, fontSize: 2 },
|
|
40
40
|
"(since ",
|
|
41
|
-
FormatHelper_1.DateFormatter(activationTime, { Pattern: dateFormat }),
|
|
41
|
+
(0, FormatHelper_1.DateFormatter)(activationTime, { Pattern: dateFormat }),
|
|
42
42
|
")")))),
|
|
43
43
|
suspended && (React.createElement(React.Fragment, null,
|
|
44
44
|
React.createElement(rebass_1.Text, { className: "ab-DataChangeHistoryPopup--status-suspended", style: { color: 'var(--ab-color-warn)', fontWeight: 'bold' } }, "Suspended"),
|
|
45
45
|
!!suspensionTime && (React.createElement(rebass_1.Text, { style: { fontStyle: 'italic' }, fontSize: 2 },
|
|
46
46
|
"(since ",
|
|
47
|
-
FormatHelper_1.DateFormatter(suspensionTime, { Pattern: dateFormat }),
|
|
47
|
+
(0, FormatHelper_1.DateFormatter)(suspensionTime, { Pattern: dateFormat }),
|
|
48
48
|
")")))),
|
|
49
49
|
disabled && (React.createElement(rebass_1.Text, { className: "ab-DataChangeHistoryPopup--status-disabled", fontSize: 2 }))));
|
|
50
50
|
const handleChangeUndo = (changeKey) => {
|
|
@@ -79,10 +79,10 @@ function mapStateToProps(state, ownProps) {
|
|
|
79
79
|
}
|
|
80
80
|
function mapDispatchToProps(dispatch) {
|
|
81
81
|
return {
|
|
82
|
-
onChangeHistoryEnable: () => dispatch(SystemRedux_1.SystemDataChangeHistoryEnable()),
|
|
83
|
-
onChangeHistoryDisable: () => dispatch(SystemRedux_1.SystemDataChangeHistoryDisable()),
|
|
84
|
-
onChangeHistorySuspend: () => dispatch(SystemRedux_1.SystemDataChangeHistorySuspend()),
|
|
85
|
-
onChangeHistoryResume: () => dispatch(SystemRedux_1.SystemDataChangeHistoryResume()),
|
|
82
|
+
onChangeHistoryEnable: () => dispatch((0, SystemRedux_1.SystemDataChangeHistoryEnable)()),
|
|
83
|
+
onChangeHistoryDisable: () => dispatch((0, SystemRedux_1.SystemDataChangeHistoryDisable)()),
|
|
84
|
+
onChangeHistorySuspend: () => dispatch((0, SystemRedux_1.SystemDataChangeHistorySuspend)()),
|
|
85
|
+
onChangeHistoryResume: () => dispatch((0, SystemRedux_1.SystemDataChangeHistoryResume)()),
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
exports.DataChangeHistoryPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(DataChangeHistoryPopupComponent);
|
|
88
|
+
exports.DataChangeHistoryPopup = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(DataChangeHistoryPopupComponent);
|
|
@@ -14,13 +14,13 @@ const Tooltip_1 = tslib_1.__importDefault(require("../../components/Tooltip"));
|
|
|
14
14
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
15
15
|
const DataChangeHistoryViewPanelControl = (props) => {
|
|
16
16
|
var _a, _b;
|
|
17
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
18
|
-
const dispatch = react_redux_1.useDispatch();
|
|
19
|
-
const onChangeHistoryEnable = React.useCallback(() => dispatch(SystemRedux_1.SystemDataChangeHistoryEnable()), []);
|
|
20
|
-
const onChangeHistoryDisable = React.useCallback(() => dispatch(SystemRedux_1.SystemDataChangeHistoryDisable()), []);
|
|
21
|
-
const onChangeHistorySuspend = React.useCallback(() => dispatch(SystemRedux_1.SystemDataChangeHistorySuspend()), []);
|
|
22
|
-
const onChangeHistoryResume = React.useCallback(() => dispatch(SystemRedux_1.SystemDataChangeHistoryResume()), []);
|
|
23
|
-
const { changeHistoryMode, activationTime, suspensionTime } = react_redux_1.useSelector((state) => ({
|
|
17
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
18
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
19
|
+
const onChangeHistoryEnable = React.useCallback(() => dispatch((0, SystemRedux_1.SystemDataChangeHistoryEnable)()), []);
|
|
20
|
+
const onChangeHistoryDisable = React.useCallback(() => dispatch((0, SystemRedux_1.SystemDataChangeHistoryDisable)()), []);
|
|
21
|
+
const onChangeHistorySuspend = React.useCallback(() => dispatch((0, SystemRedux_1.SystemDataChangeHistorySuspend)()), []);
|
|
22
|
+
const onChangeHistoryResume = React.useCallback(() => dispatch((0, SystemRedux_1.SystemDataChangeHistoryResume)()), []);
|
|
23
|
+
const { changeHistoryMode, activationTime, suspensionTime } = (0, react_redux_1.useSelector)((state) => ({
|
|
24
24
|
changeHistoryMode: state.System.DataChangeHistory.currentMode,
|
|
25
25
|
activationTime: state.System.DataChangeHistory.enableTime,
|
|
26
26
|
suspensionTime: state.System.DataChangeHistory.suspendTime,
|
|
@@ -37,9 +37,9 @@ const DataChangeHistoryViewPanelControl = (props) => {
|
|
|
37
37
|
(enabled || suspended) && (React.createElement(ButtonStop_1.ButtonStop, { className: "ab-DataChangeHistoryPanel--button-deactivate", "data-name": 'data-change-history--button-deactivate', tooltip: 'Deactivate data change tracking', onClick: () => onChangeHistoryDisable() }))));
|
|
38
38
|
const dateFormat = `${adaptable.api.internalApi.getAdaptableOptions().userInterfaceOptions.dateInputOptions.dateFormat} HH:mm:ss`;
|
|
39
39
|
const statusPanel = (React.createElement(rebass_1.Flex, { className: "ab-DataChangeHistoryPanel--status-panel", alignItems: 'center', style: { gap: gap } },
|
|
40
|
-
enabled && (React.createElement(Tooltip_1.default, { label: !!activationTime && `since ${FormatHelper_1.DateFormatter(activationTime, { Pattern: dateFormat })}` },
|
|
40
|
+
enabled && (React.createElement(Tooltip_1.default, { label: !!activationTime && `since ${(0, FormatHelper_1.DateFormatter)(activationTime, { Pattern: dateFormat })}` },
|
|
41
41
|
React.createElement(rebass_1.Text, { className: "ab-DataChangeHistoryPanel--status-active", fontSize: 2, style: { color: 'var(--ab-color-success)' } }, "Active"))),
|
|
42
|
-
suspended && (React.createElement(Tooltip_1.default, { label: !!suspensionTime && `since ${FormatHelper_1.DateFormatter(suspensionTime, { Pattern: dateFormat })}` },
|
|
42
|
+
suspended && (React.createElement(Tooltip_1.default, { label: !!suspensionTime && `since ${(0, FormatHelper_1.DateFormatter)(suspensionTime, { Pattern: dateFormat })}` },
|
|
43
43
|
React.createElement(rebass_1.Text, { className: "ab-DataChangeHistoryPanel--status-suspended", fontSize: 2, style: { color: 'var(--ab-color-warn)' } }, "Suspended"))),
|
|
44
44
|
disabled && (React.createElement(rebass_1.Text, { className: "ab-DataChangeHistoryPanel--status-disabled", fontSize: 2 }, "Activate data tracking"))));
|
|
45
45
|
return (React.createElement(rebass_1.Flex, { flexDirection: 'row' },
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RowNode } from '@ag-grid-community/
|
|
1
|
+
import { RowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { ActionColumnContext, AdaptableButton, DataChangeHistoryOptions } from '../../types';
|
|
3
3
|
export declare const buildActionColumnButton: (options: DataChangeHistoryOptions, undoRowNode: (rowNode: RowNode) => void) => AdaptableButton<ActionColumnContext>[];
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const Radio_1 = tslib_1.__importDefault(require("../../components/Radio"));
|
|
7
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
8
|
const DataSetSelector = ({ data }) => {
|
|
9
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
9
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
10
10
|
const dataSets = adaptable.api.dataSetApi.getAllDataSets();
|
|
11
11
|
const selectedDataSet = adaptable.api.dataSetApi.getCurrentDataSet();
|
|
12
12
|
const isDisabled = (dataSets === null || dataSets === void 0 ? void 0 : dataSets.length) === 1;
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const SelectList_1 = require("../../components/SelectList");
|
|
7
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
8
|
const DataSetStatusPanelPopover = () => {
|
|
9
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
9
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
10
10
|
const dataSets = adaptable.api.dataSetApi.getAllDataSets();
|
|
11
11
|
const handleDataSetChange = React.useCallback((option) => {
|
|
12
12
|
adaptable.api.dataSetApi.setDataSet(option.label);
|
|
@@ -15,5 +15,5 @@ declare class DataSetViewPanelComponent extends React.Component<DataSetViewPanel
|
|
|
15
15
|
render(): JSX.Element;
|
|
16
16
|
onSelectedDataSetChanged(dataSetName: string): void;
|
|
17
17
|
}
|
|
18
|
-
export declare let DataSetViewPanelControl: import("react-redux").ConnectedComponent<typeof DataSetViewPanelComponent, import("react-redux").Omit<React.ClassAttributes<DataSetViewPanelComponent> & DataSetViewPanelComponentProps, "api" | "
|
|
18
|
+
export declare let DataSetViewPanelControl: import("react-redux").ConnectedComponent<typeof DataSetViewPanelComponent, import("react-redux").Omit<React.ClassAttributes<DataSetViewPanelComponent> & DataSetViewPanelComponentProps, "api" | "moduleInfo" | "accessLevel" | "viewType" | "CurrentDataSetName" | "onSelectDataSet">>;
|
|
19
19
|
export {};
|
|
@@ -55,4 +55,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
55
55
|
},
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
exports.DataSetViewPanelControl = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(DataSetViewPanelComponent);
|
|
58
|
+
exports.DataSetViewPanelControl = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(DataSetViewPanelComponent);
|
|
@@ -16,7 +16,7 @@ const isCustomDestination = (destination) => {
|
|
|
16
16
|
return !!destination.name;
|
|
17
17
|
};
|
|
18
18
|
const ExportSelector = () => {
|
|
19
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
19
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
20
20
|
// reports
|
|
21
21
|
const handleReportChange = (report) => {
|
|
22
22
|
adaptable.api.exportApi.selectReport(report);
|
|
@@ -14,6 +14,7 @@ export interface ExportViewPanelComponentProps extends ViewPanelProps {
|
|
|
14
14
|
onNewReportSchedule: (reportSchedule: ReportSchedule) => PopupRedux.PopupShowScreenAction;
|
|
15
15
|
Columns: AdaptableColumn[];
|
|
16
16
|
CurrentReport: string | undefined;
|
|
17
|
+
UserReports: Report[] | undefined;
|
|
17
18
|
CurrentDestination: ExportDestination | string | undefined;
|
|
18
19
|
}
|
|
19
20
|
declare class ExportViewPanelComponent extends React.Component<ExportViewPanelComponentProps> {
|
|
@@ -24,5 +25,5 @@ declare class ExportViewPanelComponent extends React.Component<ExportViewPanelCo
|
|
|
24
25
|
private isCustomDestination;
|
|
25
26
|
private onNewReportSchedule;
|
|
26
27
|
}
|
|
27
|
-
export declare let ExportViewPanelControl: import("react-redux").ConnectedComponent<typeof ExportViewPanelComponent, import("react-redux").Omit<React.ClassAttributes<ExportViewPanelComponent> & ExportViewPanelComponentProps, "api" | "
|
|
28
|
+
export declare let ExportViewPanelControl: import("react-redux").ConnectedComponent<typeof ExportViewPanelComponent, import("react-redux").Omit<React.ClassAttributes<ExportViewPanelComponent> & ExportViewPanelComponentProps, "api" | "Columns" | "CurrentReport" | "CurrentDestination" | "moduleInfo" | "accessLevel" | "viewType" | "onApplyExport" | "onSelectReport" | "onSelectDestination" | "onNewReport" | "onEditReport" | "onNewReportSchedule" | "UserReports">>;
|
|
28
29
|
export {};
|
|
@@ -22,6 +22,7 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectF
|
|
|
22
22
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
23
23
|
const react_redux_1 = require("react-redux");
|
|
24
24
|
const constants_1 = require("./constants");
|
|
25
|
+
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
25
26
|
class ExportViewPanelComponent extends React.Component {
|
|
26
27
|
render() {
|
|
27
28
|
let currentReport = this.props.api.exportApi.getReportByName(this.props.CurrentReport);
|
|
@@ -81,7 +82,7 @@ class ExportViewPanelComponent extends React.Component {
|
|
|
81
82
|
React.createElement(DropdownButton_1.default, { disabled: allReportNames.length == 0, width: "100%", fontSize: "small", items: reportItems, columns: ['label'], className: `ab-${elementType}__Export__select`, onClear: () => this.onSelectedReportChanged(null), showClearButton: !!currentReport, variant: "outlined", marginRight: 2 }, currentReportId)),
|
|
82
83
|
React.createElement(rebass_1.Flex, { flex: 1 },
|
|
83
84
|
React.createElement(DropdownButton_1.default, { disabled: currentReportId === constants_1.SELECT_REPORT_STRING, width: "100%", fontSize: "small", items: destinationItems, columns: ['label'], className: `ab-${elementType}__Export__export`, onClear: () => this.onSelectedDestinationChanged(null), showClearButton: !!currentDestination, variant: "outlined", marginRight: 2 }, currentDestinationId)),
|
|
84
|
-
React.createElement(rebass_1.Flex, { className: join_1.default(accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__Export__controls`), style: { width: '100%' } },
|
|
85
|
+
React.createElement(rebass_1.Flex, { className: (0, join_1.default)(accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__Export__controls`), style: { width: '100%' } },
|
|
85
86
|
React.createElement(ButtonExport_1.ButtonExport, { onClick: () => onApplyExport(), tooltip: "Export Report", className: `ab-${elementType}__Export__export`, disabled: currentReport == null || currentDestination == null }),
|
|
86
87
|
React.createElement(ButtonEdit_1.ButtonEdit, { onClick: () => this.props.onEditReport(this.props.moduleInfo.Popup), tooltip: "Edit Report", className: `ab-${elementType}__Export__edit`, disabled: currentReport == null || this.props.api.exportApi.isCustomReport(currentReport), accessLevel: accessLevel }),
|
|
87
88
|
React.createElement(ButtonNew_1.ButtonNew, { variant: "text", className: `ab-${elementType}__Export__new`, tone: "neutral", children: null, onClick: () => this.props.onNewReport(this.props.moduleInfo.Popup), tooltip: "Create New Report", accessLevel: accessLevel }),
|
|
@@ -97,11 +98,18 @@ class ExportViewPanelComponent extends React.Component {
|
|
|
97
98
|
this.props.onSelectDestination(destination);
|
|
98
99
|
}
|
|
99
100
|
getAllReportNames() {
|
|
100
|
-
|
|
101
|
+
const reportNames = [
|
|
102
|
+
...this.props.api.exportApi.getAvailableSystemReports(),
|
|
103
|
+
...this.props.UserReports.map((r) => r.Name),
|
|
104
|
+
];
|
|
105
|
+
const customReports = this.props.api.exportApi.getAllCustomReports();
|
|
106
|
+
if (ArrayExtensions_1.default.IsNotNullOrEmpty(customReports)) {
|
|
107
|
+
reportNames.push(...customReports.map((r) => r.name));
|
|
108
|
+
}
|
|
109
|
+
return reportNames;
|
|
101
110
|
}
|
|
102
111
|
isCustomDestination(destination) {
|
|
103
|
-
|
|
104
|
-
return !!((_a = destination) === null || _a === void 0 ? void 0 : _a.name);
|
|
112
|
+
return !!(destination === null || destination === void 0 ? void 0 : destination.name);
|
|
105
113
|
// && typeof (destination as CustomDestination)?.onExport === 'function'
|
|
106
114
|
}
|
|
107
115
|
onNewReportSchedule() {
|
|
@@ -113,6 +121,7 @@ function mapStateToProps(state) {
|
|
|
113
121
|
return {
|
|
114
122
|
CurrentReport: state.Export.CurrentReport,
|
|
115
123
|
CurrentDestination: state.Export.CurrentDestination,
|
|
124
|
+
UserReports: state.Export.Reports,
|
|
116
125
|
};
|
|
117
126
|
}
|
|
118
127
|
function mapDispatchToProps(dispatch) {
|
|
@@ -135,4 +144,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
135
144
|
})),
|
|
136
145
|
};
|
|
137
146
|
}
|
|
138
|
-
exports.ExportViewPanelControl = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(ExportViewPanelComponent);
|
|
147
|
+
exports.ExportViewPanelControl = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(ExportViewPanelComponent);
|
|
@@ -12,10 +12,10 @@ const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants")
|
|
|
12
12
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
13
13
|
const ReportExportDropdown = (props) => {
|
|
14
14
|
const report = props.data;
|
|
15
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
16
|
-
const dispatch = react_redux_1.useDispatch();
|
|
15
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
16
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
17
17
|
const handleExport = (destination) => {
|
|
18
|
-
dispatch(ExportRedux_1.ExportApply(report, destination));
|
|
18
|
+
dispatch((0, ExportRedux_1.ExportApply)(report, destination));
|
|
19
19
|
};
|
|
20
20
|
const destinationItems = [
|
|
21
21
|
...adaptable.api.exportApi.getAvailableExportDestinations().map((destination) => ({
|
|
@@ -19,17 +19,17 @@ const NewReportWizard = (props) => {
|
|
|
19
19
|
const isEdit = ((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.action)
|
|
20
20
|
? props.popupParams.action === 'Edit'
|
|
21
21
|
: Boolean(props.data);
|
|
22
|
-
const currentReport = react_redux_1.useSelector((state) => {
|
|
22
|
+
const currentReport = (0, react_redux_1.useSelector)((state) => {
|
|
23
23
|
if (!isEdit) {
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
return state.Export.Reports.find((report) => report.Name === state.Export.CurrentReport);
|
|
27
27
|
});
|
|
28
28
|
const data = (_b = props.data) !== null && _b !== void 0 ? _b : currentReport;
|
|
29
|
-
const [report, setReport] = react_1.useState(() => {
|
|
30
|
-
return data ? Helper_1.cloneObject(data) : ObjectFactory_1.default.CreateEmptyReport();
|
|
29
|
+
const [report, setReport] = (0, react_1.useState)(() => {
|
|
30
|
+
return data ? (0, Helper_1.cloneObject)(data) : ObjectFactory_1.default.CreateEmptyReport();
|
|
31
31
|
});
|
|
32
|
-
const dispatch = react_redux_1.useDispatch();
|
|
32
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
33
33
|
const handleFinish = () => {
|
|
34
34
|
if (isEdit) {
|
|
35
35
|
dispatch(ExportRedux.ReportEdit(report));
|
|
@@ -25,7 +25,7 @@ const renderReportColumnsSummary = (report) => {
|
|
|
25
25
|
"Include ",
|
|
26
26
|
React.createElement("b", null, "only visible Columns"),
|
|
27
27
|
" in the Report")) : null,
|
|
28
|
-
report.ReportColumnScope === 'ScopeColumns' ? (React.createElement(React.Fragment, null, NewScopeComponent_1.renderScopeSummary(report.Scope, {
|
|
28
|
+
report.ReportColumnScope === 'ScopeColumns' ? (React.createElement(React.Fragment, null, (0, NewScopeComponent_1.renderScopeSummary)(report.Scope, {
|
|
29
29
|
scopeColumns: 'Report Columns',
|
|
30
30
|
scopeWholeRow: 'not available',
|
|
31
31
|
scopeDataTypes: 'Report will include columns with the following types',
|
|
@@ -33,7 +33,7 @@ const renderReportColumnsSummary = (report) => {
|
|
|
33
33
|
};
|
|
34
34
|
exports.renderReportColumnsSummary = renderReportColumnsSummary;
|
|
35
35
|
const ReportColumnsWizardSection = (props) => {
|
|
36
|
-
const { api, data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
36
|
+
const { api, data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
37
37
|
return (React.createElement(rebass_1.Flex, { flexDirection: "column", style: { height: '100%' }, padding: 2 },
|
|
38
38
|
React.createElement(Tabs_1.Tabs, { m: 2, value: data.ReportColumnScope, onValueChange: (ReportColumnScope) => {
|
|
39
39
|
const report = Object.assign(Object.assign({}, data), { ReportColumnScope });
|