@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
|
@@ -41,36 +41,36 @@ export interface ColumnOptions {
|
|
|
41
41
|
*/
|
|
42
42
|
export interface BaseColumnHeaderContext extends BaseContext {
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Default header name for Column
|
|
45
45
|
*/
|
|
46
46
|
defaultHeaderName: string;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Name of Current Layout
|
|
49
49
|
*/
|
|
50
50
|
currentLayoutName: string;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Type (table/pivot) of Current Layout
|
|
53
53
|
*/
|
|
54
54
|
currentLayoutType: 'table' | 'pivot';
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Current Layout
|
|
57
57
|
*/
|
|
58
58
|
currentLayout: Layout;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
* Context for Columns created automatically by AG Grid when
|
|
61
|
+
* Context for Columns created automatically by AG Grid when Row Grouping
|
|
62
62
|
*/
|
|
63
63
|
export interface AutoGroupColumnHeaderContext extends BaseColumnHeaderContext {
|
|
64
64
|
/**
|
|
65
|
-
* Auto-generated Group Column when
|
|
65
|
+
* Auto-generated Row Group Column (when RowGroupDisplayType is `single`)
|
|
66
66
|
*/
|
|
67
67
|
columnType: 'autoGroupColumn';
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Id of the Column
|
|
70
70
|
*/
|
|
71
71
|
columnId: string;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Ids of all Row Grouped Columns
|
|
74
74
|
*/
|
|
75
75
|
groupedColumnIds: string[];
|
|
76
76
|
}
|
|
@@ -79,15 +79,15 @@ export interface AutoGroupColumnHeaderContext extends BaseColumnHeaderContext {
|
|
|
79
79
|
*/
|
|
80
80
|
export interface RowGroupColumnHeaderContext extends BaseColumnHeaderContext {
|
|
81
81
|
/**
|
|
82
|
-
* A Row Grouped Column
|
|
82
|
+
* A Row Grouped Column (created in both Table and Pivot Layout)
|
|
83
83
|
*/
|
|
84
84
|
columnType: 'rowGroupColumn';
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Id of the Column
|
|
87
87
|
*/
|
|
88
88
|
columnId: string;
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Id of Row Grouped Column
|
|
91
91
|
*/
|
|
92
92
|
groupColumnId: string;
|
|
93
93
|
}
|
|
@@ -96,15 +96,15 @@ export interface RowGroupColumnHeaderContext extends BaseColumnHeaderContext {
|
|
|
96
96
|
*/
|
|
97
97
|
export interface TableColumnHeaderContext extends BaseColumnHeaderContext {
|
|
98
98
|
/**
|
|
99
|
-
* Table Column
|
|
99
|
+
* Table Column (created in Table Layouts)
|
|
100
100
|
*/
|
|
101
101
|
columnType: 'tableColumn';
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* Id of the Column
|
|
104
104
|
*/
|
|
105
105
|
columnId: string;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Aggregation function of Column (optional)
|
|
108
108
|
*/
|
|
109
109
|
aggregation?: string;
|
|
110
110
|
}
|
|
@@ -113,19 +113,19 @@ export interface TableColumnHeaderContext extends BaseColumnHeaderContext {
|
|
|
113
113
|
*/
|
|
114
114
|
export interface TableColumnGroupHeaderContext extends BaseColumnHeaderContext {
|
|
115
115
|
/**
|
|
116
|
-
* Column Group (used when Column Grouping)
|
|
116
|
+
* Table Column Group (used when Column Grouping in Table Layouts)
|
|
117
117
|
*/
|
|
118
118
|
columnType: 'tableColumnGroup';
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* Id of Column Group
|
|
121
121
|
*/
|
|
122
122
|
groupId: string;
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* Ids of Column Group's children
|
|
125
125
|
*/
|
|
126
126
|
childrenColumnIds: string[];
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* Expanded / Collapsed state of Column Group
|
|
129
129
|
*/
|
|
130
130
|
state: 'expanded' | 'collapsed';
|
|
131
131
|
}
|
|
@@ -134,19 +134,19 @@ export interface TableColumnGroupHeaderContext extends BaseColumnHeaderContext {
|
|
|
134
134
|
*/
|
|
135
135
|
export interface PivotColumnGroupHeaderContext extends BaseColumnHeaderContext {
|
|
136
136
|
/**
|
|
137
|
-
* Pivot Column
|
|
137
|
+
* Pivot Column Group (created for each distinct value in a PivotColumn)
|
|
138
138
|
*/
|
|
139
139
|
columnType: 'pivotColumnGroup';
|
|
140
140
|
/**
|
|
141
|
-
*
|
|
141
|
+
* Id of generated Column Group
|
|
142
142
|
*/
|
|
143
143
|
groupId: string;
|
|
144
144
|
/**
|
|
145
|
-
* Pivot Keys for
|
|
145
|
+
* Pivot Keys for Column Group
|
|
146
146
|
*/
|
|
147
147
|
pivotKeys: string[];
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
149
|
+
* Expanded / Collapsed state of Column Group
|
|
150
150
|
*/
|
|
151
151
|
state: 'expanded' | 'collapsed';
|
|
152
152
|
}
|
|
@@ -155,11 +155,11 @@ export interface PivotColumnGroupHeaderContext extends BaseColumnHeaderContext {
|
|
|
155
155
|
*/
|
|
156
156
|
export interface PivotResultColumnHeaderContext extends BaseColumnHeaderContext {
|
|
157
157
|
/**
|
|
158
|
-
* Pivot Result Column
|
|
158
|
+
* Pivot Result Column (unique intersection of PivotAggregationColumn and PivotColumn)
|
|
159
159
|
*/
|
|
160
160
|
columnType: 'pivotResultColumn';
|
|
161
161
|
/**
|
|
162
|
-
*
|
|
162
|
+
* Id of generated Column
|
|
163
163
|
*/
|
|
164
164
|
columnId: string;
|
|
165
165
|
/**
|
|
@@ -167,11 +167,11 @@ export interface PivotResultColumnHeaderContext extends BaseColumnHeaderContext
|
|
|
167
167
|
*/
|
|
168
168
|
pivotKeys: string[];
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* Id of Pivot Aggregated Column
|
|
171
171
|
*/
|
|
172
172
|
aggregatedColumnId: string;
|
|
173
173
|
/**
|
|
174
|
-
* Aggregation function of
|
|
174
|
+
* Aggregation function of Column
|
|
175
175
|
*/
|
|
176
176
|
aggregation: string;
|
|
177
177
|
}
|
|
@@ -180,15 +180,15 @@ export interface PivotResultColumnHeaderContext extends BaseColumnHeaderContext
|
|
|
180
180
|
*/
|
|
181
181
|
export interface PivotGrandTotalHeaderContext extends BaseColumnHeaderContext {
|
|
182
182
|
/**
|
|
183
|
-
* Pivot Grand Total
|
|
183
|
+
* Pivot Grand Total Column
|
|
184
184
|
*/
|
|
185
185
|
columnType: 'pivotGrandTotal';
|
|
186
186
|
/**
|
|
187
|
-
*
|
|
187
|
+
* Id of Pivot Aggregated Column
|
|
188
188
|
*/
|
|
189
189
|
aggregatedColumnId: string;
|
|
190
190
|
/**
|
|
191
|
-
* Aggregation function of
|
|
191
|
+
* Aggregation function of Column
|
|
192
192
|
*/
|
|
193
193
|
aggregation: string;
|
|
194
194
|
}
|
|
@@ -197,19 +197,19 @@ export interface PivotGrandTotalHeaderContext extends BaseColumnHeaderContext {
|
|
|
197
197
|
*/
|
|
198
198
|
export interface PivotColumnTotalHeaderContext extends BaseColumnHeaderContext {
|
|
199
199
|
/**
|
|
200
|
-
* Pivot Column Total
|
|
200
|
+
* Pivot Column Total
|
|
201
201
|
*/
|
|
202
202
|
columnType: 'pivotColumnTotal';
|
|
203
203
|
/**
|
|
204
|
-
*
|
|
204
|
+
* Key (i.e. column value) of Pivot Column
|
|
205
205
|
*/
|
|
206
206
|
pivotKey: string;
|
|
207
207
|
/**
|
|
208
|
-
*
|
|
208
|
+
* Id of Pivot Column
|
|
209
209
|
*/
|
|
210
210
|
pivotColumnId: string;
|
|
211
211
|
/**
|
|
212
|
-
* Aggregation function of
|
|
212
|
+
* Aggregation function of Column
|
|
213
213
|
*/
|
|
214
214
|
aggregation: string;
|
|
215
215
|
}
|
|
@@ -218,23 +218,23 @@ export interface PivotColumnTotalHeaderContext extends BaseColumnHeaderContext {
|
|
|
218
218
|
*/
|
|
219
219
|
export interface PivotAggregationTotalHeaderContext extends BaseColumnHeaderContext {
|
|
220
220
|
/**
|
|
221
|
-
* Pivot Aggregation Total Column
|
|
221
|
+
* Pivot Aggregation Total Column
|
|
222
222
|
*/
|
|
223
223
|
columnType: 'pivotAggregationTotal';
|
|
224
224
|
/**
|
|
225
|
-
*
|
|
225
|
+
* Id of Aggregated Column
|
|
226
226
|
*/
|
|
227
227
|
aggregatedColumnId: string;
|
|
228
228
|
/**
|
|
229
|
-
* Aggregation function of
|
|
229
|
+
* Aggregation function of Column
|
|
230
230
|
*/
|
|
231
231
|
aggregation: string;
|
|
232
232
|
/**
|
|
233
|
-
*
|
|
233
|
+
* Id of Pivot Column
|
|
234
234
|
*/
|
|
235
235
|
pivotColumnId: string;
|
|
236
236
|
/**
|
|
237
|
-
*
|
|
237
|
+
* Key (i.e. column value) of Pivot Column
|
|
238
238
|
*/
|
|
239
239
|
pivotKey: string;
|
|
240
240
|
}
|
|
@@ -150,6 +150,7 @@ const DefaultAdaptableOptions = {
|
|
|
150
150
|
columnFilterOptions: {
|
|
151
151
|
indicateFilteredColumns: true,
|
|
152
152
|
autoApplyColumnFilter: true,
|
|
153
|
+
cacheInFilterValues: true,
|
|
153
154
|
defaultNumericColumnFilter: 'Equals',
|
|
154
155
|
defaultTextColumnFilter: 'Contains',
|
|
155
156
|
defaultDateColumnFilter: 'On',
|
|
@@ -187,7 +188,7 @@ const DefaultAdaptableOptions = {
|
|
|
187
188
|
},
|
|
188
189
|
layoutTagOptions: {
|
|
189
190
|
autoGenerateTagsForLayouts: false,
|
|
190
|
-
|
|
191
|
+
isObjectExtendedInLayout: undefined,
|
|
191
192
|
autoCheckTagsForLayouts: false,
|
|
192
193
|
},
|
|
193
194
|
},
|
|
@@ -216,7 +217,7 @@ const DefaultAdaptableOptions = {
|
|
|
216
217
|
systemFlashingCellPredicates: SystemFlashingCellPredicateIds,
|
|
217
218
|
systemBadgeStylePredicates: SystemBadgeStylePredicateIds,
|
|
218
219
|
caseSensitivePredicates: false,
|
|
219
|
-
|
|
220
|
+
evaluateInPredicateUsingTime: true,
|
|
220
221
|
},
|
|
221
222
|
quickSearchOptions: {
|
|
222
223
|
clearQuickSearchOnStartUp: false,
|
|
@@ -54,14 +54,11 @@ export interface CustomEditColumnValuesContext<TData = any> extends AdaptableCol
|
|
|
54
54
|
/**
|
|
55
55
|
* Information about items in the Edit Controls
|
|
56
56
|
*/
|
|
57
|
-
export interface
|
|
58
|
-
/**
|
|
59
|
-
* Item's label
|
|
60
|
-
*/ label?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Value of Item being shown
|
|
63
|
-
*/
|
|
57
|
+
export interface EditColumnValueInfo {
|
|
64
58
|
value: any;
|
|
59
|
+
label?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface CustomEditColumnValueInfo extends EditColumnValueInfo {
|
|
65
62
|
}
|
|
66
63
|
/**
|
|
67
64
|
* Used for Server Validation ie. after an edit in AG Grid which must be checked on Server
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FilterActionOnDataChange } from '../AdaptableState/Common/FilterActionOnDataChange';
|
|
2
2
|
import { BaseContext } from '../../types';
|
|
3
|
+
import { AdaptableColumn } from '../AdaptableState/Common/AdaptableColumn';
|
|
3
4
|
import { SystemAlertPredicateId, SystemFilterPredicateId } from '../../types';
|
|
4
5
|
import { StrictExtract } from '../Utilities/Extensions/TypeExtensions';
|
|
5
6
|
import { AdaptableColumnContext } from '../AdaptableState/Common/AdaptableColumnContext';
|
|
@@ -78,41 +79,48 @@ export interface ColumnFilterOptions<TData = any> {
|
|
|
78
79
|
*/
|
|
79
80
|
indicateFilteredColumns?: boolean;
|
|
80
81
|
/**
|
|
81
|
-
* Apply
|
|
82
|
+
* Apply Column Filters immediately; if false an Apply Filter button is displayed and Quick Filter is disabled
|
|
82
83
|
*
|
|
83
84
|
* @defaultValue true
|
|
84
85
|
* @gridInfoItem
|
|
85
86
|
* @noCodeItem
|
|
86
87
|
*/
|
|
87
|
-
autoApplyColumnFilter?: boolean;
|
|
88
|
+
autoApplyColumnFilter?: boolean | ((context: AdaptableColumnContext) => boolean);
|
|
89
|
+
/**
|
|
90
|
+
* Whether to cache the values in the IN Filter component
|
|
91
|
+
* @defaultValue true
|
|
92
|
+
* @gridInfoItem
|
|
93
|
+
* @noCodeItem
|
|
94
|
+
*/
|
|
95
|
+
cacheInFilterValues?: boolean | ((context: AdaptableColumnContext) => boolean);
|
|
88
96
|
/**
|
|
89
97
|
* Default filter type for numeric Columns
|
|
90
98
|
*
|
|
91
99
|
* @defaultValue Equals
|
|
92
100
|
* @gridInfoItem
|
|
93
101
|
*/
|
|
94
|
-
defaultNumericColumnFilter?: StrictExtract<SystemFilterPredicateId, 'GreaterThan' | 'LessThan' | 'Equals' | 'NotEquals' | 'In'> | ((adaptableColumnContext:
|
|
102
|
+
defaultNumericColumnFilter?: StrictExtract<SystemFilterPredicateId, 'GreaterThan' | 'LessThan' | 'Equals' | 'NotEquals' | 'In'> | ((adaptableColumnContext: DefaultPredicateFilterContext) => StrictExtract<SystemFilterPredicateId, 'GreaterThan' | 'LessThan' | 'Equals' | 'NotEquals' | 'In'>);
|
|
95
103
|
/**
|
|
96
104
|
* Default filter type for text Columns
|
|
97
105
|
*
|
|
98
106
|
* @defaultValue Contains
|
|
99
107
|
* @gridInfoItem
|
|
100
108
|
*/
|
|
101
|
-
defaultTextColumnFilter?: StrictExtract<SystemFilterPredicateId, 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'In'> | ((adaptableColumnContext:
|
|
109
|
+
defaultTextColumnFilter?: StrictExtract<SystemFilterPredicateId, 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'In'> | ((adaptableColumnContext: DefaultPredicateFilterContext) => StrictExtract<SystemFilterPredicateId, 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'In'>);
|
|
102
110
|
/**
|
|
103
111
|
* Default filter type for date Columns
|
|
104
112
|
*
|
|
105
113
|
* @defaultValue On
|
|
106
114
|
* @gridInfoItem
|
|
107
115
|
*/
|
|
108
|
-
defaultDateColumnFilter?: StrictExtract<SystemFilterPredicateId, 'After' | 'Before' | 'On' | 'NotOn' | 'In'> | ((adaptableColumnContext:
|
|
116
|
+
defaultDateColumnFilter?: StrictExtract<SystemFilterPredicateId, 'After' | 'Before' | 'On' | 'NotOn' | 'In'> | ((adaptableColumnContext: DefaultPredicateFilterContext) => StrictExtract<SystemFilterPredicateId, 'After' | 'Before' | 'On' | 'NotOn' | 'In'>);
|
|
109
117
|
/**
|
|
110
118
|
* Default filter type for array Columns ('textArray', 'numberArray', etc.)
|
|
111
119
|
*
|
|
112
120
|
* @defaultValue In
|
|
113
121
|
* @gridInfoItem
|
|
114
122
|
*/
|
|
115
|
-
defaultArrayColumnFilter?: StrictExtract<SystemFilterPredicateId, 'In' | 'NotIn' | 'Blanks' | 'NonBlanks'> | ((adaptableColumnContext:
|
|
123
|
+
defaultArrayColumnFilter?: StrictExtract<SystemFilterPredicateId, 'In' | 'NotIn' | 'Blanks' | 'NonBlanks'> | ((adaptableColumnContext: DefaultPredicateFilterContext) => StrictExtract<SystemFilterPredicateId, 'In' | 'NotIn' | 'Blanks' | 'NonBlanks'>);
|
|
116
124
|
/**
|
|
117
125
|
* Hides Dropdown in Quick Filter Bar for a given Column
|
|
118
126
|
*
|
|
@@ -173,32 +181,55 @@ export interface IsRowFilterableContext<TData = any> extends BaseContext {
|
|
|
173
181
|
*/
|
|
174
182
|
data: TData;
|
|
175
183
|
}
|
|
184
|
+
export type AdaptableFilterComponentLocation = 'FilterBar' | 'FilterForm';
|
|
176
185
|
/**
|
|
177
|
-
*
|
|
186
|
+
* Context used for setting default Predicates for Column Filters
|
|
178
187
|
*/
|
|
179
|
-
export interface
|
|
188
|
+
export interface DefaultPredicateFilterContext<TData = any> extends BaseContext {
|
|
180
189
|
/**
|
|
181
|
-
*
|
|
190
|
+
* Filter Component being displayed: FilterBar or FilterForm
|
|
182
191
|
*/
|
|
183
|
-
|
|
192
|
+
filterComponent: AdaptableFilterComponentLocation;
|
|
193
|
+
/**
|
|
194
|
+
* Current Column
|
|
195
|
+
*/
|
|
196
|
+
column: AdaptableColumn<TData>;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Item in the IN Column Filter
|
|
200
|
+
*/
|
|
201
|
+
export interface InFilterValue<ValueType = any> {
|
|
184
202
|
/**
|
|
185
203
|
* Item's label
|
|
186
204
|
*/
|
|
187
|
-
label
|
|
205
|
+
label: string;
|
|
188
206
|
/**
|
|
189
|
-
*
|
|
207
|
+
* The value of Item being shown
|
|
208
|
+
*/
|
|
209
|
+
value: ValueType;
|
|
210
|
+
/**
|
|
211
|
+
* Tooltip for Item (if true, the label is used as tooltip)
|
|
212
|
+
*/
|
|
213
|
+
tooltip?: boolean | string;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Information about items in the IN Column Filter
|
|
217
|
+
*/
|
|
218
|
+
export interface InFilterValueInfo extends InFilterValue {
|
|
219
|
+
/**
|
|
220
|
+
* Whether Item is currently selected
|
|
190
221
|
*/
|
|
191
222
|
isSelected?: boolean;
|
|
192
223
|
/**
|
|
193
|
-
* How many times
|
|
224
|
+
* How many times Item appears in the column
|
|
194
225
|
*/
|
|
195
226
|
count?: number;
|
|
196
227
|
/**
|
|
197
|
-
* How many times
|
|
228
|
+
* How many times Item appears in the column in filtered rows
|
|
198
229
|
*/
|
|
199
230
|
visibleCount?: number;
|
|
200
231
|
/**
|
|
201
|
-
* Whether
|
|
232
|
+
* Whether Item is currently visible in Grid (i.e. in filtered rows)
|
|
202
233
|
*/
|
|
203
234
|
visible?: boolean;
|
|
204
235
|
}
|
|
@@ -214,6 +245,10 @@ export interface CustomInFilterValuesContext<TData = any> extends AdaptableColum
|
|
|
214
245
|
* Default values but Sorted based on Column's sort
|
|
215
246
|
*/
|
|
216
247
|
sortedValues: Required<InFilterValueInfo>[];
|
|
248
|
+
/**
|
|
249
|
+
* Default values but in the order in which they are currently listed in the grid - (after all the sorting has been applied, or, if no sorting, in their natural order)
|
|
250
|
+
*/
|
|
251
|
+
orderedValues: Required<InFilterValueInfo>[];
|
|
217
252
|
/**
|
|
218
253
|
* Search text in the IN Filter component - used when filtering on server
|
|
219
254
|
*/
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CustomSort } from '../AdaptableState/CustomSortState';
|
|
3
|
-
import { FlashingCellDefinition } from '../AdaptableState/FlashingCellState';
|
|
4
|
-
import { FormatColumn } from '../AdaptableState/FormatColumnState';
|
|
5
|
-
import { PlusMinusNudge } from '../AdaptableState/PlusMinusState';
|
|
6
|
-
import { Shortcut } from '../AdaptableState/ShortcutState';
|
|
7
|
-
import { StyledColumn } from '../AdaptableState/StyledColumnState';
|
|
8
|
-
import { BaseSchedule } from '../AdaptableState/Common/Schedule';
|
|
9
|
-
import { Layout } from '../AdaptableState/LayoutState';
|
|
10
|
-
import { AdaptableModule } from '../AdaptableState/Common/Types';
|
|
1
|
+
import { Layout, PivotLayout, TableLayout } from '../AdaptableState/LayoutState';
|
|
11
2
|
import { AdaptableObjectTag } from '../AdaptableState/Common/AdaptableObject';
|
|
12
|
-
import { BaseContext } from '../../types';
|
|
3
|
+
import { BaseContext, LayoutExtensionModule, LayoutExtensionObject } from '../../types';
|
|
13
4
|
/**
|
|
14
5
|
* Options for configuring Layouts; manage Column visibility, order, sorting, grouping, width etc.
|
|
15
6
|
*/
|
|
@@ -26,6 +17,10 @@ export interface LayoutOptions {
|
|
|
26
17
|
* Columns to display in Table that opens when viewing Pivot Cell contents
|
|
27
18
|
*/
|
|
28
19
|
pivotPreviewColumns?: string[] | ((context: PivotPreviewColumnsContext) => string[]);
|
|
20
|
+
/**
|
|
21
|
+
* Default properties to apply when creating a new Layout (Table or Pivot)
|
|
22
|
+
*/
|
|
23
|
+
defaultLayoutProperties?: DefaultLayoutProperties | ((context: DefaultLayoutPropertiesContext) => DefaultTableLayoutProperties | DefaultPivotLayoutProperties);
|
|
29
24
|
}
|
|
30
25
|
/**
|
|
31
26
|
* Options for managing Tags in Layouts (used to enhance Layouts)
|
|
@@ -38,15 +33,15 @@ export interface LayoutTagOptions {
|
|
|
38
33
|
*/
|
|
39
34
|
autoGenerateTagsForLayouts?: boolean | ((context: AutoGenerateTagsForLayoutsContext) => AdaptableObjectTag[]);
|
|
40
35
|
/**
|
|
41
|
-
* Automatically assumes that any `
|
|
36
|
+
* Automatically assumes that any `LayoutExtensionObject` is available in the current Layout if it has a tag with the Layouts name (or no tags at all)
|
|
42
37
|
*
|
|
43
38
|
* @defaultValue false
|
|
44
39
|
*/
|
|
45
40
|
autoCheckTagsForLayouts?: boolean;
|
|
46
41
|
/**
|
|
47
|
-
* Checks if provided Adaptable Object is
|
|
42
|
+
* Checks if provided Adaptable Object is extended in given Layout
|
|
48
43
|
*/
|
|
49
|
-
|
|
44
|
+
isObjectExtendedInLayout?: (layoutExtendedContext: LayoutExtendedContext) => boolean;
|
|
50
45
|
}
|
|
51
46
|
/**
|
|
52
47
|
* Customize how Layouts are displayed in Settings Panel
|
|
@@ -60,26 +55,22 @@ export interface LayoutViewOptions {
|
|
|
60
55
|
maxColumnsToDisplay?: number;
|
|
61
56
|
}
|
|
62
57
|
/**
|
|
63
|
-
* Context for `LayoutOptions.
|
|
58
|
+
* Context for `LayoutOptions.isObjectExtendedInLayout` function
|
|
64
59
|
*/
|
|
65
|
-
export interface
|
|
60
|
+
export interface LayoutExtendedContext extends BaseContext {
|
|
66
61
|
/**
|
|
67
62
|
* Object being checked
|
|
68
63
|
*/
|
|
69
|
-
adaptableObject:
|
|
64
|
+
adaptableObject: LayoutExtensionObject;
|
|
70
65
|
/**
|
|
71
66
|
* Current Adaptable Module
|
|
72
67
|
*/
|
|
73
|
-
module:
|
|
68
|
+
module: LayoutExtensionModule;
|
|
74
69
|
/**
|
|
75
70
|
* Current Layout
|
|
76
71
|
*/
|
|
77
72
|
layout: Layout;
|
|
78
73
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Types of Adaptable Objects that can be associated with a Layout
|
|
81
|
-
*/
|
|
82
|
-
export type LayoutAssociatedObject = AlertDefinition | CustomSort | FlashingCellDefinition | FormatColumn | PlusMinusNudge | StyledColumn | Shortcut | BaseSchedule;
|
|
83
74
|
/**
|
|
84
75
|
* Context for `LayoutOptions.autoGenerateTagsForLayouts` method
|
|
85
76
|
*/
|
|
@@ -106,3 +97,30 @@ export interface PivotPreviewColumnsContext extends BaseContext {
|
|
|
106
97
|
*/
|
|
107
98
|
columnId: string;
|
|
108
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* Default properties to apply when creating a new Table Layout
|
|
102
|
+
*/
|
|
103
|
+
export type DefaultTableLayoutProperties = Partial<Omit<TableLayout, 'Name'>>;
|
|
104
|
+
/**
|
|
105
|
+
* Default properties to apply when creating a new Pivot Layout
|
|
106
|
+
*/
|
|
107
|
+
export type DefaultPivotLayoutProperties = Partial<Omit<PivotLayout, 'Name'>>;
|
|
108
|
+
/**
|
|
109
|
+
* Default properties to apply when creating a new Layout (Table or Pivot)
|
|
110
|
+
*/
|
|
111
|
+
export interface DefaultLayoutProperties {
|
|
112
|
+
/**
|
|
113
|
+
* Default properties to apply when creating a new Table Layout
|
|
114
|
+
*/
|
|
115
|
+
tableLayout?: DefaultTableLayoutProperties;
|
|
116
|
+
/**
|
|
117
|
+
* Default properties to apply when creating a new Pivot Layout
|
|
118
|
+
*/
|
|
119
|
+
pivotLayout?: DefaultPivotLayoutProperties;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Context for `LayoutOptions.defaultLayoutProperties` function
|
|
123
|
+
*/
|
|
124
|
+
export interface DefaultLayoutPropertiesContext extends BaseContext {
|
|
125
|
+
layoutType: 'table' | 'pivot';
|
|
126
|
+
}
|
|
@@ -23,7 +23,7 @@ export interface UserInterfaceOptions<TData = any> {
|
|
|
23
23
|
/**
|
|
24
24
|
* Bespoke icons that can be used in AdapTable (e.g. Badge Styles and Buttons)
|
|
25
25
|
*/
|
|
26
|
-
customIcons?: CustomIcon[];
|
|
26
|
+
customIcons?: CustomIcon[] | (() => CustomIcon[]);
|
|
27
27
|
/**
|
|
28
28
|
* Options for managing and customizing date inputs in AdapTable
|
|
29
29
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AdaptableObject } from './AdaptableObject';
|
|
2
2
|
import { BaseCellDataType, ColDef } from 'ag-grid-enterprise';
|
|
3
|
+
import { UniqueGridCell } from '../Selection/GridCell';
|
|
4
|
+
import { ColumnFilter } from './ColumnFilter';
|
|
3
5
|
/**
|
|
4
6
|
* Defines data type of a Column; can be an AG Grid BaseCellDataType or an AdapTable array-related one
|
|
5
7
|
*/
|
|
@@ -210,3 +212,8 @@ export interface AdaptableColumnProperties {
|
|
|
210
212
|
pivotable: boolean;
|
|
211
213
|
aggregatable: boolean;
|
|
212
214
|
}
|
|
215
|
+
export interface AdaptableColumnSummary {
|
|
216
|
+
column: AdaptableColumn;
|
|
217
|
+
columnFilter: ColumnFilter;
|
|
218
|
+
uniqueGridCells: UniqueGridCell[];
|
|
219
|
+
}
|
|
@@ -51,7 +51,7 @@ export const SystemPredicateDefs = [
|
|
|
51
51
|
}
|
|
52
52
|
if (column.dataType === 'date') {
|
|
53
53
|
return inputs.some((input) => {
|
|
54
|
-
if (adaptableApi.optionsApi.getPredicateOptions().
|
|
54
|
+
if (adaptableApi.optionsApi.getPredicateOptions().evaluateInPredicateUsingTime) {
|
|
55
55
|
return isEqual(input, value);
|
|
56
56
|
}
|
|
57
57
|
else {
|
|
@@ -125,7 +125,7 @@ export const SystemPredicateDefs = [
|
|
|
125
125
|
return true;
|
|
126
126
|
}
|
|
127
127
|
if (column.dataType === 'date') {
|
|
128
|
-
if (adaptableApi.optionsApi.getPredicateOptions().
|
|
128
|
+
if (adaptableApi.optionsApi.getPredicateOptions().evaluateInPredicateUsingTime) {
|
|
129
129
|
return inputs.every((input) => {
|
|
130
130
|
return !isEqual(input, value);
|
|
131
131
|
});
|
|
@@ -17,7 +17,7 @@ export interface CustomWindowConfig {
|
|
|
17
17
|
*/
|
|
18
18
|
icon?: AdaptableSystemIconName;
|
|
19
19
|
/**
|
|
20
|
-
* Render function to display content in Custom Window(if not using a framework component)
|
|
20
|
+
* Render function to display content in Custom Window (if not using a framework component)
|
|
21
21
|
*/
|
|
22
22
|
render?: (customRenderContext: CustomRenderContext) => string | null;
|
|
23
23
|
/**
|
|
@@ -25,7 +25,7 @@ export interface CustomWindowConfig {
|
|
|
25
25
|
*/
|
|
26
26
|
frameworkComponent?: AdaptableFrameworkComponent;
|
|
27
27
|
/**
|
|
28
|
-
* Callback function
|
|
28
|
+
* Callback function invoked when framework component is destroyed
|
|
29
29
|
*/
|
|
30
30
|
onFrameworkComponentDestroyed?: () => void;
|
|
31
31
|
/**
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Layout } from '../LayoutState';
|
|
2
|
+
import { AlertDefinition } from '../AlertState';
|
|
3
|
+
import { CustomSort } from '../CustomSortState';
|
|
4
|
+
import { FlashingCellDefinition } from '../FlashingCellState';
|
|
5
|
+
import { FormatColumn } from '../FormatColumnState';
|
|
6
|
+
import { PlusMinusNudge } from '../PlusMinusState';
|
|
7
|
+
import { Shortcut } from '../ShortcutState';
|
|
8
|
+
import { StyledColumn } from '../StyledColumnState';
|
|
9
|
+
import { BaseSchedule } from './Schedule';
|
|
10
|
+
/**
|
|
11
|
+
* Defines an Extended Layout - provides a Layout and all objects that refer to it
|
|
12
|
+
*/
|
|
13
|
+
export interface ExtendedLayout {
|
|
14
|
+
/**
|
|
15
|
+
* Layout being extended
|
|
16
|
+
*/
|
|
17
|
+
Layout: Layout;
|
|
18
|
+
/**
|
|
19
|
+
* Object to be included in the Layout
|
|
20
|
+
*/
|
|
21
|
+
Extensions: LayoutExtension[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Defines an object being extended in a Layout
|
|
25
|
+
*/
|
|
26
|
+
export interface LayoutExtension {
|
|
27
|
+
/**
|
|
28
|
+
* Module to which Extended Object belongs
|
|
29
|
+
*/
|
|
30
|
+
Module: LayoutExtensionModule;
|
|
31
|
+
/**
|
|
32
|
+
* Object being Extended
|
|
33
|
+
*/
|
|
34
|
+
Object: LayoutExtensionObject;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Types of Adaptable Objects that can added to Extended Layouts
|
|
38
|
+
*/
|
|
39
|
+
export type LayoutExtensionObject = AlertDefinition | CustomSort | FlashingCellDefinition | FormatColumn | PlusMinusNudge | StyledColumn | Shortcut | BaseSchedule;
|
|
40
|
+
/**
|
|
41
|
+
* Modules which can provide objects in Extended Layouts
|
|
42
|
+
*/
|
|
43
|
+
export type LayoutExtensionModule = 'Alert' | 'CustomSort' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'PlusMinus' | 'Schedule' | 'Shortcut' | 'StyledColumn';
|
|
44
|
+
/**
|
|
45
|
+
* Configuration for API methods which load objects that can be Layout extensions
|
|
46
|
+
*/
|
|
47
|
+
export interface LayoutExtendedConfig {
|
|
48
|
+
includeLayoutNotExtendedObjects?: boolean;
|
|
49
|
+
extendedLayoutName?: string;
|
|
50
|
+
}
|