@sheetxl/studio-mui 0.8.0-beta.2 → 0.8.0-beta.20
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/3xocDjPLOJXjOs3x.mjs +633 -0
- package/browser/esm/4RkuBXBVmw7VYQ2a.mjs +490 -0
- package/browser/esm/6R-JS1ZrhnwQAyOl.mjs +975 -0
- package/browser/esm/B4L3swgLGqcOHo7U.mjs +335 -0
- package/browser/esm/BAFzUBAc7BpGUWl_.mjs +87 -0
- package/browser/esm/{DIGlcemS7napWyKW.mjs → BENsK9C3A3CnZyXZ.mjs} +8 -6
- package/browser/esm/BRnwCembfaZpk0sc.mjs +1288 -0
- package/browser/esm/BSVc4NYkBnFa7T_w.mjs +119 -0
- package/browser/esm/{C5-J1xiO3O1-qaaP.mjs → BTWjCKBwd6qXldxi.mjs} +83 -95
- package/browser/esm/BWSZkGPSgg9pPKni.mjs +1550 -0
- package/browser/esm/{B1YOQZHyO_dmHUN4.mjs → BXVE3yfw5gdtyl-s.mjs} +2 -2
- package/browser/esm/Bfb84N1ywaVZm9kH.mjs +72 -0
- package/browser/esm/{C2Eke_9Dj_m6mtMj.mjs → BrZVnbTt-3DeAMxo.mjs} +47 -48
- package/browser/esm/BrdpRbJ-xKeF87FO.mjs +392 -0
- package/browser/esm/{xGJU5xUJx3HF317Q.mjs → BtrFK5bYpBJfHRDr.mjs} +14 -13
- package/browser/esm/BuSv-OgJpZJGjcyA.mjs +318 -0
- package/browser/esm/C1XMVwyIJNbYmtkV.mjs +414 -0
- package/browser/esm/{DE7MVTTfExTzvyMW.mjs → C2MuUgU0H05eZ5qQ.mjs} +33 -31
- package/browser/esm/{Dv3hSCyjvwo6GcH1.mjs → C5ZWkOAoFpcZwFw2.mjs} +4 -4
- package/browser/esm/C72jL8eQk_hPFDLn.mjs +8 -0
- package/browser/esm/CDJ0jdx7Km3a5v6w.mjs +294 -0
- package/browser/esm/CGDNdoMTlI8f1kRw.mjs +14 -0
- package/browser/esm/{Bo74PCF42KVYJF0j.mjs → CGomW4hI6SQ96yIm.mjs} +4 -4
- package/browser/esm/CHT8_XB3_hp307XA.mjs +68 -0
- package/browser/esm/{CppDmJ4ckCH3alQf.mjs → COkfKd7FvEtpgAAI.mjs} +156 -109
- package/browser/esm/CSgwY4Yb3l0WoprP.mjs +225 -0
- package/browser/esm/CgvHVv7iIzRRgmlF.mjs +197 -0
- package/browser/esm/ClqW5S7FR6Pwmp1U.mjs +442 -0
- package/browser/esm/ColttpEsydVwkHtf.mjs +77 -0
- package/browser/esm/Cvwz0PddEGW1FJ4c.mjs +94 -0
- package/browser/esm/CzfkYZGGhFc_gq0P.mjs +424 -0
- package/browser/esm/D-3WlyQuxUZCwLkb.mjs +831 -0
- package/browser/esm/D3Aests6-QUrBfmJ.mjs +235 -0
- package/browser/esm/D3bI-7D37_22_-T9.mjs +31 -0
- package/browser/esm/D7ZdGXqJXmdAHu8I.mjs +14 -0
- package/browser/esm/D83oSH8xR3JfeRjI.mjs +242 -0
- package/browser/esm/DCxc5HMSf1ZSHRoi.mjs +412 -0
- package/browser/esm/{DSGFnb1gYyL22p0t.mjs → DF0hjPW_C_3TpnDs.mjs} +20 -18
- package/browser/esm/DGFdTu5VfKecMohK.mjs +386 -0
- package/browser/esm/DHrJOjy3Du7ZBo96.mjs +360 -0
- package/browser/esm/DIZ9pueRPHaNzQqo.mjs +103 -0
- package/browser/esm/DMifD__JRvHH4COB.mjs +106 -0
- package/browser/esm/{D7fA9EyCNSzQMgxg.mjs → DQNnDQPNut_4wO6Y.mjs} +2 -2
- package/browser/esm/D_VpGjXScR-D-TWZ.mjs +2699 -0
- package/browser/esm/DdtM4Sy4hFIFwWvO.mjs +13 -0
- package/browser/esm/De7cege6OU7QJqBb.mjs +225 -0
- package/browser/esm/{iM5uEM9H4e8HGt5y.mjs → DobmIAozt-IiJp1P.mjs} +3 -3
- package/browser/esm/DwYjy-b-w1xnqteA.mjs +267 -0
- package/browser/esm/JBCZvp0T2f4n-Csb.mjs +94 -0
- package/browser/esm/LOzFCd9lrGWhNoCz.mjs +161 -0
- package/browser/esm/LQC_4LWJQR_JjcxV.mjs +141 -0
- package/browser/esm/UC9qbIWz2dYrCbJn.mjs +252 -0
- package/browser/esm/{CNLLwRPWnd4PJgPO.mjs → VoncM-mkj4eoKD1J.mjs} +5 -5
- package/browser/esm/{BlZiWp3SB3wH5O38.mjs → bOlMSpqTkmRboj5-.mjs} +4 -4
- package/browser/esm/hbiHjiOvIyYM3TIl.mjs +517 -0
- package/browser/esm/index.mjs +1878 -286
- package/browser/esm/mlTMBwB5PG7Fo1mU.mjs +8547 -0
- package/browser/esm/nmox4_ypwR5ILBKj.mjs +516 -0
- package/browser/esm/p-2ZZeZwGZfutcDk.mjs +973 -0
- package/browser/esm/{_v6Wbw_y3QgJy3qY.mjs → xLnpGjmsP-zJuXUE.mjs} +2 -2
- package/licenses/dependencies.txt +113 -366
- package/node/esm/3MP8rnjjEE0LpSoH.mjs +638 -0
- package/node/esm/{C0M1VbsIRuRauUI-.mjs → 539u16kqHOnXHBnN.mjs} +85 -97
- package/node/esm/{BMoRatciTqOi1HkT.mjs → B1WnY8cmRz7W1yrZ.mjs} +21 -21
- package/node/esm/B5kuWO6ix3DmmdhQ.mjs +391 -0
- package/node/esm/{DN-bhyNbuBbNB0Ky.mjs → BCYThTuIrSXfyd-N.mjs} +3 -3
- package/node/esm/{DVshSSmP5QZU7GoY.mjs → BJLg7uLC_b9f_1NJ.mjs} +29 -29
- package/node/esm/BWIatgbno8eMdTy4.mjs +385 -0
- package/node/esm/BXKb4oUGpTWCF8ni.mjs +412 -0
- package/node/esm/B_TEor8YFmwmyhWj.mjs +294 -0
- package/node/esm/Bqda2dQ0l75gjnDb.mjs +267 -0
- package/node/esm/BqkiJZsCP2hEkJs9.mjs +142 -0
- package/node/esm/C-s3vhDAhWAnJntP.mjs +118 -0
- package/node/esm/CAfDDLrXsXte2avr.mjs +224 -0
- package/node/esm/{DvMAUBSQsZmIsRxi.mjs → CDj1mR4aA0wufjjK.mjs} +2 -2
- package/node/esm/CJX21c9lbs0lFHFH.mjs +14 -0
- package/node/esm/CN5U8EzIhztKzktG.mjs +425 -0
- package/node/esm/CY8Mel9qXoQcoE6D.mjs +516 -0
- package/node/esm/Cs9OyntWvICLrQk-.mjs +141 -0
- package/node/esm/{BoDCV8cDmFVAYtaW.mjs → CsnknBUOfx3FVTP_.mjs} +2 -2
- package/node/esm/{CCWQ116Z67Kz78Uo.mjs → D8RVd9U84QC8lAvP.mjs} +33 -31
- package/node/esm/DAuVxjZwldORNkvx.mjs +1838 -0
- package/node/esm/DLx_RKfK6MMX0tiy.mjs +94 -0
- package/node/esm/DSZIOgi3X_EmsT65.mjs +106 -0
- package/node/esm/D_dyzcsGBlCNrIVJ.mjs +73 -0
- package/node/esm/Dbg6kW_63xZ_x2es.mjs +975 -0
- package/node/esm/DcIZXVJ5TJYu8Xf1.mjs +68 -0
- package/node/esm/DcIySopuRr-At74Y.mjs +94 -0
- package/node/esm/{DVaQ6xIbKQgBk0uw.mjs → Dpzk8tIhwke93vji.mjs} +70 -71
- package/node/esm/FHL9tW8a0eqpp8dm.mjs +1283 -0
- package/node/esm/GeLMvw9JlqlFr6jw.mjs +972 -0
- package/node/esm/{BJi0FlhIqCMEwROu.mjs → N8h_Ft32UJATwjlk.mjs} +190 -141
- package/node/esm/{cJDXopFIX6f3_oi3.mjs → VeNMuIWoztqGMKsZ.mjs} +2 -2
- package/node/esm/XJAfD-_V2Sx4aW33.mjs +77 -0
- package/node/esm/bIfQAr55kQq2xXaT.mjs +197 -0
- package/node/esm/e5DJjIF9cuF9r_ub.mjs +242 -0
- package/node/esm/h0ih_bazDGjgIXQd.mjs +489 -0
- package/node/esm/index.mjs +10334 -8697
- package/node/esm/rEdJke7xorzb_Nmh.mjs +519 -0
- package/node/esm/uCFRHXTVhzTQ53TT.mjs +319 -0
- package/node/esm/{DAji2BXelmIUxioS.mjs → ymnOnQfaRduubuPk.mjs} +23 -23
- 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 +61 -10
- package/resources/locales/de/ui.msg.json +293 -17
- package/resources/locales/de/workbookAnomalies.cmd.json +14 -0
- package/resources/locales/en/groups.cmd.json +71 -11
- package/resources/locales/en/ui.msg.json +298 -17
- package/resources/locales/en/workbookAnomalies.cmd.json +14 -0
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +10 -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 +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/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/BetweenOption.d.ts +5 -0
- 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 +19 -0
- 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/OutlineSettingsDialog.d.ts +12 -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/dialog/index.d.ts +0 -1
- 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 +10 -4
- package/types/src/form/InputField.d.ts +5 -5
- package/types/src/format/AlignmentPanel.d.ts +1 -2
- package/types/src/format/BorderPreview.d.ts +33 -16
- 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 +7 -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 -5
- package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
- package/types/src/itemsPanel/EditorPanel.d.ts +1 -2
- package/types/src/itemsPanel/ItemCard.d.ts +50 -7
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +13 -0
- 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 +2 -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 +3 -0
- 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/CommandsWrapper.d.ts +2 -0
- package/types/src/studio/StudioCommandProvider.d.ts +7 -0
- package/types/src/studio/StudioCommands.d.ts +2 -2
- package/types/src/studio/StudioProps.d.ts +50 -22
- package/types/src/studio/StudioSplitPane.d.ts +1 -1
- package/types/src/studio/formulaBarPlacement.d.ts +35 -0
- package/types/src/studio/useStudioApp.d.ts +23 -23
- 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 +7 -5
- package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
- package/types/src/toolbar/WorkbookToolbars.d.ts +2 -2
- package/types/src/workbook/DefaultRenderers.d.ts +45 -15
- 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 +5 -4
- package/types/src/workbook/WorkbookStrip.d.ts +8 -7
- package/types/src/workbook/index.d.ts +1 -1
- package/browser/cjs/3k_KqDFr-AybPztc.cjs +0 -5
- package/browser/cjs/3uprnzi2l0iT17Dg.cjs +0 -1
- package/browser/cjs/B9GcCj7sj8XdjPZF.cjs +0 -1
- package/browser/cjs/BGvoJjUs21bbuE1i.cjs +0 -1
- package/browser/cjs/BHb7TnK1NmimV4OX.cjs +0 -1
- package/browser/cjs/BJ-wdkCaXqJaejKf.cjs +0 -1
- package/browser/cjs/BNqyPYRxYISp-uEg.cjs +0 -1
- package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
- package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
- package/browser/cjs/BXkdjAb4jpTr412c.cjs +0 -1
- package/browser/cjs/Bc-YisjBtD56vBAW.cjs +0 -1
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
- package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
- package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
- package/browser/cjs/CuqM721PsKey3yMP.cjs +0 -1
- package/browser/cjs/Cy_XmYq6BsWmCXkk.cjs +0 -3
- package/browser/cjs/D948H7ell-f87BX3.cjs +0 -1
- package/browser/cjs/Dy6O3OWbDBKIj_Ak.cjs +0 -8
- package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
- package/browser/cjs/M0_dvdYwhikqP9kg.cjs +0 -2
- package/browser/cjs/QI6GKw7uo1f8gY8C.cjs +0 -1
- package/browser/cjs/eCw4rAEIYE3BftpG.cjs +0 -1
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
- package/browser/cjs/index.cjs +0 -2
- package/browser/cjs/rCZbExyf1Q3aHloQ.cjs +0 -13
- package/browser/esm/894KM-_Oc5cB6ExA.mjs +0 -97
- package/browser/esm/BQSamOMBAoFdQdJe.mjs +0 -12903
- package/browser/esm/CIbDvsCeLOFHzzId.mjs +0 -152
- package/browser/esm/CyHNVjgkMYZYlJpY.mjs +0 -5315
- package/browser/esm/D8VPmFDvXDE778_x.mjs +0 -222
- package/browser/esm/DEEnXLhYlUARg6MU.mjs +0 -410
- package/browser/esm/DN4cwAPYCrtR4gS9.mjs +0 -236
- package/browser/esm/DlEshYp6NPfHxFvI.mjs +0 -115
- package/browser/esm/GmQ9XFFY3hi1L_Ej.mjs +0 -1150
- package/browser/esm/z3zkU7Jf3WJ2_Z_P.mjs +0 -52
- package/node/esm/BI8XFczUY--Db2n3.mjs +0 -98
- package/node/esm/BgxeTfCn3jZHGwd7.mjs +0 -414
- package/node/esm/C_oV7ldFStOF_fAd.mjs +0 -115
- package/node/esm/Dbv0IltYad9SQrj3.mjs +0 -236
- package/node/esm/OmUP1AfaJcOxWQAg.mjs +0 -4462
- package/types/src/conditions/DateTimeOption.d.ts +0 -43
- package/types/src/conditions/ListSourceOption.d.ts +0 -31
- package/types/src/dialog/CommentsDialog.d.ts +0 -11
- package/types/src/filter/FilterList.d.ts +0 -31
|
@@ -0,0 +1,973 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.20
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: MIT
|
|
6
|
+
*/
|
|
7
|
+
import { r as e, t } from "./D-3WlyQuxUZCwLkb.mjs";
|
|
8
|
+
import { t as n } from "./DIZ9pueRPHaNzQqo.mjs";
|
|
9
|
+
import { t as r } from "./BENsK9C3A3CnZyXZ.mjs";
|
|
10
|
+
import { n as i, r as a, t as o } from "./DHrJOjy3Du7ZBo96.mjs";
|
|
11
|
+
import { i as s, n as c, o as l, r as u, t as d } from "./DMifD__JRvHH4COB.mjs";
|
|
12
|
+
import { t as f } from "./CzfkYZGGhFc_gq0P.mjs";
|
|
13
|
+
import { n as p, t as m } from "./De7cege6OU7QJqBb.mjs";
|
|
14
|
+
import { IBorders as h, IRange as g, NumberFormat as _ } from "@sheetxl/sdk";
|
|
15
|
+
import { StaticBorderRenderer as v, StaticCellRenderer as y, useGridColorScheme as b, useModelListener as x, useModelSync as S } from "@sheetxl/react";
|
|
16
|
+
import { DynamicIcon as ee, useCallbackRef as C, useCommands as te, usePersistentState as w, useTranslator as T } from "@sheetxl/utils-react";
|
|
17
|
+
import { memo as E, useCallback as D, useEffect as ne, useMemo as O, useReducer as re, useRef as ie, useState as k } from "react";
|
|
18
|
+
import { CommandButton as A, ExhibitIconButton as ae, PopupButtonType as oe } from "@sheetxl/utils-mui";
|
|
19
|
+
import { jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
20
|
+
import { Box as N, Paper as P, Tab as F, Tabs as se, Typography as ce, alpha as I } from "@mui/material";
|
|
21
|
+
import { messageKey as L } from "@sheetxl/utils";
|
|
22
|
+
var R = {
|
|
23
|
+
autoFocus: !1,
|
|
24
|
+
scrollIntoView: !1
|
|
25
|
+
}, z = E((e) => {
|
|
26
|
+
let { selection: t, height: n = 46, maxWidth: r = 260, ...i } = e, a = T(), { cell: o, createCell: s, disabled: c } = t, l = O(() => typeof o.getValue() == "number" ? o : s({
|
|
27
|
+
value: 1234.56,
|
|
28
|
+
style: o.getStyle()
|
|
29
|
+
}), [o, s]);
|
|
30
|
+
return M(N, {
|
|
31
|
+
sx: {
|
|
32
|
+
display: "flex",
|
|
33
|
+
flexDirection: "column",
|
|
34
|
+
gap: .5
|
|
35
|
+
},
|
|
36
|
+
...i,
|
|
37
|
+
children: [j(ce, {
|
|
38
|
+
variant: "caption",
|
|
39
|
+
component: "div",
|
|
40
|
+
children: a("format.preview")
|
|
41
|
+
}), j(y, {
|
|
42
|
+
cell: l,
|
|
43
|
+
disabled: c,
|
|
44
|
+
style: {
|
|
45
|
+
width: "100%",
|
|
46
|
+
maxWidth: `${r}px`,
|
|
47
|
+
height: `${n}px`,
|
|
48
|
+
flex: "0 0 auto",
|
|
49
|
+
border: "1px solid var(--sxl-color-base-300, rgb(224, 224, 224))"
|
|
50
|
+
},
|
|
51
|
+
propsBorder: { style: {
|
|
52
|
+
height: "100%",
|
|
53
|
+
width: "100%"
|
|
54
|
+
} }
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
z.displayName = "FormatCellPreview";
|
|
59
|
+
var B = {
|
|
60
|
+
axes: g.AxisSelection.Column,
|
|
61
|
+
expandOnly: !0,
|
|
62
|
+
skipCustomSize: !0
|
|
63
|
+
}, V = (e) => e > 180 ? e - 360 : e, H = (e) => {
|
|
64
|
+
let t = Math.max(-90, Math.min(90, Math.round(e)));
|
|
65
|
+
return t < 0 ? t + 360 : t;
|
|
66
|
+
}, U = E((e) => {
|
|
67
|
+
let { selection: t, disabled: n, className: i, ...a } = e, o = T(), { style: f, applyStyle: p } = t, m = n || t.disabled, h = f.getAlignment(), g = h.getIndent(), _ = h.getStacked(), v = _ ? 0 : h.getRotation(), y = C((e) => {
|
|
68
|
+
p({ alignment: { indent: e } }, L("op.setAlignment"), B);
|
|
69
|
+
}, [p]), b = C((e) => {
|
|
70
|
+
p({ alignment: { rotation: H(e) } }, L("op.setAlignment"));
|
|
71
|
+
}, [p]);
|
|
72
|
+
return M(N, {
|
|
73
|
+
className: r("sxl-format-alignment-panel", i),
|
|
74
|
+
sx: l,
|
|
75
|
+
...a,
|
|
76
|
+
children: [
|
|
77
|
+
j(s, {
|
|
78
|
+
label: o("format.horizontalAlignment"),
|
|
79
|
+
children: j(u, { children: M(d, { children: [
|
|
80
|
+
j(A, {
|
|
81
|
+
commandKey: "formatAlignLeftToggle",
|
|
82
|
+
groupKey: "horizontalAlignOptions",
|
|
83
|
+
disabled: m
|
|
84
|
+
}),
|
|
85
|
+
j(A, {
|
|
86
|
+
commandKey: "formatAlignCenterToggle",
|
|
87
|
+
groupKey: "horizontalAlignOptions",
|
|
88
|
+
disabled: m
|
|
89
|
+
}),
|
|
90
|
+
j(A, {
|
|
91
|
+
commandKey: "formatAlignRightToggle",
|
|
92
|
+
groupKey: "horizontalAlignOptions",
|
|
93
|
+
disabled: m
|
|
94
|
+
}),
|
|
95
|
+
j(A, {
|
|
96
|
+
commandKey: "formatAlignJustifyToggle",
|
|
97
|
+
groupKey: "horizontalAlignOptions",
|
|
98
|
+
disabled: m
|
|
99
|
+
}),
|
|
100
|
+
j(A, {
|
|
101
|
+
commandKey: "formatAlignDistributedHorizontalToggle",
|
|
102
|
+
groupKey: "horizontalAlignOptions",
|
|
103
|
+
disabled: m
|
|
104
|
+
}),
|
|
105
|
+
j(A, {
|
|
106
|
+
commandKey: "formatAlignCenterContinuousToggle",
|
|
107
|
+
groupKey: "horizontalAlignOptions",
|
|
108
|
+
disabled: m
|
|
109
|
+
}),
|
|
110
|
+
j(A, {
|
|
111
|
+
commandKey: "formatAlignFillToggle",
|
|
112
|
+
groupKey: "horizontalAlignOptions",
|
|
113
|
+
disabled: m
|
|
114
|
+
})
|
|
115
|
+
] }) })
|
|
116
|
+
}),
|
|
117
|
+
j(s, {
|
|
118
|
+
label: o("format.indent"),
|
|
119
|
+
children: M(u, { children: [
|
|
120
|
+
j(A, {
|
|
121
|
+
commandKey: "formatIndentDecrease",
|
|
122
|
+
groupKey: "horizontalAlignOptions",
|
|
123
|
+
disabled: m
|
|
124
|
+
}),
|
|
125
|
+
j(A, {
|
|
126
|
+
commandKey: "formatIndentIncrease",
|
|
127
|
+
groupKey: "horizontalAlignOptions",
|
|
128
|
+
disabled: m
|
|
129
|
+
}),
|
|
130
|
+
j(c, {
|
|
131
|
+
label: o("format.indentUnit"),
|
|
132
|
+
disabled: m,
|
|
133
|
+
value: g,
|
|
134
|
+
min: 0,
|
|
135
|
+
max: 250,
|
|
136
|
+
width: 104,
|
|
137
|
+
onChange: y
|
|
138
|
+
})
|
|
139
|
+
] })
|
|
140
|
+
}),
|
|
141
|
+
j(s, {
|
|
142
|
+
label: o("format.verticalAlignment"),
|
|
143
|
+
children: M(d, { children: [
|
|
144
|
+
j(A, {
|
|
145
|
+
commandKey: "formatAlignTopToggle",
|
|
146
|
+
groupKey: "verticalAlignOptions",
|
|
147
|
+
disabled: m
|
|
148
|
+
}),
|
|
149
|
+
j(A, {
|
|
150
|
+
commandKey: "formatAlignMiddleToggle",
|
|
151
|
+
groupKey: "verticalAlignOptions",
|
|
152
|
+
disabled: m
|
|
153
|
+
}),
|
|
154
|
+
j(A, {
|
|
155
|
+
commandKey: "formatAlignBottomToggle",
|
|
156
|
+
groupKey: "verticalAlignOptions",
|
|
157
|
+
disabled: m
|
|
158
|
+
}),
|
|
159
|
+
j(A, {
|
|
160
|
+
commandKey: "formatAlignJustifyVerticalToggle",
|
|
161
|
+
groupKey: "verticalAlignOptions",
|
|
162
|
+
disabled: m
|
|
163
|
+
}),
|
|
164
|
+
j(A, {
|
|
165
|
+
commandKey: "formatAlignDistributedVerticalToggle",
|
|
166
|
+
groupKey: "verticalAlignOptions",
|
|
167
|
+
disabled: m
|
|
168
|
+
})
|
|
169
|
+
] })
|
|
170
|
+
}),
|
|
171
|
+
j(s, {
|
|
172
|
+
label: o("format.overflow"),
|
|
173
|
+
children: M(d, { children: [
|
|
174
|
+
j(A, {
|
|
175
|
+
commandKey: "formatTextOverflowWrapToggle",
|
|
176
|
+
groupKey: "textOverflowOptions",
|
|
177
|
+
disabled: m
|
|
178
|
+
}),
|
|
179
|
+
j(A, {
|
|
180
|
+
commandKey: "formatTextOverflowShrinkToggle",
|
|
181
|
+
groupKey: "textOverflowOptions",
|
|
182
|
+
disabled: m
|
|
183
|
+
}),
|
|
184
|
+
j(A, {
|
|
185
|
+
commandKey: "formatTextOverflowClipToggle",
|
|
186
|
+
groupKey: "textOverflowOptions",
|
|
187
|
+
disabled: m
|
|
188
|
+
}),
|
|
189
|
+
j(A, {
|
|
190
|
+
commandKey: "formatTextOverflowVisibleToggle",
|
|
191
|
+
groupKey: "textOverflowOptions",
|
|
192
|
+
disabled: m
|
|
193
|
+
})
|
|
194
|
+
] })
|
|
195
|
+
}),
|
|
196
|
+
j(s, {
|
|
197
|
+
label: o("format.merge"),
|
|
198
|
+
children: M(d, { children: [
|
|
199
|
+
j(A, {
|
|
200
|
+
commandKey: "mergeToggle",
|
|
201
|
+
groupKey: "mergeOptions",
|
|
202
|
+
disabled: m
|
|
203
|
+
}),
|
|
204
|
+
j(A, {
|
|
205
|
+
commandKey: "mergeHorizontal",
|
|
206
|
+
groupKey: "mergeOptions",
|
|
207
|
+
disabled: m
|
|
208
|
+
}),
|
|
209
|
+
j(A, {
|
|
210
|
+
commandKey: "mergeVertical",
|
|
211
|
+
groupKey: "mergeOptions",
|
|
212
|
+
disabled: m
|
|
213
|
+
}),
|
|
214
|
+
j(A, {
|
|
215
|
+
commandKey: "unmerge",
|
|
216
|
+
groupKey: "mergeOptions",
|
|
217
|
+
disabled: m
|
|
218
|
+
})
|
|
219
|
+
] })
|
|
220
|
+
}),
|
|
221
|
+
j(s, {
|
|
222
|
+
label: o("format.orientation"),
|
|
223
|
+
children: M(u, { children: [M(d, { children: [
|
|
224
|
+
j(A, {
|
|
225
|
+
commandKey: "formatTextRotate0",
|
|
226
|
+
groupKey: "textRotateOptions",
|
|
227
|
+
disabled: m
|
|
228
|
+
}),
|
|
229
|
+
j(A, {
|
|
230
|
+
commandKey: "formatTextRotate45",
|
|
231
|
+
groupKey: "textRotateOptions",
|
|
232
|
+
disabled: m
|
|
233
|
+
}),
|
|
234
|
+
j(A, {
|
|
235
|
+
commandKey: "formatTextRotate315",
|
|
236
|
+
groupKey: "textRotateOptions",
|
|
237
|
+
disabled: m
|
|
238
|
+
}),
|
|
239
|
+
j(A, {
|
|
240
|
+
commandKey: "formatTextRotate90",
|
|
241
|
+
groupKey: "textRotateOptions",
|
|
242
|
+
disabled: m
|
|
243
|
+
}),
|
|
244
|
+
j(A, {
|
|
245
|
+
commandKey: "formatTextRotateVertical",
|
|
246
|
+
groupKey: "textRotateOptions",
|
|
247
|
+
disabled: m
|
|
248
|
+
}),
|
|
249
|
+
j(A, {
|
|
250
|
+
commandKey: "formatTextRotate270",
|
|
251
|
+
groupKey: "textRotateOptions",
|
|
252
|
+
disabled: m
|
|
253
|
+
})
|
|
254
|
+
] }), j(c, {
|
|
255
|
+
label: o("format.degrees"),
|
|
256
|
+
disabled: m || _,
|
|
257
|
+
value: V(v),
|
|
258
|
+
min: -90,
|
|
259
|
+
max: 90,
|
|
260
|
+
step: 5,
|
|
261
|
+
width: 104,
|
|
262
|
+
onChange: b
|
|
263
|
+
})] })
|
|
264
|
+
})
|
|
265
|
+
]
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
U.displayName = "AlignmentPanel";
|
|
269
|
+
var W = E((e) => {
|
|
270
|
+
let { selection: t, disabled: n, className: c, ...f } = e, p = T(), m = n || t.disabled;
|
|
271
|
+
return M(N, {
|
|
272
|
+
className: r("sxl-format-font-panel", c),
|
|
273
|
+
sx: l,
|
|
274
|
+
...f,
|
|
275
|
+
children: [
|
|
276
|
+
j(s, {
|
|
277
|
+
label: p("format.fontFamily"),
|
|
278
|
+
children: j(o, {
|
|
279
|
+
commandKey: "formatFontFamily",
|
|
280
|
+
disabled: m,
|
|
281
|
+
sx: { width: "100%" }
|
|
282
|
+
})
|
|
283
|
+
}),
|
|
284
|
+
j(s, {
|
|
285
|
+
label: p("format.fontSize"),
|
|
286
|
+
children: M(u, { children: [
|
|
287
|
+
j(a, {
|
|
288
|
+
commandKey: "formatFontSize",
|
|
289
|
+
disabled: m,
|
|
290
|
+
sx: { width: 96 }
|
|
291
|
+
}),
|
|
292
|
+
j(A, {
|
|
293
|
+
commandKey: "formatFontSizeIncrease",
|
|
294
|
+
disabled: m
|
|
295
|
+
}),
|
|
296
|
+
j(A, {
|
|
297
|
+
commandKey: "formatFontSizeDecrease",
|
|
298
|
+
disabled: m
|
|
299
|
+
})
|
|
300
|
+
] })
|
|
301
|
+
}),
|
|
302
|
+
j(s, {
|
|
303
|
+
label: p("format.color"),
|
|
304
|
+
children: j(u, { children: j(i, {
|
|
305
|
+
commandKey: "formatFontColor",
|
|
306
|
+
disabled: m
|
|
307
|
+
}) })
|
|
308
|
+
}),
|
|
309
|
+
j(s, {
|
|
310
|
+
label: p("format.effects"),
|
|
311
|
+
children: M(d, { children: [
|
|
312
|
+
j(A, {
|
|
313
|
+
commandKey: "formatBoldToggle",
|
|
314
|
+
disabled: m
|
|
315
|
+
}),
|
|
316
|
+
j(A, {
|
|
317
|
+
commandKey: "formatItalicToggle",
|
|
318
|
+
disabled: m
|
|
319
|
+
}),
|
|
320
|
+
j(A, {
|
|
321
|
+
commandKey: "formatUnderlinedToggle",
|
|
322
|
+
groupKey: "underlineOptions",
|
|
323
|
+
disabled: m
|
|
324
|
+
}),
|
|
325
|
+
j(A, {
|
|
326
|
+
commandKey: "formatUnderlinedDoubleToggle",
|
|
327
|
+
groupKey: "underlineOptions",
|
|
328
|
+
disabled: m
|
|
329
|
+
}),
|
|
330
|
+
j(N, { sx: { width: "8px" } }),
|
|
331
|
+
j(A, {
|
|
332
|
+
commandKey: "formatStrikeThroughToggle",
|
|
333
|
+
disabled: m
|
|
334
|
+
}),
|
|
335
|
+
j(A, {
|
|
336
|
+
commandKey: "formatSuperscriptToggle",
|
|
337
|
+
disabled: m
|
|
338
|
+
}),
|
|
339
|
+
j(A, {
|
|
340
|
+
commandKey: "formatSubscriptToggle",
|
|
341
|
+
disabled: m
|
|
342
|
+
})
|
|
343
|
+
] })
|
|
344
|
+
}),
|
|
345
|
+
j(s, {
|
|
346
|
+
label: p("format.accountingUnderline"),
|
|
347
|
+
children: M(d, { children: [j(A, {
|
|
348
|
+
commandKey: "formatUnderlinedAccountingToggle",
|
|
349
|
+
groupKey: "underlineOptions",
|
|
350
|
+
disabled: m
|
|
351
|
+
}), j(A, {
|
|
352
|
+
commandKey: "formatUnderlinedAccountingDoubleToggle",
|
|
353
|
+
groupKey: "underlineOptions",
|
|
354
|
+
disabled: m
|
|
355
|
+
})] })
|
|
356
|
+
})
|
|
357
|
+
]
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
W.displayName = "FontPanel";
|
|
361
|
+
var G = Object.freeze([
|
|
362
|
+
h.Edge.Top,
|
|
363
|
+
h.Edge.Bottom,
|
|
364
|
+
h.Edge.Left,
|
|
365
|
+
h.Edge.Right,
|
|
366
|
+
h.Edge.Horizontal,
|
|
367
|
+
h.Edge.Vertical
|
|
368
|
+
]), K = Object.freeze([]), le = Object.freeze([h.Edge.Horizontal, h.Edge.Vertical]), q = new Map([
|
|
369
|
+
...G,
|
|
370
|
+
h.Edge.DiagonalUp,
|
|
371
|
+
h.Edge.DiagonalDown
|
|
372
|
+
].map((e) => [e, Object.freeze([e])])), J = (e) => e === h.Edge.DiagonalUp || e === h.Edge.DiagonalDown;
|
|
373
|
+
function Y(e, t) {
|
|
374
|
+
switch (t) {
|
|
375
|
+
case h.Edge.Top: return e("border.top");
|
|
376
|
+
case h.Edge.Left: return e("border.left");
|
|
377
|
+
case h.Edge.Right: return e("border.right");
|
|
378
|
+
case h.Edge.Bottom: return e("border.bottom");
|
|
379
|
+
case h.Edge.Horizontal: return e("border.insideHorizontal");
|
|
380
|
+
case h.Edge.Vertical: return e("border.insideVertical");
|
|
381
|
+
case h.Edge.DiagonalUp: return e("border.diagonalUp");
|
|
382
|
+
case h.Edge.DiagonalDown: return e("border.diagonalDown");
|
|
383
|
+
default: return t;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
var ue = (e) => e === 0 ? "0px" : e === 1 ? "calc(100% - 1px)" : `calc(${100 * e}% - 0.5px)`, de = (e, t) => {
|
|
387
|
+
let n = "-7px", r = [];
|
|
388
|
+
for (let e = 0; e <= t; e++) {
|
|
389
|
+
let i = ue(e / t);
|
|
390
|
+
r.push({
|
|
391
|
+
left: i,
|
|
392
|
+
top: n,
|
|
393
|
+
width: "1px",
|
|
394
|
+
height: "5px"
|
|
395
|
+
}), r.push({
|
|
396
|
+
left: i,
|
|
397
|
+
bottom: n,
|
|
398
|
+
width: "1px",
|
|
399
|
+
height: "5px"
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
for (let t = 0; t <= e; t++) {
|
|
403
|
+
let i = ue(t / e);
|
|
404
|
+
r.push({
|
|
405
|
+
top: i,
|
|
406
|
+
left: n,
|
|
407
|
+
height: "1px",
|
|
408
|
+
width: "5px"
|
|
409
|
+
}), r.push({
|
|
410
|
+
top: i,
|
|
411
|
+
right: n,
|
|
412
|
+
height: "1px",
|
|
413
|
+
width: "5px"
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
return r;
|
|
417
|
+
}, fe = (e) => e === h.Edge.Left || e === h.Edge.Vertical || e === h.Edge.Right, pe = (e) => {
|
|
418
|
+
switch (e) {
|
|
419
|
+
case h.Edge.Top:
|
|
420
|
+
case h.Edge.Left: return 0;
|
|
421
|
+
case h.Edge.Horizontal:
|
|
422
|
+
case h.Edge.Vertical: return .5;
|
|
423
|
+
default: return 1;
|
|
424
|
+
}
|
|
425
|
+
}, me = (e) => {
|
|
426
|
+
let { edges: t, createBorder: n, onToggleEdges: i, omittedEdges: a, disabled: o = !1, height: s = 104, className: c, ...l } = e, u = T(), d = ie(null), [f, p] = k(K), m = D((e) => !a?.includes(e), [a]), g = D((e) => !o && m(e), [o, m]), _ = m(h.Edge.Horizontal) ? 2 : 1, y = m(h.Edge.Vertical) ? 2 : 1, b = D((e) => n({
|
|
427
|
+
top: e.rowIndex === 0 ? t.top : t.horizontal,
|
|
428
|
+
bottom: e.rowIndex === _ - 1 ? t.bottom : t.horizontal,
|
|
429
|
+
left: e.colIndex === 0 ? t.left : t.vertical,
|
|
430
|
+
right: e.colIndex === y - 1 ? t.right : t.vertical,
|
|
431
|
+
diagonalUp: t.diagonalUp,
|
|
432
|
+
diagonalDown: t.diagonalDown
|
|
433
|
+
}), [
|
|
434
|
+
t,
|
|
435
|
+
n,
|
|
436
|
+
_,
|
|
437
|
+
y
|
|
438
|
+
]), x = D((e) => {
|
|
439
|
+
let t = d.current;
|
|
440
|
+
if (!t) return K;
|
|
441
|
+
let n = t.getBoundingClientRect();
|
|
442
|
+
return function(e, t, n, r, i) {
|
|
443
|
+
if (n <= 0 || r <= 0) return K;
|
|
444
|
+
let a = Math.min(10, n / 5, r / 5);
|
|
445
|
+
if (le.every(i) && Math.abs(e - n / 2) <= a && Math.abs(t - r / 2) <= a) return le;
|
|
446
|
+
let o = Math.abs(e) <= a, s = Math.abs(e - n) <= a, c = Math.abs(t) <= a, l = Math.abs(t - r) <= a;
|
|
447
|
+
if ((o || s) && (c || l)) {
|
|
448
|
+
let e = o === c ? h.Edge.DiagonalDown : h.Edge.DiagonalUp;
|
|
449
|
+
if (i(e)) return q.get(e);
|
|
450
|
+
}
|
|
451
|
+
let u = null, d = Infinity;
|
|
452
|
+
for (let a of G) {
|
|
453
|
+
if (!i(a)) continue;
|
|
454
|
+
let o = fe(a), s = o ? r : n, c = o ? t : e, l = Math.max(0, -c, c - s), f = (o ? e : t) - pe(a) * (o ? n : r), p = Math.hypot(l, f);
|
|
455
|
+
p < d && (d = p, u = a);
|
|
456
|
+
}
|
|
457
|
+
return u && d <= a ? q.get(u) : K;
|
|
458
|
+
}(e.clientX - n.left, e.clientY - n.top, n.width, n.height, g);
|
|
459
|
+
}, [g]);
|
|
460
|
+
return j(N, {
|
|
461
|
+
className: r("sxl-border-preview", c),
|
|
462
|
+
...l,
|
|
463
|
+
onPointerMove: (e) => p(x(e)),
|
|
464
|
+
onPointerLeave: () => p(K),
|
|
465
|
+
onClick: (e) => {
|
|
466
|
+
let t = x(e);
|
|
467
|
+
t.length > 0 && i(t);
|
|
468
|
+
},
|
|
469
|
+
sx: {
|
|
470
|
+
position: "relative",
|
|
471
|
+
boxSizing: "border-box",
|
|
472
|
+
height: `${s}px`,
|
|
473
|
+
width: "100%",
|
|
474
|
+
padding: "10px",
|
|
475
|
+
cursor: f.length > 0 ? "pointer" : "default",
|
|
476
|
+
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
477
|
+
border: (e) => `1px solid ${e.palette.divider}`,
|
|
478
|
+
opacity: o ? .6 : 1
|
|
479
|
+
},
|
|
480
|
+
children: M(N, {
|
|
481
|
+
ref: d,
|
|
482
|
+
sx: {
|
|
483
|
+
position: "relative",
|
|
484
|
+
width: "100%",
|
|
485
|
+
height: "100%"
|
|
486
|
+
},
|
|
487
|
+
children: [
|
|
488
|
+
j(N, {
|
|
489
|
+
"aria-hidden": "true",
|
|
490
|
+
sx: {
|
|
491
|
+
position: "absolute",
|
|
492
|
+
inset: 0,
|
|
493
|
+
display: "grid",
|
|
494
|
+
gridTemplateColumns: `repeat(${y}, 1fr)`,
|
|
495
|
+
gridTemplateRows: `repeat(${_}, 1fr)`,
|
|
496
|
+
gap: "2px",
|
|
497
|
+
pointerEvents: "none",
|
|
498
|
+
"& > div": { backgroundColor: (e) => I(e.palette.text.primary, .05) }
|
|
499
|
+
},
|
|
500
|
+
children: Array.from({ length: _ * y }, (e, t) => j("div", {}, t))
|
|
501
|
+
}),
|
|
502
|
+
j(N, {
|
|
503
|
+
"aria-hidden": "true",
|
|
504
|
+
sx: {
|
|
505
|
+
position: "absolute",
|
|
506
|
+
inset: 0,
|
|
507
|
+
pointerEvents: "none",
|
|
508
|
+
"& > div": {
|
|
509
|
+
position: "absolute",
|
|
510
|
+
backgroundColor: (e) => e.palette.text.secondary
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
children: de(_, y).map((e, t) => j("div", { style: e }, t))
|
|
514
|
+
}),
|
|
515
|
+
f.length > 0 ? M(N, {
|
|
516
|
+
"aria-hidden": "true",
|
|
517
|
+
sx: {
|
|
518
|
+
position: "absolute",
|
|
519
|
+
inset: 0,
|
|
520
|
+
pointerEvents: "none",
|
|
521
|
+
opacity: .22,
|
|
522
|
+
"& > div": {
|
|
523
|
+
position: "absolute",
|
|
524
|
+
borderRadius: "3px",
|
|
525
|
+
backgroundColor: (e) => e.palette.text.primary
|
|
526
|
+
},
|
|
527
|
+
"& line": { stroke: (e) => e.palette.text.primary }
|
|
528
|
+
},
|
|
529
|
+
children: [f.filter((e) => !J(e)).map((e) => j("div", { style: he(e) }, e)), f.some(J) ? j("svg", {
|
|
530
|
+
viewBox: "0 0 100 100",
|
|
531
|
+
preserveAspectRatio: "none",
|
|
532
|
+
style: {
|
|
533
|
+
position: "absolute",
|
|
534
|
+
inset: 0,
|
|
535
|
+
width: "100%",
|
|
536
|
+
height: "100%",
|
|
537
|
+
overflow: "visible"
|
|
538
|
+
},
|
|
539
|
+
children: f.filter(J).flatMap((e) => function(e, t, n) {
|
|
540
|
+
let r = [];
|
|
541
|
+
for (let i = 0; i < t; i++) for (let a = 0; a < n; a++) {
|
|
542
|
+
let o = a / n * 100, s = (a + 1) / n * 100, c = i / t * 100, l = (i + 1) / t * 100, u = e === h.Edge.DiagonalDown;
|
|
543
|
+
r.push(j("line", {
|
|
544
|
+
x1: o,
|
|
545
|
+
y1: u ? c : l,
|
|
546
|
+
x2: s,
|
|
547
|
+
y2: u ? l : c,
|
|
548
|
+
strokeWidth: 6,
|
|
549
|
+
strokeLinecap: "round",
|
|
550
|
+
vectorEffect: "non-scaling-stroke"
|
|
551
|
+
}, `${e}:${i}:${a}`));
|
|
552
|
+
}
|
|
553
|
+
return r;
|
|
554
|
+
}(e, _, y))
|
|
555
|
+
}) : null]
|
|
556
|
+
}) : null,
|
|
557
|
+
j(v, {
|
|
558
|
+
getBorderAt: b,
|
|
559
|
+
rowCount: _,
|
|
560
|
+
columnCount: y,
|
|
561
|
+
style: {
|
|
562
|
+
position: "absolute",
|
|
563
|
+
inset: 0,
|
|
564
|
+
height: "100%",
|
|
565
|
+
width: "100%"
|
|
566
|
+
}
|
|
567
|
+
}),
|
|
568
|
+
G.filter(m).map((e) => j(N, {
|
|
569
|
+
component: "button",
|
|
570
|
+
type: "button",
|
|
571
|
+
"aria-label": Y(u, e),
|
|
572
|
+
"aria-pressed": !!t[e],
|
|
573
|
+
title: Y(u, e),
|
|
574
|
+
disabled: !g(e),
|
|
575
|
+
onClick: (t) => {
|
|
576
|
+
t.stopPropagation(), i(q.get(e));
|
|
577
|
+
},
|
|
578
|
+
sx: {
|
|
579
|
+
position: "absolute",
|
|
580
|
+
appearance: "none",
|
|
581
|
+
background: "transparent",
|
|
582
|
+
border: "none",
|
|
583
|
+
padding: 0,
|
|
584
|
+
pointerEvents: "none",
|
|
585
|
+
borderRadius: "3px",
|
|
586
|
+
"&:focus-visible": { outline: (e) => `2px solid ${e.palette.primary.main}` },
|
|
587
|
+
...he(e)
|
|
588
|
+
}
|
|
589
|
+
}, e))
|
|
590
|
+
]
|
|
591
|
+
})
|
|
592
|
+
});
|
|
593
|
+
};
|
|
594
|
+
function he(e) {
|
|
595
|
+
let t = `calc(${100 * pe(e)}% - 3px)`;
|
|
596
|
+
return fe(e) ? {
|
|
597
|
+
top: 0,
|
|
598
|
+
bottom: 0,
|
|
599
|
+
left: t,
|
|
600
|
+
width: "6px"
|
|
601
|
+
} : {
|
|
602
|
+
left: 0,
|
|
603
|
+
right: 0,
|
|
604
|
+
top: t,
|
|
605
|
+
height: "6px"
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
me.displayName = "BorderPreview";
|
|
609
|
+
var ge = h.StrokeStyle.Thin, X = Object.freeze([
|
|
610
|
+
h.Edge.Left,
|
|
611
|
+
h.Edge.Top,
|
|
612
|
+
h.Edge.Right,
|
|
613
|
+
h.Edge.Bottom
|
|
614
|
+
]), _e = Object.freeze([h.Edge.Horizontal, h.Edge.Vertical]), Z = Object.freeze([...X, ..._e]), ve = Object.freeze([h.Edge.DiagonalUp, h.Edge.DiagonalDown]), ye = Object.freeze([...Z, ...ve]), be = (e, t, n) => {
|
|
615
|
+
let r = {
|
|
616
|
+
style: t,
|
|
617
|
+
color: n?.toString()
|
|
618
|
+
}, i = {};
|
|
619
|
+
for (let t of e) i[t] = r;
|
|
620
|
+
return i;
|
|
621
|
+
}, xe = (e) => {
|
|
622
|
+
let t = {};
|
|
623
|
+
for (let n of e) t[n] = null;
|
|
624
|
+
return t;
|
|
625
|
+
}, Se = (e) => e ? e.toString() : null, Ce = E((i) => {
|
|
626
|
+
let { selection: a, disabled: o, className: c, ...f } = i, p = T(), { getEdgeStroke: m, createBorder: g, applyStyle: _, styles: v, schemeLookup: y, autoColor: b, darkMode: x, hasInnerHorizontal: S, hasInnerVertical: te } = a, w = o || a.disabled, E = C((e) => e === h.Edge.Horizontal ? !S : e === h.Edge.Vertical && !te, [S, te]), [D, ne] = k(() => {
|
|
627
|
+
let e = m(h.Edge.Bottom)?.getStyle();
|
|
628
|
+
return e && e !== h.StrokeStyle.None ? e : ge;
|
|
629
|
+
}), [O, re] = k(() => {
|
|
630
|
+
let e = m(h.Edge.Bottom);
|
|
631
|
+
return !e || e.isNone() ? null : e.getProperties().color ? e.getColor() : null;
|
|
632
|
+
}), ie = C(() => v.recentColors(), [v]), A = C((e) => {
|
|
633
|
+
_({ borders: e }, L("op.setBorders"));
|
|
634
|
+
}, [_]), P = C((e) => {
|
|
635
|
+
e.length !== 0 && _([{ borders: xe(e) }, { borders: be(e, D, O) }], L("op.setBorders"));
|
|
636
|
+
}, [
|
|
637
|
+
_,
|
|
638
|
+
D,
|
|
639
|
+
O
|
|
640
|
+
]), F = C((e) => {
|
|
641
|
+
e.length !== 0 && A(be(e, h.StrokeStyle.None, null));
|
|
642
|
+
}, [A]), se = C((e) => {
|
|
643
|
+
P(e.filter((e) => !E(e)));
|
|
644
|
+
}, [P, E]), I = {};
|
|
645
|
+
for (let e of ye) {
|
|
646
|
+
let t = m(e);
|
|
647
|
+
t && !t.isNone() && (I[e] = t.getProperties());
|
|
648
|
+
}
|
|
649
|
+
let R = C((e) => {
|
|
650
|
+
let t = I[e];
|
|
651
|
+
return (t?.style ?? h.StrokeStyle.None) === D && Se(t?.color) === Se(O);
|
|
652
|
+
}, [
|
|
653
|
+
I,
|
|
654
|
+
D,
|
|
655
|
+
O
|
|
656
|
+
]), z = (e) => {
|
|
657
|
+
let t = e.filter((e) => !E(e));
|
|
658
|
+
return t.length > 0 && t.every(R);
|
|
659
|
+
}, B = C((e) => {
|
|
660
|
+
let t = e.filter((e) => !E(e));
|
|
661
|
+
D === h.StrokeStyle.None || t.every(R) ? F(t) : P(t);
|
|
662
|
+
}, [
|
|
663
|
+
F,
|
|
664
|
+
P,
|
|
665
|
+
R,
|
|
666
|
+
E,
|
|
667
|
+
D
|
|
668
|
+
]), V = (e) => be(e, D, O), H = (e, t, r) => j(ae, {
|
|
669
|
+
disabled: w,
|
|
670
|
+
icon: j(n, {
|
|
671
|
+
border: e.length > 0 ? V(e) : null,
|
|
672
|
+
createBorder: g
|
|
673
|
+
}),
|
|
674
|
+
propsTooltip: {
|
|
675
|
+
label: t,
|
|
676
|
+
simple: !0
|
|
677
|
+
},
|
|
678
|
+
onClick: r
|
|
679
|
+
}), U = (e, t) => {
|
|
680
|
+
let r = w || e.every(E);
|
|
681
|
+
return j(ae, {
|
|
682
|
+
disabled: r,
|
|
683
|
+
selected: !r && D !== h.StrokeStyle.None && z(e),
|
|
684
|
+
icon: j(n, {
|
|
685
|
+
border: V(e),
|
|
686
|
+
createBorder: g
|
|
687
|
+
}),
|
|
688
|
+
propsTooltip: {
|
|
689
|
+
label: t,
|
|
690
|
+
simple: !0
|
|
691
|
+
},
|
|
692
|
+
onClick: () => B(e)
|
|
693
|
+
});
|
|
694
|
+
}, W = (e) => U([e], Y(p, e));
|
|
695
|
+
return M(N, {
|
|
696
|
+
className: r("sxl-format-border-panel", c),
|
|
697
|
+
sx: l,
|
|
698
|
+
...f,
|
|
699
|
+
children: [
|
|
700
|
+
M(u, { children: [j(e, {
|
|
701
|
+
disabled: w || D === h.StrokeStyle.None,
|
|
702
|
+
darkMode: x,
|
|
703
|
+
icon: j(ee, { iconKey: "stroke.colored" }),
|
|
704
|
+
tooltip: p("border.colorTooltip"),
|
|
705
|
+
selectedColor: O,
|
|
706
|
+
onSelectColor: (e) => re(e),
|
|
707
|
+
propsPanel: {
|
|
708
|
+
disableAlpha: !0,
|
|
709
|
+
schemeLookup: y,
|
|
710
|
+
recentColors: ie,
|
|
711
|
+
autoColor: b
|
|
712
|
+
}
|
|
713
|
+
}), j(t, {
|
|
714
|
+
disabled: w,
|
|
715
|
+
darkMode: x,
|
|
716
|
+
selectedStyle: D,
|
|
717
|
+
styleColor: O,
|
|
718
|
+
variant: oe.Toolbar,
|
|
719
|
+
onSelectStyle: (e) => ne(e ?? h.StrokeStyle.None)
|
|
720
|
+
})] }),
|
|
721
|
+
M(d, {
|
|
722
|
+
sx: { justifyContent: "center" },
|
|
723
|
+
children: [
|
|
724
|
+
H(Z, p("border.all"), () => se(Z)),
|
|
725
|
+
H(X, p("border.outside"), () => se(X)),
|
|
726
|
+
H([], p("border.none"), () => A(null))
|
|
727
|
+
]
|
|
728
|
+
}),
|
|
729
|
+
M(s, {
|
|
730
|
+
sx: { px: 1.5 },
|
|
731
|
+
children: [M(N, {
|
|
732
|
+
sx: {
|
|
733
|
+
display: "grid",
|
|
734
|
+
gridTemplateColumns: "auto minmax(0, 156px) auto",
|
|
735
|
+
justifyContent: "center",
|
|
736
|
+
columnGap: .5,
|
|
737
|
+
rowGap: .25,
|
|
738
|
+
minWidth: 0
|
|
739
|
+
},
|
|
740
|
+
children: [
|
|
741
|
+
M(N, {
|
|
742
|
+
sx: {
|
|
743
|
+
display: "flex",
|
|
744
|
+
flexDirection: "column",
|
|
745
|
+
justifyContent: "space-between",
|
|
746
|
+
height: "104px"
|
|
747
|
+
},
|
|
748
|
+
children: [
|
|
749
|
+
W(h.Edge.Top),
|
|
750
|
+
W(h.Edge.Horizontal),
|
|
751
|
+
W(h.Edge.Bottom)
|
|
752
|
+
]
|
|
753
|
+
}),
|
|
754
|
+
j(me, {
|
|
755
|
+
edges: I,
|
|
756
|
+
createBorder: g,
|
|
757
|
+
disabled: w,
|
|
758
|
+
height: 104,
|
|
759
|
+
omittedEdges: Z.filter(E),
|
|
760
|
+
onToggleEdges: B
|
|
761
|
+
}),
|
|
762
|
+
j(N, {
|
|
763
|
+
sx: {
|
|
764
|
+
display: "flex",
|
|
765
|
+
alignItems: "center"
|
|
766
|
+
},
|
|
767
|
+
children: U(_e, p("border.inner"))
|
|
768
|
+
}),
|
|
769
|
+
W(h.Edge.DiagonalUp),
|
|
770
|
+
M(N, {
|
|
771
|
+
sx: {
|
|
772
|
+
display: "flex",
|
|
773
|
+
justifyContent: "space-between",
|
|
774
|
+
minWidth: 0
|
|
775
|
+
},
|
|
776
|
+
children: [
|
|
777
|
+
W(h.Edge.Left),
|
|
778
|
+
W(h.Edge.Vertical),
|
|
779
|
+
W(h.Edge.Right)
|
|
780
|
+
]
|
|
781
|
+
}),
|
|
782
|
+
W(h.Edge.DiagonalDown)
|
|
783
|
+
]
|
|
784
|
+
}), j(ce, {
|
|
785
|
+
variant: "caption",
|
|
786
|
+
component: "div",
|
|
787
|
+
sx: {
|
|
788
|
+
color: "text.secondary",
|
|
789
|
+
lineHeight: 1.4,
|
|
790
|
+
textAlign: "center"
|
|
791
|
+
},
|
|
792
|
+
children: p("format.borderDiagram")
|
|
793
|
+
})]
|
|
794
|
+
})
|
|
795
|
+
]
|
|
796
|
+
});
|
|
797
|
+
});
|
|
798
|
+
Ce.displayName = "BorderPanel";
|
|
799
|
+
var Q = {
|
|
800
|
+
Number: "number",
|
|
801
|
+
Alignment: "alignment",
|
|
802
|
+
Font: "font",
|
|
803
|
+
Border: "border",
|
|
804
|
+
Fill: "fill"
|
|
805
|
+
}, we = "format.tab", Te = Object.freeze([
|
|
806
|
+
Q.Number,
|
|
807
|
+
Q.Alignment,
|
|
808
|
+
Q.Font,
|
|
809
|
+
Q.Border,
|
|
810
|
+
Q.Fill
|
|
811
|
+
]), $ = E((e) => {
|
|
812
|
+
let t = e.model, n = T();
|
|
813
|
+
S(t, "onSelectedSheetChange");
|
|
814
|
+
let r = t.getSelectedWorksheet();
|
|
815
|
+
if (!r) {
|
|
816
|
+
let { model: t, args: r, entryKey: i, frame: a, ref: o, ...s } = e;
|
|
817
|
+
return j(P, {
|
|
818
|
+
square: !0,
|
|
819
|
+
ref: o,
|
|
820
|
+
sx: {
|
|
821
|
+
display: "flex",
|
|
822
|
+
flex: "1 1 auto",
|
|
823
|
+
padding: (e) => e.spacing(2, 2)
|
|
824
|
+
},
|
|
825
|
+
...s,
|
|
826
|
+
children: n("format.noWorksheet")
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
return j(Ee, {
|
|
830
|
+
...e,
|
|
831
|
+
sheet: r
|
|
832
|
+
});
|
|
833
|
+
});
|
|
834
|
+
$.displayName = "FormatTaskPane";
|
|
835
|
+
var Ee = E((e) => {
|
|
836
|
+
let { model: t, sheet: n, args: r, entryKey: i, frame: a, ref: o, ...s } = e, c = T(), l = ((e) => {
|
|
837
|
+
let [, t] = re((e) => e + 1, 0);
|
|
838
|
+
x(e, {
|
|
839
|
+
onSelectionChange: () => t(),
|
|
840
|
+
onStyleChange: () => t()
|
|
841
|
+
});
|
|
842
|
+
let [n] = te(["formatBoldToggle"]), r = b(), i = e.getSelectedCell(), a = e.getStyles(), o = e.getSelectedRanges(), s = C((t, n, r) => {
|
|
843
|
+
let i = Array.isArray(t) ? t : [t];
|
|
844
|
+
e.doBatch(() => {
|
|
845
|
+
for (let t of i) e.getSelectedRanges().getStyle().update(t, {
|
|
846
|
+
autoSelect: R,
|
|
847
|
+
autoFit: r ?? !0
|
|
848
|
+
});
|
|
849
|
+
}, { description: n ?? L("op.updateStyle") });
|
|
850
|
+
}, [e]), c = C((t) => e.createCell(t), [e]), l = C((e) => a.getNormal().createStyle({ borders: e }).getBorders(), [a]), u = o.getCoords()[0], d = C((t) => {
|
|
851
|
+
if (!u) return null;
|
|
852
|
+
let n = (t, n) => e.getCell({
|
|
853
|
+
rowIndex: t,
|
|
854
|
+
colIndex: n
|
|
855
|
+
}).getStyle(!0).getBorders();
|
|
856
|
+
switch (t) {
|
|
857
|
+
case h.Edge.Top: return n(u.rowStart, u.colStart).getTop();
|
|
858
|
+
case h.Edge.Left: return n(u.rowStart, u.colStart).getLeft();
|
|
859
|
+
case h.Edge.Bottom: return n(u.rowEnd, u.colEnd).getBottom();
|
|
860
|
+
case h.Edge.Right: return n(u.rowEnd, u.colEnd).getRight();
|
|
861
|
+
case h.Edge.Horizontal: return u.rowEnd <= u.rowStart ? null : n(u.rowStart + 1, u.colStart).getTop();
|
|
862
|
+
case h.Edge.Vertical: return u.colEnd <= u.colStart ? null : n(u.rowStart, u.colStart + 1).getLeft();
|
|
863
|
+
case h.Edge.DiagonalUp: return n(u.rowStart, u.colStart).getDiagonalUp();
|
|
864
|
+
case h.Edge.DiagonalDown: return n(u.rowStart, u.colStart).getDiagonalDown();
|
|
865
|
+
default: return null;
|
|
866
|
+
}
|
|
867
|
+
}, [e, u]);
|
|
868
|
+
return {
|
|
869
|
+
sheet: e,
|
|
870
|
+
cell: i,
|
|
871
|
+
style: i.getStyle(),
|
|
872
|
+
styles: a,
|
|
873
|
+
schemeLookup: a.schemeLookup(),
|
|
874
|
+
autoColor: a.getNormal().getFont().getColor(),
|
|
875
|
+
darkMode: r === "dark",
|
|
876
|
+
disabled: n?.disabled() ?? !1,
|
|
877
|
+
applyStyle: s,
|
|
878
|
+
createCell: c,
|
|
879
|
+
createBorder: l,
|
|
880
|
+
getEdgeStroke: d,
|
|
881
|
+
hasInnerHorizontal: o.getRowCount() > 1,
|
|
882
|
+
hasInnerVertical: o.getColumnCount() > 1
|
|
883
|
+
};
|
|
884
|
+
})(n), [u, d] = w(we, Q.Number), g = Te.includes(u) ? u : Q.Number;
|
|
885
|
+
ne(() => {
|
|
886
|
+
let e = r?.tab;
|
|
887
|
+
e && d(e);
|
|
888
|
+
}, [r]);
|
|
889
|
+
let v = l.style.getNumberFormat(), y = typeof v == "number" ? _.resolve(v) : v ?? "General";
|
|
890
|
+
return M(P, {
|
|
891
|
+
square: !0,
|
|
892
|
+
ref: o,
|
|
893
|
+
sx: {
|
|
894
|
+
display: "flex",
|
|
895
|
+
flexDirection: "column",
|
|
896
|
+
flex: "1 1 auto",
|
|
897
|
+
width: "100%",
|
|
898
|
+
height: "100%",
|
|
899
|
+
minHeight: 0,
|
|
900
|
+
overflow: "hidden"
|
|
901
|
+
},
|
|
902
|
+
...s,
|
|
903
|
+
children: [
|
|
904
|
+
j(N, {
|
|
905
|
+
sx: {
|
|
906
|
+
flexShrink: 0,
|
|
907
|
+
padding: (e) => e.spacing(1.5, 2)
|
|
908
|
+
},
|
|
909
|
+
children: j(z, { selection: l })
|
|
910
|
+
}),
|
|
911
|
+
j(se, {
|
|
912
|
+
value: g,
|
|
913
|
+
onChange: (e, t) => d(t),
|
|
914
|
+
variant: "scrollable",
|
|
915
|
+
scrollButtons: "auto",
|
|
916
|
+
allowScrollButtonsMobile: !0,
|
|
917
|
+
sx: {
|
|
918
|
+
minHeight: 0,
|
|
919
|
+
flexShrink: 0,
|
|
920
|
+
borderBottom: (e) => `1px solid ${e.palette.divider}`,
|
|
921
|
+
"& .MuiTab-root": {
|
|
922
|
+
textTransform: "none",
|
|
923
|
+
whiteSpace: "nowrap",
|
|
924
|
+
minHeight: 0,
|
|
925
|
+
minWidth: 0,
|
|
926
|
+
flex: "1 0 auto",
|
|
927
|
+
padding: "8px 4px"
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
children: Te.map((e) => j(F, {
|
|
931
|
+
value: e,
|
|
932
|
+
label: De(c, e)
|
|
933
|
+
}, e))
|
|
934
|
+
}),
|
|
935
|
+
M(N, {
|
|
936
|
+
sx: {
|
|
937
|
+
flex: "1 1 auto",
|
|
938
|
+
minHeight: 0,
|
|
939
|
+
overflow: "auto",
|
|
940
|
+
padding: (e) => e.spacing(2.5, 2)
|
|
941
|
+
},
|
|
942
|
+
children: [
|
|
943
|
+
g === Q.Number ? j(f, {
|
|
944
|
+
hideSample: !0,
|
|
945
|
+
showQuickFormats: !0,
|
|
946
|
+
value: y,
|
|
947
|
+
disabled: l.disabled,
|
|
948
|
+
context: () => l.cell,
|
|
949
|
+
onChange: (e) => {
|
|
950
|
+
l.applyStyle({ numberFormat: e }, L("op.setNumberFormat"));
|
|
951
|
+
}
|
|
952
|
+
}) : null,
|
|
953
|
+
g === Q.Alignment ? j(U, { selection: l }) : null,
|
|
954
|
+
g === Q.Font ? j(W, { selection: l }) : null,
|
|
955
|
+
g === Q.Fill ? j(m, { selection: p(l) }) : null,
|
|
956
|
+
g === Q.Border ? j(Ce, { selection: l }) : null
|
|
957
|
+
]
|
|
958
|
+
})
|
|
959
|
+
]
|
|
960
|
+
});
|
|
961
|
+
});
|
|
962
|
+
function De(e, t) {
|
|
963
|
+
switch (t) {
|
|
964
|
+
case Q.Number: return e("format.tabNumber");
|
|
965
|
+
case Q.Alignment: return e("format.tabAlignment");
|
|
966
|
+
case Q.Font: return e("format.tabFont");
|
|
967
|
+
case Q.Fill: return e("format.tabFill");
|
|
968
|
+
case Q.Border: return e("format.tabBorder");
|
|
969
|
+
default: return t;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
Ee.displayName = "FormatTaskPaneBody";
|
|
973
|
+
export { we as FORMAT_TAB_KEY, Q as FormatTab, $ as FormatTaskPane, $ as default };
|