@casoon/opengrid 0.18.0 → 0.19.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 +57 -1
- package/README.md +3 -3
- package/engine/opengrid_wasm.js +2 -2
- package/engine/opengrid_wasm_bg.wasm +0 -0
- package/loader.d.ts +4 -1
- package/package.json +1 -1
- package/pkg/opengrid_web_components.js +20 -20
- package/pkg/opengrid_web_components_bg.wasm +0 -0
- package/react/index.d.ts +2 -0
- package/react/index.js +2 -1
- package/svelte/OpengridGrid.svelte +2 -0
- package/svelte/index.d.ts +2 -0
- package/texts/de.js +1 -0
- package/vue/index.d.ts +2 -0
- package/vue/index.js +2 -1
- package/xlsx/opengrid_xlsx_bg.wasm +0 -0
- /package/pkg/snippets/{opengrid-web-components-bcd23b5e2228bf0e → opengrid-web-components-743fae2340394813}/inline0.js +0 -0
- /package/pkg/snippets/{opengrid-web-components-bcd23b5e2228bf0e → opengrid-web-components-743fae2340394813}/inline1.js +0 -0
- /package/pkg/snippets/{opengrid-web-core-5e04e9ab83050ad3 → opengrid-web-core-09b47e6ebde2a52c}/inline0.js +0 -0
- /package/pkg/snippets/{opengrid-web-core-5e04e9ab83050ad3 → opengrid-web-core-09b47e6ebde2a52c}/inline1.js +0 -0
- /package/pkg/snippets/{opengrid-web-core-5e04e9ab83050ad3 → opengrid-web-core-09b47e6ebde2a52c}/inline2.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,61 @@ Two things belong in every release entry and are easy to leave out:
|
|
|
19
19
|
|
|
20
20
|
## [Unreleased]
|
|
21
21
|
|
|
22
|
+
## [0.19.0] - 2026-11-18
|
|
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's API. New in the Rust crates: `opengrid-sql` and
|
|
29
|
+
`opengrid-serve` (the `opengrid-server` command) are published for the first time; `PostgresCompiler`
|
|
30
|
+
is now an alias of the shared compiler.
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- **Editing:** the attribute `edit-locked` locks editing for the whole grid, switchable at run time
|
|
35
|
+
(`editLocked` in the React, Vue and Svelte adapters): no editor, paste, bulk set, record form, new
|
|
36
|
+
row or undo while it is set. Details: [Locking edits](https://casoon.github.io/opengrid/docs/api/#locking-edits)
|
|
37
|
+
([#494](https://github.com/casoon/opengrid/issues/494)).
|
|
38
|
+
- **Pages:** the start page links the live demo of each framework — JavaScript, React, Vue, Svelte and
|
|
39
|
+
Angular — with its logo, straight to that demo's overview.
|
|
40
|
+
- **Pages:** the demo page points to the framework demos too, as a small row of links above its own
|
|
41
|
+
examples.
|
|
42
|
+
- **Rust:** `opengrid-sql`, one SQL compiler over a validated query with a `Dialect` per database
|
|
43
|
+
(PostgreSQL and SQLite today); a further SQL database is a dialect and a driver.
|
|
44
|
+
- **Server:** `opengrid-server propose` reads the schema behind a connection string (PostgreSQL or
|
|
45
|
+
SQLite) and writes a configuration proposal; `opengrid-server --config <file>` serves what the
|
|
46
|
+
edited file names. Tokens and the connection string come from the environment, columns the file
|
|
47
|
+
does not name are not served, and a type without a mapping is named and left out. Guide:
|
|
48
|
+
[From a connection string to a grid](https://casoon.github.io/opengrid/docs/guides/from-a-connection-string/).
|
|
49
|
+
- **Rust:** `read_tables` in `opengrid-connector-sqlite` and `opengrid-datasource-postgres` read the
|
|
50
|
+
tables and columns of a database; the command is the new crate `opengrid-serve`.
|
|
51
|
+
|
|
52
|
+
### Changed
|
|
53
|
+
|
|
54
|
+
- **Rust:** `opengrid-datasource-postgres` and `opengrid-connector-sqlite` build their SQL with
|
|
55
|
+
`opengrid-sql` instead of a compiler each. Answers, capabilities and errors are unchanged;
|
|
56
|
+
`PostgresCompiler` is now an alias of the shared compiler in its PostgreSQL dialect.
|
|
57
|
+
|
|
58
|
+
### Fixed
|
|
59
|
+
|
|
60
|
+
- **Saving:** a `row-key` column that is hidden — by the page's `set_view` or by the reader in
|
|
61
|
+
"Columns" — is still queried. `opengrid-cell-change` and `opengrid-row-action` carried
|
|
62
|
+
`key: null` and `set_cell_state` / `set_values` found no record as soon as the key was not
|
|
63
|
+
shown. The key is selected after the shown columns and never drawn, counted, exported or
|
|
64
|
+
pasted into ([#495](https://github.com/casoon/opengrid/issues/495)).
|
|
65
|
+
|
|
66
|
+
## [0.18.1] - 2026-11-18
|
|
67
|
+
|
|
68
|
+
Not yet verified by a screen reader: no pass with assistive technology has been recorded for this
|
|
69
|
+
release ([#5](https://github.com/casoon/opengrid/issues/5)). The keyboard and `axe-core` checks run on
|
|
70
|
+
every change.
|
|
71
|
+
|
|
72
|
+
### Fixed
|
|
73
|
+
|
|
74
|
+
- **Grouping:** the focus ring of a group row goes round the row, not round the narrow first cell the
|
|
75
|
+
label runs out of. A label clipped to a pinned column keeps the ring on its cell.
|
|
76
|
+
|
|
22
77
|
## [0.18.0] - 2026-11-17
|
|
23
78
|
|
|
24
79
|
Not yet verified by a screen reader: no pass with assistive technology has been recorded for this
|
|
@@ -1798,7 +1853,8 @@ tested.
|
|
|
1798
1853
|
tested: React 18 rendering on the server, SvelteKit, Nuxt, Next.js and Astro
|
|
1799
1854
|
as real applications. A Vite production build needs `loadOpengrid({ moduleUrl })`.
|
|
1800
1855
|
|
|
1801
|
-
[Unreleased]: https://github.com/casoon/opengrid/compare/v0.18.
|
|
1856
|
+
[Unreleased]: https://github.com/casoon/opengrid/compare/v0.18.1...HEAD
|
|
1857
|
+
[0.18.1]: https://github.com/casoon/opengrid/compare/v0.18.0...v0.18.1
|
|
1802
1858
|
[0.18.0]: https://github.com/casoon/opengrid/compare/v0.17.0...v0.18.0
|
|
1803
1859
|
[0.17.0]: https://github.com/casoon/opengrid/compare/v0.16.0...v0.17.0
|
|
1804
1860
|
[0.16.0]: https://github.com/casoon/opengrid/compare/v0.15.0...v0.16.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.
|
|
61
|
-
opengrid-connector-sqlite = "0.
|
|
62
|
-
opengrid-engine = "0.
|
|
60
|
+
opengrid-server = "0.19" # the gateway, as a library
|
|
61
|
+
opengrid-connector-sqlite = "0.19" # or opengrid-datasource-postgres
|
|
62
|
+
opengrid-engine = "0.19" # the engine alone, native
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
While the version is 0.x, a minor bump may break the Rust API
|
package/engine/opengrid_wasm.js
CHANGED
|
@@ -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
|
-
|
|
531
|
+
__wbg_call_8221700730e3dcbc: 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
|
-
|
|
538
|
+
__wbg_message_f0bfc111b6c67084: 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.
|
|
3
|
+
"version": "0.19.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-
|
|
3
|
-
import { __opengrid_intl_formatter, __opengrid_page_lang } from './snippets/opengrid-web-components-
|
|
4
|
-
import { __opengrid_define_element } from './snippets/opengrid-web-core-
|
|
5
|
-
import { __opengrid_apply_frame, __opengrid_remove_attribute, __opengrid_set_attribute, __opengrid_set_text } from './snippets/opengrid-web-core-
|
|
6
|
-
import * as import1 from "./snippets/opengrid-web-components-
|
|
7
|
-
import * as import2 from "./snippets/opengrid-web-core-
|
|
8
|
-
import * as import3 from "./snippets/opengrid-web-core-
|
|
9
|
-
import * as import4 from "./snippets/opengrid-web-core-
|
|
2
|
+
import { __opengrid_numbers } from './snippets/opengrid-web-components-743fae2340394813/inline0.js';
|
|
3
|
+
import { __opengrid_intl_formatter, __opengrid_page_lang } from './snippets/opengrid-web-components-743fae2340394813/inline1.js';
|
|
4
|
+
import { __opengrid_define_element } from './snippets/opengrid-web-core-09b47e6ebde2a52c/inline1.js';
|
|
5
|
+
import { __opengrid_apply_frame, __opengrid_remove_attribute, __opengrid_set_attribute, __opengrid_set_text } from './snippets/opengrid-web-core-09b47e6ebde2a52c/inline2.js';
|
|
6
|
+
import * as import1 from "./snippets/opengrid-web-components-743fae2340394813/inline1.js"
|
|
7
|
+
import * as import2 from "./snippets/opengrid-web-core-09b47e6ebde2a52c/inline0.js"
|
|
8
|
+
import * as import3 from "./snippets/opengrid-web-core-09b47e6ebde2a52c/inline0.js"
|
|
9
|
+
import * as import4 from "./snippets/opengrid-web-core-09b47e6ebde2a52c/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
|
-
|
|
457
|
+
__wbg___opengrid_apply_frame_32c7badcafd82d10: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
458
458
|
__opengrid_apply_frame(arg0, arg1, getArrayU32FromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
459
459
|
},
|
|
460
|
-
|
|
460
|
+
__wbg___opengrid_define_element_521bca1416990488: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
461
461
|
__opengrid_define_element(getStringFromWasm0(arg0, arg1), arg2, arg3, arg4, arg5);
|
|
462
462
|
},
|
|
463
|
-
|
|
463
|
+
__wbg___opengrid_intl_formatter_255cfd028fab66ea: 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
|
-
|
|
467
|
+
__wbg___opengrid_numbers_997fab5e7ac55862: function(arg0, arg1) {
|
|
468
468
|
const ret = __opengrid_numbers(getArrayF64FromWasm0(arg0, arg1));
|
|
469
469
|
return ret;
|
|
470
470
|
},
|
|
471
|
-
|
|
471
|
+
__wbg___opengrid_page_lang_11978eb683f9e916: 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
|
-
|
|
478
|
+
__wbg___opengrid_remove_attribute_bfab29c64d5dedd9: function(arg0, arg1, arg2) {
|
|
479
479
|
__opengrid_remove_attribute(arg0, getStringFromWasm0(arg1, arg2));
|
|
480
480
|
},
|
|
481
|
-
|
|
481
|
+
__wbg___opengrid_set_attribute_05ab60572b19e117: function(arg0, arg1, arg2, arg3, arg4) {
|
|
482
482
|
__opengrid_set_attribute(arg0, getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
483
483
|
},
|
|
484
|
-
|
|
484
|
+
__wbg___opengrid_set_text_7ad163cbdd94443f: 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-
|
|
1512
|
-
"./snippets/opengrid-web-core-
|
|
1513
|
-
"./snippets/opengrid-web-core-
|
|
1514
|
-
"./snippets/opengrid-web-core-
|
|
1511
|
+
"./snippets/opengrid-web-components-743fae2340394813/inline1.js": import1,
|
|
1512
|
+
"./snippets/opengrid-web-core-09b47e6ebde2a52c/inline0.js": import2,
|
|
1513
|
+
"./snippets/opengrid-web-core-09b47e6ebde2a52c/inline0.js": import3,
|
|
1514
|
+
"./snippets/opengrid-web-core-09b47e6ebde2a52c/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|