xlsx-svelte-viewer 0.3.4 → 0.4.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/runtime.d.ts +15 -6
- package/dist/runtime.js +3415 -3606
- package/package.json +4 -4
package/dist/runtime.d.ts
CHANGED
|
@@ -176,12 +176,6 @@ type XlsxEditorEventDetail<K extends XlsxEditorEventName> = XlsxEditorEventMap[K
|
|
|
176
176
|
/** Runtime list of every event name; the `satisfies` check keeps it a subset of the map. */
|
|
177
177
|
declare const XLSX_EDITOR_EVENTS: readonly ["workbook-change", "workbook-error", "workbook-warning", "readonly-change", "ribbon-action", "ribbon-customize", "file-command", "selection-change", "sheet-change", "dirty-change"];
|
|
178
178
|
|
|
179
|
-
/**
|
|
180
|
-
* Excel-style title bar: the X badge and quick access toolbar (Save, Undo, Redo), the file name
|
|
181
|
-
* and save state, "Tell me", the comments toggle and the Editing / Viewing select. Layout mirrors
|
|
182
|
-
* docx-viewer's title-bar.ts.
|
|
183
|
-
*/
|
|
184
|
-
|
|
185
179
|
type SaveState = 'saved' | 'dirty' | 'saving' | 'saved-local';
|
|
186
180
|
|
|
187
181
|
/** Shared building blocks and the host interface of the File backstage pages. */
|
|
@@ -315,6 +309,21 @@ declare class EditorCore {
|
|
|
315
309
|
private followShownSheet;
|
|
316
310
|
/** Text width for the core's automatic row heights, from the grid's canvas measurer. */
|
|
317
311
|
private measureText;
|
|
312
|
+
/** Iterative calculation as the workbook stores it (`calcPr iterate`); undefined when off. */
|
|
313
|
+
get iteration(): {
|
|
314
|
+
count: number;
|
|
315
|
+
delta: number;
|
|
316
|
+
} | undefined;
|
|
317
|
+
/**
|
|
318
|
+
* Turns iterative calculation on (with its maximum iterations and maximum change) or off
|
|
319
|
+
* (`undefined`) and recalculates, so circular references settle or are reported again. The core
|
|
320
|
+
* session has no undoable setter for this yet, so it is not an undo step; it marks the workbook
|
|
321
|
+
* as changed so it is saved.
|
|
322
|
+
*/
|
|
323
|
+
setIterativeCalculation(next: {
|
|
324
|
+
count: number;
|
|
325
|
+
delta: number;
|
|
326
|
+
} | undefined): void;
|
|
318
327
|
/** Switches automatic or manual calculation on the live session (one undo step, saved). */
|
|
319
328
|
setCalculation(mode: CalculationMode): void;
|
|
320
329
|
setLocale(value: string): void;
|