@sheetxl/react 1.0.5 → 1.0.6
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/{CdLMc8_FiTxEsxwZ.mjs → 4M1ime0lSMPwFdwq.mjs} +1 -1
- package/browser/esm/{DwNflr1J0woLdEr3.mjs → 56NlLn16iTCMXWTn.mjs} +6 -6
- package/browser/esm/BBpLlCS6trF9IqY7.mjs +325 -0
- package/browser/esm/{DGAS1Bt4tv72VwsG.mjs → BCGOU0KEA92-tHXw.mjs} +5 -5
- package/browser/esm/{Bpm5mA-WhhskQ7O_.mjs → BPyvBK7c6TKRxVZb.mjs} +1 -1
- package/browser/esm/{CLpO-44ZQYtUuHJ_.mjs → BkkfkHsyalXv3k4Q.mjs} +1 -1
- package/browser/esm/{DFZDRvUoKsQrTNFt.mjs → Bks84B7NgyzaBVv0.mjs} +1 -1
- package/browser/esm/{CyE8HNEdNOeXsRj7.mjs → Bl0-xYLr5UA_pMTT.mjs} +6 -6
- package/browser/esm/{BSszu1CZPC63X-0W.mjs → Bp-3XmIZb2fkqunF.mjs} +2 -2
- package/browser/esm/{Dbyt1u9b-bkpxFZg.mjs → C1luDkna9W7PNKrz.mjs} +1 -1
- package/browser/esm/{DaYS3AaeatKiMKI0.mjs → CKYZvqAf2y2oAkB7.mjs} +1 -1
- package/browser/esm/{Bgi1ceZnvTvhowQZ.mjs → CsGmLR7d80u8xidY.mjs} +1 -1
- package/browser/esm/D20ReZZxs2JHIqXW.mjs +1681 -0
- package/browser/esm/{cMzhFYhRaujQDn1e.mjs → D4OKTHNu7UroAOVB.mjs} +1 -1
- package/browser/esm/{CdURrZNtQtHiyEq0.mjs → D9kzGjqEClI2OQO8.mjs} +1 -1
- package/browser/esm/{CcJ2ckwm0AJLIkJ7.mjs → DAGQOiFH2fGWDOqj.mjs} +2 -2
- package/browser/esm/{HVbo12BbnUEOXJxl.mjs → DBCT8TZn5tx3RRgu.mjs} +1 -1
- package/browser/esm/{DRCPWIFyD3G_s4iR.mjs → DIXBmbnM-qkL9ot2.mjs} +8 -6
- package/browser/esm/{D3zD1F3zK9CjIbaI.mjs → DpQkiVYU6nJmsEXE.mjs} +3 -3
- package/browser/esm/{DzHsdPz_a3UaTaW0.mjs → Dq9OEmhDbQi90JyF.mjs} +3 -3
- package/browser/esm/{CSXyl6ZhfB9ZcjfG.mjs → Du_yTZVTH9ZhIwVz.mjs} +1 -1
- package/browser/esm/DzcsaJD62P_RrIgp.mjs +127 -0
- package/browser/esm/{BUAQF-RIane5evWy.mjs → OYfZSA6eTFsqp5MC.mjs} +1308 -1281
- package/browser/esm/{D9nqzJMnC7S3IWTw.mjs → X9EpvcUhpbtf95sq.mjs} +1 -1
- package/browser/esm/{DPYZc-PX9UPpwgYO.mjs → XkePaxnbmJijuUST.mjs} +1 -1
- package/browser/esm/chart.mjs +3 -3
- package/browser/esm/control.mjs +2 -2
- package/browser/esm/{CAYrch6ikCVjpWpz.mjs → dE1dGLDL9PIqTCiM.mjs} +73 -35
- package/browser/esm/group.mjs +3 -3
- package/browser/esm/index.mjs +8930 -9026
- package/browser/esm/note.mjs +4 -4
- package/browser/esm/{D1KeJvm_q_Zi-53a.mjs → pAnBA5Hy2mjpkAWB.mjs} +2 -2
- package/browser/esm/picture.mjs +2 -2
- package/browser/esm/shape.mjs +2 -2
- package/browser/esm/slicer.mjs +4 -4
- package/node/esm/{Ch9ynF_jZSrlpZDS.mjs → BCTgV60zEAPoPG-u.mjs} +1 -1
- package/node/esm/{NeaxzrPfaXj62lfB.mjs → BRsrSOeAgAbh8LCL.mjs} +30 -28
- package/node/esm/BSYkbwvzEjg5tnyi.mjs +327 -0
- package/node/esm/BXCAuiepvo2pCMA6.mjs +177 -0
- package/node/esm/{H0KeMIq51yNI7XAn.mjs → Bf1ybiY9HNcds5_H.mjs} +1 -1
- package/node/esm/{BzT_rMN7K8KBVLqx.mjs → BkT-mLvzP5h10mLU.mjs} +1 -1
- package/node/esm/{9AXvpka4egnBDM3A.mjs → C-l3nPRIH0q_ucYX.mjs} +1 -1
- package/node/esm/{-mV1DEJz3g_r9ZVt.mjs → C0syazJAmS6_LFTY.mjs} +5 -5
- package/node/esm/{Dd56hZZkvQyCC3Pa.mjs → C3frF4D3I2rcLHK1.mjs} +1 -1
- package/node/esm/{KeTXNAWP4ZhLJ0zG.mjs → CIPjf-XhEAQufN0V.mjs} +1 -1
- package/node/esm/{CTwwxwXFVbjbYYV_.mjs → CJKhZu3BbJY3VsWH.mjs} +1 -1
- package/node/esm/CWoaMwpLSM7gBaVh.mjs +1681 -0
- package/node/esm/{Dbj9JZP9wWrDb6Q-.mjs → CcblOBJaE8U6tCWg.mjs} +1 -1
- package/node/esm/{BvJUJ2iYjuNxDnjg.mjs → D5UV0AjhZIYGotrV.mjs} +1 -1
- package/node/esm/{DmVgKO2JYltH2hmt.mjs → D5rzzywf1R4MvJU0.mjs} +1 -1
- package/node/esm/{BgXCGRb7kgCTG-YG.mjs → DEH7X3vDYP518pp4.mjs} +1 -1
- package/node/esm/{DvysKgejoU1ToqEJ.mjs → DO7K3oDOoCZ4fpv-.mjs} +2 -2
- package/node/esm/{DKz-pmZGTrJglwuX.mjs → DnZ2zYP0QCJWioMW.mjs} +1 -1
- package/node/esm/{Dn4jtkqnECzc_xp2.mjs → DrQEt2TfEEgKvYKL.mjs} +1 -1
- package/node/esm/{CYJHipsfG6d4VZaU.mjs → Dxv-9TQ2qdooz9VX.mjs} +347 -320
- package/node/esm/EvhDIPxbJ1B3lfrj.mjs +166 -0
- package/node/esm/{Dd5QCp7bMWDf3GlP.mjs → KC9JU5CVeDBJ2aHR.mjs} +1 -1
- package/node/esm/{Bi20m4omZHHDwJ3B.mjs → WFBPS4qHr0sTxFmI.mjs} +1 -1
- package/node/esm/chart.mjs +2 -2
- package/node/esm/control.mjs +2 -2
- package/node/esm/group.mjs +3 -3
- package/node/esm/index.mjs +11035 -11128
- package/node/esm/note.mjs +4 -4
- package/node/esm/picture.mjs +5 -5
- package/node/esm/shape.mjs +6 -6
- package/node/esm/slicer.mjs +4 -4
- package/package.json +7 -7
- package/resources/contents.json +6 -0
- package/resources/locales/contents.json +14 -0
- package/resources/locales/de/cells.cmd.json +1589 -0
- package/resources/locales/de/chart.cmd.json +15 -0
- package/resources/locales/de/editor.cmd.json +8 -8
- package/resources/locales/de/movable.cmd.json +0 -8
- package/resources/locales/de/sheet.cmd.json +190 -1713
- package/resources/locales/de/ui.msg.json +67 -0
- package/resources/locales/en/cells.cmd.json +1602 -0
- package/resources/locales/en/chart.cmd.json +15 -0
- package/resources/locales/en/editor.cmd.json +8 -8
- package/resources/locales/en/movable.cmd.json +0 -8
- package/resources/locales/en/sheet.cmd.json +193 -1729
- package/resources/locales/en/ui.msg.json +67 -0
- package/types/src/chart/ChartCommands.d.ts +5 -3
- package/types/src/chart/ChartElement.d.ts +1 -1
- package/types/src/chart/PresetChartTypeDescriptors.d.ts +23 -2
- package/types/src/chart/_outlinePath.d.ts +17 -0
- package/types/src/chart/paint/_fills.d.ts +4 -1
- package/types/src/chart/paint/_graphics.d.ts +5 -2
- package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +19 -5
- package/types/src/clipboard/ClipboardCommands.d.ts +16 -4
- package/types/src/commands/PaneScopeProvider.d.ts +2 -2
- package/types/src/editor/EditorCommands.d.ts +3 -3
- package/types/src/icons/chart/ChartIcons.d.ts +20 -0
- package/types/src/icons/chart/_ChartIconPack.d.ts +4 -0
- package/types/src/icons/chart/_chartIconKeys.d.ts +4 -0
- package/types/src/icons/chart/index.d.ts +1 -49
- package/types/src/index.d.ts +1 -0
- package/types/src/layer/MovableKindScope.d.ts +3 -2
- package/types/src/layer/MovableToolbar.d.ts +27 -0
- package/types/src/layer/RangeToolbar.d.ts +17 -4
- package/types/src/layer/SheetMovableLayer.d.ts +6 -0
- package/types/src/layer/ValidationDropdownLayer.d.ts +1 -1
- package/types/src/layer/index.d.ts +1 -0
- package/types/src/movable/MovableCommands.d.ts +8 -2
- package/types/src/movable/MovableLayer.d.ts +2 -0
- package/types/src/movable/MovableRenderers.d.ts +43 -1
- package/types/src/movable/_drawingFormat.d.ts +15 -0
- package/types/src/presence/PresenceCommands.d.ts +1 -1
- package/types/src/sheet/IWorksheetElement.d.ts +9 -0
- package/types/src/sheet/SheetCommandProvider.d.ts +17 -10
- package/types/src/sheet/SheetCommands.d.ts +17 -4
- package/types/src/taskPane/FormatPane.d.ts +46 -0
- package/types/src/taskPane/MovablePane.d.ts +8 -10
- package/types/src/taskPane/TaskPaneArea.d.ts +57 -2
- package/types/src/taskPane/TaskPaneEmpty.d.ts +14 -0
- package/types/src/taskPane/TaskPaneKeys.d.ts +8 -4
- package/types/src/taskPane/TaskPaneRegistry.d.ts +2 -1
- package/types/src/taskPane/TaskPaneStrip.d.ts +13 -2
- package/types/src/taskPane/_taskPaneHost.d.ts +9 -0
- package/types/src/taskPane/index.d.ts +2 -0
- package/types/src/taskPane/useTaskPane.d.ts +14 -18
- package/browser/esm/ZPOCHFycZqmFav3f.mjs +0 -264
- package/node/esm/BuQt6aujDbFNe4im.mjs +0 -128
- package/node/esm/CjUIWph6hGIsBoRP.mjs +0 -265
- package/types/src/icons/chart/ChartAreaIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartAreaStackedIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartBarIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartBarStackedIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartBubble3DIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartBubbleIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartColumnIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartColumnStackedIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartLineIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartLineMarkersIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartLineStackedIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartPieIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartScatterLinesIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts +0 -5
- package/types/src/icons/chart/ChartWaterfallIcon.d.ts +0 -5
- package/types/src/icons/chart/ThemedChartIcon.d.ts +0 -20
|
@@ -74,26 +74,90 @@
|
|
|
74
74
|
"chart.type.areaStacked": "Stacked Area Chart",
|
|
75
75
|
"chart.type.areaStackedPercent": "Percentage Area Chart",
|
|
76
76
|
"chart.type.bar": "Bar Chart",
|
|
77
|
+
"chart.type.barOfPie": "Bar of Pie Chart",
|
|
77
78
|
"chart.type.barStacked": "Bar Stacked Chart",
|
|
78
79
|
"chart.type.barStackedPercent": "Bar Percent Chart",
|
|
80
|
+
"chart.type.boxWhisker": "Box and Whisker Chart",
|
|
79
81
|
"chart.type.bubble": "Bubble Chart",
|
|
80
82
|
"chart.type.bubble3D": "3D Bubble Chart",
|
|
81
83
|
"chart.type.column": "Column Chart",
|
|
82
84
|
"chart.type.columnStacked": "Stacked Column Chart",
|
|
83
85
|
"chart.type.columnStackedPercent": "Stacked Percentage Column Chart",
|
|
86
|
+
"chart.type.funnel": "Funnel Chart",
|
|
87
|
+
"chart.type.histogram": "Histogram",
|
|
84
88
|
"chart.type.line": "Line Chart",
|
|
85
89
|
"chart.type.lineMarkers": "Line with Markers Chart",
|
|
86
90
|
"chart.type.lineStacked": "Stacked Line Chart",
|
|
87
91
|
"chart.type.lineStackedMarkers": "Line Stacked with Markers Chart",
|
|
88
92
|
"chart.type.lineStackedPercent": "Stacked Percentage Line Chart",
|
|
89
93
|
"chart.type.lineStackedPercentMarkers": "Line Percentage with Markers Chart",
|
|
94
|
+
"chart.type.pareto": "Pareto Chart",
|
|
90
95
|
"chart.type.pie": "Pie Chart",
|
|
91
96
|
"chart.type.pieDoughnut": "Pie Doughnut Chart",
|
|
97
|
+
"chart.type.pieOfPie": "Pie of Pie Chart",
|
|
98
|
+
"chart.type.radar": "Radar Chart",
|
|
99
|
+
"chart.type.radarFilled": "Filled Radar Chart",
|
|
100
|
+
"chart.type.radarMarkers": "Radar with Markers Chart",
|
|
92
101
|
"chart.type.scatterLines": "Scatter Chart with Lines",
|
|
93
102
|
"chart.type.scatterLinesMarkers": "Scatter Chart with Markers and Lines",
|
|
94
103
|
"chart.type.scatterLinesMarkersSmooth": "Scatter Chart with Markers and Smooth Lines",
|
|
95
104
|
"chart.type.scatterLinesSmooth": "Scatter Chart with Smooth Lines",
|
|
96
105
|
"chart.type.scatterMarkers": "Scatter Chart with Markers",
|
|
106
|
+
"chart.type.stockHLC": "High-Low-Close Stock Chart",
|
|
107
|
+
"chart.type.stockOHLC": "Open-High-Low-Close Stock Chart",
|
|
108
|
+
"chart.type.stockVHLC": "Volume-High-Low-Close Stock Chart",
|
|
109
|
+
"chart.type.stockVOHLC": "Volume-Open-High-Low-Close Stock Chart",
|
|
110
|
+
"chart.type.sunburst": "Sunburst Chart",
|
|
111
|
+
"chart.type.surface": "3D Surface Chart",
|
|
112
|
+
"chart.type.surfaceTopView": "Contour Chart",
|
|
113
|
+
"chart.type.surfaceTopViewWireframe": "Wireframe Contour Chart",
|
|
114
|
+
"chart.type.surfaceWireframe": "Wireframe 3D Surface Chart",
|
|
115
|
+
"chart.type.treemap": "Treemap Chart",
|
|
116
|
+
"chart.type.waterfall": "Waterfall Chart",
|
|
117
|
+
"chart.typeHint.area": "Show how much a value changes over time.",
|
|
118
|
+
"chart.typeHint.areaStacked": "Show how each part adds to a total over time.",
|
|
119
|
+
"chart.typeHint.areaStackedPercent": "Show how each part's share of a total changes over time.",
|
|
120
|
+
"chart.typeHint.bar": "Compare values across categories with long names.",
|
|
121
|
+
"chart.typeHint.barOfPie": "Pull the small slices of a pie out into a stacked bar.",
|
|
122
|
+
"chart.typeHint.barStacked": "Show how the parts of a whole add up, for categories with long names.",
|
|
123
|
+
"chart.typeHint.barStackedPercent": "Compare each part's share of the whole, for categories with long names.",
|
|
124
|
+
"chart.typeHint.boxWhisker": "Show the spread of values: their median, quartiles and outliers.",
|
|
125
|
+
"chart.typeHint.bubble": "Compare three sets of values: the third sets each bubble's size.",
|
|
126
|
+
"chart.typeHint.bubble3D": "Compare three sets of values, the third setting each shaded bubble's size.",
|
|
127
|
+
"chart.typeHint.column": "Compare values across a few categories.",
|
|
128
|
+
"chart.typeHint.columnStacked": "Show how the parts of a whole add up across categories.",
|
|
129
|
+
"chart.typeHint.columnStackedPercent": "Compare each part's share of the whole across categories.",
|
|
130
|
+
"chart.typeHint.funnel": "Show values through the stages of a process.",
|
|
131
|
+
"chart.typeHint.histogram": "Show how values are spread across ranges.",
|
|
132
|
+
"chart.typeHint.line": "Show a trend over time or over ordered categories.",
|
|
133
|
+
"chart.typeHint.lineMarkers": "Show a trend over time, marking each value.",
|
|
134
|
+
"chart.typeHint.lineStacked": "Show how the parts of a total add up over time.",
|
|
135
|
+
"chart.typeHint.lineStackedMarkers": "Show how the parts of a total add up over time, marking each value.",
|
|
136
|
+
"chart.typeHint.lineStackedPercent": "Show how each part's share of the whole changes over time.",
|
|
137
|
+
"chart.typeHint.lineStackedPercentMarkers": "Show how each part's share of the whole changes over time, marking each value.",
|
|
138
|
+
"chart.typeHint.pareto": "Show causes from most to least frequent, with their running total.",
|
|
139
|
+
"chart.typeHint.pie": "Show the parts of a whole, for one series.",
|
|
140
|
+
"chart.typeHint.pieDoughnut": "Show the parts of a whole, with room for more than one series.",
|
|
141
|
+
"chart.typeHint.pieOfPie": "Pull the small slices of a pie out into a second pie.",
|
|
142
|
+
"chart.typeHint.radar": "Compare several values from a common center.",
|
|
143
|
+
"chart.typeHint.radarFilled": "Compare the areas that sets of values cover.",
|
|
144
|
+
"chart.typeHint.radarMarkers": "Compare several values from a common center, marking each one.",
|
|
145
|
+
"chart.typeHint.scatterLines": "Join pairs of values in order.",
|
|
146
|
+
"chart.typeHint.scatterLinesMarkers": "Join pairs of values in order, marking each one.",
|
|
147
|
+
"chart.typeHint.scatterLinesMarkersSmooth": "Draw a smooth curve through pairs of values, marking each one.",
|
|
148
|
+
"chart.typeHint.scatterLinesSmooth": "Draw a smooth curve through pairs of values.",
|
|
149
|
+
"chart.typeHint.scatterMarkers": "Show how two sets of values relate.",
|
|
150
|
+
"chart.typeHint.stockHLC": "Show a price's high, low and close. Takes three series, in that order.",
|
|
151
|
+
"chart.typeHint.stockOHLC": "Show a price's open, high, low and close. Takes four series, in that order.",
|
|
152
|
+
"chart.typeHint.stockVHLC": "Show volume with a price's high, low and close. Takes four series, in that order.",
|
|
153
|
+
"chart.typeHint.stockVOHLC": "Show volume with a price's open, high, low and close. Takes five series, in that order.",
|
|
154
|
+
"chart.typeHint.sunburst": "Show a hierarchy as rings, the top level at the center.",
|
|
155
|
+
"chart.typeHint.surface": "Show where values peak across two dimensions, as a 3D surface.",
|
|
156
|
+
"chart.typeHint.surfaceTopView": "Show a surface from above, its bands of value as contours.",
|
|
157
|
+
"chart.typeHint.surfaceTopViewWireframe": "Show a surface's contours from above, as lines only.",
|
|
158
|
+
"chart.typeHint.surfaceWireframe": "Show a 3D surface as lines only.",
|
|
159
|
+
"chart.typeHint.treemap": "Show a hierarchy as nested rectangles, sized by value.",
|
|
160
|
+
"chart.typeHint.waterfall": "Show how gains and losses lead from a starting value to a total.",
|
|
97
161
|
"checklist.add": "Add \"{text}\"",
|
|
98
162
|
"checklist.byValue": "By value",
|
|
99
163
|
"checklist.count": "{checked} / {total}",
|
|
@@ -289,9 +353,11 @@
|
|
|
289
353
|
"pivot.type.number": "Numbers",
|
|
290
354
|
"pivot.type.text": "Text",
|
|
291
355
|
"reason.alreadyTable": "The selection is already in a table.",
|
|
356
|
+
"reason.cannotFill": "None of the selected drawings has a fill.",
|
|
292
357
|
"reason.cannotFlip": "None of the selected drawings can be flipped.",
|
|
293
358
|
"reason.cellHasNote": "The cell has a note.",
|
|
294
359
|
"reason.cellHasThread": "The cell has a threaded comment.",
|
|
360
|
+
"reason.cellsOnly": "Applies to cells only, and a drawing is selected.",
|
|
295
361
|
"reason.chartTypeNotEditable": "A chart of this type cannot be edited yet; its title and legend can.",
|
|
296
362
|
"reason.connectorShape": "A line or connector cannot be changed to another shape.",
|
|
297
363
|
"reason.continuousSpan": "Not available with continuous / fill alignment.",
|
|
@@ -304,6 +370,7 @@
|
|
|
304
370
|
"reason.mixedSelection": "Not available for a mixed full / partial selection.",
|
|
305
371
|
"reason.noComments": "The sheet has no comments.",
|
|
306
372
|
"reason.noCommentsSelected": "No comments in the selection.",
|
|
373
|
+
"reason.noDrawingFont": "None of the selected drawings has text to format.",
|
|
307
374
|
"reason.noFormulasSelected": "No formulas in the selection.",
|
|
308
375
|
"reason.noFreeze": "No frozen panes.",
|
|
309
376
|
"reason.noGroup": "The selection is not in a group.",
|
|
@@ -4,11 +4,13 @@ import { MovableKindCommandData } from '../movable';
|
|
|
4
4
|
* The chart kind's commands, for the active chart. Chrome is the `chart` catalog.
|
|
5
5
|
*
|
|
6
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; `
|
|
7
|
+
* gallery states (a descriptor, or a type name) and draws every series as that type; `chartStyle`
|
|
8
|
+
* takes a preset style's number, 1 to 48, and draws the chart in it; `chartColors` takes a color
|
|
9
|
+
* set's number, 10 to 26, and colors the series in it (Excel's Change Colors); `chartSwitchRowColumn`
|
|
8
10
|
* plots the other way; `chartSelectData` takes an address, or asks for one, and plots those cells;
|
|
9
11
|
* `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,
|
|
11
|
-
* the style parts. Each setter is one step to undo on its own; the middleware
|
|
12
|
+
* Element checkboxes, each with the element's state. Quick layouts, and the styles of Excel's newer
|
|
13
|
+
* gallery, wait on the style parts. Each setter is one step to undo on its own; the middleware
|
|
12
14
|
* reports an error and arms repeat.
|
|
13
15
|
*/
|
|
14
16
|
export declare const contributeChartCommands: Command.DynamicCommandContributor<MovableKindCommandData>;
|
|
@@ -116,7 +116,7 @@ export declare const nextSelected: (hit: IChart.IElement, active: IChart.IElemen
|
|
|
116
116
|
*
|
|
117
117
|
* A press inside the chart is hit-tested against the layout painted (`IChart.getElementAt`), and
|
|
118
118
|
* with a {@link ChartElementProps.selection} selects what is pressed, Excel's way; the selected
|
|
119
|
-
* elements are
|
|
119
|
+
* elements are traced over the chart, along the shapes they are drawn as.
|
|
120
120
|
*/
|
|
121
121
|
export declare const ChartElement: React.NamedExoticComponent<Omit<ChartElementProps, "ref"> & React.RefAttributes<IChartElement>>;
|
|
122
122
|
//# sourceMappingURL=ChartElement.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IChart } from '@sheetxl/sdk';
|
|
3
2
|
export declare const PresetChartType: {
|
|
4
3
|
readonly Column: "column";
|
|
@@ -25,11 +24,33 @@ export declare const PresetChartType: {
|
|
|
25
24
|
readonly ScatterLines: "scatterLines";
|
|
26
25
|
readonly Bubble: "bubble";
|
|
27
26
|
readonly Bubble3D: "bubble3D";
|
|
27
|
+
readonly PieOfPie: "pieOfPie";
|
|
28
|
+
readonly BarOfPie: "barOfPie";
|
|
29
|
+
readonly Histogram: "histogram";
|
|
30
|
+
readonly Pareto: "pareto";
|
|
31
|
+
readonly BoxWhisker: "boxWhisker";
|
|
32
|
+
readonly Treemap: "treemap";
|
|
33
|
+
readonly Sunburst: "sunburst";
|
|
34
|
+
readonly Waterfall: "waterfall";
|
|
35
|
+
readonly Funnel: "funnel";
|
|
36
|
+
readonly Radar: "radar";
|
|
37
|
+
readonly RadarMarkers: "radarMarkers";
|
|
38
|
+
readonly RadarFilled: "radarFilled";
|
|
39
|
+
readonly StockHLC: "stockHLC";
|
|
40
|
+
readonly StockOHLC: "stockOHLC";
|
|
41
|
+
readonly StockVHLC: "stockVHLC";
|
|
42
|
+
readonly StockVOHLC: "stockVOHLC";
|
|
43
|
+
readonly Surface: "surface";
|
|
44
|
+
readonly SurfaceWireframe: "surfaceWireframe";
|
|
45
|
+
readonly SurfaceTopView: "surfaceTopView";
|
|
46
|
+
readonly SurfaceTopViewWireframe: "surfaceTopViewWireframe";
|
|
28
47
|
};
|
|
29
48
|
export type PresetChartType = typeof PresetChartType[keyof typeof PresetChartType];
|
|
30
49
|
export interface ChartTypeDescriptor {
|
|
31
|
-
|
|
50
|
+
/** The type's name, as a message key. */
|
|
32
51
|
description: string;
|
|
52
|
+
/** What the type is for, in a line, as a message key. */
|
|
53
|
+
hint: string;
|
|
33
54
|
/** The chart type the gallery entry inserts. */
|
|
34
55
|
type: IChart.Type;
|
|
35
56
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ChartLayout } from '@sheetxl/sdk';
|
|
2
|
+
/** The shapes of a chart's selected elements as SVG path data. */
|
|
3
|
+
export interface OutlinePaths {
|
|
4
|
+
/**
|
|
5
|
+
* Every filled shape as one path, each wound clockwise: filled `nonzero` it is their union, so
|
|
6
|
+
* shapes that touch (a pie's slices, stacked bars) are traced as one.
|
|
7
|
+
*/
|
|
8
|
+
filled: string;
|
|
9
|
+
/** Each line with the width it is drawn at. */
|
|
10
|
+
lines: {
|
|
11
|
+
d: string;
|
|
12
|
+
width: number;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
/** The shapes as path data: the filled ones together, the lines each with its width. */
|
|
16
|
+
export declare const outlinePaths: (shapes: readonly ChartLayout.OutlineShape[]) => OutlinePaths;
|
|
17
|
+
//# sourceMappingURL=_outlinePath.d.ts.map
|
|
@@ -13,7 +13,10 @@ export declare const colorOf: (fill: IFill.JSON | null | undefined) => string |
|
|
|
13
13
|
export declare const widthOf: (stroke: IStroke.JSON | null | undefined) => number;
|
|
14
14
|
/** A line's dash in px; `undefined` for a solid line. */
|
|
15
15
|
export declare const dashOf: (stroke: IStroke.JSON) => number[] | undefined;
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* A run's typeface as a CSS family list: the family, its stand-ins, then its fallbacks. Quoted
|
|
18
|
+
* with single quotes, as the list lands in an SVG attribute that zrender wraps in double quotes.
|
|
19
|
+
*/
|
|
17
20
|
export declare const familyOf: (run: IText.RunPropertiesJSON) => string;
|
|
18
21
|
export declare const isBold: (run: IText.RunPropertiesJSON) => boolean;
|
|
19
22
|
export declare const isItalic: (run: IText.RunPropertiesJSON) => boolean;
|
|
@@ -8,7 +8,7 @@ type Stroke = IStroke.JSON;
|
|
|
8
8
|
* these are plain objects an option carries.
|
|
9
9
|
*/
|
|
10
10
|
export declare const fontStyle: (font: Font) => Record<string, unknown>;
|
|
11
|
-
/** A run as a canvas font: `italic bold 13.33px Calibri`. */
|
|
11
|
+
/** A run as a canvas font: `italic bold 13.33px Calibri, Carlito`. */
|
|
12
12
|
export declare const fontOf: (font: Font, size?: number) => string;
|
|
13
13
|
/** A stroke as a `graphic` element's style states it. */
|
|
14
14
|
export declare const strokeStyle: (stroke: Stroke | null | undefined) => Record<string, unknown>;
|
|
@@ -32,7 +32,10 @@ export declare const markerGraphic: (marker: MarkerLayout, cx: number, cy: numbe
|
|
|
32
32
|
export declare const textGraphic: (text: ChartLayout.TextLayout, fill: IFill.JSON | null, border: Stroke | null, lineHeight?: number) => any[];
|
|
33
33
|
/** A group's lines (high-low, drop, series lines) as `graphic` lines over its series (z 3). */
|
|
34
34
|
export declare const linesGraphic: (lines: ChartLayout.LinesLayout | undefined) => any[];
|
|
35
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* A group's up/down bars as `graphic` rects over its series, their lines and markers too (z 4: a
|
|
37
|
+
* line series is drawn at 3), as Excel draws them.
|
|
38
|
+
*/
|
|
36
39
|
export declare const upDownBarsGraphic: (upDown: ChartLayout.UpDownBarsLayout | undefined) => any[];
|
|
37
40
|
export {};
|
|
38
41
|
//# sourceMappingURL=_graphics.d.ts.map
|
|
@@ -50,11 +50,12 @@ export declare namespace ChartPaintKind {
|
|
|
50
50
|
isLog: boolean;
|
|
51
51
|
/**
|
|
52
52
|
* A series' data as ECharts places it: by category index, or on a date axis as `[slot, value]`
|
|
53
|
-
* pairs; a log axis's zero and negative values dropped.
|
|
53
|
+
* pairs; a log axis's zero and negative values dropped. A series whose points are joined (a
|
|
54
|
+
* line, an area) asks for them `inDateOrder`: dates out of order are joined by date.
|
|
54
55
|
*/
|
|
55
|
-
placed(series: ChartLayout.SeriesLayout, data: any[]): any[];
|
|
56
|
+
placed(series: ChartLayout.SeriesLayout, data: any[], inDateOrder?: boolean): any[];
|
|
56
57
|
/** What every ECharts series of the group states: its id and name, axes, data and no emphasis. */
|
|
57
|
-
base(series: ChartLayout.SeriesLayout): Record<string, any>;
|
|
58
|
+
base(series: ChartLayout.SeriesLayout, inDateOrder?: boolean): Record<string, any>;
|
|
58
59
|
}
|
|
59
60
|
/** What a kind is given to paint a group. */
|
|
60
61
|
interface Context {
|
|
@@ -82,8 +83,21 @@ export declare namespace ChartPaintKind {
|
|
|
82
83
|
width(stroke: IStroke.JSON | null | undefined): number;
|
|
83
84
|
/** A series drawn as a line with its markers, straight or smooth, broken or not at a blank. */
|
|
84
85
|
lineSeries(series: ChartLayout.SeriesLayout, smooth: boolean, spanBlanks?: boolean): Record<string, any>;
|
|
85
|
-
/**
|
|
86
|
-
|
|
86
|
+
/**
|
|
87
|
+
* A line series' data with each point's own marker, where the series' points state theirs
|
|
88
|
+
* (`pointMarkers`); else `data` as given. A datum is a value, or an object with its `value`.
|
|
89
|
+
*/
|
|
90
|
+
markerData(series: ChartLayout.SeriesLayout, data: any[]): any[];
|
|
91
|
+
/**
|
|
92
|
+
* The squares under a series' filled x, star or plus markers, as `graphic` rects at its points,
|
|
93
|
+
* beneath the series.
|
|
94
|
+
*/
|
|
95
|
+
markerFills(series: ChartLayout.SeriesLayout & {
|
|
96
|
+
points: readonly ({
|
|
97
|
+
x: number;
|
|
98
|
+
y: number;
|
|
99
|
+
} | null)[];
|
|
100
|
+
}): any[];
|
|
87
101
|
readonly marker: {
|
|
88
102
|
/** How ECharts draws a marker: its symbol, box and offset. */
|
|
89
103
|
symbol(marker: ChartLayout.MarkerLayout): {
|
|
@@ -35,6 +35,22 @@ export interface ContributeClipboardCommandsOptions {
|
|
|
35
35
|
/** Notified after a paste completes. */
|
|
36
36
|
onPaste?: (reference: ReferenceableClipboard.ReferenceItem, args: SheetPasteOptions) => void;
|
|
37
37
|
}
|
|
38
|
+
/** The single `data` bundle {@link contributeClipboardCommands} takes (the `DynamicCommandContributor` shape). */
|
|
39
|
+
export interface ClipboardCommandData extends ContributeClipboardCommandsOptions {
|
|
40
|
+
sheet: IWorksheet;
|
|
41
|
+
}
|
|
42
|
+
/** The copy / cut / paste flows over a sheet's selection: what {@link contributeClipboardCommands} contributes, for another scope to carry too. */
|
|
43
|
+
export interface SheetClipboardOps {
|
|
44
|
+
copy(args?: ICellRange.CopyOptions): Promise<void>;
|
|
45
|
+
cut(): Promise<void>;
|
|
46
|
+
paste(args?: SheetPasteOptions): Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The copy / cut / paste flows over `data.sheet`'s selection, without the commands or the clipboard and
|
|
50
|
+
* protection subscriptions. With a drawing selected, copy takes the selected drawings and paste places
|
|
51
|
+
* them beside it.
|
|
52
|
+
*/
|
|
53
|
+
export declare function createSheetClipboardOps(data: ClipboardCommandData): SheetClipboardOps;
|
|
38
54
|
/**
|
|
39
55
|
* The clipboard contributor — the generic copy/paste infra **and** the sheet-aware pastes, folded
|
|
40
56
|
* into ONE plain-function contributor: a focused input/editor is a command target with default
|
|
@@ -59,10 +75,6 @@ export interface ContributeClipboardCommandsOptions {
|
|
|
59
75
|
* (protection-disable), and the marquee view — with **no dependency on SheetCommands** (it reads only the
|
|
60
76
|
* generic `IWorksheet` model). It's the shape a third-party clipboard would take: sheet knows nothing about it.
|
|
61
77
|
*/
|
|
62
|
-
/** The single `data` bundle {@link contributeClipboardCommands} takes (the `DynamicCommandContributor` shape). */
|
|
63
|
-
export interface ClipboardCommandData extends ContributeClipboardCommandsOptions {
|
|
64
|
-
sheet: IWorksheet;
|
|
65
|
-
}
|
|
66
78
|
export declare function contributeClipboardCommands(contribution: Command.CommandContribution, data: ClipboardCommandData): RemoveListener;
|
|
67
79
|
export {};
|
|
68
80
|
//# sourceMappingURL=ClipboardCommands.d.ts.map
|
|
@@ -3,11 +3,11 @@ import { IGridPane } from '@sheetxl/grid-react';
|
|
|
3
3
|
/**
|
|
4
4
|
* **Per-pane command layer stack** (the `GridSurface.wrapPane` seam).
|
|
5
5
|
*
|
|
6
|
-
* Each pane gets a **base** scope (`pane:<anchor>`, child of the
|
|
6
|
+
* Each pane gets a **base** scope (`pane:<anchor>`, child of the `cells` scope) plus a
|
|
7
7
|
* {@link Command.LayerActivation} — its **z-ordered command-parent chain**. The per-pane layer components
|
|
8
8
|
* (selection, clipboard, the cell editor) each `register` their own scope into that chain at their layer's
|
|
9
9
|
* real visual z (via a declarative `CommandScopeProvider spec order`), so `getAnchor()` is the stack top and a key resolves
|
|
10
|
-
* top→down the z-stack then pane → sheet → app.
|
|
10
|
+
* top→down the z-stack then pane → cells → sheet → app.
|
|
11
11
|
*
|
|
12
12
|
* **The grid owns no resolver** (design/COMMAND-DESIGN.md §"Layered resolver"). This provider does exactly
|
|
13
13
|
* one thing: it records `Stage element → this pane's LayerActivation` in the tree's shared region index —
|
|
@@ -39,10 +39,10 @@ export declare function insertEditText(editable: IEditable<any, any, any>, text:
|
|
|
39
39
|
* the `insertFunctionSum`/`Average`/`Count`/`Max`/`Min` **AutoSum** family. Each computes some text and either
|
|
40
40
|
* **begins an edit** with it (`flavor: 'startEdit'`, the sheet's version when NOT editing) or **inserts it at
|
|
41
41
|
* the caret** (`flavor: 'caret'`, the focused editor's override while editing). Same command keys, resolved by
|
|
42
|
-
* whichever scope wins — the `
|
|
42
|
+
* whichever scope wins — the `cells` scope contributes `'startEdit'`, the focused editor contributes `'caret'`. All
|
|
43
43
|
* are tagged `noTransaction` (they only seed the edit text; the model mutation commits later in the edit's own
|
|
44
|
-
* transaction), so the
|
|
45
|
-
* the
|
|
44
|
+
* transaction), so the cells scope's transactional middleware never wraps them. The command chrome lives in
|
|
45
|
+
* the `editor` catalog, borrowed into `cells`.
|
|
46
46
|
*
|
|
47
47
|
* The fx **picker** (`insertFunction`, with its `searchByCategory` context) is NOT here — it inserts any
|
|
48
48
|
* function (incl. workbook-defined custom ones), so it is a `workbook` command
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The icon pack holding one icon per chart type, keyed by its `IChart.Type` name, plus `combo` and
|
|
3
|
+
* `unknown`. Separate from the base pack and loaded only when one of its icons is asked for.
|
|
4
|
+
* Register a pack under this key to draw them differently.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CHART_ICON_PACK = "chart";
|
|
7
|
+
/**
|
|
8
|
+
* The icon key of a chart type, for `DynamicIcon` or any command or menu that takes an icon key.
|
|
9
|
+
*
|
|
10
|
+
* @param type A name of `IChart.Type`, or `'combo'` for a chart whose series are drawn as
|
|
11
|
+
* different types. A 3D type answers its flat type's icon, and a type with no icon the `unknown`
|
|
12
|
+
* chart's.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <DynamicIcon iconKey={chartIconKey(chart.getChartType())} />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare const chartIconKey: (type: string) => string;
|
|
20
|
+
//# sourceMappingURL=ChartIcons.d.ts.map
|
|
@@ -1,50 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { default as ChartColumnStackedIcon } from './ChartColumnStackedIcon';
|
|
3
|
-
import { default as ChartColumnStackedPercentIcon } from './ChartColumnStackedPercentIcon';
|
|
4
|
-
import { default as ChartLineIcon } from './ChartLineIcon';
|
|
5
|
-
import { default as ChartLineStackedIcon } from './ChartLineStackedIcon';
|
|
6
|
-
import { default as ChartLineStackedPercentIcon } from './ChartLineStackedPercentIcon';
|
|
7
|
-
import { default as ChartLineMarkersIcon } from './ChartLineMarkersIcon';
|
|
8
|
-
import { default as ChartLineStackedMarkersIcon } from './ChartLineStackedMarkersIcon';
|
|
9
|
-
import { default as ChartLineStackedPercentMarkersIcon } from './ChartLineStackedPercentMarkersIcon';
|
|
10
|
-
import { default as ChartPieIcon } from './ChartPieIcon';
|
|
11
|
-
import { default as ChartPieDoughnutIcon } from './ChartPieDoughnutIcon';
|
|
12
|
-
import { default as ChartBarIcon } from './ChartBarIcon';
|
|
13
|
-
import { default as ChartBarStackedIcon } from './ChartBarStackedIcon';
|
|
14
|
-
import { default as ChartBarStackedPercentIcon } from './ChartBarStackedPercentIcon';
|
|
15
|
-
import { default as ChartAreaIcon } from './ChartAreaIcon';
|
|
16
|
-
import { default as ChartAreaStackedIcon } from './ChartAreaStackedIcon';
|
|
17
|
-
import { default as ChartAreaStackedPercentIcon } from './ChartAreaStackedPercentIcon';
|
|
18
|
-
import { default as ChartScatterMarkersIcon } from './ChartScatterMarkersIcon';
|
|
19
|
-
import { default as ChartScatterLinesMarkersSmoothIcon } from './ChartScatterLinesMarkersSmoothIcon';
|
|
20
|
-
import { default as ChartScatterLinesSmoothIcon } from './ChartScatterLinesSmoothIcon';
|
|
21
|
-
import { default as ChartScatterLinesMarkersIcon } from './ChartScatterLinesMarkersIcon';
|
|
22
|
-
import { default as ChartScatterLinesIcon } from './ChartScatterLinesIcon';
|
|
23
|
-
import { default as ChartBubbleIcon } from './ChartBubbleIcon';
|
|
24
|
-
import { default as ChartBubble3DIcon } from './ChartBubble3DIcon';
|
|
25
|
-
export { ThemedChartIcon, type ThemedChartIconProps } from './ThemedChartIcon';
|
|
26
|
-
export { ChartColumnIcon };
|
|
27
|
-
export { ChartColumnStackedIcon };
|
|
28
|
-
export { ChartColumnStackedPercentIcon };
|
|
29
|
-
export { ChartLineIcon };
|
|
30
|
-
export { ChartLineStackedIcon };
|
|
31
|
-
export { ChartLineStackedPercentIcon };
|
|
32
|
-
export { ChartLineMarkersIcon };
|
|
33
|
-
export { ChartLineStackedMarkersIcon };
|
|
34
|
-
export { ChartLineStackedPercentMarkersIcon };
|
|
35
|
-
export { ChartPieIcon };
|
|
36
|
-
export { ChartPieDoughnutIcon };
|
|
37
|
-
export { ChartBarIcon };
|
|
38
|
-
export { ChartBarStackedIcon };
|
|
39
|
-
export { ChartBarStackedPercentIcon };
|
|
40
|
-
export { ChartAreaIcon };
|
|
41
|
-
export { ChartAreaStackedIcon };
|
|
42
|
-
export { ChartAreaStackedPercentIcon };
|
|
43
|
-
export { ChartScatterMarkersIcon };
|
|
44
|
-
export { ChartScatterLinesMarkersSmoothIcon };
|
|
45
|
-
export { ChartScatterLinesSmoothIcon };
|
|
46
|
-
export { ChartScatterLinesMarkersIcon };
|
|
47
|
-
export { ChartScatterLinesIcon };
|
|
48
|
-
export { ChartBubbleIcon };
|
|
49
|
-
export { ChartBubble3DIcon };
|
|
1
|
+
export { CHART_ICON_PACK, chartIconKey } from './ChartIcons';
|
|
50
2
|
//# sourceMappingURL=index.d.ts.map
|
package/types/src/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from './layer/HyperlinkLayer';
|
|
|
25
25
|
export type { RangeToolbarRenderProps } from './layer/RangeToolbar';
|
|
26
26
|
export type { TableToolbarRenderProps } from './layer/TableToolbar';
|
|
27
27
|
export type { PivotToolbarRenderProps } from './layer/PivotToolbar';
|
|
28
|
+
export type { MovableToolbarRenderProps } from './layer/MovableToolbar';
|
|
28
29
|
export * from './picker';
|
|
29
30
|
export * from './checklist';
|
|
30
31
|
export * from './conditionalFormat';
|
|
@@ -8,8 +8,9 @@ export interface MovableKindScopeProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* The scope and contextual tab of the active movable's kind. While a movable is the active selection,
|
|
10
10
|
* its kind's `commands` run in a scope named for the content type, stacked just above the `movable`
|
|
11
|
-
* scope so they out-resolve it,
|
|
12
|
-
*
|
|
11
|
+
* scope so they out-resolve it, its `toolbar` is shown in the main toolbar strip and its `buttons` are
|
|
12
|
+
* registered (its items in the drawing's context menu); a kind that brings no tab gets the default one
|
|
13
|
+
* ({@link createDefaultMovableToolbar}). Both follow the active
|
|
13
14
|
* movable and go when the selection clears; another movable of the same kind becoming active re-runs
|
|
14
15
|
* the commands with it. A kind whose module is still loading gets them when the load settles.
|
|
15
16
|
*/
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWorksheet, IMovable } from '@sheetxl/sdk';
|
|
3
|
+
import { MovableFloatingToolbar } from '../movable';
|
|
4
|
+
import { RangeToolbarRenderProps } from './RangeToolbar';
|
|
5
|
+
/** What the movable toolbar is handed. */
|
|
6
|
+
export interface MovableToolbarRenderProps extends RangeToolbarRenderProps {
|
|
7
|
+
/** The selected movable, which the commands act on. */
|
|
8
|
+
movable: IMovable;
|
|
9
|
+
/** What its kind floats beside it. */
|
|
10
|
+
toolbar: MovableFloatingToolbar;
|
|
11
|
+
}
|
|
12
|
+
/** What {@link SheetMovableLayer} hands its toolbar float. */
|
|
13
|
+
export interface MovableToolbarFloatProps {
|
|
14
|
+
sheet: IWorksheet;
|
|
15
|
+
/** A move, resize or rotate is under way: the toolbar steps aside. */
|
|
16
|
+
gesture: boolean;
|
|
17
|
+
renderToolbar?: ((props: MovableToolbarRenderProps) => React.ReactNode) | null;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The **movable toolbar**: select a drawing whose kind has a {@link MovableFloatingToolbar} and its
|
|
21
|
+
* commands float beside it, a quick action and a dropdown of the rest. The {@link RangeToolbarFloat}
|
|
22
|
+
* tables use, anchored on the drawing's own pixels (turned, its outer box) rather than the cells under
|
|
23
|
+
* it. Only for the selected drawing, so it is clear whose it is, and its commands, which act on the
|
|
24
|
+
* selection, are live. Gone while the drawing is moved, resized or turned.
|
|
25
|
+
*/
|
|
26
|
+
export declare const MovableToolbarFloat: React.FC<MovableToolbarFloatProps>;
|
|
27
|
+
//# sourceMappingURL=MovableToolbar.d.ts.map
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Bounds } from '@sheetxl/utils';
|
|
2
3
|
import { IRange, IWorksheet, ICell } from '@sheetxl/sdk';
|
|
3
4
|
import { HoverTipProps, StickyState } from '@sheetxl/grid-react';
|
|
4
5
|
/**
|
|
5
6
|
* What a toolbar floated over a hovered range is handed, whatever the range holds. Each kind adds
|
|
6
|
-
* the object it floats over: {@link TableToolbarRenderProps}, {@link PivotToolbarRenderProps}
|
|
7
|
+
* the object it floats over: {@link TableToolbarRenderProps}, {@link PivotToolbarRenderProps},
|
|
8
|
+
* {@link MovableToolbarRenderProps}.
|
|
7
9
|
*/
|
|
8
10
|
export interface RangeToolbarRenderProps {
|
|
9
11
|
sheet: IWorksheet;
|
|
@@ -16,10 +18,10 @@ export interface RangeToolbarRenderProps {
|
|
|
16
18
|
setHeld: (held: boolean) => void;
|
|
17
19
|
state: StickyState;
|
|
18
20
|
}
|
|
19
|
-
/** An object a toolbar floats over: a table, a pivot table. */
|
|
21
|
+
/** An object a toolbar floats over: a table, a pivot table, a drawing. */
|
|
20
22
|
interface Hoverable {
|
|
21
23
|
isDeleted(): boolean;
|
|
22
|
-
getName(): string;
|
|
24
|
+
getName?(): string | null;
|
|
23
25
|
}
|
|
24
26
|
/** What {@link RangeToolbarFloat} takes of the kind of object it floats over. */
|
|
25
27
|
export interface RangeToolbarFloatProps<T extends Hoverable> {
|
|
@@ -30,6 +32,15 @@ export interface RangeToolbarFloatProps<T extends Hoverable> {
|
|
|
30
32
|
hovered: T | null;
|
|
31
33
|
/** The cells the toolbar floats beside. */
|
|
32
34
|
rangeOf: (object: T) => IRange.Coords;
|
|
35
|
+
/**
|
|
36
|
+
* The pixels within those cells it floats beside, in absolute sheet px, for an object that does not
|
|
37
|
+
* fill its cells (a drawing). Omit to float beside the cells.
|
|
38
|
+
*/
|
|
39
|
+
boundsOf?: (object: T) => Bounds | null;
|
|
40
|
+
/** The object's identity: the float re-opens when it changes. @defaultValue its name */
|
|
41
|
+
keyOf?: (object: T) => string;
|
|
42
|
+
/** Drop the toolbar now, as editing a cell does (a drawing being dragged). */
|
|
43
|
+
dismiss?: boolean;
|
|
33
44
|
/** Whether the active cell is in the object already, so a press on the toolbar selects nothing. */
|
|
34
45
|
contains: (object: T, cell: ICell.Coords) => boolean;
|
|
35
46
|
/** Puts the selection in the object. */
|
|
@@ -54,7 +65,9 @@ export declare const renderToolbarSlot: <P>(render: ((props: P) => React.ReactNo
|
|
|
54
65
|
export interface RangeToolbarSplitButtonProps {
|
|
55
66
|
/** The object the commands take. */
|
|
56
67
|
target: Hoverable;
|
|
57
|
-
/** The quick action
|
|
68
|
+
/** The quick action, by key. */
|
|
69
|
+
quickKey: string;
|
|
70
|
+
/** The dropdown's commands, by key, in order. */
|
|
58
71
|
commandKeys: readonly string[];
|
|
59
72
|
/** The quick action's color. */
|
|
60
73
|
color: string;
|
|
@@ -3,6 +3,7 @@ import { IWorksheet } from '@sheetxl/sdk';
|
|
|
3
3
|
import { LayerProps } from '@sheetxl/grid-react';
|
|
4
4
|
import { RenderSlotFn } from '@sheetxl/utils-react';
|
|
5
5
|
import { IMovableLayerElement, MovableLayerProps, MovableElementProps } from '../movable';
|
|
6
|
+
import { MovableToolbarRenderProps } from './MovableToolbar';
|
|
6
7
|
export interface SheetMovableLayerProps extends LayerProps {
|
|
7
8
|
/** Class forwarded to the inner layer's host box (devtools identification). */
|
|
8
9
|
className?: string;
|
|
@@ -14,6 +15,11 @@ export interface SheetMovableLayerProps extends LayerProps {
|
|
|
14
15
|
* @returns The rendered movable element
|
|
15
16
|
*/
|
|
16
17
|
renderMovable: RenderSlotFn<MovableElementProps>;
|
|
18
|
+
/**
|
|
19
|
+
* The toolbar that floats beside the selected movable when its kind has one. Omit for the plain
|
|
20
|
+
* default split button; `null` for none.
|
|
21
|
+
*/
|
|
22
|
+
renderToolbar?: ((props: MovableToolbarRenderProps) => React.ReactNode) | null;
|
|
17
23
|
/**
|
|
18
24
|
* Props to pass to MovableLayer
|
|
19
25
|
*/
|
|
@@ -54,7 +54,7 @@ export interface ValidationDropdownLayerProps extends Omit<LayerProps, 'children
|
|
|
54
54
|
* and nothing else.
|
|
55
55
|
*
|
|
56
56
|
* On a **merge** the affordance belongs to the merge, not to its anchor corner cell: the button hugs
|
|
57
|
-
* the MERGE's right edge,
|
|
57
|
+
* the MERGE's right edge, aligned to its bottom. It is a fixed square whatever the row or merge height —
|
|
58
58
|
* stretching it to fit would turn a tall merge into a full-height bar.
|
|
59
59
|
*/
|
|
60
60
|
export declare const ValidationDropdownLayer: React.MemoExoticComponent<(props: ValidationDropdownLayerProps) => React.JSX.Element>;
|
|
@@ -17,6 +17,7 @@ export * from './SheetOutlineLayer';
|
|
|
17
17
|
export * from './SheetMovableLayer';
|
|
18
18
|
export * from './TableLayer';
|
|
19
19
|
export * from './TableToolbar';
|
|
20
|
+
export * from './MovableToolbar';
|
|
20
21
|
export * from './SheetTableCommandLayer';
|
|
21
22
|
export * from './SheetSparklineCommandLayer';
|
|
22
23
|
export * from './SheetPivotCommandLayer';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RemoveListener, EditModeHandler } from '@sheetxl/utils';
|
|
2
2
|
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
3
|
import { Command, IReactNotifier } from '@sheetxl/utils-react';
|
|
4
|
+
import { SheetClipboardOps } from '../clipboard/ClipboardCommands';
|
|
4
5
|
import { ActivateFrameOptions, ITaskPaneArea } from '../taskPane';
|
|
5
6
|
/** Options for {@link contributeMovableCommands}. */
|
|
6
7
|
export interface ContributeMovableCommandsOptions {
|
|
@@ -8,10 +9,15 @@ export interface ContributeMovableCommandsOptions {
|
|
|
8
9
|
notifier?: IReactNotifier;
|
|
9
10
|
/** Cleared after a drawing op. From `useEditMode()`. */
|
|
10
11
|
editModeHandler?: EditModeHandler;
|
|
11
|
-
/** Opens a task pane; `
|
|
12
|
+
/** Opens a task pane; `format` opens the format pane with it. */
|
|
12
13
|
activateTaskPane?: (key: string, options?: ActivateFrameOptions) => void;
|
|
13
|
-
/** Read for whether the format pane is showing, the `
|
|
14
|
+
/** Read for whether the format pane is showing, the `format` state. */
|
|
14
15
|
taskPaneArea?: ITaskPaneArea;
|
|
16
|
+
/**
|
|
17
|
+
* The sheet's copy / cut / paste. While a drawing is selected the movable scope takes the region over
|
|
18
|
+
* from the layers below it, the clipboard layer included, so it carries these itself.
|
|
19
|
+
*/
|
|
20
|
+
clipboard?: SheetClipboardOps;
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
23
|
* Contribute the movable **behavior** over `sheet`'s drawings. Each op runs `update` across the selected
|
|
@@ -87,6 +87,8 @@ export interface MovableLayerProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
87
87
|
* Return an empty node for none.
|
|
88
88
|
*/
|
|
89
89
|
renderTip?: (gesture: MovableGesture) => React.ReactNode;
|
|
90
|
+
/** Called when a move, resize or rotate starts (`true`) and ends (`false`). */
|
|
91
|
+
onGestureChange?: (active: boolean) => void;
|
|
90
92
|
/**
|
|
91
93
|
* Forwards the ref to the underlying element.
|
|
92
94
|
*/
|