@sheetxl/studio-mui 0.8.0-beta.12 → 0.8.0-beta.14
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/{D5N4nGaZsXtrHAOh.mjs → 4meV2QrzGwOTw-Wg.mjs} +3 -3
- package/browser/esm/{NeGeLF3gbGMZyV6E.mjs → 7GvHfNWduigxqNjI.mjs} +1 -1
- package/browser/esm/{C29TKq47CbXs652l.mjs → 9wRFUyQKqfHCPUiS.mjs} +2 -2
- package/browser/esm/{u84rSnESjxqB6gay.mjs → ATDkpSD6QYiZqoUd.mjs} +1 -1
- package/browser/esm/{BAzhmMX4Fk_qnUTp.mjs → B0u4XScttbCbHUuj.mjs} +5 -5
- package/browser/esm/{BSv9MVJaz1DVEffm.mjs → B2NGlVfdWvs2G_Fq.mjs} +4 -4
- package/browser/esm/{CuRxFAO42JkQvMEx.mjs → B65gFGIGbaB2HJ7S.mjs} +1 -1
- package/browser/esm/{CeF35ZeFP28Do5Zx.mjs → BJPuzqf8wzAaSBCD.mjs} +6 -6
- package/browser/esm/{CMc7G7cevxzPGxr9.mjs → BJn4i5eSKttOM7Va.mjs} +2 -2
- package/browser/esm/{BKhcJI-G15D3kGap.mjs → BLWzmTXqRJp_rp2R.mjs} +2 -2
- package/browser/esm/{BWfLpYmd3cSgJ0C6.mjs → BPEGlembHUmOukt-.mjs} +4 -4
- package/browser/esm/{DaxpbAF1ShkT7hNU.mjs → BSgsK2ctkA7acJ8B.mjs} +5 -5
- package/browser/esm/{Dt47Huh1l3C4_5_w.mjs → BhurfBABcwf3sq1Y.mjs} +1 -1
- package/browser/esm/{D0slJycx3nq53qmf.mjs → BnRqW8S8uRFT1dsa.mjs} +1 -1
- package/browser/esm/{BsngRDhvVYGVBJeK.mjs → C4-74xZS6PXqeP2-.mjs} +4 -4
- package/browser/esm/{BNbub9weuqm3mcoF.mjs → C4UBegw-DrnYEN3U.mjs} +4 -4
- package/browser/esm/{CjYKDxU4EP2Kf_vo.mjs → C7G22BSOh6ahi_YA.mjs} +2 -2
- package/browser/esm/{DuuyN4-7K6_io2Py.mjs → C85QGz19eE9ggqzR.mjs} +2 -2
- package/browser/esm/{Cvk2yY90hpgXWMAt.mjs → CM5uH7kPI6bp0Ynb.mjs} +1 -1
- package/browser/esm/{WIhvQtBkGiw-oFUs.mjs → CQ6F1l897Rr74YXa.mjs} +174 -133
- package/browser/esm/{tIKqpsA0vNXH9EgU.mjs → CQmRcbXzQ2ZnzWkm.mjs} +1 -1
- package/browser/esm/{2nRxqrNYbmEn8fS8.mjs → CSjn0SmASZfMzjJD.mjs} +5 -5
- package/browser/esm/{BpJsBv413cNQpyg0.mjs → CUBCWkB6A5HH4u5Q.mjs} +3 -3
- package/browser/esm/{D7AqPfyhMiuda5l5.mjs → CeYt9oGNq5J48kA8.mjs} +2 -2
- package/browser/esm/{Db3oHfXiRtcH015t.mjs → Cm7gnL7wtPzU7kH9.mjs} +2 -2
- package/browser/esm/{DX2_vf7WX6uRLaOZ.mjs → CouH7NfOLzq-7BFG.mjs} +1 -1
- package/browser/esm/{CFIAWgpU3UyepLBn.mjs → CqAaow0-s9wI-Zco.mjs} +4 -4
- package/browser/esm/{BHGr2gsFofTdAFxq.mjs → D1METLVOmQUWB2GY.mjs} +4 -4
- package/browser/esm/{CJD4jF4m9cBGHzr_.mjs → D5ASCLEncVX6S3t7.mjs} +1 -1
- package/browser/esm/{oC0OwOddhOD0OoCJ.mjs → D5ioZQTn_SJateKf.mjs} +2 -2
- package/browser/esm/{CBzXksWnb-1gGEWZ.mjs → D7SHK5F4crIKlHfX.mjs} +1 -1
- package/browser/esm/{DHZA48ZMCETvHmeP.mjs → DC70OHr0cJy33grZ.mjs} +1 -1
- package/browser/esm/{D2jzliMwAo2ENpfi.mjs → DEu_fNm5LXqXGUqI.mjs} +1 -1
- package/browser/esm/{BGL3x0W74D7qZXlf.mjs → DGGNjWCfZChvgtCJ.mjs} +3 -3
- package/browser/esm/{PY3Br5Bo_TxcCnCU.mjs → DGsTOxJVdwIgmFiF.mjs} +2 -2
- package/browser/esm/{DtPt0phL7m56YfHZ.mjs → DJytYYs6hwKzoGdK.mjs} +1 -1
- package/browser/esm/{BZqwbIE8qzjSOYcJ.mjs → DKnuzGrJHk4qI0Zi.mjs} +3 -3
- package/browser/esm/{BnkwC5rsg9LZyhoP.mjs → DROcTh8qOW1i6ktd.mjs} +2 -2
- package/browser/esm/{D5Fn0Hqllwv5HY6i.mjs → DSMZVJXRlgHj6hnF.mjs} +69 -48
- package/browser/esm/{DtTDaXmnWUoG4VBO.mjs → DUMfNkupQUkMYbRX.mjs} +2 -2
- package/browser/esm/{C8p2iMad_NNCwGI_.mjs → DYKsNTXsl78btQCN.mjs} +2 -2
- package/browser/esm/{0IBZhOJaVmzJxuTv.mjs → DcF7yoU5XaD0TzDi.mjs} +1 -1
- package/browser/esm/{BpVrgbVISiTDyFR3.mjs → Dh1o7OIOvCQaeaVN.mjs} +2 -2
- package/browser/esm/{Cq82lvdjyBvlJ8xJ.mjs → DviYEVpPnQaWx-Tr.mjs} +1 -1
- package/browser/esm/DydtA0Kx0EIVeRVq.mjs +242 -0
- package/browser/esm/{BZy9xUrYpAtnKeji.mjs → IF6KtCM-Yj_9GGEI.mjs} +8 -8
- package/browser/esm/{7fVZXXuonYb6Z7FU.mjs → TJm3V2B1CMw1iZoU.mjs} +3 -3
- package/browser/esm/{WgIvwAENeO8LANax.mjs → XkkwDAFA6f5msXE4.mjs} +2 -2
- package/browser/esm/{CYtULLhY9M2m3DeH.mjs → b6OpGIOfqvVgPkpN.mjs} +1 -1
- package/browser/esm/{lKXEDVt2ow1NlWJj.mjs → cMMnySiLwLtz8_Zk.mjs} +6 -6
- package/browser/esm/{Yjq3p_7eVGFw2Jod.mjs → dcZCjUD2UCAzFGTB.mjs} +3 -3
- package/browser/esm/index.mjs +19 -17
- package/licenses/dependencies.txt +33 -33
- package/node/esm/{CgKa6JuyJ1tTodev.mjs → 0TWX9zLKXvPj1qMo.mjs} +171 -130
- package/node/esm/{C3FCh9xju2SccUIE.mjs → B74EJtfb07jNPG2i.mjs} +2 -2
- package/node/esm/{DygDgOpa9sJ6YFVS.mjs → BIbJ-RvwV7EKR1AK.mjs} +1 -1
- package/node/esm/{Cq53M7bAUSXMNq1f.mjs → BPbOKZTCABQS1v4l.mjs} +1 -1
- package/node/esm/{CTnVNfz4eqFnM92M.mjs → BXq4h4T2V5D0e0GE.mjs} +1 -1
- package/node/esm/{gPYAb_A0T5ZwcQ1E.mjs → BbCPG2xTU1rpAM5l.mjs} +1 -1
- package/node/esm/{B8Ls4Eh1k8-Yiry_.mjs → By9Y6KcwsjQGiP4W.mjs} +1 -1
- package/node/esm/{BBGoyqs2L_ccSH1e.mjs → C29ReEXb9EK4DP6E.mjs} +2 -2
- package/node/esm/{CKWeipCqqpLnLE5e.mjs → C2ZhJJ6JogM32N6v.mjs} +2 -2
- package/node/esm/{B9X3n8MglL4OitAV.mjs → CLArZpAFWoKR9UXC.mjs} +1 -1
- package/node/esm/{di_8-pXh90j4BO4j.mjs → CMsWjZqAF2n3PniO.mjs} +1 -1
- package/node/esm/{BLv99aovW4R3C5PE.mjs → ChAnZ_8BZXB8xGku.mjs} +3 -3
- package/node/esm/{DsNYnq4NtYBxPmeA.mjs → CnHJuuebdiYB4hU1.mjs} +1 -1
- package/node/esm/Cv_gkzf1CvleEpGx.mjs +242 -0
- package/node/esm/{DJFkALt4XrwkMbnU.mjs → CzQvRTTBIzvSAQWs.mjs} +1 -1
- package/node/esm/{BalROFG_oa9PFs9Q.mjs → D1RBCi056McbAuVe.mjs} +2 -2
- package/node/esm/{ZzvsynJTCSuChYS-.mjs → D3BoGAsVExHN5pzo.mjs} +1 -1
- package/node/esm/{C4F6WY8M4nkLyxdb.mjs → D9neYUsRInmBz-7P.mjs} +2 -2
- package/node/esm/{DQaGPUYbgL4Y5YZW.mjs → DINEK8QwAC2xbcJg.mjs} +1 -1
- package/node/esm/{M7YxvRPGCuxuk9aK.mjs → DKJDmlxmNG0mVHmb.mjs} +1 -1
- package/node/esm/{BUGU_5lUtnCRlp3n.mjs → DLa2dwTHx-TF9X28.mjs} +2 -2
- package/node/esm/{DJpwI8PlKBI2rk0r.mjs → DNhFkzvStZYjYqlY.mjs} +2 -2
- package/node/esm/{Cfi_ly8fBDZZdiZT.mjs → DV7GtbZngmzKJkGC.mjs} +3 -3
- package/node/esm/{Dz0Hg87UcJ-awwiI.mjs → DfRwTR3tR0Wx5I0U.mjs} +2 -2
- package/node/esm/{D72CupF9mfy2D1Xa.mjs → DrZYqa9k2cas_dpR.mjs} +1 -1
- package/node/esm/{QNjtpX8rIpqGGLEJ.mjs → DtxnTVIKKE8mp6rU.mjs} +2 -2
- package/node/esm/{wB8xMpyJ_NvE16yG.mjs → Dua4HsVMCVMOSuUP.mjs} +2 -2
- package/node/esm/{Cr8AYWUoU-XVt0hu.mjs → GkXvPmel2BbE1Yvo.mjs} +1 -1
- package/node/esm/{zGAcd4Jr7wkvXDBS.mjs → Hp0ggyjuRLoV7Zkw.mjs} +1 -1
- package/node/esm/{DGDHFK8okuVbRCe5.mjs → Ua-hzH0IDC5UU7I1.mjs} +1 -1
- package/node/esm/{fmya3XQnTGyQisvT.mjs → Y0a0MfNj9jzVeoRQ.mjs} +1 -1
- package/node/esm/{BqVxnA1mo52ubjdf.mjs → a4ksKvzRiZRS-LjD.mjs} +2 -2
- package/node/esm/index.mjs +246 -223
- package/node/esm/{dm8dmEaTIqfmgyeL.mjs → rSq-rFZ2oBrx0daL.mjs} +2 -2
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +12 -1
- package/resources/locales/en/groups.cmd.json +12 -1
- package/types/src/conditions/MembershipOption.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/filter/ColumnMenu.d.ts +1 -1
- 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/browser/esm/jFRFCWlkD7Dsrhkh.mjs +0 -236
- package/node/esm/CyuOE595I2e-U4cG.mjs +0 -236
- package/types/src/shape/InsertShapeCommandButton.d.ts +0 -20
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.14
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
7
|
import { PresetChip as a, c as e, i as t, n as i, r as l } from "./index.mjs";
|
|
8
|
-
import { n as o, t as n } from "./
|
|
8
|
+
import { n as o, t as n } from "./D1RBCi056McbAuVe.mjs";
|
|
9
9
|
import { ICondition as r, IDataValidation as d } from "@sheetxl/sdk";
|
|
10
10
|
import { useModelSync as s } from "@sheetxl/react";
|
|
11
11
|
import { DynamicIcon as p, useTranslator as m } from "@sheetxl/utils-react";
|
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.8.0-beta.
|
|
4
|
+
"version": "0.8.0-beta.14",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
52
52
|
"@dnd-kit/sortable": "^10.0.0",
|
|
53
53
|
"@dnd-kit/utilities": "^3.2.2",
|
|
54
|
-
"@sheetxl/grid-react": "^0.8.0-beta.
|
|
55
|
-
"@sheetxl/io": "^0.8.0-beta.
|
|
56
|
-
"@sheetxl/react": "^0.8.0-beta.
|
|
57
|
-
"@sheetxl/scripting-react": "^0.8.0-beta.
|
|
58
|
-
"@sheetxl/sdk": "^0.8.0-beta.
|
|
59
|
-
"@sheetxl/utils": "^0.8.0-beta.
|
|
60
|
-
"@sheetxl/utils-mui": "^0.8.0-beta.
|
|
61
|
-
"@sheetxl/utils-react": "^0.8.0-beta.
|
|
54
|
+
"@sheetxl/grid-react": "^0.8.0-beta.14",
|
|
55
|
+
"@sheetxl/io": "^0.8.0-beta.14",
|
|
56
|
+
"@sheetxl/react": "^0.8.0-beta.14",
|
|
57
|
+
"@sheetxl/scripting-react": "^0.8.0-beta.14",
|
|
58
|
+
"@sheetxl/sdk": "^0.8.0-beta.14",
|
|
59
|
+
"@sheetxl/utils": "^0.8.0-beta.14",
|
|
60
|
+
"@sheetxl/utils-mui": "^0.8.0-beta.14",
|
|
61
|
+
"@sheetxl/utils-react": "^0.8.0-beta.14",
|
|
62
62
|
"clsx": "^2.1.1",
|
|
63
63
|
"csstype": "^3.2.3",
|
|
64
64
|
"file-saver": "^2.0.5",
|
|
@@ -150,10 +150,21 @@
|
|
|
150
150
|
"description": "Ein Kontrollkästchen oder ein anderes registriertes Zellsteuerelement in die markierten Zellen einfügen.",
|
|
151
151
|
"icon": "CheckboxInsert"
|
|
152
152
|
},
|
|
153
|
+
"insertImageInCellOptions": {
|
|
154
|
+
"label": "In Zelle platzieren",
|
|
155
|
+
"description": "Ein Bild als Wert der markierten Zelle einfügen. Es wird mit der Zelle verschoben, sortiert und gefiltert.",
|
|
156
|
+
"icon": "InsertImageInCell"
|
|
157
|
+
},
|
|
153
158
|
"insertImageOptions": {
|
|
154
|
-
"
|
|
159
|
+
"label": "Bilder",
|
|
160
|
+
"description": "Ein Bild in eine Zelle oder über die Zellen einfügen.",
|
|
155
161
|
"icon": "InsertImage"
|
|
156
162
|
},
|
|
163
|
+
"insertImageOverCellsOptions": {
|
|
164
|
+
"label": "Über Zellen platzieren",
|
|
165
|
+
"description": "Ein Bild einfügen, das über den Zellen schwebt. Es kann eigenständig verschoben und in der Größe geändert werden.",
|
|
166
|
+
"icon": "InsertImageOverCells"
|
|
167
|
+
},
|
|
157
168
|
"insertSheetOptions": {
|
|
158
169
|
"description": "Fügen Sie neue Zellen, Zeilen oder Spalten in Ihre Arbeitsmappe ein.\nUm mehrere Zeilen oder Spalten gleichzeitig einzufügen, markieren Sie mehrere Zeilen oder Spalten und klicken Sie auf Einfügen."
|
|
159
170
|
},
|
|
@@ -153,10 +153,21 @@
|
|
|
153
153
|
"description": "Insert a checkbox, or another registered cell control, in the selected cells.",
|
|
154
154
|
"icon": "CheckboxInsert"
|
|
155
155
|
},
|
|
156
|
+
"insertImageInCellOptions": {
|
|
157
|
+
"label": "Place in Cell",
|
|
158
|
+
"description": "Insert a picture as the value of the selected cell. It moves, sorts and filters with the cell.",
|
|
159
|
+
"icon": "InsertImageInCell"
|
|
160
|
+
},
|
|
156
161
|
"insertImageOptions": {
|
|
157
|
-
"
|
|
162
|
+
"label": "Pictures",
|
|
163
|
+
"description": "Insert a picture in a cell or over the cells.",
|
|
158
164
|
"icon": "InsertImage"
|
|
159
165
|
},
|
|
166
|
+
"insertImageOverCellsOptions": {
|
|
167
|
+
"label": "Place over Cells",
|
|
168
|
+
"description": "Insert a picture that floats over the cells. It can be moved and resized on its own.",
|
|
169
|
+
"icon": "InsertImageOverCells"
|
|
170
|
+
},
|
|
160
171
|
"insertSheetOptions": {
|
|
161
172
|
"description": "Insert new cells, rows or columns to your workbook.\nTo insert multiple rows or columns at a time, select multiple rows or columns in the sheet and click Insert."
|
|
162
173
|
},
|
|
@@ -52,7 +52,7 @@ export interface MembershipOptionProps {
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* The editor of a set, the `InSet` operator's param, under every host
|
|
55
|
+
* The editor of a set, the `InSet` operator's param, under every host.
|
|
56
56
|
*
|
|
57
57
|
* @remarks
|
|
58
58
|
* What a host can do with a set is its capabilities. A filter gives {@link MembershipOptionProps.getItems}:
|
|
@@ -15,7 +15,7 @@ export interface SelectorSelectProps extends Omit<FormControlProps, 'onChange' |
|
|
|
15
15
|
onChange: (selector: ICondition.ISelector | null, extra?: string) => void;
|
|
16
16
|
/**
|
|
17
17
|
* Rows after the selectors that are not selectors: the host's own entries, named by value.
|
|
18
|
-
* A Formula rule is one
|
|
18
|
+
* A Formula rule is one: the formula stands in for the cell's value,
|
|
19
19
|
* which is a reading, so it is listed where the readings are.
|
|
20
20
|
*/
|
|
21
21
|
extras?: readonly {
|
|
@@ -9,7 +9,7 @@ export interface DataValidationEditorPanelProps {
|
|
|
9
9
|
dataValidation: IDataValidation;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Editor for one data validation: the card's header, then two tabs
|
|
12
|
+
* Editor for one data validation: the card's header, then two tabs. The Rule
|
|
13
13
|
* tab is the rule: the condition, through the editor conditional formats and filters use; for a
|
|
14
14
|
* rule that offers a list, its in-cell dropdown; and the error alert, which is what the rule
|
|
15
15
|
* does when an entry fails. The Prompt tab is the input message, which is not part of the rule
|
|
@@ -10,6 +10,21 @@ export type HyperlinkDialogInput = (Omit<IHyperlink.Modifiers, 'address' | 'text
|
|
|
10
10
|
textToDisplay?: string | null;
|
|
11
11
|
}) | string;
|
|
12
12
|
export interface HyperlinkDialogProps extends InputDialogProps<HyperlinkDialogInput, ICell> {
|
|
13
|
+
/**
|
|
14
|
+
* Shows the link without letting it change: the fields are disabled and the only button is Cancel.
|
|
15
|
+
* @defaultValue false
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Leaves out the display text, for a link on something with no text of its own: a picture.
|
|
20
|
+
* @defaultValue false
|
|
21
|
+
*/
|
|
22
|
+
hideDisplayText?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The sheet the link lives on, when there is no cell in `context` to tell: what a bare `A1` resolves
|
|
25
|
+
* against.
|
|
26
|
+
*/
|
|
27
|
+
sheetName?: string;
|
|
13
28
|
}
|
|
14
29
|
/**
|
|
15
30
|
* Hover should include (a goto with fun icon, copy, edit, and remove)
|
|
@@ -8,7 +8,7 @@ export interface ExternalLinkSettingsTabProps extends React.HTMLAttributes<HTMLD
|
|
|
8
8
|
*
|
|
9
9
|
* @remarks
|
|
10
10
|
* Carried, not obeyed — SheetXL always reads the cache and never refreshes a link, so the setting
|
|
11
|
-
* is for the applications that do
|
|
11
|
+
* is for the applications that do. It is still worth writing: a
|
|
12
12
|
* workbook that arrives with `never` must leave with it.
|
|
13
13
|
*
|
|
14
14
|
* A workbook whose source said nothing shows `userSet`, which is how Excel reads an absent
|
|
@@ -12,7 +12,7 @@ export interface ColumnMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
12
12
|
propsChecklist?: MembershipOptionProps['propsChecklist'];
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* The column **filter menu**, Excel's dropdown as a template menu
|
|
15
|
+
* The column **filter menu**, Excel's dropdown as a template menu: a
|
|
16
16
|
* Sort section, Clear filter while the column holds one, and a Filter section in one of three
|
|
17
17
|
* modes under a toggle: **Values**, the column's kind (**Number**, **Text** or **Date**), and
|
|
18
18
|
* **Custom**.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CommandPopupButtonProps } from '@sheetxl/utils-mui';
|
|
2
|
+
export interface ShapeGalleryCommandButtonProps extends CommandPopupButtonProps {
|
|
3
|
+
/**
|
|
4
|
+
* The command a pick runs, with the entry's JSON. Its label, description and enablement are the
|
|
5
|
+
* button's.
|
|
6
|
+
*/
|
|
7
|
+
commandKey: string;
|
|
8
|
+
/** Gallery sections to leave out, by key: Change Shape and Crop to Shape have no `lines`. */
|
|
9
|
+
excludeCategories?: readonly string[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A popup gallery of the preset shapes by section, as Excel lays it out. Picking one runs
|
|
13
|
+
* `commandKey` with what the entry states: Insert > Shapes, Change Shape and Crop to Shape are this
|
|
14
|
+
* gallery on their commands. Entries picked here are remembered by key, most recent first, in a
|
|
15
|
+
* Recently Used Shapes section shown above the gallery once there are any.
|
|
16
|
+
*/
|
|
17
|
+
export declare const ShapeGalleryCommandButton: import('react').NamedExoticComponent<Omit<ShapeGalleryCommandButtonProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
18
|
+
//# sourceMappingURL=ShapeGalleryCommandButton.d.ts.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** Change Shape and Crop to Shape offer no lines or connectors: a box cannot become one. */
|
|
2
|
+
export declare const ClosedShapeCategories: readonly string[];
|
|
1
3
|
/**
|
|
2
4
|
* The studio's additions to shapes: widgets react has no MUI for, added through the shape kind's
|
|
3
5
|
* contribution points as any host's would be.
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.12
|
|
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 "./7fVZXXuonYb6Z7FU.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 = (e) => e?.isReadOnly() ? null : e, _ = "mailto:", v = (e) => e.length >= 7 && e.substring(0, 7).toLowerCase() === _, y = (e) => {
|
|
16
|
-
if (!v(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
|
-
}, b = a((a) => {
|
|
31
|
-
let { initialValue: b = null, context: x, onInput: S, onOption: C, onValidateOption: w, onDone: T, options: E = oe, defaultOption: D = E?.[0], cancelOption: O = "Cancel", sx: se, ...ce } = a, k = i(), le = s(() => (b ?? g(x?.()?.getHyperlink())) !== null, []), A = s(() => {
|
|
32
|
-
let e = null, t = null;
|
|
33
|
-
b && (typeof b == "string" ? t = b : e = b);
|
|
34
|
-
let n = e ? null : g(x?.()?.getHyperlink());
|
|
35
|
-
return {
|
|
36
|
-
address: t ?? e?.address ?? n?.getAddress() ?? "",
|
|
37
|
-
textToDisplay: e?.textToDisplay ?? n?.getTextToDisplay() ?? ""
|
|
38
|
-
};
|
|
39
|
-
}, [b, x]), j = A.address.startsWith("#"), M = s(() => y(A.address), [A.address]), [N, ue] = l(j ? "document" : M ? "email" : "url"), [P, F] = l(j || M ? "" : A.address), [I, L] = l(M?.address ?? ""), [R, z] = l(M?.subject ?? ""), [B, V] = l(() => j && A.address.substring(1) || null), [H, de] = l(j ? A.address.substring(1) : ""), [U, fe] = l(null), [W, pe] = l(() => {
|
|
40
|
-
let e = x?.().getText({ useFormattingCategory: !0 }) ?? A.textToDisplay;
|
|
41
|
-
return e === A.address || M && e === M.address ? "" : e;
|
|
42
|
-
}), [G, K] = l(!1), q = ee(), J = c(null), Y = c(null), X = r(() => {
|
|
43
|
-
J.current?.querySelector("input.autoFocus")?.focus(), Y.current?.engage();
|
|
44
|
-
}, []), Z = c(N);
|
|
45
|
-
o(() => {
|
|
46
|
-
Z.current !== N && (Z.current = N, X());
|
|
47
|
-
}, [N]);
|
|
48
|
-
let me = s(() => {
|
|
49
|
-
let e = x?.()?.getWorksheet()?.getName();
|
|
50
|
-
return e ? { scope: e } : void 0;
|
|
51
|
-
}, [x]), he = n().getMode()?.mode === "point", ge = r((e) => {
|
|
52
|
-
pe(e.target.value);
|
|
53
|
-
}, []), Q = r(() => {
|
|
54
|
-
if (N === "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 N === "email" ? ((e, t) => {
|
|
63
|
-
let n = e.trim();
|
|
64
|
-
if (v(n) && (n = n.substring(7)), !n) return null;
|
|
65
|
-
let r = t.trim();
|
|
66
|
-
return `${_}${n}${r ? `?subject=${encodeURIComponent(r)}` : ""}`;
|
|
67
|
-
})(I, R) : P === "" ? null : P;
|
|
68
|
-
}, [
|
|
69
|
-
N,
|
|
70
|
-
B,
|
|
71
|
-
P,
|
|
72
|
-
I,
|
|
73
|
-
R
|
|
74
|
-
]), $ = r(async (e) => {
|
|
75
|
-
let t = e === O;
|
|
76
|
-
if (!t) {
|
|
77
|
-
let e = Q(), t = e;
|
|
78
|
-
e?.startsWith("#") ? t = e.substring(1) : N === "email" && e && (t = y(e)?.address ?? e), S?.({
|
|
79
|
-
address: e,
|
|
80
|
-
textToDisplay: (W === "" ? t : W) ?? null
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
C?.(e, t, e === D), T?.();
|
|
84
|
-
}, [
|
|
85
|
-
Q,
|
|
86
|
-
N,
|
|
87
|
-
W,
|
|
88
|
-
S,
|
|
89
|
-
T,
|
|
90
|
-
C,
|
|
91
|
-
D,
|
|
92
|
-
O
|
|
93
|
-
]), _e = r(async (e) => !1 !== await Promise.resolve(w?.(e)) && (N !== "document" || !U), [
|
|
94
|
-
w,
|
|
95
|
-
N,
|
|
96
|
-
U
|
|
97
|
-
]), ve = N === "document" ? H : N === "email" ? I : P;
|
|
98
|
-
return d(te, {
|
|
99
|
-
title: k(le ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
|
|
100
|
-
options: E,
|
|
101
|
-
onDone: T,
|
|
102
|
-
onOption: (e) => $(e),
|
|
103
|
-
onValidateOption: _e,
|
|
104
|
-
defaultOption: D,
|
|
105
|
-
cancelOption: O,
|
|
106
|
-
autoFocusSel: ".autoFocus",
|
|
107
|
-
suspendModal: he,
|
|
108
|
-
sx: {
|
|
109
|
-
width: "480px",
|
|
110
|
-
...se
|
|
111
|
-
},
|
|
112
|
-
...ce,
|
|
113
|
-
children: f(ne, {
|
|
114
|
-
ref: J,
|
|
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: q,
|
|
131
|
-
children: k("hyperlink.linkTo")
|
|
132
|
-
}), f(ie, {
|
|
133
|
-
labelId: q,
|
|
134
|
-
value: N,
|
|
135
|
-
label: k("hyperlink.linkTo"),
|
|
136
|
-
MenuProps: {
|
|
137
|
-
disableRestoreFocus: !0,
|
|
138
|
-
slotProps: { transition: { onExited: X } },
|
|
139
|
-
container: () => document.fullscreenElement
|
|
140
|
-
},
|
|
141
|
-
onChange: (e) => {
|
|
142
|
-
ue(e.target.value);
|
|
143
|
-
},
|
|
144
|
-
children: [
|
|
145
|
-
d(m, {
|
|
146
|
-
value: "url",
|
|
147
|
-
children: k("hyperlink.typeWebPage")
|
|
148
|
-
}),
|
|
149
|
-
d(m, {
|
|
150
|
-
value: "document",
|
|
151
|
-
children: k("hyperlink.typeInDocument")
|
|
152
|
-
}),
|
|
153
|
-
d(m, {
|
|
154
|
-
value: "email",
|
|
155
|
-
children: k("hyperlink.typeEmail")
|
|
156
|
-
})
|
|
157
|
-
]
|
|
158
|
-
})]
|
|
159
|
-
}),
|
|
160
|
-
N === "email" ? f(u, { children: [d(t, {
|
|
161
|
-
sx: h,
|
|
162
|
-
label: k("hyperlink.emailAddress"),
|
|
163
|
-
defaultInput: k("hyperlink.emailPlaceholder"),
|
|
164
|
-
value: I,
|
|
165
|
-
onChangeInput: (e) => L(e),
|
|
166
|
-
onFocus: (e) => {
|
|
167
|
-
G || e.target?.select?.(), K(!0);
|
|
168
|
-
}
|
|
169
|
-
}), d(t, {
|
|
170
|
-
label: k("hyperlink.subject"),
|
|
171
|
-
defaultInput: "",
|
|
172
|
-
value: R,
|
|
173
|
-
onChangeInput: (e) => z(e),
|
|
174
|
-
onFocus: () => K(!0)
|
|
175
|
-
})] }) : N === "document" ? d(e, {
|
|
176
|
-
sx: h,
|
|
177
|
-
grammar: "reference",
|
|
178
|
-
apiRef: Y,
|
|
179
|
-
classNameInput: "autoFocus",
|
|
180
|
-
label: k("hyperlink.reference"),
|
|
181
|
-
value: B,
|
|
182
|
-
allowMulti: !1,
|
|
183
|
-
home: me,
|
|
184
|
-
onChangeInput: (e) => V(e),
|
|
185
|
-
onChangeText: (e) => de(e),
|
|
186
|
-
onChangeError: (e) => fe(e),
|
|
187
|
-
onFocus: (e) => {
|
|
188
|
-
G || e.target?.select?.(), K(!0);
|
|
189
|
-
}
|
|
190
|
-
}) : d(t, {
|
|
191
|
-
sx: h,
|
|
192
|
-
label: k("hyperlink.address"),
|
|
193
|
-
defaultInput: k("hyperlink.addressPlaceholder"),
|
|
194
|
-
value: P,
|
|
195
|
-
onChangeInput: (e) => F(e),
|
|
196
|
-
onFocus: (e) => {
|
|
197
|
-
G || e.target?.select?.(), K(!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: k("hyperlink.displayText"),
|
|
209
|
-
placeholder: ve,
|
|
210
|
-
onFocus: () => {
|
|
211
|
-
K(!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: W,
|
|
226
|
-
onChange: ge,
|
|
227
|
-
onContextMenu: (e) => {
|
|
228
|
-
e.stopPropagation();
|
|
229
|
-
}
|
|
230
|
-
})
|
|
231
|
-
})
|
|
232
|
-
]
|
|
233
|
-
})
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
export { b as HyperlinkDialog, b 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.12
|
|
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 y, InputLabel as f, 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 = (e) => e?.isReadOnly() ? null : e, I = "mailto:", F = (e) => e.length >= 7 && e.substring(0, 7).toLowerCase() === I, O = (e) => {
|
|
15
|
-
if (!F(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
|
-
}, D = s((s) => {
|
|
30
|
-
const { initialValue: D = null, context: P, onInput: j, onOption: w, onValidateOption: M, onDone: R, options: W = T, defaultOption: $ = W?.[0], cancelOption: E = "Cancel", sx: A, ...H } = s, L = r(), S = i(() => null !== (D ?? v(P?.()?.getHyperlink())), []), V = i(() => {
|
|
31
|
-
let e = null, t = null;
|
|
32
|
-
D && ("string" == typeof D ? t = D : e = D);
|
|
33
|
-
const n = e ? null : v(P?.()?.getHyperlink());
|
|
34
|
-
return {
|
|
35
|
-
address: t ?? e?.address ?? n?.getAddress() ?? "",
|
|
36
|
-
textToDisplay: e?.textToDisplay ?? n?.getTextToDisplay() ?? ""
|
|
37
|
-
};
|
|
38
|
-
}, [D, P]), z = V.address.startsWith("#"), B = i(() => O(V.address), [V.address]), [N, U] = d(z ? "document" : B ? "email" : "url"), [q, G] = d(z || B ? "" : V.address), [J, K] = d(B?.address ?? ""), [Q, X] = d(B?.subject ?? ""), [Y, Z] = d(() => z && V.address.substring(1) || null), [_, ee] = d(z ? V.address.substring(1) : ""), [te, ne] = d(null), [le, re] = d(() => {
|
|
39
|
-
const e = P?.().getText({ useFormattingCategory: !0 }) ?? V.textToDisplay;
|
|
40
|
-
return e === V.address || B && e === B.address ? "" : e;
|
|
41
|
-
}), [se, oe] = d(!1), ae = a(), ie = u(null), ue = u(null), de = l(() => {
|
|
42
|
-
ie.current?.querySelector("input.autoFocus")?.focus(), ue.current?.engage();
|
|
43
|
-
}, []), pe = u(N);
|
|
44
|
-
o(() => {
|
|
45
|
-
pe.current !== N && (pe.current = N, de());
|
|
46
|
-
}, [N]);
|
|
47
|
-
const ce = i(() => {
|
|
48
|
-
const e = P?.()?.getWorksheet()?.getName();
|
|
49
|
-
return e ? { scope: e } : void 0;
|
|
50
|
-
}, [P]), me = "point" === n().getMode()?.mode, ge = l((e) => {
|
|
51
|
-
re(e.target.value);
|
|
52
|
-
}, []), he = l(() => {
|
|
53
|
-
if ("document" === N) {
|
|
54
|
-
if ("string" == typeof Y) {
|
|
55
|
-
const e = Y.trim();
|
|
56
|
-
return e ? `#${e}` : null;
|
|
57
|
-
}
|
|
58
|
-
const e = Y?.getReferences()?.getAddress();
|
|
59
|
-
return e ? `#${e}` : null;
|
|
60
|
-
}
|
|
61
|
-
return "email" === N ? ((e, t) => {
|
|
62
|
-
let n = e.trim();
|
|
63
|
-
if (F(n) && (n = n.substring(7)), !n) return null;
|
|
64
|
-
const l = t.trim();
|
|
65
|
-
return `${I}${n}${l ? `?subject=${encodeURIComponent(l)}` : ""}`;
|
|
66
|
-
})(J, Q) : "" === q ? null : q;
|
|
67
|
-
}, [
|
|
68
|
-
N,
|
|
69
|
-
Y,
|
|
70
|
-
q,
|
|
71
|
-
J,
|
|
72
|
-
Q
|
|
73
|
-
]), ye = l(async (e) => {
|
|
74
|
-
const t = e === E;
|
|
75
|
-
if (!t) {
|
|
76
|
-
const e = he();
|
|
77
|
-
let t = e;
|
|
78
|
-
e?.startsWith("#") ? t = e.substring(1) : "email" === N && e && (t = O(e)?.address ?? e), j?.({
|
|
79
|
-
address: e,
|
|
80
|
-
textToDisplay: ("" === le ? t : le) ?? null
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
w?.(e, t, e === $), R?.();
|
|
84
|
-
}, [
|
|
85
|
-
he,
|
|
86
|
-
N,
|
|
87
|
-
le,
|
|
88
|
-
j,
|
|
89
|
-
R,
|
|
90
|
-
w,
|
|
91
|
-
$,
|
|
92
|
-
E
|
|
93
|
-
]), fe = l(async (e) => !1 !== await Promise.resolve(M?.(e)) && ("document" !== N || !te), [
|
|
94
|
-
M,
|
|
95
|
-
N,
|
|
96
|
-
te
|
|
97
|
-
]), xe = "document" === N ? _ : "email" === N ? J : q;
|
|
98
|
-
return m(p, {
|
|
99
|
-
title: L(S ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
|
|
100
|
-
options: W,
|
|
101
|
-
onDone: R,
|
|
102
|
-
onOption: (e) => ye(e),
|
|
103
|
-
onValidateOption: fe,
|
|
104
|
-
defaultOption: $,
|
|
105
|
-
cancelOption: E,
|
|
106
|
-
autoFocusSel: ".autoFocus",
|
|
107
|
-
suspendModal: me,
|
|
108
|
-
sx: {
|
|
109
|
-
width: "480px",
|
|
110
|
-
...A
|
|
111
|
-
},
|
|
112
|
-
...H,
|
|
113
|
-
children: g(h, {
|
|
114
|
-
ref: ie,
|
|
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(y, {
|
|
124
|
-
sx: {
|
|
125
|
-
minWidth: 135,
|
|
126
|
-
width: "100%"
|
|
127
|
-
},
|
|
128
|
-
size: "small",
|
|
129
|
-
children: [m(f, {
|
|
130
|
-
id: ae,
|
|
131
|
-
children: L("hyperlink.linkTo")
|
|
132
|
-
}), g(b, {
|
|
133
|
-
labelId: ae,
|
|
134
|
-
value: N,
|
|
135
|
-
label: L("hyperlink.linkTo"),
|
|
136
|
-
MenuProps: {
|
|
137
|
-
disableRestoreFocus: !0,
|
|
138
|
-
slotProps: { transition: { onExited: de } },
|
|
139
|
-
container: () => document.fullscreenElement
|
|
140
|
-
},
|
|
141
|
-
onChange: (e) => {
|
|
142
|
-
U(e.target.value);
|
|
143
|
-
},
|
|
144
|
-
children: [
|
|
145
|
-
m(x, {
|
|
146
|
-
value: "url",
|
|
147
|
-
children: L("hyperlink.typeWebPage")
|
|
148
|
-
}),
|
|
149
|
-
m(x, {
|
|
150
|
-
value: "document",
|
|
151
|
-
children: L("hyperlink.typeInDocument")
|
|
152
|
-
}),
|
|
153
|
-
m(x, {
|
|
154
|
-
value: "email",
|
|
155
|
-
children: L("hyperlink.typeEmail")
|
|
156
|
-
})
|
|
157
|
-
]
|
|
158
|
-
})]
|
|
159
|
-
}),
|
|
160
|
-
"email" === N ? g(c, { children: [m(t, {
|
|
161
|
-
sx: C,
|
|
162
|
-
label: L("hyperlink.emailAddress"),
|
|
163
|
-
defaultInput: L("hyperlink.emailPlaceholder"),
|
|
164
|
-
value: J,
|
|
165
|
-
onChangeInput: (e) => K(e),
|
|
166
|
-
onFocus: (e) => {
|
|
167
|
-
se || e.target?.select?.(), oe(!0);
|
|
168
|
-
}
|
|
169
|
-
}), m(t, {
|
|
170
|
-
label: L("hyperlink.subject"),
|
|
171
|
-
defaultInput: "",
|
|
172
|
-
value: Q,
|
|
173
|
-
onChangeInput: (e) => X(e),
|
|
174
|
-
onFocus: () => oe(!0)
|
|
175
|
-
})] }) : "document" === N ? m(e, {
|
|
176
|
-
sx: C,
|
|
177
|
-
grammar: "reference",
|
|
178
|
-
apiRef: ue,
|
|
179
|
-
classNameInput: "autoFocus",
|
|
180
|
-
label: L("hyperlink.reference"),
|
|
181
|
-
value: Y,
|
|
182
|
-
allowMulti: !1,
|
|
183
|
-
home: ce,
|
|
184
|
-
onChangeInput: (e) => Z(e),
|
|
185
|
-
onChangeText: (e) => ee(e),
|
|
186
|
-
onChangeError: (e) => ne(e),
|
|
187
|
-
onFocus: (e) => {
|
|
188
|
-
se || e.target?.select?.(), oe(!0);
|
|
189
|
-
}
|
|
190
|
-
}) : m(t, {
|
|
191
|
-
sx: C,
|
|
192
|
-
label: L("hyperlink.address"),
|
|
193
|
-
defaultInput: L("hyperlink.addressPlaceholder"),
|
|
194
|
-
value: q,
|
|
195
|
-
onChangeInput: (e) => G(e),
|
|
196
|
-
onFocus: (e) => {
|
|
197
|
-
se || e.target?.select?.(), oe(!0);
|
|
198
|
-
}
|
|
199
|
-
}),
|
|
200
|
-
m(y, {
|
|
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: L("hyperlink.displayText"),
|
|
209
|
-
placeholder: xe,
|
|
210
|
-
onFocus: () => {
|
|
211
|
-
oe(!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: le,
|
|
226
|
-
onChange: ge,
|
|
227
|
-
onContextMenu: (e) => {
|
|
228
|
-
e.stopPropagation();
|
|
229
|
-
}
|
|
230
|
-
})
|
|
231
|
-
})
|
|
232
|
-
]
|
|
233
|
-
})
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
export { D as HyperlinkDialog, D as default };
|