@sheetxl/react 0.8.0-beta.7 → 0.8.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/index.cjs +18 -17
- package/browser/cjs/xuAfpHmA2W4MFa_0.cjs +1 -0
- package/browser/esm/Dk6274Lic6AOmEAq.mjs +2624 -0
- package/browser/esm/index.mjs +6023 -4108
- package/licenses/dependencies.txt +0 -555
- package/node/esm/B-5p0wwNM6Y5jlI2.mjs +2624 -0
- package/node/esm/index.mjs +8080 -6160
- package/package.json +6 -7
- package/resources/locales/de/sheet.cmd.json +101 -0
- package/resources/locales/de/ui.msg.json +5 -0
- package/resources/locales/en/sheet.cmd.json +113 -0
- package/resources/locales/en/ui.msg.json +166 -0
- package/types/src/cell/OutlineButton.d.ts +123 -0
- package/types/src/cell/index.d.ts +1 -0
- package/types/src/checklist/ValueChecklist.d.ts +15 -3
- package/types/src/control/FormControlRenderers.d.ts +14 -0
- package/types/src/control/index.d.ts +2 -0
- package/types/src/frame/CommandContext.d.ts +27 -0
- package/types/src/index.d.ts +1 -0
- package/types/src/layer/SheetHeaderCellLayer.d.ts +9 -0
- package/types/src/layer/SheetOutlineLayer.d.ts +40 -0
- package/types/src/layer/index.d.ts +1 -0
- package/types/src/movable/IMovableArea.d.ts +10 -0
- package/types/src/movable/MovableAdornment.d.ts +20 -0
- package/types/src/movable/MovableControl.d.ts +32 -0
- package/types/src/movable/MovableFrame.d.ts +13 -15
- package/types/src/movable/MovableRenderers.d.ts +55 -0
- package/types/src/movable/RotateHandle.d.ts +29 -0
- package/types/src/movable/framePlacement.d.ts +29 -0
- package/types/src/movable/geometry.d.ts +51 -0
- package/types/src/movable/index.d.ts +1 -0
- package/types/src/shape/ShapeEditor.d.ts +16 -2
- package/types/src/shape/ShapeGallery.d.ts +16 -0
- package/types/src/shape/ShapeHandles.d.ts +28 -0
- package/types/src/shape/ShapeSVG.d.ts +24 -0
- package/types/src/shape/ShapeText.d.ts +17 -0
- package/types/src/shape/icons/ShapeIcons.d.ts +16 -0
- package/types/src/shape/icons/_ShapeIconPack.d.ts +4 -0
- package/types/src/shape/index.d.ts +3 -0
- package/types/src/shape/shapeFrame.d.ts +6 -0
- package/types/src/shape/shapeStyle.d.ts +31 -0
- package/types/src/sheet/ISheetElement.d.ts +8 -1
- package/types/src/sheet/SheetOutlineElement.d.ts +70 -0
- package/types/src/workbook/DefaultMovableRenderers.d.ts +2 -0
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +0 -156
- package/browser/esm/CwXbsCWTrl3QB1t6.mjs +0 -6286
- package/node/esm/CZc8rKcLzArmqJz2.mjs +0 -9
- package/types/src/movable/MoveableBundle.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/react",
|
|
3
3
|
"description": "React - React components needed to build advanced grid and spreadsheet UIs.",
|
|
4
|
-
"version": "0.8.0-beta.
|
|
4
|
+
"version": "0.8.0-beta.9",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -48,14 +48,13 @@
|
|
|
48
48
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
49
49
|
"@dnd-kit/sortable": "^10.0.0",
|
|
50
50
|
"@dnd-kit/utilities": "^3.2.2",
|
|
51
|
-
"@sheetxl/grid-react": "^0.8.0-beta.
|
|
52
|
-
"@sheetxl/io": "^0.8.0-beta.
|
|
53
|
-
"@sheetxl/sdk": "^0.8.0-beta.
|
|
54
|
-
"@sheetxl/utils": "^0.8.0-beta.
|
|
55
|
-
"@sheetxl/utils-react": "^0.8.0-beta.
|
|
51
|
+
"@sheetxl/grid-react": "^0.8.0-beta.9",
|
|
52
|
+
"@sheetxl/io": "^0.8.0-beta.9",
|
|
53
|
+
"@sheetxl/sdk": "^0.8.0-beta.9",
|
|
54
|
+
"@sheetxl/utils": "^0.8.0-beta.9",
|
|
55
|
+
"@sheetxl/utils-react": "^0.8.0-beta.9",
|
|
56
56
|
"clsx": "^2.1.1",
|
|
57
57
|
"react-merge-refs": "^3.0.2",
|
|
58
|
-
"react-moveable": "^0.56.0",
|
|
59
58
|
"react-use": "^17.6.1",
|
|
60
59
|
"rooks": "^9.8.0"
|
|
61
60
|
},
|
|
@@ -755,6 +755,99 @@
|
|
|
755
755
|
"mutator"
|
|
756
756
|
]
|
|
757
757
|
},
|
|
758
|
+
"group": {
|
|
759
|
+
"icon": "Group",
|
|
760
|
+
"tags": [
|
|
761
|
+
"mutator"
|
|
762
|
+
],
|
|
763
|
+
"params": {
|
|
764
|
+
"span": "both"
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
"groupRows": {
|
|
768
|
+
"tags": [
|
|
769
|
+
"mutator"
|
|
770
|
+
],
|
|
771
|
+
"shortcut": "alt+shift+ArrowDown"
|
|
772
|
+
},
|
|
773
|
+
"groupColumns": {
|
|
774
|
+
"tags": [
|
|
775
|
+
"mutator"
|
|
776
|
+
],
|
|
777
|
+
"shortcut": "alt+shift+ArrowRight"
|
|
778
|
+
},
|
|
779
|
+
"ungroup": {
|
|
780
|
+
"icon": "Ungroup",
|
|
781
|
+
"tags": [
|
|
782
|
+
"mutator"
|
|
783
|
+
],
|
|
784
|
+
"params": {
|
|
785
|
+
"span": "both"
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
"ungroupRows": {
|
|
789
|
+
"tags": [
|
|
790
|
+
"mutator"
|
|
791
|
+
],
|
|
792
|
+
"shortcut": "alt+shift+ArrowUp"
|
|
793
|
+
},
|
|
794
|
+
"ungroupColumns": {
|
|
795
|
+
"tags": [
|
|
796
|
+
"mutator"
|
|
797
|
+
],
|
|
798
|
+
"shortcut": "alt+shift+ArrowLeft"
|
|
799
|
+
},
|
|
800
|
+
"showDetail": {
|
|
801
|
+
"label": "Detail einblenden",
|
|
802
|
+
"description": "Die Gruppe an der Auswahl erweitern.",
|
|
803
|
+
"icon": "OutlineShowDetail",
|
|
804
|
+
"tags": [
|
|
805
|
+
"mutator"
|
|
806
|
+
]
|
|
807
|
+
},
|
|
808
|
+
"hideDetail": {
|
|
809
|
+
"label": "Detail ausblenden",
|
|
810
|
+
"description": "Die Gruppe an der Auswahl reduzieren.",
|
|
811
|
+
"icon": "OutlineHideDetail",
|
|
812
|
+
"tags": [
|
|
813
|
+
"mutator"
|
|
814
|
+
]
|
|
815
|
+
},
|
|
816
|
+
"outlineToggleGroup": {
|
|
817
|
+
"label": "Gruppe reduzieren oder erweitern",
|
|
818
|
+
"description": "Eine Gruppe über ihre Schaltfläche in der Gliederungsleiste reduzieren oder erweitern.",
|
|
819
|
+
"tags": [
|
|
820
|
+
"mutator"
|
|
821
|
+
]
|
|
822
|
+
},
|
|
823
|
+
"outlineShowLevel": {
|
|
824
|
+
"label": "Gliederungsebene anzeigen",
|
|
825
|
+
"description": "Die Gruppen bis zu einer Ebene anzeigen und den Rest reduzieren.",
|
|
826
|
+
"tags": [
|
|
827
|
+
"mutator"
|
|
828
|
+
]
|
|
829
|
+
},
|
|
830
|
+
"clearOutline": {
|
|
831
|
+
"label": "Gliederung entfernen",
|
|
832
|
+
"description": "Die ausgewählten Zeilen und Spalten aus allen Gruppen entfernen.",
|
|
833
|
+
"tags": [
|
|
834
|
+
"mutator"
|
|
835
|
+
]
|
|
836
|
+
},
|
|
837
|
+
"autoOutline": {
|
|
838
|
+
"label": "AutoGliederung",
|
|
839
|
+
"description": "Zeilen und Spalten anhand der Formeln gruppieren: jede Summe wird zur Zusammenfassung der Zellen, die sie addiert.",
|
|
840
|
+
"tags": [
|
|
841
|
+
"mutator"
|
|
842
|
+
]
|
|
843
|
+
},
|
|
844
|
+
"outlineSettings": {
|
|
845
|
+
"label": "Gliederungseinstellungen…",
|
|
846
|
+
"description": "Festlegen, wo Ergebniszeilen und -spalten liegen und ob die Gliederungsformate angewendet werden.",
|
|
847
|
+
"tags": [
|
|
848
|
+
"mutator"
|
|
849
|
+
]
|
|
850
|
+
},
|
|
758
851
|
"calculate": {
|
|
759
852
|
"label": "Blatt berechnen",
|
|
760
853
|
"description": "Die Formeln des aktuellen Blatts neu berechnen.",
|
|
@@ -945,6 +1038,14 @@
|
|
|
945
1038
|
"mutator"
|
|
946
1039
|
]
|
|
947
1040
|
},
|
|
1041
|
+
"insertShape": {
|
|
1042
|
+
"label": "Formen",
|
|
1043
|
+
"description": "Eine vorgefertigte Form einfügen, etwa ein Rechteck, einen Pfeil, eine Legende oder ein Flussdiagrammsymbol.",
|
|
1044
|
+
"icon": "shape:Shapes",
|
|
1045
|
+
"tags": [
|
|
1046
|
+
"mutator"
|
|
1047
|
+
]
|
|
1048
|
+
},
|
|
948
1049
|
"sheetBackgroundToggle": {
|
|
949
1050
|
"label": "Hintergrund",
|
|
950
1051
|
"description": "Das Bild, das hinter den Zellen des Blattes gekachelt wird, hinzufügen oder entfernen.",
|
|
@@ -147,6 +147,9 @@
|
|
|
147
147
|
"op.typeInto": "''{text}'' in {range} eingeben",
|
|
148
148
|
"op.unmergeCells": "Zellverbund aufheben",
|
|
149
149
|
"op.updateHyperlink": "Link aktualisieren",
|
|
150
|
+
"outline.collapse": "Reduzieren",
|
|
151
|
+
"outline.expand": "Erweitern",
|
|
152
|
+
"outline.showLevel": "Ebene {level} anzeigen",
|
|
150
153
|
"picker.noMatches": "Keine Treffer",
|
|
151
154
|
"picker.noValues": "Keine Werte",
|
|
152
155
|
"picker.search": "Suchen",
|
|
@@ -161,6 +164,7 @@
|
|
|
161
164
|
"reason.mixedSelection": "Nicht verfügbar bei gemischter vollständiger/teilweiser Auswahl.",
|
|
162
165
|
"reason.noComments": "Das Blatt hat keine Kommentare.",
|
|
163
166
|
"reason.noFreeze": "Keine fixierten Bereiche.",
|
|
167
|
+
"reason.noGroup": "Die Auswahl liegt in keiner Gruppe.",
|
|
164
168
|
"reason.noMerge": "Keine verbundenen Zellen in der Auswahl.",
|
|
165
169
|
"reason.noNote": "Die Zelle hat keine Notiz.",
|
|
166
170
|
"reason.noNotes": "Das Blatt hat keine Notizen.",
|
|
@@ -172,6 +176,7 @@
|
|
|
172
176
|
"reason.nothingToRedo": "Nichts zu wiederholen.",
|
|
173
177
|
"reason.nothingToSelect": "Nichts auszuwählen.",
|
|
174
178
|
"reason.nothingToUndo": "Nichts rückgängig zu machen.",
|
|
179
|
+
"reason.outlineTooDeep": "Gruppen können höchstens 7 Ebenen tief geschachtelt werden.",
|
|
175
180
|
"reason.overlap": "Nicht verfügbar bei überlappender Auswahl.",
|
|
176
181
|
"reason.protectionNotPausable": "Zum Anhalten muss das Blatt geschützt sein.",
|
|
177
182
|
"reason.sheetLocked": "Das Blatt ist gesperrt.",
|
|
@@ -756,6 +756,111 @@
|
|
|
756
756
|
"mutator"
|
|
757
757
|
]
|
|
758
758
|
},
|
|
759
|
+
"group": {
|
|
760
|
+
"label": "{span, select, columns{Group Columns} rows{Group Rows} other{Group}}",
|
|
761
|
+
"description": "Group the selected rows or columns, or both for a cell selection, so they can be collapsed and expanded together.",
|
|
762
|
+
"icon": "Group",
|
|
763
|
+
"tags": [
|
|
764
|
+
"mutator"
|
|
765
|
+
],
|
|
766
|
+
"params": {
|
|
767
|
+
"span": "both"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"groupRows": {
|
|
771
|
+
"label": "Group Rows",
|
|
772
|
+
"description": "Group the selected rows so they can be collapsed and expanded together.",
|
|
773
|
+
"shortcut": "alt+shift+ArrowDown",
|
|
774
|
+
"tags": [
|
|
775
|
+
"mutator"
|
|
776
|
+
]
|
|
777
|
+
},
|
|
778
|
+
"groupColumns": {
|
|
779
|
+
"label": "Group Columns",
|
|
780
|
+
"description": "Group the selected columns so they can be collapsed and expanded together.",
|
|
781
|
+
"tags": [
|
|
782
|
+
"mutator"
|
|
783
|
+
],
|
|
784
|
+
"shortcut": "alt+shift+ArrowRight"
|
|
785
|
+
},
|
|
786
|
+
"ungroup": {
|
|
787
|
+
"label": "{span, select, columns{Ungroup Columns} rows{Ungroup Rows} other{Ungroup}}",
|
|
788
|
+
"description": "Remove the selected rows or columns, or both for a cell selection, from their group.",
|
|
789
|
+
"icon": "Ungroup",
|
|
790
|
+
"tags": [
|
|
791
|
+
"mutator"
|
|
792
|
+
],
|
|
793
|
+
"params": {
|
|
794
|
+
"span": "both"
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
"ungroupRows": {
|
|
798
|
+
"label": "Ungroup Rows",
|
|
799
|
+
"description": "Remove the selected rows from their group.",
|
|
800
|
+
"shortcut": "alt+shift+ArrowUp",
|
|
801
|
+
"tags": [
|
|
802
|
+
"mutator"
|
|
803
|
+
]
|
|
804
|
+
},
|
|
805
|
+
"ungroupColumns": {
|
|
806
|
+
"label": "Ungroup Columns",
|
|
807
|
+
"description": "Remove the selected columns from their group.",
|
|
808
|
+
"tags": [
|
|
809
|
+
"mutator"
|
|
810
|
+
],
|
|
811
|
+
"shortcut": "alt+shift+ArrowLeft"
|
|
812
|
+
},
|
|
813
|
+
"showDetail": {
|
|
814
|
+
"label": "Show Detail",
|
|
815
|
+
"description": "Expand the group at the selection.",
|
|
816
|
+
"icon": "OutlineShowDetail",
|
|
817
|
+
"tags": [
|
|
818
|
+
"mutator"
|
|
819
|
+
]
|
|
820
|
+
},
|
|
821
|
+
"hideDetail": {
|
|
822
|
+
"label": "Hide Detail",
|
|
823
|
+
"description": "Collapse the group at the selection.",
|
|
824
|
+
"icon": "OutlineHideDetail",
|
|
825
|
+
"tags": [
|
|
826
|
+
"mutator"
|
|
827
|
+
]
|
|
828
|
+
},
|
|
829
|
+
"outlineToggleGroup": {
|
|
830
|
+
"label": "Collapse or Expand Group",
|
|
831
|
+
"description": "Collapse or expand one group from its button in the outline gutter.",
|
|
832
|
+
"tags": [
|
|
833
|
+
"mutator"
|
|
834
|
+
]
|
|
835
|
+
},
|
|
836
|
+
"outlineShowLevel": {
|
|
837
|
+
"label": "Show Outline Level",
|
|
838
|
+
"description": "Show the groups down to a level and collapse the rest.",
|
|
839
|
+
"tags": [
|
|
840
|
+
"mutator"
|
|
841
|
+
]
|
|
842
|
+
},
|
|
843
|
+
"clearOutline": {
|
|
844
|
+
"label": "Clear Outline",
|
|
845
|
+
"description": "Remove the selected rows and columns from every group.",
|
|
846
|
+
"tags": [
|
|
847
|
+
"mutator"
|
|
848
|
+
]
|
|
849
|
+
},
|
|
850
|
+
"autoOutline": {
|
|
851
|
+
"label": "Auto Outline",
|
|
852
|
+
"description": "Group the rows and columns from the sheet's formulas: each total becomes a summary of the cells it adds up.",
|
|
853
|
+
"tags": [
|
|
854
|
+
"mutator"
|
|
855
|
+
]
|
|
856
|
+
},
|
|
857
|
+
"outlineSettings": {
|
|
858
|
+
"label": "Outline Settings…",
|
|
859
|
+
"description": "Choose where summary rows and columns sit, and whether the outline styles apply.",
|
|
860
|
+
"tags": [
|
|
861
|
+
"mutator"
|
|
862
|
+
]
|
|
863
|
+
},
|
|
759
864
|
"calculate": {
|
|
760
865
|
"label": "Calculate Sheet",
|
|
761
866
|
"description": "Recalculate the formulas on the current sheet.",
|
|
@@ -946,6 +1051,14 @@
|
|
|
946
1051
|
"mutator"
|
|
947
1052
|
]
|
|
948
1053
|
},
|
|
1054
|
+
"insertShape": {
|
|
1055
|
+
"label": "Shapes",
|
|
1056
|
+
"description": "Insert a ready-made shape, such as a rectangle, an arrow, a callout or a flowchart symbol.",
|
|
1057
|
+
"icon": "shape:Shapes",
|
|
1058
|
+
"tags": [
|
|
1059
|
+
"mutator"
|
|
1060
|
+
]
|
|
1061
|
+
},
|
|
949
1062
|
"sheetBackgroundToggle": {
|
|
950
1063
|
"label": "Background",
|
|
951
1064
|
"description": "Add or remove the picture that is tiled behind the sheet's cells.",
|
|
@@ -88,12 +88,14 @@
|
|
|
88
88
|
"error.fillSeries.invalidSelection": "Can not fill a series from this selection. Select the values to continue along with the cells to fill.",
|
|
89
89
|
"error.fillSeries.multipleRanges": "Can not fill a series across multiple cell ranges. Please select a single range and try again.",
|
|
90
90
|
"error.fillSeries.unknownType": "Unknown fill type.",
|
|
91
|
+
"error.group.multipleRanges": "Can not group multiple cell ranges. Please select a single range and try again.",
|
|
91
92
|
"error.insertImage.unresolved": "Unable to resolve image. {detail}",
|
|
92
93
|
"error.removeDuplicates.multipleRanges": "Can not perform Remove Duplicates on multiple cell ranges. Please select a single range and try again.",
|
|
93
94
|
"error.sheet.arrayFixedMultipleRanges": "An array formula can't be entered over a multiple selection.",
|
|
94
95
|
"error.sort.invalidSelection": "Invalid sort selection. Sort requires a single range with data.",
|
|
95
96
|
"error.sort.multipleRanges": "Can not sort on multiple cell ranges. Please select a single range and try again.",
|
|
96
97
|
"error.textToColumns.multipleRanges": "Can not perform Text to Columns on multiple cell ranges. Please select a single range and try again.",
|
|
98
|
+
"error.ungroup.multipleRanges": "Can not ungroup multiple cell ranges. Please select a single range and try again.",
|
|
97
99
|
"findReplace.replaced": "We replaced {count} cells.",
|
|
98
100
|
"formulaInput.equalsRequired": "Formula must start with '='.",
|
|
99
101
|
"formulaInput.invalid": "Invalid Formula",
|
|
@@ -147,6 +149,9 @@
|
|
|
147
149
|
"op.typeInto": "Type ''{text}'' into {range}",
|
|
148
150
|
"op.unmergeCells": "Unmerge Cells",
|
|
149
151
|
"op.updateHyperlink": "Update Hyperlink",
|
|
152
|
+
"outline.collapse": "Collapse",
|
|
153
|
+
"outline.expand": "Expand",
|
|
154
|
+
"outline.showLevel": "Show level {level}",
|
|
150
155
|
"picker.noMatches": "No matches",
|
|
151
156
|
"picker.noValues": "No values",
|
|
152
157
|
"picker.search": "Search",
|
|
@@ -161,6 +166,7 @@
|
|
|
161
166
|
"reason.mixedSelection": "Not available for a mixed full / partial selection.",
|
|
162
167
|
"reason.noComments": "The sheet has no comments.",
|
|
163
168
|
"reason.noFreeze": "No frozen panes.",
|
|
169
|
+
"reason.noGroup": "The selection is not in a group.",
|
|
164
170
|
"reason.noMerge": "No merged cells in the selection.",
|
|
165
171
|
"reason.noNote": "The cell has no note.",
|
|
166
172
|
"reason.noNotes": "The sheet has no notes.",
|
|
@@ -172,6 +178,7 @@
|
|
|
172
178
|
"reason.nothingToSelect": "Nothing to select.",
|
|
173
179
|
"reason.nothingToUndo": "Nothing to undo.",
|
|
174
180
|
"reason.notImplemented": "Not yet implemented.",
|
|
181
|
+
"reason.outlineTooDeep": "Groups can be nested no more than 7 levels deep.",
|
|
175
182
|
"reason.overlap": "Not available for an overlapping selection.",
|
|
176
183
|
"reason.protectionNotPausable": "Pausing needs a protected sheet.",
|
|
177
184
|
"reason.sheetLocked": "The sheet is locked.",
|
|
@@ -194,6 +201,165 @@
|
|
|
194
201
|
"scrollbar.row": "Row: {title}",
|
|
195
202
|
"selection.replace": "Replace",
|
|
196
203
|
"selection.replaceData": "There is already data here. Do you want to replace it?",
|
|
204
|
+
"shape.category.basic": "Basic Shapes",
|
|
205
|
+
"shape.category.blockArrows": "Block Arrows",
|
|
206
|
+
"shape.category.callouts": "Callouts",
|
|
207
|
+
"shape.category.equation": "Equation Shapes",
|
|
208
|
+
"shape.category.flowchart": "Flowchart",
|
|
209
|
+
"shape.category.lines": "Lines",
|
|
210
|
+
"shape.category.rectangles": "Rectangles",
|
|
211
|
+
"shape.category.starsBanners": "Stars and Banners",
|
|
212
|
+
"shape.preset.accentBorderCallout1": "Callout: Line with Border and Accent Bar",
|
|
213
|
+
"shape.preset.accentBorderCallout2": "Callout: Bent Line with Border and Accent Bar",
|
|
214
|
+
"shape.preset.accentBorderCallout3": "Callout: Double Bent Line with Border and Accent Bar",
|
|
215
|
+
"shape.preset.accentCallout1": "Callout: Line with Accent Bar",
|
|
216
|
+
"shape.preset.accentCallout2": "Callout: Bent Line with Accent Bar",
|
|
217
|
+
"shape.preset.accentCallout3": "Callout: Double Bent Line with Accent Bar",
|
|
218
|
+
"shape.preset.arc": "Arc",
|
|
219
|
+
"shape.preset.bentArrow": "Arrow: Bent",
|
|
220
|
+
"shape.preset.bentConnector3": "Connector: Elbow",
|
|
221
|
+
"shape.preset.bentUpArrow": "Arrow: Bent-Up",
|
|
222
|
+
"shape.preset.bevel": "Bevel",
|
|
223
|
+
"shape.preset.blockArc": "Block Arc",
|
|
224
|
+
"shape.preset.borderCallout1": "Callout: Line",
|
|
225
|
+
"shape.preset.borderCallout2": "Callout: Bent Line",
|
|
226
|
+
"shape.preset.borderCallout3": "Callout: Double Bent Line",
|
|
227
|
+
"shape.preset.bracePair": "Double Brace",
|
|
228
|
+
"shape.preset.bracketPair": "Double Bracket",
|
|
229
|
+
"shape.preset.callout1": "Callout: Line with No Border",
|
|
230
|
+
"shape.preset.callout2": "Callout: Bent Line with No Border",
|
|
231
|
+
"shape.preset.callout3": "Callout: Double Bent Line with No Border",
|
|
232
|
+
"shape.preset.can": "Cylinder",
|
|
233
|
+
"shape.preset.chevron": "Arrow: Chevron",
|
|
234
|
+
"shape.preset.chord": "Chord",
|
|
235
|
+
"shape.preset.circularArrow": "Arrow: Circular",
|
|
236
|
+
"shape.preset.cloud": "Cloud",
|
|
237
|
+
"shape.preset.cloudCallout": "Thought Bubble: Cloud",
|
|
238
|
+
"shape.preset.corner": "L-Shape",
|
|
239
|
+
"shape.preset.cube": "Cube",
|
|
240
|
+
"shape.preset.curvedConnector3": "Connector: Curved",
|
|
241
|
+
"shape.preset.curvedDownArrow": "Arrow: Curved Down",
|
|
242
|
+
"shape.preset.curvedLeftArrow": "Arrow: Curved Left",
|
|
243
|
+
"shape.preset.curvedRightArrow": "Arrow: Curved Right",
|
|
244
|
+
"shape.preset.curvedUpArrow": "Arrow: Curved Up",
|
|
245
|
+
"shape.preset.decagon": "Decagon",
|
|
246
|
+
"shape.preset.diagStripe": "Diagonal Stripe",
|
|
247
|
+
"shape.preset.diamond": "Diamond",
|
|
248
|
+
"shape.preset.dodecagon": "Dodecagon",
|
|
249
|
+
"shape.preset.donut": "Circle: Hollow",
|
|
250
|
+
"shape.preset.doubleWave": "Double Wave",
|
|
251
|
+
"shape.preset.downArrow": "Arrow: Down",
|
|
252
|
+
"shape.preset.downArrowCallout": "Callout: Down Arrow",
|
|
253
|
+
"shape.preset.ellipse": "Oval",
|
|
254
|
+
"shape.preset.ellipseRibbon": "Ribbon: Curved and Tilted Down",
|
|
255
|
+
"shape.preset.ellipseRibbon2": "Ribbon: Curved and Tilted Up",
|
|
256
|
+
"shape.preset.flowChartAlternateProcess": "Flowchart: Alternate Process",
|
|
257
|
+
"shape.preset.flowChartCollate": "Flowchart: Collate",
|
|
258
|
+
"shape.preset.flowChartConnector": "Flowchart: Connector",
|
|
259
|
+
"shape.preset.flowChartDecision": "Flowchart: Decision",
|
|
260
|
+
"shape.preset.flowChartDelay": "Flowchart: Delay",
|
|
261
|
+
"shape.preset.flowChartDisplay": "Flowchart: Display",
|
|
262
|
+
"shape.preset.flowChartDocument": "Flowchart: Document",
|
|
263
|
+
"shape.preset.flowChartExtract": "Flowchart: Extract",
|
|
264
|
+
"shape.preset.flowChartInputOutput": "Flowchart: Data",
|
|
265
|
+
"shape.preset.flowChartInternalStorage": "Flowchart: Internal Storage",
|
|
266
|
+
"shape.preset.flowChartMagneticDisk": "Flowchart: Magnetic Disk",
|
|
267
|
+
"shape.preset.flowChartMagneticDrum": "Flowchart: Direct Access Storage",
|
|
268
|
+
"shape.preset.flowChartMagneticTape": "Flowchart: Sequential Access Storage",
|
|
269
|
+
"shape.preset.flowChartManualInput": "Flowchart: Manual Input",
|
|
270
|
+
"shape.preset.flowChartManualOperation": "Flowchart: Manual Operation",
|
|
271
|
+
"shape.preset.flowChartMerge": "Flowchart: Merge",
|
|
272
|
+
"shape.preset.flowChartMultidocument": "Flowchart: Multidocument",
|
|
273
|
+
"shape.preset.flowChartOffpageConnector": "Flowchart: Off-page Connector",
|
|
274
|
+
"shape.preset.flowChartOnlineStorage": "Flowchart: Stored Data",
|
|
275
|
+
"shape.preset.flowChartOr": "Flowchart: Or",
|
|
276
|
+
"shape.preset.flowChartPredefinedProcess": "Flowchart: Predefined Process",
|
|
277
|
+
"shape.preset.flowChartPreparation": "Flowchart: Preparation",
|
|
278
|
+
"shape.preset.flowChartProcess": "Flowchart: Process",
|
|
279
|
+
"shape.preset.flowChartPunchedCard": "Flowchart: Card",
|
|
280
|
+
"shape.preset.flowChartPunchedTape": "Flowchart: Punched Tape",
|
|
281
|
+
"shape.preset.flowChartSort": "Flowchart: Sort",
|
|
282
|
+
"shape.preset.flowChartSummingJunction": "Flowchart: Summing Junction",
|
|
283
|
+
"shape.preset.flowChartTerminator": "Flowchart: Terminator",
|
|
284
|
+
"shape.preset.foldedCorner": "Folded Corner",
|
|
285
|
+
"shape.preset.frame": "Frame",
|
|
286
|
+
"shape.preset.halfFrame": "Half Frame",
|
|
287
|
+
"shape.preset.heart": "Heart",
|
|
288
|
+
"shape.preset.heptagon": "Heptagon",
|
|
289
|
+
"shape.preset.hexagon": "Hexagon",
|
|
290
|
+
"shape.preset.homePlate": "Arrow: Pentagon",
|
|
291
|
+
"shape.preset.horizontalScroll": "Scroll: Horizontal",
|
|
292
|
+
"shape.preset.irregularSeal1": "Explosion: 8 Points",
|
|
293
|
+
"shape.preset.irregularSeal2": "Explosion: 14 Points",
|
|
294
|
+
"shape.preset.leftArrow": "Arrow: Left",
|
|
295
|
+
"shape.preset.leftArrowCallout": "Callout: Left Arrow",
|
|
296
|
+
"shape.preset.leftBrace": "Left Brace",
|
|
297
|
+
"shape.preset.leftBracket": "Left Bracket",
|
|
298
|
+
"shape.preset.leftRightArrow": "Arrow: Left-Right",
|
|
299
|
+
"shape.preset.leftRightArrowCallout": "Callout: Left-Right Arrow",
|
|
300
|
+
"shape.preset.leftRightUpArrow": "Arrow: Left-Right-Up",
|
|
301
|
+
"shape.preset.leftUpArrow": "Arrow: Left-Up",
|
|
302
|
+
"shape.preset.lightningBolt": "Lightning Bolt",
|
|
303
|
+
"shape.preset.line": "Line",
|
|
304
|
+
"shape.preset.mathDivide": "Division Sign",
|
|
305
|
+
"shape.preset.mathEqual": "Equals",
|
|
306
|
+
"shape.preset.mathMinus": "Minus Sign",
|
|
307
|
+
"shape.preset.mathMultiply": "Multiplication Sign",
|
|
308
|
+
"shape.preset.mathNotEqual": "Not Equal",
|
|
309
|
+
"shape.preset.mathPlus": "Plus Sign",
|
|
310
|
+
"shape.preset.moon": "Moon",
|
|
311
|
+
"shape.preset.noSmoking": "\"No\" Symbol",
|
|
312
|
+
"shape.preset.notchedRightArrow": "Arrow: Notched Right",
|
|
313
|
+
"shape.preset.octagon": "Octagon",
|
|
314
|
+
"shape.preset.parallelogram": "Parallelogram",
|
|
315
|
+
"shape.preset.pentagon": "Pentagon",
|
|
316
|
+
"shape.preset.pie": "Partial Circle",
|
|
317
|
+
"shape.preset.plaque": "Plaque",
|
|
318
|
+
"shape.preset.plus": "Cross",
|
|
319
|
+
"shape.preset.quadArrow": "Arrow: Quad",
|
|
320
|
+
"shape.preset.quadArrowCallout": "Callout: Quad Arrow",
|
|
321
|
+
"shape.preset.rect": "Rectangle",
|
|
322
|
+
"shape.preset.ribbon": "Ribbon: Tilted Down",
|
|
323
|
+
"shape.preset.ribbon2": "Ribbon: Tilted Up",
|
|
324
|
+
"shape.preset.rightArrow": "Arrow: Right",
|
|
325
|
+
"shape.preset.rightArrowCallout": "Callout: Right Arrow",
|
|
326
|
+
"shape.preset.rightBrace": "Right Brace",
|
|
327
|
+
"shape.preset.rightBracket": "Right Bracket",
|
|
328
|
+
"shape.preset.round1Rect": "Rectangle: Single Corner Rounded",
|
|
329
|
+
"shape.preset.round2DiagRect": "Rectangle: Diagonal Corners Rounded",
|
|
330
|
+
"shape.preset.round2SameRect": "Rectangle: Top Corners Rounded",
|
|
331
|
+
"shape.preset.roundRect": "Rectangle: Rounded Corners",
|
|
332
|
+
"shape.preset.rtTriangle": "Right Triangle",
|
|
333
|
+
"shape.preset.smileyFace": "Smiley Face",
|
|
334
|
+
"shape.preset.snip1Rect": "Rectangle: Single Corner Snipped",
|
|
335
|
+
"shape.preset.snip2DiagRect": "Rectangle: Diagonal Corners Snipped",
|
|
336
|
+
"shape.preset.snip2SameRect": "Rectangle: Top Corners Snipped",
|
|
337
|
+
"shape.preset.snipRoundRect": "Rectangle: Top Corners One Rounded and One Snipped",
|
|
338
|
+
"shape.preset.star10": "Star: 10 Points",
|
|
339
|
+
"shape.preset.star12": "Star: 12 Points",
|
|
340
|
+
"shape.preset.star16": "Star: 16 Points",
|
|
341
|
+
"shape.preset.star24": "Star: 24 Points",
|
|
342
|
+
"shape.preset.star32": "Star: 32 Points",
|
|
343
|
+
"shape.preset.star4": "Star: 4 Points",
|
|
344
|
+
"shape.preset.star5": "Star: 5 Points",
|
|
345
|
+
"shape.preset.star6": "Star: 6 Points",
|
|
346
|
+
"shape.preset.star7": "Star: 7 Points",
|
|
347
|
+
"shape.preset.star8": "Star: 8 Points",
|
|
348
|
+
"shape.preset.straightConnector1": "Straight Connector",
|
|
349
|
+
"shape.preset.stripedRightArrow": "Arrow: Striped Right",
|
|
350
|
+
"shape.preset.sun": "Sun",
|
|
351
|
+
"shape.preset.teardrop": "Teardrop",
|
|
352
|
+
"shape.preset.trapezoid": "Trapezoid",
|
|
353
|
+
"shape.preset.triangle": "Isosceles Triangle",
|
|
354
|
+
"shape.preset.upArrow": "Arrow: Up",
|
|
355
|
+
"shape.preset.upArrowCallout": "Callout: Up Arrow",
|
|
356
|
+
"shape.preset.upDownArrow": "Arrow: Up-Down",
|
|
357
|
+
"shape.preset.uturnArrow": "Arrow: U-Turn",
|
|
358
|
+
"shape.preset.verticalScroll": "Scroll: Vertical",
|
|
359
|
+
"shape.preset.wave": "Wave",
|
|
360
|
+
"shape.preset.wedgeEllipseCallout": "Speech Bubble: Oval",
|
|
361
|
+
"shape.preset.wedgeRectCallout": "Speech Bubble: Rectangle",
|
|
362
|
+
"shape.preset.wedgeRoundRectCallout": "Speech Bubble: Rectangle with Corners Rounded",
|
|
197
363
|
"sheet.merge": "Merge",
|
|
198
364
|
"sheet.mergeCellsWarning": "Merging cells will only keep the upper-left value. Some data will be discarded. Continue?",
|
|
199
365
|
"table.columns.compact": "{count, plural, one{Table Column} other{# Table Columns}}",
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IRange } from '@sheetxl/sdk';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the button that collapses or expands one row or column group.
|
|
5
|
+
*/
|
|
6
|
+
export interface OutlineButtonProps {
|
|
7
|
+
/** Rows or columns. */
|
|
8
|
+
axis: IRange.Axis;
|
|
9
|
+
/** The group's level, from `1`. */
|
|
10
|
+
level: number;
|
|
11
|
+
/** Whether the group's details are collapsed: the button expands it. */
|
|
12
|
+
collapsed: boolean;
|
|
13
|
+
/** The edge of the square the button fills, in pixels. */
|
|
14
|
+
size: number;
|
|
15
|
+
/** A localized description of what a press does. */
|
|
16
|
+
title: string;
|
|
17
|
+
/** Collapses or expands the group. */
|
|
18
|
+
onToggle: () => void;
|
|
19
|
+
/** Whether a press would be refused (the sheet is protected); the button shows it. */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Props for one of the level buttons `1`..`n`.
|
|
24
|
+
*/
|
|
25
|
+
export interface OutlineLevelButtonProps {
|
|
26
|
+
/** Rows or columns. */
|
|
27
|
+
axis: IRange.Axis;
|
|
28
|
+
/** The level the button shows, from `1`. */
|
|
29
|
+
level: number;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the headers this level reveals are showing somewhere: its button, and every one below
|
|
32
|
+
* it, would show nothing new. The default renderer does not mark these; it sets `data-shown`.
|
|
33
|
+
*/
|
|
34
|
+
shown: boolean;
|
|
35
|
+
/** The edge of the square the button fills, in pixels. */
|
|
36
|
+
size: number;
|
|
37
|
+
/** A localized description of what a press does. */
|
|
38
|
+
title: string;
|
|
39
|
+
/** Shows the groups above this level and collapses the rest. */
|
|
40
|
+
onShowLevel: () => void;
|
|
41
|
+
/** Whether a press would be refused (the sheet is protected); the button shows it. */
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Props for the outline: the row and column gutters and their level buttons.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* The HTML attributes (`className`, `style`, …) apply to each of the outline's boxes: both gutters
|
|
49
|
+
* and both level strips. Where they sit in the sheet is not theirs to change.
|
|
50
|
+
*/
|
|
51
|
+
export interface OutlineProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
52
|
+
/**
|
|
53
|
+
* Renders a group's collapse / expand button, filling the square it is placed in. Defaults to
|
|
54
|
+
* {@link OutlineButton}.
|
|
55
|
+
*/
|
|
56
|
+
renderButton?: (props: OutlineButtonProps) => React.ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* Renders a level button, filling the square it is placed in. Defaults to
|
|
59
|
+
* {@link OutlineLevelButton}.
|
|
60
|
+
*/
|
|
61
|
+
renderLevelButton?: (props: OutlineLevelButtonProps) => React.ReactNode;
|
|
62
|
+
/**
|
|
63
|
+
* The size of one level's lane across the gutter, in pixels at 100% zoom. A button fills its lane,
|
|
64
|
+
* less {@link laneGap}.
|
|
65
|
+
*
|
|
66
|
+
* @defaultValue 18
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* The default button is Excel desktop's 17 pixels. Keep the button odd (`laneSize - laneGap`) and
|
|
70
|
+
* the `+` or `−` sits on its center pixel.
|
|
71
|
+
*/
|
|
72
|
+
laneSize?: number;
|
|
73
|
+
/**
|
|
74
|
+
* The space around the buttons, in pixels: between neighbors, and before the first and after the
|
|
75
|
+
* last. Not scaled by zoom.
|
|
76
|
+
*
|
|
77
|
+
* @defaultValue 1
|
|
78
|
+
*/
|
|
79
|
+
laneGap?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Space between a bracket's end and its button, in pixels.
|
|
82
|
+
*
|
|
83
|
+
* @defaultValue 0
|
|
84
|
+
*/
|
|
85
|
+
bracketGap?: number;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The edge of an outline button: it fills its lane, less the gap to its neighbor.
|
|
89
|
+
*/
|
|
90
|
+
export declare const outlineButtonSize: (laneSize: number, laneGap: number) => number;
|
|
91
|
+
/**
|
|
92
|
+
* Props for {@link OutlineGlyph}.
|
|
93
|
+
*/
|
|
94
|
+
export interface OutlineGlyphProps {
|
|
95
|
+
/** `+` when collapsed, `−` when not. */
|
|
96
|
+
collapsed: boolean;
|
|
97
|
+
/** The glyph's box, in pixels; odd keeps it symmetric. */
|
|
98
|
+
size: number;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The `+` or `−` of an outline button, drawn on whole pixels with a one-pixel stroke.
|
|
102
|
+
*/
|
|
103
|
+
export declare const OutlineGlyph: React.MemoExoticComponent<(props: OutlineGlyphProps) => React.JSX.Element>;
|
|
104
|
+
/**
|
|
105
|
+
* The edge and fill of a level button: those of the sheet's corner select-all knob when the sheet is
|
|
106
|
+
* not selected, resolved on the header surface the strip sits on.
|
|
107
|
+
*/
|
|
108
|
+
export declare const outlineLevelColors: React.CSSProperties;
|
|
109
|
+
/**
|
|
110
|
+
* The text of a level button: the digit centered in a box of `size` (border included).
|
|
111
|
+
*/
|
|
112
|
+
export declare const outlineLevelTextStyle: (size: number) => React.CSSProperties;
|
|
113
|
+
/**
|
|
114
|
+
* The chromeless collapse / expand button: a square with a `+` or a `−`.
|
|
115
|
+
*/
|
|
116
|
+
export declare const OutlineButton: React.MemoExoticComponent<(props: OutlineButtonProps) => React.JSX.Element>;
|
|
117
|
+
/**
|
|
118
|
+
* The chromeless level button: a square with its level number, in the corner knob's colors.
|
|
119
|
+
*/
|
|
120
|
+
export declare const OutlineLevelButton: React.MemoExoticComponent<(props: OutlineLevelButtonProps) => React.JSX.Element>;
|
|
121
|
+
export declare const renderOutlineButton: (props: OutlineButtonProps) => React.ReactNode;
|
|
122
|
+
export declare const renderOutlineLevelButton: (props: OutlineLevelButtonProps) => React.ReactNode;
|
|
123
|
+
//# sourceMappingURL=OutlineButton.d.ts.map
|