Upgrading
How versions are numbered
- Patch (1.7.1 → 1.7.2): fixes.
- Minor (1.7.2 → 1.8.0): new features, plus fixes. A fix can change what your app sees — a custom summary that now runs, column subtotals that are now on by default. Every such change is listed below, under the version that made it.
- Major: none so far.
The packages of one product do not always share a number: in a release, each package moves by what changed in it. The changelog lists the exact number of every package in each release.
Upgrade the packages together
The Enterprise packages depend on an exact version of the Community ones.
Upgrade every @kanunilabs/pivotgrid* package your app lists in the same
command, to the set one release shipped:
npm i @kanunilabs/pivotgrid-react@latest @kanunilabs/pivotgrid-react-enterprise@latest
Upgrading only one of them can install a second copy of the engine next to the first. Two copies do not share state: a licence key set through one is not seen by the other. Check that one version is installed:
npm ls @kanunilabs/pivotgrid-core
One version in the tree is right; two mean a package was left behind.
What changes for you
The changes below can make an existing app behave or type-check differently after an upgrade. Versions not listed asked nothing of you. Going from an older version to the newest, read every entry in between.
PivotGrid 1.11.20
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- The Excel list export (
exportData('excel-list'), including the streamed file written for large data) now freezes the table's header row and puts an autofilter on it, as DataGrid's export does. PassfreezeHeader: falseandautoFilter: falseto get the old file.freezeHeader: falsealso turns off the frozen header of the pivot-form file; the pivot form never gets an autofilter, andexportSummaryTableis unchanged. - The row and column header menu (Expand, Collapse, Expand All, Collapse All) and the field-group items of the chip menu now show icons, mirrored in right-to-left languages. The header menu items no longer indent their text and line up with the chip menu's items.
headerBlockis new and does nothing unless set.
PivotGrid 1.11.19
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- Enterprise apps that define
groupon fields: a group now shows a collapse / expand button before its first member and a connector line between members, without any new option. In the filter area a group's members sit side by side (no longer strictly alphabetical), Ctrl+Arrow on a member moves the whole group, the drag preview shows every member, and a member's accessible name ends with the group's name. Apps withoutgroupfields see no change; Community is unchanged. - A regional
localetag (tr-TR,de-DE,pt-BR,ar-SA, ...) now resolves to its language's texts and direction in both renderers. Before, plain JS showed English for such a tag and React showed a mix; everyar-*tag is now drawn right to left (before, onlyar). Exact codes (tr,zh-CN, ...),en-*tags and unknown codes behave as before, an explicitrtlsetting still wins, and numbers and dates keep using the full tag. ThePivotLocaletype accepts regional tags. - Default light theme: the danger colour (
--pivot-danger, also in the LightOffice and MaterialMint presets) is darker (#b91c1cinstead of#ef4444) so red text reaches 4.5:1 on white. Apps that set their own value are unaffected. - Every area chip now carries its full caption in its own
title, and a filtered chip's accessible name ends with ", filtered" (a new text in all 12 languages). The look of a chip changes only wherechipActions: 'hover'is set. - The chip context menu of a Values chip now has "Filter field".
- Switching
helperon or off for a value field at run time now recomputes the pivot. Before, the cells could be read one column off until the next rebuild. areaChipOverflow: 'fit', the per-area object form,chipActions, the date intervals'yearQuarter'/'yearMonth'/'monthWeek',layout.dateIntervalChoicesandlayout.allowFieldGroupingare all new and off unless set. WithdateIntervalChoices: 'calendar', a restored state (state storage,applyPersistedState, saved reports, the app'ssetFields) whose date field holds the oldquarter/month/weekis converted to the calendar interval, and that field's saved header filter, label filter, open paths and summary sorts through it are dropped. Without the option nothing is converted.
PivotGrid 1.11.18
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- A field with a
dataFieldand acalculateSummaryExpressionbut withoutisCalculatednow shows the formula result in Values. Before, the formula was ignored and the cell showed the plainsummaryTypeof the raw values. If the helper fields the formula reads are not in Values, the cells are empty. Remove the formula from such a field if you relied on the plain aggregate. prefixandsuffixon a number format object are now written withoutisCustom: true; before, they were ignored unlessisCustomwas set. They also reach PDF, print, chart tooltips,getSummaryTable({ display: true })and the Excel number format.- A calculated field whose formulas are functions (no
formulaString) no longer offers "Edit calculation" or a delete button: the designer can only read back a formula text. Fields made in the designer are unchanged. - The selection statistics write Sum, Average, Min and Max with the field's
prefix/suffixwhen every selected cell belongs to one value field. Count and a selection across several fields stay bare. setFieldsreplacing or removing acalculateExpressionorcalculateSummaryExpressionnow recomputes at once. A function formula is recognised by its source text: two functions with the same source that read different outside values count as one formula.- A field with a row calculation and a summary formula now lists its real blank member in the header filter and is accepted as a row or column by the AI layout schema.
- Excel export: the text of a number format (prefix, suffix, any quoted literal) now counts toward the column width, so such columns come out wider.
- React and plain JS Enterprise: when the shown result has 500,000 row nodes or more, a full rebuild (field added, moved or removed, filter, new data, sort, display mode, top N, value or label filter, search, expand or collapse all) releases the old result before the new one arrives. The rows on screen stay drawn; rows scrolled to in the meantime show "…" until the new result is in. Smaller results behave as before.
ExportStreamController#streamToExcelXMLis deprecated; call thestreamToExcelXML()function exported by@kanunilabs/pivotgrid-core. The method still works.
PivotGrid 1.11.17
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- Nothing to change.
maxLiveOpenNodes(on by default since 1.11.16) now also holds live computes back while the loading state of a fresh data set is still up, which is the usual case when a report is loaded by a feed; before, it only worked once a result was already on screen. The first result of a data set is always built, and the full result is built when the feed ends, as documented. PassmaxLiveOpenNodes={0}to turn it off. --pivot-row-chip-gapis new and unset by default (16 px, the look of 1.11.16).
PivotGrid 1.11.16
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
maxLiveOpenNodesis on by default (500,000): while rows stream into a fully expanded report ('*') whose tree is larger than that, live computes are held back; the screen keeps its last result,isComputingstays true, and the full result is computed when the feed ends (flushAsyncTransactions(),setLoading(false)), on any change by the reader or your code, for an export, or after about 2 seconds without new rows. PassmaxLiveOpenNodes={0}(orInfinity) for the behaviour of 1.11.15. Smaller reports are not affected.- React grids and Enterprise grids: with more than 5,000 row groups closed under "Expand all", the saved state (
getPersistedState,stateStoring, saved views) holds the closed rows as one text entry insideexpandedPathsinstead of one entry per group. The entry is plain text and survivesJSON.stringify; treat it as opaque and passexpandedPathsback as you received it. Code that reads or filters the strings inexpandedPathsshould readisExpandedon the result's nodes instead. With fewer closed groups the state is saved exactly as before. - A state saved in that compact form and opened by 1.11.15 or older opens with its rows collapsed (nothing throws). Update every install together if reports are shared.
getState().expandedPathsis the live set, not a saved state: while the closed rows are kept compactly it holds'*'and one handle. A copy handed back tosetExpandedPathson the same page restores the rows; stored and read in another session it opens every row and reports throughonError. UsegetPersistedState()orstateStoringto keep the open rows across sessions.
PivotGrid 1.11.15
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- Nothing to change for a grid that worked on 1.11.14. Expanding, collapsing and the saved state behave and are stored exactly as before.
- Above 12,000,000 px of rows (about 570,000 rows at 21 px) the body keeps that height and the scroll position maps to the rows, so one pixel of the scrollbar is more than one row there; the wheel, the keyboard and the saved scroll position move by rows as before. Below that height nothing changes.
- Free plain-JavaScript grid only: four Enterprise button captions (Filter Builder, Toggle Chart View, Calculated Measure Designer, Edit Calculation) left the shared dictionary of the script-tag bundle. Enterprise grids show them in every language as before; a free grid whose app fills those buttons itself shows them in English unless its
dictionarynames them.
PivotGrid 1.11.14
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- Without
columnar(Enterprise) the grid keeps your row objects and behaves as in 1.11.13, with one difference: a{ columns, rows }chunk given to a grid that is not columnar now throws instead of silently adding nothing. - With
columnar, rows arrive as{ columns, rows }chunks (or as row objects, which are encoded and not kept) throughdata,setDataandapplyTransaction(Async)({ add });updateandremovethrow in this mode for now, andcolumnarcannot be changed after the grid is built. A row-levelcalculateExpressionreceives a reused, read-only row: read values from it, do not keep it or write to it.getRecordsForSelection()andcellClickrecords still work: up to 50,000 rows they are an array built at once, above that a read-only list whose rows are built when read; for a large selection use a row source (getSelectionRowSource()). - The data rule, in both modes: a new
datavalue (an array, an empty array, or a chunk with newrows/columnsarrays) replaces every row and drops adds still queued byapplyTransactionAsync; the same value again changes nothing. Memoize a chunk you pass as a prop: a fresh[]or chunk on every render clears the streamed rows on every render (the grid warns once). stateStoring/onSaveis now called only when a saved part changes (fields, layout, column widths, open groups), not on every result or progress tick. Code that usedonSaveas a "something happened" signal must listen to the grid's events instead.- After "Collapse all" from a header menu with everything expanded, a last-level row's menu says "Collapse" (the click changes nothing, as before), and a field appended at the end of the rows afterwards shows that new level open. States saved by 1.11.13 that hold an entry per leaf keep those entries until the next "Expand all".
- The exported
FastTrie'schildrenMapis now built when read and is read-only.
PivotGrid 1.11.13
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- A grid shown again after
<Activity mode="hidden">with nothing changed fires noengineStarted/engineCompletedand keepsisComputingfalse; code that waited for a compute on every show must not. After a hide longer than the worker's 5 s keep-alive, the engine starts again with the first change that needs it, not on show. - The built-in language objects (
en,tr, ...) no longer carrysystemError,noConditionsAdded,exportGeneratedOn,saveChangesandloadingData(read them withpivotExtraText(locale, key)from@kanunilabs/pivotgrid-core) nor the unusedtype_*texts. The grids show the same text, and adictionaryyou pass still overrides them. layout.rowHeaderToggledefaults to'cell': nothing changes unless you set'button'. It is an app option and is not saved with the grid state.
PivotGrid 1.11.12
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- React: a grid inside
<Activity mode="hidden">is suspended, not disposed, and recomputes when shown. React setsref.currenttonullwhile a grid is hidden, so a feed that callsref.current?.applyTransactionAsync(...)drops rows while the tab is hidden: keep the controller from the newonReady(controller)prop orgetController()instead. - React: an unmounted grid is still disposed. A grid unmounted while hidden is disposed after two missed 5 s checks; a grid whose hidden element a tab host removed from the page is rebuilt with its layout when shown (a reset, not a dead grid).
- Each live grid now has its own engine worker, also two grids with the same or no
gridId. Saved reports, the stored layout and popup sizes are still kept pergridId, so give each kept-alive tab's pivot its own stablegridId. - A request still waiting on a released engine worker now rejects with an
AbortErrorinstead of staying pending; an export started while a grid is suspended rejects the same way.
PivotGrid 1.11.11
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
engineResult.rowIndexMap/columnIndexMapare built when first read (same content). Reading them for every cell of a large pivot is slow; use the newrowIdOf/colIdOf/nodeIdOf(orPivotNode.engineId). Copy a result withcopyResult, not an object spread (a spread builds both maps).- A closed branch's children can now be in
rowTreewithisExpanded: false: always under'*', and outside'*'after a close that needed no compute. ReadisExpanded(or the expanded set), not "has children", to know what is shown.getCellfor a row inside a closed branch returns its cell, and under'*'colour scales and data bars count the cells of closed branches too. - A toggle that needs no computation emits
engineCompleted(in a later task) but calls neitheronBeforePivotCalculatenoronAfterPivotCalculate. With either hook set, opening a never-computed branch runs a full compute as before. - A live-update compute over a result already on screen no longer raises the building overlay or
isBuilding; readisComputingfor "a newer result is on its way". The progress bar never moves backwards. As the result grows, live updates are computed less often (about 2.5 % of the main thread);flushAsyncTransactions()(also with an empty queue),applyTransaction(),setLoading(false)and an export compute at once. - Row-header cells on screen merge by member, not by equal text: two neighbouring members with equal text are two cells. Exports still merge by equal text.
- Row-header column grips moved (React and plain JS): a collapsed group's spanning label keeps only the grip of its last covered column; the grips of the columns it covers are in the corner (column-header) cells, inside their right edge (left in RTL). Code that looked for
.kanuni-pivot-resize-handleinside a body cell by position, or counted the grips of a spanning label, now finds one; the corner cells carry one per row-header column.
PivotGrid 1.11.10
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- Nothing changes unless you set
layout.virtualization: with no setting the body draws the same rows and the same DOM as in 1.11.9. - Nothing changes unless a Values field sets
precision: without it the engine adds doubles exactly as in 1.11.9, and the cells, totals, display modes, exports and selection statistics hold the same numbers. - Down on a field chip inside the table (the Values, Columns and row-field chips) now moves the keyboard focus into the table, to the first row in view: a row field's chip to its own row-header column, any other chip to the first data column. Before, the key started the table's focus frame while the chip kept the real focus. Down on a chip of the filter strip does nothing, as before.
- Arrow keys over the row headers treat a merged cell as one cell (React and plain JS): a Region drawn once for its three cities is one stop, its first row, not three; Down leaves it from its last row. Code that pressed Down a number of times to reach a given row in a row-header column lands elsewhere now; in the data columns every row is still one step.
- With
precisionon anavgfield, the selection statistics now add the cell averages as they are (three cells of 7/3 total 7); in the 1.11.10 preview they were rounded to the field's decimals first (6.99). AcalculateSummaryExpressionfield with aprecisionand a display mode (a percentage, a running total) is no longer rounded to that precision: its own result never is. - A
precisionthat is not an integer 0 to 10 (2.5, 11) is no longer sent to aserverSourcein the request's Values entries; the browser ignores and reports it, so the server no longer acts on it either. - Ctrl/Cmd+C with no cells selected but text selected (in the pivot or on the page) no longer calls
onCopyErrorwith'empty-selection': the browser copies the text and the pivot keeps out of it. - Nothing changes unless you set
--pivot-row-height: without it no class or variable is added and every density paints the rows it painted in 1.11.9. - Keyboard moves in the React grid now bring a row in from below fully into view: PageDown and Down left the focused row under the pane's bottom edge by the height of the chip band above the column headers (about 120px with the Values and Columns zones), so the focus could not be seen. The pinned row-header layout only; plain JS already measured the band.
- Nothing changes unless you set
--pivot-chip-height: unset, a chip is as tall as its content with the same 4px vertical padding as in 1.11.9 (the padding is now written aspadding-block, computing to the same value). - Nothing changes unless you set
--pivot-area-border,--pivot-area-separatoror--pivot-area-gap: each falls back to what its spot painted in 1.11.9 (the zones' edge--pivot-borderat 60%, the line under the filter strip--pivot-border, the strip's 8px). - Ctrl/Cmd+C now copies through the browser's copy event, and only while the focus is in the pivot or nowhere: not from a text field, not when the page's own text is selected, not while another component outside the pivot has the focus (before it copied wherever the focus was). It works on a plain-HTTP page, where it did nothing. Besides the tab-separated text it writes an HTML table (
text/html), so a paste into Excel or Word keeps the cells. A row-header selection copies the row headers (it copied empty lines) and a data selection copies every row, the ones scrolled out of view too (they were empty). A tab or a line break inside a cell becomes a space. To hear about a copy that failed, setonCopyError. - A click on a continuation row-header cell (the empty cell under a group's value, rows 2 and on of a merged group) no longer expands or collapses the group: the group's own cell and its +/- still do. A row-header selection now covers whole merged cells of its last column: a press on a continuation cell selects its group from the cell with the value, and a range that starts or ends inside a group grows to the group's first and last rows (
onSelectionChangereports those rows). A click that collapses a group leaves the selection on the group's own row (React and plain JS). - Nothing changes unless you set
layout.areaHeaders: with no setting every zone draws its title row, with the same DOM as in 1.11.9. - In the tabular row-header layout, the cell of a collapsed group (any row whose label is not in the last row-header column) now spans to the last row-header column: one
<td>withcolspan, its value cut only at the block's end, as the "Total: ..." rows already ran on; the empty cells it covers are no longer drawn in that row, so code that looked uptd[data-r="N"][data-c="2"]on such a row finds nothing, and the row'sdata-ccell to use is the label's. The covered columns keep their resize grips inside the spanning cell, each on its own column's edge. An open group and the tree layout are unchanged; the column widths and the double-click fit (it does not measure a spanning value) are unchanged (React and plain JS).onCellPreparedand a row field'scellTemplateare not called for the covered row-header columns of a collapsed row: the label's own call (columnIndex= its depth) formats the whole spanning cell, so awidthormaxWidthit sets per column now narrows the spanning cell. - Ctrl/Cmd+C goes through the browser's
copyevent, which the pivot answers ondocumentin the bubble phase: an app'scopylistener onwindow, or ondocumentadded after the grid was created, runs after it, and one that callsclipboardData.setDatathere writes over the pivot's data and wins. Because a copy also writes an HTML table (text/html), a single copied cell pastes into Word or Outlook as a 1×1 table, not as plain text (the same in DataGrid 1.10.17); a plain-text paste (Ctrl+Shift+V) gives the text.
PivotGrid 1.11.9
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- Nothing changes unless you set one of the new variables or
layout.filterPopupSearch: each variable falls back to the expression its spot used in 1.11.8, so the default look is the same colour for colour. - A date field's filter list (React and plain JS) now writes each date as its header does, not as the ISO text the data holds: the field's
formatwhen it is a date format ({ day: '2-digit', month: '2-digit', year: 'numeric' }gives 31.03.2026 intr-TR), the grid's default date text without one, and a month or weekdaygroupIntervalby name. Times of one day are one row. The list no longer reads aformatthat is not a date format on a date field (a function, number options): it writes what the header writes (with a monthgroupInterval, 'March', not '3'). Its order, its ticks and the stored filter are still the raw values, so a saved filter keeps working, and the search box finds the text on screen. - A date field whose
formatholds date options (day,month,year,weekday,hour,dateStyle...) is now written with them in its row and column headers; before the options were ignored there and the header read the default long date. A field with no such format, a number format, or agroupIntervalreads as before. - The header filter popup can be dragged larger than 350 x 600 px, up to the edge of the visible area; it still opens at 250 x 350 px. Lower the limit with
--pivot-filter-popup-max-height/--pivot-filter-popup-max-widthif a taller popup is not wanted. - Blank values are now written with the dictionary's
blankstext in every language: in row and column headers, subtotal labels, the filter list, the pivot's Excel, PDF, print and clipboard headers, chart categories and the drill-down title (React and plain JS). A Turkish grid shows '(Boşlar)' where it showed '(Blank)', a German one '(Leer)', and so on; the English dictionary'sblanksis now '(Blank)' (it was '(Blanks)'), so an English grid looks as before except where '(Blanks)' was shown: the filter list's rare null row and the Enterprise chart's blank category. To keep the old text in every language, passdictionary: { blanks: '(Blank)' }.blanks: ''leaves the header cell empty and the filter list row empty but tickable, named for screen readers by the language's own blanks text. The internal member is still '(Blank)': filters, path keys, saved state,rowPath/colPathand node values are unchanged, so saved filters open as they were. A row header'scellTemplategets the shown text (the blanks text, a B.95 date format) as bothvalueanddisplayValue, in React and plain JS, as it already got the formatted text; a column header'scellTemplategets the raw member ('(Blank)') asvalueand the shown text asdisplayValue. The list export (source rows) and the CSV of raw data are unchanged. - The Columns strip over the data columns is a drop target along its whole visible width, not only where the Columns box is drawn (React and plain JS): a field dropped on the strip past the box goes to the END of the Columns area, as the box's own empty end did. Inside the box nothing changed (before or after the nearest chip). The box keeps its look; while a field is dragged into the column area the strip is tinted (
.kanuni-pivot-column-strip[data-drop-over], a 7%--pivot-primarywash).
PivotGrid 1.11.8
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- Nothing changes unless a field sets
groupByFormat: true; without it grouping, headers, sorting, paths and exports are as in 1.11.7. - With
groupByFormat: truea member of that field is its formatted text, not the raw value:rowPath/colPathincellClick,getCellRecords,expandedPaths,sortBySummaryPath, a node'svalueand acalculateCustomSortcomparator all receive the text ("18,2"). Code that filters to one member from such a path should passcontroller.memberFilterValues(fieldId, member)toapplyFilterinstead ofnew Set([member]), since a filter names raw values.
PivotGrid 1.11.7
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- A filter on a field in the Values area (picked on its chip, or set with
applyFilter/filterValues, also in a saved report) now filters the source rows, so cells and totals change. Before, the table ignored it while the drill-down, exports and charts applied it. A report saved with such a filter therefore shows different, filtered numbers after the upgrade; clear the filter on the chip if the old totals were the intended ones. - In the filter list of a number field with a
format, values that show the same text are now one row (two-decimal data shown with one decimal: "18.2" once, not once per raw value), and the row ticks or unticks every raw value under it. The stored filter is unchanged: it still lists raw values, so a saved filter that names only some of them opens with that row half-ticked (aria-checked="mixed"). Code that found a list row by a raw value other than the smallest in its group no longer finds it.
PivotGrid 1.11.6
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- The drag ghost of a field is now drawn in the same host in <body> as the field list window and the menus (it was a child of the pivot), above all of them at z-index 100000, and only while a field is dragged. A style that reached it as a descendant of the pivot (
.my-grid .kanuni-pivot-drag-overlay) no longer matches; the classkanuni-pivot-drag-overlayitself is unchanged. - The guide line of a column resize follows the pointer when the row headers are unpinned and scrolled sideways, and under CSS
zoom: the width a drag commits is now what the pointer moved in the pivot's own pixels. Before, at a zoom of 150% a drag of 40 pixels made the column 60 pixels wider. Saved widths are unchanged. - A double click on the edge of a column header (the resize grip) now fits that column to what is rendered: the header and the visible cells. It commits through
onColumnWidthsChange(React) or the controller (columnWidths) like a drag. Before, it did nothing. Rows the virtual window has not rendered are not measured. - A right-click menu (the row and column header menu, the view-options menu) opened near the bottom of the window now ends at the pointer when it opens upward. Before, it ended up to 107 px above it, because its height was assumed to be 200 px.
- A mouse click on a cell no longer puts the focus ring on the first cell for an instant before it moves to the clicked one. Focus that arrives with the Tab key still starts at the first cell.
- With the row headers unpinned (
layout.rowHeaderOverflow: 'unpin', or unpinned on their own when they cannot fit) the React grid now scrolls in ONE element both ways: the wrapper that holds the row headers and the data (classkanuni-pivot-unpinned-scroller, the parent of.pivot-right-pane). Its vertical scrollbar is at the pivot's right edge; before,.pivot-right-panescrolled down by itself and, as wide as its data, put its scrollbar after the last data column..pivot-right-paneno longer scrolls in this mode: code that reads or sets itsscrollTopmust use the wrapper. The scroll saved withgetPersistedState({ include: ['scroll'] })is the wrapper's in this mode, so its left offset now includes the row headers. Pinned,'shrink'and'scroll'are unchanged, and so is the plain JS grid (one scroller already). - A field dropped on a tabular row-header cell (the space around a row chip above the rows) now goes before or after that cell's field, split at the cell's middle, with the chip's insertion mark. Before, the space between two row chips was the end of the row area: the field became the last row field and no mark showed (in the plain JS grid the cells were not a target at all). The empty end of the last cell still appends, since after the last field is the end.
- A narrow pivot (768 px or less, the pivot's own width) that is shorter than 480 px now keeps the filter area to 44 px and the Values and Columns areas above the headers to 40 px (60 and 56 px with touch chips), one row of chips each, scrolling inside. Before, a 1100x500 window at 175% left a 240 px pivot no data row in view. A pivot of 480 px or more, and every wider pivot, is unchanged. The wrapper carries
data-pivot-shortwhile this applies. - After
undoLayout()/redoLayout(), when the element that had the focus is still there but no longer takes it (the data pane, which a browser focuses only while it can scroll, after a step that shortened the table), the focus now goes to the grid element; the focus ring then starts at the first cell, as after a Tab. Before, the focus stayed on <body> and the next Ctrl+Y reached nothing. - Row-header cells now carry
data-group-start(the first row of a group, where the value is written) anddata-group-end(the last row of the group in that column), whether or notlayout.rowHeaderGroupLinesis on. They change no style; a test that compares the cells' markup will see them. - With the focus on the grid but on no cell (a click below the last row, on the header band, or on the empty part of an unpinned table), the first arrow, Home, End, PageUp or PageDown key now puts the focus on the first cell, selects it as a plain move would, and is consumed (its default is prevented). Since the mouse no longer focuses the first cell (B.85), these keys did nothing there.
onCellPreparedgets the plain font weights it always got (600 for a total, 500 for a column header). The cell is then painted with the variable that defaults to that weight (var(--pivot-font-weight-total, 600)and its siblings) unless the hook set another value: code that reads a cell's inlinefont-weightback from the DOM sees thevar(...)text.- In the plain JS grid the field list window and the drag ghost now carry the root's view classes and variables (
showSummaryBadge: false,showChipRemove: false,textOverflow: 'clip', the density,scrollbarStyle: 'native', the chip width) and follow a layout change while open. Before, they kept the default look in <body>; the React grid has done this since 1.11.5.
PivotGrid 1.11.5
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- On a screen 768 px wide or narrower the filter area now stops at 30% of the pivot's height (it was 40% in 1.11.4), and the Values and Columns areas above the headers stop at 88 px and scroll inside themselves. Before, they grew with their chips and, in a 400-450 px pivot, left the first data row below the visible part of the table.
exportDatarejects when nothing was written: a styled format (pdf,excel-list,excel-pivot) with no Enterprise exporter registered, and a format nothing handles. It used to log a notice (or nothing) and resolve. The footer and menu buttons send the error toonErroras before (anAbortErrorstays silent). The React ref'sexportDatanow also rejects after callingonError, so an app that awaits it can tell; an app that calls it withoutawaitand without acatchwill see an unhandled rejection in that case.onErroris called and the promise rejects: rely on one of the two, not both.- A tooltip with the whole caption now shows on a field chip.
- After
expandAll({ allLevels: true })on a pivot of more than 5,000 groups, the entries inexpandedPathsandexpandedColPathsthat start with U+0001 are closed branches. They are saved with the state (getPersistedState(), saved reports) and are opaque: do not parse them. AserverSourceand a custom exporter are given the sets without them (the*entry means everything open), and a json-snapshot export leaves them out. - In the plain JS grid a swipe over a field chip now scrolls the capped filter area and the Values and Columns areas (a hold of 200 ms, then a move, still drags), as in React.
undoLayout()andredoLayout()watch the pivot's DOM for 10 seconds (it was 3 seconds, and stopped 100 ms after the result) and give the focus back whenever the focused element is replaced. Focus the reader moves with a click is left alone.- The Excel files (
excel-list, the summary table written byexportSummaryTable, andexcel-pivot) now size each column from its heading and its first 1,000 rows, between 8 and 60 characters wide, reading a date-time or custom decimals from the number format. Before, a list column kept Excel's default width (long headers were cut, amounts could show as ####) and every pivot column was 15 wide. A merged heading does not set a width. A file over the streaming limit (100,000 list rows, 150,000 pivot cells; written as .xls) has no widths, as before. - The totals in a file say what the grid says. The grid now passes its dictionary (the locale's words and your
dictionaryoverrides) to the controller, and the Excel list, pivot and streaming files, the PDF, print and clipboard take the subtotal and grand-total words from it. A customdictionary.subTotalof 'Toplam' used to appear on screen as 'Toplam: X' and in the Excel file as the locale's 'Alt Toplam: X'; now both say 'Toplam: X'. Print and clipboard, which wrote an English 'Total' and 'Grand Total' in every language, now follow the grid's language (in an English grid a subtotal reads 'Sub Total: A' where it read 'Total: A', so an app that parses the printed or copied text for 'Total:' must change), and the React PDF does too where the PDF font can draw the word (otherwise it keeps the English one, as the plain JS PDF does). A controller used with no renderer has no dictionary: Excel and PDF use the words of itslocale, print and clipboard keep the English ones. - With many row fields on a narrow or zoomed screen the row-header block now lets go of its pin by itself, whatever
layout.rowHeaderOverflowsays: when its columns at the 56 px floor plus 160 px for the data are wider than the pivot (columns x 56 + 160 > the pivot's width), the whole table (headers and data) scrolls sideways as one, each column at its width. Before, the block filled the pivot and the data columns could not be reached. Four row fields in a 358 px phone box now take this path (they were squeezed to 56 px columns); where the block fits nothing changes. - The field list window of the React pivot is drawn in
<body>(it was inside the pivot's box), inside a.kanuni-pivot-portal-container. CSS that reached it as a descendant of.kanuni-pivot-wrapperno longer matches (a page-wide selector still does). The host carries the pivot root's classes (striped, density,no-summary-badge,no-chip-remove, native scrollbars), its--pivot-*variables and itsdir, so the window looks and reads as before. Every portal host, React and plain JS, now setszoomon itself to cancel a CSSzoomon<body>or an ancestor, so popups are sized and placed in viewport pixels again. - The 768 px limit of B.61 (the filter area at 30% of the pivot's height, the Values and Columns areas at 88 px) follows the pivot's own width now, not the window's:
.kanuni-pivot-wrapperis a size container (container-type: inline-size) and the rules sit in an@containerquery. A pivot narrower than 768 px in a wide window gets the caps (a zoomed-in desktop); a wide pivot in a narrow window no longer does. A browser without container queries (before Chrome 105, Safari 16, Firefox 110) does not apply the caps. Because the width of.kanuni-pivot-wrapperis now contained, a wrapper whose width depends on its contents (an inline-block, or an auto-width column or flex item around the pivot) can collapse to 0: give the pivot's container a width, as the 100% the wrapper has by default.
PivotGrid 1.11.4
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- A plain arrow key (or Home, End, Page Up, Page Down) now selects the cell it moves to, so
onSelectionChange,onSelectionStatsChangeand the Selection Detail panel follow the keyboard. Before, only the focus ring moved. An app that treated the selection as "what the user clicked" now sees it change on every key press. - Ctrl or Cmd with an arrow, Home or End moves only the focus and leaves the selection; add Shift to extend it. Space selects the focused cell (and still sends
onCellClick). - On a screen 768 px wide or narrower the filter area takes at most 40% of the pivot's height and scrolls inside itself, also when
layout.filterAreaMaxRowsasks for more; a smaller cap andfilterAreaCollapsedwork as before. Before, a pivot of 400-500 px with many filter fields could be all filter area. The pivot needs a height of its own (an auto-height pivot is not capped). - Adding or deleting a calculated field no longer writes a layout-undo step:
canUndoLayout()stays as it was andundoLayout()does not spend a press on a step that changed nothing on screen. Placing the field in an area is still a step. Deleting a calculated field cannot be undone. undoLayout()andredoLayout()keep the focus: if it was in the pivot it stays in the pivot, and if it was on the button that asked and the step disabled that button, it moves to the pivot's grid element. An app that moved the focus itself after the call can drop that code; focus that was on<body>is left alone.- The "Move to" and "Order" menu items open their submenu by touch, and a mouse click on a submenu that hover has just opened keeps it open (before, the click closed it). The plain JS grid also keeps only one of the two open.
- The calculated-field window closes on Escape and gives the focus back to the button that opened it; it is a dialog now (
role="dialog",aria-modal, named by its title). A page that listened for Escape itself while the window was open will see it close.
PivotGrid 1.11.3
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- Data import is removed. The footer import menu, file drag-and-drop, paste import, the import preview and status dialogs, and the controller methods importFile, importFiles, importFromUrl, importData and importText are gone, with the options onImportData, previewImport and toolbar.showImportFile and the state importStatus and importPreview. Remove them from your code; give the grid its rows through data, setData or applyTransaction.
- pivotgrid-core no longer depends on xlsx in any form. The Excel reader was the only user of it, and the xlsx releases on npm carry known security flaws (CVE-2023-30533, CVE-2024-22363). Exports are unchanged.
- A file dropped on the grid is no longer read. To also stop the browser opening it in the tab, prevent dragover and drop on your own container.
onFieldMoveis now asked on every move, not only a drag: the "Move to" menu, the field list (checkbox, "Select all", hide), the chip keys andchangeFieldArea,showFields,removeFieldandmoveField. A handler written for drags alone now sees these too;e.cancel()works on all of them.- The field list checkbox puts a field in the area of its definition, else the first of its
allowedAreas, and only then data for a number and rows otherwise. A hidden field defined in the filter area used to come back as a row or a measure. - On a touch screen a finger drags a chip only after a hold (
touchDragDelay, 200 ms); a finger that moves sooner scrolls the page. Before, a finger on the chip's name dragged after 8 px. - A field with
visible: falseis now hidden everywhere: not in the field list, not in an area, not computed as a row, column or value, not exported. It used to show everywhere. A filter on it still applies, and itsareais kept, sovisible: trueputs it back. - On a touch screen a pivot chip no longer shows its filter and remove buttons: one "…" opens the chip menu, which now has "Filter field". In a row header cell there is no "…" either (hold the chip for its menu). With a mouse nothing changes.
- The footer's "Expand all" button now opens every level at once (
expandAll({ allLevels: true })); it used to open one more level per click. On a large pivot that is every row and column member: the fully expanded result is computed first. - Path keys of a member with an empty text at the first level changed (see Fixed): "|" for that member and "||x" below it, where it used to be "" and "x". Paths as arrays (
cellClick,getCell, the selection) are unaffected. If you stored such keys by hand, rebuild them withpathKey. - Undo (
undoLayout) also puts back the open branches and summary sorts that the change being undone dropped.
PivotGrid 1.11.2
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- A summary formula or function that has no number — a division by zero, null, NaN, Infinity or a throw — now leaves the cell blank instead of 0, on screen, in the selection totals and in exports. The function compileSafeFormula returns gives NaN on a division by zero; a row-level formula still reads it as 0.
- On a touch screen the field chips are wider (44px controls) and the column header filter funnel sits at the end of the cell and is always shown.
- On EnterprisePivotGrid, Ctrl/Cmd+click now adds a rectangle to the selection and Shift+click extends it, instead of starting a new one.
- The React Enterprise Excel files carry the grid language for the grand-total and subtotal labels and the sheet names.
PivotGrid 1.11.1
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- Numbers in the data cells use tabular figures (every digit the same width), so columns of amounts line up. Text in a fixed-width font looks the same; in a proportional font the numbers can take slightly more room.
PivotGrid 1.11.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
exportData(format)withoutapplyFiltersnow writes only the rows the filters keep, as the footer's export buttons always did. PassapplyFilters: falsefor every source row.- Restoring a saved layout drops the fields your app no longer defines (the calculated fields a reader made stay), and fields added since then join as you define them. Before, a removed field came back without its data field.
- The saved state carries
version: 1; a state with another version is ignored and the grid opens with its layout. States saved before this version have none and still load. - A field counted distinct leaves blank cells out of the count, the way the main-thread engine and the server pivot always did; before, a blank counted as one more value on a number field.
- Under a display mode (% of total, running total…) the chart draws the values the grid shows instead of the sums under them, and a percent measure prints as a percent in tooltips and on the axis.
- The dictionary gained
distinct("Count Distinct"). A TypeScript app that types a complete dictionary of its own adds the key. The Enterprise prefilter builder's eight captions (builderCombine,builderAddCondition,builderAddGroup,builderRemoveGroup,builderRemoveCondition,builderEmpty,opIsBlank,opIsNotBlank) left the shared dictionary type: overrides of them still apply at runtime, but TypeScript now reports them as unknown keys in a dictionary typed asPartial<PivotDictionary>; keep them in an object of their own type.
PivotGrid 1.10.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- A pivot with more than 1,000 column members now draws the first 1,000 and says so above the table; the totals still count all the data. Set
maxColumnsto raise the cap, or0to turn it off. - The filter and remove icons on a field chip are no longer buttons, because a control inside the chip's own button cannot be reached as a second control by a screen reader. Mouse clicks work as before; from the keyboard, Alt+ArrowDown on the chip opens its filter and Delete removes it. A test or script that selected
button.kanuni-pivot-chip-btnshould select.kanuni-pivot-chip-btn. - The summary badge on a value field (SUM, AVG…) is drawn in the text colour on an accent tint with an accent border, instead of accent-coloured text.
PivotGrid 1.9.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
showRowGrandTotalsnow controls the grand total row andshowColumnGrandTotalsthe grand total column, as documented; before, each switched the other — in both renderers, the exports and the clipboard. An app that turned off only one of them sees the other one hidden now; if you had swapped the two to get the right result, swap them back.- In the header filter list a tick always means "shown", in include and exclude mode alike. A saved filter is read the same; only what the list displays changed.
- The footer toolbar buttons get the padding they were meant to have (a 27px target at normal density), so the toolbar is a little taller than in 1.8.0.
PivotGrid 1.7.2
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- A partial
layout, such as{ rowHeaderLayout: 'tree' }, keeps the defaults for the options it leaves out; before, the grid drew no values. A full set of defaults passed only to work around that can go.
PivotGrid 1.7.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
summaryType: 'custom'runs yourcalculateCustomSummary, or the aggregator registered under that name. Before, every custom measure showed a sum, so the numbers of such measures change. An unknown aggregator name is reported as an engine error.controller.on('fieldMove', …)fires now. A handler registered for it starts running on every field drag;newIndexis where the field landed.groupInterval: 'numeric'and'custom'never grouped; they are now reported throughonError.- Fourteen chart panel captions left the
PivotDictionarytype. A dictionary declared with that type that sets them no longer type-checks; your own messages still rename them.
PivotGrid 1.4.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- A dictionary typed as the full
PivotDictionaryneeds the eight new licence keys; a partialdictionaryneeds nothing.
PivotGrid 1.3.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- Column subtotals are on by default, like row totals. Set
showColumnTotals: falseinlayoutto keep the columns you had. - Exported sheets name their totals in the grid's language instead of English.
PivotGrid 1.2.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
stateStoringdoes what it says:enabled: falsestops saving,type: 'sessionStorage'saves there, andtype: 'custom'calls youronSave/onLoad. Before, every setting saved to localStorage. Passing nostateStoringkeeps the old behaviour, so saved layouts are kept.- The
toolbarprop is honoured: switches you set in it take effect now. - On a Community grid the paid export formats (
excel-list,excel-pivot,pdf) reject with an error routed toonErrorinstead of silently doing nothing, andexportDatareturns a promise.
PivotGrid 1.0.5
- The Web Workers are built into the package and start from a
blob:URL: a worker file you copied intopublic/can go, and an explicitworkerUrlstill wins. Under a Content-Security-Policy withoutworker-src blob:, the grid loads the worker file from the package instead.