@adaptabletools/adaptable-cjs 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 +85 -0
- package/package.json +3 -3
- package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -6
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/ContainerOptions.d.ts +55 -15
- package/src/AdaptableOptions/CustomSortOptions.d.ts +4 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +1 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -2
- package/src/AdaptableState/AdaptableState.d.ts +2 -0
- package/src/AdaptableState/AlertState.d.ts +5 -2
- package/src/AdaptableState/ChartingState.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableAlert.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableButton.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +16 -10
- package/src/AdaptableState/Common/AdaptableColumnContext.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableObject.d.ts +20 -2
- package/src/AdaptableState/Common/AdaptableRowContext.d.ts +11 -0
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +8 -0
- package/src/AdaptableState/Common/BaseContext.d.ts +2 -0
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
- package/src/AdaptableState/Common/ColumnHighlightInfo.js +2 -0
- package/src/AdaptableState/Common/DataUpdateConfig.d.ts +17 -0
- package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
- package/src/AdaptableState/Common/NamedObject.js +2 -0
- package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
- package/src/AdaptableState/Common/RowSummary.d.ts +1 -1
- package/src/AdaptableState/Common/Schedule.d.ts +8 -5
- package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +2 -2
- package/src/AdaptableState/Common/TransposeConfig.d.ts +12 -10
- package/src/AdaptableState/CustomSortState.d.ts +5 -1
- package/src/AdaptableState/DashboardState.d.ts +1 -1
- package/src/AdaptableState/ExportState.d.ts +1 -1
- package/src/AdaptableState/FlashingCellState.d.ts +6 -2
- package/src/AdaptableState/FormatColumnState.d.ts +5 -9
- package/src/AdaptableState/InitialState.d.ts +10 -1
- package/src/AdaptableState/InternalState.d.ts +2 -0
- package/src/AdaptableState/LayoutState.d.ts +7 -3
- package/src/AdaptableState/NamedQueryState.d.ts +1 -1
- package/src/AdaptableState/PlusMinusState.d.ts +5 -1
- package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
- package/src/AdaptableState/ShortcutState.d.ts +5 -1
- package/src/AdaptableState/StyledColumnState.d.ts +1 -1
- package/src/AdaptableState/ThemeState.d.ts +1 -1
- package/src/AdaptableState/UserInterfaceState.d.ts +14 -0
- package/src/AdaptableState/UserInterfaceState.js +2 -0
- package/src/Api/AlertApi.d.ts +6 -0
- package/src/Api/CustomSortApi.d.ts +12 -3
- package/src/Api/DataSetApi.d.ts +1 -1
- package/src/Api/FlashingCellApi.d.ts +6 -0
- package/src/Api/FormatColumnApi.d.ts +10 -4
- package/src/Api/GridApi.d.ts +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 +35 -20
- package/src/Api/Implementation/GridFilterApiImpl.js +1 -0
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -0
- package/src/Api/Implementation/LayoutApiImpl.js +5 -1
- package/src/Api/Implementation/LayoutHelpers.js +7 -0
- package/src/Api/Implementation/NamedQueryApiImpl.js +3 -2
- package/src/Api/Implementation/NoteApiImpl.js +1 -0
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +1 -0
- package/src/Api/Implementation/PlusMinusApiImpl.js +3 -0
- package/src/Api/Implementation/PredicateApiImpl.js +1 -0
- package/src/Api/Implementation/RowFormApiImpl.js +1 -0
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +4 -0
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ShortcutApiImpl.js +3 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +1 -0
- package/src/Api/Implementation/SystemStatusApiImpl.js +8 -9
- package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +1 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +15 -1
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
- package/src/Api/Internal/ColumnInternalApi.js +1 -1
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +0 -10
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -19
- package/src/Api/Internal/FreeTextColumnInternalApi.js +2 -2
- package/src/Api/Internal/LayoutInternalApi.js +1 -1
- package/src/Api/Internal/NamedQueryInternalApi.js +4 -4
- package/src/Api/LayoutApi.d.ts +6 -0
- package/src/Api/PlusMinusApi.d.ts +6 -0
- package/src/Api/ScheduleApi.d.ts +6 -0
- package/src/Api/ShortcutApi.d.ts +6 -0
- package/src/Api/UserInterfaceApi.d.ts +17 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +8 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +17 -1
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.js +42 -3
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NoteRedux.js +1 -1
- package/src/Redux/ActionsReducers/UserInterfaceRedux.d.ts +11 -0
- package/src/Redux/ActionsReducers/UserInterfaceRedux.js +26 -0
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
- package/src/Redux/Store/AdaptableStore.js +113 -57
- package/src/Strategy/AdaptableModuleBase.js +4 -0
- package/src/Strategy/AlertModule.js +5 -0
- package/src/Strategy/BulkUpdateModule.js +8 -8
- package/src/Strategy/CalculatedColumnModule.js +1 -0
- package/src/Strategy/CellSummaryModule.js +1 -1
- package/src/Strategy/CustomSortModule.js +4 -0
- package/src/Strategy/DataChangeHistoryModule.js +1 -0
- package/src/Strategy/FlashingCellModule.js +6 -0
- package/src/Strategy/FormatColumnModule.js +4 -0
- package/src/Strategy/FreeTextColumnModule.js +1 -0
- package/src/Strategy/LayoutModule.js +6 -5
- package/src/Strategy/PlusMinusModule.js +7 -1
- package/src/Strategy/QuickSearchModule.js +1 -1
- package/src/Strategy/ScheduleModule.js +5 -0
- package/src/Strategy/SettingsPanelModule.js +11 -7
- package/src/Strategy/ShortcutModule.js +6 -0
- package/src/Strategy/SmartEditModule.js +10 -10
- package/src/Strategy/TeamSharingModule.js +10 -10
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +0 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +3 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -3
- package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -3
- package/src/Utilities/Extensions/StringExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/StringExtensions.js +17 -0
- package/src/Utilities/Helpers/FormatHelper.js +9 -2
- package/src/Utilities/Helpers/StyleHelper.js +14 -0
- package/src/Utilities/MenuItem.js +18 -0
- package/src/Utilities/ObjectFactory.js +16 -3
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +8 -0
- package/src/Utilities/Services/AlertService.js +6 -4
- package/src/Utilities/Services/AnnotationsService.js +4 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -1
- package/src/Utilities/Services/ChartingService.js +1 -0
- package/src/Utilities/Services/DataService.js +11 -3
- package/src/Utilities/Services/Fdc3Service.js +9 -7
- package/src/Utilities/Services/FlashingCellService.js +5 -0
- package/src/Utilities/Services/LicenseService/index.js +1 -1
- package/src/Utilities/Services/MetamodelService.js +2 -2
- package/src/Utilities/Services/ModuleService.js +5 -6
- package/src/Utilities/Services/QueryLanguageService.js +6 -5
- package/src/Utilities/Services/RowFormService.js +1 -0
- package/src/Utilities/Services/RowSummaryService.js +10 -7
- package/src/Utilities/Services/TeamSharingService.js +3 -1
- package/src/Utilities/Services/ThemeService.js +13 -15
- package/src/Utilities/Services/ValidationService.js +2 -1
- package/src/Utilities/createAgStatusPanelComponent.js +3 -0
- package/src/Utilities/logDeprecation.js +3 -4
- package/src/Utilities/resolveContainerElement.d.ts +23 -0
- package/src/Utilities/resolveContainerElement.js +47 -0
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/Alert/ActiveAlertsPanel.js +8 -0
- package/src/View/Alert/AlertViewPanel.js +13 -9
- package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +1 -0
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +8 -0
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +5 -2
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +48 -12
- package/src/View/Alert/Wizard/AlertWizard.js +12 -8
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +24 -11
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
- package/src/View/CellSummary/CellSummaryViewPanel.js +16 -17
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
- package/src/View/Components/AdaptableDateInput/index.js +1 -1
- package/src/View/Components/Buttons/ButtonApply.js +1 -1
- package/src/View/Components/Buttons/ButtonBase/index.js +9 -9
- package/src/View/Components/Buttons/ButtonClear.d.ts +1 -0
- package/src/View/Components/Buttons/EntityListActionButtons.d.ts +1 -2
- package/src/View/Components/Buttons/EntityListActionButtons.js +18 -18
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -2
- package/src/View/Components/CellPopup/index.js +1 -1
- package/src/View/Components/ColumnFilter/FloatingFilter.js +41 -3
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +1 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +54 -2
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +1 -1
- package/src/View/Components/EntityRulesEditor/Utilities.js +5 -5
- package/src/View/Components/NewScopeComponent.js +3 -3
- package/src/View/Components/Panels/PanelDashboard/index.js +8 -8
- package/src/View/Components/Panels/PanelToolPanel/index.js +7 -7
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +1 -8
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +35 -0
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +18 -17
- package/src/View/Components/StyleComponent.d.ts +1 -0
- package/src/View/Components/StyleComponent.js +94 -24
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
- package/src/View/Components/WizardSummaryPage.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +40 -14
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
- package/src/View/Dashboard/CustomToolbar.js +1 -1
- package/src/View/Dashboard/DashboardPopup.js +4 -5
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -0
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
- package/src/View/Export/ExportDestinationPicker.js +1 -1
- package/src/View/Export/ExportStatusBar.js +4 -2
- package/src/View/Export/ExportViewPanel.js +25 -18
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +36 -15
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +13 -9
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +46 -51
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +22 -11
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +3 -3
- package/src/View/GridFilter/GridFilterExpressionEditor.js +6 -1
- package/src/View/GridFilter/GridFilterViewPanel.js +33 -70
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +57 -65
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/TransposedPopup.js +144 -138
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +3 -3
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +8 -0
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +35 -12
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +20 -15
- package/src/View/QuickSearch/QuickSearchPopup.js +4 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +14 -4
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +19 -10
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.d.ts +2 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +25 -4
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +18 -14
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -0
- package/src/View/StateManagement/handleExportState.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
- package/src/View/Theme/ThemePopup.js +13 -16
- package/src/View/UIHelper.d.ts +4 -1
- package/src/View/UIHelper.js +24 -14
- package/src/agGrid/Adaptable.js +15 -11
- package/src/agGrid/AdaptableAgGrid.d.ts +12 -8
- package/src/agGrid/AdaptableAgGrid.js +257 -111
- package/src/agGrid/AdaptableFilterHandler.js +4 -0
- package/src/agGrid/AdaptableLogger.d.ts +3 -0
- package/src/agGrid/AdaptableLogger.js +10 -0
- package/src/agGrid/AgGridAdapter.js +19 -9
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
- package/src/agGrid/AgGridColumnAdapter.js +20 -22
- package/src/agGrid/AgGridExportAdapter.js +15 -14
- package/src/agGrid/AgGridFilterAdapter.js +4 -0
- package/src/agGrid/AgGridFloatingFilterAdapter.js +4 -1
- package/src/agGrid/AgGridMenuAdapter.js +10 -1
- package/src/agGrid/AgGridModulesAdapter.js +2 -1
- package/src/agGrid/AgGridOptionsService.js +3 -0
- package/src/agGrid/AgGridThemeAdapter.js +4 -2
- package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
- package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
- package/src/agGrid/index.d.ts +6 -0
- package/src/agGrid/index.js +6 -0
- package/src/components/CheckBox/index.js +1 -1
- package/src/components/ColorPicker/ColorPicker.js +5 -4
- package/src/components/Dashboard/DashboardToolbar.js +1 -1
- package/src/components/Datepicker/index.js +1 -1
- package/src/components/Dropdown/Arrows.js +1 -1
- package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
- package/src/components/ExpressionEditor/EditorInput.js +19 -3
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/index.js +1 -1
- package/src/components/Select/Select.js +78 -15
- package/src/components/Tree/TreeDropdown/index.js +2 -2
- package/src/components/overlayBaseZIndex.js +1 -1
- package/src/components/utils/useContainerScrollObserver/index.js +17 -14
- package/src/devTools/index.js +54 -53
- package/src/env.js +2 -2
- package/src/layout-manager/src/LMEmitter.js +11 -11
- package/src/layout-manager/src/LMLogger.js +7 -0
- package/src/layout-manager/src/LayoutManagerModel.d.ts +1 -0
- package/src/layout-manager/src/index.js +81 -58
- package/src/layout-manager/src/normalizeLayoutModel.js +3 -0
- package/src/metamodel/adaptable.metamodel.d.ts +177 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/AdaptableUpgradeHelper.js +8 -3
- package/src/migration/VersionUpgrade.js +1 -0
- package/src/migration/VersionUpgrade17.js +5 -6
- package/src/migration/VersionUpgrade20.js +4 -4
- package/src/migration/VersionUpgrade22.d.ts +21 -0
- package/src/migration/VersionUpgrade22.js +191 -0
- package/src/parser/src/ExpressionEvaluationError.js +1 -0
- package/src/types.d.ts +9 -7
- package/themes/dark.css +30 -30
- package/themes/light.css +4 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -633
- package/src/View/Alert/AlertEntityRow.d.ts +0 -11
- package/src/View/Alert/AlertEntityRow.js +0 -33
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -63
- package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
- package/src/View/Components/Buttons/ButtonFunction.js +0 -13
- package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonGeneral.js +0 -12
- package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
- package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -8
- package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShow.js +0 -12
- package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShowChart.js +0 -12
- package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonUndo.js +0 -12
- package/src/View/Components/ExpressionWizard.d.ts +0 -24
- package/src/View/Components/ExpressionWizard.js +0 -82
- package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
- package/src/View/Components/FilterForm/Waiting.js +0 -19
- package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
- package/src/View/Components/Panels/PanelFooter.js +0 -14
- package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
- package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -20
- package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
- package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -31
- package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
- package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -50
- package/src/View/Components/SharedProps/WizardScopeState.d.ts +0 -4
- package/src/View/Components/WizardSummaryRow.d.ts +0 -9
- package/src/View/Components/WizardSummaryRow.js +0 -16
- package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
- package/src/View/CustomSort/CustomSortSummary.js +0 -110
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -24
- package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -73
- package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -73
- package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
- package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -61
- package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
- package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -40
- package/src/View/Filter/FilterSummary.d.ts +0 -18
- package/src/View/Filter/FilterSummary.js +0 -53
- package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
- package/src/View/FormatColumn/FormatColumnSummary.js +0 -95
- package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -93
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -99
- package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
- package/src/View/PlusMinus/PlusMinusSummary.js +0 -100
- package/src/View/Wizard/WizardLegend.d.ts +0 -12
- package/src/View/Wizard/WizardLegend.js +0 -28
- /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/AdaptableRowContext.js} +0 -0
|
@@ -7,6 +7,7 @@ const CustomSortRedux = tslib_1.__importStar(require("../../Redux/ActionsReducer
|
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
8
|
const CustomSortInternalApi_1 = require("../Internal/CustomSortInternalApi");
|
|
9
9
|
class CustomSortApiImpl extends ApiBase_1.ApiBase {
|
|
10
|
+
internalApi;
|
|
10
11
|
constructor(_adaptable) {
|
|
11
12
|
super(_adaptable);
|
|
12
13
|
this.internalApi = new CustomSortInternalApi_1.CustomSortInternalApi(_adaptable);
|
|
@@ -20,6 +21,9 @@ class CustomSortApiImpl extends ApiBase_1.ApiBase {
|
|
|
20
21
|
getCustomSortById(id, config) {
|
|
21
22
|
return this.getCustomSorts(config).find((customSort) => customSort.Uuid === id);
|
|
22
23
|
}
|
|
24
|
+
getCustomSortByName(name) {
|
|
25
|
+
return this.getCustomSorts().find((customSort) => customSort.Name === name);
|
|
26
|
+
}
|
|
23
27
|
getLiveCustomSorts() {
|
|
24
28
|
let returnVals = [];
|
|
25
29
|
const sortedColIds = this.getGridApi()
|
|
@@ -73,8 +77,8 @@ class CustomSortApiImpl extends ApiBase_1.ApiBase {
|
|
|
73
77
|
this.dispatchAction(CustomSortRedux.CustomSortAdd(customSort));
|
|
74
78
|
return this.getCustomSortById(customSort.Uuid);
|
|
75
79
|
}
|
|
76
|
-
createCustomSort(
|
|
77
|
-
let customSort = { ColumnId: columnId, SortedValues: values };
|
|
80
|
+
createCustomSort(params) {
|
|
81
|
+
let customSort = { Name: params.name, ColumnId: params.columnId, SortedValues: params.values };
|
|
78
82
|
return this.addCustomSort(customSort);
|
|
79
83
|
}
|
|
80
84
|
editCustomSortValues(columnId, values) {
|
|
@@ -9,6 +9,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
9
9
|
const InternalRedux_1 = require("../../Redux/ActionsReducers/InternalRedux");
|
|
10
10
|
const DashboardInternalApi_1 = require("../Internal/DashboardInternalApi");
|
|
11
11
|
class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
12
|
+
internalApi;
|
|
12
13
|
constructor(_adaptable) {
|
|
13
14
|
super(_adaptable);
|
|
14
15
|
this.internalApi = new DashboardInternalApi_1.DashboardInternalApi(_adaptable);
|
|
@@ -6,21 +6,6 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const InternalRedux_1 = require("../../Redux/ActionsReducers/InternalRedux");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
class DataChangeHistoryApiImpl extends ApiBase_1.ApiBase {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.getDataChangeHistoryKey = (dataChangeInfo) => {
|
|
12
|
-
const columnId = dataChangeInfo.column.columnId;
|
|
13
|
-
const primaryKeyValue = dataChangeInfo.primaryKeyValue;
|
|
14
|
-
const changedAt = dataChangeInfo.changedAt;
|
|
15
|
-
const showLastDataChangeOnly = this.getDataChangeHistoryOptions().showLastDataChangeOnly;
|
|
16
|
-
if (showLastDataChangeOnly) {
|
|
17
|
-
return JSON.stringify({ columnId, primaryKeyValue });
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return JSON.stringify({ columnId, primaryKeyValue, changedAt });
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
9
|
getDataChangeHistoryMode() {
|
|
25
10
|
return this.getAdaptableState().Internal.DataChangeHistory.currentMode;
|
|
26
11
|
}
|
|
@@ -71,5 +56,17 @@ class DataChangeHistoryApiImpl extends ApiBase_1.ApiBase {
|
|
|
71
56
|
openDataChangeHistorySettingsPanel() {
|
|
72
57
|
this.showModulePopup(ModuleConstants.DataChangeHistoryModuleId);
|
|
73
58
|
}
|
|
59
|
+
getDataChangeHistoryKey = (dataChangeInfo) => {
|
|
60
|
+
const columnId = dataChangeInfo.column.columnId;
|
|
61
|
+
const primaryKeyValue = dataChangeInfo.primaryKeyValue;
|
|
62
|
+
const changedAt = dataChangeInfo.changedAt;
|
|
63
|
+
const showLastDataChangeOnly = this.getDataChangeHistoryOptions().showLastDataChangeOnly;
|
|
64
|
+
if (showLastDataChangeOnly) {
|
|
65
|
+
return JSON.stringify({ columnId, primaryKeyValue });
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
return JSON.stringify({ columnId, primaryKeyValue, changedAt });
|
|
69
|
+
}
|
|
70
|
+
};
|
|
74
71
|
}
|
|
75
72
|
exports.DataChangeHistoryApiImpl = DataChangeHistoryApiImpl;
|
|
@@ -4,6 +4,7 @@ exports.DataImportApiImpl = void 0;
|
|
|
4
4
|
const DataImportInternalApi_1 = require("../Internal/DataImportInternalApi");
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
class DataImportApiImpl extends ApiBase_1.ApiBase {
|
|
7
|
+
internalApi;
|
|
7
8
|
constructor(_adaptable) {
|
|
8
9
|
super(_adaptable);
|
|
9
10
|
this.internalApi = new DataImportInternalApi_1.DataImportInternalApi(_adaptable);
|
|
@@ -7,6 +7,7 @@ const InternalRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/
|
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
8
|
const DataSetInternalApi_1 = require("../Internal/DataSetInternalApi");
|
|
9
9
|
class DataSetApiImpl extends ApiBase_1.ApiBase {
|
|
10
|
+
internalApi;
|
|
10
11
|
constructor(_adaptable) {
|
|
11
12
|
super(_adaptable);
|
|
12
13
|
this.internalApi = new DataSetInternalApi_1.DataSetInternalApi(_adaptable);
|
|
@@ -4,6 +4,7 @@ exports.EntitlementApiImpl = void 0;
|
|
|
4
4
|
const ApiBase_1 = require("./ApiBase");
|
|
5
5
|
const EntitlementInternalApi_1 = require("../Internal/EntitlementInternalApi");
|
|
6
6
|
class EntitlementApiImpl extends ApiBase_1.ApiBase {
|
|
7
|
+
internalApi;
|
|
7
8
|
constructor(_adaptable) {
|
|
8
9
|
super(_adaptable);
|
|
9
10
|
this.internalApi = new EntitlementInternalApi_1.EntitlementInternalApi(_adaptable);
|
|
@@ -6,22 +6,10 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const Emitter_1 = tslib_1.__importDefault(require("../../Utilities/Emitter"));
|
|
7
7
|
const EventInternalApi_1 = require("../Internal/EventInternalApi");
|
|
8
8
|
class EventApiImpl extends ApiBase_1.ApiBase {
|
|
9
|
+
emitter;
|
|
10
|
+
internalApi;
|
|
9
11
|
constructor(_adaptable) {
|
|
10
12
|
super(_adaptable);
|
|
11
|
-
this.on = (eventName, callback) => {
|
|
12
|
-
let result;
|
|
13
|
-
if (eventName === 'AdaptableReady') {
|
|
14
|
-
this.emitter.onIncludeFiredOnce(eventName).then(callback);
|
|
15
|
-
return () => { };
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
result = this.emitter.on(eventName, callback);
|
|
19
|
-
}
|
|
20
|
-
return result;
|
|
21
|
-
};
|
|
22
|
-
this.off = (eventName, callback) => this.emitter.off(eventName, callback);
|
|
23
|
-
this.emit = (eventName, data) => this.emitter.emit(eventName, data);
|
|
24
|
-
this.emitSync = (eventName, data) => this.emitter.emitSync(eventName, data);
|
|
25
13
|
this.emitter = new Emitter_1.default();
|
|
26
14
|
this.internalApi = new EventInternalApi_1.EventInternalApi(_adaptable);
|
|
27
15
|
}
|
|
@@ -30,5 +18,19 @@ class EventApiImpl extends ApiBase_1.ApiBase {
|
|
|
30
18
|
this.emitSync('AdaptableDestroy');
|
|
31
19
|
this.emitter.destroy();
|
|
32
20
|
}
|
|
21
|
+
on = (eventName, callback) => {
|
|
22
|
+
let result;
|
|
23
|
+
if (eventName === 'AdaptableReady') {
|
|
24
|
+
this.emitter.onIncludeFiredOnce(eventName).then(callback);
|
|
25
|
+
return () => { };
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
result = this.emitter.on(eventName, callback);
|
|
29
|
+
}
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
off = (eventName, callback) => this.emitter.off(eventName, callback);
|
|
33
|
+
emit = (eventName, data) => this.emitter.emit(eventName, data);
|
|
34
|
+
emitSync = (eventName, data) => this.emitter.emitSync(eventName, data);
|
|
33
35
|
}
|
|
34
36
|
exports.EventApiImpl = EventApiImpl;
|
|
@@ -8,6 +8,7 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
|
|
|
8
8
|
const ExportInternalApi_1 = require("../Internal/ExportInternalApi");
|
|
9
9
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
10
10
|
class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
11
|
+
internalApi;
|
|
11
12
|
constructor(_adaptable) {
|
|
12
13
|
super(_adaptable);
|
|
13
14
|
this.internalApi = new ExportInternalApi_1.ExportInternalApi(_adaptable);
|
|
@@ -6,6 +6,7 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const parser = tslib_1.__importStar(require("../../parser/src"));
|
|
7
7
|
const ExpressionInternalApi_1 = require("../Internal/ExpressionInternalApi");
|
|
8
8
|
class ExpressionApiImpl extends ApiBase_1.ApiBase {
|
|
9
|
+
internalApi;
|
|
9
10
|
constructor(_adaptable) {
|
|
10
11
|
super(_adaptable);
|
|
11
12
|
this.internalApi = new ExpressionInternalApi_1.ExpressionInternalApi(_adaptable);
|
|
@@ -5,6 +5,7 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
5
5
|
const Fdc3InternalApi_1 = require("../Internal/Fdc3InternalApi");
|
|
6
6
|
const Fdc3Context_1 = require("../../AdaptableState/Common/Fdc3Context");
|
|
7
7
|
class Fdc3ApiImpl extends ApiBase_1.ApiBase {
|
|
8
|
+
internalApi;
|
|
8
9
|
constructor(_adaptable) {
|
|
9
10
|
super(_adaptable);
|
|
10
11
|
this.internalApi = new Fdc3InternalApi_1.Fdc3InternalApi(_adaptable);
|
|
@@ -6,6 +6,9 @@ const FilterInternalApi_1 = require("../Internal/FilterInternalApi");
|
|
|
6
6
|
const ColumnFilterApiImpl_1 = require("./ColumnFilterApiImpl");
|
|
7
7
|
const GridFilterApiImpl_1 = require("./GridFilterApiImpl");
|
|
8
8
|
class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
9
|
+
internalApi;
|
|
10
|
+
columnFilterApi;
|
|
11
|
+
gridFilterApi;
|
|
9
12
|
constructor(_adaptable) {
|
|
10
13
|
super(_adaptable);
|
|
11
14
|
this.internalApi = new FilterInternalApi_1.FilterInternalApi(_adaptable);
|
|
@@ -13,6 +13,7 @@ export declare class FlashingCellApiImpl extends ApiBase implements FlashingCell
|
|
|
13
13
|
getFlashingCellState(): FlashingCellState;
|
|
14
14
|
getFlashingCellDefinitions(config?: LayoutExtendedConfig): FlashingCellDefinition[];
|
|
15
15
|
getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid'], config?: LayoutExtendedConfig): FlashingCellDefinition;
|
|
16
|
+
getFlashingCellDefinitionByName(name: string): FlashingCellDefinition | undefined;
|
|
16
17
|
getActiveFlashingCellDefinitions(config?: LayoutExtendedConfig): FlashingCellDefinition[];
|
|
17
18
|
getSuspendedFlashingCellDefinitions(config?: LayoutExtendedConfig): FlashingCellDefinition[];
|
|
18
19
|
getFlashingCellFlashTarget(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition['FlashTarget'];
|
|
@@ -6,6 +6,7 @@ const FlashingCellRedux = tslib_1.__importStar(require("../../Redux/ActionsReduc
|
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const FlashingCellInternalApi_1 = require("../Internal/FlashingCellInternalApi");
|
|
8
8
|
class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
9
|
+
internalApi;
|
|
9
10
|
constructor(_adaptable) {
|
|
10
11
|
super(_adaptable);
|
|
11
12
|
this.internalApi = new FlashingCellInternalApi_1.FlashingCellInternalApi(_adaptable);
|
|
@@ -22,6 +23,9 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
22
23
|
getFlashingCellDefinitionById(id, config) {
|
|
23
24
|
return this.getFlashingCellDefinitions(config)?.find((fc) => fc?.Uuid === id);
|
|
24
25
|
}
|
|
26
|
+
getFlashingCellDefinitionByName(name) {
|
|
27
|
+
return this.getFlashingCellDefinitions().find((fc) => fc.Name === name);
|
|
28
|
+
}
|
|
25
29
|
getActiveFlashingCellDefinitions(config) {
|
|
26
30
|
return this.getFlashingCellDefinitions(config).filter((fc) => !fc.IsSuspended);
|
|
27
31
|
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
import { AdaptableObjectLookupCriteria, FormatColumnConfig } from '../../../types';
|
|
2
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
3
|
+
import { AdaptableColumn } from '../../AdaptableState/Common/AdaptableColumn';
|
|
1
4
|
import { AdaptableStyle } from '../../AdaptableState/Common/AdaptableStyle';
|
|
2
|
-
import { ApiBase } from './ApiBase';
|
|
3
|
-
import { FormatColumnApi } from '../FormatColumnApi';
|
|
4
5
|
import { FormatColumn, FormatColumnState } from '../../AdaptableState/FormatColumnState';
|
|
5
|
-
import { AdaptableColumn } from '../../AdaptableState/Common/AdaptableColumn';
|
|
6
6
|
import { AdaptableFormat } from '../../types';
|
|
7
|
-
import {
|
|
7
|
+
import { FormatColumnApi } from '../FormatColumnApi';
|
|
8
8
|
import { FormatColumnInternalApi } from '../Internal/FormatColumnInternalApi';
|
|
9
|
-
import {
|
|
9
|
+
import { ApiBase } from './ApiBase';
|
|
10
10
|
export declare class FormatColumnApiImpl extends ApiBase implements FormatColumnApi {
|
|
11
11
|
internalApi: FormatColumnInternalApi;
|
|
12
12
|
constructor(_adaptable: IAdaptable);
|
|
13
13
|
getFormatColumnState(): FormatColumnState;
|
|
14
14
|
getFormatColumns(config?: FormatColumnConfig): FormatColumn[];
|
|
15
15
|
getFormatColumnByUuId(id: FormatColumn['Uuid'], config?: FormatColumnConfig): FormatColumn;
|
|
16
|
+
getFormatColumnByName(name: string): FormatColumn | undefined;
|
|
16
17
|
getActiveFormatColumns(config?: FormatColumnConfig): FormatColumn[];
|
|
17
18
|
getDisplayFormatForColumn(column: AdaptableColumn, config?: FormatColumnConfig): AdaptableFormat | undefined;
|
|
18
19
|
getSuspendedFormatColumns(config?: FormatColumnConfig): FormatColumn[];
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FormatColumnApiImpl = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const FormatColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FormatColumnRedux"));
|
|
6
|
-
const ApiBase_1 = require("./ApiBase");
|
|
7
6
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
|
-
const FormatColumnInternalApi_1 = require("../Internal/FormatColumnInternalApi");
|
|
9
7
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
8
|
+
const FormatColumnInternalApi_1 = require("../Internal/FormatColumnInternalApi");
|
|
9
|
+
const ApiBase_1 = require("./ApiBase");
|
|
10
10
|
class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
11
|
+
internalApi;
|
|
11
12
|
constructor(_adaptable) {
|
|
12
13
|
super(_adaptable);
|
|
13
14
|
this.internalApi = new FormatColumnInternalApi_1.FormatColumnInternalApi(_adaptable);
|
|
@@ -21,6 +22,9 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
21
22
|
getFormatColumnByUuId(id, config) {
|
|
22
23
|
return this.getFormatColumns(config).find((formatColumn) => formatColumn.Uuid === id);
|
|
23
24
|
}
|
|
25
|
+
getFormatColumnByName(name) {
|
|
26
|
+
return this.getFormatColumns().find((formatColumn) => formatColumn.Name === name);
|
|
27
|
+
}
|
|
24
28
|
getActiveFormatColumns(config) {
|
|
25
29
|
return this.getFormatColumns(config).filter((formatColumn) => !formatColumn.IsSuspended);
|
|
26
30
|
}
|
|
@@ -41,9 +45,7 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
41
45
|
return this.getFormatColumnByUuId(formatColumn.Uuid);
|
|
42
46
|
}
|
|
43
47
|
addFormatColumns(formatColumns) {
|
|
44
|
-
|
|
45
|
-
this.addFormatColumn(fc);
|
|
46
|
-
});
|
|
48
|
+
this.dispatchAction(FormatColumnRedux.FormatColumnsAdd(formatColumns));
|
|
47
49
|
return formatColumns?.map((formatColumn) => this.getFormatColumnByUuId(formatColumn.Uuid));
|
|
48
50
|
}
|
|
49
51
|
editFormatColumn(formatColumn) {
|
|
@@ -8,6 +8,7 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
|
|
|
8
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
9
9
|
const FreeTextColumnInternalApi_1 = require("../Internal/FreeTextColumnInternalApi");
|
|
10
10
|
class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
11
|
+
internalApi;
|
|
11
12
|
constructor(_adaptable) {
|
|
12
13
|
super(_adaptable);
|
|
13
14
|
this.internalApi = new FreeTextColumnInternalApi_1.FreeTextColumnInternalApi(_adaptable);
|
|
@@ -4,7 +4,7 @@ import { SelectedCellInfo } from '../../AdaptableState/Selection/SelectedCellInf
|
|
|
4
4
|
import { SelectedRowInfo } from '../../AdaptableState/Selection/SelectedRowInfo';
|
|
5
5
|
import { CellUpdateRequest, GridCell } from '../../AdaptableState/Selection/GridCell';
|
|
6
6
|
import { ColumnSort } from '../../AdaptableState/Common/ColumnSort';
|
|
7
|
-
import { DataUpdateConfig } from '../../AdaptableState/Common/DataUpdateConfig';
|
|
7
|
+
import { DataRowConfig, DataUpdateConfig } from '../../AdaptableState/Common/DataUpdateConfig';
|
|
8
8
|
import { CellHighlightInfo } from '../../AdaptableState/Common/CellHighlightInfo';
|
|
9
9
|
import { RowHighlightInfo } from '../../AdaptableState/Common/RowHighlightInfo';
|
|
10
10
|
import { ColDef, ColGroupDef, Column, ColumnState, IRowNode, RowModelType } from 'ag-grid-enterprise';
|
|
@@ -16,6 +16,7 @@ import { GridInternalApi } from '../Internal/GridInternalApi';
|
|
|
16
16
|
import { TransposeConfig } from '../../AdaptableState/Common/TransposeConfig';
|
|
17
17
|
import { CellSummmaryInfo } from '../../types';
|
|
18
18
|
import { InternalState } from '../../AdaptableState/InternalState';
|
|
19
|
+
import { ColumnHighlightInfo } from '../../AdaptableState/Common/ColumnHighlightInfo';
|
|
19
20
|
export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
20
21
|
internalApi: GridInternalApi;
|
|
21
22
|
constructor(_adaptable: IAdaptable);
|
|
@@ -34,6 +35,11 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
34
35
|
addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
35
36
|
undoCellEdit(cellDataChangedInfo: CellDataChangedInfo): boolean;
|
|
36
37
|
deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
38
|
+
manageGridData(dataRowConfig: DataRowConfig, dataUpdateConfig?: DataUpdateConfig): Promise<{
|
|
39
|
+
addedRows: IRowNode[];
|
|
40
|
+
updatedRows: IRowNode[];
|
|
41
|
+
removedRows: IRowNode[];
|
|
42
|
+
}>;
|
|
37
43
|
setCellValue(cellUpdateRequest: CellUpdateRequest): void;
|
|
38
44
|
setCellValues(cellUpdateRequests: CellUpdateRequest[]): void;
|
|
39
45
|
getCellSummaryInfo(): CellSummmaryInfo;
|
|
@@ -113,6 +119,9 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
113
119
|
highlightCell(cellHighlightInfo: CellHighlightInfo): void;
|
|
114
120
|
unHighlightCell(primaryKeyValue: CellHighlightInfo['primaryKeyValue'], columnId: CellHighlightInfo['columnId']): void;
|
|
115
121
|
unHighlightAllCells(): void;
|
|
122
|
+
highlightColumn(columnHighlightInfo: ColumnHighlightInfo): void;
|
|
123
|
+
unHighlightColumn(columnId: string): void;
|
|
124
|
+
unHighlightAllColumns(): void;
|
|
116
125
|
highlightRow(rowHighlightInfo: RowHighlightInfo): void;
|
|
117
126
|
highlightRows(rowHighlightInfos: RowsHighlightInfo): void;
|
|
118
127
|
unHighlightRow(primaryKeyValue: RowHighlightInfo['primaryKeyValue']): void;
|
|
@@ -151,13 +160,4 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
151
160
|
updateAgGridColumnDefinitions(columnDefinitionsToBeUpdated: ColDefWithId[]): void;
|
|
152
161
|
removeAgGridColumnDefinition(columnId: string): void;
|
|
153
162
|
addAgGridColumnDefinition(newColumnDefinition: ColDefWithId): void;
|
|
154
|
-
applyGridDataTransaction(dataTransaction: {
|
|
155
|
-
add?: any[];
|
|
156
|
-
update?: any[];
|
|
157
|
-
remove?: any[];
|
|
158
|
-
}, config?: DataUpdateConfig): Promise<{
|
|
159
|
-
addedRows: IRowNode[];
|
|
160
|
-
updatedRows: IRowNode[];
|
|
161
|
-
removedRows: IRowNode[];
|
|
162
|
-
}>;
|
|
163
163
|
}
|
|
@@ -11,6 +11,7 @@ const windowFactory_1 = require("../../View/Components/Popups/WindowPopups/windo
|
|
|
11
11
|
const RowSummary_1 = require("../../AdaptableState/Common/RowSummary");
|
|
12
12
|
const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
|
|
13
13
|
class GridApiImpl extends ApiBase_1.ApiBase {
|
|
14
|
+
internalApi;
|
|
14
15
|
constructor(_adaptable) {
|
|
15
16
|
super(_adaptable);
|
|
16
17
|
this.internalApi = new GridInternalApi_1.GridInternalApi(_adaptable);
|
|
@@ -98,6 +99,22 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
98
99
|
}
|
|
99
100
|
return [];
|
|
100
101
|
}
|
|
102
|
+
async manageGridData(dataRowConfig, dataUpdateConfig) {
|
|
103
|
+
const transactionResult = await this._adaptable.manageGridRows(dataRowConfig, dataUpdateConfig);
|
|
104
|
+
if (Array.isArray(transactionResult.removedRows) && transactionResult.removedRows.length) {
|
|
105
|
+
const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataRowConfig.deleteRows, transactionResult.removedRows, 'Delete');
|
|
106
|
+
this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
|
|
107
|
+
}
|
|
108
|
+
if (Array.isArray(transactionResult.updatedRows) && transactionResult.updatedRows.length) {
|
|
109
|
+
const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataRowConfig.updateRows, transactionResult.updatedRows, 'Update');
|
|
110
|
+
this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
|
|
111
|
+
}
|
|
112
|
+
if (Array.isArray(transactionResult.addedRows) && transactionResult.addedRows.length) {
|
|
113
|
+
const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataRowConfig.addRows, transactionResult.addedRows, 'Add');
|
|
114
|
+
this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
|
|
115
|
+
}
|
|
116
|
+
return transactionResult;
|
|
117
|
+
}
|
|
101
118
|
setCellValue(cellUpdateRequest) {
|
|
102
119
|
const abColumn = this.getColumnApi().getColumnWithColumnId(cellUpdateRequest.columnId);
|
|
103
120
|
if (!abColumn) {
|
|
@@ -457,6 +474,20 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
457
474
|
unHighlightAllCells() {
|
|
458
475
|
this.dispatchAction((0, InternalRedux_1.HighlightCellDeleteAll)());
|
|
459
476
|
}
|
|
477
|
+
highlightColumn(columnHighlightInfo) {
|
|
478
|
+
this.dispatchAction((0, InternalRedux_1.HighlightColumnAdd)(columnHighlightInfo));
|
|
479
|
+
if (columnHighlightInfo.timeout) {
|
|
480
|
+
setTimeout(() => {
|
|
481
|
+
this.unHighlightColumn(columnHighlightInfo.columnId);
|
|
482
|
+
}, columnHighlightInfo.timeout);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
unHighlightColumn(columnId) {
|
|
486
|
+
this.dispatchAction((0, InternalRedux_1.HighlightColumnDelete)(columnId));
|
|
487
|
+
}
|
|
488
|
+
unHighlightAllColumns() {
|
|
489
|
+
this.dispatchAction((0, InternalRedux_1.HighlightColumnDeleteAll)());
|
|
490
|
+
}
|
|
460
491
|
highlightRow(rowHighlightInfo) {
|
|
461
492
|
this.dispatchAction((0, InternalRedux_1.HighlightRowAdd)(rowHighlightInfo));
|
|
462
493
|
if (rowHighlightInfo.timeout) {
|
|
@@ -580,9 +611,9 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
580
611
|
showTransposedView(transposeConfig = {}) {
|
|
581
612
|
const transposedColumnId = transposeConfig.transposedColumnId ?? this.getOptionsApi().getPrimaryKey();
|
|
582
613
|
const hideTransposedColumn = transposeConfig.hideTransposedColumn ?? true;
|
|
583
|
-
const visibleColumns = transposeConfig.visibleColumns ?? false;
|
|
584
|
-
const visibleRows = transposeConfig.visibleRows ?? false;
|
|
585
614
|
const autosize = transposeConfig.autosize ?? true;
|
|
615
|
+
const columnsToTranspose = transposeConfig.columnsToTranspose;
|
|
616
|
+
const rowsToTranspose = transposeConfig.rowsToTranspose;
|
|
586
617
|
this.getAdaptableInternalApi().showPopupWindow({
|
|
587
618
|
id: windowFactory_1.WINDOW_SHOW_TRANSPOSED_VIEW,
|
|
588
619
|
factoryId: windowFactory_1.WINDOW_SHOW_TRANSPOSED_VIEW,
|
|
@@ -591,9 +622,9 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
591
622
|
popupProps: {
|
|
592
623
|
transposedColumnId,
|
|
593
624
|
hideTransposedColumn,
|
|
594
|
-
visibleColumns,
|
|
595
|
-
visibleRows,
|
|
596
625
|
autosize,
|
|
626
|
+
columnsToTranspose,
|
|
627
|
+
rowsToTranspose,
|
|
597
628
|
},
|
|
598
629
|
});
|
|
599
630
|
}
|
|
@@ -687,21 +718,5 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
687
718
|
.filter(Boolean);
|
|
688
719
|
this.setAgGridColumnDefinitions([...sanitizedColDefs, newColumnDefinition]);
|
|
689
720
|
}
|
|
690
|
-
async applyGridDataTransaction(dataTransaction, config) {
|
|
691
|
-
const transactionResult = await this._adaptable.applyGridDataTransaction(dataTransaction, config);
|
|
692
|
-
if (Array.isArray(transactionResult.removedRows) && transactionResult.removedRows.length) {
|
|
693
|
-
const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataTransaction.remove, transactionResult.removedRows, 'Delete');
|
|
694
|
-
this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
|
|
695
|
-
}
|
|
696
|
-
if (Array.isArray(transactionResult.updatedRows) && transactionResult.updatedRows.length) {
|
|
697
|
-
const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataTransaction.update, transactionResult.updatedRows, 'Update');
|
|
698
|
-
this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
|
|
699
|
-
}
|
|
700
|
-
if (Array.isArray(transactionResult.addedRows) && transactionResult.addedRows.length) {
|
|
701
|
-
const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataTransaction.add, transactionResult.addedRows, 'Add');
|
|
702
|
-
this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
|
|
703
|
-
}
|
|
704
|
-
return transactionResult;
|
|
705
|
-
}
|
|
706
721
|
}
|
|
707
722
|
exports.GridApiImpl = GridApiImpl;
|
|
@@ -8,6 +8,7 @@ const GridFilterInternalApi_1 = require("../Internal/GridFilterInternalApi");
|
|
|
8
8
|
const ApiBase_1 = require("./ApiBase");
|
|
9
9
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
10
10
|
class GridFilterApiImpl extends ApiBase_1.ApiBase {
|
|
11
|
+
internalApi;
|
|
11
12
|
constructor(_adaptable) {
|
|
12
13
|
super(_adaptable);
|
|
13
14
|
this.internalApi = new GridFilterInternalApi_1.GridFilterInternalApi(_adaptable);
|
|
@@ -24,6 +24,7 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
|
|
|
24
24
|
getCurrentLayoutColumnSort(columnId: string): ColumnSort['SortOrder'] | null;
|
|
25
25
|
getCurrentLayoutName(): string;
|
|
26
26
|
getLayoutByName(layoutName: string): Layout | null;
|
|
27
|
+
setExtendedLayout(extendedLayout: ExtendedLayout): void;
|
|
27
28
|
createOrUpdateExtendedLayout(extendedLayoutInfo: ExtendedLayout): void;
|
|
28
29
|
getExtendedLayoutByName(layoutName: string): ExtendedLayout | undefined;
|
|
29
30
|
cloneExtendedLayout(extendedLayoutToClone: ExtendedLayout, layoutName: string): ExtendedLayout | false;
|
|
@@ -12,6 +12,7 @@ const LayoutInternalApi_1 = require("../Internal/LayoutInternalApi");
|
|
|
12
12
|
const LayoutHelpers_1 = require("./LayoutHelpers");
|
|
13
13
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
14
14
|
class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
15
|
+
internalApi;
|
|
15
16
|
constructor(_adaptable) {
|
|
16
17
|
super(_adaptable);
|
|
17
18
|
this.internalApi = new LayoutInternalApi_1.LayoutInternalApi(_adaptable);
|
|
@@ -93,6 +94,9 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
96
|
}
|
|
97
|
+
setExtendedLayout(extendedLayout) {
|
|
98
|
+
this.setLayout(extendedLayout.Layout.Name);
|
|
99
|
+
}
|
|
96
100
|
createOrUpdateExtendedLayout(extendedLayoutInfo) {
|
|
97
101
|
const config = {
|
|
98
102
|
includeLayoutNotExtendedObjects: true,
|
|
@@ -406,7 +410,7 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
406
410
|
const currentLayout = this.getCurrentLayout();
|
|
407
411
|
const customHeader = currentLayout.ColumnHeaders?.[column.columnId] ?? column.friendlyName;
|
|
408
412
|
this.dispatchAction((0, PopupRedux_1.PopupShowPrompt)({
|
|
409
|
-
Header: `Change
|
|
413
|
+
Header: `Change Caption for "${column.friendlyName}"`,
|
|
410
414
|
Msg: '',
|
|
411
415
|
DefaultValue: customHeader,
|
|
412
416
|
ConfirmActionCreator: (inputText) => {
|
|
@@ -290,6 +290,7 @@ const pivotLayoutToPivotLayoutModel = (pivotLayout) => {
|
|
|
290
290
|
GrandTotalRow: pivotLayout.GrandTotalRow,
|
|
291
291
|
PivotGrandTotal: pivotLayout.PivotGrandTotal,
|
|
292
292
|
PivotColumnTotal: pivotLayout.PivotColumnTotal,
|
|
293
|
+
PivotResultColumnsOrder: pivotLayout.PivotResultColumnsOrder,
|
|
293
294
|
RowGroupValues: (0, exports.toRowGroupValuesForLayoutModel)(pivotLayout.RowGroupValues),
|
|
294
295
|
ColumnGroupValues: pivotLayout.ColumnGroupValues
|
|
295
296
|
? pivotLayout.ColumnGroupValues.ColumnGroupDefaultBehavior === 'always-expanded' ||
|
|
@@ -525,6 +526,12 @@ const pivotLayoutModelToPivotLayout = (layoutModel) => {
|
|
|
525
526
|
else {
|
|
526
527
|
delete pivotLayout.PivotColumnTotal;
|
|
527
528
|
}
|
|
529
|
+
if (layoutModel.PivotResultColumnsOrder != null) {
|
|
530
|
+
pivotLayout.PivotResultColumnsOrder = layoutModel.PivotResultColumnsOrder;
|
|
531
|
+
}
|
|
532
|
+
else {
|
|
533
|
+
delete pivotLayout.PivotResultColumnsOrder;
|
|
534
|
+
}
|
|
528
535
|
if (layoutModel.PivotAggregationColumns) {
|
|
529
536
|
pivotLayout.PivotAggregationColumns = (layoutModel.PivotAggregationColumns || []).map(({ ColumnId, AggFunc, Total }) => ({
|
|
530
537
|
ColumnId,
|
|
@@ -8,6 +8,7 @@ const NamedQueryInternalApi_1 = require("../Internal/NamedQueryInternalApi");
|
|
|
8
8
|
const ApiBase_1 = require("./ApiBase");
|
|
9
9
|
const NamedQueryRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NamedQueryRedux"));
|
|
10
10
|
class NamedQueryApiImpl extends ApiBase_1.ApiBase {
|
|
11
|
+
internalApi;
|
|
11
12
|
constructor(_adaptable) {
|
|
12
13
|
super(_adaptable);
|
|
13
14
|
this.internalApi = new NamedQueryInternalApi_1.NamedQueryInternalApi(_adaptable);
|
|
@@ -29,14 +30,14 @@ class NamedQueryApiImpl extends ApiBase_1.ApiBase {
|
|
|
29
30
|
}
|
|
30
31
|
isValidNamedQuery(namedQuery) {
|
|
31
32
|
if ((0, StringExtensions_1.IsNullOrEmptyOrWhiteSpace)(namedQuery?.Name)) {
|
|
32
|
-
return { valid: false, message: '
|
|
33
|
+
return { valid: false, message: 'A name is required for the Named Query.' };
|
|
33
34
|
}
|
|
34
35
|
// check that there is no other existing named query with the same name
|
|
35
36
|
const duplicate = this.getNamedQueries().find((q) => q.Name === namedQuery.Name && q.Uuid !== namedQuery.Uuid);
|
|
36
37
|
if (duplicate) {
|
|
37
38
|
return {
|
|
38
39
|
valid: false,
|
|
39
|
-
message: 'A Named Query
|
|
40
|
+
message: 'A Named Query with this name already exists.',
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
return { valid: true, message: '' };
|
|
@@ -6,6 +6,7 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const NoteRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NoteRedux"));
|
|
7
7
|
const NoteInternalApi_1 = require("../Internal/NoteInternalApi");
|
|
8
8
|
class NoteApiImpl extends ApiBase_1.ApiBase {
|
|
9
|
+
internalApi;
|
|
9
10
|
constructor(_adaptable) {
|
|
10
11
|
super(_adaptable);
|
|
11
12
|
this.internalApi = new NoteInternalApi_1.NoteInternalApi(_adaptable);
|
|
@@ -7,6 +7,7 @@ export declare class PlusMinusApiImpl extends ApiBase implements PlusMinusApi {
|
|
|
7
7
|
getPlusMinusState(): PlusMinusState;
|
|
8
8
|
getAllPlusMinus(config?: LayoutExtendedConfig): PlusMinusNudge[];
|
|
9
9
|
getPlusMinusById(id: PlusMinusNudge['Uuid'], config?: LayoutExtendedConfig): PlusMinusNudge;
|
|
10
|
+
getPlusMinusNudgeByName(name: string): PlusMinusNudge | undefined;
|
|
10
11
|
getAllActivePlusMinus(config?: LayoutExtendedConfig): PlusMinusNudge[];
|
|
11
12
|
getAllSuspendedPlusMinus(config?: LayoutExtendedConfig): PlusMinusNudge[];
|
|
12
13
|
runPlusMinusNudge(plusMinusNudge: PlusMinusNudge, cellsToUpdate: GridCell[], direction: 'up' | 'down'): void;
|
|
@@ -16,6 +16,9 @@ class PlusMinusApiImpl extends ApiBase_1.ApiBase {
|
|
|
16
16
|
getPlusMinusById(id, config) {
|
|
17
17
|
return this.getAllPlusMinus(config).find((plusMinus) => plusMinus?.Uuid === id);
|
|
18
18
|
}
|
|
19
|
+
getPlusMinusNudgeByName(name) {
|
|
20
|
+
return this.getAllPlusMinus().find((plusMinus) => plusMinus.Name === name);
|
|
21
|
+
}
|
|
19
22
|
getAllActivePlusMinus(config) {
|
|
20
23
|
return this.getAllPlusMinus(config).filter((plusMinusNudge) => !plusMinusNudge.IsSuspended);
|
|
21
24
|
}
|
|
@@ -32,6 +32,7 @@ const getTreeSelectionStateForPredicateInputs = (inputs, cache = treeSelectionSt
|
|
|
32
32
|
};
|
|
33
33
|
exports.getTreeSelectionStateForPredicateInputs = getTreeSelectionStateForPredicateInputs;
|
|
34
34
|
class PredicateApiImpl extends ApiBase_1.ApiBase {
|
|
35
|
+
internalApi;
|
|
35
36
|
constructor(_adaptable) {
|
|
36
37
|
super(_adaptable);
|
|
37
38
|
this.internalApi = new PredicateInternalApi_1.PredicateInternalApi(_adaptable);
|
|
@@ -5,6 +5,7 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
5
5
|
const RowFormInternalApi_1 = require("../Internal/RowFormInternalApi");
|
|
6
6
|
const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
|
|
7
7
|
class RowFormApiImpl extends ApiBase_1.ApiBase {
|
|
8
|
+
internalApi;
|
|
8
9
|
constructor(_adaptable) {
|
|
9
10
|
super(_adaptable);
|
|
10
11
|
this.internalApi = new RowFormInternalApi_1.RowFormInternalApi(_adaptable);
|
|
@@ -11,6 +11,7 @@ export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
|
|
|
11
11
|
constructor(_adaptable: IAdaptable);
|
|
12
12
|
getScheduleState(): ScheduleState;
|
|
13
13
|
getSchedules(config?: LayoutExtendedConfig): BaseSchedule[];
|
|
14
|
+
getScheduleByName(name: string): BaseSchedule | undefined;
|
|
14
15
|
getReminderSchedules(config?: LayoutExtendedConfig): ReminderSchedule[];
|
|
15
16
|
getScheduleById(id: BaseSchedule['Uuid'], config?: LayoutExtendedConfig): BaseSchedule;
|
|
16
17
|
getActiveReminderSchedules(config?: LayoutExtendedConfig): ReminderSchedule[];
|
|
@@ -20,6 +20,9 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
20
20
|
allSchedules.push(...this.getOpenFinSchedules(config));
|
|
21
21
|
return allSchedules;
|
|
22
22
|
}
|
|
23
|
+
getScheduleByName(name) {
|
|
24
|
+
return this.getSchedules().find((schedule) => schedule.Name === name);
|
|
25
|
+
}
|
|
23
26
|
getReminderSchedules(config) {
|
|
24
27
|
return (this.handleLayoutExtensionObjects(this.getScheduleState().Reminders, 'Schedule', config) ?? []);
|
|
25
28
|
}
|
|
@@ -158,6 +161,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
158
161
|
header: reminderSchedule.Header,
|
|
159
162
|
message: reminderSchedule.Message,
|
|
160
163
|
alertDefinition: {
|
|
164
|
+
Name: reminderSchedule.Header,
|
|
161
165
|
MessageType: reminderSchedule.MessageType,
|
|
162
166
|
AlertProperties: {
|
|
163
167
|
DisplayNotification: reminderSchedule.DisplayNotification,
|
|
@@ -6,6 +6,7 @@ export declare class ShortcutApiImpl extends ApiBase implements ShortcutApi {
|
|
|
6
6
|
getShortcutState(): ShortcutState;
|
|
7
7
|
getShortcuts(config?: LayoutExtendedConfig): Shortcut[];
|
|
8
8
|
getShortcutById(id: Shortcut['Uuid'], config?: LayoutExtendedConfig): Shortcut;
|
|
9
|
+
getShortcutByName(name: string): Shortcut | undefined;
|
|
9
10
|
getActiveShortcuts(config?: LayoutExtendedConfig): Shortcut[];
|
|
10
11
|
getSuspendedShortcuts(config?: LayoutExtendedConfig): Shortcut[];
|
|
11
12
|
addShortcut(shortcut: Shortcut): Shortcut;
|
|
@@ -15,6 +15,9 @@ class ShortcutApiImpl extends ApiBase_1.ApiBase {
|
|
|
15
15
|
getShortcutById(id, config) {
|
|
16
16
|
return this.getShortcuts(config).find((shortcut) => shortcut?.Uuid === id);
|
|
17
17
|
}
|
|
18
|
+
getShortcutByName(name) {
|
|
19
|
+
return this.getShortcuts().find((shortcut) => shortcut.Name === name);
|
|
20
|
+
}
|
|
18
21
|
getActiveShortcuts(config) {
|
|
19
22
|
return this.getShortcuts(config).filter((shortcut) => !shortcut.IsSuspended);
|
|
20
23
|
}
|
|
@@ -7,6 +7,7 @@ const StyledColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReduc
|
|
|
7
7
|
const StyledColumnInternalApi_1 = require("../Internal/StyledColumnInternalApi");
|
|
8
8
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
9
9
|
class StyledColumnApiImpl extends ApiBase_1.ApiBase {
|
|
10
|
+
internalApi;
|
|
10
11
|
constructor(_adaptable) {
|
|
11
12
|
super(_adaptable);
|
|
12
13
|
this.internalApi = new StyledColumnInternalApi_1.StyledColumnInternalApi(_adaptable);
|