@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
|
@@ -33,14 +33,14 @@ const inputStyle = {
|
|
|
33
33
|
textAlign: 'start',
|
|
34
34
|
};
|
|
35
35
|
const useForceRender = () => {
|
|
36
|
-
const [, setNow] = react_1.useState(Date.now());
|
|
36
|
+
const [, setNow] = (0, react_1.useState)(Date.now());
|
|
37
37
|
return () => {
|
|
38
38
|
setNow(Date.now());
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
const ThrottledInput = React.memo((props) => {
|
|
42
|
-
const [stateValue, setStateValue] = react_1.useState(props.value);
|
|
43
|
-
const throttleOnChange = React.useRef(throttle_1.default(props.onChange, 600, { leading: false }));
|
|
42
|
+
const [stateValue, setStateValue] = (0, react_1.useState)(props.value);
|
|
43
|
+
const throttleOnChange = React.useRef((0, throttle_1.default)(props.onChange, 600, { leading: false }));
|
|
44
44
|
const handleChange = React.useCallback((event) => {
|
|
45
45
|
const newValue = event.target.value;
|
|
46
46
|
setStateValue(newValue);
|
|
@@ -60,7 +60,7 @@ const tableDOMProps = {
|
|
|
60
60
|
};
|
|
61
61
|
const ColumnsList = ({ columns: cols, handle, onValidityChange, onChange, onSelectionChange, selectedColumns, }) => {
|
|
62
62
|
const rerender = useForceRender();
|
|
63
|
-
const columnsRef = react_1.useRef(cols);
|
|
63
|
+
const columnsRef = (0, react_1.useRef)(cols);
|
|
64
64
|
const silentSetColumns = (columns) => {
|
|
65
65
|
columnsRef.current = columns;
|
|
66
66
|
onChange === null || onChange === void 0 ? void 0 : onChange(columns);
|
|
@@ -105,12 +105,12 @@ const ColumnsList = ({ columns: cols, handle, onValidityChange, onChange, onSele
|
|
|
105
105
|
setColumns(cols);
|
|
106
106
|
};
|
|
107
107
|
const [primaryKeyField, setPrimaryKeyField] = React.useState(columns[0].field);
|
|
108
|
-
const { selected: includedColumnsMap, isSelected: isIncludedColumn, isAllSelected: isAllIncludedColumns, isNoneSelected: isNoneIncludedColumns, selectColumn: includeColumn, deselectColumn: excludeColumn, selectAll: includeAllColumns, deselectAll: excludeAllColumns, } = useSelection_1.default(columns, selectedColumns !== null && selectedColumns !== void 0 ? selectedColumns : true, null, { onChange: onSelectionChange });
|
|
108
|
+
const { selected: includedColumnsMap, isSelected: isIncludedColumn, isAllSelected: isAllIncludedColumns, isNoneSelected: isNoneIncludedColumns, selectColumn: includeColumn, deselectColumn: excludeColumn, selectAll: includeAllColumns, deselectAll: excludeAllColumns, } = (0, useSelection_1.default)(columns, selectedColumns !== null && selectedColumns !== void 0 ? selectedColumns : true, null, { onChange: onSelectionChange });
|
|
109
109
|
handle.current = {
|
|
110
110
|
getColumns: () => getColumns().filter((col) => isIncludedColumn(col.field)),
|
|
111
111
|
getPrimaryKey: () => primaryKeyField,
|
|
112
112
|
};
|
|
113
|
-
const { isSelected: isSortableColumn, isAllSelected: isAllSortableColumns, isNoneSelected: isNoneSortableColumns, selectColumn: setSortableColumn, deselectColumn: setUnsortableColumn, selectAll: setAllSortable, deselectAll: setAllUnsortable, } = useSelection_1.default(columns, true, 'sortable', {
|
|
113
|
+
const { isSelected: isSortableColumn, isAllSelected: isAllSortableColumns, isNoneSelected: isNoneSortableColumns, selectColumn: setSortableColumn, deselectColumn: setUnsortableColumn, selectAll: setAllSortable, deselectAll: setAllUnsortable, } = (0, useSelection_1.default)(columns, true, 'sortable', {
|
|
114
114
|
onBatchChange: (flag) => {
|
|
115
115
|
onColumnBatchChange(flag, 'sortable');
|
|
116
116
|
},
|
|
@@ -118,7 +118,7 @@ const ColumnsList = ({ columns: cols, handle, onValidityChange, onChange, onSele
|
|
|
118
118
|
onColumnChange(col, flag, 'sortable');
|
|
119
119
|
},
|
|
120
120
|
});
|
|
121
|
-
const { isSelected: isGroupableColumn, isAllSelected: isAllGroupableColumns, isNoneSelected: isNoneGroupableColumns, selectColumn: setGroupableColumn, deselectColumn: setUngroupableColumn, selectAll: setAllGroupable, deselectAll: setAllUngroupable, } = useSelection_1.default(columns, true, 'enableRowGroup', {
|
|
121
|
+
const { isSelected: isGroupableColumn, isAllSelected: isAllGroupableColumns, isNoneSelected: isNoneGroupableColumns, selectColumn: setGroupableColumn, deselectColumn: setUngroupableColumn, selectAll: setAllGroupable, deselectAll: setAllUngroupable, } = (0, useSelection_1.default)(columns, true, 'enableRowGroup', {
|
|
122
122
|
onBatchChange: (flag) => {
|
|
123
123
|
onColumnBatchChange(flag, 'enableRowGroup');
|
|
124
124
|
},
|
|
@@ -126,7 +126,7 @@ const ColumnsList = ({ columns: cols, handle, onValidityChange, onChange, onSele
|
|
|
126
126
|
onColumnChange(col, flag, 'enableRowGroup');
|
|
127
127
|
},
|
|
128
128
|
});
|
|
129
|
-
const { isSelected: isResizableColumn, isAllSelected: isAllResizableColumns, isNoneSelected: isNoneResizableColumns, selectColumn: setResizableColumn, deselectColumn: setUnresizableColumn, selectAll: setAllResizable, deselectAll: setAllUnresizable, } = useSelection_1.default(columns, true, 'resizable', {
|
|
129
|
+
const { isSelected: isResizableColumn, isAllSelected: isAllResizableColumns, isNoneSelected: isNoneResizableColumns, selectColumn: setResizableColumn, deselectColumn: setUnresizableColumn, selectAll: setAllResizable, deselectAll: setAllUnresizable, } = (0, useSelection_1.default)(columns, true, 'resizable', {
|
|
130
130
|
onBatchChange: (flag) => {
|
|
131
131
|
onColumnBatchChange(flag, 'resizable');
|
|
132
132
|
},
|
|
@@ -134,7 +134,7 @@ const ColumnsList = ({ columns: cols, handle, onValidityChange, onChange, onSele
|
|
|
134
134
|
onColumnChange(col, flag, 'resizable');
|
|
135
135
|
},
|
|
136
136
|
});
|
|
137
|
-
const { isSelected: isEditableColumn, isAllSelected: isAllEditableColumns, isNoneSelected: isNoneEditableColumns, selectColumn: setEditableColumn, deselectColumn: setUneditableColumn, selectAll: setAllEditable, deselectAll: setAllUneditable, } = useSelection_1.default(columns, true, 'editable', {
|
|
137
|
+
const { isSelected: isEditableColumn, isAllSelected: isAllEditableColumns, isNoneSelected: isNoneEditableColumns, selectColumn: setEditableColumn, deselectColumn: setUneditableColumn, selectAll: setAllEditable, deselectAll: setAllUneditable, } = (0, useSelection_1.default)(columns, true, 'editable', {
|
|
138
138
|
onBatchChange: (flag) => {
|
|
139
139
|
onColumnBatchChange(flag, 'editable');
|
|
140
140
|
},
|
|
@@ -142,7 +142,7 @@ const ColumnsList = ({ columns: cols, handle, onValidityChange, onChange, onSele
|
|
|
142
142
|
onColumnChange(col, flag, 'editable');
|
|
143
143
|
},
|
|
144
144
|
});
|
|
145
|
-
const { isSelected: isFilterableColumn, isAllSelected: isAllFilterableColumns, isNoneSelected: isNoneFilterableColumns, selectColumn: setFilterableColumn, deselectColumn: setUnFilterableColumn, selectAll: setAllFilterable, deselectAll: setAllUnfilterable, } = useSelection_1.default(columns, true, 'filter', {
|
|
145
|
+
const { isSelected: isFilterableColumn, isAllSelected: isAllFilterableColumns, isNoneSelected: isNoneFilterableColumns, selectColumn: setFilterableColumn, deselectColumn: setUnFilterableColumn, selectAll: setAllFilterable, deselectAll: setAllUnfilterable, } = (0, useSelection_1.default)(columns, true, 'filter', {
|
|
146
146
|
onBatchChange: (flag) => {
|
|
147
147
|
onColumnBatchChange(flag, 'filter');
|
|
148
148
|
},
|
|
@@ -5,5 +5,5 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
7
|
const join_1 = tslib_1.__importDefault(require("../../../../components/utils/join"));
|
|
8
|
-
const NocodeWizardFormBox = (props) => (React.createElement(rebass_1.Box, Object.assign({}, props, { padding: 2, mb: 2, className: join_1.default('ab-NocodeWizardFormBox', props.className) })));
|
|
8
|
+
const NocodeWizardFormBox = (props) => (React.createElement(rebass_1.Box, Object.assign({}, props, { padding: 2, mb: 2, className: (0, join_1.default)('ab-NocodeWizardFormBox', props.className) })));
|
|
9
9
|
exports.NocodeWizardFormBox = NocodeWizardFormBox;
|
|
@@ -15,7 +15,7 @@ const FinanceForm_1 = require("./FinanceForm");
|
|
|
15
15
|
const ConfigurationWizard = (props) => {
|
|
16
16
|
var _a, _b;
|
|
17
17
|
const [isPrimaryKeySelected, setIsValid] = React.useState(true);
|
|
18
|
-
const [adaptableOptions, setAdaptableOptions] = react_1.useState(() => {
|
|
18
|
+
const [adaptableOptions, setAdaptableOptions] = (0, react_1.useState)(() => {
|
|
19
19
|
var _a;
|
|
20
20
|
const gridOptionDefaults = {
|
|
21
21
|
sideBar: {
|
|
@@ -24,7 +24,7 @@ const ConfigurationWizard = (props) => {
|
|
|
24
24
|
};
|
|
25
25
|
return Object.assign(Object.assign({}, props.adaptableOptions), { gridOptions: Object.assign(Object.assign({}, gridOptionDefaults), (_a = props === null || props === void 0 ? void 0 : props.adaptableOptions) === null || _a === void 0 ? void 0 : _a.gridOptions) });
|
|
26
26
|
});
|
|
27
|
-
const [selectedColumns, setSelectedColumns] = react_1.useState(() => {
|
|
27
|
+
const [selectedColumns, setSelectedColumns] = (0, react_1.useState)(() => {
|
|
28
28
|
return props.adaptableOptions.gridOptions.columnDefs.reduce((acc, col) => {
|
|
29
29
|
acc[col.field] = true;
|
|
30
30
|
return acc;
|
|
@@ -99,7 +99,7 @@ const ConfigurationWizard = (props) => {
|
|
|
99
99
|
details: 'Finance Options',
|
|
100
100
|
render: () => (React.createElement(FinanceForm_1.FinanceForm, { adaptableOptions: adaptableOptions, onChangeadAptableOptions: setAdaptableOptions })),
|
|
101
101
|
},
|
|
102
|
-
];
|
|
102
|
+
].filter(Boolean);
|
|
103
103
|
if (props.startSections) {
|
|
104
104
|
sections = [
|
|
105
105
|
...props.startSections.map((section) => {
|
|
@@ -5,7 +5,7 @@ const useSelection = (columns, defaultValue, fieldName, changeListeners) => {
|
|
|
5
5
|
changeListeners = changeListeners || {};
|
|
6
6
|
const onChange = changeListeners.onChange || ((column, flag) => { });
|
|
7
7
|
const onBatchChange = changeListeners.onBatchChange || ((flag) => { });
|
|
8
|
-
const [selected, setSelected] = react_1.useState(typeof defaultValue === 'object'
|
|
8
|
+
const [selected, setSelected] = (0, react_1.useState)(typeof defaultValue === 'object'
|
|
9
9
|
? defaultValue
|
|
10
10
|
: columns.reduce((acc, col) => {
|
|
11
11
|
const flag = fieldName ? col[fieldName] : defaultValue;
|
|
@@ -37,14 +37,14 @@ exports.reducer = reducer;
|
|
|
37
37
|
*/
|
|
38
38
|
const Wizard = (props) => {
|
|
39
39
|
var _a;
|
|
40
|
-
const [state, dispatch] = react_1.useReducer(exports.reducer, Object.assign(Object.assign({}, exports.initialState), { adaptableOptions: props.adaptableOptions }));
|
|
41
|
-
const [droppableKey, setDroppableKey] = react_1.useState(Date.now());
|
|
42
|
-
const [isDataLoading, setIsDataLoading] = react_1.useState(false);
|
|
40
|
+
const [state, dispatch] = (0, react_1.useReducer)(exports.reducer, Object.assign(Object.assign({}, exports.initialState), { adaptableOptions: props.adaptableOptions }));
|
|
41
|
+
const [droppableKey, setDroppableKey] = (0, react_1.useState)(Date.now());
|
|
42
|
+
const [isDataLoading, setIsDataLoading] = (0, react_1.useState)(false);
|
|
43
43
|
const handleDataSource = (array, file) => {
|
|
44
44
|
var _a;
|
|
45
45
|
const dataSourceInfo = (props.prepareData || helper_1.prepareDataSource)(array, file);
|
|
46
46
|
try {
|
|
47
|
-
Utils_1.validDataSource(dataSourceInfo);
|
|
47
|
+
(0, Utils_1.validDataSource)(dataSourceInfo);
|
|
48
48
|
}
|
|
49
49
|
catch (err) {
|
|
50
50
|
return dispatch({
|
|
@@ -52,7 +52,7 @@ const Wizard = (props) => {
|
|
|
52
52
|
payload: `Invalid adaptable configuration - ${err}`,
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
const gridOptions = helper_1.prepareGridOptions(dataSourceInfo, (_a = props.adaptableOptions) === null || _a === void 0 ? void 0 : _a.gridOptions);
|
|
55
|
+
const gridOptions = (0, helper_1.prepareGridOptions)(dataSourceInfo, (_a = props.adaptableOptions) === null || _a === void 0 ? void 0 : _a.gridOptions);
|
|
56
56
|
const adaptableOptions = Object.assign({}, props.adaptableOptions);
|
|
57
57
|
adaptableOptions.adaptableId = adaptableOptions.adaptableId || (file ? file.name : '');
|
|
58
58
|
adaptableOptions.gridOptions = gridOptions;
|
|
@@ -83,7 +83,7 @@ const Wizard = (props) => {
|
|
|
83
83
|
props.onInit(adaptableOptions);
|
|
84
84
|
} }));
|
|
85
85
|
}
|
|
86
|
-
react_1.useEffect(() => {
|
|
86
|
+
(0, react_1.useEffect)(() => {
|
|
87
87
|
if (props.fetchData) {
|
|
88
88
|
setIsDataLoading(true);
|
|
89
89
|
props.fetchData().then((data) => {
|
|
@@ -69,7 +69,7 @@ const prepareGridOptions = (dataSourceInfo, defaultGridOptions) => {
|
|
|
69
69
|
const firstItem = dataSourceInfo.data[0];
|
|
70
70
|
const columnDefs = dataSourceInfo.columns.map((columnName) => {
|
|
71
71
|
const firstItemValue = firstItem[columnName];
|
|
72
|
-
const columnType = exports.getColTypeFromValue(firstItemValue);
|
|
72
|
+
const columnType = (0, exports.getColTypeFromValue)(firstItemValue);
|
|
73
73
|
return {
|
|
74
74
|
headerName: columnName,
|
|
75
75
|
field: columnName,
|
|
@@ -8,9 +8,9 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
|
|
|
8
8
|
const AdaptableObjectCompactList_1 = require("../Components/AdaptableObjectList/AdaptableObjectCompactList");
|
|
9
9
|
const react_redux_1 = require("react-redux");
|
|
10
10
|
const ActiveAlertsPanel = () => {
|
|
11
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
11
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
12
12
|
const filterModule = adaptable.ModuleService.getModuleById(ModuleConstants.AlertModuleId);
|
|
13
|
-
const alerts = react_redux_1.useSelector((state) => state.System.AdaptableAlerts);
|
|
13
|
+
const alerts = (0, react_redux_1.useSelector)((state) => state.System.AdaptableAlerts);
|
|
14
14
|
return React.createElement(AdaptableObjectCompactList_1.AdaptableObjectCompactList, { abObjects: alerts, module: filterModule });
|
|
15
15
|
};
|
|
16
16
|
exports.ActiveAlertsPanel = ActiveAlertsPanel;
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
7
7
|
const AlertEmptyView = (props) => {
|
|
8
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
8
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
9
9
|
const accessLevel = adaptable.api.internalApi
|
|
10
10
|
.getEntitlementService()
|
|
11
11
|
.getEntitlementAccessLevelForModule(props.module.moduleInfo.ModuleName);
|
|
@@ -12,7 +12,7 @@ class AlertEntityRow extends React.Component {
|
|
|
12
12
|
render() {
|
|
13
13
|
let alertDefinition = this.props.adaptableObject;
|
|
14
14
|
let messageTypes = ['Info', 'Success', 'Warning', 'Error'];
|
|
15
|
-
let colItems = Helper_1.cloneObject(this.props.colItems);
|
|
15
|
+
let colItems = (0, Helper_1.cloneObject)(this.props.colItems);
|
|
16
16
|
colItems[0].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.scopeApi.getScopeToString(alertDefinition.Scope) }));
|
|
17
17
|
colItems[1].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.alertApi.getAlertRuleDescription(alertDefinition) }));
|
|
18
18
|
colItems[2].Content = (React.createElement("div", null,
|
|
@@ -11,14 +11,14 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
|
|
|
11
11
|
const ActiveAlertsPanel_1 = require("./ActiveAlertsPanel");
|
|
12
12
|
const initialStyle = { color: '', background: '' };
|
|
13
13
|
const AlertStatusPanel = () => {
|
|
14
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
14
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
15
15
|
const [style, setStyle] = React.useState(initialStyle);
|
|
16
16
|
const module = adaptable.ModuleService.getModuleById(ModuleConstants.AlertModuleId);
|
|
17
17
|
const statusbarHighlightDuration = adaptable.adaptableOptions.alertOptions.statusbarHighlightDuration;
|
|
18
18
|
/**
|
|
19
19
|
* Using a selector to so the component updates each time an alert is triggered.
|
|
20
20
|
*/
|
|
21
|
-
const alerts = react_redux_1.useSelector((state) => state.System.AdaptableAlerts);
|
|
21
|
+
const alerts = (0, react_redux_1.useSelector)((state) => state.System.AdaptableAlerts);
|
|
22
22
|
const text = alerts.length == 0 ? '0 Alerts' : alerts.length == 1 ? '1 Alert' : alerts.length + ' Alerts';
|
|
23
23
|
const handleAction = React.useCallback(() => adaptable.api.alertApi.showAlertPopup(), []);
|
|
24
24
|
// blinking logic
|
|
@@ -33,7 +33,7 @@ const AlertStatusPanel = () => {
|
|
|
33
33
|
if (noNewAlerts) {
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
|
-
const { color, background } = getAlertButtonStyle_1.getAlertButtonStyle(alerts);
|
|
36
|
+
const { color, background } = (0, getAlertButtonStyle_1.getAlertButtonStyle)(alerts);
|
|
37
37
|
setStyle({ color, background });
|
|
38
38
|
if (timeoutId.current) {
|
|
39
39
|
clearTimeout(timeoutId.current);
|
|
@@ -25,7 +25,7 @@ class AlertViewPanelComponent extends React.Component {
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const messageType = UIHelper_1.default.getMessageTypeFromAdaptableAlerts(this.props.AdaptableAlerts);
|
|
28
|
-
const { color: buttonTextColor, background: buttonBackground } = getAlertButtonStyle_1.getAlertButtonStyle(this.props.AdaptableAlerts);
|
|
28
|
+
const { color: buttonTextColor, background: buttonBackground } = (0, getAlertButtonStyle_1.getAlertButtonStyle)(this.props.AdaptableAlerts);
|
|
29
29
|
const collapsedText = this.props.AdaptableAlerts.length == 0
|
|
30
30
|
? '0 Alerts'
|
|
31
31
|
: this.props.AdaptableAlerts.length == 1
|
|
@@ -53,4 +53,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
53
53
|
onDeleteAllAlert: (alerts) => dispatch(SystemRedux.SystemAlertDeleteAll(alerts)),
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
exports.AlertViewPanelControl = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(AlertViewPanelComponent);
|
|
56
|
+
exports.AlertViewPanelControl = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(AlertViewPanelComponent);
|
|
@@ -16,7 +16,7 @@ const AdaptableContext_1 = require("../../AdaptableContext");
|
|
|
16
16
|
const StylePreview_1 = require("../../../components/StylePreview");
|
|
17
17
|
const Panel_1 = tslib_1.__importDefault(require("../../../components/Panel"));
|
|
18
18
|
const HighlightStyle = (props) => {
|
|
19
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
19
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
20
20
|
const options = [
|
|
21
21
|
{
|
|
22
22
|
label: 'Use Message Type',
|
|
@@ -40,7 +40,7 @@ const HighlightStyle = (props) => {
|
|
|
40
40
|
Boolean(props.highlight) && (React.createElement(DropdownButton_1.default, { items: options, columns: ['label'] }, typeof props.highlight === 'boolean' ? (React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 },
|
|
41
41
|
"Use Message Type's",
|
|
42
42
|
' ',
|
|
43
|
-
AdaptableContext_1.useAdaptable().api.internalApi.getCorrectEnglishVariant('Colour'))) : (React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 }, "Create a Custom Style"))))),
|
|
43
|
+
(0, AdaptableContext_1.useAdaptable)().api.internalApi.getCorrectEnglishVariant('Colour'))) : (React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 }, "Create a Custom Style"))))),
|
|
44
44
|
typeof props.highlight === 'object' && (React.createElement(Panel_1.default, { margin: 2 },
|
|
45
45
|
React.createElement(rebass_1.Box, { paddingLeft: 3 },
|
|
46
46
|
React.createElement(StyleComponent_1.StyleComponent, { headless: true, api: adaptable.api, Style: props.highlight, UpdateStyle: (style) => {
|
|
@@ -48,8 +48,8 @@ const HighlightStyle = (props) => {
|
|
|
48
48
|
} }))))));
|
|
49
49
|
};
|
|
50
50
|
const renderAlertBehaviourWizardSummary = (alertDefinition) => {
|
|
51
|
-
const { api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
52
|
-
return exports.renderAlertBehaviourSummary(alertDefinition, api);
|
|
51
|
+
const { api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
52
|
+
return (0, exports.renderAlertBehaviourSummary)(alertDefinition, api);
|
|
53
53
|
};
|
|
54
54
|
exports.renderAlertBehaviourWizardSummary = renderAlertBehaviourWizardSummary;
|
|
55
55
|
const renderAlertBehaviourSummary = (alert, api, allowWrap = false) => {
|
|
@@ -88,7 +88,7 @@ const renderAlertBehaviourSummary = (alert, api, allowWrap = false) => {
|
|
|
88
88
|
};
|
|
89
89
|
exports.renderAlertBehaviourSummary = renderAlertBehaviourSummary;
|
|
90
90
|
const AlertBehaviourWizardSection = (props) => {
|
|
91
|
-
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
91
|
+
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
92
92
|
const { AlertProperties = {} } = data;
|
|
93
93
|
const rowAddedAlert = api.internalApi.isAlertDefinitionForAddedRowChangeEvent(data);
|
|
94
94
|
const rowRemovedAlert = api.internalApi.isAlertDefinitionForRemovedRowChangeEvent(data);
|
|
@@ -17,7 +17,7 @@ const AlertButtonsEditor = (props) => {
|
|
|
17
17
|
const onChange = (newButtons) => {
|
|
18
18
|
props.onChange(newButtons);
|
|
19
19
|
};
|
|
20
|
-
const AlertButtons = Helper_1.cloneObject(props.AlertButtons || []) || [];
|
|
20
|
+
const AlertButtons = (0, Helper_1.cloneObject)(props.AlertButtons || []) || [];
|
|
21
21
|
const buttonActions = [];
|
|
22
22
|
buttonActions.push('highlight-row', 'jump-to-row', 'highlight-cell', 'jump-to-cell', 'undo');
|
|
23
23
|
buttonActions.push('suspend');
|
|
@@ -136,7 +136,7 @@ const AlertButtonsEditor = (props) => {
|
|
|
136
136
|
}));
|
|
137
137
|
}, checked: button.Action === actionName ||
|
|
138
138
|
(Array.isArray(button.Action) && button.Action.includes(actionName)) },
|
|
139
|
-
React.createElement(rebass_1.Text, { fontSize: 2 }, sentence_case_1.sentenceCase(actionName))));
|
|
139
|
+
React.createElement(rebass_1.Text, { fontSize: 2 }, (0, sentence_case_1.sentenceCase)(actionName))));
|
|
140
140
|
}),
|
|
141
141
|
btnUserFunctions.length ? (React.createElement(CheckBox_1.CheckBox, { checked: true, disabled: true },
|
|
142
142
|
React.createElement(rebass_1.Text, { fontSize: 2 },
|
|
@@ -22,7 +22,7 @@ const DEFAULT_BUTTONS = [
|
|
|
22
22
|
];
|
|
23
23
|
const renderAlertDisplaySummary = () => {
|
|
24
24
|
var _a;
|
|
25
|
-
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
25
|
+
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
26
26
|
if (!((_a = data.AlertProperties) === null || _a === void 0 ? void 0 : _a.DisplayNotification)) {
|
|
27
27
|
return (React.createElement(rebass_1.Text, { fontSize: 2 },
|
|
28
28
|
"Alert type ",
|
|
@@ -59,7 +59,7 @@ const AlertPreview = (_a) => {
|
|
|
59
59
|
exports.AlertPreview = AlertPreview;
|
|
60
60
|
const AlertDisplayWizardSection = (props) => {
|
|
61
61
|
var _a, _b, _c, _d;
|
|
62
|
-
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
62
|
+
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
63
63
|
const messageType = data.MessageType;
|
|
64
64
|
const messageText = api.alertApi.getAlertDescription(data);
|
|
65
65
|
const adaptableAlert = {
|
|
@@ -21,10 +21,10 @@ const AlertRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/
|
|
|
21
21
|
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
22
22
|
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
23
23
|
const AlertWizard = (props) => {
|
|
24
|
-
const [alertDefinition, setAlertDefinition] = react_1.useState(() => {
|
|
24
|
+
const [alertDefinition, setAlertDefinition] = (0, react_1.useState)(() => {
|
|
25
25
|
var _a;
|
|
26
26
|
const alertDefinition = props.data
|
|
27
|
-
? Helper_1.cloneObject(props.data)
|
|
27
|
+
? (0, Helper_1.cloneObject)(props.data)
|
|
28
28
|
: ObjectFactory_1.default.CreateEmptyAlertDefinition();
|
|
29
29
|
if (!alertDefinition.Rule.BooleanExpression &&
|
|
30
30
|
!alertDefinition.Rule.ObservableExpression &&
|
|
@@ -35,7 +35,7 @@ const AlertWizard = (props) => {
|
|
|
35
35
|
alertDefinition.MessageType = (_a = alertDefinition.MessageType) !== null && _a !== void 0 ? _a : GeneralConstants_1.ALERT_DEFAULT_MESSAGE_TYPE;
|
|
36
36
|
return alertDefinition;
|
|
37
37
|
});
|
|
38
|
-
const { api } = AdaptableContext_1.useAdaptable();
|
|
38
|
+
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
39
39
|
const updateAlertDefinition = (alertDefinition) => {
|
|
40
40
|
var _a;
|
|
41
41
|
// we need to adjust the alert actions&behaviours based on the predicate type(row/cell based)
|
|
@@ -114,7 +114,7 @@ const AlertWizard = (props) => {
|
|
|
114
114
|
}
|
|
115
115
|
setAlertDefinition(alertDefinition);
|
|
116
116
|
};
|
|
117
|
-
const dispatch = react_redux_1.useDispatch();
|
|
117
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
118
118
|
const handleFinish = () => {
|
|
119
119
|
if (props.data) {
|
|
120
120
|
dispatch(AlertRedux.AlertDefinitionEdit(alertDefinition));
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
7
7
|
const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
8
8
|
const BaseAlertRulesWizardSection = (props) => {
|
|
9
|
-
const { data, api, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
9
|
+
const { data, api, moduleInfo } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
10
10
|
const wholeRowScope = props.wholeRowScope != null ? props.wholeRowScope : api.scopeApi.scopeIsAll(data.Scope);
|
|
11
11
|
const predicateDefs = api.alertApi.getAlertPredicateDefsForScope(data.Scope);
|
|
12
12
|
return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: "Any", data: data, predicateDefs: predicateDefs, onChange: props.onChange, showAggregation: !wholeRowScope ? false : true, showObservable: !wholeRowScope ? false : true, showBoolean: true, showPredicate: true, descriptions: {
|
|
@@ -8,7 +8,7 @@ const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
|
8
8
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
9
9
|
const ValueSelector_1 = require("../../Components/ValueSelector");
|
|
10
10
|
const BaseAlertScopeWizardSection = (props) => {
|
|
11
|
-
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
11
|
+
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
12
12
|
return (React.createElement(rebass_1.Flex, { flexDirection: "column", style: { height: '100%' }, padding: 2 },
|
|
13
13
|
React.createElement(NewScopeComponent_1.NewScopeComponent, { descriptions: {
|
|
14
14
|
rowScope: 'Changes anywhere in the row will trigger an alert',
|
|
@@ -42,7 +42,7 @@ const BaseAlertScopeWizardSection = (props) => {
|
|
|
42
42
|
};
|
|
43
43
|
exports.BaseAlertScopeWizardSection = BaseAlertScopeWizardSection;
|
|
44
44
|
const renderBaseAlertScopeSummary = (data) => {
|
|
45
|
-
const { api: { scopeApi }, } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
45
|
+
const { api: { scopeApi }, } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
46
46
|
const columnsInScope = scopeApi.getColumnsForScope(data.Scope);
|
|
47
47
|
return (React.createElement(React.Fragment, null,
|
|
48
48
|
React.createElement(rebass_1.Box, null,
|
|
@@ -110,4 +110,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
110
110
|
onRunBulkUpdate: () => dispatch(BulkUpdateRedux.BulkUpdateComplete(false)),
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
exports.BulkUpdatePopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(BulkUpdatePopupComponent);
|
|
113
|
+
exports.BulkUpdatePopup = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(BulkUpdatePopupComponent);
|
|
@@ -50,7 +50,7 @@ class BulkUpdateViewPanelComponent extends React.Component {
|
|
|
50
50
|
fill: 'currentColor',
|
|
51
51
|
};
|
|
52
52
|
const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
53
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "row", className: join_1.default(shouldDisable ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__BulkUpdate__wrap`), flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
53
|
+
return (React.createElement(rebass_1.Flex, { flexDirection: "row", className: (0, join_1.default)(shouldDisable ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__BulkUpdate__wrap`), flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
54
54
|
React.createElement(rebass_1.Flex, null,
|
|
55
55
|
React.createElement(ColumnValueSelector_1.ColumnValueSelector, { selectedGridCells: this.props.SelectedGridCells, newLabel: "New", existingLabel: "Existing", dropdownButtonProps: {
|
|
56
56
|
listMinWidth: 160,
|
|
@@ -106,4 +106,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
106
106
|
onRunBulkUpdate: () => dispatch(BulkUpdateRedux.BulkUpdateComplete(false)),
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
exports.BulkUpdateViewPanelControl = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(BulkUpdateViewPanelComponent);
|
|
109
|
+
exports.BulkUpdateViewPanelControl = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(BulkUpdateViewPanelComponent);
|
|
@@ -15,4 +15,4 @@ export declare class CalculatedColumnSummaryComponent extends React.Component<Ca
|
|
|
15
15
|
onCloseWizard(): void;
|
|
16
16
|
onFinishWizard: (calculatedColumn: CalculatedColumn) => void;
|
|
17
17
|
}
|
|
18
|
-
export declare let CalculatedColumnSummary: import("react-redux").ConnectedComponent<typeof CalculatedColumnSummaryComponent, import("react-redux").Omit<React.ClassAttributes<CalculatedColumnSummaryComponent> & CalculatedColumnSummaryProps, "ref" | "
|
|
18
|
+
export declare let CalculatedColumnSummary: import("react-redux").ConnectedComponent<typeof CalculatedColumnSummaryComponent, import("react-redux").Omit<React.ClassAttributes<CalculatedColumnSummaryComponent> & CalculatedColumnSummaryProps, "key" | "ref" | "onSuspend" | "api" | "CalculatedColumns" | "modalContainer" | "moduleInfo" | "accessLevel" | "popupParams" | "onClearPopupParams" | "teamSharingActivated" | "onClosePopup" | "onUnSuspend" | "onShare" | "onEdit" | "summarisedColumn" | "onDeleteConfirm">>;
|
|
@@ -60,4 +60,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
60
60
|
onEdit: (calculatedColumn) => dispatch(CalculatedColumnRedux.CalculatedColumnEdit(calculatedColumn)),
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
exports.CalculatedColumnSummary = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(CalculatedColumnSummaryComponent);
|
|
63
|
+
exports.CalculatedColumnSummary = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(CalculatedColumnSummaryComponent);
|
|
@@ -35,7 +35,7 @@ const isValidCalculatedColumnDefinition = (data, api) => {
|
|
|
35
35
|
exports.isValidCalculatedColumnDefinition = isValidCalculatedColumnDefinition;
|
|
36
36
|
const CalculatedColumnDefinitionWizardSection = (props) => {
|
|
37
37
|
var _a;
|
|
38
|
-
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
38
|
+
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
39
39
|
const handleColumnIdChange = (event) => {
|
|
40
40
|
let e = event.target;
|
|
41
41
|
props.onChange(Object.assign(Object.assign({}, data), { ColumnId: e.value }));
|
|
@@ -45,9 +45,9 @@ const CalculatedColumnDefinitionWizardSection = (props) => {
|
|
|
45
45
|
props.onChange(Object.assign(Object.assign({}, data), { FriendlyName: e.value }));
|
|
46
46
|
};
|
|
47
47
|
const inEdit = props.isEdit;
|
|
48
|
-
const validCheck = exports.isValidCalculatedColumnDefinition(data, api);
|
|
48
|
+
const validCheck = (0, exports.isValidCalculatedColumnDefinition)(data, api);
|
|
49
49
|
const ErrorMessage = validCheck === true ? null : validCheck;
|
|
50
|
-
const [ColumnNameFocused, setColumnNameFocused] = react_1.useState(false);
|
|
50
|
+
const [ColumnNameFocused, setColumnNameFocused] = (0, react_1.useState)(false);
|
|
51
51
|
const ColumnName = data.FriendlyName;
|
|
52
52
|
const ColumnId = data.ColumnId;
|
|
53
53
|
const { ShowToolTip, HeaderToolTip } = (_a = data.CalculatedColumnSettings) !== null && _a !== void 0 ? _a : {};
|
|
@@ -11,7 +11,7 @@ const Tabs_1 = require("../../../components/Tabs");
|
|
|
11
11
|
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
12
12
|
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
13
13
|
const renderCalculatedColumnExpressionSummary = (data) => {
|
|
14
|
-
const { api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
14
|
+
const { api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
15
15
|
return (React.createElement(rebass_1.Box, { fontSize: 2 },
|
|
16
16
|
"Column scalar expression:",
|
|
17
17
|
' ',
|
|
@@ -45,8 +45,8 @@ QueryTab.defaultProps = {
|
|
|
45
45
|
isTabsTab: true,
|
|
46
46
|
};
|
|
47
47
|
const CalculatedColumnExpressionWizardSection = (props) => {
|
|
48
|
-
const { api, data, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
49
|
-
const initialData = react_1.useMemo(() => api.internalApi.getQueryPreviewData(), []);
|
|
48
|
+
const { api, data, moduleInfo } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
49
|
+
const initialData = (0, react_1.useMemo)(() => api.internalApi.getQueryPreviewData(), []);
|
|
50
50
|
const [selectedTab, setSelectedTab] = React.useState(() => {
|
|
51
51
|
return data.Query.AggregatedScalarExpression == undefined
|
|
52
52
|
? 'ScalarExpression'
|
|
@@ -15,7 +15,7 @@ const ValueSelector_1 = require("../../Components/ValueSelector");
|
|
|
15
15
|
const SpecialColumnSettingsWizardStep_1 = require("../../SpecialColumnSettingsWizardStep");
|
|
16
16
|
const getCalculatedColumnSettingsTags_1 = require("../Utilities/getCalculatedColumnSettingsTags");
|
|
17
17
|
const renderCalculatedColumnSettingsSummary = (data) => {
|
|
18
|
-
const options = getCalculatedColumnSettingsTags_1.getCalculatedColumnSettingsTags(data.CalculatedColumnSettings);
|
|
18
|
+
const options = (0, getCalculatedColumnSettingsTags_1.getCalculatedColumnSettingsTags)(data.CalculatedColumnSettings);
|
|
19
19
|
return (React.createElement(rebass_1.Box, { fontSize: 2 },
|
|
20
20
|
React.createElement(ValueSelector_1.ValueOptionsTags, { toLabel: (x) => x, toIdentifier: (c) => c, readOnly: true, options: options, value: options })));
|
|
21
21
|
};
|
|
@@ -30,14 +30,14 @@ const isValidCalculatedColumnSettings = (data) => {
|
|
|
30
30
|
exports.isValidCalculatedColumnSettings = isValidCalculatedColumnSettings;
|
|
31
31
|
const CalculatedColumnSettingsWizardSection = (props) => {
|
|
32
32
|
var _a, _b;
|
|
33
|
-
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
34
|
-
const calculatedColumnExpressionService = react_1.useMemo(() => api.internalApi.getCalculatedColumnExpressionService(), []);
|
|
33
|
+
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
34
|
+
const calculatedColumnExpressionService = (0, react_1.useMemo)(() => api.internalApi.getCalculatedColumnExpressionService(), []);
|
|
35
35
|
const handleDataTypeChange = (dataType) => {
|
|
36
36
|
var _a;
|
|
37
37
|
const aggregatable = dataType == 'Number' ? (_a = data.CalculatedColumnSettings) === null || _a === void 0 ? void 0 : _a.Aggregatable : false;
|
|
38
38
|
props.onChange(Object.assign(Object.assign({}, data), { CalculatedColumnSettings: Object.assign(Object.assign({}, data.CalculatedColumnSettings), { DataType: dataType, Aggregatable: aggregatable }) }));
|
|
39
39
|
};
|
|
40
|
-
const validCheck = exports.isValidCalculatedColumnSettings(data);
|
|
40
|
+
const validCheck = (0, exports.isValidCalculatedColumnSettings)(data);
|
|
41
41
|
const ErrorMessage = validCheck === true ? null : validCheck;
|
|
42
42
|
let options = [
|
|
43
43
|
{ value: 'Number', label: 'Number' },
|
|
@@ -17,12 +17,12 @@ const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection"
|
|
|
17
17
|
const CalculatedColumnSettingsWizardSection_1 = require("./CalculatedColumnSettingsWizardSection");
|
|
18
18
|
const CalculatedColumnWizard = (props) => {
|
|
19
19
|
var _a;
|
|
20
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
21
|
-
const allCalculatedColumns = react_redux_1.useSelector((state) => state.CalculatedColumn.CalculatedColumns);
|
|
22
|
-
const [calculatedColumn, setCalculatedColumn] = react_1.useState(() => {
|
|
20
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
21
|
+
const allCalculatedColumns = (0, react_redux_1.useSelector)((state) => state.CalculatedColumn.CalculatedColumns);
|
|
22
|
+
const [calculatedColumn, setCalculatedColumn] = (0, react_1.useState)(() => {
|
|
23
23
|
var _a;
|
|
24
24
|
if (props.data) {
|
|
25
|
-
return Helper_1.cloneObject(props.data);
|
|
25
|
+
return (0, Helper_1.cloneObject)(props.data);
|
|
26
26
|
}
|
|
27
27
|
if ((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.column) {
|
|
28
28
|
const calculatedColumn = allCalculatedColumns.find((calculatedColumn) => calculatedColumn.ColumnId === props.popupParams.column.columnId);
|
|
@@ -32,7 +32,7 @@ const CalculatedColumnWizard = (props) => {
|
|
|
32
32
|
}
|
|
33
33
|
return ObjectFactory_1.default.CreateEmptyCalculatedColumn();
|
|
34
34
|
});
|
|
35
|
-
const dispatch = react_redux_1.useDispatch();
|
|
35
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
36
36
|
const isEdit = Boolean(props.data) || ((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.action) === 'Edit';
|
|
37
37
|
const handleFinish = () => {
|
|
38
38
|
if (isEdit) {
|
|
@@ -34,4 +34,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
34
34
|
onCreateCellSummary: () => dispatch(GridRedux.GridCreateCellSummary()),
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
exports.CellSummaryPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(CellSummaryPopupComponent);
|
|
37
|
+
exports.CellSummaryPopup = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(CellSummaryPopupComponent);
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const CellSummaryDetails_1 = require("./CellSummaryDetails");
|
|
7
7
|
const react_redux_1 = require("react-redux");
|
|
8
8
|
const CellSummaryStatusBarSubPanelPopover = () => {
|
|
9
|
-
const cellSummary = react_redux_1.useSelector((state) => state.Grid.CellSummary);
|
|
9
|
+
const cellSummary = (0, react_redux_1.useSelector)((state) => state.Grid.CellSummary);
|
|
10
10
|
const summary = React.createElement(CellSummaryDetails_1.CellSummaryDetails, { CellSummary: cellSummary });
|
|
11
11
|
return cellSummary && cellSummary.Count ? (summary) : (
|
|
12
12
|
// the extra wrapper is added because the empty text is rendered
|
|
@@ -11,8 +11,8 @@ const GridRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Grid
|
|
|
11
11
|
const CellSummaryStatusBarSubPanelPopover_1 = require("./CellSummaryStatusBarSubPanelPopover");
|
|
12
12
|
const CellSummaryStatusPanel = () => {
|
|
13
13
|
var _a;
|
|
14
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
15
|
-
const dispatch = react_redux_1.useDispatch();
|
|
14
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
15
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
16
16
|
const cellSummaryApi = adaptable.api.cellSummaryApi;
|
|
17
17
|
const module = adaptable.ModuleService.getModuleById(ModuleConstants.CellSummaryModuleId);
|
|
18
18
|
const text = `${cellSummaryApi.getCurrentCellSummaryOperation()}: ${(_a = cellSummaryApi.getCurrentCellSummaryOperationValue()) !== null && _a !== void 0 ? _a : 'N/A'}`;
|
|
@@ -90,4 +90,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
90
90
|
onCreateCellSummary: () => dispatch(GridRedux.GridCreateCellSummary()),
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
exports.CellSummaryViewPanelControl = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(CellSummaryViewPanelComponent);
|
|
93
|
+
exports.CellSummaryViewPanelControl = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(CellSummaryViewPanelComponent);
|