logisheets 1.14.1 → 1.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/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 +3 -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 +5 -5
- package/dist/wasm/logisheets_wasm_server.js +24 -24
- 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 +5 -5
- package/wasm/logisheets_wasm_server.js +24 -24
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/package.json +1 -1
|
@@ -180,30 +180,6 @@ module.exports.handle = function(msg, book_id) {
|
|
|
180
180
|
return ret;
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
/**
|
|
184
|
-
* Render a text value with an Excel number-format code (for the `@` text
|
|
185
|
-
* section). Falls back to the text itself on an unsupported format.
|
|
186
|
-
* @param {string} fmt
|
|
187
|
-
* @param {string} text
|
|
188
|
-
* @returns {string}
|
|
189
|
-
*/
|
|
190
|
-
module.exports.format_text = function(fmt, text) {
|
|
191
|
-
let deferred3_0;
|
|
192
|
-
let deferred3_1;
|
|
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
|
-
}
|
|
205
|
-
};
|
|
206
|
-
|
|
207
183
|
/**
|
|
208
184
|
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
209
185
|
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
@@ -228,6 +204,30 @@ module.exports.format_number = function(fmt, value) {
|
|
|
228
204
|
}
|
|
229
205
|
};
|
|
230
206
|
|
|
207
|
+
/**
|
|
208
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
209
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
210
|
+
* @param {string} fmt
|
|
211
|
+
* @param {string} text
|
|
212
|
+
* @returns {string}
|
|
213
|
+
*/
|
|
214
|
+
module.exports.format_text = function(fmt, text) {
|
|
215
|
+
let deferred3_0;
|
|
216
|
+
let deferred3_1;
|
|
217
|
+
try {
|
|
218
|
+
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
219
|
+
const len0 = WASM_VECTOR_LEN;
|
|
220
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
221
|
+
const len1 = WASM_VECTOR_LEN;
|
|
222
|
+
const ret = wasm.format_text(ptr0, len0, ptr1, len1);
|
|
223
|
+
deferred3_0 = ret[0];
|
|
224
|
+
deferred3_1 = ret[1];
|
|
225
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
226
|
+
} finally {
|
|
227
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
|
|
231
231
|
/**
|
|
232
232
|
* Input: AsyncFuncResult
|
|
233
233
|
* Output: ActionAffect
|
|
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.0",
|
|
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,11 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
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;
|
|
9
4
|
/**
|
|
10
5
|
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
11
6
|
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
@@ -13,6 +8,11 @@ export function format_text(fmt: string, text: string): string;
|
|
|
13
8
|
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
14
9
|
*/
|
|
15
10
|
export function format_number(fmt: string, value: number): string;
|
|
11
|
+
/**
|
|
12
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
13
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
14
|
+
*/
|
|
15
|
+
export function format_text(fmt: string, text: string): string;
|
|
16
16
|
/**
|
|
17
17
|
* Input: AsyncFuncResult
|
|
18
18
|
* Output: ActionAffect
|
|
@@ -180,30 +180,6 @@ module.exports.handle = function(msg, book_id) {
|
|
|
180
180
|
return ret;
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
/**
|
|
184
|
-
* Render a text value with an Excel number-format code (for the `@` text
|
|
185
|
-
* section). Falls back to the text itself on an unsupported format.
|
|
186
|
-
* @param {string} fmt
|
|
187
|
-
* @param {string} text
|
|
188
|
-
* @returns {string}
|
|
189
|
-
*/
|
|
190
|
-
module.exports.format_text = function(fmt, text) {
|
|
191
|
-
let deferred3_0;
|
|
192
|
-
let deferred3_1;
|
|
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
|
-
}
|
|
205
|
-
};
|
|
206
|
-
|
|
207
183
|
/**
|
|
208
184
|
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
209
185
|
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
@@ -228,6 +204,30 @@ module.exports.format_number = function(fmt, value) {
|
|
|
228
204
|
}
|
|
229
205
|
};
|
|
230
206
|
|
|
207
|
+
/**
|
|
208
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
209
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
210
|
+
* @param {string} fmt
|
|
211
|
+
* @param {string} text
|
|
212
|
+
* @returns {string}
|
|
213
|
+
*/
|
|
214
|
+
module.exports.format_text = function(fmt, text) {
|
|
215
|
+
let deferred3_0;
|
|
216
|
+
let deferred3_1;
|
|
217
|
+
try {
|
|
218
|
+
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
219
|
+
const len0 = WASM_VECTOR_LEN;
|
|
220
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
221
|
+
const len1 = WASM_VECTOR_LEN;
|
|
222
|
+
const ret = wasm.format_text(ptr0, len0, ptr1, len1);
|
|
223
|
+
deferred3_0 = ret[0];
|
|
224
|
+
deferred3_1 = ret[1];
|
|
225
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
226
|
+
} finally {
|
|
227
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
|
|
231
231
|
/**
|
|
232
232
|
* Input: AsyncFuncResult
|
|
233
233
|
* Output: ActionAffect
|
|
Binary file
|