@sheetxl/studio-mui 0.7.20 → 0.7.21
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/{CtrHMVYocAsdsdWM.cjs → 7uRpnSJkNHg_E-KO.cjs} +2 -2
- package/browser/cjs/B-O26BvbKDImp7pm.cjs +20 -0
- package/browser/cjs/{Dj9IHyA7WeKPeOcw.cjs → B4j_sdzJNzq1ZPbT.cjs} +1 -1
- package/browser/cjs/{DG1AUTzpqtpS_jVC.cjs → BWS4gFWp8lDPvR9C.cjs} +1 -1
- package/browser/cjs/{DoSWqHU9pvfHVYlj.cjs → CmSwD6NZAHhOcRi3.cjs} +2 -2
- package/browser/cjs/{hW1tQx38Ra1unYqS.cjs → DHwhTAQeNs4slttB.cjs} +2 -2
- package/browser/cjs/{C_j6lCasu1t14O9Y.cjs → DMOT_ixtKqRvPULq.cjs} +1 -1
- package/browser/cjs/{CPXMzOdl6xxPLfPn.cjs → DX5ji_lT0Qlqznv7.cjs} +2 -2
- package/browser/cjs/{BQNV7GVR6JkMal0s.cjs → DbqHWelIXc-F2a9N.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{BU-c6ouMN5P9GFpC.cjs → muTJOFrCXh156rjc.cjs} +1 -1
- package/browser/cjs/{DncFK07jNQbBqKkM.cjs → rIy1Cx7HX-8zaQjY.cjs} +3 -3
- package/browser/cjs/{Dc9yE1yxW-8SY3Hv.cjs → saPH3d5fE-ugXp6m.cjs} +1 -1
- package/browser/esm/{BCJfGxexFSseQSX1.mjs → 0D8VtNalLeBTB51a.mjs} +1 -1
- package/browser/esm/{BZ9mDgpYGUEkfYek.mjs → BMo7K5LaD7zuDVg9.mjs} +3 -3
- package/browser/esm/{BG8BFBORDGBJ3nhX.mjs → BNmwaUWz2DJqWumP.mjs} +2 -2
- package/browser/esm/{CCw88yjz7gsAET8V.mjs → Btt4G85L5v01eySb.mjs} +2 -2
- package/browser/esm/{MNeM7EdplvhB32i_.mjs → C7jHdVMf6Yr4eH_B.mjs} +1 -1
- package/browser/esm/{CzI2pgZrodF1v9Qy.mjs → CROTe62QHFVo8YMt.mjs} +2 -2
- package/browser/esm/{R5qqTNvjnM3WxJs7.mjs → D5XNYGaC4Yw6vCRL.mjs} +1 -1
- package/browser/esm/{BW4phvITufQ_VYkF.mjs → DUzVAMWTrS0u37LX.mjs} +2 -2
- package/browser/esm/{tHtBuu4Jh64s0gfO.mjs → DltuoFr9A-WJccbV.mjs} +1 -1
- package/browser/esm/{DnnkEOAQ3T-BZ8YN.mjs → DtifaYF85GrfJ9_1.mjs} +1 -1
- package/browser/esm/{CzbyIwG_G4o6kvXx.mjs → aUkJls9HzxnrZSof.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/mqkuG-TcLS4nn4x0.mjs +4531 -0
- package/licenses/dependencies.txt +139 -139
- package/node/esm/{DxLeMhSCAbLseA57.mjs → BYjJIMFsheqJcsEI.mjs} +1 -1
- package/node/esm/{BCop3xTgurk_pOXZ.mjs → CACqTiBtxYlo1mu7.mjs} +1 -1
- package/node/esm/{DzH9wpTF59hEQ5jd.mjs → CJU8jJhxtR3PEj2I.mjs} +1 -1
- package/node/esm/{BFHAvoo6cadd7zYQ.mjs → CS0OWM24rZpAGRKU.mjs} +1 -1
- package/node/esm/{QXAsw9Yj3OjQnfqS.mjs → CdUceTAldsMTIFnD.mjs} +1 -1
- package/node/esm/{BScUpdKO-b4Gr5Xm.mjs → D6B7z_d11sd-U1fU.mjs} +1 -1
- package/node/esm/{xfteOmuy00dffn5q.mjs → DCngEQG4um0yTeoj.mjs} +1 -1
- package/node/esm/{BrOlE1aJNCNuEX5e.mjs → DQnCFz2zJgMwLou_.mjs} +1 -1
- package/node/esm/{Cy29Wsw-LIboDmIX.mjs → Do7ts-uMkQANfvhq.mjs} +1 -1
- package/node/esm/index.mjs +661 -641
- package/node/esm/{BcKSdSKQD8WAIJsN.mjs → oYh6joioOWhFd_R3.mjs} +1 -1
- package/package.json +8 -8
- package/types/index.d.ts +85 -106
- package/browser/cjs/9A8PR69vLQMV7BcN.cjs +0 -20
- package/browser/esm/DuBLWU88ClLWzYcS.mjs +0 -4510
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.21
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/studio-mui",
|
|
3
3
|
"description": "Studio - Spreadsheet UI built with SheetXL SDK using React & MUI.",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.21",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"charting"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@sheetxl/grid-react": "^0.7.
|
|
52
|
-
"@sheetxl/io": "^0.7.
|
|
53
|
-
"@sheetxl/react": "^0.7.
|
|
54
|
-
"@sheetxl/sdk": "^0.7.
|
|
55
|
-
"@sheetxl/utils": "^0.7.
|
|
56
|
-
"@sheetxl/utils-mui": "^0.7.
|
|
57
|
-
"@sheetxl/utils-react": "^0.7.
|
|
51
|
+
"@sheetxl/grid-react": "^0.7.21",
|
|
52
|
+
"@sheetxl/io": "^0.7.21",
|
|
53
|
+
"@sheetxl/react": "^0.7.21",
|
|
54
|
+
"@sheetxl/sdk": "^0.7.21",
|
|
55
|
+
"@sheetxl/utils": "^0.7.21",
|
|
56
|
+
"@sheetxl/utils-mui": "^0.7.21",
|
|
57
|
+
"@sheetxl/utils-react": "^0.7.21",
|
|
58
58
|
"clsx": "^2.1.1",
|
|
59
59
|
"csstype": "^3.1.3",
|
|
60
60
|
"file-saver": "^2.0.5",
|
package/types/index.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ export declare interface ColorButtonListProps extends default_2.HTMLAttributes<H
|
|
|
211
211
|
previewColor?: IColor;
|
|
212
212
|
onSelectColorDef?: (colorDef: IColor.DefinitionWithLabel) => void;
|
|
213
213
|
onPreviewColorDef?: (colorDef: IColor.DefinitionWithLabel) => void;
|
|
214
|
-
|
|
214
|
+
propsSwatch?: Partial<SwatchProps>;
|
|
215
215
|
compareRGB?: boolean;
|
|
216
216
|
darkMode?: boolean;
|
|
217
217
|
}
|
|
@@ -223,7 +223,7 @@ export declare interface ColorButtonProps extends default_2.HTMLAttributes<HTMLE
|
|
|
223
223
|
previewColor?: IColor;
|
|
224
224
|
onSelectColorDef?: (colorDef: IColor.DefinitionWithLabel) => void;
|
|
225
225
|
onPreviewColorDef?: (colorDef: IColor.DefinitionWithLabel) => void;
|
|
226
|
-
|
|
226
|
+
propsSwatch?: Partial<SwatchProps>;
|
|
227
227
|
defaultButtonSize?: number;
|
|
228
228
|
isLarge?: boolean;
|
|
229
229
|
compareRGB?: boolean;
|
|
@@ -343,7 +343,7 @@ export declare interface ColorPopupButtonProps extends Omit<ExhibitPopupIconButt
|
|
|
343
343
|
* @defaultValue to Toolbar
|
|
344
344
|
*/
|
|
345
345
|
variant?: PopupButtonType;
|
|
346
|
-
|
|
346
|
+
propsPanel?: Partial<ColorPanelProps>;
|
|
347
347
|
/**
|
|
348
348
|
* When closing the popup closeAll movables or just the current.
|
|
349
349
|
* @defaultValue true
|
|
@@ -428,10 +428,6 @@ export declare interface FilterColumnMenuProps extends default_2.HTMLAttributes<
|
|
|
428
428
|
filter: IAutoFilter.IColumn;
|
|
429
429
|
commands?: ICommands.IGroup;
|
|
430
430
|
disabled?: boolean;
|
|
431
|
-
/**
|
|
432
|
-
* MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
|
|
433
|
-
*/
|
|
434
|
-
sx?: SxProps<Theme>;
|
|
435
431
|
floatReference: FloatReference;
|
|
436
432
|
}
|
|
437
433
|
|
|
@@ -442,21 +438,25 @@ export declare interface FilterColumnMenuProps extends default_2.HTMLAttributes<
|
|
|
442
438
|
*/
|
|
443
439
|
export declare const FilterCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
|
|
444
440
|
|
|
445
|
-
export declare
|
|
446
|
-
ref?: default_2.Ref<HTMLDivElement>;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
export declare const Filters: default_2.FC<FiltersProps & {
|
|
450
|
-
ref?: default_2.Ref<IFiltersElement>;
|
|
451
|
-
}>;
|
|
441
|
+
export declare const Filters: default_2.NamedExoticComponent<Omit<FiltersProps, "ref"> & default_2.RefAttributes<IFiltersElement>>;
|
|
452
442
|
|
|
453
443
|
export declare interface FiltersAttributes {
|
|
454
444
|
isFilters: () => true;
|
|
455
445
|
}
|
|
456
446
|
|
|
457
447
|
export declare interface FiltersProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
448
|
+
/**
|
|
449
|
+
* The filter to display.
|
|
450
|
+
*/
|
|
458
451
|
filter: IAutoFilter.IColumn;
|
|
452
|
+
/**
|
|
453
|
+
* Disables the filter UI.
|
|
454
|
+
*/
|
|
459
455
|
disabled?: boolean;
|
|
456
|
+
/**
|
|
457
|
+
* Ref for the Element.
|
|
458
|
+
*/
|
|
459
|
+
ref?: default_2.Ref<IFiltersElement>;
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
/**
|
|
@@ -540,7 +540,7 @@ export declare interface FormulaBarProps extends default_2.HTMLAttributes<HTMLDi
|
|
|
540
540
|
/**
|
|
541
541
|
* Allow for customizations on NamedCollectionEditor
|
|
542
542
|
*/
|
|
543
|
-
|
|
543
|
+
propsNamedCollectionEditor?: NamedCollectionEditorProps;
|
|
544
544
|
/**
|
|
545
545
|
* Override the default NamedCollectionEditor
|
|
546
546
|
*/
|
|
@@ -710,7 +710,7 @@ export declare interface NamedCollectionEditorProps extends default_2.HTMLAttrib
|
|
|
710
710
|
disabled?: boolean;
|
|
711
711
|
readonly?: boolean;
|
|
712
712
|
parentFloat?: FloatReference;
|
|
713
|
-
|
|
713
|
+
propsCommandPopupButton?: CommandPopupButtonProps;
|
|
714
714
|
/**
|
|
715
715
|
* Reference to the underlying element
|
|
716
716
|
*/
|
|
@@ -820,9 +820,7 @@ export declare interface PresetTableStylesCommandButtonProps extends CommandPopu
|
|
|
820
820
|
/**
|
|
821
821
|
* Range input field.
|
|
822
822
|
*/
|
|
823
|
-
export declare const RangeInput: default_2.
|
|
824
|
-
ref?: default_2.Ref<HTMLDivElement>;
|
|
825
|
-
}>;
|
|
823
|
+
export declare const RangeInput: default_2.NamedExoticComponent<Omit<RangeInputProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
826
824
|
|
|
827
825
|
export declare interface RangeInputProps extends FormControlProps {
|
|
828
826
|
/**
|
|
@@ -855,6 +853,10 @@ export declare interface RangeInputProps extends FormControlProps {
|
|
|
855
853
|
* @param address
|
|
856
854
|
*/
|
|
857
855
|
resolvedAddress: (address: ICellRanges.Address) => ICellRanges;
|
|
856
|
+
/**
|
|
857
|
+
* Reference to the element.
|
|
858
|
+
*/
|
|
859
|
+
ref?: default_2.Ref<HTMLDivElement>;
|
|
858
860
|
}
|
|
859
861
|
|
|
860
862
|
export declare interface RequestTitleOptions extends FocusOptions {
|
|
@@ -1007,13 +1009,14 @@ export declare interface StatusBarProps extends default_2.HTMLAttributes<HTMLDiv
|
|
|
1007
1009
|
* * Material-ui theme width light/dark toggle
|
|
1008
1010
|
* * lazy loading
|
|
1009
1011
|
*
|
|
1010
|
-
*
|
|
1012
|
+
* Demo:
|
|
1011
1013
|
*
|
|
1012
|
-
* - [SheetXL](https://storybook.sheetxl.com/)
|
|
1014
|
+
* - [SheetXL](https://storybook.sheetxl.com/?path=/story/studio--workbook-studio)
|
|
1013
1015
|
*
|
|
1014
1016
|
* API:
|
|
1015
1017
|
*
|
|
1016
|
-
* - [
|
|
1018
|
+
* - [StudioProps](https://api.sheetxl.com/interfaces/_sheetxl_studio-mui.StudioProps.html)
|
|
1019
|
+
* - [IWorkbookElement](https://api.sheetxl.com/interfaces/_sheetxl_studio-mui.IWorkbookElement.html)
|
|
1017
1020
|
*/
|
|
1018
1021
|
declare const Studio: default_2.NamedExoticComponent<Omit<StudioProps, "ref"> & default_2.RefAttributes<IWorkbookElement>>;
|
|
1019
1022
|
export { Studio }
|
|
@@ -1028,12 +1031,19 @@ export declare interface StudioElement extends IWorkbookElement {
|
|
|
1028
1031
|
/**
|
|
1029
1032
|
* Properties for the Studio component.
|
|
1030
1033
|
*/
|
|
1031
|
-
export declare interface StudioProps extends Omit<WorkbookElementProps, "workbook"> {
|
|
1034
|
+
export declare interface StudioProps extends Omit<WorkbookElementProps, "workbook">, Omit<PaperProps, 'autoFocus' | 'ref'> {
|
|
1032
1035
|
/**
|
|
1033
|
-
* The
|
|
1036
|
+
* The IWorkbook for the studio.
|
|
1034
1037
|
*
|
|
1035
1038
|
* @remarks
|
|
1036
|
-
*
|
|
1039
|
+
* This can be either an [IWorkbook](./_sheetxl_sdk.IWorkbook.html), a `Promise`
|
|
1040
|
+
* that resolves to an [IWorkbook](./_sheetxl_sdk.IWorkbook.html), or
|
|
1041
|
+
* a [ReadWorkbookOptions](./_sheetxl_io.ReadWorkbookOptions.html) object to create
|
|
1042
|
+
* the workbook from various sources.
|
|
1043
|
+
*
|
|
1044
|
+
* @see
|
|
1045
|
+
* * [IWorkbook](./_sheetxl_sdk.IWorkbook.html)
|
|
1046
|
+
* * [ReadWorkbookOptions](./_sheetxl_io.ReadWorkbookOptions.html)
|
|
1037
1047
|
*/
|
|
1038
1048
|
workbook?: IWorkbook | Promise<IWorkbook> | ReadWorkbookOptions;
|
|
1039
1049
|
/**
|
|
@@ -1058,28 +1068,19 @@ export declare interface StudioProps extends Omit<WorkbookElementProps, "workboo
|
|
|
1058
1068
|
* Custom logo.
|
|
1059
1069
|
*/
|
|
1060
1070
|
logo?: React.ReactNode;
|
|
1061
|
-
/**
|
|
1062
|
-
* Title to display.
|
|
1063
|
-
*
|
|
1064
|
-
* @defaultValue none
|
|
1065
|
-
*
|
|
1066
|
-
* @remarks
|
|
1067
|
-
* If title is null then it is hidden but if it is '' then it is shown with placeholder
|
|
1068
|
-
*/
|
|
1069
|
-
title?: string;
|
|
1070
1071
|
/**
|
|
1071
1072
|
* Callback for title changes.
|
|
1072
1073
|
*
|
|
1073
1074
|
* @param title - The new title.
|
|
1074
1075
|
*/
|
|
1075
|
-
|
|
1076
|
+
onWorkbookTitleChange?: (title: string) => void;
|
|
1076
1077
|
/**
|
|
1077
1078
|
* Additional WorkbookTitle properties.
|
|
1078
1079
|
*
|
|
1079
1080
|
* @remarks
|
|
1080
1081
|
* If onTitleChange or title is provided then the prop versions are ignored
|
|
1081
1082
|
*/
|
|
1082
|
-
|
|
1083
|
+
propsWorkbookTitle?: WorkbookTitleProps;
|
|
1083
1084
|
/**
|
|
1084
1085
|
* Disable the import export options in the menu.
|
|
1085
1086
|
*/
|
|
@@ -1113,6 +1114,10 @@ export declare interface StudioProps extends Omit<WorkbookElementProps, "workboo
|
|
|
1113
1114
|
* This will only be used the first time.
|
|
1114
1115
|
*/
|
|
1115
1116
|
licenseKey?: string;
|
|
1117
|
+
/**
|
|
1118
|
+
* MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
|
|
1119
|
+
*/
|
|
1120
|
+
sx?: SxProps<Theme>;
|
|
1116
1121
|
}
|
|
1117
1122
|
|
|
1118
1123
|
export declare const StyledStrokeIcon: (props: StyledStrokeIconProps) => default_2.ReactElement;
|
|
@@ -1157,9 +1162,7 @@ export declare const TablePlugin: () => void;
|
|
|
1157
1162
|
/**
|
|
1158
1163
|
* This is a way to canvas based TableStylePreview. It has a simple rendering but is lightweight.
|
|
1159
1164
|
*/
|
|
1160
|
-
export declare const TableStyleCanvasPreview: default_2.
|
|
1161
|
-
ref?: default_2.Ref<HTMLDivElement>;
|
|
1162
|
-
}>;
|
|
1165
|
+
export declare const TableStyleCanvasPreview: default_2.NamedExoticComponent<Omit<TableStyleCanvasPreviewProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
1163
1166
|
|
|
1164
1167
|
export declare interface TableStyleCanvasPreviewProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
1165
1168
|
table: ITable;
|
|
@@ -1171,6 +1174,10 @@ export declare interface TableStyleCanvasPreviewProps extends default_2.HTMLAttr
|
|
|
1171
1174
|
* If provided then this context will be used.
|
|
1172
1175
|
*/
|
|
1173
1176
|
canvas?: HTMLCanvasElement;
|
|
1177
|
+
/**
|
|
1178
|
+
* Reference to the element.
|
|
1179
|
+
*/
|
|
1180
|
+
ref?: default_2.Ref<HTMLDivElement>;
|
|
1174
1181
|
}
|
|
1175
1182
|
|
|
1176
1183
|
export declare type TableStyleOptionsAttribute = {
|
|
@@ -1295,9 +1302,7 @@ export declare interface ThemeSelectPanelProps extends default_2.HTMLAttributes<
|
|
|
1295
1302
|
darkMode?: boolean;
|
|
1296
1303
|
}
|
|
1297
1304
|
|
|
1298
|
-
export declare const ThemeSelectPopupButton: default_2.
|
|
1299
|
-
ref?: any;
|
|
1300
|
-
}>;
|
|
1305
|
+
export declare const ThemeSelectPopupButton: default_2.NamedExoticComponent<Omit<ThemeSelectPopupButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
|
|
1301
1306
|
|
|
1302
1307
|
export declare interface ThemeSelectPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "createPopupPanel"> {
|
|
1303
1308
|
themes: IThemeCollection;
|
|
@@ -1310,8 +1315,12 @@ export declare interface ThemeSelectPopupButtonProps extends Omit<ExhibitPopupIc
|
|
|
1310
1315
|
* @defaultValue to Toolbar
|
|
1311
1316
|
*/
|
|
1312
1317
|
variant?: PopupButtonType;
|
|
1313
|
-
|
|
1318
|
+
propsPanel?: Partial<ThemeSelectPanelProps>;
|
|
1314
1319
|
darkMode?: boolean;
|
|
1320
|
+
/**
|
|
1321
|
+
* Ref to the underlying element
|
|
1322
|
+
*/
|
|
1323
|
+
ref?: default_2.Ref<HTMLElement>;
|
|
1315
1324
|
}
|
|
1316
1325
|
|
|
1317
1326
|
/**
|
|
@@ -1403,9 +1412,15 @@ export declare interface WorkbookContextMenuProps extends default_2.HTMLAttribut
|
|
|
1403
1412
|
floatReference: FloatReference;
|
|
1404
1413
|
}
|
|
1405
1414
|
|
|
1415
|
+
/**
|
|
1416
|
+
* The main component for rendering a workbook.
|
|
1417
|
+
*/
|
|
1406
1418
|
export declare const WorkbookElement: default_2.NamedExoticComponent<Omit<WorkbookElementProps, "ref"> & default_2.RefAttributes<IWorkbookElement>>;
|
|
1407
1419
|
|
|
1408
|
-
|
|
1420
|
+
/**
|
|
1421
|
+
* Properties and methods available on the workbook element.
|
|
1422
|
+
*/
|
|
1423
|
+
export declare interface WorkbookElementProps extends Omit<default_2.HTMLAttributes<HTMLDivElement>, 'autoFocus'> {
|
|
1409
1424
|
/**
|
|
1410
1425
|
* A memory model of the workbook.
|
|
1411
1426
|
* If one is not provided a default workbook model will be used.
|
|
@@ -1417,10 +1432,6 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
|
|
|
1417
1432
|
* loading panels.
|
|
1418
1433
|
*/
|
|
1419
1434
|
onElementLoad?: (event: WorkbookLoadEvent) => void | Promise<void>;
|
|
1420
|
-
/**
|
|
1421
|
-
* MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
|
|
1422
|
-
*/
|
|
1423
|
-
sx?: SxProps<Theme>;
|
|
1424
1435
|
/**
|
|
1425
1436
|
* Additional commands provided by application.
|
|
1426
1437
|
*/
|
|
@@ -1437,7 +1448,7 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
|
|
|
1437
1448
|
/**
|
|
1438
1449
|
* Allow for customizations on FormulaBar.
|
|
1439
1450
|
*/
|
|
1440
|
-
|
|
1451
|
+
propsFormulaBar?: FormulaBarProps;
|
|
1441
1452
|
/**
|
|
1442
1453
|
* Render FormulaBar.
|
|
1443
1454
|
*
|
|
@@ -1453,7 +1464,7 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
|
|
|
1453
1464
|
/**
|
|
1454
1465
|
* Allow for customizations on tabs.
|
|
1455
1466
|
*/
|
|
1456
|
-
|
|
1467
|
+
propsTabs?: WorkbookStripProps;
|
|
1457
1468
|
/**
|
|
1458
1469
|
* Render custom tabs.
|
|
1459
1470
|
* @param props
|
|
@@ -1468,7 +1479,7 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
|
|
|
1468
1479
|
/**
|
|
1469
1480
|
* Customizations for the status bar
|
|
1470
1481
|
*/
|
|
1471
|
-
|
|
1482
|
+
propsStatusBar?: StatusBarProps;
|
|
1472
1483
|
/**
|
|
1473
1484
|
* Pass in a custom statusbar.
|
|
1474
1485
|
*
|
|
@@ -1479,7 +1490,7 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
|
|
|
1479
1490
|
/**
|
|
1480
1491
|
* Props for the toolbar.
|
|
1481
1492
|
*/
|
|
1482
|
-
|
|
1493
|
+
propsToolbar?: WorkbookToolbarsProps;
|
|
1483
1494
|
/**
|
|
1484
1495
|
* Pass in a custom toolbar.
|
|
1485
1496
|
* @param props
|
|
@@ -1487,9 +1498,9 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
|
|
|
1487
1498
|
*/
|
|
1488
1499
|
renderToolbar?: (props: WorkbookToolbarsProps) => default_2.ReactElement;
|
|
1489
1500
|
/**
|
|
1490
|
-
*
|
|
1501
|
+
* Props for the context menu.
|
|
1491
1502
|
*/
|
|
1492
|
-
|
|
1503
|
+
propsContextMenu?: WorkbookContextMenuProps;
|
|
1493
1504
|
/**
|
|
1494
1505
|
* Render custom context menu.
|
|
1495
1506
|
* @param props
|
|
@@ -1513,7 +1524,7 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
|
|
|
1513
1524
|
/**
|
|
1514
1525
|
* Allow for customizations on loading panels.
|
|
1515
1526
|
*/
|
|
1516
|
-
|
|
1527
|
+
propsLoading?: LoadingPanelProps;
|
|
1517
1528
|
/**
|
|
1518
1529
|
* Assign a custom loading panel.
|
|
1519
1530
|
*
|
|
@@ -1523,7 +1534,7 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
|
|
|
1523
1534
|
/**
|
|
1524
1535
|
* Allow for customizations on loading panel.
|
|
1525
1536
|
*/
|
|
1526
|
-
|
|
1537
|
+
propsSheet?: SheetProps;
|
|
1527
1538
|
/**
|
|
1528
1539
|
* Render custom ISheetElement.
|
|
1529
1540
|
*
|
|
@@ -1534,7 +1545,7 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
|
|
|
1534
1545
|
/**
|
|
1535
1546
|
* Allows users to Wrap stage children in Top level Context
|
|
1536
1547
|
*/
|
|
1537
|
-
|
|
1548
|
+
wrapperMain?: (children: default_2.ReactNode) => default_2.ReactElement;
|
|
1538
1549
|
/**
|
|
1539
1550
|
* Show the horizontal scrollbar
|
|
1540
1551
|
*/
|
|
@@ -1581,40 +1592,7 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
|
|
|
1581
1592
|
*/
|
|
1582
1593
|
export declare const WorkbookIO: _WorkbookIO;
|
|
1583
1594
|
|
|
1584
|
-
|
|
1585
|
-
* Wraps the IO WorkbookIO class to provide lazy import and adds support for IReactNotifier
|
|
1586
|
-
* notification to the read method.
|
|
1587
|
-
*
|
|
1588
|
-
* @see '@sheetxl/io/IWorkbookIO'
|
|
1589
|
-
*/
|
|
1590
|
-
export declare class _WorkbookIO implements IWorkbookIO {
|
|
1591
|
-
protected _loadedIO: IWorkbookIO;
|
|
1592
|
-
protected _loadIO(): Promise<IWorkbookIO>;
|
|
1593
|
-
/** @inheritdoc IWorkbookIO.getReadFormats */
|
|
1594
|
-
getReadFormats(options?: GetFormatsOptions): Promise<ReadFormatType[]>;
|
|
1595
|
-
/** @inheritdoc IWorkbookIO.getWriteFormats */
|
|
1596
|
-
getWriteFormats(options?: GetFormatsOptions): Promise<WriteFormatType[]>;
|
|
1597
|
-
/** @inheritdoc IWorkbookIO.writeArrayBuffer */
|
|
1598
|
-
writeArrayBuffer(workbook: IWorkbook, options?: WriteWorkbookOptions): Promise<ArrayBufferLike>;
|
|
1599
|
-
/**
|
|
1600
|
-
* Override default IWorkbookIO to add notifier support.
|
|
1601
|
-
*
|
|
1602
|
-
* @param options {@link ReadWorkbookOptions}
|
|
1603
|
-
*/
|
|
1604
|
-
read(options: ReadWorkbookOptions, notifier?: IReactNotifier): Promise<IWorkbook>;
|
|
1605
|
-
/** @inheritdoc IWorkbookIO.writeFile */
|
|
1606
|
-
writeFile(fileName: string | null, workbook: IWorkbook, options?: WriteWorkbookOptions): Promise<boolean>;
|
|
1607
|
-
/** @inheritdoc IWorkbookIO.registerReadFormat */
|
|
1608
|
-
registerReadFormat(format: ReadFormatType): Promise<void>;
|
|
1609
|
-
/** @inheritdoc IWorkbookIO.registerWriteFormat */
|
|
1610
|
-
registerWriteFormat(format: WriteFormatType): Promise<void>;
|
|
1611
|
-
/**
|
|
1612
|
-
* A string array of all the mimeTYpes. Used for the input accept attribute.
|
|
1613
|
-
*
|
|
1614
|
-
* @returns An array of strings for the input types.
|
|
1615
|
-
*/
|
|
1616
|
-
getAllReadFormatsAsString(): Promise<string>;
|
|
1617
|
-
}
|
|
1595
|
+
/* Excluded from this release type: _WorkbookIO */
|
|
1618
1596
|
|
|
1619
1597
|
export declare type WorkbookLoadEvent = {
|
|
1620
1598
|
source: IWorkbookElement;
|
|
@@ -1652,7 +1630,7 @@ export declare interface WorkbookStripProps extends default_2.HTMLAttributes<HTM
|
|
|
1652
1630
|
/**
|
|
1653
1631
|
* Allow for customizations on context menu
|
|
1654
1632
|
*/
|
|
1655
|
-
|
|
1633
|
+
propsContextMenu?: Partial<SheetTabMenuProps>;
|
|
1656
1634
|
/**
|
|
1657
1635
|
* Render custom context menu.
|
|
1658
1636
|
*
|
|
@@ -1663,7 +1641,7 @@ export declare interface WorkbookStripProps extends default_2.HTMLAttributes<HTM
|
|
|
1663
1641
|
/**
|
|
1664
1642
|
* Allow for customizations on context menu
|
|
1665
1643
|
*/
|
|
1666
|
-
|
|
1644
|
+
propsSheetsAll?: SheetsAllMenuProps;
|
|
1667
1645
|
/**
|
|
1668
1646
|
* Render custom sheet all menu.
|
|
1669
1647
|
*
|
|
@@ -1674,7 +1652,7 @@ export declare interface WorkbookStripProps extends default_2.HTMLAttributes<HTM
|
|
|
1674
1652
|
/**
|
|
1675
1653
|
* Allow for customizations om sheet tabs.
|
|
1676
1654
|
*/
|
|
1677
|
-
|
|
1655
|
+
propsSheetTab?: Partial<SheetTabProps>;
|
|
1678
1656
|
/**
|
|
1679
1657
|
* Render custom sheet tabs.
|
|
1680
1658
|
* @param props
|
|
@@ -1748,23 +1726,27 @@ export declare interface WorkbookTitleProps extends default_2.HTMLAttributes<HTM
|
|
|
1748
1726
|
declare interface WorkbookToolbarsProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
1749
1727
|
commands: ICommands.IGroup;
|
|
1750
1728
|
/**
|
|
1751
|
-
* Wrap the select with custom component
|
|
1729
|
+
* Wrap the select with custom component.
|
|
1730
|
+
*
|
|
1752
1731
|
* @param children
|
|
1753
1732
|
*/
|
|
1754
|
-
|
|
1733
|
+
wrapperSelect?: (children: default_2.ReactNode) => default_2.ReactNode;
|
|
1755
1734
|
/**
|
|
1756
1735
|
* Properties for the select
|
|
1757
1736
|
*/
|
|
1758
|
-
|
|
1759
|
-
/**
|
|
1760
|
-
|
|
1737
|
+
propsSelect?: SxProps;
|
|
1738
|
+
/**
|
|
1739
|
+
* If we need to render compact.
|
|
1740
|
+
*/
|
|
1741
|
+
isCompact?: boolean;
|
|
1761
1742
|
/**
|
|
1762
|
-
* Wrap the palette with custom component
|
|
1743
|
+
* Wrap the palette with custom component.
|
|
1744
|
+
*
|
|
1763
1745
|
* @param children
|
|
1764
1746
|
*/
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1747
|
+
wrapperPalette?: (children: default_2.ReactNode) => default_2.ReactNode;
|
|
1748
|
+
propsPalette?: PaperProps;
|
|
1749
|
+
propsToolbars?: Record<string, ToolbarProps>;
|
|
1768
1750
|
workbook?: IWorkbookElement;
|
|
1769
1751
|
/**
|
|
1770
1752
|
* MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
|
|
@@ -1777,7 +1759,4 @@ export declare const WorkbookViewCommandButton: default_2.NamedExoticComponent<O
|
|
|
1777
1759
|
export declare interface WorkbookViewCommandButtonProps extends CommandPopupButtonProps {
|
|
1778
1760
|
}
|
|
1779
1761
|
|
|
1780
|
-
|
|
1781
|
-
export * from "@sheetxl/io";
|
|
1782
|
-
|
|
1783
1762
|
export { }
|