@adaptabletools/adaptable 22.0.0-canary.1 → 22.0.0-canary.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agGrid.d.ts +9 -9
- package/agGrid.js +1 -0
- package/index.css +1280 -1400
- package/index.css.map +1 -1
- package/index.d.ts +66 -0
- package/index.js +73 -0
- package/package.json +3 -3
- package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -6
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/ContainerOptions.d.ts +55 -15
- package/src/AdaptableOptions/CustomSortOptions.d.ts +4 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +1 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -2
- package/src/AdaptableState/AdaptableState.d.ts +2 -0
- package/src/AdaptableState/AlertState.d.ts +5 -2
- package/src/AdaptableState/ChartingState.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableAlert.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableButton.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +16 -10
- package/src/AdaptableState/Common/AdaptableColumnContext.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableObject.d.ts +20 -2
- package/src/AdaptableState/Common/AdaptableRowContext.d.ts +11 -0
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +8 -0
- package/src/AdaptableState/Common/BaseContext.d.ts +2 -0
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
- package/src/AdaptableState/Common/DataUpdateConfig.d.ts +17 -0
- package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
- package/src/AdaptableState/Common/NamedObject.js +1 -0
- package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
- package/src/AdaptableState/Common/RowSummary.d.ts +1 -1
- package/src/AdaptableState/Common/Schedule.d.ts +8 -5
- package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +2 -2
- package/src/AdaptableState/Common/TransposeConfig.d.ts +12 -10
- package/src/AdaptableState/CustomSortState.d.ts +5 -1
- package/src/AdaptableState/DashboardState.d.ts +1 -1
- package/src/AdaptableState/ExportState.d.ts +1 -1
- package/src/AdaptableState/FlashingCellState.d.ts +6 -2
- package/src/AdaptableState/FormatColumnState.d.ts +5 -9
- package/src/AdaptableState/InitialState.d.ts +10 -1
- package/src/AdaptableState/InternalState.d.ts +2 -0
- package/src/AdaptableState/LayoutState.d.ts +7 -3
- package/src/AdaptableState/NamedQueryState.d.ts +1 -1
- package/src/AdaptableState/PlusMinusState.d.ts +5 -1
- package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
- package/src/AdaptableState/ShortcutState.d.ts +5 -1
- package/src/AdaptableState/StyledColumnState.d.ts +1 -1
- package/src/AdaptableState/ThemeState.d.ts +1 -1
- package/src/AdaptableState/UserInterfaceState.d.ts +14 -0
- package/src/AdaptableState/UserInterfaceState.js +1 -0
- package/src/Api/AlertApi.d.ts +6 -0
- package/src/Api/CustomSortApi.d.ts +12 -3
- package/src/Api/DataSetApi.d.ts +1 -1
- package/src/Api/FlashingCellApi.d.ts +6 -0
- package/src/Api/FormatColumnApi.d.ts +10 -4
- package/src/Api/GridApi.d.ts +23 -12
- package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
- package/src/Api/Implementation/AlertApiImpl.js +6 -6
- package/src/Api/Implementation/ApiBase.d.ts +1 -1
- package/src/Api/Implementation/ApiBase.js +2 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ChartingApiImpl.js +6 -2
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
- package/src/Api/Implementation/CommentsApiImpl.js +1 -0
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +6 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +6 -2
- package/src/Api/Implementation/DashboardApiImpl.js +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
- package/src/Api/Implementation/DataImportApiImpl.js +1 -0
- package/src/Api/Implementation/DataSetApiImpl.js +1 -0
- package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
- package/src/Api/Implementation/EventApiImpl.js +16 -14
- package/src/Api/Implementation/ExportApiImpl.js +1 -0
- package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
- package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
- package/src/Api/Implementation/FilterApiImpl.js +3 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -5
- package/src/Api/Implementation/FormatColumnApiImpl.js +7 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
- package/src/Api/Implementation/GridApiImpl.d.ts +10 -10
- package/src/Api/Implementation/GridApiImpl.js +36 -21
- package/src/Api/Implementation/GridFilterApiImpl.js +1 -0
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -0
- package/src/Api/Implementation/LayoutApiImpl.js +5 -1
- package/src/Api/Implementation/LayoutHelpers.js +7 -0
- package/src/Api/Implementation/NamedQueryApiImpl.js +3 -2
- package/src/Api/Implementation/NoteApiImpl.js +1 -0
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +1 -0
- package/src/Api/Implementation/PlusMinusApiImpl.js +3 -0
- package/src/Api/Implementation/PredicateApiImpl.js +1 -0
- package/src/Api/Implementation/RowFormApiImpl.js +1 -0
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +4 -0
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ShortcutApiImpl.js +3 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +1 -0
- package/src/Api/Implementation/SystemStatusApiImpl.js +8 -9
- package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +1 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +15 -1
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
- package/src/Api/Internal/ColumnInternalApi.js +1 -1
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +0 -10
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -19
- package/src/Api/Internal/FreeTextColumnInternalApi.js +2 -2
- package/src/Api/Internal/LayoutInternalApi.js +1 -1
- package/src/Api/Internal/NamedQueryInternalApi.js +4 -4
- package/src/Api/LayoutApi.d.ts +6 -0
- package/src/Api/PlusMinusApi.d.ts +6 -0
- package/src/Api/ScheduleApi.d.ts +6 -0
- package/src/Api/ShortcutApi.d.ts +6 -0
- package/src/Api/UserInterfaceApi.d.ts +17 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +8 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.js +36 -0
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NoteRedux.js +1 -1
- package/src/Redux/ActionsReducers/UserInterfaceRedux.d.ts +11 -0
- package/src/Redux/ActionsReducers/UserInterfaceRedux.js +21 -0
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
- package/src/Redux/Store/AdaptableStore.js +113 -57
- package/src/Strategy/AdaptableModuleBase.js +4 -0
- package/src/Strategy/AlertModule.js +5 -0
- package/src/Strategy/BulkUpdateModule.js +8 -8
- package/src/Strategy/CalculatedColumnModule.js +1 -0
- package/src/Strategy/CellSummaryModule.js +1 -1
- package/src/Strategy/CustomSortModule.js +4 -0
- package/src/Strategy/DataChangeHistoryModule.js +1 -0
- package/src/Strategy/FlashingCellModule.js +6 -0
- package/src/Strategy/FormatColumnModule.js +4 -0
- package/src/Strategy/FreeTextColumnModule.js +1 -0
- package/src/Strategy/LayoutModule.js +6 -5
- package/src/Strategy/PlusMinusModule.js +7 -1
- package/src/Strategy/QuickSearchModule.js +1 -1
- package/src/Strategy/ScheduleModule.js +5 -0
- package/src/Strategy/SettingsPanelModule.js +11 -7
- package/src/Strategy/ShortcutModule.js +6 -0
- package/src/Strategy/SmartEditModule.js +10 -10
- package/src/Strategy/TeamSharingModule.js +10 -10
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +0 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +3 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -3
- package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -3
- package/src/Utilities/Extensions/StringExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/StringExtensions.js +16 -0
- package/src/Utilities/Helpers/FormatHelper.js +9 -2
- package/src/Utilities/Helpers/StyleHelper.js +14 -0
- package/src/Utilities/MenuItem.js +18 -0
- package/src/Utilities/ObjectFactory.js +16 -3
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +8 -0
- package/src/Utilities/Services/AlertService.js +6 -4
- package/src/Utilities/Services/AnnotationsService.js +4 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -1
- package/src/Utilities/Services/ChartingService.js +1 -0
- package/src/Utilities/Services/DataService.js +11 -3
- package/src/Utilities/Services/Fdc3Service.js +9 -7
- package/src/Utilities/Services/FlashingCellService.js +5 -0
- package/src/Utilities/Services/LicenseService/index.js +1 -1
- package/src/Utilities/Services/MetamodelService.js +2 -2
- package/src/Utilities/Services/ModuleService.js +5 -6
- package/src/Utilities/Services/QueryLanguageService.js +6 -5
- package/src/Utilities/Services/RowFormService.js +1 -0
- package/src/Utilities/Services/RowSummaryService.js +10 -7
- package/src/Utilities/Services/TeamSharingService.js +3 -1
- package/src/Utilities/Services/ThemeService.js +13 -15
- package/src/Utilities/Services/ValidationService.js +2 -1
- package/src/Utilities/createAgStatusPanelComponent.js +3 -0
- package/src/Utilities/logDeprecation.js +3 -4
- package/src/Utilities/resolveContainerElement.d.ts +23 -0
- package/src/Utilities/resolveContainerElement.js +44 -0
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/Alert/ActiveAlertsPanel.js +8 -0
- package/src/View/Alert/AlertViewPanel.js +13 -9
- package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +1 -0
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +8 -0
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +5 -2
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +47 -12
- package/src/View/Alert/Wizard/AlertWizard.js +14 -10
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +24 -11
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
- package/src/View/CellSummary/CellSummaryViewPanel.js +16 -17
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
- package/src/View/Components/AdaptableDateInput/index.js +1 -1
- package/src/View/Components/Buttons/ButtonApply.js +1 -1
- package/src/View/Components/Buttons/ButtonBase/index.js +9 -9
- package/src/View/Components/Buttons/ButtonClear.d.ts +1 -0
- package/src/View/Components/Buttons/EntityListActionButtons.d.ts +1 -2
- package/src/View/Components/Buttons/EntityListActionButtons.js +18 -18
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -2
- package/src/View/Components/CellPopup/index.js +1 -1
- package/src/View/Components/ColumnFilter/FloatingFilter.js +41 -3
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +1 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +54 -2
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +1 -1
- package/src/View/Components/EntityRulesEditor/Utilities.js +5 -5
- package/src/View/Components/NewScopeComponent.js +3 -3
- package/src/View/Components/Panels/PanelDashboard/index.js +8 -8
- package/src/View/Components/Panels/PanelToolPanel/index.js +7 -7
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +1 -8
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +36 -1
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +19 -18
- package/src/View/Components/StyleComponent.d.ts +1 -0
- package/src/View/Components/StyleComponent.js +94 -24
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
- package/src/View/Components/WizardSummaryPage.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +41 -15
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
- package/src/View/Dashboard/CustomToolbar.js +1 -1
- package/src/View/Dashboard/DashboardPopup.js +4 -5
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -0
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
- package/src/View/Export/ExportDestinationPicker.js +1 -1
- package/src/View/Export/ExportStatusBar.js +4 -2
- package/src/View/Export/ExportViewPanel.js +25 -18
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +34 -14
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +14 -10
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +46 -51
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +20 -9
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +3 -3
- package/src/View/GridFilter/GridFilterExpressionEditor.js +6 -1
- package/src/View/GridFilter/GridFilterViewPanel.js +33 -70
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +57 -65
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/TransposedPopup.js +144 -138
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +3 -3
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +8 -0
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +35 -12
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +20 -15
- package/src/View/QuickSearch/QuickSearchPopup.js +4 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +14 -4
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +19 -10
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.d.ts +2 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +25 -4
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +18 -14
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -0
- package/src/View/StateManagement/handleExportState.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
- package/src/View/Theme/ThemePopup.js +13 -16
- package/src/View/UIHelper.d.ts +4 -1
- package/src/View/UIHelper.js +23 -14
- package/src/agGrid/Adaptable.js +15 -11
- package/src/agGrid/AdaptableAgGrid.d.ts +12 -8
- package/src/agGrid/AdaptableAgGrid.js +257 -111
- package/src/agGrid/AdaptableFilterHandler.js +4 -0
- package/src/agGrid/AdaptableLogger.d.ts +3 -0
- package/src/agGrid/AdaptableLogger.js +10 -0
- package/src/agGrid/AgGridAdapter.js +19 -9
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
- package/src/agGrid/AgGridColumnAdapter.js +20 -22
- package/src/agGrid/AgGridExportAdapter.js +15 -14
- package/src/agGrid/AgGridFilterAdapter.js +4 -0
- package/src/agGrid/AgGridFloatingFilterAdapter.js +4 -1
- package/src/agGrid/AgGridMenuAdapter.js +10 -1
- package/src/agGrid/AgGridModulesAdapter.js +2 -1
- package/src/agGrid/AgGridOptionsService.js +3 -0
- package/src/agGrid/AgGridThemeAdapter.js +4 -2
- package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
- package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
- package/src/agGrid/index.d.ts +6 -0
- package/src/agGrid/index.js +6 -0
- package/src/components/CheckBox/index.js +1 -1
- package/src/components/ColorPicker/ColorPicker.js +5 -4
- package/src/components/Dashboard/DashboardToolbar.js +1 -1
- package/src/components/Datepicker/index.js +1 -1
- package/src/components/Dropdown/Arrows.js +1 -1
- package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
- package/src/components/ExpressionEditor/EditorInput.js +19 -3
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/index.js +1 -1
- package/src/components/Select/Select.js +79 -16
- package/src/components/Tree/TreeDropdown/index.js +2 -2
- package/src/components/overlayBaseZIndex.js +1 -1
- package/src/components/utils/useContainerScrollObserver/index.js +17 -14
- package/src/devTools/index.js +54 -53
- package/src/env.js +2 -2
- package/src/layout-manager/src/LMEmitter.js +11 -11
- package/src/layout-manager/src/LMLogger.js +7 -0
- package/src/layout-manager/src/LayoutManagerModel.d.ts +1 -0
- package/src/layout-manager/src/index.js +81 -58
- package/src/layout-manager/src/normalizeLayoutModel.js +3 -0
- package/src/metamodel/adaptable.metamodel.d.ts +177 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/AdaptableUpgradeHelper.js +8 -3
- package/src/migration/VersionUpgrade.js +1 -0
- package/src/migration/VersionUpgrade17.js +5 -6
- package/src/migration/VersionUpgrade20.js +4 -4
- package/src/migration/VersionUpgrade22.d.ts +21 -0
- package/src/migration/VersionUpgrade22.js +187 -0
- package/src/parser/src/ExpressionEvaluationError.js +1 -0
- package/src/types.d.ts +9 -7
- package/themes/dark.css +30 -30
- package/themes/light.css +4 -2
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -632
- package/src/View/Alert/AlertEntityRow.d.ts +0 -11
- package/src/View/Alert/AlertEntityRow.js +0 -28
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -58
- package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
- package/src/View/Components/Buttons/ButtonFunction.js +0 -8
- package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonGeneral.js +0 -7
- package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
- package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -5
- package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShow.js +0 -7
- package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShowChart.js +0 -7
- package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonUndo.js +0 -7
- package/src/View/Components/ExpressionWizard.d.ts +0 -24
- package/src/View/Components/ExpressionWizard.js +0 -77
- package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
- package/src/View/Components/FilterForm/Waiting.js +0 -14
- package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
- package/src/View/Components/Panels/PanelFooter.js +0 -9
- package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
- package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -15
- package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
- package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -26
- package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
- package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -45
- package/src/View/Components/SharedProps/WizardScopeState.d.ts +0 -4
- package/src/View/Components/WizardSummaryRow.d.ts +0 -9
- package/src/View/Components/WizardSummaryRow.js +0 -11
- package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
- package/src/View/CustomSort/CustomSortSummary.js +0 -105
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -19
- package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -68
- package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -68
- package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
- package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -56
- package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
- package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -35
- package/src/View/Filter/FilterSummary.d.ts +0 -18
- package/src/View/Filter/FilterSummary.js +0 -48
- package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
- package/src/View/FormatColumn/FormatColumnSummary.js +0 -90
- package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -88
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -94
- package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
- package/src/View/PlusMinus/PlusMinusSummary.js +0 -95
- package/src/View/Wizard/WizardLegend.d.ts +0 -12
- package/src/View/Wizard/WizardLegend.js +0 -23
- /package/src/{View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts → AdaptableState/Common/AdaptableRowContext.js} +0 -0
- /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/ColumnHighlightInfo.js} +0 -0
|
@@ -3,7 +3,11 @@ import { VersionUpgrade18 } from './VersionUpgrade18';
|
|
|
3
3
|
import { ADAPTABLE_VERSION } from '../EnvVars';
|
|
4
4
|
import { VersionUpgrade20 } from './VersionUpgrade20';
|
|
5
5
|
import { VersionUpgrade21 } from './VersionUpgrade21';
|
|
6
|
+
import { VersionUpgrade22 } from './VersionUpgrade22';
|
|
6
7
|
export class AdaptableUpgradeHelper {
|
|
8
|
+
currentMajorVersion;
|
|
9
|
+
versionUpgrades;
|
|
10
|
+
logger;
|
|
7
11
|
constructor(logger) {
|
|
8
12
|
this.currentMajorVersion = this.getCurrentMajorVersion(ADAPTABLE_VERSION);
|
|
9
13
|
this.logger = logger || this.getConsoleLogger();
|
|
@@ -12,6 +16,7 @@ export class AdaptableUpgradeHelper {
|
|
|
12
16
|
this.versionUpgrades.set(18, new VersionUpgrade18(this.logger));
|
|
13
17
|
this.versionUpgrades.set(20, new VersionUpgrade20(this.logger));
|
|
14
18
|
this.versionUpgrades.set(21, new VersionUpgrade21(this.logger));
|
|
19
|
+
this.versionUpgrades.set(22, new VersionUpgrade22(this.logger));
|
|
15
20
|
}
|
|
16
21
|
static migrateAdaptableState(state, config) {
|
|
17
22
|
const upgradeHelper = new AdaptableUpgradeHelper(config.logger);
|
|
@@ -29,16 +34,16 @@ export class AdaptableUpgradeHelper {
|
|
|
29
34
|
let updatedState = structuredClone(state);
|
|
30
35
|
for (const version of versionUpgrades) {
|
|
31
36
|
if (version > fromVersion && version <= toVersion) {
|
|
32
|
-
upgradeHelper.logger.info(`Migration to ${version} started
|
|
37
|
+
upgradeHelper.logger.info(`Migration to version ${version} started.`);
|
|
33
38
|
updatedState = upgradeHelper.versionUpgrades.get(version).migrateState(updatedState);
|
|
34
|
-
upgradeHelper.logger.info(`Migration to ${version}
|
|
39
|
+
upgradeHelper.logger.info(`Migration to version ${version} completed.`);
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
return updatedState;
|
|
38
43
|
}
|
|
39
44
|
getCurrentMajorVersion(version) {
|
|
40
45
|
// is good enough for now, we just need to make sure we don't forget to update it
|
|
41
|
-
return parseInt(version.split('.')[0]) ||
|
|
46
|
+
return parseInt(version.split('.')[0]) || 22;
|
|
42
47
|
}
|
|
43
48
|
getConsoleLogger() {
|
|
44
49
|
return {
|
|
@@ -98,7 +98,7 @@ export class VersionUpgrade17 extends VersionUpgrade {
|
|
|
98
98
|
// let dashboardState: any = this.api.dashboardApi.getDashboardState();
|
|
99
99
|
let dashboardState = state.Dashboard;
|
|
100
100
|
if (dashboardState?.VisibleButtons) {
|
|
101
|
-
this.logger.warn(`
|
|
101
|
+
this.logger.warn(`Migrating deprecated DashboardState.VisibleButtons: [${dashboardState.VisibleButtons}].`);
|
|
102
102
|
state.Dashboard.ModuleButtons = [
|
|
103
103
|
...state.Dashboard.ModuleButtons,
|
|
104
104
|
...dashboardState.VisibleButtons,
|
|
@@ -241,12 +241,11 @@ export class VersionUpgrade17 extends VersionUpgrade {
|
|
|
241
241
|
return state;
|
|
242
242
|
}
|
|
243
243
|
migrateStyledColumnState(state) {
|
|
244
|
-
var _a;
|
|
245
244
|
const formatColumnsWithColumnStyles = state.FormatColumn?.FormatColumns?.filter((fc) => fc.ColumnStyle) || [];
|
|
246
245
|
if (!formatColumnsWithColumnStyles.length) {
|
|
247
246
|
return state;
|
|
248
247
|
}
|
|
249
|
-
this.logger.info(`
|
|
248
|
+
this.logger.info(`Migrating ${formatColumnsWithColumnStyles.length} FormatColumn styles to StyledColumns.`, formatColumnsWithColumnStyles);
|
|
250
249
|
// delete the format columns with column styles
|
|
251
250
|
state.FormatColumn.FormatColumns = state.FormatColumn.FormatColumns?.filter((fc) => !fc.ColumnStyle);
|
|
252
251
|
const styledColumns = formatColumnsWithColumnStyles
|
|
@@ -261,7 +260,7 @@ export class VersionUpgrade17 extends VersionUpgrade {
|
|
|
261
260
|
};
|
|
262
261
|
})
|
|
263
262
|
.filter(Boolean);
|
|
264
|
-
|
|
263
|
+
state.StyledColumn.StyledColumns ??= [];
|
|
265
264
|
styledColumns.forEach((styledColumn) => {
|
|
266
265
|
state.StyledColumn.StyledColumns.push(styledColumn);
|
|
267
266
|
});
|
|
@@ -274,7 +273,7 @@ export class VersionUpgrade17 extends VersionUpgrade {
|
|
|
274
273
|
const deprecatedToolPanelConfigs = state.ToolPanel
|
|
275
274
|
?.VisibleToolPanels;
|
|
276
275
|
if (deprecatedToolPanelConfigs?.length) {
|
|
277
|
-
this.logger.warn(`
|
|
276
|
+
this.logger.warn(`Migrating deprecated ToolPanelState.VisibleToolPanels: [${deprecatedToolPanelConfigs}].`);
|
|
278
277
|
const migratedToolPanelConfigs = deprecatedToolPanelConfigs.map((toolPanel) => ({
|
|
279
278
|
Name: toolPanel,
|
|
280
279
|
State: 'collapsed',
|
|
@@ -337,7 +336,7 @@ export class VersionUpgrade17 extends VersionUpgrade {
|
|
|
337
336
|
cc.CalculatedColumnSettings = {
|
|
338
337
|
DataType: 'number',
|
|
339
338
|
};
|
|
340
|
-
this.logger.warn(`
|
|
339
|
+
this.logger.warn(`Migrating Calculated Column "${cc.ColumnId}": adding default CalculatedColumnSettings.`);
|
|
341
340
|
}
|
|
342
341
|
});
|
|
343
342
|
return state;
|
|
@@ -149,7 +149,7 @@ export class VersionUpgrade20 extends VersionUpgrade {
|
|
|
149
149
|
return state;
|
|
150
150
|
}
|
|
151
151
|
migrateColTypeToDataType(state) {
|
|
152
|
-
this.logger.info(
|
|
152
|
+
this.logger.info('Migrating column types to data types.');
|
|
153
153
|
// Calculated Column DataType
|
|
154
154
|
const calculatedColumnState = state.CalculatedColumn;
|
|
155
155
|
if (calculatedColumnState && calculatedColumnState.CalculatedColumns) {
|
|
@@ -160,7 +160,7 @@ export class VersionUpgrade20 extends VersionUpgrade {
|
|
|
160
160
|
}
|
|
161
161
|
const newDataType = mapOldTypeToDataType(cc.CalculatedColumnSettings.DataType);
|
|
162
162
|
if (newDataType === 'unknown') {
|
|
163
|
-
this.logger.warn(`Calculated Column ${cc.ColumnId} has
|
|
163
|
+
this.logger.warn(`Calculated Column "${cc.ColumnId}" has unrecognized DataType: "${cc.CalculatedColumnSettings.DataType}".`);
|
|
164
164
|
}
|
|
165
165
|
else {
|
|
166
166
|
cc.CalculatedColumnSettings.DataType = newDataType;
|
|
@@ -178,7 +178,7 @@ export class VersionUpgrade20 extends VersionUpgrade {
|
|
|
178
178
|
}
|
|
179
179
|
const newDataType = mapOldTypeToDataType(fc.FreeTextColumnSettings.DataType);
|
|
180
180
|
if (newDataType === 'unknown') {
|
|
181
|
-
this.logger.warn(`FreeText Column ${fc.ColumnId} has
|
|
181
|
+
this.logger.warn(`FreeText Column "${fc.ColumnId}" has unrecognized DataType: "${fc.FreeTextColumnSettings.DataType}".`);
|
|
182
182
|
}
|
|
183
183
|
else {
|
|
184
184
|
fc.FreeTextColumnSettings.DataType = newDataType;
|
|
@@ -188,7 +188,7 @@ export class VersionUpgrade20 extends VersionUpgrade {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
migrateSparklineState(state) {
|
|
191
|
-
this.logger.info(
|
|
191
|
+
this.logger.info('Migrating Sparkline state.');
|
|
192
192
|
const sparklineState = state.StyledColumn;
|
|
193
193
|
if (sparklineState && sparklineState.StyledColumns) {
|
|
194
194
|
sparklineState.StyledColumns.forEach((styledColumn) => {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VersionUpgrade } from './VersionUpgrade';
|
|
2
|
+
import { AdaptableState } from '../AdaptableState/AdaptableState';
|
|
3
|
+
export declare class VersionUpgrade22 extends VersionUpgrade {
|
|
4
|
+
migrateState(state: AdaptableState): AdaptableState;
|
|
5
|
+
private migrateNamedObjectState;
|
|
6
|
+
private migrateFormatColumnState;
|
|
7
|
+
private patchCustomSortName;
|
|
8
|
+
private patchFlashingCellName;
|
|
9
|
+
private patchFormatColumnName;
|
|
10
|
+
private patchPlusMinusNudgeName;
|
|
11
|
+
private patchShortcutName;
|
|
12
|
+
private patchAlertName;
|
|
13
|
+
private patchScheduleName;
|
|
14
|
+
private scopeToString;
|
|
15
|
+
private hashStrings;
|
|
16
|
+
/**
|
|
17
|
+
* Stringifies an object after removing metadata properties (Uuid, Source, AdaptableVersion)
|
|
18
|
+
* to ensure deterministic hashing regardless of generated values.
|
|
19
|
+
*/
|
|
20
|
+
private stringifyWithoutMetadata;
|
|
21
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { VersionUpgrade } from './VersionUpgrade';
|
|
2
|
+
import { removeAdaptableObjectPrimitivesInlineDeep } from '../Utilities/Helpers/AdaptableHelper';
|
|
3
|
+
export class VersionUpgrade22 extends VersionUpgrade {
|
|
4
|
+
migrateState(state) {
|
|
5
|
+
this.migrateFormatColumnState(state);
|
|
6
|
+
this.migrateNamedObjectState(state);
|
|
7
|
+
return state;
|
|
8
|
+
}
|
|
9
|
+
migrateNamedObjectState(state) {
|
|
10
|
+
this.patchCustomSortName(state.CustomSort);
|
|
11
|
+
this.patchFlashingCellName(state.FlashingCell);
|
|
12
|
+
this.patchFormatColumnName(state.FormatColumn);
|
|
13
|
+
this.patchPlusMinusNudgeName(state.PlusMinus);
|
|
14
|
+
this.patchShortcutName(state.Shortcut);
|
|
15
|
+
this.patchAlertName(state.Alert);
|
|
16
|
+
this.patchScheduleName(state.Schedule);
|
|
17
|
+
}
|
|
18
|
+
// We have moved CellAlignment (renamed Alignment) from independent property into Style
|
|
19
|
+
migrateFormatColumnState(state) {
|
|
20
|
+
const formatColumnState = state.FormatColumn;
|
|
21
|
+
if (formatColumnState && formatColumnState.FormatColumns) {
|
|
22
|
+
formatColumnState.FormatColumns = formatColumnState.FormatColumns.map((formatColumn) => {
|
|
23
|
+
//@ts-ignore
|
|
24
|
+
if (formatColumn.CellAlignment) {
|
|
25
|
+
formatColumn.Style = {
|
|
26
|
+
...formatColumn.Style,
|
|
27
|
+
//@ts-ignore
|
|
28
|
+
Alignment: formatColumn.CellAlignment,
|
|
29
|
+
};
|
|
30
|
+
//@ts-ignore
|
|
31
|
+
delete formatColumn.CellAlignment;
|
|
32
|
+
}
|
|
33
|
+
return formatColumn;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return state;
|
|
37
|
+
}
|
|
38
|
+
patchCustomSortName(customSortState) {
|
|
39
|
+
if (!customSortState) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
customSortState.CustomSorts?.forEach((customSort) => {
|
|
43
|
+
if (!customSort.Name) {
|
|
44
|
+
const sortedValues = (customSort.SortedValues || []).join();
|
|
45
|
+
customSort.Name = `CustomSort-${customSort.ColumnId}-${this.hashStrings(['CustomSort', customSort.ColumnId, sortedValues])}`;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
patchFlashingCellName(flashingCellState) {
|
|
50
|
+
if (!flashingCellState) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
flashingCellState.FlashingCellDefinitions?.forEach((flashingCell) => {
|
|
54
|
+
if (!flashingCell.Name) {
|
|
55
|
+
const scopeStr = this.scopeToString(flashingCell.Scope);
|
|
56
|
+
const ruleStr = flashingCell.Rule?.BooleanExpression || '';
|
|
57
|
+
flashingCell.Name = `FlashingCell-${this.hashStrings(['FlashingCell', scopeStr, ruleStr])}`;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
patchFormatColumnName(formatColumnState) {
|
|
62
|
+
if (!formatColumnState) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
formatColumnState.FormatColumns?.forEach((formatColumn) => {
|
|
66
|
+
if (!formatColumn.Name) {
|
|
67
|
+
const scopeStr = this.scopeToString(formatColumn.Scope);
|
|
68
|
+
const styleStr = this.stringifyWithoutMetadata(formatColumn.Style);
|
|
69
|
+
formatColumn.Name = `FormatColumn-${this.hashStrings(['FormatColumn', scopeStr, styleStr])}`;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
patchPlusMinusNudgeName(plusMinusState) {
|
|
74
|
+
if (!plusMinusState) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
plusMinusState.PlusMinusNudges?.forEach((nudge) => {
|
|
78
|
+
if (!nudge.Name) {
|
|
79
|
+
const scopeStr = this.scopeToString(nudge.Scope);
|
|
80
|
+
const nudgeValue = String(nudge.NudgeValue ?? '');
|
|
81
|
+
nudge.Name = `PlusMinus-${this.hashStrings(['PlusMinus', scopeStr, nudgeValue])}`;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
patchShortcutName(shortcutState) {
|
|
86
|
+
if (!shortcutState) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
shortcutState.Shortcuts?.forEach((shortcut) => {
|
|
90
|
+
if (!shortcut.Name) {
|
|
91
|
+
const key = shortcut.ShortcutKey || '';
|
|
92
|
+
const operation = shortcut.ShortcutOperation || '';
|
|
93
|
+
const value = String(shortcut.ShortcutValue ?? '');
|
|
94
|
+
shortcut.Name = `Shortcut-${key}-${this.hashStrings(['Shortcut', key, operation, value])}`;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
patchAlertName(alertState) {
|
|
99
|
+
if (!alertState) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
alertState.AlertDefinitions?.forEach((alert) => {
|
|
103
|
+
if (!alert.Name) {
|
|
104
|
+
const scopeStr = this.scopeToString(alert.Scope);
|
|
105
|
+
const messageType = alert.MessageType || '';
|
|
106
|
+
const ruleStr = this.stringifyWithoutMetadata(alert.Rule);
|
|
107
|
+
alert.Name = `Alert-${messageType}-${this.hashStrings(['Alert', scopeStr, messageType, ruleStr])}`;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
patchScheduleName(scheduleState) {
|
|
112
|
+
if (!scheduleState) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
// Patch Reminder Schedules
|
|
116
|
+
scheduleState.Reminders?.forEach((reminder) => {
|
|
117
|
+
if (!reminder.Name) {
|
|
118
|
+
const header = reminder.Header || '';
|
|
119
|
+
const message = reminder.Message || '';
|
|
120
|
+
reminder.Name = `Reminder-${this.hashStrings(['Reminder', header, message])}`;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
// Patch Report Schedules
|
|
124
|
+
scheduleState.ReportSchedules?.forEach((report) => {
|
|
125
|
+
if (!report.Name) {
|
|
126
|
+
const reportName = report.ReportName || '';
|
|
127
|
+
const format = report.ReportFormat || '';
|
|
128
|
+
report.Name = `ReportSchedule-${this.hashStrings(['ReportSchedule', reportName, format])}`;
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
// Patch IPushPull Schedules
|
|
132
|
+
scheduleState.IPushPullSchedules?.forEach((ipp) => {
|
|
133
|
+
if (!ipp.Name) {
|
|
134
|
+
const reportName = ipp.IPushPullReport?.ReportName || '';
|
|
135
|
+
const folder = ipp.IPushPullReport?.Folder || '';
|
|
136
|
+
const page = ipp.IPushPullReport?.Page || '';
|
|
137
|
+
ipp.Name = `IPushPullSchedule-${this.hashStrings(['IPushPullSchedule', reportName, folder, page])}`;
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
// Patch OpenFin Schedules
|
|
141
|
+
scheduleState.OpenFinSchedules?.forEach((openfin) => {
|
|
142
|
+
if (!openfin.Name) {
|
|
143
|
+
const reportName = openfin.OpenFinReport?.ReportName || '';
|
|
144
|
+
openfin.Name = `OpenFinSchedule-${this.hashStrings(['OpenFinSchedule', reportName])}`;
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
scopeToString(scope) {
|
|
149
|
+
if (!scope) {
|
|
150
|
+
return '';
|
|
151
|
+
}
|
|
152
|
+
if ('All' in scope && scope.All) {
|
|
153
|
+
return 'All';
|
|
154
|
+
}
|
|
155
|
+
if ('ColumnIds' in scope && scope.ColumnIds) {
|
|
156
|
+
return scope.ColumnIds.join(',');
|
|
157
|
+
}
|
|
158
|
+
if ('DataTypes' in scope && scope.DataTypes) {
|
|
159
|
+
return scope.DataTypes.join(',');
|
|
160
|
+
}
|
|
161
|
+
if ('ColumnTypes' in scope && scope.ColumnTypes) {
|
|
162
|
+
return scope.ColumnTypes.join(',');
|
|
163
|
+
}
|
|
164
|
+
return '';
|
|
165
|
+
}
|
|
166
|
+
hashStrings(strings) {
|
|
167
|
+
let hash = 0;
|
|
168
|
+
for (const str of strings) {
|
|
169
|
+
for (let i = 0; i < str.length; i++) {
|
|
170
|
+
hash = (hash * 31 + str.charCodeAt(i)) % 9000;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return hash + 1000;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Stringifies an object after removing metadata properties (Uuid, Source, AdaptableVersion)
|
|
177
|
+
* to ensure deterministic hashing regardless of generated values.
|
|
178
|
+
*/
|
|
179
|
+
stringifyWithoutMetadata(obj) {
|
|
180
|
+
if (!obj) {
|
|
181
|
+
return '';
|
|
182
|
+
}
|
|
183
|
+
const cloned = structuredClone(obj);
|
|
184
|
+
removeAdaptableObjectPrimitivesInlineDeep(cloned);
|
|
185
|
+
return JSON.stringify(cloned);
|
|
186
|
+
}
|
|
187
|
+
}
|
package/src/types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type { AggregatedBooleanFunctionName } from './Utilities/ExpressionFuncti
|
|
|
10
10
|
export type { AggregatedScalarFunctionName } from './Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions';
|
|
11
11
|
export type { AdaptableOptions } from './AdaptableOptions/AdaptableOptions';
|
|
12
12
|
export { AdaptablePlugin } from './AdaptableOptions/AdaptablePlugin';
|
|
13
|
-
export type { ContainerOptions } from './AdaptableOptions/ContainerOptions';
|
|
13
|
+
export type { ContainerOptions, AdaptableContainerValue, AdaptableCSSSelector, InitContainerContext, ContainerContext, } from './AdaptableOptions/ContainerOptions';
|
|
14
14
|
export type { FlashingCellOptions, FlashTarget } from './AdaptableOptions/FlashingCellOptions';
|
|
15
15
|
export type { ToastPositions, ToastTransitions, NotificationsOptions, } from './AdaptableOptions/NotificationsOptions';
|
|
16
16
|
export type { AlertOptions, CommandHandler, AlertForm, AlertFormContext, AlertMessageContext, DataChangeDetectionPolicy, } from './AdaptableOptions/AlertOptions';
|
|
@@ -141,7 +141,7 @@ export type { ScheduleTriggeredInfo } from './Api/Events/ScheduleTriggered';
|
|
|
141
141
|
export type { AdaptableStateChangedInfo } from './Api/Events/AdaptableStateChanged';
|
|
142
142
|
export type { CommentChangedInfo } from './Api/Events/CommentChanged';
|
|
143
143
|
export type { Fdc3MessageInfo, Fdc3MessageSentInfo, Fdc3MessageReceivedInfo, } from './Api/Events/Fdc3MessageInfo';
|
|
144
|
-
export type { AdaptableState, AdaptablePersistentState } from './AdaptableState/AdaptableState';
|
|
144
|
+
export type { AdaptableState, AdaptablePersistentState, AdaptableTransientState, } from './AdaptableState/AdaptableState';
|
|
145
145
|
export type { AlertDefinition, AlertProperties, AlertState, AlertButtonForm, AlertButton, AdaptableAlertCommand, AlertDefinitionPredicate, AlertRule, AdaptableAlertQuery, SystemAlertPredicateId, SystemAlertPredicateIds, } from './AdaptableState/AlertState';
|
|
146
146
|
export type { ApplicationDataEntry, ApplicationState } from './AdaptableState/ApplicationState';
|
|
147
147
|
export type { SpecialColumnSettings } from './AdaptableState/Common/SpecialColumnSettings';
|
|
@@ -150,15 +150,14 @@ export type { CellSummmaryInfo, CustomCellSummaryOperation, CustomCellSummaryOpe
|
|
|
150
150
|
export type { FlashingCellDefinition, FlashingCellState, SystemFlashingCellPredicateId, SystemFlashingCellPredicateIds, } from './AdaptableState/FlashingCellState';
|
|
151
151
|
export type { AdaptableAlert, AdaptableAlertType, AdaptableGenericAlert, AdaptableCellChangedAlert, AdaptableRowChangedAlert, AdaptableAlertBase, } from './AdaptableState/Common/AdaptableAlert';
|
|
152
152
|
export type { AdaptableFlashingCell } from './AdaptableState/Common/AdaptableFlashingCell';
|
|
153
|
-
export type { AdaptableColumn, AdaptableColumnBase,
|
|
153
|
+
export type { AdaptableColumn, AdaptableColumnBase, AdaptableColumnTypeName, AdaptableColumnDataType, AdaptableColumnGroup, AdaptableColumnSummary, } from './AdaptableState/Common/AdaptableColumn';
|
|
154
154
|
export type { AdaptableField } from './AdaptableState/Common/AdaptableField';
|
|
155
155
|
export type { AdaptableComparerFunction } from './AdaptableState/Common/AdaptableComparerFunction';
|
|
156
156
|
export type { SystemStatusMessageInfo } from './AdaptableState/Common/SystemStatusMessageInfo';
|
|
157
157
|
export type { AlternativeModuleName } from './AdaptableState/Common/AlternativeModuleName';
|
|
158
158
|
export type { AdaptableFormat, DateFormatterOptions, NumberFormatterOptions, StringFormatterOptions, } from './AdaptableState/Common/AdaptableFormat';
|
|
159
159
|
export type { AdaptableMessageType } from './AdaptableState/Common/AdaptableMessageType';
|
|
160
|
-
export type { AdaptableObject, AdaptableObjectTag, AdaptableObjectLookupCriteria, AdaptableVersion, } from './AdaptableState/Common/AdaptableObject';
|
|
161
|
-
export type { SuspendableObject } from './AdaptableState/Common/SuspendableObject';
|
|
160
|
+
export type { Identifiable, AdaptableObject, AdaptableObjectTag, AdaptableObjectLookupCriteria, AdaptableVersion, SuspendableObject, } from './AdaptableState/Common/AdaptableObject';
|
|
162
161
|
export type { AdaptableQuery, AdaptableAggregatedBooleanQuery, AdaptableAggregatedScalarQuery, AdaptableBooleanQuery, AdaptableObservableQuery, AdaptableScalarQuery, } from './AdaptableState/Common/AdaptableQuery';
|
|
163
162
|
export type { AdaptablePredicate, AdaptableColumnPredicate, AdaptablePredicateDef, PredicateModuleScope, PredicateDefHandlerContext, PredicateDefInput, PredicateDefToStringParams, ColumnFilterDef, } from './AdaptableState/Common/AdaptablePredicate';
|
|
164
163
|
export type { ColumnScope } from './AdaptableState/Common/ColumnScope';
|
|
@@ -173,11 +172,13 @@ export type { CellDataChangedInfo } from './AdaptableState/Common/CellDataChange
|
|
|
173
172
|
export type { RowDataChangedInfo, RowDataChangeTrigger, } from './AdaptableState/Common/RowDataChangedInfo';
|
|
174
173
|
export type { DataChangedScope } from './AdaptableState/Common/DataChangedScope';
|
|
175
174
|
export type { DataUpdateConfig } from './AdaptableState/Common/DataUpdateConfig';
|
|
175
|
+
export type { DataRowConfig } from './AdaptableState/Common/DataUpdateConfig';
|
|
176
176
|
export type { AdaptableFormData, AdaptableForm, AdaptableFormField, AdaptableFormFieldType, } from './AdaptableState/Common/AdaptableForm';
|
|
177
177
|
export type { AdaptableButton } from './AdaptableState/Common/AdaptableButton';
|
|
178
178
|
export type { AdaptableMenuItem, UserMenuItem, ColumnMenuContext, ContextMenuContext, AdaptableContextMenuItem, AdaptableColumnMenuItem, AdaptableColumnMenuItemName, AdaptableContextMenuItemName, AgGridMenuItem, MenuCategory, MenuSeparator, } from './AdaptableState/Common/Menu';
|
|
179
179
|
export type { BaseContext } from './AdaptableState/Common/BaseContext';
|
|
180
|
-
export type { AdaptableColumnContext } from './AdaptableState/Common/AdaptableColumnContext';
|
|
180
|
+
export type { AdaptableColumnContext, AdaptableColumnsContext, } from './AdaptableState/Common/AdaptableColumnContext';
|
|
181
|
+
export type { AdaptableRowContext } from './AdaptableState/Common/AdaptableRowContext';
|
|
181
182
|
export type { FormContext } from './AdaptableState/Common/FormContext';
|
|
182
183
|
export type { Schedule } from './AdaptableState/Common/Schedule';
|
|
183
184
|
export type { ButtonStyle } from './AdaptableState/Common/ButtonStyle';
|
|
@@ -188,7 +189,7 @@ export type { DashboardState, DashboardTab, AdaptableCoordinate, } from './Adapt
|
|
|
188
189
|
export type { ExportState, Report, ReportData, ReportColumn, ReportSchedule, SystemReportName, SystemReportNames, SystemReportFormat, ReportRowScope, ReportColumnScope, ReportNameType, ReportFormatType, } from './AdaptableState/ExportState';
|
|
189
190
|
export type { ColumnFilter, ColumnFilterPredicate, SystemFilterPredicateIds, SystemFilterPredicateId, PredicatesOperator, } from './AdaptableState/Common/ColumnFilter';
|
|
190
191
|
export type { GridFilter } from './AdaptableState/Common/GridFilter';
|
|
191
|
-
export type { FormatColumn, FormatColumnState, FormatColumnRule, FormatColumnPredicate, SystemFormatColumnPredicateId, SystemFormatColumnPredicateIds,
|
|
192
|
+
export type { FormatColumn, FormatColumnState, FormatColumnRule, FormatColumnPredicate, SystemFormatColumnPredicateId, SystemFormatColumnPredicateIds, ColumnGroupScope, FormatColumnTarget, FormatColumnConfig, } from './AdaptableState/FormatColumnState';
|
|
192
193
|
export type { StyledColumn, StyledColumnState, PercentBarStyle, GradientStyle, CellColorRange, ColumnComparison, CellTextOptions, CellTextOption, NumericStyledColumn, RangeValueType, SparklineStyle, BadgeStyle, BadgeStyleDefinition, BadgeStylePredicate, SystemBadgeStylePredicateId, SystemBadgeStylePredicateIds, } from './AdaptableState/StyledColumnState';
|
|
193
194
|
export type { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue, FreeTextColumnSettings, } from './AdaptableState/FreeTextColumnState';
|
|
194
195
|
export type { StatusBarState, AdaptableStatusBar } from './AdaptableState/StatusBarState';
|
|
@@ -210,6 +211,7 @@ export type { Shortcut, ShortcutState, ShortcutScopeDataType, } from './Adaptabl
|
|
|
210
211
|
export type { SharedEntity, AdaptableSharedEntity, CustomSharedEntity, TeamSharingState, SharedEntityType, AdaptableSharedEntityConfig, CustomSharedEntityConfig, } from './AdaptableState/TeamSharingState';
|
|
211
212
|
export type { AdaptableTheme, ThemeState } from './AdaptableState/ThemeState';
|
|
212
213
|
export type { ToolPanelState, AdaptableToolPanelDefinition, ToolPanelVisibilityMode, } from './AdaptableState/ToolPanelState';
|
|
214
|
+
export type { UserInterfaceState } from './AdaptableState/UserInterfaceState';
|
|
213
215
|
export type { AdaptableFrameworkComponent, AngularFrameworkComponent, ReactFrameworkComponent, VueFrameworkComponent, CustomRenderFunction, CustomRenderContext, } from './agGrid/AdaptableFrameworkComponent';
|
|
214
216
|
export type { Fdc3Options, GridDataContextMapping, ActionColumnDefaultConfiguration, ResolveContextDataContext, RaiseIntentConfig, BroadcastConfig, HandleFdc3IntentContext, HandleFdc3Context, Fdc3ButtonContext, Fdc3AdaptableButton, HandleFdc3IntentResolutionContext, UIControlConfig, Fdc3IntentOptions, Fdc3ContextOptions, RaiseIntentConfiguration, BroadcastConfiguration, FDC3ActionColumn, } from './AdaptableOptions/Fdc3Options';
|
|
215
217
|
export type { CommentState, CommentThread, AdaptableComment } from './AdaptableState/CommentState';
|
package/themes/dark.css
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
.
|
|
2
|
-
--
|
|
1
|
+
@layer adaptable.theme {
|
|
2
|
+
.ab--theme-dark {
|
|
3
|
+
--ab-theme-loaded: dark;
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
--ab-cmp-input--disabled__background: #232323; /* #b6b7b8 */
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
--ab-color-defaultbackground: #3e444c;
|
|
8
|
+
--ab-color-text-on-defaultbackground: #e2e2e2;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
--ab-color-primary: #262d2f;
|
|
11
|
+
--ab-color-primarylight: #3d3e3f;
|
|
12
|
+
--ab-color-primarydark: #1c2021;
|
|
13
|
+
--ab-color-text-on-primary: #e2e2e2; /* F2F2F2 */
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
--ab-color-shadow: rgb(255 255 255 / 0.45);
|
|
16
|
+
--ab-cmp-modal-backdrop__background: rgba(255, 255, 255, 0.2);
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
--ab-dashboard__border: #555;
|
|
19
|
+
--ab-cmp-dropdownbutton-list-separator__border: 1px solid #555;
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
--ab-gridheader--filtered__background: var(--ab-color-defaultbackground);
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
input[type='number'].ab-Input::-webkit-outer-spin-button,
|
|
26
|
-
input[type='number'].ab-Input::-webkit-inner-spin-button {
|
|
27
|
-
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" viewBox="4 0 18 18" version="1.1"><path fill="%23f7f7f7" d="M7 10l5 5 5-5z" transform="translate(0, 2)"/><path fill="%23f7f7f7" d="M7 14l5-5 5 5z" transform="translate(0, -6)"/></svg>')
|
|
28
|
-
no-repeat center center;
|
|
23
|
+
--ab-cmp-checkbox__border-color: var(--ab-color-text-on-primary);
|
|
24
|
+
--ab-cmp-checkbox--checked__border-color: var(--ab-color-accent);
|
|
29
25
|
}
|
|
30
|
-
}
|
|
31
26
|
|
|
32
|
-
|
|
27
|
+
.ab--theme-dark input.ab-Input[type='number']::-webkit-outer-spin-button,.ab--theme-dark input.ab-Input[type='number']::-webkit-inner-spin-button {
|
|
28
|
+
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" viewBox="4 0 18 18" version="1.1"><path fill="%23f7f7f7" d="M7 10l5 5 5-5z" transform="translate(0, 2)"/><path fill="%23f7f7f7" d="M7 14l5-5 5 5z" transform="translate(0, -6)"/></svg>')
|
|
29
|
+
no-repeat center center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
33
|
The following are only redefined here so that the DARK theme in Storybook
|
|
34
34
|
can be previewed correctly as that relies on an element (not the document element)
|
|
35
35
|
to have the class ab--theme-dark.
|
|
@@ -38,11 +38,11 @@ For our production release those are not needed and could be removed
|
|
|
38
38
|
as our dark theme is anyways applied on the document element.
|
|
39
39
|
|
|
40
40
|
*/
|
|
41
|
-
.ab--theme-dark {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
.ab--theme-dark {
|
|
42
|
+
--ab-color-inputcolor: var(--ab-color-text-on-primary);
|
|
43
|
+
--ab-cmp-input__color: var(--ab-color-inputcolor);
|
|
44
|
+
--ab-cmp-input__background: var(--ab-color-defaultbackground);
|
|
45
|
+
--ab-cmp-input--disabled__background: var(--ab-color-primarylight);
|
|
46
|
+
--ab-cmp-field-wrap__background: var(--ab-color-defaultbackground);
|
|
47
|
+
}
|
|
48
48
|
}
|
package/themes/light.css
CHANGED