Adaptable

#Releases

Adaptable is a live product with frequent updates: new features and improvements to existing functionality, many of them in response to user feedback and requests.

#Release schedule

Adaptable guarantees a minimum of 4 releases each year. Each release is a mix of new capabilities and enhancements to existing functionality.

Note

We also release patch versions to fix urgent bugs that cannot wait for the next minor release.

#Annual major release

Each year we aim to ship at least one major release, which increments the major version number. Every major release comes with a full upgrade guide.

Warning

Only major releases include breaking changes, and they are fully documented in the relevant upgrade guide. Before 1.0, a minor release (0.x) can also include breaking changes - they are listed first in its entry below.

#Release history

Note

The entries below describe the API as it was at the time of each release. Some names have changed since — see the rest of this documentation for the current API.

#0.9.0-canary.0

A canary release, on the canary dist-tag: npm install @adaptabletools/datagrid-react@canary.

Breaking changes:

  • The React package is renamed: @adaptabletools/adaptable-datagrid → @adaptabletools/datagrid-react. Change the imports, and the stylesheet import to @adaptabletools/datagrid-react/index.css.

New:

  • Adaptable DataGrid for Vue: @adaptabletools/datagrid-vue, for Vue 3.4 or newer, with the same state, UI and components as the React package. See Adaptable DataGrid for Vue.
  • Adaptable DataGrid for Angular: @adaptabletools/datagrid-angular, for Angular 22, as standalone components (<adaptable-provider>, <adaptable-ui>, <adaptable-workspace>). Parts of the UI around the grid are still being ported. See Adaptable DataGrid for Angular.
  • The three packages are versioned and released together.
  • Custom aggregation types, written with a reducer or as an AdaptableQL expression, in globalEntities.aggregationTypes or in a view's privateEntities.aggregationTypes; the built-in types can be renamed or removed. See Custom aggregations.
  • The column inspector on the Columns settings page edits every property of a column for the current view. See Editing columns in the UI.
  • The useColumnLabels(), useColumnProperties() and useAggregationTypes() hooks.
  • portalContainer on the provider sets the element popups are rendered into. See Where popups are rendered.
  • The licence watermark is now a banner above the grid, with a link to the licensing page.

#0.8.0

Breaking changes:

  • The batch params of the data function are renamed: lazyLoadStartIndex → batchStartIndex and lazyLoadBatchSize → batchSize. They are only sent in server mode with batchSize set - a call that loads a whole level has neither.

    Before:

    const start = params.lazyLoadStartIndex ?? 0;
    const size = params.lazyLoadBatchSize;

    Now:

    const start = params.batchStartIndex ?? 0;
    const size = params.batchSize;
  • In client mode, refetchOn only calls the data function again; the grid always sorts and filters the rows it returns. Before, refetchOn: ['sort'] left the sorting to the function, and refetchOn: ['filter'] left the column filters to it (unless a grid filter was set). To have the server run the operations, use server mode:

    Before:

    <Adaptable.DataSource data={fetchRows} refetchOn={['sort', 'filter']} />

    Now:

    <Adaptable.DataSource data={fetchRows} mode="server" />

    A function can still return rows already filtered with the params it gets: the grid sorts and filters them again, and shows the rows that pass both filterings.

  • In server mode, the grid filter is sent to the data function, as gridFilterExpression, and the server must apply it. Before, the grid filtered the loaded rows by it. createTdgpDataSource compiles it into the TDGP request's filter; a grid filter that TDGP can't express (a function such as IS_TODAY or REGEX, or a comparison of two columns) now fails the load, before any request is sent.

  • Adaptable now depends on Infinite Table 10.1.1. If you also import @infinite-table/infinite-react yourself, upgrade it to 10.1.1 too.

