@sheetxl/react 0.8.0-beta.6 → 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.
Files changed (58) hide show
  1. package/browser/cjs/index.cjs +18 -17
  2. package/browser/cjs/xuAfpHmA2W4MFa_0.cjs +1 -0
  3. package/browser/esm/Dk6274Lic6AOmEAq.mjs +2624 -0
  4. package/browser/esm/index.mjs +6474 -4211
  5. package/licenses/dependencies.txt +0 -555
  6. package/node/esm/B-5p0wwNM6Y5jlI2.mjs +2624 -0
  7. package/node/esm/index.mjs +8166 -5896
  8. package/package.json +6 -7
  9. package/resources/locales/de/sheet.cmd.json +126 -20
  10. package/resources/locales/de/ui.msg.json +8 -0
  11. package/resources/locales/en/sheet.cmd.json +137 -19
  12. package/resources/locales/en/ui.msg.json +169 -0
  13. package/types/src/cell/CornerTriangle.d.ts +6 -0
  14. package/types/src/cell/OutlineButton.d.ts +123 -0
  15. package/types/src/cell/index.d.ts +1 -0
  16. package/types/src/checklist/ValueChecklist.d.ts +15 -3
  17. package/types/src/comment/CommentCardRequest.d.ts +94 -0
  18. package/types/src/comment/CommentUtils.d.ts +43 -0
  19. package/types/src/comment/index.d.ts +4 -0
  20. package/types/src/comment/useCommentThread.d.ts +37 -0
  21. package/types/src/comment/useSheetComments.d.ts +28 -0
  22. package/types/src/control/FormControlRenderers.d.ts +14 -0
  23. package/types/src/control/index.d.ts +2 -0
  24. package/types/src/frame/CommandContext.d.ts +27 -0
  25. package/types/src/index.d.ts +1 -0
  26. package/types/src/layer/CommentCardLayer.d.ts +45 -0
  27. package/types/src/layer/SheetHeaderCellLayer.d.ts +9 -0
  28. package/types/src/layer/SheetOutlineLayer.d.ts +40 -0
  29. package/types/src/layer/ValidationPromptLayer.d.ts +2 -2
  30. package/types/src/layer/index.d.ts +2 -0
  31. package/types/src/listener/useModelListener.d.ts +4 -4
  32. package/types/src/movable/IMovableArea.d.ts +25 -6
  33. package/types/src/movable/MovableAdornment.d.ts +20 -0
  34. package/types/src/movable/MovableControl.d.ts +32 -0
  35. package/types/src/movable/MovableFrame.d.ts +13 -15
  36. package/types/src/movable/MovableRenderers.d.ts +55 -0
  37. package/types/src/movable/RotateHandle.d.ts +29 -0
  38. package/types/src/movable/framePlacement.d.ts +29 -0
  39. package/types/src/movable/geometry.d.ts +51 -0
  40. package/types/src/movable/index.d.ts +1 -0
  41. package/types/src/shape/ShapeEditor.d.ts +16 -2
  42. package/types/src/shape/ShapeGallery.d.ts +16 -0
  43. package/types/src/shape/ShapeHandles.d.ts +28 -0
  44. package/types/src/shape/ShapeSVG.d.ts +24 -0
  45. package/types/src/shape/ShapeText.d.ts +17 -0
  46. package/types/src/shape/icons/ShapeIcons.d.ts +16 -0
  47. package/types/src/shape/icons/_ShapeIconPack.d.ts +4 -0
  48. package/types/src/shape/index.d.ts +3 -0
  49. package/types/src/shape/shapeFrame.d.ts +6 -0
  50. package/types/src/shape/shapeStyle.d.ts +31 -0
  51. package/types/src/sheet/ISheetElement.d.ts +16 -1
  52. package/types/src/sheet/SheetOutlineElement.d.ts +70 -0
  53. package/types/src/workbook/DefaultMovableRenderers.d.ts +2 -0
  54. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
  55. package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +0 -156
  56. package/browser/esm/CFCvoIa_w1ERjvMW.mjs +0 -6286
  57. package/node/esm/B9g0FgUjU-KLHkGu.mjs +0 -9
  58. 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.6",
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.6",
52
- "@sheetxl/io": "^0.8.0-beta.6",
53
- "@sheetxl/sdk": "^0.8.0-beta.6",
54
- "@sheetxl/utils": "^0.8.0-beta.6",
55
- "@sheetxl/utils-react": "^0.8.0-beta.6",
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.",
@@ -866,9 +959,6 @@
866
959
  "description": "Der Zelle eine Notiz hinzufügen oder die vorhandene bearbeiten.",
867
960
  "icon": "NoteInsert",
868
961
  "shortcut": "shift+F2",
