@adaptabletools/adaptable 20.3.0 → 21.0.0-canary.1
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 -1
- package/agGrid.js +2 -1
- package/base.css +36 -15
- package/base.css.map +1 -1
- package/icons/add-circle.svg +1 -0
- package/icons/add.svg +1 -0
- package/icons/alert.svg +1 -0
- package/icons/align-center.svg +1 -0
- package/icons/align-justify.svg +1 -0
- package/icons/align-left.svg +1 -0
- package/icons/align-right.svg +1 -0
- package/icons/arrow-down-long.svg +1 -0
- package/icons/arrow-down.svg +1 -0
- package/icons/arrow-expand.svg +1 -0
- package/icons/arrow-left.svg +1 -0
- package/icons/arrow-right.svg +1 -0
- package/icons/arrow-up-long.svg +1 -0
- package/icons/arrow-up.svg +1 -0
- package/icons/assignment.svg +1 -0
- package/icons/badge.svg +1 -0
- package/icons/bold.svg +1 -0
- package/icons/boolean-list.svg +1 -0
- package/icons/brain.svg +1 -0
- package/icons/broadcast.svg +1 -0
- package/icons/brush.svg +1 -0
- package/icons/building.svg +1 -0
- package/icons/calculated-column.svg +1 -0
- package/icons/calendar.svg +1 -0
- package/icons/call.svg +1 -0
- package/icons/case-lower.svg +1 -0
- package/icons/case-sentence.svg +1 -0
- package/icons/case-upper.svg +1 -0
- package/icons/cells.svg +1 -0
- package/icons/chart.svg +1 -0
- package/icons/chat.svg +1 -0
- package/icons/check-circle.svg +1 -0
- package/icons/check.svg +1 -0
- package/icons/checked.svg +1 -0
- package/icons/clipboard.svg +1 -0
- package/icons/clone.svg +1 -0
- package/icons/close.svg +1 -0
- package/icons/cloud-upload.svg +1 -0
- package/icons/collapse-all.svg +1 -0
- package/icons/collapse.svg +1 -0
- package/icons/color-palette.svg +1 -0
- package/icons/column-add.svg +1 -0
- package/icons/column-outline.svg +1 -0
- package/icons/columns.svg +1 -0
- package/icons/comment.svg +1 -0
- package/icons/comments.svg +1 -0
- package/icons/contact.svg +1 -0
- package/icons/contains.svg +1 -0
- package/icons/copy.svg +1 -0
- package/icons/csv.svg +1 -0
- package/icons/dashboard.svg +1 -0
- package/icons/data-set.svg +1 -0
- package/icons/date-range.svg +1 -0
- package/icons/delete.svg +1 -0
- package/icons/division.svg +1 -0
- package/icons/dock.svg +1 -0
- package/icons/dollar.svg +1 -0
- package/icons/download.svg +1 -0
- package/icons/downloaded.svg +1 -0
- package/icons/drag.svg +1 -0
- package/icons/edit-table.svg +1 -0
- package/icons/edit.svg +1 -0
- package/icons/ends-with.svg +1 -0
- package/icons/equals.svg +1 -0
- package/icons/equation.svg +1 -0
- package/icons/error.svg +1 -0
- package/icons/excel.svg +1 -0
- package/icons/expand-all.svg +1 -0
- package/icons/expand.svg +1 -0
- package/icons/exponent.svg +1 -0
- package/icons/export-data.svg +1 -0
- package/icons/export.svg +1 -0
- package/icons/fast-backward.svg +1 -0
- package/icons/fast-forward.svg +1 -0
- package/icons/fdc3.svg +1 -0
- package/icons/filled-circle.svg +1 -0
- package/icons/filter-list.svg +1 -0
- package/icons/filter-off.svg +1 -0
- package/icons/filter.svg +1 -0
- package/icons/flag.svg +1 -0
- package/icons/folder-open.svg +1 -0
- package/icons/folder-shared.svg +1 -0
- package/icons/folder.svg +1 -0
- package/icons/function.svg +1 -0
- package/icons/gradient.svg +1 -0
- package/icons/greater-than-or-equal.svg +1 -0
- package/icons/greater-than.svg +1 -0
- package/icons/grid-filter.svg +1 -0
- package/icons/grid-info.svg +1 -0
- package/icons/grid.svg +1 -0
- package/icons/history.svg +1 -0
- package/icons/home.svg +1 -0
- package/icons/horizontal-lines.svg +1 -0
- package/icons/import-export.svg +1 -0
- package/icons/import.svg +1 -0
- package/icons/info.svg +1 -0
- package/icons/interactions.svg +1 -0
- package/icons/italic.svg +1 -0
- package/icons/json.svg +1 -0
- package/icons/laptop.svg +1 -0
- package/icons/less-than-or-equal.svg +1 -0
- package/icons/less-than.svg +1 -0
- package/icons/lightning.svg +1 -0
- package/icons/link.svg +1 -0
- package/icons/list.svg +1 -0
- package/icons/logout.svg +1 -0
- package/icons/mail.svg +1 -0
- package/icons/menu.svg +1 -0
- package/icons/minus.svg +1 -0
- package/icons/money.svg +1 -0
- package/icons/multiplication.svg +1 -0
- package/icons/newpage.svg +1 -0
- package/icons/news.svg +1 -0
- package/icons/not-contains.svg +1 -0
- package/icons/not-equal.svg +1 -0
- package/icons/note.svg +1 -0
- package/icons/open-in-new.svg +1 -0
- package/icons/order.svg +1 -0
- package/icons/organisation.svg +1 -0
- package/icons/overline.svg +1 -0
- package/icons/paperclip.svg +1 -0
- package/icons/pause.svg +1 -0
- package/icons/percent-tag.svg +1 -0
- package/icons/percent.svg +1 -0
- package/icons/person.svg +1 -0
- package/icons/pie-chart.svg +1 -0
- package/icons/play.svg +1 -0
- package/icons/plus.svg +1 -0
- package/icons/quote.svg +1 -0
- package/icons/refresh.svg +1 -0
- package/icons/regex.svg +1 -0
- package/icons/reminder.svg +1 -0
- package/icons/resume.svg +1 -0
- package/icons/rows.svg +1 -0
- package/icons/save.svg +1 -0
- package/icons/schedule.svg +1 -0
- package/icons/science.svg +1 -0
- package/icons/search-table.svg +1 -0
- package/icons/search.svg +1 -0
- package/icons/select-all.svg +1 -0
- package/icons/select-fwd.svg +1 -0
- package/icons/select-off.svg +1 -0
- package/icons/settings.svg +1 -0
- package/icons/sort-asc.svg +1 -0
- package/icons/sort-desc.svg +1 -0
- package/icons/spanner.svg +1 -0
- package/icons/spark-line.svg +1 -0
- package/icons/starts-with.svg +1 -0
- package/icons/statusbar.svg +1 -0
- package/icons/stop.svg +1 -0
- package/icons/strikethrough.svg +1 -0
- package/icons/styled-grid.svg +1 -0
- package/icons/sync.svg +1 -0
- package/icons/tab-unselected.svg +1 -0
- package/icons/target.svg +1 -0
- package/icons/theme.svg +1 -0
- package/icons/traffic-lights.svg +1 -0
- package/icons/triangle-down.svg +1 -0
- package/icons/triangle-up.svg +1 -0
- package/icons/unchecked.svg +1 -0
- package/icons/underline.svg +1 -0
- package/icons/undo.svg +1 -0
- package/icons/unfilled-circle.svg +1 -0
- package/icons/upload.svg +1 -0
- package/icons/visibility-off-bold.svg +1 -0
- package/icons/visibility-off.svg +1 -0
- package/icons/visibility-on-bold.svg +1 -0
- package/icons/visibility-on.svg +1 -0
- package/icons/warning.svg +1 -0
- package/index.css +32 -15
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/src/AdaptableInterfaces/IAdaptable.d.ts +10 -5
- package/src/AdaptableOptions/ColumnOptions.d.ts +38 -38
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +3 -2
- package/src/AdaptableOptions/EditOptions.d.ts +4 -7
- package/src/AdaptableOptions/FilterOptions.d.ts +50 -15
- package/src/AdaptableOptions/LayoutOptions.d.ts +40 -22
- package/src/AdaptableOptions/PredicateOptions.d.ts +1 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +7 -0
- package/src/AdaptableState/Common/AdaptablePredicate.js +2 -2
- package/src/AdaptableState/Common/CustomWindowConfig.d.ts +2 -2
- package/src/AdaptableState/Common/ExtendedLayout.d.ts +50 -0
- package/src/AdaptableState/FormatColumnState.d.ts +8 -1
- package/src/AdaptableState/InternalState.d.ts +1 -1
- package/src/AdaptableState/LayoutState.d.ts +26 -6
- package/src/AdaptableState/Selection/GridCell.d.ts +32 -0
- package/src/AdaptableState/StyledColumnState.d.ts +2 -2
- package/src/Api/AlertApi.d.ts +5 -11
- package/src/Api/ColumnApi.d.ts +17 -1
- package/src/Api/ColumnFilterApi.d.ts +32 -2
- package/src/Api/CustomSortApi.d.ts +5 -10
- package/src/Api/FlashingCellApi.d.ts +10 -6
- package/src/Api/FormatColumnApi.d.ts +8 -18
- package/src/Api/Implementation/AlertApiImpl.d.ts +6 -9
- package/src/Api/Implementation/AlertApiImpl.js +7 -6
- package/src/Api/Implementation/ApiBase.d.ts +2 -12
- package/src/Api/Implementation/ApiBase.js +5 -5
- package/src/Api/Implementation/ColumnApiImpl.d.ts +5 -2
- package/src/Api/Implementation/ColumnApiImpl.js +59 -23
- package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +7 -1
- package/src/Api/Implementation/ColumnFilterApiImpl.js +76 -3
- package/src/Api/Implementation/ColumnScopeApiImpl.js +10 -2
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +5 -10
- package/src/Api/Implementation/CustomSortApiImpl.js +6 -4
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +7 -6
- package/src/Api/Implementation/FlashingCellApiImpl.js +11 -8
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +8 -18
- package/src/Api/Implementation/FormatColumnApiImpl.js +10 -9
- package/src/Api/Implementation/LayoutApiImpl.d.ts +3 -2
- package/src/Api/Implementation/LayoutApiImpl.js +107 -13
- package/src/Api/Implementation/LayoutHelpers.d.ts +1 -0
- package/src/Api/Implementation/LayoutHelpers.js +23 -4
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +7 -5
- package/src/Api/Implementation/PlusMinusApiImpl.js +10 -7
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +9 -16
- package/src/Api/Implementation/ScheduleApiImpl.js +15 -17
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +5 -6
- package/src/Api/Implementation/ShortcutApiImpl.js +7 -8
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +7 -8
- package/src/Api/Implementation/StyledColumnApiImpl.js +12 -9
- package/src/Api/Implementation/TeamSharingApiImpl.js +1 -4
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +2 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +10 -9
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
- package/src/Api/Internal/AdaptableInternalApi.js +3 -0
- package/src/Api/Internal/AlertInternalApi.d.ts +6 -6
- package/src/Api/Internal/AlertInternalApi.js +10 -10
- package/src/Api/Internal/ColumnFilterInternalApi.d.ts +13 -0
- package/src/Api/Internal/ColumnFilterInternalApi.js +93 -1
- package/src/Api/Internal/ColumnInternalApi.d.ts +2 -1
- package/src/Api/Internal/ColumnInternalApi.js +4 -0
- package/src/Api/Internal/DashboardInternalApi.js +1 -1
- package/src/Api/Internal/EntitlementInternalApi.d.ts +1 -0
- package/src/Api/Internal/EntitlementInternalApi.js +8 -0
- package/src/Api/Internal/ExportInternalApi.js +1 -1
- package/src/Api/Internal/FlashingCellInternalApi.js +1 -1
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +8 -11
- package/src/Api/Internal/FormatColumnInternalApi.js +13 -13
- package/src/Api/Internal/GridInternalApi.d.ts +7 -10
- package/src/Api/Internal/GridInternalApi.js +76 -27
- package/src/Api/Internal/LayoutInternalApi.d.ts +10 -5
- package/src/Api/Internal/LayoutInternalApi.js +86 -6
- package/src/Api/Internal/PredicateInternalApi.d.ts +2 -6
- package/src/Api/Internal/PredicateInternalApi.js +4 -6
- package/src/Api/Internal/UserInterfaceInternalApi.d.ts +1 -0
- package/src/Api/Internal/UserInterfaceInternalApi.js +10 -3
- package/src/Api/LayoutApi.d.ts +7 -2
- package/src/Api/PlusMinusApi.d.ts +11 -7
- package/src/Api/ScheduleApi.d.ts +9 -16
- package/src/Api/ShortcutApi.d.ts +5 -6
- package/src/Api/StyledColumnApi.d.ts +10 -7
- package/src/Api/UserInterfaceApi.d.ts +5 -6
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +4 -4
- package/src/Redux/ActionsReducers/InternalRedux.js +7 -7
- package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +7 -0
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +13 -0
- package/src/Redux/Store/AdaptableStore.js +10 -10
- package/src/Strategy/AdaptableModuleBase.d.ts +14 -4
- package/src/Strategy/AdaptableModuleBase.js +46 -9
- package/src/Strategy/AlertModule.d.ts +3 -4
- package/src/Strategy/AlertModule.js +7 -4
- package/src/Strategy/CalculatedColumnModule.js +2 -2
- package/src/Strategy/CellSummaryModule.js +2 -2
- package/src/Strategy/ChartingModule.d.ts +3 -1
- package/src/Strategy/ChartingModule.js +9 -3
- package/src/Strategy/ColumnFilterModule.d.ts +1 -1
- package/src/Strategy/ColumnFilterModule.js +31 -15
- package/src/Strategy/ColumnInfoModule.js +2 -2
- package/src/Strategy/CommentModule.d.ts +1 -1
- package/src/Strategy/CommentModule.js +3 -3
- package/src/Strategy/CustomSortModule.d.ts +3 -4
- package/src/Strategy/CustomSortModule.js +2 -2
- package/src/Strategy/DashboardModule.js +1 -1
- package/src/Strategy/DataChangeHistoryModule.d.ts +2 -1
- package/src/Strategy/DataChangeHistoryModule.js +3 -10
- package/src/Strategy/DataImportModule.js +3 -3
- package/src/Strategy/ExportModule.js +1 -1
- package/src/Strategy/Fdc3Module.js +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +3 -5
- package/src/Strategy/FlashingCellModule.js +3 -3
- package/src/Strategy/FormatColumnModule.d.ts +3 -4
- package/src/Strategy/FormatColumnModule.js +2 -2
- package/src/Strategy/FreeTextColumnModule.d.ts +1 -1
- package/src/Strategy/FreeTextColumnModule.js +2 -2
- package/src/Strategy/GridInfoModule.js +2 -2
- package/src/Strategy/Interface/IModule.d.ts +7 -3
- package/src/Strategy/LayoutModule.js +11 -11
- package/src/Strategy/NoteModule.d.ts +1 -1
- package/src/Strategy/NoteModule.js +3 -3
- package/src/Strategy/PlusMinusModule.d.ts +3 -4
- package/src/Strategy/PlusMinusModule.js +2 -2
- package/src/Strategy/QuickSearchModule.d.ts +2 -0
- package/src/Strategy/QuickSearchModule.js +9 -0
- package/src/Strategy/ScheduleModule.d.ts +3 -4
- package/src/Strategy/ScheduleModule.js +2 -2
- package/src/Strategy/SettingsPanelModule.js +1 -1
- package/src/Strategy/ShortcutModule.d.ts +3 -4
- package/src/Strategy/ShortcutModule.js +2 -2
- package/src/Strategy/StatusBarModule.d.ts +3 -2
- package/src/Strategy/StatusBarModule.js +6 -3
- package/src/Strategy/StyledColumnModule.d.ts +3 -4
- package/src/Strategy/StyledColumnModule.js +2 -2
- package/src/Strategy/SystemStatusModule.js +2 -2
- package/src/Strategy/TeamSharingModule.d.ts +1 -1
- package/src/Strategy/TeamSharingModule.js +5 -2
- package/src/Strategy/ToolPanelModule.d.ts +1 -1
- package/src/Strategy/ToolPanelModule.js +1 -4
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +1 -1
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -0
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +15 -2
- package/src/Utilities/Extensions/ArrayExtensions.js +62 -13
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +1 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +1 -0
- package/src/Utilities/ObjectFactory.d.ts +7 -3
- package/src/Utilities/ObjectFactory.js +26 -18
- package/src/Utilities/Services/AnnotationsService.js +1 -1
- package/src/Utilities/Services/Interface/IModuleService.d.ts +2 -1
- package/src/Utilities/Services/ModuleService.d.ts +3 -3
- package/src/Utilities/Services/ModuleService.js +19 -7
- package/src/View/AdaptableView.js +3 -1
- package/src/View/ColumnInfo/ColumnInfo.js +9 -3
- package/src/View/Components/AdaptableIconSelector/index.js +2 -3
- package/src/View/Components/ColumnFilter/AdaptableColumnFilter.d.ts +0 -1
- package/src/View/Components/ColumnFilter/AdaptableColumnFilter.js +2 -3
- package/src/View/Components/ColumnFilter/AdaptableFloatingFilter.d.ts +0 -2
- package/src/View/Components/ColumnFilter/AdaptableFloatingFilter.js +4 -7
- package/src/View/Components/ColumnFilter/ColumnFilter.js +11 -4
- package/src/View/Components/ColumnFilter/ColumnFilterWindow.js +1 -1
- package/src/View/Components/ColumnFilter/FloatingFilter.js +1 -2
- package/src/View/Components/ColumnFilter/LayoutColumnFilter.js +1 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +2 -2
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +2 -2
- package/src/View/Components/ColumnFilter/useAdaptableFilterWrapper.d.ts +1 -1
- package/src/View/Components/ColumnFilter/useAdaptableFilterWrapper.js +2 -2
- package/src/View/Components/ColumnFilter/utils.d.ts +2 -2
- package/src/View/Components/ColumnFilter/utils.js +6 -1
- package/src/View/Components/EntityRulesEditor/index.js +1 -2
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +6 -6
- package/src/View/Components/PredicateEditor/PredicateEditor.js +1 -2
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +1 -1
- package/src/View/Components/Selectors/ColumnSelector.js +1 -1
- package/src/View/Components/Selectors/FieldSelector.js +1 -1
- package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +1 -0
- package/src/View/Components/Selectors/PermittedValuesSelector.js +2 -2
- package/src/View/Dashboard/Dashboard.js +2 -2
- package/src/View/Dashboard/DashboardPopup.js +3 -1
- package/src/View/Dashboard/PinnedDashboard.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +9 -21
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +58 -21
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +11 -11
- package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.js +1 -1
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +1 -1
- package/src/View/Layout/TransposedPopup.js +2 -2
- package/src/View/Layout/Wizard/LayoutWizard.js +5 -7
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +64 -9
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +5 -5
- package/src/View/StatusBar/AdaptableStatusBar.js +1 -4
- package/src/View/StatusBar/StatusBarPopup.js +1 -1
- package/src/View/Theme/ThemeSelector.js +1 -1
- package/src/agGrid/AdaptableAgGrid.d.ts +11 -7
- package/src/agGrid/AdaptableAgGrid.js +251 -216
- package/src/agGrid/AdaptableFilterHandler.d.ts +18 -0
- package/src/agGrid/AdaptableFilterHandler.js +61 -0
- package/src/agGrid/AgGridAdapter.d.ts +3 -7
- package/src/agGrid/AgGridAdapter.js +13 -46
- package/src/agGrid/AgGridColumnAdapter.d.ts +2 -2
- package/src/agGrid/AgGridColumnAdapter.js +81 -36
- package/src/agGrid/AgGridFilterAdapter.d.ts +2 -0
- package/src/agGrid/AgGridFilterAdapter.js +48 -0
- package/src/agGrid/AgGridFloatingFilterAdapter.d.ts +2 -0
- package/src/agGrid/{FloatingFilterWrapper.js → AgGridFloatingFilterAdapter.js} +24 -35
- package/src/agGrid/AgGridModulesAdapter.d.ts +15 -0
- package/src/agGrid/AgGridModulesAdapter.js +66 -0
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
- package/src/agGrid/editors/AdaptablePercentageEditor/InternalAdaptablePercentageEditor.js +1 -1
- package/src/components/Dialog/index.js +1 -1
- package/src/components/Dropdown/Arrows.js +2 -2
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +1 -1
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +2 -2
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +2 -2
- package/src/components/FileDroppable/index.js +1 -1
- package/src/components/IconSelector/IconSelector.d.ts +2 -2
- package/src/components/OverlayTrigger/index.js +1 -1
- package/src/components/Select/Select.d.ts +1 -1
- package/src/components/Select/Select.js +116 -24
- package/src/components/icons/DefaultIcon.d.ts +0 -1
- package/src/components/icons/DefaultIcon.js +0 -6
- package/src/env.js +2 -2
- package/src/layout-manager/src/LayoutManagerModel.d.ts +6 -10
- package/src/layout-manager/src/index.d.ts +11 -3
- package/src/layout-manager/src/index.js +302 -87
- package/src/layout-manager/src/normalizeLayoutModel.js +7 -4
- package/src/layout-manager/src/simplifyLayoutModel.js +4 -4
- package/src/metamodel/adaptable.metamodel.d.ts +103 -40
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/AdaptableUpgradeHelper.js +2 -0
- package/src/migration/VersionUpgrade17.js +1 -1
- package/src/migration/VersionUpgrade20.js +1 -0
- package/src/migration/VersionUpgrade21.d.ts +6 -0
- package/src/migration/VersionUpgrade21.js +24 -0
- package/src/types.d.ts +7 -8
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/AdaptableState/Common/ExtendedLayoutInfo.d.ts +0 -27
- package/src/agGrid/FilterWrapper.d.ts +0 -2
- package/src/agGrid/FilterWrapper.js +0 -131
- package/src/agGrid/FloatingFilterWrapper.d.ts +0 -2
- package/src/agGrid/agGridModules.d.ts +0 -3
- package/src/agGrid/agGridModules.js +0 -15
- package/src/agGrid/getAgGridFilterNotifyModelFn.d.ts +0 -2
- package/src/agGrid/getAgGridFilterNotifyModelFn.js +0 -16
- /package/src/AdaptableState/Common/{ExtendedLayoutInfo.js → ExtendedLayout.js} +0 -0
|
@@ -6,7 +6,7 @@ import { RowScope } from './Common/RowScope';
|
|
|
6
6
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
7
7
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
8
8
|
import { TypeHint } from './Common/Types';
|
|
9
|
-
import { AdaptableBooleanQuery } from '../types';
|
|
9
|
+
import { AdaptableBooleanQuery, LayoutExtendedConfig } from '../types';
|
|
10
10
|
import { AdaptableColumnPredicate } from './Common/AdaptablePredicate';
|
|
11
11
|
/**
|
|
12
12
|
* Adaptable State Section for Format Column Module
|
|
@@ -89,3 +89,10 @@ export type SystemFormatColumnPredicateIds = SystemFormatColumnPredicateId[];
|
|
|
89
89
|
* List of System Predicates available for Format Columns
|
|
90
90
|
*/
|
|
91
91
|
export type SystemFormatColumnPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'WorkDay' | 'Holiday' | 'True' | 'False' | 'In' | 'NotIn';
|
|
92
|
+
/**
|
|
93
|
+
* Config for api methods that get Format Columns
|
|
94
|
+
*/
|
|
95
|
+
export interface FormatColumnConfig extends LayoutExtendedConfig {
|
|
96
|
+
includeSuspended?: boolean;
|
|
97
|
+
target?: FormatColumnTarget;
|
|
98
|
+
}
|
|
@@ -93,7 +93,7 @@ export interface InternalState extends IPushPullState, OpenFinState {
|
|
|
93
93
|
* Keeps session-relevant information for Layout
|
|
94
94
|
*/
|
|
95
95
|
Layout: {
|
|
96
|
-
|
|
96
|
+
showLayoutNonExtendedObjects: boolean;
|
|
97
97
|
};
|
|
98
98
|
/**
|
|
99
99
|
* Equivalent of `UserInterfaceOptions.disableDeleteConfirmation`
|
|
@@ -36,9 +36,9 @@ export interface LayoutBase extends AdaptableObject {
|
|
|
36
36
|
*/
|
|
37
37
|
Name: string;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Controls size (width or flex & min/max) for Columns
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
ColumnSizing?: ColumnSizingMap;
|
|
42
42
|
/**
|
|
43
43
|
* Defines which Row Groups are expanded / collapsed
|
|
44
44
|
*/
|
|
@@ -79,6 +79,10 @@ export interface LayoutBase extends AdaptableObject {
|
|
|
79
79
|
* Position of the Grand Total Row in the Layout
|
|
80
80
|
*/
|
|
81
81
|
GrandTotalRow?: 'top' | 'bottom' | 'pinnedTop' | 'pinnedBottom' | boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Display Row Grouped Columns as 'single' or 'multi' column
|
|
84
|
+
*/
|
|
85
|
+
RowGroupDisplayType?: 'single' | 'multi';
|
|
82
86
|
}
|
|
83
87
|
/**
|
|
84
88
|
* Defines a Table-based Layout
|
|
@@ -104,10 +108,6 @@ export interface TableLayout extends LayoutBase {
|
|
|
104
108
|
* Columns which are row-grouped when the Layout is applied
|
|
105
109
|
*/
|
|
106
110
|
RowGroupedColumns?: string[];
|
|
107
|
-
/**
|
|
108
|
-
* Display Row Grouped Columns as 'single' or 'multi' column
|
|
109
|
-
*/
|
|
110
|
-
RowGroupDisplayType?: 'single' | 'multi';
|
|
111
111
|
/**
|
|
112
112
|
* Pivot Columns - must NOT be provided
|
|
113
113
|
*/
|
|
@@ -227,6 +227,12 @@ export type ColumnGroupValuesWithExceptionKeys = {
|
|
|
227
227
|
*/
|
|
228
228
|
ExceptionGroupKeys?: any[];
|
|
229
229
|
};
|
|
230
|
+
/**
|
|
231
|
+
* Defines a map of Columns with Sizing information
|
|
232
|
+
*/
|
|
233
|
+
export type ColumnSizingMap = {
|
|
234
|
+
[columnId: string]: ColumnSizingDefinition;
|
|
235
|
+
};
|
|
230
236
|
/**
|
|
231
237
|
* Defines a map of Columns with a String value
|
|
232
238
|
*/
|
|
@@ -251,6 +257,20 @@ export type ColumnBooleanFalseMap = {
|
|
|
251
257
|
export type ColumnDirectionMap = {
|
|
252
258
|
[columnId: string]: 'left' | 'right';
|
|
253
259
|
};
|
|
260
|
+
/**
|
|
261
|
+
* State & behaviour for sizing a column (must set `width` or `flex` property, but not both); all other props optional
|
|
262
|
+
*/
|
|
263
|
+
export type ColumnSizingDefinition = ({
|
|
264
|
+
Width?: number;
|
|
265
|
+
Flex?: never;
|
|
266
|
+
} | {
|
|
267
|
+
Flex?: number;
|
|
268
|
+
Width?: never;
|
|
269
|
+
}) & {
|
|
270
|
+
Resizable?: boolean;
|
|
271
|
+
MinWidth?: number;
|
|
272
|
+
MaxWidth?: number;
|
|
273
|
+
};
|
|
254
274
|
/**
|
|
255
275
|
* The OLD Layout - kept temporarily so we can check what we previously had
|
|
256
276
|
*/
|
|
@@ -55,7 +55,39 @@ export interface GridCell<TData = any> {
|
|
|
55
55
|
isRowGroupCell: boolean;
|
|
56
56
|
}
|
|
57
57
|
export interface GridCellWithCount extends GridCell {
|
|
58
|
+
/**
|
|
59
|
+
* How many times Cell appears in Data Source
|
|
60
|
+
*/
|
|
58
61
|
count: number;
|
|
62
|
+
/**
|
|
63
|
+
* How many times Cell appears in Visible Rows
|
|
64
|
+
*/
|
|
65
|
+
visibleCount?: number;
|
|
66
|
+
}
|
|
67
|
+
export interface UniqueGridCell<TData = any> {
|
|
68
|
+
/**
|
|
69
|
+
* Raw value of Cell
|
|
70
|
+
*/
|
|
71
|
+
rawValue: any;
|
|
72
|
+
/**
|
|
73
|
+
* Normalised value of Cell
|
|
74
|
+
*/
|
|
75
|
+
normalisedValue: any;
|
|
76
|
+
/**
|
|
77
|
+
* Display value of Cell (e.g. if formatted)
|
|
78
|
+
*/
|
|
79
|
+
displayValue: any;
|
|
80
|
+
/**
|
|
81
|
+
* Is Cell in a currently filtered Row
|
|
82
|
+
*/
|
|
83
|
+
visible: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* How many times Cell appears in Data Source
|
|
86
|
+
*/
|
|
87
|
+
count: number;
|
|
88
|
+
/**
|
|
89
|
+
* How many times Cell appears in filtered Rows
|
|
90
|
+
*/
|
|
59
91
|
visibleCount: number;
|
|
60
92
|
}
|
|
61
93
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseState } from './BaseState';
|
|
2
2
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
3
|
-
import {
|
|
3
|
+
import { AdaptablePredicate, AdaptableStyle, AdaptableBooleanQuery, AdaptableIcon } from '../types';
|
|
4
4
|
import { TypeHint } from './Common/Types';
|
|
5
5
|
import { RowScope } from './Common/RowScope';
|
|
6
6
|
import { AgSparklineOptions } from 'ag-charts-types';
|
|
@@ -173,7 +173,7 @@ export interface BadgeStyleDefinition {
|
|
|
173
173
|
/**
|
|
174
174
|
* Icon to display in Badge
|
|
175
175
|
*/
|
|
176
|
-
Icon?:
|
|
176
|
+
Icon?: AdaptableIcon;
|
|
177
177
|
/**
|
|
178
178
|
* Position of Icon in the Badge - 'Start' or 'End'
|
|
179
179
|
*/
|
package/src/Api/AlertApi.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AlertDefinition, AlertState } from '../AdaptableState/AlertState';
|
|
2
2
|
import { AdaptableAlert } from '../AdaptableState/Common/AdaptableAlert';
|
|
3
|
-
import { AdaptableMessageType, AlertProperties } from '../types';
|
|
3
|
+
import { AdaptableMessageType, AlertProperties, LayoutExtendedConfig } from '../types';
|
|
4
4
|
import { AdaptableObjectLookupCriteria } from '../AdaptableState/Common/AdaptableObject';
|
|
5
5
|
/**
|
|
6
6
|
* Provides run-time access to Alert function and associated State
|
|
@@ -19,27 +19,21 @@ export interface AlertApi {
|
|
|
19
19
|
* Retrieves all Alert Definitions in Alert State
|
|
20
20
|
* @returns alert definitions
|
|
21
21
|
*/
|
|
22
|
-
getAlertDefinitions(config?:
|
|
23
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
24
|
-
}): AlertDefinition[];
|
|
22
|
+
getAlertDefinitions(config?: LayoutExtendedConfig): AlertDefinition[];
|
|
25
23
|
/**
|
|
26
24
|
* Retrieves all Alert Definitions which are currently suspended
|
|
27
25
|
*/
|
|
28
|
-
getSuspendedAlertDefinitions(config?:
|
|
29
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
30
|
-
}): AlertDefinition[];
|
|
26
|
+
getSuspendedAlertDefinitions(config?: LayoutExtendedConfig): AlertDefinition[];
|
|
31
27
|
/**
|
|
32
28
|
* Retrieves all Alert Definitions which are currently active
|
|
33
29
|
*/
|
|
34
|
-
getActiveAlertDefinitions(config?:
|
|
35
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
36
|
-
}): AlertDefinition[];
|
|
30
|
+
getActiveAlertDefinitions(config?: LayoutExtendedConfig): AlertDefinition[];
|
|
37
31
|
/**
|
|
38
32
|
* Retrieves alert definition by the technical ID (from `AlertState`)
|
|
39
33
|
* @param id alert definition id
|
|
40
34
|
* @returns alert definition
|
|
41
35
|
*/
|
|
42
|
-
getAlertDefinitionById(id: AlertDefinition['Uuid']): AlertDefinition;
|
|
36
|
+
getAlertDefinitionById(id: AlertDefinition['Uuid'], config?: LayoutExtendedConfig): AlertDefinition;
|
|
43
37
|
/**
|
|
44
38
|
* Adds given Alert Definition to Adaptable State
|
|
45
39
|
* @param alertDefinition AlertDefinition to add
|
package/src/Api/ColumnApi.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AdaptableColumn, AdaptableColumnDataType, Layout } from '../../types';
|
|
2
|
+
import { AdaptableColumnSummary } from '../AdaptableState/Common/AdaptableColumn';
|
|
2
3
|
import { ColDef, ColGroupDef, Column } from 'ag-grid-enterprise';
|
|
3
4
|
/**
|
|
4
5
|
* Provides run-time access to AdapTable Column related features
|
|
@@ -13,7 +14,7 @@ export interface ColumnApi {
|
|
|
13
14
|
*/
|
|
14
15
|
getUIAvailableColumns(): AdaptableColumn[];
|
|
15
16
|
/**
|
|
16
|
-
* Returns all columns excluding Action, FreeText and Calculated Columns
|
|
17
|
+
* Returns all UI available columns excluding Action, FreeText and Calculated Columns
|
|
17
18
|
*/
|
|
18
19
|
getNonSpecialColumns(): AdaptableColumn[];
|
|
19
20
|
/**
|
|
@@ -174,6 +175,11 @@ export interface ColumnApi {
|
|
|
174
175
|
* @param columnId ColumnId to check
|
|
175
176
|
*/
|
|
176
177
|
isPivotResultColumn(columnId: string): boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Checks if Column with given ColumnId is a Special (i.e. calculated, freetext or action) Column
|
|
180
|
+
* @param columnId ColumnId to check
|
|
181
|
+
*/
|
|
182
|
+
isSpecialColumn(columnId: string): boolean;
|
|
177
183
|
/**
|
|
178
184
|
* Checks if Column with given ColumnId is a Calculated Column
|
|
179
185
|
* @param columnId ColumnId to check
|
|
@@ -329,4 +335,14 @@ export interface ColumnApi {
|
|
|
329
335
|
* @param columnType - Column Type to check for
|
|
330
336
|
*/
|
|
331
337
|
hasColumnType(columnIdentifier: string | ColDef, columnType: string): boolean;
|
|
338
|
+
/**
|
|
339
|
+
* Gets summary info for a column including filters and unique values
|
|
340
|
+
* @param columnId Column to summarise
|
|
341
|
+
*/
|
|
342
|
+
getColumnSummaryForColumnId(columnId: string): AdaptableColumnSummary;
|
|
343
|
+
/**
|
|
344
|
+
* Whether column is auto generated by AG Grid (for selection, grouping, pivoting etc)
|
|
345
|
+
* @param columnId column to check
|
|
346
|
+
*/
|
|
347
|
+
isAgGridGeneratedColumn(columnId: string): boolean;
|
|
332
348
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdaptableColumn, ColumnFilter, ColumnFilterPredicate } from '../types';
|
|
1
|
+
import { AdaptableColumn, ColumnFilter, ColumnFilterPredicate, InFilterValue, InFilterValueInfo } from '../types';
|
|
2
2
|
import { AdaptablePredicateDef, ColumnFilterDef } from '../AdaptableState/Common/AdaptablePredicate';
|
|
3
3
|
/**
|
|
4
4
|
* Provides run-time access to Filter section of Adaptable State.
|
|
@@ -122,9 +122,39 @@ export interface ColumnFilterApi {
|
|
|
122
122
|
*/
|
|
123
123
|
columnFiltersToString(columnFilters: ColumnFilter[]): string;
|
|
124
124
|
/**
|
|
125
|
-
* Sets the Column Filter for a given Column
|
|
125
|
+
* Sets the Column Filter for a given Column (clears any existing)
|
|
126
126
|
* @param columnId - Column ID to set Column Filter for
|
|
127
127
|
* @param predicate - Column Filter to set
|
|
128
128
|
*/
|
|
129
129
|
setColumnFilterForColumn(columnId: string, predicate: ColumnFilterPredicate): void;
|
|
130
|
+
/**
|
|
131
|
+
* Adds the Blanks Predicate if any value is null, undefined or an empty string
|
|
132
|
+
* @param columnDistinctValues list to check for empty values
|
|
133
|
+
*/
|
|
134
|
+
addBlanksToInFilterValues(columnDistinctValues: InFilterValueInfo[]): InFilterValueInfo[];
|
|
135
|
+
/**
|
|
136
|
+
* Refresh(reload) the filter values for a given Column (for `IN` Filter).
|
|
137
|
+
*
|
|
138
|
+
* @param columnId - the ID of the Column for which to refresh filter values.
|
|
139
|
+
* @return a Promise that resolves to the list of filter values, each represented as an object with `value` and `label` properties.
|
|
140
|
+
*/
|
|
141
|
+
refreshFilterValues(columnId: string): Promise<InFilterValue[]>;
|
|
142
|
+
/**
|
|
143
|
+
* Refreshes (reloads) the filter values for ALL Columns (for `IN` Filter).
|
|
144
|
+
*
|
|
145
|
+
* @returns A Promise that resolves to a map where:
|
|
146
|
+
* - keys are column IDs (string)
|
|
147
|
+
* - values are arrays of filter values for the corresponding column
|
|
148
|
+
* Each filter value contains a `value` and display `label` property
|
|
149
|
+
*/
|
|
150
|
+
refreshAllFilterValues(): Promise<Record<string, InFilterValue[]>>;
|
|
151
|
+
/**
|
|
152
|
+
* Reset(clear cache) the filter values for a given Column (for `IN` Filter).
|
|
153
|
+
* @param columnId - the ID of the Column for which to reset filter values.
|
|
154
|
+
*/
|
|
155
|
+
resetFilterValues(columnId: string): void;
|
|
156
|
+
/**
|
|
157
|
+
* Reset(clear cache) the filter values for ALL Columns (for `IN` Filter).
|
|
158
|
+
*/
|
|
159
|
+
resetAllFilterValues(): void;
|
|
130
160
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ColumnValuesComparer } from '../AdaptableOptions/CustomSortOptions';
|
|
2
2
|
import { CustomSortState, CustomSort } from '../AdaptableState/CustomSortState';
|
|
3
|
+
import { LayoutExtendedConfig } from '../types';
|
|
3
4
|
/**
|
|
4
5
|
* Provides run-time access to the Custom Sort function
|
|
5
6
|
*/
|
|
@@ -11,15 +12,13 @@ export interface CustomSortApi {
|
|
|
11
12
|
/**
|
|
12
13
|
* Retrieves all Custom Sorts in Adaptable State
|
|
13
14
|
*/
|
|
14
|
-
getCustomSorts(config?:
|
|
15
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
16
|
-
}): CustomSort[];
|
|
15
|
+
getCustomSorts(config?: LayoutExtendedConfig): CustomSort[];
|
|
17
16
|
/**
|
|
18
17
|
* Retrieves Custom Sort by the technical ID (from `CustomSortState`)
|
|
19
18
|
* @param id Custom Sort technical id
|
|
20
19
|
* @returns Custom Sort
|
|
21
20
|
*/
|
|
22
|
-
getCustomSortById(id: CustomSort['Uuid']): CustomSort;
|
|
21
|
+
getCustomSortById(id: CustomSort['Uuid'], config?: LayoutExtendedConfig): CustomSort;
|
|
23
22
|
/**
|
|
24
23
|
* Retrieves all Custom Sorts in Adaptable State that are currently applied
|
|
25
24
|
* @returns Custom Sorts
|
|
@@ -33,16 +32,12 @@ export interface CustomSortApi {
|
|
|
33
32
|
* Retrieves all Custom Sorts that are active (not-suspended) in Adaptable State
|
|
34
33
|
* @returns Custom Sorts
|
|
35
34
|
*/
|
|
36
|
-
getActiveCustomSorts(config?:
|
|
37
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
38
|
-
}): CustomSort[];
|
|
35
|
+
getActiveCustomSorts(config?: LayoutExtendedConfig): CustomSort[];
|
|
39
36
|
/**
|
|
40
37
|
* Retrieves all Custom Sorts that are suspended in Adaptable State
|
|
41
38
|
* @returns Custom Sorts
|
|
42
39
|
*/
|
|
43
|
-
getSuspendedCustomSorts(config?:
|
|
44
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
45
|
-
}): CustomSort[];
|
|
40
|
+
getSuspendedCustomSorts(config?: LayoutExtendedConfig): CustomSort[];
|
|
46
41
|
/**
|
|
47
42
|
* Retrieves Custom Sort from Adaptable State for Column with given ColumnId
|
|
48
43
|
* @param columnId Id of Column to retrieve Custom Sort for
|
|
@@ -3,6 +3,7 @@ import { AdaptablePredicateDef } from '../AdaptableState/Common/AdaptablePredica
|
|
|
3
3
|
import { ColumnScope } from '../AdaptableState/Common/ColumnScope';
|
|
4
4
|
import { FlashingCellDefinition, FlashingCellState } from '../AdaptableState/FlashingCellState';
|
|
5
5
|
import { AdaptableObjectLookupCriteria } from '../AdaptableState/Common/AdaptableObject';
|
|
6
|
+
import { LayoutExtendedConfig } from '../types';
|
|
6
7
|
/**
|
|
7
8
|
* Provides run-time access to Flashing Cell functionality and associated State
|
|
8
9
|
*/
|
|
@@ -15,25 +16,23 @@ export interface FlashingCellApi {
|
|
|
15
16
|
/**
|
|
16
17
|
* Retrieves all Flashing Cell Definitions in Flashing Cell State
|
|
17
18
|
*/
|
|
18
|
-
getFlashingCellDefinitions(config?:
|
|
19
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
20
|
-
}): FlashingCellDefinition[];
|
|
19
|
+
getFlashingCellDefinitions(config?: LayoutExtendedConfig): FlashingCellDefinition[];
|
|
21
20
|
/**
|
|
22
21
|
* Retrieves Flashing Cell Definition by the technical ID (from `FlashingCellState`)
|
|
23
22
|
* @param id Flashing Cell Definition Id
|
|
24
23
|
* @returns Flashing Cell Definition
|
|
25
24
|
*/
|
|
26
|
-
getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid']): FlashingCellDefinition;
|
|
25
|
+
getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid'], config?: LayoutExtendedConfig): FlashingCellDefinition;
|
|
27
26
|
/**
|
|
28
27
|
* Retrieves all active (non-suspended) cell Definitions in Flashing Cell State
|
|
29
28
|
* @returns flashing cell definitions
|
|
30
29
|
*/
|
|
31
|
-
getActiveFlashingCellDefinitions(): FlashingCellDefinition[];
|
|
30
|
+
getActiveFlashingCellDefinitions(config?: LayoutExtendedConfig): FlashingCellDefinition[];
|
|
32
31
|
/**
|
|
33
32
|
* Retrieves all suspended Cell Definitions in Flashing Cell State
|
|
34
33
|
* @returns flashing cell definitions
|
|
35
34
|
*/
|
|
36
|
-
getSuspendedFlashingCellDefinitions(): FlashingCellDefinition[];
|
|
35
|
+
getSuspendedFlashingCellDefinitions(config?: LayoutExtendedConfig): FlashingCellDefinition[];
|
|
37
36
|
/**
|
|
38
37
|
* Returns `FlashTarget` of the given Flashing Cell Definition
|
|
39
38
|
* @param flashingCellDefinition Flashing Cell Definition to check
|
|
@@ -61,6 +60,11 @@ export interface FlashingCellApi {
|
|
|
61
60
|
* @param flashingCellDefinition Flashing Cell Definition to Add
|
|
62
61
|
*/
|
|
63
62
|
addFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
63
|
+
/**
|
|
64
|
+
* Deletes a Flashing Cell
|
|
65
|
+
* @param flashingCellDefinition flashing cell to delete
|
|
66
|
+
*/
|
|
67
|
+
deleteFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): void;
|
|
64
68
|
/**
|
|
65
69
|
* Sets a collection of Flashing Cell Definitions into State
|
|
66
70
|
* @param flashingCellDefinitions Flashing Cell Definitions to Add to State
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormatColumn, FormatColumnState } from '../AdaptableState/FormatColumnState';
|
|
2
|
-
import { AdaptableColumn, AdaptableFormat, AdaptableObjectLookupCriteria } from '../types';
|
|
2
|
+
import { AdaptableColumn, AdaptableFormat, AdaptableObjectLookupCriteria, FormatColumnConfig } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Provides run-time access to the Format Column Module and associated state
|
|
5
5
|
*/
|
|
@@ -12,34 +12,28 @@ export interface FormatColumnApi {
|
|
|
12
12
|
* Retrieves all Format Columns in Adaptable State
|
|
13
13
|
* @returns format columns
|
|
14
14
|
*/
|
|
15
|
-
getFormatColumns(config?:
|
|
16
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
17
|
-
}): FormatColumn[];
|
|
15
|
+
getFormatColumns(config?: FormatColumnConfig): FormatColumn[];
|
|
18
16
|
/**
|
|
19
17
|
* Retrieves Format Column by the technical ID (from `FormatColumnState`)
|
|
20
18
|
* @param id Format Column id
|
|
21
19
|
* @returns format column
|
|
22
20
|
*/
|
|
23
|
-
getFormatColumnByUuId(id: FormatColumn['Uuid']): FormatColumn;
|
|
21
|
+
getFormatColumnByUuId(id: FormatColumn['Uuid'], config?: FormatColumnConfig): FormatColumn;
|
|
24
22
|
/**
|
|
25
23
|
* Retrieves all active (not-suspended) Format Columns in Adaptable State
|
|
26
24
|
* @returns format columns
|
|
27
25
|
*/
|
|
28
|
-
getActiveFormatColumns(config?:
|
|
29
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
30
|
-
}): FormatColumn[];
|
|
26
|
+
getActiveFormatColumns(config?: FormatColumnConfig): FormatColumn[];
|
|
31
27
|
/**
|
|
32
28
|
* Retrieves the first Format Column's Adaptable Format for a given Column
|
|
33
29
|
* @param column Column to check
|
|
34
30
|
*/
|
|
35
|
-
getDisplayFormatForColumn(column: AdaptableColumn): AdaptableFormat | undefined;
|
|
31
|
+
getDisplayFormatForColumn(column: AdaptableColumn, config?: FormatColumnConfig): AdaptableFormat | undefined;
|
|
36
32
|
/**
|
|
37
33
|
* Retrieves all suspended Format Columns in Adaptable State
|
|
38
34
|
* @returns format columns
|
|
39
35
|
*/
|
|
40
|
-
getSuspendedFormatColumns(config?:
|
|
41
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
42
|
-
}): FormatColumn[];
|
|
36
|
+
getSuspendedFormatColumns(config?: FormatColumnConfig): FormatColumn[];
|
|
43
37
|
/**
|
|
44
38
|
* Adds a Format Column to Format Column State
|
|
45
39
|
* @param formatColumn Format Column to Add
|
|
@@ -96,17 +90,13 @@ export interface FormatColumnApi {
|
|
|
96
90
|
* @param column The Column for which to retrieve the Format Column
|
|
97
91
|
* @returns format column
|
|
98
92
|
*/
|
|
99
|
-
getFormatColumnsForColumn(column: AdaptableColumn, config?:
|
|
100
|
-
includeSuspended?: boolean;
|
|
101
|
-
}): FormatColumn[];
|
|
93
|
+
getFormatColumnsForColumn(column: AdaptableColumn, config?: FormatColumnConfig): FormatColumn[];
|
|
102
94
|
/**
|
|
103
95
|
* Gets all FormatColumns which are defined for the column with the given columnId
|
|
104
96
|
* @param columnId ColumnId for which to retrieve the Format Column
|
|
105
97
|
* @returns format column
|
|
106
98
|
*/
|
|
107
|
-
getFormatColumnsForColumnId(columnId: string, config?:
|
|
108
|
-
includeSuspended?: boolean;
|
|
109
|
-
}): FormatColumn[];
|
|
99
|
+
getFormatColumnsForColumnId(columnId: string, config?: FormatColumnConfig): FormatColumn[];
|
|
110
100
|
/**
|
|
111
101
|
* Checks if a Format Column contains a Custom Display Formatter
|
|
112
102
|
* @param formatColumn Format Column
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiBase
|
|
1
|
+
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { AlertApi } from '../AlertApi';
|
|
3
3
|
import { AlertDefinition, AlertProperties, AlertState } from '../../AdaptableState/AlertState';
|
|
4
4
|
import { AdaptableAlert } from '../../AdaptableState/Common/AdaptableAlert';
|
|
@@ -6,19 +6,16 @@ import { AdaptableMessageType } from '../../AdaptableState/Common/AdaptableMessa
|
|
|
6
6
|
import { AdaptableObjectLookupCriteria } from '../../AdaptableState/Common/AdaptableObject';
|
|
7
7
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
8
8
|
import { AlertInternalApi } from '../Internal/AlertInternalApi';
|
|
9
|
+
import { LayoutExtendedConfig } from '../../AdaptableState/Common/ExtendedLayout';
|
|
9
10
|
export declare class AlertApiImpl extends ApiBase implements AlertApi {
|
|
10
11
|
internalApi: AlertInternalApi;
|
|
11
12
|
constructor(_adaptable: IAdaptable);
|
|
12
13
|
getAlertState(): AlertState;
|
|
13
|
-
getAlertDefinitions(config?:
|
|
14
|
-
getSuspendedAlertDefinitions(config?:
|
|
15
|
-
|
|
16
|
-
}): AlertDefinition[];
|
|
17
|
-
getActiveAlertDefinitions(config?: {
|
|
18
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
19
|
-
}): AlertDefinition[];
|
|
14
|
+
getAlertDefinitions(config?: LayoutExtendedConfig): AlertDefinition[];
|
|
15
|
+
getSuspendedAlertDefinitions(config?: LayoutExtendedConfig): AlertDefinition[];
|
|
16
|
+
getActiveAlertDefinitions(config?: LayoutExtendedConfig): AlertDefinition[];
|
|
20
17
|
deleteAlertDefinition(alertDefinition: AlertDefinition): void;
|
|
21
|
-
getAlertDefinitionById(id: AlertDefinition['Uuid']): AlertDefinition;
|
|
18
|
+
getAlertDefinitionById(id: AlertDefinition['Uuid'], config?: LayoutExtendedConfig): AlertDefinition;
|
|
22
19
|
addAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
23
20
|
displayAdaptableAlert(alertToShow: AdaptableAlert): Promise<void>;
|
|
24
21
|
displayAdaptableAlertNotification(alert: AdaptableAlert): void;
|
|
@@ -16,7 +16,7 @@ export class AlertApiImpl extends ApiBase {
|
|
|
16
16
|
return this.getAdaptableState().Alert;
|
|
17
17
|
}
|
|
18
18
|
getAlertDefinitions(config) {
|
|
19
|
-
return (this.
|
|
19
|
+
return (this.handleLayoutExtensionObjects(this.getAlertState().AlertDefinitions, 'Alert', config) ??
|
|
20
20
|
[]);
|
|
21
21
|
}
|
|
22
22
|
getSuspendedAlertDefinitions(config) {
|
|
@@ -28,8 +28,8 @@ export class AlertApiImpl extends ApiBase {
|
|
|
28
28
|
deleteAlertDefinition(alertDefinition) {
|
|
29
29
|
this.dispatchAction(AlertRedux.AlertDefinitionDelete(alertDefinition));
|
|
30
30
|
}
|
|
31
|
-
getAlertDefinitionById(id) {
|
|
32
|
-
return this.getAlertDefinitions().find((alert) => alert?.Uuid === id);
|
|
31
|
+
getAlertDefinitionById(id, config) {
|
|
32
|
+
return this.getAlertDefinitions(config).find((alert) => alert?.Uuid === id);
|
|
33
33
|
}
|
|
34
34
|
addAlertDefinition(alertDefinition) {
|
|
35
35
|
this.addUidToAdaptableObject(alertDefinition);
|
|
@@ -189,9 +189,10 @@ export class AlertApiImpl extends ApiBase {
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
findAlertDefinitions(criteria) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
192
|
+
const config = {
|
|
193
|
+
includeLayoutNotExtendedObjects: true,
|
|
194
|
+
};
|
|
195
|
+
return this.getAdaptableInternalApi().findAdaptableObjectsByLookupCriteria(criteria, this.getAlertDefinitions(config));
|
|
195
196
|
}
|
|
196
197
|
getRelevantColumnIdsForAlertDefinition(alertDefinition) {
|
|
197
198
|
// if there is an Expression defined, extract only the columns from there (in that case the Scope would be 'All' anyway)
|
|
@@ -8,7 +8,7 @@ import { AdaptableOptions } from '../../AdaptableOptions/AdaptableOptions';
|
|
|
8
8
|
import { AdaptableApi } from '../AdaptableApi';
|
|
9
9
|
import { GridApi as AgGridApi } from 'ag-grid-enterprise';
|
|
10
10
|
import { ExportOptions } from '../../AdaptableOptions/ExportOptions';
|
|
11
|
-
import { ActionColumnApi, ActionColumnOptions, AlertApi, AlertOptions, ApplicationApi, BulkUpdateApi, CalculatedColumnApi, CalendarApi, CalendarOptions, CellSummaryApi, CellSummaryOptions, ChartingApi, ChartingOptions, ColumnApi, FilterApi, ColumnOptions, CommentOptions, StateApi, ContainerOptions, CustomSortApi, CustomSortOptions, DashboardApi, DashboardOptions, DataChangeHistoryApi, DataChangeHistoryOptions, DataSetApi, DataSetOptions, EditOptions, EntitlementApi, EntitlementOptions, EventApi, ExportApi, ExpressionApi, ExpressionOptions, Fdc3Api, Fdc3Options, FlashingCellApi, FlashingCellOptions, FormatColumnApi, FormatColumnOptions, FreeTextColumnApi, GridApi, GridFilterApi, LayoutApi,
|
|
11
|
+
import { ActionColumnApi, ActionColumnOptions, AlertApi, AlertOptions, ApplicationApi, BulkUpdateApi, CalculatedColumnApi, CalendarApi, CalendarOptions, CellSummaryApi, CellSummaryOptions, ChartingApi, ChartingOptions, ColumnApi, FilterApi, ColumnOptions, CommentOptions, StateApi, ContainerOptions, CustomSortApi, CustomSortOptions, DashboardApi, DashboardOptions, DataChangeHistoryApi, DataChangeHistoryOptions, DataSetApi, DataSetOptions, EditOptions, EntitlementApi, EntitlementOptions, EventApi, ExportApi, ExpressionApi, ExpressionOptions, Fdc3Api, Fdc3Options, FlashingCellApi, FlashingCellOptions, FormatColumnApi, FormatColumnOptions, FreeTextColumnApi, GridApi, GridFilterApi, LayoutApi, LayoutExtensionObject, LayoutOptions, NamedQueryApi, NoteOptions, NotificationsOptions, PluginsApi, PlusMinusApi, PredicateApi, PredicateOptions, QuickSearchApi, QuickSearchOptions, ScheduleApi, ColumnScopeApi, SettingsPanelApi, SettingsPanelOptions, ShortcutApi, SmartEditApi, StateOptions, StatusBarApi, StyledColumnApi, SystemStatusApi, TeamSharingApi, TeamSharingOptions, ThemeApi, ToolPanelApi, ToolPanelOptions, UserInterfaceApi, UserInterfaceOptions, ColumnMenuOptions, ContextMenuOptions, FilterOptions, ColumnFilterApi, OptionsApi, LayoutExtensionModule, LayoutExtendedConfig } from '../../types';
|
|
12
12
|
import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
|
|
13
13
|
import { AdaptableInternalApi } from '../Internal/AdaptableInternalApi';
|
|
14
14
|
import { AdaptableLogger } from '../../agGrid/AdaptableLogger';
|
|
@@ -39,10 +39,7 @@ export declare abstract class ApiBase {
|
|
|
39
39
|
*/
|
|
40
40
|
protected checkItemExists(item: any, name: string, type: string): boolean;
|
|
41
41
|
protected checkArrayExists(array: any): boolean;
|
|
42
|
-
protected
|
|
43
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
44
|
-
associatedWithLayout?: string;
|
|
45
|
-
}): T[];
|
|
42
|
+
protected handleLayoutExtensionObjects<T extends LayoutExtensionObject>(objectList: T[], module: LayoutExtensionModule, config?: LayoutExtendedConfig): T[];
|
|
46
43
|
/**
|
|
47
44
|
* Base api Helper method that dispatches a *Redux Action* to the Store
|
|
48
45
|
* @param action the Redux Action to be dispatched
|
|
@@ -143,10 +140,3 @@ export declare abstract class ApiBase {
|
|
|
143
140
|
protected getOptionsApi(): OptionsApi;
|
|
144
141
|
destroy(): void;
|
|
145
142
|
}
|
|
146
|
-
/**
|
|
147
|
-
* Configuration for API methods which load `LayoutAssociatedObject`
|
|
148
|
-
*/
|
|
149
|
-
export interface LayoutAssociatedObjectLoadConfig {
|
|
150
|
-
includeLayoutNotAssociatedObjects?: boolean;
|
|
151
|
-
associatedWithLayout?: string;
|
|
152
|
-
}
|
|
@@ -52,14 +52,14 @@ export class ApiBase {
|
|
|
52
52
|
}
|
|
53
53
|
return true;
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
if (config?.
|
|
55
|
+
handleLayoutExtensionObjects(objectList = [], module, config) {
|
|
56
|
+
if (config?.includeLayoutNotExtendedObjects) {
|
|
57
57
|
return objectList;
|
|
58
58
|
}
|
|
59
|
-
const
|
|
60
|
-
? this.getLayoutApi().getLayoutByName(config.
|
|
59
|
+
const extendedLayout = config?.extendedLayoutName
|
|
60
|
+
? this.getLayoutApi().getLayoutByName(config.extendedLayoutName)
|
|
61
61
|
: this.getLayoutApi().getCurrentLayout();
|
|
62
|
-
return objectList.filter((objectItem) => this.
|
|
62
|
+
return objectList.filter((objectItem) => this.getLayoutApi().internalApi.isObjectExtendedInLayout(objectItem, module, extendedLayout));
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* Base api Helper method that dispatches a *Redux Action* to the Store
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
|
-
import { AdaptableColumn, AdaptableColumnDataType } from '../../AdaptableState/Common/AdaptableColumn';
|
|
2
|
+
import { AdaptableColumn, AdaptableColumnDataType, AdaptableColumnSummary } from '../../AdaptableState/Common/AdaptableColumn';
|
|
3
3
|
import { Layout } from '../../types';
|
|
4
4
|
import { ColumnApi } from '../ColumnApi';
|
|
5
5
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
@@ -15,9 +15,9 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
15
15
|
internalApi: ColumnInternalApi;
|
|
16
16
|
constructor(_adaptable: IAdaptable);
|
|
17
17
|
getColumns(): AdaptableColumn[];
|
|
18
|
+
getUIAvailableColumns(): AdaptableColumn[];
|
|
18
19
|
getSpecialColumns(): AdaptableColumn[];
|
|
19
20
|
getNonSpecialColumns(): AdaptableColumn[];
|
|
20
|
-
getUIAvailableColumns(): AdaptableColumn[];
|
|
21
21
|
getVisibleColumns(): AdaptableColumn[];
|
|
22
22
|
selectColumn(columnId: string): void;
|
|
23
23
|
selectColumns(columnIds: string[]): void;
|
|
@@ -34,6 +34,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
34
34
|
isAutoRowGroupColumn(columnId: string): boolean;
|
|
35
35
|
isAutoRowGroupColumnForSingle(columnId: string): boolean;
|
|
36
36
|
isAutoRowGroupColumnForMulti(columnId: string): boolean;
|
|
37
|
+
isSpecialColumn(columnId: string): boolean;
|
|
37
38
|
isCalculatedColumn(columnId: string): boolean;
|
|
38
39
|
isFreeTextColumn(columnId: string): boolean;
|
|
39
40
|
isActionColumn(columnId: string): boolean;
|
|
@@ -85,4 +86,6 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
85
86
|
getAGGridColDefForColumnId(columnId: string): ColDef | ColGroupDef;
|
|
86
87
|
getAGGridColumnForColumnId(columnId: string): Column;
|
|
87
88
|
hasColumnType(columnIdentifier: string | ColDef, columnType: string): boolean;
|
|
89
|
+
getColumnSummaryForColumnId(columnId: string): AdaptableColumnSummary;
|
|
90
|
+
isAgGridGeneratedColumn(columnId: string): boolean;
|
|
88
91
|
}
|