@casoon/opengrid 0.14.0 → 0.16.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 +621 -19
- package/README.md +19 -2
- package/engine/opengrid_wasm_bg.wasm +0 -0
- package/loader.d.ts +451 -24
- package/loader.js +584 -132
- package/package.json +13 -6
- package/pkg/opengrid_web_components.d.ts +94 -23
- package/pkg/opengrid_web_components.js +451 -59
- package/pkg/opengrid_web_components_bg.wasm +0 -0
- package/pkg/opengrid_web_components_bg.wasm.d.ts +15 -6
- package/pkg/snippets/opengrid-web-components-35ed06b453a9b215/inline0.js +8 -0
- package/pkg/snippets/opengrid-web-components-35ed06b453a9b215/inline1.js +58 -0
- package/pkg/snippets/opengrid-web-core-b41714d4e7311909/inline2.js +89 -0
- package/react/index.d.ts +20 -2
- package/react/index.js +32 -6
- package/svelte/Opengrid.svelte +46 -11
- package/svelte/OpengridGrid.svelte +20 -1
- package/svelte/OpengridPivot.svelte +3 -3
- package/svelte/OpengridTable.svelte +1 -1
- package/svelte/index.d.ts +57 -18
- package/svelte/index.js +1 -1
- package/texts/de.d.ts +5 -0
- package/texts/de.js +245 -0
- package/vue/index.d.ts +49 -7
- package/vue/index.js +41 -11
- package/worker.js +6 -3
- package/xlsx/opengrid_xlsx.d.ts +69 -0
- package/xlsx/opengrid_xlsx.js +375 -0
- package/xlsx/opengrid_xlsx_bg.wasm +0 -0
- package/xlsx/opengrid_xlsx_bg.wasm.d.ts +16 -0
- package/pkg/snippets/opengrid-web-components-56667a20e9158a6a/inline0.js +0 -17
- /package/pkg/snippets/{opengrid-web-core-a3505e32fee0c1ed → opengrid-web-core-b41714d4e7311909}/inline0.js +0 -0
- /package/pkg/snippets/{opengrid-web-core-a3505e32fee0c1ed → opengrid-web-core-b41714d4e7311909}/inline1.js +0 -0
package/README.md
CHANGED
|
@@ -50,6 +50,21 @@ The package holds the elements and the query engine. With a bundler, import from
|
|
|
50
50
|
`@casoon/opengrid`; without one, see
|
|
51
51
|
[Installation](https://github.com/casoon/opengrid/blob/main/docs/getting-started/installation.mdx).
|
|
52
52
|
|
|
53
|
+
### Rust crates
|
|
54
|
+
|
|
55
|
+
The engine and the server are on crates.io, one crate per layer. They carry the same version
|
|
56
|
+
as the npm package, so give every `opengrid-*` crate the same one:
|
|
57
|
+
|
|
58
|
+
```toml
|
|
59
|
+
[dependencies]
|
|
60
|
+
opengrid-server = "0.16" # the gateway, as a library
|
|
61
|
+
opengrid-connector-sqlite = "0.16" # or opengrid-datasource-postgres
|
|
62
|
+
opengrid-engine = "0.16" # the engine alone, native
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
While the version is 0.x, a minor bump may break the Rust API
|
|
66
|
+
([releasing](https://github.com/casoon/opengrid/blob/main/docs/releasing.md)).
|
|
67
|
+
|
|
53
68
|
## Data in the browser
|
|
54
69
|
|
|
55
70
|
The engine reads a CSV against a schema — it never guesses types.
|
|
@@ -151,7 +166,9 @@ const blob = await exportRows(provider, query, { format: "csv" });
|
|
|
151
166
|
|
|
152
167
|
CSV per RFC 4180 with a guard against formula injection, or JSON; through
|
|
153
168
|
`createRestProvider` also XLSX, written by the server (`format: "xlsx"`). A pivot exports as
|
|
154
|
-
shown with `get_pivot`.
|
|
169
|
+
shown with `get_pivot`, and as XLSX from a server with `exportPivot`. For paper and PDF,
|
|
170
|
+
`await module.prepare_print(grid)` builds a plain table of every match, and `window.print()` prints
|
|
171
|
+
it. See [Export](https://github.com/casoon/opengrid/blob/main/docs/guides/export.md).
|
|
155
172
|
|
|
156
173
|
## Documentation
|
|
157
174
|
|
|
@@ -160,7 +177,7 @@ shown with `get_pivot`. See [Export](https://github.com/casoon/opengrid/blob/mai
|
|
|
160
177
|
- [Guides](https://github.com/casoon/opengrid/tree/main/docs/guides) and the
|
|
161
178
|
[project page](https://casoon.github.io/opengrid/)
|
|
162
179
|
- [In a chat client](https://github.com/casoon/opengrid/blob/main/docs/guides/mcp.md) —
|
|
163
|
-
the grid as an MCP App, `@casoon/opengrid-mcp`
|
|
180
|
+
the grid as an MCP App, [`@casoon/opengrid-mcp`](https://www.npmjs.com/package/@casoon/opengrid-mcp)
|
|
164
181
|
|
|
165
182
|
## Accessible and machine-readable: the aim
|
|
166
183
|
|
|
Binary file
|