logisheets 1.12.1 → 1.13.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/wasm/logisheets_wasm_server.d.ts +8 -8
- 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 +8 -8
- package/wasm/logisheets_wasm_server.js +24 -24
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Render a
|
|
5
|
-
*
|
|
4
|
+
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
5
|
+
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
6
|
+
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
7
|
+
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
6
8
|
*/
|
|
7
|
-
export function
|
|
9
|
+
export function format_number(fmt: string, value: number): string;
|
|
8
10
|
/**
|
|
9
11
|
* Input: AsyncFuncResult
|
|
10
12
|
* Output: ActionAffect
|
|
11
13
|
*/
|
|
12
14
|
export function input_async_result(id: number, result: any): any;
|
|
13
15
|
/**
|
|
14
|
-
* Render a
|
|
15
|
-
*
|
|
16
|
-
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
17
|
-
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
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
18
|
*/
|
|
19
|
-
export function
|
|
19
|
+
export function format_text(fmt: string, text: string): string;
|
|
20
20
|
export function handle(msg: any, book_id?: number | null): any;
|
|
@@ -171,26 +171,26 @@ function debugString(val) {
|
|
|
171
171
|
return className;
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
|
-
* Render a
|
|
175
|
-
*
|
|
174
|
+
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
175
|
+
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
176
|
+
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
177
|
+
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
176
178
|
* @param {string} fmt
|
|
177
|
-
* @param {
|
|
179
|
+
* @param {number} value
|
|
178
180
|
* @returns {string}
|
|
179
181
|
*/
|
|
180
|
-
module.exports.
|
|
181
|
-
let
|
|
182
|
-
let
|
|
182
|
+
module.exports.format_number = function(fmt, value) {
|
|
183
|
+
let deferred2_0;
|
|
184
|
+
let deferred2_1;
|
|
183
185
|
try {
|
|
184
186
|
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
185
187
|
const len0 = WASM_VECTOR_LEN;
|
|
186
|
-
const
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
deferred3_0 = ret[0];
|
|
190
|
-
deferred3_1 = ret[1];
|
|
188
|
+
const ret = wasm.format_number(ptr0, len0, value);
|
|
189
|
+
deferred2_0 = ret[0];
|
|
190
|
+
deferred2_1 = ret[1];
|
|
191
191
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
192
192
|
} finally {
|
|
193
|
-
wasm.__wbindgen_free(
|
|
193
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
|
|
@@ -207,26 +207,26 @@ module.exports.input_async_result = function(id, result) {
|
|
|
207
207
|
};
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
|
-
* Render a
|
|
211
|
-
*
|
|
212
|
-
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
213
|
-
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
210
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
211
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
214
212
|
* @param {string} fmt
|
|
215
|
-
* @param {
|
|
213
|
+
* @param {string} text
|
|
216
214
|
* @returns {string}
|
|
217
215
|
*/
|
|
218
|
-
module.exports.
|
|
219
|
-
let
|
|
220
|
-
let
|
|
216
|
+
module.exports.format_text = function(fmt, text) {
|
|
217
|
+
let deferred3_0;
|
|
218
|
+
let deferred3_1;
|
|
221
219
|
try {
|
|
222
220
|
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
223
221
|
const len0 = WASM_VECTOR_LEN;
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
|
|
222
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
223
|
+
const len1 = WASM_VECTOR_LEN;
|
|
224
|
+
const ret = wasm.format_text(ptr0, len0, ptr1, len1);
|
|
225
|
+
deferred3_0 = ret[0];
|
|
226
|
+
deferred3_1 = ret[1];
|
|
227
227
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
228
228
|
} finally {
|
|
229
|
-
wasm.__wbindgen_free(
|
|
229
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
232
|
|
|
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.13.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,20 +1,20 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Render a
|
|
5
|
-
*
|
|
4
|
+
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
5
|
+
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
6
|
+
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
7
|
+
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
6
8
|
*/
|
|
7
|
-
export function
|
|
9
|
+
export function format_number(fmt: string, value: number): string;
|
|
8
10
|
/**
|
|
9
11
|
* Input: AsyncFuncResult
|
|
10
12
|
* Output: ActionAffect
|
|
11
13
|
*/
|
|
12
14
|
export function input_async_result(id: number, result: any): any;
|
|
13
15
|
/**
|
|
14
|
-
* Render a
|
|
15
|
-
*
|
|
16
|
-
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
17
|
-
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
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
18
|
*/
|
|
19
|
-
export function
|
|
19
|
+
export function format_text(fmt: string, text: string): string;
|
|
20
20
|
export function handle(msg: any, book_id?: number | null): any;
|
|
@@ -171,26 +171,26 @@ function debugString(val) {
|
|
|
171
171
|
return className;
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
|
-
* Render a
|
|
175
|
-
*
|
|
174
|
+
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
175
|
+
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
176
|
+
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
177
|
+
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
176
178
|
* @param {string} fmt
|
|
177
|
-
* @param {
|
|
179
|
+
* @param {number} value
|
|
178
180
|
* @returns {string}
|
|
179
181
|
*/
|
|
180
|
-
module.exports.
|
|
181
|
-
let
|
|
182
|
-
let
|
|
182
|
+
module.exports.format_number = function(fmt, value) {
|
|
183
|
+
let deferred2_0;
|
|
184
|
+
let deferred2_1;
|
|
183
185
|
try {
|
|
184
186
|
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
185
187
|
const len0 = WASM_VECTOR_LEN;
|
|
186
|
-
const
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
deferred3_0 = ret[0];
|
|
190
|
-
deferred3_1 = ret[1];
|
|
188
|
+
const ret = wasm.format_number(ptr0, len0, value);
|
|
189
|
+
deferred2_0 = ret[0];
|
|
190
|
+
deferred2_1 = ret[1];
|
|
191
191
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
192
192
|
} finally {
|
|
193
|
-
wasm.__wbindgen_free(
|
|
193
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
|
|
@@ -207,26 +207,26 @@ module.exports.input_async_result = function(id, result) {
|
|
|
207
207
|
};
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
|
-
* Render a
|
|
211
|
-
*
|
|
212
|
-
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
213
|
-
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
210
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
211
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
214
212
|
* @param {string} fmt
|
|
215
|
-
* @param {
|
|
213
|
+
* @param {string} text
|
|
216
214
|
* @returns {string}
|
|
217
215
|
*/
|
|
218
|
-
module.exports.
|
|
219
|
-
let
|
|
220
|
-
let
|
|
216
|
+
module.exports.format_text = function(fmt, text) {
|
|
217
|
+
let deferred3_0;
|
|
218
|
+
let deferred3_1;
|
|
221
219
|
try {
|
|
222
220
|
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
223
221
|
const len0 = WASM_VECTOR_LEN;
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
|
|
222
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
223
|
+
const len1 = WASM_VECTOR_LEN;
|
|
224
|
+
const ret = wasm.format_text(ptr0, len0, ptr1, len1);
|
|
225
|
+
deferred3_0 = ret[0];
|
|
226
|
+
deferred3_1 = ret[1];
|
|
227
227
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
228
228
|
} finally {
|
|
229
|
-
wasm.__wbindgen_free(
|
|
229
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
232
|
|
|
Binary file
|