@xlcalc/vue 0.0.0-stage → 0.21.2
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 +42 -0
- package/LICENSE +21 -0
- package/README.md +75 -2
- package/dist/abort.d.ts +6 -0
- package/dist/components/CellDraft.vue.d.ts +7 -0
- package/dist/components/CellEditor.vue.d.ts +3 -0
- package/dist/components/ColourSwatches.vue.d.ts +13 -0
- package/dist/components/DialogShell.vue.d.ts +37 -0
- package/dist/components/ExplainPanel.vue.d.ts +3 -0
- package/dist/components/FilterPopover.vue.d.ts +3 -0
- package/dist/components/FindBar.vue.d.ts +3 -0
- package/dist/components/FormatBorders.vue.d.ts +14 -0
- package/dist/components/FormatColour.vue.d.ts +19 -0
- package/dist/components/FormatDialog.vue.d.ts +24 -0
- package/dist/components/FormulaBar.vue.d.ts +3 -0
- package/dist/components/FunctionList.vue.d.ts +28 -0
- package/dist/components/FunctionTip.vue.d.ts +14 -0
- package/dist/components/InsertFunction.vue.d.ts +9 -0
- package/dist/components/OutlineCell.vue.d.ts +8 -0
- package/dist/components/OutlineLevels.vue.d.ts +7 -0
- package/dist/components/SheetGrid.vue.d.ts +3 -0
- package/dist/components/SheetMarks.vue.d.ts +3 -0
- package/dist/components/SheetMenu.vue.d.ts +3 -0
- package/dist/components/SheetRow.vue.d.ts +18 -0
- package/dist/components/SheetTabs.vue.d.ts +3 -0
- package/dist/components/SheetToolbar.vue.d.ts +43 -0
- package/dist/components/SheetView.vue.d.ts +56 -0
- package/dist/components/ValidationAlert.vue.d.ts +16 -0
- package/dist/components/ValidationDropdown.vue.d.ts +33 -0
- package/dist/components/ValidationPrompt.vue.d.ts +16 -0
- package/dist/components/cf-icons.d.ts +6 -0
- package/dist/components/context.d.ts +4 -0
- package/dist/components/dom.d.ts +7 -0
- package/dist/components/icons.d.ts +33 -0
- package/dist/components/popup.d.ts +29 -0
- package/dist/components/toolbar-icons.d.ts +24 -0
- package/dist/contract/memory.d.ts +108 -0
- package/dist/contract/messages.d.ts +260 -0
- package/dist/contract/source.d.ts +433 -0
- package/dist/contract/view.d.ts +108 -0
- package/dist/contract.d.ts +9 -0
- package/dist/core/ask.d.ts +2 -0
- package/dist/core/autocomplete.d.ts +28 -0
- package/dist/core/cell-style.d.ts +33 -0
- package/dist/core/cell-view.d.ts +104 -0
- package/dist/core/clip.d.ts +43 -0
- package/dist/core/commands.d.ts +47 -0
- package/dist/core/conditional.d.ts +16 -0
- package/dist/core/editing.d.ts +85 -0
- package/dist/core/explain.d.ts +36 -0
- package/dist/core/fill.d.ts +42 -0
- package/dist/core/filter.d.ts +72 -0
- package/dist/core/find.d.ts +53 -0
- package/dist/core/formula.d.ts +41 -0
- package/dist/core/function-tip.d.ts +34 -0
- package/dist/core/geometry.d.ts +55 -0
- package/dist/core/keys.d.ts +8 -0
- package/dist/core/list-keys.d.ts +4 -0
- package/dist/core/list.d.ts +17 -0
- package/dist/core/menu.d.ts +155 -0
- package/dist/core/merge.d.ts +19 -0
- package/dist/core/navigation.d.ts +72 -0
- package/dist/core/outline.d.ts +34 -0
- package/dist/core/point.d.ts +34 -0
- package/dist/core/ref-paint.d.ts +21 -0
- package/dist/core/selection.d.ts +45 -0
- package/dist/core/sheet.d.ts +774 -0
- package/dist/core/state.d.ts +107 -0
- package/dist/core/storage.d.ts +6 -0
- package/dist/core/totals.d.ts +16 -0
- package/dist/core/validation.d.ts +95 -0
- package/dist/core/viewport.d.ts +83 -0
- package/dist/core/windows.d.ts +102 -0
- package/dist/entry.d.ts +3 -0
- package/dist/failure.d.ts +5 -0
- package/dist/filter-key.d.ts +3 -0
- package/dist/find-match.d.ts +24 -0
- package/dist/format-cells.d.ts +85 -0
- package/dist/frame.d.ts +5 -0
- package/dist/grid-ref.d.ts +3 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +12767 -0
- package/dist/lines.d.ts +16 -0
- package/dist/local/find.d.ts +15 -0
- package/dist/local/index.d.ts +3 -0
- package/dist/local/locale.d.ts +5 -0
- package/dist/local/outcome.d.ts +21 -0
- package/dist/local/query.d.ts +23 -0
- package/dist/local/source.d.ts +4 -0
- package/dist/local/types.d.ts +37 -0
- package/dist/local/validation.d.ts +8 -0
- package/dist/local/window.d.ts +16 -0
- package/dist/local/xlsx.d.ts +23 -0
- package/dist/local.js +1025 -0
- package/dist/locale-ref.d.ts +7 -0
- package/dist/locales.d.ts +3 -0
- package/dist/memory-outline.d.ts +31 -0
- package/dist/memory-query.d.ts +26 -0
- package/dist/memory-source.d.ts +3 -0
- package/dist/memory-validation.d.ts +17 -0
- package/dist/messages.d.ts +6 -0
- package/dist/number-formats.d.ts +13 -0
- package/dist/rect.d.ts +9 -0
- package/dist/ru-RU-BVeg6JGM.js +931 -0
- package/dist/sheet-query.d.ts +22 -0
- package/dist/stats.d.ts +8 -0
- package/dist/style.css +2 -0
- package/dist/toolbar.d.ts +39 -0
- package/dist/typed-entry-2l9Ay-hV.js +4559 -0
- package/dist/window-size.d.ts +4 -0
- package/docs/api.md +520 -0
- package/docs/autocomplete.md +60 -0
- package/docs/checks.md +40 -0
- package/docs/clipboard.md +48 -0
- package/docs/editing.md +97 -0
- package/docs/example-app.md +26 -0
- package/docs/find-replace.md +26 -0
- package/docs/list-mode.md +86 -0
- package/docs/local.md +94 -0
- package/docs/quick-start.md +221 -0
- package/docs/sheets.md +61 -0
- package/docs/toolbar.md +72 -0
- package/docs/validation.md +41 -0
- package/docs/view.md +50 -0
- package/package.json +92 -4
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type FunctionalComponent } from 'vue';
|
|
2
|
+
/** The attributes every icon's svg has; the toolbar's color icons build on them too. */
|
|
3
|
+
export declare const ICON_ATTRS: {
|
|
4
|
+
class: string;
|
|
5
|
+
viewBox: string;
|
|
6
|
+
fill: string;
|
|
7
|
+
stroke: string;
|
|
8
|
+
'stroke-width': number;
|
|
9
|
+
'stroke-linecap': string;
|
|
10
|
+
'stroke-linejoin': string;
|
|
11
|
+
'aria-hidden': string;
|
|
12
|
+
};
|
|
13
|
+
/** An icon of strokes along `paths`; `extra` overrides an attribute (a heavier stroke, dashes). */
|
|
14
|
+
export declare const icon: (paths: string[], extra?: Record<string, unknown>) => FunctionalComponent;
|
|
15
|
+
export declare const IconBack: FunctionalComponent<{}, {}, any, {}>;
|
|
16
|
+
export declare const IconLink: FunctionalComponent<{}, {}, any, {}>;
|
|
17
|
+
export declare const IconLock: FunctionalComponent<{}, {}, any, {}>;
|
|
18
|
+
export declare const IconLockOpen: FunctionalComponent<{}, {}, any, {}>;
|
|
19
|
+
export declare const IconClose: FunctionalComponent<{}, {}, any, {}>;
|
|
20
|
+
export declare const IconCheck: FunctionalComponent<{}, {}, any, {}>;
|
|
21
|
+
/** Excel's fx: an italic f and an x. */
|
|
22
|
+
export declare const IconFx: FunctionalComponent<{}, {}, any, {}>;
|
|
23
|
+
export declare const IconRetry: FunctionalComponent<{}, {}, any, {}>;
|
|
24
|
+
export declare const IconSpinner: FunctionalComponent<{}, {}, any, {}>;
|
|
25
|
+
export declare const IconSearch: FunctionalComponent<{}, {}, any, {}>;
|
|
26
|
+
export declare const IconFilter: FunctionalComponent<{}, {}, any, {}>;
|
|
27
|
+
export declare const IconFilterOff: FunctionalComponent<{}, {}, any, {}>;
|
|
28
|
+
export declare const IconUp: FunctionalComponent<{}, {}, any, {}>;
|
|
29
|
+
export declare const IconDown: FunctionalComponent<{}, {}, any, {}>;
|
|
30
|
+
export declare const IconSortAsc: FunctionalComponent<{}, {}, any, {}>;
|
|
31
|
+
export declare const IconSortDesc: FunctionalComponent<{}, {}, any, {}>;
|
|
32
|
+
export declare const IconPlus: FunctionalComponent<{}, {}, any, {}>;
|
|
33
|
+
export declare const IconOptions: FunctionalComponent<{}, {}, any, {}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Ref, type WatchSource } from 'vue';
|
|
2
|
+
/** A box, in the coordinates of the element the popups are placed in. */
|
|
3
|
+
export interface PopupRect {
|
|
4
|
+
top: number;
|
|
5
|
+
left: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
}
|
|
9
|
+
/** An item of Excel's lists (AutoComplete, a validation list) is 18 px; 44 on a touch screen, as --xs-touch-target in the CSS. */
|
|
10
|
+
export declare const ITEM_PX = 18;
|
|
11
|
+
export declare const TOUCH_PX = 44;
|
|
12
|
+
/** A list's height: up to `rows` items plus its 1 px border above and below. */
|
|
13
|
+
export declare const listHeight: (count: number, rows: number, touch: boolean) => number;
|
|
14
|
+
/**
|
|
15
|
+
* The top of a box `height` tall below `field` (`gap` px from it), or above it when the viewport has no room below and room
|
|
16
|
+
* above; below it without a viewport or with room in neither direction.
|
|
17
|
+
*/
|
|
18
|
+
export declare function placeBelowOrAbove(field: PopupRect, height: number, view: PopupRect | undefined, gap?: number): number;
|
|
19
|
+
/** A box `width` wide from `left`, moved left to end at the viewport's right edge, but not beyond its left edge. */
|
|
20
|
+
export declare const clampLeft: (left: number, width: number, view: PopupRect | undefined) => number;
|
|
21
|
+
/** Scrolls the list (the offset parent of its items) by its own scroll only, so the page and its containers stay put, until item `i` is in view. */
|
|
22
|
+
export declare function scrollToItem(list: HTMLElement | null | undefined, i: number): void;
|
|
23
|
+
/** Keeps a list's highlighted item in view as the keys move it: after each change of `on`, once the list is drawn. */
|
|
24
|
+
export declare function keepActiveInView(list: Ref<HTMLElement | null>, on: WatchSource<unknown>, active: () => number): void;
|
|
25
|
+
/**
|
|
26
|
+
* Calls `onOutside` on a press outside `inside` (an element, or a selector the pressed element's ancestors match) while
|
|
27
|
+
* `active` returns true; the press is captured before the page's own handlers see it.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useOutsidePress(inside: Ref<HTMLElement | null> | string, onOutside: () => void, active: () => boolean): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type FunctionalComponent } from 'vue';
|
|
2
|
+
export declare const IconUndo: FunctionalComponent<{}, {}, any, {}>;
|
|
3
|
+
export declare const IconRedo: FunctionalComponent<{}, {}, any, {}>;
|
|
4
|
+
export declare const IconBold: FunctionalComponent<{}, {}, any, {}>;
|
|
5
|
+
export declare const IconItalic: FunctionalComponent<{}, {}, any, {}>;
|
|
6
|
+
export declare const IconUnderline: FunctionalComponent<{}, {}, any, {}>;
|
|
7
|
+
export declare const IconFontColour: FunctionalComponent<{
|
|
8
|
+
colour?: string | null;
|
|
9
|
+
}, {}, any, {}>;
|
|
10
|
+
export declare const IconFillColour: FunctionalComponent<{
|
|
11
|
+
colour?: string | null;
|
|
12
|
+
}, {}, any, {}>;
|
|
13
|
+
export declare const IconBorderAll: FunctionalComponent<{}, {}, any, {}>;
|
|
14
|
+
export declare const IconBorderOutside: FunctionalComponent<{}, {}, any, {}>;
|
|
15
|
+
export declare const IconBorderBottom: FunctionalComponent<{}, {}, any, {}>;
|
|
16
|
+
export declare const IconBorderNone: FunctionalComponent<{}, {}, any, {}>;
|
|
17
|
+
export declare const IconAlignLeft: FunctionalComponent<{}, {}, any, {}>;
|
|
18
|
+
export declare const IconAlignCenter: FunctionalComponent<{}, {}, any, {}>;
|
|
19
|
+
export declare const IconAlignRight: FunctionalComponent<{}, {}, any, {}>;
|
|
20
|
+
export declare const IconWrap: FunctionalComponent<{}, {}, any, {}>;
|
|
21
|
+
export declare const IconMore: FunctionalComponent<{}, {}, any, {}>;
|
|
22
|
+
export declare const IconFormatCells: FunctionalComponent<{}, {}, any, {}>;
|
|
23
|
+
/** Merge & Center: a cell's box over the cells it covers, with a two-way arrow. */
|
|
24
|
+
export declare const IconMerge: FunctionalComponent<{}, {}, any, {}>;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { CellStyle, CellValue, ConditionalAppearance } from 'xlcalc/contract';
|
|
2
|
+
import type { CellUpdate, EditOutcome, SheetInfo, SheetSource, SheetValidationAlert, SourceEvent } from './source.js';
|
|
3
|
+
/** A cell of the in-memory workbook; a bare value is a cell with that value. */
|
|
4
|
+
export interface MemoryCell {
|
|
5
|
+
value?: CellValue;
|
|
6
|
+
/** Displayed text; by default the value as plain text. */
|
|
7
|
+
text?: string;
|
|
8
|
+
/** The formula as displayed, without `=`; with no engine its value is whatever `value` specifies. */
|
|
9
|
+
formula?: string;
|
|
10
|
+
/** A style from the workbook's `styles`, by index. */
|
|
11
|
+
style?: number;
|
|
12
|
+
/** The color from the number format's section. */
|
|
13
|
+
color?: string;
|
|
14
|
+
/** The number format code the cell is displayed with, as xlsx stores it (`0.0%`, `dd.mm.yyyy`); General without it. The text the cell opens with for editing follows it. */
|
|
15
|
+
numberFormat?: string;
|
|
16
|
+
link?: {
|
|
17
|
+
href?: string;
|
|
18
|
+
location?: string;
|
|
19
|
+
tooltip?: string;
|
|
20
|
+
target?: string;
|
|
21
|
+
};
|
|
22
|
+
note?: {
|
|
23
|
+
author?: string;
|
|
24
|
+
text: string;
|
|
25
|
+
};
|
|
26
|
+
/** List mode: the cell is a drill-down (`SheetWindow.drill`). */
|
|
27
|
+
drill?: true;
|
|
28
|
+
/** The cell's conditional formatting, as xlcalc calculates it (`ConditionalAppearance`); the in-memory workbook keeps it as given. */
|
|
29
|
+
appearance?: ConditionalAppearance;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Excel's outline of an in-memory sheet: outline levels (1 to 7) of rows and columns by row, column or span, keyed as in
|
|
33
|
+
* `widths` and `heights` (`'3:9': 1`, `'C:E': 2`), the summary rows and columns marked collapsed (`'10'`, `'F'`; a group
|
|
34
|
+
* inside a collapsed one stays collapsed when the outer one is expanded), and where the summaries are (below and to the
|
|
35
|
+
* right by default). A group's rows or columns are hidden by a size of 0.
|
|
36
|
+
*/
|
|
37
|
+
export interface MemoryOutline {
|
|
38
|
+
rows?: Record<string, number>;
|
|
39
|
+
columns?: Record<string, number>;
|
|
40
|
+
collapsed?: string[];
|
|
41
|
+
summaryBelow?: boolean;
|
|
42
|
+
summaryRight?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface MemorySheet extends Omit<SheetInfo, 'maxRow' | 'maxCol' | 'outline'> {
|
|
45
|
+
/** Cells by A1 address. */
|
|
46
|
+
cells: Record<string, MemoryCell | CellValue>;
|
|
47
|
+
/** Column widths by letters (`B`) or a span (`B:D`), in xlsx units; 0 hides. */
|
|
48
|
+
widths?: Record<string, number>;
|
|
49
|
+
/** Row heights by row (`5`) or a span (`5:9`), in points; 0 hides. */
|
|
50
|
+
heights?: Record<string, number>;
|
|
51
|
+
defaultRowHeight?: number;
|
|
52
|
+
merges?: string[];
|
|
53
|
+
tables?: {
|
|
54
|
+
name: string;
|
|
55
|
+
range: string;
|
|
56
|
+
headerRow: number;
|
|
57
|
+
}[];
|
|
58
|
+
notice?: string;
|
|
59
|
+
outline?: MemoryOutline;
|
|
60
|
+
/** Data validation rules: a cell's dropdown and input message, and the alert for a typed value that violates a rule. */
|
|
61
|
+
validations?: MemoryValidation[];
|
|
62
|
+
}
|
|
63
|
+
export interface MemoryBook {
|
|
64
|
+
sheets: MemorySheet[];
|
|
65
|
+
styles?: CellStyle[];
|
|
66
|
+
/** The functions for Formula AutoComplete, by their names as typed in the workbook's formulas, in the order its list displays them; without them the source has no `functionNames`. */
|
|
67
|
+
functions?: string[];
|
|
68
|
+
}
|
|
69
|
+
export interface MemorySourceOptions {
|
|
70
|
+
/** Milliseconds every response takes, to see the component waiting; 0 by default. */
|
|
71
|
+
delay?: number;
|
|
72
|
+
maxCells?: number;
|
|
73
|
+
}
|
|
74
|
+
export interface MemorySource extends SheetSource {
|
|
75
|
+
/** Responds to the next edits with these failed outcomes instead of applying them (for tests and the example). */
|
|
76
|
+
failNext(...outcomes: Extract<EditOutcome, {
|
|
77
|
+
ok: false;
|
|
78
|
+
}>[]): void;
|
|
79
|
+
/** Sends an event to the subscribers, as another tab would. */
|
|
80
|
+
emit(event: SourceEvent): void;
|
|
81
|
+
/** Changes cells as another tab would: the changes are applied and sent to the subscribers as `changed`. */
|
|
82
|
+
setCells(sheet: string, entries: Record<string, string | null>): CellUpdate[];
|
|
83
|
+
/** Simulates a workbook recalculating for `ms`: windows return `pending` until then. */
|
|
84
|
+
recompute(ms: number): void;
|
|
85
|
+
}
|
|
86
|
+
/** A data validation rule of an in-memory sheet, as Excel's dialog creates one: a list or whole numbers within bounds, an input message, the alert. */
|
|
87
|
+
export interface MemoryValidation {
|
|
88
|
+
/** The cells: A1 ranges separated by spaces (`B2:B20 D2`, `C:C`). */
|
|
89
|
+
range: string;
|
|
90
|
+
/** A list: the value must be one of the items, case-sensitively, ignoring leading and trailing spaces; the cell shows them in a dropdown. */
|
|
91
|
+
list?: string[];
|
|
92
|
+
/** Whole numbers from `min` to `max`; omit either bound for none. */
|
|
93
|
+
whole?: {
|
|
94
|
+
min?: number;
|
|
95
|
+
max?: number;
|
|
96
|
+
};
|
|
97
|
+
/** The input message displayed while a cell is selected. */
|
|
98
|
+
prompt?: {
|
|
99
|
+
title?: string;
|
|
100
|
+
text: string;
|
|
101
|
+
};
|
|
102
|
+
/** The alert for a value that violates the rule: its style (stop by default), title and message (Excel's own text without one). */
|
|
103
|
+
alert?: {
|
|
104
|
+
severity?: SheetValidationAlert['severity'];
|
|
105
|
+
title?: string;
|
|
106
|
+
message?: string;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
export interface SheetMessages {
|
|
2
|
+
back: string;
|
|
3
|
+
backEmpty: string;
|
|
4
|
+
address: string;
|
|
5
|
+
addressBad: string;
|
|
6
|
+
goSheet: (name: string) => string;
|
|
7
|
+
showRange: string;
|
|
8
|
+
cellLink: string;
|
|
9
|
+
cellLinkCopied: (ref: string) => string;
|
|
10
|
+
clipboardDenied: string;
|
|
11
|
+
/** The lock button's tooltip: what the workbook freezes, and whether the frozen panes are displayed now. */
|
|
12
|
+
freeze: (rows: number, cols: number, on: boolean) => string;
|
|
13
|
+
note: (author?: string) => string;
|
|
14
|
+
linkInBook: (location: string) => string;
|
|
15
|
+
linkOpen: string;
|
|
16
|
+
linkDead: (href: string) => string;
|
|
17
|
+
loading: string;
|
|
18
|
+
empty: string;
|
|
19
|
+
retry: string;
|
|
20
|
+
loadFailed: string;
|
|
21
|
+
copyFailed: string;
|
|
22
|
+
copyPartial: string;
|
|
23
|
+
/** Selection totals over loaded cells: the count, then the sum, average, min, max and count of numbers when there are numbers. */
|
|
24
|
+
statsCount: (n: string) => string;
|
|
25
|
+
statsSum: (n: string) => string;
|
|
26
|
+
statsAverage: (n: string) => string;
|
|
27
|
+
statsMin: (n: string) => string;
|
|
28
|
+
statsMax: (n: string) => string;
|
|
29
|
+
statsNumbers: (n: string) => string;
|
|
30
|
+
/** A selection larger than the loaded windows: only its size. */
|
|
31
|
+
statsCells: (n: string) => string;
|
|
32
|
+
sheetTitle: (name: string, rows: number, cols: number) => string;
|
|
33
|
+
sheetUnnamed: (n: number) => string;
|
|
34
|
+
/** The "+" button after the tabs, and the word a new sheet's name starts with (Excel's `Sheet4`, `Лист4`). */
|
|
35
|
+
insertSheet: string;
|
|
36
|
+
sheetNamePrefix: string;
|
|
37
|
+
/** The structure menu on row numbers, column letters and sheet tabs, with Excel's item names. */
|
|
38
|
+
menu: string;
|
|
39
|
+
menuInsert: string;
|
|
40
|
+
menuDelete: string;
|
|
41
|
+
menuColumnWidth: string;
|
|
42
|
+
menuRowHeight: string;
|
|
43
|
+
menuHide: string;
|
|
44
|
+
menuUnhide: string;
|
|
45
|
+
menuRename: string;
|
|
46
|
+
menuMoveLeft: string;
|
|
47
|
+
menuMoveRight: string;
|
|
48
|
+
menuUnhideSheet: string;
|
|
49
|
+
/** Excel's outline: Group and Ungroup in the menu and the dialog for a cell range (rows or columns), the buttons' tooltips, and the messages for commands that are not performed. */
|
|
50
|
+
menuGroup: string;
|
|
51
|
+
menuUngroup: string;
|
|
52
|
+
outlineRows: string;
|
|
53
|
+
outlineColumns: string;
|
|
54
|
+
outlineExpand: string;
|
|
55
|
+
outlineCollapse: string;
|
|
56
|
+
outlineLevel: (n: number) => string;
|
|
57
|
+
outlineDeepest: string;
|
|
58
|
+
outlineNone: string;
|
|
59
|
+
/** Excel's cell context menu (cut, copy and paste within the workbook), a paste whose clipboard the browser does not allow to read, and the fill handle. */
|
|
60
|
+
cellMenu: string;
|
|
61
|
+
menuCut: string;
|
|
62
|
+
menuCopy: string;
|
|
63
|
+
menuPaste: string;
|
|
64
|
+
pasteDenied: string;
|
|
65
|
+
fillHandle: string;
|
|
66
|
+
/** Excel's commands in the cell context menu: Reapply for the display filter, Freeze Panes and its variants, Trace Precedents as a panel next to the grid. */
|
|
67
|
+
menuReapply: string;
|
|
68
|
+
filterReapply: string;
|
|
69
|
+
menuFreezePanes: string;
|
|
70
|
+
menuUnfreezePanes: string;
|
|
71
|
+
menuFreezeTopRow: string;
|
|
72
|
+
menuFreezeFirstColumn: string;
|
|
73
|
+
menuPrecedents: string;
|
|
74
|
+
explainTitle: string;
|
|
75
|
+
explainReading: string;
|
|
76
|
+
explainFailed: string;
|
|
77
|
+
explainEmpty: string;
|
|
78
|
+
/** The size dialogs: their labels in Excel's units, and the limits. */
|
|
79
|
+
columnWidth: string;
|
|
80
|
+
rowHeight: string;
|
|
81
|
+
widthRange: string;
|
|
82
|
+
heightRange: string;
|
|
83
|
+
ok: string;
|
|
84
|
+
cancel: string;
|
|
85
|
+
/** The confirmation before a sheet with data is deleted, and the list of hidden sheets. */
|
|
86
|
+
deleteSheet: string;
|
|
87
|
+
deleteSheetText: (name: string) => string;
|
|
88
|
+
unhideSheet: string;
|
|
89
|
+
rename: string;
|
|
90
|
+
selectColumn: string;
|
|
91
|
+
selectRow: string;
|
|
92
|
+
/** List mode: a sortable column's title, and the cells of the first column that open their row. */
|
|
93
|
+
sortColumn: string;
|
|
94
|
+
openRow: string;
|
|
95
|
+
selectAll: string;
|
|
96
|
+
resize: string;
|
|
97
|
+
/** A column edge where a double click fits the column to its contents. */
|
|
98
|
+
resizeFit: string;
|
|
99
|
+
/** The resize grip on a row number's edge. */
|
|
100
|
+
resizeRow: string;
|
|
101
|
+
conflict: string;
|
|
102
|
+
locked: (reason: string) => string;
|
|
103
|
+
editFailed: string;
|
|
104
|
+
/** A paste whose range would extend past the sheet's last row or column. */
|
|
105
|
+
pasteOffSheet: string;
|
|
106
|
+
tooManyCells: string;
|
|
107
|
+
pending: string;
|
|
108
|
+
close: string;
|
|
109
|
+
/** The formula bar's tooltip over a formula with references: Ctrl+click (Cmd on a Mac; the key is passed in) goes to a reference. */
|
|
110
|
+
goRefHint: (key: string) => string;
|
|
111
|
+
/** Excel's Enter button to the left of the formula bar (its Cancel button is `cancel`): enters the edit and keeps the selection. */
|
|
112
|
+
barEnter: string;
|
|
113
|
+
/** Excel's Insert Function: the fx button, then the dialog's title, search box, category box with its first two items, and the list's label. */
|
|
114
|
+
insertFunction: string;
|
|
115
|
+
insertFunctionTitle: string;
|
|
116
|
+
insertFunctionSearch: string;
|
|
117
|
+
insertFunctionCategory: string;
|
|
118
|
+
insertFunctionRecent: string;
|
|
119
|
+
insertFunctionAll: string;
|
|
120
|
+
insertFunctionPick: string;
|
|
121
|
+
/** Excel's button at the right end of the formula bar and its Ctrl+Shift+U: expands or collapses the formula bar. */
|
|
122
|
+
expandBar: string;
|
|
123
|
+
collapseBar: string;
|
|
124
|
+
/** A workbook being recalculated: the waiting message, the seconds elapsed, and the timeout. */
|
|
125
|
+
waiting: string;
|
|
126
|
+
waitSeconds: (n: number) => string;
|
|
127
|
+
waitHint: string;
|
|
128
|
+
waitTimeout: string;
|
|
129
|
+
find: string;
|
|
130
|
+
findPlaceholder: string;
|
|
131
|
+
findPrev: string;
|
|
132
|
+
findNext: string;
|
|
133
|
+
findNone: string;
|
|
134
|
+
/** Search status: the current match's position, the total, and how many were received when the source truncated the list. */
|
|
135
|
+
findStatus: (i: number, total: number, shown: number) => string;
|
|
136
|
+
/** Search status while the active cell is not a match: the total, and how many were received. */
|
|
137
|
+
findCount: (total: number, shown: number) => string;
|
|
138
|
+
findFailed: string;
|
|
139
|
+
/** Excel's Find and Replace: its options, the range it searches within, the Replace row and the result of Replace All. */
|
|
140
|
+
findOptions: string;
|
|
141
|
+
findMatchCase: string;
|
|
142
|
+
findWholeCell: string;
|
|
143
|
+
findLookIn: string;
|
|
144
|
+
findInFormulas: string;
|
|
145
|
+
findInValues: string;
|
|
146
|
+
findOrder: string;
|
|
147
|
+
findByRows: string;
|
|
148
|
+
findByColumns: string;
|
|
149
|
+
findWithin: (range: string) => string;
|
|
150
|
+
findWholeSheet: string;
|
|
151
|
+
replaceToggle: string;
|
|
152
|
+
replacePlaceholder: string;
|
|
153
|
+
replaceOne: string;
|
|
154
|
+
replaceAll: string;
|
|
155
|
+
replaceDone: (n: number) => string;
|
|
156
|
+
/** Replace All left `n` cells unchanged: Excel would not accept their new text, for the source's reason `why`. */
|
|
157
|
+
replaceRefused: (n: number, why: string) => string;
|
|
158
|
+
filter: string;
|
|
159
|
+
filterOn: string;
|
|
160
|
+
filterColumn: (letters: string) => string;
|
|
161
|
+
filterNamed: (name: string, letters: string) => string;
|
|
162
|
+
sortAsc: string;
|
|
163
|
+
sortDesc: string;
|
|
164
|
+
filterText: string;
|
|
165
|
+
filterSearch: string;
|
|
166
|
+
filterAll: string;
|
|
167
|
+
filterEmpty: string;
|
|
168
|
+
filterMore: (n: number) => string;
|
|
169
|
+
filterReading: string;
|
|
170
|
+
filterApply: string;
|
|
171
|
+
filterReset: string;
|
|
172
|
+
filterClear: string;
|
|
173
|
+
/** The filter status line at the bottom: visible rows out of all, the columns with conditions, the sort. */
|
|
174
|
+
filterStatus: (shown: string, total: string, cols: string[], sort: {
|
|
175
|
+
col: string;
|
|
176
|
+
dir: 'asc' | 'desc';
|
|
177
|
+
} | null) => string;
|
|
178
|
+
filterFailed: string;
|
|
179
|
+
valuesFailed: string;
|
|
180
|
+
unfiltered: (row: number) => string;
|
|
181
|
+
/** The formatting toolbar (`SheetToolbar`): its buttons, menus and number formats, with Excel's names. */
|
|
182
|
+
toolbar: string;
|
|
183
|
+
toolbarMore: string;
|
|
184
|
+
undo: string;
|
|
185
|
+
redo: string;
|
|
186
|
+
bold: string;
|
|
187
|
+
italic: string;
|
|
188
|
+
underline: string;
|
|
189
|
+
fontColor: string;
|
|
190
|
+
fillColor: string;
|
|
191
|
+
pickColor: string;
|
|
192
|
+
colorAuto: string;
|
|
193
|
+
fillNone: string;
|
|
194
|
+
borders: string;
|
|
195
|
+
borderAll: string;
|
|
196
|
+
borderOutside: string;
|
|
197
|
+
borderBottom: string;
|
|
198
|
+
borderNone: string;
|
|
199
|
+
alignLeft: string;
|
|
200
|
+
alignCenter: string;
|
|
201
|
+
alignRight: string;
|
|
202
|
+
wrapText: string;
|
|
203
|
+
numberFormat: string;
|
|
204
|
+
/** Excel's Format Cells dialog (`FormatDialog`): its tabs, inputs and the names of their options. */
|
|
205
|
+
formatCells: string;
|
|
206
|
+
formatCellsOpen: string;
|
|
207
|
+
fmtTab: (tab: 'number' | 'alignment' | 'font' | 'border' | 'fill') => string;
|
|
208
|
+
fmtCategory: string;
|
|
209
|
+
fmtCode: string;
|
|
210
|
+
fmtCodeEmpty: string;
|
|
211
|
+
fmtHorizontal: string;
|
|
212
|
+
fmtVertical: string;
|
|
213
|
+
fmtHorizontalKind: (h: 'general' | 'left' | 'center' | 'right' | 'fill' | 'justify' | 'centerContinuous' | 'distributed') => string;
|
|
214
|
+
fmtVerticalKind: (v: 'top' | 'center' | 'bottom' | 'justify' | 'distributed') => string;
|
|
215
|
+
fmtIndent: string;
|
|
216
|
+
fmtIndentRange: string;
|
|
217
|
+
fmtFontName: string;
|
|
218
|
+
fmtFontDefault: string;
|
|
219
|
+
fmtFontStyle: string;
|
|
220
|
+
fmtFontStyleKind: (k: 'regular' | 'italic' | 'bold' | 'boldItalic') => string;
|
|
221
|
+
fmtSize: string;
|
|
222
|
+
fmtSizeRange: string;
|
|
223
|
+
fmtUnderline: string;
|
|
224
|
+
fmtUnderlineKind: (k: 'none' | 'single' | 'double') => string;
|
|
225
|
+
fmtStrike: string;
|
|
226
|
+
fmtColor: string;
|
|
227
|
+
fmtColorCode: string;
|
|
228
|
+
fmtColorBad: string;
|
|
229
|
+
fmtBackground: string;
|
|
230
|
+
fmtLine: string;
|
|
231
|
+
fmtLineStyle: (style: string) => string;
|
|
232
|
+
fmtPresets: string;
|
|
233
|
+
fmtPreset: (p: 'none' | 'outline' | 'inside') => string;
|
|
234
|
+
fmtEdges: string;
|
|
235
|
+
fmtEdge: (e: 'top' | 'bottom' | 'left' | 'right' | 'insideH' | 'insideV') => string;
|
|
236
|
+
/** Excel's data validation: the dropdown button, the alert's title when the rule has none, its buttons (Retry, OK and Cancel are `retry`, `ok` and `cancel`), a warning's question and the style names. */
|
|
237
|
+
validationList: string;
|
|
238
|
+
validationTitle: string;
|
|
239
|
+
validationYes: string;
|
|
240
|
+
validationNo: string;
|
|
241
|
+
validationContinue: string;
|
|
242
|
+
validationStyle: (severity: 'stop' | 'warning' | 'information') => string;
|
|
243
|
+
/** The prompt for a formula that cannot be parsed, below the source's reason, and its buttons. */
|
|
244
|
+
formulaQuestion: string;
|
|
245
|
+
formulaFix: string;
|
|
246
|
+
formulaRevert: string;
|
|
247
|
+
/** Excel's dialog for an unclosed formula that it offers to correct (Yes and No are `validationYes` and `validationNo`), and its message after No. */
|
|
248
|
+
typoFound: (correction: string) => string;
|
|
249
|
+
missingParenthesis: string;
|
|
250
|
+
/** Excel's Formula AutoComplete: the function list below the editor and its hint. */
|
|
251
|
+
functionList: string;
|
|
252
|
+
functionHint: string;
|
|
253
|
+
/** Excel's Merge & Center button, its dropdown button and items, and the warning before values are lost. */
|
|
254
|
+
mergeCenter: string;
|
|
255
|
+
mergeMenu: string;
|
|
256
|
+
mergeAcross: string;
|
|
257
|
+
mergeCells: string;
|
|
258
|
+
unmergeCells: string;
|
|
259
|
+
mergeWarning: string;
|
|
260
|
+
}
|