@adaptabletools/adaptable-cjs 22.0.0-canary.0 → 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/README.md +4 -6
- 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 +85 -0
- package/package.json +3 -3
- package/src/AdaptableInterfaces/IAdaptable.d.ts +10 -1
- 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/ColumnHighlightInfo.js +2 -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 +2 -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 +2 -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 +29 -4
- 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 -1
- package/src/Api/Implementation/GridApiImpl.js +35 -4
- 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 +17 -1
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.js +42 -3
- 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 +26 -0
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
- package/src/Redux/Store/AdaptableStore.js +121 -64
- 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 +18 -17
- package/src/Utilities/Constants/DocumentationLinkConstants.js +19 -18
- 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 +17 -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 +39 -41
- 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 +47 -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 +48 -12
- package/src/View/Alert/Wizard/AlertWizard.js +12 -8
- 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 +35 -0
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +18 -17
- 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 +40 -14
- 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 +36 -15
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +13 -9
- 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 +22 -11
- 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 +24 -14
- package/src/agGrid/Adaptable.js +15 -11
- package/src/agGrid/AdaptableAgGrid.d.ts +16 -3
- package/src/agGrid/AdaptableAgGrid.js +306 -103
- 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 +78 -15
- 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 +191 -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.cjs.tsbuildinfo +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -633
- package/src/View/Alert/AlertEntityRow.d.ts +0 -11
- package/src/View/Alert/AlertEntityRow.js +0 -33
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -63
- package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
- package/src/View/Components/Buttons/ButtonFunction.js +0 -13
- package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonGeneral.js +0 -12
- package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
- package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -8
- package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShow.js +0 -12
- package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShowChart.js +0 -12
- package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonUndo.js +0 -12
- package/src/View/Components/ExpressionWizard.d.ts +0 -24
- package/src/View/Components/ExpressionWizard.js +0 -82
- package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
- package/src/View/Components/FilterForm/Waiting.js +0 -19
- package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
- package/src/View/Components/Panels/PanelFooter.js +0 -14
- package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
- package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -20
- package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
- package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -31
- package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
- package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -50
- 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 -16
- package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
- package/src/View/CustomSort/CustomSortSummary.js +0 -110
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -24
- package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -73
- package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -73
- package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
- package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -61
- package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
- package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -40
- package/src/View/Filter/FilterSummary.d.ts +0 -18
- package/src/View/Filter/FilterSummary.js +0 -53
- package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
- package/src/View/FormatColumn/FormatColumnSummary.js +0 -95
- package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -93
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -99
- package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
- package/src/View/PlusMinus/PlusMinusSummary.js +0 -100
- package/src/View/Wizard/WizardLegend.d.ts +0 -12
- package/src/View/Wizard/WizardLegend.js +0 -28
- /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/AdaptableRowContext.js} +0 -0
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomSortSummary = exports.CustomSortSummaryComponent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
|
|
7
|
-
const react_redux_1 = require("react-redux");
|
|
8
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
9
|
-
const CustomSortRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CustomSortRedux"));
|
|
10
|
-
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
11
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
12
|
-
const ModuleHeader_1 = require("../Components/ModuleSummary/ModuleHeader");
|
|
13
|
-
const ModuleDetail_1 = require("../Components/ModuleSummary/ModuleDetail");
|
|
14
|
-
const ModuleProfile_1 = require("../Components/ModuleProfile");
|
|
15
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
16
|
-
const UIHelper_1 = require("../UIHelper");
|
|
17
|
-
const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
|
|
18
|
-
const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
|
|
19
|
-
const CustomSortWizard_1 = require("./Wizard/CustomSortWizard");
|
|
20
|
-
class CustomSortSummaryComponent extends React.Component {
|
|
21
|
-
constructor(props) {
|
|
22
|
-
super(props);
|
|
23
|
-
this.onFinishWizard = (customSort) => {
|
|
24
|
-
if (this.props.CustomSorts.find((x) => x.ColumnId == customSort.ColumnId)) {
|
|
25
|
-
this.props.onEditCustomSort(customSort);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
this.props.onAddCustomSort(customSort);
|
|
29
|
-
}
|
|
30
|
-
this.setState({
|
|
31
|
-
editedAdaptableObject: null,
|
|
32
|
-
wizardStartIndex: 0,
|
|
33
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
37
|
-
}
|
|
38
|
-
render() {
|
|
39
|
-
const customSort = this.props.CustomSorts.find((c) => c.ColumnId == this.props.summarisedColumn.columnId);
|
|
40
|
-
const columnSortComparer = this.props.api.customSortApi.internalApi.getCustomSortComparer(this.props.summarisedColumn.columnId);
|
|
41
|
-
let noCustomSort = customSort == null && columnSortComparer == null;
|
|
42
|
-
let customSortRow;
|
|
43
|
-
if (!this.props.summarisedColumn.sortable) {
|
|
44
|
-
customSortRow = (React.createElement(ModuleHeader_1.ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: 'Column is not sortable', newButtonDisabled: true, onNew: () => this.onNew(), newButtonTooltip: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel }));
|
|
45
|
-
}
|
|
46
|
-
else if (noCustomSort) {
|
|
47
|
-
// title row
|
|
48
|
-
customSortRow = (React.createElement(ModuleHeader_1.ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: 'No Custom Sort Set', onNew: () => this.onNew(), accessLevel: this.props.accessLevel, newButtonTooltip: this.props.moduleInfo.FriendlyName }));
|
|
49
|
-
}
|
|
50
|
-
else if (columnSortComparer != null) {
|
|
51
|
-
customSortRow = (React.createElement(ModuleHeader_1.ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: 'Using a Custom Sort Comparer Function', onNew: () => this.onNew(), accessLevel: this.props.accessLevel, newButtonTooltip: this.props.moduleInfo.FriendlyName }));
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
customSortRow = (React.createElement(ModuleDetail_1.ModuleDetail, { key: this.props.moduleInfo.FriendlyName, item1: React.createElement(ModuleProfile_1.ModuleProfile, { moduleInfo: this.props.moduleInfo }), item2: this.getCustomSortedValues(customSort), configEnity: customSort, moduleInfo: this.props.moduleInfo, onEdit: () => this.onEdit(customSort), showEdit: customSort != undefined, onShare: (config) => this.props.onShare(customSort, config), showShare: this.props.teamSharingActivated, onDelete: CustomSortRedux.CustomSortDelete(customSort), showBold: true, accessLevel: this.props.accessLevel }));
|
|
55
|
-
}
|
|
56
|
-
return (React.createElement(React.Fragment, null,
|
|
57
|
-
customSortRow,
|
|
58
|
-
this.state.editedAdaptableObject && (React.createElement(CustomSortWizard_1.CustomSortWizard, { isNew: this.state.wizardStatus === EditableConfigEntityState_1.WizardStatus.New, moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.CustomSorts, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: this.onFinishWizard }))));
|
|
59
|
-
}
|
|
60
|
-
onNew() {
|
|
61
|
-
let configEntity = ObjectFactory_1.ObjectFactory.CreateEmptyCustomSort();
|
|
62
|
-
configEntity.ColumnId = this.props.summarisedColumn.columnId;
|
|
63
|
-
this.setState({
|
|
64
|
-
editedAdaptableObject: configEntity,
|
|
65
|
-
wizardStartIndex: 1,
|
|
66
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
onEdit(customSort) {
|
|
70
|
-
this.setState({
|
|
71
|
-
editedAdaptableObject: Helper_1.Helper.cloneObject(customSort),
|
|
72
|
-
wizardStartIndex: 1,
|
|
73
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
onCloseWizard() {
|
|
77
|
-
this.setState({
|
|
78
|
-
editedAdaptableObject: null,
|
|
79
|
-
wizardStartIndex: 0,
|
|
80
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
canFinishWizard() {
|
|
84
|
-
let customSort = this.state.editedAdaptableObject;
|
|
85
|
-
return (StringExtensions_1.StringExtensions.IsNotNullOrEmpty(customSort.ColumnId) &&
|
|
86
|
-
ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(customSort.SortedValues));
|
|
87
|
-
}
|
|
88
|
-
getCustomSortedValues(customSort) {
|
|
89
|
-
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(customSort.SortedValues)) {
|
|
90
|
-
return customSort.SortedValues.join(', ');
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
return '[Has bespoke Custom Sort implementing using bespoke function]';
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
exports.CustomSortSummaryComponent = CustomSortSummaryComponent;
|
|
98
|
-
function mapStateToProps(state, ownProps) {
|
|
99
|
-
return {
|
|
100
|
-
CustomSorts: state.CustomSort.CustomSorts,
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
function mapDispatchToProps(dispatch) {
|
|
104
|
-
return {
|
|
105
|
-
onAddCustomSort: (customSort) => dispatch(CustomSortRedux.CustomSortAdd(customSort)),
|
|
106
|
-
onEditCustomSort: (customSort) => dispatch(CustomSortRedux.CustomSortEdit(customSort)),
|
|
107
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.CustomSortModuleId, config)),
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
exports.CustomSortSummary = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(CustomSortSummaryComponent);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ValidationErrorsMap } from '../DataImportWizard';
|
|
3
|
-
interface ImportSectionProps {
|
|
4
|
-
data?: Record<string, unknown>[];
|
|
5
|
-
onDataChange?: (data: Record<string, unknown>[]) => void;
|
|
6
|
-
errors: ValidationErrorsMap | null;
|
|
7
|
-
}
|
|
8
|
-
export declare const ImportSection: React.FunctionComponent<ImportSectionProps>;
|
|
9
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ImportSection = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const FormLayout_1 = tslib_1.__importStar(require("../../../../components/FormLayout"));
|
|
7
|
-
const check_box_1 = tslib_1.__importDefault(require("../../../../components/icons/check-box"));
|
|
8
|
-
const Tabs_1 = require("../../../../components/Tabs");
|
|
9
|
-
const DataPreview_1 = require("./DataPreview");
|
|
10
|
-
const Flex_1 = require("../../../../components/Flex");
|
|
11
|
-
const ImportSection = (props) => {
|
|
12
|
-
return (React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:p-2 twa:h-full" },
|
|
13
|
-
React.createElement(Tabs_1.Tabs, { className: "twa:mb-2" },
|
|
14
|
-
React.createElement(Tabs_1.Tabs.Tab, null, "Import Options"),
|
|
15
|
-
React.createElement(Tabs_1.Tabs.Content, null,
|
|
16
|
-
React.createElement(FormLayout_1.default, null,
|
|
17
|
-
React.createElement(FormLayout_1.FormRow, { label: "Exclude Invalid Rows" },
|
|
18
|
-
React.createElement(check_box_1.default, null))))),
|
|
19
|
-
React.createElement(Tabs_1.Tabs, { className: "twa:flex-1" },
|
|
20
|
-
React.createElement(Tabs_1.Tabs.Tab, null, "Preview"),
|
|
21
|
-
React.createElement(Tabs_1.Tabs.Content, null,
|
|
22
|
-
React.createElement(DataPreview_1.DataPreview, { onDataChange: props.onDataChange, data: props.data, errors: props.errors, editable: false })))));
|
|
23
|
-
};
|
|
24
|
-
exports.ImportSection = ImportSection;
|
|
@@ -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,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReportColumnTypeWizard = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const WizardPanel_1 = tslib_1.__importDefault(require("../../../components/WizardPanel"));
|
|
7
|
-
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
8
|
-
const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlock"));
|
|
9
|
-
const Flex_1 = require("../../../components/Flex");
|
|
10
|
-
class ReportColumnTypeWizard extends React.Component {
|
|
11
|
-
constructor(props) {
|
|
12
|
-
super(props);
|
|
13
|
-
this.state = {
|
|
14
|
-
ReportColumnScope: this.props.data.ReportColumnScope,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
return (React.createElement("div", { "data-name": 'report-select-columns' },
|
|
19
|
-
React.createElement(WizardPanel_1.default, null,
|
|
20
|
-
React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:p-2" },
|
|
21
|
-
React.createElement(HelpBlock_1.default, { className: "twa:mb-1" }, "All columns in the datasource will be included in the Report, whether visible or not at time of export"),
|
|
22
|
-
React.createElement(Radio_1.default, { value: "All", checked: this.state.ReportColumnScope == 'AllColumns', onChange: (_, e) => this.onScopeSelectChanged(e), className: "twa:mr-3" }, "All Columns"),
|
|
23
|
-
' ',
|
|
24
|
-
React.createElement(HelpBlock_1.default, { className: "twa:mb-1" }, "Only columns that are visible at the time the Report is exported will be included"),
|
|
25
|
-
React.createElement(Radio_1.default, { value: "Visible", checked: this.state.ReportColumnScope == 'VisibleColumns', onChange: (_, e) => this.onScopeSelectChanged(e), className: "twa:mr-3" }, "Visible Columns Only"),
|
|
26
|
-
' ',
|
|
27
|
-
React.createElement(HelpBlock_1.default, { className: "twa:mb-1" }, "Only selected columns (which you will choose in the next step) will be exported - whether visible or not"),
|
|
28
|
-
React.createElement(Radio_1.default, { value: "Bespoke", className: "twa:mr-3", checked: this.state.ReportColumnScope == 'ScopeColumns', onChange: (_, e) => this.onScopeSelectChanged(e) }, "Bespoke Columns"),
|
|
29
|
-
' '))));
|
|
30
|
-
}
|
|
31
|
-
onScopeSelectChanged(event) {
|
|
32
|
-
let e = event.target;
|
|
33
|
-
if (e.value == 'All') {
|
|
34
|
-
this.setState({
|
|
35
|
-
ReportColumnScope: 'AllColumns',
|
|
36
|
-
SelectedColumnValues: [],
|
|
37
|
-
}, () => this.props.updateGoBackState());
|
|
38
|
-
}
|
|
39
|
-
else if (e.value == 'Visible') {
|
|
40
|
-
this.setState({
|
|
41
|
-
ReportColumnScope: 'VisibleColumns',
|
|
42
|
-
SelectedColumnValues: [],
|
|
43
|
-
}, () => this.props.updateGoBackState());
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
this.setState({
|
|
47
|
-
ReportColumnScope: 'ScopeColumns',
|
|
48
|
-
}, () => this.props.updateGoBackState());
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
canNext() {
|
|
52
|
-
return (this.state.ReportColumnScope == 'AllColumns' ||
|
|
53
|
-
this.state.ReportColumnScope == 'VisibleColumns' ||
|
|
54
|
-
this.state.ReportColumnScope == 'ScopeColumns');
|
|
55
|
-
}
|
|
56
|
-
canBack() {
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
next() {
|
|
60
|
-
this.props.data.ReportColumnScope = this.state.ReportColumnScope;
|
|
61
|
-
if (this.state.ReportColumnScope != 'ScopeColumns') {
|
|
62
|
-
this.props.data.Scope = undefined;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
back() { }
|
|
66
|
-
getIndexStepIncrement() {
|
|
67
|
-
return this.state.ReportColumnScope == 'ScopeColumns' ? 1 : 2;
|
|
68
|
-
}
|
|
69
|
-
getIndexStepDecrement() {
|
|
70
|
-
return 1;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
exports.ReportColumnTypeWizard = ReportColumnTypeWizard;
|
|
@@ -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,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReportRowTypeWizard = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const WizardPanel_1 = tslib_1.__importDefault(require("../../../components/WizardPanel"));
|
|
7
|
-
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
8
|
-
const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlock"));
|
|
9
|
-
const Flex_1 = require("../../../components/Flex");
|
|
10
|
-
class ReportRowTypeWizard extends React.Component {
|
|
11
|
-
constructor(props) {
|
|
12
|
-
super(props);
|
|
13
|
-
this.state = {
|
|
14
|
-
ReportRowScope: this.props.data.ReportRowScope,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
return (React.createElement("div", { "data-name": 'report-select-rows' },
|
|
19
|
-
React.createElement(WizardPanel_1.default, null,
|
|
20
|
-
React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:p-2" },
|
|
21
|
-
React.createElement(HelpBlock_1.default, { className: "twa:mb-1" }, "All rows in the datasource will be included in the report, whether visible or not at time of export."),
|
|
22
|
-
React.createElement(Radio_1.default, { value: "All", checked: this.state.ReportRowScope == 'AllRows', onChange: (_, e) => this.onScopeSelectChanged(e), className: "twa:mr-3" }, "All Rows"),
|
|
23
|
-
' ',
|
|
24
|
-
React.createElement(HelpBlock_1.default, { className: "twa:mb-1" }, "Only rows that are visible at the time the Report is exported will be included in the Export"),
|
|
25
|
-
React.createElement(Radio_1.default, { value: "Visible", checked: this.state.ReportRowScope == 'VisibleRows', onChange: (_, e) => this.onScopeSelectChanged(e), className: "twa:mr-3" }, "Visible Rows Only"),
|
|
26
|
-
' ',
|
|
27
|
-
React.createElement(HelpBlock_1.default, { className: "twa:mb-1" }, "Only the rows which match the Query (built in next step) will be exported - whether visible or not."),
|
|
28
|
-
React.createElement(Radio_1.default, { value: "Expression", checked: this.state.ReportRowScope == 'ExpressionRows', onChange: (_, e) => this.onScopeSelectChanged(e), className: "twa:mr-3" }, "By Query - built by you in next step"),
|
|
29
|
-
' '))));
|
|
30
|
-
}
|
|
31
|
-
onScopeSelectChanged(event) {
|
|
32
|
-
let e = event.target;
|
|
33
|
-
if (e.value == 'All') {
|
|
34
|
-
this.setState({
|
|
35
|
-
ReportRowScope: 'AllRows',
|
|
36
|
-
SelectedColumnValues: [],
|
|
37
|
-
}, () => this.props.updateGoBackState());
|
|
38
|
-
}
|
|
39
|
-
else if (e.value == 'Visible') {
|
|
40
|
-
this.setState({
|
|
41
|
-
ReportRowScope: 'VisibleRows',
|
|
42
|
-
SelectedColumnValues: [],
|
|
43
|
-
}, () => this.props.updateGoBackState());
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
this.setState({
|
|
47
|
-
ReportRowScope: 'ExpressionRows',
|
|
48
|
-
}, () => this.props.updateGoBackState());
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
canNext() {
|
|
52
|
-
return (this.state.ReportRowScope == 'AllRows' ||
|
|
53
|
-
this.state.ReportRowScope == 'VisibleRows' ||
|
|
54
|
-
this.state.ReportRowScope == 'ExpressionRows');
|
|
55
|
-
}
|
|
56
|
-
canBack() {
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
next() {
|
|
60
|
-
this.props.data.ReportRowScope = this.state.ReportRowScope;
|
|
61
|
-
if (this.props.data.Query && this.state.ReportRowScope != 'ExpressionRows') {
|
|
62
|
-
this.props.data.Query = undefined;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
back() { }
|
|
66
|
-
getIndexStepIncrement() {
|
|
67
|
-
return this.state.ReportRowScope == 'ExpressionRows' ? 1 : 2;
|
|
68
|
-
}
|
|
69
|
-
getIndexStepDecrement() {
|
|
70
|
-
return this.props.data.ReportColumnScope == 'ScopeColumns' ? 1 : 2;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
exports.ReportRowTypeWizard = ReportRowTypeWizard;
|
|
@@ -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,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReportSettingsWizard = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const StringExtensions_1 = require("../../../Utilities/Extensions/StringExtensions");
|
|
7
|
-
const WizardPanel_1 = tslib_1.__importDefault(require("../../../components/WizardPanel"));
|
|
8
|
-
const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
9
|
-
const ErrorBox_1 = tslib_1.__importDefault(require("../../../components/ErrorBox"));
|
|
10
|
-
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
11
|
-
const Flex_1 = require("../../../components/Flex");
|
|
12
|
-
class ReportSettingsWizard extends React.Component {
|
|
13
|
-
constructor(props) {
|
|
14
|
-
super(props);
|
|
15
|
-
this.state = {
|
|
16
|
-
ReportName: this.props.data.Name,
|
|
17
|
-
ErrorMessage: null,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
let validationState = StringExtensions_1.StringExtensions.IsNullOrEmpty(this.state.ErrorMessage)
|
|
22
|
-
? null
|
|
23
|
-
: 'error';
|
|
24
|
-
return (React.createElement("div", { "data-name": 'report-settings' },
|
|
25
|
-
React.createElement(WizardPanel_1.default, null,
|
|
26
|
-
React.createElement(FormLayout_1.default, { columns: [1, 2] },
|
|
27
|
-
React.createElement(FormLayout_1.FormRow, null,
|
|
28
|
-
React.createElement(Flex_1.Box, { className: "twa:mr-2" }, "Enter Report Name:"),
|
|
29
|
-
React.createElement(Input_1.default, { className: "twa:w-full", type: "text", placeholder: "Name", value: this.state.ReportName, onChange: (e) => this.onReportNameChanged(e) })),
|
|
30
|
-
React.createElement(FormLayout_1.FormRow, null,
|
|
31
|
-
React.createElement(React.Fragment, null),
|
|
32
|
-
this.state.ErrorMessage ? React.createElement(ErrorBox_1.default, null, this.state.ErrorMessage) : null)))));
|
|
33
|
-
}
|
|
34
|
-
onReportNameChanged(event) {
|
|
35
|
-
let e = event.target;
|
|
36
|
-
this.setState({
|
|
37
|
-
ReportName: e.value,
|
|
38
|
-
ErrorMessage: this.props.Reports.findIndex((x) => x.Name == e.value) > -1
|
|
39
|
-
? 'A Report already exists with that name'
|
|
40
|
-
: null,
|
|
41
|
-
}, () => this.props.updateGoBackState());
|
|
42
|
-
}
|
|
43
|
-
canNext() {
|
|
44
|
-
return (StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.state.ReportName) &&
|
|
45
|
-
StringExtensions_1.StringExtensions.IsNullOrEmpty(this.state.ErrorMessage));
|
|
46
|
-
}
|
|
47
|
-
canBack() {
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
next() {
|
|
51
|
-
this.props.data.Name = this.state.ReportName;
|
|
52
|
-
}
|
|
53
|
-
back() { }
|
|
54
|
-
getIndexStepIncrement() {
|
|
55
|
-
return 1;
|
|
56
|
-
}
|
|
57
|
-
getIndexStepDecrement() {
|
|
58
|
-
return this.props.data.ReportRowScope == 'ExpressionRows' ? 1 : 2;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.ReportSettingsWizard = ReportSettingsWizard;
|
|
@@ -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,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReportSummaryWizard = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const WizardSummaryPage_1 = require("../../Components/WizardSummaryPage");
|
|
7
|
-
class ReportSummaryWizard extends React.Component {
|
|
8
|
-
constructor(props) {
|
|
9
|
-
super(props);
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
let keyValuePairs = [
|
|
13
|
-
{ Key: 'Name', Value: this.props.data.Name },
|
|
14
|
-
{
|
|
15
|
-
Key: 'Column Scope',
|
|
16
|
-
Value: this.props.api.exportApi.internalApi.getReportColumnScopeLongDescription(this.props.data),
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
Key: 'Row Scope',
|
|
20
|
-
Value: this.props.api.exportApi.internalApi.getReportExpressionDescription(this.props.data, this.props.api.columnApi.getColumns()),
|
|
21
|
-
},
|
|
22
|
-
];
|
|
23
|
-
return (React.createElement(WizardSummaryPage_1.WizardSummaryPage, { KeyValuePairs: keyValuePairs, header: this.props.moduleInfo.FriendlyName }));
|
|
24
|
-
}
|
|
25
|
-
canNext() {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
canBack() {
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
next() { }
|
|
32
|
-
back() { }
|
|
33
|
-
getIndexStepIncrement() {
|
|
34
|
-
return 1;
|
|
35
|
-
}
|
|
36
|
-
getIndexStepDecrement() {
|
|
37
|
-
return 1;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.ReportSummaryWizard = ReportSummaryWizard;
|
|
@@ -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,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FilterSummary = exports.FilterSummaryComponent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const react_redux_1 = require("react-redux");
|
|
7
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
|
-
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
9
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
10
|
-
const LayoutRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/LayoutRedux"));
|
|
11
|
-
const SummaryRowItem_1 = require("../Components/ModuleSummary/SummaryRowItem");
|
|
12
|
-
const ModuleProfile_1 = require("../Components/ModuleProfile");
|
|
13
|
-
const ButtonClear_1 = require("../Components/Buttons/ButtonClear");
|
|
14
|
-
const UIHelper_1 = require("../UIHelper");
|
|
15
|
-
const LayoutRedux_1 = require("../../Redux/ActionsReducers/LayoutRedux");
|
|
16
|
-
class FilterSummaryComponent extends React.Component {
|
|
17
|
-
constructor(props) {
|
|
18
|
-
super(props);
|
|
19
|
-
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
let columnFilter = this.props.ColumnFilters.find((c) => c.ColumnId == this.props.summarisedColumn.columnId);
|
|
23
|
-
let description = this.getDescription(columnFilter);
|
|
24
|
-
let summaryItems = [];
|
|
25
|
-
summaryItems.push(React.createElement("b", null, React.createElement(ModuleProfile_1.ModuleProfile, { moduleInfo: this.props.moduleInfo })));
|
|
26
|
-
summaryItems.push(description);
|
|
27
|
-
summaryItems.push(React.createElement(ButtonClear_1.ButtonClear, { className: "twa:ml-1", onClick: () => this.props.onClearFilter(columnFilter), tooltip: "Clear Filter", disabled: columnFilter == null, accessLevel: this.props.accessLevel }));
|
|
28
|
-
return React.createElement(SummaryRowItem_1.SummaryRowItem, { SummaryItems: summaryItems });
|
|
29
|
-
}
|
|
30
|
-
getDescription(columnFilter) {
|
|
31
|
-
if (this.props.summarisedColumn && !this.props.summarisedColumn.filterable) {
|
|
32
|
-
return 'Column is not filterable';
|
|
33
|
-
}
|
|
34
|
-
if (columnFilter == null) {
|
|
35
|
-
return 'No Column Filter Active';
|
|
36
|
-
}
|
|
37
|
-
return this.props.api.filterApi.columnFilterApi.columnFilterToString(columnFilter);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.FilterSummaryComponent = FilterSummaryComponent;
|
|
41
|
-
function mapStateToProps(state) {
|
|
42
|
-
return {
|
|
43
|
-
ColumnFilters: (0, LayoutRedux_1.getColumnFiltersSelector)(state),
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function mapDispatchToProps(dispatch) {
|
|
47
|
-
return {
|
|
48
|
-
onClearFilter: (columnFilter) => dispatch(LayoutRedux.LayoutColumnFilterClear(columnFilter.ColumnId)),
|
|
49
|
-
onClearPopupParams: () => dispatch(PopupRedux.PopupClearParam()),
|
|
50
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.ColumnFilterModuleId, config)),
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
exports.FilterSummary = (0, react_redux_1.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
|
-
}>;
|