@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,515 @@
|
|
|
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 { ColorPopupButton as e } from "./index.mjs";
|
|
8
|
+
import { a, c as t, i as n, o as r, t as l } from "./BR45ogAR-hY2bE60.mjs";
|
|
9
|
+
import { t as s } from "./DfCuL8AUxMFoEG2s.mjs";
|
|
10
|
+
import { IFill as i } from "@sheetxl/sdk";
|
|
11
|
+
import { useGridColorScheme as o } from "@sheetxl/react";
|
|
12
|
+
import { useCallbackRef as c, useTranslator as h } from "@sheetxl/utils-react";
|
|
13
|
+
import { memo as d, useEffect as p, useReducer as u, useState as m } from "react";
|
|
14
|
+
import { Fragment as g, jsx as b, jsxs as y } from "react/jsx-runtime";
|
|
15
|
+
import { Box as v, Checkbox as x, FormControl as C, FormControlLabel as S, InputLabel as w, MenuItem as k, Select as B, TextField as f, Typography as L } from "@mui/material";
|
|
16
|
+
var E = (e) => b(L, {
|
|
17
|
+
variant: "subtitle2",
|
|
18
|
+
component: "div",
|
|
19
|
+
children: e.children
|
|
20
|
+
}), T = (e, a) => {
|
|
21
|
+
const t = a.getChart(), n = a.getPath(), r = a.getParent(), l = () => r ? T(e, r) : "", s = Number(n.split("/").pop());
|
|
22
|
+
switch (a.getElementType()) {
|
|
23
|
+
case "chartArea": return e("chart.pane.element.chartArea");
|
|
24
|
+
case "title": return e("chart.pane.element.title");
|
|
25
|
+
case "legend": return e("chart.pane.element.legend");
|
|
26
|
+
case "legendEntry": return e("chart.pane.element.legendEntry", { index: s + 1 });
|
|
27
|
+
case "plotArea": return e("chart.pane.element.plotArea");
|
|
28
|
+
case "dataTable": return e("chart.pane.element.dataTable");
|
|
29
|
+
case "axis": return ((e, a, t) => {
|
|
30
|
+
const [, n, r] = t.split("/"), l = ((e) => /^(bar|3DBar)/.test(e.getChartType()))(a), s = "category" === r ? !l : "value" !== r || l, i = "series" === r ? e("chart.pane.axisKind.series") : ((e) => /^(xyscatter|bubble)/.test(e.getChartType()))(a) || "value" === r ? e("chart.pane.axisKind.value") : e("chart.pane.axisKind.category"), o = e("chart.pane.axis", {
|
|
31
|
+
side: e(s ? "chart.pane.axisSide.horizontal" : "chart.pane.axisSide.vertical"),
|
|
32
|
+
kind: i
|
|
33
|
+
});
|
|
34
|
+
return "secondary" === n ? e("chart.pane.secondary", { label: o }) : o;
|
|
35
|
+
})(e, t, n);
|
|
36
|
+
case "axisTitle": return e("chart.pane.element.axisTitle", { axis: l() });
|
|
37
|
+
case "gridlines": return n.endsWith("minorGridlines") ? e("chart.pane.element.minorGridlines", { axis: l() }) : e("chart.pane.element.majorGridlines", { axis: l() });
|
|
38
|
+
case "series": return e("chart.pane.element.series", { name: a.getName() ?? "" });
|
|
39
|
+
case "point": return e("chart.pane.element.point", {
|
|
40
|
+
series: l(),
|
|
41
|
+
index: s + 1
|
|
42
|
+
});
|
|
43
|
+
case "marker": return e("chart.pane.element.marker", { owner: l() });
|
|
44
|
+
case "dataLabels": return "series" === r?.getElementType() ? e("chart.pane.element.dataLabels", { series: l() }) : e("chart.pane.element.allDataLabels");
|
|
45
|
+
case "dataLabel": return e("chart.pane.element.dataLabel", { point: l() });
|
|
46
|
+
case "trendline": return e("chart.pane.element.trendline", {
|
|
47
|
+
series: l(),
|
|
48
|
+
index: s + 1
|
|
49
|
+
});
|
|
50
|
+
case "trendlineLabel": return e("chart.pane.element.trendlineLabel", { trendline: l() });
|
|
51
|
+
case "errorBars": return n.endsWith("/x") ? e("chart.pane.element.xErrorBars", { series: l() }) : e("chart.pane.element.yErrorBars", { series: l() });
|
|
52
|
+
case "chartGroup": return e("chart.pane.element.group", { index: s + 1 });
|
|
53
|
+
case "upDownBars": return e("chart.pane.element.upDownBars");
|
|
54
|
+
case "hiLoLines": return e("chart.pane.element.hiLoLines");
|
|
55
|
+
case "dropLines": return e("chart.pane.element.dropLines");
|
|
56
|
+
case "seriesLines": return e("chart.pane.element.seriesLines");
|
|
57
|
+
default: return n;
|
|
58
|
+
}
|
|
59
|
+
}, V = (e, a) => {
|
|
60
|
+
const t = e.getStroke().getFill();
|
|
61
|
+
return t.getType() === i.Type.Solid ? t.getColor() : a.getNormal().getFont().getColor();
|
|
62
|
+
}, P = (e) => {
|
|
63
|
+
const { style: a, sheet: t, disabled: n, label: r } = e, i = h(), c = t.getStyles(), d = "dark" === o(), p = {
|
|
64
|
+
fill: a.getFill(),
|
|
65
|
+
styles: c,
|
|
66
|
+
schemeLookup: c.schemeLookup(),
|
|
67
|
+
darkMode: d,
|
|
68
|
+
disabled: n,
|
|
69
|
+
createCell: (e) => t.createCell(e),
|
|
70
|
+
applyFill: (e, t) => {
|
|
71
|
+
a.setFill(e, { description: t });
|
|
72
|
+
}
|
|
73
|
+
}, u = {
|
|
74
|
+
stroke: a.getStroke(),
|
|
75
|
+
stated: a.toJSON()?.stroke ?? null,
|
|
76
|
+
autoColor: V(a, c),
|
|
77
|
+
styles: c,
|
|
78
|
+
schemeLookup: c.schemeLookup(),
|
|
79
|
+
darkMode: d,
|
|
80
|
+
disabled: n,
|
|
81
|
+
applyStroke: (e, t) => {
|
|
82
|
+
a.setStroke(e, { description: t });
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
return y(g, { children: [
|
|
86
|
+
r ? b(E, { children: r }) : null,
|
|
87
|
+
b(E, { children: i("shape.pane.fill") }),
|
|
88
|
+
b(l, { selection: p }),
|
|
89
|
+
b(E, { children: i("shape.pane.line") }),
|
|
90
|
+
b(s, { selection: u })
|
|
91
|
+
] });
|
|
92
|
+
}, F = (e) => y(C, {
|
|
93
|
+
size: "small",
|
|
94
|
+
fullWidth: !0,
|
|
95
|
+
disabled: e.disabled,
|
|
96
|
+
children: [b(w, { children: e.label }), b(B, {
|
|
97
|
+
label: e.label,
|
|
98
|
+
value: e.value,
|
|
99
|
+
onChange: (a) => e.onChange(a.target.value),
|
|
100
|
+
children: e.options.map((a) => b(k, {
|
|
101
|
+
value: a,
|
|
102
|
+
children: e.labels[a] ?? a
|
|
103
|
+
}, a))
|
|
104
|
+
})]
|
|
105
|
+
}), A = (e) => b(S, {
|
|
106
|
+
label: e.label,
|
|
107
|
+
disabled: e.disabled,
|
|
108
|
+
control: b(x, {
|
|
109
|
+
size: "small",
|
|
110
|
+
checked: e.checked,
|
|
111
|
+
onChange: (a) => e.onChange(a.target.checked)
|
|
112
|
+
})
|
|
113
|
+
}), N = (e) => {
|
|
114
|
+
const [a, t] = m(null), n = () => {
|
|
115
|
+
null !== a && a !== e.value && e.onCommit(a), t(null);
|
|
116
|
+
};
|
|
117
|
+
return b(f, {
|
|
118
|
+
size: "small",
|
|
119
|
+
fullWidth: !0,
|
|
120
|
+
label: e.label,
|
|
121
|
+
disabled: e.disabled,
|
|
122
|
+
value: a ?? e.value,
|
|
123
|
+
onChange: (e) => t(e.target.value),
|
|
124
|
+
onBlur: n,
|
|
125
|
+
onKeyDown: (e) => {
|
|
126
|
+
"Enter" === e.key && n();
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}, D = [
|
|
130
|
+
"none",
|
|
131
|
+
"single",
|
|
132
|
+
"double"
|
|
133
|
+
], O = [
|
|
134
|
+
"none",
|
|
135
|
+
"single",
|
|
136
|
+
"double"
|
|
137
|
+
], z = (t) => {
|
|
138
|
+
const { font: l, styles: s, disabled: i, run: d } = t, p = h(), u = "dark" === o(), m = c(() => s.recentColors(), [s]), v = l.getColor(), x = {
|
|
139
|
+
none: p("chart.pane.text.lineNone"),
|
|
140
|
+
single: p("chart.pane.text.lineSingle"),
|
|
141
|
+
double: p("chart.pane.text.lineDouble")
|
|
142
|
+
};
|
|
143
|
+
return y(g, { children: [
|
|
144
|
+
b(E, { children: p("chart.pane.text") }),
|
|
145
|
+
b(r, { children: b(N, {
|
|
146
|
+
label: p("format.fontFamily"),
|
|
147
|
+
value: l.getFamily(),
|
|
148
|
+
disabled: i,
|
|
149
|
+
onCommit: (e) => d(() => l.setFamily(e || null))
|
|
150
|
+
}) }),
|
|
151
|
+
b(r, { children: y(a, { children: [b(n, {
|
|
152
|
+
label: p("format.fontSize"),
|
|
153
|
+
value: l.getSize(),
|
|
154
|
+
min: 1,
|
|
155
|
+
max: 400,
|
|
156
|
+
step: 1,
|
|
157
|
+
decimals: !0,
|
|
158
|
+
width: 96,
|
|
159
|
+
disabled: i,
|
|
160
|
+
onChange: (e) => d(() => l.setSize(e))
|
|
161
|
+
}), b(e, {
|
|
162
|
+
icon: "text.colored",
|
|
163
|
+
disabled: i,
|
|
164
|
+
darkMode: u,
|
|
165
|
+
compareRGB: !0,
|
|
166
|
+
selectedColor: v,
|
|
167
|
+
onSelectColor: (e, a) => {
|
|
168
|
+
e && a && s.addRecentColor(e), d(() => l.setColor(e ? e.toString() : null));
|
|
169
|
+
},
|
|
170
|
+
propsPanel: {
|
|
171
|
+
disableAlpha: !0,
|
|
172
|
+
schemeLookup: s.schemeLookup(),
|
|
173
|
+
recentColors: m
|
|
174
|
+
}
|
|
175
|
+
})] }) }),
|
|
176
|
+
b(r, { children: y(a, { children: [b(A, {
|
|
177
|
+
label: p("chart.pane.text.bold"),
|
|
178
|
+
checked: l.getBold(),
|
|
179
|
+
disabled: i,
|
|
180
|
+
onChange: (e) => d(() => l.setBold(e))
|
|
181
|
+
}), b(A, {
|
|
182
|
+
label: p("chart.pane.text.italic"),
|
|
183
|
+
checked: l.getItalic(),
|
|
184
|
+
disabled: i,
|
|
185
|
+
onChange: (e) => d(() => l.setItalic(e))
|
|
186
|
+
})] }) }),
|
|
187
|
+
b(r, { children: y(a, { children: [b(F, {
|
|
188
|
+
label: p("chart.pane.text.underline"),
|
|
189
|
+
value: D.includes(l.getUnderline()) ? l.getUnderline() : "single",
|
|
190
|
+
options: D,
|
|
191
|
+
labels: x,
|
|
192
|
+
disabled: i,
|
|
193
|
+
onChange: (e) => d(() => l.setUnderline(e))
|
|
194
|
+
}), b(F, {
|
|
195
|
+
label: p("chart.pane.text.strike"),
|
|
196
|
+
value: l.getStrike(),
|
|
197
|
+
options: O,
|
|
198
|
+
labels: x,
|
|
199
|
+
disabled: i,
|
|
200
|
+
onChange: (e) => d(() => l.setStrike(e))
|
|
201
|
+
})] }) })
|
|
202
|
+
] });
|
|
203
|
+
}, K = [
|
|
204
|
+
"top",
|
|
205
|
+
"bottom",
|
|
206
|
+
"left",
|
|
207
|
+
"right",
|
|
208
|
+
"corner"
|
|
209
|
+
], G = [
|
|
210
|
+
"center",
|
|
211
|
+
"insideEnd",
|
|
212
|
+
"insideBase",
|
|
213
|
+
"outsideEnd",
|
|
214
|
+
"left",
|
|
215
|
+
"right",
|
|
216
|
+
"top",
|
|
217
|
+
"bottom",
|
|
218
|
+
"bestFit"
|
|
219
|
+
], R = [
|
|
220
|
+
"linear",
|
|
221
|
+
"exponential",
|
|
222
|
+
"logarithmic",
|
|
223
|
+
"polynomial",
|
|
224
|
+
"power",
|
|
225
|
+
"movingAverage"
|
|
226
|
+
], W = [
|
|
227
|
+
"fixedValue",
|
|
228
|
+
"percent",
|
|
229
|
+
"stDev",
|
|
230
|
+
"stError"
|
|
231
|
+
], M = [
|
|
232
|
+
"both",
|
|
233
|
+
"plusValues",
|
|
234
|
+
"minusValues"
|
|
235
|
+
], q = (e) => {
|
|
236
|
+
const { element: r, disabled: l, run: s } = e, i = h(), o = (e, a, t) => b(A, {
|
|
237
|
+
label: e,
|
|
238
|
+
checked: a,
|
|
239
|
+
disabled: l,
|
|
240
|
+
onChange: (e) => s(() => t(e))
|
|
241
|
+
}), c = [], d = () => r;
|
|
242
|
+
switch (r.getElementType()) {
|
|
243
|
+
case "chartArea": {
|
|
244
|
+
const e = d();
|
|
245
|
+
c.push(o(i("chart.pane.roundedCorners"), e.getRoundedCorners(), (a) => e.setRoundedCorners(a)));
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
case "title":
|
|
249
|
+
case "axisTitle": {
|
|
250
|
+
const e = d();
|
|
251
|
+
c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), c.push(b(N, {
|
|
252
|
+
label: i("chart.pane.titleText"),
|
|
253
|
+
value: e.getText() ?? "",
|
|
254
|
+
disabled: l,
|
|
255
|
+
onCommit: (a) => s(() => e.setText(a || null))
|
|
256
|
+
}, "text")), c.push(o(i("chart.pane.overlay"), e.getOverlay(), (a) => e.setOverlay(a)));
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
case "legend": {
|
|
260
|
+
const e = d();
|
|
261
|
+
c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), c.push(b(F, {
|
|
262
|
+
label: i("chart.pane.position"),
|
|
263
|
+
value: e.getPosition(),
|
|
264
|
+
options: K,
|
|
265
|
+
disabled: l,
|
|
266
|
+
labels: {
|
|
267
|
+
top: i("chart.pane.side.top"),
|
|
268
|
+
bottom: i("chart.pane.side.bottom"),
|
|
269
|
+
left: i("chart.pane.side.left"),
|
|
270
|
+
right: i("chart.pane.side.right"),
|
|
271
|
+
corner: i("chart.pane.side.corner")
|
|
272
|
+
},
|
|
273
|
+
onChange: (a) => s(() => e.setPosition(a))
|
|
274
|
+
}, "position")), c.push(o(i("chart.pane.overlay"), e.getOverlay(), (a) => e.setOverlay(a)));
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
case "axis": {
|
|
278
|
+
const e = d();
|
|
279
|
+
if (c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), c.push(o(i("chart.pane.reverse"), e.getReversePlotOrder(), (a) => e.setReversePlotOrder(a))), "value" === e.getKind()) {
|
|
280
|
+
const t = (e, a, t) => b(n, {
|
|
281
|
+
label: e,
|
|
282
|
+
value: a ?? 0,
|
|
283
|
+
min: -0x38d7ea4c68000,
|
|
284
|
+
max: 0x38d7ea4c68000,
|
|
285
|
+
decimals: !0,
|
|
286
|
+
width: 120,
|
|
287
|
+
disabled: l,
|
|
288
|
+
onChange: (e) => s(() => t(e))
|
|
289
|
+
}, e);
|
|
290
|
+
c.push(y(a, { children: [t(i("chart.pane.minimum"), e.getMinimum(), (a) => e.setMinimum(a)), t(i("chart.pane.maximum"), e.getMaximum(), (a) => e.setMaximum(a))] }, "bounds")), c.push(b(N, {
|
|
291
|
+
label: i("chart.pane.numberFormat"),
|
|
292
|
+
value: e.getNumberFormat() ?? "",
|
|
293
|
+
disabled: l,
|
|
294
|
+
onCommit: (a) => s(() => a ? e.setNumberFormat(a) : e.setLinkNumberFormat(!0))
|
|
295
|
+
}, "format"));
|
|
296
|
+
}
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
case "gridlines":
|
|
300
|
+
case "upDownBars":
|
|
301
|
+
case "hiLoLines":
|
|
302
|
+
case "dropLines":
|
|
303
|
+
case "seriesLines": {
|
|
304
|
+
const e = d();
|
|
305
|
+
c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a)));
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
case "series": {
|
|
309
|
+
const e = d();
|
|
310
|
+
c.push(o(i("chart.pane.secondaryAxis"), "secondary" === e.getAxisGroup(), (a) => e.setAxisGroup(a ? "secondary" : "primary")));
|
|
311
|
+
const t = e.getGapWidth(), r = e.getOverlap();
|
|
312
|
+
null === t && null === r || c.push(y(a, { children: [null !== r ? b(n, {
|
|
313
|
+
label: i("chart.pane.overlap"),
|
|
314
|
+
value: r,
|
|
315
|
+
min: -100,
|
|
316
|
+
max: 100,
|
|
317
|
+
width: 96,
|
|
318
|
+
disabled: l,
|
|
319
|
+
onChange: (a) => s(() => e.setOverlap(a))
|
|
320
|
+
}) : null, null !== t ? b(n, {
|
|
321
|
+
label: i("chart.pane.gapWidth"),
|
|
322
|
+
value: t,
|
|
323
|
+
min: 0,
|
|
324
|
+
max: 500,
|
|
325
|
+
width: 96,
|
|
326
|
+
disabled: l,
|
|
327
|
+
onChange: (a) => s(() => e.setGapWidth(a))
|
|
328
|
+
}) : null] }, "gap")), /^(line|xyscatter)/.test(e.getChartType()) && c.push(o(i("chart.pane.smooth"), e.getSmooth(), (a) => e.setSmooth(a)));
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
case "dataLabels":
|
|
332
|
+
case "dataLabel": {
|
|
333
|
+
const e = d();
|
|
334
|
+
c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), c.push(o(i("chart.pane.labels.value"), e.getShowValue(), (a) => e.setShowValue(a))), c.push(o(i("chart.pane.labels.category"), e.getShowCategoryName(), (a) => e.setShowCategoryName(a))), c.push(o(i("chart.pane.labels.series"), e.getShowSeriesName(), (a) => e.setShowSeriesName(a))), c.push(o(i("chart.pane.labels.percentage"), e.getShowPercentage(), (a) => e.setShowPercentage(a))), c.push(o(i("chart.pane.labels.legendKey"), e.getShowLegendKey(), (a) => e.setShowLegendKey(a))), c.push(b(F, {
|
|
335
|
+
label: i("chart.pane.position"),
|
|
336
|
+
value: e.getPosition(),
|
|
337
|
+
options: G,
|
|
338
|
+
disabled: l,
|
|
339
|
+
labels: {
|
|
340
|
+
center: i("chart.pane.labels.center"),
|
|
341
|
+
insideEnd: i("chart.pane.labels.insideEnd"),
|
|
342
|
+
insideBase: i("chart.pane.labels.insideBase"),
|
|
343
|
+
outsideEnd: i("chart.pane.labels.outsideEnd"),
|
|
344
|
+
left: i("chart.pane.side.left"),
|
|
345
|
+
right: i("chart.pane.side.right"),
|
|
346
|
+
top: i("chart.pane.side.top"),
|
|
347
|
+
bottom: i("chart.pane.side.bottom"),
|
|
348
|
+
bestFit: i("chart.pane.labels.bestFit")
|
|
349
|
+
},
|
|
350
|
+
onChange: (a) => s(() => e.setPosition(a))
|
|
351
|
+
}, "position"));
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
case "trendline": {
|
|
355
|
+
const e = d();
|
|
356
|
+
c.push(b(F, {
|
|
357
|
+
label: i("chart.pane.trendline.type"),
|
|
358
|
+
value: e.getType(),
|
|
359
|
+
options: R,
|
|
360
|
+
disabled: l,
|
|
361
|
+
labels: {
|
|
362
|
+
linear: i("chart.pane.trendline.linear"),
|
|
363
|
+
exponential: i("chart.pane.trendline.exponential"),
|
|
364
|
+
logarithmic: i("chart.pane.trendline.logarithmic"),
|
|
365
|
+
polynomial: i("chart.pane.trendline.polynomial"),
|
|
366
|
+
power: i("chart.pane.trendline.power"),
|
|
367
|
+
movingAverage: i("chart.pane.trendline.movingAverage")
|
|
368
|
+
},
|
|
369
|
+
onChange: (a) => s(() => e.setType(a))
|
|
370
|
+
}, "type")), c.push(o(i("chart.pane.trendline.equation"), e.getShowEquation(), (a) => e.setShowEquation(a))), c.push(o(i("chart.pane.trendline.rSquared"), e.getShowRSquared(), (a) => e.setShowRSquared(a))), c.push(y(a, { children: [b(n, {
|
|
371
|
+
label: i("chart.pane.trendline.forward"),
|
|
372
|
+
value: e.getForwardPeriod(),
|
|
373
|
+
min: 0,
|
|
374
|
+
max: 1e6,
|
|
375
|
+
decimals: !0,
|
|
376
|
+
width: 96,
|
|
377
|
+
disabled: l,
|
|
378
|
+
onChange: (a) => s(() => e.setForwardPeriod(a))
|
|
379
|
+
}), b(n, {
|
|
380
|
+
label: i("chart.pane.trendline.backward"),
|
|
381
|
+
value: e.getBackwardPeriod(),
|
|
382
|
+
min: 0,
|
|
383
|
+
max: 1e6,
|
|
384
|
+
decimals: !0,
|
|
385
|
+
width: 96,
|
|
386
|
+
disabled: l,
|
|
387
|
+
onChange: (a) => s(() => e.setBackwardPeriod(a))
|
|
388
|
+
})] }, "periods"));
|
|
389
|
+
break;
|
|
390
|
+
}
|
|
391
|
+
case "errorBars": {
|
|
392
|
+
const e = d();
|
|
393
|
+
c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), c.push(b(F, {
|
|
394
|
+
label: i("chart.pane.errorBars.type"),
|
|
395
|
+
value: "custom" === e.getType() ? "fixedValue" : e.getType(),
|
|
396
|
+
options: W,
|
|
397
|
+
disabled: l,
|
|
398
|
+
labels: {
|
|
399
|
+
fixedValue: i("chart.pane.errorBars.fixedValue"),
|
|
400
|
+
percent: i("chart.pane.errorBars.percent"),
|
|
401
|
+
stDev: i("chart.pane.errorBars.stDev"),
|
|
402
|
+
stError: i("chart.pane.errorBars.stError")
|
|
403
|
+
},
|
|
404
|
+
onChange: (a) => s(() => e.setType(a))
|
|
405
|
+
}, "type"));
|
|
406
|
+
const a = e.getAmount();
|
|
407
|
+
null !== a && c.push(b(n, {
|
|
408
|
+
label: i("chart.pane.errorBars.amount"),
|
|
409
|
+
value: a,
|
|
410
|
+
min: 0,
|
|
411
|
+
max: 0x38d7ea4c68000,
|
|
412
|
+
decimals: !0,
|
|
413
|
+
width: 120,
|
|
414
|
+
disabled: l,
|
|
415
|
+
onChange: (a) => s(() => e.setAmount(a))
|
|
416
|
+
}, "amount")), c.push(b(F, {
|
|
417
|
+
label: i("chart.pane.errorBars.direction"),
|
|
418
|
+
value: e.getInclude(),
|
|
419
|
+
options: M,
|
|
420
|
+
disabled: l,
|
|
421
|
+
labels: {
|
|
422
|
+
both: i("chart.pane.errorBars.both"),
|
|
423
|
+
plusValues: i("chart.pane.errorBars.plus"),
|
|
424
|
+
minusValues: i("chart.pane.errorBars.minus")
|
|
425
|
+
},
|
|
426
|
+
onChange: (a) => s(() => e.setInclude(a))
|
|
427
|
+
}, "include")), c.push(o(i("chart.pane.errorBars.cap"), e.getEndStyleCap(), (a) => e.setEndStyleCap(a)));
|
|
428
|
+
break;
|
|
429
|
+
}
|
|
430
|
+
case "dataTable": {
|
|
431
|
+
const e = d();
|
|
432
|
+
c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), c.push(o(i("chart.pane.labels.legendKey"), e.getShowLegendKey(), (a) => e.setShowLegendKey(a))), c.push(o(i("chart.pane.table.horizontal"), e.getShowHorizontalBorder(), (a) => e.setShowHorizontalBorder(a))), c.push(o(i("chart.pane.table.vertical"), e.getShowVerticalBorder(), (a) => e.setShowVerticalBorder(a))), c.push(o(i("chart.pane.table.outline"), e.getShowOutlineBorder(), (a) => e.setShowOutlineBorder(a)));
|
|
433
|
+
break;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
return 0 === c.length ? null : y(g, { children: [b(E, { children: i("chart.pane.options") }), b(v, {
|
|
437
|
+
sx: {
|
|
438
|
+
...t,
|
|
439
|
+
gap: 1
|
|
440
|
+
},
|
|
441
|
+
children: c.map((e, a) => b(v, { children: e }, a))
|
|
442
|
+
})] });
|
|
443
|
+
}, j = d((e) => {
|
|
444
|
+
const { movable: a, sheet: n } = e, r = h(), l = a.getContent(), [, s] = u((e) => e + 1, 0);
|
|
445
|
+
p(() => l.addListeners({ onAnyChange: s }), [l]);
|
|
446
|
+
const i = n.getView().getChartElementSelection();
|
|
447
|
+
p(() => i.addListeners({ onChange: s }), [i]);
|
|
448
|
+
const [o, d] = m("chartArea"), [x, S] = m(null), f = (i.getChart() === l ? i.getActive() : null) ?? l.getElement(o) ?? l.getChartArea(), E = l.getElements(), V = E.includes(f) ? E : [...E, f], F = l.isReadOnly(), A = c((e) => {
|
|
449
|
+
try {
|
|
450
|
+
e(), S(null);
|
|
451
|
+
} catch (e) {
|
|
452
|
+
S(e?.message ?? String(e));
|
|
453
|
+
}
|
|
454
|
+
}, []), N = f.getStyle?.(), D = N?.isITextBoxStyle ? N.getFont() : null, O = "legendEntry" === f.getElementType() ? null : N, K = "upDownBars" === f.getElementType() ? f : null;
|
|
455
|
+
return y(v, {
|
|
456
|
+
sx: {
|
|
457
|
+
...t,
|
|
458
|
+
gap: 2,
|
|
459
|
+
paddingTop: (e) => e.spacing(1)
|
|
460
|
+
},
|
|
461
|
+
children: [
|
|
462
|
+
y(C, {
|
|
463
|
+
size: "small",
|
|
464
|
+
fullWidth: !0,
|
|
465
|
+
children: [b(w, { children: r("chart.pane.element") }), b(B, {
|
|
466
|
+
label: r("chart.pane.element"),
|
|
467
|
+
value: f.getPath(),
|
|
468
|
+
onChange: (e) => ((e) => {
|
|
469
|
+
d(e), S(null);
|
|
470
|
+
const a = l.getElement(e);
|
|
471
|
+
a && "chartArea" !== a.getElementType() ? i.select([a]) : i.clear();
|
|
472
|
+
})(e.target.value),
|
|
473
|
+
children: V.map((e) => b(k, {
|
|
474
|
+
value: e.getPath(),
|
|
475
|
+
children: T(r, e)
|
|
476
|
+
}, e.getPath()))
|
|
477
|
+
})]
|
|
478
|
+
}),
|
|
479
|
+
x ? b(L, {
|
|
480
|
+
variant: "caption",
|
|
481
|
+
color: "error",
|
|
482
|
+
children: x
|
|
483
|
+
}) : null,
|
|
484
|
+
b(q, {
|
|
485
|
+
element: f,
|
|
486
|
+
disabled: F,
|
|
487
|
+
run: A
|
|
488
|
+
}, `options:${f.getPath()}`),
|
|
489
|
+
D ? b(z, {
|
|
490
|
+
font: D,
|
|
491
|
+
styles: n.getStyles(),
|
|
492
|
+
disabled: F,
|
|
493
|
+
run: A
|
|
494
|
+
}, `text:${f.getPath()}`) : null,
|
|
495
|
+
O ? b(P, {
|
|
496
|
+
style: O,
|
|
497
|
+
sheet: n,
|
|
498
|
+
disabled: F
|
|
499
|
+
}, `style:${f.getPath()}`) : null,
|
|
500
|
+
K ? y(g, { children: [b(P, {
|
|
501
|
+
style: K.getUpBarsStyle(),
|
|
502
|
+
sheet: n,
|
|
503
|
+
disabled: F,
|
|
504
|
+
label: r("chart.pane.upBars")
|
|
505
|
+
}, "up"), b(P, {
|
|
506
|
+
style: K.getDownBarsStyle(),
|
|
507
|
+
sheet: n,
|
|
508
|
+
disabled: F,
|
|
509
|
+
label: r("chart.pane.downBars")
|
|
510
|
+
}, "down")] }) : null
|
|
511
|
+
]
|
|
512
|
+
});
|
|
513
|
+
});
|
|
514
|
+
j.displayName = "ChartFormatPanel";
|
|
515
|
+
export { j as ChartFormatPanel };
|
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.11",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -9,13 +9,12 @@
|
|
|
9
9
|
"types": "./types/index.d.ts",
|
|
10
10
|
"browser": "./browser/esm/index.mjs",
|
|
11
11
|
"node": "./node/esm/index.mjs",
|
|
12
|
-
"
|
|
13
|
-
"require": "./browser/cjs/index.cjs"
|
|
12
|
+
"default": "./browser/esm/index.mjs"
|
|
14
13
|
}
|
|
15
14
|
},
|
|
16
15
|
"types": "./types/index.d.ts",
|
|
17
16
|
"module": "./browser/esm/index.mjs",
|
|
18
|
-
"main": "./browser/
|
|
17
|
+
"main": "./browser/esm/index.mjs",
|
|
19
18
|
"sideEffects": [
|
|
20
19
|
"*.css",
|
|
21
20
|
"**/*.css"
|
|
@@ -52,24 +51,22 @@
|
|
|
52
51
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
53
52
|
"@dnd-kit/sortable": "^10.0.0",
|
|
54
53
|
"@dnd-kit/utilities": "^3.2.2",
|
|
55
|
-
"@sheetxl/grid-react": "^0.8.0-beta.
|
|
56
|
-
"@sheetxl/io": "^0.8.0-beta.
|
|
57
|
-
"@sheetxl/react": "^0.8.0-beta.
|
|
58
|
-
"@sheetxl/scripting-react": "^0.8.0-beta.
|
|
59
|
-
"@sheetxl/sdk": "^0.8.0-beta.
|
|
60
|
-
"@sheetxl/utils": "^0.8.0-beta.
|
|
61
|
-
"@sheetxl/utils-mui": "^0.8.0-beta.
|
|
62
|
-
"@sheetxl/utils-react": "^0.8.0-beta.
|
|
54
|
+
"@sheetxl/grid-react": "^0.8.0-beta.11",
|
|
55
|
+
"@sheetxl/io": "^0.8.0-beta.11",
|
|
56
|
+
"@sheetxl/react": "^0.8.0-beta.11",
|
|
57
|
+
"@sheetxl/scripting-react": "^0.8.0-beta.11",
|
|
58
|
+
"@sheetxl/sdk": "^0.8.0-beta.11",
|
|
59
|
+
"@sheetxl/utils": "^0.8.0-beta.11",
|
|
60
|
+
"@sheetxl/utils-mui": "^0.8.0-beta.11",
|
|
61
|
+
"@sheetxl/utils-react": "^0.8.0-beta.11",
|
|
63
62
|
"clsx": "^2.1.1",
|
|
64
63
|
"csstype": "^3.2.3",
|
|
65
64
|
"file-saver": "^2.0.5",
|
|
66
|
-
"fuse.js": "^7.5.0",
|
|
67
65
|
"notistack": "^3.0.2",
|
|
68
|
-
"react-hook-form": "^7.
|
|
66
|
+
"react-hook-form": "^7.89.0",
|
|
69
67
|
"react-merge-refs": "^3.0.2",
|
|
70
68
|
"react-transition-group": "^4.4.5",
|
|
71
|
-
"
|
|
72
|
-
"rooks": "^9.8.0",
|
|
69
|
+
"rooks": "^9.9.0",
|
|
73
70
|
"tinycolor2": "^1.6.0"
|
|
74
71
|
},
|
|
75
72
|
"peerDependencies": {
|
|
@@ -85,8 +82,8 @@
|
|
|
85
82
|
},
|
|
86
83
|
"devDependencies": {
|
|
87
84
|
"@types/file-saver": "^2.0.7",
|
|
88
|
-
"@types/react": "^19.
|
|
89
|
-
"@types/react-dom": "^19.
|
|
85
|
+
"@types/react": "^19.3.0",
|
|
86
|
+
"@types/react-dom": "^19.3.0",
|
|
90
87
|
"@types/react-transition-group": "^4.4.12"
|
|
91
88
|
}
|
|
92
89
|
}
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"icon": "Calculate"
|
|
20
20
|
},
|
|
21
21
|
"cellsFormatOptions": {
|
|
22
|
-
"label": "
|
|
23
|
-
"description": "Zeilen- und Spaltengrößen oder deren Sichtbarkeit ändern.",
|
|
22
|
+
"label": "Format",
|
|
23
|
+
"description": "Zeilen- und Spaltengrößen oder deren Sichtbarkeit ändern oder den Bereich „Zellen formatieren“ öffnen.",
|
|
24
24
|
"icon": "CellsFormat"
|
|
25
25
|
},
|
|
26
26
|
"clearOptions": {
|
|
@@ -45,6 +45,15 @@
|
|
|
45
45
|
"label": "Regeln löschen",
|
|
46
46
|
"description": "Regeln für bedingte Formatierung entfernen."
|
|
47
47
|
},
|
|
48
|
+
"dataValidationOptions": {
|
|
49
|
+
"label": "Datenüberprüfung",
|
|
50
|
+
"description": "Einschränken, was in Zellen eingegeben werden kann, und Werte markieren, die gegen die Regeln verstoßen.",
|
|
51
|
+
"icon": "DataValidation"
|
|
52
|
+
},
|
|
53
|
+
"dataValidationClearOptions": {
|
|
54
|
+
"label": "Regeln löschen",
|
|
55
|
+
"description": "Regeln zur Datenüberprüfung entfernen."
|
|
56
|
+
},
|
|
48
57
|
"darkModeOptions": {
|
|
49
58
|
"label": "Dunkelmodus-Optionen",
|
|
50
59
|
"description": "Verfügbare Optionen im dunklen Modus",
|
|
@@ -67,16 +76,6 @@
|
|
|
67
76
|
"deleteSheetOptions": {
|
|
68
77
|
"description": "Löschen Sie Zellen, Zeilen, Spalten oder Blätter aus Ihrer Arbeitsmappe.\nUm mehrere Zeilen oder Spalten gleichzeitig zu löschen, markieren Sie mehrere Zeilen oder Spalten und klicken Sie auf Löschen."
|
|
69
78
|
},
|
|
70
|
-
"drawAlignOptions": {
|
|
71
|
-
"label": "Ausrichten",
|
|
72
|
-
"description": "Ändern Sie schnell die Platzierung Ihrer Zeichnungen.",
|
|
73
|
-
"icon": "DrawAlignLeft"
|
|
74
|
-
},
|
|
75
|
-
"drawSizingOptions": {
|
|
76
|
-
"label": "Größenanpassung",
|
|
77
|
-
"description": "Legen Sie fest, wie sich die Zeichnungsgröße bei Änderungen der Zellgröße anpasst.",
|
|
78
|
-
"icon": "DrawResize"
|
|
79
|
-
},
|
|
80
79
|
"fileOptions": {
|
|
81
80
|
"label": "Datei",
|
|
82
81
|
"description": "Optionen zum Speichern und Laden der Arbeitsmappe."
|
|
@@ -95,6 +94,11 @@
|
|
|
95
94
|
"description": "Zellen suchen und ersetzen oder zu einer bestimmten Position wechseln.",
|
|
96
95
|
"icon": "Find"
|
|
97
96
|
},
|
|
97
|
+
"formatCells": {
|
|
98
|
+
"label": "Zellen formatieren",
|
|
99
|
+
"description": "Ändern Sie das Aussehen der ausgewählten Zellen — Zahl, Ausrichtung, Schrift, Füllung und Rahmen.",
|
|
100
|
+
"icon": "CellsFormat"
|
|
101
|
+
},
|
|
98
102
|
"formulaToolbar": {
|
|
99
103
|
"label": "Formeln"
|
|
100
104
|
},
|
|
@@ -118,6 +122,7 @@
|
|
|
118
122
|
"hideUnhideOptions": {
|
|
119
123
|
"label": "Ausblenden und Einblenden"
|
|
120
124
|
},
|
|
125
|
+
"groupOptions": {},
|
|
121
126
|
"homeToolbar": {
|
|
122
127
|
"label": "Start"
|
|
123
128
|
},
|
|
@@ -165,14 +170,21 @@
|
|
|
165
170
|
"description": "Zellen verbinden oder trennen.",
|
|
166
171
|
"icon": "MergeAll"
|
|
167
172
|
},
|
|
168
|
-
"numberFormatDetails": {
|
|
169
|
-
"label": "Zahlenformat",
|
|
170
|
-
"icon": "NumberFormat"
|
|
171
|
-
},
|
|
172
173
|
"pasteOptions": {
|
|
173
174
|
"label": "Einfügen",
|
|
174
175
|
"description": "Inhalte aus der Zwischenablage in Ihr Dokument einfügen."
|
|
175
176
|
},
|
|
177
|
+
"protectionOptions": {
|
|
178
|
+
"description": "Das Blatt schützen, festlegen was bearbeitbar bleibt, und den Arbeitsmappenschutz verwalten."
|
|
179
|
+
},
|
|
180
|
+
"reviewToolbar": {
|
|
181
|
+
"label": "Überprüfen"
|
|
182
|
+
},
|
|
183
|
+
"sheetBackgroundOptions": {
|
|
184
|
+
"description": "Ein Bild hinter den Zellen des Blattes kacheln. Ein Hintergrund wird nur am Bildschirm angezeigt und nie gedruckt.",
|
|
185
|
+
"label": "Hintergrund",
|
|
186
|
+
"icon": "BackgroundImage"
|
|
187
|
+
},
|
|
176
188
|
"sheetZoomOptions": {
|
|
177
189
|
"label": "Zoom",
|
|
178
190
|
"description": "Zoomstufe des aktuellen Blatts festlegen."
|
|
@@ -209,6 +221,7 @@
|
|
|
209
221
|
"label": "Unterstreichen",
|
|
210
222
|
"description": "Alle Unterstreichungsarten."
|
|
211
223
|
},
|
|
224
|
+
"ungroupOptions": {},
|
|
212
225
|
"verticalAlignOptions": {
|
|
213
226
|
"label": "Vertikale Ausrichtung",
|
|
214
227
|
"description": "Festlegen, wie Text in vertikaler Richtung in der Zelle platziert wird."
|