logisheets 1.13.0 → 1.14.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 +35 -1
- package/dist/src/api/workbook.js +40 -0
- package/dist/src/bindings/axis_scale_update.d.ts +30 -0
- package/dist/src/bindings/axis_scale_update.js +41 -0
- package/dist/src/bindings/block_actor.d.ts +4 -0
- package/dist/src/bindings/block_actor.js +2 -0
- package/dist/src/bindings/block_info.d.ts +6 -0
- package/dist/src/bindings/block_modify_info.d.ts +8 -0
- package/dist/src/bindings/block_modify_info.js +2 -0
- package/dist/src/bindings/block_op.d.ts +1 -0
- package/dist/src/bindings/block_op.js +2 -0
- package/dist/src/bindings/block_permissions.d.ts +35 -0
- package/dist/src/bindings/block_permissions.js +44 -0
- package/dist/src/bindings/chart_axis_scale_info.d.ts +8 -0
- package/dist/src/bindings/chart_axis_scale_info.js +2 -0
- package/dist/src/bindings/chart_block_source.d.ts +18 -0
- package/dist/src/bindings/chart_block_source.js +28 -0
- package/dist/src/bindings/chart_block_source_info.d.ts +5 -0
- package/dist/src/bindings/chart_block_source_info.js +2 -0
- package/dist/src/bindings/chart_data_labels_info.d.ts +9 -0
- package/dist/src/bindings/chart_data_labels_info.js +2 -0
- package/dist/src/bindings/chart_info.d.ts +13 -0
- package/dist/src/bindings/chart_of_pie_split_info.d.ts +5 -0
- package/dist/src/bindings/chart_of_pie_split_info.js +2 -0
- package/dist/src/bindings/chart_series_info.d.ts +6 -0
- package/dist/src/bindings/check_field_validation_params.d.ts +6 -0
- package/dist/src/bindings/check_field_validation_params.js +2 -0
- package/dist/src/bindings/create_block.d.ts +9 -0
- package/dist/src/bindings/create_block.js +11 -1
- package/dist/src/bindings/create_chart.d.ts +5 -0
- package/dist/src/bindings/create_chart.js +6 -1
- package/dist/src/bindings/create_chart_series.d.ts +12 -0
- package/dist/src/bindings/create_chart_series.js +16 -1
- package/dist/src/bindings/edit_payload.d.ts +8 -0
- package/dist/src/bindings/field_validation_verdict.d.ts +5 -0
- package/dist/src/bindings/field_validation_verdict.js +2 -0
- package/dist/src/bindings/get_block_modify_info_params.d.ts +4 -0
- package/dist/src/bindings/get_block_modify_info_params.js +2 -0
- package/dist/src/bindings/index.d.ts +17 -0
- package/dist/src/bindings/index.js +17 -0
- package/dist/src/bindings/may_modify_block_params.d.ts +8 -0
- package/dist/src/bindings/may_modify_block_params.js +2 -0
- package/dist/src/bindings/of_pie_split_update.d.ts +18 -0
- package/dist/src/bindings/of_pie_split_update.js +24 -0
- package/dist/src/bindings/rpc_workbook_methods.d.ts +8 -0
- package/dist/src/bindings/set_block_description.d.ts +18 -0
- package/dist/src/bindings/set_block_description.js +30 -0
- package/dist/src/bindings/set_block_permissions.d.ts +24 -0
- package/dist/src/bindings/set_block_permissions.js +35 -0
- package/dist/src/bindings/update_chart.d.ts +68 -0
- package/dist/src/bindings/update_chart.js +81 -1
- package/dist/wasm/logisheets_wasm_server.d.ts +6 -6
- package/dist/wasm/logisheets_wasm_server.js +34 -34
- package/dist/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/dist/wasm/logisheets_wasm_server_bg.wasm.d.ts +1 -1
- 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 +34 -34
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/logisheets_wasm_server_bg.wasm.d.ts +1 -1
- package/wasm/package.json +1 -1
|
@@ -171,38 +171,12 @@ function debugString(val) {
|
|
|
171
171
|
return className;
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
177
|
-
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
178
|
-
* @param {string} fmt
|
|
179
|
-
* @param {number} value
|
|
180
|
-
* @returns {string}
|
|
181
|
-
*/
|
|
182
|
-
module.exports.format_number = function(fmt, value) {
|
|
183
|
-
let deferred2_0;
|
|
184
|
-
let deferred2_1;
|
|
185
|
-
try {
|
|
186
|
-
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
187
|
-
const len0 = WASM_VECTOR_LEN;
|
|
188
|
-
const ret = wasm.format_number(ptr0, len0, value);
|
|
189
|
-
deferred2_0 = ret[0];
|
|
190
|
-
deferred2_1 = ret[1];
|
|
191
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
192
|
-
} finally {
|
|
193
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Input: AsyncFuncResult
|
|
199
|
-
* Output: ActionAffect
|
|
200
|
-
* @param {number} id
|
|
201
|
-
* @param {any} result
|
|
174
|
+
* @param {any} msg
|
|
175
|
+
* @param {number | null} [book_id]
|
|
202
176
|
* @returns {any}
|
|
203
177
|
*/
|
|
204
|
-
module.exports.
|
|
205
|
-
const ret = wasm.
|
|
178
|
+
module.exports.handle = function(msg, book_id) {
|
|
179
|
+
const ret = wasm.handle(msg, isLikeNone(book_id) ? 0x100000001 : (book_id) >>> 0);
|
|
206
180
|
return ret;
|
|
207
181
|
};
|
|
208
182
|
|
|
@@ -231,12 +205,38 @@ module.exports.format_text = function(fmt, text) {
|
|
|
231
205
|
};
|
|
232
206
|
|
|
233
207
|
/**
|
|
234
|
-
*
|
|
235
|
-
*
|
|
208
|
+
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
209
|
+
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
210
|
+
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
211
|
+
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
212
|
+
* @param {string} fmt
|
|
213
|
+
* @param {number} value
|
|
214
|
+
* @returns {string}
|
|
215
|
+
*/
|
|
216
|
+
module.exports.format_number = function(fmt, value) {
|
|
217
|
+
let deferred2_0;
|
|
218
|
+
let deferred2_1;
|
|
219
|
+
try {
|
|
220
|
+
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
221
|
+
const len0 = WASM_VECTOR_LEN;
|
|
222
|
+
const ret = wasm.format_number(ptr0, len0, value);
|
|
223
|
+
deferred2_0 = ret[0];
|
|
224
|
+
deferred2_1 = ret[1];
|
|
225
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
226
|
+
} finally {
|
|
227
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Input: AsyncFuncResult
|
|
233
|
+
* Output: ActionAffect
|
|
234
|
+
* @param {number} id
|
|
235
|
+
* @param {any} result
|
|
236
236
|
* @returns {any}
|
|
237
237
|
*/
|
|
238
|
-
module.exports.
|
|
239
|
-
const ret = wasm.
|
|
238
|
+
module.exports.input_async_result = function(id, result) {
|
|
239
|
+
const ret = wasm.input_async_result(id, result);
|
|
240
240
|
return ret;
|
|
241
241
|
};
|
|
242
242
|
|
|
Binary file
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const handle: (a: any, b: number) => any;
|
|
4
5
|
export const format_number: (a: number, b: number, c: number) => [number, number];
|
|
5
6
|
export const format_text: (a: number, b: number, c: number, d: number) => [number, number];
|
|
6
7
|
export const input_async_result: (a: number, b: any) => any;
|
|
7
|
-
export const handle: (a: any, b: number) => any;
|
|
8
8
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
9
9
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
10
10
|
export const __wbindgen_exn_store: (a: number) => void;
|
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.14.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",
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function handle(msg: any, book_id?: number | null): any;
|
|
4
|
+
/**
|
|
5
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
6
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
7
|
+
*/
|
|
8
|
+
export function format_text(fmt: string, text: string): string;
|
|
3
9
|
/**
|
|
4
10
|
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
5
11
|
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
@@ -12,9 +18,3 @@ export function format_number(fmt: string, value: number): string;
|
|
|
12
18
|
* Output: ActionAffect
|
|
13
19
|
*/
|
|
14
20
|
export function input_async_result(id: number, result: any): any;
|
|
15
|
-
/**
|
|
16
|
-
* Render a text value with an Excel number-format code (for the `@` text
|
|
17
|
-
* section). Falls back to the text itself on an unsupported format.
|
|
18
|
-
*/
|
|
19
|
-
export function format_text(fmt: string, text: string): string;
|
|
20
|
-
export function handle(msg: any, book_id?: number | null): any;
|
|
@@ -171,38 +171,12 @@ function debugString(val) {
|
|
|
171
171
|
return className;
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
177
|
-
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
178
|
-
* @param {string} fmt
|
|
179
|
-
* @param {number} value
|
|
180
|
-
* @returns {string}
|
|
181
|
-
*/
|
|
182
|
-
module.exports.format_number = function(fmt, value) {
|
|
183
|
-
let deferred2_0;
|
|
184
|
-
let deferred2_1;
|
|
185
|
-
try {
|
|
186
|
-
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
187
|
-
const len0 = WASM_VECTOR_LEN;
|
|
188
|
-
const ret = wasm.format_number(ptr0, len0, value);
|
|
189
|
-
deferred2_0 = ret[0];
|
|
190
|
-
deferred2_1 = ret[1];
|
|
191
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
192
|
-
} finally {
|
|
193
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Input: AsyncFuncResult
|
|
199
|
-
* Output: ActionAffect
|
|
200
|
-
* @param {number} id
|
|
201
|
-
* @param {any} result
|
|
174
|
+
* @param {any} msg
|
|
175
|
+
* @param {number | null} [book_id]
|
|
202
176
|
* @returns {any}
|
|
203
177
|
*/
|
|
204
|
-
module.exports.
|
|
205
|
-
const ret = wasm.
|
|
178
|
+
module.exports.handle = function(msg, book_id) {
|
|
179
|
+
const ret = wasm.handle(msg, isLikeNone(book_id) ? 0x100000001 : (book_id) >>> 0);
|
|
206
180
|
return ret;
|
|
207
181
|
};
|
|
208
182
|
|
|
@@ -231,12 +205,38 @@ module.exports.format_text = function(fmt, text) {
|
|
|
231
205
|
};
|
|
232
206
|
|
|
233
207
|
/**
|
|
234
|
-
*
|
|
235
|
-
*
|
|
208
|
+
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
209
|
+
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
210
|
+
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
211
|
+
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
212
|
+
* @param {string} fmt
|
|
213
|
+
* @param {number} value
|
|
214
|
+
* @returns {string}
|
|
215
|
+
*/
|
|
216
|
+
module.exports.format_number = function(fmt, value) {
|
|
217
|
+
let deferred2_0;
|
|
218
|
+
let deferred2_1;
|
|
219
|
+
try {
|
|
220
|
+
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
221
|
+
const len0 = WASM_VECTOR_LEN;
|
|
222
|
+
const ret = wasm.format_number(ptr0, len0, value);
|
|
223
|
+
deferred2_0 = ret[0];
|
|
224
|
+
deferred2_1 = ret[1];
|
|
225
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
226
|
+
} finally {
|
|
227
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Input: AsyncFuncResult
|
|
233
|
+
* Output: ActionAffect
|
|
234
|
+
* @param {number} id
|
|
235
|
+
* @param {any} result
|
|
236
236
|
* @returns {any}
|
|
237
237
|
*/
|
|
238
|
-
module.exports.
|
|
239
|
-
const ret = wasm.
|
|
238
|
+
module.exports.input_async_result = function(id, result) {
|
|
239
|
+
const ret = wasm.input_async_result(id, result);
|
|
240
240
|
return ret;
|
|
241
241
|
};
|
|
242
242
|
|
|
Binary file
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const handle: (a: any, b: number) => any;
|
|
4
5
|
export const format_number: (a: number, b: number, c: number) => [number, number];
|
|
5
6
|
export const format_text: (a: number, b: number, c: number, d: number) => [number, number];
|
|
6
7
|
export const input_async_result: (a: number, b: any) => any;
|
|
7
|
-
export const handle: (a: any, b: number) => any;
|
|
8
8
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
9
9
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
10
10
|
export const __wbindgen_exn_store: (a: number) => void;
|