@adaptabletools/adaptable 22.0.0-canary.1 → 22.0.0-canary.10
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/agGrid.d.ts +9 -9
- package/agGrid.js +1 -0
- package/index.css +1280 -1400
- package/index.css.map +1 -1
- package/index.d.ts +66 -0
- package/index.js +73 -0
- package/package.json +3 -3
- package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -6
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/ContainerOptions.d.ts +55 -15
- package/src/AdaptableOptions/CustomSortOptions.d.ts +4 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +1 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -2
- package/src/AdaptableState/AdaptableState.d.ts +2 -0
- package/src/AdaptableState/AlertState.d.ts +5 -2
- package/src/AdaptableState/ChartingState.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableAlert.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableButton.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +16 -10
- package/src/AdaptableState/Common/AdaptableColumnContext.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableObject.d.ts +20 -2
- package/src/AdaptableState/Common/AdaptableRowContext.d.ts +11 -0
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +8 -0
- package/src/AdaptableState/Common/BaseContext.d.ts +2 -0
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
- package/src/AdaptableState/Common/DataUpdateConfig.d.ts +17 -0
- package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
- package/src/AdaptableState/Common/NamedObject.js +1 -0
- package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
- package/src/AdaptableState/Common/RowSummary.d.ts +1 -1
- package/src/AdaptableState/Common/Schedule.d.ts +8 -5
- package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +2 -2
- package/src/AdaptableState/Common/TransposeConfig.d.ts +12 -10
- package/src/AdaptableState/CustomSortState.d.ts +5 -1
- package/src/AdaptableState/DashboardState.d.ts +1 -1
- package/src/AdaptableState/ExportState.d.ts +1 -1
- package/src/AdaptableState/FlashingCellState.d.ts +6 -2
- package/src/AdaptableState/FormatColumnState.d.ts +5 -9
- package/src/AdaptableState/InitialState.d.ts +10 -1
- package/src/AdaptableState/InternalState.d.ts +2 -0
- package/src/AdaptableState/LayoutState.d.ts +7 -3
- package/src/AdaptableState/NamedQueryState.d.ts +1 -1
- package/src/AdaptableState/PlusMinusState.d.ts +5 -1
- package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
- package/src/AdaptableState/ShortcutState.d.ts +5 -1
- package/src/AdaptableState/StyledColumnState.d.ts +1 -1
- package/src/AdaptableState/ThemeState.d.ts +1 -1
- package/src/AdaptableState/UserInterfaceState.d.ts +14 -0
- package/src/AdaptableState/UserInterfaceState.js +1 -0
- package/src/Api/AlertApi.d.ts +6 -0
- package/src/Api/CustomSortApi.d.ts +12 -3
- package/src/Api/DataSetApi.d.ts +1 -1
- package/src/Api/FlashingCellApi.d.ts +6 -0
- package/src/Api/FormatColumnApi.d.ts +10 -4
- package/src/Api/GridApi.d.ts +23 -12
- package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
- package/src/Api/Implementation/AlertApiImpl.js +6 -6
- package/src/Api/Implementation/ApiBase.d.ts +1 -1
- package/src/Api/Implementation/ApiBase.js +2 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ChartingApiImpl.js +6 -2
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
- package/src/Api/Implementation/CommentsApiImpl.js +1 -0
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +6 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +6 -2
- package/src/Api/Implementation/DashboardApiImpl.js +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
- package/src/Api/Implementation/DataImportApiImpl.js +1 -0
- package/src/Api/Implementation/DataSetApiImpl.js +1 -0
- package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
- package/src/Api/Implementation/EventApiImpl.js +16 -14
- package/src/Api/Implementation/ExportApiImpl.js +1 -0
- package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
- package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
- package/src/Api/Implementation/FilterApiImpl.js +3 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -5
- package/src/Api/Implementation/FormatColumnApiImpl.js +7 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
- package/src/Api/Implementation/GridApiImpl.d.ts +10 -10
- package/src/Api/Implementation/GridApiImpl.js +36 -21
- package/src/Api/Implementation/GridFilterApiImpl.js +1 -0
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -0
- package/src/Api/Implementation/LayoutApiImpl.js +5 -1
- package/src/Api/Implementation/LayoutHelpers.js +7 -0
- package/src/Api/Implementation/NamedQueryApiImpl.js +3 -2
- package/src/Api/Implementation/NoteApiImpl.js +1 -0
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +1 -0
- package/src/Api/Implementation/PlusMinusApiImpl.js +3 -0
- package/src/Api/Implementation/PredicateApiImpl.js +1 -0
- package/src/Api/Implementation/RowFormApiImpl.js +1 -0
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +4 -0
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ShortcutApiImpl.js +3 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +1 -0
- package/src/Api/Implementation/SystemStatusApiImpl.js +8 -9
- package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +1 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +15 -1
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
- package/src/Api/Internal/ColumnInternalApi.js +1 -1
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +0 -10
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -19
- package/src/Api/Internal/FreeTextColumnInternalApi.js +2 -2
- package/src/Api/Internal/LayoutInternalApi.js +1 -1
- package/src/Api/Internal/NamedQueryInternalApi.js +4 -4
- package/src/Api/LayoutApi.d.ts +6 -0
- package/src/Api/PlusMinusApi.d.ts +6 -0
- package/src/Api/ScheduleApi.d.ts +6 -0
- package/src/Api/ShortcutApi.d.ts +6 -0
- package/src/Api/UserInterfaceApi.d.ts +17 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +8 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.js +36 -0
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NoteRedux.js +1 -1
- package/src/Redux/ActionsReducers/UserInterfaceRedux.d.ts +11 -0
- package/src/Redux/ActionsReducers/UserInterfaceRedux.js +21 -0
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
- package/src/Redux/Store/AdaptableStore.js +113 -57
- package/src/Strategy/AdaptableModuleBase.js +4 -0
- package/src/Strategy/AlertModule.js +5 -0
- package/src/Strategy/BulkUpdateModule.js +8 -8
- package/src/Strategy/CalculatedColumnModule.js +1 -0
- package/src/Strategy/CellSummaryModule.js +1 -1
- package/src/Strategy/CustomSortModule.js +4 -0
- package/src/Strategy/DataChangeHistoryModule.js +1 -0
- package/src/Strategy/FlashingCellModule.js +6 -0
- package/src/Strategy/FormatColumnModule.js +4 -0
- package/src/Strategy/FreeTextColumnModule.js +1 -0
- package/src/Strategy/LayoutModule.js +6 -5
- package/src/Strategy/PlusMinusModule.js +7 -1
- package/src/Strategy/QuickSearchModule.js +1 -1
- package/src/Strategy/ScheduleModule.js +5 -0
- package/src/Strategy/SettingsPanelModule.js +11 -7
- package/src/Strategy/ShortcutModule.js +6 -0
- package/src/Strategy/SmartEditModule.js +10 -10
- package/src/Strategy/TeamSharingModule.js +10 -10
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +0 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +3 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -3
- package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -3
- package/src/Utilities/Extensions/StringExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/StringExtensions.js +16 -0
- package/src/Utilities/Helpers/FormatHelper.js +9 -2
- package/src/Utilities/Helpers/StyleHelper.js +14 -0
- package/src/Utilities/MenuItem.js +18 -0
- package/src/Utilities/ObjectFactory.js +16 -3
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +8 -0
- package/src/Utilities/Services/AlertService.js +6 -4
- package/src/Utilities/Services/AnnotationsService.js +4 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -1
- package/src/Utilities/Services/ChartingService.js +1 -0
- package/src/Utilities/Services/DataService.js +11 -3
- package/src/Utilities/Services/Fdc3Service.js +9 -7
- package/src/Utilities/Services/FlashingCellService.js +5 -0
- package/src/Utilities/Services/LicenseService/index.js +1 -1
- package/src/Utilities/Services/MetamodelService.js +2 -2
- package/src/Utilities/Services/ModuleService.js +5 -6
- package/src/Utilities/Services/QueryLanguageService.js +6 -5
- package/src/Utilities/Services/RowFormService.js +1 -0
- package/src/Utilities/Services/RowSummaryService.js +10 -7
- package/src/Utilities/Services/TeamSharingService.js +3 -1
- package/src/Utilities/Services/ThemeService.js +13 -15
- package/src/Utilities/Services/ValidationService.js +2 -1
- package/src/Utilities/createAgStatusPanelComponent.js +3 -0
- package/src/Utilities/logDeprecation.js +3 -4
- package/src/Utilities/resolveContainerElement.d.ts +23 -0
- package/src/Utilities/resolveContainerElement.js +44 -0
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/Alert/ActiveAlertsPanel.js +8 -0
- package/src/View/Alert/AlertViewPanel.js +13 -9
- package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +1 -0
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +8 -0
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +5 -2
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +47 -12
- package/src/View/Alert/Wizard/AlertWizard.js +14 -10
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +24 -11
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
- package/src/View/CellSummary/CellSummaryViewPanel.js +16 -17
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
- package/src/View/Components/AdaptableDateInput/index.js +1 -1
- package/src/View/Components/Buttons/ButtonApply.js +1 -1
- package/src/View/Components/Buttons/ButtonBase/index.js +9 -9
- package/src/View/Components/Buttons/ButtonClear.d.ts +1 -0
- package/src/View/Components/Buttons/EntityListActionButtons.d.ts +1 -2
- package/src/View/Components/Buttons/EntityListActionButtons.js +18 -18
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -2
- package/src/View/Components/CellPopup/index.js +1 -1
- package/src/View/Components/ColumnFilter/FloatingFilter.js +41 -3
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +1 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +54 -2
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +1 -1
- package/src/View/Components/EntityRulesEditor/Utilities.js +5 -5
- package/src/View/Components/NewScopeComponent.js +3 -3
- package/src/View/Components/Panels/PanelDashboard/index.js +8 -8
- package/src/View/Components/Panels/PanelToolPanel/index.js +7 -7
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +1 -8
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +36 -1
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +19 -18
- package/src/View/Components/StyleComponent.d.ts +1 -0
- package/src/View/Components/StyleComponent.js +94 -24
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
- package/src/View/Components/WizardSummaryPage.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +41 -15
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
- package/src/View/Dashboard/CustomToolbar.js +1 -1
- package/src/View/Dashboard/DashboardPopup.js +4 -5
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -0
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
- package/src/View/Export/ExportDestinationPicker.js +1 -1
- package/src/View/Export/ExportStatusBar.js +4 -2
- package/src/View/Export/ExportViewPanel.js +25 -18
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +34 -14
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +14 -10
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +46 -51
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +20 -9
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +3 -3
- package/src/View/GridFilter/GridFilterExpressionEditor.js +6 -1
- package/src/View/GridFilter/GridFilterViewPanel.js +33 -70
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +57 -65
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/TransposedPopup.js +144 -138
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +3 -3
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +8 -0
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +35 -12
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +20 -15
- package/src/View/QuickSearch/QuickSearchPopup.js +4 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +14 -4
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +19 -10
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.d.ts +2 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +25 -4
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +18 -14
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -0
- package/src/View/StateManagement/handleExportState.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
- package/src/View/Theme/ThemePopup.js +13 -16
- package/src/View/UIHelper.d.ts +4 -1
- package/src/View/UIHelper.js +23 -14
- package/src/agGrid/Adaptable.js +15 -11
- package/src/agGrid/AdaptableAgGrid.d.ts +12 -8
- package/src/agGrid/AdaptableAgGrid.js +257 -111
- package/src/agGrid/AdaptableFilterHandler.js +4 -0
- package/src/agGrid/AdaptableLogger.d.ts +3 -0
- package/src/agGrid/AdaptableLogger.js +10 -0
- package/src/agGrid/AgGridAdapter.js +19 -9
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
- package/src/agGrid/AgGridColumnAdapter.js +20 -22
- package/src/agGrid/AgGridExportAdapter.js +15 -14
- package/src/agGrid/AgGridFilterAdapter.js +4 -0
- package/src/agGrid/AgGridFloatingFilterAdapter.js +4 -1
- package/src/agGrid/AgGridMenuAdapter.js +10 -1
- package/src/agGrid/AgGridModulesAdapter.js +2 -1
- package/src/agGrid/AgGridOptionsService.js +3 -0
- package/src/agGrid/AgGridThemeAdapter.js +4 -2
- package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
- package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
- package/src/agGrid/index.d.ts +6 -0
- package/src/agGrid/index.js +6 -0
- package/src/components/CheckBox/index.js +1 -1
- package/src/components/ColorPicker/ColorPicker.js +5 -4
- package/src/components/Dashboard/DashboardToolbar.js +1 -1
- package/src/components/Datepicker/index.js +1 -1
- package/src/components/Dropdown/Arrows.js +1 -1
- package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
- package/src/components/ExpressionEditor/EditorInput.js +19 -3
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/index.js +1 -1
- package/src/components/Select/Select.js +79 -16
- package/src/components/Tree/TreeDropdown/index.js +2 -2
- package/src/components/overlayBaseZIndex.js +1 -1
- package/src/components/utils/useContainerScrollObserver/index.js +17 -14
- package/src/devTools/index.js +54 -53
- package/src/env.js +2 -2
- package/src/layout-manager/src/LMEmitter.js +11 -11
- package/src/layout-manager/src/LMLogger.js +7 -0
- package/src/layout-manager/src/LayoutManagerModel.d.ts +1 -0
- package/src/layout-manager/src/index.js +81 -58
- package/src/layout-manager/src/normalizeLayoutModel.js +3 -0
- package/src/metamodel/adaptable.metamodel.d.ts +177 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/AdaptableUpgradeHelper.js +8 -3
- package/src/migration/VersionUpgrade.js +1 -0
- package/src/migration/VersionUpgrade17.js +5 -6
- package/src/migration/VersionUpgrade20.js +4 -4
- package/src/migration/VersionUpgrade22.d.ts +21 -0
- package/src/migration/VersionUpgrade22.js +187 -0
- package/src/parser/src/ExpressionEvaluationError.js +1 -0
- package/src/types.d.ts +9 -7
- package/themes/dark.css +30 -30
- package/themes/light.css +4 -2
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -632
- package/src/View/Alert/AlertEntityRow.d.ts +0 -11
- package/src/View/Alert/AlertEntityRow.js +0 -28
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -58
- package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
- package/src/View/Components/Buttons/ButtonFunction.js +0 -8
- package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonGeneral.js +0 -7
- package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
- package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -5
- package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShow.js +0 -7
- package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShowChart.js +0 -7
- package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonUndo.js +0 -7
- package/src/View/Components/ExpressionWizard.d.ts +0 -24
- package/src/View/Components/ExpressionWizard.js +0 -77
- package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
- package/src/View/Components/FilterForm/Waiting.js +0 -14
- package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
- package/src/View/Components/Panels/PanelFooter.js +0 -9
- package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
- package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -15
- package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
- package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -26
- package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
- package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -45
- package/src/View/Components/SharedProps/WizardScopeState.d.ts +0 -4
- package/src/View/Components/WizardSummaryRow.d.ts +0 -9
- package/src/View/Components/WizardSummaryRow.js +0 -11
- package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
- package/src/View/CustomSort/CustomSortSummary.js +0 -105
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -19
- package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -68
- package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -68
- package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
- package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -56
- package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
- package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -35
- package/src/View/Filter/FilterSummary.d.ts +0 -18
- package/src/View/Filter/FilterSummary.js +0 -48
- package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
- package/src/View/FormatColumn/FormatColumnSummary.js +0 -90
- package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -88
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -94
- package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
- package/src/View/PlusMinus/PlusMinusSummary.js +0 -95
- package/src/View/Wizard/WizardLegend.d.ts +0 -12
- package/src/View/Wizard/WizardLegend.js +0 -23
- /package/src/{View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts → AdaptableState/Common/AdaptableRowContext.js} +0 -0
- /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/ColumnHighlightInfo.js} +0 -0
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Report, ReportColumnScope } from '../../../AdaptableState/ExportState';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { AdaptableWizardStep, AdaptableWizardStepProps } from '../../Wizard/Interface/IAdaptableWizard';
|
|
4
|
-
export interface ReportColumnTypeWizardProps extends AdaptableWizardStepProps<Report> {
|
|
5
|
-
}
|
|
6
|
-
export interface ReportColumnsWizardState {
|
|
7
|
-
ReportColumnScope: ReportColumnScope;
|
|
8
|
-
}
|
|
9
|
-
export declare class ReportColumnTypeWizard extends React.Component<ReportColumnTypeWizardProps, ReportColumnsWizardState> implements AdaptableWizardStep {
|
|
10
|
-
constructor(props: ReportColumnTypeWizardProps);
|
|
11
|
-
render(): React.JSX.Element;
|
|
12
|
-
private onScopeSelectChanged;
|
|
13
|
-
canNext(): boolean;
|
|
14
|
-
canBack(): boolean;
|
|
15
|
-
next(): void;
|
|
16
|
-
back(): void;
|
|
17
|
-
getIndexStepIncrement(): 1 | 2;
|
|
18
|
-
getIndexStepDecrement(): number;
|
|
19
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import WizardPanel from '../../../components/WizardPanel';
|
|
3
|
-
import Radio from '../../../components/Radio';
|
|
4
|
-
import HelpBlock from '../../../components/HelpBlock';
|
|
5
|
-
import { Flex } from '../../../components/Flex';
|
|
6
|
-
export class ReportColumnTypeWizard extends React.Component {
|
|
7
|
-
constructor(props) {
|
|
8
|
-
super(props);
|
|
9
|
-
this.state = {
|
|
10
|
-
ReportColumnScope: this.props.data.ReportColumnScope,
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (React.createElement("div", { "data-name": 'report-select-columns' },
|
|
15
|
-
React.createElement(WizardPanel, null,
|
|
16
|
-
React.createElement(Flex, { flexDirection: "column", className: "twa:p-2" },
|
|
17
|
-
React.createElement(HelpBlock, { className: "twa:mb-1" }, "All columns in the datasource will be included in the Report, whether visible or not at time of export"),
|
|
18
|
-
React.createElement(Radio, { value: "All", checked: this.state.ReportColumnScope == 'AllColumns', onChange: (_, e) => this.onScopeSelectChanged(e), className: "twa:mr-3" }, "All Columns"),
|
|
19
|
-
' ',
|
|
20
|
-
React.createElement(HelpBlock, { className: "twa:mb-1" }, "Only columns that are visible at the time the Report is exported will be included"),
|
|
21
|
-
React.createElement(Radio, { value: "Visible", checked: this.state.ReportColumnScope == 'VisibleColumns', onChange: (_, e) => this.onScopeSelectChanged(e), className: "twa:mr-3" }, "Visible Columns Only"),
|
|
22
|
-
' ',
|
|
23
|
-
React.createElement(HelpBlock, { className: "twa:mb-1" }, "Only selected columns (which you will choose in the next step) will be exported - whether visible or not"),
|
|
24
|
-
React.createElement(Radio, { value: "Bespoke", className: "twa:mr-3", checked: this.state.ReportColumnScope == 'ScopeColumns', onChange: (_, e) => this.onScopeSelectChanged(e) }, "Bespoke Columns"),
|
|
25
|
-
' '))));
|
|
26
|
-
}
|
|
27
|
-
onScopeSelectChanged(event) {
|
|
28
|
-
let e = event.target;
|
|
29
|
-
if (e.value == 'All') {
|
|
30
|
-
this.setState({
|
|
31
|
-
ReportColumnScope: 'AllColumns',
|
|
32
|
-
SelectedColumnValues: [],
|
|
33
|
-
}, () => this.props.updateGoBackState());
|
|
34
|
-
}
|
|
35
|
-
else if (e.value == 'Visible') {
|
|
36
|
-
this.setState({
|
|
37
|
-
ReportColumnScope: 'VisibleColumns',
|
|
38
|
-
SelectedColumnValues: [],
|
|
39
|
-
}, () => this.props.updateGoBackState());
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
this.setState({
|
|
43
|
-
ReportColumnScope: 'ScopeColumns',
|
|
44
|
-
}, () => this.props.updateGoBackState());
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
canNext() {
|
|
48
|
-
return (this.state.ReportColumnScope == 'AllColumns' ||
|
|
49
|
-
this.state.ReportColumnScope == 'VisibleColumns' ||
|
|
50
|
-
this.state.ReportColumnScope == 'ScopeColumns');
|
|
51
|
-
}
|
|
52
|
-
canBack() {
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
next() {
|
|
56
|
-
this.props.data.ReportColumnScope = this.state.ReportColumnScope;
|
|
57
|
-
if (this.state.ReportColumnScope != 'ScopeColumns') {
|
|
58
|
-
this.props.data.Scope = undefined;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
back() { }
|
|
62
|
-
getIndexStepIncrement() {
|
|
63
|
-
return this.state.ReportColumnScope == 'ScopeColumns' ? 1 : 2;
|
|
64
|
-
}
|
|
65
|
-
getIndexStepDecrement() {
|
|
66
|
-
return 1;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Report, ReportRowScope } from '../../../AdaptableState/ExportState';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { AdaptableWizardStep, AdaptableWizardStepProps } from '../../Wizard/Interface/IAdaptableWizard';
|
|
4
|
-
export interface ReportRowTypeWizardProps extends AdaptableWizardStepProps<Report> {
|
|
5
|
-
}
|
|
6
|
-
export interface ReportRowsWizardState {
|
|
7
|
-
ReportRowScope: ReportRowScope;
|
|
8
|
-
}
|
|
9
|
-
export declare class ReportRowTypeWizard extends React.Component<ReportRowTypeWizardProps, ReportRowsWizardState> implements AdaptableWizardStep {
|
|
10
|
-
constructor(props: ReportRowTypeWizardProps);
|
|
11
|
-
render(): React.JSX.Element;
|
|
12
|
-
private onScopeSelectChanged;
|
|
13
|
-
canNext(): boolean;
|
|
14
|
-
canBack(): boolean;
|
|
15
|
-
next(): void;
|
|
16
|
-
back(): void;
|
|
17
|
-
getIndexStepIncrement(): 1 | 2;
|
|
18
|
-
getIndexStepDecrement(): 1 | 2;
|
|
19
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import WizardPanel from '../../../components/WizardPanel';
|
|
3
|
-
import Radio from '../../../components/Radio';
|
|
4
|
-
import HelpBlock from '../../../components/HelpBlock';
|
|
5
|
-
import { Flex } from '../../../components/Flex';
|
|
6
|
-
export class ReportRowTypeWizard extends React.Component {
|
|
7
|
-
constructor(props) {
|
|
8
|
-
super(props);
|
|
9
|
-
this.state = {
|
|
10
|
-
ReportRowScope: this.props.data.ReportRowScope,
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (React.createElement("div", { "data-name": 'report-select-rows' },
|
|
15
|
-
React.createElement(WizardPanel, null,
|
|
16
|
-
React.createElement(Flex, { flexDirection: "column", className: "twa:p-2" },
|
|
17
|
-
React.createElement(HelpBlock, { className: "twa:mb-1" }, "All rows in the datasource will be included in the report, whether visible or not at time of export."),
|
|
18
|
-
React.createElement(Radio, { value: "All", checked: this.state.ReportRowScope == 'AllRows', onChange: (_, e) => this.onScopeSelectChanged(e), className: "twa:mr-3" }, "All Rows"),
|
|
19
|
-
' ',
|
|
20
|
-
React.createElement(HelpBlock, { className: "twa:mb-1" }, "Only rows that are visible at the time the Report is exported will be included in the Export"),
|
|
21
|
-
React.createElement(Radio, { value: "Visible", checked: this.state.ReportRowScope == 'VisibleRows', onChange: (_, e) => this.onScopeSelectChanged(e), className: "twa:mr-3" }, "Visible Rows Only"),
|
|
22
|
-
' ',
|
|
23
|
-
React.createElement(HelpBlock, { className: "twa:mb-1" }, "Only the rows which match the Query (built in next step) will be exported - whether visible or not."),
|
|
24
|
-
React.createElement(Radio, { value: "Expression", checked: this.state.ReportRowScope == 'ExpressionRows', onChange: (_, e) => this.onScopeSelectChanged(e), className: "twa:mr-3" }, "By Query - built by you in next step"),
|
|
25
|
-
' '))));
|
|
26
|
-
}
|
|
27
|
-
onScopeSelectChanged(event) {
|
|
28
|
-
let e = event.target;
|
|
29
|
-
if (e.value == 'All') {
|
|
30
|
-
this.setState({
|
|
31
|
-
ReportRowScope: 'AllRows',
|
|
32
|
-
SelectedColumnValues: [],
|
|
33
|
-
}, () => this.props.updateGoBackState());
|
|
34
|
-
}
|
|
35
|
-
else if (e.value == 'Visible') {
|
|
36
|
-
this.setState({
|
|
37
|
-
ReportRowScope: 'VisibleRows',
|
|
38
|
-
SelectedColumnValues: [],
|
|
39
|
-
}, () => this.props.updateGoBackState());
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
this.setState({
|
|
43
|
-
ReportRowScope: 'ExpressionRows',
|
|
44
|
-
}, () => this.props.updateGoBackState());
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
canNext() {
|
|
48
|
-
return (this.state.ReportRowScope == 'AllRows' ||
|
|
49
|
-
this.state.ReportRowScope == 'VisibleRows' ||
|
|
50
|
-
this.state.ReportRowScope == 'ExpressionRows');
|
|
51
|
-
}
|
|
52
|
-
canBack() {
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
next() {
|
|
56
|
-
this.props.data.ReportRowScope = this.state.ReportRowScope;
|
|
57
|
-
if (this.props.data.Query && this.state.ReportRowScope != 'ExpressionRows') {
|
|
58
|
-
this.props.data.Query = undefined;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
back() { }
|
|
62
|
-
getIndexStepIncrement() {
|
|
63
|
-
return this.state.ReportRowScope == 'ExpressionRows' ? 1 : 2;
|
|
64
|
-
}
|
|
65
|
-
getIndexStepDecrement() {
|
|
66
|
-
return this.props.data.ReportColumnScope == 'ScopeColumns' ? 1 : 2;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Report } from '../../../AdaptableState/ExportState';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { AdaptableWizardStep, AdaptableWizardStepProps } from '../../Wizard/Interface/IAdaptableWizard';
|
|
4
|
-
export interface ReportSettingsWizardProps extends AdaptableWizardStepProps<Report> {
|
|
5
|
-
Reports: Report[];
|
|
6
|
-
}
|
|
7
|
-
export interface ReportSettingsWizardState {
|
|
8
|
-
ReportName: string;
|
|
9
|
-
ErrorMessage: string;
|
|
10
|
-
}
|
|
11
|
-
export declare class ReportSettingsWizard extends React.Component<ReportSettingsWizardProps, ReportSettingsWizardState> implements AdaptableWizardStep {
|
|
12
|
-
constructor(props: ReportSettingsWizardProps);
|
|
13
|
-
render(): any;
|
|
14
|
-
private onReportNameChanged;
|
|
15
|
-
canNext(): boolean;
|
|
16
|
-
canBack(): boolean;
|
|
17
|
-
next(): void;
|
|
18
|
-
back(): void;
|
|
19
|
-
getIndexStepIncrement(): number;
|
|
20
|
-
getIndexStepDecrement(): 1 | 2;
|
|
21
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { StringExtensions } from '../../../Utilities/Extensions/StringExtensions';
|
|
3
|
-
import WizardPanel from '../../../components/WizardPanel';
|
|
4
|
-
import Input from '../../../components/Input';
|
|
5
|
-
import ErrorBox from '../../../components/ErrorBox';
|
|
6
|
-
import FormLayout, { FormRow } from '../../../components/FormLayout';
|
|
7
|
-
import { Box } from '../../../components/Flex';
|
|
8
|
-
export class ReportSettingsWizard extends React.Component {
|
|
9
|
-
constructor(props) {
|
|
10
|
-
super(props);
|
|
11
|
-
this.state = {
|
|
12
|
-
ReportName: this.props.data.Name,
|
|
13
|
-
ErrorMessage: null,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
render() {
|
|
17
|
-
let validationState = StringExtensions.IsNullOrEmpty(this.state.ErrorMessage)
|
|
18
|
-
? null
|
|
19
|
-
: 'error';
|
|
20
|
-
return (React.createElement("div", { "data-name": 'report-settings' },
|
|
21
|
-
React.createElement(WizardPanel, null,
|
|
22
|
-
React.createElement(FormLayout, { columns: [1, 2] },
|
|
23
|
-
React.createElement(FormRow, null,
|
|
24
|
-
React.createElement(Box, { className: "twa:mr-2" }, "Enter Report Name:"),
|
|
25
|
-
React.createElement(Input, { className: "twa:w-full", type: "text", placeholder: "Name", value: this.state.ReportName, onChange: (e) => this.onReportNameChanged(e) })),
|
|
26
|
-
React.createElement(FormRow, null,
|
|
27
|
-
React.createElement(React.Fragment, null),
|
|
28
|
-
this.state.ErrorMessage ? React.createElement(ErrorBox, null, this.state.ErrorMessage) : null)))));
|
|
29
|
-
}
|
|
30
|
-
onReportNameChanged(event) {
|
|
31
|
-
let e = event.target;
|
|
32
|
-
this.setState({
|
|
33
|
-
ReportName: e.value,
|
|
34
|
-
ErrorMessage: this.props.Reports.findIndex((x) => x.Name == e.value) > -1
|
|
35
|
-
? 'A Report already exists with that name'
|
|
36
|
-
: null,
|
|
37
|
-
}, () => this.props.updateGoBackState());
|
|
38
|
-
}
|
|
39
|
-
canNext() {
|
|
40
|
-
return (StringExtensions.IsNotNullOrEmpty(this.state.ReportName) &&
|
|
41
|
-
StringExtensions.IsNullOrEmpty(this.state.ErrorMessage));
|
|
42
|
-
}
|
|
43
|
-
canBack() {
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
next() {
|
|
47
|
-
this.props.data.Name = this.state.ReportName;
|
|
48
|
-
}
|
|
49
|
-
back() { }
|
|
50
|
-
getIndexStepIncrement() {
|
|
51
|
-
return 1;
|
|
52
|
-
}
|
|
53
|
-
getIndexStepDecrement() {
|
|
54
|
-
return this.props.data.ReportRowScope == 'ExpressionRows' ? 1 : 2;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Report } from '../../../AdaptableState/ExportState';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { AdaptableWizardStep, AdaptableWizardStepProps } from '../../Wizard/Interface/IAdaptableWizard';
|
|
4
|
-
export interface ReportSummaryWizardProps extends AdaptableWizardStepProps<Report> {
|
|
5
|
-
}
|
|
6
|
-
export declare class ReportSummaryWizard extends React.Component<ReportSummaryWizardProps, {}> implements AdaptableWizardStep {
|
|
7
|
-
constructor(props: ReportSummaryWizardProps);
|
|
8
|
-
render(): any;
|
|
9
|
-
canNext(): boolean;
|
|
10
|
-
canBack(): boolean;
|
|
11
|
-
next(): void;
|
|
12
|
-
back(): void;
|
|
13
|
-
getIndexStepIncrement(): number;
|
|
14
|
-
getIndexStepDecrement(): number;
|
|
15
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { WizardSummaryPage } from '../../Components/WizardSummaryPage';
|
|
3
|
-
export class ReportSummaryWizard extends React.Component {
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super(props);
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
let keyValuePairs = [
|
|
9
|
-
{ Key: 'Name', Value: this.props.data.Name },
|
|
10
|
-
{
|
|
11
|
-
Key: 'Column Scope',
|
|
12
|
-
Value: this.props.api.exportApi.internalApi.getReportColumnScopeLongDescription(this.props.data),
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
Key: 'Row Scope',
|
|
16
|
-
Value: this.props.api.exportApi.internalApi.getReportExpressionDescription(this.props.data, this.props.api.columnApi.getColumns()),
|
|
17
|
-
},
|
|
18
|
-
];
|
|
19
|
-
return (React.createElement(WizardSummaryPage, { KeyValuePairs: keyValuePairs, header: this.props.moduleInfo.FriendlyName }));
|
|
20
|
-
}
|
|
21
|
-
canNext() {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
canBack() {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
next() { }
|
|
28
|
-
back() { }
|
|
29
|
-
getIndexStepIncrement() {
|
|
30
|
-
return 1;
|
|
31
|
-
}
|
|
32
|
-
getIndexStepDecrement() {
|
|
33
|
-
return 1;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ModuleSummaryProps } from '../Components/SharedProps/ModuleSummaryProps';
|
|
3
|
-
import { EditableConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
|
|
4
|
-
import * as LayoutRedux from '../../Redux/ActionsReducers/LayoutRedux';
|
|
5
|
-
import { ColumnFilter } from '../../types';
|
|
6
|
-
export interface FilterSummaryProps extends Omit<ModuleSummaryProps<FilterSummaryComponent>, 'onClosePopup' | 'modalContainer'> {
|
|
7
|
-
ColumnFilters: ColumnFilter[];
|
|
8
|
-
onClearFilter: (columnFilter: ColumnFilter) => LayoutRedux.LayoutColumnFilterClearAction;
|
|
9
|
-
}
|
|
10
|
-
export declare class FilterSummaryComponent extends React.Component<FilterSummaryProps, EditableConfigEntityState> {
|
|
11
|
-
constructor(props: FilterSummaryProps);
|
|
12
|
-
render(): any;
|
|
13
|
-
getDescription(columnFilter: ColumnFilter): string;
|
|
14
|
-
}
|
|
15
|
-
export declare let FilterSummary: import("react-redux").ConnectedComponent<typeof FilterSummaryComponent, {
|
|
16
|
-
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction>>;
|
|
17
|
-
store?: import("redux").Store;
|
|
18
|
-
}>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { connect } from 'react-redux';
|
|
3
|
-
import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
4
|
-
import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
|
|
5
|
-
import * as TeamSharingRedux from '../../Redux/ActionsReducers/TeamSharingRedux';
|
|
6
|
-
import * as LayoutRedux from '../../Redux/ActionsReducers/LayoutRedux';
|
|
7
|
-
import { SummaryRowItem } from '../Components/ModuleSummary/SummaryRowItem';
|
|
8
|
-
import { ModuleProfile } from '../Components/ModuleProfile';
|
|
9
|
-
import { ButtonClear } from '../Components/Buttons/ButtonClear';
|
|
10
|
-
import { UIHelper } from '../UIHelper';
|
|
11
|
-
import { getColumnFiltersSelector } from '../../Redux/ActionsReducers/LayoutRedux';
|
|
12
|
-
export class FilterSummaryComponent extends React.Component {
|
|
13
|
-
constructor(props) {
|
|
14
|
-
super(props);
|
|
15
|
-
this.state = UIHelper.getEmptyConfigState();
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
let columnFilter = this.props.ColumnFilters.find((c) => c.ColumnId == this.props.summarisedColumn.columnId);
|
|
19
|
-
let description = this.getDescription(columnFilter);
|
|
20
|
-
let summaryItems = [];
|
|
21
|
-
summaryItems.push(React.createElement("b", null, React.createElement(ModuleProfile, { moduleInfo: this.props.moduleInfo })));
|
|
22
|
-
summaryItems.push(description);
|
|
23
|
-
summaryItems.push(React.createElement(ButtonClear, { className: "twa:ml-1", onClick: () => this.props.onClearFilter(columnFilter), tooltip: "Clear Filter", disabled: columnFilter == null, accessLevel: this.props.accessLevel }));
|
|
24
|
-
return React.createElement(SummaryRowItem, { SummaryItems: summaryItems });
|
|
25
|
-
}
|
|
26
|
-
getDescription(columnFilter) {
|
|
27
|
-
if (this.props.summarisedColumn && !this.props.summarisedColumn.filterable) {
|
|
28
|
-
return 'Column is not filterable';
|
|
29
|
-
}
|
|
30
|
-
if (columnFilter == null) {
|
|
31
|
-
return 'No Column Filter Active';
|
|
32
|
-
}
|
|
33
|
-
return this.props.api.filterApi.columnFilterApi.columnFilterToString(columnFilter);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function mapStateToProps(state) {
|
|
37
|
-
return {
|
|
38
|
-
ColumnFilters: getColumnFiltersSelector(state),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function mapDispatchToProps(dispatch) {
|
|
42
|
-
return {
|
|
43
|
-
onClearFilter: (columnFilter) => dispatch(LayoutRedux.LayoutColumnFilterClear(columnFilter.ColumnId)),
|
|
44
|
-
onClearPopupParams: () => dispatch(PopupRedux.PopupClearParam()),
|
|
45
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.ColumnFilterModuleId, config)),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
export let FilterSummary = connect(mapStateToProps, mapDispatchToProps)(FilterSummaryComponent);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ModuleSummaryProps } from '../Components/SharedProps/ModuleSummaryProps';
|
|
3
|
-
import { EditableConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
|
|
4
|
-
import * as FormatColumnRedux from '../../Redux/ActionsReducers/FormatColumnRedux';
|
|
5
|
-
import { FormatColumn } from '../../AdaptableState/FormatColumnState';
|
|
6
|
-
export interface FormatColumnSummaryProps extends ModuleSummaryProps<FormatColumnSummaryComponent> {
|
|
7
|
-
FormatColumns: FormatColumn[];
|
|
8
|
-
onAddFormatColumn: (FormatColumn: FormatColumn) => FormatColumnRedux.FormatColumnAddAction;
|
|
9
|
-
onEditFormatColumn: (FormatColumn: FormatColumn) => FormatColumnRedux.FormatColumnEditAction;
|
|
10
|
-
}
|
|
11
|
-
export declare class FormatColumnSummaryComponent extends React.Component<FormatColumnSummaryProps, EditableConfigEntityState> {
|
|
12
|
-
constructor(props: FormatColumnSummaryProps);
|
|
13
|
-
render(): any;
|
|
14
|
-
onNew(): void;
|
|
15
|
-
onEdit(formatColumn: FormatColumn): void;
|
|
16
|
-
onCloseWizard(): void;
|
|
17
|
-
onFinishWizard: (formatColumn: FormatColumn) => void;
|
|
18
|
-
canFinishWizard(): boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare let FormatColumnSummary: import("react-redux").ConnectedComponent<typeof FormatColumnSummaryComponent, {
|
|
21
|
-
[x: string]: any;
|
|
22
|
-
}>;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { WizardStatus, } from '../Components/SharedProps/EditableConfigEntityState';
|
|
3
|
-
import { connect } from 'react-redux';
|
|
4
|
-
import { Helper } from '../../Utilities/Helpers/Helper';
|
|
5
|
-
import * as FormatColumnRedux from '../../Redux/ActionsReducers/FormatColumnRedux';
|
|
6
|
-
import { ObjectFactory } from '../../Utilities/ObjectFactory';
|
|
7
|
-
import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
8
|
-
import { ModuleHeader } from '../Components/ModuleSummary/ModuleHeader';
|
|
9
|
-
import { ModuleDetail } from '../Components/ModuleSummary/ModuleDetail';
|
|
10
|
-
import { ModuleProfile } from '../Components/ModuleProfile';
|
|
11
|
-
import { StyleVisualItem } from '../Components/StyleVisualItem';
|
|
12
|
-
import * as TeamSharingRedux from '../../Redux/ActionsReducers/TeamSharingRedux';
|
|
13
|
-
import { UIHelper } from '../UIHelper';
|
|
14
|
-
import { FormatColumnWizard } from './Wizard/FormatColumnWizard';
|
|
15
|
-
export class FormatColumnSummaryComponent extends React.Component {
|
|
16
|
-
constructor(props) {
|
|
17
|
-
super(props);
|
|
18
|
-
this.onFinishWizard = (formatColumn) => {
|
|
19
|
-
if (this.props.FormatColumns.find((x) => x.Uuid == formatColumn.Uuid)) {
|
|
20
|
-
this.props.onEditFormatColumn(formatColumn);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
this.props.onAddFormatColumn(formatColumn);
|
|
24
|
-
}
|
|
25
|
-
this.setState({
|
|
26
|
-
editedAdaptableObject: null,
|
|
27
|
-
wizardStartIndex: 0,
|
|
28
|
-
wizardStatus: WizardStatus.None,
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
this.state = UIHelper.getEmptyConfigState();
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
const [formatColumn] = this.props.api.formatColumnApi.getFormatColumnsForColumn(this.props.summarisedColumn);
|
|
35
|
-
let noFormatColumn = formatColumn == null;
|
|
36
|
-
let formatColumnRow;
|
|
37
|
-
if (noFormatColumn) {
|
|
38
|
-
formatColumnRow = (React.createElement(ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: 'No Format Column Set', onNew: () => this.onNew(), newButtonTooltip: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel }));
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
formatColumnRow = (React.createElement(ModuleDetail, { key: this.props.moduleInfo.FriendlyName, item1: React.createElement(ModuleProfile, { moduleInfo: this.props.moduleInfo }), item2: React.createElement(StyleVisualItem, { Style: formatColumn.Style }), configEnity: formatColumn, showShare: this.props.teamSharingActivated, moduleInfo: this.props.moduleInfo, onEdit: () => this.onEdit(formatColumn), onShare: (config) => this.props.onShare(formatColumn, config), onDelete: FormatColumnRedux.FormatColumnDelete(formatColumn), showBold: true, accessLevel: this.props.accessLevel }));
|
|
42
|
-
}
|
|
43
|
-
return (React.createElement("div", null,
|
|
44
|
-
formatColumnRow,
|
|
45
|
-
this.state.editedAdaptableObject && (React.createElement(FormatColumnWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.FormatColumns, wizardStartIndex: this.state.wizardStartIndex, onCloseWizard: this.onCloseWizard, onFinishWizard: this.onFinishWizard }))));
|
|
46
|
-
}
|
|
47
|
-
onNew() {
|
|
48
|
-
let configEntity = ObjectFactory.CreateEmptyFormatColumn();
|
|
49
|
-
configEntity.Scope = {
|
|
50
|
-
ColumnIds: [this.props.summarisedColumn.columnId],
|
|
51
|
-
};
|
|
52
|
-
this.setState({
|
|
53
|
-
editedAdaptableObject: configEntity,
|
|
54
|
-
wizardStartIndex: 1,
|
|
55
|
-
wizardStatus: WizardStatus.New,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
onEdit(formatColumn) {
|
|
59
|
-
let clonedObject = Helper.cloneObject(formatColumn);
|
|
60
|
-
this.setState({
|
|
61
|
-
editedAdaptableObject: clonedObject,
|
|
62
|
-
wizardStartIndex: 1,
|
|
63
|
-
wizardStatus: WizardStatus.Edit,
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
onCloseWizard() {
|
|
67
|
-
this?.setState?.({
|
|
68
|
-
editedAdaptableObject: null,
|
|
69
|
-
wizardStartIndex: 0,
|
|
70
|
-
wizardStatus: WizardStatus.None,
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
canFinishWizard() {
|
|
74
|
-
let formatColumn = this.state.editedAdaptableObject;
|
|
75
|
-
return formatColumn.Scope != undefined && UIHelper.IsNotEmptyStyle(formatColumn.Style);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
function mapStateToProps(state, ownProps) {
|
|
79
|
-
return {
|
|
80
|
-
FormatColumns: state.FormatColumn.FormatColumns,
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
function mapDispatchToProps(dispatch) {
|
|
84
|
-
return {
|
|
85
|
-
onAddFormatColumn: (FormatColumn) => dispatch(FormatColumnRedux.FormatColumnAdd(FormatColumn)),
|
|
86
|
-
onEditFormatColumn: (FormatColumn) => dispatch(FormatColumnRedux.FormatColumnEdit(FormatColumn)),
|
|
87
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.FormatColumnModuleId, config)),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
export let FormatColumnSummary = connect(mapStateToProps, mapDispatchToProps)(FormatColumnSummaryComponent);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ModuleSummaryProps } from '../Components/SharedProps/ModuleSummaryProps';
|
|
3
|
-
import { EditableConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
|
|
4
|
-
import * as FreeTextColumnRedux from '../../Redux/ActionsReducers/FreeTextColumnRedux';
|
|
5
|
-
import { FreeTextColumn } from '../../AdaptableState/FreeTextColumnState';
|
|
6
|
-
export interface FreeTextColumnSummaryProps extends ModuleSummaryProps<FreeTextColumnSummaryComponent> {
|
|
7
|
-
FreeTextColumns: FreeTextColumn[];
|
|
8
|
-
onAddFreeTextColumn: (FreeTextColumn: FreeTextColumn) => FreeTextColumnRedux.FreeTextColumnAddAction;
|
|
9
|
-
onEditFreeTextColumn: (FreeTextColumn: FreeTextColumn) => FreeTextColumnRedux.FreeTextColumnEditAction;
|
|
10
|
-
}
|
|
11
|
-
export declare class FreeTextColumnSummaryComponent extends React.Component<FreeTextColumnSummaryProps, EditableConfigEntityState> {
|
|
12
|
-
constructor(props: FreeTextColumnSummaryProps);
|
|
13
|
-
render(): any;
|
|
14
|
-
onNew(): void;
|
|
15
|
-
onEdit(FreeTextColumn: FreeTextColumn): void;
|
|
16
|
-
onCloseWizard(): void;
|
|
17
|
-
onFinishWizard: (FreeTextColumn: FreeTextColumn) => void;
|
|
18
|
-
canFinishWizard(): boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare let FreeTextColumnSummary: import("react-redux").ConnectedComponent<typeof FreeTextColumnSummaryComponent, {
|
|
21
|
-
[x: string]: any;
|
|
22
|
-
}>;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { WizardStatus, } from '../Components/SharedProps/EditableConfigEntityState';
|
|
3
|
-
import { connect } from 'react-redux';
|
|
4
|
-
import { Helper } from '../../Utilities/Helpers/Helper';
|
|
5
|
-
import * as FreeTextColumnRedux from '../../Redux/ActionsReducers/FreeTextColumnRedux';
|
|
6
|
-
import { ObjectFactory } from '../../Utilities/ObjectFactory';
|
|
7
|
-
import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
8
|
-
import { ModuleDetail } from '../Components/ModuleSummary/ModuleDetail';
|
|
9
|
-
import { ModuleProfile } from '../Components/ModuleProfile';
|
|
10
|
-
import * as TeamSharingRedux from '../../Redux/ActionsReducers/TeamSharingRedux';
|
|
11
|
-
import { UIHelper } from '../UIHelper';
|
|
12
|
-
import { StringExtensions } from '../../Utilities/Extensions/StringExtensions';
|
|
13
|
-
import { ArrayExtensions } from '../../Utilities/Extensions/ArrayExtensions';
|
|
14
|
-
import { FreeTextColumnWizard } from './Wizard/FreeTextColumnWizard';
|
|
15
|
-
export class FreeTextColumnSummaryComponent extends React.Component {
|
|
16
|
-
constructor(props) {
|
|
17
|
-
super(props);
|
|
18
|
-
this.onFinishWizard = (FreeTextColumn) => {
|
|
19
|
-
if (this.props.FreeTextColumns.find((x) => x.ColumnId == FreeTextColumn.ColumnId)) {
|
|
20
|
-
this.props.onEditFreeTextColumn(FreeTextColumn);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
this.props.onAddFreeTextColumn(FreeTextColumn);
|
|
24
|
-
}
|
|
25
|
-
this.setState({
|
|
26
|
-
editedAdaptableObject: null,
|
|
27
|
-
wizardStartIndex: 0,
|
|
28
|
-
wizardStatus: WizardStatus.None,
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
this.state = UIHelper.getEmptyConfigState();
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
let freeTextColumn = this.props.FreeTextColumns.find((c) => c.ColumnId == this.props.summarisedColumn.columnId);
|
|
35
|
-
let noFreeTextColumn = freeTextColumn == null;
|
|
36
|
-
let FreeTextColumnRow;
|
|
37
|
-
if (!noFreeTextColumn) {
|
|
38
|
-
let description = ArrayExtensions.IsNotEmpty(freeTextColumn.FreeTextStoredValues)
|
|
39
|
-
? ' Stored values: ' + freeTextColumn.FreeTextStoredValues.length
|
|
40
|
-
: 'No stored values';
|
|
41
|
-
FreeTextColumnRow = (React.createElement(ModuleDetail, { key: this.props.moduleInfo.FriendlyName, item1: React.createElement(ModuleProfile, { moduleInfo: this.props.moduleInfo }), item2: description, configEnity: freeTextColumn, showShare: this.props.teamSharingActivated, moduleInfo: this.props.moduleInfo, onEdit: () => this.onEdit(freeTextColumn), onShare: (config) => this.props.onShare(freeTextColumn, config), onDelete: FreeTextColumnRedux.FreeTextColumnDelete(freeTextColumn), showBold: true, accessLevel: this.props.accessLevel }));
|
|
42
|
-
}
|
|
43
|
-
return (React.createElement("div", null,
|
|
44
|
-
FreeTextColumnRow,
|
|
45
|
-
this.state.editedAdaptableObject && (React.createElement(FreeTextColumnWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.FreeTextColumns, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: this.onFinishWizard }))));
|
|
46
|
-
}
|
|
47
|
-
onNew() {
|
|
48
|
-
let configEntity = ObjectFactory.CreateEmptyFreeTextColumn(this.props.api.gridApi.internalApi.deriveSpecialColumnSettingsFromAgGridDefaultColDef());
|
|
49
|
-
configEntity.ColumnId = this.props.summarisedColumn.columnId;
|
|
50
|
-
this.setState({
|
|
51
|
-
editedAdaptableObject: configEntity,
|
|
52
|
-
wizardStartIndex: 1,
|
|
53
|
-
wizardStatus: WizardStatus.New,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
onEdit(FreeTextColumn) {
|
|
57
|
-
let clonedObject = Helper.cloneObject(FreeTextColumn);
|
|
58
|
-
this.setState({
|
|
59
|
-
editedAdaptableObject: clonedObject,
|
|
60
|
-
wizardStartIndex: 0,
|
|
61
|
-
wizardStatus: WizardStatus.Edit,
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
onCloseWizard() {
|
|
65
|
-
this.setState({
|
|
66
|
-
editedAdaptableObject: null,
|
|
67
|
-
wizardStartIndex: 0,
|
|
68
|
-
wizardStatus: WizardStatus.None,
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
canFinishWizard() {
|
|
72
|
-
let FreeTextColumn = this.state.editedAdaptableObject;
|
|
73
|
-
return StringExtensions.IsNotNullOrEmpty(FreeTextColumn.ColumnId);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
function mapStateToProps(state, ownProps) {
|
|
77
|
-
return {
|
|
78
|
-
FreeTextColumns: state.FreeTextColumn.FreeTextColumns,
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function mapDispatchToProps(dispatch) {
|
|
82
|
-
return {
|
|
83
|
-
onAddFreeTextColumn: (FreeTextColumn) => dispatch(FreeTextColumnRedux.FreeTextColumnAdd(FreeTextColumn)),
|
|
84
|
-
onEditFreeTextColumn: (FreeTextColumn) => dispatch(FreeTextColumnRedux.FreeTextColumnEdit(FreeTextColumn)),
|
|
85
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.FreeTextColumnModuleId, config)),
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export let FreeTextColumnSummary = connect(mapStateToProps, mapDispatchToProps)(FreeTextColumnSummaryComponent);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AdaptableApi } from '../../../Api/AdaptableApi';
|
|
3
|
-
interface AdaptableOptionsComponentProps {
|
|
4
|
-
api: AdaptableApi;
|
|
5
|
-
}
|
|
6
|
-
export declare const AdaptableOptionsComponent: (props: AdaptableOptionsComponentProps) => React.JSX.Element;
|
|
7
|
-
export {};
|