@sheetxl/studio-mui 0.8.0-beta.2 → 0.8.0-beta.21
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/{xGJU5xUJx3HF317Q.mjs → -z5Wfuc02L-6kq1M.mjs} +14 -13
- package/browser/esm/0NmmzX7YcGCZAfjR.mjs +392 -0
- package/browser/esm/{BlZiWp3SB3wH5O38.mjs → 19wMLMJtWK0oeEVt.mjs} +4 -4
- package/browser/esm/3FkSn_nCNgxZsgIL.mjs +335 -0
- package/browser/esm/4V2MEotoMq61137z.mjs +412 -0
- package/browser/esm/ATq4TDNCeji9EzyV.mjs +141 -0
- package/browser/esm/B5WTcQ5DGtwQ0jkI.mjs +442 -0
- package/browser/esm/BB_QvUAlMtL59z9o.mjs +294 -0
- package/browser/esm/BCBAzHaXN9AV8sab.mjs +2699 -0
- package/browser/esm/BEf9LRQrSZ8r-xAT.mjs +8547 -0
- package/browser/esm/BRnkoDWmbvG8C1_N.mjs +68 -0
- package/browser/esm/{Dv3hSCyjvwo6GcH1.mjs → BTmU9XLPvYrHSqNS.mjs} +4 -4
- package/browser/esm/BbJU08YmJt-_qBF6.mjs +94 -0
- package/browser/esm/Bi0lTIkuP-DeqJcH.mjs +516 -0
- package/browser/esm/BloQOjPg78u-EF02.mjs +1288 -0
- package/browser/esm/BqbKAlU_mHU6NhT9.mjs +13 -0
- package/browser/esm/BseH-4GXYtDqvoqT.mjs +77 -0
- package/browser/esm/Bv82Dlpi9aSgFTW7.mjs +103 -0
- package/browser/esm/{C5-J1xiO3O1-qaaP.mjs → BzqmYkLttNHqg63Q.mjs} +83 -95
- package/browser/esm/C1XWND0Zi7LMcsm_.mjs +633 -0
- package/browser/esm/C2RXFrmqZeD3QqPh.mjs +975 -0
- package/browser/esm/CFBHs4m2-BlqZkEr.mjs +267 -0
- package/browser/esm/CL-QL6Z7zajam81k.mjs +225 -0
- package/browser/esm/CNcmM3o7opgAuBgV.mjs +14 -0
- package/browser/esm/{B1YOQZHyO_dmHUN4.mjs → COetbYqMtkntH82m.mjs} +2 -2
- package/browser/esm/{_v6Wbw_y3QgJy3qY.mjs → CQUfTuoSCwqQ0IMS.mjs} +2 -2
- package/browser/esm/CS3J1M5x0VrJ3ndM.mjs +973 -0
- package/browser/esm/CSc97nFWptJgbzHm.mjs +360 -0
- package/browser/esm/CTBTpY09hkS1rzas.mjs +517 -0
- package/browser/esm/{CppDmJ4ckCH3alQf.mjs → C_Gs7_-MyIUFd3GO.mjs} +156 -109
- package/browser/esm/{DSGFnb1gYyL22p0t.mjs → CgaSjzrOnWuwOhIc.mjs} +20 -18
- package/browser/esm/CmFDMGxQc2IWNQrh.mjs +831 -0
- package/browser/esm/Cn9HHObOgyeO5n59.mjs +252 -0
- package/browser/esm/D56YnBeIxJlew7m_.mjs +235 -0
- package/browser/esm/D6K4M0lTty-YfNwL.mjs +318 -0
- package/browser/esm/DBiaGhkvzLnkUxgI.mjs +197 -0
- package/browser/esm/{CNLLwRPWnd4PJgPO.mjs → DDraGX98UQjilEmH.mjs} +5 -5
- package/browser/esm/DI2OTnABUBEmEaqR.mjs +424 -0
- package/browser/esm/DP7rdmsD5vllWV3a.mjs +14 -0
- package/browser/esm/DR9p8nTF7Ac49NOk.mjs +161 -0
- package/browser/esm/Dhw4RvCFZ7-lER3m.mjs +31 -0
- package/browser/esm/{DE7MVTTfExTzvyMW.mjs → DlXxfHGCzQyswKls.mjs} +33 -31
- package/browser/esm/DqZOeLxpTB81KRea.mjs +8 -0
- package/browser/esm/{Bo74PCF42KVYJF0j.mjs → Drf5SnYtXPKJrneG.mjs} +4 -4
- package/browser/esm/DsJPi1PsaB1T96tB.mjs +106 -0
- package/browser/esm/Dtnkv-g21i8s_DmS.mjs +87 -0
- package/browser/esm/DypNzviXLejO7EFy.mjs +94 -0
- package/browser/esm/JbP9J8Lps9opfBEE.mjs +1550 -0
- package/browser/esm/{D7fA9EyCNSzQMgxg.mjs → MvwrF55lxVF8jCRR.mjs} +2 -2
- package/browser/esm/R475WpaxeXiWizBi.mjs +225 -0
- package/browser/esm/XHu8ZHNIkE6wwhdW.mjs +119 -0
- package/browser/esm/{C2Eke_9Dj_m6mtMj.mjs → XpFIJoW5f7WrDl7A.mjs} +47 -48
- package/browser/esm/_ufgBrmZqc27mJTC.mjs +242 -0
- package/browser/esm/iOjNj5iTG7nRxxjs.mjs +386 -0
- package/browser/esm/{DIGlcemS7napWyKW.mjs → iXPWuBCZoCbVaYmX.mjs} +8 -6
- package/browser/esm/index.mjs +1908 -289
- package/browser/esm/n8uT2YLiULcikick.mjs +414 -0
- package/browser/esm/oFMJAOPBUVDkFSdk.mjs +72 -0
- package/browser/esm/pCVoTlBjzq5Y0YwO.mjs +490 -0
- package/browser/esm/{iM5uEM9H4e8HGt5y.mjs → prIPxnV06vnSprPI.mjs} +3 -3
- package/licenses/dependencies.txt +113 -366
- package/node/esm/4dZy4IT0suoxZvbK.mjs +294 -0
- package/node/esm/{DVaQ6xIbKQgBk0uw.mjs → 66U7xo0GBu80pE9I.mjs} +70 -71
- package/node/esm/9Kq__XyQDKWxOU37.mjs +224 -0
- package/node/esm/{DvMAUBSQsZmIsRxi.mjs → B5izshUZ2MRDNb5s.mjs} +2 -2
- package/node/esm/{DAji2BXelmIUxioS.mjs → BCUH7DA5M8FLcqxw.mjs} +23 -23
- package/node/esm/BORgnY9dptVfd8wC.mjs +267 -0
- package/node/esm/BUqtenzZROfaeBgh.mjs +516 -0
- package/node/esm/{BJi0FlhIqCMEwROu.mjs → BYf9hvHJuKJNqqZO.mjs} +190 -141
- package/node/esm/B_07uId4kB51FCtK.mjs +972 -0
- package/node/esm/Bb5tJ1TuwZePhOI_.mjs +94 -0
- package/node/esm/BePpjuTMltMTtgmp.mjs +73 -0
- package/node/esm/Bsug_5tyxbKlPnjZ.mjs +425 -0
- package/node/esm/{CCWQ116Z67Kz78Uo.mjs → Bv3K0CqiXzYTm7CK.mjs} +33 -31
- package/node/esm/C75b6boqKp33EdpB.mjs +77 -0
- package/node/esm/CAr94CzmtttReoYz.mjs +975 -0
- package/node/esm/{DN-bhyNbuBbNB0Ky.mjs → CEQmZUAgMA3rIxe_.mjs} +3 -3
- package/node/esm/CRkzp1_dyeM1KUud.mjs +94 -0
- package/node/esm/{cJDXopFIX6f3_oi3.mjs → CaMuiNImC2zQQykf.mjs} +2 -2
- package/node/esm/CiIW_yB_qnJV5RUA.mjs +1283 -0
- package/node/esm/{C0M1VbsIRuRauUI-.mjs → CnPQj9mRZUhQycvE.mjs} +85 -97
- package/node/esm/Cv-r7t8eamR5ZFiz.mjs +197 -0
- package/node/esm/CyOrPZTUqjp45ABy.mjs +106 -0
- package/node/esm/D4ZsBsKhm6gdi5wO.mjs +519 -0
- package/node/esm/DB0nWZ9I881Gdoeo.mjs +142 -0
- package/node/esm/DJi__4aWX4wwGjnt.mjs +385 -0
- package/node/esm/DMqVb7WqCzqQX3wx.mjs +141 -0
- package/node/esm/D_3Mcts9e87EORIi.mjs +1838 -0
- package/node/esm/{BMoRatciTqOi1HkT.mjs → DoRaGvL9s79NZAYU.mjs} +21 -21
- package/node/esm/DpHH7fvV8jCBbKt5.mjs +412 -0
- package/node/esm/DxoOobdO06D16DYc.mjs +118 -0
- package/node/esm/{BoDCV8cDmFVAYtaW.mjs → Dz9GxMRQzPtOpqNo.mjs} +2 -2
- package/node/esm/Iji4gCNbD66TvfOS.mjs +391 -0
- package/node/esm/RqUCi1IOUIuPSFCu.mjs +14 -0
- package/node/esm/S1sK514tY4D0vLiA.mjs +638 -0
- package/node/esm/SNaalbjzQGIMnqPC.mjs +319 -0
- package/node/esm/{DVshSSmP5QZU7GoY.mjs → b32Mry1LI41o7I1O.mjs} +29 -29
- package/node/esm/b_lG4702kLpmFvGb.mjs +489 -0
- package/node/esm/cQkfTTXKtrzzwTj_.mjs +242 -0
- package/node/esm/index.mjs +10368 -8704
- package/node/esm/sKtXhZg7VoFWiL32.mjs +68 -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 +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 +27 -26
- 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
|
@@ -1,49 +1,45 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.21
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { a as e, i as o, n as
|
|
7
|
+
import { a as e, i as o, n as l, r as i, t } from "./S1sK514tY4D0vLiA.mjs";
|
|
8
8
|
import { VERSION as n } from "@sheetxl/sdk";
|
|
9
9
|
import { LogoTextNoPaddingIcon as a } from "@sheetxl/react";
|
|
10
10
|
import { DynamicIcon as r, useTranslator as d } from "@sheetxl/utils-react";
|
|
11
|
-
import { useCallback as
|
|
12
|
-
import { InternalWindow as
|
|
13
|
-
import { jsx as
|
|
14
|
-
import { Box as
|
|
15
|
-
var
|
|
16
|
-
const { icon: o, label:
|
|
17
|
-
return
|
|
11
|
+
import { useCallback as p, useState as s } from "react";
|
|
12
|
+
import { InternalWindow as m } from "@sheetxl/utils-mui";
|
|
13
|
+
import { jsx as x, jsxs as h } from "react/jsx-runtime";
|
|
14
|
+
import { Box as g, Button as f, Checkbox as u, DialogContent as w, Divider as b, FormControlLabel as v, Link as y, Typography as k } from "@mui/material";
|
|
15
|
+
var C = "@container welcome (max-width: 500px)", X = (e) => {
|
|
16
|
+
const { icon: o, label: l, onClick: i } = e;
|
|
17
|
+
return x(f, {
|
|
18
18
|
variant: "text",
|
|
19
19
|
color: "inherit",
|
|
20
20
|
onClick: i,
|
|
21
|
-
startIcon:
|
|
21
|
+
startIcon: x(r, { iconKey: o }),
|
|
22
22
|
sx: {
|
|
23
23
|
justifyContent: "flex-start",
|
|
24
24
|
textTransform: "none",
|
|
25
25
|
fontWeight: "normal",
|
|
26
26
|
paddingX: 1.5
|
|
27
27
|
},
|
|
28
|
-
children:
|
|
28
|
+
children: l
|
|
29
29
|
});
|
|
30
|
-
},
|
|
31
|
-
const { title: r, templatePath:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, [I, G.categories]), [_, z] = m(B), H = c((e) => {
|
|
36
|
-
z(e), L?.(e);
|
|
37
|
-
}, [L]);
|
|
38
|
-
return h(x, {
|
|
30
|
+
}, D = (t) => {
|
|
31
|
+
const { title: r, templatePath: c, logo: f, onBlank: D, onOpenFromDevice: F, onOpenFromWeb: S, onSelectTemplate: T, showAtStartup: W, onShowAtStartupChange: B, sx: A, ...I } = t, O = d(), j = l({ path: c }), [$, _] = s(""), [z, H] = s([]), L = o(j.categories, $, z), [M, N] = s(W), R = p((e) => {
|
|
32
|
+
N(e), B?.(e);
|
|
33
|
+
}, [B]);
|
|
34
|
+
return x(m, {
|
|
39
35
|
isModal: !0,
|
|
40
36
|
sx: {
|
|
41
37
|
width: "960px",
|
|
42
|
-
...
|
|
38
|
+
...A
|
|
43
39
|
},
|
|
44
|
-
title: r ??
|
|
45
|
-
...
|
|
46
|
-
children:
|
|
40
|
+
title: r ?? O("dialog.welcome.title"),
|
|
41
|
+
...I,
|
|
42
|
+
children: x(w, {
|
|
47
43
|
dividers: !0,
|
|
48
44
|
sx: {
|
|
49
45
|
display: "flex",
|
|
@@ -52,18 +48,18 @@ var X = "@container welcome (max-width: 500px)", D = (e) => {
|
|
|
52
48
|
containerType: "inline-size",
|
|
53
49
|
containerName: "welcome"
|
|
54
50
|
},
|
|
55
|
-
children: g
|
|
51
|
+
children: h(g, {
|
|
56
52
|
sx: {
|
|
57
53
|
display: "flex",
|
|
58
54
|
flex: "1 1 auto",
|
|
59
55
|
minHeight: 0,
|
|
60
56
|
minWidth: 0,
|
|
61
|
-
[
|
|
57
|
+
[C]: {
|
|
62
58
|
flexDirection: "column",
|
|
63
59
|
flex: "0 0 100%"
|
|
64
60
|
}
|
|
65
61
|
},
|
|
66
|
-
children: [g
|
|
62
|
+
children: [h(g, {
|
|
67
63
|
component: "nav",
|
|
68
64
|
sx: {
|
|
69
65
|
display: "flex",
|
|
@@ -74,28 +70,28 @@ var X = "@container welcome (max-width: 500px)", D = (e) => {
|
|
|
74
70
|
padding: 2,
|
|
75
71
|
backgroundColor: "var(--sxl-color-base-200)",
|
|
76
72
|
borderRight: (e) => `1px solid ${e.palette.divider}`,
|
|
77
|
-
[
|
|
73
|
+
[C]: { display: "contents" }
|
|
78
74
|
},
|
|
79
75
|
children: [
|
|
80
|
-
|
|
76
|
+
x(g, {
|
|
81
77
|
sx: {
|
|
82
78
|
display: "flex",
|
|
83
79
|
alignItems: "center",
|
|
84
80
|
gap: 1,
|
|
85
81
|
paddingX: 1.5,
|
|
86
82
|
paddingBottom: 2,
|
|
87
|
-
[
|
|
83
|
+
[C]: {
|
|
88
84
|
order: 1,
|
|
89
85
|
padding: 2,
|
|
90
86
|
paddingBottom: 1
|
|
91
87
|
}
|
|
92
88
|
},
|
|
93
|
-
children:
|
|
89
|
+
children: f ?? x(y, {
|
|
94
90
|
href: "https://www.sheetxl.com",
|
|
95
91
|
target: "_blank",
|
|
96
92
|
rel: "noopener noreferrer",
|
|
97
93
|
sx: { display: "flex" },
|
|
98
|
-
children:
|
|
94
|
+
children: x(a, {
|
|
99
95
|
role: "img",
|
|
100
96
|
"aria-label": "SheetXL",
|
|
101
97
|
style: {
|
|
@@ -105,49 +101,49 @@ var X = "@container welcome (max-width: 500px)", D = (e) => {
|
|
|
105
101
|
})
|
|
106
102
|
})
|
|
107
103
|
}),
|
|
108
|
-
g
|
|
104
|
+
h(g, {
|
|
109
105
|
sx: {
|
|
110
106
|
display: "flex",
|
|
111
107
|
flexDirection: "column",
|
|
112
108
|
gap: .5,
|
|
113
|
-
[
|
|
109
|
+
[C]: {
|
|
114
110
|
order: 2,
|
|
115
111
|
paddingX: 1
|
|
116
112
|
}
|
|
117
113
|
},
|
|
118
114
|
children: [
|
|
119
|
-
|
|
115
|
+
x(X, {
|
|
120
116
|
icon: "FileNew",
|
|
121
|
-
label:
|
|
122
|
-
onClick:
|
|
117
|
+
label: O("dialog.welcome.blank"),
|
|
118
|
+
onClick: D
|
|
123
119
|
}),
|
|
124
|
-
|
|
120
|
+
F ? x(X, {
|
|
125
121
|
icon: "FileOpen",
|
|
126
|
-
label:
|
|
127
|
-
onClick:
|
|
122
|
+
label: O("dialog.welcome.openFromDevice"),
|
|
123
|
+
onClick: F
|
|
128
124
|
}) : null,
|
|
129
|
-
|
|
125
|
+
S ? x(X, {
|
|
130
126
|
icon: "FileOpen",
|
|
131
|
-
label:
|
|
132
|
-
onClick:
|
|
127
|
+
label: O("dialog.welcome.openFromWeb"),
|
|
128
|
+
onClick: S
|
|
133
129
|
}) : null
|
|
134
130
|
]
|
|
135
131
|
}),
|
|
136
|
-
|
|
132
|
+
x(g, { sx: {
|
|
137
133
|
flex: "1 1 auto",
|
|
138
|
-
[
|
|
134
|
+
[C]: { display: "none" }
|
|
139
135
|
} }),
|
|
140
|
-
|
|
136
|
+
x(b, { sx: {
|
|
141
137
|
marginBottom: 1,
|
|
142
|
-
[
|
|
138
|
+
[C]: { display: "none" }
|
|
143
139
|
} }),
|
|
144
|
-
g
|
|
140
|
+
h(g, {
|
|
145
141
|
sx: {
|
|
146
142
|
display: "flex",
|
|
147
143
|
flexDirection: "column",
|
|
148
144
|
gap: .5,
|
|
149
145
|
paddingX: 1.5,
|
|
150
|
-
[
|
|
146
|
+
[C]: {
|
|
151
147
|
order: 6,
|
|
152
148
|
flexDirection: "row",
|
|
153
149
|
flexWrap: "wrap",
|
|
@@ -158,102 +154,94 @@ var X = "@container welcome (max-width: 500px)", D = (e) => {
|
|
|
158
154
|
}
|
|
159
155
|
},
|
|
160
156
|
children: [
|
|
161
|
-
|
|
157
|
+
x(y, {
|
|
162
158
|
variant: "caption",
|
|
163
159
|
href: "https://www.sheetxl.com/docs",
|
|
164
160
|
target: "_blank",
|
|
165
161
|
rel: "noopener noreferrer",
|
|
166
|
-
children:
|
|
162
|
+
children: O("dialog.welcome.docs")
|
|
167
163
|
}),
|
|
168
|
-
|
|
164
|
+
x(y, {
|
|
169
165
|
variant: "caption",
|
|
170
|
-
href: "https://github.com/sheetxl/workbook
|
|
166
|
+
href: "https://github.com/sheetxl/templates-workbook",
|
|
171
167
|
target: "_blank",
|
|
172
168
|
rel: "noopener noreferrer",
|
|
173
|
-
children:
|
|
169
|
+
children: O("dialog.welcome.addTemplate")
|
|
174
170
|
}),
|
|
175
|
-
|
|
171
|
+
x(k, {
|
|
176
172
|
variant: "caption",
|
|
177
173
|
sx: { color: "text.secondary" },
|
|
178
|
-
children:
|
|
174
|
+
children: O("dialog.welcome.version", { version: n })
|
|
179
175
|
})
|
|
180
176
|
]
|
|
181
177
|
})
|
|
182
178
|
]
|
|
183
|
-
}), g
|
|
179
|
+
}), h(g, {
|
|
184
180
|
sx: {
|
|
185
181
|
flex: "1 1 auto",
|
|
186
182
|
minWidth: 0,
|
|
187
183
|
display: "flex",
|
|
188
184
|
flexDirection: "column",
|
|
189
|
-
[
|
|
185
|
+
[C]: { display: "contents" }
|
|
190
186
|
},
|
|
191
187
|
children: [
|
|
192
|
-
g
|
|
188
|
+
x(g, {
|
|
193
189
|
sx: {
|
|
194
190
|
display: "flex",
|
|
195
|
-
flexWrap: "wrap",
|
|
196
|
-
alignItems: "center",
|
|
197
|
-
columnGap: 2,
|
|
198
|
-
rowGap: 1,
|
|
199
191
|
paddingX: 3,
|
|
200
192
|
paddingTop: 2,
|
|
201
193
|
paddingBottom: 2,
|
|
202
|
-
[
|
|
194
|
+
[C]: { order: 3 }
|
|
203
195
|
},
|
|
204
|
-
children:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
value: I,
|
|
211
|
-
onChange: M,
|
|
196
|
+
children: x(i, {
|
|
197
|
+
value: $,
|
|
198
|
+
onChange: _,
|
|
199
|
+
categories: j.categories,
|
|
200
|
+
categoryIds: z,
|
|
201
|
+
onCategoryIdsChange: H,
|
|
212
202
|
sx: {
|
|
213
|
-
flex: "0 1
|
|
214
|
-
minWidth: "
|
|
215
|
-
|
|
216
|
-
[X]: {
|
|
217
|
-
flex: "1 1 100%",
|
|
218
|
-
marginLeft: 0
|
|
219
|
-
}
|
|
203
|
+
flex: "0 1 50%",
|
|
204
|
+
minWidth: "min(100%, 280px)",
|
|
205
|
+
[C]: { flex: "1 1 100%" }
|
|
220
206
|
}
|
|
221
|
-
})
|
|
207
|
+
})
|
|
222
208
|
}),
|
|
223
|
-
|
|
224
|
-
|
|
209
|
+
x(e, {
|
|
210
|
+
role: "region",
|
|
211
|
+
"aria-label": O("dialog.welcome.templates"),
|
|
212
|
+
catalog: j,
|
|
225
213
|
onSelect: T,
|
|
226
|
-
filter:
|
|
227
|
-
emptyLabel:
|
|
214
|
+
filter: L,
|
|
215
|
+
emptyLabel: L ? O("template.noMatches") : void 0,
|
|
228
216
|
visibleRows: 2,
|
|
229
217
|
sx: {
|
|
230
218
|
flex: "1 1 auto",
|
|
231
219
|
overflow: "auto",
|
|
232
220
|
paddingX: 2,
|
|
233
221
|
paddingBottom: 2,
|
|
234
|
-
[
|
|
222
|
+
[C]: {
|
|
235
223
|
order: 4,
|
|
236
224
|
flex: "0 1 auto"
|
|
237
225
|
}
|
|
238
226
|
}
|
|
239
227
|
}),
|
|
240
|
-
void 0 !==
|
|
228
|
+
void 0 !== M ? x(g, {
|
|
241
229
|
sx: {
|
|
242
230
|
flex: "none",
|
|
243
231
|
paddingX: 3,
|
|
244
232
|
paddingY: .5,
|
|
245
233
|
borderTop: (e) => `1px solid ${e.palette.divider}`,
|
|
246
|
-
[
|
|
234
|
+
[C]: { order: 5 }
|
|
247
235
|
},
|
|
248
|
-
children:
|
|
249
|
-
control:
|
|
236
|
+
children: x(v, {
|
|
237
|
+
control: x(u, {
|
|
250
238
|
size: "small",
|
|
251
|
-
checked:
|
|
252
|
-
onChange: (e) =>
|
|
239
|
+
checked: M,
|
|
240
|
+
onChange: (e) => R(e.target.checked)
|
|
253
241
|
}),
|
|
254
|
-
label:
|
|
242
|
+
label: x(k, {
|
|
255
243
|
variant: "body2",
|
|
256
|
-
children:
|
|
244
|
+
children: O("template.showAtStartup")
|
|
257
245
|
})
|
|
258
246
|
})
|
|
259
247
|
}) : null
|
|
@@ -262,7 +250,7 @@ var X = "@container welcome (max-width: 500px)", D = (e) => {
|
|
|
262
250
|
})
|
|
263
251
|
})
|
|
264
252
|
});
|
|
265
|
-
},
|
|
266
|
-
|
|
253
|
+
}, F = (e) => {
|
|
254
|
+
t(e).catch(() => {});
|
|
267
255
|
};
|
|
268
|
-
export {
|
|
256
|
+
export { D as default, F as prefetchCatalog };
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.21
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: MIT
|
|
6
|
+
*/
|
|
7
|
+
import { CommentCard as e } from "./index.mjs";
|
|
8
|
+
import { getCommentCoords as t, useModelListener as l, useSheetComments as o } from "@sheetxl/react";
|
|
9
|
+
import { DynamicIcon as n, usePersistentState as r, useTranslator as s } from "@sheetxl/utils-react";
|
|
10
|
+
import { memo as c, useEffect as i, useMemo as a, useRef as d, useState as m } from "react";
|
|
11
|
+
import { SimpleTooltip as u } from "@sheetxl/utils-mui";
|
|
12
|
+
import { Fragment as x, jsx as f, jsxs as h } from "react/jsx-runtime";
|
|
13
|
+
import { Box as p, Button as g, IconButton as y, ToggleButton as v, ToggleButtonGroup as k, Typography as C } from "@mui/material";
|
|
14
|
+
import { CoordUtils as I, messageKey as b } from "@sheetxl/utils";
|
|
15
|
+
var w = {
|
|
16
|
+
all: b("comment.filter.all"),
|
|
17
|
+
open: b("comment.filter.open"),
|
|
18
|
+
resolved: b("comment.filter.resolved")
|
|
19
|
+
}, N = Object.keys(w), S = "comments.filter", P = {
|
|
20
|
+
add: b("comment.new"),
|
|
21
|
+
addPrompt: b("comment.addPrompt"),
|
|
22
|
+
noMatches: b("comment.noMatches")
|
|
23
|
+
}, D = (e, t) => e.coords.rowIndex - t.coords.rowIndex || e.coords.colIndex - t.coords.colIndex, M = c((c) => {
|
|
24
|
+
const { model: b, args: M, defaultFilter: T = "all", entryKey: W, frame: j, ref: q, ...R } = c, F = s(), [H, K] = m(() => b?.getSelectedWorksheet() ?? null);
|
|
25
|
+
l(b, { onSheetsChange() {
|
|
26
|
+
K(b?.getSelectedWorksheet() ?? null);
|
|
27
|
+
} });
|
|
28
|
+
const [V, $] = r(S, T), [z, B] = m(!1), O = z ? "all" : N.includes(V) ? V : T, X = o(H, { resolved: "all" === O ? void 0 : "resolved" === O }), Y = o(H), [A, E] = m(null), [G, J] = m(null), [L, Q] = m(null), U = d(0), Z = d(/* @__PURE__ */ new Map());
|
|
29
|
+
l(H?.getSelection(), { onChange() {
|
|
30
|
+
Q(H?.getSelectedCell().getCoords() ?? null);
|
|
31
|
+
} });
|
|
32
|
+
const [_, ee] = m(H);
|
|
33
|
+
_ !== H && (ee(H), E(null), J(null));
|
|
34
|
+
const te = (e) => `${e.rowIndex},${e.colIndex}`, le = (e) => {
|
|
35
|
+
J({
|
|
36
|
+
key: e,
|
|
37
|
+
request: ++U.current
|
|
38
|
+
});
|
|
39
|
+
}, oe = () => {
|
|
40
|
+
if (!H) return;
|
|
41
|
+
const e = H.getSelectedCell(), l = e.getCoords();
|
|
42
|
+
if (!l) return;
|
|
43
|
+
const o = e.getComments();
|
|
44
|
+
if (!o?.isNote()) {
|
|
45
|
+
if (o) return B(!0), void le(te(t(o)));
|
|
46
|
+
E(l), le(te(l));
|
|
47
|
+
}
|
|
48
|
+
}, [ne, re] = m(void 0);
|
|
49
|
+
if (M !== ne) {
|
|
50
|
+
re(M);
|
|
51
|
+
const e = M?.focus;
|
|
52
|
+
!e || e.isDeleted() || e.isNote() ? M?.insert && oe() : (B(!0), le(te(t(e))));
|
|
53
|
+
}
|
|
54
|
+
const se = a(() => {
|
|
55
|
+
const e = X.map((e) => {
|
|
56
|
+
const l = t(e);
|
|
57
|
+
return {
|
|
58
|
+
key: te(l),
|
|
59
|
+
coords: l,
|
|
60
|
+
comment: e
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
return A && !Y.some((e) => te(t(e)) === te(A)) && (e.push({
|
|
64
|
+
key: te(A),
|
|
65
|
+
coords: A,
|
|
66
|
+
comment: null
|
|
67
|
+
}), e.sort(D)), e;
|
|
68
|
+
}, [
|
|
69
|
+
X,
|
|
70
|
+
Y,
|
|
71
|
+
A
|
|
72
|
+
]), ce = L ? te(L) : null, ie = G?.key ?? null, ae = G?.request ?? 0;
|
|
73
|
+
if (i(() => {
|
|
74
|
+
ce && Z.current.get(ce)?.scrollIntoView?.({ block: "nearest" });
|
|
75
|
+
}, [ce]), i(() => {
|
|
76
|
+
ie && Z.current.get(ie)?.scrollIntoView?.({ block: "nearest" });
|
|
77
|
+
}, [ie, ae]), !b || !H) return null;
|
|
78
|
+
const de = H.getSelectedCell().getComments(), me = 0 === se.length && 0 === Y.length;
|
|
79
|
+
return h(p, {
|
|
80
|
+
ref: q,
|
|
81
|
+
...R,
|
|
82
|
+
className: "sxl-comments-pane",
|
|
83
|
+
sx: {
|
|
84
|
+
display: "flex",
|
|
85
|
+
flexDirection: "column",
|
|
86
|
+
width: "100%",
|
|
87
|
+
minWidth: 0,
|
|
88
|
+
flex: "1 1 auto",
|
|
89
|
+
height: "100%",
|
|
90
|
+
minHeight: 0,
|
|
91
|
+
overflowX: "hidden"
|
|
92
|
+
},
|
|
93
|
+
children: [me ? null : h(p, {
|
|
94
|
+
sx: {
|
|
95
|
+
display: "flex",
|
|
96
|
+
alignItems: "center",
|
|
97
|
+
gap: 1,
|
|
98
|
+
flex: "0 0 auto",
|
|
99
|
+
px: 1.5,
|
|
100
|
+
py: 1,
|
|
101
|
+
borderBottom: 1,
|
|
102
|
+
borderColor: "divider"
|
|
103
|
+
},
|
|
104
|
+
children: [
|
|
105
|
+
f(k, {
|
|
106
|
+
className: "sxl-comments-filter",
|
|
107
|
+
size: "small",
|
|
108
|
+
exclusive: !0,
|
|
109
|
+
value: O,
|
|
110
|
+
onChange: (e, t) => {
|
|
111
|
+
t && (B(!1), $(t));
|
|
112
|
+
},
|
|
113
|
+
children: N.map((e) => f(v, {
|
|
114
|
+
value: e,
|
|
115
|
+
sx: {
|
|
116
|
+
textTransform: "none",
|
|
117
|
+
py: .25,
|
|
118
|
+
px: 1
|
|
119
|
+
},
|
|
120
|
+
children: F(w[e])
|
|
121
|
+
}, e))
|
|
122
|
+
}),
|
|
123
|
+
f(p, { sx: { flex: "1 1 auto" } }),
|
|
124
|
+
f(u, {
|
|
125
|
+
disableInteractive: !0,
|
|
126
|
+
title: F(P.add),
|
|
127
|
+
children: f("span", { children: f(y, {
|
|
128
|
+
className: "sxl-comments-add",
|
|
129
|
+
"aria-label": F(P.add),
|
|
130
|
+
disabled: !!de?.isNote(),
|
|
131
|
+
onClick: oe,
|
|
132
|
+
children: f(n, { iconKey: "Insert" })
|
|
133
|
+
}) })
|
|
134
|
+
})
|
|
135
|
+
]
|
|
136
|
+
}), h(p, {
|
|
137
|
+
className: "sxl-comments-list",
|
|
138
|
+
sx: {
|
|
139
|
+
flex: "1 1 auto",
|
|
140
|
+
minHeight: 0,
|
|
141
|
+
overflowY: "auto",
|
|
142
|
+
display: "flex",
|
|
143
|
+
flexDirection: "column",
|
|
144
|
+
gap: 1,
|
|
145
|
+
p: 1.5,
|
|
146
|
+
pl: me ? 1.5 : 3.5
|
|
147
|
+
},
|
|
148
|
+
children: [me ? h(x, { children: [
|
|
149
|
+
f(p, { sx: { flex: "1 1 0" } }),
|
|
150
|
+
h(p, {
|
|
151
|
+
className: "sxl-comments-empty",
|
|
152
|
+
sx: {
|
|
153
|
+
display: "flex",
|
|
154
|
+
flex: "0 0 auto",
|
|
155
|
+
flexDirection: "column",
|
|
156
|
+
alignItems: "center",
|
|
157
|
+
alignSelf: "center",
|
|
158
|
+
gap: 2.5,
|
|
159
|
+
maxWidth: "min(360px, 90%)"
|
|
160
|
+
},
|
|
161
|
+
children: [f(C, {
|
|
162
|
+
variant: "body2",
|
|
163
|
+
align: "center",
|
|
164
|
+
children: F(P.addPrompt)
|
|
165
|
+
}), f(g, {
|
|
166
|
+
variant: "contained",
|
|
167
|
+
sx: { textTransform: "none" },
|
|
168
|
+
disabled: !!de?.isNote(),
|
|
169
|
+
onClick: oe,
|
|
170
|
+
children: F(P.add)
|
|
171
|
+
})]
|
|
172
|
+
}),
|
|
173
|
+
f(p, { sx: { flex: "1.5 1 0" } })
|
|
174
|
+
] }) : 0 === se.length ? f(C, {
|
|
175
|
+
variant: "body2",
|
|
176
|
+
sx: { color: "text.secondary" },
|
|
177
|
+
children: F(P.noMatches)
|
|
178
|
+
}) : null, se.map((t) => f(e, {
|
|
179
|
+
ref: (e) => {
|
|
180
|
+
e ? Z.current.set(t.key, e) : Z.current.delete(t.key);
|
|
181
|
+
},
|
|
182
|
+
sheet: H,
|
|
183
|
+
coords: t.coords,
|
|
184
|
+
comment: t.comment,
|
|
185
|
+
highlighted: t.key === ce,
|
|
186
|
+
focusRequest: t.key === ie ? ae : 0,
|
|
187
|
+
onSelect: () => {
|
|
188
|
+
H.getRange(I.cellToRange(t.coords)).select();
|
|
189
|
+
},
|
|
190
|
+
onClose: () => E(null),
|
|
191
|
+
onPosted: () => E(null)
|
|
192
|
+
}, t.key))]
|
|
193
|
+
})]
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
M.displayName = "CommentsTaskPane";
|
|
197
|
+
export { S as COMMENTS_FILTER_KEY, M as CommentsTaskPane, M as default };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.21
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: MIT
|
|
6
|
+
*/
|
|
7
|
+
import { InputField as e } from "./index.mjs";
|
|
8
|
+
import { memo as n, useRef as r } from "react";
|
|
9
|
+
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
10
|
+
import { Box as i, Typography as l } from "@mui/material";
|
|
11
|
+
var s = (e, n, r) => () => {
|
|
12
|
+
n === e && r();
|
|
13
|
+
}, o = n((n) => {
|
|
14
|
+
const { label: a, value: i, min: l, max: s, step: o = 1, decimals: m = !1, width: p, disabled: d, onChange: c } = n, u = r(null), x = (e) => Math.max(l, Math.min(s, e)), h = (e) => {
|
|
15
|
+
const n = m ? parseFloat(e) : parseInt(e, 10);
|
|
16
|
+
return Number.isNaN(n) ? null : x(n);
|
|
17
|
+
};
|
|
18
|
+
return t(e, {
|
|
19
|
+
label: a,
|
|
20
|
+
value: String(i),
|
|
21
|
+
disabled: d,
|
|
22
|
+
hideAdornment: !0,
|
|
23
|
+
helperText: null,
|
|
24
|
+
propsInput: {
|
|
25
|
+
type: "number",
|
|
26
|
+
min: l,
|
|
27
|
+
max: s,
|
|
28
|
+
step: o
|
|
29
|
+
},
|
|
30
|
+
sx: {
|
|
31
|
+
width: p,
|
|
32
|
+
minWidth: 0,
|
|
33
|
+
"& input": { textAlign: "right" }
|
|
34
|
+
},
|
|
35
|
+
onChangeInput: (e) => {
|
|
36
|
+
const n = h(e);
|
|
37
|
+
null !== n && (u.current = n, c(n));
|
|
38
|
+
},
|
|
39
|
+
onDone: (e) => {
|
|
40
|
+
const n = h(e) ?? x(0), r = u.current;
|
|
41
|
+
u.current = null, r !== n && c(n);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
o.displayName = "FormatNumberField";
|
|
46
|
+
var m = {
|
|
47
|
+
display: "flex",
|
|
48
|
+
flexDirection: "column",
|
|
49
|
+
gap: 1.5,
|
|
50
|
+
minWidth: 0
|
|
51
|
+
}, p = n((e) => {
|
|
52
|
+
const { label: n, children: r, sx: s, ...o } = e;
|
|
53
|
+
return a(i, {
|
|
54
|
+
sx: {
|
|
55
|
+
display: "flex",
|
|
56
|
+
flexDirection: "column",
|
|
57
|
+
gap: .75,
|
|
58
|
+
minWidth: 0,
|
|
59
|
+
...s
|
|
60
|
+
},
|
|
61
|
+
...o,
|
|
62
|
+
children: [n ? t(l, {
|
|
63
|
+
variant: "caption",
|
|
64
|
+
component: "div",
|
|
65
|
+
sx: {
|
|
66
|
+
color: "text.secondary",
|
|
67
|
+
lineHeight: 1.4
|
|
68
|
+
},
|
|
69
|
+
children: n
|
|
70
|
+
}) : null, r]
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
p.displayName = "FormatSection";
|
|
74
|
+
var d = n((e) => {
|
|
75
|
+
const { children: n, sx: r, ...a } = e;
|
|
76
|
+
return t(i, {
|
|
77
|
+
sx: {
|
|
78
|
+
display: "flex",
|
|
79
|
+
flexWrap: "wrap",
|
|
80
|
+
alignItems: "center",
|
|
81
|
+
gap: 1,
|
|
82
|
+
minWidth: 0,
|
|
83
|
+
...r
|
|
84
|
+
},
|
|
85
|
+
...a,
|
|
86
|
+
children: n
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
d.displayName = "FormatRow";
|
|
90
|
+
var c = n((e) => {
|
|
91
|
+
const { children: n, sx: r, ...a } = e;
|
|
92
|
+
return t(i, {
|
|
93
|
+
sx: {
|
|
94
|
+
display: "flex",
|
|
95
|
+
alignItems: "center",
|
|
96
|
+
gap: .25,
|
|
97
|
+
flexWrap: "wrap",
|
|
98
|
+
minWidth: 0,
|
|
99
|
+
...r
|
|
100
|
+
},
|
|
101
|
+
...a,
|
|
102
|
+
children: n
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
c.displayName = "FormatButtonGroup";
|
|
106
|
+
export { s as a, p as i, o as n, m as o, d as r, c as t };
|