@casoon/opengrid 0.15.0 → 0.16.0

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +247 -1
  2. package/README.md +6 -4
  3. package/engine/opengrid_wasm_bg.wasm +0 -0
  4. package/loader.d.ts +390 -18
  5. package/loader.js +473 -90
  6. package/package.json +8 -1
  7. package/pkg/opengrid_web_components.d.ts +73 -7
  8. package/pkg/opengrid_web_components.js +339 -53
  9. package/pkg/opengrid_web_components_bg.wasm +0 -0
  10. package/pkg/opengrid_web_components_bg.wasm.d.ts +15 -6
  11. package/react/index.d.ts +8 -2
  12. package/react/index.js +9 -3
  13. package/svelte/Opengrid.svelte +7 -1
  14. package/svelte/OpengridGrid.svelte +5 -1
  15. package/svelte/OpengridPivot.svelte +3 -3
  16. package/svelte/OpengridTable.svelte +1 -1
  17. package/svelte/index.d.ts +12 -2
  18. package/svelte/index.js +1 -1
  19. package/texts/de.d.ts +5 -0
  20. package/texts/de.js +245 -0
  21. package/vue/index.d.ts +12 -2
  22. package/vue/index.js +10 -6
  23. package/worker.js +1 -2
  24. package/xlsx/opengrid_xlsx.d.ts +69 -0
  25. package/xlsx/opengrid_xlsx.js +375 -0
  26. package/xlsx/opengrid_xlsx_bg.wasm +0 -0
  27. package/xlsx/opengrid_xlsx_bg.wasm.d.ts +16 -0
  28. /package/pkg/snippets/{opengrid-web-components-ef3def04de0cb619 → opengrid-web-components-35ed06b453a9b215}/inline0.js +0 -0
  29. /package/pkg/snippets/{opengrid-web-components-ef3def04de0cb619 → opengrid-web-components-35ed06b453a9b215}/inline1.js +0 -0
  30. /package/pkg/snippets/{opengrid-web-core-78fdded9b8a374ed → opengrid-web-core-b41714d4e7311909}/inline0.js +0 -0
  31. /package/pkg/snippets/{opengrid-web-core-78fdded9b8a374ed → opengrid-web-core-b41714d4e7311909}/inline1.js +0 -0
  32. /package/pkg/snippets/{opengrid-web-core-78fdded9b8a374ed → opengrid-web-core-b41714d4e7311909}/inline2.js +0 -0
package/CHANGELOG.md CHANGED
@@ -19,6 +19,251 @@ Two things belong in every release entry and are easy to leave out:
19
19
 
20
20
  ## [Unreleased]
21
21
 
