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