@leankylin-sheet/react 0.3.1

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 (73) hide show
  1. package/README.md +19 -0
  2. package/dist/components/ChangeColor/index.d.ts +7 -0
  3. package/dist/components/ConditionFormat/ConditionRules.d.ts +6 -0
  4. package/dist/components/ConditionFormat/index.d.ts +7 -0
  5. package/dist/components/ContextMenu/Divider.d.ts +3 -0
  6. package/dist/components/ContextMenu/FilterMenu.d.ts +3 -0
  7. package/dist/components/ContextMenu/Menu.d.ts +8 -0
  8. package/dist/components/ContextMenu/SheetTab.d.ts +4 -0
  9. package/dist/components/ContextMenu/index.d.ts +4 -0
  10. package/dist/components/CustomSort/index.d.ts +4 -0
  11. package/dist/components/DataVerification/DropdownList.d.ts +4 -0
  12. package/dist/components/DataVerification/RangeDialog.d.ts +4 -0
  13. package/dist/components/DataVerification/index.d.ts +4 -0
  14. package/dist/components/Dialog/index.d.ts +12 -0
  15. package/dist/components/FilterOption/index.d.ts +5 -0
  16. package/dist/components/FormatSearch/index.d.ts +6 -0
  17. package/dist/components/FormulaSearch/index.d.ts +5 -0
  18. package/dist/components/FxEditor/NameBox.d.ts +3 -0
  19. package/dist/components/FxEditor/index.d.ts +4 -0
  20. package/dist/components/ImgBoxs/index.d.ts +3 -0
  21. package/dist/components/LinkEidtCard/index.d.ts +5 -0
  22. package/dist/components/LocationCondition/index.d.ts +3 -0
  23. package/dist/components/MessageBox/index.d.ts +9 -0
  24. package/dist/components/NotationBoxes/index.d.ts +3 -0
  25. package/dist/components/SVGDefines.d.ts +3 -0
  26. package/dist/components/SVGIcon.d.ts +9 -0
  27. package/dist/components/SearchReplace/index.d.ts +6 -0
  28. package/dist/components/Sheet/index.d.ts +8 -0
  29. package/dist/components/SheetList/SheetHiddenButton.d.ts +8 -0
  30. package/dist/components/SheetList/SheetListItem.d.ts +9 -0
  31. package/dist/components/SheetList/index.d.ts +4 -0
  32. package/dist/components/SheetOverlay/ColumnHeader.d.ts +3 -0
  33. package/dist/components/SheetOverlay/ContentEditable.d.ts +11 -0
  34. package/dist/components/SheetOverlay/FormulaHint/index.d.ts +4 -0
  35. package/dist/components/SheetOverlay/FormulaSearch/index.d.ts +4 -0
  36. package/dist/components/SheetOverlay/InputBox.d.ts +3 -0
  37. package/dist/components/SheetOverlay/RowHeader.d.ts +3 -0
  38. package/dist/components/SheetOverlay/ScrollBar/index.d.ts +7 -0
  39. package/dist/components/SheetOverlay/index.d.ts +4 -0
  40. package/dist/components/SheetTab/SheetItem.d.ts +8 -0
  41. package/dist/components/SheetTab/index.d.ts +4 -0
  42. package/dist/components/SplitColumn/index.d.ts +3 -0
  43. package/dist/components/Toolbar/Button.d.ts +11 -0
  44. package/dist/components/Toolbar/ColorPicker.d.ts +6 -0
  45. package/dist/components/Toolbar/Combo.d.ts +10 -0
  46. package/dist/components/Toolbar/CustomBorder.d.ts +7 -0
  47. package/dist/components/Toolbar/CustomButton.d.ts +11 -0
  48. package/dist/components/Toolbar/CustomColor.d.ts +8 -0
  49. package/dist/components/Toolbar/CustomIcon.d.ts +9 -0
  50. package/dist/components/Toolbar/Divider.d.ts +4 -0
  51. package/dist/components/Toolbar/MoreItemsContainer.d.ts +6 -0
  52. package/dist/components/Toolbar/Select.d.ts +14 -0
  53. package/dist/components/Toolbar/index.d.ts +7 -0
  54. package/dist/components/Workbook/api.d.ts +115 -0
  55. package/dist/components/Workbook/index.d.ts +123 -0
  56. package/dist/components/ZoomControl/index.d.ts +4 -0
  57. package/dist/components/index.d.ts +3 -0
  58. package/dist/context/index.d.ts +25 -0
  59. package/dist/context/modal.d.ts +10 -0
  60. package/dist/hooks/useAlert.d.ts +4 -0
  61. package/dist/hooks/useDialog.d.ts +5 -0
  62. package/dist/hooks/useOutsideClick.d.ts +2 -0
  63. package/dist/hooks/usePrevious.d.ts +2 -0
  64. package/dist/index.css +3395 -0
  65. package/dist/index.d.ts +1 -0
  66. package/dist/index.esm.css +3395 -0
  67. package/dist/index.esm.js +10841 -0
  68. package/dist/index.js +10851 -0
  69. package/dist/index.umd.css +3395 -0
  70. package/dist/index.umd.js +45440 -0
  71. package/dist/index.umd.min.css +1 -0
  72. package/dist/index.umd.min.js +9 -0
  73. package/package.json +41 -0
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # @leankylin-sheet/react
2
+
3
+ LeankylinSheet is a drop-in javascript spreadsheet library that provides rich features like Excel and Google Sheets
4
+
5
+ See our repo [leankylin-sheet](http://114.55.85.79:19999/leankylin-front/leankylin-sheet) for more information.
6
+
7
+ ## Install
8
+
9
+ Using npm:
10
+
11
+ ```bash
12
+ $ npm install --save @leankylin-sheet/react
13
+ ```
14
+
15
+ or using yarn:
16
+
17
+ ```bash
18
+ $ yarn add @leankylin-sheet/react
19
+ ```
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ type Props = {
4
+ triggerParentUpdate: (state: boolean) => void;
5
+ };
6
+ export declare const ChangeColor: React.FC<Props>;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const ConditionRules: React.FC<{
4
+ type: string;
5
+ }>;
6
+ export default ConditionRules;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const ConditionalFormat: React.FC<{
4
+ items: string[];
5
+ setOpen: React.Dispatch<React.SetStateAction<boolean>>;
6
+ }>;
7
+ export default ConditionalFormat;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const Divider: React.FC;
3
+ export default Divider;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const FilterMenu: React.FC;
3
+ export default FilterMenu;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ type Props = React.PropsWithChildren<{
3
+ onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, container: HTMLDivElement) => void;
4
+ onMouseLeave?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, container: HTMLDivElement) => void;
5
+ onMouseEnter?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, container: HTMLDivElement) => void;
6
+ }>;
7
+ declare const Menu: React.FC<Props>;
8
+ export default Menu;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const SheetTabContextMenu: React.FC;
4
+ export default SheetTabContextMenu;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const ContextMenu: React.FC;
4
+ export default ContextMenu;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const CustomSort: React.FC<{}>;
4
+ export default CustomSort;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const DropDownList: React.FC;
4
+ export default DropDownList;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const RangeDialog: React.FC;
4
+ export default RangeDialog;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const DataVerification: React.FC;
4
+ export default DataVerification;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ type Props = {
4
+ type?: "ok" | "yesno";
5
+ onOk?: () => void;
6
+ onCancel?: () => void;
7
+ containerStyle?: React.CSSProperties;
8
+ contentStyle?: React.CSSProperties;
9
+ children?: React.ReactNode;
10
+ };
11
+ declare const Dialog: React.FC<Props>;
12
+ export default Dialog;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ declare const FilterOptions: React.FC<{
3
+ getContainer: () => HTMLDivElement;
4
+ }>;
5
+ export default FilterOptions;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ export declare const FormatSearch: React.FC<{
4
+ type: "currency" | "date" | "number";
5
+ onCancel: () => void;
6
+ }>;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ export declare const FormulaSearch: React.FC<{
4
+ onCancel: () => void;
5
+ }>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const LocationBox: React.FC;
3
+ export default LocationBox;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const FxEditor: React.FC;
4
+ export default FxEditor;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const ImgBoxs: React.FC;
3
+ export default ImgBoxs;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { LinkCardProps } from "@leankylin-sheet/core";
3
+ import "./index.css";
4
+ export declare const LinkEditCard: React.FC<LinkCardProps>;
5
+ export default LinkEditCard;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ export declare const LocationCondition: React.FC<{}>;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ type Props = {
3
+ type: "ok" | "yesno";
4
+ onOk?: () => void;
5
+ onCancel?: () => void;
6
+ children?: React.ReactNode;
7
+ };
8
+ declare const MessageBox: React.FC<Props>;
9
+ export default MessageBox;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const NotationBoxes: React.FC;
3
+ export default NotationBoxes;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const SVGDefines: React.FC;
3
+ export default SVGDefines;
@@ -0,0 +1,9 @@
1
+ import React, { CSSProperties } from "react";
2
+ type Props = {
3
+ name: string;
4
+ width?: number;
5
+ height?: number;
6
+ style?: CSSProperties;
7
+ };
8
+ declare const SVGIcon: React.FC<Props>;
9
+ export default SVGIcon;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const SearchReplace: React.FC<{
4
+ getContainer: () => HTMLDivElement;
5
+ }>;
6
+ export default SearchReplace;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Sheet as SheetType } from "@leankylin-sheet/core";
3
+ import "./index.css";
4
+ type Props = {
5
+ sheet: SheetType;
6
+ };
7
+ declare const Sheet: React.FC<Props>;
8
+ export default Sheet;
@@ -0,0 +1,8 @@
1
+ import { Sheet } from "@leankylin-sheet/core";
2
+ import React, { CSSProperties } from "react";
3
+ type Props = {
4
+ style?: CSSProperties;
5
+ sheet?: Sheet;
6
+ };
7
+ declare const SheetHiddenButton: React.FC<Props>;
8
+ export default SheetHiddenButton;
@@ -0,0 +1,9 @@
1
+ import { Sheet } from "@leankylin-sheet/core";
2
+ import React from "react";
3
+ import "./index.css";
4
+ type Props = {
5
+ sheet: Sheet;
6
+ isDropPlaceholder?: boolean;
7
+ };
8
+ declare const SheetListItem: React.FC<Props>;
9
+ export default SheetListItem;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const SheetList: React.FC;
4
+ export default SheetList;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const ColumnHeader: React.FC;
3
+ export default ColumnHeader;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ type ContentEditableProps = Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
3
+ initialContent?: string;
4
+ innerRef?: (e: HTMLDivElement | null) => void;
5
+ onChange?: (html: string, isBlur?: boolean) => void;
6
+ onBlur?: (e: React.FocusEvent<HTMLDivElement, Element>) => void;
7
+ autoFocus?: boolean;
8
+ allowEdit?: boolean;
9
+ };
10
+ declare const ContentEditable: React.FC<ContentEditableProps>;
11
+ export default ContentEditable;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const FormulaHint: React.FC<React.HTMLAttributes<HTMLDivElement>>;
4
+ export default FormulaHint;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const FormulaSearch: React.FC<React.HTMLAttributes<HTMLDivElement>>;
4
+ export default FormulaSearch;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const InputBox: React.FC;
3
+ export default InputBox;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const RowHeader: React.FC;
3
+ export default RowHeader;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ type Props = {
4
+ axis: "x" | "y";
5
+ };
6
+ declare const ScrollBar: React.FC<Props>;
7
+ export default ScrollBar;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const SheetOverlay: React.FC;
4
+ export default SheetOverlay;
@@ -0,0 +1,8 @@
1
+ import { Sheet } from "@leankylin-sheet/core";
2
+ import React from "react";
3
+ type Props = {
4
+ sheet: Sheet;
5
+ isDropPlaceholder?: boolean;
6
+ };
7
+ declare const SheetItem: React.FC<Props>;
8
+ export default SheetItem;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const SheetTab: React.FC;
4
+ export default SheetTab;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ export declare const SplitColumn: React.FC<{}>;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ type Props = {
3
+ tooltip: string;
4
+ iconId: string;
5
+ onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
6
+ disabled?: boolean;
7
+ selected?: boolean;
8
+ children?: React.ReactNode;
9
+ };
10
+ declare const Button: React.FC<Props>;
11
+ export default Button;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ type Props = {
3
+ onPick: (color: string) => void;
4
+ };
5
+ declare const ColorPicker: React.FC<Props>;
6
+ export default ColorPicker;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ type Props = {
3
+ tooltip: string;
4
+ iconId?: string;
5
+ text?: string;
6
+ onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
7
+ children: (setOpen: React.Dispatch<React.SetStateAction<boolean>>) => React.ReactNode;
8
+ };
9
+ declare const Combo: React.FC<Props>;
10
+ export default Combo;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ type Props = {
4
+ onPick: (changeColor?: string, changeStyle?: string) => void;
5
+ };
6
+ declare const CustomBorder: React.FC<Props>;
7
+ export default CustomBorder;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ type Props = {
3
+ tooltip?: string;
4
+ onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
5
+ selected?: boolean;
6
+ children?: React.ReactNode;
7
+ iconName?: string;
8
+ icon?: React.ReactNode;
9
+ };
10
+ declare const CustomButton: React.FC<Props>;
11
+ export default CustomButton;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ type Props = {
4
+ onCustomPick: (color: string | undefined) => void;
5
+ onColorPick: (color: string) => void;
6
+ };
7
+ export declare const CustomColor: React.FC<Props>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ type Props = {
3
+ iconName?: string;
4
+ width?: number;
5
+ height?: number;
6
+ content?: React.ReactNode;
7
+ };
8
+ declare const CustomIcon: React.FC<Props>;
9
+ export default CustomIcon;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ declare const Divider: React.FC;
3
+ export declare const MenuDivider: React.FC;
4
+ export default Divider;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ declare const MoreItemsContaier: React.FC<{
3
+ onClose?: () => void;
4
+ children?: React.ReactNode;
5
+ }>;
6
+ export default MoreItemsContaier;
@@ -0,0 +1,14 @@
1
+ import React, { CSSProperties } from "react";
2
+ declare const Select: React.FC<{
3
+ children?: React.ReactNode;
4
+ style?: CSSProperties;
5
+ }>;
6
+ type OptionProps = {
7
+ onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
8
+ iconId?: string;
9
+ onMouseLeave?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
10
+ onMouseEnter?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
11
+ };
12
+ declare const Option: React.FC<React.PropsWithChildren<OptionProps>>;
13
+ export { Option };
14
+ export default Select;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const Toolbar: React.FC<{
4
+ setMoreItems: React.Dispatch<React.SetStateAction<React.ReactNode>>;
5
+ moreItemsOpen: boolean;
6
+ }>;
7
+ export default Toolbar;
@@ -0,0 +1,115 @@
1
+ import { api, Cell, Context, Op, Range, Selection, Presence, Settings, SingleRange, Sheet, CellMatrix, CellWithRowAndCol } from "@leankylin-sheet/core";
2
+ import { SetContextOptions } from "../../context";
3
+ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx: Context) => void, options?: SetContextOptions) => void, handleUndo: () => void, handleRedo: () => void, settings: Required<Settings>, cellInput: HTMLDivElement | null, scrollbarX: HTMLDivElement | null, scrollbarY: HTMLDivElement | null): {
4
+ applyOp: (ops: Op[]) => void;
5
+ getCellValue: (row: number, column: number, options?: api.CommonOptions & {
6
+ type?: keyof Cell;
7
+ }) => any;
8
+ setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
9
+ type?: keyof Cell;
10
+ }) => void;
11
+ clearCell: (row: number, column: number, options?: api.CommonOptions) => void;
12
+ setCellFormat: (row: number, column: number, attr: keyof Cell, value: any, options?: api.CommonOptions) => void;
13
+ autoFillCell: (copyRange: SingleRange, applyRange: SingleRange, direction: "up" | "down" | "left" | "right") => void;
14
+ freeze: (type: "row" | "column" | "both", range: {
15
+ row: number;
16
+ column: number;
17
+ }, options?: api.CommonOptions) => void;
18
+ insertRowOrColumn: (type: "row" | "column", index: number, count: number, direction?: "lefttop" | "rightbottom", options?: api.CommonOptions) => void;
19
+ deleteRowOrColumn: (type: "row" | "column", start: number, end: number, options?: api.CommonOptions) => void;
20
+ setRowHeight: (rowInfo: Record<string, number>, options?: api.CommonOptions, custom?: boolean) => void;
21
+ setColumnWidth: (columnInfo: Record<string, number>, options?: api.CommonOptions, custom?: boolean) => void;
22
+ getRowHeight: (rows: number[], options?: api.CommonOptions) => Record<number, number>;
23
+ getColumnWidth: (columns: number[], options?: api.CommonOptions) => Record<number, number>;
24
+ getSelection: () => {
25
+ row: number[];
26
+ column: number[];
27
+ }[] | undefined;
28
+ getFlattenRange: (range: Range) => {
29
+ r: number;
30
+ c: number;
31
+ }[];
32
+ getCellsByFlattenRange: (range?: {
33
+ r: number;
34
+ c: number;
35
+ }[]) => (Cell | null)[];
36
+ getSelectionCoordinates: () => string[];
37
+ getCellsByRange: (range: Selection, options?: api.CommonOptions) => (Cell | null)[][];
38
+ getHtmlByRange: (range: Range, options?: api.CommonOptions) => string | null;
39
+ setSelection: (range: Range, options?: api.CommonOptions) => void;
40
+ setCellValuesByRange: (data: any[][], range: SingleRange, options?: api.CommonOptions) => void;
41
+ setCellFormatByRange: (attr: keyof Cell, value: any, range: Range | SingleRange, options?: api.CommonOptions) => void;
42
+ mergeCells: (ranges: Range, type: string, options?: api.CommonOptions) => void;
43
+ cancelMerge: (ranges: Range, options?: api.CommonOptions) => void;
44
+ getAllSheets: () => Sheet[];
45
+ getSheet: (options?: api.CommonOptions) => {
46
+ celldata: CellWithRowAndCol[];
47
+ name: string;
48
+ config?: import("@leankylin-sheet/core").SheetConfig | undefined;
49
+ order?: number | undefined;
50
+ color?: string | undefined;
51
+ data?: CellMatrix | undefined;
52
+ id?: string | undefined;
53
+ images?: import("@leankylin-sheet/core").Image[] | undefined;
54
+ zoomRatio?: number | undefined;
55
+ column?: number | undefined;
56
+ row?: number | undefined;
57
+ addRows?: number | undefined;
58
+ status?: number | undefined;
59
+ hide?: number | undefined;
60
+ luckysheet_select_save?: Selection[] | undefined;
61
+ luckysheet_selection_range?: {
62
+ row: number[];
63
+ column: number[];
64
+ }[] | undefined;
65
+ calcChain?: any[] | undefined;
66
+ defaultRowHeight?: number | undefined;
67
+ defaultColWidth?: number | undefined;
68
+ showGridLines?: number | boolean | undefined;
69
+ pivotTable?: any;
70
+ isPivotTable?: boolean | undefined;
71
+ filter?: Record<string, any> | undefined;
72
+ filter_select?: {
73
+ row: number[];
74
+ column: number[];
75
+ } | undefined;
76
+ luckysheet_conditionformat_save?: any[] | undefined;
77
+ luckysheet_alternateformat_save?: any[] | undefined;
78
+ dataVerification?: any;
79
+ hyperlink?: Record<string, {
80
+ linkType: string;
81
+ linkAddress: string;
82
+ }> | undefined;
83
+ dynamicArray_compute?: any;
84
+ dynamicArray?: any[] | undefined;
85
+ frozen?: {
86
+ type: "row" | "column" | "both" | "rangeRow" | "rangeColumn" | "rangeBoth";
87
+ range?: {
88
+ row_focus: number;
89
+ column_focus: number;
90
+ } | undefined;
91
+ } | undefined;
92
+ };
93
+ addSheet: () => void;
94
+ deleteSheet: (options?: api.CommonOptions) => void;
95
+ updateSheet: (data: Sheet[]) => void;
96
+ activateSheet: (options?: api.CommonOptions) => void;
97
+ setSheetName: (name: string, options?: api.CommonOptions) => void;
98
+ setSheetOrder: (orderList: Record<string, number>) => void;
99
+ scroll: (options: {
100
+ scrollLeft?: number;
101
+ scrollTop?: number;
102
+ targetRow?: number;
103
+ targetColumn?: number;
104
+ }) => void;
105
+ addPresences: (newPresences: Presence[]) => void;
106
+ removePresences: (arr: {
107
+ username: string;
108
+ userId?: string;
109
+ }[]) => void;
110
+ handleUndo: () => void;
111
+ handleRedo: () => void;
112
+ calculateFormula: () => void;
113
+ dataToCelldata: (data: CellMatrix | undefined) => CellWithRowAndCol[];
114
+ celldataToData: (celldata: CellWithRowAndCol[], rowCount?: number, colCount?: number) => CellMatrix | null;
115
+ };