logisheets 1.14.1 → 1.15.1
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/dist/src/api/workbook.d.ts +98 -1
- package/dist/src/api/workbook.js +110 -0
- package/dist/src/bindings/bind_form_schema.d.ts +13 -19
- package/dist/src/bindings/bind_form_schema.js +7 -25
- package/dist/src/bindings/block_field_type.d.ts +7 -0
- package/dist/src/bindings/block_field_type.js +2 -0
- package/dist/src/bindings/block_info.d.ts +4 -0
- package/dist/src/bindings/block_op_for_payload.d.ts +5 -0
- package/dist/src/bindings/block_op_for_payload.js +2 -0
- package/dist/src/bindings/block_op_policy.d.ts +6 -0
- package/dist/src/bindings/block_op_policy.js +2 -0
- package/dist/src/bindings/block_schema.d.ts +4 -0
- package/dist/src/bindings/block_schema_field_entry.d.ts +12 -0
- package/dist/src/bindings/create_block.d.ts +9 -0
- package/dist/src/bindings/create_block.js +11 -1
- package/dist/src/bindings/duplicate_block_key.d.ts +7 -0
- package/dist/src/bindings/duplicate_block_key.js +2 -0
- package/dist/src/bindings/edit_payload.d.ts +12 -0
- package/dist/src/bindings/enum_set_info.d.ts +6 -0
- package/dist/src/bindings/enum_set_info.js +2 -0
- package/dist/src/bindings/enum_variant_info.d.ts +4 -0
- package/dist/src/bindings/enum_variant_info.js +2 -0
- package/dist/src/bindings/enum_variant_spec.d.ts +14 -0
- package/dist/src/bindings/enum_variant_spec.js +21 -0
- package/dist/src/bindings/get_block_op_policies_params.d.ts +4 -0
- package/dist/src/bindings/get_block_op_policies_params.js +2 -0
- package/dist/src/bindings/index.d.ts +19 -0
- package/dist/src/bindings/index.js +19 -0
- package/dist/src/bindings/pivot_excel_note.d.ts +4 -0
- package/dist/src/bindings/pivot_excel_note.js +2 -0
- package/dist/src/bindings/pivot_filter.d.ts +4 -0
- package/dist/src/bindings/pivot_filter.js +2 -0
- package/dist/src/bindings/pivot_plan.d.ts +12 -0
- package/dist/src/bindings/pivot_plan.js +2 -0
- package/dist/src/bindings/pivot_spec.d.ts +10 -0
- package/dist/src/bindings/pivot_spec.js +2 -0
- package/dist/src/bindings/remove_enum_set.d.ts +10 -0
- package/dist/src/bindings/remove_enum_set.js +16 -0
- package/dist/src/bindings/rpc_pivot_plan_for_params.d.ts +6 -0
- package/dist/src/bindings/rpc_pivot_plan_for_params.js +2 -0
- package/dist/src/bindings/rpc_pivot_plan_params.d.ts +4 -0
- package/dist/src/bindings/rpc_pivot_plan_params.js +2 -0
- package/dist/src/bindings/rpc_workbook_methods.d.ts +17 -0
- package/dist/src/bindings/schema_field_spec.d.ts +71 -0
- package/dist/src/bindings/schema_field_spec.js +93 -0
- package/dist/src/bindings/set_block_analyzes.d.ts +23 -0
- package/dist/src/bindings/set_block_analyzes.js +33 -0
- package/dist/src/bindings/unique_together_group.d.ts +3 -0
- package/dist/src/bindings/unique_together_group.js +2 -0
- package/dist/src/bindings/upsert_enum_set.d.ts +19 -0
- package/dist/src/bindings/upsert_enum_set.js +28 -0
- package/dist/wasm/logisheets_wasm_server.d.ts +6 -6
- package/dist/wasm/logisheets_wasm_server.js +28 -28
- package/dist/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/dist/wasm/package.json +1 -1
- package/package.json +1 -1
- package/wasm/logisheets_wasm_server.d.ts +6 -6
- package/wasm/logisheets_wasm_server.js +28 -28
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/package.json +1 -1
|
@@ -181,27 +181,15 @@ module.exports.handle = function(msg, book_id) {
|
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
* @param {
|
|
187
|
-
* @param {
|
|
188
|
-
* @returns {
|
|
184
|
+
* Input: AsyncFuncResult
|
|
185
|
+
* Output: ActionAffect
|
|
186
|
+
* @param {number} id
|
|
187
|
+
* @param {any} result
|
|
188
|
+
* @returns {any}
|
|
189
189
|
*/
|
|
190
|
-
module.exports.
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
try {
|
|
194
|
-
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
195
|
-
const len0 = WASM_VECTOR_LEN;
|
|
196
|
-
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
197
|
-
const len1 = WASM_VECTOR_LEN;
|
|
198
|
-
const ret = wasm.format_text(ptr0, len0, ptr1, len1);
|
|
199
|
-
deferred3_0 = ret[0];
|
|
200
|
-
deferred3_1 = ret[1];
|
|
201
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
202
|
-
} finally {
|
|
203
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
204
|
-
}
|
|
190
|
+
module.exports.input_async_result = function(id, result) {
|
|
191
|
+
const ret = wasm.input_async_result(id, result);
|
|
192
|
+
return ret;
|
|
205
193
|
};
|
|
206
194
|
|
|
207
195
|
/**
|
|
@@ -229,15 +217,27 @@ module.exports.format_number = function(fmt, value) {
|
|
|
229
217
|
};
|
|
230
218
|
|
|
231
219
|
/**
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
* @param {
|
|
235
|
-
* @param {
|
|
236
|
-
* @returns {
|
|
220
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
221
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
222
|
+
* @param {string} fmt
|
|
223
|
+
* @param {string} text
|
|
224
|
+
* @returns {string}
|
|
237
225
|
*/
|
|
238
|
-
module.exports.
|
|
239
|
-
|
|
240
|
-
|
|
226
|
+
module.exports.format_text = function(fmt, text) {
|
|
227
|
+
let deferred3_0;
|
|
228
|
+
let deferred3_1;
|
|
229
|
+
try {
|
|
230
|
+
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
231
|
+
const len0 = WASM_VECTOR_LEN;
|
|
232
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
233
|
+
const len1 = WASM_VECTOR_LEN;
|
|
234
|
+
const ret = wasm.format_text(ptr0, len0, ptr1, len1);
|
|
235
|
+
deferred3_0 = ret[0];
|
|
236
|
+
deferred3_1 = ret[1];
|
|
237
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
238
|
+
} finally {
|
|
239
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
240
|
+
}
|
|
241
241
|
};
|
|
242
242
|
|
|
243
243
|
module.exports.__wbg_String_eecc4a11987127d6 = function(arg0, arg1) {
|
|
Binary file
|
package/dist/wasm/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "logisheets",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.1",
|
|
4
4
|
"description": "Node.js bindings for LogiSheets — a Rust + WebAssembly spreadsheet engine that reads, edits, and writes real .xlsx (Excel) files (formulas, styles, and structure preserved) with no browser required.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function handle(msg: any, book_id?: number | null): any;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Input: AsyncFuncResult
|
|
6
|
+
* Output: ActionAffect
|
|
7
7
|
*/
|
|
8
|
-
export function
|
|
8
|
+
export function input_async_result(id: number, result: any): any;
|
|
9
9
|
/**
|
|
10
10
|
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
11
11
|
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
@@ -14,7 +14,7 @@ export function format_text(fmt: string, text: string): string;
|
|
|
14
14
|
*/
|
|
15
15
|
export function format_number(fmt: string, value: number): string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
18
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
19
19
|
*/
|
|
20
|
-
export function
|
|
20
|
+
export function format_text(fmt: string, text: string): string;
|
|
@@ -181,27 +181,15 @@ module.exports.handle = function(msg, book_id) {
|
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
* @param {
|
|
187
|
-
* @param {
|
|
188
|
-
* @returns {
|
|
184
|
+
* Input: AsyncFuncResult
|
|
185
|
+
* Output: ActionAffect
|
|
186
|
+
* @param {number} id
|
|
187
|
+
* @param {any} result
|
|
188
|
+
* @returns {any}
|
|
189
189
|
*/
|
|
190
|
-
module.exports.
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
try {
|
|
194
|
-
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
195
|
-
const len0 = WASM_VECTOR_LEN;
|
|
196
|
-
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
197
|
-
const len1 = WASM_VECTOR_LEN;
|
|
198
|
-
const ret = wasm.format_text(ptr0, len0, ptr1, len1);
|
|
199
|
-
deferred3_0 = ret[0];
|
|
200
|
-
deferred3_1 = ret[1];
|
|
201
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
202
|
-
} finally {
|
|
203
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
204
|
-
}
|
|
190
|
+
module.exports.input_async_result = function(id, result) {
|
|
191
|
+
const ret = wasm.input_async_result(id, result);
|
|
192
|
+
return ret;
|
|
205
193
|
};
|
|
206
194
|
|
|
207
195
|
/**
|
|
@@ -229,15 +217,27 @@ module.exports.format_number = function(fmt, value) {
|
|
|
229
217
|
};
|
|
230
218
|
|
|
231
219
|
/**
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
* @param {
|
|
235
|
-
* @param {
|
|
236
|
-
* @returns {
|
|
220
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
221
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
222
|
+
* @param {string} fmt
|
|
223
|
+
* @param {string} text
|
|
224
|
+
* @returns {string}
|
|
237
225
|
*/
|
|
238
|
-
module.exports.
|
|
239
|
-
|
|
240
|
-
|
|
226
|
+
module.exports.format_text = function(fmt, text) {
|
|
227
|
+
let deferred3_0;
|
|
228
|
+
let deferred3_1;
|
|
229
|
+
try {
|
|
230
|
+
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
231
|
+
const len0 = WASM_VECTOR_LEN;
|
|
232
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
233
|
+
const len1 = WASM_VECTOR_LEN;
|
|
234
|
+
const ret = wasm.format_text(ptr0, len0, ptr1, len1);
|
|
235
|
+
deferred3_0 = ret[0];
|
|
236
|
+
deferred3_1 = ret[1];
|
|
237
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
238
|
+
} finally {
|
|
239
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
240
|
+
}
|
|
241
241
|
};
|
|
242
242
|
|
|
243
243
|
module.exports.__wbg_String_eecc4a11987127d6 = function(arg0, arg1) {
|
|
Binary file
|