New and changed:

  • Added gridFilterExpression to the data function params: the view's grid filter as AQL that runs outside the grid, with every QUERY("name") replaced by the named query's expression and every column id by the column's data field.
  • In server mode, a data function can report the filters it couldn't apply, with processed: { columnFilters, gridFilter } in its result; a filter it was sent and reports as not applied fails the load.
  • Failed data loads are now shown in the grid: over the body when there are no rows to show, as a banner over the rows kept from the previous load, or in the group row whose children failed to load - each with a Retry button. Added components.DataError to replace that display, the useDataError() hook, and dataSourceApi.getDataError(), getGroupDataError(), retryDataLoad() and dismissDataError().
  • A data function result with an error message now fails the load, like a rejected promise.
  • A failed batch is requested again when it is scrolled into view again, and a failed group expansion when the group is expanded again.
  • refetchOn: ['viewChange'] now calls the data function when the current view switches. refetchOn: ['filter'] now also covers the grid filter and the named queries it uses. A view switch that changes several of the listed operations calls the function once.
  • In server mode, the values listed by a column's values filter are narrowed by the grid filter too. With createTdgpDataSource, when the filters can't be compiled into a TDGP filter, the values are not narrowed.
  • The resolveSelection of createTdgpDataSource now applies the grid filter too, so a selection that only covers the visible rows (multiSelectTarget: 'visible') leaves out the rows the grid filter hides. Switching a server view to multiSelectTarget: 'all' now also reloads the rows (with the counts without the filters) when only the grid filter is set.
  • With controlled state (state and onStateChange), the first data call is built from the loaded state (loadState), as with defaultState. Before, it could use the sorting and filters of the view the grid started with, and load again once the loaded state arrived.
  • A pivot view without row groups is loaded in one call without batchStartIndex / batchSize, even with batchSize set.
  • Switching between a table view and a pivot view in server mode no longer shows the rows of one view in the other.
  • Server mode with a data array or promise now logs a warning: server mode needs a data function.
  • With 'multi-row' selection, clicking rows now selects them in grouped views too; before, clicks didn't change the selection of a grouped view without a selection checkbox. Clicking a group row selects the whole group, cmd/ctrl-click toggles it, and shift-click selects a range across groups - see Ranges in grouped views. With 'single-row' selection, clicking a group row doesn't change the selection.
  • Added selection.multiSelectWith. With 'click', clicking rows selects them even while a selection checkbox is shown. The default, 'checkbox', keeps clicks from selecting rows while a checkbox is shown, as before.
  • Shift-clicking a selection checkbox now selects a range of rows. Row clicks, checkbox clicks and the spacebar share the starting row of the range, and in grouped views shift + spacebar now selects a range too.
  • Clicking the expand/collapse icon of a group row no longer changes the selection.

#0.7.1

  • Added selection.multiSelectTarget ('all' | 'visible') to multi-row selection views, with a Select all applies to setting on the Selection & navigation settings page and multiSelectTarget / setMultiSelectTarget in useViewSelection(). It sets whether the header checkbox, the group checkboxes and select all act on every row or only on the rows that pass the filters.
  • Added api.viewApi.rowSelectionApi.selectAll() and deselectAll().
  • With filtered-out rows, the header checkbox is now checked only when every row the selection targets is selected; before, it was checked as soon as all the visible rows were selected.
  • With the default 'all' target, a group checkbox in a filtered view now also selects the filtered-out rows of the group.
  • Multi-row selection now works with server-side grouping: checking a group selects all its rows, including the ones not loaded yet. In these views selection.value lists groups and rows by their group keys, e.g. ['France'] or ['France', 'Paris', 12], instead of by primary key. Before, checking a collapsed group selected nothing. A saved selection made of primary keys is cleared the first time such a view loads.
  • TDGP group nodes now include totalChildrenCount, the number of rows in the group after filtering. The top-level group response (groupKeys: []) also includes it, for all the rows, including the groups outside the requested page.
  • In a filtered server view with the default 'all' target, the header and group checkboxes now also count the filtered-out rows. createTdgpDataSource asks the server for the counts without the filters (the new TDGP withUnfilteredCounts request flag); its new unfilteredCounts option turns this off.
  • TDGP totalCountUnfiltered is now only sent with withUnfilteredCounts, and it keeps the server's scope filter and the group drill path.
  • Added api.viewApi.rowSelectionApi.getSelectedPrimaryKeys() and getSelectedRowCount(), which also cover the selected rows that aren't loaded in server mode. createTdgpDataSource resolves them with a query to the server; custom data functions can attach a resolveSelection function.
  • Added the selected-row-count dashboard widget, which shows the number of selected rows, including the ones that aren't loaded in server mode.
  • In lazy-loaded views, the header and group checkboxes now use the row counts the server sends, so a selected row that the filter hides no longer makes a checkbox look fully checked or unchecked.
  • In grouped server views, the row-count widget now shows the number of rows the server sends; before, it showed the number of top-level groups.

#0.5.5

  • Added the events prop to Adaptable.Provider, to listen to Adaptable events.

#0.4.6

  • Added support for view.filters.showFilterUIForColumns.

#0.4.5

  • Added support for the grid filter in views.

#0.4.4

  • Added support for custom sort types.

#0.0.10

  • Added Adaptable.Provider / Adaptable.UI, so the Adaptable state can be accessed through hooks.
  • Added onStateChange and onStateChangeWithSelectors / withState for listening to state changes.

#0.0.6

  • Fixed dist/index.css to have the correct order of style rules.

#0.0.5

  • Added components as an export. Initial components: Button, Select, Checkbox, Icon, Logo, Layout and Tabs.

#0.0.3

  • Added AdaptableApi as an export.

#0.0.2

  • Initial stable public release.

Versions 0.5.2, 0.5.0, 0.3.2, 0.3.1, 0.0.15 and 0.0.12 were also released; no release notes were recorded for them.