22
+ ## [0.16.0] - 2026-11-12
23
+
24
+ Not yet verified by a screen reader: no pass with assistive technology has been recorded for this
25
+ release ([#5](https://github.com/casoon/opengrid/issues/5)). The keyboard and `axe-core` checks run on
26
+ every change.
27
+
28
+ ### Added
29
+
30
+ - **Grid:** detail panels under a row. `set_detail_renderer(grid, (record, key) => Node)` (`detailRenderer`
31
+ in the framework components) gives the node of a record's panel; a button in the row's first cell and
32
+ `Alt`+`↓` / `Alt`+`↑` open and close it. The panel is one more `row` with one `gridcell` across the
33
+ columns, `aria-rowcount` and the `aria-rowindex` of the rows below count it, its height is measured and
34
+ the scroll area follows. `opengrid-detail-toggle` fires; the view carries the open rows' keys
35
+ (`detail`). Needs a `row-key`; not offered grouped, as a tree or past the sizer's limit. Texts
36
+ `detailShow`, `detailHide`, `detailPanel`, `detailShown` and `detailHidden`
37
+ ([#318](https://github.com/casoon/opengrid/issues/318)).
38
+ - **Export, print:** band names in the header row. The print table writes `Address · City` over a banded
39
+ column; `exportRows(…, { headers })` does the same for CSV and XLSX with the texts
40
+ `get_export_headers(grid)` answers, and a server takes them as `header.<column>` parameters on
41
+ `POST /export/{source}`. A column without a band keeps its field name; JSON has no header row and
42
+ refuses the option ([#353](https://github.com/casoon/opengrid/issues/353),
43
+ [export guide](docs/guides/export.md#naming-the-band), [Column bands](docs/api.md#column-bands)).
44
+ - **Grid:** hide a whole band from its cell. `Delete` on a band's cell, or *Hide band* in its menu
45
+ (`Alt`+`↓`, `Shift`+`F10` or the context-menu key with `column-menu`), hides every column the band
46
+ spans in one step and names the band in the status line; the column list brings it back, and a band
47
+ that is all there is stays ([#352](https://github.com/casoon/opengrid/issues/352),
48
+ [Column bands](docs/api.md#column-bands)).
49
+ - **Export:** XLSX without a server ([#332](https://github.com/casoon/opengrid/issues/332)).
50
+ `exportRows(provider, query, { format: "xlsx" })` now writes the workbook in the tab for the
51
+ engine in the tab, a worker and the hybrid provider — the same writer and the same type rules as
52
+ the server's. It is a module of its own, `@casoon/opengrid/xlsx/` (about 245 KB brotli), that
53
+ `exportRows` loads the first time and a page that never exports to Excel does not fetch. The
54
+ workbook is held in memory, so a workbook in the tab is bounded by `maxRows` (250 000 by
55
+ default; about 120 MB at 100 000 rows) and by Excel's 1 048 575 rows
56
+ ([export guide](docs/guides/export.md#xlsx)).
57
+ - **Grid:** a whole record as a form. `Shift`+`F2` on a data cell opens the record in a native modal
58
+ dialog built from the schema — one labelled field per column, the editor its cell would open, a
59
+ column the page fills shown and not editable. Saving checks every field first (the schema, a required
60
+ column, a blocking validator) and keeps the form open with the reason under the field and the focus on
61
+ the first one; otherwise it fires one `opengrid-cell-change` per changed field and the record is **one**
62
+ undo step. A cancelable `opengrid-record-open` lets a page open its own form instead. Needs `row-key`;
63
+ off while grouped and in a tree ([#325](https://github.com/casoon/opengrid/issues/325),
64
+ [Editing a whole record](docs/api.md#editing-a-whole-record)).
65
+ - **Grid:** a block of cells, marked and copied. `Shift`+arrows, `Shift`+click and dragging mark the
66
+ rectangle between where it began and the focus, announced as a size („3 by 4 cells“) and drawn with
67
+ `data-range`; `Ctrl`/`Cmd`+`C` copies it as values, tab-separated, which a spreadsheet reads and the
68
+ grid's paste reads back unchanged. A text cell a spreadsheet would run as a formula gets the export's
69
+ guard (a leading `'`), which pasting into a text column takes off again. A copy covers the loaded
70
+ rows and says so otherwise; the row selection stays its own thing
71
+ ([#327](https://github.com/casoon/opengrid/issues/327),
72
+ [Copying a range of cells](docs/api.md#copying-a-range-of-cells)).
73
+ - **Grid:** cell templates. `set_cell_templates(host, { column: ({ value, text, row, key }) => Node })`
74
+ (and `cellTemplates` in `connect` and the React, Vue and Svelte adapters) shows a node the page builds —
75
+ a link, a badge, a small bar — instead of a cell's text. Never an HTML string; the source's value stays
76
+ what search, filters, export, copy and events read. The cell stays one stop of the grid pattern:
77
+ `Enter` goes into its controls, `Escape` comes back. Cells are drawn again when their row changes under
78
+ them ([#317](https://github.com/casoon/opengrid/issues/317), [Cell templates](docs/api.md#cell-templates)).
79
+ - **Query:** `icontains` and `istarts_with` — `contains` and `starts_with` ignoring case, both sides
80
+ folded with Unicode's lowercase mapping and no locale (`Müller` is found by `müller`; `ß` stays, a
81
+ final `Σ` becomes `ς`, a Turkish `İ` becomes `i` and a combining dot). The engine, SQLite (a function
82
+ the connector registers) and PostgreSQL (`lower` under ICU's `und-x-icu`, so the database needs ICU)
83
+ agree on the new `fold-cases` of the conformance suite. The filter row offers them
84
+ ([#323](https://github.com/casoon/opengrid/issues/323),
85
+ [query semantics](docs/guides/query-semantics.mdx)). Locale collation of sorting is
86
+ [#391](https://github.com/casoon/opengrid/issues/391).
87
+ - **Server, provider, grid:** a source that changes. `GET /watch/{source}` is an optional,
88
+ notification-only stream (Server-Sent Events, same token, no rows); the application says when data
89
+ changed with `Server::notify_changed`. `createRestProvider({ …, watch: true })` follows it and
90
+ tells the grid with a cancelable `opengrid-source-changed`. The grid moves **nothing**: the
91
+ status line says once that the data changed and a **Refresh** button (or `refresh(grid)`) runs the
92
+ query again, keeping the view, the focus by record, the selection by key and the history
93
+ ([#328](https://github.com/casoon/opengrid/issues/328),
94
+ [protocol](docs/protocol.md#watching-a-source), [A source that changes](docs/api.md#a-source-that-changes)).
95
+ - **Grid:** filters joined by `or`. The search expression takes `or` and parentheses —
96
+ `country = DE or (qty ≥ 900 and customer = Alpha)`, `and` binding tighter — and a value in double
97
+ quotes. An expression the filter row cannot hold — one with an `or`, or with two conditions on
98
+ one column — becomes the grid's one **nested filter**: one chip in words, and-ed onto the filter
99
+ row, the facets, the search and the page's `filter`, in every query the grid sends; every other
100
+ expression still writes the filter row ([#324](https://github.com/casoon/opengrid/issues/324), [Search](docs/api.md#search),
101
+ [Nested filter](docs/api.md#nested-filter)).
102
+ - **Grid:** a builder for the nested filter — a native modal `<dialog>` with conditions in groups
103
+ that match *all* or *any*. The filter's chip opens it; the new attribute `filter-builder` puts
104
+ *Advanced filter* into the toolbar to start one (`filterBuilder` in the framework components).
105
+ New parts `filter-builder`, `filter-builder-dialog` and `chip-edit` ([#324](https://github.com/casoon/opengrid/issues/324)).
106
+ - **Grid:** the view carries the nested filter as `where`, in the wire form of a query's filter
107
+ (type `ViewFilter`); `set_view` restores it and refuses one that names an unknown column, `not`
108
+ or `in` ([#324](https://github.com/casoon/opengrid/issues/324), [The view](docs/api.md#the-view)).
109
+ - **Texts:** `queryOr`, `queryUnclosed`, `queryUnopened`, `queryMissingCondition`,
110
+ `queryMissingJoin`, `filterApplied`, `filterBuilder`, `filterBuilderJoin`, `filterBuilderAll`,
111
+ `filterBuilderAny`, `filterBuilderCondition`, `filterBuilderGroup`, `filterBuilderAddCondition`,
112
+ `filterBuilderAddGroup` and `filterBuilderEdit`, with their German ([#324](https://github.com/casoon/opengrid/issues/324)).
113
+ - **Pivot:** XLSX export, written by the server ([#331](https://github.com/casoon/opengrid/issues/331)).
114
+ `exportPivot(provider, pivot, { format: "xlsx" })` answers the shown pivot as one flat sheet: the
115
+ header row and the rows of its CSV, numbers and dates as typed cells. Over `createPivotProvider`
116
+ and `createRestProvider`, from `POST /pivot/{source}?format=xlsx`
117
+ ([export guide](docs/guides/export.md#a-pivot-as-a-workbook)).
118
+ - **Elements:** right-to-left layout for `<opengrid-grid>`, `<opengrid-table>` and
119
+ `<opengrid-pivot>`, taken from `dir` on the element or an ancestor: the columns run from the
120
+ right, and in the grid `←` and `→` follow what is on the screen
121
+ ([#320](https://github.com/casoon/opengrid/issues/320), [Right to left](docs/api.md#right-to-left)).
122
+ - **Export:** a print path for paper and PDF. `prepare_print(grid)` builds a plain table of every
123
+ match of the view, shown only in `@media print` in place of the grid, and `window.print()` prints
124
+ it; a table, a pivot and a grid print black on white whatever the look
125
+ ([#334](https://github.com/casoon/opengrid/issues/334), [Printing the view](docs/api.md#printing-the-view)).
126
+ - **Grid:** pinned columns. `pin: "start"` or `pin: "end"` in `set_columns` keeps a column in
127
+ place while the others scroll sideways; the reader changes it on the header cell with
128
+ `Alt`+`Shift`+`←`/`→` or from the column menu's *Pin* group, and the view holds that choice as
129
+ `columns.pinned`. A focused cell is scrolled clear of the pinned columns, and when they would take
130
+ more than half of the grid's width they scroll with the others until there is room again. New
131
+ texts `pinGroup`, `pinNone`, `pinStart`, `pinEnd`, `columnPinnedStart`, `columnPinnedEnd`,
132
+ `columnUnpinned` and `pinsReleased`
133
+ ([#316](https://github.com/casoon/opengrid/issues/316), [Pinned columns](docs/api.md#pinned-columns)).
134
+ - **Grid:** column bands, a header above several columns. A column names its band in
135
+ `set_columns` (`band: "Address"`), and the columns that name the same one share a header cell in
136
+ a row above their own; one level. A band is always in one piece: a column moves inside its band,
137
+ `Ctrl`/`Cmd`+`←`/`→` on the band's cell moves the band with its columns, hiding its last shown
138
+ column hides it, and pinning one of its columns pins the band. The arrow keys cross the two
139
+ header rows, and a data cell names its band and its column as its headers. New part `band`
140
+ ([#319](https://github.com/casoon/opengrid/issues/319), [Column bands](docs/api.md#column-bands)).
141
+ - **Grid:** lookup columns. `lookup: { key: label }` in `set_columns` gives a `utf8` or `int64`
142
+ column that stores keys the labels a reader reads: the cell and a group's header show the label,
143
+ the editor is the combobox over the labels, the filter row and the "+ Filter" dialog offer a
144
+ choice among them, and `list` and `pills` facets list them. The value stays the key — in the
145
+ query, the view, the events and every export — and the column **sorts and groups by the key, not
146
+ by the label**; its only aggregate is `count`
147
+ ([#326](https://github.com/casoon/opengrid/issues/326), [Lookup columns](docs/api.md#lookup-columns)).
148
+ - **Grid:** `filter`, the page's filter — a wire filter as JSON, and-ed onto every query the grid
149
+ sends. It is not the reader's: no chip, not in the view, and "remove all" leaves it
150
+ ([#330](https://github.com/casoon/opengrid/issues/330), [The page's filter](docs/api.md#the-pages-filter)).
151
+ - **Pivot:** the rows behind a cell. With `drill-down`, every value is a button that fires
152
+ `opengrid-drill-down` with the cell's filter — NULL and empty-string groups apart, totals by the
153
+ dimensions they lie in, the pivot's own filter included — and the page shows the rows, in a grid
154
+ through its `filter`; `onDrillDown` in `connect` and the framework components
155
+ ([#330](https://github.com/casoon/opengrid/issues/330), [Drilling down](docs/api.md#drilling-down)).
156
+ - **Grid:** a grouped grid with `row-key` selects rows: opening and closing a group never changes
157
+ what is selected, a group header is not selected, and select-all takes every row of the filter,
158
+ open or not ([#322](https://github.com/casoon/opengrid/issues/322)).
159
+ - **Grid:** the view carries a selection by key as `selected`, and `set_view` restores it after
160
+ asking the source which of the keys still name a record; those that do not are dropped and said
161
+ (new text `selectionMissing`). Selecting fires `opengrid-selection-change` only
162
+ ([#322](https://github.com/casoon/opengrid/issues/322)).
163
+ - **Pivot:** calculated measures. A measure with `calc` is shown as its share of the row, the
164
+ column or the grand total (`sum`, `count`), or as a running total along the columns (also `avg`,
165
+ `min`, `max`) — computed by the source,
166
+ chosen from a measure's chip in the toolbar, named in the headers and the exports
167
+ ([#329](https://github.com/casoon/opengrid/issues/329),
168
+ [Calculated measures](docs/api.md#calculated-measures)).
169
+ - **Texts:** a German translation ships with the npm package as `@casoon/opengrid/texts/de` — every
170
+ text of the grid, the table and the pivot, with `lang: "de"`, to hand to `set_texts` or to the
171
+ `texts` of `connect`; a page that does not import it does not load it
172
+ ([#333](https://github.com/casoon/opengrid/issues/333), [Texts](docs/api.md#texts)).
173
+
174
+ ### Changed
175
+
176
+ - **Build:** the shipped modules are optimised with `wasm-opt -Oz --low-memory-unused`, which makes the
177
+ element module 1.4 KiB, the engine 0.8 KiB and the XLSX module 0.9 KiB smaller (brotli); the budget
178
+ bounds are lowered to match ([#366](https://github.com/casoon/opengrid/issues/366)).
179
+ - **Pages:** the project site uses the current shared theme (0.12.12).
180
+ - **Pages:** the project site uses the current shared theme (0.12.11).
181
+ - **Grid:** the free-text search ignores case. **What breaks:** it sent `contains` and now sends
182
+ `icontains`, so `de` finds `DE`; a source that does not know the new operator refuses the query.
183
+ The operator list of the filter row has two more entries after `starts_with`; `set_texts` keys by
184
+ token, so a page's translations are unaffected, but anything that picked an operator by its
185
+ position in the list has moved.
186
+ - **Pages:** the project site uses the current shared theme (0.12.10).
187
+ - **Grid:** the search expression reads `or` and parentheses. **What breaks:** ` or ` (and the
188
+ `queryOr` word) inside a value now ends it, a `)` without its `(` inside a value is refused,
189
+ and a value that starts with `"` and has a closing `"` is the text between them — write such
190
+ values in double quotes: `customer = "this or that"`. Input that starts with `(` and a condition
191
+ is a filter, no longer a text search. The pivot's filter field joins with `and` alone, as before
192
+ ([#324](https://github.com/casoon/opengrid/issues/324)).
193
+ - **Grid:** two conditions on one column are both kept. `amount > 1 and amount < 5` in the search
194
+ field left only the last one in the filter row; now the whole expression becomes the nested
195
+ filter. The same in the pivot's filter field, where both are and-ed. Expressions with one
196
+ condition per column go to the filter row as before ([#324](https://github.com/casoon/opengrid/issues/324)).
197
+ - **Grid:** every grid with `row-key` selects **by key**, grouped or not: the selection stays
198
+ through a sort, a filter, grouping and ungrouping, and select-all asks the source for the keys.
199
+ **What breaks:** with `row-key`, and in a tree, `opengrid-selection-change` is `{ count, keys }`
200
+ and has no `rows` and no `ranges` any more (`SelectionChangeDetail` is a union of
201
+ `SelectionByPosition` and `SelectionByKey`); a sort or a filter no longer drops such a selection;
202
+ `get_view` holds `selected` while something is selected, and `set_view` with a view that has no
203
+ `selected` clears it. Without `row-key` nothing changes
204
+ ([#322](https://github.com/casoon/opengrid/issues/322), `docs/api.md`: *Selecting by key*).
205
+ - **Grid:** the view's `columns` has a fourth field, `pinned`, and every column menu has the three
206
+ entries of the *Pin* group. **What breaks:** a TypeScript `View` written out in full needs
207
+ `columns.pinned` (`{}` for none; `ViewInput`, which `set_view` takes, does not); in the
208
+ `opengrid-grid` crate `ColumnLayout::effective` and `ColumnLayout::move_column` take the pins of
209
+ the page as a further argument ([#316](https://github.com/casoon/opengrid/issues/316)).
210
+ - **Grid:** in the `opengrid-grid` crate the page's part of the column arrangement is one value,
211
+ `layout::PageColumns` (its pins and its bands). **What breaks:** `ColumnLayout::effective`,
212
+ `pin`, `set_pin` and `move_column` take `&PageColumns` where they took the page's pins as a
213
+ slice. The elements and the npm package are not affected
214
+ ([#319](https://github.com/casoon/opengrid/issues/319)).
215
+ - **Grid:** setting `group-by` on a grid that selects by position now says `Selection cleared` and
216
+ fires `opengrid-selection-change` when it drops a selection; it was dropped silently
217
+ ([#322](https://github.com/casoon/opengrid/issues/322)).
218
+ - **Pivot (Rust):** a pivot's measure is `opengrid_pivot::Measure` — an `Aggregate` and its
219
+ optional `Calc`. **What breaks:** `PivotQuery::values` and `ValidatedPivotQuery::values` are
220
+ `Vec<Measure>` (they were `Vec<Aggregate>`; the aggregate is `measure.aggregate`), and
221
+ `PivotError` gained `Calc`, so an exhaustive `match` must handle it. The wire form is unchanged
222
+ for a pivot without `calc` ([#329](https://github.com/casoon/opengrid/issues/329)).
223
+ - **Grid:** `group-by`, the view's `group` and the toolbar's *+ Group* take three grouping levels; a
224
+ fourth is refused as the third was. The default wording of `groupingFull` is now
225
+ `Grouped by three columns already` ([#321](https://github.com/casoon/opengrid/issues/321)).
226
+
227
+ - **Rust:** three public items that nothing was meant to use are closed
228
+ ([#357](https://github.com/casoon/opengrid/issues/357)). **What breaks:**
229
+ `opengrid_datasource::ExecutionMode` is gone — the engine takes
230
+ `opengrid_planner::ExecutionMode`; the fields of `opengrid_server::AppState` are private, read
231
+ `registry()` and `max_concurrent_exports()` instead, so a new setting no longer breaks a caller
232
+ that builds one; the modules `opengrid_server::api` and `opengrid_server::registry` are private,
233
+ with what they offered still at the crate root (`AppState`, `ErrorReport`, `router`, `Registry`,
234
+ `RegistryError`, `RowFilter`, `SourcePolicy`); `opengrid_datasource_postgres::pg_type` is
235
+ not public any more.
236
+ - **Rust:** `opengrid-export`'s feature `xlsx` writes a workbook **in memory**, and the new feature
237
+ `xlsx-streaming` is what `xlsx` was — finished rows go to a temporary file, which the server has
238
+ and a browser has not ([#332](https://github.com/casoon/opengrid/issues/332)).
239
+ **What breaks:** a crate that enabled `opengrid-export/xlsx` for its constant memory enables
240
+ `xlsx-streaming` now (`opengrid-server` does). New: `opengrid_datasource::wire::result_from_bytes`,
241
+ the binary form of an answer read into a result — it moved there from the element module, and
242
+ `opengrid-datasource` depends on `opengrid-columns` for it.
243
+
244
+ ### Fixed
245
+
246
+ - **Grid:** copying a block of cells with `Ctrl`/`Cmd`+`C` works in Firefox and Safari, whose `copy` event does not pass through the shadow root ([#327](https://github.com/casoon/opengrid/issues/327)).
247
+ - **Grid:** pinned columns hold in Safari (WebKit)
248
+ ([#379](https://github.com/casoon/opengrid/issues/379)): the filter field of a pinned column right
249
+ to left, and the one of a pinned band, stay above their column; a filter field that takes the focus
250
+ stands clear of the pinned fields, and a pinned one no longer moves the grid; a pinned cell that
251
+ takes the focus no longer jumps the grid sideways; and the rows of a grid narrower than its table
252
+ are as wide as the table, so a pinned cell has room to stand in.
253
+ - **Grid:** in a tree with rows whose parent is missing, the sentence about them replaced a notice
254
+ that was waiting for the result — a page's `{ notice }` on `set_view` was never said. Both are
255
+ said now, the page's first ([#344](https://github.com/casoon/opengrid/issues/344)).
256
+ - **Grid:** after `group-by` changed, the focus stayed on the old cell while the grid acted on the
257
+ first header, so `Enter` and the arrow keys did nothing useful until the focus moved. A cell that
258
+ had the focus now hands focus and active cell to its column's header; a header keeps both, and
259
+ a column menu or the *+ Group* button gets the focus back where it was
260
+ ([#345](https://github.com/casoon/opengrid/issues/345)).
261
+ - **Grid:** a grouped grid, and a tree, put their window six rows short of where a key or the
262
+ scrolling asked for it: `Ctrl`+`End` stopped before the last position and `ArrowDown` at the
263
+ window's edge needed two presses ([#342](https://github.com/casoon/opengrid/issues/342)).
264
+ - **Docs:** the API reference's link to the protocol, where `where` is described, led to a
265
+ missing page on the project site.
266
+
22
267
  ## [0.15.0] - 2026-11-09
23
268
 
24
269
  **Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
@@ -1385,7 +1630,8 @@ tested.
1385
1630
  tested: React 18 rendering on the server, SvelteKit, Nuxt, Next.js and Astro
1386
1631
  as real applications. A Vite production build needs `loadOpengrid({ moduleUrl })`.
1387
1632
 
1388
- [Unreleased]: https://github.com/casoon/opengrid/compare/v0.15.0...HEAD
1633
+ [Unreleased]: https://github.com/casoon/opengrid/compare/v0.16.0...HEAD
1634
+ [0.16.0]: https://github.com/casoon/opengrid/compare/v0.15.0...v0.16.0
1389
1635
  [0.15.0]: https://github.com/casoon/opengrid/compare/v0.14.0...v0.15.0
1390
1636
  [0.14.0]: https://github.com/casoon/opengrid/compare/v0.13.0...v0.14.0
1391
1637
  [0.13.0]: https://github.com/casoon/opengrid/compare/v0.12.0...v0.13.0
package/README.md CHANGED
@@ -57,9 +57,9 @@ as the npm package, so give every `opengrid-*` crate the same one:
57
57
 
58
58
  ```toml
59
59
  [dependencies]
60
- opengrid-server = "0.15" # the gateway, as a library
61
- opengrid-connector-sqlite = "0.15" # or opengrid-datasource-postgres
62
- opengrid-engine = "0.15" # the engine alone, native
60
+ opengrid-server = "0.16" # the gateway, as a library
61
+ opengrid-connector-sqlite = "0.16" # or opengrid-datasource-postgres
62
+ opengrid-engine = "0.16" # the engine alone, native
63
63
  ```
64
64
 
65
65
  While the version is 0.x, a minor bump may break the Rust API
@@ -166,7 +166,9 @@ const blob = await exportRows(provider, query, { format: "csv" });
166
166
 
167
167
  CSV per RFC 4180 with a guard against formula injection, or JSON; through
168
168
  `createRestProvider` also XLSX, written by the server (`format: "xlsx"`). A pivot exports as
169
- shown with `get_pivot`. See [Export](https://github.com/casoon/opengrid/blob/main/docs/guides/export.md).
169
+ shown with `get_pivot`, and as XLSX from a server with `exportPivot`. For paper and PDF,
170
+ `await module.prepare_print(grid)` builds a plain table of every match, and `window.print()` prints
171
+ it. See [Export](https://github.com/casoon/opengrid/blob/main/docs/guides/export.md).
170
172
 
171
173
  ## Documentation
172
174
 
Binary file