@adaptabletools/adaptable-cjs 22.0.0-canary.1 → 22.0.0-canary.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agGrid.d.ts +9 -9
- package/agGrid.js +1 -0
- package/index.css +1280 -1400
- package/index.css.map +1 -1
- package/index.d.ts +66 -0
- package/index.js +85 -0
- package/package.json +3 -3
- package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -6
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/ContainerOptions.d.ts +55 -15
- package/src/AdaptableOptions/CustomSortOptions.d.ts +4 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +1 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -2
- package/src/AdaptableState/AdaptableState.d.ts +2 -0
- package/src/AdaptableState/AlertState.d.ts +5 -2
- package/src/AdaptableState/ChartingState.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableAlert.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableButton.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +16 -10
- package/src/AdaptableState/Common/AdaptableColumnContext.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableObject.d.ts +20 -2
- package/src/AdaptableState/Common/AdaptableRowContext.d.ts +11 -0
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +8 -0
- package/src/AdaptableState/Common/BaseContext.d.ts +2 -0
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
- package/src/AdaptableState/Common/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 +27 -12
- package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
- package/src/Api/Implementation/AlertApiImpl.js +6 -6
- package/src/Api/Implementation/ApiBase.d.ts +1 -1
- package/src/Api/Implementation/ApiBase.js +2 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ChartingApiImpl.js +6 -2
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
- package/src/Api/Implementation/CommentsApiImpl.js +1 -0
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +6 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +6 -2
- package/src/Api/Implementation/DashboardApiImpl.js +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
- package/src/Api/Implementation/DataImportApiImpl.js +1 -0
- package/src/Api/Implementation/DataSetApiImpl.js +1 -0
- package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
- package/src/Api/Implementation/EventApiImpl.js +16 -14
- package/src/Api/Implementation/ExportApiImpl.js +1 -0
- package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
- package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
- package/src/Api/Implementation/FilterApiImpl.js +3 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -5
- package/src/Api/Implementation/FormatColumnApiImpl.js +7 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
- package/src/Api/Implementation/GridApiImpl.d.ts +11 -10
- package/src/Api/Implementation/GridApiImpl.js +38 -20
- 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 +113 -57
- package/src/Strategy/AdaptableModuleBase.js +4 -0
- package/src/Strategy/AlertModule.js +5 -0
- package/src/Strategy/BulkUpdateModule.js +8 -8
- package/src/Strategy/CalculatedColumnModule.js +1 -0
- package/src/Strategy/CellSummaryModule.js +1 -1
- package/src/Strategy/CustomSortModule.js +4 -0
- package/src/Strategy/DataChangeHistoryModule.js +1 -0
- package/src/Strategy/FlashingCellModule.js +6 -0
- package/src/Strategy/FormatColumnModule.js +4 -0
- package/src/Strategy/FreeTextColumnModule.js +1 -0
- package/src/Strategy/LayoutModule.js +6 -5
- package/src/Strategy/PlusMinusModule.js +7 -1
- package/src/Strategy/QuickSearchModule.js +1 -1
- package/src/Strategy/ScheduleModule.js +5 -0
- package/src/Strategy/SettingsPanelModule.js +11 -7
- package/src/Strategy/ShortcutModule.js +6 -0
- package/src/Strategy/SmartEditModule.js +10 -10
- package/src/Strategy/TeamSharingModule.js +10 -10
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +0 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +3 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -3
- package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -3
- package/src/Utilities/Extensions/StringExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/StringExtensions.js +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 +5 -6
- package/src/Utilities/Services/QueryLanguageService.js +6 -5
- package/src/Utilities/Services/RowFormService.js +1 -0
- package/src/Utilities/Services/RowSummaryService.js +10 -7
- package/src/Utilities/Services/TeamSharingService.js +3 -1
- package/src/Utilities/Services/ThemeService.js +13 -15
- package/src/Utilities/Services/ValidationService.js +2 -1
- package/src/Utilities/createAgStatusPanelComponent.js +3 -0
- package/src/Utilities/logDeprecation.js +3 -4
- package/src/Utilities/resolveContainerElement.d.ts +23 -0
- package/src/Utilities/resolveContainerElement.js +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 +12 -8
- package/src/agGrid/AdaptableAgGrid.js +257 -111
- package/src/agGrid/AdaptableFilterHandler.js +4 -0
- package/src/agGrid/AdaptableLogger.d.ts +3 -0
- package/src/agGrid/AdaptableLogger.js +10 -0
- package/src/agGrid/AgGridAdapter.js +19 -9
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
- package/src/agGrid/AgGridColumnAdapter.js +20 -22
- package/src/agGrid/AgGridExportAdapter.js +15 -14
- package/src/agGrid/AgGridFilterAdapter.js +4 -0
- package/src/agGrid/AgGridFloatingFilterAdapter.js +4 -1
- package/src/agGrid/AgGridMenuAdapter.js +10 -1
- package/src/agGrid/AgGridModulesAdapter.js +2 -1
- package/src/agGrid/AgGridOptionsService.js +3 -0
- package/src/agGrid/AgGridThemeAdapter.js +4 -2
- package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
- package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
- package/src/agGrid/index.d.ts +6 -0
- package/src/agGrid/index.js +6 -0
- package/src/components/CheckBox/index.js +1 -1
- package/src/components/ColorPicker/ColorPicker.js +5 -4
- package/src/components/Dashboard/DashboardToolbar.js +1 -1
- package/src/components/Datepicker/index.js +1 -1
- package/src/components/Dropdown/Arrows.js +1 -1
- package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
- package/src/components/ExpressionEditor/EditorInput.js +19 -3
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/index.js +1 -1
- package/src/components/Select/Select.js +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
|
@@ -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;
|
|
@@ -8,16 +8,28 @@ const Tag_1 = require("../../../components/Tag");
|
|
|
8
8
|
const ColumnSelector_1 = require("../../Components/ColumnSelector");
|
|
9
9
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
10
10
|
const Flex_1 = require("../../../components/Flex");
|
|
11
|
+
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
12
|
+
const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
11
13
|
const renderCustomSortColumn = (data) => {
|
|
12
14
|
const { api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
13
15
|
return (React.createElement(Flex_1.Box, { className: "twa:text-2 twa:py-2 twa:pr-2" },
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
React.createElement(Tag_1.Tag, { className: "twa:mr-2" },
|
|
17
|
+
"Name: ",
|
|
18
|
+
data.Name),
|
|
19
|
+
React.createElement(Tag_1.Tag, null,
|
|
20
|
+
"Column: ",
|
|
21
|
+
api.columnApi.getFriendlyNameForColumnId(data.ColumnId))));
|
|
16
22
|
};
|
|
17
23
|
exports.renderCustomSortColumn = renderCustomSortColumn;
|
|
18
|
-
const isValidCustomSortColumn = (data) => {
|
|
24
|
+
const isValidCustomSortColumn = (data, allCustomSorts) => {
|
|
25
|
+
if (!data.Name) {
|
|
26
|
+
return 'A name is required.';
|
|
27
|
+
}
|
|
28
|
+
if (allCustomSorts.some((customSort) => customSort.Name === data.Name && customSort.Uuid !== data.Uuid)) {
|
|
29
|
+
return 'A Custom Sort with this name already exists.';
|
|
30
|
+
}
|
|
19
31
|
if (!data.ColumnId) {
|
|
20
|
-
return '
|
|
32
|
+
return 'Please select a column for the Custom Sort.';
|
|
21
33
|
}
|
|
22
34
|
return true;
|
|
23
35
|
};
|
|
@@ -48,15 +60,29 @@ const CustomSortColumnWizardSection = (props) => {
|
|
|
48
60
|
});
|
|
49
61
|
});
|
|
50
62
|
}, []);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
const onNameChange = (event) => {
|
|
64
|
+
props.onChange({
|
|
65
|
+
...data,
|
|
66
|
+
Name: event.target.value,
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
return (React.createElement(Flex_1.Flex, { flexDirection: "column", style: { height: '100%' } },
|
|
70
|
+
React.createElement(Tabs_1.Tabs, { className: "twa:mb-3" },
|
|
71
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Settings"),
|
|
72
|
+
React.createElement(Tabs_1.Tabs.Content, null,
|
|
73
|
+
React.createElement(Flex_1.Flex, { flexDirection: "row" },
|
|
74
|
+
React.createElement(FormLayout_1.default, { className: "twa:max-w-[300px] twa:w-full" },
|
|
75
|
+
React.createElement(FormLayout_1.FormRow, { label: "Name" },
|
|
76
|
+
React.createElement(Input_1.default, { className: "twa:w-full", "data-name": "custom-sort-name", onChange: onNameChange, value: data?.Name ?? '' })))))),
|
|
77
|
+
React.createElement(Tabs_1.Tabs, { style: { flex: 1, minHeight: 0 } },
|
|
78
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Column"),
|
|
79
|
+
React.createElement(Tabs_1.Tabs.Content, null,
|
|
80
|
+
React.createElement(ColumnSelector_1.NewColumnSelector, { availableColumns: sortableCols, selected: data.ColumnId ? [data.ColumnId] : [], singleSelect: true, onChange: (ids) => {
|
|
81
|
+
props.onChange({
|
|
82
|
+
...data,
|
|
83
|
+
SortedValues: [],
|
|
84
|
+
ColumnId: ids[0],
|
|
85
|
+
});
|
|
86
|
+
}, allowReorder: false })))));
|
|
61
87
|
};
|
|
62
88
|
exports.CustomSortColumnWizardSection = CustomSortColumnWizardSection;
|
|
@@ -15,7 +15,7 @@ const DateHelper_1 = require("../../../Utilities/Helpers/DateHelper");
|
|
|
15
15
|
const Tag_1 = require("../../../components/Tag");
|
|
16
16
|
const isValidCustomSortOrder = (data) => {
|
|
17
17
|
if (!data.SortedValues || !data.SortedValues.length) {
|
|
18
|
-
return '
|
|
18
|
+
return 'At least one value is required for the Custom Sort order.';
|
|
19
19
|
}
|
|
20
20
|
return true;
|
|
21
21
|
};
|
|
@@ -41,14 +41,14 @@ const CustomSortWizard = (props) => {
|
|
|
41
41
|
};
|
|
42
42
|
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: customSort, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
|
|
43
43
|
{
|
|
44
|
-
isValid: CustomSortColumnWizardSection_1.isValidCustomSortColumn,
|
|
44
|
+
isValid: (data) => (0, CustomSortColumnWizardSection_1.isValidCustomSortColumn)(data, allCustomSorts),
|
|
45
45
|
renderSummary: CustomSortColumnWizardSection_1.renderCustomSortColumn,
|
|
46
|
-
details: '
|
|
46
|
+
details: 'Enter Name and select a Column for Custom Sort',
|
|
47
47
|
render: () => {
|
|
48
48
|
return (React.createElement(Flex_1.Box, { className: "twa:p-2 twa:h-full" },
|
|
49
|
-
React.createElement(CustomSortColumnWizardSection_1.CustomSortColumnWizardSection, { isNew: props.isNew, onChange: setCustomSort })));
|
|
49
|
+
React.createElement(CustomSortColumnWizardSection_1.CustomSortColumnWizardSection, { isNew: props.isNew, onChange: setCustomSort, allCustomSorts: allCustomSorts })));
|
|
50
50
|
},
|
|
51
|
-
title: 'Column',
|
|
51
|
+
title: 'Name & Column',
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
title: 'Sort Order',
|
|
@@ -79,7 +79,7 @@ const CustomToolbarCmp = (props) => {
|
|
|
79
79
|
const disabled = button.disabled && button.disabled(button, dashboardContext);
|
|
80
80
|
let buttonVariant = buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'outlined';
|
|
81
81
|
let buttonTone = buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'neutral';
|
|
82
|
-
return (React.createElement(AdaptableButton_1.AdaptableButtonComponent, { style: { marginLeft: index ? 'var(--ab-space
|
|
82
|
+
return (React.createElement(AdaptableButton_1.AdaptableButtonComponent, { style: { marginLeft: index ? 'var(--ab-base-space)' : 0 }, key: index, disabled: disabled, tooltip: buttonTooltip, icon: buttonIcon, variant: buttonVariant, tone: buttonTone, className: buttonStyle?.className || '', onClick: () => {
|
|
83
83
|
button.onClick ? button.onClick(button, dashboardContext) : null;
|
|
84
84
|
setTimeout(() => {
|
|
85
85
|
// mutate state to force a re-rendering
|
|
@@ -73,18 +73,17 @@ class DashboardPopupComponent extends React.Component {
|
|
|
73
73
|
React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:h-full twa:gap-4" },
|
|
74
74
|
areDashboardSettingsVisible && (React.createElement(React.Fragment, null,
|
|
75
75
|
React.createElement(Card_1.Card, null,
|
|
76
|
-
React.createElement(Card_1.Card.Title, { gap: 8 },
|
|
77
|
-
"Display Settings",
|
|
78
|
-
React.createElement(ToggleButton_1.ToggleButton, { className: "twa:self-end", onChange: (visible) => this.props.onSetDashboardHidden(!visible), checked: !this.props.IsHidden, "data-name": "dashboard-visibility" }, this.props.IsHidden ? 'Hidden' : 'Visible')),
|
|
76
|
+
React.createElement(Card_1.Card.Title, { gap: 8 }, "Display Settings"),
|
|
79
77
|
React.createElement(Card_1.Card.Body, { gap: 2, className: "twa:p-2" },
|
|
80
|
-
React.createElement(ToggleButton_1.ToggleButton, {
|
|
78
|
+
React.createElement(ToggleButton_1.ToggleButton, { className: "twa:w-24", onChange: (visible) => this.props.onSetDashboardHidden(!visible), checked: !this.props.IsHidden, "data-name": "dashboard-visibility" }, this.props.IsHidden ? 'Hidden' : 'Visible'),
|
|
79
|
+
this.props.DashboardState.Tabs?.length > 0 ? (React.createElement(ToggleButton_1.ToggleButton, { disabled: this.props.IsFloating, className: "twa:w-24", onChange: (expanded) => this.props.onSetDashboardCollapsed(!expanded), checked: !this.props.IsCollapsed, "data-name": "expand-state" }, this.props.IsCollapsed ? 'Collapsed' : 'Expanded')) : null,
|
|
81
80
|
this.props.api.optionsApi.getDashboardOptions().canFloat ? (React.createElement(ToggleButton_1.ToggleButton, { className: "twa:w-24", onChange: (pinned) => this.props.onSetDashboardFloating(!pinned), checked: !this.props.IsFloating, "data-name": "floating" }, this.props.IsFloating ? 'Floating' : 'Pinned')) : null)))),
|
|
82
81
|
React.createElement(Card_1.Card, { className: "twa:flex-1 twa:overflow-hidden", gap: 0 },
|
|
83
82
|
React.createElement(Card_1.Card.Title, null, "Contents"),
|
|
84
83
|
React.createElement(Card_1.Card.Body, { className: "twa:p-2" },
|
|
85
84
|
React.createElement(Tabs_1.Tabs, { className: "twa:flex-1 twa:min-h-0" },
|
|
86
85
|
React.createElement(Tabs_1.Tabs.Tab, { value: "pinned-toolbars" }, "Pinned Toolbars"),
|
|
87
|
-
React.createElement(Tabs_1.Tabs.Tab, { value: "tabbed-toolbars" }, "
|
|
86
|
+
React.createElement(Tabs_1.Tabs.Tab, { value: "tabbed-toolbars" }, "Tabs & Toolbars"),
|
|
88
87
|
React.createElement(Tabs_1.Tabs.Tab, { value: "buttons" }, "Buttons"),
|
|
89
88
|
React.createElement(Tabs_1.Tabs.Content, { value: "pinned-toolbars", className: contentCls },
|
|
90
89
|
React.createElement(PinnedToolbarsSelector_1.PinnedToolbarsSelector, null)),
|
|
@@ -31,7 +31,7 @@ const DataChangeHistoryViewPanelControl = (props) => {
|
|
|
31
31
|
const enabled = changeHistoryMode === 'ACTIVE';
|
|
32
32
|
const disabled = changeHistoryMode === 'INACTIVE';
|
|
33
33
|
const suspended = changeHistoryMode === 'SUSPENDED';
|
|
34
|
-
const gap = props.gap ?? 'var(--ab-space
|
|
34
|
+
const gap = props.gap ?? 'var(--ab-base-space)';
|
|
35
35
|
const buttonsPaddingY = props.buttonsPaddingY ?? 2;
|
|
36
36
|
const buttonPanel = (React.createElement(Flex_1.Flex, { className: "ab-DataChangeHistoryPanel--button-panel", style: { gap: gap, paddingBlock: buttonsPaddingY } },
|
|
37
37
|
disabled && (React.createElement(ButtonPlay_1.ButtonPlay, { "aria-label": "Enable Data Change History", className: "ab-DataChangeHistoryPanel--button-activate", "data-name": 'data-change-history--button-activate', tooltip: '', onClick: () => onChangeHistoryEnable() })),
|