@casoon/opengrid 0.13.0 → 0.15.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 +491 -18
- package/README.md +17 -2
- package/engine/opengrid_wasm.d.ts +9 -0
- package/engine/opengrid_wasm.js +22 -0
- package/engine/opengrid_wasm_bg.wasm +0 -0
- package/engine/opengrid_wasm_bg.wasm.d.ts +1 -0
- package/loader.d.ts +215 -11
- package/loader.js +183 -43
- package/package.json +6 -6
- package/pkg/opengrid_web_components.d.ts +61 -26
- package/pkg/opengrid_web_components.js +250 -60
- package/pkg/opengrid_web_components_bg.wasm +0 -0
- package/pkg/opengrid_web_components_bg.wasm.d.ts +11 -8
- package/pkg/snippets/opengrid-web-components-ef3def04de0cb619/inline0.js +8 -0
- package/pkg/snippets/opengrid-web-components-ef3def04de0cb619/inline1.js +58 -0
- package/pkg/snippets/opengrid-web-core-78fdded9b8a374ed/inline2.js +89 -0
- package/react/index.d.ts +12 -0
- package/react/index.js +24 -4
- package/svelte/Opengrid.svelte +39 -10
- package/svelte/OpengridGrid.svelte +15 -0
- package/svelte/index.d.ts +45 -16
- package/vue/index.d.ts +37 -5
- package/vue/index.js +33 -7
- package/worker.js +11 -1
- package/pkg/snippets/opengrid-web-components-ad6dc2c80732d2d3/inline0.js +0 -17
- /package/pkg/snippets/{opengrid-web-core-19b41f3fd18cf51f → opengrid-web-core-78fdded9b8a374ed}/inline0.js +0 -0
- /package/pkg/snippets/{opengrid-web-core-19b41f3fd18cf51f → opengrid-web-core-78fdded9b8a374ed}/inline1.js +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/* @ts-self-types="./opengrid_web_components.d.ts" */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import * as
|
|
2
|
+
import { __opengrid_numbers } from './snippets/opengrid-web-components-ef3def04de0cb619/inline0.js';
|
|
3
|
+
import { __opengrid_intl_formatter, __opengrid_page_lang } from './snippets/opengrid-web-components-ef3def04de0cb619/inline1.js';
|
|
4
|
+
import { __opengrid_define_element } from './snippets/opengrid-web-core-78fdded9b8a374ed/inline1.js';
|
|
5
|
+
import { __opengrid_apply_frame, __opengrid_remove_attribute, __opengrid_set_attribute, __opengrid_set_text } from './snippets/opengrid-web-core-78fdded9b8a374ed/inline2.js';
|
|
6
|
+
import * as import1 from "./snippets/opengrid-web-components-ef3def04de0cb619/inline1.js"
|
|
7
|
+
import * as import2 from "./snippets/opengrid-web-core-78fdded9b8a374ed/inline0.js"
|
|
8
|
+
import * as import3 from "./snippets/opengrid-web-core-78fdded9b8a374ed/inline0.js"
|
|
9
|
+
import * as import4 from "./snippets/opengrid-web-core-78fdded9b8a374ed/inline0.js"
|
|
7
10
|
|
|
8
11
|
|
|
9
12
|
/**
|
|
@@ -150,6 +153,19 @@ export function register() {
|
|
|
150
153
|
}
|
|
151
154
|
}
|
|
152
155
|
|
|
156
|
+
/**
|
|
157
|
+
* Gives every row of a grid actions (issue #189): `[{ id, label }]`, one
|
|
158
|
+
* trailing column each, with a button per row. Activating one — click, or
|
|
159
|
+
* `Enter` and `Space` on its cell — fires `opengrid-row-action` with
|
|
160
|
+
* `{ id, key, row }`; `key` is the `row-key` value, and group headers and the
|
|
161
|
+
* total have no button. The label is the accessible name.
|
|
162
|
+
* @param {HTMLElement} host
|
|
163
|
+
* @param {any} actions
|
|
164
|
+
*/
|
|
165
|
+
export function set_actions(host, actions) {
|
|
166
|
+
wasm.set_actions(host, actions);
|
|
167
|
+
}
|
|
168
|
+
|
|
153
169
|
/**
|
|
154
170
|
* Says what became of an edit the page saves (issue #153).
|
|
155
171
|
*
|
|
@@ -179,8 +195,10 @@ export function set_cell_state(host, key, column, state, message) {
|
|
|
179
195
|
* Sets the choices a column's editor offers (plan point 37).
|
|
180
196
|
*
|
|
181
197
|
* `choices` is a plain JS object keyed by column name, each value a list of
|
|
182
|
-
* strings. A column with choices gets a
|
|
183
|
-
*
|
|
198
|
+
* strings, numbers or `{ value, label }` pairs. A column with choices gets a
|
|
199
|
+
* type-ahead combobox instead of a typed input (issue #185), and a list column
|
|
200
|
+
* is edited with one only. V1 has no enum type, so the page is the only honest
|
|
201
|
+
* source of the options.
|
|
184
202
|
* @param {HTMLElement} host
|
|
185
203
|
* @param {any} choices
|
|
186
204
|
*/
|
|
@@ -215,22 +233,6 @@ export function set_columns(host, columns) {
|
|
|
215
233
|
}
|
|
216
234
|
|
|
217
235
|
/**
|
|
218
|
-
* Overrides the texts a component writes itself (point 48).
|
|
219
|
-
*
|
|
220
|
-
* `texts` is a plain JS object with any subset of the keys `lang`, `loading`,
|
|
221
|
-
* `matchesOne`, `matchesOther`, `empty`, `error`, `errorUnknown`,
|
|
222
|
-
* `filterGroup`, `operatorLabel`, `valueLabel`, `clear` and `operators`; every
|
|
223
|
-
* key left out keeps its English default. `{count}`, `{column}` and `{cause}`
|
|
224
|
-
* are the placeholders. A `lang` is written onto the elements that carry these
|
|
225
|
-
* texts — the grid's filter row and status line, the table's error paragraph —
|
|
226
|
-
* so they are announced in the language they are written in. Never onto the
|
|
227
|
-
* data: the cells are the page's, in the page's language.
|
|
228
|
-
*
|
|
229
|
-
* Exported as `set_texts` beside `set_provider`, and like it, it takes effect
|
|
230
|
-
* immediately: the grid rebuilds, because its labels are part of the one-time
|
|
231
|
-
* skeleton (the filter row, the scroll offset and the focus are carried
|
|
232
|
-
* across). Call it **before** wiring the provider and the component renders the
|
|
233
|
-
* right words from its first paint.
|
|
234
236
|
* Sets the per-column display formats (plan point 42).
|
|
235
237
|
*
|
|
236
238
|
* `formats` is a plain JS object keyed by column name. A value is either a
|
|
@@ -265,6 +267,42 @@ export function set_provider(host, provider) {
|
|
|
265
267
|
}
|
|
266
268
|
|
|
267
269
|
/**
|
|
270
|
+
* What became of a row the reader added (issue #183): `state` is `saving`,
|
|
271
|
+
* `saved` or `error`. `detail` is the record's `row-key` for `saved`, the
|
|
272
|
+
* message for `error` — said in the status line, as `set_cell_state` says one.
|
|
273
|
+
* @param {HTMLElement} host
|
|
274
|
+
* @param {string} provisional_key
|
|
275
|
+
* @param {string} state
|
|
276
|
+
* @param {any} detail
|
|
277
|
+
*/
|
|
278
|
+
export function set_row_state(host, provisional_key, state, detail) {
|
|
279
|
+
const ptr0 = passStringToWasm0(provisional_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
280
|
+
const len0 = WASM_VECTOR_LEN;
|
|
281
|
+
const ptr1 = passStringToWasm0(state, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
282
|
+
const len1 = WASM_VECTOR_LEN;
|
|
283
|
+
wasm.set_row_state(host, ptr0, len0, ptr1, len1, detail);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Overrides the texts a component writes itself (point 48).
|
|
288
|
+
*
|
|
289
|
+
* `texts` is a plain JS object with any subset of the keys `lang`, `loading`,
|
|
290
|
+
* `matchesOne`, `matchesOther`, `empty`, `error`, `errorUnknown`,
|
|
291
|
+
* `filterGroup`, `operatorLabel`, `valueLabel`, `clear` and `operators`; every
|
|
292
|
+
* key left out keeps its English default. `{count}`, `{column}` and `{cause}`
|
|
293
|
+
* are the placeholders. A `lang` is written onto the elements that carry these
|
|
294
|
+
* texts — the grid's filter row and status line, the table's error paragraph —
|
|
295
|
+
* so they are announced in the language they are written in. Never onto the
|
|
296
|
+
* data: the cells are the page's, in the page's language.
|
|
297
|
+
*
|
|
298
|
+
* A call adds to the texts an earlier one set; a key left out keeps what it was.
|
|
299
|
+
* `set_texts(host, null)` takes them all back to the English defaults.
|
|
300
|
+
*
|
|
301
|
+
* Exported as `set_texts` beside `set_provider`, and like it, it takes effect
|
|
302
|
+
* immediately: the grid rebuilds, because its labels are part of the one-time
|
|
303
|
+
* skeleton (the filter row, the scroll offset and the focus are carried
|
|
304
|
+
* across). Call it **before** wiring the provider and the component renders the
|
|
305
|
+
* right words from its first paint.
|
|
268
306
|
* @param {HTMLElement} host
|
|
269
307
|
* @param {any} values
|
|
270
308
|
*/
|
|
@@ -272,6 +310,19 @@ export function set_texts(host, values) {
|
|
|
272
310
|
wasm.set_texts(host, values);
|
|
273
311
|
}
|
|
274
312
|
|
|
313
|
+
/**
|
|
314
|
+
* Gives columns a validator that runs while the reader types (issue #188):
|
|
315
|
+
* `{ column: (value, row) => null | { level: "warning" | "error", message } }`,
|
|
316
|
+
* or `{ column: { validate, block: true } }` to make an `error` block the
|
|
317
|
+
* commit. The answer is shown under the editor and stays on the cell; it blocks
|
|
318
|
+
* only where the column asks for it (what the schema refuses always does).
|
|
319
|
+
* @param {HTMLElement} host
|
|
320
|
+
* @param {any} validators
|
|
321
|
+
*/
|
|
322
|
+
export function set_validators(host, validators) {
|
|
323
|
+
wasm.set_validators(host, validators);
|
|
324
|
+
}
|
|
325
|
+
|
|
275
326
|
/**
|
|
276
327
|
* Shows values the page computes (issue #153): `[{ key, column, value }]`.
|
|
277
328
|
*
|
|
@@ -317,13 +368,36 @@ function __wbg_get_imports() {
|
|
|
317
368
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
318
369
|
return ret;
|
|
319
370
|
},
|
|
320
|
-
|
|
371
|
+
__wbg___opengrid_apply_frame_274006c814153e24: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
372
|
+
__opengrid_apply_frame(arg0, arg1, getArrayU32FromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
373
|
+
},
|
|
374
|
+
__wbg___opengrid_define_element_e029e9dfe2895c49: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
321
375
|
__opengrid_define_element(getStringFromWasm0(arg0, arg1), arg2, arg3, arg4, arg5);
|
|
322
376
|
},
|
|
323
|
-
|
|
377
|
+
__wbg___opengrid_intl_formatter_752d632f82498378: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
324
378
|
const ret = __opengrid_intl_formatter(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), arg4);
|
|
325
379
|
return ret;
|
|
326
380
|
}, arguments); },
|
|
381
|
+
__wbg___opengrid_numbers_39e217a2530b2e30: function(arg0, arg1) {
|
|
382
|
+
const ret = __opengrid_numbers(getArrayF64FromWasm0(arg0, arg1));
|
|
383
|
+
return ret;
|
|
384
|
+
},
|
|
385
|
+
__wbg___opengrid_page_lang_589aafc79e2edbc3: function(arg0, arg1) {
|
|
386
|
+
const ret = __opengrid_page_lang(arg1);
|
|
387
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
388
|
+
const len1 = WASM_VECTOR_LEN;
|
|
389
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
390
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
391
|
+
},
|
|
392
|
+
__wbg___opengrid_remove_attribute_4b8f22ea47550b92: function(arg0, arg1, arg2) {
|
|
393
|
+
__opengrid_remove_attribute(arg0, getStringFromWasm0(arg1, arg2));
|
|
394
|
+
},
|
|
395
|
+
__wbg___opengrid_set_attribute_d4730f1b9472777a: function(arg0, arg1, arg2, arg3, arg4) {
|
|
396
|
+
__opengrid_set_attribute(arg0, getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
397
|
+
},
|
|
398
|
+
__wbg___opengrid_set_text_fbbfddf32358d69a: function(arg0, arg1, arg2) {
|
|
399
|
+
__opengrid_set_text(arg0, getStringFromWasm0(arg1, arg2));
|
|
400
|
+
},
|
|
327
401
|
__wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
|
|
328
402
|
const v = arg0;
|
|
329
403
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
@@ -407,6 +481,10 @@ function __wbg_get_imports() {
|
|
|
407
481
|
const ret = arg0.call(arg1);
|
|
408
482
|
return ret;
|
|
409
483
|
}, arguments); },
|
|
484
|
+
__wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
|
|
485
|
+
const ret = arg0.call(arg1, arg2);
|
|
486
|
+
return ret;
|
|
487
|
+
}, arguments); },
|
|
410
488
|
__wbg_call_e3b662382210db98: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
411
489
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
412
490
|
return ret;
|
|
@@ -427,10 +505,22 @@ function __wbg_get_imports() {
|
|
|
427
505
|
const ret = arg0.clientLeft;
|
|
428
506
|
return ret;
|
|
429
507
|
},
|
|
508
|
+
__wbg_clipboardData_b99e24e2d915217c: function(arg0) {
|
|
509
|
+
const ret = arg0.clipboardData;
|
|
510
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
511
|
+
},
|
|
430
512
|
__wbg_closest_d889c758da4bb13b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
431
513
|
const ret = arg0.closest(getStringFromWasm0(arg1, arg2));
|
|
432
514
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
433
515
|
}, arguments); },
|
|
516
|
+
__wbg_contains_7189b09a477442a6: function(arg0, arg1) {
|
|
517
|
+
const ret = arg0.contains(arg1);
|
|
518
|
+
return ret;
|
|
519
|
+
},
|
|
520
|
+
__wbg_createDocumentFragment_ce446e0179ac5610: function(arg0) {
|
|
521
|
+
const ret = arg0.createDocumentFragment();
|
|
522
|
+
return ret;
|
|
523
|
+
},
|
|
434
524
|
__wbg_createElement_fcbc0805de826d62: function() { return handleError(function (arg0, arg1, arg2) {
|
|
435
525
|
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
436
526
|
return ret;
|
|
@@ -467,6 +557,10 @@ function __wbg_get_imports() {
|
|
|
467
557
|
const ret = arg0.firstChild;
|
|
468
558
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
469
559
|
},
|
|
560
|
+
__wbg_firstElementChild_09d2c7dc8dd1cfd9: function(arg0) {
|
|
561
|
+
const ret = arg0.firstElementChild;
|
|
562
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
563
|
+
},
|
|
470
564
|
__wbg_focus_2f77051f98540625: function() { return handleError(function (arg0) {
|
|
471
565
|
arg0.focus();
|
|
472
566
|
}, arguments); },
|
|
@@ -489,6 +583,13 @@ function __wbg_get_imports() {
|
|
|
489
583
|
const ret = arg0.getComputedStyle(arg1);
|
|
490
584
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
491
585
|
}, arguments); },
|
|
586
|
+
__wbg_getData_fcb88fae21d94f1e: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
587
|
+
const ret = arg1.getData(getStringFromWasm0(arg2, arg3));
|
|
588
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
589
|
+
const len1 = WASM_VECTOR_LEN;
|
|
590
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
591
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
592
|
+
}, arguments); },
|
|
492
593
|
__wbg_getPropertyValue_dc6b061239dad6f1: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
493
594
|
const ret = arg1.getPropertyValue(getStringFromWasm0(arg2, arg3));
|
|
494
595
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -546,6 +647,10 @@ function __wbg_get_imports() {
|
|
|
546
647
|
const ret = arg0.innerWidth;
|
|
547
648
|
return ret;
|
|
548
649
|
}, arguments); },
|
|
650
|
+
__wbg_insertBefore_9121f73148bc4f7c: function() { return handleError(function (arg0, arg1, arg2) {
|
|
651
|
+
const ret = arg0.insertBefore(arg1, arg2);
|
|
652
|
+
return ret;
|
|
653
|
+
}, arguments); },
|
|
549
654
|
__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
|
|
550
655
|
let result;
|
|
551
656
|
try {
|
|
@@ -556,6 +661,16 @@ function __wbg_get_imports() {
|
|
|
556
661
|
const ret = result;
|
|
557
662
|
return ret;
|
|
558
663
|
},
|
|
664
|
+
__wbg_instanceof_ClipboardEvent_93c99362e111fcef: function(arg0) {
|
|
665
|
+
let result;
|
|
666
|
+
try {
|
|
667
|
+
result = arg0 instanceof ClipboardEvent;
|
|
668
|
+
} catch (_) {
|
|
669
|
+
result = false;
|
|
670
|
+
}
|
|
671
|
+
const ret = result;
|
|
672
|
+
return ret;
|
|
673
|
+
},
|
|
559
674
|
__wbg_instanceof_CssStyleSheet_69eb2b4dfaec58a9: function(arg0) {
|
|
560
675
|
let result;
|
|
561
676
|
try {
|
|
@@ -616,6 +731,16 @@ function __wbg_get_imports() {
|
|
|
616
731
|
const ret = result;
|
|
617
732
|
return ret;
|
|
618
733
|
},
|
|
734
|
+
__wbg_instanceof_Node_d29e7ded486fd76a: function(arg0) {
|
|
735
|
+
let result;
|
|
736
|
+
try {
|
|
737
|
+
result = arg0 instanceof Node;
|
|
738
|
+
} catch (_) {
|
|
739
|
+
result = false;
|
|
740
|
+
}
|
|
741
|
+
const ret = result;
|
|
742
|
+
return ret;
|
|
743
|
+
},
|
|
619
744
|
__wbg_instanceof_Object_33f20e6f12439f3e: function(arg0) {
|
|
620
745
|
let result;
|
|
621
746
|
try {
|
|
@@ -701,6 +826,10 @@ function __wbg_get_imports() {
|
|
|
701
826
|
const ret = Object.keys(arg0);
|
|
702
827
|
return ret;
|
|
703
828
|
},
|
|
829
|
+
__wbg_lastChild_40cbea243f82ab94: function(arg0) {
|
|
830
|
+
const ret = arg0.lastChild;
|
|
831
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
832
|
+
},
|
|
704
833
|
__wbg_left_7e76a74d0db1754f: function(arg0) {
|
|
705
834
|
const ret = arg0.left;
|
|
706
835
|
return ret;
|
|
@@ -753,6 +882,14 @@ function __wbg_get_imports() {
|
|
|
753
882
|
const ret = new CustomEvent(getStringFromWasm0(arg0, arg1), arg2);
|
|
754
883
|
return ret;
|
|
755
884
|
}, arguments); },
|
|
885
|
+
__wbg_nextElementSibling_2c75764f70deca9d: function(arg0) {
|
|
886
|
+
const ret = arg0.nextElementSibling;
|
|
887
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
888
|
+
},
|
|
889
|
+
__wbg_nextSibling_0e94ccfa3c22fa3c: function(arg0) {
|
|
890
|
+
const ret = arg0.nextSibling;
|
|
891
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
892
|
+
},
|
|
756
893
|
__wbg_now_86c0d4ba3fa605b8: function() {
|
|
757
894
|
const ret = Date.now();
|
|
758
895
|
return ret;
|
|
@@ -842,6 +979,13 @@ function __wbg_get_imports() {
|
|
|
842
979
|
const ret = arg0.right;
|
|
843
980
|
return ret;
|
|
844
981
|
},
|
|
982
|
+
__wbg_scrollHeight_8cf19eb16ebc9b9b: function(arg0) {
|
|
983
|
+
const ret = arg0.scrollHeight;
|
|
984
|
+
return ret;
|
|
985
|
+
},
|
|
986
|
+
__wbg_scrollIntoView_5262843155744b69: function(arg0) {
|
|
987
|
+
arg0.scrollIntoView();
|
|
988
|
+
},
|
|
845
989
|
__wbg_scrollIntoView_d8b806f471b7418e: function(arg0, arg1) {
|
|
846
990
|
arg0.scrollIntoView(arg1);
|
|
847
991
|
},
|
|
@@ -853,6 +997,9 @@ function __wbg_get_imports() {
|
|
|
853
997
|
const ret = arg0.scrollTop;
|
|
854
998
|
return ret;
|
|
855
999
|
},
|
|
1000
|
+
__wbg_select_439dea2335b9e472: function(arg0) {
|
|
1001
|
+
arg0.select();
|
|
1002
|
+
},
|
|
856
1003
|
__wbg_selectedIndex_97ad3dd8ed57cf47: function(arg0) {
|
|
857
1004
|
const ret = arg0.selectedIndex;
|
|
858
1005
|
return ret;
|
|
@@ -867,6 +1014,9 @@ function __wbg_get_imports() {
|
|
|
867
1014
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
868
1015
|
return ret;
|
|
869
1016
|
}, arguments); },
|
|
1017
|
+
__wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
|
|
1018
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1019
|
+
},
|
|
870
1020
|
__wbg_set_adoptedStyleSheets_5f0e5fd87d2f8755: function(arg0, arg1) {
|
|
871
1021
|
arg0.adoptedStyleSheets = arg1;
|
|
872
1022
|
},
|
|
@@ -897,6 +1047,9 @@ function __wbg_get_imports() {
|
|
|
897
1047
|
__wbg_set_disabled_cad2c12b3643aa52: function(arg0, arg1) {
|
|
898
1048
|
arg0.disabled = arg1 !== 0;
|
|
899
1049
|
},
|
|
1050
|
+
__wbg_set_id_4beae8b813c092d8: function(arg0, arg1, arg2) {
|
|
1051
|
+
arg0.id = getStringFromWasm0(arg1, arg2);
|
|
1052
|
+
},
|
|
900
1053
|
__wbg_set_inline_77b0fb4f96d76814: function(arg0, arg1) {
|
|
901
1054
|
arg0.inline = __wbindgen_enum_ScrollLogicalPosition[arg1];
|
|
902
1055
|
},
|
|
@@ -988,6 +1141,10 @@ function __wbg_get_imports() {
|
|
|
988
1141
|
const ret = arg0.then(arg1);
|
|
989
1142
|
return ret;
|
|
990
1143
|
},
|
|
1144
|
+
__wbg_toLocaleString_09a867f646b9e754: function(arg0, arg1, arg2) {
|
|
1145
|
+
const ret = arg0.toLocaleString(getStringFromWasm0(arg1, arg2));
|
|
1146
|
+
return ret;
|
|
1147
|
+
},
|
|
991
1148
|
__wbg_top_fe120acfa924a430: function(arg0) {
|
|
992
1149
|
const ret = arg0.top;
|
|
993
1150
|
return ret;
|
|
@@ -1013,48 +1170,52 @@ function __wbg_get_imports() {
|
|
|
1013
1170
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1014
1171
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1015
1172
|
},
|
|
1173
|
+
__wbg_values_3151680f2b3c0a44: function(arg0) {
|
|
1174
|
+
const ret = Object.values(arg0);
|
|
1175
|
+
return ret;
|
|
1176
|
+
},
|
|
1016
1177
|
__wbg_width_219185400361db86: function(arg0) {
|
|
1017
1178
|
const ret = arg0.width;
|
|
1018
1179
|
return ret;
|
|
1019
1180
|
},
|
|
1020
1181
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1021
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1022
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1182
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 237, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1183
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___wasm_bindgen_4cfd459b66780f67___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4cfd459b66780f67___JsError___true_);
|
|
1023
1184
|
return ret;
|
|
1024
1185
|
},
|
|
1025
1186
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1026
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx:
|
|
1027
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1187
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 19, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1188
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true_);
|
|
1028
1189
|
return ret;
|
|
1029
1190
|
},
|
|
1030
1191
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1031
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
1032
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1192
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 19, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1193
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true__2);
|
|
1033
1194
|
return ret;
|
|
1034
1195
|
},
|
|
1035
1196
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1036
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("HTMLElement"), String, Option(String), Option(String)], shim_idx:
|
|
1037
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1197
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("HTMLElement"), String, Option(String), Option(String)], shim_idx: 20, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1198
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___web_sys_b5c30633085262f3___features__gen_HtmlElement__HtmlElement__alloc_42d2b33bd937efdb___string__String__core_37ee0ce0c4cd57d5___option__Option_alloc_42d2b33bd937efdb___string__String___core_37ee0ce0c4cd57d5___option__Option_alloc_42d2b33bd937efdb___string__String_______true_);
|
|
1038
1199
|
return ret;
|
|
1039
1200
|
},
|
|
1040
1201
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1041
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("HTMLElement")], shim_idx:
|
|
1042
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1202
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("HTMLElement")], shim_idx: 19, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1203
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true__4);
|
|
1043
1204
|
return ret;
|
|
1044
1205
|
},
|
|
1045
1206
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1046
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx:
|
|
1047
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1207
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 19, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1208
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true__5);
|
|
1048
1209
|
return ret;
|
|
1049
1210
|
},
|
|
1050
1211
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
1051
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [U32], shim_idx:
|
|
1052
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1212
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [U32], shim_idx: 223, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1213
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___u32______true_);
|
|
1053
1214
|
return ret;
|
|
1054
1215
|
},
|
|
1055
1216
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
1056
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1057
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1217
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 18, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1218
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke_______true_);
|
|
1058
1219
|
return ret;
|
|
1059
1220
|
},
|
|
1060
1221
|
__wbindgen_cast_0000000000000009: function(arg0) {
|
|
@@ -1080,51 +1241,52 @@ function __wbg_get_imports() {
|
|
|
1080
1241
|
return {
|
|
1081
1242
|
__proto__: null,
|
|
1082
1243
|
"./opengrid_web_components_bg.js": import0,
|
|
1083
|
-
"./snippets/opengrid-web-
|
|
1084
|
-
"./snippets/opengrid-web-core-
|
|
1085
|
-
"./snippets/opengrid-web-core-
|
|
1244
|
+
"./snippets/opengrid-web-components-ef3def04de0cb619/inline1.js": import1,
|
|
1245
|
+
"./snippets/opengrid-web-core-78fdded9b8a374ed/inline0.js": import2,
|
|
1246
|
+
"./snippets/opengrid-web-core-78fdded9b8a374ed/inline0.js": import3,
|
|
1247
|
+
"./snippets/opengrid-web-core-78fdded9b8a374ed/inline0.js": import4,
|
|
1086
1248
|
};
|
|
1087
1249
|
}
|
|
1088
1250
|
|
|
1089
|
-
function
|
|
1090
|
-
wasm.
|
|
1251
|
+
function wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
1252
|
+
wasm.wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke_______true_(arg0, arg1);
|
|
1091
1253
|
}
|
|
1092
1254
|
|
|
1093
|
-
function
|
|
1094
|
-
wasm.
|
|
1255
|
+
function wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true_(arg0, arg1, arg2) {
|
|
1256
|
+
wasm.wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true_(arg0, arg1, arg2);
|
|
1095
1257
|
}
|
|
1096
1258
|
|
|
1097
|
-
function
|
|
1098
|
-
wasm.
|
|
1259
|
+
function wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true__2(arg0, arg1, arg2) {
|
|
1260
|
+
wasm.wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true__2(arg0, arg1, arg2);
|
|
1099
1261
|
}
|
|
1100
1262
|
|
|
1101
|
-
function
|
|
1102
|
-
wasm.
|
|
1263
|
+
function wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true__4(arg0, arg1, arg2) {
|
|
1264
|
+
wasm.wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true__4(arg0, arg1, arg2);
|
|
1103
1265
|
}
|
|
1104
1266
|
|
|
1105
|
-
function
|
|
1106
|
-
wasm.
|
|
1267
|
+
function wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true__5(arg0, arg1, arg2) {
|
|
1268
|
+
wasm.wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true__5(arg0, arg1, arg2);
|
|
1107
1269
|
}
|
|
1108
1270
|
|
|
1109
|
-
function
|
|
1110
|
-
const ret = wasm.
|
|
1271
|
+
function wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___wasm_bindgen_4cfd459b66780f67___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4cfd459b66780f67___JsError___true_(arg0, arg1, arg2) {
|
|
1272
|
+
const ret = wasm.wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___wasm_bindgen_4cfd459b66780f67___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4cfd459b66780f67___JsError___true_(arg0, arg1, arg2);
|
|
1111
1273
|
if (ret[1]) {
|
|
1112
1274
|
throw takeFromExternrefTable0(ret[0]);
|
|
1113
1275
|
}
|
|
1114
1276
|
}
|
|
1115
1277
|
|
|
1116
|
-
function
|
|
1278
|
+
function wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___web_sys_b5c30633085262f3___features__gen_HtmlElement__HtmlElement__alloc_42d2b33bd937efdb___string__String__core_37ee0ce0c4cd57d5___option__Option_alloc_42d2b33bd937efdb___string__String___core_37ee0ce0c4cd57d5___option__Option_alloc_42d2b33bd937efdb___string__String_______true_(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1117
1279
|
const ptr0 = passStringToWasm0(arg3, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1118
1280
|
const len0 = WASM_VECTOR_LEN;
|
|
1119
1281
|
var ptr1 = isLikeNone(arg4) ? 0 : passStringToWasm0(arg4, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1120
1282
|
var len1 = WASM_VECTOR_LEN;
|
|
1121
1283
|
var ptr2 = isLikeNone(arg5) ? 0 : passStringToWasm0(arg5, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1122
1284
|
var len2 = WASM_VECTOR_LEN;
|
|
1123
|
-
wasm.
|
|
1285
|
+
wasm.wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___web_sys_b5c30633085262f3___features__gen_HtmlElement__HtmlElement__alloc_42d2b33bd937efdb___string__String__core_37ee0ce0c4cd57d5___option__Option_alloc_42d2b33bd937efdb___string__String___core_37ee0ce0c4cd57d5___option__Option_alloc_42d2b33bd937efdb___string__String_______true_(arg0, arg1, arg2, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
1124
1286
|
}
|
|
1125
1287
|
|
|
1126
|
-
function
|
|
1127
|
-
wasm.
|
|
1288
|
+
function wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___u32______true_(arg0, arg1, arg2) {
|
|
1289
|
+
wasm.wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___u32______true_(arg0, arg1, arg2);
|
|
1128
1290
|
}
|
|
1129
1291
|
|
|
1130
1292
|
|
|
@@ -1208,6 +1370,16 @@ function debugString(val) {
|
|
|
1208
1370
|
return className;
|
|
1209
1371
|
}
|
|
1210
1372
|
|
|
1373
|
+
function getArrayF64FromWasm0(ptr, len) {
|
|
1374
|
+
ptr = ptr >>> 0;
|
|
1375
|
+
return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
1379
|
+
ptr = ptr >>> 0;
|
|
1380
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1211
1383
|
function getArrayU8FromWasm0(ptr, len) {
|
|
1212
1384
|
ptr = ptr >>> 0;
|
|
1213
1385
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -1221,10 +1393,26 @@ function getDataViewMemory0() {
|
|
|
1221
1393
|
return cachedDataViewMemory0;
|
|
1222
1394
|
}
|
|
1223
1395
|
|
|
1396
|
+
let cachedFloat64ArrayMemory0 = null;
|
|
1397
|
+
function getFloat64ArrayMemory0() {
|
|
1398
|
+
if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
|
|
1399
|
+
cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
|
|
1400
|
+
}
|
|
1401
|
+
return cachedFloat64ArrayMemory0;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1224
1404
|
function getStringFromWasm0(ptr, len) {
|
|
1225
1405
|
return decodeText(ptr >>> 0, len);
|
|
1226
1406
|
}
|
|
1227
1407
|
|
|
1408
|
+
let cachedUint32ArrayMemory0 = null;
|
|
1409
|
+
function getUint32ArrayMemory0() {
|
|
1410
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
1411
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
1412
|
+
}
|
|
1413
|
+
return cachedUint32ArrayMemory0;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1228
1416
|
let cachedUint8ArrayMemory0 = null;
|
|
1229
1417
|
function getUint8ArrayMemory0() {
|
|
1230
1418
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
@@ -1352,6 +1540,8 @@ function __wbg_finalize_init(instance, module) {
|
|
|
1352
1540
|
wasm = instance.exports;
|
|
1353
1541
|
wasmModule = module;
|
|
1354
1542
|
cachedDataViewMemory0 = null;
|
|
1543
|
+
cachedFloat64ArrayMemory0 = null;
|
|
1544
|
+
cachedUint32ArrayMemory0 = null;
|
|
1355
1545
|
cachedUint8ArrayMemory0 = null;
|
|
1356
1546
|
wasm.__wbindgen_start();
|
|
1357
1547
|
return wasm;
|
|
Binary file
|
|
@@ -7,22 +7,25 @@ export const get_pivot: (a: any, b: any) => [number, number, number];
|
|
|
7
7
|
export const get_query: (a: any) => any;
|
|
8
8
|
export const get_view: (a: any) => any;
|
|
9
9
|
export const register: () => [number, number];
|
|
10
|
+
export const set_actions: (a: any, b: any) => void;
|
|
10
11
|
export const set_cell_state: (a: any, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
11
12
|
export const set_choices: (a: any, b: any) => void;
|
|
12
13
|
export const set_columns: (a: any, b: any) => void;
|
|
13
14
|
export const set_formats: (a: any, b: any) => void;
|
|
14
15
|
export const set_provider: (a: any, b: any) => void;
|
|
16
|
+
export const set_row_state: (a: any, b: number, c: number, d: number, e: number, f: any) => void;
|
|
15
17
|
export const set_texts: (a: any, b: any) => void;
|
|
18
|
+
export const set_validators: (a: any, b: any) => void;
|
|
16
19
|
export const set_values: (a: any, b: any) => void;
|
|
17
20
|
export const set_view: (a: any, b: any, c: any) => void;
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
21
|
+
export const wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___web_sys_b5c30633085262f3___features__gen_HtmlElement__HtmlElement__alloc_42d2b33bd937efdb___string__String__core_37ee0ce0c4cd57d5___option__Option_alloc_42d2b33bd937efdb___string__String___core_37ee0ce0c4cd57d5___option__Option_alloc_42d2b33bd937efdb___string__String_______true_: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
22
|
+
export const wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___wasm_bindgen_4cfd459b66780f67___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4cfd459b66780f67___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
23
|
+
export const wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true_: (a: number, b: number, c: any) => void;
|
|
24
|
+
export const wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true__2: (a: number, b: number, c: any) => void;
|
|
25
|
+
export const wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true__4: (a: number, b: number, c: any) => void;
|
|
26
|
+
export const wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___js_sys_167d7a02263935a1___Array______true__5: (a: number, b: number, c: any) => void;
|
|
27
|
+
export const wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke___u32______true_: (a: number, b: number, c: number) => void;
|
|
28
|
+
export const wasm_bindgen_4cfd459b66780f67___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
26
29
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
27
30
|
export const __externref_table_alloc: () => number;
|
|
28
31
|
export const __wbindgen_externrefs: WebAssembly.Table;
|