@xlcalc/vue 0.21.1 → 0.23.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/CHANGELOG.md +32 -1
- package/README.md +7 -2
- package/dist/components/CfDialogs.vue.d.ts +3 -0
- package/dist/components/CfManager.vue.d.ts +3 -0
- package/dist/components/CfPreview.vue.d.ts +9 -0
- package/dist/components/CfQuickDialog.vue.d.ts +3 -0
- package/dist/components/CfRuleDialog.vue.d.ts +3 -0
- package/dist/components/CfStyleDialog.vue.d.ts +15 -0
- package/dist/components/CfValuesFields.vue.d.ts +9 -0
- package/dist/components/DialogShell.vue.d.ts +1 -1
- package/dist/components/FunctionList.vue.d.ts +2 -1
- package/dist/components/GoToDialog.vue.d.ts +3 -0
- package/dist/components/LinkDialog.vue.d.ts +3 -0
- package/dist/components/NameBox.vue.d.ts +3 -0
- package/dist/components/NameDialogs.vue.d.ts +3 -0
- package/dist/components/NoteBox.vue.d.ts +3 -0
- package/dist/components/SheetToolbar.vue.d.ts +7 -4
- package/dist/components/SheetView.vue.d.ts +11 -4
- package/dist/components/SpellingDialog.vue.d.ts +3 -0
- package/dist/components/SymbolDialog.vue.d.ts +3 -0
- package/dist/components/TableDialog.vue.d.ts +3 -0
- package/dist/components/ToolbarBox.vue.d.ts +31 -0
- package/dist/components/TraceArrows.vue.d.ts +3 -0
- package/dist/components/ValidationDialog.vue.d.ts +3 -0
- package/dist/components/WatchWindow.vue.d.ts +3 -0
- package/dist/components/ZoomBar.vue.d.ts +3 -0
- package/dist/components/ZoomDialog.vue.d.ts +3 -0
- package/dist/components/icons.d.ts +1 -0
- package/dist/components/name-icons.d.ts +1 -0
- package/dist/components/toolbar-icons.d.ts +16 -0
- package/dist/contract/conditional.d.ts +16 -0
- package/dist/contract/memory.d.ts +5 -0
- package/dist/contract/messages.d.ts +260 -1
- package/dist/contract/source.d.ts +41 -0
- package/dist/contract/view.d.ts +117 -2
- package/dist/contract/workbook.d.ts +73 -0
- package/dist/contract.d.ts +4 -2
- package/dist/core/autocomplete.d.ts +9 -1
- package/dist/core/autosum.d.ts +11 -0
- package/dist/core/cell-style.d.ts +5 -0
- package/dist/core/cell-view.d.ts +2 -0
- package/dist/core/cf-commands.d.ts +70 -0
- package/dist/core/cf-describe.d.ts +4 -0
- package/dist/core/cf-draft.d.ts +114 -0
- package/dist/core/cf-formula.d.ts +30 -0
- package/dist/core/cf-presets.d.ts +33 -0
- package/dist/core/cf-ranges.d.ts +22 -0
- package/dist/core/commands.d.ts +4 -2
- package/dist/core/editing.d.ts +6 -1
- package/dist/core/extras.d.ts +22 -0
- package/dist/core/fill.d.ts +3 -0
- package/dist/core/formula-view.d.ts +10 -0
- package/dist/core/geometry.d.ts +6 -0
- package/dist/core/goto.d.ts +24 -0
- package/dist/core/links.d.ts +105 -0
- package/dist/core/menu.d.ts +8 -0
- package/dist/core/name-dialogs.d.ts +63 -0
- package/dist/core/names.d.ts +33 -0
- package/dist/core/navigation.d.ts +6 -0
- package/dist/core/notes.d.ts +44 -0
- package/dist/core/place.d.ts +10 -0
- package/dist/core/range-read.d.ts +11 -0
- package/dist/core/sheet.d.ts +337 -4
- package/dist/core/spell-check.d.ts +54 -0
- package/dist/core/state.d.ts +9 -0
- package/dist/core/tables.d.ts +63 -0
- package/dist/core/trace.d.ts +26 -0
- package/dist/core/validation-dialog.d.ts +33 -0
- package/dist/core/validation.d.ts +17 -3
- package/dist/core/viewport.d.ts +12 -0
- package/dist/core/watch.d.ts +35 -0
- package/dist/core/windows.d.ts +2 -0
- package/dist/core/zoom.d.ts +44 -0
- package/dist/format-cells.d.ts +0 -6
- package/dist/formula-shift.d.ts +3 -0
- package/dist/index.js +12033 -4565
- package/dist/local/types.d.ts +4 -1
- package/dist/local/workbook.d.ts +25 -0
- package/dist/local.js +556 -277
- package/dist/memory-workbook.d.ts +21 -0
- package/dist/messages-conditional.d.ts +3 -0
- package/dist/rect.d.ts +2 -0
- package/dist/{ru-RU-BVeg6JGM.js → ru-RU-CzebvM-s.js} +19 -2
- package/dist/spelling.d.ts +6 -0
- package/dist/style.css +1 -1
- package/dist/symbols.d.ts +23 -0
- package/dist/toolbar.d.ts +53 -1
- package/dist/{typed-entry-2l9Ay-hV.js → typed-entry-3r1pEbc9.js} +4546 -4453
- package/dist/validation-rules.d.ts +95 -0
- package/docs/api.md +91 -10
- package/docs/autocomplete.md +3 -3
- package/docs/checks.md +1 -1
- package/docs/clipboard.md +1 -1
- package/docs/conditional-formatting.md +135 -0
- package/docs/editing.md +50 -1
- package/docs/go-to-and-symbol.md +37 -0
- package/docs/links-notes.md +36 -0
- package/docs/local.md +1 -1
- package/docs/names.md +62 -0
- package/docs/tables.md +40 -0
- package/docs/toolbar.md +6 -2
- package/docs/validation.md +47 -0
- package/docs/view.md +104 -1
- package/package.json +2 -2
package/dist/local/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AsyncSessionOptions, BookInput, BookSnapshot, Calc, CalcPoolOptions, SessionHistory } from 'xlcalc';
|
|
2
2
|
import type { SheetSource } from '../contract/source.js';
|
|
3
|
+
import type { SpellChecker } from '../contract/workbook.js';
|
|
3
4
|
export interface LocalSourceOptions {
|
|
4
5
|
/**
|
|
5
6
|
* Where the workbook is calculated: `pool`, in Web Workers of `xlcalc/worker` (the default where `Worker` exists);
|
|
@@ -15,9 +16,11 @@ export interface LocalSourceOptions {
|
|
|
15
16
|
maxCells?: number;
|
|
16
17
|
/** A notice included in every window (displayed above the grid), e.g. what the xlsx reader left out. */
|
|
17
18
|
notice?: string;
|
|
19
|
+
/** The host's word checker for Excel's Spelling; without it the source has no `spelling`. */
|
|
20
|
+
spelling?: SpellChecker;
|
|
18
21
|
}
|
|
19
22
|
/** Methods of `SheetSource` that the local source always has. */
|
|
20
|
-
type Given = 'edit' | 'paste' | 'fill' | 'pick' | 'end' | 'undo' | 'redo' | 'structure' | 'layout' | 'format' | 'replace' | 'outline' | 'freeze' | 'subscribe' | 'validation' | 'functionNames' | 'functionSignature' | 'explain' | 'stats' | 'find' | 'visibleRows' | 'columnValues';
|
|
23
|
+
type Given = 'edit' | 'paste' | 'fill' | 'pick' | 'end' | 'undo' | 'redo' | 'structure' | 'layout' | 'format' | 'replace' | 'outline' | 'freeze' | 'subscribe' | 'validation' | 'functionNames' | 'functionSignature' | 'explain' | 'stats' | 'find' | 'visibleRows' | 'columnValues' | 'clear' | 'link' | 'note' | 'names' | 'setNames' | 'dependents' | 'rules' | 'setRules' | 'table' | 'autoSum';
|
|
21
24
|
/** A sheet source over an xlcalc workbook: every method of `SheetSource`, plus the host's handles on the workbook. */
|
|
22
25
|
export interface LocalSource extends Omit<SheetSource, Given | 'maxCells'>, Required<Pick<SheetSource, Given>> {
|
|
23
26
|
readonly maxCells: number;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type AsyncSession, type CellChange, type EditResult } from 'xlcalc';
|
|
2
|
+
import type { EditOutcome } from '../contract/source.js';
|
|
3
|
+
import type { ClearKind, SheetDependents, SheetLink, SheetName, SheetNote, SheetRules, SpellChecker, SpellingHit, SpellingRequest, TableOp } from '../contract/workbook.js';
|
|
4
|
+
/** How the source completes a change: the windows re-read in place over ranges, or the sheets and windows read again. */
|
|
5
|
+
export interface Completion {
|
|
6
|
+
repainted(got: EditResult, ranges: {
|
|
7
|
+
sheet: string;
|
|
8
|
+
range: string;
|
|
9
|
+
}[]): EditOutcome;
|
|
10
|
+
reloaded(changes: CellChange[]): EditOutcome;
|
|
11
|
+
}
|
|
12
|
+
/** The workbook methods of the local source over its session, completed by `done`, with formulas in `locale`. */
|
|
13
|
+
export declare function workbookMethods(locale: string, done: Completion, checker?: SpellChecker): {
|
|
14
|
+
clear: (s: AsyncSession, sheet: string, ranges: string[], what: ClearKind) => Promise<EditOutcome>;
|
|
15
|
+
link: (s: AsyncSession, sheet: string, range: string, link: SheetLink | null) => Promise<EditOutcome>;
|
|
16
|
+
note: (s: AsyncSession, sheet: string, cell: string, note: SheetNote | null) => Promise<EditOutcome>;
|
|
17
|
+
names: (s: AsyncSession) => Promise<SheetName[]>;
|
|
18
|
+
setNames: (s: AsyncSession, list: SheetName[]) => Promise<EditOutcome>;
|
|
19
|
+
dependents: (s: AsyncSession, sheet: string, range: string, signal?: AbortSignal) => Promise<SheetDependents>;
|
|
20
|
+
rules: (s: AsyncSession, sheet: string) => Promise<SheetRules>;
|
|
21
|
+
setRules: (s: AsyncSession, sheet: string, next: Partial<SheetRules>) => Promise<EditOutcome>;
|
|
22
|
+
table: (s: AsyncSession, op: TableOp) => Promise<EditOutcome>;
|
|
23
|
+
spelling: (s: AsyncSession, req: SpellingRequest, signal?: AbortSignal) => Promise<SpellingHit | null>;
|
|
24
|
+
learnWord: (word: string) => Promise<void>;
|
|
25
|
+
};
|