@dou-ui/sheet 0.0.0-stage → 0.1.0-alpha.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/LICENSE +21 -0
- package/README.md +10 -2
- package/dist/cell-types.js +20 -0
- package/dist/cell-types.js.map +1 -0
- package/dist/code/code-formula-bar.js +6 -0
- package/dist/code/code-formula-bar.js.map +1 -0
- package/dist/code/code-formula-bar.vue_vue_type_script_setup_true_lang.js +192 -0
- package/dist/code/code-formula-bar.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/code/index.js +12 -0
- package/dist/code/index.js.map +1 -0
- package/dist/code/language.js +51 -0
- package/dist/code/language.js.map +1 -0
- package/dist/code/style.d.ts +1 -0
- package/dist/code/style.js +2 -0
- package/dist/collaboration/anchor.js +143 -0
- package/dist/collaboration/anchor.js.map +1 -0
- package/dist/collaboration/index.js +770 -0
- package/dist/collaboration/index.js.map +1 -0
- package/dist/collaboration/peers.js +87 -0
- package/dist/collaboration/peers.js.map +1 -0
- package/dist/collaboration/shared.js +450 -0
- package/dist/collaboration/shared.js.map +1 -0
- package/dist/components/cell-panel.js +6 -0
- package/dist/components/cell-panel.js.map +1 -0
- package/dist/components/cell-panel.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/components/cell-panel.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/cell-renders.js +40 -0
- package/dist/components/cell-renders.js.map +1 -0
- package/dist/components/date-panel.js +6 -0
- package/dist/components/date-panel.js.map +1 -0
- package/dist/components/date-panel.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/components/date-panel.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/filter-panel.js +6 -0
- package/dist/components/filter-panel.js.map +1 -0
- package/dist/components/filter-panel.vue_vue_type_script_setup_true_lang.js +259 -0
- package/dist/components/filter-panel.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/format-dialog.js +6 -0
- package/dist/components/format-dialog.js.map +1 -0
- package/dist/components/format-dialog.vue_vue_type_script_setup_true_lang.js +432 -0
- package/dist/components/format-dialog.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/format-list.js +6 -0
- package/dist/components/format-list.js.map +1 -0
- package/dist/components/format-list.vue_vue_type_script_setup_true_lang.js +187 -0
- package/dist/components/format-list.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/format-presets.js +97 -0
- package/dist/components/format-presets.js.map +1 -0
- package/dist/components/option-panel.js +6 -0
- package/dist/components/option-panel.js.map +1 -0
- package/dist/components/option-panel.vue_vue_type_script_setup_true_lang.js +117 -0
- package/dist/components/option-panel.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/sheet-comment.js +6 -0
- package/dist/components/sheet-comment.js.map +1 -0
- package/dist/components/sheet-comment.vue_vue_type_script_setup_true_lang.js +104 -0
- package/dist/components/sheet-comment.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/sheet-formula-bar.js +6 -0
- package/dist/components/sheet-formula-bar.js.map +1 -0
- package/dist/components/sheet-formula-bar.vue_vue_type_script_setup_true_lang.js +124 -0
- package/dist/components/sheet-formula-bar.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/sheet-link.js +6 -0
- package/dist/components/sheet-link.js.map +1 -0
- package/dist/components/sheet-link.vue_vue_type_script_setup_true_lang.js +249 -0
- package/dist/components/sheet-link.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/sheet-menu.js +6 -0
- package/dist/components/sheet-menu.js.map +1 -0
- package/dist/components/sheet-menu.vue_vue_type_script_setup_true_lang.js +115 -0
- package/dist/components/sheet-menu.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/sheet-name-box.js +6 -0
- package/dist/components/sheet-name-box.js.map +1 -0
- package/dist/components/sheet-name-box.vue_vue_type_script_setup_true_lang.js +91 -0
- package/dist/components/sheet-name-box.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/sheet-note.js +6 -0
- package/dist/components/sheet-note.js.map +1 -0
- package/dist/components/sheet-note.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/components/sheet-note.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/sheet-outline.js +6 -0
- package/dist/components/sheet-outline.js.map +1 -0
- package/dist/components/sheet-outline.vue_vue_type_script_setup_true_lang.js +237 -0
- package/dist/components/sheet-outline.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/sheet-tabs.js +6 -0
- package/dist/components/sheet-tabs.js.map +1 -0
- package/dist/components/sheet-tabs.vue_vue_type_script_setup_true_lang.js +487 -0
- package/dist/components/sheet-tabs.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/sheet-toolbar.js +6 -0
- package/dist/components/sheet-toolbar.js.map +1 -0
- package/dist/components/sheet-toolbar.vue_vue_type_script_setup_true_lang.js +1562 -0
- package/dist/components/sheet-toolbar.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/validation-dialog.js +6 -0
- package/dist/components/validation-dialog.js.map +1 -0
- package/dist/components/validation-dialog.vue_vue_type_script_setup_true_lang.js +370 -0
- package/dist/components/validation-dialog.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/context.js +12 -0
- package/dist/context.js.map +1 -0
- package/dist/core/address.js +256 -0
- package/dist/core/address.js.map +1 -0
- package/dist/core/axis.js +72 -0
- package/dist/core/axis.js.map +1 -0
- package/dist/core/cell-type.js +30 -0
- package/dist/core/cell-type.js.map +1 -0
- package/dist/core/clipboard.js +141 -0
- package/dist/core/clipboard.js.map +1 -0
- package/dist/core/commands.js +63 -0
- package/dist/core/commands.js.map +1 -0
- package/dist/core/comments.js +74 -0
- package/dist/core/comments.js.map +1 -0
- package/dist/core/conditional.js +362 -0
- package/dist/core/conditional.js.map +1 -0
- package/dist/core/csv.js +191 -0
- package/dist/core/csv.js.map +1 -0
- package/dist/core/data.js +118 -0
- package/dist/core/data.js.map +1 -0
- package/dist/core/document.js +187 -0
- package/dist/core/document.js.map +1 -0
- package/dist/core/extension.js +60 -0
- package/dist/core/extension.js.map +1 -0
- package/dist/core/file.js +336 -0
- package/dist/core/file.js.map +1 -0
- package/dist/core/fill.js +153 -0
- package/dist/core/fill.js.map +1 -0
- package/dist/core/find.js +42 -0
- package/dist/core/find.js.map +1 -0
- package/dist/core/format.js +404 -0
- package/dist/core/format.js.map +1 -0
- package/dist/core/group.js +134 -0
- package/dist/core/group.js.map +1 -0
- package/dist/core/history.js +68 -0
- package/dist/core/history.js.map +1 -0
- package/dist/core/index.js +17 -0
- package/dist/core/link.js +34 -0
- package/dist/core/link.js.map +1 -0
- package/dist/core/merge.js +105 -0
- package/dist/core/merge.js.map +1 -0
- package/dist/core/model.js +48 -0
- package/dist/core/model.js.map +1 -0
- package/dist/core/nav.js +44 -0
- package/dist/core/nav.js.map +1 -0
- package/dist/core/paint.js +106 -0
- package/dist/core/paint.js.map +1 -0
- package/dist/core/plain-cell-types.js +54 -0
- package/dist/core/plain-cell-types.js.map +1 -0
- package/dist/core/protect.js +246 -0
- package/dist/core/protect.js.map +1 -0
- package/dist/core/selection.js +37 -0
- package/dist/core/selection.js.map +1 -0
- package/dist/core/transaction.js +1582 -0
- package/dist/core/transaction.js.map +1 -0
- package/dist/core/validation.js +135 -0
- package/dist/core/validation.js.map +1 -0
- package/dist/core/versions.js +161 -0
- package/dist/core/versions.js.map +1 -0
- package/dist/export/color.js +36 -0
- package/dist/export/color.js.map +1 -0
- package/dist/export/draw.js +316 -0
- package/dist/export/draw.js.map +1 -0
- package/dist/export/index.js +390 -0
- package/dist/export/index.js.map +1 -0
- package/dist/formula/edit.js +210 -0
- package/dist/formula/edit.js.map +1 -0
- package/dist/formula/engine.js +526 -0
- package/dist/formula/engine.js.map +1 -0
- package/dist/formula/error.js +39 -0
- package/dist/formula/error.js.map +1 -0
- package/dist/formula/functions.js +1493 -0
- package/dist/formula/functions.js.map +1 -0
- package/dist/formula/help.js +408 -0
- package/dist/formula/help.js.map +1 -0
- package/dist/formula/index.js +7 -0
- package/dist/formula/parse.js +369 -0
- package/dist/formula/parse.js.map +1 -0
- package/dist/formula/values.js +123 -0
- package/dist/formula/values.js.map +1 -0
- package/dist/formulas.js +30 -0
- package/dist/formulas.js.map +1 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/locale.js +1312 -0
- package/dist/locale.js.map +1 -0
- package/dist/sheet.js +6 -0
- package/dist/sheet.js.map +1 -0
- package/dist/sheet.vue_vue_type_script_setup_true_lang.js +7166 -0
- package/dist/sheet.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/style.d.ts +1 -0
- package/dist/style.js +17 -0
- package/dist/types/cell-types.d.ts +2 -0
- package/dist/types/code/code-formula-bar.vue.d.ts +3 -0
- package/dist/types/code/index.d.ts +12 -0
- package/dist/types/code/language.d.ts +13 -0
- package/dist/types/collaboration/anchor.d.ts +65 -0
- package/dist/types/collaboration/index.d.ts +59 -0
- package/dist/types/collaboration/peers.d.ts +21 -0
- package/dist/types/collaboration/shared.d.ts +75 -0
- package/dist/types/components/cell-panel.vue.d.ts +20 -0
- package/dist/types/components/cell-renders.d.ts +9 -0
- package/dist/types/components/date-panel.vue.d.ts +9 -0
- package/dist/types/components/filter-panel.vue.d.ts +21 -0
- package/dist/types/components/format-dialog.vue.d.ts +24 -0
- package/dist/types/components/format-list.vue.d.ts +25 -0
- package/dist/types/components/format-presets.d.ts +30 -0
- package/dist/types/components/option-panel.vue.d.ts +13 -0
- package/dist/types/components/sheet-comment.vue.d.ts +29 -0
- package/dist/types/components/sheet-formula-bar.vue.d.ts +3 -0
- package/dist/types/components/sheet-link.vue.d.ts +32 -0
- package/dist/types/components/sheet-menu.vue.d.ts +20 -0
- package/dist/types/components/sheet-name-box.vue.d.ts +3 -0
- package/dist/types/components/sheet-note.vue.d.ts +22 -0
- package/dist/types/components/sheet-outline.vue.d.ts +36 -0
- package/dist/types/components/sheet-tabs.vue.d.ts +9 -0
- package/dist/types/components/sheet-toolbar.vue.d.ts +11 -0
- package/dist/types/components/validation-dialog.vue.d.ts +25 -0
- package/dist/types/context.d.ts +189 -0
- package/dist/types/core/address.d.ts +109 -0
- package/dist/types/core/axis.d.ts +23 -0
- package/dist/types/core/cell-type.d.ts +157 -0
- package/dist/types/core/clipboard.d.ts +48 -0
- package/dist/types/core/commands.d.ts +76 -0
- package/dist/types/core/comments.d.ts +22 -0
- package/dist/types/core/conditional.d.ts +114 -0
- package/dist/types/core/csv.d.ts +93 -0
- package/dist/types/core/data.d.ts +26 -0
- package/dist/types/core/document.d.ts +49 -0
- package/dist/types/core/extension.d.ts +177 -0
- package/dist/types/core/file.d.ts +301 -0
- package/dist/types/core/fill.d.ts +23 -0
- package/dist/types/core/find.d.ts +39 -0
- package/dist/types/core/format.d.ts +47 -0
- package/dist/types/core/group.d.ts +76 -0
- package/dist/types/core/history.d.ts +27 -0
- package/dist/types/core/index.d.ts +33 -0
- package/dist/types/core/link.d.ts +14 -0
- package/dist/types/core/merge.d.ts +26 -0
- package/dist/types/core/model.d.ts +363 -0
- package/dist/types/core/nav.d.ts +15 -0
- package/dist/types/core/paint.d.ts +19 -0
- package/dist/types/core/plain-cell-types.d.ts +6 -0
- package/dist/types/core/protect.d.ts +34 -0
- package/dist/types/core/selection.d.ts +25 -0
- package/dist/types/core/transaction.d.ts +470 -0
- package/dist/types/core/validation.d.ts +55 -0
- package/dist/types/core/versions.d.ts +38 -0
- package/dist/types/export/color.d.ts +7 -0
- package/dist/types/export/draw.d.ts +98 -0
- package/dist/types/export/index.d.ts +47 -0
- package/dist/types/formula/edit.d.ts +62 -0
- package/dist/types/formula/engine.d.ts +99 -0
- package/dist/types/formula/error.d.ts +30 -0
- package/dist/types/formula/functions.d.ts +62 -0
- package/dist/types/formula/help.d.ts +12 -0
- package/dist/types/formula/index.d.ts +13 -0
- package/dist/types/formula/parse.d.ts +92 -0
- package/dist/types/formula/values.d.ts +65 -0
- package/dist/types/formulas.d.ts +32 -0
- package/dist/types/index.d.ts +225 -0
- package/dist/types/locale.d.ts +531 -0
- package/dist/types/sheet.vue.d.ts +60 -0
- package/dist/types/types.d.ts +498 -0
- package/dist/types/use-comments.d.ts +47 -0
- package/dist/types/use-messages.d.ts +7 -0
- package/dist/use-comments.js +130 -0
- package/dist/use-comments.js.map +1 -0
- package/dist/use-messages.js +29 -0
- package/dist/use-messages.js.map +1 -0
- package/package.json +93 -4
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
import type { SheetCondition } from './core/model';
|
|
2
|
+
import type { SheetProtectionRefusal } from './core/protect';
|
|
3
|
+
import type { SheetErrorCode } from './formula/error';
|
|
4
|
+
import { type SheetFunctionHelp } from './formula/help';
|
|
5
|
+
export interface SheetMessages {
|
|
6
|
+
/** The grid's accessible name when none is given. */
|
|
7
|
+
sheet: string;
|
|
8
|
+
/** The corner above the row numbers, which selects everything. */
|
|
9
|
+
selectAll: string;
|
|
10
|
+
/** Read out for the cell the keyboard is on: `{cell}` is its name, `{value}` what it shows. */
|
|
11
|
+
cell: string;
|
|
12
|
+
/** Read out for an empty cell instead of its value. */
|
|
13
|
+
empty: string;
|
|
14
|
+
/** Read out when more than one cell is selected: `{range}`, `{count}` cells. */
|
|
15
|
+
selected: string;
|
|
16
|
+
/** The cell editor's name: `{cell}`. */
|
|
17
|
+
edit: string;
|
|
18
|
+
/** How to use the grid with keys; read out when it gets focus. */
|
|
19
|
+
keys: string;
|
|
20
|
+
/** Read out when the grid can't be changed and something tried to. */
|
|
21
|
+
readonly: string;
|
|
22
|
+
/** Read out after clearing: `{range}`. */
|
|
23
|
+
cleared: string;
|
|
24
|
+
/** Read out after an edit: `{cell}`, `{value}`. */
|
|
25
|
+
changed: string;
|
|
26
|
+
undone: string;
|
|
27
|
+
/** Said when an extension cancels a change without saying why. */
|
|
28
|
+
changeCancelled: string;
|
|
29
|
+
redone: string;
|
|
30
|
+
/** Menu items. `{count}` is how many rows or columns. */
|
|
31
|
+
cut: string;
|
|
32
|
+
copy: string;
|
|
33
|
+
paste: string;
|
|
34
|
+
insert: string;
|
|
35
|
+
delete: string;
|
|
36
|
+
insertRowsAbove: string;
|
|
37
|
+
insertRowsBelow: string;
|
|
38
|
+
insertColsLeft: string;
|
|
39
|
+
insertColsRight: string;
|
|
40
|
+
deleteRows: string;
|
|
41
|
+
deleteCols: string;
|
|
42
|
+
hideRows: string;
|
|
43
|
+
hideCols: string;
|
|
44
|
+
showRows: string;
|
|
45
|
+
showCols: string;
|
|
46
|
+
clear: string;
|
|
47
|
+
mergeCells: string;
|
|
48
|
+
unmergeCells: string;
|
|
49
|
+
merged: string;
|
|
50
|
+
/** Shown after merging cells that had values: `{range}`, `{count}` values cleared. */
|
|
51
|
+
mergedCleared: string;
|
|
52
|
+
unmerged: string;
|
|
53
|
+
/** Read out after copying or cutting: `{range}`. */
|
|
54
|
+
copied: string;
|
|
55
|
+
cutDone: string;
|
|
56
|
+
/** Read out after pasting or filling: `{range}`. */
|
|
57
|
+
pasted: string;
|
|
58
|
+
filled: string;
|
|
59
|
+
/** Read out after rows or columns change: `{count}`. */
|
|
60
|
+
rowsInserted: string;
|
|
61
|
+
colsInserted: string;
|
|
62
|
+
rowsDeleted: string;
|
|
63
|
+
colsDeleted: string;
|
|
64
|
+
rowsMoved: string;
|
|
65
|
+
colsMoved: string;
|
|
66
|
+
/** Read out after resizing: `{size}` in px. */
|
|
67
|
+
resized: string;
|
|
68
|
+
/** Shown when the browser won't let the page read the clipboard: `{key}` pastes instead. */
|
|
69
|
+
pasteBlocked: string;
|
|
70
|
+
/** The handle at the corner of the selection, for filling. */
|
|
71
|
+
fillHandle: string;
|
|
72
|
+
/** How a check box cell reads. */
|
|
73
|
+
checked: string;
|
|
74
|
+
unchecked: string;
|
|
75
|
+
/** The button on a cell with a list or calendar, which opens it. */
|
|
76
|
+
openPanel: string;
|
|
77
|
+
/** The list of a `select` cell, and what it shows when nothing matches. */
|
|
78
|
+
options: string;
|
|
79
|
+
noOptions: string;
|
|
80
|
+
/** Why a value doesn't fit its cell's type, shown on hover and read out. */
|
|
81
|
+
invalid: string;
|
|
82
|
+
notDate: string;
|
|
83
|
+
notOption: string;
|
|
84
|
+
notChecked: string;
|
|
85
|
+
/** Why a formula gives an error value, shown on hover and read out. */
|
|
86
|
+
errors: Record<SheetErrorCode, string>;
|
|
87
|
+
/** What the built-in functions take and do, by name, for completion and argument hints. */
|
|
88
|
+
functions: Record<string, SheetFunctionHelp>;
|
|
89
|
+
/** The formula bar: the box with the cell's address, and the formula box. */
|
|
90
|
+
nameBox: string;
|
|
91
|
+
formulaBox: string;
|
|
92
|
+
/** An address typed in the name box that isn't one: `{text}` is what was typed. */
|
|
93
|
+
badAddress: string;
|
|
94
|
+
/** The formula bar's code input: text that isn't a formula. */
|
|
95
|
+
formulaSyntax: string;
|
|
96
|
+
unknownFunction: string;
|
|
97
|
+
/** The list of functions while typing a function's name. */
|
|
98
|
+
functionList: string;
|
|
99
|
+
/** Sorting and filtering. */
|
|
100
|
+
/** The conditions of filters and conditional formats. */
|
|
101
|
+
ops: Record<SheetCondition['op'], string>;
|
|
102
|
+
group: SheetGroupMessages;
|
|
103
|
+
note: SheetNoteMessages;
|
|
104
|
+
comment: SheetCommentMessages;
|
|
105
|
+
compare: SheetCompareMessages;
|
|
106
|
+
/** Cell links: the menu items, the card under a linked cell and the box that edits it. */
|
|
107
|
+
link: SheetLinkMessages;
|
|
108
|
+
/** Protecting sheets and the workbook, and why a change to them isn't allowed. */
|
|
109
|
+
protect: SheetProtectMessages;
|
|
110
|
+
filter: SheetFilterMessages;
|
|
111
|
+
/** Conditional formats: the toolbar's menu, the dialog that adds one and the list of them. */
|
|
112
|
+
formats: SheetFormatsMessages;
|
|
113
|
+
validation: SheetValidationMessages;
|
|
114
|
+
/** The name a new sheet gets: `{n}` is a number. */
|
|
115
|
+
sheetName: string;
|
|
116
|
+
/** The sheet tabs' accessible name. */
|
|
117
|
+
sheets: string;
|
|
118
|
+
/** Read out when another sheet shows: `{name}`. */
|
|
119
|
+
sheetShown: string;
|
|
120
|
+
addSheet: string;
|
|
121
|
+
renameSheet: string;
|
|
122
|
+
duplicateSheet: string;
|
|
123
|
+
deleteSheet: string;
|
|
124
|
+
moveSheetLeft: string;
|
|
125
|
+
moveSheetRight: string;
|
|
126
|
+
/** Read out after a sheet is added: `{name}`. */
|
|
127
|
+
sheetAdded: string;
|
|
128
|
+
/** Read out after a sheet is deleted: `{name}`. */
|
|
129
|
+
sheetDeleted: string;
|
|
130
|
+
/** Read out after a sheet moves: `{name}`, now `{index}` of `{count}`. */
|
|
131
|
+
sheetMoved: string;
|
|
132
|
+
/** Shown when a new name is taken: `{name}`. */
|
|
133
|
+
sheetNameTaken: string;
|
|
134
|
+
sheetNameEmpty: string;
|
|
135
|
+
/** How to use the tabs with keys; read out when they get focus. */
|
|
136
|
+
sheetTabKeys: string;
|
|
137
|
+
/** The toolbar's name. */
|
|
138
|
+
toolbar: string;
|
|
139
|
+
undo: string;
|
|
140
|
+
redo: string;
|
|
141
|
+
bold: string;
|
|
142
|
+
italic: string;
|
|
143
|
+
underline: string;
|
|
144
|
+
strike: string;
|
|
145
|
+
/** Read out after a style is turned on or off with its key: `{name}`. */
|
|
146
|
+
styleOn: string;
|
|
147
|
+
styleOff: string;
|
|
148
|
+
clearFormatting: string;
|
|
149
|
+
formattingCleared: string;
|
|
150
|
+
/** The number format menu and its items; `formatCurrency` is the currency's format. */
|
|
151
|
+
numberFormat: string;
|
|
152
|
+
formatGeneral: string;
|
|
153
|
+
formatNumber: string;
|
|
154
|
+
formatPercent: string;
|
|
155
|
+
formatCurrency: string;
|
|
156
|
+
currencyFormat: string;
|
|
157
|
+
formatDate: string;
|
|
158
|
+
formatTime: string;
|
|
159
|
+
formatText: string;
|
|
160
|
+
formatCustom: string;
|
|
161
|
+
moreDecimals: string;
|
|
162
|
+
fewerDecimals: string;
|
|
163
|
+
textColor: string;
|
|
164
|
+
fillColor: string;
|
|
165
|
+
/** The color a style leaves to the sheet. */
|
|
166
|
+
colorDefault: string;
|
|
167
|
+
colorCustom: string;
|
|
168
|
+
toneNeutral: string;
|
|
169
|
+
tonePrimary: string;
|
|
170
|
+
toneSuccess: string;
|
|
171
|
+
toneWarning: string;
|
|
172
|
+
toneDanger: string;
|
|
173
|
+
alignLeft: string;
|
|
174
|
+
alignCenter: string;
|
|
175
|
+
alignRight: string;
|
|
176
|
+
verticalAlign: string;
|
|
177
|
+
alignTop: string;
|
|
178
|
+
alignMiddle: string;
|
|
179
|
+
alignBottom: string;
|
|
180
|
+
wrap: string;
|
|
181
|
+
freeze: string;
|
|
182
|
+
/** Freezes the rows (or columns) up to the active cell's: `{n}` rows, up to column `{col}`. */
|
|
183
|
+
freezeRows: string;
|
|
184
|
+
freezeCols: string;
|
|
185
|
+
freezeFirstRow: string;
|
|
186
|
+
freezeFirstCol: string;
|
|
187
|
+
unfreeze: string;
|
|
188
|
+
print: string;
|
|
189
|
+
/** Find and replace: the commands, and the toggles the panel adds. */
|
|
190
|
+
find: {
|
|
191
|
+
find: string;
|
|
192
|
+
replace: string;
|
|
193
|
+
next: string;
|
|
194
|
+
previous: string;
|
|
195
|
+
/** Only cells whose whole text is the search. */
|
|
196
|
+
wholeCell: string;
|
|
197
|
+
/** Look in formulas, not in the values cells show. */
|
|
198
|
+
formulas: string;
|
|
199
|
+
/** Look in every sheet, not only the one shown. */
|
|
200
|
+
workbook: string;
|
|
201
|
+
/** Added after “replaced” for matches in a formula's result, left as they are: `{count}`. */
|
|
202
|
+
skippedFormula: string;
|
|
203
|
+
/** Added after “replaced” for matches in locked cells of a protected sheet: `{count}`. */
|
|
204
|
+
skippedProtected: string;
|
|
205
|
+
/** Added after “replaced” for matches whose new value breaks a validation rule: `{count}`. */
|
|
206
|
+
skippedInvalid: string;
|
|
207
|
+
/**
|
|
208
|
+
* Added after “replaced” for matches only in the text a number format
|
|
209
|
+
* shows, such as a currency sign, which no typed value gives: `{count}`.
|
|
210
|
+
*/
|
|
211
|
+
skippedShown: string;
|
|
212
|
+
};
|
|
213
|
+
/** Files in and out: the export and import menus, and what is read out after. */
|
|
214
|
+
file: SheetFileMessages;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Texts to override: any of them, and in a group (error reasons, function
|
|
218
|
+
* help, …) any of its entries.
|
|
219
|
+
*/
|
|
220
|
+
export type SheetMessagesOverride = {
|
|
221
|
+
[K in keyof SheetMessages]?: SheetMessages[K] extends string ? string : SheetMessages[K] extends readonly unknown[] ? SheetMessages[K] : SheetMessages[K] extends (...args: never[]) => unknown ? SheetMessages[K] : Partial<SheetMessages[K]>;
|
|
222
|
+
};
|
|
223
|
+
export declare const sheetLocales: Record<string, SheetMessages>;
|
|
224
|
+
/** The texts of exporting and importing files. */
|
|
225
|
+
export interface SheetFileMessages {
|
|
226
|
+
export: string;
|
|
227
|
+
import: string;
|
|
228
|
+
/** The built-in exporters and importers. */
|
|
229
|
+
csv: string;
|
|
230
|
+
png: string;
|
|
231
|
+
svg: string;
|
|
232
|
+
/** Read out after a file is written or read: `{name}`. */
|
|
233
|
+
exported: string;
|
|
234
|
+
imported: string;
|
|
235
|
+
/** A file that couldn't be read: `{name}`, `{reason}`. */
|
|
236
|
+
importFailed: string;
|
|
237
|
+
/** A file no importer takes: `{name}`. */
|
|
238
|
+
unknownFile: string;
|
|
239
|
+
/** A file that couldn't be written: `{name}`, `{reason}`. */
|
|
240
|
+
exportFailed: string;
|
|
241
|
+
/** What the export menu offers to write, for exporters that can write more than one. */
|
|
242
|
+
workbook: string;
|
|
243
|
+
sheet: string;
|
|
244
|
+
selection: string;
|
|
245
|
+
}
|
|
246
|
+
/** The texts of conditional formats. */
|
|
247
|
+
export interface SheetFormatsMessages {
|
|
248
|
+
title: string;
|
|
249
|
+
highlight: string;
|
|
250
|
+
ranks: string;
|
|
251
|
+
gt: string;
|
|
252
|
+
lt: string;
|
|
253
|
+
between: string;
|
|
254
|
+
eq: string;
|
|
255
|
+
contains: string;
|
|
256
|
+
duplicates: string;
|
|
257
|
+
formula: string;
|
|
258
|
+
top: string;
|
|
259
|
+
bottom: string;
|
|
260
|
+
above: string;
|
|
261
|
+
below: string;
|
|
262
|
+
bar: string;
|
|
263
|
+
scale: string;
|
|
264
|
+
clearSelection: string;
|
|
265
|
+
clearSheet: string;
|
|
266
|
+
manage: string;
|
|
267
|
+
/** Dialog fields. */
|
|
268
|
+
range: string;
|
|
269
|
+
value: string;
|
|
270
|
+
and: string;
|
|
271
|
+
count: string;
|
|
272
|
+
percent: string;
|
|
273
|
+
repeated: string;
|
|
274
|
+
unique: string;
|
|
275
|
+
look: string;
|
|
276
|
+
invalidRange: string;
|
|
277
|
+
needValue: string;
|
|
278
|
+
cancel: string;
|
|
279
|
+
apply: string;
|
|
280
|
+
close: string;
|
|
281
|
+
edit: string;
|
|
282
|
+
editTitle: string;
|
|
283
|
+
condition: string;
|
|
284
|
+
formulaField: string;
|
|
285
|
+
formulaHelp: string;
|
|
286
|
+
needFormula: string;
|
|
287
|
+
/** A data bar's or a scale's colors. */
|
|
288
|
+
color: string;
|
|
289
|
+
/** Keeps a look or color the menus don't offer, when editing a rule. */
|
|
290
|
+
current: string;
|
|
291
|
+
/** The looks to pick from. */
|
|
292
|
+
looks: {
|
|
293
|
+
danger: string;
|
|
294
|
+
warning: string;
|
|
295
|
+
success: string;
|
|
296
|
+
dangerText: string;
|
|
297
|
+
bold: string;
|
|
298
|
+
neutral: string;
|
|
299
|
+
};
|
|
300
|
+
/** Color scales, from the smallest number to the largest. */
|
|
301
|
+
scales: {
|
|
302
|
+
rag: string;
|
|
303
|
+
gar: string;
|
|
304
|
+
diverging: string;
|
|
305
|
+
blue: string;
|
|
306
|
+
};
|
|
307
|
+
/** How the list of formats describes each; `{value}`, `{to}`, `{count}`, `{formula}`. */
|
|
308
|
+
describe: {
|
|
309
|
+
when: string;
|
|
310
|
+
between: string;
|
|
311
|
+
formula: string;
|
|
312
|
+
top: string;
|
|
313
|
+
topPercent: string;
|
|
314
|
+
bottom: string;
|
|
315
|
+
bottomPercent: string;
|
|
316
|
+
above: string;
|
|
317
|
+
below: string;
|
|
318
|
+
repeated: string;
|
|
319
|
+
unique: string;
|
|
320
|
+
scale: string;
|
|
321
|
+
bar: string;
|
|
322
|
+
};
|
|
323
|
+
empty: string;
|
|
324
|
+
moveUp: string;
|
|
325
|
+
moveDown: string;
|
|
326
|
+
remove: string;
|
|
327
|
+
/** Read out: `{range}`, `{count}`. */
|
|
328
|
+
added: string;
|
|
329
|
+
cleared: string;
|
|
330
|
+
}
|
|
331
|
+
/** The texts of data validation: the dialog, and what is said when a value doesn't fit. */
|
|
332
|
+
export interface SheetValidationMessages {
|
|
333
|
+
title: string;
|
|
334
|
+
range: string;
|
|
335
|
+
allow: string;
|
|
336
|
+
kinds: {
|
|
337
|
+
list: string;
|
|
338
|
+
number: string;
|
|
339
|
+
integer: string;
|
|
340
|
+
text: string;
|
|
341
|
+
formula: string;
|
|
342
|
+
};
|
|
343
|
+
condition: string;
|
|
344
|
+
any: string;
|
|
345
|
+
value: string;
|
|
346
|
+
and: string;
|
|
347
|
+
options: string;
|
|
348
|
+
optionsHelp: string;
|
|
349
|
+
formula: string;
|
|
350
|
+
formulaHelp: string;
|
|
351
|
+
prompt: string;
|
|
352
|
+
promptHelp: string;
|
|
353
|
+
message: string;
|
|
354
|
+
messageHelp: string;
|
|
355
|
+
strict: string;
|
|
356
|
+
strictHelp: string;
|
|
357
|
+
invalidRange: string;
|
|
358
|
+
needValue: string;
|
|
359
|
+
needOptions: string;
|
|
360
|
+
needFormula: string;
|
|
361
|
+
remove: string;
|
|
362
|
+
cancel: string;
|
|
363
|
+
apply: string;
|
|
364
|
+
/** A rule in words, said when a value doesn't fit: `{cond}`, `{formula}`. */
|
|
365
|
+
list: string;
|
|
366
|
+
number: string;
|
|
367
|
+
numberOnly: string;
|
|
368
|
+
integer: string;
|
|
369
|
+
integerOnly: string;
|
|
370
|
+
text: string;
|
|
371
|
+
formulaFailed: string;
|
|
372
|
+
/** A condition in words: `{op}`, `{value}`, `{to}`. */
|
|
373
|
+
cond: string;
|
|
374
|
+
condBetween: string;
|
|
375
|
+
/** Said when a typed value is refused: `{message}`. */
|
|
376
|
+
refused: string;
|
|
377
|
+
/** Read out: `{range}`. */
|
|
378
|
+
added: string;
|
|
379
|
+
removed: string;
|
|
380
|
+
}
|
|
381
|
+
export interface SheetGroupMessages {
|
|
382
|
+
/** Menu items: `{count}` rows or columns. */
|
|
383
|
+
group: string;
|
|
384
|
+
groupRows: string;
|
|
385
|
+
groupCols: string;
|
|
386
|
+
ungroupRows: string;
|
|
387
|
+
ungroupCols: string;
|
|
388
|
+
/** Lines of a group, for the texts below: `{from}`, `{to}`; one line `{from}`. */
|
|
389
|
+
rowLines: string;
|
|
390
|
+
rowLine: string;
|
|
391
|
+
colLines: string;
|
|
392
|
+
colLine: string;
|
|
393
|
+
/** A group's button, and what is read out after pressing it: `{lines}`. */
|
|
394
|
+
collapseRows: string;
|
|
395
|
+
expandRows: string;
|
|
396
|
+
collapseCols: string;
|
|
397
|
+
expandCols: string;
|
|
398
|
+
collapsedRows: string;
|
|
399
|
+
expandedRows: string;
|
|
400
|
+
collapsedCols: string;
|
|
401
|
+
expandedCols: string;
|
|
402
|
+
/** The level buttons, and what is read out after one: `{level}`. */
|
|
403
|
+
rowLevel: string;
|
|
404
|
+
colLevel: string;
|
|
405
|
+
levelShown: string;
|
|
406
|
+
/** Read out after grouping: `{count}` rows or columns. */
|
|
407
|
+
groupedRows: string;
|
|
408
|
+
groupedCols: string;
|
|
409
|
+
ungrouped: string;
|
|
410
|
+
/** Grouping lines that would cross the group `{group}`, or nest too deep. */
|
|
411
|
+
crossing: string;
|
|
412
|
+
tooDeep: string;
|
|
413
|
+
}
|
|
414
|
+
export interface SheetLinkMessages {
|
|
415
|
+
/** Menu items and the card's buttons. */
|
|
416
|
+
add: string;
|
|
417
|
+
edit: string;
|
|
418
|
+
remove: string;
|
|
419
|
+
open: string;
|
|
420
|
+
/** The edit box's name, and a cell's link as read out: `{link}`. */
|
|
421
|
+
label: string;
|
|
422
|
+
cellLink: string;
|
|
423
|
+
/** The edit box's fields. */
|
|
424
|
+
text: string;
|
|
425
|
+
address: string;
|
|
426
|
+
addressPlaceholder: string;
|
|
427
|
+
/** Shown for an address that won't be followed. */
|
|
428
|
+
badAddress: string;
|
|
429
|
+
save: string;
|
|
430
|
+
cancel: string;
|
|
431
|
+
/** Read out after a change, and after following a link in the workbook: `{cell}`. */
|
|
432
|
+
saved: string;
|
|
433
|
+
removed: string;
|
|
434
|
+
jumped: string;
|
|
435
|
+
/** Shown when a link into the workbook goes nowhere, such as to a sheet that is gone: `{link}`. */
|
|
436
|
+
missing: string;
|
|
437
|
+
}
|
|
438
|
+
export interface SheetProtectMessages {
|
|
439
|
+
/** The toolbar's menu of these, and its items. */
|
|
440
|
+
menu: string;
|
|
441
|
+
protectSheet: string;
|
|
442
|
+
unprotectSheet: string;
|
|
443
|
+
protectBook: string;
|
|
444
|
+
unprotectBook: string;
|
|
445
|
+
lock: string;
|
|
446
|
+
unlock: string;
|
|
447
|
+
/** Read out after a change: `{name}` is the sheet's. */
|
|
448
|
+
sheetProtected: string;
|
|
449
|
+
sheetUnprotected: string;
|
|
450
|
+
bookProtected: string;
|
|
451
|
+
bookUnprotected: string;
|
|
452
|
+
locked: string;
|
|
453
|
+
unlocked: string;
|
|
454
|
+
/** Read out after a protected sheet's name on its tab. */
|
|
455
|
+
protectedSheet: string;
|
|
456
|
+
/** Shown when a change runs into protection, by what it ran into. */
|
|
457
|
+
refused: Record<SheetProtectionRefusal, string>;
|
|
458
|
+
}
|
|
459
|
+
export interface SheetNoteMessages {
|
|
460
|
+
/** Menu items. */
|
|
461
|
+
add: string;
|
|
462
|
+
edit: string;
|
|
463
|
+
remove: string;
|
|
464
|
+
/** `{count}` notes in the selection. */
|
|
465
|
+
removeMany: string;
|
|
466
|
+
/** The note box's name, and the note as read out with its cell: `{note}`. */
|
|
467
|
+
label: string;
|
|
468
|
+
cellNote: string;
|
|
469
|
+
placeholder: string;
|
|
470
|
+
save: string;
|
|
471
|
+
cancel: string;
|
|
472
|
+
/** Read out after a change; `{count}` notes. */
|
|
473
|
+
saved: string;
|
|
474
|
+
removed: string;
|
|
475
|
+
removedMany: string;
|
|
476
|
+
}
|
|
477
|
+
export interface SheetCompareMessages {
|
|
478
|
+
/** What a changed cell held in the older version: `{value}`; or that it was empty. */
|
|
479
|
+
was: string;
|
|
480
|
+
wasEmpty: string;
|
|
481
|
+
/** Read out after `restore`. */
|
|
482
|
+
restored: string;
|
|
483
|
+
}
|
|
484
|
+
export interface SheetCommentMessages {
|
|
485
|
+
/** Menu items: start a thread on the cell, or open the one it has. */
|
|
486
|
+
add: string;
|
|
487
|
+
open: string;
|
|
488
|
+
/** The name of the card beside the cell. */
|
|
489
|
+
label: string;
|
|
490
|
+
/** Read out with a cell that has a thread. */
|
|
491
|
+
cellComment: string;
|
|
492
|
+
}
|
|
493
|
+
export interface SheetFilterMessages {
|
|
494
|
+
/** Menu and toolbar items. */
|
|
495
|
+
sortAsc: string;
|
|
496
|
+
sortDesc: string;
|
|
497
|
+
sort: string;
|
|
498
|
+
turnOn: string;
|
|
499
|
+
turnOff: string;
|
|
500
|
+
clearAll: string;
|
|
501
|
+
/** A column's filter button: `{column}` is its heading or letter. */
|
|
502
|
+
button: string;
|
|
503
|
+
/** The panel. */
|
|
504
|
+
byValues: string;
|
|
505
|
+
byCondition: string;
|
|
506
|
+
search: string;
|
|
507
|
+
values: string;
|
|
508
|
+
all: string;
|
|
509
|
+
allMatches: string;
|
|
510
|
+
blank: string;
|
|
511
|
+
noMatch: string;
|
|
512
|
+
/** More values than listed: `{count}`. */
|
|
513
|
+
more: string;
|
|
514
|
+
condition: string;
|
|
515
|
+
value: string;
|
|
516
|
+
clear: string;
|
|
517
|
+
apply: string;
|
|
518
|
+
/** Read out: `{range}`, `{shown}` rows of `{total}`, `{column}`. */
|
|
519
|
+
added: string;
|
|
520
|
+
removed: string;
|
|
521
|
+
applied: string;
|
|
522
|
+
sorted: string;
|
|
523
|
+
/** Sorting a range with merged cells. */
|
|
524
|
+
mergedSort: string;
|
|
525
|
+
/** Sorting with nothing to sort: one row selected and no filter. */
|
|
526
|
+
nothingToSort: string;
|
|
527
|
+
}
|
|
528
|
+
/** The texts for a language, such as `zh-CN`; Chinese or English by its first part, English otherwise. */
|
|
529
|
+
export declare function sheetMessagesFor(locale?: string): SheetMessages;
|
|
530
|
+
/** Fills `{name}` placeholders. */
|
|
531
|
+
export declare const format: (text: string, params: Record<string, string | number>) => string;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type SheetWorkbook } from './core/model';
|
|
2
|
+
import { type SheetSelection } from './core/selection';
|
|
3
|
+
import { SheetTransaction } from './core/transaction';
|
|
4
|
+
import type { SheetImportEvent, SheetFileErrorEvent, SheetSlots, SheetExpose, SheetMenuContext, SheetMenuItem, SheetLinkOpenEvent, SheetPasteEvent, SheetProps } from './types';
|
|
5
|
+
type __VLS_Slots = SheetSlots;
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<SheetProps, SheetExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
paste: (event: SheetPasteEvent) => any;
|
|
8
|
+
import: (event: SheetImportEvent) => any;
|
|
9
|
+
"update:modelValue": (value: SheetWorkbook) => any;
|
|
10
|
+
transaction: (tr: SheetTransaction) => any;
|
|
11
|
+
"update:selection": (value: SheetSelection) => any;
|
|
12
|
+
"update:activeSheet": (value: number) => any;
|
|
13
|
+
transactionCancel: (tr: SheetTransaction) => any;
|
|
14
|
+
linkOpen: (event: SheetLinkOpenEvent) => any;
|
|
15
|
+
fileError: (event: SheetFileErrorEvent) => any;
|
|
16
|
+
"update:comments": (threads: import("dou-ui").CommentThread[]) => any;
|
|
17
|
+
"update:activeComment": (id: string | null) => any;
|
|
18
|
+
commentAction: (action: import("dou-ui").CommentAction) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<SheetProps> & Readonly<{
|
|
20
|
+
onPaste?: ((event: SheetPasteEvent) => any) | undefined;
|
|
21
|
+
onImport?: ((event: SheetImportEvent) => any) | undefined;
|
|
22
|
+
"onUpdate:modelValue"?: ((value: SheetWorkbook) => any) | undefined;
|
|
23
|
+
onTransaction?: ((tr: SheetTransaction) => any) | undefined;
|
|
24
|
+
"onUpdate:selection"?: ((value: SheetSelection) => any) | undefined;
|
|
25
|
+
"onUpdate:activeSheet"?: ((value: number) => any) | undefined;
|
|
26
|
+
onTransactionCancel?: ((tr: SheetTransaction) => any) | undefined;
|
|
27
|
+
onLinkOpen?: ((event: SheetLinkOpenEvent) => any) | undefined;
|
|
28
|
+
onFileError?: ((event: SheetFileErrorEvent) => any) | undefined;
|
|
29
|
+
"onUpdate:comments"?: ((threads: import("dou-ui").CommentThread[]) => any) | undefined;
|
|
30
|
+
"onUpdate:activeComment"?: ((id: string | null) => any) | undefined;
|
|
31
|
+
onCommentAction?: ((action: import("dou-ui").CommentAction) => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
readonly: boolean;
|
|
34
|
+
compare: SheetWorkbook | null;
|
|
35
|
+
menu: (items: SheetMenuItem[], context: SheetMenuContext) => SheetMenuItem[];
|
|
36
|
+
selection: SheetSelection;
|
|
37
|
+
comments: import("dou-ui").CommentThread[];
|
|
38
|
+
messages: import("./locale").SheetMessagesOverride;
|
|
39
|
+
colWidth: number;
|
|
40
|
+
rowHeight: number;
|
|
41
|
+
author: import("dou-ui").CommentAuthor;
|
|
42
|
+
outline: boolean;
|
|
43
|
+
ariaLabel: string;
|
|
44
|
+
activeSheet: number;
|
|
45
|
+
headers: boolean;
|
|
46
|
+
gridlines: boolean;
|
|
47
|
+
historyDepth: number;
|
|
48
|
+
extensions: (import(".").SheetExtension | import(".").SheetExtension[])[];
|
|
49
|
+
fileDrop: boolean;
|
|
50
|
+
activeComment: string | null;
|
|
51
|
+
commentable: boolean;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
53
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
54
|
+
declare const _default: typeof __VLS_export;
|
|
55
|
+
export default _default;
|
|
56
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|