@sheetxl/studio-mui 0.8.0-beta.9 → 1.0.2
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/LICENSE.md +17 -7
- package/browser/esm/{DT71hr6qq9QMKf7Q.mjs → -xbfcBB_r6yovwt0.mjs} +2 -2
- package/browser/esm/0Ui7wtwIglVNcnjK.mjs +975 -0
- package/browser/esm/0pDgMMkwtzP7yApV.mjs +294 -0
- package/browser/esm/3F82kokAv56WeIOp.mjs +94 -0
- package/browser/esm/B7rXnRqYPMeFo7lF.mjs +415 -0
- package/browser/esm/BDXrBgqLv2G_aBxW.mjs +8 -0
- package/browser/esm/{a5G-3nVFn86pvt8H.mjs → BEvHafOOTIvsHfzb.mjs} +82 -94
- package/browser/esm/{BscaD3SzYM6ysjgy.mjs → BF7tsgFfA5kiGqvA.mjs} +5 -5
- package/browser/esm/BGxILWytBh1gGIqX.mjs +1281 -0
- package/browser/esm/BMtcK4QQebSd-gg_.mjs +14 -0
- package/browser/esm/{DpdMtsE7oOAIJqFo.mjs → BN-SV9n15bsIT7UF.mjs} +14 -13
- package/browser/esm/BPw9ZOfyIYNPmxbo.mjs +252 -0
- package/browser/esm/Be-rw5ILGyBK1k5g.mjs +633 -0
- package/browser/esm/Bezw0tyQZcU_2PRi.mjs +242 -0
- package/browser/esm/BjHVW5_EgY2JEOYR.mjs +106 -0
- package/browser/esm/BsQHoNsrcsZZeolo.mjs +103 -0
- package/browser/esm/BtbpQMP61r1e5s6G.mjs +516 -0
- package/browser/esm/BvCt1gSMp3TNaras.mjs +424 -0
- package/browser/esm/By-REgl0FtVnNxzf.mjs +831 -0
- package/browser/esm/{DiKCs9R7e4MgyayQ.mjs → BzPrRiCDzZQnKqH4.mjs} +4 -4
- package/browser/esm/C2NKkLNVwF6qUNv1.mjs +94 -0
- package/browser/esm/C5Y1q7udZf2PwslP.mjs +973 -0
- package/browser/esm/CEbCLniKqzKNP6MP.mjs +392 -0
- package/browser/esm/CFz8KVBAQoF-AJHf.mjs +414 -0
- package/browser/esm/CKVZ-Qa6AcojcV6x.mjs +119 -0
- package/browser/esm/CPawgAiTfoCklxuh.mjs +267 -0
- package/browser/esm/CQyLZmquw7Cn-0Yv.mjs +14 -0
- package/browser/esm/{ipftNUxAU0HR-0YP.mjs → CS7kr0WaYPFpIH95.mjs} +3 -3
- package/browser/esm/CT8hUU9KN4TmEBld.mjs +8547 -0
- package/browser/esm/CX2LPfZw79Z0uRhG.mjs +386 -0
- package/browser/esm/CXViQNtqX1jITZyu.mjs +197 -0
- package/browser/esm/CbNQrqPTogPk-TRE.mjs +1550 -0
- package/browser/esm/{BdkeyaHAtiNa6jqW.mjs → CdeLvf6DfzWVbVw5.mjs} +33 -31
- package/browser/esm/{CawSvjLj4-2Qqyef.mjs → ChytgpwnPlu_VG4E.mjs} +2 -2
- package/browser/esm/CmAMY8rXqmvbCx1E.mjs +360 -0
- package/browser/esm/{BNYKPFICOYt2VRsP.mjs → CukQww6Fo8MyF56L.mjs} +2 -2
- package/browser/esm/Cupln-3vYNmxrrM2.mjs +13 -0
- package/browser/esm/Cy6Q7KGXWYIosYTX.mjs +31 -0
- package/browser/esm/{ffz9LGAgGiWQQav9.mjs → D4IXtjIE97zSR0kY.mjs} +156 -109
- package/browser/esm/D5IXaQlvCuPu8zeG.mjs +72 -0
- package/browser/esm/{CHLqCxo3afOV1Otw.mjs → D6Rur-jnQXX3jzQH.mjs} +4 -4
- package/browser/esm/D8sXey2okO2icU8d.mjs +2692 -0
- package/browser/esm/DE7H4jbuXYB08_dQ.mjs +225 -0
- package/browser/esm/DaISN0TvyxafPIve.mjs +490 -0
- package/browser/esm/{80XYmJwiiFLBmpH2.mjs → DpwtflGvQFbBSLdo.mjs} +47 -48
- package/browser/esm/DrdNTvMdXdsemC4B.mjs +225 -0
- package/browser/esm/DsxPHa5JNx8ovALW.mjs +442 -0
- package/browser/esm/DvJk84TQ-8JsgXcp.mjs +235 -0
- package/browser/esm/Dw9nScfNdZ0Cjwne.mjs +87 -0
- package/browser/esm/{BXQPMQyxdiYwawjE.mjs → PvQUVsO3tH532wV8.mjs} +20 -18
- package/browser/esm/RrujsbEgx2HUeD4s.mjs +161 -0
- package/browser/esm/S2tFDJI2wIBAgQaA.mjs +335 -0
- package/browser/esm/{Cykd-NaZAtHJlQmQ.mjs → STe4CGP-g8tCf7c5.mjs} +2 -2
- package/browser/esm/SgyjQbszb0ptsRk8.mjs +517 -0
- package/browser/esm/d1P5kwJg3I0rdzn5.mjs +318 -0
- package/browser/esm/hfHpykzxUMe5LvVF.mjs +141 -0
- package/browser/esm/{BIZX_0jxF9Fmaxuy.mjs → hjbPNszp95-0VCIw.mjs} +8 -6
- package/browser/esm/index.mjs +1910 -289
- package/browser/esm/sxqx9rjKZcYNC4Hx.mjs +77 -0
- package/browser/esm/{C--IZ8To0PhVLhoX.mjs → voMEQNZgdyO6soYo.mjs} +4 -4
- package/licenses/dependencies.txt +106 -359
- package/node/esm/{C5g2gBoUk3-cn94h.mjs → 1PN4BMQucW63NWcA.mjs} +2 -2
- package/node/esm/{BHuZQ-LJ2GgDLYSz.mjs → 4FcYpbmSwjqrMhol.mjs} +190 -141
- package/node/esm/{9k03YHFiw-wlUS8d.mjs → 6e2HZudCTjTzf6ih.mjs} +2 -2
- package/node/esm/{D4KDk-w7Khu7LrSi.mjs → B1MFTyLMh_SZnQbk.mjs} +70 -71
- package/node/esm/B2WLecbdSqMD1YVq.mjs +519 -0
- package/node/esm/BImYtxlBDnxbuYJQ.mjs +94 -0
- package/node/esm/{CNkqJbFlITxBA0t4.mjs → BQ_0nUqKSPxxzxTT.mjs} +29 -29
- package/node/esm/{Defb5qpSal98J5ay.mjs → BSJerjorDJ4w9N6r.mjs} +2 -2
- package/node/esm/{Dyd7va4aqC1jIzAk.mjs → C0KFwVu86wTgTd54.mjs} +21 -21
- package/node/esm/C0kd2sPUnsgdGUtj.mjs +197 -0
- package/node/esm/C4UnectGYMh-7x7y.mjs +267 -0
- package/node/esm/C5pD4ZSa_HiL9qxk.mjs +14 -0
- package/node/esm/C9W1LtNkMMtOs7Qg.mjs +73 -0
- package/node/esm/CAFHLlFMItMl9TpP.mjs +412 -0
- package/node/esm/CW3fvozHERUfT6Bc.mjs +294 -0
- package/node/esm/CWTDdTicFuH60csl.mjs +972 -0
- package/node/esm/ChO1UxVGRIBuNPOZ.mjs +489 -0
- package/node/esm/{BkoorcOtOEh_Y7ck.mjs → CkIf9KMnQ26-zlEa.mjs} +33 -31
- package/node/esm/CsI3f2TN7jrLwudM.mjs +106 -0
- package/node/esm/CvM_8IuzxswqHgRo.mjs +224 -0
- package/node/esm/D7iklNCWLGeAIvrP.mjs +142 -0
- package/node/esm/D9Inb0eBSow2sR6u.mjs +319 -0
- package/node/esm/DKpUHQxiykyKEuyT.mjs +638 -0
- package/node/esm/DL4-uvtWGuGAfnne.mjs +391 -0
- package/node/esm/{CTtj1NR0IrcN8PTy.mjs → DP_w1SJKb-yFCvb7.mjs} +10 -10
- package/node/esm/DR7dWTccTfAqn8m8.mjs +516 -0
- package/node/esm/DXRJq0Bn7sDr_vXm.mjs +242 -0
- package/node/esm/DZ57bmwliKKBEzB7.mjs +1276 -0
- package/node/esm/Df5VcbKeW9cXY1Lw.mjs +141 -0
- package/node/esm/{b05_u9WnJaVGO0nq.mjs → DxWAgNvtIylA_ta_.mjs} +2 -2
- package/node/esm/GsWeMsCRXwvvpe2Z.mjs +77 -0
- package/node/esm/ONS9B46FEPFzjQsi.mjs +425 -0
- package/node/esm/QfWVpAmFeAecSa0o.mjs +385 -0
- package/node/esm/{BiHw3x2LPWT-kK8G.mjs → RgfhTFBh6fACzrx4.mjs} +84 -96
- package/node/esm/UCHoCHXSYWtQeJ-9.mjs +118 -0
- package/node/esm/index.mjs +9717 -8954
- package/node/esm/mmKhNlIs2nFTMbl5.mjs +94 -0
- package/node/esm/stC67-iHu8jB-gTl.mjs +1831 -0
- package/node/esm/{DHHgNbakbpNnu0oW.mjs → uFGXjoHpIjHX5bT8.mjs} +23 -23
- package/node/esm/z_MOgf-yg9GWQtPj.mjs +975 -0
- package/package.json +16 -19
- package/resources/contents.json +6 -0
- package/resources/locales/contents.json +14 -0
- package/resources/locales/de/groups.cmd.json +59 -10
- package/resources/locales/de/ui.msg.json +267 -14
- package/resources/locales/de/workbookAnomalies.cmd.json +14 -0
- package/resources/locales/en/groups.cmd.json +63 -11
- package/resources/locales/en/ui.msg.json +272 -14
- package/resources/locales/en/workbookAnomalies.cmd.json +14 -0
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
- package/types/src/anomalies/AnomaliesCommands.d.ts +8 -0
- package/types/src/anomalies/AnomaliesMessages.d.ts +30 -0
- package/types/src/anomalies/AnomaliesPlugin.d.ts +12 -0
- package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
- package/types/src/anomalies/_source.d.ts +7 -0
- package/types/src/anomalies/index.d.ts +3 -0
- package/types/src/border/BorderPopupButton.d.ts +1 -1
- package/types/src/border/BorderTemplateIcon.d.ts +6 -1
- package/types/src/chart/ChartFormatPanel.d.ts +20 -0
- package/types/src/chart/ChartPlugin.d.ts +6 -0
- package/types/src/chart/index.d.ts +3 -0
- package/types/src/color/ColorPopupButton.d.ts +1 -1
- package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
- package/types/src/command/ColorCommandButton.d.ts +5 -0
- package/types/src/command/DocThemeCommandButton.d.ts +1 -1
- package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
- package/types/src/command/FontSizeCommandButton.d.ts +1 -1
- package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
- package/types/src/command/LanguageCommandButton.d.ts +1 -1
- package/types/src/command/LocaleCommandButton.d.ts +1 -1
- package/types/src/command/PresetCellStylesCommandButton.d.ts +3 -3
- package/types/src/command/PresetPivotStylesCommandButton.d.ts +17 -0
- package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
- package/types/src/command/index.d.ts +2 -0
- package/types/src/comments/CommentCard.d.ts +2 -2
- package/types/src/comments/CommentsPlugin.d.ts +1 -1
- package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +1 -1
- package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +4 -4
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +3 -3
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
- package/types/src/conditions/CombinatorOption.d.ts +7 -0
- package/types/src/conditions/ConditionEditor.d.ts +55 -3
- package/types/src/conditions/ConditionUtils.d.ts +34 -6
- package/types/src/conditions/ExpressionOption.d.ts +6 -0
- package/types/src/conditions/MembershipOption.d.ts +67 -0
- package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
- package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
- package/types/src/conditions/ScalarOption.d.ts +5 -4
- 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 +2 -2
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +9 -5
- package/types/src/dataValidation/DataValidationIcon.d.ts +1 -1
- package/types/src/dataValidation/DataValidationPlugin.d.ts +1 -1
- package/types/src/dialog/HyperlinkDialog.d.ts +15 -0
- package/types/src/dialog/PivotTableNewDialog.d.ts +11 -0
- package/types/src/dialog/SparklineEditDialog.d.ts +10 -0
- package/types/src/dialog/SparklineNewDialog.d.ts +23 -0
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
- package/types/src/dialog/_ShortcutSearch.d.ts +26 -0
- package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +1 -1
- package/types/src/externalLink/ExternalLinksPlugin.d.ts +1 -1
- package/types/src/fill/GradientEditor.d.ts +15 -13
- package/types/src/fill/GradientStopsBar.d.ts +43 -0
- package/types/src/fill/PatternPopupButton.d.ts +1 -1
- package/types/src/fill/index.d.ts +1 -0
- package/types/src/filter/ColumnMenu.d.ts +31 -1
- package/types/src/filter/PivotMenu.d.ts +31 -0
- package/types/src/filter/index.d.ts +1 -1
- package/types/src/form/FormulaField.d.ts +4 -4
- package/types/src/form/InputField.d.ts +5 -5
- package/types/src/format/BorderPreview.d.ts +11 -4
- package/types/src/format/FillPanel.d.ts +42 -2
- package/types/src/format/FormatPanelParts.d.ts +3 -1
- package/types/src/format/FormatPlugin.d.ts +1 -6
- package/types/src/format/LinePanel.d.ts +53 -0
- package/types/src/format/LinePreviews.d.ts +71 -0
- package/types/src/format/index.d.ts +1 -0
- package/types/src/format/useFormatSelection.d.ts +6 -6
- package/types/src/formulaBar/IFormulaBar.d.ts +32 -3
- package/types/src/formulaBar/MobileFormulaBar.d.ts +42 -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 -6
- package/types/src/itemsPanel/ItemCard.d.ts +50 -7
- package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
- package/types/src/itemsPanel/ItemsSearchField.d.ts +17 -0
- package/types/src/itemsPanel/index.d.ts +1 -0
- package/types/src/named/NamedDetailsPanel.d.ts +2 -2
- package/types/src/named/NamedPlugin.d.ts +1 -1
- package/types/src/picture/PicturePlugin.d.ts +6 -0
- package/types/src/picture/index.d.ts +2 -0
- package/types/src/pivot/PivotChipMenu.d.ts +10 -0
- package/types/src/pivot/PivotPlugin.d.ts +3 -0
- package/types/src/pivot/PivotStyleCanvasPreview.d.ts +23 -0
- package/types/src/pivot/PivotTableHeader.d.ts +12 -0
- package/types/src/pivot/PivotValueSettingsDialog.d.ts +15 -0
- package/types/src/pivot/_pivotSource.d.ts +7 -0
- package/types/src/presence/PresenceOverlay.d.ts +14 -0
- package/types/src/presence/PresencePlugin.d.ts +31 -0
- package/types/src/presence/PresenceStrip.d.ts +22 -0
- package/types/src/presence/PresenceTaskPane.d.ts +13 -0
- package/types/src/presence/Timeline.d.ts +29 -0
- package/types/src/presence/index.d.ts +5 -0
- package/types/src/protection/ProtectedCellsPanel.d.ts +3 -3
- package/types/src/protection/ProtectionPlugin.d.ts +1 -1
- package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
- package/types/src/protection/index.d.ts +1 -1
- package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
- package/types/src/shape/ShapeGalleryCommandButton.d.ts +18 -0
- package/types/src/shape/ShapePlugin.d.ts +8 -0
- package/types/src/shape/index.d.ts +2 -1
- package/types/src/slicer/InsertSlicerCommandButton.d.ts +13 -0
- package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +12 -0
- package/types/src/slicer/SlicerPlugin.d.ts +6 -0
- package/types/src/slicer/index.d.ts +3 -0
- package/types/src/statusBar/PendingStatus.d.ts +19 -0
- package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
- package/types/src/statusBar/index.d.ts +1 -0
- package/types/src/studio/StudioProps.d.ts +62 -27
- package/types/src/studio/formulaBarPlacement.d.ts +35 -0
- package/types/src/studio/useStudioApp.d.ts +25 -24
- package/types/src/table/TablePlugin.d.ts +1 -1
- package/types/src/table/_drawStyleSwatch.d.ts +25 -0
- package/types/src/template/TemplateDialog.d.ts +1 -1
- package/types/src/template/TemplatePanel.d.ts +5 -1
- package/types/src/template/TemplateSearchField.d.ts +17 -1
- package/types/src/template/categoryColor.d.ts +8 -0
- package/types/src/template/useTemplateCatalog.d.ts +2 -0
- package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
- package/types/src/theme/ThemeUtils.d.ts +8 -27
- package/types/src/toolbar/WorkbookToolbars.d.ts +2 -2
- package/types/src/workbook/DefaultRenderers.d.ts +42 -18
- package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
- package/types/src/workbook/WorkbookElement.d.ts +5 -4
- package/types/src/workbook/WorkbookStrip.d.ts +8 -7
- package/types/src/workbook/index.d.ts +1 -1
- package/browser/cjs/2tG9HJLr-WjsOCP3.cjs +0 -1
- package/browser/cjs/3RXtLkq7wTAV6y_e.cjs +0 -1
- package/browser/cjs/3k_KqDFr-AybPztc.cjs +0 -5
- package/browser/cjs/4_Zy3pR6YXkzISoK.cjs +0 -1
- package/browser/cjs/BD50lsTki7wvzb5g.cjs +0 -1
- package/browser/cjs/BJ-wdkCaXqJaejKf.cjs +0 -1
- package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
- package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
- package/browser/cjs/Bc-YisjBtD56vBAW.cjs +0 -1
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/BpG4iwTKbAnpi0wM.cjs +0 -1
- package/browser/cjs/ByIUHPOa02D7XbdC.cjs +0 -1
- package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
- package/browser/cjs/CMfoKJ3ehdXuld_7.cjs +0 -14
- package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
- package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
- package/browser/cjs/CkroJ2FmfFvk6Eyv.cjs +0 -1
- package/browser/cjs/CzJvR12QCQb-0Rtn.cjs +0 -1
- package/browser/cjs/D-Yo5aV9STT5KH4G.cjs +0 -1
- package/browser/cjs/DwkiLFWUtLC8ZcIQ.cjs +0 -1
- package/browser/cjs/HuPFsmz7kyZVo3c7.cjs +0 -1
- package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
- package/browser/cjs/M0_dvdYwhikqP9kg.cjs +0 -2
- package/browser/cjs/g1WhGOz5epV7Hqsg.cjs +0 -8
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
- package/browser/cjs/index.cjs +0 -2
- package/browser/esm/BoLRDhnoO3gvviYD.mjs +0 -13811
- package/browser/esm/CH-Y2-p8GRvCHvd4.mjs +0 -52
- package/browser/esm/CUhtBLyaGSkcKB_1.mjs +0 -236
- package/browser/esm/D-Kit71xiitqCWVY.mjs +0 -5356
- package/browser/esm/DkUDZxFxx9n2Cked.mjs +0 -223
- package/browser/esm/F6kkwcBr0l-496tC.mjs +0 -152
- package/browser/esm/Q8r5yuh8Yx2ROnhC.mjs +0 -115
- package/browser/esm/iRFlbG6hQyKLVagS.mjs +0 -411
- package/browser/esm/lftI5b4ZCHVYc6OZ.mjs +0 -1150
- package/node/esm/BTZGnNrgV1na62gd.mjs +0 -415
- package/node/esm/Be0G9parvc2CTpFQ.mjs +0 -4504
- package/node/esm/CTJqjeq3smY8jw5J.mjs +0 -236
- package/node/esm/DbLFR_dnQQmZC_jm.mjs +0 -115
- package/types/src/conditions/DateTimeOption.d.ts +0 -43
- package/types/src/conditions/ListSourceOption.d.ts +0 -31
- package/types/src/filter/FilterList.d.ts +0 -32
- package/types/src/shape/InsertShapeCommandButton.d.ts +0 -10
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.2
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: MIT
|
|
6
|
+
*/
|
|
7
|
+
import { ColorPopupButton as e } from "./index.mjs";
|
|
8
|
+
import { i as a, n as t, o as r, r as n } from "./CsI3f2TN7jrLwudM.mjs";
|
|
9
|
+
import { t as l } from "./CvM_8IuzxswqHgRo.mjs";
|
|
10
|
+
import { t as s } from "./B2WLecbdSqMD1YVq.mjs";
|
|
11
|
+
import { IFill as i } from "@sheetxl/sdk";
|
|
12
|
+
import { useGridColorScheme as o } from "@sheetxl/react";
|
|
13
|
+
import { useCallbackRef as h, useTranslator as c } from "@sheetxl/utils-react";
|
|
14
|
+
import { memo as d, useEffect as p, useReducer as u, useState as m } from "react";
|
|
15
|
+
import { Fragment as g, jsx as b, jsxs as y } from "react/jsx-runtime";
|
|
16
|
+
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";
|
|
17
|
+
var E = (e) => b(L, {
|
|
18
|
+
variant: "subtitle2",
|
|
19
|
+
component: "div",
|
|
20
|
+
children: e.children
|
|
21
|
+
}), T = (e, a) => {
|
|
22
|
+
const t = a.getChart(), r = a.getPath(), n = a.getParent(), l = () => n ? T(e, n) : "", s = Number(r.split("/").pop());
|
|
23
|
+
switch (a.getElementType()) {
|
|
24
|
+
case "chartArea": return e("chart.pane.element.chartArea");
|
|
25
|
+
case "title": return e("chart.pane.element.title");
|
|
26
|
+
case "legend": return e("chart.pane.element.legend");
|
|
27
|
+
case "legendEntry": return e("chart.pane.element.legendEntry", { index: s + 1 });
|
|
28
|
+
case "plotArea": return e("chart.pane.element.plotArea");
|
|
29
|
+
case "dataTable": return e("chart.pane.element.dataTable");
|
|
30
|
+
case "axis": return ((e, a, t) => {
|
|
31
|
+
const [, r, n] = t.split("/"), l = ((e) => /^(bar|3DBar)/.test(e.getChartType()))(a), s = "category" === n ? !l : "value" !== n || l, i = "series" === n ? e("chart.pane.axisKind.series") : ((e) => /^(xyscatter|bubble)/.test(e.getChartType()))(a) || "value" === n ? e("chart.pane.axisKind.value") : e("chart.pane.axisKind.category"), o = e("chart.pane.axis", {
|
|
32
|
+
side: e(s ? "chart.pane.axisSide.horizontal" : "chart.pane.axisSide.vertical"),
|
|
33
|
+
kind: i
|
|
34
|
+
});
|
|
35
|
+
return "secondary" === r ? e("chart.pane.secondary", { label: o }) : o;
|
|
36
|
+
})(e, t, r);
|
|
37
|
+
case "axisTitle": return e("chart.pane.element.axisTitle", { axis: l() });
|
|
38
|
+
case "gridlines": return r.endsWith("minorGridlines") ? e("chart.pane.element.minorGridlines", { axis: l() }) : e("chart.pane.element.majorGridlines", { axis: l() });
|
|
39
|
+
case "series": return e("chart.pane.element.series", { name: a.getName() ?? "" });
|
|
40
|
+
case "point": return e("chart.pane.element.point", {
|
|
41
|
+
series: l(),
|
|
42
|
+
index: s + 1
|
|
43
|
+
});
|
|
44
|
+
case "marker": return e("chart.pane.element.marker", { owner: l() });
|
|
45
|
+
case "dataLabels": return "series" === n?.getElementType() ? e("chart.pane.element.dataLabels", { series: l() }) : e("chart.pane.element.allDataLabels");
|
|
46
|
+
case "dataLabel": return e("chart.pane.element.dataLabel", { point: l() });
|
|
47
|
+
case "trendline": return e("chart.pane.element.trendline", {
|
|
48
|
+
series: l(),
|
|
49
|
+
index: s + 1
|
|
50
|
+
});
|
|
51
|
+
case "trendlineLabel": return e("chart.pane.element.trendlineLabel", { trendline: l() });
|
|
52
|
+
case "errorBars": return r.endsWith("/x") ? e("chart.pane.element.xErrorBars", { series: l() }) : e("chart.pane.element.yErrorBars", { series: l() });
|
|
53
|
+
case "chartGroup": return e("chart.pane.element.group", { index: s + 1 });
|
|
54
|
+
case "upDownBars": return e("chart.pane.element.upDownBars");
|
|
55
|
+
case "hiLoLines": return e("chart.pane.element.hiLoLines");
|
|
56
|
+
case "dropLines": return e("chart.pane.element.dropLines");
|
|
57
|
+
case "seriesLines": return e("chart.pane.element.seriesLines");
|
|
58
|
+
default: return r;
|
|
59
|
+
}
|
|
60
|
+
}, V = (e, a) => {
|
|
61
|
+
const t = e.getStroke().getFill();
|
|
62
|
+
return t.getType() === i.Type.Solid ? t.getColor() : a.getNormal().getFont().getColor();
|
|
63
|
+
}, P = (e) => {
|
|
64
|
+
const { style: a, sheet: t, disabled: r, label: n } = e, i = c(), h = t.getStyles(), d = "dark" === o(), p = {
|
|
65
|
+
fill: a.getFill(),
|
|
66
|
+
styles: h,
|
|
67
|
+
schemeLookup: h.schemeLookup(),
|
|
68
|
+
darkMode: d,
|
|
69
|
+
disabled: r,
|
|
70
|
+
createCell: (e) => t.createCell(e),
|
|
71
|
+
applyFill: (e, t) => {
|
|
72
|
+
a.setFill(e, { description: t });
|
|
73
|
+
}
|
|
74
|
+
}, u = {
|
|
75
|
+
stroke: a.getStroke(),
|
|
76
|
+
stated: a.toJSON()?.stroke ?? null,
|
|
77
|
+
autoColor: V(a, h),
|
|
78
|
+
styles: h,
|
|
79
|
+
schemeLookup: h.schemeLookup(),
|
|
80
|
+
darkMode: d,
|
|
81
|
+
disabled: r,
|
|
82
|
+
applyStroke: (e, t) => {
|
|
83
|
+
a.setStroke(e, { description: t });
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
return y(g, { children: [
|
|
87
|
+
n ? b(E, { children: n }) : null,
|
|
88
|
+
b(E, { children: i("shape.pane.fill") }),
|
|
89
|
+
b(l, { selection: p }),
|
|
90
|
+
b(E, { children: i("shape.pane.line") }),
|
|
91
|
+
b(s, { selection: u })
|
|
92
|
+
] });
|
|
93
|
+
}, F = (e) => y(C, {
|
|
94
|
+
size: "small",
|
|
95
|
+
fullWidth: !0,
|
|
96
|
+
disabled: e.disabled,
|
|
97
|
+
children: [b(w, { children: e.label }), b(B, {
|
|
98
|
+
label: e.label,
|
|
99
|
+
value: e.value,
|
|
100
|
+
onChange: (a) => e.onChange(a.target.value),
|
|
101
|
+
children: e.options.map((a) => b(k, {
|
|
102
|
+
value: a,
|
|
103
|
+
children: e.labels[a] ?? a
|
|
104
|
+
}, a))
|
|
105
|
+
})]
|
|
106
|
+
}), A = (e) => b(S, {
|
|
107
|
+
label: e.label,
|
|
108
|
+
disabled: e.disabled,
|
|
109
|
+
control: b(x, {
|
|
110
|
+
size: "small",
|
|
111
|
+
checked: e.checked,
|
|
112
|
+
onChange: (a) => e.onChange(a.target.checked)
|
|
113
|
+
})
|
|
114
|
+
}), N = (e) => {
|
|
115
|
+
const [a, t] = m(null), r = () => {
|
|
116
|
+
null !== a && a !== e.value && e.onCommit(a), t(null);
|
|
117
|
+
};
|
|
118
|
+
return b(f, {
|
|
119
|
+
size: "small",
|
|
120
|
+
fullWidth: !0,
|
|
121
|
+
label: e.label,
|
|
122
|
+
disabled: e.disabled,
|
|
123
|
+
value: a ?? e.value,
|
|
124
|
+
onChange: (e) => t(e.target.value),
|
|
125
|
+
onBlur: r,
|
|
126
|
+
onKeyDown: (e) => {
|
|
127
|
+
"Enter" === e.key && r();
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}, D = [
|
|
131
|
+
"none",
|
|
132
|
+
"single",
|
|
133
|
+
"double"
|
|
134
|
+
], O = [
|
|
135
|
+
"none",
|
|
136
|
+
"single",
|
|
137
|
+
"double"
|
|
138
|
+
], z = (r) => {
|
|
139
|
+
const { font: l, styles: s, disabled: i, run: d } = r, p = c(), u = "dark" === o(), m = h(() => s.recentColors(), [s]), v = l.getColor(), x = {
|
|
140
|
+
none: p("chart.pane.text.lineNone"),
|
|
141
|
+
single: p("chart.pane.text.lineSingle"),
|
|
142
|
+
double: p("chart.pane.text.lineDouble")
|
|
143
|
+
};
|
|
144
|
+
return y(g, { children: [
|
|
145
|
+
b(E, { children: p("chart.pane.text") }),
|
|
146
|
+
b(a, { children: b(N, {
|
|
147
|
+
label: p("format.fontFamily"),
|
|
148
|
+
value: l.getFamily(),
|
|
149
|
+
disabled: i,
|
|
150
|
+
onCommit: (e) => d(() => l.setFamily(e || null))
|
|
151
|
+
}) }),
|
|
152
|
+
b(a, { children: y(n, { children: [b(t, {
|
|
153
|
+
label: p("format.fontSize"),
|
|
154
|
+
value: l.getSize(),
|
|
155
|
+
min: 1,
|
|
156
|
+
max: 400,
|
|
157
|
+
step: 1,
|
|
158
|
+
decimals: !0,
|
|
159
|
+
width: 96,
|
|
160
|
+
disabled: i,
|
|
161
|
+
onChange: (e) => d(() => l.setSize(e))
|
|
162
|
+
}), b(e, {
|
|
163
|
+
icon: "text.colored",
|
|
164
|
+
disabled: i,
|
|
165
|
+
darkMode: u,
|
|
166
|
+
compareRGB: !0,
|
|
167
|
+
selectedColor: v,
|
|
168
|
+
onSelectColor: (e, a) => {
|
|
169
|
+
e && a && s.addRecentColor(e), d(() => l.setColor(e ? e.toString() : null));
|
|
170
|
+
},
|
|
171
|
+
propsPanel: {
|
|
172
|
+
disableAlpha: !0,
|
|
173
|
+
schemeLookup: s.schemeLookup(),
|
|
174
|
+
recentColors: m
|
|
175
|
+
}
|
|
176
|
+
})] }) }),
|
|
177
|
+
b(a, { children: y(n, { children: [b(A, {
|
|
178
|
+
label: p("chart.pane.text.bold"),
|
|
179
|
+
checked: l.getBold(),
|
|
180
|
+
disabled: i,
|
|
181
|
+
onChange: (e) => d(() => l.setBold(e))
|
|
182
|
+
}), b(A, {
|
|
183
|
+
label: p("chart.pane.text.italic"),
|
|
184
|
+
checked: l.getItalic(),
|
|
185
|
+
disabled: i,
|
|
186
|
+
onChange: (e) => d(() => l.setItalic(e))
|
|
187
|
+
})] }) }),
|
|
188
|
+
b(a, { children: y(n, { children: [b(F, {
|
|
189
|
+
label: p("chart.pane.text.underline"),
|
|
190
|
+
value: D.includes(l.getUnderline()) ? l.getUnderline() : "single",
|
|
191
|
+
options: D,
|
|
192
|
+
labels: x,
|
|
193
|
+
disabled: i,
|
|
194
|
+
onChange: (e) => d(() => l.setUnderline(e))
|
|
195
|
+
}), b(F, {
|
|
196
|
+
label: p("chart.pane.text.strike"),
|
|
197
|
+
value: l.getStrike(),
|
|
198
|
+
options: O,
|
|
199
|
+
labels: x,
|
|
200
|
+
disabled: i,
|
|
201
|
+
onChange: (e) => d(() => l.setStrike(e))
|
|
202
|
+
})] }) })
|
|
203
|
+
] });
|
|
204
|
+
}, K = [
|
|
205
|
+
"top",
|
|
206
|
+
"bottom",
|
|
207
|
+
"left",
|
|
208
|
+
"right",
|
|
209
|
+
"corner"
|
|
210
|
+
], G = [
|
|
211
|
+
"center",
|
|
212
|
+
"insideEnd",
|
|
213
|
+
"insideBase",
|
|
214
|
+
"outsideEnd",
|
|
215
|
+
"left",
|
|
216
|
+
"right",
|
|
217
|
+
"top",
|
|
218
|
+
"bottom",
|
|
219
|
+
"bestFit"
|
|
220
|
+
], R = [
|
|
221
|
+
"linear",
|
|
222
|
+
"exponential",
|
|
223
|
+
"logarithmic",
|
|
224
|
+
"polynomial",
|
|
225
|
+
"power",
|
|
226
|
+
"movingAverage"
|
|
227
|
+
], W = [
|
|
228
|
+
"fixedValue",
|
|
229
|
+
"percent",
|
|
230
|
+
"stDev",
|
|
231
|
+
"stError"
|
|
232
|
+
], M = [
|
|
233
|
+
"both",
|
|
234
|
+
"plusValues",
|
|
235
|
+
"minusValues"
|
|
236
|
+
], j = (e) => {
|
|
237
|
+
const { element: a, disabled: l, run: s } = e, i = c(), o = (e, a, t) => b(A, {
|
|
238
|
+
label: e,
|
|
239
|
+
checked: a,
|
|
240
|
+
disabled: l,
|
|
241
|
+
onChange: (e) => s(() => t(e))
|
|
242
|
+
}), h = [], d = () => a;
|
|
243
|
+
switch (a.getElementType()) {
|
|
244
|
+
case "chartArea": {
|
|
245
|
+
const e = d();
|
|
246
|
+
h.push(o(i("chart.pane.roundedCorners"), e.getRoundedCorners(), (a) => e.setRoundedCorners(a)));
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
case "title":
|
|
250
|
+
case "axisTitle": {
|
|
251
|
+
const e = d();
|
|
252
|
+
h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), h.push(b(N, {
|
|
253
|
+
label: i("chart.pane.titleText"),
|
|
254
|
+
value: e.getText() ?? "",
|
|
255
|
+
disabled: l,
|
|
256
|
+
onCommit: (a) => s(() => e.setText(a || null))
|
|
257
|
+
}, "text")), h.push(o(i("chart.pane.overlay"), e.getOverlay(), (a) => e.setOverlay(a)));
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
case "legend": {
|
|
261
|
+
const e = d();
|
|
262
|
+
h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), h.push(b(F, {
|
|
263
|
+
label: i("chart.pane.position"),
|
|
264
|
+
value: e.getPosition(),
|
|
265
|
+
options: K,
|
|
266
|
+
disabled: l,
|
|
267
|
+
labels: {
|
|
268
|
+
top: i("chart.pane.side.top"),
|
|
269
|
+
bottom: i("chart.pane.side.bottom"),
|
|
270
|
+
left: i("chart.pane.side.left"),
|
|
271
|
+
right: i("chart.pane.side.right"),
|
|
272
|
+
corner: i("chart.pane.side.corner")
|
|
273
|
+
},
|
|
274
|
+
onChange: (a) => s(() => e.setPosition(a))
|
|
275
|
+
}, "position")), h.push(o(i("chart.pane.overlay"), e.getOverlay(), (a) => e.setOverlay(a)));
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
case "axis": {
|
|
279
|
+
const e = d();
|
|
280
|
+
if (h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), h.push(o(i("chart.pane.reverse"), e.getReversePlotOrder(), (a) => e.setReversePlotOrder(a))), "value" === e.getKind()) {
|
|
281
|
+
const a = (e, a, r) => b(t, {
|
|
282
|
+
label: e,
|
|
283
|
+
value: a ?? 0,
|
|
284
|
+
min: -0x38d7ea4c68000,
|
|
285
|
+
max: 0x38d7ea4c68000,
|
|
286
|
+
decimals: !0,
|
|
287
|
+
width: 120,
|
|
288
|
+
disabled: l,
|
|
289
|
+
onChange: (e) => s(() => r(e))
|
|
290
|
+
}, e);
|
|
291
|
+
h.push(y(n, { children: [a(i("chart.pane.minimum"), e.getMinimum(), (a) => e.setMinimum(a)), a(i("chart.pane.maximum"), e.getMaximum(), (a) => e.setMaximum(a))] }, "bounds")), h.push(b(N, {
|
|
292
|
+
label: i("chart.pane.numberFormat"),
|
|
293
|
+
value: e.getNumberFormat() ?? "",
|
|
294
|
+
disabled: l,
|
|
295
|
+
onCommit: (a) => s(() => a ? e.setNumberFormat(a) : e.setLinkNumberFormat(!0))
|
|
296
|
+
}, "format"));
|
|
297
|
+
}
|
|
298
|
+
break;
|
|
299
|
+
}
|
|
300
|
+
case "gridlines":
|
|
301
|
+
case "upDownBars":
|
|
302
|
+
case "hiLoLines":
|
|
303
|
+
case "dropLines":
|
|
304
|
+
case "seriesLines": {
|
|
305
|
+
const e = d();
|
|
306
|
+
h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a)));
|
|
307
|
+
break;
|
|
308
|
+
}
|
|
309
|
+
case "series": {
|
|
310
|
+
const e = d();
|
|
311
|
+
h.push(o(i("chart.pane.secondaryAxis"), "secondary" === e.getAxisGroup(), (a) => e.setAxisGroup(a ? "secondary" : "primary")));
|
|
312
|
+
const a = e.getGapWidth(), r = e.getOverlap();
|
|
313
|
+
null === a && null === r || h.push(y(n, { children: [null !== r ? b(t, {
|
|
314
|
+
label: i("chart.pane.overlap"),
|
|
315
|
+
value: r,
|
|
316
|
+
min: -100,
|
|
317
|
+
max: 100,
|
|
318
|
+
width: 96,
|
|
319
|
+
disabled: l,
|
|
320
|
+
onChange: (a) => s(() => e.setOverlap(a))
|
|
321
|
+
}) : null, null !== a ? b(t, {
|
|
322
|
+
label: i("chart.pane.gapWidth"),
|
|
323
|
+
value: a,
|
|
324
|
+
min: 0,
|
|
325
|
+
max: 500,
|
|
326
|
+
width: 96,
|
|
327
|
+
disabled: l,
|
|
328
|
+
onChange: (a) => s(() => e.setGapWidth(a))
|
|
329
|
+
}) : null] }, "gap")), /^(line|xyscatter)/.test(e.getChartType()) && h.push(o(i("chart.pane.smooth"), e.getSmooth(), (a) => e.setSmooth(a)));
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
case "dataLabels":
|
|
333
|
+
case "dataLabel": {
|
|
334
|
+
const e = d();
|
|
335
|
+
h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), h.push(o(i("chart.pane.labels.value"), e.getShowValue(), (a) => e.setShowValue(a))), h.push(o(i("chart.pane.labels.category"), e.getShowCategoryName(), (a) => e.setShowCategoryName(a))), h.push(o(i("chart.pane.labels.series"), e.getShowSeriesName(), (a) => e.setShowSeriesName(a))), h.push(o(i("chart.pane.labels.percentage"), e.getShowPercentage(), (a) => e.setShowPercentage(a))), h.push(o(i("chart.pane.labels.legendKey"), e.getShowLegendKey(), (a) => e.setShowLegendKey(a))), h.push(b(F, {
|
|
336
|
+
label: i("chart.pane.position"),
|
|
337
|
+
value: e.getPosition(),
|
|
338
|
+
options: G,
|
|
339
|
+
disabled: l,
|
|
340
|
+
labels: {
|
|
341
|
+
center: i("chart.pane.labels.center"),
|
|
342
|
+
insideEnd: i("chart.pane.labels.insideEnd"),
|
|
343
|
+
insideBase: i("chart.pane.labels.insideBase"),
|
|
344
|
+
outsideEnd: i("chart.pane.labels.outsideEnd"),
|
|
345
|
+
left: i("chart.pane.side.left"),
|
|
346
|
+
right: i("chart.pane.side.right"),
|
|
347
|
+
top: i("chart.pane.side.top"),
|
|
348
|
+
bottom: i("chart.pane.side.bottom"),
|
|
349
|
+
bestFit: i("chart.pane.labels.bestFit")
|
|
350
|
+
},
|
|
351
|
+
onChange: (a) => s(() => e.setPosition(a))
|
|
352
|
+
}, "position"));
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
case "trendline": {
|
|
356
|
+
const e = d();
|
|
357
|
+
h.push(b(F, {
|
|
358
|
+
label: i("chart.pane.trendline.type"),
|
|
359
|
+
value: e.getType(),
|
|
360
|
+
options: R,
|
|
361
|
+
disabled: l,
|
|
362
|
+
labels: {
|
|
363
|
+
linear: i("chart.pane.trendline.linear"),
|
|
364
|
+
exponential: i("chart.pane.trendline.exponential"),
|
|
365
|
+
logarithmic: i("chart.pane.trendline.logarithmic"),
|
|
366
|
+
polynomial: i("chart.pane.trendline.polynomial"),
|
|
367
|
+
power: i("chart.pane.trendline.power"),
|
|
368
|
+
movingAverage: i("chart.pane.trendline.movingAverage")
|
|
369
|
+
},
|
|
370
|
+
onChange: (a) => s(() => e.setType(a))
|
|
371
|
+
}, "type")), h.push(o(i("chart.pane.trendline.equation"), e.getShowEquation(), (a) => e.setShowEquation(a))), h.push(o(i("chart.pane.trendline.rSquared"), e.getShowRSquared(), (a) => e.setShowRSquared(a))), h.push(y(n, { children: [b(t, {
|
|
372
|
+
label: i("chart.pane.trendline.forward"),
|
|
373
|
+
value: e.getForwardPeriod(),
|
|
374
|
+
min: 0,
|
|
375
|
+
max: 1e6,
|
|
376
|
+
decimals: !0,
|
|
377
|
+
width: 96,
|
|
378
|
+
disabled: l,
|
|
379
|
+
onChange: (a) => s(() => e.setForwardPeriod(a))
|
|
380
|
+
}), b(t, {
|
|
381
|
+
label: i("chart.pane.trendline.backward"),
|
|
382
|
+
value: e.getBackwardPeriod(),
|
|
383
|
+
min: 0,
|
|
384
|
+
max: 1e6,
|
|
385
|
+
decimals: !0,
|
|
386
|
+
width: 96,
|
|
387
|
+
disabled: l,
|
|
388
|
+
onChange: (a) => s(() => e.setBackwardPeriod(a))
|
|
389
|
+
})] }, "periods"));
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
case "errorBars": {
|
|
393
|
+
const e = d();
|
|
394
|
+
h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), h.push(b(F, {
|
|
395
|
+
label: i("chart.pane.errorBars.type"),
|
|
396
|
+
value: "custom" === e.getType() ? "fixedValue" : e.getType(),
|
|
397
|
+
options: W,
|
|
398
|
+
disabled: l,
|
|
399
|
+
labels: {
|
|
400
|
+
fixedValue: i("chart.pane.errorBars.fixedValue"),
|
|
401
|
+
percent: i("chart.pane.errorBars.percent"),
|
|
402
|
+
stDev: i("chart.pane.errorBars.stDev"),
|
|
403
|
+
stError: i("chart.pane.errorBars.stError")
|
|
404
|
+
},
|
|
405
|
+
onChange: (a) => s(() => e.setType(a))
|
|
406
|
+
}, "type"));
|
|
407
|
+
const a = e.getAmount();
|
|
408
|
+
null !== a && h.push(b(t, {
|
|
409
|
+
label: i("chart.pane.errorBars.amount"),
|
|
410
|
+
value: a,
|
|
411
|
+
min: 0,
|
|
412
|
+
max: 0x38d7ea4c68000,
|
|
413
|
+
decimals: !0,
|
|
414
|
+
width: 120,
|
|
415
|
+
disabled: l,
|
|
416
|
+
onChange: (a) => s(() => e.setAmount(a))
|
|
417
|
+
}, "amount")), h.push(b(F, {
|
|
418
|
+
label: i("chart.pane.errorBars.direction"),
|
|
419
|
+
value: e.getInclude(),
|
|
420
|
+
options: M,
|
|
421
|
+
disabled: l,
|
|
422
|
+
labels: {
|
|
423
|
+
both: i("chart.pane.errorBars.both"),
|
|
424
|
+
plusValues: i("chart.pane.errorBars.plus"),
|
|
425
|
+
minusValues: i("chart.pane.errorBars.minus")
|
|
426
|
+
},
|
|
427
|
+
onChange: (a) => s(() => e.setInclude(a))
|
|
428
|
+
}, "include")), h.push(o(i("chart.pane.errorBars.cap"), e.getEndStyleCap(), (a) => e.setEndStyleCap(a)));
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
case "dataTable": {
|
|
432
|
+
const e = d();
|
|
433
|
+
h.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), h.push(o(i("chart.pane.labels.legendKey"), e.getShowLegendKey(), (a) => e.setShowLegendKey(a))), h.push(o(i("chart.pane.table.horizontal"), e.getShowHorizontalBorder(), (a) => e.setShowHorizontalBorder(a))), h.push(o(i("chart.pane.table.vertical"), e.getShowVerticalBorder(), (a) => e.setShowVerticalBorder(a))), h.push(o(i("chart.pane.table.outline"), e.getShowOutlineBorder(), (a) => e.setShowOutlineBorder(a)));
|
|
434
|
+
break;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
return 0 === h.length ? null : y(g, { children: [b(E, { children: i("chart.pane.options") }), b(v, {
|
|
438
|
+
sx: {
|
|
439
|
+
...r,
|
|
440
|
+
gap: 1
|
|
441
|
+
},
|
|
442
|
+
children: h.map((e, a) => b(v, { children: e }, a))
|
|
443
|
+
})] });
|
|
444
|
+
}, q = d((e) => {
|
|
445
|
+
const { movable: a, sheet: t } = e, n = c(), l = a.getContent(), [, s] = u((e) => e + 1, 0);
|
|
446
|
+
p(() => l.addListeners({ onAnyChange: s }), [l]);
|
|
447
|
+
const i = t.getView().getChartElementSelection();
|
|
448
|
+
p(() => i.addListeners({ onChange: s }), [i]);
|
|
449
|
+
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 = h((e) => {
|
|
450
|
+
try {
|
|
451
|
+
e(), S(null);
|
|
452
|
+
} catch (e) {
|
|
453
|
+
S(e?.message ?? String(e));
|
|
454
|
+
}
|
|
455
|
+
}, []), N = f.getStyle?.(), D = N?.isITextBoxStyle ? N.getFont() : null, O = "legendEntry" === f.getElementType() ? null : N, K = "upDownBars" === f.getElementType() ? f : null;
|
|
456
|
+
return y(v, {
|
|
457
|
+
sx: {
|
|
458
|
+
...r,
|
|
459
|
+
gap: 2,
|
|
460
|
+
paddingTop: (e) => e.spacing(1)
|
|
461
|
+
},
|
|
462
|
+
children: [
|
|
463
|
+
y(C, {
|
|
464
|
+
size: "small",
|
|
465
|
+
fullWidth: !0,
|
|
466
|
+
children: [b(w, { children: n("chart.pane.element") }), b(B, {
|
|
467
|
+
label: n("chart.pane.element"),
|
|
468
|
+
value: f.getPath(),
|
|
469
|
+
onChange: (e) => ((e) => {
|
|
470
|
+
d(e), S(null);
|
|
471
|
+
const a = l.getElement(e);
|
|
472
|
+
a && "chartArea" !== a.getElementType() ? i.select([a]) : i.clear();
|
|
473
|
+
})(e.target.value),
|
|
474
|
+
children: V.map((e) => b(k, {
|
|
475
|
+
value: e.getPath(),
|
|
476
|
+
children: T(n, e)
|
|
477
|
+
}, e.getPath()))
|
|
478
|
+
})]
|
|
479
|
+
}),
|
|
480
|
+
x ? b(L, {
|
|
481
|
+
variant: "caption",
|
|
482
|
+
color: "error",
|
|
483
|
+
children: x
|
|
484
|
+
}) : null,
|
|
485
|
+
b(j, {
|
|
486
|
+
element: f,
|
|
487
|
+
disabled: F,
|
|
488
|
+
run: A
|
|
489
|
+
}, `options:${f.getPath()}`),
|
|
490
|
+
D ? b(z, {
|
|
491
|
+
font: D,
|
|
492
|
+
styles: t.getStyles(),
|
|
493
|
+
disabled: F,
|
|
494
|
+
run: A
|
|
495
|
+
}, `text:${f.getPath()}`) : null,
|
|
496
|
+
O ? b(P, {
|
|
497
|
+
style: O,
|
|
498
|
+
sheet: t,
|
|
499
|
+
disabled: F
|
|
500
|
+
}, `style:${f.getPath()}`) : null,
|
|
501
|
+
K ? y(g, { children: [b(P, {
|
|
502
|
+
style: K.getUpBarsStyle(),
|
|
503
|
+
sheet: t,
|
|
504
|
+
disabled: F,
|
|
505
|
+
label: n("chart.pane.upBars")
|
|
506
|
+
}, "up"), b(P, {
|
|
507
|
+
style: K.getDownBarsStyle(),
|
|
508
|
+
sheet: t,
|
|
509
|
+
disabled: F,
|
|
510
|
+
label: n("chart.pane.downBars")
|
|
511
|
+
}, "down")] }) : null
|
|
512
|
+
]
|
|
513
|
+
});
|
|
514
|
+
});
|
|
515
|
+
q.displayName = "ChartFormatPanel";
|
|
516
|
+
export { q as ChartFormatPanel };
|