869
- "tags": [
870
- "mutator"
871
- ],
872
962
  "params": {
873
963
  "note": "no"
874
964
  },
@@ -882,41 +972,49 @@
882
972
  "groupLabels": {
883
973
  "noteOptions": "Anzeigen"
884
974
  },
885
- "description": "Die Notiz auf dem Blatt belassen. Andernfalls erscheint sie nur, während auf ihre Zelle gezeigt wird.",
886
- "tags": [
887
- "mutator"
888
- ]
975
+ "description": "Die Notiz auf dem Blatt belassen. Andernfalls erscheint sie nur, während auf ihre Zelle gezeigt wird."
889
976
  },
890
977
  "showAllNotes": {
891
978
  "label": "Alle Notizen anzeigen",
892
- "description": "Alle Notizen auf dem Blatt belassen. Sind bereits alle sichtbar, werden alle ausgeblendet.",
893
- "tags": [
894
- "mutator"
895
- ]
979
+ "description": "Alle Notizen auf dem Blatt belassen. Sind bereits alle sichtbar, werden alle ausgeblendet."
896
980
  },
897
981
  "updateComments": {
898
- "label": "Kommentare",
982
+ "label": "{thread, select, yes{Kommentar anzeigen} other{Kommentar einfügen}}",
899
983
  "groupLabels": {
900
- "contextMenu": "Kommentar einfügen…"
984
+ "contextMenu": "{thread, select, yes{Kommentar anzeigen} other{Kommentar einfügen…}}"
901
985
  },
902
- "description": "Der aktuellen Zelle einen Kommentar hinzufügen.",
986
+ "description": "Der Zelle einen Kommentar hinzufügen oder auf den vorhandenen antworten.",
903
987
  "icon": "CommentInsert",
904
988
  "shortcut": "ctrl+alt+M",
905
- "tags": [
906
- "mutator"
907
- ]
989
+ "params": {
990
+ "thread": "no"
991
+ }
908
992
  },
909
993
  "deleteComments": {
910
994
  "label": "Kommentare löschen",
911
995
  "description": "Alle Kommentare entfernen.",
912
996
  "icon": "CommentDelete",
913
- "tags": [
914
- "mutator"
915
- ],
916
997
  "groupLabels": {
917
998
  "noteOptions": "Löschen"
918
999
  }
919
1000
  },
