@sheetxl/react 0.8.0-beta.10 → 0.8.0-beta.11
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/esm/{CYoUd5KIl7W3AsxH.mjs → 1-LEUre9ZLG0OYYB.mjs} +24 -23
- package/browser/esm/94dxo1A-z8lgiiGw.mjs +128 -0
- package/browser/esm/{BwRduT8FTrk5n72r.mjs → B26QVfjer2oY2ewK.mjs} +1 -1
- package/browser/esm/B93LSmhnvkxNXTq-.mjs +42 -0
- package/browser/esm/{BZcQ-KYwS62Ut45c.mjs → BQYS2Yf-EAV_tBLr.mjs} +1 -1
- package/browser/esm/BegvsXeRs7e-9t8k.mjs +8 -0
- package/browser/esm/Bl2BFCQ00fotauKB.mjs +36 -0
- package/browser/esm/{Cfe0kofqVKGxLqO6.mjs → Bos4Rkp8UTF7QXUB.mjs} +1 -1
- package/browser/esm/{Dd-ZybXAgoq9pgGv.mjs → C1pc9F4Rt2C5FKUo.mjs} +1 -1
- package/browser/esm/{C6urN77szrYwODXF.mjs → CPnnESfZz2jjJd82.mjs} +1 -1
- package/browser/esm/CRi6DQ3UXmPEv-w_.mjs +729 -0
- package/browser/esm/{BuvXl14hs-1CvjeA.mjs → ClAtIfYbsUPA073B.mjs} +1 -1
- package/browser/esm/CzRIbc-Lk__VMLKM.mjs +60 -0
- package/browser/esm/{DyU9UInRnfkPYYlR.mjs → D2u6THGErqw64KQI.mjs} +1 -1
- package/browser/esm/{cYjYjqEsyd63x8t4.mjs → DMdsMPT0fWBbTkNn.mjs} +1 -1
- package/browser/esm/{Bow9CzRJrYxak2i5.mjs → DS66lAIM-9M-YoZQ.mjs} +5 -8
- package/browser/esm/DgL7Dy-Lqcr1TvW6.mjs +23528 -0
- package/browser/esm/{DjiBz4H74I6nPUY6.mjs → Dnh1kpz3v1JKtRD_.mjs} +2 -2
- package/browser/esm/{Sp6PJavGKpF8SJzA.mjs → cQ6xdPFkEcuDlNTN.mjs} +1 -1
- package/browser/esm/chart.mjs +32 -52
- package/browser/esm/control.mjs +2 -2
- package/browser/esm/group.mjs +3 -3
- package/browser/esm/index.mjs +6590 -4824
- package/browser/esm/note.mjs +73 -47
- package/browser/esm/picture.mjs +2 -2
- package/browser/esm/shape.mjs +2 -2
- package/browser/esm/slicer.mjs +5 -5
- package/browser/esm/ugfE7YeZALQURDKF.mjs +241 -0
- package/licenses/dependencies.txt +313 -1
- package/node/esm/6zApGj9DozhFy-bx.mjs +35 -0
- package/node/esm/{DPN0n6MGYQ9vZ2KO.mjs → BMVK5plvmBOAIlxP.mjs} +1 -1
- package/node/esm/{Dxbm6ryIDCEi26RO.mjs → BaRfst1euuhquupX.mjs} +1 -1
- package/node/esm/{BJ7ZZm63j5O6cvrB.mjs → Be9c1GwQkPo8Piuh.mjs} +1 -1
- package/node/esm/{DhSq680c5tgMFFbj.mjs → BiaDWnN3tT7neoRL.mjs} +1 -1
- package/node/esm/BlxXufqBBg1PtsXd.mjs +8 -0
- package/node/esm/{CM5BT7h-hMtST2bE.mjs → C_SNx7TlFEcwbYjx.mjs} +1 -1
- package/node/esm/DJPgbB1X22YmhbaR.mjs +242 -0
- package/node/esm/DTMTIrYIK1eZswsM.mjs +37 -0
- package/node/esm/{Buw-VKYJy3y5dbaJ.mjs → D_pCpfdQowV_4Aje.mjs} +23 -22
- package/node/esm/{DYosMUJKp-3MSO4q.mjs → DgGEHydEjD7nfsDB.mjs} +1 -1
- package/node/esm/{CFFlJxNwgyInjEnh.mjs → Dj5FM7_-YWhCtCCt.mjs} +1 -1
- package/node/esm/{GkmuxU7OwRZtm2Rf.mjs → DxQZmb-j4NLUO9Af.mjs} +1 -1
- package/node/esm/{BfRn5S5V4X8xIAEa.mjs → JiQGhLkoL8CJpVvA.mjs} +1 -1
- package/node/esm/b-XRVRI1fYQQMkTC.mjs +1664 -0
- package/node/esm/chart.mjs +32 -52
- package/node/esm/control.mjs +2 -2
- package/node/esm/{C_ANM4feA1xV-pri.mjs → gpD-9LDW92phhoma.mjs} +1 -1
- package/node/esm/group.mjs +3 -3
- package/node/esm/index.mjs +9005 -7225
- package/node/esm/note.mjs +86 -60
- package/node/esm/picture.mjs +2 -2
- package/node/esm/shape.mjs +292 -340
- package/node/esm/sigD1UFqvPlWUw_9.mjs +128 -0
- package/node/esm/slicer.mjs +15 -15
- package/node/esm/{D3YXHeOyFp00Xk3m.mjs → umljAT66yb3_rURh.mjs} +53 -56
- package/package.json +8 -6
- package/resources/contents.json +6 -0
- package/resources/locales/contents.json +14 -0
- package/resources/locales/de/chart.cmd.json +82 -0
- package/resources/locales/de/sheet.cmd.json +11 -0
- package/resources/locales/de/table.cmd.json +1 -1
- package/resources/locales/de/ui.msg.json +12 -0
- package/resources/locales/de/workbook.cmd.json +5 -0
- package/resources/locales/en/chart.cmd.json +82 -0
- package/resources/locales/en/sheet.cmd.json +11 -0
- package/resources/locales/en/table.cmd.json +1 -1
- package/resources/locales/en/ui.msg.json +12 -0
- package/resources/locales/en/workbook.cmd.json +5 -0
- package/types/src/autoFill/FillMenu.d.ts +2 -2
- package/types/src/autoFill/FillSeries.d.ts +2 -2
- package/types/src/border/StaticBorderRenderer.d.ts +18 -1
- package/types/src/border/useBorders.d.ts +74 -1
- package/types/src/cell/FormulaCellRenderer.d.ts +5 -2
- package/types/src/cell/useFormulaViewAnchor.d.ts +2 -2
- package/types/src/chart/ChartCommands.d.ts +15 -0
- package/types/src/chart/ChartEditor.d.ts +10 -2
- package/types/src/chart/ChartElement.d.ts +111 -0
- package/types/src/chart/ChartKind.d.ts +7 -0
- package/types/src/chart/PresetChartTypeDescriptors.d.ts +3 -1
- package/types/src/chart/index.d.ts +2 -0
- package/types/src/chart/paint/_fills.d.ts +24 -0
- package/types/src/chart/paint/_graphics.d.ts +46 -0
- package/types/src/chart/paint/echarts.d.ts +30 -0
- package/types/src/chart/paint/index.d.ts +12 -0
- package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +132 -0
- package/types/src/chart/paint/kinds/_Area.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Bar.d.ts +3 -0
- package/types/src/chart/paint/kinds/_BoxWhisker.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Bubble.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Funnel.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Histogram.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Line.d.ts +10 -0
- package/types/src/chart/paint/kinds/_OfPie.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Pie.d.ts +21 -0
- package/types/src/chart/paint/kinds/_Placeholder.d.ts +7 -0
- package/types/src/chart/paint/kinds/_Radar.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Scatter.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Sunburst.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Surface.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Treemap.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Waterfall.d.ts +3 -0
- package/types/src/chart/paint/kinds/_builtIns.d.ts +12 -0
- package/types/src/chart/paint/toEChartsOption.d.ts +31 -0
- package/types/src/clipboard/ClipboardCommands.d.ts +3 -3
- package/types/src/clipboard/SheetClipboardLayer.d.ts +2 -2
- package/types/src/comment/CommentCardRequest.d.ts +9 -9
- package/types/src/comment/useSheetComments.d.ts +2 -2
- package/types/src/context/WorksheetContext.d.ts +18 -0
- package/types/src/context/index.d.ts +1 -1
- package/types/src/editor/EditorCommands.d.ts +3 -3
- package/types/src/editor/SheetCellEditorLayer.d.ts +2 -2
- package/types/src/editor/SheetCellEditorStartLayer.d.ts +22 -5
- package/types/src/editor/SheetEditable.d.ts +6 -6
- package/types/src/editor/SheetReferenceLayer.d.ts +4 -4
- package/types/src/editor/VirtualKeyboardLayer.d.ts +49 -0
- package/types/src/editor/formulaAnchor.d.ts +12 -0
- package/types/src/editor/index.d.ts +1 -0
- package/types/src/editor/pickedReference.d.ts +3 -3
- package/types/src/editor/useEditRejectedNotice.d.ts +3 -3
- package/types/src/editor/useFormulaHints.d.ts +2 -2
- package/types/src/editor/validationAlert.d.ts +3 -3
- package/types/src/frame/CommandContext.d.ts +7 -7
- package/types/src/index.d.ts +2 -0
- package/types/src/layer/BorderLayer.d.ts +2 -2
- package/types/src/layer/CellErrorLayer.d.ts +2 -2
- package/types/src/layer/CellFillLayer.d.ts +2 -2
- package/types/src/layer/CellInsertLayer.d.ts +71 -0
- package/types/src/layer/CircularIndicatorLayer.d.ts +2 -2
- package/types/src/layer/CommentCardLayer.d.ts +2 -2
- package/types/src/layer/CommentsLayer.d.ts +2 -2
- package/types/src/layer/ConditionalBarLayer.d.ts +2 -2
- package/types/src/layer/ConditionalIconsLayer.d.ts +2 -2
- package/types/src/layer/ContextMenuLayer.d.ts +2 -2
- package/types/src/layer/GridFreezeLayer.d.ts +2 -2
- package/types/src/layer/HyperlinkLayer.d.ts +3 -3
- package/types/src/layer/MovableKindScope.d.ts +2 -2
- package/types/src/layer/ProtectionLayer.d.ts +3 -3
- package/types/src/layer/RangeAnnotationLayer.d.ts +2 -2
- package/types/src/layer/ResizeIndicator.d.ts +2 -2
- package/types/src/layer/SheetBackgroundLayer.d.ts +3 -3
- package/types/src/layer/SheetCellLayer.d.ts +4 -4
- package/types/src/layer/SheetColumnButtonLayer.d.ts +2 -2
- package/types/src/layer/SheetGridLineLayer.d.ts +11 -13
- package/types/src/layer/SheetLayers.d.ts +115 -0
- package/types/src/layer/SheetMovableLayer.d.ts +2 -2
- package/types/src/layer/SheetOutlineLayer.d.ts +2 -2
- package/types/src/layer/SheetTableCommandLayer.d.ts +2 -2
- package/types/src/layer/SpillLayer.d.ts +2 -2
- package/types/src/layer/TableLayer.d.ts +2 -2
- package/types/src/layer/TableToolbar.d.ts +3 -3
- package/types/src/layer/ValidationDropdownLayer.d.ts +2 -2
- package/types/src/layer/ValidationIndicatorLayer.d.ts +2 -2
- package/types/src/layer/ValidationPromptLayer.d.ts +5 -4
- package/types/src/layer/_tableColor.d.ts +2 -2
- package/types/src/layer/index.d.ts +2 -0
- package/types/src/layer/useFreezeDrag.d.ts +2 -2
- package/types/src/layer/useNormalBorderLines.d.ts +15 -0
- package/types/src/layer/useSheetFeatureRegions.d.ts +2 -2
- package/types/src/layer/useSheetVisibleCells.d.ts +2 -2
- package/types/src/layer/useSheetVisibleDecorations.d.ts +2 -2
- package/types/src/layer/useTableHeaderCells.d.ts +2 -2
- package/types/src/layer/useValidationPicker.d.ts +2 -2
- package/types/src/layer/useVisibleTables.d.ts +2 -2
- package/types/src/layer/validationMark.d.ts +3 -3
- package/types/src/listener/index.d.ts +5 -0
- package/types/src/listener/useCell.d.ts +29 -0
- package/types/src/listener/useCellRange.d.ts +23 -0
- package/types/src/listener/useCellValue.d.ts +26 -0
- package/types/src/listener/useModelListener.d.ts +4 -4
- package/types/src/listener/useRangeSnapshot.d.ts +35 -0
- package/types/src/listener/useTable.d.ts +26 -0
- package/types/src/movable/DefaultMovable.d.ts +8 -0
- package/types/src/movable/MovableCommands.d.ts +2 -2
- package/types/src/movable/MovableRenderers.d.ts +3 -3
- package/types/src/movable/index.d.ts +1 -0
- package/types/src/picker/cellPickerOpen.d.ts +3 -3
- package/types/src/picker/useCellPicker.d.ts +2 -2
- package/types/src/richText/RichTextEditor.d.ts +2 -2
- package/types/src/selection/SelectionCommands.d.ts +2 -2
- package/types/src/selection/SheetSelectionLayer.d.ts +2 -2
- package/types/src/sheet/ISheetHeaderElement.d.ts +1 -1
- package/types/src/sheet/{ISheetElement.d.ts → IWorksheetElement.d.ts} +46 -13
- package/types/src/sheet/OpaqueSheetElement.d.ts +21 -0
- package/types/src/sheet/SheetCommandProvider.d.ts +2 -2
- package/types/src/sheet/SheetCommands.d.ts +2 -2
- package/types/src/sheet/SheetKindIcon.d.ts +14 -0
- package/types/src/sheet/SheetOutlineElement.d.ts +4 -4
- package/types/src/sheet/SheetPanels.d.ts +11 -0
- package/types/src/sheet/SheetScrollbar.d.ts +3 -3
- package/types/src/sheet/TopLeftCorner.d.ts +2 -2
- package/types/src/sheet/WorksheetElement.d.ts +12 -0
- package/types/src/sheet/_freezeAt.d.ts +2 -2
- package/types/src/sheet/circularReferences.d.ts +3 -3
- package/types/src/sheet/index.d.ts +5 -2
- package/types/src/sheet/useCycleHighlight.d.ts +2 -2
- package/types/src/tabStrip/SheetTab.d.ts +1 -1
- package/types/src/table/TableCommands.d.ts +2 -2
- package/types/src/taskPane/TaskPaneArea.d.ts +7 -0
- package/types/src/theme/buildOOXMLThemeCSS.d.ts +2 -2
- package/types/src/theme/useGridColorScheme.d.ts +1 -1
- package/types/src/theme/useSystemColors.d.ts +2 -2
- package/types/src/workbook/DefaultRenderers.d.ts +3 -2
- package/types/src/workbook/IWorkbookElement.d.ts +27 -5
- package/browser/esm/BHjeSMaycUkS5dVL.mjs +0 -66
- package/browser/esm/CYMRbtPIr6SklGpp.mjs +0 -775
- package/browser/esm/CiRN-woJZWYOgTn4.mjs +0 -36
- package/browser/esm/J8cPagZBeXz86Lnd.mjs +0 -777
- package/node/esm/BpwE3HqTnrLLzE3C.mjs +0 -775
- package/node/esm/CV3bT3Hql74GcHoU.mjs +0 -37
- package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/area-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/area-template.json.d.ts +0 -9
- package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/bar-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/bar-template.json.d.ts +0 -9
- package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/column-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/column-template.json.d.ts +0 -9
- package/types/src/chart/templates/line-markers-template.json.d.ts +0 -10
- package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +0 -11
- package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +0 -11
- package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/line-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/line-template.json.d.ts +0 -9
- package/types/src/chart/templates/pie-doughnut-template.json.d.ts +0 -10
- package/types/src/chart/templates/pie-template.json.d.ts +0 -9
- package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-lines-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-markers-template.json.d.ts +0 -10
- package/types/src/context/SheetContext.d.ts +0 -18
- package/types/src/sheet/SheetElement.d.ts +0 -15
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"commands": {
|
|
8
8
|
"insertSlicer": {
|
|
9
9
|
"label": "Datenschnitt einfügen",
|
|
10
|
-
"description": "Fügt einen Datenschnitt hinzu, der die Tabelle nach der ausgewählten Spalte filtert. Eine ausgewählte Formatvorlage
|
|
10
|
+
"description": "Fügt einen Datenschnitt hinzu, der die Tabelle nach der ausgewählten Spalte filtert. Eine ausgewählte Formatvorlage fügt einen in dieser Formatvorlage hinzu.",
|
|
11
11
|
"icon": "SlicerInsert",
|
|
12
12
|
"tags": [
|
|
13
13
|
"mutator"
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
"cellError.description.value": "Ein Wert hat den falschen Typ für die Formel oder Funktion",
|
|
31
31
|
"cellError.error": "Fehler",
|
|
32
32
|
"cellError.warning": "Warnung",
|
|
33
|
+
"cellInsert.columnHere": "Spalte hier einfügen",
|
|
34
|
+
"cellInsert.rowHere": "Zeile hier einfügen",
|
|
33
35
|
"chart.type.area": "Flächendiagramm",
|
|
34
36
|
"chart.type.areaStacked": "Gestapeltes Flächendiagramm",
|
|
35
37
|
"chart.type.areaStackedPercent": "100% gestapeltes Flächendiagramm",
|
|
@@ -75,6 +77,9 @@
|
|
|
75
77
|
"dialog.change": "Ändern",
|
|
76
78
|
"dialog.changePicture.description": "Geben Sie die Webadresse des Bildes ein, das stattdessen angezeigt werden soll.",
|
|
77
79
|
"dialog.changePicture.title": "Bild aus dem Web ändern",
|
|
80
|
+
"dialog.chartSelectData.description": "Geben Sie die Adresse der darzustellenden Zellen ein, mit den Reihennamen und Rubriken daneben.",
|
|
81
|
+
"dialog.chartSelectData.inputLabel": "Datenbereich",
|
|
82
|
+
"dialog.chartSelectData.title": "Daten auswählen",
|
|
78
83
|
"dialog.confirm.title": "Bestätigen",
|
|
79
84
|
"dialog.goTo": "Gehe zu",
|
|
80
85
|
"dialog.goTo.inputLabel": "Position",
|
|
@@ -92,6 +97,7 @@
|
|
|
92
97
|
"dialog.password.required": "Geben Sie ein Kennwort ein.",
|
|
93
98
|
"dialog.password.title": "Kennwort erforderlich",
|
|
94
99
|
"dialog.pause": "Anhalten",
|
|
100
|
+
"dialog.select": "Auswählen",
|
|
95
101
|
"dialog.sheetBackground.description": "Geben Sie die Webadresse des Hintergrundbildes ein.",
|
|
96
102
|
"dialog.sheetBackground.title": "Blatthintergrund aus dem Web",
|
|
97
103
|
"dialog.unlock": "Freigeben",
|
|
@@ -187,6 +193,10 @@
|
|
|
187
193
|
"op.typeInto": "''{text}'' in {range} eingeben",
|
|
188
194
|
"op.unmergeCells": "Zellverbund aufheben",
|
|
189
195
|
"op.updateHyperlink": "Link aktualisieren",
|
|
196
|
+
"opaqueSheet.carried": "Dieses Blatt wird so beibehalten, wie es gelesen wurde, und unverändert gespeichert. Es kann umbenannt, verschoben, ausgeblendet, eingefärbt oder gelöscht, aber noch nicht angezeigt werden.",
|
|
197
|
+
"opaqueSheet.kind.chart": "Diagrammblatt",
|
|
198
|
+
"opaqueSheet.kind.dialog": "Dialogblatt (Excel 5)",
|
|
199
|
+
"opaqueSheet.kind.macro": "Excel 4.0-Makroblatt",
|
|
190
200
|
"outline.collapse": "Reduzieren",
|
|
191
201
|
"outline.expand": "Erweitern",
|
|
192
202
|
"outline.showLevel": "Ebene {level} anzeigen",
|
|
@@ -198,6 +208,7 @@
|
|
|
198
208
|
"reason.cannotFlip": "Keine der ausgewählten Zeichnungen kann gespiegelt werden.",
|
|
199
209
|
"reason.cellHasNote": "Die Zelle hat eine Notiz.",
|
|
200
210
|
"reason.cellHasThread": "Die Zelle hat einen Kommentar mit Antworten.",
|
|
211
|
+
"reason.chartTypeNotEditable": "Ein Diagramm dieses Typs kann noch nicht bearbeitet werden; Titel und Legende schon.",
|
|
201
212
|
"reason.connectorShape": "Eine Linie oder ein Verbinder kann nicht in eine andere Form geändert werden.",
|
|
202
213
|
"reason.continuousSpan": "Nicht verfügbar bei fortlaufender Ausrichtung oder Ausfüllen.",
|
|
203
214
|
"reason.entireColumn": "Nicht verfügbar, wenn ganze Spalten ausgewählt sind.",
|
|
@@ -217,6 +228,7 @@
|
|
|
217
228
|
"reason.noSelection": "Nichts ausgewählt.",
|
|
218
229
|
"reason.noSheetBackground": "Das Blatt hat keinen Hintergrund.",
|
|
219
230
|
"reason.noTableStyle": "Keine Tabellenformatvorlage zum Entfernen.",
|
|
231
|
+
"reason.noTaskPane": "Es gibt keinen Aufgabenbereich, in dem dies angezeigt werden kann.",
|
|
220
232
|
"reason.notImplemented": "Noch nicht implementiert.",
|
|
221
233
|
"reason.nothingToRedo": "Nichts zu wiederholen.",
|
|
222
234
|
"reason.nothingToSelect": "Nichts auszuwählen.",
|
|
@@ -206,6 +206,11 @@
|
|
|
206
206
|
"description": "Alle Arbeitsmappen anzeigen, mit denen diese verknüpft ist, zu den zitierenden Formeln springen und eine Verknüpfung aufheben.",
|
|
207
207
|
"icon": "ExternalLinked"
|
|
208
208
|
},
|
|
209
|
+
"showAnomaliesPane": {
|
|
210
|
+
"label": "Anomalien",
|
|
211
|
+
"description": "Auflisten, wo das Blatt seine eigenen Muster bricht: eine Formel, die ihren Nachbarn nicht gleicht, ein eingegebener Wert zwischen Formeln, ein Format, das seine Reihe unterbricht.",
|
|
212
|
+
"icon": "Find"
|
|
213
|
+
},
|
|
209
214
|
"insertFunction": {
|
|
210
215
|
"label": "Funktion einfügen",
|
|
211
216
|
"description": "Eine Funktion in die aktuelle Zelle einfügen.",
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../../utils-react/command-catalog.schema.json",
|
|
3
|
+
"scope": "chart",
|
|
4
|
+
"label": "Chart",
|
|
5
|
+
"tag": "en",
|
|
6
|
+
"version": 1,
|
|
7
|
+
"commands": {
|
|
8
|
+
"chartChangeType": {
|
|
9
|
+
"label": "Change Chart Type",
|
|
10
|
+
"description": "Draw every series as another type of chart.",
|
|
11
|
+
"tags": [
|
|
12
|
+
"mutator"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"chartSwitchRowColumn": {
|
|
16
|
+
"label": "Switch Row/Column",
|
|
17
|
+
"description": "Plot the data's rows as series instead of its columns, or the other way round.",
|
|
18
|
+
"tags": [
|
|
19
|
+
"mutator"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"chartSelectData": {
|
|
23
|
+
"label": "Select Data",
|
|
24
|
+
"description": "Change the cells the chart plots.",
|
|
25
|
+
"groupLabels": {
|
|
26
|
+
"contextMenu": "Select Data…"
|
|
27
|
+
},
|
|
28
|
+
"tags": [
|
|
29
|
+
"mutator"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"chartAddElement": {
|
|
33
|
+
"label": "Add Chart Element",
|
|
34
|
+
"description": "Add, move or remove a title, legend, data labels, data table, gridlines, axis titles, trendlines, error bars, lines or up/down bars.",
|
|
35
|
+
"tags": [
|
|
36
|
+
"mutator"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"chartTitleToggle": {
|
|
40
|
+
"label": "Chart Title",
|
|
41
|
+
"description": "Show the chart's title above the chart, or remove it.",
|
|
42
|
+
"tags": [
|
|
43
|
+
"mutator"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"chartLegendToggle": {
|
|
47
|
+
"label": "Legend",
|
|
48
|
+
"description": "Show the legend at the right, or remove it.",
|
|
49
|
+
"tags": [
|
|
50
|
+
"mutator"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"chartDataLabelsToggle": {
|
|
54
|
+
"label": "Data Labels",
|
|
55
|
+
"description": "Label every point with its value, or remove the labels.",
|
|
56
|
+
"tags": [
|
|
57
|
+
"mutator"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"chartDataTableToggle": {
|
|
61
|
+
"label": "Data Table",
|
|
62
|
+
"description": "Show the plotted values in a table under the chart, or remove it.",
|
|
63
|
+
"tags": [
|
|
64
|
+
"mutator"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"chartGridlinesToggle": {
|
|
68
|
+
"label": "Gridlines",
|
|
69
|
+
"description": "Show the value axis's major gridlines, or remove them.",
|
|
70
|
+
"tags": [
|
|
71
|
+
"mutator"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"chartAxisTitlesToggle": {
|
|
75
|
+
"label": "Axis Titles",
|
|
76
|
+
"description": "Show a title on each primary axis, or remove them.",
|
|
77
|
+
"tags": [
|
|
78
|
+
"mutator"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -1065,6 +1065,17 @@
|
|
|
1065
1065
|
"mutator"
|
|
1066
1066
|
]
|
|
1067
1067
|
},
|
|
1068
|
+
"insertChart": {
|
|
1069
|
+
"label": "Insert Chart",
|
|
1070
|
+
"description": "Insert a chart of the selected cells.",
|
|
1071
|
+
"groupLabels": {
|
|
1072
|
+
"contextMenu": "Insert Chart…"
|
|
1073
|
+
},
|
|
1074
|
+
"shortcut": "alt+F1",
|
|
1075
|
+
"tags": [
|
|
1076
|
+
"mutator"
|
|
1077
|
+
]
|
|
1078
|
+
},
|
|
1068
1079
|
"sheetBackgroundToggle": {
|
|
1069
1080
|
"label": "Toggle Sheet Background",
|
|
1070
1081
|
"description": "Add or remove the picture that is tiled behind the sheet's cells.",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"commands": {
|
|
8
8
|
"insertSlicer": {
|
|
9
9
|
"label": "Insert Slicer",
|
|
10
|
-
"description": "Add a slicer that filters the table by the selected column. Picking a style
|
|
10
|
+
"description": "Add a slicer that filters the table by the selected column. Picking a style adds one in that style.",
|
|
11
11
|
"icon": "SlicerInsert",
|
|
12
12
|
"tags": [
|
|
13
13
|
"mutator"
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
"cellError.description.value": "A value is the wrong type for the formula or function",
|
|
31
31
|
"cellError.error": "Error",
|
|
32
32
|
"cellError.warning": "Warning",
|
|
33
|
+
"cellInsert.columnHere": "Insert column here",
|
|
34
|
+
"cellInsert.rowHere": "Insert row here",
|
|
33
35
|
"chart.type.area": "Area Chart",
|
|
34
36
|
"chart.type.areaStacked": "Stacked Area Chart",
|
|
35
37
|
"chart.type.areaStackedPercent": "Percentage Area Chart",
|
|
@@ -75,6 +77,9 @@
|
|
|
75
77
|
"dialog.change": "Change",
|
|
76
78
|
"dialog.changePicture.description": "Enter the web address for the picture to show instead.",
|
|
77
79
|
"dialog.changePicture.title": "Change Picture from Web",
|
|
80
|
+
"dialog.chartSelectData.description": "Enter the address of the cells to plot, with the series names and categories around them.",
|
|
81
|
+
"dialog.chartSelectData.inputLabel": "Data range",
|
|
82
|
+
"dialog.chartSelectData.title": "Select Data",
|
|
78
83
|
"dialog.confirm.title": "Confirm",
|
|
79
84
|
"dialog.goTo": "Go To",
|
|
80
85
|
"dialog.goTo.inputLabel": "Location",
|
|
@@ -92,6 +97,7 @@
|
|
|
92
97
|
"dialog.password.required": "Enter a password.",
|
|
93
98
|
"dialog.password.title": "Password Required",
|
|
94
99
|
"dialog.pause": "Pause",
|
|
100
|
+
"dialog.select": "Select",
|
|
95
101
|
"dialog.sheetBackground.description": "Enter the web address for the background image.",
|
|
96
102
|
"dialog.sheetBackground.title": "Sheet Background from Web",
|
|
97
103
|
"dialog.unlock": "Unlock",
|
|
@@ -187,6 +193,10 @@
|
|
|
187
193
|
"op.typeInto": "Type ''{text}'' into {range}",
|
|
188
194
|
"op.unmergeCells": "Unmerge Cells",
|
|
189
195
|
"op.updateHyperlink": "Update Hyperlink",
|
|
196
|
+
"opaqueSheet.carried": "This sheet is kept as it was read and saved unchanged. It can be renamed, moved, hidden, colored or deleted, but not displayed yet.",
|
|
197
|
+
"opaqueSheet.kind.chart": "Chart sheet",
|
|
198
|
+
"opaqueSheet.kind.dialog": "Dialog sheet (Excel 5)",
|
|
199
|
+
"opaqueSheet.kind.macro": "Excel 4.0 macro sheet",
|
|
190
200
|
"outline.collapse": "Collapse",
|
|
191
201
|
"outline.expand": "Expand",
|
|
192
202
|
"outline.showLevel": "Show level {level}",
|
|
@@ -198,6 +208,7 @@
|
|
|
198
208
|
"reason.cannotFlip": "None of the selected drawings can be flipped.",
|
|
199
209
|
"reason.cellHasNote": "The cell has a note.",
|
|
200
210
|
"reason.cellHasThread": "The cell has a threaded comment.",
|
|
211
|
+
"reason.chartTypeNotEditable": "A chart of this type cannot be edited yet; its title and legend can.",
|
|
201
212
|
"reason.connectorShape": "A line or connector cannot be changed to another shape.",
|
|
202
213
|
"reason.continuousSpan": "Not available with continuous / fill alignment.",
|
|
203
214
|
"reason.entireColumn": "Not available when entire columns are selected.",
|
|
@@ -217,6 +228,7 @@
|
|
|
217
228
|
"reason.noSelection": "Nothing is selected.",
|
|
218
229
|
"reason.noSheetBackground": "The sheet has no background.",
|
|
219
230
|
"reason.noTableStyle": "No table style to clear.",
|
|
231
|
+
"reason.noTaskPane": "There is no task pane to show this in.",
|
|
220
232
|
"reason.nothingToRedo": "Nothing to redo.",
|
|
221
233
|
"reason.nothingToSelect": "Nothing to select.",
|
|
222
234
|
"reason.nothingToUndo": "Nothing to undo.",
|
|
@@ -206,6 +206,11 @@
|
|
|
206
206
|
"description": "See every workbook this one links to, go to the formulas that cite one, and break a link.",
|
|
207
207
|
"icon": "ExternalLinked"
|
|
208
208
|
},
|
|
209
|
+
"showAnomaliesPane": {
|
|
210
|
+
"label": "Anomalies",
|
|
211
|
+
"description": "List where the sheet breaks its own patterns: a formula unlike its neighbors, a typed value among formulas, a format that breaks its run.",
|
|
212
|
+
"icon": "Find"
|
|
213
|
+
},
|
|
209
214
|
"insertFunction": {
|
|
210
215
|
"label": "Insert Function",
|
|
211
216
|
"description": "Insert a function into the current cell.",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IRange,
|
|
1
|
+
import { IRange, IWorksheet } from '@sheetxl/sdk';
|
|
2
2
|
import { IReactNotifier } from '@sheetxl/utils-react';
|
|
3
3
|
import { CommandContext } from '../frame';
|
|
4
4
|
/**
|
|
5
5
|
* The drag {@link createFillMenu} builds a menu for.
|
|
6
6
|
*/
|
|
7
7
|
export interface CreateFillMenuOptions {
|
|
8
|
-
sheet:
|
|
8
|
+
sheet: IWorksheet;
|
|
9
9
|
/** The cells the fill reads — the selection the handle was dragged from. */
|
|
10
10
|
template: IRange.Coords;
|
|
11
11
|
/** The cells the fill covers, the template included — where the handle was released. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IRange, IAutoFill, ICellRange,
|
|
1
|
+
import { IRange, IAutoFill, ICellRange, IWorksheet } from '@sheetxl/sdk';
|
|
2
2
|
import { IReactNotifier } from '@sheetxl/utils-react';
|
|
3
3
|
import { CommandContext } from '../frame';
|
|
4
4
|
/**
|
|
5
5
|
* What the Series dialog is opened on — see {@link openFillSeries}.
|
|
6
6
|
*/
|
|
7
7
|
export interface OpenFillSeriesOptions {
|
|
8
|
-
sheet:
|
|
8
|
+
sheet: IWorksheet;
|
|
9
9
|
/** Shows the dialog; nothing opens without one. */
|
|
10
10
|
notifier?: IReactNotifier;
|
|
11
11
|
/** The range the dialog reports as the selection. */
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { IBorders } from '@sheetxl/sdk';
|
|
2
|
+
import { IRange, IBorders } from '@sheetxl/sdk';
|
|
3
|
+
import { UseBordersMode, BorderNormalLine } from './useBorders';
|
|
3
4
|
export interface StaticBorderRendererProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
5
|
/**
|
|
5
6
|
* Returns a border for the given value and index.
|
|
6
7
|
*/
|
|
7
8
|
getBorderAt?: (value: any, index: number) => IBorders;
|
|
9
|
+
/**
|
|
10
|
+
* {@inheritDoc UseBorderOptions.getMergeAt}
|
|
11
|
+
*/
|
|
12
|
+
getMergeAt?: (value: any, index: number) => IRange.Coords | null;
|
|
8
13
|
rowCount?: number;
|
|
9
14
|
columnCount?: number;
|
|
10
15
|
/**
|
|
@@ -22,6 +27,18 @@ export interface StaticBorderRendererProps extends React.HTMLAttributes<HTMLDivE
|
|
|
22
27
|
*/
|
|
23
28
|
height?: number;
|
|
24
29
|
forceThinBorder?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* {@inheritDoc UseBorderOptions.mode}
|
|
32
|
+
*/
|
|
33
|
+
mode?: UseBordersMode;
|
|
34
|
+
/**
|
|
35
|
+
* {@inheritDoc UseBorderOptions.normalRows}
|
|
36
|
+
*/
|
|
37
|
+
normalRows?: BorderNormalLine | null;
|
|
38
|
+
/**
|
|
39
|
+
* {@inheritDoc UseBorderOptions.normalColumns}
|
|
40
|
+
*/
|
|
41
|
+
normalColumns?: BorderNormalLine | null;
|
|
25
42
|
}
|
|
26
43
|
/**
|
|
27
44
|
* Render a grid border using a border property as an input. Useful
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IBorders, IRange, ICell } from '@sheetxl/sdk';
|
|
3
|
+
import { ReactUtils } from '@sheetxl/utils-react';
|
|
3
4
|
import { IGridPane, IGridMetrics } from '@sheetxl/grid-react';
|
|
4
5
|
export interface BorderRenderProps {
|
|
5
6
|
stroke: IBorders.IStroke;
|
|
6
7
|
range: IRange.Coords;
|
|
8
|
+
/**
|
|
9
|
+
* `[x, y, x2, y2]`. For a diagonal these are its two corners.
|
|
10
|
+
*/
|
|
7
11
|
points: number[];
|
|
8
12
|
key: string;
|
|
9
13
|
/**
|
|
10
14
|
* Which cell edge this stroke belongs to. Trailing edges (right/bottom) are
|
|
11
15
|
* shifted to sit after the divider; leading edges (left/top) sit before it.
|
|
16
|
+
* {@link IBorders.Edge.DiagonalUp} and {@link IBorders.Edge.DiagonalDown} run corner to corner.
|
|
12
17
|
*/
|
|
13
18
|
edge?: IBorders.Edge;
|
|
14
19
|
/**
|
|
@@ -41,6 +46,47 @@ export interface BorderRenderProps {
|
|
|
41
46
|
*/
|
|
42
47
|
endExtend?: number;
|
|
43
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Which lines a {@link useBorders} layer draws.
|
|
51
|
+
*
|
|
52
|
+
* - `direct`: the borders cells carry, plus {@link UseBorderOptions.normalRows} /
|
|
53
|
+
* {@link UseBorderOptions.normalColumns} as the Normal style's border — a border on every cell,
|
|
54
|
+
* blank ones included, so it draws above the fills like any other border.
|
|
55
|
+
* - `normal`: only the normal lines, below the cell fills so a fill hides them — the gridlines.
|
|
56
|
+
*
|
|
57
|
+
* Either way a normal line is drawn only where no cell border owns the edge.
|
|
58
|
+
*/
|
|
59
|
+
export type UseBordersMode = 'direct' | 'normal';
|
|
60
|
+
/**
|
|
61
|
+
* One axis' line for a {@link UseBordersMode | normal} layer.
|
|
62
|
+
*/
|
|
63
|
+
export interface BorderNormalLine {
|
|
64
|
+
/** CSS color. */
|
|
65
|
+
color: string;
|
|
66
|
+
/**
|
|
67
|
+
* Width in device pixels.
|
|
68
|
+
*
|
|
69
|
+
* @defaultValue 1
|
|
70
|
+
*/
|
|
71
|
+
width?: number;
|
|
72
|
+
/** Dash pattern in CSS px; solid when omitted. */
|
|
73
|
+
dashArray?: readonly number[] | null;
|
|
74
|
+
/** Two parallel lines, open where they cross. */
|
|
75
|
+
isDouble?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* The side of the boundary an even width grows toward.
|
|
78
|
+
*
|
|
79
|
+
* @defaultValue 'leading'
|
|
80
|
+
*/
|
|
81
|
+
edge?: ReactUtils.EdgeKind;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* The {@link BorderNormalLine} that draws `stroke`, or `null` for none.
|
|
85
|
+
*
|
|
86
|
+
* @param stroke The stroke.
|
|
87
|
+
* @param edge The edge the stroke comes from; decides which way an even width grows.
|
|
88
|
+
*/
|
|
89
|
+
export declare const toBorderNormalLine: (stroke: IBorders.IStroke | null | undefined, edge: IBorders.Edge) => BorderNormalLine | null;
|
|
44
90
|
export interface UseBorderOptions {
|
|
45
91
|
/**
|
|
46
92
|
* Returns a list of visible cells.
|
|
@@ -61,6 +107,14 @@ export interface UseBorderOptions {
|
|
|
61
107
|
* @returns The IBorders at the location.
|
|
62
108
|
*/
|
|
63
109
|
getBorderAt?: (value: any, index: number) => IBorders;
|
|
110
|
+
/**
|
|
111
|
+
* The merged range a cell belongs to, or `null` when it is not merged. A merged cell's diagonals
|
|
112
|
+
* run corner to corner across the whole merge. When omitted every cell is its own box.
|
|
113
|
+
*
|
|
114
|
+
* @param value The value returned from `getVisibleCells`.
|
|
115
|
+
* @param index The index of that value.
|
|
116
|
+
*/
|
|
117
|
+
getMergeAt?: (value: any, index: number) => IRange.Coords | null;
|
|
64
118
|
/**
|
|
65
119
|
* Allow users to customize border rendering.
|
|
66
120
|
* Note - This is wrapped in a single SVG so must be an SVG Element type (like a path).
|
|
@@ -72,6 +126,20 @@ export interface UseBorderOptions {
|
|
|
72
126
|
* Use for previews.
|
|
73
127
|
*/
|
|
74
128
|
forceThinBorder?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* @defaultValue 'direct'
|
|
131
|
+
*/
|
|
132
|
+
mode?: UseBordersMode;
|
|
133
|
+
/**
|
|
134
|
+
* The horizontal line drawn where no cell border owns the boundary (see {@link UseBordersMode}).
|
|
135
|
+
* `null` draws none.
|
|
136
|
+
*/
|
|
137
|
+
normalRows?: BorderNormalLine | null;
|
|
138
|
+
/**
|
|
139
|
+
* The vertical line drawn where no cell border owns the boundary (see {@link UseBordersMode}).
|
|
140
|
+
* `null` draws none.
|
|
141
|
+
*/
|
|
142
|
+
normalColumns?: BorderNormalLine | null;
|
|
75
143
|
}
|
|
76
144
|
export interface UseBorderResults {
|
|
77
145
|
/**
|
|
@@ -82,6 +150,11 @@ export interface UseBorderResults {
|
|
|
82
150
|
/**
|
|
83
151
|
* useBorders
|
|
84
152
|
* Renders borders by combining individual cells border attributes.
|
|
153
|
+
*
|
|
154
|
+
* @remarks
|
|
155
|
+
* A double is drawn as one solid band with its center cut out by a mask. Each cut runs to the
|
|
156
|
+
* center of the double it meets, so two doubles open into each other where they cross, tee or
|
|
157
|
+
* turn a corner. Strokes that are not double are outside the mask and never cut.
|
|
85
158
|
*/
|
|
86
|
-
export declare const useBorders: ({ getBorderAt, rendererBorder, getVisibleCells: propGetVisibleCells, forceThinBorder, defaultColor, }: UseBorderOptions) => UseBorderResults;
|
|
159
|
+
export declare const useBorders: ({ getBorderAt, getMergeAt, rendererBorder, getVisibleCells: propGetVisibleCells, forceThinBorder, defaultColor, mode, normalRows, normalColumns }: UseBorderOptions) => UseBorderResults;
|
|
87
160
|
//# sourceMappingURL=useBorders.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ICalculation, ICell } from '@sheetxl/sdk';
|
|
2
|
+
import { ICalculation, ICell, Size } from '@sheetxl/sdk';
|
|
3
3
|
/**
|
|
4
4
|
* Props for {@link FormulaCellRenderer}.
|
|
5
5
|
*/
|
|
@@ -13,6 +13,8 @@ export interface FormulaCellRendererProps extends React.HTMLAttributes<HTMLDivEl
|
|
|
13
13
|
* range picker outlines with, so text and rectangle always match.
|
|
14
14
|
*/
|
|
15
15
|
tokens: readonly ICalculation.FormulaToken[];
|
|
16
|
+
/** The cell's unzoomed size — what the text is placed against (`ICell.getTextPlacement`). */
|
|
17
|
+
size: Size;
|
|
16
18
|
/** The pane's zoom (the hosting box's bounds are zoomed; fonts must match). */
|
|
17
19
|
zoom: number;
|
|
18
20
|
}
|
|
@@ -27,7 +29,8 @@ export interface FormulaCellRendererProps extends React.HTMLAttributes<HTMLDivEl
|
|
|
27
29
|
* aware), so a mode flip re-resolves in pure CSS here too.
|
|
28
30
|
*
|
|
29
31
|
* Layout mirrors the plain formula path's rules: forced left alignment, no rotation, no overflow
|
|
30
|
-
* past the cell box (clipped by the hosting box), vertical
|
|
32
|
+
* past the cell box (clipped by the hosting box), the vertical position from the SDK placement, and
|
|
33
|
+
* the letter-spacing that paints the text at its measured width.
|
|
31
34
|
* (2nd pass: hover highlight/eval tooltips like the editor's overlay.)
|
|
32
35
|
*/
|
|
33
36
|
export declare const FormulaCellRenderer: React.FC<FormulaCellRendererProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RangeCoords } from '@sheetxl/utils';
|
|
2
|
-
import { ICalculation, ICell,
|
|
2
|
+
import { ICalculation, ICell, IWorksheet } from '@sheetxl/sdk';
|
|
3
3
|
/**
|
|
4
4
|
* The formula-view anchor: the selection anchor's formula, tokenized, when the view is showing
|
|
5
5
|
* formulas. `null` whenever there is nothing to spotlight (not in formula view, anchor isn't a
|
|
@@ -38,5 +38,5 @@ export interface FormulaViewAnchor {
|
|
|
38
38
|
* (scroll) never re-tokenize; `token` lets a caller bust it when cell CONTENT changed (e.g. the
|
|
39
39
|
* cells layer's visible-range cache token).
|
|
40
40
|
*/
|
|
41
|
-
export declare const useFormulaViewAnchor: (sheet:
|
|
41
|
+
export declare const useFormulaViewAnchor: (sheet: IWorksheet, showFormulas: boolean, token?: unknown) => FormulaViewAnchor | null;
|
|
42
42
|
//# sourceMappingURL=useFormulaViewAnchor.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Command } from '@sheetxl/utils-react';
|
|
2
|
+
import { MovableKindCommandData } from '../movable';
|
|
3
|
+
/**
|
|
4
|
+
* The chart kind's commands, for the active chart. Chrome is the `chart` catalog.
|
|
5
|
+
*
|
|
6
|
+
* Excel's Chart Design tab, as far as the model goes: `chartChangeType` takes what the Insert Chart
|
|
7
|
+
* gallery states (a descriptor, or a type name) and draws every series as that type; `chartSwitchRowColumn`
|
|
8
|
+
* plots the other way; `chartSelectData` takes an address, or asks for one, and plots those cells;
|
|
9
|
+
* `chartAddElement` takes an element by VBA's name (`legendTop`), and the toggles are the Add Chart
|
|
10
|
+
* Element checkboxes, each with the element's state. Quick layouts, chart styles and colors wait on
|
|
11
|
+
* the style parts (PLAN-CHART Phase 4). Each setter is one step to undo on its own; the middleware
|
|
12
|
+
* reports an error and arms repeat.
|
|
13
|
+
*/
|
|
14
|
+
export declare const contributeChartCommands: Command.DynamicCommandContributor<MovableKindCommandData>;
|
|
15
|
+
//# sourceMappingURL=ChartCommands.d.ts.map
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IChart } from '@sheetxl/sdk';
|
|
3
3
|
import { MovableElementProps } from '../movable';
|
|
4
|
+
import { IChartElement } from './ChartElement';
|
|
5
|
+
export { ChartElement, nextSelected, type ChartElementProps, type ChartElementAttributes, type ChartElementPress, type IChartElement } from './ChartElement';
|
|
4
6
|
export interface ChartEditorAttributes {
|
|
5
7
|
isChartEditor: () => true;
|
|
6
8
|
}
|
|
7
|
-
export interface IChartEditorElement extends
|
|
9
|
+
export interface IChartEditorElement extends IChartElement, ChartEditorAttributes {
|
|
8
10
|
}
|
|
9
11
|
export interface ChartEditorProps extends MovableElementProps {
|
|
10
12
|
chart: IChart;
|
|
11
13
|
ref?: React.Ref<IChartEditorElement>;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
|
-
*
|
|
16
|
+
* Paints a chart in its movable's frame: a {@link ChartElement} that takes the frame's zoom and
|
|
17
|
+
* shows the frame's states (disabled, dragging).
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* A press inside the chart selects what is under the pointer in the sheet view's chart element
|
|
21
|
+
* selection, Excel's way (the series first, its point next), and is the element's: the frame
|
|
22
|
+
* drags the chart from its chart area alone, as Excel does.
|
|
15
23
|
*/
|
|
16
24
|
export declare const ChartEditor: React.NamedExoticComponent<Omit<ChartEditorProps, "ref"> & React.RefAttributes<IChartEditorElement>>;
|
|
17
25
|
//# sourceMappingURL=ChartEditor.d.ts.map
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IChart, IChartElementSelection } from '@sheetxl/sdk';
|
|
3
|
+
import { Point } from '@sheetxl/utils';
|
|
4
|
+
export interface ChartElementAttributes {
|
|
5
|
+
isChartElement: () => true;
|
|
6
|
+
/** The chart drawn; `null` until a `Promise` input resolves. */
|
|
7
|
+
getChart: () => IChart | null;
|
|
8
|
+
/**
|
|
9
|
+
* The chart as it is drawn now, as an SVG document of the element's unzoomed size; `null` while
|
|
10
|
+
* the chart has no layout or the element no size.
|
|
11
|
+
*/
|
|
12
|
+
toSVG: () => Promise<string | null>;
|
|
13
|
+
/**
|
|
14
|
+
* The chart element drawn under a point of the page (`clientX`, `clientY`), as the chart is
|
|
15
|
+
* painted now; `null` outside the chart, or before it is painted.
|
|
16
|
+
*/
|
|
17
|
+
getElementAt: (clientX: number, clientY: number) => IChart.IElement | null;
|
|
18
|
+
}
|
|
19
|
+
export interface IChartElement extends HTMLDivElement, ChartElementAttributes {
|
|
20
|
+
}
|
|
21
|
+
/** A press on the chart, as {@link ChartElementProps.onElementPress} reports it. */
|
|
22
|
+
export interface ChartElementPress {
|
|
23
|
+
/** The element under the pointer; `null` outside the chart. The chart area is the chart itself. */
|
|
24
|
+
element: IChart.IElement | null;
|
|
25
|
+
/** Where, in px from the chart's top-left, unzoomed. */
|
|
26
|
+
point: Point;
|
|
27
|
+
event: React.PointerEvent<HTMLDivElement>;
|
|
28
|
+
}
|
|
29
|
+
export interface ChartElementProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
30
|
+
/**
|
|
31
|
+
* The chart to draw: one in a workbook, or one made outside it with `createChart`, or a
|
|
32
|
+
* `Promise` for either. A promise draws nothing until it resolves and shows the error if it
|
|
33
|
+
* rejects; while a later promise resolves, the chart already drawn is kept.
|
|
34
|
+
*
|
|
35
|
+
* This can be accessed (once resolved) via the element ref.
|
|
36
|
+
*/
|
|
37
|
+
chart: IChart | Promise<IChart>;
|
|
38
|
+
/**
|
|
39
|
+
* Called with the chart once {@link ChartElementProps.chart} resolves, and again whenever a new
|
|
40
|
+
* input resolves to a different one. Until the first input resolves, or if an input fails, the
|
|
41
|
+
* chart is `null`.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* Lets an app pass a `Promise` here and hold the live chart in its own state, without awaiting
|
|
45
|
+
* or suspending.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```tsx
|
|
49
|
+
* const [pending] = useState(() => sheet.getCharts().add('A1:D5', { type: 'line' }));
|
|
50
|
+
* const [chart, setChart] = useState<IChart | null>(null);
|
|
51
|
+
* return <ChartElement chart={pending} onChartChange={setChart} />;
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
onChartChange?: (chart: IChart | null) => void;
|
|
55
|
+
/**
|
|
56
|
+
* The scale the chart is drawn at, where `1` is unscaled: the element's box is measured at the
|
|
57
|
+
* scale and the chart laid out at the unscaled size.
|
|
58
|
+
* @defaultValue 1
|
|
59
|
+
*/
|
|
60
|
+
zoom?: number;
|
|
61
|
+
/**
|
|
62
|
+
* The element's width, as `style.width`; by default the element fills its parent. A number is
|
|
63
|
+
* taken as the box's width without waiting to measure it.
|
|
64
|
+
*/
|
|
65
|
+
width?: number | string;
|
|
66
|
+
/** The element's height, as `style.height`; a number as the box's height. */
|
|
67
|
+
height?: number | string;
|
|
68
|
+
/**
|
|
69
|
+
* The selection a press inside the chart changes, and whose selected elements are outlined: the
|
|
70
|
+
* sheet view's (`getChartElementSelection`) for a chart on a sheet, or one made for the chart
|
|
71
|
+
* (`new ChartElementSelection({ chart })`). Without one, a press selects nothing.
|
|
72
|
+
*
|
|
73
|
+
* @remarks
|
|
74
|
+
* As in Excel, the first press on a series selects the series and the next one its point; on
|
|
75
|
+
* the legend, the legend and then its entry; on a series' labels, all of them and then the one.
|
|
76
|
+
* A press on the chart area empties the selection: the chart is then what is selected.
|
|
77
|
+
*/
|
|
78
|
+
selection?: IChartElementSelection | null;
|
|
79
|
+
/**
|
|
80
|
+
* Called on a press inside the chart with what is under the pointer, before the selection (if
|
|
81
|
+
* any) changes.
|
|
82
|
+
*/
|
|
83
|
+
onElementPress?: (press: ChartElementPress) => void;
|
|
84
|
+
ref?: React.Ref<IChartElement>;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The element a press selects, given what is under the pointer and what is selected: Excel's two
|
|
88
|
+
* steps, the whole first and the part of it on the next press.
|
|
89
|
+
*/
|
|
90
|
+
export declare const nextSelected: (hit: IChart.IElement, active: IChart.IElement | null) => IChart.IElement;
|
|
91
|
+
/**
|
|
92
|
+
* Draws a chart, anywhere: a `div` the chart fills.
|
|
93
|
+
*
|
|
94
|
+
* @remarks
|
|
95
|
+
* The chart is laid out at the box's unzoomed px (`IChart.getLayout`) and painted as laid out,
|
|
96
|
+
* so the same chart in two elements is drawn twice, each at its own size. It is laid out again
|
|
97
|
+
* when the box is resized and whenever the chart says its layout may have changed
|
|
98
|
+
* (`onLayoutChange`: an edit, a cell it plots, a font arriving). The painter is loaded on the
|
|
99
|
+
* first mount through `ChartPaint`; a chart with no model (a `cx:` chart) draws nothing.
|
|
100
|
+
*
|
|
101
|
+
* Nothing of a sheet or a movable is needed: `ChartEditor` is this element inside a movable's
|
|
102
|
+
* frame, and a chart made with `createChart` draws from its own JSON. The chart may be given as a
|
|
103
|
+
* `Promise` (the one `getCharts().add` answers, say); `onChartChange` hands the app the chart
|
|
104
|
+
* once it is there.
|
|
105
|
+
*
|
|
106
|
+
* A press inside the chart is hit-tested against the layout painted (`IChart.getElementAt`), and
|
|
107
|
+
* with a {@link ChartElementProps.selection} selects what is pressed, Excel's way; the selected
|
|
108
|
+
* elements are outlined over the chart.
|
|
109
|
+
*/
|
|
110
|
+
export declare const ChartElement: React.NamedExoticComponent<Omit<ChartElementProps, "ref"> & React.RefAttributes<IChartElement>>;
|
|
111
|
+
//# sourceMappingURL=ChartElement.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MovableRendererModule } from '../movable/MovableRenderers';
|
|
2
|
+
/**
|
|
3
|
+
* The chart kind, as the renderer registry loads it: one module, so a failed fetch can be
|
|
4
|
+
* imported again whole.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ChartKind: MovableRendererModule;
|
|
7
|
+
//# sourceMappingURL=ChartKind.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { IChart } from '@sheetxl/sdk';
|
|
2
3
|
export declare const PresetChartType: {
|
|
3
4
|
readonly Column: "column";
|
|
4
5
|
readonly ColumnStacked: "columnStacked";
|
|
@@ -29,7 +30,8 @@ export type PresetChartType = typeof PresetChartType[keyof typeof PresetChartTyp
|
|
|
29
30
|
export interface ChartTypeDescriptor {
|
|
30
31
|
Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
31
32
|
description: string;
|
|
32
|
-
|
|
33
|
+
/** The chart type the gallery entry inserts. */
|
|
34
|
+
type: IChart.Type;
|
|
33
35
|
}
|
|
34
36
|
export declare const presetChartTypeDescriptor: (presetType: PresetChartType) => ChartTypeDescriptor;
|
|
35
37
|
//# sourceMappingURL=PresetChartTypeDescriptors.d.ts.map
|