@casoon/opengrid 0.12.0 → 0.13.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.
- package/CHANGELOG.md +59 -0
- package/engine/opengrid_wasm_bg.wasm +0 -0
- package/loader.d.ts +2 -0
- package/package.json +1 -1
- package/pkg/opengrid_web_components.js +12 -12
- package/pkg/opengrid_web_components_bg.wasm +0 -0
- /package/pkg/snippets/{opengrid-web-components-47f0023c89578a83 → opengrid-web-components-ad6dc2c80732d2d3}/inline0.js +0 -0
- /package/pkg/snippets/{opengrid-web-core-2a174e372aad3f8d → opengrid-web-core-19b41f3fd18cf51f}/inline0.js +0 -0
- /package/pkg/snippets/{opengrid-web-core-2a174e372aad3f8d → opengrid-web-core-19b41f3fd18cf51f}/inline1.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,65 @@ Two things belong in every release entry and are easy to leave out:
|
|
|
18
18
|
|
|
19
19
|
## [Unreleased]
|
|
20
20
|
|
|
21
|
+
## [0.13.0] — 2026-10-10
|
|
22
|
+
|
|
23
|
+
**Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
|
|
24
|
+
**Browsers:** Chromium (the whole e2e suite: 1155 passed). Firefox and WebKit on Linux (`gh workflow run ci.yml -f browsers=true`): 1141 passed, 19 skipped by design — no failures; the two of [#157](https://github.com/casoon/opengrid/issues/157) are gone.
|
|
25
|
+
|
|
26
|
+
A tree that sums its subtrees and exports whole: a column's aggregate shows on every node with
|
|
27
|
+
children beside its own value, and `get_query()` on a tree asks for every node, flat, with its
|
|
28
|
+
level and path. Beside it, two Firefox fixes the new browser run found.
|
|
29
|
+
|
|
30
|
+
**Module sizes** (brotli, `just measure-modules`): the elements 244.1 → 249.7 KiB, the engine
|
|
31
|
+
133.8 → 139.9 KiB, measured against v0.12.0 — both past their bounds, which this release raises
|
|
32
|
+
(`scripts/module-budget.txt`).
|
|
33
|
+
|
|
34
|
+
**What breaks:**
|
|
35
|
+
- Rust: `TreeSpec` has a new public field, `aggregate` (`aggregate: Vec::new()` in a struct
|
|
36
|
+
literal); `ValidatedTree` has `aggregate` and `aggregate_schema`; `TreeLevel` has
|
|
37
|
+
`aggregate_schema`, `aggregates` and `flat` and is no longer `Eq`;
|
|
38
|
+
`opengrid_columns::wire::TreeSection` has `aggregates` and `flat` and is no longer `Eq`;
|
|
39
|
+
`TreeSpec` and `ValidatedTree` also have `flat`.
|
|
40
|
+
|
|
41
|
+
### Added
|
|
42
|
+
|
|
43
|
+
- **The whole tree, flat** ([#166](https://github.com/casoon/opengrid/issues/166), rule T8).
|
|
44
|
+
`tree.flat: true` answers every visible node of a tree depth-first, siblings in the query's
|
|
45
|
+
order, paged like any query; each row's level, its path of keys and — with a filter — whether
|
|
46
|
+
it matches come back as `tree.flat`, in JSON and in the binary form. A source field named
|
|
47
|
+
`level` or `path` (or `match`, with a filter) is refused. Four conformance cases (T8) pass on
|
|
48
|
+
every path.
|
|
49
|
+
- **A tree exports whole and flat** ([#166](https://github.com/casoon/opengrid/issues/166)).
|
|
50
|
+
`get_query()` on a grid with `tree` asks for every node of the reader's view, not only the
|
|
51
|
+
open ones; `exportRows` and the server's export write it with `level`, `path` and, with a
|
|
52
|
+
filter, `match` after the query's columns — the path joined (`1 / 2 / 4`) in CSV and XLSX,
|
|
53
|
+
an array in JSON. The server answers a tree's export the way it answers its query, tenant
|
|
54
|
+
rule included, and hands it out in pieces. A worker's answers — the binary form — export a
|
|
55
|
+
tree the same way.
|
|
56
|
+
- **Subtree aggregates, in the engine and on the server** ([#165](https://github.com/casoon/opengrid/issues/165), rule T7).
|
|
57
|
+
A tree query takes `tree.aggregate: [{ field?, fn, as }]` and answers, per node of the level,
|
|
58
|
+
the aggregate over the node and all its descendants — from the raw rows, the functions and
|
|
59
|
+
types of grouping (S12); with a filter over the subtree's matches only, context does not
|
|
60
|
+
count. The values come back beside the rows as `tree.aggregates`, in JSON and as one more
|
|
61
|
+
table in the binary form, which a reader from before them refuses. Every source answers it:
|
|
62
|
+
the engine in the tab and the worker, and the server over a file, the rows tier, SQLite and
|
|
63
|
+
PostgreSQL. Four conformance cases (T7) pass on every path.
|
|
64
|
+
- **Subtree summaries in the grid's tree** ([#165](https://github.com/casoon/opengrid/issues/165)).
|
|
65
|
+
A column's aggregate — from `set_columns`, the column menu or the view, as in groups — shows on
|
|
66
|
+
every node with children beside its own value, `120 · Σ 1,450`, and is said with the new text
|
|
67
|
+
`subtreeCell` ("120. Sum of the subtree: 1,450"); a node without a value of its own says only
|
|
68
|
+
the summary, with `subtreeOnly` ("Sum of the subtree: 1,450"). A leaf shows its own value; a
|
|
69
|
+
summary the column's type cannot take is said once, as in groups.
|
|
70
|
+
- **A guide to the tree** ([#167](https://github.com/casoon/opengrid/issues/167)): *A tree in the
|
|
71
|
+
grid* — from a parent field to the flat export.
|
|
72
|
+
|
|
73
|
+
### Fixed
|
|
74
|
+
|
|
75
|
+
- **Firefox: no unnamed tab stop in the narrow toolbar** ([#157](https://github.com/casoon/opengrid/issues/157)).
|
|
76
|
+
The toolbar's row scrolls sideways on a narrow grid, and Firefox made the scroll container a
|
|
77
|
+
stop of its own before the first button. It is out of the tab order now; every button is still
|
|
78
|
+
reached by `Tab` and scrolls into view.
|
|
79
|
+
|
|
21
80
|
## [0.12.0] — 2026-10-09
|
|
22
81
|
|
|
23
82
|
**Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
|
|
Binary file
|
package/loader.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casoon/opengrid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Accessible data grid, table and pivot as web components, driven by a portable Rust/WASM query engine — with React, Vue and Svelte components.",
|
|
6
6
|
"keywords": [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* @ts-self-types="./opengrid_web_components.d.ts" */
|
|
2
|
-
import { __opengrid_intl_formatter } from './snippets/opengrid-web-components-
|
|
3
|
-
import { __opengrid_define_element } from './snippets/opengrid-web-core-
|
|
4
|
-
import * as import1 from "./snippets/opengrid-web-core-
|
|
5
|
-
import * as import2 from "./snippets/opengrid-web-core-
|
|
6
|
-
import * as import3 from "./snippets/opengrid-web-core-
|
|
2
|
+
import { __opengrid_intl_formatter } from './snippets/opengrid-web-components-ad6dc2c80732d2d3/inline0.js';
|
|
3
|
+
import { __opengrid_define_element } from './snippets/opengrid-web-core-19b41f3fd18cf51f/inline1.js';
|
|
4
|
+
import * as import1 from "./snippets/opengrid-web-core-19b41f3fd18cf51f/inline0.js"
|
|
5
|
+
import * as import2 from "./snippets/opengrid-web-core-19b41f3fd18cf51f/inline0.js"
|
|
6
|
+
import * as import3 from "./snippets/opengrid-web-core-19b41f3fd18cf51f/inline0.js"
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -317,10 +317,10 @@ function __wbg_get_imports() {
|
|
|
317
317
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
318
318
|
return ret;
|
|
319
319
|
},
|
|
320
|
-
|
|
320
|
+
__wbg___opengrid_define_element_dc83f3c3aea1a1c1: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
321
321
|
__opengrid_define_element(getStringFromWasm0(arg0, arg1), arg2, arg3, arg4, arg5);
|
|
322
322
|
},
|
|
323
|
-
|
|
323
|
+
__wbg___opengrid_intl_formatter_77f1e896c6fe6b8d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
324
324
|
const ret = __opengrid_intl_formatter(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), arg4);
|
|
325
325
|
return ret;
|
|
326
326
|
}, arguments); },
|
|
@@ -1018,7 +1018,7 @@ function __wbg_get_imports() {
|
|
|
1018
1018
|
return ret;
|
|
1019
1019
|
},
|
|
1020
1020
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1021
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1021
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 215, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1022
1022
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_6af9200f0870d488___convert__closures_____invoke___wasm_bindgen_6af9200f0870d488___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_6af9200f0870d488___JsError___true_);
|
|
1023
1023
|
return ret;
|
|
1024
1024
|
},
|
|
@@ -1048,7 +1048,7 @@ function __wbg_get_imports() {
|
|
|
1048
1048
|
return ret;
|
|
1049
1049
|
},
|
|
1050
1050
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
1051
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [U32], shim_idx:
|
|
1051
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [U32], shim_idx: 201, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1052
1052
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_6af9200f0870d488___convert__closures_____invoke___u32______true_);
|
|
1053
1053
|
return ret;
|
|
1054
1054
|
},
|
|
@@ -1080,9 +1080,9 @@ function __wbg_get_imports() {
|
|
|
1080
1080
|
return {
|
|
1081
1081
|
__proto__: null,
|
|
1082
1082
|
"./opengrid_web_components_bg.js": import0,
|
|
1083
|
-
"./snippets/opengrid-web-core-
|
|
1084
|
-
"./snippets/opengrid-web-core-
|
|
1085
|
-
"./snippets/opengrid-web-core-
|
|
1083
|
+
"./snippets/opengrid-web-core-19b41f3fd18cf51f/inline0.js": import1,
|
|
1084
|
+
"./snippets/opengrid-web-core-19b41f3fd18cf51f/inline0.js": import2,
|
|
1085
|
+
"./snippets/opengrid-web-core-19b41f3fd18cf51f/inline0.js": import3,
|
|
1086
1086
|
};
|
|
1087
1087
|
}
|
|
1088
1088
|
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|