@sheetxl/studio-mui 0.8.0-beta.10 → 0.8.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/{ByeL_BZuJ2kl8gtf.mjs → 0IBZhOJaVmzJxuTv.mjs} +1 -1
- package/browser/esm/2nRxqrNYbmEn8fS8.mjs +386 -0
- package/browser/esm/{fb126BNj3F8URR19.mjs → 7fVZXXuonYb6Z7FU.mjs} +3 -3
- package/browser/esm/BAzhmMX4Fk_qnUTp.mjs +414 -0
- package/browser/esm/BGL3x0W74D7qZXlf.mjs +318 -0
- package/browser/esm/BHGr2gsFofTdAFxq.mjs +515 -0
- package/browser/esm/{DU3J8Gcf-WpBxNYg.mjs → BKhcJI-G15D3kGap.mjs} +4 -4
- package/browser/esm/BNbub9weuqm3mcoF.mjs +335 -0
- package/browser/esm/BSv9MVJaz1DVEffm.mjs +975 -0
- package/browser/esm/BWfLpYmd3cSgJ0C6.mjs +141 -0
- package/browser/esm/BZqwbIE8qzjSOYcJ.mjs +582 -0
- package/browser/esm/BZy9xUrYpAtnKeji.mjs +1288 -0
- package/browser/esm/{CIu1bjPJe_x31Oww.mjs → BnkwC5rsg9LZyhoP.mjs} +3 -3
- package/browser/esm/BpJsBv413cNQpyg0.mjs +319 -0
- package/browser/esm/BpVrgbVISiTDyFR3.mjs +197 -0
- package/browser/esm/BsngRDhvVYGVBJeK.mjs +1546 -0
- package/browser/esm/{C1Rp2hZrApo5MUc8.mjs → C29TKq47CbXs652l.mjs} +2 -2
- package/browser/esm/{CEvZe2cZK-voZTif.mjs → C8p2iMad_NNCwGI_.mjs} +5 -5
- package/browser/esm/CBzXksWnb-1gGEWZ.mjs +212 -0
- package/browser/esm/{IQLeaAbtGTipUsOD.mjs → CFIAWgpU3UyepLBn.mjs} +25 -24
- package/browser/esm/CJD4jF4m9cBGHzr_.mjs +31 -0
- package/browser/esm/{CjznclrKqJRi7u9O.mjs → CMc7G7cevxzPGxr9.mjs} +2 -2
- package/browser/esm/{B1Yp_uy1vFHcJB3U.mjs → CYtULLhY9M2m3DeH.mjs} +1 -1
- package/browser/esm/CeF35ZeFP28Do5Zx.mjs +1379 -0
- package/browser/esm/{xKiLJKiLxto8SayF.mjs → CjYKDxU4EP2Kf_vo.mjs} +2 -2
- package/browser/esm/{D8al_cJ4U-NgzwoK.mjs → Cq82lvdjyBvlJ8xJ.mjs} +19 -17
- package/browser/esm/{X1Db3b_7b_7OuCk6.mjs → CuRxFAO42JkQvMEx.mjs} +1 -1
- package/browser/esm/Cvk2yY90hpgXWMAt.mjs +103 -0
- package/browser/esm/D0slJycx3nq53qmf.mjs +14 -0
- package/browser/esm/{9eKCkvqpMQwqcXiw.mjs → D2jzliMwAo2ENpfi.mjs} +1 -1
- package/browser/esm/D5Fn0Hqllwv5HY6i.mjs +7581 -0
- package/browser/esm/D5N4nGaZsXtrHAOh.mjs +831 -0
- package/browser/esm/D7AqPfyhMiuda5l5.mjs +412 -0
- package/browser/esm/DHZA48ZMCETvHmeP.mjs +161 -0
- package/browser/esm/DX2_vf7WX6uRLaOZ.mjs +94 -0
- package/browser/esm/DaxpbAF1ShkT7hNU.mjs +490 -0
- package/browser/esm/{D6S8kVTzOjCn0-SK.mjs → Db3oHfXiRtcH015t.mjs} +162 -156
- package/browser/esm/Dt47Huh1l3C4_5_w.mjs +87 -0
- package/browser/esm/{DmCQbW4zwkT_Rq88.mjs → DtPt0phL7m56YfHZ.mjs} +1 -1
- package/browser/esm/{CoSiOS-og0zFw4Ws.mjs → DtTDaXmnWUoG4VBO.mjs} +2 -2
- package/browser/esm/{DHY19rkSiiRZxShC.mjs → DuuyN4-7K6_io2Py.mjs} +3 -3
- package/browser/esm/{yZxC4qUENOlMhVUH.mjs → NeGeLF3gbGMZyV6E.mjs} +1 -1
- package/browser/esm/PY3Br5Bo_TxcCnCU.mjs +252 -0
- package/browser/esm/WIhvQtBkGiw-oFUs.mjs +2566 -0
- package/browser/esm/WgIvwAENeO8LANax.mjs +437 -0
- package/browser/esm/{DBtc4lku0uHVcqWn.mjs → Yjq3p_7eVGFw2Jod.mjs} +3 -3
- package/browser/esm/index.mjs +1053 -192
- package/browser/esm/jFRFCWlkD7Dsrhkh.mjs +236 -0
- package/browser/esm/lKXEDVt2ow1NlWJj.mjs +392 -0
- package/browser/esm/{Blaj2R5hYxtLAW__.mjs → oC0OwOddhOD0OoCJ.mjs} +6 -6
- package/browser/esm/{sFOAxZpxXo-qvDSp.mjs → tIKqpsA0vNXH9EgU.mjs} +1 -1
- package/browser/esm/{5cbK03T_Oh3tNdR7.mjs → u84rSnESjxqB6gay.mjs} +1 -1
- package/licenses/dependencies.txt +94 -94
- package/node/esm/{BcwMb6CyVfvEwbHn.mjs → B8Ls4Eh1k8-Yiry_.mjs} +1 -1
- package/node/esm/{CKu1AtRgyltyEdEN.mjs → B9X3n8MglL4OitAV.mjs} +1 -1
- package/node/esm/{ETK6T6G0SIcFXDe5.mjs → BBGoyqs2L_ccSH1e.mjs} +40 -40
- package/node/esm/BLv99aovW4R3C5PE.mjs +515 -0
- package/node/esm/BUGU_5lUtnCRlp3n.mjs +519 -0
- package/node/esm/BalROFG_oa9PFs9Q.mjs +141 -0
- package/node/esm/{ah3CUg4-VmNstGk_.mjs → BqVxnA1mo52ubjdf.mjs} +2 -2
- package/node/esm/C3FCh9xju2SccUIE.mjs +1283 -0
- package/node/esm/{Bb1sLMqXWKjdve23.mjs → C4F6WY8M4nkLyxdb.mjs} +2 -2
- package/node/esm/CKWeipCqqpLnLE5e.mjs +391 -0
- package/node/esm/CTnVNfz4eqFnM92M.mjs +212 -0
- package/node/esm/Cfi_ly8fBDZZdiZT.mjs +72 -0
- package/node/esm/CgKa6JuyJ1tTodev.mjs +1703 -0
- package/node/esm/{cqzp431iNSLWictb.mjs → Cq53M7bAUSXMNq1f.mjs} +22 -22
- package/node/esm/{BYsG3KYVmxSe_CIQ.mjs → Cr8AYWUoU-XVt0hu.mjs} +1 -1
- package/node/esm/CyuOE595I2e-U4cG.mjs +236 -0
- package/node/esm/D72CupF9mfy2D1Xa.mjs +94 -0
- package/node/esm/{DNSjK5DAH3M14Qbc.mjs → DGDHFK8okuVbRCe5.mjs} +1 -1
- package/node/esm/{B8SQfjKjzYHLxzZR.mjs → DJFkALt4XrwkMbnU.mjs} +163 -157
- package/node/esm/DJpwI8PlKBI2rk0r.mjs +319 -0
- package/node/esm/{DZzvTQxIKr9LbEsA.mjs → DQaGPUYbgL4Y5YZW.mjs} +32 -30
- package/node/esm/{D9rzScOA9pEYFrtz.mjs → DsNYnq4NtYBxPmeA.mjs} +20 -20
- package/node/esm/DygDgOpa9sJ6YFVS.mjs +385 -0
- package/node/esm/Dz0Hg87UcJ-awwiI.mjs +489 -0
- package/node/esm/M7YxvRPGCuxuk9aK.mjs +142 -0
- package/node/esm/QNjtpX8rIpqGGLEJ.mjs +1379 -0
- package/node/esm/{B_jRGdwGFkudwmL-.mjs → ZzvsynJTCSuChYS-.mjs} +1 -1
- package/node/esm/{ci8d-mF1H9wnYzix.mjs → di_8-pXh90j4BO4j.mjs} +1 -1
- package/node/esm/dm8dmEaTIqfmgyeL.mjs +412 -0
- package/node/esm/{D6oQL8knsPpgdXuk.mjs → fmya3XQnTGyQisvT.mjs} +2 -2
- package/node/esm/gPYAb_A0T5ZwcQ1E.mjs +318 -0
- package/node/esm/index.mjs +8915 -13417
- package/node/esm/wB8xMpyJ_NvE16yG.mjs +975 -0
- package/node/esm/zGAcd4Jr7wkvXDBS.mjs +197 -0
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +4 -0
- package/resources/locales/de/ui.msg.json +100 -1
- package/resources/locales/en/groups.cmd.json +4 -0
- package/resources/locales/en/ui.msg.json +100 -1
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
- package/types/src/anomalies/AnomaliesPlugin.d.ts +5 -0
- package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
- package/types/src/anomalies/index.d.ts +3 -0
- package/types/src/border/BorderPopupButton.d.ts +1 -1
- package/types/src/border/BorderTemplateIcon.d.ts +6 -1
- package/types/src/chart/ChartFormatPanel.d.ts +20 -0
- package/types/src/chart/ChartPlugin.d.ts +6 -0
- package/types/src/chart/index.d.ts +3 -0
- package/types/src/color/ColorPopupButton.d.ts +1 -1
- package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
- package/types/src/command/DocThemeCommandButton.d.ts +1 -1
- package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
- package/types/src/command/FontSizeCommandButton.d.ts +1 -1
- package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
- package/types/src/command/LanguageCommandButton.d.ts +1 -1
- package/types/src/command/LocaleCommandButton.d.ts +1 -1
- package/types/src/command/index.d.ts +1 -0
- package/types/src/comments/CommentCard.d.ts +2 -2
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +1 -1
- package/types/src/conditions/ConditionEditor.d.ts +1 -1
- package/types/src/conditions/OperatorAndParamEditor.d.ts +1 -1
- package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
- package/types/src/conditions/useFormulaOption.d.ts +2 -2
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
- package/types/src/fill/PatternPopupButton.d.ts +1 -1
- package/types/src/format/BorderPreview.d.ts +11 -4
- package/types/src/format/useFormatSelection.d.ts +4 -4
- package/types/src/formulaBar/IFormulaBar.d.ts +4 -2
- package/types/src/formulaBar/MobileFormulaBar.d.ts +18 -6
- package/types/src/formulaBar/MobileInputToolbar.d.ts +9 -3
- package/types/src/formulaBar/useFormulaBarSession.d.ts +6 -3
- package/types/src/index.d.ts +15 -6
- package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
- package/types/src/named/NamedDetailsPanel.d.ts +2 -2
- package/types/src/protection/ProtectedCellsPanel.d.ts +2 -2
- package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
- package/types/src/protection/index.d.ts +1 -1
- package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +2 -2
- package/types/src/statusBar/PendingStatus.d.ts +19 -0
- package/types/src/statusBar/index.d.ts +1 -0
- package/types/src/studio/StudioProps.d.ts +10 -10
- package/types/src/template/TemplatePanel.d.ts +5 -1
- package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
- package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
- package/types/src/workbook/DefaultRenderers.d.ts +31 -19
- package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
- package/types/src/workbook/WorkbookElement.d.ts +5 -4
- package/types/src/workbook/WorkbookStrip.d.ts +8 -7
- package/types/src/workbook/index.d.ts +1 -1
- package/browser/esm/Biy7bhzzzPb5sfRN.mjs +0 -152
- package/browser/esm/COv-m-c2byCgvU3M.mjs +0 -14861
- package/browser/esm/CtEFHbzYNvYjDYvi.mjs +0 -236
- package/browser/esm/Die9NXVFveHvcCT-.mjs +0 -4205
- package/browser/esm/sam1KGQZ59B_fADz.mjs +0 -1941
- package/node/esm/BYVLi0md4AYuDsB_.mjs +0 -236
- package/node/esm/BYwXhrEwkRAt9nJS.mjs +0 -71
- package/node/esm/Cmt8Wv806N7NmE4Y.mjs +0 -3344
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
3
|
-
export interface AccountingStyleCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | '
|
|
3
|
+
export interface AccountingStyleCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | 'renderPopupPanel'> {
|
|
4
4
|
/** The render surface, for scoped command chrome (label/description). */
|
|
5
5
|
groupKey?: string;
|
|
6
6
|
}
|
|
@@ -2,7 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { ITheme } from '@sheetxl/sdk';
|
|
3
3
|
import { CommandButtonType } from '@sheetxl/utils-react';
|
|
4
4
|
import { ThemeSelectPopupButtonProps } from '../theme';
|
|
5
|
-
export interface DocThemeCommandButtonProps extends Omit<ThemeSelectPopupButtonProps, "
|
|
5
|
+
export interface DocThemeCommandButtonProps extends Omit<ThemeSelectPopupButtonProps, "renderPopupPanel" | "variant" | "themes" | "icon" | "label"> {
|
|
6
6
|
commandKey: string;
|
|
7
7
|
icon?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
8
8
|
label?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
3
|
-
export interface FontFamilyCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "label" | "
|
|
3
|
+
export interface FontFamilyCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "label" | "renderPopupPanel"> {
|
|
4
4
|
commandKey: string;
|
|
5
5
|
icon?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
6
6
|
label?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
3
|
-
export interface FontSizeCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "label" | "
|
|
3
|
+
export interface FontSizeCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "label" | "renderPopupPanel"> {
|
|
4
4
|
commandKey?: string;
|
|
5
5
|
icon?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
6
6
|
label?: React.ReactNode | ((command: any) => React.ReactNode);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CommandButtonProps } from '@sheetxl/utils-react';
|
|
3
|
+
/** The key the ribbon's insert-control entry is registered under. */
|
|
4
|
+
export declare const INSERT_CELL_CONTROL_OPTIONS_KEY = "insertCellControlOptions";
|
|
5
|
+
/**
|
|
6
|
+
* The Insert ribbon's cell control button. With only the built-in checkbox registered it is the
|
|
7
|
+
* plain `insertCheckbox` button, as it always was; once a host registers another control type that
|
|
8
|
+
* draws, it becomes a split button: the checkbox stays the quick action, and the dropdown lists
|
|
9
|
+
* every type, each running `insertCellControl` with the type as its argument, then the
|
|
10
|
+
* `formatCellControl` pane.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* Registered as the `insertCellControlOptions` entry's `render`, so its label, icon and tooltip
|
|
14
|
+
* come from the catalog like any other ribbon control, and it follows the content registry live.
|
|
15
|
+
*/
|
|
16
|
+
export declare const InsertCellControlCommandButton: React.NamedExoticComponent<CommandButtonProps<any, any, void> & React.RefAttributes<HTMLElement>>;
|
|
17
|
+
//# sourceMappingURL=InsertCellControlCommandButton.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
3
|
-
export interface LanguageCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | '
|
|
3
|
+
export interface LanguageCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | 'renderPopupPanel'> {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* The UI-language picker, backed by the studio `language` command (state = the active tag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
3
|
-
export interface LocaleCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | '
|
|
3
|
+
export interface LocaleCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | 'renderPopupPanel'> {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* The workbook regional-format (locale) picker, backed by the workbook `locale` command.
|
|
@@ -21,4 +21,5 @@ export * from './StudioCommandGroups';
|
|
|
21
21
|
export * from './WalkingCopyCommandButton';
|
|
22
22
|
export * from './InsertFunctionSumCommandPopupButton';
|
|
23
23
|
export * from './InsertFunctionCommandPopupButton';
|
|
24
|
+
export * from './InsertCellControlCommandButton';
|
|
24
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CellCoords } from '@sheetxl/utils';
|
|
3
|
-
import { IComment,
|
|
3
|
+
import { IComment, IWorksheet } from '@sheetxl/sdk';
|
|
4
4
|
export interface CommentCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
5
5
|
/** The sheet the card's cell is on. */
|
|
6
|
-
sheet:
|
|
6
|
+
sheet: IWorksheet;
|
|
7
7
|
/** The cell the card belongs to. */
|
|
8
8
|
coords: CellCoords;
|
|
9
9
|
/** The thread, or `null` for a draft: nothing is written until it is posted. */
|
|
@@ -7,7 +7,7 @@ export type IconAddress = {
|
|
|
7
7
|
set: ICellStyle.IconSet;
|
|
8
8
|
id: number;
|
|
9
9
|
};
|
|
10
|
-
export interface IconPickerPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | '
|
|
10
|
+
export interface IconPickerPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'renderPopupPanel'> {
|
|
11
11
|
/** What the band draws now, or `null` for nothing. */
|
|
12
12
|
icon: ConditionalIconSpec | null;
|
|
13
13
|
/**
|
|
@@ -87,7 +87,7 @@ export interface ConditionEditorProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
87
87
|
* validation or format pane clears its rule (the X), a filter has nothing to clear and passes
|
|
88
88
|
* `null` for no button. See {@link RemoveButtonProps}. Nested rules keep their X.
|
|
89
89
|
*/
|
|
90
|
-
renderRemove?: ((props: RemoveButtonProps) => React.
|
|
90
|
+
renderRemove?: ((props: RemoveButtonProps) => React.ReactNode) | null;
|
|
91
91
|
/**
|
|
92
92
|
* The box's own styles. The editor draws no surface or padding of its own: a pane that wants
|
|
93
93
|
* it framed gives it the frame; a menu lays it against its own edges.
|
|
@@ -34,7 +34,7 @@ export interface OperatorAndParamEditorProps extends React.HTMLAttributes<HTMLDi
|
|
|
34
34
|
* or none: `null` draws no button, `undefined` the X. The renderer may answer `null` too, for
|
|
35
35
|
* one operator and not another.
|
|
36
36
|
*/
|
|
37
|
-
renderRemove?: ((props: RemoveButtonProps) => React.
|
|
37
|
+
renderRemove?: ((props: RemoveButtonProps) => React.ReactNode) | null;
|
|
38
38
|
/**
|
|
39
39
|
* All operators available at this level (leaf + combinator), already filtered by selector.
|
|
40
40
|
* Passed straight through to children — not re-filtered here.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ICondition } from '@sheetxl/sdk';
|
|
3
3
|
import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
4
|
-
export interface OperatorSelectPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "
|
|
4
|
+
export interface OperatorSelectPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "renderPopupPanel" | "onChange"> {
|
|
5
5
|
/**
|
|
6
6
|
* Current selected rule. Null represents "Any".
|
|
7
7
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRange, ICalculation, ICellRanges, IDataValidation,
|
|
1
|
+
import { IRange, ICalculation, ICellRanges, IDataValidation, IWorksheet } from '@sheetxl/sdk';
|
|
2
2
|
/**
|
|
3
3
|
* The rule being edited, as the fields inside its editor need it. A conditional format or a data
|
|
4
4
|
* validation satisfies this as it is.
|
|
@@ -17,7 +17,7 @@ export interface FormulaFrame {
|
|
|
17
17
|
/** See {@link FormulaFrame}. */
|
|
18
18
|
export declare const FormulaFrameContext: import('react').Context<FormulaFrame | null>;
|
|
19
19
|
/** The cell a rule's formulas are typed and shown at. */
|
|
20
|
-
export declare const activeCellOf: (sheet:
|
|
20
|
+
export declare const activeCellOf: (sheet: IWorksheet) => IRange.CellCoords;
|
|
21
21
|
/**
|
|
22
22
|
* Converts between a condition's formula param and the text a field edits.
|
|
23
23
|
*/
|
|
@@ -4,7 +4,7 @@ export interface WorkbookStatisticsDialogProps extends InputDialogProps<void, Co
|
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Display-only profile of the workbook — Excel's Workbook Statistics dialog. Two sections
|
|
7
|
-
* (current sheet / workbook) of count rows over `
|
|
7
|
+
* (current sheet / workbook) of count rows over `IWorksheet.getStats` / `IWorkbook.getStats`.
|
|
8
8
|
*
|
|
9
9
|
* TODO - also surface in the status bar.
|
|
10
10
|
*/
|
|
@@ -7,7 +7,7 @@ import { ExhibitPopupButtonProps } from '@sheetxl/utils-mui';
|
|
|
7
7
|
* seeing `key → english`; a computed key would be invisible to it.
|
|
8
8
|
*/
|
|
9
9
|
export declare function patternLabel(t: TranslateFn, pattern: IFill.BuiltInSheetPattern): string;
|
|
10
|
-
export interface PatternPopupButtonProps extends Omit<ExhibitPopupButtonProps, 'icon' | '
|
|
10
|
+
export interface PatternPopupButtonProps extends Omit<ExhibitPopupButtonProps, 'icon' | 'renderPopupPanel'> {
|
|
11
11
|
/** The currently applied tile. */
|
|
12
12
|
selectedPattern: IFill.BuiltInSheetPattern;
|
|
13
13
|
/** The tile's mark color, so the gallery previews the pattern the user will actually get. */
|
|
@@ -2,11 +2,12 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { IBorders } from '@sheetxl/sdk';
|
|
3
3
|
import { TranslateFn } from '@sheetxl/utils-react';
|
|
4
4
|
/**
|
|
5
|
-
* The
|
|
5
|
+
* The lines the diagram lets you click — the six that run along a block's cell boundaries.
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* The diagonals are not here: they
|
|
9
|
-
*
|
|
8
|
+
* The diagonals are not here: they cross the inner rules, and nearest-line picking cannot separate
|
|
9
|
+
* lines that cross at the same point. They are aimed at by the block's outer corners instead (see
|
|
10
|
+
* {@link edgesAt}).
|
|
10
11
|
*
|
|
11
12
|
* The order is the tie-break for a pointer sitting exactly where two lines cross, so the OUTER
|
|
12
13
|
* edges come first — a click on the left edge at its midpoint is aimed at the block's outline, not
|
|
@@ -19,7 +20,8 @@ export type BorderEdges = Partial<Record<IBorders.Edge, IBorders.StrokePropertie
|
|
|
19
20
|
/** Localized name for a border edge; literal `t()` pairs keep the extractor able to see them. */
|
|
20
21
|
export declare function edgeLabel(t: TranslateFn, edge: IBorders.Edge): string;
|
|
21
22
|
/**
|
|
22
|
-
* The edges a pointer is aimed at: one line, both inner rules at their crossing,
|
|
23
|
+
* The edges a pointer is aimed at: one line, both inner rules at their crossing, a diagonal at a
|
|
24
|
+
* corner, or none.
|
|
23
25
|
*
|
|
24
26
|
* @param x Pointer position relative to the diagram's top-left corner, in CSS px.
|
|
25
27
|
* @param y Pointer position relative to the diagram's top-left corner, in CSS px.
|
|
@@ -38,6 +40,11 @@ export declare function edgeLabel(t: TranslateFn, edge: IBorders.Edge): string;
|
|
|
38
40
|
* pair, which is the 'Inside' border. Only when both can be drawn — with one inner rule there is
|
|
39
41
|
* no crossing, and the middle is just that rule.
|
|
40
42
|
*
|
|
43
|
+
* The outer corners are the diagonals. A square on each corner, the size of the crossing's and
|
|
44
|
+
* centered on the corner's crop marks, aims at the diagonal that starts there: top-left and
|
|
45
|
+
* bottom-right are `diagonalDown`, top-right and bottom-left `diagonalUp`. The outline is two
|
|
46
|
+
* lines meeting there, so like the crossing the corner is neither of them.
|
|
47
|
+
*
|
|
41
48
|
* Exported because this is the part worth testing directly — jsdom lays nothing out, so a mounted
|
|
42
49
|
* diagram cannot be asked where its lines are.
|
|
43
50
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBorders,
|
|
1
|
+
import { IBorders, IWorksheet, ICell, ICellRange, ICellStyle, IStyleCollection, IColor } from '@sheetxl/sdk';
|
|
2
2
|
/**
|
|
3
3
|
* Everything the format panels need from the workbook, resolved from the live selection.
|
|
4
4
|
*
|
|
@@ -9,7 +9,7 @@ import { IBorders, IWorkbook, ISheet, ICell, ICellRange, ICellStyle, IStyleColle
|
|
|
9
9
|
*/
|
|
10
10
|
export interface FormatSelection {
|
|
11
11
|
/** The sheet the selection lives on. */
|
|
12
|
-
sheet:
|
|
12
|
+
sheet: IWorksheet;
|
|
13
13
|
/**
|
|
14
14
|
* The ANCHOR cell — the one the panels read their control values from, and the one the preview
|
|
15
15
|
* shows. A multi-cell selection has one style per cell; Excel reads the anchor too.
|
|
@@ -85,9 +85,9 @@ export interface FormatSelection {
|
|
|
85
85
|
hasInnerVertical: boolean;
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
* Binds the format panels to
|
|
88
|
+
* Binds the format panels to a worksheet's live selection: re-renders on a selection change and on
|
|
89
89
|
* any style change (Excel-style live apply — the pane has no OK button, so what it shows must follow
|
|
90
90
|
* what it just wrote).
|
|
91
91
|
*/
|
|
92
|
-
export declare const useFormatSelection: (
|
|
92
|
+
export declare const useFormatSelection: (sheet: IWorksheet) => FormatSelection;
|
|
93
93
|
//# sourceMappingURL=useFormatSelection.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IWorkbook } from '@sheetxl/sdk';
|
|
3
|
+
import { RenderSlotFn } from '@sheetxl/utils-react';
|
|
3
4
|
import { SheetEditable } from '@sheetxl/react';
|
|
4
5
|
import { NamedCollectionEditorProps, INamedCollectionEditorElement } from '../named';
|
|
5
6
|
/**
|
|
@@ -26,9 +27,10 @@ export interface FormulaBarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
26
27
|
*/
|
|
27
28
|
propsNamedCollectionEditor?: NamedCollectionEditorProps;
|
|
28
29
|
/**
|
|
29
|
-
* Override the default NamedCollectionEditor
|
|
30
|
+
* Override the default NamedCollectionEditor. Pass `props.ref` on to the
|
|
31
|
+
* {@link INamedCollectionEditorElement}.
|
|
30
32
|
*/
|
|
31
|
-
renderNamedCollectionEditor?:
|
|
33
|
+
renderNamedCollectionEditor?: RenderSlotFn<NamedCollectionEditorProps>;
|
|
32
34
|
/**
|
|
33
35
|
* Disabled the ui.
|
|
34
36
|
*/
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { FormulaBarProps, IFormulaBarElement } from './IFormulaBar';
|
|
3
|
+
export interface MobileFormulaBarProps extends FormulaBarProps {
|
|
4
|
+
/**
|
|
5
|
+
* If cancel and commit buttons are shown on the input toolbar. The studio's status bar shows both
|
|
6
|
+
* during an edit, so a host without that status bar can turn these on.
|
|
7
|
+
*/
|
|
8
|
+
showCancelCommit?: boolean;
|
|
9
|
+
}
|
|
3
10
|
/**
|
|
4
11
|
* The formula bar for a touch-only device: the same input the in-grid editor renders, in a box
|
|
5
12
|
* built for the bottom of a phone screen, with a row of entry buttons under it.
|
|
@@ -7,15 +14,20 @@ import { FormulaBarProps, IFormulaBarElement } from './IFormulaBar';
|
|
|
7
14
|
* @remarks
|
|
8
15
|
* The bar is `fx` and the editor, with the expand chevron inside the field at its right edge.
|
|
9
16
|
* Under it, the {@link MobileInputToolbar}: the letters, numbers and date inputs, Tab, Enter, and
|
|
10
|
-
* cancel / commit. There is no name box and no
|
|
11
|
-
* reachable elsewhere. Expanding grows the field upward: the bar is a flex sibling below the grid,
|
|
17
|
+
* (with {@link MobileFormulaBarProps.showCancelCommit}) cancel / commit. There is no name box and no
|
|
18
|
+
* Calculate Now button; the commands behind them stay reachable elsewhere. Expanding grows the field upward: the bar is a flex sibling below the grid,
|
|
12
19
|
* so the grid gives up the lines.
|
|
13
20
|
*
|
|
14
21
|
* It drives the same shared {@link SheetEditable} as the grid through {@link useFormulaBarSession}:
|
|
15
22
|
* a tap on the field starts the edit on the active cell, and a tap on a cell while editing inserts a
|
|
16
|
-
* reference, exactly as the desktop bar does. Enter and Tab (the toolbar's, the keyboard's) commit
|
|
17
|
-
* move the active cell
|
|
18
|
-
*
|
|
23
|
+
* reference, exactly as the desktop bar does. Enter and Tab (the toolbar's, the keyboard's) commit
|
|
24
|
+
* and move the active cell, leaving the bar idle.
|
|
25
|
+
*
|
|
26
|
+
* The virtual keyboard is the sheet's (see `useVirtualKeyboard`): the bar asks for its keyboard
|
|
27
|
+
* type, its letters and numbers buttons set it, and the bar registers itself as the editor a key typed
|
|
28
|
+
* into the grid opens in while the keyboard is up. In keyboard mode, focus that returns to the grid
|
|
29
|
+
* after an entry lands on the grid's typing input, so the keyboard stays for the next cell. Cancel and
|
|
30
|
+
* commit are the edit's ways out (`exitEditMode`), which end keyboard mode, so the keyboard goes down.
|
|
19
31
|
*/
|
|
20
|
-
export declare const MobileFormulaBar: React.NamedExoticComponent<Omit<
|
|
32
|
+
export declare const MobileFormulaBar: React.NamedExoticComponent<Omit<MobileFormulaBarProps, "ref"> & React.RefAttributes<IFormulaBarElement>>;
|
|
21
33
|
//# sourceMappingURL=MobileFormulaBar.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { VirtualKeyboardInputMode } from '@sheetxl/utils-react';
|
|
2
3
|
/** The native keyboard the input asks for: letters, or the number pad. */
|
|
3
4
|
export type MobileInputMode = 'text' | 'decimal';
|
|
4
5
|
export interface MobileInputToolbarProps {
|
|
@@ -9,7 +10,7 @@ export interface MobileInputToolbarProps {
|
|
|
9
10
|
/** Whether the input's virtual keyboard is up. */
|
|
10
11
|
keyboardShown: boolean;
|
|
11
12
|
/** The keyboard the input currently asks for. */
|
|
12
|
-
inputMode:
|
|
13
|
+
inputMode: VirtualKeyboardInputMode;
|
|
13
14
|
/** Open the letters or the number keyboard on the field. */
|
|
14
15
|
onInputMode: (mode: MobileInputMode) => void;
|
|
15
16
|
/** Open the date picker; the picked date goes into the field. */
|
|
@@ -18,6 +19,11 @@ export interface MobileInputToolbarProps {
|
|
|
18
19
|
onTab: () => void;
|
|
19
20
|
/** Commit and move the active cell down, then keep typing. */
|
|
20
21
|
onEnter: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Whether cancel and commit are on the toolbar. The studio's status bar carries both for any
|
|
24
|
+
* edit, so they are off unless a host without one asks.
|
|
25
|
+
*/
|
|
26
|
+
showCancelCommit?: boolean;
|
|
21
27
|
/** Discard the edit. */
|
|
22
28
|
onCancel: () => void;
|
|
23
29
|
/** Keep the edit and stop. */
|
|
@@ -25,8 +31,8 @@ export interface MobileInputToolbarProps {
|
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
27
33
|
* The row of entry buttons under the phone's formula bar, on the same surface as the studio
|
|
28
|
-
* toolbar: the three inputs (letters, numbers, date) at the left, Tab and Enter
|
|
29
|
-
*
|
|
34
|
+
* toolbar: the three inputs (letters, numbers, date) at the left, then Tab and Enter, and cancel /
|
|
35
|
+
* commit at the right when {@link MobileInputToolbarProps.showCancelCommit} asks for them.
|
|
30
36
|
*
|
|
31
37
|
* @remarks
|
|
32
38
|
* Presentation only. The host owns the textarea and the session, so every action is a callback it
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { IWorkbook,
|
|
2
|
+
import { IWorkbook, IWorksheet, ICell } from '@sheetxl/sdk';
|
|
3
3
|
import { CommandScopeSpec } from '@sheetxl/utils-react';
|
|
4
4
|
import { SheetEditable } from '@sheetxl/react';
|
|
5
5
|
/** The logical editor id both formula bar hosts park on the session (see `EditSession.setActiveEditorId`). */
|
|
@@ -24,8 +24,11 @@ export interface FormulaBarSessionOptions {
|
|
|
24
24
|
hintPlacement?: 'below' | 'above';
|
|
25
25
|
}
|
|
26
26
|
export interface FormulaBarSession {
|
|
27
|
-
/**
|
|
28
|
-
|
|
27
|
+
/**
|
|
28
|
+
* The selected worksheet, or `null` while the active tab is a sheet of another kind. The bar is
|
|
29
|
+
* then disabled and shows no cell.
|
|
30
|
+
*/
|
|
31
|
+
sheet: IWorksheet | null;
|
|
29
32
|
/** The active cell's coordinates on {@link FormulaBarSession.sheet}. */
|
|
30
33
|
activeCoords: ICell.Coords;
|
|
31
34
|
/** The bar cannot start an edit: the host said so, the cell is protected or the workbook is read-only. */
|
package/types/src/index.d.ts
CHANGED
|
@@ -11,15 +11,24 @@ export * from './theme';
|
|
|
11
11
|
export * from './toolbar';
|
|
12
12
|
export * from './statusBar';
|
|
13
13
|
export * from './formulaBar';
|
|
14
|
-
export * from './named';
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
14
|
+
export * from './named/INamedCollectionEditor';
|
|
15
|
+
export * from './named/NamedCollectionEditor';
|
|
16
|
+
export * from './named/NamedPlugin';
|
|
17
|
+
export * from './externalLink/ExternalLinksPlugin';
|
|
18
|
+
export * from './comments/CommentCard';
|
|
19
|
+
export * from './comments/CommentsPlugin';
|
|
20
|
+
export * from './anomalies/AnomaliesPlugin';
|
|
17
21
|
export * from './filter';
|
|
18
|
-
export * from './table';
|
|
22
|
+
export * from './table/TableStylePreview';
|
|
23
|
+
export * from './table/TableStyleCanvasPreview';
|
|
24
|
+
export * from './table/TablePlugin';
|
|
19
25
|
export * from './slicer';
|
|
20
26
|
export * from './fill';
|
|
21
|
-
export * from './format';
|
|
22
|
-
export * from './
|
|
27
|
+
export * from './format/NumberFormatOption';
|
|
28
|
+
export * from './format/FormatPlugin';
|
|
29
|
+
export type { FormatTab, FormatPaneArgs } from './format/FormatTaskPane';
|
|
30
|
+
export * from './protection/PasswordField';
|
|
31
|
+
export * from './protection/ProtectionPlugin';
|
|
23
32
|
export * from './sheet';
|
|
24
33
|
export * from './workbook';
|
|
25
34
|
export * from './theme';
|
|
@@ -32,6 +32,11 @@ export interface ItemsPanelProps<T = any, D = T> extends React.HTMLAttributes<HT
|
|
|
32
32
|
* list is a state these controls can produce.
|
|
33
33
|
*/
|
|
34
34
|
listActions?: React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Rendered under the list, in every state including an empty one — an action on the collection
|
|
37
|
+
* as a whole rather than on any card (a cleanup of what the list does not show).
|
|
38
|
+
*/
|
|
39
|
+
footer?: React.ReactNode;
|
|
35
40
|
/**
|
|
36
41
|
* Enables drag reordering of the cards, and animates every reorder — dropped drags and the
|
|
37
42
|
* move up/down buttons alike.
|
|
@@ -11,8 +11,8 @@ export interface NamedDetailsPanelProps extends React.HTMLAttributes<HTMLDivElem
|
|
|
11
11
|
args?: ItemsPaneArgs<never, INamed>;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* The managed-names task pane: every defined name in the workbook — across all scopes and
|
|
15
|
-
* type — with add/edit/delete
|
|
14
|
+
* The managed-names task pane: every visible defined name in the workbook — across all scopes and
|
|
15
|
+
* of every type — with add/edit/delete and search, and the removal of hidden names nothing reads.
|
|
16
16
|
*/
|
|
17
17
|
export declare const NamedDetailsPanel: React.NamedExoticComponent<NamedDetailsPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
18
|
//# sourceMappingURL=NamedDetailsPanel.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
3
|
export interface ProtectedCellsPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
/** The sheet whose selected cells are edited. */
|
|
5
|
-
sheet:
|
|
5
|
+
sheet: IWorksheet;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* The **Cells** tab of Manage Protection: the protection format of the selected cells.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { IWorksheet } from '@sheetxl/sdk';
|
|
3
|
+
export interface WorksheetProtectionPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
/** The sheet whose protection is edited. */
|
|
5
|
-
sheet:
|
|
5
|
+
sheet: IWorksheet;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* The **Sheet** tab of Manage Protection: protect / pause / highlight, the password, and the
|
|
@@ -30,6 +30,6 @@ export interface SheetProtectionPanelProps extends React.HTMLAttributes<HTMLDivE
|
|
|
30
30
|
* enforcement, wrong for chrome — so this reads `isPaused()` separately: the Protect switch stays
|
|
31
31
|
* on and a banner says why nothing is being enforced.
|
|
32
32
|
*/
|
|
33
|
-
export declare const
|
|
34
|
-
export default
|
|
35
|
-
//# sourceMappingURL=
|
|
33
|
+
export declare const WorksheetProtectionPanel: React.NamedExoticComponent<WorksheetProtectionPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
export default WorksheetProtectionPanel;
|
|
35
|
+
//# sourceMappingURL=WorksheetProtectionPanel.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './PasswordDialog';
|
|
2
2
|
export * from './PasswordField';
|
|
3
3
|
export * from './WorkbookProtectionPanel';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './WorksheetProtectionPanel';
|
|
5
5
|
export * from './ProtectedCellsPanel';
|
|
6
6
|
export * from './WorkbookProtectionTab';
|
|
7
7
|
export * from './ManageProtectionTaskPane';
|
|
@@ -5,8 +5,8 @@ export interface PresetSlicerStylesCommandButtonProps extends CommandPopupButton
|
|
|
5
5
|
commandKey: string;
|
|
6
6
|
/**
|
|
7
7
|
* A command the button runs when pressed, with no style: the gallery is then a dropdown beside it.
|
|
8
|
-
* The style outlined is
|
|
9
|
-
*
|
|
8
|
+
* The style outlined is the workbook's default, the one a press inserts. As the Insert Slicer
|
|
9
|
+
* button uses it.
|
|
10
10
|
*/
|
|
11
11
|
quickCommandKey?: string;
|
|
12
12
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface PendingStatusProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Debounce (ms) between a change and the re-read.
|
|
5
|
+
*
|
|
6
|
+
* @defaultValue 40
|
|
7
|
+
*/
|
|
8
|
+
debounceDelay?: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The status bar's async icon: shown while function results are awaited, saying how many in its
|
|
12
|
+
* tooltip. Pressing it cancels them (Excel's *Cancel Refresh*).
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Renders nothing when nothing is pending. Read on the calculation's
|
|
16
|
+
* `onPendingChange` and `onStatusChange`, debounced like the number stats.
|
|
17
|
+
*/
|
|
18
|
+
export declare const PendingStatus: React.MemoExoticComponent<(props: PendingStatusProps) => React.JSX.Element | null>;
|
|
19
|
+
//# sourceMappingURL=PendingStatus.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IWorkbook, IWorkbookIO } from '@sheetxl/sdk';
|
|
2
|
-
import { ErrorPanelProps, LoadingPanelProps } from '@sheetxl/utils-react';
|
|
2
|
+
import { ErrorPanelProps, LoadingPanelProps, RenderSlotFn } from '@sheetxl/utils-react';
|
|
3
3
|
import { SxProps } from '@mui/system';
|
|
4
4
|
import { Theme, ThemeOptions, PaperProps } from '@mui/material';
|
|
5
|
-
import { TaskPaneAreaProps,
|
|
5
|
+
import { TaskPaneAreaProps, IWorkbookElement, WorkbookElementProps, WorkbookLoadEvent, SheetEditable } from '@sheetxl/react';
|
|
6
6
|
import { ExplicitTokens } from '../theme/ThemeUtils';
|
|
7
7
|
import { DocumentTitleProps } from '../workbook';
|
|
8
8
|
import { WorkbookToolbarsProps } from '../toolbar';
|
|
@@ -59,7 +59,7 @@ export interface StudioProps extends Omit<PaperProps, 'autoFocus' | 'ref'> {
|
|
|
59
59
|
*
|
|
60
60
|
* @defaultValue StackTraceErrorPanel
|
|
61
61
|
*/
|
|
62
|
-
renderDocumentError?:
|
|
62
|
+
renderDocumentError?: RenderSlotFn<ErrorPanelProps> | null;
|
|
63
63
|
/**
|
|
64
64
|
* Customizations for the default loading panel shown while the {@link StudioProps.document} resolves
|
|
65
65
|
* (and the grid first paints). Use {@link StudioProps.renderDocumentLoading} to replace it entirely.
|
|
@@ -67,8 +67,9 @@ export interface StudioProps extends Omit<PaperProps, 'autoFocus' | 'ref'> {
|
|
|
67
67
|
propsDocumentLoading?: Partial<LoadingPanelProps>;
|
|
68
68
|
/**
|
|
69
69
|
* Replace the loading panel shown while the {@link StudioProps.document} resolves / the grid paints.
|
|
70
|
+
* `null` for none.
|
|
70
71
|
*/
|
|
71
|
-
renderDocumentLoading?:
|
|
72
|
+
renderDocumentLoading?: RenderSlotFn<LoadingPanelProps> | null;
|
|
72
73
|
/**
|
|
73
74
|
* Customizations forwarded to the underlying (chromeless) workbook grid.
|
|
74
75
|
*
|
|
@@ -88,12 +89,11 @@ export interface StudioProps extends Omit<PaperProps, 'autoFocus' | 'ref'> {
|
|
|
88
89
|
*/
|
|
89
90
|
propsTaskPaneArea?: Partial<TaskPaneAreaProps>;
|
|
90
91
|
/**
|
|
91
|
-
* Render
|
|
92
|
+
* Render the task pane area. Pass `props.ref` on to the {@link ITaskPaneAreaElement}.
|
|
92
93
|
*
|
|
93
94
|
* @param props The properties for the TaskPaneArea.
|
|
94
|
-
* @returns A React Element representing the TaskPaneArea.
|
|
95
95
|
*/
|
|
96
|
-
renderTaskPaneArea?:
|
|
96
|
+
renderTaskPaneArea?: RenderSlotFn<TaskPaneAreaProps>;
|
|
97
97
|
/**
|
|
98
98
|
* Allow for a side of the taskpane.
|
|
99
99
|
*
|
|
@@ -136,7 +136,7 @@ export interface StudioProps extends Omit<PaperProps, 'autoFocus' | 'ref'> {
|
|
|
136
136
|
/**
|
|
137
137
|
* Render a custom formula bar (replaces the default).
|
|
138
138
|
*/
|
|
139
|
-
renderFormulaBar?:
|
|
139
|
+
renderFormulaBar?: RenderSlotFn<FormulaBarProps> | null;
|
|
140
140
|
/**
|
|
141
141
|
* Where the formula bar sits: above the grid, or below it directly above the status bar, the way
|
|
142
142
|
* a phone spreadsheet lays it out.
|
|
@@ -181,7 +181,7 @@ export interface StudioProps extends Omit<PaperProps, 'autoFocus' | 'ref'> {
|
|
|
181
181
|
/**
|
|
182
182
|
* Render a custom status bar (replaces the default).
|
|
183
183
|
*/
|
|
184
|
-
renderStatusBar?:
|
|
184
|
+
renderStatusBar?: RenderSlotFn<StatusBarProps> | null;
|
|
185
185
|
/**
|
|
186
186
|
* Customizations for the toolbar.
|
|
187
187
|
*/
|
|
@@ -189,7 +189,7 @@ export interface StudioProps extends Omit<PaperProps, 'autoFocus' | 'ref'> {
|
|
|
189
189
|
/**
|
|
190
190
|
* Render a custom toolbar (replaces the default studio toolbar).
|
|
191
191
|
*/
|
|
192
|
-
renderToolbar?:
|
|
192
|
+
renderToolbar?: RenderSlotFn<WorkbookToolbarsProps> | null;
|
|
193
193
|
/**
|
|
194
194
|
* Slot rendered at the top-left of the toolbar (after the logo, before the title).
|
|
195
195
|
*
|
|
@@ -14,7 +14,7 @@ export interface TemplatePanelProps extends Omit<React.HTMLAttributes<HTMLDivEle
|
|
|
14
14
|
*/
|
|
15
15
|
groupBy?: (entry: TemplateEntry) => string;
|
|
16
16
|
/** Render a tile in place of the default one. */
|
|
17
|
-
renderTile?: (
|
|
17
|
+
renderTile?: (props: TemplateTileRenderProps) => React.ReactNode;
|
|
18
18
|
/**
|
|
19
19
|
* The smallest tile width, in pixels.
|
|
20
20
|
* @defaultValue 180
|
|
@@ -35,6 +35,10 @@ export interface TemplatePanelProps extends Omit<React.HTMLAttributes<HTMLDivEle
|
|
|
35
35
|
sx?: SxProps<Theme>;
|
|
36
36
|
}
|
|
37
37
|
/** What the panel hands a tile. */
|
|
38
|
+
/** What {@link TemplatePanelProps.renderTile} is handed. */
|
|
39
|
+
export interface TemplateTileRenderProps extends TemplateTileProps {
|
|
40
|
+
entry: TemplateEntry;
|
|
41
|
+
}
|
|
38
42
|
export interface TemplateTileProps {
|
|
39
43
|
category?: TemplateCategory;
|
|
40
44
|
onSelect: () => void;
|
|
@@ -2,7 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { IThemeCollection, ITheme } from '@sheetxl/sdk';
|
|
3
3
|
import { PopupButtonType, ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
|
|
4
4
|
import { ThemeSelectPanelProps } from './ThemeSelectPanel';
|
|
5
|
-
export interface ThemeSelectPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "
|
|
5
|
+
export interface ThemeSelectPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "renderPopupPanel"> {
|
|
6
6
|
themes: IThemeCollection;
|
|
7
7
|
selectedTheme?: ITheme;
|
|
8
8
|
onSelectTheme?: (docTheme: ITheme) => void;
|
|
@@ -41,6 +41,6 @@ export interface WorkbookToolbarsProps extends React.HTMLAttributes<HTMLDivEleme
|
|
|
41
41
|
*/
|
|
42
42
|
sx?: SxProps;
|
|
43
43
|
}
|
|
44
|
-
export declare const
|
|
44
|
+
export declare const defaultRenderToolbar: (props: WorkbookToolbarsProps) => React.ReactElement;
|
|
45
45
|
export declare const WorkbookToolbars: React.NamedExoticComponent<WorkbookToolbarsProps & React.RefAttributes<HTMLElement>>;
|
|
46
46
|
//# sourceMappingURL=WorkbookToolbars.d.ts.map
|