@casoon/opengrid 0.2.0 → 0.3.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 CHANGED
@@ -18,6 +18,45 @@ Two things belong in every release entry and are easy to leave out:
18
18
 
19
19
  ## [Unreleased]
20
20
 
21
+ ## [0.3.0] — 2026-09-27
22
+
23
+ **Screen-reader pairings tested: none yet** — unchanged since 0.1.0
24
+ ([issue #5](https://github.com/casoon/opengrid/issues/5)). **Browsers:** as in 0.1.0.
25
+
26
+ ### Changed
27
+
28
+ - **The look of the design prototype is the default** ([#32](https://github.com/casoon/opengrid/issues/32)).
29
+ A grid, table or pivot without page CSS looks like the prototype's *Base*: Geist,
30
+ white surfaces, accent `#3d5fd6`, radius 12px.
31
+ - **`theme`** on all three elements picks a built-in look: `base` (default), `paper`,
32
+ `violet`, `orange`, `dark`. `--og-*` properties set by the page still win. The adapters
33
+ take `theme` as a prop. The fonts are named, not loaded.
34
+
35
+ - **The grid's parts look like the design prototype** ([#33](https://github.com/casoon/opengrid/issues/33)):
36
+ the search field, the switches, the column list and the density (a segmented control) in
37
+ one toolbar row; pill chips, the grouping chip inverted; small uppercase column headers;
38
+ 32px filter and facet fields.
39
+ - **"+ Filter" and "+ Group"** in the toolbar ([#34](https://github.com/casoon/opengrid/issues/34)),
40
+ the prototype's two quick doors. *+ Filter* opens a non-modal dialog (column, condition,
41
+ value) that writes the filter row's own entry; *+ Group* opens a menu of the groupable
42
+ columns with the column menu's keys and adds a grouping level. New parts `add-filter`,
43
+ `add-grouping`, `filter-dialog`, `grouping-menu`; nine text keys (`addFilter`,
44
+ `addFilterTitle`, `filterColumnLabel`, `filterConditionLabel`, `filterValueLabel`,
45
+ `cancel`, `apply`, `addGrouping`, `groupingFull`).
46
+ - **A footer**: the status line moved below the rows — the same live region, so the
47
+ announcements are unchanged, but a screen reader reading through meets the count after the
48
+ table. Beside it, where the queries ran and how many were asked for what is shown
49
+ (`local · wasm · 2 queries`): providers carry an optional **`kind`** (`local`, `worker`,
50
+ `remote`, `hybrid`; the built-in ones set it), and six new text keys (`sourceLocal`,
51
+ `sourceWorker`, `sourceRemote`, `sourceHybrid`, `queriesOne`, `queriesOther`). New parts
52
+ `footer` and `source`.
53
+
54
+ **What breaks:** the defaults were the system colours (`Canvas`, `CanvasText`,
55
+ `LinkText`) and followed the reader's light or dark mode. A page that relied on that sets
56
+ `theme="dark"` itself, or its own `--og-*` properties. Under `forced-colors` nothing
57
+ changes. A page that styled `::part(status)` as a line above the rows finds it in the
58
+ footer now.
59
+
21
60
  ## [0.2.0] — 2026-09-27
22
61
 
23
62
  **Screen-reader pairings tested: none yet** — unchanged since 0.1.0
Binary file
package/loader.d.ts CHANGED
@@ -135,6 +135,12 @@ export function connect(host: HTMLElement, options?: ConnectOptions): Connection
135
135
  */
136
136
  export interface Provider {
137
137
  execute(queryJson: string, mode: string, options?: ExecuteOptions): string | Promise<string>;
138
+ /**
139
+ * Optional: where the queries run. The grid names it in its footer, beside
140
+ * the number of queries asked for what is shown; the built-in providers set
141
+ * it. A provider without it is shown with the count alone.
142
+ */
143
+ kind?: ProviderKind;
138
144
  /**
139
145
  * Optional: the whole export of `query` in one go. `exportRows` uses it when
140
146
  * it is there instead of fetching pieces over `execute` —
@@ -350,8 +356,17 @@ export interface CodedError extends Error {
350
356
  /** Where a query may run; handed to the provider unchanged. */
351
357
  export type Mode = "local" | "remote" | "hybrid" | "auto";
352
358
 
359
+ /** What a provider's `kind` says: where its queries run. */
360
+ export type ProviderKind = "local" | "worker" | "remote" | "hybrid";
361
+
353
362
  export type Density = "compact" | "normal" | "comfortable";
354
363
 
364
+ /**
365
+ * The built-in looks of the `theme` attribute; `base` is the default. The
366
+ * `--og-*` custom properties a page sets on the element win over them.
367
+ */
368
+ export type Theme = "base" | "paper" | "violet" | "orange" | "dark";
369
+
355
370
  /** The filter operators, by wire token. */
356
371
  export type FilterOperator =
357
372
  | "eq"
@@ -543,6 +558,21 @@ export type TextKey =
543
558
  | "facetTo"
544
559
  | "facetQueries"
545
560
  | "facetChipValues"
561
+ | "addFilter"
562
+ | "addFilterTitle"
563
+ | "filterColumnLabel"
564
+ | "filterConditionLabel"
565
+ | "filterValueLabel"
566
+ | "cancel"
567
+ | "apply"
568
+ | "addGrouping"
569
+ | "groupingFull"
570
+ | "sourceLocal"
571
+ | "sourceWorker"
572
+ | "sourceRemote"
573
+ | "sourceHybrid"
574
+ | "queriesOne"
575
+ | "queriesOther"
546
576
  | "searchLabel"
547
577
  | "searchPlaceholder"
548
578
  | "queryAnd"
@@ -643,12 +673,15 @@ export interface OpengridGridAttributes {
643
673
  "column-menu"?: string;
644
674
  selection?: string;
645
675
  density?: Density;
676
+ /** One of the built-in looks; Base when absent. */
677
+ theme?: Theme;
646
678
  }
647
679
 
648
680
  export interface OpengridTableAttributes {
649
681
  label?: string;
650
682
  datasource?: string;
651
683
  columns?: string;
684
+ theme?: Theme;
652
685
  }
653
686
 
654
687
  export interface OpengridPivotAttributes {
@@ -660,6 +693,7 @@ export interface OpengridPivotAttributes {
660
693
  columns?: string;
661
694
  /** The measures as the contract's JSON: `[{"field":"qty","fn":"sum","as":"total"}]`. */
662
695
  values?: string;
696
+ theme?: Theme;
663
697
  }
664
698
 
665
699
  /** `<opengrid-grid>`; it fires the three events. */
package/loader.js CHANGED
@@ -189,6 +189,8 @@ export function createWorkerProvider({
189
189
  }
190
190
 
191
191
  return {
192
+ /** Where the queries run; the grid names it in its footer (issue #33). */
193
+ kind: "worker",
192
194
  /** Loads CSV bytes against a schema, starting the worker on first use. */
193
195
  async load(name, bytes, schema) {
194
196
  await start();
@@ -230,6 +232,8 @@ export function createWorkerProvider({
230
232
  */
231
233
  export function createLocalProvider(engine) {
232
234
  return {
235
+ /** Where the queries run; the grid names it in its footer (issue #33). */
236
+ kind: "local",
233
237
  async load(name, bytes, schema) {
234
238
  engine.load_csv(
235
239
  name,
@@ -277,6 +281,8 @@ export function createRestProvider({ url, source, token } = {}) {
277
281
  }
278
282
 
279
283
  return {
284
+ /** Where the queries run; the grid names it in its footer (issue #33). */
285
+ kind: "remote",
280
286
  /**
281
287
  * What the server says this source is: `{ name, schema, capabilities }`.
282
288
  *
@@ -446,6 +452,8 @@ export function createPivotProvider({ url, source, token } = {}) {
446
452
  }
447
453
 
448
454
  return {
455
+ /** Where the queries run; the grid names it in its footer (issue #33). */
456
+ kind: "remote",
449
457
  async execute(pivotJson, _mode, { signal } = {}) {
450
458
  const response = await fetch(endpoint, {
451
459
  method: "POST",
@@ -493,6 +501,8 @@ export function createPivotProvider({ url, source, token } = {}) {
493
501
  */
494
502
  export function createHybridProvider({ remote, planner, mode = "auto", onPlan } = {}) {
495
503
  return {
504
+ /** Where the queries run; the grid names it in its footer (issue #33). */
505
+ kind: "hybrid",
496
506
  async execute(queryJson, elementMode, { signal } = {}) {
497
507
  // The element's attribute wins when it has one: the page sets the default,
498
508
  // the markup can override it per grid.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casoon/opengrid",
3
- "version": "0.2.0",
3
+ "version": "0.3.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,11 @@ 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 wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___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;
184
+ readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___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 wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true_: (a: number, b: number, c: any) => void;
187
- readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true__3: (a: number, b: number, c: any) => void;
188
- readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true__4: (a: number, b: number, c: any) => void;
186
+ readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true_: (a: number, b: number, c: any) => void;
187
+ readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true__3: (a: number, b: number, c: any) => void;
188
+ readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true__4: (a: number, b: number, c: any) => void;
189
189
  readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___u32______true_: (a: number, b: number, c: number) => void;
190
190
  readonly wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke_______true_: (a: number, b: number) => void;
191
191
  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-13b0d2b2f5d74a24/inline1.js';
3
- import * as import1 from "./snippets/opengrid-web-core-13b0d2b2f5d74a24/inline0.js"
4
- import * as import2 from "./snippets/opengrid-web-core-13b0d2b2f5d74a24/inline0.js"
5
- import * as import3 from "./snippets/opengrid-web-core-13b0d2b2f5d74a24/inline0.js"
2
+ import { __opengrid_define_element } from './snippets/opengrid-web-core-51c93662af7982d2/inline1.js';
3
+ import * as import1 from "./snippets/opengrid-web-core-51c93662af7982d2/inline0.js"
4
+ import * as import2 from "./snippets/opengrid-web-core-51c93662af7982d2/inline0.js"
5
+ import * as import3 from "./snippets/opengrid-web-core-51c93662af7982d2/inline0.js"
6
6
 
7
7
 
8
8
  /**
@@ -270,7 +270,7 @@ function __wbg_get_imports() {
270
270
  const ret = Error(getStringFromWasm0(arg0, arg1));
271
271
  return ret;
272
272
  },
273
- __wbg___opengrid_define_element_2b856416c859acf2: function(arg0, arg1, arg2, arg3, arg4, arg5) {
273
+ __wbg___opengrid_define_element_807a943a07794ca2: function(arg0, arg1, arg2, arg3, arg4, arg5) {
274
274
  __opengrid_define_element(getStringFromWasm0(arg0, arg1), arg2, arg3, arg4, arg5);
275
275
  },
276
276
  __wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
@@ -610,6 +610,10 @@ function __wbg_get_imports() {
610
610
  const ret = new Object();
611
611
  return ret;
612
612
  },
613
+ __wbg_new_ff9311947c25f0ab: function() { return handleError(function () {
614
+ const ret = new CSSStyleSheet();
615
+ return ret;
616
+ }, arguments); },
613
617
  __wbg_new_with_args_200d82645b6544eb: function(arg0, arg1, arg2, arg3) {
614
618
  const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
615
619
  return ret;
@@ -618,6 +622,10 @@ function __wbg_get_imports() {
618
622
  const ret = new CustomEvent(getStringFromWasm0(arg0, arg1), arg2);
619
623
  return ret;
620
624
  }, arguments); },
625
+ __wbg_of_85f52f8b6491a7ca: function(arg0) {
626
+ const ret = Array.of(arg0);
627
+ return ret;
628
+ },
621
629
  __wbg_ownerDocument_5a7a5473f8709b3e: function(arg0) {
622
630
  const ret = arg0.ownerDocument;
623
631
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -670,6 +678,9 @@ function __wbg_get_imports() {
670
678
  __wbg_remove_ce1b54059317fe8a: function(arg0) {
671
679
  arg0.remove();
672
680
  },
681
+ __wbg_replaceSync_4449064c4c827515: function() { return handleError(function (arg0, arg1, arg2) {
682
+ arg0.replaceSync(getStringFromWasm0(arg1, arg2));
683
+ }, arguments); },
673
684
  __wbg_requestAnimationFrame_1a85deeab66448c2: function() { return handleError(function (arg0, arg1) {
674
685
  const ret = arg0.requestAnimationFrame(arg1);
675
686
  return ret;
@@ -703,6 +714,9 @@ function __wbg_get_imports() {
703
714
  const ret = Reflect.set(arg0, arg1, arg2);
704
715
  return ret;
705
716
  }, arguments); },
717
+ __wbg_set_adoptedStyleSheets_5f0e5fd87d2f8755: function(arg0, arg1) {
718
+ arg0.adoptedStyleSheets = arg1;
719
+ },
706
720
  __wbg_set_block_8135b3acafa1ca88: function(arg0, arg1) {
707
721
  arg0.block = __wbindgen_enum_ScrollLogicalPosition[arg1];
708
722
  },
@@ -742,6 +756,9 @@ function __wbg_get_imports() {
742
756
  __wbg_set_textContent_54dcad83ae15772d: function(arg0, arg1, arg2) {
743
757
  arg0.textContent = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
744
758
  },
759
+ __wbg_set_type_d2a9a3c584ce2f9a: function(arg0, arg1, arg2) {
760
+ arg0.type = getStringFromWasm0(arg1, arg2);
761
+ },
745
762
  __wbg_set_value_e0caa78ebf9917a8: function(arg0, arg1, arg2) {
746
763
  arg0.value = getStringFromWasm0(arg1, arg2);
747
764
  },
@@ -839,32 +856,32 @@ function __wbg_get_imports() {
839
856
  return ret;
840
857
  },
841
858
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
842
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 178, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
859
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 186, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
843
860
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___wasm_bindgen_66404d18cc2edcc2___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_66404d18cc2edcc2___JsError___true_);
844
861
  return ret;
845
862
  },
846
863
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
847
864
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 17, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
848
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true_);
865
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true_);
849
866
  return ret;
850
867
  },
851
868
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
852
869
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("HTMLElement"), String, Option(String), Option(String)], shim_idx: 18, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
853
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___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_);
870
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___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_);
854
871
  return ret;
855
872
  },
856
873
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
857
874
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("HTMLElement")], shim_idx: 17, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
858
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true__3);
875
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true__3);
859
876
  return ret;
860
877
  },
861
878
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
862
879
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 17, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
863
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true__4);
880
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true__4);
864
881
  return ret;
865
882
  },
866
883
  __wbindgen_cast_0000000000000006: function(arg0, arg1) {
867
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [U32], shim_idx: 166, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
884
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [U32], shim_idx: 173, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
868
885
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___u32______true_);
869
886
  return ret;
870
887
  },
@@ -896,9 +913,9 @@ function __wbg_get_imports() {
896
913
  return {
897
914
  __proto__: null,
898
915
  "./opengrid_web_components_bg.js": import0,
899
- "./snippets/opengrid-web-core-13b0d2b2f5d74a24/inline0.js": import1,
900
- "./snippets/opengrid-web-core-13b0d2b2f5d74a24/inline0.js": import2,
901
- "./snippets/opengrid-web-core-13b0d2b2f5d74a24/inline0.js": import3,
916
+ "./snippets/opengrid-web-core-51c93662af7982d2/inline0.js": import1,
917
+ "./snippets/opengrid-web-core-51c93662af7982d2/inline0.js": import2,
918
+ "./snippets/opengrid-web-core-51c93662af7982d2/inline0.js": import3,
902
919
  };
903
920
  }
904
921
 
@@ -906,16 +923,16 @@ function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke_______true
906
923
  wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke_______true_(arg0, arg1);
907
924
  }
908
925
 
909
- function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true_(arg0, arg1, arg2) {
910
- wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true_(arg0, arg1, arg2);
926
+ function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true_(arg0, arg1, arg2) {
927
+ wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true_(arg0, arg1, arg2);
911
928
  }
912
929
 
913
- function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true__3(arg0, arg1, arg2) {
914
- wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true__3(arg0, arg1, arg2);
930
+ function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true__3(arg0, arg1, arg2) {
931
+ wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true__3(arg0, arg1, arg2);
915
932
  }
916
933
 
917
- function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true__4(arg0, arg1, arg2) {
918
- wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true__4(arg0, arg1, arg2);
934
+ function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true__4(arg0, arg1, arg2) {
935
+ wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true__4(arg0, arg1, arg2);
919
936
  }
920
937
 
921
938
  function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___wasm_bindgen_66404d18cc2edcc2___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_66404d18cc2edcc2___JsError___true_(arg0, arg1, arg2) {
@@ -925,14 +942,14 @@ function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___wasm_bin
925
942
  }
926
943
  }
927
944
 
928
- function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___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) {
945
+ function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___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) {
929
946
  const ptr0 = passStringToWasm0(arg3, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
930
947
  const len0 = WASM_VECTOR_LEN;
931
948
  var ptr1 = isLikeNone(arg4) ? 0 : passStringToWasm0(arg4, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
932
949
  var len1 = WASM_VECTOR_LEN;
933
950
  var ptr2 = isLikeNone(arg5) ? 0 : passStringToWasm0(arg5, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
934
951
  var len2 = WASM_VECTOR_LEN;
935
- wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___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);
952
+ wasm.wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___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);
936
953
  }
937
954
 
938
955
  function wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___u32______true_(arg0, arg1, arg2) {
Binary file
@@ -13,11 +13,11 @@ 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 wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___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;
16
+ export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___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 wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true_: (a: number, b: number, c: any) => void;
19
- export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true__3: (a: number, b: number, c: any) => void;
20
- export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_f19f0f38d6ea5adb___features__gen_HtmlElement__HtmlElement______true__4: (a: number, b: number, c: any) => void;
18
+ export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true_: (a: number, b: number, c: any) => void;
19
+ export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true__3: (a: number, b: number, c: any) => void;
20
+ export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___web_sys_c43fef36ea7eb37c___features__gen_HtmlElement__HtmlElement______true__4: (a: number, b: number, c: any) => void;
21
21
  export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke___u32______true_: (a: number, b: number, c: number) => void;
22
22
  export const wasm_bindgen_66404d18cc2edcc2___convert__closures_____invoke_______true_: (a: number, b: number) => void;
23
23
  export const __wbindgen_malloc: (a: number, b: number) => number;
package/react/index.d.ts CHANGED
@@ -22,6 +22,7 @@ import type { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "r
22
22
  import type {
23
23
  ConnectOptions,
24
24
  Density,
25
+ Theme,
25
26
  Mode,
26
27
  OpengridGridElement,
27
28
  OpengridPivotElement,
@@ -54,12 +55,15 @@ export interface OpengridGridProps extends ConnectOptions, ElementProps {
54
55
  columnMenu?: boolean;
55
56
  selection?: boolean;
56
57
  density?: Density;
58
+ /** One of the built-in looks; Base when absent. */
59
+ theme?: Theme;
57
60
  }
58
61
 
59
62
  export interface OpengridTableProps extends ConnectOptions, ElementProps {
60
63
  label?: string;
61
64
  datasource?: string;
62
65
  columns?: string;
66
+ theme?: Theme;
63
67
  }
64
68
 
65
69
  export interface OpengridPivotProps extends ConnectOptions, ElementProps {
@@ -71,6 +75,7 @@ export interface OpengridPivotProps extends ConnectOptions, ElementProps {
71
75
  columns?: string;
72
76
  /** The measures as the contract's JSON. */
73
77
  values?: string;
78
+ theme?: Theme;
74
79
  }
75
80
 
76
81
  export const OpengridGrid: ForwardRefExoticComponent<
package/react/index.js CHANGED
@@ -149,6 +149,7 @@ export const OpengridGrid = component(
149
149
  columnMenu: "column-menu",
150
150
  selection: "selection",
151
151
  density: "density",
152
+ theme: "theme",
152
153
  },
153
154
  ["search", "facets", "toolbar", "columnMenu", "selection"],
154
155
  );
@@ -156,7 +157,7 @@ export const OpengridGrid = component(
156
157
  export const OpengridTable = component(
157
158
  "opengrid-table",
158
159
  "OpengridTable",
159
- { label: "label", datasource: "datasource", columns: "columns" },
160
+ { label: "label", datasource: "datasource", columns: "columns", theme: "theme" },
160
161
  [],
161
162
  );
162
163
 
@@ -169,6 +170,7 @@ export const OpengridPivot = component(
169
170
  rows: "rows",
170
171
  columns: "columns",
171
172
  values: "values",
173
+ theme: "theme",
172
174
  },
173
175
  [],
174
176
  );
@@ -16,6 +16,7 @@
16
16
  columnMenu = false,
17
17
  selection = false,
18
18
  density,
19
+ theme,
19
20
  view = $bindable(),
20
21
  element = $bindable(),
21
22
  ...rest
@@ -42,6 +43,7 @@
42
43
  "column-menu": flag(columnMenu),
43
44
  selection: flag(selection),
44
45
  density,
46
+ theme,
45
47
  }}
46
48
  bind:view
47
49
  bind:element
@@ -2,12 +2,12 @@
2
2
  <script>
3
3
  import Opengrid from "./Opengrid.svelte";
4
4
 
5
- let { label, datasource, rows, columns, values, view = $bindable(), element = $bindable(), ...rest } = $props();
5
+ let { label, datasource, rows, columns, values, theme, view = $bindable(), element = $bindable(), ...rest } = $props();
6
6
  </script>
7
7
 
8
8
  <Opengrid
9
9
  tag="opengrid-pivot"
10
- attributes={{ label, datasource, rows, columns, values }}
10
+ attributes={{ label, datasource, rows, columns, values, theme }}
11
11
  bind:view
12
12
  bind:element
13
13
  {...rest}
@@ -2,7 +2,7 @@
2
2
  <script>
3
3
  import Opengrid from "./Opengrid.svelte";
4
4
 
5
- let { label, datasource, columns, view = $bindable(), element = $bindable(), ...rest } = $props();
5
+ let { label, datasource, columns, theme, view = $bindable(), element = $bindable(), ...rest } = $props();
6
6
  </script>
7
7
 
8
- <Opengrid tag="opengrid-table" attributes={{ label, datasource, columns }} bind:view bind:element {...rest} />
8
+ <Opengrid tag="opengrid-table" attributes={{ label, datasource, columns, theme }} bind:view bind:element {...rest} />
package/svelte/index.d.ts CHANGED
@@ -19,6 +19,7 @@ import type {
19
19
  CellChangeDetail,
20
20
  ConnectOptions,
21
21
  Density,
22
+ Theme,
22
23
  Mode,
23
24
  SelectionChangeDetail,
24
25
  View,
@@ -57,12 +58,15 @@ export interface OpengridGridProps extends Options, ElementProps {
57
58
  columnMenu?: boolean;
58
59
  selection?: boolean;
59
60
  density?: Density;
61
+ /** One of the built-in looks; Base when absent. */
62
+ theme?: Theme;
60
63
  }
61
64
 
62
65
  export interface OpengridTableProps extends Options, ElementProps {
63
66
  label?: string;
64
67
  datasource?: string;
65
68
  columns?: string;
69
+ theme?: Theme;
66
70
  }
67
71
 
68
72
  export interface OpengridPivotProps extends Options, ElementProps {
@@ -74,6 +78,7 @@ export interface OpengridPivotProps extends Options, ElementProps {
74
78
  columns?: string;
75
79
  /** The measures as the contract's JSON. */
76
80
  values?: string;
81
+ theme?: Theme;
77
82
  }
78
83
 
79
84
  export const OpengridGrid: Component<OpengridGridProps, {}, "view" | "element">;
package/vue/index.d.ts CHANGED
@@ -12,6 +12,7 @@ import type {
12
12
  CellChangeDetail,
13
13
  ConnectOptions,
14
14
  Density,
15
+ Theme,
15
16
  Mode,
16
17
  SelectionChangeDetail,
17
18
  View,
@@ -48,12 +49,15 @@ export interface OpengridGridProps extends Options {
48
49
  columnMenu?: boolean;
49
50
  selection?: boolean;
50
51
  density?: Density;
52
+ /** One of the built-in looks; Base when absent. */
53
+ theme?: Theme;
51
54
  }
52
55
 
53
56
  export interface OpengridTableProps extends Options {
54
57
  label?: string;
55
58
  datasource?: string;
56
59
  columns?: string;
60
+ theme?: Theme;
57
61
  }
58
62
 
59
63
  export interface OpengridPivotProps extends Options {
@@ -65,6 +69,7 @@ export interface OpengridPivotProps extends Options {
65
69
  columns?: string;
66
70
  /** The measures as the contract's JSON. */
67
71
  values?: string;
72
+ theme?: Theme;
68
73
  }
69
74
 
70
75
  export const OpengridGrid: DefineSetupFnComponent<OpengridGridProps, OpengridEmits>;
package/vue/index.js CHANGED
@@ -141,6 +141,7 @@ export const OpengridGrid = component(
141
141
  columnMenu: "column-menu",
142
142
  selection: "selection",
143
143
  density: "density",
144
+ theme: "theme",
144
145
  },
145
146
  ["search", "facets", "toolbar", "columnMenu", "selection"],
146
147
  );
@@ -148,7 +149,7 @@ export const OpengridGrid = component(
148
149
  export const OpengridTable = component(
149
150
  "opengrid-table",
150
151
  "OpengridTable",
151
- { label: "label", datasource: "datasource", columns: "columns" },
152
+ { label: "label", datasource: "datasource", columns: "columns", theme: "theme" },
152
153
  [],
153
154
  );
154
155
 
@@ -161,6 +162,7 @@ export const OpengridPivot = component(
161
162
  rows: "rows",
162
163
  columns: "columns",
163
164
  values: "values",
165
+ theme: "theme",
164
166
  },
165
167
  [],
166
168
  );