logisheets 1.4.0 → 1.5.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 +6 -0
- package/dist/src/api/workbook.js +8 -0
- package/dist/src/api/worksheet.d.ts +1 -0
- package/dist/src/api/worksheet.js +6 -0
- package/dist/src/bindings/rpc_workbook_methods.d.ts +1 -0
- 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_bg.wasm +0 -0
- package/wasm/package.json +1 -1
|
@@ -80,6 +80,12 @@ export declare class Workbook {
|
|
|
80
80
|
registerHeaderUpdatedCallback(callback: (sheetIdxes: readonly number[]) => void): void;
|
|
81
81
|
getSheetNameByIdx(idx: number): Result<string>;
|
|
82
82
|
getAllSheetInfo(): Array<SheetInfo>;
|
|
83
|
+
/**
|
|
84
|
+
* Every distinct formula function name used across the workbook (cell
|
|
85
|
+
* formulas + defined names), read from the parsed ASTs. Uppercased as
|
|
86
|
+
* stored at parse time, sorted + deduped.
|
|
87
|
+
*/
|
|
88
|
+
getFormulaFunctionNames(): Result<string[]>;
|
|
83
89
|
checkFormula(f: string): boolean;
|
|
84
90
|
calcCondition(sheetIdx: number, f: string): Result<boolean>;
|
|
85
91
|
/**
|
package/dist/src/api/workbook.js
CHANGED
|
@@ -204,6 +204,14 @@ class Workbook {
|
|
|
204
204
|
getAllSheetInfo() {
|
|
205
205
|
return rpc('getAllSheetInfo', undefined, this._id);
|
|
206
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* Every distinct formula function name used across the workbook (cell
|
|
209
|
+
* formulas + defined names), read from the parsed ASTs. Uppercased as
|
|
210
|
+
* stored at parse time, sorted + deduped.
|
|
211
|
+
*/
|
|
212
|
+
getFormulaFunctionNames() {
|
|
213
|
+
return rpc('getFormulaFunctionNames', undefined, this._id);
|
|
214
|
+
}
|
|
207
215
|
checkFormula(f) {
|
|
208
216
|
return rpc('checkFormula', { formula: f }, this._id);
|
|
209
217
|
}
|
|
@@ -22,6 +22,7 @@ export declare class Worksheet {
|
|
|
22
22
|
getRowInfo(rowIdx: number): Result<RowInfo>;
|
|
23
23
|
getColInfo(colIdx: number): Result<ColInfo>;
|
|
24
24
|
getCellInfo(rowIdx: number, colIdx: number): Result<CellInfo>;
|
|
25
|
+
getCellListValidation(rowIdx: number, colIdx: number): Result<readonly string[] | undefined>;
|
|
25
26
|
getReproducibleCell(rowIdx: number, colIdx: number): Result<ReproducibleCell>;
|
|
26
27
|
getReproducibleCells(coordinates: readonly SheetCoordinate[]): Result<readonly ReproducibleCell[]>;
|
|
27
28
|
getCellInfos(startRow: number, startCol: number, endRow: number, endCol: number): Result<readonly CellInfo[]>;
|
|
@@ -116,6 +116,12 @@ class Worksheet {
|
|
|
116
116
|
getCellInfo(rowIdx, colIdx) {
|
|
117
117
|
return rpc('getCell', { sheetIdx: this._sheetIdx, row: rowIdx, col: colIdx }, this._id);
|
|
118
118
|
}
|
|
119
|
+
// The enum option set of a cell's list data-validation (inline lists),
|
|
120
|
+
// or undefined when the cell has no such dropdown. Used by douyoushu to
|
|
121
|
+
// prefill enum inputs from a workbook's existing dropdowns.
|
|
122
|
+
getCellListValidation(rowIdx, colIdx) {
|
|
123
|
+
return rpc('getCellListValidation', { sheetIdx: this._sheetIdx, row: rowIdx, col: colIdx }, this._id);
|
|
124
|
+
}
|
|
119
125
|
getReproducibleCell(rowIdx, colIdx) {
|
|
120
126
|
return rpc('getReproducibleCell', { sheetIdx: this._sheetIdx, row: rowIdx, col: colIdx }, this._id);
|
|
121
127
|
}
|
|
@@ -77,6 +77,7 @@ import { Value } from './value';
|
|
|
77
77
|
export interface WorkbookMethods {
|
|
78
78
|
getSheetDimension(params: GetSheetDimensionParams, bookId?: number): Promise<SheetDimension | ErrorMessage>;
|
|
79
79
|
getAllSheetInfo(bookId?: number): Promise<readonly SheetInfo[] | ErrorMessage>;
|
|
80
|
+
getFormulaFunctionNames(bookId?: number): Promise<readonly string[] | ErrorMessage>;
|
|
80
81
|
getSheetIdx(params: GetSheetIdxParams, bookId?: number): Promise<number | ErrorMessage>;
|
|
81
82
|
getSheetId(params: GetSheetIdParams, bookId?: number): Promise<number | ErrorMessage>;
|
|
82
83
|
getSheetNameByIdx(params: GetSheetNameByIdxParams, bookId?: number): Promise<string | ErrorMessage>;
|
|
Binary file
|
package/dist/wasm/package.json
CHANGED
package/package.json
CHANGED
|
Binary file
|