@sheetxl/studio-mui 0.8.0-beta.1 → 0.8.0-beta.11
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/0BWO0bLZ8Vm_dKd2.mjs +582 -0
- package/browser/esm/BAbq4-I5f5oUiNaF.mjs +141 -0
- package/browser/esm/BED6h6YAwCf1HEQJ.mjs +161 -0
- package/browser/esm/{DMLXV4EKl1NCp_jk.mjs → BXhNFzyEGokTF-BL.mjs} +2 -2
- package/browser/esm/BYE9gCDWKyx6mnVs.mjs +381 -0
- package/browser/esm/BjvD_4t2KGsZP5V8.mjs +71 -0
- package/browser/esm/{zWTZ8BvT4hjgC2ua.mjs → BknfGJouygmnpFIU.mjs} +13 -12
- package/browser/esm/{DNDrQKMTzKzNMjl-.mjs → BlE_8o8tO2AgAlaj.mjs} +19 -17
- package/browser/esm/BokqKEpU6TFgfRs6.mjs +252 -0
- package/browser/esm/{BoLxSRdEWt-Yg2RI.mjs → Brsh5yscJ_4uKFXp.mjs} +130 -103
- package/browser/esm/Bujtz_Guj88d03vI.mjs +831 -0
- package/browser/esm/Buqcl7J75MJrhpVE.mjs +1379 -0
- package/browser/esm/BvhYPwX3GrRaO9CM.mjs +319 -0
- package/browser/esm/C0wlMAIn9iREPK6w.mjs +87 -0
- package/browser/esm/C8JU4KsMasmLvojI.mjs +103 -0
- package/browser/esm/C9pIZVACtl9unFOp.mjs +77 -0
- package/browser/esm/CBD4RiRKbbZtSXV-.mjs +318 -0
- package/browser/esm/CEtXsBzEjEKk9GOj.mjs +117 -0
- package/browser/esm/{BZBJG2tDdD3-VujP.mjs → COlZu93LRwuBvjE-.mjs} +195 -174
- package/browser/esm/{Cj2pgCNqBCGl4rTX.mjs → CTjqDD-swFMZzI-Y.mjs} +587 -556
- package/browser/esm/CWkOgdL7mOKiTR62.mjs +975 -0
- package/browser/esm/ChSVxkPTIjgcC8PL.mjs +412 -0
- package/browser/esm/{Cd6n1XUgF0VItpkH.mjs → ClBvNPeNCAhuVWrG.mjs} +7 -5
- package/browser/esm/CyLn6zOOp_biA3xU.mjs +335 -0
- package/browser/esm/CynTY0oNtyJnoaBq.mjs +14 -0
- package/browser/esm/D3rRUK4dIM5gUSmj.mjs +256 -0
- package/browser/esm/D9ISy7VkaRRFJl46.mjs +515 -0
- package/browser/esm/DDc6rDuU9JAo1DH_.mjs +225 -0
- package/browser/esm/DDczwkXhz_MHub4z.mjs +197 -0
- package/browser/esm/{3ydDykDMtDYbfVVn.mjs → DEv4pIEgYr5C7etm.mjs} +178 -129
- package/browser/esm/DG21x7RKDpge6zAE.mjs +31 -0
- package/browser/esm/DJOOed_OtB-XT7f3.mjs +437 -0
- package/browser/esm/{Bz5LiUe3SZ8g42Ia.mjs → DKtJxrpN0axtuQ0l.mjs} +1 -1
- package/browser/esm/DRSCS6aLiYmPjUz1.mjs +1543 -0
- package/browser/esm/{ChwS_ougBsogOEsP.mjs → DTpRkgsTm_zYnWfW.mjs} +46 -47
- package/browser/esm/DV6i9RQZfJiKtEaJ.mjs +2552 -0
- package/browser/esm/DdcZrjMLWVukWcU5.mjs +7473 -0
- package/browser/esm/Di3BUxA0SqFWWgeg.mjs +94 -0
- package/browser/esm/DnGaP5F7mLwCGUYG.mjs +408 -0
- package/browser/esm/DpD4fg2WcyiKX_2K.mjs +414 -0
- package/browser/esm/{BUGepznywvV0tUjW.mjs → Ds3XRkne7HxcXD8J.mjs} +2 -2
- package/browser/esm/DsoNMWDwHZP8UXQd.mjs +293 -0
- package/browser/esm/G0Inqm6Eqw47dMpa.mjs +212 -0
- package/browser/esm/HViD4Wfoi0mmqk9w.mjs +13 -0
- package/browser/esm/LZoYSQAYV2wksnDv.mjs +386 -0
- package/browser/esm/{rU8xNPVQtDSnujM-.mjs → QgaAIDUMmBQBsXP9.mjs} +3 -3
- package/browser/esm/YThnrg3PadGs7B4j.mjs +627 -0
- package/browser/esm/index.mjs +1208 -67
- package/browser/esm/ttjcNHcFn8O6hfnd.mjs +1288 -0
- package/browser/esm/w_JrR69vEpvoyeMy.mjs +68 -0
- package/browser/esm/{CVfuCNRpODUw04IH.mjs → xFqkfN8QMCxvsetB.mjs} +1 -1
- package/browser/esm/zqilJefihVd7At2T.mjs +517 -0
- package/licenses/dependencies.txt +96 -349
- package/node/esm/1bf4gn-2vld4BZ9u.mjs +294 -0
- package/node/esm/{BhqI3pQFkV8K_612.mjs → 3WghtBXAvCDwcVrq.mjs} +1 -1
- package/node/esm/4HmLH0bPVJCZLgik.mjs +116 -0
- package/node/esm/{DM7K7-284z-PczVz.mjs → B0bdb_6p7fQI_ivo.mjs} +28 -28
- package/node/esm/BIMkjQUwG4Ih-6Sh.mjs +142 -0
- package/node/esm/BNg4QQY0WAPLE0q7.mjs +141 -0
- package/node/esm/BPzcW4BejRqso338.mjs +72 -0
- package/node/esm/BR45ogAR-hY2bE60.mjs +318 -0
- package/node/esm/BlN7G0DVC24zauig.mjs +197 -0
- package/node/esm/Bph-sR3l6AYWeuxK.mjs +256 -0
- package/node/esm/CPq-MIdEnc-53JpF.mjs +319 -0
- package/node/esm/CSAnTp5rwId0DUb8.mjs +380 -0
- package/node/esm/CWcv7UVXF8IUB0PC.mjs +1379 -0
- package/node/esm/{BA7VzUQ2sKRLTZ5c.mjs → CYIoK22I6Yvv12_x.mjs} +20 -20
- package/node/esm/CZyA9uD4SkTvqp_G.mjs +1283 -0
- package/node/esm/{CHi3AuWEwEPOg9IZ.mjs → CjC6s3RUJQNCF7mP.mjs} +1 -1
- package/node/esm/{DXZrzWee8K5FPOW1.mjs → CuMePia6i_8yfJ6S.mjs} +9 -9
- package/node/esm/CvRbu8JPxFarsSR-.mjs +412 -0
- package/node/esm/CyafafEgfmjLqE5O.mjs +521 -0
- package/node/esm/D-xqQ5qOSd6WrzwJ.mjs +94 -0
- package/node/esm/DLqBHdFp6wvm6EGs.mjs +212 -0
- package/node/esm/{BwZcoHDBmLPIVOT5.mjs → DMXLxp3T0E0SRTQc.mjs} +69 -70
- package/node/esm/{CUMKTjYv6VTkcWYi.mjs → DWqvf4H5F2wMnZ0L.mjs} +32 -30
- package/node/esm/DatM6eEYPpAtIMy-.mjs +405 -0
- package/node/esm/Db3dbaYLKUO66T9s.mjs +1689 -0
- package/node/esm/DdEzhVqYTrGODXrz.mjs +68 -0
- package/node/esm/DeZJlLk8WJ3BLtLs.mjs +975 -0
- package/node/esm/DfCuL8AUxMFoEG2s.mjs +519 -0
- package/node/esm/Do-zCKziWhoG5eAv.mjs +77 -0
- package/node/esm/DpJ2gmZJioCyq8La.mjs +632 -0
- package/node/esm/{Qpuqm6xBr_da38Ht.mjs → XEDcegsv5AGKBfu2.mjs} +165 -137
- package/node/esm/index.mjs +10124 -6751
- package/node/esm/yCUxQuqVuC4DHKPx.mjs +385 -0
- package/node/esm/zITjZ7R4raDqhP-n.mjs +515 -0
- package/package.json +15 -18
- package/resources/locales/de/groups.cmd.json +29 -16
- package/resources/locales/de/studio.cmd.json +18 -1
- package/resources/locales/de/ui.msg.json +447 -40
- package/resources/locales/en/groups.cmd.json +39 -17
- package/resources/locales/en/studio.cmd.json +18 -1
- package/resources/locales/en/ui.msg.json +403 -40
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +21 -5
- package/types/src/anchorItems/AnchorItemsPanel.d.ts +14 -0
- package/types/src/anchorItems/AnchoredRangeField.d.ts +40 -0
- package/types/src/anchorItems/index.d.ts +1 -0
- 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 +6 -6
- package/types/src/border/BorderStylePopupButton.d.ts +3 -3
- package/types/src/border/BorderTemplateIcon.d.ts +29 -0
- package/types/src/border/index.d.ts +1 -0
- 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/ColorPanel.d.ts +8 -2
- package/types/src/color/ColorPopupButton.d.ts +2 -1
- package/types/src/command/NumberFormatQuickButtons.d.ts +32 -0
- package/types/src/command/PresetCellStylesCommandButton.d.ts +3 -3
- package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
- package/types/src/comments/CommentCard.d.ts +41 -0
- package/types/src/comments/CommentsPlugin.d.ts +6 -0
- package/types/src/comments/CommentsTaskPane.d.ts +23 -0
- package/types/src/comments/index.d.ts +4 -0
- package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +4 -4
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +2 -2
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
- package/types/src/conditions/BetweenOption.d.ts +6 -1
- package/types/src/conditions/CombinatorOption.d.ts +7 -0
- package/types/src/conditions/ConditionEditor.d.ts +61 -4
- package/types/src/conditions/ConditionUtils.d.ts +65 -6
- package/types/src/conditions/ExpressionOption.d.ts +12 -6
- package/types/src/conditions/MembershipOption.d.ts +67 -0
- package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
- package/types/src/conditions/ScalarOption.d.ts +25 -6
- package/types/src/conditions/SelectorSelect.d.ts +16 -7
- package/types/src/conditions/index.d.ts +1 -1
- package/types/src/conditions/useFormulaOption.d.ts +54 -0
- package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +7 -1
- package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -2
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +13 -2
- package/types/src/dataValidation/DataValidationIcon.d.ts +22 -0
- package/types/src/dataValidation/DataValidationTitle.d.ts +13 -0
- package/types/src/dialog/FillSeriesDialog.d.ts +16 -0
- package/types/src/dialog/OutlineSettingsDialog.d.ts +12 -0
- package/types/src/dialog/TableNewDialog.d.ts +1 -4
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
- package/types/src/dialog/_ShortcutSearch.d.ts +26 -0
- package/types/src/dialog/index.d.ts +0 -2
- package/types/src/externalLink/ExternalLinkCardBody.d.ts +9 -0
- package/types/src/externalLink/ExternalLinkChip.d.ts +18 -0
- package/types/src/externalLink/ExternalLinkLocation.d.ts +18 -0
- package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +18 -0
- package/types/src/externalLink/ExternalLinksPanel.d.ts +11 -0
- package/types/src/externalLink/ExternalLinksPlugin.d.ts +5 -0
- package/types/src/externalLink/ExternalLinksTaskPane.d.ts +19 -0
- package/types/src/externalLink/index.d.ts +8 -0
- package/types/src/fill/GradientEditor.d.ts +41 -0
- package/types/src/fill/GradientStopsBar.d.ts +43 -0
- package/types/src/fill/PatternPopupButton.d.ts +26 -0
- package/types/src/fill/PatternSwatch.d.ts +53 -0
- package/types/src/fill/index.d.ts +5 -0
- package/types/src/filter/ColumnMenu.d.ts +31 -1
- package/types/src/filter/index.d.ts +0 -1
- package/types/src/form/FormulaField.d.ts +35 -6
- package/types/src/form/InputField.d.ts +35 -5
- package/types/src/format/AlignmentPanel.d.ts +13 -0
- package/types/src/format/BorderPanel.d.ts +22 -0
- package/types/src/format/BorderPreview.d.ts +101 -0
- package/types/src/format/FillPanel.d.ts +65 -0
- package/types/src/format/FontPanel.d.ts +12 -0
- package/types/src/format/FormatCellPreview.d.ts +35 -0
- package/types/src/format/FormatPanelParts.d.ts +85 -0
- package/types/src/format/FormatPlugin.d.ts +11 -0
- package/types/src/format/FormatTaskPane.d.ts +39 -0
- package/types/src/format/LinePanel.d.ts +53 -0
- package/types/src/format/LinePreviews.d.ts +71 -0
- package/types/src/format/NumberFormatOption.d.ts +43 -0
- package/types/src/{numberFormat → format}/NumberFormatPanel.d.ts +20 -0
- package/types/src/format/index.d.ts +14 -0
- package/types/src/format/useFormatSelection.d.ts +93 -0
- package/types/src/formulaBar/IFormulaBar.d.ts +11 -0
- package/types/src/formulaBar/MobileFormulaBar.d.ts +33 -0
- package/types/src/formulaBar/MobileInputToolbar.d.ts +43 -0
- package/types/src/formulaBar/index.d.ts +3 -0
- package/types/src/formulaBar/useFormulaBarSession.d.ts +68 -0
- package/types/src/index.d.ts +19 -4
- package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
- package/types/src/itemsPanel/EditorPanel.d.ts +4 -1
- package/types/src/itemsPanel/ItemCard.d.ts +60 -8
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +68 -19
- package/types/src/itemsPanel/ItemsPanel.d.ts +9 -0
- package/types/src/itemsPanel/ItemsSearchField.d.ts +17 -0
- package/types/src/itemsPanel/index.d.ts +2 -0
- package/types/src/named/NamedDetailsPanel.d.ts +9 -2
- package/types/src/named/NamedDetailsTaskPane.d.ts +3 -2
- package/types/src/named/NamedEditorPanel.d.ts +1 -1
- package/types/src/named/NamedExpressionField.d.ts +32 -0
- package/types/src/named/NamedKindChip.d.ts +38 -0
- package/types/src/picture/PicturePlugin.d.ts +6 -0
- package/types/src/picture/index.d.ts +2 -0
- package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +6 -0
- package/types/src/protectedRange/ProtectedRangeDraft.d.ts +22 -0
- package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +0 -14
- package/types/src/protectedRange/index.d.ts +2 -1
- package/types/src/protection/ManageProtectionTaskPane.d.ts +29 -0
- package/types/src/protection/PasswordDialog.d.ts +32 -0
- package/types/src/protection/PasswordField.d.ts +35 -0
- package/types/src/protection/ProtectedCellsPanel.d.ts +20 -0
- package/types/src/protection/ProtectionPlugin.d.ts +11 -0
- package/types/src/protection/WorkbookProtectionPanel.d.ts +34 -15
- package/types/src/protection/WorkbookProtectionTab.d.ts +22 -0
- package/types/src/protection/WorksheetProtectionPanel.d.ts +35 -0
- package/types/src/protection/index.d.ts +7 -1
- package/types/src/shape/InsertShapeCommandButton.d.ts +20 -0
- package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
- package/types/src/shape/ShapePlugin.d.ts +6 -0
- package/types/src/shape/index.d.ts +3 -0
- package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +18 -0
- package/types/src/slicer/SlicerPlugin.d.ts +6 -0
- package/types/src/slicer/index.d.ts +3 -0
- package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
- package/types/src/studio/CommandsWrapper.d.ts +5 -0
- package/types/src/studio/EagerStudio.d.ts +14 -1
- package/types/src/studio/StudioCommandProvider.d.ts +10 -0
- package/types/src/studio/StudioCommands.d.ts +40 -4
- package/types/src/studio/StudioProps.d.ts +64 -2
- package/types/src/studio/StudioSplitPane.d.ts +1 -1
- package/types/src/studio/formulaBarPlacement.d.ts +35 -0
- package/types/src/studio/splitStudioProps.d.ts +7 -0
- package/types/src/studio/useStudioApp.d.ts +31 -18
- package/types/src/template/TemplateCommands.d.ts +29 -0
- package/types/src/template/TemplateDialog.d.ts +19 -0
- package/types/src/template/TemplatePanel.d.ts +50 -0
- package/types/src/template/TemplateSearchField.d.ts +29 -0
- package/types/src/template/WelcomeDialog.d.ts +29 -0
- package/types/src/template/categoryColor.d.ts +8 -0
- package/types/src/template/index.d.ts +3 -0
- package/types/src/template/useTemplateCatalog.d.ts +71 -0
- package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
- package/types/src/workbook/DefaultRenderers.d.ts +16 -2
- package/types/src/workbook/FillMenu.d.ts +21 -0
- package/types/src/workbook/OutlineButtons.d.ts +11 -0
- package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
- package/types/src/workbook/WorkbookElement.d.ts +1 -1
- package/types/src/workbook/index.d.ts +1 -0
- package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
- package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
- package/browser/cjs/B_D3JKseVvpRyX-E.cjs +0 -1
- package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +0 -2
- package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +0 -2
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/Bte6P3MhSjajJmmY.cjs +0 -7
- package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
- package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +0 -1
- package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
- package/browser/cjs/CYxc8vnRi8dNpDPk.cjs +0 -1
- package/browser/cjs/CZm1jVZaHQ246prW.cjs +0 -1
- package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
- package/browser/cjs/Cm1APq2MraYNNhyI.cjs +0 -1
- package/browser/cjs/DO8V31Z1ewgMA1di.cjs +0 -5
- package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +0 -1
- package/browser/cjs/IASAYG6qgv7lJY7y.cjs +0 -1
- package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
- package/browser/cjs/UnMhi28mbvLiOXQe.cjs +0 -1
- package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +0 -1
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
- package/browser/cjs/index.cjs +0 -2
- package/browser/cjs/w2GjebPlOFv3pCbm.cjs +0 -1
- package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +0 -11
- package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +0 -1
- package/browser/esm/BuY3uV47Bwbqpasq.mjs +0 -219
- package/browser/esm/CAs1MWvJTcRfJy26.mjs +0 -217
- package/browser/esm/CBU3LgLYmqtQjJbu.mjs +0 -1150
- package/browser/esm/CDU0rqpLNVtMLI-f.mjs +0 -52
- package/browser/esm/CVBub6pgTsJzCc5m.mjs +0 -5429
- package/browser/esm/C_XvSsQ9BVdHffCO.mjs +0 -47
- package/browser/esm/FT29q8yNwsEpVZjt.mjs +0 -9257
- package/browser/esm/Hb1rlHT4tE5hLcjM.mjs +0 -82
- package/browser/esm/UJOXCQv6KrG1gY3l.mjs +0 -105
- package/browser/esm/s46El7mT6oKLSnYB.mjs +0 -411
- package/node/esm/9FY82fj1R1c-AczW.mjs +0 -47
- package/node/esm/C-boHCnJditFzng3.mjs +0 -106
- package/node/esm/DxXM8qHi0Oz4Zovl.mjs +0 -4575
- package/node/esm/sQt2wWGTRLzqeJdG.mjs +0 -82
- package/node/esm/yCHAZKxJR7qY_ySy.mjs +0 -470
- package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +0 -32
- package/types/src/conditions/DateTimeOption.d.ts +0 -43
- package/types/src/conditions/InSetOption.d.ts +0 -37
- package/types/src/dialog/CommentsDialog.d.ts +0 -11
- package/types/src/dialog/NumberFormatDialog.d.ts +0 -12
- package/types/src/filter/FilterList.d.ts +0 -28
- package/types/src/numberFormat/NumberFormatTaskPane.d.ts +0 -12
- package/types/src/numberFormat/index.d.ts +0 -8
- package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +0 -3
- package/types/src/protectedRange/ProtectedRangePlugin.d.ts +0 -2
- package/types/src/protection/WorkbookProtectionDialog.d.ts +0 -23
|
@@ -0,0 +1,294 @@
|
|
|
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 { AutoFill as e, IRange as t } from "@sheetxl/sdk";
|
|
8
|
+
import { AUTO_FILL_PRESET_LABELS as i } from "@sheetxl/react";
|
|
9
|
+
import { useCallbackRef as l, useTranslator as r } from "@sheetxl/utils-react";
|
|
10
|
+
import { memo as s, useMemo as n, useRef as o, useState as a } from "react";
|
|
11
|
+
import { OptionsDialog as d } from "@sheetxl/utils-mui";
|
|
12
|
+
import { jsx as c, jsxs as p } from "react/jsx-runtime";
|
|
13
|
+
import { Box as u, Checkbox as f, Divider as h, FormControl as x, FormControlLabel as m, FormLabel as g, InputLabel as S, MenuItem as b, Radio as v, RadioGroup as w, Select as D, TextField as I, Typography as y } from "@mui/material";
|
|
14
|
+
import { messageKey as N } from "@sheetxl/utils";
|
|
15
|
+
var P = "14px", z = {
|
|
16
|
+
flex: "1 1 auto",
|
|
17
|
+
minWidth: (e) => e.spacing(1),
|
|
18
|
+
height: "1px",
|
|
19
|
+
backgroundColor: (e) => e.palette.divider
|
|
20
|
+
}, C = Object.freeze([
|
|
21
|
+
Object.freeze([e.Presets.Copy.id, e.Presets.Series.id]),
|
|
22
|
+
Object.freeze([e.Presets.Linear.id, e.Presets.Growth.id]),
|
|
23
|
+
Object.freeze([
|
|
24
|
+
e.Presets.DateYears.id,
|
|
25
|
+
e.Presets.DateMonthEnd.id,
|
|
26
|
+
e.Presets.DateMonths.id,
|
|
27
|
+
e.Presets.DateWeekdays.id,
|
|
28
|
+
e.Presets.DateDays.id
|
|
29
|
+
])
|
|
30
|
+
]), V = Object.freeze([{
|
|
31
|
+
direction: t.Direction.Down,
|
|
32
|
+
label: N("fillSeries.columns")
|
|
33
|
+
}, {
|
|
34
|
+
direction: t.Direction.Right,
|
|
35
|
+
label: N("fillSeries.rows")
|
|
36
|
+
}]), W = s((s) => {
|
|
37
|
+
const { initialValue: W, context: k, onInput: j, onDone: M, sx: O, ...T } = s, F = r(), L = o(k?.()).current, [$, H] = a(() => ({
|
|
38
|
+
presetId: W?.presetId ?? e.Presets.Copy.id,
|
|
39
|
+
direction: W?.direction ?? t.Direction.Down,
|
|
40
|
+
trend: W?.trend,
|
|
41
|
+
stepValue: W?.stepValue,
|
|
42
|
+
stopValue: W?.stopValue
|
|
43
|
+
})), R = $.direction === t.Direction.Down || $.direction === t.Direction.Up, A = n(() => {
|
|
44
|
+
const e = /* @__PURE__ */ new Map();
|
|
45
|
+
for (let t = 0; t < V.length; t++) {
|
|
46
|
+
const i = V[t].direction;
|
|
47
|
+
e.set(i, new Set(L?.offered(i) ?? []));
|
|
48
|
+
}
|
|
49
|
+
return e;
|
|
50
|
+
}, [L]), E = A.get($.direction) ?? /* @__PURE__ */ new Set(), G = E.has($.presetId), U = e.getPreset($.presetId)?.filler, Y = !0 === $.trend && !0 === U?.supportsTrend, q = !0 === U?.supportsStep && !Y, B = !0 === U?.supportsStop && !Y, J = l((t) => {
|
|
51
|
+
H((i) => {
|
|
52
|
+
const l = {
|
|
53
|
+
...i,
|
|
54
|
+
...t
|
|
55
|
+
};
|
|
56
|
+
return !0 !== e.getPreset(l.presetId)?.filler.supportsTrend && (l.trend = void 0), l;
|
|
57
|
+
});
|
|
58
|
+
}, []), K = l((e, t) => {
|
|
59
|
+
const i = t, l = A.get(i), r = l?.has($.presetId) ? $.presetId : C.flat().find((e) => !0 === l?.has(e)) ?? $.presetId;
|
|
60
|
+
J({
|
|
61
|
+
direction: i,
|
|
62
|
+
presetId: r
|
|
63
|
+
});
|
|
64
|
+
}, [
|
|
65
|
+
A,
|
|
66
|
+
$.presetId,
|
|
67
|
+
J
|
|
68
|
+
]), Q = l((e) => {
|
|
69
|
+
J({ presetId: e.target.value });
|
|
70
|
+
}, [J]), X = n(() => L?.resolve($.direction) ?? null, [L, $.direction]), Z = n(() => {
|
|
71
|
+
if (!L || !G || !X || X.size <= 0) return null;
|
|
72
|
+
let e = null;
|
|
73
|
+
try {
|
|
74
|
+
e = L.preview($);
|
|
75
|
+
} catch (e) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
if (!e) return null;
|
|
79
|
+
const t = e.getCoords(), i = (i) => {
|
|
80
|
+
const l = R ? {
|
|
81
|
+
rowIndex: t.rowStart + i,
|
|
82
|
+
colIndex: t.colStart
|
|
83
|
+
} : {
|
|
84
|
+
rowIndex: t.rowStart,
|
|
85
|
+
colIndex: t.colStart + i
|
|
86
|
+
};
|
|
87
|
+
return e.getCell(l).getText({ hideStringPrefix: !0 }) || "–";
|
|
88
|
+
}, l = X.size, r = i(l - 1);
|
|
89
|
+
if (1 === l) return {
|
|
90
|
+
leading: "",
|
|
91
|
+
tail: r
|
|
92
|
+
};
|
|
93
|
+
const s = 64 - r.length - 3, n = [];
|
|
94
|
+
let o = 0;
|
|
95
|
+
for (let e = 0; e < l - 1; e++) {
|
|
96
|
+
const t = i(e), l = t.length + (0 === e ? 0 : 2);
|
|
97
|
+
if (o + l > s) break;
|
|
98
|
+
n.push(t), o += l;
|
|
99
|
+
}
|
|
100
|
+
const a = n.length === l - 1;
|
|
101
|
+
return {
|
|
102
|
+
leading: n.join(", "),
|
|
103
|
+
tail: `${0 === n.length ? "" : a ? ", " : " … "}${r}`
|
|
104
|
+
};
|
|
105
|
+
}, [
|
|
106
|
+
L,
|
|
107
|
+
G,
|
|
108
|
+
$,
|
|
109
|
+
R,
|
|
110
|
+
X
|
|
111
|
+
]), _ = l((e) => {
|
|
112
|
+
const t = "Fill" === e ? $ : void 0;
|
|
113
|
+
j?.(t), M?.(t);
|
|
114
|
+
}, [
|
|
115
|
+
$,
|
|
116
|
+
j,
|
|
117
|
+
M
|
|
118
|
+
]), ee = n(() => {
|
|
119
|
+
const e = [];
|
|
120
|
+
for (let t = 0; t < C.length; t++) {
|
|
121
|
+
t > 0 && e.push(c(h, { component: "li" }, `divider:${t}`));
|
|
122
|
+
const l = C[t];
|
|
123
|
+
for (let t = 0; t < l.length; t++) {
|
|
124
|
+
const r = l[t];
|
|
125
|
+
e.push(c(b, {
|
|
126
|
+
value: r,
|
|
127
|
+
disabled: !E.has(r),
|
|
128
|
+
children: F(i[r])
|
|
129
|
+
}, r));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return e;
|
|
133
|
+
}, [E, F]), te = (e, t, i, l, r) => c(I, {
|
|
134
|
+
size: "small",
|
|
135
|
+
fullWidth: !0,
|
|
136
|
+
className: e,
|
|
137
|
+
label: F(t),
|
|
138
|
+
placeholder: F(i),
|
|
139
|
+
value: l ?? "",
|
|
140
|
+
onChange: (e) => {
|
|
141
|
+
return r("" === (t = e.target.value).trim() || isNaN(Number(t)) ? void 0 : Number(t));
|
|
142
|
+
var t;
|
|
143
|
+
},
|
|
144
|
+
slotProps: {
|
|
145
|
+
inputLabel: { shrink: !0 },
|
|
146
|
+
htmlInput: {
|
|
147
|
+
spellCheck: !1,
|
|
148
|
+
autoComplete: "off",
|
|
149
|
+
inputMode: "decimal"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
onContextMenu: (e) => {
|
|
153
|
+
e.stopPropagation();
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
return c(d, {
|
|
157
|
+
title: F("fillSeries.title"),
|
|
158
|
+
options: [{
|
|
159
|
+
id: "Fill",
|
|
160
|
+
label: () => F("fillSeries.action"),
|
|
161
|
+
disabled: () => !G
|
|
162
|
+
}, "Cancel"],
|
|
163
|
+
onDone: _,
|
|
164
|
+
sx: {
|
|
165
|
+
width: "440px",
|
|
166
|
+
...O
|
|
167
|
+
},
|
|
168
|
+
...T,
|
|
169
|
+
children: p(u, {
|
|
170
|
+
sx: {
|
|
171
|
+
display: "flex",
|
|
172
|
+
flexDirection: "column",
|
|
173
|
+
gap: (e) => e.spacing(2)
|
|
174
|
+
},
|
|
175
|
+
children: [
|
|
176
|
+
p(x, { children: [c(g, {
|
|
177
|
+
sx: { fontSize: "0.75rem" },
|
|
178
|
+
children: F("fillSeries.seriesIn")
|
|
179
|
+
}), c(w, {
|
|
180
|
+
row: !0,
|
|
181
|
+
className: "sxl-fillSeries-direction",
|
|
182
|
+
value: $.direction,
|
|
183
|
+
onChange: K,
|
|
184
|
+
children: V.map((e) => c(m, {
|
|
185
|
+
value: e.direction,
|
|
186
|
+
control: c(v, { size: "small" }),
|
|
187
|
+
label: F(e.label),
|
|
188
|
+
disabled: 0 === A.get(e.direction)?.size
|
|
189
|
+
}, e.direction))
|
|
190
|
+
})] }),
|
|
191
|
+
p(x, {
|
|
192
|
+
size: "small",
|
|
193
|
+
fullWidth: !0,
|
|
194
|
+
className: "sxl-fillSeries-type",
|
|
195
|
+
children: [c(S, {
|
|
196
|
+
id: "sxl-fillSeries-type-label",
|
|
197
|
+
children: F("fillSeries.type")
|
|
198
|
+
}), c(D, {
|
|
199
|
+
labelId: "sxl-fillSeries-type-label",
|
|
200
|
+
value: G ? $.presetId : "",
|
|
201
|
+
label: F("fillSeries.type"),
|
|
202
|
+
onChange: Q,
|
|
203
|
+
className: "autoFocus",
|
|
204
|
+
children: ee
|
|
205
|
+
})]
|
|
206
|
+
}),
|
|
207
|
+
!0 === U?.supportsTrend && c(m, {
|
|
208
|
+
control: c(f, {
|
|
209
|
+
size: "small",
|
|
210
|
+
checked: Y,
|
|
211
|
+
onChange: (e) => J({ trend: !!e.target.checked || void 0 })
|
|
212
|
+
}),
|
|
213
|
+
label: F("fillSeries.trend"),
|
|
214
|
+
className: "sxl-fillSeries-trend",
|
|
215
|
+
sx: { marginTop: (e) => e.spacing(-1) }
|
|
216
|
+
}),
|
|
217
|
+
(q || B) && p(u, {
|
|
218
|
+
sx: {
|
|
219
|
+
display: "flex",
|
|
220
|
+
flexDirection: "row",
|
|
221
|
+
gap: (e) => e.spacing(1.5)
|
|
222
|
+
},
|
|
223
|
+
children: [q && te("sxl-fillSeries-step", N("fillSeries.stepValue"), N("fillSeries.stepAuto"), $.stepValue, (e) => J({ stepValue: e })), B && te("sxl-fillSeries-stop", N("fillSeries.stopValue"), N("fillSeries.stopNone"), $.stopValue, (e) => J({ stopValue: e }))]
|
|
224
|
+
}),
|
|
225
|
+
p(u, {
|
|
226
|
+
sx: {
|
|
227
|
+
display: "flex",
|
|
228
|
+
flexDirection: "column",
|
|
229
|
+
minHeight: "2.75em",
|
|
230
|
+
paddingLeft: P,
|
|
231
|
+
paddingRight: P
|
|
232
|
+
},
|
|
233
|
+
children: [p(u, {
|
|
234
|
+
className: "sxl-fillSeries-ranges",
|
|
235
|
+
sx: {
|
|
236
|
+
display: "flex",
|
|
237
|
+
flexDirection: "row",
|
|
238
|
+
alignItems: "center",
|
|
239
|
+
gap: (e) => e.spacing(.75),
|
|
240
|
+
color: (e) => e.palette.text.secondary
|
|
241
|
+
},
|
|
242
|
+
children: [
|
|
243
|
+
c(y, {
|
|
244
|
+
variant: "caption",
|
|
245
|
+
noWrap: !0,
|
|
246
|
+
children: X?.template ?? ""
|
|
247
|
+
}),
|
|
248
|
+
c(u, { sx: z }),
|
|
249
|
+
c(y, {
|
|
250
|
+
variant: "caption",
|
|
251
|
+
sx: { lineHeight: 1 },
|
|
252
|
+
children: "→"
|
|
253
|
+
}),
|
|
254
|
+
c(u, { sx: z }),
|
|
255
|
+
c(y, {
|
|
256
|
+
variant: "caption",
|
|
257
|
+
noWrap: !0,
|
|
258
|
+
children: X?.destination ?? ""
|
|
259
|
+
})
|
|
260
|
+
]
|
|
261
|
+
}), Z ? p(u, {
|
|
262
|
+
className: "sxl-fillSeries-preview",
|
|
263
|
+
sx: {
|
|
264
|
+
display: "flex",
|
|
265
|
+
flexDirection: "row",
|
|
266
|
+
fontVariantNumeric: "tabular-nums"
|
|
267
|
+
},
|
|
268
|
+
children: [c(y, {
|
|
269
|
+
variant: "body2",
|
|
270
|
+
component: "div",
|
|
271
|
+
noWrap: !0,
|
|
272
|
+
sx: { minWidth: 0 },
|
|
273
|
+
children: Z.leading
|
|
274
|
+
}), c(y, {
|
|
275
|
+
variant: "body2",
|
|
276
|
+
component: "div",
|
|
277
|
+
noWrap: !0,
|
|
278
|
+
sx: { flex: "0 0 auto" },
|
|
279
|
+
children: Z.tail
|
|
280
|
+
})]
|
|
281
|
+
}) : c(y, {
|
|
282
|
+
variant: "body2",
|
|
283
|
+
component: "div",
|
|
284
|
+
noWrap: !0,
|
|
285
|
+
className: "sxl-fillSeries-previewNone",
|
|
286
|
+
sx: { color: (e) => e.palette.text.disabled },
|
|
287
|
+
children: F("fillSeries.previewNone")
|
|
288
|
+
})]
|
|
289
|
+
})
|
|
290
|
+
]
|
|
291
|
+
})
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
export { W as FillSeriesDialog, W as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
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.11
|
|
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.
|
|
@@ -0,0 +1,116 @@
|
|
|
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 a } from "@sheetxl/react";
|
|
9
|
+
import { useCallbackRef as n, useTranslator as o } from "@sheetxl/utils-react";
|
|
10
|
+
import { memo as r, useCallback as l, useMemo as i, useState as s } from "react";
|
|
11
|
+
import { OptionsDialog as c } from "@sheetxl/utils-mui";
|
|
12
|
+
import { jsx as m, jsxs as p } from "react/jsx-runtime";
|
|
13
|
+
import { Box as u, Checkbox as d, FormControlLabel as g } from "@mui/material";
|
|
14
|
+
var f = ["Ok", "Cancel"], h = "table.defaultName", x = r((r) => {
|
|
15
|
+
const { onInput: x, onOption: N, onValidateOption: O, onDone: b, options: v = f, defaultOption: w = v?.[0], cancelOption: C = "Cancel", sx: F, initialValue: V, context: y, ...I } = r, T = o(), [k, D] = s(!1), [H, M] = s(() => V?.hasHeader ?? !1), [j, B] = s(() => V?.ranges ?? null), S = y?.()?.getNames, [G, P] = s(() => {
|
|
16
|
+
if (V?.name) return V.name;
|
|
17
|
+
const e = T(h, { n: 1 }), t = e === h ? "Table1" : e;
|
|
18
|
+
try {
|
|
19
|
+
return S?.().findValidName(t) ?? t;
|
|
20
|
+
} catch {
|
|
21
|
+
return t;
|
|
22
|
+
}
|
|
23
|
+
}), R = i(() => {
|
|
24
|
+
const e = V?.ranges?.getWorksheet?.()?.getName();
|
|
25
|
+
return e ? { scope: e } : void 0;
|
|
26
|
+
}, [V]), W = "point" === a().getMode()?.mode, q = n((e) => {
|
|
27
|
+
const t = j ? {
|
|
28
|
+
...V,
|
|
29
|
+
name: G,
|
|
30
|
+
hasHeader: H,
|
|
31
|
+
ranges: j
|
|
32
|
+
} : null, a = e === C || !e;
|
|
33
|
+
x?.(!a && t ? t : void 0), N?.(e ?? C, a, e === w), b?.({
|
|
34
|
+
option: e,
|
|
35
|
+
tableOptions: t
|
|
36
|
+
});
|
|
37
|
+
}, [
|
|
38
|
+
b,
|
|
39
|
+
N,
|
|
40
|
+
w,
|
|
41
|
+
C,
|
|
42
|
+
G,
|
|
43
|
+
H,
|
|
44
|
+
j,
|
|
45
|
+
V
|
|
46
|
+
]), z = n((e) => {
|
|
47
|
+
S?.().validateName(e);
|
|
48
|
+
}, [S]), A = l(async (e, t) => {
|
|
49
|
+
try {
|
|
50
|
+
z(G);
|
|
51
|
+
} catch {
|
|
52
|
+
return !1;
|
|
53
|
+
}
|
|
54
|
+
return !0;
|
|
55
|
+
}, [z, G]), E = (e) => {
|
|
56
|
+
k || e.target?.select(), D(!0);
|
|
57
|
+
};
|
|
58
|
+
return m(c, {
|
|
59
|
+
title: T("tableNew.title"),
|
|
60
|
+
options: v,
|
|
61
|
+
onDone: q,
|
|
62
|
+
onValidateOption: A,
|
|
63
|
+
defaultOption: w,
|
|
64
|
+
cancelOption: C,
|
|
65
|
+
autoFocusSel: ".autoFocus",
|
|
66
|
+
suspendModal: W,
|
|
67
|
+
sx: {
|
|
68
|
+
width: "360px",
|
|
69
|
+
...F
|
|
70
|
+
},
|
|
71
|
+
...I,
|
|
72
|
+
children: p(u, {
|
|
73
|
+
sx: {
|
|
74
|
+
paddingTop: (e) => e.spacing(1),
|
|
75
|
+
paddingBottom: (e) => e.spacing(0),
|
|
76
|
+
rowGap: (e) => e.spacing(1),
|
|
77
|
+
display: "flex",
|
|
78
|
+
flexDirection: "column"
|
|
79
|
+
},
|
|
80
|
+
children: [
|
|
81
|
+
m(t, {
|
|
82
|
+
formName: "name",
|
|
83
|
+
value: G,
|
|
84
|
+
onChangeInput: P,
|
|
85
|
+
onValidate: z,
|
|
86
|
+
onFocus: E
|
|
87
|
+
}),
|
|
88
|
+
m(e, {
|
|
89
|
+
grammar: "reference",
|
|
90
|
+
classNameInput: "autoFocus",
|
|
91
|
+
formName: "range",
|
|
92
|
+
value: j,
|
|
93
|
+
allowMulti: !1,
|
|
94
|
+
allowCrossSheet: !1,
|
|
95
|
+
home: R,
|
|
96
|
+
onChangeInput: (e) => B(e?.getReferences() ?? null),
|
|
97
|
+
onFocus: E
|
|
98
|
+
}),
|
|
99
|
+
m(g, {
|
|
100
|
+
sx: { marginTop: (e) => e.spacing(-1) },
|
|
101
|
+
control: m(d, {
|
|
102
|
+
checked: H,
|
|
103
|
+
onChange: () => M(!H),
|
|
104
|
+
sx: {
|
|
105
|
+
paddingTop: .5,
|
|
106
|
+
paddingBottom: .5
|
|
107
|
+
}
|
|
108
|
+
}),
|
|
109
|
+
label: T("tableNew.hasHeaders"),
|
|
110
|
+
labelPlacement: "end"
|
|
111
|
+
})
|
|
112
|
+
]
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
export { x as TableNewDialog, x as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
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.11
|
|
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.
|
|
@@ -27,7 +27,7 @@ var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto
|
|
|
27
27
|
subject: l
|
|
28
28
|
};
|
|
29
29
|
}, O = s((s) => {
|
|
30
|
-
const { initialValue: O = null, context: D, onInput: P, onOption: j, onValidateOption: w, onDone: M, options:
|
|
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
31
|
let e = null, t = null;
|
|
32
32
|
O && ("string" == typeof O ? t = O : e = O);
|
|
33
33
|
const n = e ? null : D?.()?.getHyperlink();
|
|
@@ -35,9 +35,9 @@ var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto
|
|
|
35
35
|
address: t ?? e?.address ?? n?.getAddress() ?? "",
|
|
36
36
|
textToDisplay: e?.textToDisplay ?? n?.getTextToDisplay() ?? ""
|
|
37
37
|
};
|
|
38
|
-
}, [O, D]), V =
|
|
39
|
-
const e = D?.().getText({ useFormattingCategory: !0 }) ??
|
|
40
|
-
return e ===
|
|
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
41
|
}), [re, se] = d(!1), oe = a(), ae = u(null), ie = u(null), ue = l(() => {
|
|
42
42
|
ae.current?.querySelector("input.autoFocus")?.focus(), ie.current?.engage();
|
|
43
43
|
}, []), de = u(B);
|
|
@@ -45,7 +45,7 @@ var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto
|
|
|
45
45
|
de.current !== B && (de.current = B, ue());
|
|
46
46
|
}, [B]);
|
|
47
47
|
const pe = i(() => {
|
|
48
|
-
const e = D?.()?.
|
|
48
|
+
const e = D?.()?.getWorksheet()?.getName();
|
|
49
49
|
return e ? { scope: e } : void 0;
|
|
50
50
|
}, [D]), ce = "point" === n().getMode()?.mode, me = l((e) => {
|
|
51
51
|
le(e.target.value);
|
|
@@ -71,7 +71,7 @@ var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto
|
|
|
71
71
|
G,
|
|
72
72
|
K
|
|
73
73
|
]), he = l(async (e) => {
|
|
74
|
-
const t = e ===
|
|
74
|
+
const t = e === E;
|
|
75
75
|
if (!t) {
|
|
76
76
|
const e = ge();
|
|
77
77
|
let t = e;
|
|
@@ -80,7 +80,7 @@ var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto
|
|
|
80
80
|
textToDisplay: ("" === ne ? t : ne) ?? null
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
j?.(e, t, e ===
|
|
83
|
+
j?.(e, t, e === $), M?.();
|
|
84
84
|
}, [
|
|
85
85
|
ge,
|
|
86
86
|
B,
|
|
@@ -88,28 +88,28 @@ var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto
|
|
|
88
88
|
P,
|
|
89
89
|
M,
|
|
90
90
|
j,
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
$,
|
|
92
|
+
E
|
|
93
93
|
]), fe = l(async (e) => !1 !== await Promise.resolve(w?.(e)) && ("document" !== B || !ee), [
|
|
94
94
|
w,
|
|
95
95
|
B,
|
|
96
96
|
ee
|
|
97
97
|
]), ye = "document" === B ? Z : "email" === B ? G : U;
|
|
98
98
|
return m(p, {
|
|
99
|
-
title:
|
|
100
|
-
options:
|
|
99
|
+
title: H(L ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
|
|
100
|
+
options: W,
|
|
101
101
|
onDone: M,
|
|
102
102
|
onOption: (e) => he(e),
|
|
103
103
|
onValidateOption: fe,
|
|
104
|
-
defaultOption:
|
|
105
|
-
cancelOption:
|
|
104
|
+
defaultOption: $,
|
|
105
|
+
cancelOption: E,
|
|
106
106
|
autoFocusSel: ".autoFocus",
|
|
107
107
|
suspendModal: ce,
|
|
108
108
|
sx: {
|
|
109
109
|
width: "480px",
|
|
110
|
-
...
|
|
110
|
+
...R
|
|
111
111
|
},
|
|
112
|
-
...
|
|
112
|
+
...A,
|
|
113
113
|
children: g(h, {
|
|
114
114
|
ref: ae,
|
|
115
115
|
sx: {
|
|
@@ -128,11 +128,11 @@ var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto
|
|
|
128
128
|
size: "small",
|
|
129
129
|
children: [m(y, {
|
|
130
130
|
id: oe,
|
|
131
|
-
children:
|
|
131
|
+
children: H("hyperlink.linkTo")
|
|
132
132
|
}), g(b, {
|
|
133
133
|
labelId: oe,
|
|
134
134
|
value: B,
|
|
135
|
-
label:
|
|
135
|
+
label: H("hyperlink.linkTo"),
|
|
136
136
|
MenuProps: {
|
|
137
137
|
disableRestoreFocus: !0,
|
|
138
138
|
slotProps: { transition: { onExited: ue } },
|
|
@@ -144,30 +144,30 @@ var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto
|
|
|
144
144
|
children: [
|
|
145
145
|
m(x, {
|
|
146
146
|
value: "url",
|
|
147
|
-
children:
|
|
147
|
+
children: H("hyperlink.typeWebPage")
|
|
148
148
|
}),
|
|
149
149
|
m(x, {
|
|
150
150
|
value: "document",
|
|
151
|
-
children:
|
|
151
|
+
children: H("hyperlink.typeInDocument")
|
|
152
152
|
}),
|
|
153
153
|
m(x, {
|
|
154
154
|
value: "email",
|
|
155
|
-
children:
|
|
155
|
+
children: H("hyperlink.typeEmail")
|
|
156
156
|
})
|
|
157
157
|
]
|
|
158
158
|
})]
|
|
159
159
|
}),
|
|
160
160
|
"email" === B ? g(c, { children: [m(t, {
|
|
161
161
|
sx: C,
|
|
162
|
-
label:
|
|
163
|
-
defaultInput:
|
|
162
|
+
label: H("hyperlink.emailAddress"),
|
|
163
|
+
defaultInput: H("hyperlink.emailPlaceholder"),
|
|
164
164
|
value: G,
|
|
165
165
|
onChangeInput: (e) => J(e),
|
|
166
166
|
onFocus: (e) => {
|
|
167
167
|
re || e.target?.select?.(), se(!0);
|
|
168
168
|
}
|
|
169
169
|
}), m(t, {
|
|
170
|
-
label:
|
|
170
|
+
label: H("hyperlink.subject"),
|
|
171
171
|
defaultInput: "",
|
|
172
172
|
value: K,
|
|
173
173
|
onChangeInput: (e) => Q(e),
|
|
@@ -177,7 +177,7 @@ var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto
|
|
|
177
177
|
grammar: "reference",
|
|
178
178
|
apiRef: ie,
|
|
179
179
|
classNameInput: "autoFocus",
|
|
180
|
-
label:
|
|
180
|
+
label: H("hyperlink.reference"),
|
|
181
181
|
value: X,
|
|
182
182
|
allowMulti: !1,
|
|
183
183
|
home: pe,
|
|
@@ -189,8 +189,8 @@ var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto
|
|
|
189
189
|
}
|
|
190
190
|
}) : m(t, {
|
|
191
191
|
sx: C,
|
|
192
|
-
label:
|
|
193
|
-
defaultInput:
|
|
192
|
+
label: H("hyperlink.address"),
|
|
193
|
+
defaultInput: H("hyperlink.addressPlaceholder"),
|
|
194
194
|
value: U,
|
|
195
195
|
onChangeInput: (e) => q(e),
|
|
196
196
|
onFocus: (e) => {
|
|
@@ -205,7 +205,7 @@ var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto
|
|
|
205
205
|
},
|
|
206
206
|
size: "small",
|
|
207
207
|
children: m(k, {
|
|
208
|
-
label:
|
|
208
|
+
label: H("hyperlink.displayText"),
|
|
209
209
|
placeholder: ye,
|
|
210
210
|
onFocus: () => {
|
|
211
211
|
se(!0);
|