@casoon/opengrid 0.18.1 → 0.20.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
@@ -19,6 +19,76 @@ Two things belong in every release entry and are easy to leave out:
19
19
 
20
20
  ## [Unreleased]
21
21
 
22
+ ## [0.20.0] - 2026-11-19
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
+ **What breaks:** nothing in the npm package; the WebAssembly modules are unchanged since 0.19.0. In
29
+ the Rust crates: `opengrid_serve::Database` has a third variant, `MySql`, so a `match` on it needs
30
+ the new arm; `opengrid-connector-mysql` is published for the first time.
31
+
32
+ ### Added
33
+
34
+ - **Server:** MySQL 8.0 and later as a third SQL database: the connector `opengrid-connector-mysql`
35
+ (driver `mysql_async`) and the `MySql` dialect in `opengrid-sql`; `opengrid-server propose` and
36
+ `--config` take a `mysql://` connection string. What MySQL cannot answer as the engine would
37
+ (case-insensitive matching, a locale without a MySQL collation, trees) is answered by the
38
+ engine over MySQL's rows. Details:
39
+ [Connectors](https://casoon.github.io/opengrid/docs/guides/connectors/#reference-connectors)
40
+ ([#501](https://github.com/casoon/opengrid/issues/501)).
41
+
42
+ ### Changed
43
+
44
+ - **Contributors:** CI runs the conformance suite against MySQL 8.4 as well.
45
+ - **Contributors:** a failed Firefox/WebKit run keeps the Playwright traces as the artifact
46
+ `e2e-browsers-traces` ([#420](https://github.com/casoon/opengrid/issues/420)).
47
+
48
+ ## [0.19.0] - 2026-11-18
49
+
50
+ Not yet verified by a screen reader: no pass with assistive technology has been recorded for this
51
+ release ([#5](https://github.com/casoon/opengrid/issues/5)). The keyboard and `axe-core` checks run on
52
+ every change.
53
+
54
+ **What breaks:** nothing in the npm package's API. New in the Rust crates: `opengrid-sql` and
55
+ `opengrid-serve` (the `opengrid-server` command) are published for the first time; `PostgresCompiler`
56
+ is now an alias of the shared compiler.
57
+
58
+ ### Added
59
+
60
+ - **Editing:** the attribute `edit-locked` locks editing for the whole grid, switchable at run time
61
+ (`editLocked` in the React, Vue and Svelte adapters): no editor, paste, bulk set, record form, new
62
+ row or undo while it is set. Details: [Locking edits](https://casoon.github.io/opengrid/docs/api/#locking-edits)
63
+ ([#494](https://github.com/casoon/opengrid/issues/494)).
64
+ - **Pages:** the start page links the live demo of each framework — JavaScript, React, Vue, Svelte and
65
+ Angular — with its logo, straight to that demo's overview.
66
+ - **Pages:** the demo page points to the framework demos too, as a small row of links above its own
67
+ examples.
68
+ - **Rust:** `opengrid-sql`, one SQL compiler over a validated query with a `Dialect` per database
69
+ (PostgreSQL and SQLite today); a further SQL database is a dialect and a driver.
70
+ - **Server:** `opengrid-server propose` reads the schema behind a connection string (PostgreSQL or
71
+ SQLite) and writes a configuration proposal; `opengrid-server --config <file>` serves what the
72
+ edited file names. Tokens and the connection string come from the environment, columns the file
73
+ does not name are not served, and a type without a mapping is named and left out. Guide:
74
+ [From a connection string to a grid](https://casoon.github.io/opengrid/docs/guides/from-a-connection-string/).
75
+ - **Rust:** `read_tables` in `opengrid-connector-sqlite` and `opengrid-datasource-postgres` read the
76
+ tables and columns of a database; the command is the new crate `opengrid-serve`.
77
+
78
+ ### Changed
79
+
80
+ - **Rust:** `opengrid-datasource-postgres` and `opengrid-connector-sqlite` build their SQL with
81
+ `opengrid-sql` instead of a compiler each. Answers, capabilities and errors are unchanged;
82
+ `PostgresCompiler` is now an alias of the shared compiler in its PostgreSQL dialect.
83
+
84
+ ### Fixed
85
+
86
+ - **Saving:** a `row-key` column that is hidden — by the page's `set_view` or by the reader in
87
+ "Columns" — is still queried. `opengrid-cell-change` and `opengrid-row-action` carried
88
+ `key: null` and `set_cell_state` / `set_values` found no record as soon as the key was not
89
+ shown. The key is selected after the shown columns and never drawn, counted, exported or
90
+ pasted into ([#495](https://github.com/casoon/opengrid/issues/495)).
91
+
22
92
  ## [0.18.1] - 2026-11-18
23
93
 
24
94
  Not yet verified by a screen reader: no pass with assistive technology has been recorded for this
@@ -1809,7 +1879,9 @@ tested.
1809
1879
  tested: React 18 rendering on the server, SvelteKit, Nuxt, Next.js and Astro
1810
1880
  as real applications. A Vite production build needs `loadOpengrid({ moduleUrl })`.
1811
1881
 
1812
- [Unreleased]: https://github.com/casoon/opengrid/compare/v0.18.1...HEAD
1882
+ [Unreleased]: https://github.com/casoon/opengrid/compare/v0.20.0...HEAD
1883
+ [0.20.0]: https://github.com/casoon/opengrid/compare/v0.19.0...v0.20.0
1884
+ [0.19.0]: https://github.com/casoon/opengrid/compare/v0.18.1...v0.19.0
1813
1885
  [0.18.1]: https://github.com/casoon/opengrid/compare/v0.18.0...v0.18.1
1814
1886
  [0.18.0]: https://github.com/casoon/opengrid/compare/v0.17.0...v0.18.0
1815
1887
  [0.17.0]: https://github.com/casoon/opengrid/compare/v0.16.0...v0.17.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.18" # the gateway, as a library
61
- opengrid-connector-sqlite = "0.18" # or opengrid-datasource-postgres
62
- opengrid-engine = "0.18" # the engine alone, native
60
+ opengrid-server = "0.20" # the gateway, as a library
61
+ opengrid-connector-sqlite = "0.20" # or opengrid-datasource-postgres
62
+ opengrid-engine = "0.20" # the engine alone, native
63
63
  ```
64
64
 
65
65
  While the version is 0.x, a minor bump may break the Rust API
@@ -528,14 +528,14 @@ function __wbg_get_imports() {
528
528
  __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
529
529
  throw new Error(getStringFromWasm0(arg0, arg1));
530
530
  },
531
- __wbg_call_71757ee501b52574: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
531
+ __wbg_call_917e74a3a91ee2cd: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
532
532
  const ret = arg1.call(arg2, getStringFromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6), getArrayU32FromWasm0(arg7, arg8));
533
533
  const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
534
534
  const len1 = WASM_VECTOR_LEN;
535
535
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
536
536
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
537
537
  }, arguments); },
538
- __wbg_message_571436f75b8ef765: function(arg0) {
538
+ __wbg_message_e4fec75b4feaf7f7: function(arg0) {
539
539
  const ret = arg0.message;
540
540
  return ret;
541
541
  },
Binary file
package/loader.d.ts CHANGED
@@ -1175,6 +1175,7 @@ export type TextKey =
1175
1175
  | "bulkApply"
1176
1176
  | "bulkMenu"
1177
1177
  | "bulkReadonly"
1178
+ | "editLocked"
1178
1179
  | "bulkDone"
1179
1180
  | "validationWarning"
1180
1181
  | "validationError"
@@ -1472,7 +1473,7 @@ export interface OpengridEventMap {
1472
1473
  * The attributes of `<opengrid-grid>`, as strings the way HTML has them — for
1473
1474
  * adapters and JSX typings to build on. For
1474
1475
  * the boolean ones — `selection`, `toolbar`, `search`, `facets`,
1475
- * `column-menu`, `filter-builder`, `add-row` — presence is what counts, whatever the value.
1476
+ * `column-menu`, `filter-builder`, `add-row`, `edit-locked` — presence is what counts, whatever the value.
1476
1477
  */
1477
1478
  export interface OpengridGridAttributes {
1478
1479
  label?: string;
@@ -1507,6 +1508,8 @@ export interface OpengridGridAttributes {
1507
1508
  "filter-builder"?: string;
1508
1509
  /** An empty row after the last one to type a new record into (`opengrid-row-add`). */
1509
1510
  "add-row"?: string;
1511
+ /** Locks editing for the whole grid: no editor, paste, bulk set, record form, new row or undo. Remove it to unlock. */
1512
+ "edit-locked"?: string;
1510
1513
  selection?: string;
1511
1514
  density?: Density;
1512
1515
  /** One of the built-in looks; Base when absent. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casoon/opengrid",
3
- "version": "0.18.1",
3
+ "version": "0.20.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,12 +1,12 @@
1
1
  /* @ts-self-types="./opengrid_web_components.d.ts" */
2
- import { __opengrid_numbers } from './snippets/opengrid-web-components-79b23e2f3cc5fec9/inline0.js';
3
- import { __opengrid_intl_formatter, __opengrid_page_lang } from './snippets/opengrid-web-components-79b23e2f3cc5fec9/inline1.js';
4
- import { __opengrid_define_element } from './snippets/opengrid-web-core-b4bccfdabe05c2b9/inline1.js';
5
- import { __opengrid_apply_frame, __opengrid_remove_attribute, __opengrid_set_attribute, __opengrid_set_text } from './snippets/opengrid-web-core-b4bccfdabe05c2b9/inline2.js';
6
- import * as import1 from "./snippets/opengrid-web-components-79b23e2f3cc5fec9/inline1.js"
7
- import * as import2 from "./snippets/opengrid-web-core-b4bccfdabe05c2b9/inline0.js"
8
- import * as import3 from "./snippets/opengrid-web-core-b4bccfdabe05c2b9/inline0.js"
9
- import * as import4 from "./snippets/opengrid-web-core-b4bccfdabe05c2b9/inline0.js"
2
+ import { __opengrid_numbers } from './snippets/opengrid-web-components-25af30e209691150/inline0.js';
3
+ import { __opengrid_intl_formatter, __opengrid_page_lang } from './snippets/opengrid-web-components-25af30e209691150/inline1.js';
4
+ import { __opengrid_define_element } from './snippets/opengrid-web-core-a8478162475cb80f/inline1.js';
5
+ import { __opengrid_apply_frame, __opengrid_remove_attribute, __opengrid_set_attribute, __opengrid_set_text } from './snippets/opengrid-web-core-a8478162475cb80f/inline2.js';
6
+ import * as import1 from "./snippets/opengrid-web-components-25af30e209691150/inline1.js"
7
+ import * as import2 from "./snippets/opengrid-web-core-a8478162475cb80f/inline0.js"
8
+ import * as import3 from "./snippets/opengrid-web-core-a8478162475cb80f/inline0.js"
9
+ import * as import4 from "./snippets/opengrid-web-core-a8478162475cb80f/inline0.js"
10
10
 
11
11
 
12
12
  /**
@@ -454,34 +454,34 @@ function __wbg_get_imports() {
454
454
  const ret = Error(getStringFromWasm0(arg0, arg1));
455
455
  return ret;
456
456
  },
457
- __wbg___opengrid_apply_frame_0ef566ead1cfa14e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
457
+ __wbg___opengrid_apply_frame_85879b018ab2e7cb: function(arg0, arg1, arg2, arg3, arg4, arg5) {
458
458
  __opengrid_apply_frame(arg0, arg1, getArrayU32FromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
459
459
  },
460
- __wbg___opengrid_define_element_4c39151754c9732f: function(arg0, arg1, arg2, arg3, arg4, arg5) {
460
+ __wbg___opengrid_define_element_9704a787890ca028: function(arg0, arg1, arg2, arg3, arg4, arg5) {
461
461
  __opengrid_define_element(getStringFromWasm0(arg0, arg1), arg2, arg3, arg4, arg5);
462
462
  },
463
- __wbg___opengrid_intl_formatter_678848ff971df548: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
463
+ __wbg___opengrid_intl_formatter_792e7cdcfdb83fbe: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
464
464
  const ret = __opengrid_intl_formatter(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), arg4);
465
465
  return ret;
466
466
  }, arguments); },
467
- __wbg___opengrid_numbers_21ad989927ada671: function(arg0, arg1) {
467
+ __wbg___opengrid_numbers_3f967ba8e4c00ed0: function(arg0, arg1) {
468
468
  const ret = __opengrid_numbers(getArrayF64FromWasm0(arg0, arg1));
469
469
  return ret;
470
470
  },
471
- __wbg___opengrid_page_lang_4577ee188df2e39d: function(arg0, arg1) {
471
+ __wbg___opengrid_page_lang_aff5a9f00d903227: function(arg0, arg1) {
472
472
  const ret = __opengrid_page_lang(arg1);
473
473
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
474
474
  const len1 = WASM_VECTOR_LEN;
475
475
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
476
476
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
477
477
  },
478
- __wbg___opengrid_remove_attribute_4b9c5e73ea9e4ec0: function(arg0, arg1, arg2) {
478
+ __wbg___opengrid_remove_attribute_fe41162f7dc5517c: function(arg0, arg1, arg2) {
479
479
  __opengrid_remove_attribute(arg0, getStringFromWasm0(arg1, arg2));
480
480
  },
481
- __wbg___opengrid_set_attribute_f3581b2125f143ec: function(arg0, arg1, arg2, arg3, arg4) {
481
+ __wbg___opengrid_set_attribute_b3b571020c7ef4dd: function(arg0, arg1, arg2, arg3, arg4) {
482
482
  __opengrid_set_attribute(arg0, getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
483
483
  },
484
- __wbg___opengrid_set_text_ea069a76256aff8a: function(arg0, arg1, arg2) {
484
+ __wbg___opengrid_set_text_1741df9b3567bacc: function(arg0, arg1, arg2) {
485
485
  __opengrid_set_text(arg0, getStringFromWasm0(arg1, arg2));
486
486
  },
487
487
  __wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
@@ -1508,10 +1508,10 @@ function __wbg_get_imports() {
1508
1508
  return {
1509
1509
  __proto__: null,
1510
1510
  "./opengrid_web_components_bg.js": import0,
1511
- "./snippets/opengrid-web-components-79b23e2f3cc5fec9/inline1.js": import1,
1512
- "./snippets/opengrid-web-core-b4bccfdabe05c2b9/inline0.js": import2,
1513
- "./snippets/opengrid-web-core-b4bccfdabe05c2b9/inline0.js": import3,
1514
- "./snippets/opengrid-web-core-b4bccfdabe05c2b9/inline0.js": import4,
1511
+ "./snippets/opengrid-web-components-25af30e209691150/inline1.js": import1,
1512
+ "./snippets/opengrid-web-core-a8478162475cb80f/inline0.js": import2,
1513
+ "./snippets/opengrid-web-core-a8478162475cb80f/inline0.js": import3,
1514
+ "./snippets/opengrid-web-core-a8478162475cb80f/inline0.js": import4,
1515
1515
  };
1516
1516
  }
1517
1517
 
Binary file
package/react/index.d.ts CHANGED
@@ -63,6 +63,8 @@ export interface OpengridGridProps extends ConnectOptions, ElementProps {
63
63
  collation?: string;
64
64
  /** An empty row after the last one to type a new record into (`onRowAdd`). */
65
65
  addRow?: boolean;
66
+ /** Locks editing for the whole grid; the page unlocks it at run time. */
67
+ editLocked?: boolean;
66
68
  search?: boolean;
67
69
  facets?: boolean;
68
70
  toolbar?: boolean;
package/react/index.js CHANGED
@@ -170,6 +170,7 @@ export const OpengridGrid = component(
170
170
  filter: "filter",
171
171
  collation: "collation",
172
172
  addRow: "add-row",
173
+ editLocked: "edit-locked",
173
174
  search: "search",
174
175
  facets: "facets",
175
176
  toolbar: "toolbar",
@@ -179,7 +180,7 @@ export const OpengridGrid = component(
179
180
  density: "density",
180
181
  theme: "theme",
181
182
  },
182
- ["search", "facets", "toolbar", "columnMenu", "filterBuilder", "selection", "addRow"],
183
+ ["search", "facets", "toolbar", "columnMenu", "filterBuilder", "selection", "addRow", "editLocked"],
183
184
  );
184
185
 
185
186
  export const OpengridTable = component(
@@ -16,6 +16,7 @@
16
16
  filter,
17
17
  collation,
18
18
  addRow = false,
19
+ editLocked = false,
19
20
  search = false,
20
21
  facets = false,
21
22
  toolbar = false,
@@ -61,6 +62,7 @@
61
62
  filter,
62
63
  collation,
63
64
  "add-row": flag(addRow),
65
+ "edit-locked": flag(editLocked),
64
66
  search: flag(search),
65
67
  facets: flag(facets),
66
68
  toolbar: flag(toolbar),
package/svelte/index.d.ts CHANGED
@@ -99,6 +99,8 @@ export interface OpengridGridProps extends Options, ElementProps {
99
99
  collation?: string;
100
100
  /** An empty row after the last one to type a new record into (`onrowadd`). */
101
101
  addRow?: boolean;
102
+ /** Locks editing for the whole grid; the page unlocks it at run time. */
103
+ editLocked?: boolean;
102
104
  search?: boolean;
103
105
  facets?: boolean;
104
106
  toolbar?: boolean;
package/texts/de.js CHANGED
@@ -192,6 +192,7 @@ export default {
192
192
  "bulkApply": "Setzen",
193
193
  "bulkMenu": "Für ausgewählte Zeilen setzen",
194
194
  "bulkReadonly": "{column} ist schreibgeschützt",
195
+ "editLocked": "Bearbeiten ist gesperrt",
195
196
  "bulkDone": "{column} für {rows} gesetzt",
196
197
  "pastePreview": "Einfügevorschau",
197
198
  "pasteApply": "Einfügen",
package/vue/index.d.ts CHANGED
@@ -89,6 +89,8 @@ export interface OpengridGridProps extends Options {
89
89
  collation?: string;
90
90
  /** An empty row after the last one to type a new record into (`@row-add`). */
91
91
  addRow?: boolean;
92
+ /** Locks editing for the whole grid; the page unlocks it at run time. */
93
+ editLocked?: boolean;
92
94
  search?: boolean;
93
95
  facets?: boolean;
94
96
  toolbar?: boolean;
package/vue/index.js CHANGED
@@ -166,6 +166,7 @@ export const OpengridGrid = component(
166
166
  filter: "filter",
167
167
  collation: "collation",
168
168
  addRow: "add-row",
169
+ editLocked: "edit-locked",
169
170
  search: "search",
170
171
  facets: "facets",
171
172
  toolbar: "toolbar",
@@ -175,7 +176,7 @@ export const OpengridGrid = component(
175
176
  density: "density",
176
177
  theme: "theme",
177
178
  },
178
- ["search", "facets", "toolbar", "columnMenu", "filterBuilder", "selection", "addRow"],
179
+ ["search", "facets", "toolbar", "columnMenu", "filterBuilder", "selection", "addRow", "editLocked"],
179
180
  );
180
181
 
181
182
  export const OpengridTable = component(
Binary file