@adaptabletools/adaptable 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 +73 -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/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 +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 +36 -5
- 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 +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 +18 -17
- 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 +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 +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 +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 +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
|
@@ -2,16 +2,68 @@ import * as React from 'react';
|
|
|
2
2
|
import Panel from '../../../../components/Panel';
|
|
3
3
|
import SimpleButton from '../../../../components/SimpleButton';
|
|
4
4
|
import { Box, Flex } from '../../../../components/Flex';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import { useEffect, useLayoutEffect } from 'react';
|
|
5
7
|
const ColumnFilterMenuItem = ({ active, onClick, icon, label, }) => {
|
|
6
8
|
return (React.createElement(SimpleButton, { className: "twa:p-1 twa:w-full", variant: "text", tone: active ? 'info' : 'none', onClick: onClick },
|
|
7
9
|
React.createElement(Box, { className: "twa:mr-2" }, icon),
|
|
8
10
|
React.createElement(Box, { className: "twa:text-2" }, label)));
|
|
9
11
|
};
|
|
10
12
|
export const ColumnFilterMenu = (props) => {
|
|
13
|
+
const [activeIndex, setActiveIndex] = React.useState(() => {
|
|
14
|
+
const index = props.predicateDefs.findIndex((predicateDef) => predicateDef.operator === props.predicate.operator);
|
|
15
|
+
return index === -1 ? 0 : index;
|
|
16
|
+
});
|
|
17
|
+
const activeIndexRef = React.useRef(activeIndex);
|
|
18
|
+
const onPredicateChangeRef = React.useRef(props.onPredicateChange);
|
|
19
|
+
const predicateDefsRef = React.useRef(props.predicateDefs);
|
|
20
|
+
useLayoutEffect(() => {
|
|
21
|
+
activeIndexRef.current = activeIndex;
|
|
22
|
+
onPredicateChangeRef.current = props.onPredicateChange;
|
|
23
|
+
predicateDefsRef.current = props.predicateDefs;
|
|
24
|
+
});
|
|
25
|
+
const confirm = React.useCallback((predicateDef) => {
|
|
26
|
+
onPredicateChangeRef.current({ operator: predicateDef.operator, args: [] });
|
|
27
|
+
}, []);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
const onKeyDown = (e) => {
|
|
30
|
+
// Only handle arrow keys and Enter - let other keys (like Tab) pass through
|
|
31
|
+
if (e.key !== 'ArrowDown' && e.key !== 'ArrowUp' && e.key !== 'Enter') {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const activeIndex = activeIndexRef.current;
|
|
35
|
+
const predicateDefs = predicateDefsRef.current;
|
|
36
|
+
if (e.key === 'Enter') {
|
|
37
|
+
const predicateDef = predicateDefs[activeIndex];
|
|
38
|
+
if (predicateDef) {
|
|
39
|
+
confirm(predicateDef);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
e.stopPropagation();
|
|
43
|
+
e.preventDefault();
|
|
44
|
+
const dir = e.key === 'ArrowDown' ? 1 : e.key === 'ArrowUp' ? -1 : 0;
|
|
45
|
+
if (dir) {
|
|
46
|
+
let nextIndex = activeIndex + dir;
|
|
47
|
+
if (nextIndex < 0) {
|
|
48
|
+
nextIndex = predicateDefs.length - 1;
|
|
49
|
+
}
|
|
50
|
+
else if (nextIndex >= predicateDefs.length) {
|
|
51
|
+
nextIndex = 0;
|
|
52
|
+
}
|
|
53
|
+
setActiveIndex(nextIndex);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
document.addEventListener('keydown', onKeyDown);
|
|
57
|
+
return () => {
|
|
58
|
+
document.removeEventListener('keydown', onKeyDown);
|
|
59
|
+
};
|
|
60
|
+
}, [confirm]);
|
|
11
61
|
return (React.createElement(Panel, { className: "twa:min-w-max" }, props.predicateDefs?.map((predicateDef, index) => {
|
|
12
|
-
|
|
62
|
+
const active = activeIndex === index;
|
|
63
|
+
return (React.createElement(Flex, { className: clsx("twa:mb-1", active && "twa:bg-primarylight"), key: index, onMouseDownCapture: (e) => {
|
|
13
64
|
e.stopPropagation();
|
|
65
|
+
e.preventDefault();
|
|
14
66
|
} },
|
|
15
|
-
React.createElement(ColumnFilterMenuItem, { onClick: () =>
|
|
67
|
+
React.createElement(ColumnFilterMenuItem, { onClick: () => confirm(predicateDef), icon: predicateDef.icon, label: predicateDef.label, active: active })));
|
|
16
68
|
})));
|
|
17
69
|
};
|
|
@@ -204,7 +204,7 @@ export const FloatingFilterValues = (props) => {
|
|
|
204
204
|
...(props.value?.length
|
|
205
205
|
? {
|
|
206
206
|
valueContainer: {
|
|
207
|
-
fontWeight: 'var(--ab-cmp-
|
|
207
|
+
fontWeight: 'var(--ab-cmp-floatingfilter-selected-options-text__font-weight)',
|
|
208
208
|
},
|
|
209
209
|
}
|
|
210
210
|
: {}),
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
export const isAdaptableRuleValid = (abObject, api, context) => {
|
|
2
2
|
if (abObject?.Rule?.Predicates?.length) {
|
|
3
3
|
if (!api.predicateApi.isEveryPredicateValid(abObject?.Rule?.Predicates)) {
|
|
4
|
-
return `The
|
|
4
|
+
return `The predicate${abObject?.Rule?.Predicates?.length === 1 ? ' is' : 's are'} not valid.`;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
7
|
if (abObject?.Rule?.BooleanExpression) {
|
|
8
8
|
if (!api.expressionApi.isValidBooleanExpression(abObject?.Rule?.BooleanExpression, context.moduleInfo.ModuleName)) {
|
|
9
|
-
return 'The
|
|
9
|
+
return 'The Boolean expression is not valid.';
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
if (abObject?.Rule?.ObservableExpression) {
|
|
13
13
|
if (!api.expressionApi.isValidObservableExpression(abObject?.Rule?.ObservableExpression, context.moduleInfo.ModuleName)) {
|
|
14
|
-
return 'The
|
|
14
|
+
return 'The Observable expression is not valid.';
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
if (abObject?.Rule?.AggregatedBooleanExpression) {
|
|
18
18
|
if (!api.expressionApi.isValidAggregatedBooleanExpression(abObject?.Rule?.AggregatedBooleanExpression, context.moduleInfo.ModuleName)) {
|
|
19
|
-
return 'The
|
|
19
|
+
return 'The Aggregated Boolean expression is not valid.';
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
if (abObject?.Rule?.Predicates?.length) {
|
|
23
23
|
const isAPredicateWithInvalidColumnId = abObject?.Rule?.Predicates?.some((predicate) => predicate.ColumnId !== undefined && predicate.ColumnId === '');
|
|
24
24
|
if (isAPredicateWithInvalidColumnId) {
|
|
25
|
-
return 'Predicates with custom scope
|
|
25
|
+
return 'Predicates with a custom scope require a valid column.';
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
return true;
|
|
@@ -14,13 +14,13 @@ import { TagList } from '../../components/Tag/Tag';
|
|
|
14
14
|
export const isScopeValid = ({ Scope }) => {
|
|
15
15
|
const result = [];
|
|
16
16
|
if (!Scope) {
|
|
17
|
-
return '
|
|
17
|
+
return 'A scope is required.';
|
|
18
18
|
}
|
|
19
19
|
if (Scope && 'ColumnIds' in Scope && Scope.ColumnIds.length === 0) {
|
|
20
|
-
result.push('
|
|
20
|
+
result.push('Please select at least one column for the scope.');
|
|
21
21
|
}
|
|
22
22
|
if (Scope && 'DataTypes' in Scope && Scope.DataTypes.length === 0) {
|
|
23
|
-
result.push('
|
|
23
|
+
result.push('Please select at least one data type for the scope.');
|
|
24
24
|
}
|
|
25
25
|
return result.length ? result.join(', ') : true;
|
|
26
26
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DashboardToolbar as DashboardToolbarUI } from '../../../../components/Dashboard';
|
|
3
3
|
export class PanelDashboard extends React.Component {
|
|
4
|
+
static defaultProps = {
|
|
5
|
+
showConfigureActionButton: true,
|
|
6
|
+
showCloseActionButton: true,
|
|
7
|
+
headerText: 'Module',
|
|
8
|
+
onClose: null,
|
|
9
|
+
onConfigure: null,
|
|
10
|
+
accessLevel: 'Full',
|
|
11
|
+
};
|
|
4
12
|
render() {
|
|
5
13
|
const { headerText, showConfigureActionButton, showCloseActionButton, onConfigure, onClose, accessLevel, children, } = this.props;
|
|
6
14
|
return (React.createElement(DashboardToolbarUI, { title: headerText, onConfigure: onConfigure, showConfigure: showConfigureActionButton, showClose: showCloseActionButton, onClose: onClose, accessLevel: accessLevel }, children));
|
|
7
15
|
}
|
|
8
16
|
}
|
|
9
|
-
PanelDashboard.defaultProps = {
|
|
10
|
-
showConfigureActionButton: true,
|
|
11
|
-
showCloseActionButton: true,
|
|
12
|
-
headerText: 'Module',
|
|
13
|
-
onClose: null,
|
|
14
|
-
onConfigure: null,
|
|
15
|
-
accessLevel: 'Full',
|
|
16
|
-
};
|
|
@@ -7,6 +7,13 @@ import { ButtonMaximise } from '../../Buttons/ButtonMaximise';
|
|
|
7
7
|
import { twMerge } from '../../../../twMerge';
|
|
8
8
|
import { Flex } from '../../../../components/Flex';
|
|
9
9
|
export class PanelToolPanel extends React.Component {
|
|
10
|
+
static defaultProps = {
|
|
11
|
+
headerText: '',
|
|
12
|
+
onClose: null,
|
|
13
|
+
onConfigure: null,
|
|
14
|
+
onMinimiseChanged: null,
|
|
15
|
+
isMinimised: true,
|
|
16
|
+
};
|
|
10
17
|
render() {
|
|
11
18
|
const { useDefaultPanelStyle, isMinimised, onMinimiseChanged, headerText, onClose, onConfigure, ...props } = this.props;
|
|
12
19
|
let header = (React.createElement(React.Fragment, null,
|
|
@@ -38,10 +45,3 @@ export class PanelToolPanel extends React.Component {
|
|
|
38
45
|
} }));
|
|
39
46
|
}
|
|
40
47
|
}
|
|
41
|
-
PanelToolPanel.defaultProps = {
|
|
42
|
-
headerText: '',
|
|
43
|
-
onClose: null,
|
|
44
|
-
onConfigure: null,
|
|
45
|
-
onMinimiseChanged: null,
|
|
46
|
-
isMinimised: true,
|
|
47
|
-
};
|
|
@@ -9,6 +9,7 @@ import { AdaptablePopupBody } from './AdaptablePopupBody';
|
|
|
9
9
|
import { useAdaptable } from '../../../AdaptableContext';
|
|
10
10
|
import { CustomSettingsPanelView } from './CustomSettingsPanelView';
|
|
11
11
|
import { useMenuItems } from './useMenuItems';
|
|
12
|
+
import { resolveContainerElement } from '../../../../Utilities/resolveContainerElement';
|
|
12
13
|
import { AdaptablePopupDialog } from './AdaptablePopupDialog';
|
|
13
14
|
import { Box } from '../../../../components/Flex';
|
|
14
15
|
export const AdaptablePopup = (props) => {
|
|
@@ -17,7 +18,7 @@ export const AdaptablePopup = (props) => {
|
|
|
17
18
|
const settingsPanelTitle = adaptable.ModuleService.getModuleFriendlyName('SettingsPanel');
|
|
18
19
|
const menuItems = useMenuItems();
|
|
19
20
|
const isWindowModal = settingsPanelOptions.popupType === 'window';
|
|
20
|
-
const modalContainer = adaptable.adaptableOptions?.containerOptions?.modalContainer;
|
|
21
|
+
const modalContainer = resolveContainerElement(adaptable.adaptableOptions?.containerOptions?.modalContainer, props.api.internalApi.buildBaseContext());
|
|
21
22
|
let friendlyName = null;
|
|
22
23
|
/**
|
|
23
24
|
* This means that it is not rendered in the context of Settings Panel
|
|
@@ -3,7 +3,7 @@ import { UIHelper } from '../../../UIHelper';
|
|
|
3
3
|
import { AdaptableViewFactory } from '../../../AdaptableViewFactory';
|
|
4
4
|
import { AdaptablePopupModuleView } from './AdaptablePopupModuleView';
|
|
5
5
|
export const AdaptablePopupBody = (props) => {
|
|
6
|
-
const modalContainer = UIHelper.getModalContainer(props.api.optionsApi.getAdaptableOptions(), document);
|
|
6
|
+
const modalContainer = UIHelper.getModalContainer(props.api.optionsApi.getAdaptableOptions(), document, props.api.internalApi.buildBaseContext());
|
|
7
7
|
const moduleName = props.module.moduleInfo.ModuleName;
|
|
8
8
|
const accessLevel = props.api.entitlementApi.getEntitlementAccessLevelForModule(moduleName);
|
|
9
9
|
const moduleInfo = props.api.internalApi.getModuleService().getModuleInfoByModule(moduleName);
|
|
@@ -43,14 +43,7 @@ const PopupDialog = (props) => {
|
|
|
43
43
|
export const AdaptablePopupDialog = (props) => {
|
|
44
44
|
const { isActionModule, style, friendlyName, baseClassName, className, children, onHide, isWindowModal, modalContainer, } = props;
|
|
45
45
|
if (modalContainer) {
|
|
46
|
-
|
|
47
|
-
if (typeof modalContainer === 'string') {
|
|
48
|
-
ref = globalThis.document.querySelector(modalContainer);
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
ref = modalContainer;
|
|
52
|
-
}
|
|
53
|
-
return createPortal(React.createElement(Dialog, { "data-name": props.dataName, modal: false, fixed: false, onDismiss: onHide, className: className }, children), ref);
|
|
46
|
+
return createPortal(React.createElement(Dialog, { "data-name": props.dataName, modal: false, fixed: false, onDismiss: onHide, className: className }, children), modalContainer);
|
|
54
47
|
}
|
|
55
48
|
if (isWindowModal) {
|
|
56
49
|
const settingsPanelOptionsKey = isActionModule ? `action-${friendlyName}` : 'settings';
|
|
@@ -51,7 +51,7 @@ export const AdaptablePopupConfirmation = (props) => {
|
|
|
51
51
|
setDisableDeleteConfirmation(!disableDeleteConfirmation);
|
|
52
52
|
} }, "Do not show this again")),
|
|
53
53
|
props.showInputBox && (React.createElement(Box, { className: "twa:p-2", "data-name": "body" },
|
|
54
|
-
React.createElement("p", null, "Please enter a comment to confirm"),
|
|
54
|
+
React.createElement("p", null, "Please enter a comment to confirm."),
|
|
55
55
|
React.createElement(Input, { className: "twa:mt-2 twa:w-full", value: promptText, type: "string", placeholder: "Enter text", onChange: (e) => changeContent(e) }))),
|
|
56
56
|
React.createElement(Flex, { className: "twa:mt-3 twa:p-2", "data-name": "footer", justifyContent: "space-between" },
|
|
57
57
|
props.cancelButtonText != null ? (React.createElement(SimpleButton, { "data-name": "cancel", tone: "neutral", variant: "raised", onClick: () => onCancelForm() }, props.cancelButtonText)) : (React.createElement("div", null)),
|
|
@@ -1,16 +1,44 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
2
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
3
4
|
import Dialog from '../../../../components/Dialog';
|
|
4
5
|
import { PopupHideWindow } from '../../../../Redux/ActionsReducers/PopupRedux';
|
|
6
|
+
import { resolveContainerElement } from '../../../../Utilities/resolveContainerElement';
|
|
5
7
|
import { useAdaptable } from '../../../AdaptableContext';
|
|
6
8
|
import { ExternalRenderer } from '../../ExternalRenderer';
|
|
7
9
|
import { PanelWithImage } from '../../Panels/PanelWithImage';
|
|
8
10
|
import { getMiddlePosition, getWindowPopupSize } from '../Utilities';
|
|
9
|
-
import { windowFactory } from './windowFactory';
|
|
11
|
+
import { WINDOW_SHOW_TRANSPOSED_VIEW, windowFactory } from './windowFactory';
|
|
10
12
|
const NoopComponent = () => {
|
|
11
13
|
return React.createElement(React.Fragment, null);
|
|
12
14
|
};
|
|
13
15
|
export const CUSTOM_WINDOW_FACTORY_ID = 'CUSTOM_WINDOW_FACTORY_ID';
|
|
16
|
+
/**
|
|
17
|
+
* Portals children into a target container element.
|
|
18
|
+
* Monitors the container with a MutationObserver — if the container is removed
|
|
19
|
+
* from the DOM, `onContainerRemoved` is called so callers can clean up React/Redux state.
|
|
20
|
+
*/
|
|
21
|
+
const ContainerPortal = ({ container, onContainerRemoved, children }) => {
|
|
22
|
+
React.useEffect(() => {
|
|
23
|
+
// If the container is already detached, clean up immediately
|
|
24
|
+
if (!document.contains(container)) {
|
|
25
|
+
onContainerRemoved();
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const observer = new MutationObserver(() => {
|
|
29
|
+
if (!document.contains(container)) {
|
|
30
|
+
onContainerRemoved();
|
|
31
|
+
observer.disconnect();
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
// Observe the entire document body for subtree removals
|
|
35
|
+
observer.observe(document.body, { childList: true, subtree: true });
|
|
36
|
+
return () => {
|
|
37
|
+
observer.disconnect();
|
|
38
|
+
};
|
|
39
|
+
}, [container, onContainerRemoved]);
|
|
40
|
+
return createPortal(children, container);
|
|
41
|
+
};
|
|
14
42
|
export const WindowPopups = () => {
|
|
15
43
|
const [windowModalSettings, setWindowModalSettings] = React.useState({});
|
|
16
44
|
const adaptable = useAdaptable();
|
|
@@ -37,6 +65,13 @@ export const WindowPopups = () => {
|
|
|
37
65
|
Component = Component ?? NoopComponent;
|
|
38
66
|
componentNode = (React.createElement(Component, { api: adaptable.api, onDismiss: handleDismiss, popupProps: restPopupProps }));
|
|
39
67
|
}
|
|
68
|
+
// Transposed View: portal into custom container if configured
|
|
69
|
+
if (windowItem.FactoryId === WINDOW_SHOW_TRANSPOSED_VIEW) {
|
|
70
|
+
const transposedContainer = resolveContainerElement(adaptable.adaptableOptions?.containerOptions?.transposedViewContainer, adaptable.api.internalApi.buildBaseContext());
|
|
71
|
+
if (transposedContainer) {
|
|
72
|
+
return (React.createElement(ContainerPortal, { key: windowItem.Id, container: transposedContainer, onContainerRemoved: handleDismiss }, componentNode));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
40
75
|
return (React.createElement(Dialog, { "data-name": windowItem.Id, className: "ab-Window-Modal twa:h-full twa:p-0", key: windowItem.Id, windowModal: true, windowModalProps: {
|
|
41
76
|
...windowModalProps,
|
|
42
77
|
onChange: (settings) => {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
|
+
import DropdownButton from '../../../components/DropdownButton';
|
|
3
4
|
import UIHelper from '../../UIHelper';
|
|
4
5
|
import AdaptableInput from '../AdaptableInput';
|
|
5
6
|
import { PermittedValuesSelector } from './PermittedValuesSelector';
|
|
6
|
-
import { Select } from '../../../components/Select';
|
|
7
7
|
import { useAdaptable } from '../../AdaptableContext';
|
|
8
|
-
import { useCallback } from 'react';
|
|
9
8
|
import clsx from 'clsx';
|
|
10
|
-
import { Box } from '../../../components/Flex';
|
|
9
|
+
import { Box, Flex } from '../../../components/Flex';
|
|
10
|
+
import { Icon } from '../../../components/icons';
|
|
11
|
+
import { InputGroup } from '../../../components/InputGroup';
|
|
11
12
|
export const BulkUpdateValueSelector = (props) => {
|
|
12
13
|
const [valueType, setValueType] = React.useState('existing');
|
|
13
14
|
const adaptable = useAdaptable();
|
|
@@ -17,8 +18,8 @@ export const BulkUpdateValueSelector = (props) => {
|
|
|
17
18
|
// TODO = this seems to be called whenever we edit a cell
|
|
18
19
|
// which is then triggering a get all values
|
|
19
20
|
// not sure that we need to
|
|
20
|
-
const permittedValueSelector = (React.createElement(Box,
|
|
21
|
-
React.createElement(PermittedValuesSelector, { allowNewValues: true, searchable: 'inline', disabled: props.disabled || !props.selectedColumn, value: props.selectedColumnValue === '' ? null : props.selectedColumnValue, columnId: columnId, placeholder:
|
|
21
|
+
const permittedValueSelector = (React.createElement(Box, { className: 'twa:flex-1' },
|
|
22
|
+
React.createElement(PermittedValuesSelector, { allowNewValues: true, searchable: 'inline', disabled: props.disabled || !props.selectedColumn, value: props.selectedColumnValue === '' ? null : props.selectedColumnValue, columnId: columnId, placeholder: 'Select value', loadValues: useCallback(({ currentSearchValue }) => {
|
|
22
23
|
if (!columnId || !props.selectedGridCells.length) {
|
|
23
24
|
return Promise.resolve([]);
|
|
24
25
|
}
|
|
@@ -41,16 +42,16 @@ export const BulkUpdateValueSelector = (props) => {
|
|
|
41
42
|
: 'Enter Value', autoFocus: true, disabled: props.disabled, className: "twa:w-full", value: props.selectedColumnValue, onChange: (e) => {
|
|
42
43
|
props.onColumnValueChange(e.target.value);
|
|
43
44
|
} }));
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
45
|
+
return (React.createElement(Flex, { className: clsx('twa:overflow-visible twa:max-w-full', props.className), style: props.style }, isDateType ? (React.createElement(React.Fragment, null,
|
|
46
|
+
React.createElement(InputGroup, { Component: Flex, "data-id": "bulk-update-input-wrapper", className: "twa:w-full" },
|
|
47
|
+
React.createElement(DropdownButton, { "aria-label": "Bulk Update Value Selector", "data-id": "bulk-update-value-type-selector", "data-value": valueType, columns: ['label'], variant: "outlined", tone: "neutral", items: [
|
|
48
|
+
{ label: 'New', icon: React.createElement(Icon, { name: "edit" }), onClick: () => setValueType('new') },
|
|
49
|
+
{
|
|
50
|
+
label: 'Existing',
|
|
51
|
+
icon: React.createElement(Icon, { name: "grid" }),
|
|
52
|
+
onClick: () => setValueType('existing'),
|
|
53
|
+
},
|
|
54
|
+
] },
|
|
55
|
+
React.createElement(React.Fragment, null, valueType === 'existing' ? React.createElement(Icon, { name: "grid" }) : React.createElement(Icon, { name: "edit" }))),
|
|
56
|
+
valueType === 'new' ? input : permittedValueSelector))) : (permittedValueSelector)));
|
|
56
57
|
};
|
|
@@ -10,6 +10,7 @@ export interface StyleComponentProps {
|
|
|
10
10
|
hidePreview?: boolean;
|
|
11
11
|
headerText?: string;
|
|
12
12
|
Style: AdaptableStyle;
|
|
13
|
+
/** @deprecated No longer used - font size is always displayed as dropdown */
|
|
13
14
|
showFontSizeAs?: 'radio' | 'dropdown';
|
|
14
15
|
UpdateStyle: (style: AdaptableStyle) => void;
|
|
15
16
|
}
|
|
@@ -5,7 +5,7 @@ import { CheckBox } from '../../components/CheckBox';
|
|
|
5
5
|
import { ColorPicker } from '../../components/ColorPicker';
|
|
6
6
|
import HelpBlock from '../../components/HelpBlock';
|
|
7
7
|
import Panel from '../../components/Panel';
|
|
8
|
-
import
|
|
8
|
+
import { Tabs } from '../../components/Tabs';
|
|
9
9
|
import { Select } from '../../components/Select';
|
|
10
10
|
import { StylePreview } from '../../components/StylePreview';
|
|
11
11
|
import { Toggle, ToggleGroup } from '../../components/Toggle';
|
|
@@ -129,6 +129,14 @@ export const StyleComponent = (props) => {
|
|
|
129
129
|
}
|
|
130
130
|
setComponentStyle(newStyle);
|
|
131
131
|
};
|
|
132
|
+
const onAlignmentChange = (alignment) => {
|
|
133
|
+
const newStyle = { ...componentStyle };
|
|
134
|
+
newStyle.Alignment = alignment;
|
|
135
|
+
if (alignment == 'Default') {
|
|
136
|
+
delete newStyle.Alignment;
|
|
137
|
+
}
|
|
138
|
+
setComponentStyle(newStyle);
|
|
139
|
+
};
|
|
132
140
|
const Cmp = props.headless ? Box : Panel;
|
|
133
141
|
const headerText = props.headerText ?? 'Style';
|
|
134
142
|
const cmpProps = props.headless
|
|
@@ -140,25 +148,85 @@ export const StyleComponent = (props) => {
|
|
|
140
148
|
const styleClassNames = props.api.userInterfaceApi.getStyleClassNames();
|
|
141
149
|
const colourSpellingVariant = props.api.internalApi.getCorrectEnglishVariant('Colour');
|
|
142
150
|
const coloursSpellingVariant = props.api.internalApi.getCorrectEnglishVariant('colours');
|
|
143
|
-
const fontSizes = ['Default', ...EnumExtensions.getNames(FontSize)];
|
|
144
151
|
return (React.createElement(Cmp, { ...cmpProps, className: twMerge(clsx('ab-StyleComponent twa:text-3', props.className)) },
|
|
145
|
-
ArrayExtensions.IsNotNullOrEmpty(styleClassNames)
|
|
146
|
-
React.createElement(
|
|
147
|
-
|
|
148
|
-
React.createElement(
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
152
|
+
ArrayExtensions.IsNotNullOrEmpty(styleClassNames) ? (React.createElement(Tabs, { value: showClassName ? 'classname' : 'createstyle', onValueChange: (value) => onShowClassNameChanged(value === 'classname') },
|
|
153
|
+
React.createElement(Tabs.Tab, { "data-name": "show-class-name", value: "classname" }, "Use Style Class Name"),
|
|
154
|
+
React.createElement(Tabs.Tab, { "data-name": "create-style", value: "createstyle" }, "Create Style"),
|
|
155
|
+
React.createElement(Tabs.Content, { value: "classname" },
|
|
156
|
+
React.createElement(Card, { shadow: false },
|
|
157
|
+
React.createElement(Card.Title, null, "CSS Class Name"),
|
|
158
|
+
React.createElement(Card.Body, { gap: 2, className: "twa:p-1" },
|
|
159
|
+
React.createElement(HelpBlock, null, "Select a CSS Class Name"),
|
|
160
|
+
React.createElement(Box, { className: "twa:max-w-[15rem]" },
|
|
161
|
+
React.createElement(Select, { options: ArrayExtensions.IsNullOrEmpty(styleClassNames)
|
|
162
|
+
? []
|
|
163
|
+
: styleClassNames.map((item) => ({
|
|
164
|
+
label: item,
|
|
165
|
+
value: item,
|
|
166
|
+
})), value: componentStyle.ClassName, onChange: (value) => onStyleClassNameChanged(value) })),
|
|
167
|
+
React.createElement(Box, { className: "twa:m-2 twa:flex-2 twa:text-warn" }, 'Please ensure that the styles listed are in the current stylesheet')))),
|
|
168
|
+
React.createElement(Tabs.Content, { value: "createstyle" },
|
|
169
|
+
React.createElement(Flex, { className: "twa:flex-1 twa:flex twa:flex-col twa:gap-2 twa:lg:flex-row" },
|
|
170
|
+
React.createElement(Card, { shadow: false, className: "twa:flex-1" },
|
|
171
|
+
React.createElement(Card.Body, { gap: 2, className: "twa:grid twa:grid-cols-[auto_1fr_auto_1fr] twa:items-center twa:p-1" },
|
|
172
|
+
React.createElement(Card.Title, { className: "twa:col-span-2" },
|
|
173
|
+
colourSpellingVariant,
|
|
174
|
+
" & Border Properties"),
|
|
175
|
+
React.createElement(HelpBlock, { className: "twa:col-span-2" },
|
|
176
|
+
"Set ",
|
|
177
|
+
coloursSpellingVariant,
|
|
178
|
+
" by ticking a checkbox and selecting from the dropdown; leave unchecked to use cell's existing ",
|
|
179
|
+
coloursSpellingVariant),
|
|
180
|
+
React.createElement(CheckBox, { "data-name": "set-background-color", value: "existing", checked: !!componentStyle.BackColor, onChange: (checked) => onUseBackColorCheckChange(checked) },
|
|
181
|
+
"Back ",
|
|
182
|
+
colourSpellingVariant),
|
|
183
|
+
React.createElement(ColorPicker, { disabled: componentStyle.BackColor == null, api: props.api, value: componentStyle.BackColor || '#ffffff', onChange: (x) => onBackColorSelectChange(x) }),
|
|
184
|
+
React.createElement(CheckBox, { "data-name": "set-foreground-color", value: "existing", className: "twa:row-start-4", checked: componentStyle.ForeColor ? true : false, onChange: (checked) => onUseForeColorCheckChange(checked) },
|
|
185
|
+
"Fore ",
|
|
186
|
+
colourSpellingVariant),
|
|
187
|
+
React.createElement(ColorPicker, { className: "twa:row-start-4 twa:col-start-2", disabled: componentStyle.ForeColor == null, api: props.api, value: componentStyle.ForeColor || '#ffffff', onChange: (x) => onForeColorSelectChange(x) }),
|
|
188
|
+
React.createElement(CheckBox, { "data-name": "set-border-color", value: "existing", className: "twa:row-start-5 twa:col-start-1", checked: componentStyle.BorderColor ? true : false, onChange: (checked) => onUseBorderColorCheckChange(checked) },
|
|
189
|
+
"Border ",
|
|
190
|
+
colourSpellingVariant),
|
|
191
|
+
React.createElement(ColorPicker, { disabled: componentStyle.BorderColor == null, api: props.api, className: "twa:row-start-5 twa:col-start-2", value: componentStyle.BorderColor || '#ffffff', onChange: (x) => onBorderColorSelectChange(x) }),
|
|
192
|
+
React.createElement("span", { className: "twa:row-start-6" }, "Border Radius"),
|
|
193
|
+
React.createElement(AdaptableInput, { className: "twa:w-[100px] twa:row-start-6", type: "number", min: "0", value: componentStyle.BorderRadius, onChange: (event) => {
|
|
194
|
+
const number = Number(event.target.value);
|
|
195
|
+
if (isNaN(number)) {
|
|
196
|
+
onBorderRadiusChange(0);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
onBorderRadiusChange(number);
|
|
200
|
+
}
|
|
201
|
+
} }),
|
|
202
|
+
React.createElement(Card.Title, { className: "twa:col-span-2 twa:col-start-3 twa:row-start-1" }, "Font Properties"),
|
|
203
|
+
React.createElement(HelpBlock, { className: "twa:self-stretch twa:col-span-2 twa:col-start-3 twa:row-start-2" }, "Set the font properties of the Style"),
|
|
204
|
+
React.createElement("span", null, "Font Style"),
|
|
205
|
+
React.createElement(ToggleGroup, null,
|
|
206
|
+
React.createElement(Toggle, { pressed: componentStyle.FontStyle == FontStyle.Italic, onPressedChange: (checked) => onFontStyleChange(checked), icon: "italic" }),
|
|
207
|
+
React.createElement(Toggle, { pressed: componentStyle.FontWeight == FontWeight.Bold, onPressedChange: (checked) => onFontWeightChange(checked), icon: "bold" })),
|
|
208
|
+
React.createElement("span", null, "Text Decoration"),
|
|
209
|
+
React.createElement(ToggleGroup, null,
|
|
210
|
+
React.createElement(Toggle, { icon: "underline", pressed: componentStyle.TextDecoration === 'Underline', onPressedChange: (checked) => onTextDecorationChange(checked ? 'Underline' : 'None') }),
|
|
211
|
+
React.createElement(Toggle, { icon: "strikethrough", pressed: componentStyle.TextDecoration === 'LineThrough', onPressedChange: (checked) => onTextDecorationChange(checked ? 'LineThrough' : 'None') }),
|
|
212
|
+
React.createElement(Toggle, { icon: "overline", pressed: componentStyle.TextDecoration === 'Overline', onPressedChange: (checked) => onTextDecorationChange(checked ? 'Overline' : 'None') })),
|
|
213
|
+
React.createElement("span", null, "Font Size"),
|
|
214
|
+
React.createElement(Flex, { flexDirection: "row", alignItems: "center" },
|
|
215
|
+
React.createElement(Select, { placeholder: "Default", options: [
|
|
216
|
+
{
|
|
217
|
+
label: 'Default',
|
|
218
|
+
value: '',
|
|
219
|
+
},
|
|
220
|
+
...EnumExtensions.getNames(FontSize).map((enumName) => ({
|
|
221
|
+
label: enumName,
|
|
222
|
+
value: enumName,
|
|
223
|
+
})),
|
|
224
|
+
], value: componentStyle.FontSize?.toString() ?? '', onChange: (value) => onFontSizeChange(value) })),
|
|
225
|
+
React.createElement("span", null, "Alignment"),
|
|
226
|
+
React.createElement(ToggleGroup, null,
|
|
227
|
+
React.createElement(Toggle, { icon: "align-left", pressed: componentStyle.Alignment === 'Left', onPressedChange: (pressed) => pressed ? onAlignmentChange('Left') : onAlignmentChange('Default') }),
|
|
228
|
+
React.createElement(Toggle, { icon: "align-center", pressed: componentStyle.Alignment === 'Center', onPressedChange: (pressed) => pressed ? onAlignmentChange('Center') : onAlignmentChange('Default') }),
|
|
229
|
+
React.createElement(Toggle, { icon: "align-right", pressed: componentStyle.Alignment === 'Right', onPressedChange: (pressed) => pressed ? onAlignmentChange('Right') : onAlignmentChange('Default') })))))))) : (React.createElement(Flex, { className: "twa:flex-1 twa:flex twa:flex-col twa:gap-2 twa:lg:flex-row" },
|
|
162
230
|
React.createElement(Card, { shadow: false, className: "twa:flex-1" },
|
|
163
231
|
React.createElement(Card.Body, { gap: 2, className: "twa:grid twa:grid-cols-[auto_1fr_auto_1fr] twa:items-center twa:p-1" },
|
|
164
232
|
React.createElement(Card.Title, { className: "twa:col-span-2" },
|
|
@@ -203,7 +271,7 @@ export const StyleComponent = (props) => {
|
|
|
203
271
|
React.createElement(Toggle, { icon: "strikethrough", pressed: componentStyle.TextDecoration === 'LineThrough', onPressedChange: (checked) => onTextDecorationChange(checked ? 'LineThrough' : 'None') }),
|
|
204
272
|
React.createElement(Toggle, { icon: "overline", pressed: componentStyle.TextDecoration === 'Overline', onPressedChange: (checked) => onTextDecorationChange(checked ? 'Overline' : 'None') })),
|
|
205
273
|
React.createElement("span", null, "Font Size"),
|
|
206
|
-
|
|
274
|
+
React.createElement(Flex, { flexDirection: "row", alignItems: "center" },
|
|
207
275
|
React.createElement(Select, { placeholder: "Default", options: [
|
|
208
276
|
{
|
|
209
277
|
label: 'Default',
|
|
@@ -213,10 +281,12 @@ export const StyleComponent = (props) => {
|
|
|
213
281
|
label: enumName,
|
|
214
282
|
value: enumName,
|
|
215
283
|
})),
|
|
216
|
-
], value: componentStyle.FontSize?.toString() ?? '', onChange: (value) => onFontSizeChange(value) }))
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
284
|
+
], value: componentStyle.FontSize?.toString() ?? '', onChange: (value) => onFontSizeChange(value) })),
|
|
285
|
+
React.createElement("span", null, "Alignment"),
|
|
286
|
+
React.createElement(ToggleGroup, null,
|
|
287
|
+
React.createElement(Toggle, { icon: "align-left", pressed: componentStyle.Alignment === 'Left', onPressedChange: (pressed) => pressed ? onAlignmentChange('Left') : onAlignmentChange('Default') }),
|
|
288
|
+
React.createElement(Toggle, { icon: "align-center", pressed: componentStyle.Alignment === 'Center', onPressedChange: (pressed) => pressed ? onAlignmentChange('Center') : onAlignmentChange('Default') }),
|
|
289
|
+
React.createElement(Toggle, { icon: "align-right", pressed: componentStyle.Alignment === 'Right', onPressedChange: (pressed) => pressed ? onAlignmentChange('Right') : onAlignmentChange('Default') })))))),
|
|
220
290
|
!props.hidePreview && (React.createElement(Card, { shadow: false },
|
|
221
291
|
React.createElement(Card.Title, null, "Preview"),
|
|
222
292
|
React.createElement(Card.Body, { className: "twa:grid twa:place-items-center" },
|
|
@@ -222,6 +222,8 @@ export const getAdaptableToolPanelAgGridComponent = (adaptable) => {
|
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
224
|
return class AdaptableToolPanelAgGridComponent {
|
|
225
|
+
gui;
|
|
226
|
+
unmountReactRoot;
|
|
225
227
|
init(params) {
|
|
226
228
|
const api = adaptable.api;
|
|
227
229
|
this.gui = document.createElement('div');
|
|
@@ -3,7 +3,8 @@ import { CustomSort } from '../../../AdaptableState/CustomSortState';
|
|
|
3
3
|
export type CustomSortColumnWizardSectionProps = {
|
|
4
4
|
onChange: (data: CustomSort) => void;
|
|
5
5
|
isNew: boolean;
|
|
6
|
+
allCustomSorts: CustomSort[];
|
|
6
7
|
};
|
|
7
8
|
export declare const renderCustomSortColumn: (data: CustomSort) => React.JSX.Element;
|
|
8
|
-
export declare const isValidCustomSortColumn: (data: CustomSort) => true | string;
|
|
9
|
+
export declare const isValidCustomSortColumn: (data: CustomSort, allCustomSorts: CustomSort[]) => true | string;
|
|
9
10
|
export declare const CustomSortColumnWizardSection: (props: CustomSortColumnWizardSectionProps) => React.JSX.Element;
|