@adaptabletools/adaptable 24.0.0-canary.1 → 24.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 +2 -3
- package/agGrid.js +2 -3
- package/aql.d.ts +132 -0
- package/aql.js +260 -0
- package/devtools.d.ts +237 -2
- package/index.css +307 -294
- package/index.d.ts +2 -3
- package/index.js +2 -3
- package/package.json +7 -6
- package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -4
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +24 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +97 -69
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +113 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +0 -2
- package/src/AdaptableOptions/ChartingOptions.d.ts +11 -5
- package/src/AdaptableOptions/ColumnMenuOptions.d.ts +30 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +0 -2
- package/src/AdaptableOptions/CommentOptions.d.ts +12 -4
- package/src/AdaptableOptions/ContextMenuOptions.d.ts +31 -1
- package/src/AdaptableOptions/DashboardOptions.d.ts +0 -3
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +3 -2
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +11 -5
- package/src/AdaptableOptions/EditOptions.d.ts +18 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +23 -0
- package/src/AdaptableOptions/ExpressionOptions.d.ts +0 -3
- package/src/AdaptableOptions/Fdc3Options.d.ts +77 -3
- package/src/AdaptableOptions/FilterOptions.d.ts +13 -8
- package/src/AdaptableOptions/FlashingCellOptions.d.ts +3 -3
- package/src/AdaptableOptions/LayoutOptions.d.ts +16 -3
- package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -1
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +0 -2
- package/src/AdaptableOptions/RowFormOptions.d.ts +9 -0
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +16 -5
- package/src/AdaptableOptions/StateOptions.d.ts +37 -13
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +89 -6
- package/src/AdaptableState/AdaptableState.d.ts +99 -3
- package/src/AdaptableState/AlertState.d.ts +20 -21
- package/src/AdaptableState/ApplicationState.d.ts +5 -3
- package/src/AdaptableState/BaseState.d.ts +9 -2
- package/src/AdaptableState/CalculatedColumnState.d.ts +10 -8
- package/src/AdaptableState/ChartingState.d.ts +10 -5
- package/src/AdaptableState/CommentState.d.ts +10 -4
- package/src/AdaptableState/Common/AdaptableAlert.d.ts +21 -2
- package/src/AdaptableState/Common/AdaptableAlert.js +9 -0
- package/src/AdaptableState/Common/AdaptableButton.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +38 -1
- package/src/AdaptableState/Common/AdaptableFilterState.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableForm.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableFormat.d.ts +27 -1
- package/src/AdaptableState/Common/AdaptableIcon.d.ts +4 -2
- package/src/AdaptableState/Common/AdaptableObject.d.ts +9 -1
- package/src/AdaptableState/Common/AdaptableQuery.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +6 -8
- package/src/AdaptableState/Common/AggregationColumns.d.ts +15 -6
- package/src/AdaptableState/Common/ButtonStyle.d.ts +3 -1
- package/src/AdaptableState/Common/CellDataChangedInfo.d.ts +6 -2
- package/src/AdaptableState/Common/CellHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/CellSummary.d.ts +33 -0
- package/src/AdaptableState/Common/ColumnFilter.d.ts +3 -1
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/ColumnScope.d.ts +32 -1
- package/src/AdaptableState/Common/ColumnSetupInfo.d.ts +17 -0
- package/src/AdaptableState/Common/ColumnSort.d.ts +3 -1
- package/src/AdaptableState/Common/CompactCalculatedColumnEditorInfo.d.ts +3 -0
- package/src/AdaptableState/Common/DataChangedScope.d.ts +3 -1
- package/src/AdaptableState/Common/DataUpdateConfig.d.ts +3 -1
- package/src/AdaptableState/Common/Entitlement.d.ts +4 -2
- package/src/AdaptableState/Common/Enums.d.ts +21 -0
- package/src/AdaptableState/Common/ExtendedLayout.d.ts +3 -1
- package/src/AdaptableState/Common/Fdc3Context.d.ts +9 -0
- package/src/AdaptableState/Common/Fdc3Intent.d.ts +6 -0
- package/src/AdaptableState/Common/GridFilter.d.ts +3 -1
- package/src/AdaptableState/Common/MenuItem.d.ts +9 -0
- package/src/AdaptableState/Common/RowHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/RowScope.d.ts +3 -1
- package/src/AdaptableState/Common/RowSummary.d.ts +14 -4
- package/src/AdaptableState/Common/RowsHighlightInfo.d.ts +5 -3
- package/src/AdaptableState/Common/Schedule.d.ts +10 -2
- package/src/AdaptableState/Common/SpecialColumnSettings.d.ts +3 -1
- package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +4 -2
- package/src/AdaptableState/Common/TransposeConfig.d.ts +1 -1
- package/src/AdaptableState/Common/Types.d.ts +9 -0
- package/src/AdaptableState/CustomSortState.d.ts +8 -5
- package/src/AdaptableState/DashboardState.d.ts +14 -10
- package/src/AdaptableState/ExportState.d.ts +12 -4
- package/src/AdaptableState/FlashingCellState.d.ts +8 -5
- package/src/AdaptableState/FormatColumnState.d.ts +28 -8
- package/src/AdaptableState/FreeTextColumnState.d.ts +14 -8
- package/src/AdaptableState/IPushPullState.d.ts +39 -3
- package/src/AdaptableState/InitialState.d.ts +9 -9
- package/src/AdaptableState/InternalState.d.ts +183 -3
- package/src/AdaptableState/LayoutState.d.ts +64 -21
- package/src/AdaptableState/NamedQueryState.d.ts +16 -4
- package/src/AdaptableState/NoteState.d.ts +7 -3
- package/src/AdaptableState/OpenFinState.d.ts +12 -2
- package/src/AdaptableState/PlusMinusState.d.ts +8 -4
- package/src/AdaptableState/PopupState.d.ts +29 -1
- package/src/AdaptableState/QuickSearchState.d.ts +9 -3
- package/src/AdaptableState/Selection/GridCell.d.ts +5 -3
- package/src/AdaptableState/Selection/GridCellRange.d.ts +8 -7
- package/src/AdaptableState/Selection/SelectedCellInfo.d.ts +1 -1
- package/src/AdaptableState/ShortcutState.d.ts +7 -3
- package/src/AdaptableState/StatusBarState.d.ts +7 -6
- package/src/AdaptableState/StyledColumnState.d.ts +46 -14
- package/src/AdaptableState/StyledColumns/GradientStyle.d.ts +4 -0
- package/src/AdaptableState/TeamSharingState.d.ts +46 -2
- package/src/AdaptableState/ThemeState.d.ts +24 -2
- package/src/AdaptableState/ToolPanelState.d.ts +10 -5
- package/src/AdaptableState/UserInterfaceState.d.ts +2 -2
- package/src/AdaptableState/Uuid.d.ts +6 -0
- package/src/Api/ActionColumnApi.d.ts +3 -1
- package/src/Api/AdaptableApi.d.ts +54 -50
- package/src/Api/AlertApi.d.ts +20 -12
- package/src/Api/ApplicationApi.d.ts +6 -2
- package/src/Api/BulkUpdateApi.d.ts +2 -1
- package/src/Api/CalculatedColumnApi.d.ts +4 -1
- package/src/Api/CalendarApi.d.ts +10 -0
- package/src/Api/CellSummaryApi.d.ts +9 -3
- package/src/Api/ChartingApi.d.ts +22 -7
- package/src/Api/ColumnApi.d.ts +71 -4
- package/src/Api/ColumnFilterApi.d.ts +13 -3
- package/src/Api/ColumnMenuApi.d.ts +13 -2
- package/src/Api/ColumnScopeApi.d.ts +27 -1
- package/src/Api/CommentApi.d.ts +10 -7
- package/src/Api/ContextMenuApi.d.ts +11 -1
- package/src/Api/CustomSortApi.d.ts +6 -2
- package/src/Api/DashboardApi.d.ts +30 -9
- package/src/Api/DataChangeHistoryApi.d.ts +9 -3
- package/src/Api/DataImportApi.d.ts +1 -1
- package/src/Api/EntitlementApi.d.ts +6 -1
- package/src/Api/EventApi.d.ts +67 -19
- package/src/Api/Events/AdaptableReady.d.ts +6 -2
- package/src/Api/Events/AdaptableStateChanged.d.ts +9 -5
- package/src/Api/Events/AdaptableStateReloaded.d.ts +7 -3
- package/src/Api/Events/AlertFired.d.ts +8 -2
- package/src/Api/Events/BeforeAdaptableStateChange.d.ts +6 -2
- package/src/Api/Events/CalculatedColumnChanged.d.ts +7 -3
- package/src/Api/Events/CellChanged.d.ts +6 -2
- package/src/Api/Events/CellSelectionChanged.d.ts +6 -2
- package/src/Api/Events/ChartChanged.d.ts +16 -8
- package/src/Api/Events/CommentChanged.d.ts +8 -2
- package/src/Api/Events/CustomToolbarConfigured.d.ts +6 -2
- package/src/Api/Events/DashboardChanged.d.ts +27 -6
- package/src/Api/Events/DataImported.d.ts +8 -4
- package/src/Api/Events/DataSetSelected.d.ts +6 -2
- package/src/Api/Events/Fdc3MessageInfo.d.ts +14 -4
- package/src/Api/Events/FlashingCellDisplayed.d.ts +6 -2
- package/src/Api/Events/GridFilterApplied.d.ts +11 -3
- package/src/Api/Events/GridSorted.d.ts +6 -2
- package/src/Api/Events/LayoutChanged.d.ts +41 -8
- package/src/Api/Events/LiveDataChanged.d.ts +21 -5
- package/src/Api/Events/NoteChanged.d.ts +5 -1
- package/src/Api/Events/ReportScheduleRan.d.ts +7 -3
- package/src/Api/Events/RowChanged.d.ts +6 -2
- package/src/Api/Events/RowFormSubmitted.d.ts +28 -12
- package/src/Api/Events/RowSelectionChanged.d.ts +6 -2
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +6 -2
- package/src/Api/Events/TeamSharingEntityChanged.d.ts +6 -2
- package/src/Api/Events/ThemeSelected.d.ts +6 -2
- package/src/Api/ExportApi.d.ts +59 -32
- package/src/Api/ExpressionApi.d.ts +24 -1
- package/src/Api/Fdc3Api.d.ts +16 -3
- package/src/Api/FlashingCellApi.d.ts +6 -1
- package/src/Api/FormatColumnApi.d.ts +18 -11
- package/src/Api/FreeTextColumnApi.d.ts +4 -2
- package/src/Api/GridApi.d.ts +92 -19
- package/src/Api/IPushPullApi.d.ts +19 -2
- package/src/Api/Implementation/AlertApiImpl.d.ts +5 -5
- package/src/Api/Implementation/AlertApiImpl.js +26 -19
- package/src/Api/Implementation/ColumnScopeApiImpl.js +3 -3
- package/src/Api/Implementation/QuickSearchApiImpl.js +2 -2
- package/src/Api/Implementation/StateApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StateApiImpl.js +4 -3
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +0 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +9 -15
- package/src/Api/Internal/AdaptableInternalApi.js +5 -3
- package/src/Api/Internal/AlertInternalApi.js +12 -7
- package/src/Api/Internal/CalculatedColumnInternalApi.js +1 -1
- package/src/Api/Internal/EventInternalApi.d.ts +2 -1
- package/src/Api/Internal/EventInternalApi.js +7 -0
- package/src/Api/Internal/StateInternalApi.d.ts +1 -1
- package/src/Api/Internal/StateInternalApi.js +6 -5
- package/src/Api/InteropioPluginApi.d.ts +2 -1
- package/src/Api/LayoutApi.d.ts +29 -15
- package/src/Api/NamedQueryApi.d.ts +10 -6
- package/src/Api/NoteApi.d.ts +15 -11
- package/src/Api/OpenFinApi.d.ts +8 -2
- package/src/Api/OptionsApi.d.ts +43 -1
- package/src/Api/PluginsApi.d.ts +6 -1
- package/src/Api/PlusMinusApi.d.ts +2 -1
- package/src/Api/QuickSearchApi.d.ts +6 -1
- package/src/Api/RowFormApi.d.ts +8 -7
- package/src/Api/ShortcutApi.d.ts +3 -1
- package/src/Api/SmartEditApi.d.ts +4 -1
- package/src/Api/StateApi.d.ts +32 -4
- package/src/Api/StatusBarApi.d.ts +2 -0
- package/src/Api/StyledColumnApi.d.ts +23 -12
- package/src/Api/SystemStatusApi.d.ts +18 -6
- package/src/Api/TeamSharingApi.d.ts +8 -1
- package/src/Api/ThemeApi.d.ts +17 -8
- package/src/Api/ToolPanelApi.d.ts +12 -7
- package/src/Api/UserInterfaceApi.d.ts +10 -5
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +3 -3
- package/src/Redux/ActionsReducers/QuickSearchRedux.d.ts +9 -4
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +12 -7
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.d.ts +8 -0
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +12 -12
- package/src/Redux/Store/AdaptableStore.d.ts +8 -5
- package/src/Redux/Store/AdaptableStore.js +75 -41
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +5 -5
- package/src/Redux/Store/Interface/IStorageEngine.d.ts +4 -4
- package/src/Redux/Store/StateOptionsGuards.d.ts +58 -0
- package/src/Redux/Store/StateOptionsGuards.js +112 -0
- package/src/Redux/Store/isTransientReduxAction.d.ts +5 -0
- package/src/Redux/Store/isTransientReduxAction.js +19 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -0
- package/src/Utilities/Constants/ReduxConstants.d.ts +2 -2
- package/src/Utilities/Constants/ReduxConstants.js +5 -5
- package/src/Utilities/Helpers/AlertTypeHelper.d.ts +1 -1
- package/src/Utilities/Helpers/SettingsPanelHelper.d.ts +14 -0
- package/src/Utilities/Helpers/SettingsPanelHelper.js +37 -1
- package/src/Utilities/Helpers/UIHelper.d.ts +12 -14
- package/src/Utilities/Helpers/UIHelper.js +12 -35
- package/src/Utilities/ObjectFactory.js +3 -3
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +9 -11
- package/src/View/Components/StyleComponent.js +2 -2
- package/src/View/Dashboard/Dashboard.d.ts +1 -1
- package/src/View/Dashboard/Dashboard.js +1 -1
- package/src/View/Dashboard/DashboardPopupSections.js +1 -1
- package/src/View/Filter/ColumnFilter/ColumnFilterNew.js +14 -9
- package/src/View/GridInfo/GridInfoPopup.js +62 -25
- package/src/View/QuickSearch/QuickSearchInput.js +1 -1
- package/src/View/QuickSearch/QuickSearchPopup.d.ts +1 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
- package/src/View/QuickSearch/Utilities/useQuickSearchDebounced.d.ts +2 -2
- package/src/View/StyledColumn/RangesComponent.js +13 -16
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +0 -2
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -3
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +3 -3
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +7 -11
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +6 -6
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +8 -8
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +4 -4
- package/src/View/Wizard/CollapsibleWizardCard.d.ts +3 -1
- package/src/View/Wizard/CollapsibleWizardCard.js +17 -9
- package/src/agGrid/Adaptable.d.ts +0 -12
- package/src/agGrid/Adaptable.js +0 -52
- package/src/agGrid/AdaptableAgGrid.d.ts +4 -4
- package/src/agGrid/AdaptableAgGrid.js +2 -0
- package/src/agGrid/AdaptableFrameworkComponent.d.ts +12 -0
- package/src/agGrid/AdaptableLogger.d.ts +74 -1
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -1
- package/src/agGrid/AgGridColumnAdapter.js +7 -5
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -0
- package/src/agGrid/index.d.ts +1 -6
- package/src/agGrid/index.js +1 -3
- package/src/aql/ExpressionEvaluation.d.ts +27 -0
- package/src/aql/types.d.ts +22 -0
- package/src/components/ColorField/index.d.ts +13 -0
- package/src/components/ColorField/index.js +26 -0
- package/src/components/aql/QueryBuilder/GroupEditor.js +1 -1
- package/src/components/aql/QueryBuilder/QueryBuilder.d.ts +5 -0
- package/src/components/aql/QueryBuilder/QueryBuilder.js +1 -1
- package/src/components/aql/QueryBuilder/QueryBuilderInputs.js +12 -2
- package/src/components/aql/QueryBuilder/context.d.ts +7 -0
- package/src/components/aql/QueryBuilder/context.js +3 -1
- package/src/env.js +2 -2
- package/src/layout-manager/src/normalizeLayoutModel.d.ts +1 -1
- package/src/layout-manager/src/simplifyLayoutModel.d.ts +1 -1
- package/src/migration/AdaptableUpgradeHelper.d.ts +7 -2
- package/src/migration/VersionUpgrade17.js +13 -8
- package/src/migration/VersionUpgrade24.d.ts +9 -0
- package/src/migration/VersionUpgrade24.js +27 -0
- package/src/migration/legacyAdaptableQuery.d.ts +29 -4
- package/src/setupDevTools.js +827 -111
- package/src/types.d.ts +2 -4
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/upgrade.d.ts +1 -0
- package/upgrade.js +1 -0
- package/vendor/components/Button/index.d.ts +1 -1
- package/vendor/components/Button/index.d.ts.map +1 -1
- package/vendor/components/Button/index.js.map +1 -1
- package/vendor/components/CheckBox/index.d.ts +1 -1
- package/vendor/components/CheckBox/index.d.ts.map +1 -1
- package/vendor/components/CheckBox/index.js.map +1 -1
- package/vendor/components/ColorField/index.d.ts +53 -0
- package/vendor/components/ColorField/index.d.ts.map +1 -0
- package/vendor/components/ColorField/index.js +80 -0
- package/vendor/components/ColorField/index.js.map +1 -0
- package/vendor/components/ColorPicker/colorPickerTab.d.ts +4 -0
- package/vendor/components/ColorPicker/colorPickerTab.d.ts.map +1 -0
- package/vendor/components/ColorPicker/colorPickerTab.js +28 -0
- package/vendor/components/ColorPicker/colorPickerTab.js.map +1 -0
- package/vendor/components/ColorPicker/index.d.ts +98 -0
- package/vendor/components/ColorPicker/index.d.ts.map +1 -0
- package/vendor/components/ColorPicker/index.js +322 -0
- package/vendor/components/ColorPicker/index.js.map +1 -0
- package/vendor/components/ColorPicker/themeColors.d.ts +94 -0
- package/vendor/components/ColorPicker/themeColors.d.ts.map +1 -0
- package/vendor/components/ColorPicker/themeColors.js +240 -0
- package/vendor/components/ColorPicker/themeColors.js.map +1 -0
- package/vendor/components/Combobox/VirtualizedList.d.ts +1 -1
- package/vendor/components/Combobox/VirtualizedList.d.ts.map +1 -1
- package/vendor/components/Combobox/VirtualizedList.js.map +1 -1
- package/vendor/components/Combobox/index.d.ts +1 -1
- package/vendor/components/Combobox/index.d.ts.map +1 -1
- package/vendor/components/Combobox/index.js.map +1 -1
- package/vendor/components/NumberInput/index.d.ts +51 -0
- package/vendor/components/NumberInput/index.d.ts.map +1 -0
- package/vendor/components/NumberInput/index.js +82 -0
- package/vendor/components/NumberInput/index.js.map +1 -0
- package/vendor/components/index.css +286 -24
- package/vendor/components/index.d.ts +6 -0
- package/vendor/components/index.d.ts.map +1 -1
- package/vendor/components/index.js +3 -0
- package/vendor/components/index.js.map +1 -1
- package/vendor/components/ui/combobox.d.ts.map +1 -1
- package/vendor/components/ui/combobox.js +1 -1
- package/vendor/components/ui/combobox.js.map +1 -1
- package/vendor/components/ui/input-group.d.ts.map +1 -1
- package/vendor/components/ui/input-group.js +5 -4
- package/vendor/components/ui/input-group.js.map +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +0 -99
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +0 -15
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +0 -19
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -337
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +0 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +0 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +0 -30
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -162
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +0 -18
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +0 -12
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -131
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +0 -30
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +0 -80
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +0 -100
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +0 -11
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +0 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +0 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +0 -21
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +0 -63
- package/src/View/AdaptableWizardView/Utilities/Utils.d.ts +0 -1
- package/src/View/AdaptableWizardView/Utilities/Utils.js +0 -21
- package/src/View/AdaptableWizardView/Utilities/helper.d.ts +0 -19
- package/src/View/AdaptableWizardView/Utilities/helper.js +0 -81
- package/src/View/AdaptableWizardView/Wizard.d.ts +0 -57
- package/src/View/AdaptableWizardView/Wizard.js +0 -98
- package/src/View/AdaptableWizardView/index.d.ts +0 -4
- package/src/View/AdaptableWizardView/index.js +0 -4
- package/src/components/ColorPicker/ColorPicker.d.ts +0 -12
- package/src/components/ColorPicker/ColorPicker.js +0 -48
- package/src/components/ColorPicker/OptionalColorPicker.d.ts +0 -12
- package/src/components/ColorPicker/OptionalColorPicker.js +0 -13
- package/src/components/ColorPicker/index.d.ts +0 -2
- package/src/components/ColorPicker/index.js +0 -2
|
@@ -4,7 +4,7 @@ import * as AlertRedux from '../../Redux/ActionsReducers/AlertRedux';
|
|
|
4
4
|
import { ApiBase } from './ApiBase';
|
|
5
5
|
import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
6
6
|
import ObjectFactory from '../../Utilities/ObjectFactory';
|
|
7
|
-
import { isAdaptableCellChangedAlert, isAdaptableRowChangedAlert, } from '../../AdaptableState/Common/AdaptableAlert';
|
|
7
|
+
import { getAlertCellDataChangedInfos, isAdaptableCellChangedAlert, isAdaptableRowChangedAlert, } from '../../AdaptableState/Common/AdaptableAlert';
|
|
8
8
|
import StringExtensions from '../../Utilities/Extensions/StringExtensions';
|
|
9
9
|
import { AlertInternalApi } from '../Internal/AlertInternalApi';
|
|
10
10
|
import { resolveContainerElement } from '../../Utilities/resolveContainerElement';
|
|
@@ -100,26 +100,29 @@ export class AlertApiImpl extends ApiBase {
|
|
|
100
100
|
this.getGridApi().jumpToRow(firstRowNode);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
const highlightCellChanges = getAlertCellDataChangedInfos(alertToShow);
|
|
104
|
+
if (highlightCellChanges.length &&
|
|
105
105
|
(alertProperties.HighlightCell || alertProperties.HighlightRow)) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
alertNode = this.getGridApi().getRowNodeForPrimaryKey(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
this.dispatchAction(InternalRedux.AdaptableAlertRemoveRowHighlight(alertToShow));
|
|
115
|
-
}, this.getAlertOptions().rowHighlightDuration);
|
|
116
|
-
}
|
|
117
|
-
if (alertProperties.HighlightCell && alertToShow.cellDataChangedInfo.column) {
|
|
118
|
-
this.getGridApi().refreshCell(alertNode, alertToShow.cellDataChangedInfo.column.columnId);
|
|
119
|
-
setTimeout(() => {
|
|
120
|
-
this.dispatchAction(InternalRedux.AdaptableAlertRemoveCellHighlight(alertToShow));
|
|
121
|
-
}, this.getAlertOptions().cellHighlightDuration);
|
|
106
|
+
const highlightNodes = [];
|
|
107
|
+
highlightCellChanges.forEach((cellChange) => {
|
|
108
|
+
const alertNode = cellChange.rowNode ?? this.getGridApi().getRowNodeForPrimaryKey(cellChange.primaryKeyValue);
|
|
109
|
+
if (alertNode) {
|
|
110
|
+
highlightNodes.push(alertNode);
|
|
111
|
+
if (alertProperties.HighlightCell && cellChange.column) {
|
|
112
|
+
this.getGridApi().refreshCell(alertNode, cellChange.column.columnId);
|
|
113
|
+
}
|
|
122
114
|
}
|
|
115
|
+
});
|
|
116
|
+
if (alertProperties.HighlightRow && highlightNodes.length) {
|
|
117
|
+
this.getGridApi().refreshRowNodes(highlightNodes);
|
|
118
|
+
setTimeout(() => {
|
|
119
|
+
this.dispatchAction(InternalRedux.AdaptableAlertRemoveRowHighlight(alertToShow));
|
|
120
|
+
}, this.getAlertOptions().rowHighlightDuration);
|
|
121
|
+
}
|
|
122
|
+
if (alertProperties.HighlightCell) {
|
|
123
|
+
setTimeout(() => {
|
|
124
|
+
this.dispatchAction(InternalRedux.AdaptableAlertRemoveCellHighlight(alertToShow));
|
|
125
|
+
}, this.getAlertOptions().cellHighlightDuration);
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
128
|
else if (alertProperties.HighlightRow &&
|
|
@@ -188,10 +191,14 @@ export class AlertApiImpl extends ApiBase {
|
|
|
188
191
|
const message = allSameMessage && StringExtensions.IsNotNullOrEmpty(representative.message)
|
|
189
192
|
? `${representative.message}\n${summaryMessage}`
|
|
190
193
|
: summaryMessage;
|
|
194
|
+
const cellDataChangedInfos = group.flatMap((alert) => getAlertCellDataChangedInfos(alert));
|
|
191
195
|
return {
|
|
192
196
|
...representative,
|
|
193
197
|
occurrenceCount: count,
|
|
194
198
|
message,
|
|
199
|
+
...(isAdaptableCellChangedAlert(representative) && cellDataChangedInfos.length
|
|
200
|
+
? { cellDataChangedInfos }
|
|
201
|
+
: {}),
|
|
195
202
|
};
|
|
196
203
|
}
|
|
197
204
|
displayAdaptableAlertNotification(alert) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
3
|
-
import {
|
|
3
|
+
import { getDefaultRangeColor } from '../../Utilities/Helpers/UIHelper';
|
|
4
4
|
export class ColumnScopeApiImpl extends ApiBase {
|
|
5
5
|
isColumnInScope(column, scope) {
|
|
6
6
|
if (!column) {
|
|
@@ -238,7 +238,7 @@ export class ColumnScopeApiImpl extends ApiBase {
|
|
|
238
238
|
{
|
|
239
239
|
Min: 0,
|
|
240
240
|
Max: 0,
|
|
241
|
-
Color:
|
|
241
|
+
Color: getDefaultRangeColor(),
|
|
242
242
|
},
|
|
243
243
|
];
|
|
244
244
|
}
|
|
@@ -246,7 +246,7 @@ export class ColumnScopeApiImpl extends ApiBase {
|
|
|
246
246
|
{
|
|
247
247
|
Min: 'Col-Min',
|
|
248
248
|
Max: 'Col-Max',
|
|
249
|
-
Color:
|
|
249
|
+
Color: getDefaultRangeColor(),
|
|
250
250
|
},
|
|
251
251
|
];
|
|
252
252
|
}
|
|
@@ -8,10 +8,10 @@ export class QuickSearchApiImpl extends ApiBase {
|
|
|
8
8
|
return this.getAdaptableState().QuickSearch;
|
|
9
9
|
}
|
|
10
10
|
runQuickSearch(quickSearchText) {
|
|
11
|
-
this.dispatchAction(QuickSearchRedux.
|
|
11
|
+
this.dispatchAction(QuickSearchRedux.QuickSearchTextAction(quickSearchText));
|
|
12
12
|
}
|
|
13
13
|
clearQuickSearch() {
|
|
14
|
-
this.dispatchAction(QuickSearchRedux.
|
|
14
|
+
this.dispatchAction(QuickSearchRedux.QuickSearchClear());
|
|
15
15
|
}
|
|
16
16
|
gotoNextMatch() {
|
|
17
17
|
this.getAdaptableApi().agGridApi.findNext();
|
|
@@ -43,7 +43,7 @@ export declare class StateApiImpl extends ApiBase implements StateApi {
|
|
|
43
43
|
flushCurrentState?: boolean;
|
|
44
44
|
progressIndicatorLabel?: string;
|
|
45
45
|
}): Promise<void>;
|
|
46
|
-
persistAdaptableState(): Promise<
|
|
46
|
+
persistAdaptableState(): Promise<AdaptablePersistentState>;
|
|
47
47
|
getDescriptionForModule(module: AdaptableModule): string;
|
|
48
48
|
getHelpPageForModule(module: AdaptableModule): string;
|
|
49
49
|
getUserStateByStateKey(stateKey: AdaptableStateKey, returnJson?: boolean): BaseState | string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { InitState } from '../../Redux/Store/AdaptableStore';
|
|
2
|
+
import { runAsyncStateFunction } from '../../Redux/Store/StateOptionsGuards';
|
|
3
|
+
import { loadState as defaultLoadState } from '../../Redux/Store/AdaptableReduxLocalStorageEngine';
|
|
2
4
|
import { ApiBase } from './ApiBase';
|
|
3
5
|
import Helper from '../../Utilities/Helpers/Helper';
|
|
4
6
|
import { addUuidsToInitialState } from '../../Utilities/Helpers/AdaptableHelper';
|
|
@@ -56,7 +58,7 @@ export class StateApiImpl extends ApiBase {
|
|
|
56
58
|
localStorage.removeItem(adaptableOptions.adaptableStateKey);
|
|
57
59
|
return Promise.resolve(true);
|
|
58
60
|
});
|
|
59
|
-
const clearStatePromise = clearStateFn
|
|
61
|
+
const clearStatePromise = runAsyncStateFunction('clearState', clearStateFn, [this.internalApi.buildAdaptableStateFunctionConfig()], this._adaptable.logger);
|
|
60
62
|
return clearStatePromise.then(() => {
|
|
61
63
|
this.setAdaptableStateKey(adaptableOptions.adaptableStateKey, {
|
|
62
64
|
initialState: newInitialState || adaptableOptions.initialState,
|
|
@@ -82,8 +84,7 @@ export class StateApiImpl extends ApiBase {
|
|
|
82
84
|
}
|
|
83
85
|
async remergePersistedState() {
|
|
84
86
|
const config = this.internalApi.buildAdaptableStateFunctionConfig();
|
|
85
|
-
const
|
|
86
|
-
const userState = await loadState(config);
|
|
87
|
+
const userState = await runAsyncStateFunction('loadState', this.getOptions().stateOptions.loadState || defaultLoadState, [config], this._adaptable.logger);
|
|
87
88
|
return this.internalApi.applyMergedInitialAndUserState(this.getInitialState(), userState);
|
|
88
89
|
}
|
|
89
90
|
getAllState() {
|
|
@@ -11,7 +11,6 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
|
|
|
11
11
|
internalApi: UserInterfaceInternalApi;
|
|
12
12
|
private showProgressIndicatorTimeout;
|
|
13
13
|
constructor(_adaptable: IAdaptable);
|
|
14
|
-
getColorPalette(): string[];
|
|
15
14
|
getCustomIcons(): CustomIcon[];
|
|
16
15
|
getStyleClassNames(): string[] | undefined;
|
|
17
16
|
getEditableCellStyle(): AdaptableStyle | undefined;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
|
|
2
2
|
import { ArrayExtensions } from '../../Utilities/Extensions/ArrayExtensions';
|
|
3
3
|
import { resolveValueOrFunction } from '../../Utilities/Helpers/ValueOrFunctionHelper';
|
|
4
|
-
import { logDeprecation } from '../../Utilities/logDeprecation';
|
|
5
|
-
import UIHelper from '../../Utilities/Helpers/UIHelper';
|
|
6
4
|
import { CUSTOM_WINDOW_FACTORY_ID } from '../../View/Components/Popups/WindowPopups/WindowPopups';
|
|
7
5
|
import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
|
|
8
6
|
import { ApiBase } from './ApiBase';
|
|
@@ -15,16 +13,6 @@ export class UserInterfaceApiImpl extends ApiBase {
|
|
|
15
13
|
super(_adaptable);
|
|
16
14
|
this.internalApi = new UserInterfaceInternalApi(_adaptable);
|
|
17
15
|
}
|
|
18
|
-
getColorPalette() {
|
|
19
|
-
const colorPalette = this.getUserInterfaceOptions().colorPalette;
|
|
20
|
-
if (colorPalette != null) {
|
|
21
|
-
logDeprecation(this._adaptable.logger, 'UserInterfaceOptions', 'colorPalette', undefined, 'Override `--ab-color-swatch-*`, `--ab-color-palette-*`, and semantic `--ab-color-*` variables in your light or dark theme CSS instead. `colorPalette` will be removed in a future major release.');
|
|
22
|
-
if (typeof colorPalette === 'function' || Array.isArray(colorPalette)) {
|
|
23
|
-
return resolveValueOrFunction(colorPalette, this.getThemeApi().getCurrentTheme());
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return UIHelper.getDefaultColorPalette();
|
|
27
|
-
}
|
|
28
16
|
getCustomIcons() {
|
|
29
17
|
return resolveValueOrFunction(this.getUserInterfaceOptions().customIcons) ?? [];
|
|
30
18
|
}
|
|
@@ -42,9 +30,15 @@ export class UserInterfaceApiImpl extends ApiBase {
|
|
|
42
30
|
}
|
|
43
31
|
getAdaptableObjectTags() {
|
|
44
32
|
const objectTags = this.getUserInterfaceOptions().objectTags;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
if (typeof objectTags === 'function') {
|
|
34
|
+
const tags = objectTags(this.getAdaptableInternalApi().buildBaseContext());
|
|
35
|
+
if (!Array.isArray(tags)) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
return tags.filter((tag) => typeof tag === 'string');
|
|
39
|
+
}
|
|
40
|
+
if (objectTags && ArrayExtensions.IsNotNullOrEmpty(objectTags)) {
|
|
41
|
+
return objectTags;
|
|
48
42
|
}
|
|
49
43
|
}
|
|
50
44
|
getAdaptableObjectsWithTag(tag, adaptableModule) {
|
|
@@ -276,9 +276,11 @@ export class AdaptableInternalApi extends ApiBase {
|
|
|
276
276
|
return userInterfaceOptions.objectTags;
|
|
277
277
|
}
|
|
278
278
|
if (typeof userInterfaceOptions.objectTags === 'function') {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
279
|
+
const tags = userInterfaceOptions.objectTags(this.buildBaseContext());
|
|
280
|
+
if (!Array.isArray(tags)) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
return tags.filter((tag) => typeof tag === 'string');
|
|
282
284
|
}
|
|
283
285
|
}
|
|
284
286
|
dispatchReduxAction(action) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
2
|
import { expressionKindForAlertType, isRowChangeAlertDefinition, } from '../../AdaptableState/AlertState';
|
|
3
|
-
import { isAdaptableCellChangedAlert, isAdaptableRowChangedAlert, } from '../../AdaptableState/Common/AdaptableAlert';
|
|
3
|
+
import { getAlertCellDataChangedInfos, isAdaptableCellChangedAlert, isAdaptableRowChangedAlert, } from '../../AdaptableState/Common/AdaptableAlert';
|
|
4
4
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
5
5
|
import { AlertModuleId } from '../../Utilities/Constants/ModuleConstants';
|
|
6
6
|
import ObjectFactory from '../../Utilities/ObjectFactory';
|
|
@@ -476,9 +476,16 @@ export class AlertInternalApi extends ApiBase {
|
|
|
476
476
|
return this.getAdaptableAlerts().filter(isAdaptableRowChangedAlert);
|
|
477
477
|
}
|
|
478
478
|
getAdaptableAlertWithHighlightCell(columnId, rowNode) {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
alert.
|
|
479
|
+
const primaryKeyValue = this.getGridApi().getPrimaryKeyValueForRowNode(rowNode);
|
|
480
|
+
return this.getAdaptableCellChangedAlerts().find((alert) => {
|
|
481
|
+
if (!getRuleAlertProperties(alert.alertDefinition)?.HighlightCell) {
|
|
482
|
+
return false;
|
|
483
|
+
}
|
|
484
|
+
return getAlertCellDataChangedInfos(alert).some((cellChange) => cellChange.column?.columnId === columnId &&
|
|
485
|
+
(cellChange.rowNode === rowNode ||
|
|
486
|
+
cellChange.rowNode?.id === rowNode.id ||
|
|
487
|
+
(primaryKeyValue != null && cellChange.primaryKeyValue === primaryKeyValue)));
|
|
488
|
+
});
|
|
482
489
|
}
|
|
483
490
|
getAdaptableAlertWithHighlightRow(rowNode) {
|
|
484
491
|
let alertWithRowHighlight;
|
|
@@ -494,9 +501,7 @@ export class AlertInternalApi extends ApiBase {
|
|
|
494
501
|
}
|
|
495
502
|
alertWithRowHighlight = this.getAdaptableCellChangedAlerts().find((alert) => {
|
|
496
503
|
if (getRuleAlertProperties(alert.alertDefinition)?.HighlightRow) {
|
|
497
|
-
|
|
498
|
-
return alert;
|
|
499
|
-
}
|
|
504
|
+
return getAlertCellDataChangedInfos(alert).some((cellChange) => cellChange.rowNode?.id == rowNode.id);
|
|
500
505
|
}
|
|
501
506
|
});
|
|
502
507
|
return alertWithRowHighlight;
|
|
@@ -221,7 +221,7 @@ export class CalculatedColumnInternalApi extends ApiBase {
|
|
|
221
221
|
if (calculatedColumnSettings.ShowToolTip != null &&
|
|
222
222
|
calculatedColumnSettings.ShowToolTip == true) {
|
|
223
223
|
newColDef.tooltipComponent = TwoLineTooltip;
|
|
224
|
-
newColDef.
|
|
224
|
+
newColDef.tooltip = (params) => {
|
|
225
225
|
const formulaText = this.getAdaptableInternalApi().getAdaptableQueryExpressionText(calculatedColumn.Expression);
|
|
226
226
|
if (!isPerRowCalculatedColumnType(getCalculatedColumnType(calculatedColumn)) ||
|
|
227
227
|
!params?.node ||
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IRowNode } from 'ag-grid-enterprise';
|
|
2
2
|
import * as Redux from 'redux';
|
|
3
3
|
import { CellDataChangedInfo } from '../../AdaptableState/Common/CellDataChangedInfo';
|
|
4
|
-
import { AdaptableAlert, AdaptableFlashingCell, AdaptablePersistentState, AdaptableSharedEntity, AdaptableState, AdaptableTheme, CalculatedColumn, AdaptableNote, NoteChangedAction, ColumnFilterChangedInfo, CreatedRowInfo, DashboardState, DataImportedInfo, DataSet, DeletedRowInfo, EditedRowInfo, LayoutState, RowDataChangedInfo, ReportSchedule, SystemStatusMessageInfo } from '../../types';
|
|
4
|
+
import { AdaptableAlert, AdaptableFlashingCell, AdaptablePersistentState, AdaptableSharedEntity, AdaptableState, AdaptableTheme, CalculatedColumn, CommentThread, AdaptableNote, NoteChangedAction, ColumnFilterChangedInfo, CreatedRowInfo, DashboardState, DataImportedInfo, DataSet, DeletedRowInfo, EditedRowInfo, LayoutState, RowDataChangedInfo, ReportSchedule, SystemStatusMessageInfo } from '../../types';
|
|
5
5
|
import { SystemThemeName } from '../../AdaptableState/ThemeState';
|
|
6
6
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
7
7
|
import { LayoutChangedAction } from '../Events/LayoutChanged';
|
|
@@ -10,6 +10,7 @@ export declare class EventInternalApi extends ApiBase {
|
|
|
10
10
|
fireCellChangedEvent(cellDataChangedInfo: CellDataChangedInfo): void;
|
|
11
11
|
fireRowChangedEvent(rowDataChangedInfo: RowDataChangedInfo): void;
|
|
12
12
|
fireDashboardChangedEvent(trigger: string, oldDashboardState: DashboardState, newDashboardState: DashboardState): void;
|
|
13
|
+
fireCommentChangedEvent(commentThreads: CommentThread[]): void;
|
|
13
14
|
fireAlertFiredEvent(alertToFire: AdaptableAlert): void;
|
|
14
15
|
fireThemeSelectedEvent(theme: SystemThemeName): void;
|
|
15
16
|
fireThemeChangedEvent(theme: AdaptableTheme, trigger: 'ThemeSelected' | 'ThemeEdited'): void;
|
|
@@ -68,6 +68,13 @@ export class EventInternalApi extends ApiBase {
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
fireCommentChangedEvent(commentThreads) {
|
|
72
|
+
const commentChangedInfo = {
|
|
73
|
+
commentThreads: commentThreads ?? [],
|
|
74
|
+
...this.getAdaptableInternalApi().buildBaseContext(),
|
|
75
|
+
};
|
|
76
|
+
this.getEventApi().emit('CommentChanged', commentChangedInfo);
|
|
77
|
+
}
|
|
71
78
|
fireAlertFiredEvent(alertToFire) {
|
|
72
79
|
const alertFiredInfo = {
|
|
73
80
|
alert: alertToFire,
|
|
@@ -7,7 +7,7 @@ export declare class StateInternalApi extends ApiBase {
|
|
|
7
7
|
* Startup-equivalent merge: Initial State + user state → store, layout/theme/cells, persist.
|
|
8
8
|
* Does not clear persistence and does not call `loadState` (caller supplies user state).
|
|
9
9
|
*/
|
|
10
|
-
applyMergedInitialAndUserState(initialState: InitialState, userState: AdaptablePersistentState
|
|
10
|
+
applyMergedInitialAndUserState(initialState: InitialState, userState: Partial<AdaptablePersistentState> | null | void): Promise<void>;
|
|
11
11
|
getAllStateForDevTools(): AdaptableState;
|
|
12
12
|
/**
|
|
13
13
|
* Replaces persisted Adaptable state with the supplied snapshot (e.g. from DevTools).
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getPersistableState, LoadState, InitState } from '../../Redux/Store/AdaptableStore';
|
|
2
2
|
import { MergeStateFunction } from '../../Redux/Store/AdaptableReduxMerger';
|
|
3
|
+
import { runSyncStateFunction } from '../../Redux/Store/StateOptionsGuards';
|
|
3
4
|
import { addUuidsToInitialState } from '../../Utilities/Helpers/AdaptableHelper';
|
|
4
5
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
5
6
|
function deepClone(value) {
|
|
@@ -23,8 +24,7 @@ export class StateInternalApi extends ApiBase {
|
|
|
23
24
|
const initialForMerge = addUuidsToInitialState(deepClone(initialState));
|
|
24
25
|
const userForMerge = deepClone(userState ?? {});
|
|
25
26
|
let merged = MergeStateFunction(initialForMerge, userForMerge);
|
|
26
|
-
|
|
27
|
-
merged = this.getOptions().stateOptions.applyState(merged, stateFunctionConfig);
|
|
27
|
+
merged = runSyncStateFunction('applyState', this.getOptions().stateOptions.applyState, merged, this.buildAdaptableStateFunctionConfig(), this._adaptable.logger);
|
|
28
28
|
merged = this._adaptable.migrateLoadedAdaptableState(merged);
|
|
29
29
|
const agGridOptions = {
|
|
30
30
|
columnDefs: this._adaptable.agGridAdapter.getGridOption('columnDefs'),
|
|
@@ -92,14 +92,15 @@ export class StateInternalApi extends ApiBase {
|
|
|
92
92
|
rowModelType: this._adaptable.agGridAdapter.getGridOption('rowModelType'),
|
|
93
93
|
treeData: this._adaptable.agGridAdapter.getGridOption('treeData'),
|
|
94
94
|
};
|
|
95
|
-
const clonedState = state
|
|
96
|
-
? JSON.parse(JSON.stringify(state))
|
|
97
|
-
: getPersistableState(JSON.parse(JSON.stringify(state)));
|
|
95
|
+
const clonedState = getPersistableState(JSON.parse(JSON.stringify(state)));
|
|
98
96
|
let processedState = this._adaptable.migrateLoadedAdaptableState(clonedState);
|
|
99
97
|
processedState = this._adaptable.normalizeAdaptableState(processedState, agGridOptions);
|
|
98
|
+
const oldState = this.getAdaptableApi().stateApi.getPersistentState();
|
|
100
99
|
this.getAdaptableStore().TheStore.dispatch(LoadState(processedState));
|
|
101
100
|
this.getAdaptableStore().TheStore.dispatch(InitState());
|
|
102
101
|
this._adaptable.refreshLayout();
|
|
102
|
+
const newState = this.getAdaptableApi().stateApi.getPersistentState();
|
|
103
|
+
this.getEventApi().internalApi.fireAdaptableStateReloadedEvent(oldState, newState);
|
|
103
104
|
void this.getAdaptableStore()
|
|
104
105
|
.saveStateNow(this._adaptable)
|
|
105
106
|
.then(() => resolve())
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { InteropioPluginOptions } from '../AdaptableOptions/InteropioPluginOptions';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The interop.io plugin.
|
|
4
4
|
*/
|
|
5
5
|
export interface InteropioPluginApi {
|
|
6
6
|
/**
|
|
7
7
|
* Retrieves the InteropioPlugOptions provided in interopio Plugin
|
|
8
|
+
* @returns The InteropioPlugOptions provided in interopio Plugin
|
|
8
9
|
*/
|
|
9
10
|
getPluginOptions(): InteropioPluginOptions;
|
|
10
11
|
}
|
package/src/Api/LayoutApi.d.ts
CHANGED
|
@@ -2,11 +2,12 @@ import { AdaptableColumn, ColumnSort, PivotLayout, TableLayout } from '../../typ
|
|
|
2
2
|
import { ExtendedLayout, LayoutExtensionInfo, LayoutExtensionModule, LayoutExtensionObject } from '../AdaptableState/Common/ExtendedLayout';
|
|
3
3
|
import { LayoutState, Layout } from '../AdaptableState/LayoutState';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Table and Pivot Layouts: the layout that is selected, its columns, sorts and row groups, and creating, cloning, editing and deleting layouts.
|
|
6
6
|
*/
|
|
7
7
|
export interface LayoutApi {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The Layout section of Adaptable State.
|
|
10
|
+
* @returns Layouts and the name of the current Layout
|
|
10
11
|
*/
|
|
11
12
|
getLayoutState(): LayoutState;
|
|
12
13
|
/**
|
|
@@ -20,34 +21,41 @@ export interface LayoutApi {
|
|
|
20
21
|
*/
|
|
21
22
|
getCurrentLayout(): Layout;
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
+
* Whether the current Layout is a Pivot Layout.
|
|
25
|
+
* @returns `true` when the current Layout is a Pivot Layout
|
|
24
26
|
*/
|
|
25
27
|
isCurrentLayoutPivot(): boolean;
|
|
26
28
|
/**
|
|
27
|
-
*
|
|
28
|
-
* @param columnId Column
|
|
29
|
+
* The sort direction of a column in the current Layout.
|
|
30
|
+
* @param columnId Column to read
|
|
31
|
+
* @returns `'Asc'` or `'Desc'`, or `null` when the column is not sorted in this Layout
|
|
29
32
|
*/
|
|
30
33
|
getCurrentLayoutColumnSort(columnId: string): ColumnSort['SortOrder'] | null;
|
|
31
34
|
/**
|
|
32
|
-
*
|
|
35
|
+
* Column ids in the current Table Layout.
|
|
36
|
+
* @returns Each Table Layout column id mapped to `true`. An empty object when the current Layout is a Pivot Layout
|
|
33
37
|
*/
|
|
34
38
|
getCurrentVisibleColumnIdsMapForTableLayout(): {
|
|
35
39
|
[key: string]: boolean;
|
|
36
40
|
};
|
|
37
41
|
/**
|
|
38
|
-
*
|
|
42
|
+
* Column ids currently displayed in a Table Layout.
|
|
43
|
+
* @returns The displayed column ids. Empty when the current Layout is a Pivot Layout
|
|
39
44
|
*/
|
|
40
45
|
getCurrentVisibleColumnIdsForTableLayout(): string[];
|
|
41
46
|
/**
|
|
42
|
-
*
|
|
47
|
+
* Column ids currently displayed in a Pivot Layout.
|
|
48
|
+
* @returns The displayed column ids, including pivot result columns. Empty when the current Layout is a Table Layout
|
|
43
49
|
*/
|
|
44
50
|
getCurrentVisibleColumnIdsForPivotLayout(): string[];
|
|
45
51
|
/**
|
|
46
|
-
*
|
|
52
|
+
* Columns that group rows in the current Layout.
|
|
53
|
+
* @returns `RowGroupedColumns` for a Table Layout, or `PivotGroupedColumns` for a Pivot Layout
|
|
47
54
|
*/
|
|
48
55
|
getCurrentRowGroupsColumnIds(): string[];
|
|
49
56
|
/**
|
|
50
|
-
*
|
|
57
|
+
* Name of the Layout that is selected.
|
|
58
|
+
* @returns The current Layout name
|
|
51
59
|
*/
|
|
52
60
|
getCurrentLayoutName(): string;
|
|
53
61
|
/**
|
|
@@ -65,6 +73,7 @@ export interface LayoutApi {
|
|
|
65
73
|
* Retrieves the Layout with the given name, together with the objects extended into it
|
|
66
74
|
* (global objects, which apply in every Layout, are not included)
|
|
67
75
|
* @param layoutName Layout to retrieve
|
|
76
|
+
* @returns The Layout and the objects extended into it, or `undefined` when no Layout has that name. Objects that apply in every Layout are not included
|
|
68
77
|
*/
|
|
69
78
|
getExtendedLayoutByName(layoutName: string): ExtendedLayout | undefined;
|
|
70
79
|
/**
|
|
@@ -77,6 +86,7 @@ export interface LayoutApi {
|
|
|
77
86
|
* Clones an Extended Layout - the new Layout is extended with the same objects
|
|
78
87
|
* @param extendedLayoutToClone ExtendedLayout to Clone
|
|
79
88
|
* @param layoutName New name for Layout being cloned
|
|
89
|
+
* @returns The cloned Extended Layout, or `false` when the source does not exist or the new name is already used
|
|
80
90
|
*/
|
|
81
91
|
cloneExtendedLayout(extendedLayoutToClone: ExtendedLayout, layoutName: string): ExtendedLayout | false;
|
|
82
92
|
/**
|
|
@@ -89,6 +99,7 @@ export interface LayoutApi {
|
|
|
89
99
|
/**
|
|
90
100
|
* Retrieves the names of the objects, per Module, extended into a Layout
|
|
91
101
|
* @param layoutName Layout to check
|
|
102
|
+
* @returns Object names grouped by module. Empty when the Layout has no extensions
|
|
92
103
|
*/
|
|
93
104
|
getLayoutExtensions(layoutName: string): LayoutExtensionInfo;
|
|
94
105
|
/**
|
|
@@ -116,6 +127,7 @@ export interface LayoutApi {
|
|
|
116
127
|
* Retrieves the names of the Layouts an object is extended into (empty when the object is global)
|
|
117
128
|
* @param object Object to check
|
|
118
129
|
* @param module Module the object belongs to
|
|
130
|
+
* @returns Layout names the object is extended into. Empty when the object applies in every Layout
|
|
119
131
|
*/
|
|
120
132
|
getLayoutsForObject(object: LayoutExtensionObject, module: LayoutExtensionModule): string[];
|
|
121
133
|
/**
|
|
@@ -177,8 +189,9 @@ export interface LayoutApi {
|
|
|
177
189
|
*/
|
|
178
190
|
cloneAndSetLayout(layoutToClone: Layout, layoutName: string): Layout | false;
|
|
179
191
|
/**
|
|
180
|
-
*
|
|
192
|
+
* Whether this Layout is already in Layout State. Compared by `Uuid`.
|
|
181
193
|
* @param layout Layout to check
|
|
194
|
+
* @returns `true` when a Layout with the same `Uuid` is in state
|
|
182
195
|
*/
|
|
183
196
|
doesLayoutExist(layout: Layout): boolean;
|
|
184
197
|
/**
|
|
@@ -187,8 +200,9 @@ export interface LayoutApi {
|
|
|
187
200
|
openLayoutSettingsPanel(): void;
|
|
188
201
|
/**
|
|
189
202
|
* Opens Layout Editor - for Current or a named Layout
|
|
190
|
-
* @param layoutName Name of Layout to
|
|
191
|
-
* @param
|
|
203
|
+
* @param layoutName Name of the Layout to edit or clone. Omit it to use the current Layout
|
|
204
|
+
* @param layoutType `'table'` or `'pivot'`. Used when `action` is `'New'`
|
|
205
|
+
* @param action `'Edit'`, `'Clone'` or `'New'`. Defaults to `'Edit'`
|
|
192
206
|
*/
|
|
193
207
|
showLayoutEditor(layoutName?: string, layoutType?: 'table' | 'pivot',
|
|
194
208
|
/**
|
|
@@ -207,8 +221,8 @@ export interface LayoutApi {
|
|
|
207
221
|
*/
|
|
208
222
|
deleteLayout(layout: Layout): void;
|
|
209
223
|
/**
|
|
210
|
-
* Deletes
|
|
211
|
-
* @param
|
|
224
|
+
* Deletes a Layout by name. Does nothing when it is the only Layout.
|
|
225
|
+
* @param layoutName Name of the Layout to delete
|
|
212
226
|
*/
|
|
213
227
|
deleteLayoutByName(layoutName: string): void;
|
|
214
228
|
/**
|
|
@@ -1,35 +1,39 @@
|
|
|
1
1
|
import { NamedQuery, NamedQueryState } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Named Queries saved in AdapTable State, and running a query by object or by name.
|
|
4
4
|
*/
|
|
5
5
|
export interface NamedQueryApi {
|
|
6
6
|
/**
|
|
7
7
|
* Adds a new Named Query to Adaptable State
|
|
8
|
-
* @param namedQueries
|
|
8
|
+
* @param namedQueries Named Query to add
|
|
9
9
|
*/
|
|
10
10
|
addNamedQuery(namedQueries: NamedQuery): void;
|
|
11
11
|
/**
|
|
12
|
-
* Adds
|
|
13
|
-
* @param namedQueries
|
|
12
|
+
* Adds several Named Queries to Adaptable State.
|
|
13
|
+
* @param namedQueries Named Queries to add
|
|
14
14
|
*/
|
|
15
15
|
addNamedQueries(namedQueries: NamedQuery[]): void;
|
|
16
16
|
/**
|
|
17
17
|
* Retrieves Query section from Adaptable State
|
|
18
18
|
*
|
|
19
|
+
* @returns Query section from Adaptable State
|
|
19
20
|
*/
|
|
20
21
|
getNamedQueryState(): NamedQueryState;
|
|
21
22
|
/**
|
|
22
23
|
* Gets all Named Queries in Adaptable State
|
|
24
|
+
* @returns All Named Queries in Adaptable State
|
|
23
25
|
*/
|
|
24
26
|
getNamedQueries(): NamedQuery[];
|
|
25
27
|
/**
|
|
26
28
|
* Retrieves Named Query with given name from State
|
|
27
29
|
* @param namedQueryName Name of Named Query
|
|
30
|
+
* @returns Named Query with given name from State
|
|
28
31
|
*/
|
|
29
32
|
getNamedQueryByName(namedQueryName: string): NamedQuery | undefined;
|
|
30
33
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @param
|
|
34
|
+
* Whether this Named Query can be saved. The name is required and must not already be used.
|
|
35
|
+
* @param namedQuery Named Query to check
|
|
36
|
+
* @returns `true` when this Named Query can be saved. The name is required and must not already be used
|
|
33
37
|
*/
|
|
34
38
|
isValidNamedQuery(namedQuery: NamedQuery): NamedQueryValidationResult;
|
|
35
39
|
/**
|
package/src/Api/NoteApi.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { AdaptableNote, AdaptableNotes, NoteState } from '../AdaptableState/NoteState';
|
|
2
2
|
import { AdaptableMessageType, CellAddress } from '../../types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Notes attached to cells. Each note has text, a type, and the cell it belongs to.
|
|
5
5
|
*/
|
|
6
6
|
export interface NoteApi {
|
|
7
7
|
/**
|
|
8
8
|
* Adds a new Note
|
|
9
|
-
* @param text
|
|
10
|
-
* @param primaryKeyValue
|
|
11
|
-
* @param columnId
|
|
9
|
+
* @param text Note text
|
|
10
|
+
* @param primaryKeyValue Primary key of the row
|
|
11
|
+
* @param columnId Column the note belongs to
|
|
12
12
|
* @param extra optional additional Note properties (e.g. `Author`, `Metadata`, `IsReadOnly`);
|
|
13
13
|
* `Author` and `CreatedAt` are stamped automatically when not supplied
|
|
14
14
|
*/
|
|
15
15
|
addNote(text: string, primaryKeyValue: any, columnId: string, extra?: Partial<AdaptableNote>): void;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @param note
|
|
17
|
+
* Replaces a note already in state.
|
|
18
|
+
* @param note Note to save
|
|
19
19
|
*/
|
|
20
20
|
editNote(note: AdaptableNote): void;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param text
|
|
24
|
-
* @param note
|
|
22
|
+
* Replaces the text of a note.
|
|
23
|
+
* @param text New note text
|
|
24
|
+
* @param note Note to update
|
|
25
25
|
*/
|
|
26
26
|
updateNoteText(text: string, note: AdaptableNote): void;
|
|
27
27
|
/**
|
|
@@ -31,26 +31,30 @@ export interface NoteApi {
|
|
|
31
31
|
*/
|
|
32
32
|
setNoteType(note: AdaptableNote, noteType: AdaptableMessageType): void;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
* @param note
|
|
34
|
+
* Removes a note from state.
|
|
35
|
+
* @param note Note to delete
|
|
36
36
|
*/
|
|
37
37
|
deleteNote(note: AdaptableNote): void;
|
|
38
38
|
/**
|
|
39
39
|
* Gets the Note State
|
|
40
|
+
* @returns The Note State
|
|
40
41
|
*/
|
|
41
42
|
getNoteState(): NoteState;
|
|
42
43
|
/**
|
|
43
44
|
* Gets all Notes
|
|
45
|
+
* @returns All Notes
|
|
44
46
|
*/
|
|
45
47
|
getAllNotes(): AdaptableNotes;
|
|
46
48
|
/**
|
|
47
49
|
* Gets all Notes for a cell
|
|
48
50
|
* @param cellAddress note position
|
|
51
|
+
* @returns All Notes for a cell
|
|
49
52
|
*/
|
|
50
53
|
getNoteForCell(cellAddress: CellAddress): AdaptableNote;
|
|
51
54
|
/**
|
|
52
55
|
* Returns a Note by uuid
|
|
53
56
|
* @param uuid note uuid
|
|
57
|
+
* @returns A Note by uuid
|
|
54
58
|
*/
|
|
55
59
|
getNoteByUuid(uuid: string): AdaptableNote | undefined;
|
|
56
60
|
}
|