1001
+ "previousComment": {
1002
+ "label": "Vorheriger Kommentar",
1003
+ "description": "Zum Kommentar vor der ausgewählten Zelle wechseln."
1004
+ },
1005
+ "nextComment": {
1006
+ "label": "Nächster Kommentar",
1007
+ "description": "Zum Kommentar nach der ausgewählten Zelle wechseln."
1008
+ },
1009
+ "showCommentsPane": {
1010
+ "label": "Kommentare anzeigen",
1011
+ "description": "Alle Kommentare des Blatts in einem Bereich auflisten.",
1012
+ "icon": "CommentEdit"
1013
+ },
1014
+ "convertNotesToComments": {
1015
+ "label": "In Kommentare umwandeln",
1016
+ "description": "Alle Notizen des Blatts in Kommentare umwandeln, auf die geantwortet werden kann."
1017
+ },
920
1018
  "insertImageFromFile": {
921
1019
  "label": "Bild einfügen",
922
1020
  "groupLabels": {
@@ -940,6 +1038,14 @@
940
1038
  "mutator"
941
1039
  ]
942
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
+ },
943
1049
  "sheetBackgroundToggle": {
944
1050
  "label": "Hintergrund",
945
1051
  "description": "Das Bild, das hinter den Zellen des Blattes gekachelt wird, hinzufügen oder entfernen.",
@@ -147,10 +147,14 @@
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",
153
156
  "reason.alreadyTable": "Die Auswahl befindet sich bereits in einer Tabelle.",
157
+ "reason.cellHasNote": "Die Zelle hat eine Notiz.",
154
158
  "reason.cellHasThread": "Die Zelle hat einen Kommentar mit Antworten.",
155
159
  "reason.continuousSpan": "Nicht verfügbar bei fortlaufender Ausrichtung oder Ausfüllen.",
156
160
  "reason.entireColumn": "Nicht verfügbar, wenn ganze Spalten ausgewählt sind.",
@@ -158,9 +162,12 @@
158
162
  "reason.freezeOrigin": "Wählen Sie eine Zelle unterhalb und/oder rechts der zu fixierenden Stelle aus.",
159
163
  "reason.mergeUnavailable": "Verbinden ist für diese Auswahl nicht verfügbar.",
160
164
  "reason.mixedSelection": "Nicht verfügbar bei gemischter vollständiger/teilweiser Auswahl.",
165
+ "reason.noComments": "Das Blatt hat keine Kommentare.",
161
166
  "reason.noFreeze": "Keine fixierten Bereiche.",
167
+ "reason.noGroup": "Die Auswahl liegt in keiner Gruppe.",
162
168
  "reason.noMerge": "Keine verbundenen Zellen in der Auswahl.",
163
169
  "reason.noNote": "Die Zelle hat keine Notiz.",
170
+ "reason.noNotes": "Das Blatt hat keine Notizen.",
164
171
  "reason.noPreviousSearch": "Es wurde noch nicht gesucht.",
165
172
  "reason.noSelection": "Nichts ausgewählt.",
166
173
  "reason.noSheetBackground": "Das Blatt hat keinen Hintergrund.",
@@ -169,6 +176,7 @@
169
176
  "reason.nothingToRedo": "Nichts zu wiederholen.",
170
177
  "reason.nothingToSelect": "Nichts auszuwählen.",
171
178
  "reason.nothingToUndo": "Nichts rückgängig zu machen.",
179
+ "reason.outlineTooDeep": "Gruppen können höchstens 7 Ebenen tief geschachtelt werden.",
172
180
  "reason.overlap": "Nicht verfügbar bei überlappender Auswahl.",
173
181
  "reason.protectionNotPausable": "Zum Anhalten muss das Blatt geschützt sein.",
174
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.",
@@ -867,9 +972,6 @@
867
972
  "description": "Add a note to the cell, or edit the one it has.",
868
973
  "icon": "NoteInsert",
869
974
  "shortcut": "shift+F2",
870
- "tags": [
871
- "mutator"
872
- ],
873
975
  "params": {
874
976
  "note": "no"
875
977
  },
@@ -881,43 +983,51 @@
881
983
  "showHideNote": {
882
984
  "label": "Show Note",
883
985
  "description": "Keep the note on the sheet. Otherwise it shows only while its cell is pointed at.",
884
- "tags": [
885
- "mutator"
886
- ],
887
986
  "groupLabels": {
888
987
  "noteOptions": "Show"
889
988
  }
890
989
  },
891
990
  "showAllNotes": {
892
991
  "label": "Show All Notes",
893
- "description": "Keep every note on the sheet. When every note is already shown, hide them all.",
894
- "tags": [
895
- "mutator"
896
- ]
992
+ "description": "Keep every note on the sheet. When every note is already shown, hide them all."
897
993
  },
898
994
  "updateComments": {
899
- "label": "Comments",
900
- "description": "Add a comment to the current cell.",
995
+ "label": "{thread, select, yes{Show Comment} other{Insert Comment}}",
996
+ "description": "Add a comment to the cell, or reply to the one it has.",
901
997
  "groupLabels": {
902
- "contextMenu": "Insert Comment…"
998
+ "contextMenu": "{thread, select, yes{Show Comment} other{Insert Comment…}}"
903
999
  },
904
1000
  "icon": "CommentInsert",
905
1001
  "shortcut": "ctrl+alt+M",
906
- "tags": [
907
- "mutator"
908
- ]
1002
+ "params": {
1003
+ "thread": "no"
1004
+ }
909
1005
  },
910
1006
  "deleteComments": {
911
1007
  "label": "Delete Comments",
912
1008
  "description": "Remove any comments.",
913
1009
  "icon": "CommentDelete",
914
- "tags": [
915
- "mutator"
916
- ],
917
1010
  "groupLabels": {
918
1011
  "noteOptions": "Delete"
919
1012
  }
920
1013
  },
1014
+ "previousComment": {
1015
+ "label": "Previous Comment",
1016
+ "description": "Go to the comment before the selected cell."
1017
+ },
1018
+ "nextComment": {
1019
+ "label": "Next Comment",
1020
+ "description": "Go to the comment after the selected cell."
1021
+ },
1022
+ "showCommentsPane": {
1023
+ "label": "Show Comments",
1024
+ "description": "List every comment on the sheet in a pane.",
1025
+ "icon": "CommentEdit"
1026
+ },
1027
+ "convertNotesToComments": {
1028
+ "label": "Convert to Comments",
1029
+ "description": "Convert every note on the sheet to a comment that can be replied to."
1030
+ },
921
1031
  "insertImageFromFile": {
922
1032
  "label": "Insert Image",
923
1033
  "description": "Insert a picture from your device.",
@@ -941,6 +1051,14 @@
941
1051
  "mutator"
942
1052
  ]
943
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
+ },
944
1062
  "sheetBackgroundToggle": {
945
1063
  "label": "Background",
946
1064
  "description": "Add or remove the picture that is tiled behind the sheet's cells.",