@casoon/opengrid 0.4.0 → 0.5.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 +70 -0
- package/engine/opengrid_wasm.d.ts +10 -0
- package/engine/opengrid_wasm.js +21 -0
- package/engine/opengrid_wasm_bg.wasm +0 -0
- package/engine/opengrid_wasm_bg.wasm.d.ts +1 -0
- package/loader.d.ts +39 -0
- package/loader.js +13 -0
- package/package.json +1 -1
- package/pkg/opengrid_web_components.d.ts +5 -4
- package/pkg/opengrid_web_components.js +88 -30
- package/pkg/opengrid_web_components_bg.wasm +0 -0
- package/pkg/opengrid_web_components_bg.wasm.d.ts +5 -4
- package/worker.js +6 -0
- /package/pkg/snippets/{opengrid-web-core-cf7d8c1a6d317e41 → opengrid-web-core-54e8640e6ad3b889}/inline0.js +0 -0
- /package/pkg/snippets/{opengrid-web-core-cf7d8c1a6d317e41 → opengrid-web-core-54e8640e6ad3b889}/inline1.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,76 @@ Two things belong in every release entry and are easy to leave out:
|
|
|
18
18
|
|
|
19
19
|
## [Unreleased]
|
|
20
20
|
|
|
21
|
+
## [0.5.0] — 2026-09-28
|
|
22
|
+
|
|
23
|
+
**Screen-reader pairings tested: none yet** — unchanged since 0.1.0
|
|
24
|
+
([issue #5](https://github.com/casoon/opengrid/issues/5)). **Browsers:** Chromium, the whole
|
|
25
|
+
e2e suite. WebKit (Playwright's, not Safari): the whole suite, one failure — the layout
|
|
26
|
+
misses the look's colour and font until the first restyle
|
|
27
|
+
([#81](https://github.com/casoon/opengrid/issues/81), there since 0.3.0). Firefox: **not
|
|
28
|
+
run** — Playwright's Firefox did not start on the release machine.
|
|
29
|
+
|
|
30
|
+
**What breaks:** no frozen name was renamed or removed; what moved is structure a page
|
|
31
|
+
stylesheet or script may have leaned on:
|
|
32
|
+
- the pager is in `part="footer"` now, not above the header (#75);
|
|
33
|
+
- a boolean column's filter-row control is a `<select>` (any / yes / no), no longer a
|
|
34
|
+
checkbox (#60);
|
|
35
|
+
- a column is drawn at least 96 px wide with the column menu, 64 px without, and at least
|
|
36
|
+
128 px while the filter row shows (#61, #62);
|
|
37
|
+
- the toolbar's buttons sit in an inner row without a part, and an opened column list
|
|
38
|
+
follows the density (#77).
|
|
39
|
+
|
|
40
|
+
**Module sizes** (brotli, `just measure-modules`): the elements 211.2 → 215.8 KiB, the
|
|
41
|
+
engine 122.6 → 124.9 KiB (the resource report's measuring, #70).
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
|
|
45
|
+
- **A resource report** ([#70](https://github.com/casoon/opengrid/issues/70)). The grid fires
|
|
46
|
+
`opengrid-query` after every answer of its provider — `{ kind, ms, rows, total, bytes,
|
|
47
|
+
form, memory }`: where it ran, the round trip measured in the tab, what came back and in
|
|
48
|
+
which form, and the element module's WASM memory. The local and worker providers answer
|
|
49
|
+
`stats()` — the engine's WASM memory and, per loaded source, rows, columns and bytes held
|
|
50
|
+
(`Engine.stats()`, a worker message `stats`). Measured always, sent nowhere.
|
|
51
|
+
- **Column titles** ([#66](https://github.com/casoon/opengrid/issues/66)). `set_columns` takes
|
|
52
|
+
`title` per column — what a reader reads wherever the grid names the column: the header,
|
|
53
|
+
the column list, the filter row's labels, the column menu, the "+ Filter" dialog and
|
|
54
|
+
"+ Group" menu, group rows, chips, facet headings, search suggestions (which show the
|
|
55
|
+
field name beside it, since that is what an expression takes) and every announcement.
|
|
56
|
+
The field name stays the identifier in queries, views, expressions, exports and events.
|
|
57
|
+
|
|
58
|
+
### Fixed
|
|
59
|
+
|
|
60
|
+
- **The toolbar on a narrow grid** ([#77](https://github.com/casoon/opengrid/issues/77)).
|
|
61
|
+
On a phone it wrapped into four rows, 178 of a 460 px grid, and left room for four
|
|
62
|
+
rows of data. Under 560 px of grid width, the search field now takes a line of its own
|
|
63
|
+
and the buttons stay in one row that scrolls sideways; a button that takes the focus
|
|
64
|
+
comes fully into view. At a 320 px viewport (reflow, 1.4.10) it wraps as before. The
|
|
65
|
+
buttons now sit in an inner row without a part, so `::part` rules are unaffected;
|
|
66
|
+
an opened column list comes after the density rather than before it.
|
|
67
|
+
- **The pager sits in the footer** ([#75](https://github.com/casoon/opengrid/issues/75)).
|
|
68
|
+
It stood between the filter row and the header, in the browser's unstyled buttons. It
|
|
69
|
+
now follows the status in `part="footer"`, below the rows it pages, as compact glyph
|
|
70
|
+
buttons (« ‹ › ») that keep their names — "First page" and so on — as `aria-label`.
|
|
71
|
+
A stylesheet that placed `[part="pager"]` by its old position has to follow.
|
|
72
|
+
- **A boolean column in the filter row** ([#60](https://github.com/casoon/opengrid/issues/60)).
|
|
73
|
+
It was a checkbox whose value reads `on` whether ticked or not: the grid showed a chip
|
|
74
|
+
"… is on" with nothing filtered, and the first filter on any other column silently
|
|
75
|
+
brought `= true` along. It is now a choice of three — *any*, *yes*, *no* — with three new
|
|
76
|
+
text keys `filterAny`, `booleanTrue`, `booleanFalse`. The "+ Filter" dialog reads a
|
|
77
|
+
boolean's checkbox by whether it is ticked.
|
|
78
|
+
- **A narrow column keeps its name** ([#61](https://github.com/casoon/opengrid/issues/61)).
|
|
79
|
+
With the column menu, a sorted 80 px column showed only "▲ ⋯": the header reserved a
|
|
80
|
+
fixed 2.75em for the sort marks on top of the menu button. It now reserves what stands
|
|
81
|
+
beside the name, the name keeps two characters at least, and a column is drawn at least
|
|
82
|
+
96 px wide with the column menu (64 px without) whatever width it was given.
|
|
83
|
+
- **The filter row stands under the columns and scrolls with them** ([#62](https://github.com/casoon/opengrid/issues/62)).
|
|
84
|
+
Its groups sat at fixed 248 px steps and the row scrolled on its own, so at a phone's
|
|
85
|
+
width a field was under the wrong column. Each group is now as wide as its column and
|
|
86
|
+
starts where it starts (measured from the header, again whenever the table changes size),
|
|
87
|
+
rows and filter share one horizontal position, and the table is at least as wide as its
|
|
88
|
+
columns' minimum widths — a column without a width of its own no longer shrinks to a few
|
|
89
|
+
pixels, the grid scrolls sideways instead.
|
|
90
|
+
|
|
21
91
|
## [0.4.0] — 2026-09-28
|
|
22
92
|
|
|
23
93
|
**Screen-reader pairings tested: none yet** — unchanged since 0.1.0
|
|
@@ -42,6 +42,15 @@ export class Engine {
|
|
|
42
42
|
* The names of the registered sources, in unspecified order.
|
|
43
43
|
*/
|
|
44
44
|
source_names(): string[];
|
|
45
|
+
/**
|
|
46
|
+
* What the engine holds (issue #70), as JSON:
|
|
47
|
+
* `{ "memory": bytes, "sources": [{ "name", "rows", "columns", "bytes" }] }`.
|
|
48
|
+
*
|
|
49
|
+
* `memory` is the module's whole linear memory — what the browser gave
|
|
50
|
+
* it, which only grows; `bytes` is what a source's columns take inside
|
|
51
|
+
* it. Sources by name.
|
|
52
|
+
*/
|
|
53
|
+
stats(): string;
|
|
45
54
|
}
|
|
46
55
|
|
|
47
56
|
/**
|
|
@@ -108,6 +117,7 @@ export interface InitOutput {
|
|
|
108
117
|
readonly engine_load_csv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
109
118
|
readonly engine_new: () => number;
|
|
110
119
|
readonly engine_source_names: (a: number) => [number, number];
|
|
120
|
+
readonly engine_stats: (a: number) => [number, number];
|
|
111
121
|
readonly planner_finish: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
112
122
|
readonly planner_finish_columns: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
113
123
|
readonly planner_new: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
package/engine/opengrid_wasm.js
CHANGED
|
@@ -107,6 +107,27 @@ export class Engine {
|
|
|
107
107
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
108
108
|
return v1;
|
|
109
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* What the engine holds (issue #70), as JSON:
|
|
112
|
+
* `{ "memory": bytes, "sources": [{ "name", "rows", "columns", "bytes" }] }`.
|
|
113
|
+
*
|
|
114
|
+
* `memory` is the module's whole linear memory — what the browser gave
|
|
115
|
+
* it, which only grows; `bytes` is what a source's columns take inside
|
|
116
|
+
* it. Sources by name.
|
|
117
|
+
* @returns {string}
|
|
118
|
+
*/
|
|
119
|
+
stats() {
|
|
120
|
+
let deferred1_0;
|
|
121
|
+
let deferred1_1;
|
|
122
|
+
try {
|
|
123
|
+
const ret = wasm.engine_stats(this.__wbg_ptr);
|
|
124
|
+
deferred1_0 = ret[0];
|
|
125
|
+
deferred1_1 = ret[1];
|
|
126
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
127
|
+
} finally {
|
|
128
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
110
131
|
}
|
|
111
132
|
if (Symbol.dispose) Engine.prototype[Symbol.dispose] = Engine.prototype.free;
|
|
112
133
|
|
|
Binary file
|
|
@@ -8,6 +8,7 @@ export const engine_execute_columns: (a: number, b: number, c: number) => [numbe
|
|
|
8
8
|
export const engine_load_csv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
9
9
|
export const engine_new: () => number;
|
|
10
10
|
export const engine_source_names: (a: number) => [number, number];
|
|
11
|
+
export const engine_stats: (a: number) => [number, number];
|
|
11
12
|
export const planner_finish: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
12
13
|
export const planner_finish_columns: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
13
14
|
export const planner_new: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
package/loader.d.ts
CHANGED
|
@@ -169,10 +169,21 @@ export interface ExecuteOptions {
|
|
|
169
169
|
export interface EngineProvider extends Provider {
|
|
170
170
|
/** Loads CSV bytes as the source `name`, against a schema (JSON). */
|
|
171
171
|
load(name: string, bytes: ArrayBuffer | Uint8Array, schema: string): Promise<void>;
|
|
172
|
+
/** What the engine holds: its memory and each source's size (issue #70). */
|
|
173
|
+
stats(): Promise<EngineStats>;
|
|
172
174
|
/** Stops a worker; a no-op in the tab. */
|
|
173
175
|
terminate(): void;
|
|
174
176
|
}
|
|
175
177
|
|
|
178
|
+
/** What an engine holds, from `stats()` of an engine provider. */
|
|
179
|
+
export interface EngineStats {
|
|
180
|
+
kind: "local" | "worker";
|
|
181
|
+
/** The engine module's WASM linear memory in bytes — it only grows. */
|
|
182
|
+
memory: number;
|
|
183
|
+
/** Every loaded source, by name. */
|
|
184
|
+
sources: { name: string; rows: number; columns: number; bytes: number }[];
|
|
185
|
+
}
|
|
186
|
+
|
|
176
187
|
/** The engine of the engine module, as `createLocalProvider` uses it. */
|
|
177
188
|
export interface Engine {
|
|
178
189
|
load_csv(name: string, bytes: Uint8Array, schema: string): void;
|
|
@@ -180,6 +191,8 @@ export interface Engine {
|
|
|
180
191
|
execute(queryJson: string): string;
|
|
181
192
|
/** The result in the binary form — what the tab and worker providers answer. */
|
|
182
193
|
execute_columns(queryJson: string): Uint8Array;
|
|
194
|
+
/** What it holds, as JSON (see `EngineStats`). */
|
|
195
|
+
stats(): string;
|
|
183
196
|
}
|
|
184
197
|
|
|
185
198
|
/** What a server says a source is. */
|
|
@@ -403,6 +416,12 @@ export type WireValue = string | number | boolean | null;
|
|
|
403
416
|
|
|
404
417
|
/** Per-column presentation for `set_columns` — `presentation` in `connect`. */
|
|
405
418
|
export interface ColumnConfig {
|
|
419
|
+
/**
|
|
420
|
+
* What the column is called where a reader reads it — header, column list,
|
|
421
|
+
* filter labels, menus, chips, announcements. The field name stays the
|
|
422
|
+
* identifier: query, view, search expressions, export.
|
|
423
|
+
*/
|
|
424
|
+
title?: string;
|
|
406
425
|
/** The starting width in pixels; a reader's resize leads after that. */
|
|
407
426
|
width?: number;
|
|
408
427
|
align?: "start" | "end" | "center";
|
|
@@ -579,6 +598,9 @@ export type TextKey =
|
|
|
579
598
|
| "apply"
|
|
580
599
|
| "addGrouping"
|
|
581
600
|
| "groupingFull"
|
|
601
|
+
| "filterAny"
|
|
602
|
+
| "booleanTrue"
|
|
603
|
+
| "booleanFalse"
|
|
582
604
|
| "sourceLocal"
|
|
583
605
|
| "sourceWorker"
|
|
584
606
|
| "sourceRemote"
|
|
@@ -649,6 +671,22 @@ export interface CellChangeDetail {
|
|
|
649
671
|
previous: string;
|
|
650
672
|
}
|
|
651
673
|
|
|
674
|
+
/** `opengrid-query`: one answer of the grid's provider (issue #70). */
|
|
675
|
+
export interface QueryDetail {
|
|
676
|
+
/** The provider's `kind`, or `null` when it names none. */
|
|
677
|
+
kind: ProviderKind | null;
|
|
678
|
+
/** The round trip in milliseconds, measured in the tab. */
|
|
679
|
+
ms: number;
|
|
680
|
+
/** Rows answered, and matches before paging. */
|
|
681
|
+
rows: number;
|
|
682
|
+
total: number;
|
|
683
|
+
/** The answer's size as it arrived, and its form. */
|
|
684
|
+
bytes: number;
|
|
685
|
+
form: "binary" | "json";
|
|
686
|
+
/** The element module's WASM linear memory in bytes. */
|
|
687
|
+
memory: number;
|
|
688
|
+
}
|
|
689
|
+
|
|
652
690
|
/** `opengrid-view-change`: the whole view after the change. */
|
|
653
691
|
export interface ViewChangeDetail {
|
|
654
692
|
view: View;
|
|
@@ -659,6 +697,7 @@ export interface OpengridEventMap {
|
|
|
659
697
|
"opengrid-selection-change": CustomEvent<SelectionChangeDetail>;
|
|
660
698
|
"opengrid-cell-change": CustomEvent<CellChangeDetail>;
|
|
661
699
|
"opengrid-view-change": CustomEvent<ViewChangeDetail>;
|
|
700
|
+
"opengrid-query": CustomEvent<QueryDetail>;
|
|
662
701
|
}
|
|
663
702
|
|
|
664
703
|
// ---------------------------------------------------------------------------
|
package/loader.js
CHANGED
|
@@ -210,6 +210,15 @@ export function createWorkerProvider({
|
|
|
210
210
|
return request({ type: "query", query: queryJson });
|
|
211
211
|
},
|
|
212
212
|
|
|
213
|
+
/**
|
|
214
|
+
* What the engine in the worker holds (issue #70): its WASM memory and,
|
|
215
|
+
* per source, rows, columns and bytes.
|
|
216
|
+
*/
|
|
217
|
+
async stats() {
|
|
218
|
+
await start();
|
|
219
|
+
return { kind: "worker", ...JSON.parse(await request({ type: "stats" })) };
|
|
220
|
+
},
|
|
221
|
+
|
|
213
222
|
/** Stops the worker and rejects everything still in flight. */
|
|
214
223
|
terminate() {
|
|
215
224
|
worker?.terminate();
|
|
@@ -250,6 +259,10 @@ export function createLocalProvider(engine) {
|
|
|
250
259
|
execute(queryJson) {
|
|
251
260
|
return engine.execute_columns(queryJson);
|
|
252
261
|
},
|
|
262
|
+
/** What the engine holds (issue #70), as the worker provider says it. */
|
|
263
|
+
async stats() {
|
|
264
|
+
return { kind: "local", ...JSON.parse(engine.stats()) };
|
|
265
|
+
},
|
|
253
266
|
terminate() {},
|
|
254
267
|
};
|
|
255
268
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casoon/opengrid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.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": [
|
|
@@ -181,11 +181,12 @@ export interface InitOutput {
|
|
|
181
181
|
readonly set_provider: (a: any, b: any) => void;
|
|
182
182
|
readonly set_texts: (a: any, b: any) => void;
|
|
183
183
|
readonly set_view: (a: any, b: any) => void;
|
|
184
|
-
readonly
|
|
184
|
+
readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_90ed3bea5014610e___features__gen_HtmlElement__HtmlElement__alloc_508e33bd5656020b___string__String__core_ed718c3d60ebd546___option__Option_alloc_508e33bd5656020b___string__String___core_ed718c3d60ebd546___option__Option_alloc_508e33bd5656020b___string__String_______true_: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
185
185
|
readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___wasm_bindgen_66404d18cc2edcc2___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_66404d18cc2edcc2___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
186
|
-
readonly
|
|
187
|
-
readonly
|
|
188
|
-
readonly
|
|
186
|
+
readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true_: (a: number, b: number, c: any) => void;
|
|
187
|
+
readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__2: (a: number, b: number, c: any) => void;
|
|
188
|
+
readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__4: (a: number, b: number, c: any) => void;
|
|
189
|
+
readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__5: (a: number, b: number, c: any) => void;
|
|
189
190
|
readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___u32______true_: (a: number, b: number, c: number) => void;
|
|
190
191
|
readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
191
192
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* @ts-self-types="./opengrid_web_components.d.ts" */
|
|
2
|
-
import { __opengrid_define_element } from './snippets/opengrid-web-core-
|
|
3
|
-
import * as import1 from "./snippets/opengrid-web-core-
|
|
4
|
-
import * as import2 from "./snippets/opengrid-web-core-
|
|
5
|
-
import * as import3 from "./snippets/opengrid-web-core-
|
|
2
|
+
import { __opengrid_define_element } from './snippets/opengrid-web-core-54e8640e6ad3b889/inline1.js';
|
|
3
|
+
import * as import1 from "./snippets/opengrid-web-core-54e8640e6ad3b889/inline0.js"
|
|
4
|
+
import * as import2 from "./snippets/opengrid-web-core-54e8640e6ad3b889/inline0.js"
|
|
5
|
+
import * as import3 from "./snippets/opengrid-web-core-54e8640e6ad3b889/inline0.js"
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -266,7 +266,7 @@ function __wbg_get_imports() {
|
|
|
266
266
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
267
267
|
return ret;
|
|
268
268
|
},
|
|
269
|
-
|
|
269
|
+
__wbg___opengrid_define_element_88bb7bec24bcb1d2: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
270
270
|
__opengrid_define_element(getStringFromWasm0(arg0, arg1), arg2, arg3, arg4, arg5);
|
|
271
271
|
},
|
|
272
272
|
__wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
|
|
@@ -348,6 +348,10 @@ function __wbg_get_imports() {
|
|
|
348
348
|
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
349
349
|
return ret;
|
|
350
350
|
}, arguments); },
|
|
351
|
+
__wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
|
|
352
|
+
const ret = arg0.call(arg1);
|
|
353
|
+
return ret;
|
|
354
|
+
}, arguments); },
|
|
351
355
|
__wbg_call_e3b662382210db98: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
352
356
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
353
357
|
return ret;
|
|
@@ -364,6 +368,10 @@ function __wbg_get_imports() {
|
|
|
364
368
|
const ret = arg0.clientHeight;
|
|
365
369
|
return ret;
|
|
366
370
|
},
|
|
371
|
+
__wbg_clientLeft_bdcddc3e40fccaa7: function(arg0) {
|
|
372
|
+
const ret = arg0.clientLeft;
|
|
373
|
+
return ret;
|
|
374
|
+
},
|
|
367
375
|
__wbg_closest_d889c758da4bb13b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
368
376
|
const ret = arg0.closest(getStringFromWasm0(arg1, arg2));
|
|
369
377
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -384,6 +392,14 @@ function __wbg_get_imports() {
|
|
|
384
392
|
const ret = arg0.customElements;
|
|
385
393
|
return ret;
|
|
386
394
|
},
|
|
395
|
+
__wbg_disabled_03c1f71b366d407a: function(arg0) {
|
|
396
|
+
const ret = arg0.disabled;
|
|
397
|
+
return ret;
|
|
398
|
+
},
|
|
399
|
+
__wbg_disabled_ff46632391f3512a: function(arg0) {
|
|
400
|
+
const ret = arg0.disabled;
|
|
401
|
+
return ret;
|
|
402
|
+
},
|
|
387
403
|
__wbg_dispatchEvent_ca78eaf3d469bc25: function() { return handleError(function (arg0, arg1) {
|
|
388
404
|
const ret = arg0.dispatchEvent(arg1);
|
|
389
405
|
return ret;
|
|
@@ -425,6 +441,14 @@ function __wbg_get_imports() {
|
|
|
425
441
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
426
442
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
427
443
|
}, arguments); },
|
|
444
|
+
__wbg_getRootNode_f724c3be671a9a57: function(arg0) {
|
|
445
|
+
const ret = arg0.getRootNode();
|
|
446
|
+
return ret;
|
|
447
|
+
},
|
|
448
|
+
__wbg_get_507a50627bffa49b: function(arg0, arg1) {
|
|
449
|
+
const ret = arg0[arg1 >>> 0];
|
|
450
|
+
return ret;
|
|
451
|
+
},
|
|
428
452
|
__wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
|
|
429
453
|
const ret = Reflect.get(arg0, arg1);
|
|
430
454
|
return ret;
|
|
@@ -626,6 +650,10 @@ function __wbg_get_imports() {
|
|
|
626
650
|
const ret = new Array();
|
|
627
651
|
return ret;
|
|
628
652
|
},
|
|
653
|
+
__wbg_new_5394f65338077341: function() { return handleError(function (arg0) {
|
|
654
|
+
const ret = new ResizeObserver(arg0);
|
|
655
|
+
return ret;
|
|
656
|
+
}, arguments); },
|
|
629
657
|
__wbg_new_cd45aabdf6073e84: function(arg0) {
|
|
630
658
|
const ret = new Uint8Array(arg0);
|
|
631
659
|
return ret;
|
|
@@ -646,6 +674,13 @@ function __wbg_get_imports() {
|
|
|
646
674
|
const ret = new CustomEvent(getStringFromWasm0(arg0, arg1), arg2);
|
|
647
675
|
return ret;
|
|
648
676
|
}, arguments); },
|
|
677
|
+
__wbg_now_86c0d4ba3fa605b8: function() {
|
|
678
|
+
const ret = Date.now();
|
|
679
|
+
return ret;
|
|
680
|
+
},
|
|
681
|
+
__wbg_observe_f27242eadc2ebd47: function(arg0, arg1) {
|
|
682
|
+
arg0.observe(arg1);
|
|
683
|
+
},
|
|
649
684
|
__wbg_of_85f52f8b6491a7ca: function(arg0) {
|
|
650
685
|
const ret = Array.of(arg0);
|
|
651
686
|
return ret;
|
|
@@ -654,6 +689,10 @@ function __wbg_get_imports() {
|
|
|
654
689
|
const ret = arg0.ownerDocument;
|
|
655
690
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
656
691
|
},
|
|
692
|
+
__wbg_parentElement_5030754e30795652: function(arg0) {
|
|
693
|
+
const ret = arg0.parentElement;
|
|
694
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
695
|
+
},
|
|
657
696
|
__wbg_parse_1c0d8a8656d7e016: function() { return handleError(function (arg0, arg1) {
|
|
658
697
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
659
698
|
return ret;
|
|
@@ -723,6 +762,10 @@ function __wbg_get_imports() {
|
|
|
723
762
|
__wbg_scrollIntoView_d8b806f471b7418e: function(arg0, arg1) {
|
|
724
763
|
arg0.scrollIntoView(arg1);
|
|
725
764
|
},
|
|
765
|
+
__wbg_scrollLeft_5be50f489b342a09: function(arg0) {
|
|
766
|
+
const ret = arg0.scrollLeft;
|
|
767
|
+
return ret;
|
|
768
|
+
},
|
|
726
769
|
__wbg_scrollTop_b3effa9c5de14d21: function(arg0) {
|
|
727
770
|
const ret = arg0.scrollTop;
|
|
728
771
|
return ret;
|
|
@@ -762,6 +805,9 @@ function __wbg_get_imports() {
|
|
|
762
805
|
__wbg_set_detail_564ad103413aa5dc: function(arg0, arg1) {
|
|
763
806
|
arg0.detail = arg1;
|
|
764
807
|
},
|
|
808
|
+
__wbg_set_disabled_0ae5c051bdb880d2: function(arg0, arg1) {
|
|
809
|
+
arg0.disabled = arg1 !== 0;
|
|
810
|
+
},
|
|
765
811
|
__wbg_set_disabled_cad2c12b3643aa52: function(arg0, arg1) {
|
|
766
812
|
arg0.disabled = arg1 !== 0;
|
|
767
813
|
},
|
|
@@ -774,6 +820,9 @@ function __wbg_get_imports() {
|
|
|
774
820
|
__wbg_set_mode_17bd6a9f8e12d5a5: function(arg0, arg1) {
|
|
775
821
|
arg0.mode = __wbindgen_enum_ShadowRootMode[arg1];
|
|
776
822
|
},
|
|
823
|
+
__wbg_set_scrollLeft_075e81a16fc93cca: function(arg0, arg1) {
|
|
824
|
+
arg0.scrollLeft = arg1;
|
|
825
|
+
},
|
|
777
826
|
__wbg_set_scrollTop_431b03eeb3e9c636: function(arg0, arg1) {
|
|
778
827
|
arg0.scrollTop = arg1;
|
|
779
828
|
},
|
|
@@ -883,46 +932,51 @@ function __wbg_get_imports() {
|
|
|
883
932
|
return ret;
|
|
884
933
|
},
|
|
885
934
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
886
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
935
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 205, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
887
936
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___wasm_bindgen_66404d18cc2edcc2___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_66404d18cc2edcc2___JsError___true_);
|
|
888
937
|
return ret;
|
|
889
938
|
},
|
|
890
939
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
891
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
892
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
940
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 18, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
941
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true_);
|
|
893
942
|
return ret;
|
|
894
943
|
},
|
|
895
944
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
896
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
897
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
945
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 18, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
946
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__2);
|
|
898
947
|
return ret;
|
|
899
948
|
},
|
|
900
949
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
901
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("HTMLElement")], shim_idx:
|
|
902
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
950
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("HTMLElement"), String, Option(String), Option(String)], shim_idx: 19, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
951
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_90ed3bea5014610e___features__gen_HtmlElement__HtmlElement__alloc_508e33bd5656020b___string__String__core_ed718c3d60ebd546___option__Option_alloc_508e33bd5656020b___string__String___core_ed718c3d60ebd546___option__Option_alloc_508e33bd5656020b___string__String_______true_);
|
|
903
952
|
return ret;
|
|
904
953
|
},
|
|
905
954
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
906
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
907
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
955
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("HTMLElement")], shim_idx: 18, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
956
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__4);
|
|
908
957
|
return ret;
|
|
909
958
|
},
|
|
910
959
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
911
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [
|
|
912
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
960
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 18, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
961
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__5);
|
|
913
962
|
return ret;
|
|
914
963
|
},
|
|
915
964
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
916
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
965
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [U32], shim_idx: 192, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
966
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___u32______true_);
|
|
967
|
+
return ret;
|
|
968
|
+
},
|
|
969
|
+
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
970
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 17, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
917
971
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke_______true_);
|
|
918
972
|
return ret;
|
|
919
973
|
},
|
|
920
|
-
|
|
974
|
+
__wbindgen_cast_0000000000000009: function(arg0) {
|
|
921
975
|
// Cast intrinsic for `F64 -> Externref`.
|
|
922
976
|
const ret = arg0;
|
|
923
977
|
return ret;
|
|
924
978
|
},
|
|
925
|
-
|
|
979
|
+
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
926
980
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
927
981
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
928
982
|
return ret;
|
|
@@ -940,9 +994,9 @@ function __wbg_get_imports() {
|
|
|
940
994
|
return {
|
|
941
995
|
__proto__: null,
|
|
942
996
|
"./opengrid_web_components_bg.js": import0,
|
|
943
|
-
"./snippets/opengrid-web-core-
|
|
944
|
-
"./snippets/opengrid-web-core-
|
|
945
|
-
"./snippets/opengrid-web-core-
|
|
997
|
+
"./snippets/opengrid-web-core-54e8640e6ad3b889/inline0.js": import1,
|
|
998
|
+
"./snippets/opengrid-web-core-54e8640e6ad3b889/inline0.js": import2,
|
|
999
|
+
"./snippets/opengrid-web-core-54e8640e6ad3b889/inline0.js": import3,
|
|
946
1000
|
};
|
|
947
1001
|
}
|
|
948
1002
|
|
|
@@ -950,16 +1004,20 @@ function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke_______true
|
|
|
950
1004
|
wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke_______true_(arg0, arg1);
|
|
951
1005
|
}
|
|
952
1006
|
|
|
953
|
-
function
|
|
954
|
-
wasm.
|
|
1007
|
+
function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true_(arg0, arg1, arg2) {
|
|
1008
|
+
wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true_(arg0, arg1, arg2);
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__2(arg0, arg1, arg2) {
|
|
1012
|
+
wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__2(arg0, arg1, arg2);
|
|
955
1013
|
}
|
|
956
1014
|
|
|
957
|
-
function
|
|
958
|
-
wasm.
|
|
1015
|
+
function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__4(arg0, arg1, arg2) {
|
|
1016
|
+
wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__4(arg0, arg1, arg2);
|
|
959
1017
|
}
|
|
960
1018
|
|
|
961
|
-
function
|
|
962
|
-
wasm.
|
|
1019
|
+
function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__5(arg0, arg1, arg2) {
|
|
1020
|
+
wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__5(arg0, arg1, arg2);
|
|
963
1021
|
}
|
|
964
1022
|
|
|
965
1023
|
function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___wasm_bindgen_66404d18cc2edcc2___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_66404d18cc2edcc2___JsError___true_(arg0, arg1, arg2) {
|
|
@@ -969,14 +1027,14 @@ function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___wasm_bin
|
|
|
969
1027
|
}
|
|
970
1028
|
}
|
|
971
1029
|
|
|
972
|
-
function
|
|
1030
|
+
function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_90ed3bea5014610e___features__gen_HtmlElement__HtmlElement__alloc_508e33bd5656020b___string__String__core_ed718c3d60ebd546___option__Option_alloc_508e33bd5656020b___string__String___core_ed718c3d60ebd546___option__Option_alloc_508e33bd5656020b___string__String_______true_(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
973
1031
|
const ptr0 = passStringToWasm0(arg3, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
974
1032
|
const len0 = WASM_VECTOR_LEN;
|
|
975
1033
|
var ptr1 = isLikeNone(arg4) ? 0 : passStringToWasm0(arg4, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
976
1034
|
var len1 = WASM_VECTOR_LEN;
|
|
977
1035
|
var ptr2 = isLikeNone(arg5) ? 0 : passStringToWasm0(arg5, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
978
1036
|
var len2 = WASM_VECTOR_LEN;
|
|
979
|
-
wasm.
|
|
1037
|
+
wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_90ed3bea5014610e___features__gen_HtmlElement__HtmlElement__alloc_508e33bd5656020b___string__String__core_ed718c3d60ebd546___option__Option_alloc_508e33bd5656020b___string__String___core_ed718c3d60ebd546___option__Option_alloc_508e33bd5656020b___string__String_______true_(arg0, arg1, arg2, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
980
1038
|
}
|
|
981
1039
|
|
|
982
1040
|
function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___u32______true_(arg0, arg1, arg2) {
|
|
Binary file
|
|
@@ -13,11 +13,12 @@ export const set_formats: (a: any, b: any) => void;
|
|
|
13
13
|
export const set_provider: (a: any, b: any) => void;
|
|
14
14
|
export const set_texts: (a: any, b: any) => void;
|
|
15
15
|
export const set_view: (a: any, b: any) => void;
|
|
16
|
-
export const
|
|
16
|
+
export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_90ed3bea5014610e___features__gen_HtmlElement__HtmlElement__alloc_508e33bd5656020b___string__String__core_ed718c3d60ebd546___option__Option_alloc_508e33bd5656020b___string__String___core_ed718c3d60ebd546___option__Option_alloc_508e33bd5656020b___string__String_______true_: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
17
17
|
export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___wasm_bindgen_66404d18cc2edcc2___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_66404d18cc2edcc2___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
18
|
+
export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true_: (a: number, b: number, c: any) => void;
|
|
19
|
+
export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__2: (a: number, b: number, c: any) => void;
|
|
20
|
+
export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__4: (a: number, b: number, c: any) => void;
|
|
21
|
+
export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___js_sys_f6d81f9cdcf4f83___Array______true__5: (a: number, b: number, c: any) => void;
|
|
21
22
|
export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___u32______true_: (a: number, b: number, c: number) => void;
|
|
22
23
|
export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
23
24
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
package/worker.js
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* load { type:"load", id, name, bytes, schema }
|
|
14
14
|
* -> { type:"loaded", id }
|
|
15
15
|
* query { type:"query", id, query } -> { id, result }
|
|
16
|
+
* stats { type:"stats", id } -> { id, result } (issue #70)
|
|
16
17
|
*
|
|
17
18
|
* Any request that throws answers `{ id, type:"error", message }`. The `bytes`
|
|
18
19
|
* of `load` arrive as a transferable `ArrayBuffer`; a `result` is the engine's
|
|
@@ -40,6 +41,11 @@ self.onmessage = async ({ data }) => {
|
|
|
40
41
|
self.postMessage({ type: "loaded", id: data.id });
|
|
41
42
|
break;
|
|
42
43
|
}
|
|
44
|
+
case "stats": {
|
|
45
|
+
// What the engine holds: its memory and each source's size, as JSON.
|
|
46
|
+
self.postMessage({ id: data.id, result: engine.stats() });
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
43
49
|
case "query": {
|
|
44
50
|
const result = engine.execute_columns(data.query);
|
|
45
51
|
self.postMessage({ id: data.id, result }, [result.buffer]);
|
|
File without changes
|
|
File without changes
|