@sheetxl/studio-mui 0.8.0-beta.11 → 0.8.0-beta.13
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/{DDc6rDuU9JAo1DH_.mjs → 6QDKC3DXaJjdTQvn.mjs} +3 -3
- package/browser/esm/{LZoYSQAYV2wksnDv.mjs → B8-aNCyDzXh-3BnN.mjs} +5 -5
- package/browser/esm/{Bujtz_Guj88d03vI.mjs → BEjT3zSht5iH93uB.mjs} +6 -6
- package/browser/esm/{Ds3XRkne7HxcXD8J.mjs → BKB6y-l1USxdLM8V.mjs} +2 -2
- package/browser/esm/{BED6h6YAwCf1HEQJ.mjs → BKE2ez65WLb02bOy.mjs} +1 -1
- package/browser/esm/{C9pIZVACtl9unFOp.mjs → BOKRcLS0QikMyoWf.mjs} +2 -2
- package/browser/esm/{DdcZrjMLWVukWcU5.mjs → BTH-nzAPniB6G4TG.mjs} +814 -685
- package/browser/esm/{BYE9gCDWKyx6mnVs.mjs → Bbvx7IiwR5jW-Hwu.mjs} +114 -103
- package/browser/esm/{zqilJefihVd7At2T.mjs → BgYy8t04q74BFK5_.mjs} +7 -7
- package/browser/esm/{CynTY0oNtyJnoaBq.mjs → BniGX5aeZXM9zMWH.mjs} +1 -1
- package/browser/esm/{D9ISy7VkaRRFJl46.mjs → BsxCXTfNJhFrldW9.mjs} +4 -4
- package/browser/esm/{D3rRUK4dIM5gUSmj.mjs → BwbheU7gonBpE9Bs.mjs} +2 -2
- package/browser/esm/{DDczwkXhz_MHub4z.mjs → BzLjlI67XDv3JcvA.mjs} +2 -2
- package/browser/esm/{DsoNMWDwHZP8UXQd.mjs → C3KoAU2WKPxC5-u7.mjs} +1 -1
- package/browser/esm/{DTpRkgsTm_zYnWfW.mjs → C9HzAN75sBq35kZg.mjs} +1 -1
- package/browser/esm/{BknfGJouygmnpFIU.mjs → CMbJhvtUGfi-wQ3o.mjs} +2 -2
- package/browser/esm/{DnGaP5F7mLwCGUYG.mjs → CQd6qQ6b5R96lYkQ.mjs} +206 -124
- package/browser/esm/{DV6i9RQZfJiKtEaJ.mjs → CYDqU_DnwM2dkv3O.mjs} +678 -623
- package/browser/esm/{ChSVxkPTIjgcC8PL.mjs → CYNVxcg3QJ1RHCwS.mjs} +2 -2
- package/browser/esm/{BjvD_4t2KGsZP5V8.mjs → CcyyIgMejaWOK8qw.mjs} +3 -3
- package/browser/esm/{ClBvNPeNCAhuVWrG.mjs → CkmieJ2_aHVESg8Q.mjs} +1 -1
- package/browser/esm/{Di3BUxA0SqFWWgeg.mjs → CtVEsNpA7LivARDl.mjs} +1 -1
- package/browser/esm/{w_JrR69vEpvoyeMy.mjs → CyRZCFT_uVfmLkoB.mjs} +1 -1
- package/browser/esm/{DpD4fg2WcyiKX_2K.mjs → D2KYXweAKTJVnLbt.mjs} +5 -5
- package/browser/esm/{G0Inqm6Eqw47dMpa.mjs → D9KI3TDs1Ed_en8o.mjs} +1 -1
- package/browser/esm/{CEtXsBzEjEKk9GOj.mjs → DAX7uqV05BahXHL1.mjs} +2 -2
- package/browser/esm/{COlZu93LRwuBvjE-.mjs → DFEz0RMRQrGo3tWC.mjs} +2 -2
- package/browser/esm/{DG21x7RKDpge6zAE.mjs → DLP2vkb2VDlGGA1A.mjs} +1 -1
- package/browser/esm/{BXhNFzyEGokTF-BL.mjs → DSIQFoVhlKSPzucu.mjs} +2 -2
- package/browser/esm/{Buqcl7J75MJrhpVE.mjs → DWUrXikL8TyDNRrI.mjs} +8 -8
- package/browser/esm/{0BWO0bLZ8Vm_dKd2.mjs → DYypTSo0adN5dUTS.mjs} +13 -13
- package/browser/esm/{CTjqDD-swFMZzI-Y.mjs → D_x6k92V4etahUtS.mjs} +2 -2
- package/browser/esm/{YThnrg3PadGs7B4j.mjs → DeSHnKGHmL3Lwl6t.mjs} +143 -137
- package/browser/esm/{BlE_8o8tO2AgAlaj.mjs → DkRUwiADZvoEL2xg.mjs} +1 -1
- package/browser/esm/{BAbq4-I5f5oUiNaF.mjs → DlGOcFqQzrYB9wiZ.mjs} +4 -4
- package/browser/esm/{C0wlMAIn9iREPK6w.mjs → DvDPtmuD-1bVFXhc.mjs} +1 -1
- package/browser/esm/{DKtJxrpN0axtuQ0l.mjs → DyKgCJS1jQMxcPFF.mjs} +1 -1
- package/browser/esm/{CWkOgdL7mOKiTR62.mjs → ERVyjcGWX4mUl1p_.mjs} +4 -4
- package/browser/esm/{HViD4Wfoi0mmqk9w.mjs → H8Dxocn689KdLYhD.mjs} +1 -1
- package/browser/esm/{Brsh5yscJ_4uKFXp.mjs → LF4eGB9EZ_W6kUXC.mjs} +2 -2
- package/browser/esm/{BokqKEpU6TFgfRs6.mjs → PSYAcayGMjkZauMz.mjs} +2 -2
- package/browser/esm/{DJOOed_OtB-XT7f3.mjs → TT3Q8r0Jww_zZmNv.mjs} +6 -6
- package/browser/esm/{C8JU4KsMasmLvojI.mjs → UMji8dlv0GKyfjRw.mjs} +1 -1
- package/browser/esm/UWvqHAyCVY3D-8Pk.mjs +242 -0
- package/browser/esm/{DRSCS6aLiYmPjUz1.mjs → aNYq27kJA5RA4L_0.mjs} +365 -362
- package/browser/esm/{CBD4RiRKbbZtSXV-.mjs → dn1AnYOyR4bZamV4.mjs} +3 -3
- package/browser/esm/{ttjcNHcFn8O6hfnd.mjs → eKakg1lFqn9dZkOO.mjs} +11 -11
- package/browser/esm/index.mjs +290 -287
- package/browser/esm/{CyLn6zOOp_biA3xU.mjs → jbPNLnRSS8Xt5_Zd.mjs} +8 -8
- package/browser/esm/{BvhYPwX3GrRaO9CM.mjs → oj398-Nn8Gb8Cmu7.mjs} +3 -3
- package/browser/esm/{DEv4pIEgYr5C7etm.mjs → qyIg2o8AfCcwCuVZ.mjs} +1 -1
- package/browser/esm/{xFqkfN8QMCxvsetB.mjs → w9rl3kS5ehDc2U18.mjs} +1 -1
- package/node/esm/{Do-zCKziWhoG5eAv.mjs → A-6VdAxUYuVCsS80.mjs} +2 -2
- package/node/esm/{Db3dbaYLKUO66T9s.mjs → BN5K-JWYdHJtnF5G.mjs} +473 -418
- package/node/esm/{CSAnTp5rwId0DUb8.mjs → BRSLQ_UNOJKAWRUq.mjs} +127 -116
- package/node/esm/{Bph-sR3l6AYWeuxK.mjs → BVCjSh6m3Z_Cd6DD.mjs} +2 -2
- package/node/esm/{4HmLH0bPVJCZLgik.mjs → BVyN4cLnT2ii1GMj.mjs} +1 -1
- package/node/esm/{zITjZ7R4raDqhP-n.mjs → BWG2FA3rbsOsBHQM.mjs} +3 -3
- package/node/esm/{DMXLxp3T0E0SRTQc.mjs → BZVe_afv1tfvExD6.mjs} +1 -1
- package/node/esm/{CYIoK22I6Yvv12_x.mjs → BiBMdXkWOUHZpWcb.mjs} +1 -1
- package/node/esm/{1bf4gn-2vld4BZ9u.mjs → Bj-UqmrrHdVSX4vS.mjs} +1 -1
- package/node/esm/{CuMePia6i_8yfJ6S.mjs → Blxb1C2eUbWoXcsl.mjs} +9 -9
- package/node/esm/{CZyA9uD4SkTvqp_G.mjs → BmySpSgR3H6eUK0L.mjs} +253 -253
- package/node/esm/{CPq-MIdEnc-53JpF.mjs → C86bIpa86VUEVY3_.mjs} +2 -2
- package/node/esm/CVeYUjvKIc1XuPC1.mjs +242 -0
- package/node/esm/{XEDcegsv5AGKBfu2.mjs → Cg1eqOYlWMCprF6j.mjs} +2 -2
- package/node/esm/{BlN7G0DVC24zauig.mjs → CksDVaPvtllTUe7F.mjs} +1 -1
- package/node/esm/{BPzcW4BejRqso338.mjs → D0HpdVWcePBpfQHX.mjs} +3 -3
- package/node/esm/{DfCuL8AUxMFoEG2s.mjs → DEK0D7wAs-O0YMBq.mjs} +36 -36
- package/node/esm/{DLqBHdFp6wvm6EGs.mjs → DFZctv5meqoQLuQF.mjs} +1 -1
- package/node/esm/{BIMkjQUwG4Ih-6Sh.mjs → DQ9BkHy3YgoLqyAw.mjs} +1 -1
- package/node/esm/{D-xqQ5qOSd6WrzwJ.mjs → DTtGcAuClHgv-5s6.mjs} +1 -1
- package/node/esm/{CvRbu8JPxFarsSR-.mjs → DcUXYRkJLeQFybOy.mjs} +5 -5
- package/node/esm/{CjC6s3RUJQNCF7mP.mjs → DjB5CHk5N8mYRiAW.mjs} +1 -1
- package/node/esm/{DeZJlLk8WJ3BLtLs.mjs → DopRYDglwpRFuZ9y.mjs} +3 -3
- package/node/esm/E3iNwBp5FzwRWhBH.mjs +489 -0
- package/node/esm/{DWqvf4H5F2wMnZ0L.mjs → Mm5HFZHyaIJ5EfYO.mjs} +1 -1
- package/node/esm/{CWcv7UVXF8IUB0PC.mjs → VLp3LfRG5Njlf4Mp.mjs} +15 -15
- package/node/esm/{CyafafEgfmjLqE5O.mjs → YTiLYQEQ-ST2j-Yd.mjs} +1 -1
- package/node/esm/{DdEzhVqYTrGODXrz.mjs → h5Tt_pl2Dpa9vaR-.mjs} +1 -1
- package/node/esm/index.mjs +2936 -2800
- package/node/esm/{BR45ogAR-hY2bE60.mjs → nVZW0-P7DISm9GFM.mjs} +1 -1
- package/node/esm/{yCUxQuqVuC4DHKPx.mjs → sKA_898BrWm-kfiS.mjs} +1 -1
- package/node/esm/{3WghtBXAvCDwcVrq.mjs → uySjOpgLC6iCqgC-.mjs} +1 -1
- package/node/esm/{BNg4QQY0WAPLE0q7.mjs → xw7vek0VNw7ofbq1.mjs} +3 -3
- package/node/esm/{DpJ2gmZJioCyq8La.mjs → zZTOpRFxWBgeZTpk.mjs} +166 -160
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +16 -1
- package/resources/locales/de/ui.msg.json +3 -1
- package/resources/locales/en/groups.cmd.json +16 -1
- package/resources/locales/en/ui.msg.json +3 -1
- package/types/src/border/BorderPopupButton.d.ts +1 -1
- 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/conditionalFormat/IconPickerPopupButton.d.ts +1 -1
- package/types/src/conditions/ConditionEditor.d.ts +1 -1
- package/types/src/conditions/MembershipOption.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/SelectorSelect.d.ts +1 -1
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +1 -1
- package/types/src/dialog/HyperlinkDialog.d.ts +15 -0
- package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +1 -1
- package/types/src/fill/PatternPopupButton.d.ts +1 -1
- package/types/src/filter/ColumnMenu.d.ts +1 -1
- package/types/src/formulaBar/IFormulaBar.d.ts +4 -2
- package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
- package/types/src/named/NamedDetailsPanel.d.ts +2 -2
- package/types/src/shape/ShapeGalleryCommandButton.d.ts +18 -0
- package/types/src/shape/ShapePlugin.d.ts +2 -0
- package/types/src/shape/index.d.ts +1 -1
- 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 +30 -18
- 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/QgaAIDUMmBQBsXP9.mjs +0 -236
- package/node/esm/B0bdb_6p7fQI_ivo.mjs +0 -236
- package/node/esm/DatM6eEYPpAtIMy-.mjs +0 -405
- package/types/src/shape/InsertShapeCommandButton.d.ts +0 -20
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { WorksheetElementProps, SheetTabProps, CommentCardRenderProps, HyperlinkCardRenderProps, TableToolbarRenderProps, OutlineButtonProps, OutlineLevelButtonProps } from '@sheetxl/react';
|
|
3
|
+
import { TooltipRenderProps } from '@sheetxl/grid-react';
|
|
3
4
|
import { AnimatedLoadingPanelProps, StackTraceErrorPanelProps } from '@sheetxl/utils-mui';
|
|
4
5
|
import { FormulaBarProps } from '../formulaBar';
|
|
5
6
|
import { ColumnMenuProps } from '../filter';
|
|
@@ -9,29 +10,40 @@ import { SheetsAllMenuProps, SheetTabMenuProps } from '../sheet';
|
|
|
9
10
|
import { WorkbookStripProps } from './WorkbookStrip';
|
|
10
11
|
import { WorkbookContextMenuProps } from './WorkbookContextMenu';
|
|
11
12
|
import { FillMenuProps } from './FillMenu';
|
|
13
|
+
/**
|
|
14
|
+
* The bubble of the grid's tooltips (a resize readout, a drag's destination, a range tip) in MUI's
|
|
15
|
+
* `Tooltip` look, so they match the toolbar's.
|
|
16
|
+
*/
|
|
17
|
+
export declare const defaultRenderTooltip: (props: TooltipRenderProps) => React.ReactNode;
|
|
12
18
|
/** The card of a threaded comment as it floats beside its cell. */
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
|
|
19
|
+
export declare const defaultRenderCommentCard: (props: CommentCardRenderProps) => React.ReactElement;
|
|
20
|
+
export declare const defaultRenderHyperlinkCard: (props: HyperlinkCardRenderProps) => React.ReactElement;
|
|
21
|
+
/**
|
|
22
|
+
* The toolbar at a hovered table's corner: the toolbar's own table split button — the quick press edits
|
|
23
|
+
* the table, the dropdown is the style gallery. With a single button the paper hugs it (no padding), so
|
|
24
|
+
* it reads as one floating button rather than a button inside a toolbar.
|
|
25
|
+
*/
|
|
26
|
+
export declare const TableToolbar: React.FC<TableToolbarRenderProps>;
|
|
27
|
+
export declare const defaultRenderTableToolbar: (props: TableToolbarRenderProps) => React.ReactElement;
|
|
16
28
|
/** The collapse / expand button of a row or column group, in the outline gutter. */
|
|
17
|
-
export declare const
|
|
29
|
+
export declare const defaultRenderOutlineButton: (props: OutlineButtonProps) => React.ReactElement;
|
|
18
30
|
/** A level button `1`..`n` of the outline. */
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
31
|
+
export declare const defaultRenderOutlineLevelButton: (props: OutlineLevelButtonProps) => React.ReactElement;
|
|
32
|
+
export declare const defaultRenderMovableMenu: (props: MovableContextMenuProps) => React.ReactElement;
|
|
33
|
+
export declare const defaultRenderFillMenu: (props: FillMenuProps) => React.ReactElement;
|
|
34
|
+
export declare const defaultRenderContextMenu: (props: WorkbookContextMenuProps) => React.ReactElement;
|
|
35
|
+
export declare const defaultRenderColumnMenu: (props: ColumnMenuProps) => React.ReactElement;
|
|
24
36
|
/**
|
|
25
37
|
* The formula bar for the studio's placement: the desktop bar above the grid, the mobile host when
|
|
26
38
|
* the bar sits at the bottom.
|
|
27
39
|
*/
|
|
28
|
-
export declare const
|
|
29
|
-
export declare const
|
|
30
|
-
export declare const
|
|
31
|
-
export declare const
|
|
32
|
-
export declare const
|
|
33
|
-
export declare const
|
|
34
|
-
export declare const
|
|
35
|
-
export declare const
|
|
36
|
-
export declare const
|
|
40
|
+
export declare const defaultRenderFormulaBar: (props: FormulaBarProps) => React.ReactElement;
|
|
41
|
+
export declare const defaultRenderWorkbookLoading: (props: AnimatedLoadingPanelProps) => React.ReactElement;
|
|
42
|
+
export declare const defaultRenderWorkbookError: (props: StackTraceErrorPanelProps) => React.ReactElement;
|
|
43
|
+
export declare const defaultRenderWorksheet: (props: WorksheetElementProps) => React.ReactElement;
|
|
44
|
+
export declare const defaultRenderStatusBar: (props: StatusBarProps) => React.ReactElement;
|
|
45
|
+
export declare const defaultRenderTabs: (props: WorkbookStripProps) => React.ReactElement;
|
|
46
|
+
export declare const defaultRenderSheetTabMenu: (props: SheetTabMenuProps) => React.ReactElement;
|
|
47
|
+
export declare const defaultRenderSheetsAll: (props: SheetsAllMenuProps) => React.ReactElement;
|
|
48
|
+
export declare const defaultRenderSheetTab: (props: SheetTabProps) => React.ReactElement;
|
|
37
49
|
//# sourceMappingURL=DefaultRenderers.d.ts.map
|
|
@@ -3,10 +3,11 @@ import { WorkbookElementProps, IWorkbookElement } from '@sheetxl/react';
|
|
|
3
3
|
* The MUI workbook element.
|
|
4
4
|
*
|
|
5
5
|
* A thin wrapper around the chromeless `WorkbookElement` from `@sheetxl/react`: it supplies the grid's
|
|
6
|
-
* own MUI popups (tabs, context/column/movable menus, comment cards, loading) via the render
|
|
7
|
-
*
|
|
8
|
-
* the
|
|
9
|
-
*
|
|
6
|
+
* own MUI popups (tabs, context/column/movable menus, comment cards, loading, tooltips) via the render
|
|
7
|
+
* slots. A slot left `undefined` gets the MUI default; `null` turns it off. Theming flows through the
|
|
8
|
+
* injected `--sxl-*` token matrix (from the studio root) — no theme bridge is needed here; the grid
|
|
9
|
+
* self-sources its light/dark scheme from the shared appearance preference. The surrounding chrome
|
|
10
|
+
* (toolbar, formula bar, status bar) is composed by the Studio layer, not here.
|
|
10
11
|
*/
|
|
11
12
|
export declare const WorkbookElement: import('react').NamedExoticComponent<Omit<WorkbookElementProps, "ref"> & import('react').RefAttributes<IWorkbookElement>>;
|
|
12
13
|
//# sourceMappingURL=WorkbookElement.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { RenderSlotFn } from '@sheetxl/utils-react';
|
|
2
3
|
import { WorkbookStripProps as ReactWorkbookStripProps, WorkbookStripRef, SheetTabProps } from '@sheetxl/react';
|
|
3
4
|
import { SheetsAllMenuProps, SheetTabMenuProps } from '../sheet';
|
|
4
5
|
/**
|
|
@@ -11,27 +12,27 @@ export interface WorkbookStripProps extends Omit<ReactWorkbookStripProps, 'rende
|
|
|
11
12
|
/**
|
|
12
13
|
* Allow for customizations on the per-tab context menu.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
propsSheetTabMenu?: Partial<SheetTabMenuProps>;
|
|
15
16
|
/**
|
|
16
|
-
* Render
|
|
17
|
+
* Render the per-tab context menu. `null` for none.
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
+
renderSheetTabMenu?: RenderSlotFn<SheetTabMenuProps> | null;
|
|
19
20
|
/**
|
|
20
21
|
* Allow for customizations on the "all sheets" menu.
|
|
21
22
|
*/
|
|
22
23
|
propsSheetsAll?: SheetsAllMenuProps;
|
|
23
24
|
/**
|
|
24
|
-
* Render
|
|
25
|
+
* Render the "all sheets" menu.
|
|
25
26
|
*/
|
|
26
|
-
renderSheetsAll?:
|
|
27
|
+
renderSheetsAll?: RenderSlotFn<SheetsAllMenuProps>;
|
|
27
28
|
/**
|
|
28
29
|
* Allow for customizations on sheet tabs.
|
|
29
30
|
*/
|
|
30
31
|
propsSheetTab?: Partial<SheetTabProps>;
|
|
31
32
|
/**
|
|
32
|
-
* Render custom sheet tabs. Defaults to the MUI ripple tab ({@link
|
|
33
|
+
* Render custom sheet tabs. Defaults to the MUI ripple tab ({@link defaultRenderSheetTab}).
|
|
33
34
|
*/
|
|
34
|
-
renderSheetTab?:
|
|
35
|
+
renderSheetTab?: RenderSlotFn<SheetTabProps>;
|
|
35
36
|
}
|
|
36
37
|
export declare const WorkbookStrip: React.NamedExoticComponent<WorkbookStripProps & React.RefAttributes<WorkbookStripRef>>;
|
|
37
38
|
//# sourceMappingURL=WorkbookStrip.d.ts.map
|
|
@@ -4,5 +4,5 @@ export * from './DocumentTitle';
|
|
|
4
4
|
export * from './WorkbookContextMenu';
|
|
5
5
|
export * from './FillMenu';
|
|
6
6
|
export * from './WorkbookStrip';
|
|
7
|
-
export
|
|
7
|
+
export * from './DefaultRenderers';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { n as e } from "./DDc6rDuU9JAo1DH_.mjs";
|
|
8
|
-
import { InputField as t } from "./index.mjs";
|
|
9
|
-
import { useReferenceMode as n } from "@sheetxl/react";
|
|
10
|
-
import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
|
|
11
|
-
import { memo as a, useEffect as o, useId as ee, useMemo as s, useRef as c, useState as l } from "react";
|
|
12
|
-
import { OptionsDialog as te } from "@sheetxl/utils-mui";
|
|
13
|
-
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
14
|
-
import { Box as ne, FormControl as p, InputLabel as re, MenuItem as m, Select as ie, TextField as ae } from "@mui/material";
|
|
15
|
-
var oe = ["Ok", "Cancel"], h = { paddingTop: (e) => e.spacing(1.5) }, g = "mailto:", _ = (e) => e.length >= 7 && e.substring(0, 7).toLowerCase() === g, v = (e) => {
|
|
16
|
-
if (!_(e)) return null;
|
|
17
|
-
let t = e.substring(7), n = t.indexOf("?");
|
|
18
|
-
if (n === -1) return {
|
|
19
|
-
address: t,
|
|
20
|
-
subject: ""
|
|
21
|
-
};
|
|
22
|
-
let r = "";
|
|
23
|
-
try {
|
|
24
|
-
r = new URLSearchParams(t.substring(n + 1)).get("subject") ?? "";
|
|
25
|
-
} catch {}
|
|
26
|
-
return {
|
|
27
|
-
address: t.substring(0, n),
|
|
28
|
-
subject: r
|
|
29
|
-
};
|
|
30
|
-
}, y = a((a) => {
|
|
31
|
-
let { initialValue: y = null, context: b, onInput: x, onOption: S, onValidateOption: C, onDone: w, options: T = oe, defaultOption: E = T?.[0], cancelOption: D = "Cancel", sx: se, ...ce } = a, O = i(), le = s(() => (y ?? b?.()?.getHyperlink()) !== null, []), k = s(() => {
|
|
32
|
-
let e = null, t = null;
|
|
33
|
-
y && (typeof y == "string" ? t = y : e = y);
|
|
34
|
-
let n = e ? null : b?.()?.getHyperlink();
|
|
35
|
-
return {
|
|
36
|
-
address: t ?? e?.address ?? n?.getAddress() ?? "",
|
|
37
|
-
textToDisplay: e?.textToDisplay ?? n?.getTextToDisplay() ?? ""
|
|
38
|
-
};
|
|
39
|
-
}, [y, b]), A = k.address.startsWith("#"), j = s(() => v(k.address), [k.address]), [M, N] = l(A ? "document" : j ? "email" : "url"), [P, F] = l(A || j ? "" : k.address), [I, L] = l(j?.address ?? ""), [R, z] = l(j?.subject ?? ""), [B, V] = l(() => A && k.address.substring(1) || null), [H, U] = l(A ? k.address.substring(1) : ""), [W, ue] = l(null), [G, de] = l(() => {
|
|
40
|
-
let e = b?.().getText({ useFormattingCategory: !0 }) ?? k.textToDisplay;
|
|
41
|
-
return e === k.address || j && e === j.address ? "" : e;
|
|
42
|
-
}), [K, q] = l(!1), J = ee(), Y = c(null), X = c(null), Z = r(() => {
|
|
43
|
-
Y.current?.querySelector("input.autoFocus")?.focus(), X.current?.engage();
|
|
44
|
-
}, []), Q = c(M);
|
|
45
|
-
o(() => {
|
|
46
|
-
Q.current !== M && (Q.current = M, Z());
|
|
47
|
-
}, [M]);
|
|
48
|
-
let fe = s(() => {
|
|
49
|
-
let e = b?.()?.getWorksheet()?.getName();
|
|
50
|
-
return e ? { scope: e } : void 0;
|
|
51
|
-
}, [b]), pe = n().getMode()?.mode === "point", me = r((e) => {
|
|
52
|
-
de(e.target.value);
|
|
53
|
-
}, []), $ = r(() => {
|
|
54
|
-
if (M === "document") {
|
|
55
|
-
if (typeof B == "string") {
|
|
56
|
-
let e = B.trim();
|
|
57
|
-
return e ? `#${e}` : null;
|
|
58
|
-
}
|
|
59
|
-
let e = B?.getReferences()?.getAddress();
|
|
60
|
-
return e ? `#${e}` : null;
|
|
61
|
-
}
|
|
62
|
-
return M === "email" ? ((e, t) => {
|
|
63
|
-
let n = e.trim();
|
|
64
|
-
if (_(n) && (n = n.substring(7)), !n) return null;
|
|
65
|
-
let r = t.trim();
|
|
66
|
-
return `${g}${n}${r ? `?subject=${encodeURIComponent(r)}` : ""}`;
|
|
67
|
-
})(I, R) : P === "" ? null : P;
|
|
68
|
-
}, [
|
|
69
|
-
M,
|
|
70
|
-
B,
|
|
71
|
-
P,
|
|
72
|
-
I,
|
|
73
|
-
R
|
|
74
|
-
]), he = r(async (e) => {
|
|
75
|
-
let t = e === D;
|
|
76
|
-
if (!t) {
|
|
77
|
-
let e = $(), t = e;
|
|
78
|
-
e?.startsWith("#") ? t = e.substring(1) : M === "email" && e && (t = v(e)?.address ?? e), x?.({
|
|
79
|
-
address: e,
|
|
80
|
-
textToDisplay: (G === "" ? t : G) ?? null
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
S?.(e, t, e === E), w?.();
|
|
84
|
-
}, [
|
|
85
|
-
$,
|
|
86
|
-
M,
|
|
87
|
-
G,
|
|
88
|
-
x,
|
|
89
|
-
w,
|
|
90
|
-
S,
|
|
91
|
-
E,
|
|
92
|
-
D
|
|
93
|
-
]), ge = r(async (e) => !1 !== await Promise.resolve(C?.(e)) && (M !== "document" || !W), [
|
|
94
|
-
C,
|
|
95
|
-
M,
|
|
96
|
-
W
|
|
97
|
-
]), _e = M === "document" ? H : M === "email" ? I : P;
|
|
98
|
-
return d(te, {
|
|
99
|
-
title: O(le ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
|
|
100
|
-
options: T,
|
|
101
|
-
onDone: w,
|
|
102
|
-
onOption: (e) => he(e),
|
|
103
|
-
onValidateOption: ge,
|
|
104
|
-
defaultOption: E,
|
|
105
|
-
cancelOption: D,
|
|
106
|
-
autoFocusSel: ".autoFocus",
|
|
107
|
-
suspendModal: pe,
|
|
108
|
-
sx: {
|
|
109
|
-
width: "480px",
|
|
110
|
-
...se
|
|
111
|
-
},
|
|
112
|
-
...ce,
|
|
113
|
-
children: f(ne, {
|
|
114
|
-
ref: Y,
|
|
115
|
-
sx: {
|
|
116
|
-
paddingTop: (e) => e.spacing(1),
|
|
117
|
-
paddingBottom: (e) => e.spacing(0),
|
|
118
|
-
rowGap: (e) => e.spacing(1),
|
|
119
|
-
display: "flex",
|
|
120
|
-
flexDirection: "column"
|
|
121
|
-
},
|
|
122
|
-
children: [
|
|
123
|
-
f(p, {
|
|
124
|
-
sx: {
|
|
125
|
-
minWidth: 135,
|
|
126
|
-
width: "100%"
|
|
127
|
-
},
|
|
128
|
-
size: "small",
|
|
129
|
-
children: [d(re, {
|
|
130
|
-
id: J,
|
|
131
|
-
children: O("hyperlink.linkTo")
|
|
132
|
-
}), f(ie, {
|
|
133
|
-
labelId: J,
|
|
134
|
-
value: M,
|
|
135
|
-
label: O("hyperlink.linkTo"),
|
|
136
|
-
MenuProps: {
|
|
137
|
-
disableRestoreFocus: !0,
|
|
138
|
-
slotProps: { transition: { onExited: Z } },
|
|
139
|
-
container: () => document.fullscreenElement
|
|
140
|
-
},
|
|
141
|
-
onChange: (e) => {
|
|
142
|
-
N(e.target.value);
|
|
143
|
-
},
|
|
144
|
-
children: [
|
|
145
|
-
d(m, {
|
|
146
|
-
value: "url",
|
|
147
|
-
children: O("hyperlink.typeWebPage")
|
|
148
|
-
}),
|
|
149
|
-
d(m, {
|
|
150
|
-
value: "document",
|
|
151
|
-
children: O("hyperlink.typeInDocument")
|
|
152
|
-
}),
|
|
153
|
-
d(m, {
|
|
154
|
-
value: "email",
|
|
155
|
-
children: O("hyperlink.typeEmail")
|
|
156
|
-
})
|
|
157
|
-
]
|
|
158
|
-
})]
|
|
159
|
-
}),
|
|
160
|
-
M === "email" ? f(u, { children: [d(t, {
|
|
161
|
-
sx: h,
|
|
162
|
-
label: O("hyperlink.emailAddress"),
|
|
163
|
-
defaultInput: O("hyperlink.emailPlaceholder"),
|
|
164
|
-
value: I,
|
|
165
|
-
onChangeInput: (e) => L(e),
|
|
166
|
-
onFocus: (e) => {
|
|
167
|
-
K || e.target?.select?.(), q(!0);
|
|
168
|
-
}
|
|
169
|
-
}), d(t, {
|
|
170
|
-
label: O("hyperlink.subject"),
|
|
171
|
-
defaultInput: "",
|
|
172
|
-
value: R,
|
|
173
|
-
onChangeInput: (e) => z(e),
|
|
174
|
-
onFocus: () => q(!0)
|
|
175
|
-
})] }) : M === "document" ? d(e, {
|
|
176
|
-
sx: h,
|
|
177
|
-
grammar: "reference",
|
|
178
|
-
apiRef: X,
|
|
179
|
-
classNameInput: "autoFocus",
|
|
180
|
-
label: O("hyperlink.reference"),
|
|
181
|
-
value: B,
|
|
182
|
-
allowMulti: !1,
|
|
183
|
-
home: fe,
|
|
184
|
-
onChangeInput: (e) => V(e),
|
|
185
|
-
onChangeText: (e) => U(e),
|
|
186
|
-
onChangeError: (e) => ue(e),
|
|
187
|
-
onFocus: (e) => {
|
|
188
|
-
K || e.target?.select?.(), q(!0);
|
|
189
|
-
}
|
|
190
|
-
}) : d(t, {
|
|
191
|
-
sx: h,
|
|
192
|
-
label: O("hyperlink.address"),
|
|
193
|
-
defaultInput: O("hyperlink.addressPlaceholder"),
|
|
194
|
-
value: P,
|
|
195
|
-
onChangeInput: (e) => F(e),
|
|
196
|
-
onFocus: (e) => {
|
|
197
|
-
K || e.target?.select?.(), q(!0);
|
|
198
|
-
}
|
|
199
|
-
}),
|
|
200
|
-
d(p, {
|
|
201
|
-
sx: {
|
|
202
|
-
paddingTop: (e) => e.spacing(1.5),
|
|
203
|
-
minWidth: 135,
|
|
204
|
-
width: "100%"
|
|
205
|
-
},
|
|
206
|
-
size: "small",
|
|
207
|
-
children: d(ae, {
|
|
208
|
-
label: O("hyperlink.displayText"),
|
|
209
|
-
placeholder: _e,
|
|
210
|
-
onFocus: () => {
|
|
211
|
-
q(!0);
|
|
212
|
-
},
|
|
213
|
-
sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
|
|
214
|
-
slotProps: {
|
|
215
|
-
inputLabel: { shrink: !0 },
|
|
216
|
-
htmlInput: {
|
|
217
|
-
spellCheck: !1,
|
|
218
|
-
autoComplete: "off",
|
|
219
|
-
sx: {
|
|
220
|
-
paddingTop: (e) => e.spacing(1.25),
|
|
221
|
-
paddingBottom: (e) => e.spacing(.75)
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
value: G,
|
|
226
|
-
onChange: me,
|
|
227
|
-
onContextMenu: (e) => {
|
|
228
|
-
e.stopPropagation();
|
|
229
|
-
}
|
|
230
|
-
})
|
|
231
|
-
})
|
|
232
|
-
]
|
|
233
|
-
})
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
export { y as HyperlinkDialog, y as default };
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { FormulaField as e, InputField as t } from "./index.mjs";
|
|
8
|
-
import { useReferenceMode as n } from "@sheetxl/react";
|
|
9
|
-
import { useCallbackRef as l, useTranslator as r } from "@sheetxl/utils-react";
|
|
10
|
-
import { memo as s, useEffect as o, useId as a, useMemo as i, useRef as u, useState as d } from "react";
|
|
11
|
-
import { OptionsDialog as p } from "@sheetxl/utils-mui";
|
|
12
|
-
import { Fragment as c, jsx as m, jsxs as g } from "react/jsx-runtime";
|
|
13
|
-
import { Box as h, FormControl as f, InputLabel as y, MenuItem as x, Select as b, TextField as k } from "@mui/material";
|
|
14
|
-
var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto:", I = (e) => e.length >= 7 && e.substring(0, 7).toLowerCase() === v, F = (e) => {
|
|
15
|
-
if (!I(e)) return null;
|
|
16
|
-
const t = e.substring(7), n = t.indexOf("?");
|
|
17
|
-
if (-1 === n) return {
|
|
18
|
-
address: t,
|
|
19
|
-
subject: ""
|
|
20
|
-
};
|
|
21
|
-
let l = "";
|
|
22
|
-
try {
|
|
23
|
-
l = new URLSearchParams(t.substring(n + 1)).get("subject") ?? "";
|
|
24
|
-
} catch {}
|
|
25
|
-
return {
|
|
26
|
-
address: t.substring(0, n),
|
|
27
|
-
subject: l
|
|
28
|
-
};
|
|
29
|
-
}, O = s((s) => {
|
|
30
|
-
const { initialValue: O = null, context: D, onInput: P, onOption: j, onValidateOption: w, onDone: M, options: W = T, defaultOption: $ = W?.[0], cancelOption: E = "Cancel", sx: R, ...A } = s, H = r(), L = i(() => null !== (O ?? D?.()?.getHyperlink()), []), S = i(() => {
|
|
31
|
-
let e = null, t = null;
|
|
32
|
-
O && ("string" == typeof O ? t = O : e = O);
|
|
33
|
-
const n = e ? null : D?.()?.getHyperlink();
|
|
34
|
-
return {
|
|
35
|
-
address: t ?? e?.address ?? n?.getAddress() ?? "",
|
|
36
|
-
textToDisplay: e?.textToDisplay ?? n?.getTextToDisplay() ?? ""
|
|
37
|
-
};
|
|
38
|
-
}, [O, D]), V = S.address.startsWith("#"), z = i(() => F(S.address), [S.address]), [B, N] = d(V ? "document" : z ? "email" : "url"), [U, q] = d(V || z ? "" : S.address), [G, J] = d(z?.address ?? ""), [K, Q] = d(z?.subject ?? ""), [X, Y] = d(() => V && S.address.substring(1) || null), [Z, _] = d(V ? S.address.substring(1) : ""), [ee, te] = d(null), [ne, le] = d(() => {
|
|
39
|
-
const e = D?.().getText({ useFormattingCategory: !0 }) ?? S.textToDisplay;
|
|
40
|
-
return e === S.address || z && e === z.address ? "" : e;
|
|
41
|
-
}), [re, se] = d(!1), oe = a(), ae = u(null), ie = u(null), ue = l(() => {
|
|
42
|
-
ae.current?.querySelector("input.autoFocus")?.focus(), ie.current?.engage();
|
|
43
|
-
}, []), de = u(B);
|
|
44
|
-
o(() => {
|
|
45
|
-
de.current !== B && (de.current = B, ue());
|
|
46
|
-
}, [B]);
|
|
47
|
-
const pe = i(() => {
|
|
48
|
-
const e = D?.()?.getWorksheet()?.getName();
|
|
49
|
-
return e ? { scope: e } : void 0;
|
|
50
|
-
}, [D]), ce = "point" === n().getMode()?.mode, me = l((e) => {
|
|
51
|
-
le(e.target.value);
|
|
52
|
-
}, []), ge = l(() => {
|
|
53
|
-
if ("document" === B) {
|
|
54
|
-
if ("string" == typeof X) {
|
|
55
|
-
const e = X.trim();
|
|
56
|
-
return e ? `#${e}` : null;
|
|
57
|
-
}
|
|
58
|
-
const e = X?.getReferences()?.getAddress();
|
|
59
|
-
return e ? `#${e}` : null;
|
|
60
|
-
}
|
|
61
|
-
return "email" === B ? ((e, t) => {
|
|
62
|
-
let n = e.trim();
|
|
63
|
-
if (I(n) && (n = n.substring(7)), !n) return null;
|
|
64
|
-
const l = t.trim();
|
|
65
|
-
return `${v}${n}${l ? `?subject=${encodeURIComponent(l)}` : ""}`;
|
|
66
|
-
})(G, K) : "" === U ? null : U;
|
|
67
|
-
}, [
|
|
68
|
-
B,
|
|
69
|
-
X,
|
|
70
|
-
U,
|
|
71
|
-
G,
|
|
72
|
-
K
|
|
73
|
-
]), he = l(async (e) => {
|
|
74
|
-
const t = e === E;
|
|
75
|
-
if (!t) {
|
|
76
|
-
const e = ge();
|
|
77
|
-
let t = e;
|
|
78
|
-
e?.startsWith("#") ? t = e.substring(1) : "email" === B && e && (t = F(e)?.address ?? e), P?.({
|
|
79
|
-
address: e,
|
|
80
|
-
textToDisplay: ("" === ne ? t : ne) ?? null
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
j?.(e, t, e === $), M?.();
|
|
84
|
-
}, [
|
|
85
|
-
ge,
|
|
86
|
-
B,
|
|
87
|
-
ne,
|
|
88
|
-
P,
|
|
89
|
-
M,
|
|
90
|
-
j,
|
|
91
|
-
$,
|
|
92
|
-
E
|
|
93
|
-
]), fe = l(async (e) => !1 !== await Promise.resolve(w?.(e)) && ("document" !== B || !ee), [
|
|
94
|
-
w,
|
|
95
|
-
B,
|
|
96
|
-
ee
|
|
97
|
-
]), ye = "document" === B ? Z : "email" === B ? G : U;
|
|
98
|
-
return m(p, {
|
|
99
|
-
title: H(L ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
|
|
100
|
-
options: W,
|
|
101
|
-
onDone: M,
|
|
102
|
-
onOption: (e) => he(e),
|
|
103
|
-
onValidateOption: fe,
|
|
104
|
-
defaultOption: $,
|
|
105
|
-
cancelOption: E,
|
|
106
|
-
autoFocusSel: ".autoFocus",
|
|
107
|
-
suspendModal: ce,
|
|
108
|
-
sx: {
|
|
109
|
-
width: "480px",
|
|
110
|
-
...R
|
|
111
|
-
},
|
|
112
|
-
...A,
|
|
113
|
-
children: g(h, {
|
|
114
|
-
ref: ae,
|
|
115
|
-
sx: {
|
|
116
|
-
paddingTop: (e) => e.spacing(1),
|
|
117
|
-
paddingBottom: (e) => e.spacing(0),
|
|
118
|
-
rowGap: (e) => e.spacing(1),
|
|
119
|
-
display: "flex",
|
|
120
|
-
flexDirection: "column"
|
|
121
|
-
},
|
|
122
|
-
children: [
|
|
123
|
-
g(f, {
|
|
124
|
-
sx: {
|
|
125
|
-
minWidth: 135,
|
|
126
|
-
width: "100%"
|
|
127
|
-
},
|
|
128
|
-
size: "small",
|
|
129
|
-
children: [m(y, {
|
|
130
|
-
id: oe,
|
|
131
|
-
children: H("hyperlink.linkTo")
|
|
132
|
-
}), g(b, {
|
|
133
|
-
labelId: oe,
|
|
134
|
-
value: B,
|
|
135
|
-
label: H("hyperlink.linkTo"),
|
|
136
|
-
MenuProps: {
|
|
137
|
-
disableRestoreFocus: !0,
|
|
138
|
-
slotProps: { transition: { onExited: ue } },
|
|
139
|
-
container: () => document.fullscreenElement
|
|
140
|
-
},
|
|
141
|
-
onChange: (e) => {
|
|
142
|
-
N(e.target.value);
|
|
143
|
-
},
|
|
144
|
-
children: [
|
|
145
|
-
m(x, {
|
|
146
|
-
value: "url",
|
|
147
|
-
children: H("hyperlink.typeWebPage")
|
|
148
|
-
}),
|
|
149
|
-
m(x, {
|
|
150
|
-
value: "document",
|
|
151
|
-
children: H("hyperlink.typeInDocument")
|
|
152
|
-
}),
|
|
153
|
-
m(x, {
|
|
154
|
-
value: "email",
|
|
155
|
-
children: H("hyperlink.typeEmail")
|
|
156
|
-
})
|
|
157
|
-
]
|
|
158
|
-
})]
|
|
159
|
-
}),
|
|
160
|
-
"email" === B ? g(c, { children: [m(t, {
|
|
161
|
-
sx: C,
|
|
162
|
-
label: H("hyperlink.emailAddress"),
|
|
163
|
-
defaultInput: H("hyperlink.emailPlaceholder"),
|
|
164
|
-
value: G,
|
|
165
|
-
onChangeInput: (e) => J(e),
|
|
166
|
-
onFocus: (e) => {
|
|
167
|
-
re || e.target?.select?.(), se(!0);
|
|
168
|
-
}
|
|
169
|
-
}), m(t, {
|
|
170
|
-
label: H("hyperlink.subject"),
|
|
171
|
-
defaultInput: "",
|
|
172
|
-
value: K,
|
|
173
|
-
onChangeInput: (e) => Q(e),
|
|
174
|
-
onFocus: () => se(!0)
|
|
175
|
-
})] }) : "document" === B ? m(e, {
|
|
176
|
-
sx: C,
|
|
177
|
-
grammar: "reference",
|
|
178
|
-
apiRef: ie,
|
|
179
|
-
classNameInput: "autoFocus",
|
|
180
|
-
label: H("hyperlink.reference"),
|
|
181
|
-
value: X,
|
|
182
|
-
allowMulti: !1,
|
|
183
|
-
home: pe,
|
|
184
|
-
onChangeInput: (e) => Y(e),
|
|
185
|
-
onChangeText: (e) => _(e),
|
|
186
|
-
onChangeError: (e) => te(e),
|
|
187
|
-
onFocus: (e) => {
|
|
188
|
-
re || e.target?.select?.(), se(!0);
|
|
189
|
-
}
|
|
190
|
-
}) : m(t, {
|
|
191
|
-
sx: C,
|
|
192
|
-
label: H("hyperlink.address"),
|
|
193
|
-
defaultInput: H("hyperlink.addressPlaceholder"),
|
|
194
|
-
value: U,
|
|
195
|
-
onChangeInput: (e) => q(e),
|
|
196
|
-
onFocus: (e) => {
|
|
197
|
-
re || e.target?.select?.(), se(!0);
|
|
198
|
-
}
|
|
199
|
-
}),
|
|
200
|
-
m(f, {
|
|
201
|
-
sx: {
|
|
202
|
-
paddingTop: (e) => e.spacing(1.5),
|
|
203
|
-
minWidth: 135,
|
|
204
|
-
width: "100%"
|
|
205
|
-
},
|
|
206
|
-
size: "small",
|
|
207
|
-
children: m(k, {
|
|
208
|
-
label: H("hyperlink.displayText"),
|
|
209
|
-
placeholder: ye,
|
|
210
|
-
onFocus: () => {
|
|
211
|
-
se(!0);
|
|
212
|
-
},
|
|
213
|
-
sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
|
|
214
|
-
slotProps: {
|
|
215
|
-
inputLabel: { shrink: !0 },
|
|
216
|
-
htmlInput: {
|
|
217
|
-
spellCheck: !1,
|
|
218
|
-
autoComplete: "off",
|
|
219
|
-
sx: {
|
|
220
|
-
paddingTop: (e) => e.spacing(1.25),
|
|
221
|
-
paddingBottom: (e) => e.spacing(.75)
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
value: ne,
|
|
226
|
-
onChange: me,
|
|
227
|
-
onContextMenu: (e) => {
|
|
228
|
-
e.stopPropagation();
|
|
229
|
-
}
|
|
230
|
-
})
|
|
231
|
-
})
|
|
232
|
-
]
|
|
233
|
-
})
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
export { O as HyperlinkDialog, O as default };
|