@sheetxl/react 0.8.0-beta.1 → 0.8.0-beta.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/browser/cjs/index.cjs +21 -15
- package/browser/esm/{SJMJzBwlXTJ9QIO5.mjs → Dsn3z1hmkv-bWGVr.mjs} +1 -1
- package/browser/esm/index.mjs +10358 -8370
- package/node/esm/{DAE_NG8D9uT50zUH.mjs → CyU4sKDpHyc6kF7j.mjs} +1 -1
- package/node/esm/index.mjs +9391 -7380
- package/package.json +6 -6
- package/resources/locales/de/movable.cmd.json +86 -0
- package/resources/locales/de/selection.cmd.json +8 -0
- package/resources/locales/de/sheet.cmd.json +170 -7
- package/resources/locales/de/ui.msg.json +48 -3
- package/resources/locales/de/workbook.cmd.json +9 -6
- package/resources/locales/en/movable.cmd.json +86 -0
- package/resources/locales/en/selection.cmd.json +8 -0
- package/resources/locales/en/sheet.cmd.json +171 -7
- package/resources/locales/en/ui.msg.json +48 -3
- package/resources/locales/en/workbook.cmd.json +10 -7
- package/types/src/autoFill/AutoFillPresets.d.ts +14 -0
- package/types/src/autoFill/FillMenu.d.ts +36 -0
- package/types/src/autoFill/FillSeries.d.ts +38 -0
- package/types/src/autoFill/index.d.ts +4 -0
- package/types/src/border/StaticBorderRenderer.d.ts +2 -2
- package/types/src/border/useBorders.d.ts +7 -7
- package/types/src/cell/FormulaCellRenderer.d.ts +1 -1
- package/types/src/cell/StaticCellRenderer.d.ts +57 -0
- package/types/src/cell/index.d.ts +1 -0
- package/types/src/cell/useFormulaViewAnchor.d.ts +1 -1
- package/types/src/checklist/ValueChecklist.d.ts +71 -0
- package/types/src/checklist/index.d.ts +2 -0
- package/types/src/conditionalFormat/index.d.ts +1 -0
- package/types/src/editor/FunctionPreviewPanel.d.ts +14 -0
- package/types/src/editor/NamedItemLabel.d.ts +29 -0
- package/types/src/editor/NamedItemsPanel.d.ts +13 -2
- package/types/src/editor/SheetCellEditorLayer.d.ts +8 -4
- package/types/src/editor/SheetCellInput.d.ts +12 -2
- package/types/src/editor/SheetEditable.d.ts +8 -2
- package/types/src/editor/formulaCaret.d.ts +39 -10
- package/types/src/editor/formulaEval.d.ts +9 -5
- package/types/src/editor/formulaLint.d.ts +36 -0
- package/types/src/editor/formulaPresentation.d.ts +7 -0
- package/types/src/editor/formulaText.d.ts +17 -5
- package/types/src/editor/functionArgs.d.ts +20 -0
- package/types/src/editor/index.d.ts +2 -1
- package/types/src/editor/pickedReference.d.ts +76 -0
- package/types/src/editor/useEditRejectedNotice.d.ts +32 -0
- package/types/src/editor/useFormulaHints.d.ts +93 -3
- package/types/src/editor/useFormulaInput.d.ts +15 -1
- package/types/src/editor/useReferenceMode.d.ts +12 -0
- package/types/src/externalLink/ExternalLinksPaneArgs.d.ts +23 -0
- package/types/src/externalLink/index.d.ts +2 -0
- package/types/src/form/FormulaInput.d.ts +13 -0
- package/types/src/form/FormulaInputParts.d.ts +10 -1
- package/types/src/frame/CommandContext.d.ts +147 -5
- package/types/src/index.d.ts +5 -1
- package/types/src/io/WorkbookIO.d.ts +2 -0
- package/types/src/layer/CellErrorLayer.d.ts +10 -3
- package/types/src/layer/ProtectionLayer.d.ts +52 -0
- package/types/src/layer/ValidationDropdownLayer.d.ts +15 -5
- package/types/src/layer/ValidationIndicatorLayer.d.ts +9 -3
- package/types/src/layer/ValidationPromptLayer.d.ts +46 -0
- package/types/src/layer/index.d.ts +2 -1
- package/types/src/layer/useValidationPicker.d.ts +35 -35
- package/types/src/layer/validationMark.d.ts +63 -0
- package/types/src/movable/MovableLayer.d.ts +1 -5
- package/types/src/picker/PickerPanel.d.ts +52 -0
- package/types/src/picker/cellPickerOpen.d.ts +6 -0
- package/types/src/picker/index.d.ts +4 -0
- package/types/src/picker/useCellPicker.d.ts +93 -0
- package/types/src/protection/ProtectionPaneArgs.d.ts +31 -0
- package/types/src/protection/index.d.ts +3 -0
- package/types/src/protection/unlockProtectedRanges.d.ts +23 -0
- package/types/src/selection/SheetSelectionLayer.d.ts +10 -0
- package/types/src/sheet/ISheetElement.d.ts +7 -0
- package/types/src/sheet/SheetCommands.d.ts +3 -3
- package/types/src/sheet/circularReferences.d.ts +9 -1
- package/types/src/sheet/index.d.ts +1 -1
- package/types/src/sheet/useCycleHighlight.d.ts +21 -0
- package/types/src/taskPane/ITaskPane.d.ts +12 -1
- package/types/src/workbook/IWorkbookElement.d.ts +5 -0
- package/types/src/workbook/WorkbookCommands.d.ts +0 -2
- package/types/src/workbook/_followOrigin.d.ts +9 -0
- package/types/src/workbook/useWorkbookFormat.d.ts +3 -3
- package/types/src/editor/useProtectedEditNotice.d.ts +0 -14
- package/types/src/layer/validationList.d.ts +0 -84
- package/types/src/list/SheetValueList.d.ts +0 -93
- package/types/src/list/index.d.ts +0 -2
- /package/types/src/{sheet → conditionalFormat}/ConditionalFormatPresets.d.ts +0 -0
|
@@ -200,6 +200,50 @@
|
|
|
200
200
|
"locked": false
|
|
201
201
|
}
|
|
202
202
|
},
|
|
203
|
+
"protectionSheetPause": {
|
|
204
|
+
"label": "{paused, select, true{Resume Protection} other{Pause Protection}}",
|
|
205
|
+
"description": "Temporarily lift protection on this sheet without unprotecting it.\nAsks for the sheet password, if there is one. It applies to this session only and is never saved with the file.",
|
|
206
|
+
"groupLabels": {
|
|
207
|
+
"protectionOptions": "{paused, select, true{Resume Protection} other{Pause Protection}}"
|
|
208
|
+
},
|
|
209
|
+
"icon": "LockOpen",
|
|
210
|
+
"params": {
|
|
211
|
+
"paused": false
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"protectionSheetProtectOrPause": {
|
|
215
|
+
"label": "{state, select, paused{Resume Protection} locked{Pause Protection} other{Protect Sheet}}",
|
|
216
|
+
"description": "Protect the sheet, or pause protection on a protected one.\nNever unprotects: pausing keeps the password and options, and applies to this session only.",
|
|
217
|
+
"icon": "Lock",
|
|
218
|
+
"params": {
|
|
219
|
+
"state": "none"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"protectionHighlight": {
|
|
223
|
+
"label": "Highlight Locked Cells",
|
|
224
|
+
"description": "Shade the cells sheet protection locks, leaving the ranges that stay editable clear.\nA view setting: it changes nothing in the workbook, and works whether or not the sheet is protected.",
|
|
225
|
+
"groupLabels": {
|
|
226
|
+
"protectionOptions": "Highlight Locked Cells"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"manageProtection": {
|
|
230
|
+
"label": "Manage Protection",
|
|
231
|
+
"description": "Sheet protection and its options, the ranges that stay editable, and workbook protection - in one place.",
|
|
232
|
+
"groupLabels": {
|
|
233
|
+
"protectionOptions": "Manage Protection…",
|
|
234
|
+
"sheetTabMenu": "Manage Protection…",
|
|
235
|
+
"contextMenu": "Manage Protection…"
|
|
236
|
+
},
|
|
237
|
+
"icon": "Lock"
|
|
238
|
+
},
|
|
239
|
+
"protectionUnlockRange": {
|
|
240
|
+
"label": "Unlock Range…",
|
|
241
|
+
"description": "Let the selected cells stay editable while the rest of the sheet is protected.",
|
|
242
|
+
"groupLabels": {
|
|
243
|
+
"protectionOptions": "Unlock Range…"
|
|
244
|
+
},
|
|
245
|
+
"icon": "LockRange"
|
|
246
|
+
},
|
|
203
247
|
"formatSheetTabColor": {
|
|
204
248
|
"label": "Tab Color",
|
|
205
249
|
"description": "Color the tab to help differentiate for other sheets.",
|
|
@@ -529,17 +573,34 @@
|
|
|
529
573
|
"mutator"
|
|
530
574
|
]
|
|
531
575
|
},
|
|
532
|
-
"
|
|
533
|
-
"label": "
|
|
534
|
-
"description": "
|
|
576
|
+
"formatCells": {
|
|
577
|
+
"label": "Format Cells",
|
|
578
|
+
"description": "Open the Format Cells pane — number, alignment, font, fill and borders.",
|
|
579
|
+
"icon": "CellsFormat",
|
|
535
580
|
"groupLabels": {
|
|
536
|
-
"numberFormatOptions": "
|
|
537
|
-
|
|
581
|
+
"numberFormatOptions": "More Number Formats…",
|
|
582
|
+
"cellsFormatOptions": "Format Cells…",
|
|
583
|
+
"contextMenu": "Format Cells…"
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
"formatCellsNumber": {
|
|
587
|
+
"label": "Format Cells: Number",
|
|
588
|
+
"description": "Open the Format Cells pane on the Number tab.",
|
|
589
|
+
"icon": "CellsFormat",
|
|
538
590
|
"shortcut": [
|
|
539
591
|
"ctrl+1",
|
|
540
592
|
"ctrl+alt+1"
|
|
541
593
|
]
|
|
542
594
|
},
|
|
595
|
+
"formatCellsFont": {
|
|
596
|
+
"label": "Format Cells: Font",
|
|
597
|
+
"description": "Open the Format Cells pane on the Font tab.",
|
|
598
|
+
"icon": "CellsFormat",
|
|
599
|
+
"shortcut": [
|
|
600
|
+
"ctrl+shift+F",
|
|
601
|
+
"ctrl+alt+F"
|
|
602
|
+
]
|
|
603
|
+
},
|
|
543
604
|
"formatNumberFormat": {
|
|
544
605
|
"label": "Number Format",
|
|
545
606
|
"description": "Choose the format for your cells, such as percentage, currency, date or time.",
|
|
@@ -852,14 +913,107 @@
|
|
|
852
913
|
"mutator"
|
|
853
914
|
]
|
|
854
915
|
},
|
|
916
|
+
"sheetBackgroundToggle": {
|
|
917
|
+
"label": "Background",
|
|
918
|
+
"description": "Add or remove the picture that is tiled behind the sheet's cells.",
|
|
919
|
+
"icon": "BackgroundImage",
|
|
920
|
+
"tags": [
|
|
921
|
+
"mutator"
|
|
922
|
+
]
|
|
923
|
+
},
|
|
924
|
+
"sheetBackgroundFromFile": {
|
|
925
|
+
"label": "Sheet Background",
|
|
926
|
+
"description": "Use a picture from your device as the sheet's background.",
|
|
927
|
+
"groupLabels": {
|
|
928
|
+
"sheetBackgroundOptions": "From Device…"
|
|
929
|
+
},
|
|
930
|
+
"icon": "BackgroundImage",
|
|
931
|
+
"tags": [
|
|
932
|
+
"mutator"
|
|
933
|
+
]
|
|
934
|
+
},
|
|
935
|
+
"sheetBackgroundFromURL": {
|
|
936
|
+
"label": "Sheet Background From Web",
|
|
937
|
+
"description": "Use a picture from the web as the sheet's background.",
|
|
938
|
+
"groupLabels": {
|
|
939
|
+
"sheetBackgroundOptions": "From the Web…"
|
|
940
|
+
},
|
|
941
|
+
"icon": "BackgroundImage",
|
|
942
|
+
"tags": [
|
|
943
|
+
"mutator"
|
|
944
|
+
]
|
|
945
|
+
},
|
|
946
|
+
"sheetBackgroundDelete": {
|
|
947
|
+
"label": "Delete Background",
|
|
948
|
+
"description": "Remove the sheet's background picture.",
|
|
949
|
+
"groupLabels": {
|
|
950
|
+
"sheetBackgroundOptions": "Delete Background"
|
|
951
|
+
},
|
|
952
|
+
"icon": "Delete",
|
|
953
|
+
"tags": [
|
|
954
|
+
"mutator"
|
|
955
|
+
]
|
|
956
|
+
},
|
|
855
957
|
"manageDataValidation": {
|
|
856
958
|
"label": "Data Validation",
|
|
857
959
|
"description": "Manage data validation rules to limit the type of data entered in a cell.",
|
|
858
960
|
"groupLabels": {
|
|
859
|
-
"contextMenu": "Data Validation…"
|
|
961
|
+
"contextMenu": "Data Validation…",
|
|
962
|
+
"dataValidationOptions": "Manage Rules…"
|
|
860
963
|
},
|
|
861
964
|
"icon": "DataValidation"
|
|
862
965
|
},
|
|
966
|
+
"dataValidationList": {
|
|
967
|
+
"label": "Data Validation List",
|
|
968
|
+
"description": "Limit the selected cells to a list, seeded with the values already there.",
|
|
969
|
+
"groupLabels": {
|
|
970
|
+
"dataValidationOptions": "List…"
|
|
971
|
+
}
|
|
972
|
+
},
|
|
973
|
+
"dataValidationUnique": {
|
|
974
|
+
"label": "Require Unique Values",
|
|
975
|
+
"description": "Allow each value only once in the selected cells.",
|
|
976
|
+
"groupLabels": {
|
|
977
|
+
"dataValidationOptions": "Unique"
|
|
978
|
+
},
|
|
979
|
+
"tags": [
|
|
980
|
+
"mutator"
|
|
981
|
+
]
|
|
982
|
+
},
|
|
983
|
+
"dataValidationShowInvalid": {
|
|
984
|
+
"label": "Show Invalid Data",
|
|
985
|
+
"description": "Mark the cells whose value fails a data validation.\nA view setting: it changes nothing in the rules.",
|
|
986
|
+
"groupLabels": {
|
|
987
|
+
"dataValidationOptions": "Show Invalid"
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
"dataValidationNewRule": {
|
|
991
|
+
"label": "New Data Validation Rule",
|
|
992
|
+
"description": "Create a new data validation rule for the selected cells.",
|
|
993
|
+
"groupLabels": {
|
|
994
|
+
"dataValidationOptions": "New Rule…"
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
"dataValidationClearSelection": {
|
|
998
|
+
"label": "Clear Data Validation from Selected Cells",
|
|
999
|
+
"description": "Remove the selected cells from every data validation rule covering them.",
|
|
1000
|
+
"groupLabels": {
|
|
1001
|
+
"dataValidationClearOptions": "From Selected Cells"
|
|
1002
|
+
},
|
|
1003
|
+
"tags": [
|
|
1004
|
+
"mutator"
|
|
1005
|
+
]
|
|
1006
|
+
},
|
|
1007
|
+
"dataValidationClearSheet": {
|
|
1008
|
+
"label": "Clear Data Validation from Entire Sheet",
|
|
1009
|
+
"description": "Remove every data validation rule on this sheet.",
|
|
1010
|
+
"groupLabels": {
|
|
1011
|
+
"dataValidationClearOptions": "From Entire Sheet"
|
|
1012
|
+
},
|
|
1013
|
+
"tags": [
|
|
1014
|
+
"mutator"
|
|
1015
|
+
]
|
|
1016
|
+
},
|
|
863
1017
|
"manageConditionalFormat": {
|
|
864
1018
|
"label": "Conditional Formatting",
|
|
865
1019
|
"description": "Manage conditional formatting rules to change how cells look based on their values.",
|
|
@@ -1115,7 +1269,10 @@
|
|
|
1115
1269
|
"convertTableToRange": {
|
|
1116
1270
|
"label": "Convert To Range",
|
|
1117
1271
|
"description": "Convert the table into a normal range of cells.\n\nThe values and the formatting are preserved.",
|
|
1118
|
-
"icon": "TableInsert"
|
|
1272
|
+
"icon": "TableInsert",
|
|
1273
|
+
"tags": [
|
|
1274
|
+
"mutator"
|
|
1275
|
+
]
|
|
1119
1276
|
},
|
|
1120
1277
|
"tableFilterToggle": {
|
|
1121
1278
|
"label": "Sort & Filter",
|
|
@@ -1326,6 +1483,13 @@
|
|
|
1326
1483
|
"mutator"
|
|
1327
1484
|
]
|
|
1328
1485
|
},
|
|
1486
|
+
"fillSeries": {
|
|
1487
|
+
"label": "Series…",
|
|
1488
|
+
"description": "Fill the selection with a series of numbers or dates, choosing the type, step value and stop value.",
|
|
1489
|
+
"tags": [
|
|
1490
|
+
"mutator"
|
|
1491
|
+
]
|
|
1492
|
+
},
|
|
1329
1493
|
"formatBorderAddOutline": {
|
|
1330
1494
|
"label": "Add Outline Border",
|
|
1331
1495
|
"description": "Apply an outline border.",
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
+
"autoFill.preset.copy": "Copy Cells",
|
|
3
|
+
"autoFill.preset.dateDays": "Day",
|
|
4
|
+
"autoFill.preset.dateMonthEnd": "Month End",
|
|
5
|
+
"autoFill.preset.dateMonths": "Month",
|
|
6
|
+
"autoFill.preset.dateWeekdays": "Weekday",
|
|
7
|
+
"autoFill.preset.dateYears": "Year",
|
|
8
|
+
"autoFill.preset.growth": "Growth",
|
|
9
|
+
"autoFill.preset.growthTrend": "Growth Trend",
|
|
10
|
+
"autoFill.preset.linear": "Linear",
|
|
11
|
+
"autoFill.preset.linearTrend": "Linear Trend",
|
|
12
|
+
"autoFill.preset.series": "AutoFill",
|
|
2
13
|
"chart.type.area": "Area Chart",
|
|
3
14
|
"chart.type.areaStacked": "Stacked Area Chart",
|
|
4
15
|
"chart.type.areaStackedPercent": "Percentage Area Chart",
|
|
@@ -23,6 +34,11 @@
|
|
|
23
34
|
"chart.type.scatterLinesMarkersSmooth": "Scatter Chart with Markers and Smooth Lines",
|
|
24
35
|
"chart.type.scatterLinesSmooth": "Scatter Chart with Smooth Lines",
|
|
25
36
|
"chart.type.scatterMarkers": "Scatter Chart with Markers",
|
|
37
|
+
"checklist.blanks": "(Blanks)",
|
|
38
|
+
"checklist.count": "{checked} / {total}",
|
|
39
|
+
"checklist.countFiltered": "{checked} / {total} (filtered)",
|
|
40
|
+
"checklist.selectAll": "(Select All)",
|
|
41
|
+
"checklist.truncated": "This column has more than 10,000 unique items. Only the first 10,000 unique items are displayed.",
|
|
26
42
|
"circular.converged": "{count, plural, one {Converged after # iteration} other {Converged after # iterations}}",
|
|
27
43
|
"circular.reads": "Reads a circular reference at",
|
|
28
44
|
"circular.title": "Circular reference",
|
|
@@ -44,7 +60,17 @@
|
|
|
44
60
|
"dialog.newCellStyle.inputLabel": "Style Name",
|
|
45
61
|
"dialog.newCellStyle.title": "New Cell Style",
|
|
46
62
|
"dialog.password.description": "Enter the password to unprotect this sheet.",
|
|
63
|
+
"dialog.password.incorrect": "That password is incorrect.",
|
|
64
|
+
"dialog.password.pauseDescription": "Enter the password to pause protection on this sheet.",
|
|
65
|
+
"dialog.password.required": "Enter a password.",
|
|
47
66
|
"dialog.password.title": "Password Required",
|
|
67
|
+
"dialog.pause": "Pause",
|
|
68
|
+
"dialog.sheetBackground.description": "Enter the web address for the background image.",
|
|
69
|
+
"dialog.sheetBackground.title": "Sheet Background from Web",
|
|
70
|
+
"dialog.unlock": "Unlock",
|
|
71
|
+
"dialog.unlockRange.description": "Enter the password to edit ''{name}''.",
|
|
72
|
+
"dialog.unlockRange.descriptionMany": "Enter the password for one of the ranges that cover this cell.",
|
|
73
|
+
"dialog.unlockRange.title": "Unlock Range",
|
|
48
74
|
"dialog.unprotect": "Unprotect",
|
|
49
75
|
"editMode.copy": "'Copy' Select destination and press ENTER or choose Paste.",
|
|
50
76
|
"editMode.cut": "'Cut' Select destination and press ENTER or choose Paste.",
|
|
@@ -58,8 +84,12 @@
|
|
|
58
84
|
"editMode.formatPainter": "Use the mouse to apply the copied format to another selection.",
|
|
59
85
|
"error.clipboard.perms": "You do not have permissions to access the clipboard.\nAll copy and paste operations will be limited to the browser tab.",
|
|
60
86
|
"error.clipboard.safari": "The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",
|
|
61
|
-
"error.
|
|
87
|
+
"error.fillSeries.invalidSelection": "Can not fill a series from this selection. Select the values to continue along with the cells to fill.",
|
|
88
|
+
"error.fillSeries.multipleRanges": "Can not fill a series across multiple cell ranges. Please select a single range and try again.",
|
|
89
|
+
"error.fillSeries.unknownType": "Unknown fill type.",
|
|
90
|
+
"error.insertImage.unresolved": "Unable to resolve image. {detail}",
|
|
62
91
|
"error.removeDuplicates.multipleRanges": "Can not perform Remove Duplicates on multiple cell ranges. Please select a single range and try again.",
|
|
92
|
+
"error.sheet.arrayFixedMultipleRanges": "An array formula can't be entered over a multiple selection.",
|
|
63
93
|
"error.sort.invalidSelection": "Invalid sort selection. Sort requires a single range with data.",
|
|
64
94
|
"error.sort.multipleRanges": "Can not sort on multiple cell ranges. Please select a single range and try again.",
|
|
65
95
|
"error.textToColumns.multipleRanges": "Can not perform Text to Columns on multiple cell ranges. Please select a single range and try again.",
|
|
@@ -71,6 +101,7 @@
|
|
|
71
101
|
"functionPreview.anyValue": "Any value",
|
|
72
102
|
"functionPreview.close": "Close",
|
|
73
103
|
"functionPreview.collapse": "Collapse",
|
|
104
|
+
"functionPreview.enumOutOfSet": "{value} is not one of this argument's values: {values}",
|
|
74
105
|
"functionPreview.expand": "Expand",
|
|
75
106
|
"functionPreview.optional": "Optional",
|
|
76
107
|
"functionPreview.repeatable": "Repeatable",
|
|
@@ -104,7 +135,6 @@
|
|
|
104
135
|
"op.moveCells": "Move Cells",
|
|
105
136
|
"op.moveMovable": "Move",
|
|
106
137
|
"op.nudgeMovable": "Nudge",
|
|
107
|
-
"op.numberFormat": "Number Format",
|
|
108
138
|
"op.resizeColumnsNamed": "{count, plural, one {Resize Column ''{name}''} other {Resize Columns ''{name}''}}",
|
|
109
139
|
"op.resizeMovable": "Resize",
|
|
110
140
|
"op.resizeRowsNamed": "{count, plural, one {Resize Row ''{name}''} other {Resize Rows ''{name}''}}",
|
|
@@ -114,8 +144,10 @@
|
|
|
114
144
|
"op.sortCustom": "Custom Sort",
|
|
115
145
|
"op.typeInto": "Type ''{text}'' into {range}",
|
|
116
146
|
"op.unmergeCells": "Unmerge Cells",
|
|
117
|
-
"op.updateComment": "Update Comment",
|
|
118
147
|
"op.updateHyperlink": "Update Hyperlink",
|
|
148
|
+
"picker.noMatches": "No matches",
|
|
149
|
+
"picker.noValues": "No values",
|
|
150
|
+
"picker.search": "Search",
|
|
119
151
|
"reason.alreadyTable": "The selection is already in a table.",
|
|
120
152
|
"reason.continuousSpan": "Not available with continuous / fill alignment.",
|
|
121
153
|
"reason.entireColumn": "Not available when entire columns are selected.",
|
|
@@ -127,12 +159,14 @@
|
|
|
127
159
|
"reason.noMerge": "No merged cells in the selection.",
|
|
128
160
|
"reason.noPreviousSearch": "Nothing has been searched for yet.",
|
|
129
161
|
"reason.noSelection": "Nothing is selected.",
|
|
162
|
+
"reason.noSheetBackground": "The sheet has no background.",
|
|
130
163
|
"reason.noTableStyle": "No table style to clear.",
|
|
131
164
|
"reason.nothingToRedo": "Nothing to redo.",
|
|
132
165
|
"reason.nothingToSelect": "Nothing to select.",
|
|
133
166
|
"reason.nothingToUndo": "Nothing to undo.",
|
|
134
167
|
"reason.notImplemented": "Not yet implemented.",
|
|
135
168
|
"reason.overlap": "Not available for an overlapping selection.",
|
|
169
|
+
"reason.protectionNotPausable": "Pausing needs a protected sheet.",
|
|
136
170
|
"reason.sheetLocked": "The sheet is locked.",
|
|
137
171
|
"reason.sheetProtected": "The sheet is protected.",
|
|
138
172
|
"reason.singleColumn": "Select a single column.",
|
|
@@ -166,6 +200,17 @@
|
|
|
166
200
|
"table.insertRows": "{count, plural, one{Insert Table Row} other{Insert # Table Rows}}",
|
|
167
201
|
"table.insertRows.description": "Insert rows above the selection, shifting cells down only within the table.",
|
|
168
202
|
"table.rows.compact": "{count, plural, one{Table Row} other{# Table Rows}}",
|
|
203
|
+
"table.totals.average": "Average",
|
|
204
|
+
"table.totals.count": "Count",
|
|
205
|
+
"table.totals.countNumbers": "Count Numbers",
|
|
206
|
+
"table.totals.max": "Max",
|
|
207
|
+
"table.totals.min": "Min",
|
|
208
|
+
"table.totals.moreFunctions": "More Functions...",
|
|
209
|
+
"table.totals.none": "None",
|
|
210
|
+
"table.totals.stdDev": "StdDev",
|
|
211
|
+
"table.totals.sum": "Sum",
|
|
212
|
+
"table.totals.var": "Var",
|
|
213
|
+
"validationTip.more": "{count, plural, one {# more rule} other {# more rules}}",
|
|
169
214
|
"workbook.untitled": "Untitled",
|
|
170
215
|
"workbookStrip.newSheet": "New sheet"
|
|
171
216
|
}
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
},
|
|
188
188
|
"editNamedReference": {
|
|
189
189
|
"label": "Edit Named Reference…",
|
|
190
|
-
"description": "
|
|
190
|
+
"description": "Edit the named reference. Names can be used as a substitute for cell references.",
|
|
191
191
|
"groupLabels": {
|
|
192
192
|
"namedItem": "Edit…"
|
|
193
193
|
},
|
|
@@ -201,6 +201,11 @@
|
|
|
201
201
|
},
|
|
202
202
|
"icon": "DeleteNamedRange"
|
|
203
203
|
},
|
|
204
|
+
"manageExternalLinks": {
|
|
205
|
+
"label": "Workbook Links",
|
|
206
|
+
"description": "See every workbook this one links to, go to the formulas that cite one, and break a link.",
|
|
207
|
+
"icon": "DataSetLinked"
|
|
208
|
+
},
|
|
204
209
|
"insertFunction": {
|
|
205
210
|
"label": "Insert Function",
|
|
206
211
|
"description": "Insert a function into the current cell.",
|
|
@@ -272,7 +277,10 @@
|
|
|
272
277
|
"label": "Name Manager",
|
|
273
278
|
"description": "Create, edit, delete, and find all the names used in the workbook.\n\nNames can be used as a substitute for cell references.",
|
|
274
279
|
"shortcut": "ctrl+F3",
|
|
275
|
-
"icon": "NamedManager"
|
|
280
|
+
"icon": "NamedManager",
|
|
281
|
+
"groupLabels": {
|
|
282
|
+
"namedItem": "Manage Names…"
|
|
283
|
+
}
|
|
276
284
|
},
|
|
277
285
|
"createNamedReferenceFromSelection": {
|
|
278
286
|
"label": "Create from Selection",
|
|
@@ -288,11 +296,6 @@
|
|
|
288
296
|
"label": "Workbook Statistics",
|
|
289
297
|
"description": "Show the workbook statistics.",
|
|
290
298
|
"shortcut": "ctrl+shift+G"
|
|
291
|
-
},
|
|
292
|
-
"showFormat": {
|
|
293
|
-
"label": "Show Format",
|
|
294
|
-
"description": "Open the format pane.",
|
|
295
|
-
"shortcut": "ctrl+shift+F"
|
|
296
299
|
}
|
|
297
300
|
}
|
|
298
301
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a surface CALLS each fill type.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* `AutoFill.Presets` is the registry and says what each preset does; this says what it is named, so
|
|
6
|
+
* a fill menu, a Series dialog, or a caller's own picker all read the same word for `date.weekdays`.
|
|
7
|
+
* Keyed by preset id rather than by filler, because a filler appears under several presets —
|
|
8
|
+
* `linear` and `linear.trend` are the same filler and are not the same entry.
|
|
9
|
+
*
|
|
10
|
+
* Where those entries SIT — their order, and which of them a given surface even lists — is that
|
|
11
|
+
* surface's own business and lives with it.
|
|
12
|
+
*/
|
|
13
|
+
export declare const AUTO_FILL_PRESET_LABELS: Readonly<Record<string, string>>;
|
|
14
|
+
//# sourceMappingURL=AutoFillPresets.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IRange, ISheet } from '@sheetxl/sdk';
|
|
2
|
+
import { IReactNotifier } from '@sheetxl/utils-react';
|
|
3
|
+
import { CommandContext } from '../frame';
|
|
4
|
+
/**
|
|
5
|
+
* The drag {@link createFillMenu} builds a menu for.
|
|
6
|
+
*/
|
|
7
|
+
export interface CreateFillMenuOptions {
|
|
8
|
+
sheet: ISheet;
|
|
9
|
+
/** The cells the fill reads — the selection the handle was dragged from. */
|
|
10
|
+
template: IRange.Coords;
|
|
11
|
+
/** The cells the fill covers, the template included — where the handle was released. */
|
|
12
|
+
destination: IRange.Coords;
|
|
13
|
+
/** Reports a rejected fill, shows the busy state, and opens the Series dialog. */
|
|
14
|
+
notifier?: IReactNotifier;
|
|
15
|
+
/**
|
|
16
|
+
* The drag is over: a fill ran, the Series dialog closed, or the menu closed without choosing.
|
|
17
|
+
* Called once — the grid drops the drag's dashed preview here.
|
|
18
|
+
*/
|
|
19
|
+
onSettled?: () => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The fill menu's context for a right-drag of the fill handle from `template` to `destination` —
|
|
23
|
+
* Excel's menu of Copy Cells / Fill Series / Fill Formatting Only / … / Series…
|
|
24
|
+
*
|
|
25
|
+
* @returns `null` where there is nothing to offer: the destination does not extend the template (a
|
|
26
|
+
* release on the handle's own corner, or a shrink), in which case the drag is best treated as a
|
|
27
|
+
* left-drag — a shrink clears whichever way the button was held.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Every question the menu has is answered here so the menu itself renders labels and calls back:
|
|
31
|
+
* which types apply is {@link ICellRange.getDefaultAutoFillCriteria} asked in its drag form, and a
|
|
32
|
+
* chosen entry runs through the same `autoFill` a left-drag runs, with the destination selected the
|
|
33
|
+
* same way afterwards.
|
|
34
|
+
*/
|
|
35
|
+
export declare function createFillMenu(options: CreateFillMenuOptions): CommandContext.FillMenu | null;
|
|
36
|
+
//# sourceMappingURL=FillMenu.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IRange, IAutoFill, ICellRange, ISheet } from '@sheetxl/sdk';
|
|
2
|
+
import { IReactNotifier } from '@sheetxl/utils-react';
|
|
3
|
+
import { CommandContext } from '../frame';
|
|
4
|
+
/**
|
|
5
|
+
* What the Series dialog is opened on — see {@link openFillSeries}.
|
|
6
|
+
*/
|
|
7
|
+
export interface OpenFillSeriesOptions {
|
|
8
|
+
sheet: ISheet;
|
|
9
|
+
/** Shows the dialog; nothing opens without one. */
|
|
10
|
+
notifier?: IReactNotifier;
|
|
11
|
+
/** The range the dialog reports as the selection. */
|
|
12
|
+
range: ICellRange;
|
|
13
|
+
/**
|
|
14
|
+
* The fill each direction implies — what the dialog offers, resolves and previews per radio. A
|
|
15
|
+
* direction that is absent, or `null`, has no room and its radio is disabled.
|
|
16
|
+
*/
|
|
17
|
+
byDirection: ReadonlyMap<IRange.Direction, IAutoFill.DefaultCriteria | null>;
|
|
18
|
+
/** The direction to open on. */
|
|
19
|
+
direction: IRange.Direction;
|
|
20
|
+
/** The {@link IAutoFill.Preset.id} to open on. */
|
|
21
|
+
presetId: string;
|
|
22
|
+
/** The dialog closed — after its fill ran, or without one. */
|
|
23
|
+
onClosed?: () => void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Open the Series dialog and run the fill it answers with.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* Two surfaces reach the dialog: the `fillSeries` command, which infers the template and both
|
|
30
|
+
* directions from the selection, and the fill menu's `Series…`, where a drag has already said which
|
|
31
|
+
* cells are read, which are covered and which way — so only that direction is offered. Both hand the
|
|
32
|
+
* criteria over here and share everything else: the context the dialog asks its questions of, and
|
|
33
|
+
* what happens when it answers.
|
|
34
|
+
*/
|
|
35
|
+
export declare function openFillSeries(options: OpenFillSeriesOptions): void;
|
|
36
|
+
/** The `autoFill` options a dialog result names — resolving the preset the surface named it by. */
|
|
37
|
+
export declare function fillOptionsOf(options: CommandContext.FillSeriesOptions): ICellRange.AutoFillOptions;
|
|
38
|
+
//# sourceMappingURL=FillSeries.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IBorders } from '@sheetxl/sdk';
|
|
3
3
|
export interface StaticBorderRendererProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
/**
|
|
5
5
|
* Returns a border for the given value and index.
|
|
6
6
|
*/
|
|
7
|
-
getBorderAt?: (value: any, index: number) =>
|
|
7
|
+
getBorderAt?: (value: any, index: number) => IBorders;
|
|
8
8
|
rowCount?: number;
|
|
9
9
|
columnCount?: number;
|
|
10
10
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IBorders, IRange, ICell } from '@sheetxl/sdk';
|
|
3
3
|
import { IGridPane, IGridMetrics } from '@sheetxl/grid-react';
|
|
4
4
|
export interface BorderRenderProps {
|
|
5
|
-
stroke:
|
|
5
|
+
stroke: IBorders.IStroke;
|
|
6
6
|
range: IRange.Coords;
|
|
7
7
|
points: number[];
|
|
8
8
|
key: string;
|
|
@@ -10,7 +10,7 @@ export interface BorderRenderProps {
|
|
|
10
10
|
* Which cell edge this stroke belongs to. Trailing edges (right/bottom) are
|
|
11
11
|
* shifted to sit after the divider; leading edges (left/top) sit before it.
|
|
12
12
|
*/
|
|
13
|
-
edge?:
|
|
13
|
+
edge?: IBorders.Edge;
|
|
14
14
|
/**
|
|
15
15
|
* Int Hint to tell the border the direction that it is rendering
|
|
16
16
|
*/
|
|
@@ -27,8 +27,8 @@ export interface BorderRenderProps {
|
|
|
27
27
|
* Used for generating corners for wide borders. If not provided then borders will simply overlap.
|
|
28
28
|
*/
|
|
29
29
|
intersections?: {
|
|
30
|
-
stroke:
|
|
31
|
-
edge?:
|
|
30
|
+
stroke: IBorders.IStroke;
|
|
31
|
+
edge?: IBorders.Edge;
|
|
32
32
|
range: IRange.Coords;
|
|
33
33
|
}[];
|
|
34
34
|
/**
|
|
@@ -58,9 +58,9 @@ export interface UseBorderOptions {
|
|
|
58
58
|
*
|
|
59
59
|
* @param value - ?
|
|
60
60
|
* @param index - ?
|
|
61
|
-
* @returns The
|
|
61
|
+
* @returns The IBorders at the location.
|
|
62
62
|
*/
|
|
63
|
-
getBorderAt?: (value: any, index: number) =>
|
|
63
|
+
getBorderAt?: (value: any, index: number) => IBorders;
|
|
64
64
|
/**
|
|
65
65
|
* Allow users to customize border rendering.
|
|
66
66
|
* Note - This is wrapped in a single SVG so must be an SVG Element type (like a path).
|
|
@@ -7,7 +7,7 @@ export interface FormulaCellRendererProps extends React.HTMLAttributes<HTMLDivEl
|
|
|
7
7
|
/** The formula cell being rendered (styling source: font, alignment, insets). */
|
|
8
8
|
cell: ICell;
|
|
9
9
|
/**
|
|
10
|
-
* The formula's tokens (`createFormula(
|
|
10
|
+
* The formula's tokens (`createFormula(cell.getFormulaText(), …).getTokens()`).
|
|
11
11
|
* Rendered verbatim after a leading `=`, each span colored by {@link tokenColor} — reference
|
|
12
12
|
* tokens rotate the shared `--sxl-color-series-*` palette by `referenceIndex`, the SAME hues the
|
|
13
13
|
* range picker outlines with, so text and rectangle always match.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IStyle, ICell } from '@sheetxl/sdk';
|
|
3
|
+
import { StaticBorderRendererProps } from '../border';
|
|
4
|
+
export interface StaticCellRendererProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* The text to render. Ignored when {@link cell} is given (the cell's own display text is used).
|
|
7
|
+
*/
|
|
8
|
+
value?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The style to preview, applied on top of the cell {@link createCell} mints.
|
|
11
|
+
*/
|
|
12
|
+
cellStyle?: IStyle.Update;
|
|
13
|
+
/**
|
|
14
|
+
* Mints the cell that backs the preview — a workbook-attached factory, so theme colors, named
|
|
15
|
+
* styles and the number format resolve exactly as they would in the grid.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Usually `(update) => sheet.createCell(update)`. Without one nothing is rendered but the frame:
|
|
19
|
+
* a style has no meaning detached from the workbook that defines its theme.
|
|
20
|
+
*/
|
|
21
|
+
createCell?: (update: ICell.Update) => ICell | null;
|
|
22
|
+
/**
|
|
23
|
+
* Render this ALREADY-BUILT cell instead of minting one — what the format panels preview (the
|
|
24
|
+
* live selected cell), where `createCell` would only re-derive what the caller already holds.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Wins over `value`/`cellStyle`/`createCell` when present.
|
|
28
|
+
*/
|
|
29
|
+
cell?: ICell | null;
|
|
30
|
+
/**
|
|
31
|
+
* Props forwarded to the border renderer that draws the cell's edges.
|
|
32
|
+
*/
|
|
33
|
+
propsBorder?: Partial<StaticBorderRendererProps>;
|
|
34
|
+
/**
|
|
35
|
+
* Dim the preview, matching a disabled control it labels.
|
|
36
|
+
*/
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Ref to the root element (React 19 ref-as-prop).
|
|
40
|
+
*/
|
|
41
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A single cell rendered as plain DOM from the model's own CSS — the swatch behind the cell-styles
|
|
45
|
+
* gallery and the format panels' preview.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* This is a PREVIEW, not the grid renderer: one cell, no measurement, no editing, no overflow into
|
|
49
|
+
* neighbors. It reads fill / font / border / alignment off an `IStyle` and paints them directly, so
|
|
50
|
+
* it stays truthful to the workbook's theme without paying for a grid.
|
|
51
|
+
*
|
|
52
|
+
* It adopts the GRID surface (`data-sxl-theme-surface="grid"`) and the grid's light/dark mode even
|
|
53
|
+
* when it renders inside app chrome — a preview of a cell has to resolve `auto` colors the way that
|
|
54
|
+
* cell will, not the way the toolbar around it does.
|
|
55
|
+
*/
|
|
56
|
+
export declare const StaticCellRenderer: React.MemoExoticComponent<(props: StaticCellRendererProps) => React.JSX.Element>;
|
|
57
|
+
//# sourceMappingURL=StaticCellRenderer.d.ts.map
|
|
@@ -11,7 +11,7 @@ export interface FormulaViewAnchor {
|
|
|
11
11
|
/** The anchor cell itself (styling source for the overlay renderer). */
|
|
12
12
|
cell: ICell;
|
|
13
13
|
/**
|
|
14
|
-
* The formula's tokens (resilient tokenizer over `
|
|
14
|
+
* The formula's tokens (resilient tokenizer over `getFormulaText()`), index-aligned with
|
|
15
15
|
* {@link ranges} via each token's `referenceIndex`.
|
|
16
16
|
*/
|
|
17
17
|
tokens: readonly ICalculation.FormulaToken[];
|