@sheetxl/studio-mui 0.8.0-beta.1 → 0.8.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/0BWO0bLZ8Vm_dKd2.mjs +582 -0
- package/browser/esm/BAbq4-I5f5oUiNaF.mjs +141 -0
- package/browser/esm/BED6h6YAwCf1HEQJ.mjs +161 -0
- package/browser/esm/{DMLXV4EKl1NCp_jk.mjs → BXhNFzyEGokTF-BL.mjs} +2 -2
- package/browser/esm/BYE9gCDWKyx6mnVs.mjs +381 -0
- package/browser/esm/BjvD_4t2KGsZP5V8.mjs +71 -0
- package/browser/esm/{zWTZ8BvT4hjgC2ua.mjs → BknfGJouygmnpFIU.mjs} +13 -12
- package/browser/esm/{DNDrQKMTzKzNMjl-.mjs → BlE_8o8tO2AgAlaj.mjs} +19 -17
- package/browser/esm/BokqKEpU6TFgfRs6.mjs +252 -0
- package/browser/esm/{BoLxSRdEWt-Yg2RI.mjs → Brsh5yscJ_4uKFXp.mjs} +130 -103
- package/browser/esm/Bujtz_Guj88d03vI.mjs +831 -0
- package/browser/esm/Buqcl7J75MJrhpVE.mjs +1379 -0
- package/browser/esm/BvhYPwX3GrRaO9CM.mjs +319 -0
- package/browser/esm/C0wlMAIn9iREPK6w.mjs +87 -0
- package/browser/esm/C8JU4KsMasmLvojI.mjs +103 -0
- package/browser/esm/C9pIZVACtl9unFOp.mjs +77 -0
- package/browser/esm/CBD4RiRKbbZtSXV-.mjs +318 -0
- package/browser/esm/CEtXsBzEjEKk9GOj.mjs +117 -0
- package/browser/esm/{BZBJG2tDdD3-VujP.mjs → COlZu93LRwuBvjE-.mjs} +195 -174
- package/browser/esm/{Cj2pgCNqBCGl4rTX.mjs → CTjqDD-swFMZzI-Y.mjs} +587 -556
- package/browser/esm/CWkOgdL7mOKiTR62.mjs +975 -0
- package/browser/esm/ChSVxkPTIjgcC8PL.mjs +412 -0
- package/browser/esm/{Cd6n1XUgF0VItpkH.mjs → ClBvNPeNCAhuVWrG.mjs} +7 -5
- package/browser/esm/CyLn6zOOp_biA3xU.mjs +335 -0
- package/browser/esm/CynTY0oNtyJnoaBq.mjs +14 -0
- package/browser/esm/D3rRUK4dIM5gUSmj.mjs +256 -0
- package/browser/esm/D9ISy7VkaRRFJl46.mjs +515 -0
- package/browser/esm/DDc6rDuU9JAo1DH_.mjs +225 -0
- package/browser/esm/DDczwkXhz_MHub4z.mjs +197 -0
- package/browser/esm/{3ydDykDMtDYbfVVn.mjs → DEv4pIEgYr5C7etm.mjs} +178 -129
- package/browser/esm/DG21x7RKDpge6zAE.mjs +31 -0
- package/browser/esm/DJOOed_OtB-XT7f3.mjs +437 -0
- package/browser/esm/{Bz5LiUe3SZ8g42Ia.mjs → DKtJxrpN0axtuQ0l.mjs} +1 -1
- package/browser/esm/DRSCS6aLiYmPjUz1.mjs +1543 -0
- package/browser/esm/{ChwS_ougBsogOEsP.mjs → DTpRkgsTm_zYnWfW.mjs} +46 -47
- package/browser/esm/DV6i9RQZfJiKtEaJ.mjs +2552 -0
- package/browser/esm/DdcZrjMLWVukWcU5.mjs +7473 -0
- package/browser/esm/Di3BUxA0SqFWWgeg.mjs +94 -0
- package/browser/esm/DnGaP5F7mLwCGUYG.mjs +408 -0
- package/browser/esm/DpD4fg2WcyiKX_2K.mjs +414 -0
- package/browser/esm/{BUGepznywvV0tUjW.mjs → Ds3XRkne7HxcXD8J.mjs} +2 -2
- package/browser/esm/DsoNMWDwHZP8UXQd.mjs +293 -0
- package/browser/esm/G0Inqm6Eqw47dMpa.mjs +212 -0
- package/browser/esm/HViD4Wfoi0mmqk9w.mjs +13 -0
- package/browser/esm/LZoYSQAYV2wksnDv.mjs +386 -0
- package/browser/esm/{rU8xNPVQtDSnujM-.mjs → QgaAIDUMmBQBsXP9.mjs} +3 -3
- package/browser/esm/YThnrg3PadGs7B4j.mjs +627 -0
- package/browser/esm/index.mjs +1208 -67
- package/browser/esm/ttjcNHcFn8O6hfnd.mjs +1288 -0
- package/browser/esm/w_JrR69vEpvoyeMy.mjs +68 -0
- package/browser/esm/{CVfuCNRpODUw04IH.mjs → xFqkfN8QMCxvsetB.mjs} +1 -1
- package/browser/esm/zqilJefihVd7At2T.mjs +517 -0
- package/licenses/dependencies.txt +96 -349
- package/node/esm/1bf4gn-2vld4BZ9u.mjs +294 -0
- package/node/esm/{BhqI3pQFkV8K_612.mjs → 3WghtBXAvCDwcVrq.mjs} +1 -1
- package/node/esm/4HmLH0bPVJCZLgik.mjs +116 -0
- package/node/esm/{DM7K7-284z-PczVz.mjs → B0bdb_6p7fQI_ivo.mjs} +28 -28
- package/node/esm/BIMkjQUwG4Ih-6Sh.mjs +142 -0
- package/node/esm/BNg4QQY0WAPLE0q7.mjs +141 -0
- package/node/esm/BPzcW4BejRqso338.mjs +72 -0
- package/node/esm/BR45ogAR-hY2bE60.mjs +318 -0
- package/node/esm/BlN7G0DVC24zauig.mjs +197 -0
- package/node/esm/Bph-sR3l6AYWeuxK.mjs +256 -0
- package/node/esm/CPq-MIdEnc-53JpF.mjs +319 -0
- package/node/esm/CSAnTp5rwId0DUb8.mjs +380 -0
- package/node/esm/CWcv7UVXF8IUB0PC.mjs +1379 -0
- package/node/esm/{BA7VzUQ2sKRLTZ5c.mjs → CYIoK22I6Yvv12_x.mjs} +20 -20
- package/node/esm/CZyA9uD4SkTvqp_G.mjs +1283 -0
- package/node/esm/{CHi3AuWEwEPOg9IZ.mjs → CjC6s3RUJQNCF7mP.mjs} +1 -1
- package/node/esm/{DXZrzWee8K5FPOW1.mjs → CuMePia6i_8yfJ6S.mjs} +9 -9
- package/node/esm/CvRbu8JPxFarsSR-.mjs +412 -0
- package/node/esm/CyafafEgfmjLqE5O.mjs +521 -0
- package/node/esm/D-xqQ5qOSd6WrzwJ.mjs +94 -0
- package/node/esm/DLqBHdFp6wvm6EGs.mjs +212 -0
- package/node/esm/{BwZcoHDBmLPIVOT5.mjs → DMXLxp3T0E0SRTQc.mjs} +69 -70
- package/node/esm/{CUMKTjYv6VTkcWYi.mjs → DWqvf4H5F2wMnZ0L.mjs} +32 -30
- package/node/esm/DatM6eEYPpAtIMy-.mjs +405 -0
- package/node/esm/Db3dbaYLKUO66T9s.mjs +1689 -0
- package/node/esm/DdEzhVqYTrGODXrz.mjs +68 -0
- package/node/esm/DeZJlLk8WJ3BLtLs.mjs +975 -0
- package/node/esm/DfCuL8AUxMFoEG2s.mjs +519 -0
- package/node/esm/Do-zCKziWhoG5eAv.mjs +77 -0
- package/node/esm/DpJ2gmZJioCyq8La.mjs +632 -0
- package/node/esm/{Qpuqm6xBr_da38Ht.mjs → XEDcegsv5AGKBfu2.mjs} +165 -137
- package/node/esm/index.mjs +10124 -6751
- package/node/esm/yCUxQuqVuC4DHKPx.mjs +385 -0
- package/node/esm/zITjZ7R4raDqhP-n.mjs +515 -0
- package/package.json +15 -18
- package/resources/locales/de/groups.cmd.json +29 -16
- package/resources/locales/de/studio.cmd.json +18 -1
- package/resources/locales/de/ui.msg.json +447 -40
- package/resources/locales/en/groups.cmd.json +39 -17
- package/resources/locales/en/studio.cmd.json +18 -1
- package/resources/locales/en/ui.msg.json +403 -40
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +21 -5
- package/types/src/anchorItems/AnchorItemsPanel.d.ts +14 -0
- package/types/src/anchorItems/AnchoredRangeField.d.ts +40 -0
- package/types/src/anchorItems/index.d.ts +1 -0
- package/types/src/anomalies/AnomaliesPlugin.d.ts +5 -0
- package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
- package/types/src/anomalies/index.d.ts +3 -0
- package/types/src/border/BorderPopupButton.d.ts +6 -6
- package/types/src/border/BorderStylePopupButton.d.ts +3 -3
- package/types/src/border/BorderTemplateIcon.d.ts +29 -0
- package/types/src/border/index.d.ts +1 -0
- package/types/src/chart/ChartFormatPanel.d.ts +20 -0
- package/types/src/chart/ChartPlugin.d.ts +6 -0
- package/types/src/chart/index.d.ts +3 -0
- package/types/src/color/ColorPanel.d.ts +8 -2
- package/types/src/color/ColorPopupButton.d.ts +2 -1
- package/types/src/command/NumberFormatQuickButtons.d.ts +32 -0
- package/types/src/command/PresetCellStylesCommandButton.d.ts +3 -3
- package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
- package/types/src/comments/CommentCard.d.ts +41 -0
- package/types/src/comments/CommentsPlugin.d.ts +6 -0
- package/types/src/comments/CommentsTaskPane.d.ts +23 -0
- package/types/src/comments/index.d.ts +4 -0
- package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +4 -4
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +2 -2
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
- package/types/src/conditions/BetweenOption.d.ts +6 -1
- package/types/src/conditions/CombinatorOption.d.ts +7 -0
- package/types/src/conditions/ConditionEditor.d.ts +61 -4
- package/types/src/conditions/ConditionUtils.d.ts +65 -6
- package/types/src/conditions/ExpressionOption.d.ts +12 -6
- package/types/src/conditions/MembershipOption.d.ts +67 -0
- package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
- package/types/src/conditions/ScalarOption.d.ts +25 -6
- package/types/src/conditions/SelectorSelect.d.ts +16 -7
- package/types/src/conditions/index.d.ts +1 -1
- package/types/src/conditions/useFormulaOption.d.ts +54 -0
- package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +7 -1
- package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -2
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +13 -2
- package/types/src/dataValidation/DataValidationIcon.d.ts +22 -0
- package/types/src/dataValidation/DataValidationTitle.d.ts +13 -0
- package/types/src/dialog/FillSeriesDialog.d.ts +16 -0
- package/types/src/dialog/OutlineSettingsDialog.d.ts +12 -0
- package/types/src/dialog/TableNewDialog.d.ts +1 -4
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
- package/types/src/dialog/_ShortcutSearch.d.ts +26 -0
- package/types/src/dialog/index.d.ts +0 -2
- package/types/src/externalLink/ExternalLinkCardBody.d.ts +9 -0
- package/types/src/externalLink/ExternalLinkChip.d.ts +18 -0
- package/types/src/externalLink/ExternalLinkLocation.d.ts +18 -0
- package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +18 -0
- package/types/src/externalLink/ExternalLinksPanel.d.ts +11 -0
- package/types/src/externalLink/ExternalLinksPlugin.d.ts +5 -0
- package/types/src/externalLink/ExternalLinksTaskPane.d.ts +19 -0
- package/types/src/externalLink/index.d.ts +8 -0
- package/types/src/fill/GradientEditor.d.ts +41 -0
- package/types/src/fill/GradientStopsBar.d.ts +43 -0
- package/types/src/fill/PatternPopupButton.d.ts +26 -0
- package/types/src/fill/PatternSwatch.d.ts +53 -0
- package/types/src/fill/index.d.ts +5 -0
- package/types/src/filter/ColumnMenu.d.ts +31 -1
- package/types/src/filter/index.d.ts +0 -1
- package/types/src/form/FormulaField.d.ts +35 -6
- package/types/src/form/InputField.d.ts +35 -5
- package/types/src/format/AlignmentPanel.d.ts +13 -0
- package/types/src/format/BorderPanel.d.ts +22 -0
- package/types/src/format/BorderPreview.d.ts +101 -0
- package/types/src/format/FillPanel.d.ts +65 -0
- package/types/src/format/FontPanel.d.ts +12 -0
- package/types/src/format/FormatCellPreview.d.ts +35 -0
- package/types/src/format/FormatPanelParts.d.ts +85 -0
- package/types/src/format/FormatPlugin.d.ts +11 -0
- package/types/src/format/FormatTaskPane.d.ts +39 -0
- package/types/src/format/LinePanel.d.ts +53 -0
- package/types/src/format/LinePreviews.d.ts +71 -0
- package/types/src/format/NumberFormatOption.d.ts +43 -0
- package/types/src/{numberFormat → format}/NumberFormatPanel.d.ts +20 -0
- package/types/src/format/index.d.ts +14 -0
- package/types/src/format/useFormatSelection.d.ts +93 -0
- package/types/src/formulaBar/IFormulaBar.d.ts +11 -0
- package/types/src/formulaBar/MobileFormulaBar.d.ts +33 -0
- package/types/src/formulaBar/MobileInputToolbar.d.ts +43 -0
- package/types/src/formulaBar/index.d.ts +3 -0
- package/types/src/formulaBar/useFormulaBarSession.d.ts +68 -0
- package/types/src/index.d.ts +19 -4
- package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
- package/types/src/itemsPanel/EditorPanel.d.ts +4 -1
- package/types/src/itemsPanel/ItemCard.d.ts +60 -8
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +68 -19
- package/types/src/itemsPanel/ItemsPanel.d.ts +9 -0
- package/types/src/itemsPanel/ItemsSearchField.d.ts +17 -0
- package/types/src/itemsPanel/index.d.ts +2 -0
- package/types/src/named/NamedDetailsPanel.d.ts +9 -2
- package/types/src/named/NamedDetailsTaskPane.d.ts +3 -2
- package/types/src/named/NamedEditorPanel.d.ts +1 -1
- package/types/src/named/NamedExpressionField.d.ts +32 -0
- package/types/src/named/NamedKindChip.d.ts +38 -0
- package/types/src/picture/PicturePlugin.d.ts +6 -0
- package/types/src/picture/index.d.ts +2 -0
- package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +6 -0
- package/types/src/protectedRange/ProtectedRangeDraft.d.ts +22 -0
- package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +0 -14
- package/types/src/protectedRange/index.d.ts +2 -1
- package/types/src/protection/ManageProtectionTaskPane.d.ts +29 -0
- package/types/src/protection/PasswordDialog.d.ts +32 -0
- package/types/src/protection/PasswordField.d.ts +35 -0
- package/types/src/protection/ProtectedCellsPanel.d.ts +20 -0
- package/types/src/protection/ProtectionPlugin.d.ts +11 -0
- package/types/src/protection/WorkbookProtectionPanel.d.ts +34 -15
- package/types/src/protection/WorkbookProtectionTab.d.ts +22 -0
- package/types/src/protection/WorksheetProtectionPanel.d.ts +35 -0
- package/types/src/protection/index.d.ts +7 -1
- package/types/src/shape/InsertShapeCommandButton.d.ts +20 -0
- package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
- package/types/src/shape/ShapePlugin.d.ts +6 -0
- package/types/src/shape/index.d.ts +3 -0
- package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +18 -0
- package/types/src/slicer/SlicerPlugin.d.ts +6 -0
- package/types/src/slicer/index.d.ts +3 -0
- package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
- package/types/src/studio/CommandsWrapper.d.ts +5 -0
- package/types/src/studio/EagerStudio.d.ts +14 -1
- package/types/src/studio/StudioCommandProvider.d.ts +10 -0
- package/types/src/studio/StudioCommands.d.ts +40 -4
- package/types/src/studio/StudioProps.d.ts +64 -2
- package/types/src/studio/StudioSplitPane.d.ts +1 -1
- package/types/src/studio/formulaBarPlacement.d.ts +35 -0
- package/types/src/studio/splitStudioProps.d.ts +7 -0
- package/types/src/studio/useStudioApp.d.ts +31 -18
- package/types/src/template/TemplateCommands.d.ts +29 -0
- package/types/src/template/TemplateDialog.d.ts +19 -0
- package/types/src/template/TemplatePanel.d.ts +50 -0
- package/types/src/template/TemplateSearchField.d.ts +29 -0
- package/types/src/template/WelcomeDialog.d.ts +29 -0
- package/types/src/template/categoryColor.d.ts +8 -0
- package/types/src/template/index.d.ts +3 -0
- package/types/src/template/useTemplateCatalog.d.ts +71 -0
- package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
- package/types/src/workbook/DefaultRenderers.d.ts +16 -2
- package/types/src/workbook/FillMenu.d.ts +21 -0
- package/types/src/workbook/OutlineButtons.d.ts +11 -0
- package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
- package/types/src/workbook/WorkbookElement.d.ts +1 -1
- package/types/src/workbook/index.d.ts +1 -0
- package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
- package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
- package/browser/cjs/B_D3JKseVvpRyX-E.cjs +0 -1
- package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +0 -2
- package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +0 -2
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/Bte6P3MhSjajJmmY.cjs +0 -7
- package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
- package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +0 -1
- package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
- package/browser/cjs/CYxc8vnRi8dNpDPk.cjs +0 -1
- package/browser/cjs/CZm1jVZaHQ246prW.cjs +0 -1
- package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
- package/browser/cjs/Cm1APq2MraYNNhyI.cjs +0 -1
- package/browser/cjs/DO8V31Z1ewgMA1di.cjs +0 -5
- package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +0 -1
- package/browser/cjs/IASAYG6qgv7lJY7y.cjs +0 -1
- package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
- package/browser/cjs/UnMhi28mbvLiOXQe.cjs +0 -1
- package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +0 -1
- package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
- package/browser/cjs/index.cjs +0 -2
- package/browser/cjs/w2GjebPlOFv3pCbm.cjs +0 -1
- package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +0 -11
- package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +0 -1
- package/browser/esm/BuY3uV47Bwbqpasq.mjs +0 -219
- package/browser/esm/CAs1MWvJTcRfJy26.mjs +0 -217
- package/browser/esm/CBU3LgLYmqtQjJbu.mjs +0 -1150
- package/browser/esm/CDU0rqpLNVtMLI-f.mjs +0 -52
- package/browser/esm/CVBub6pgTsJzCc5m.mjs +0 -5429
- package/browser/esm/C_XvSsQ9BVdHffCO.mjs +0 -47
- package/browser/esm/FT29q8yNwsEpVZjt.mjs +0 -9257
- package/browser/esm/Hb1rlHT4tE5hLcjM.mjs +0 -82
- package/browser/esm/UJOXCQv6KrG1gY3l.mjs +0 -105
- package/browser/esm/s46El7mT6oKLSnYB.mjs +0 -411
- package/node/esm/9FY82fj1R1c-AczW.mjs +0 -47
- package/node/esm/C-boHCnJditFzng3.mjs +0 -106
- package/node/esm/DxXM8qHi0Oz4Zovl.mjs +0 -4575
- package/node/esm/sQt2wWGTRLzqeJdG.mjs +0 -82
- package/node/esm/yCHAZKxJR7qY_ySy.mjs +0 -470
- package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +0 -32
- package/types/src/conditions/DateTimeOption.d.ts +0 -43
- package/types/src/conditions/InSetOption.d.ts +0 -37
- package/types/src/dialog/CommentsDialog.d.ts +0 -11
- package/types/src/dialog/NumberFormatDialog.d.ts +0 -12
- package/types/src/filter/FilterList.d.ts +0 -28
- package/types/src/numberFormat/NumberFormatTaskPane.d.ts +0 -12
- package/types/src/numberFormat/index.d.ts +0 -8
- package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +0 -3
- package/types/src/protectedRange/ProtectedRangePlugin.d.ts +0 -2
- package/types/src/protection/WorkbookProtectionDialog.d.ts +0 -23
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { t as e } from "./ClBvNPeNCAhuVWrG.mjs";
|
|
8
|
+
import { formatCommentTime as t, getPersonInitials as n, useCommentThread as r } from "@sheetxl/react";
|
|
9
|
+
import { DynamicIcon as i, floatThemeScopeProps as a, useFloatSurface as o, useLanguage as s, useNotifier as c, useTranslator as l } from "@sheetxl/utils-react";
|
|
10
|
+
import { memo as u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
11
|
+
import { ExhibitMenuItem as h, SimpleTooltip as g } from "@sheetxl/utils-mui";
|
|
12
|
+
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
13
|
+
import { Avatar as b, Box as x, Button as S, IconButton as C, Menu as ee, Paper as te, TextField as w, Typography as T } from "@mui/material";
|
|
14
|
+
import { CoordUtils as E, messageKey as D } from "@sheetxl/utils";
|
|
15
|
+
var O = {
|
|
16
|
+
placeholder: D("comment.placeholder"),
|
|
17
|
+
reply: D("comment.reply"),
|
|
18
|
+
post: D("comment.post"),
|
|
19
|
+
save: D("comment.save"),
|
|
20
|
+
cancel: D("comment.cancel"),
|
|
21
|
+
edit: D("comment.edit"),
|
|
22
|
+
delete: D("comment.delete"),
|
|
23
|
+
resolve: D("comment.resolve"),
|
|
24
|
+
reopen: D("comment.reopen"),
|
|
25
|
+
resolved: D("comment.resolved"),
|
|
26
|
+
more: D("comment.more"),
|
|
27
|
+
unknownAuthor: D("comment.unknownAuthor")
|
|
28
|
+
}, k = "var(--sxl-comment-thread-indicator, #7e57c2)", A = "var(--sxl-comment-resolved-indicator, #9e9e9e)", j = (e) => {
|
|
29
|
+
let { initialValue: t = "", placeholder: n, submitLabel: r, cancelLabel: i, alwaysShowActions: a = !1, onSubmit: o, onCancel: s, refInput: c } = e, [l, u] = m(t), d = l.trim().length === 0, f = () => {
|
|
30
|
+
d || (o(l), u(""));
|
|
31
|
+
}, p = () => {
|
|
32
|
+
u(""), s?.();
|
|
33
|
+
};
|
|
34
|
+
return y(x, {
|
|
35
|
+
sx: {
|
|
36
|
+
display: "flex",
|
|
37
|
+
flexDirection: "column",
|
|
38
|
+
gap: .75
|
|
39
|
+
},
|
|
40
|
+
children: [v(w, {
|
|
41
|
+
className: "sxl-comment-field",
|
|
42
|
+
inputRef: c,
|
|
43
|
+
value: l,
|
|
44
|
+
placeholder: n,
|
|
45
|
+
multiline: !0,
|
|
46
|
+
minRows: 1,
|
|
47
|
+
maxRows: 8,
|
|
48
|
+
size: "small",
|
|
49
|
+
fullWidth: !0,
|
|
50
|
+
sx: { "& .MuiInputBase-root": {
|
|
51
|
+
padding: "4px 8px",
|
|
52
|
+
fontSize: "0.875rem",
|
|
53
|
+
lineHeight: 1.43
|
|
54
|
+
} },
|
|
55
|
+
onChange: (e) => u(e.target.value),
|
|
56
|
+
onContextMenu: (e) => {
|
|
57
|
+
e.stopPropagation();
|
|
58
|
+
},
|
|
59
|
+
onKeyDown: (e) => {
|
|
60
|
+
e.stopPropagation(), e.key === "Enter" && (e.ctrlKey || e.metaKey) ? (e.preventDefault(), f()) : e.key !== "Escape" || !s && d || (e.preventDefault(), p());
|
|
61
|
+
},
|
|
62
|
+
slotProps: { htmlInput: {
|
|
63
|
+
"aria-label": n,
|
|
64
|
+
style: { userSelect: "text" }
|
|
65
|
+
} }
|
|
66
|
+
}), a || !d ? y(x, {
|
|
67
|
+
sx: {
|
|
68
|
+
display: "flex",
|
|
69
|
+
justifyContent: "flex-end",
|
|
70
|
+
gap: .75
|
|
71
|
+
},
|
|
72
|
+
children: [v(S, {
|
|
73
|
+
size: "small",
|
|
74
|
+
onClick: p,
|
|
75
|
+
children: i
|
|
76
|
+
}), v(S, {
|
|
77
|
+
size: "small",
|
|
78
|
+
variant: "contained",
|
|
79
|
+
disabled: d,
|
|
80
|
+
onClick: f,
|
|
81
|
+
children: r
|
|
82
|
+
})]
|
|
83
|
+
}) : null]
|
|
84
|
+
});
|
|
85
|
+
}, M = (e) => {
|
|
86
|
+
let { author: r, date: a, content: o, editor: c, trailing: u, overhang: d = !1, onMenu: f } = e, p = l(), m = s(), h = r?.getDisplayName() || p(O.unknownAuthor), _ = t(a, { locale: m });
|
|
87
|
+
return y(x, {
|
|
88
|
+
className: "sxl-comment-entry",
|
|
89
|
+
sx: {
|
|
90
|
+
display: "flex",
|
|
91
|
+
gap: 1,
|
|
92
|
+
minWidth: 0
|
|
93
|
+
},
|
|
94
|
+
children: [v(b, {
|
|
95
|
+
"aria-hidden": !0,
|
|
96
|
+
sx: {
|
|
97
|
+
width: 28,
|
|
98
|
+
height: 28,
|
|
99
|
+
fontSize: "0.75rem",
|
|
100
|
+
bgcolor: "primary.main",
|
|
101
|
+
color: "primary.contrastText",
|
|
102
|
+
marginLeft: d ? "-26px" : void 0
|
|
103
|
+
},
|
|
104
|
+
children: n(h)
|
|
105
|
+
}), y(x, {
|
|
106
|
+
sx: {
|
|
107
|
+
flex: "1 1 auto",
|
|
108
|
+
minWidth: 0
|
|
109
|
+
},
|
|
110
|
+
children: [
|
|
111
|
+
y(x, {
|
|
112
|
+
sx: {
|
|
113
|
+
display: "flex",
|
|
114
|
+
alignItems: "center",
|
|
115
|
+
gap: .75,
|
|
116
|
+
minHeight: 28
|
|
117
|
+
},
|
|
118
|
+
children: [
|
|
119
|
+
v(T, {
|
|
120
|
+
className: "sxl-comment-author",
|
|
121
|
+
variant: "subtitle2",
|
|
122
|
+
sx: {
|
|
123
|
+
fontWeight: 600,
|
|
124
|
+
overflow: "hidden",
|
|
125
|
+
textOverflow: "ellipsis",
|
|
126
|
+
whiteSpace: "nowrap"
|
|
127
|
+
},
|
|
128
|
+
children: h
|
|
129
|
+
}),
|
|
130
|
+
v(x, { sx: { flex: "1 1 auto" } }),
|
|
131
|
+
u,
|
|
132
|
+
f ? v(g, {
|
|
133
|
+
disableInteractive: !0,
|
|
134
|
+
title: p(O.more),
|
|
135
|
+
children: v(C, {
|
|
136
|
+
className: "sxl-comment-menu",
|
|
137
|
+
size: "small",
|
|
138
|
+
"aria-label": p(O.more),
|
|
139
|
+
"aria-haspopup": "menu",
|
|
140
|
+
sx: {
|
|
141
|
+
padding: "2px",
|
|
142
|
+
flexShrink: 0
|
|
143
|
+
},
|
|
144
|
+
onClick: (e) => {
|
|
145
|
+
e.stopPropagation(), f(e.currentTarget);
|
|
146
|
+
},
|
|
147
|
+
children: v(i, {
|
|
148
|
+
style: { transform: "scale(0.85)" },
|
|
149
|
+
iconKey: "MoreHorizontal"
|
|
150
|
+
})
|
|
151
|
+
})
|
|
152
|
+
}) : null
|
|
153
|
+
]
|
|
154
|
+
}),
|
|
155
|
+
c ?? v(T, {
|
|
156
|
+
className: "sxl-comment-text",
|
|
157
|
+
variant: "body2",
|
|
158
|
+
sx: {
|
|
159
|
+
whiteSpace: "pre-wrap",
|
|
160
|
+
overflowWrap: "anywhere",
|
|
161
|
+
userSelect: "text"
|
|
162
|
+
},
|
|
163
|
+
children: o
|
|
164
|
+
}),
|
|
165
|
+
_ ? v(g, {
|
|
166
|
+
disableInteractive: !0,
|
|
167
|
+
title: _.absolute,
|
|
168
|
+
placement: "bottom-start",
|
|
169
|
+
children: v(T, {
|
|
170
|
+
className: "sxl-comment-time",
|
|
171
|
+
variant: "caption",
|
|
172
|
+
sx: {
|
|
173
|
+
display: "inline-block",
|
|
174
|
+
color: "text.secondary",
|
|
175
|
+
whiteSpace: "nowrap",
|
|
176
|
+
mt: .25
|
|
177
|
+
},
|
|
178
|
+
children: _.relative
|
|
179
|
+
})
|
|
180
|
+
}) : null
|
|
181
|
+
]
|
|
182
|
+
})]
|
|
183
|
+
});
|
|
184
|
+
}, N = u((t) => {
|
|
185
|
+
let { sheet: n, coords: s, comment: u, focusRequest: b = 0, highlighted: S = !1, elevated: w = !1, onSelect: D, onClose: N, onPosted: P, className: F, ref: I, ...L } = t, R = l(), z = c(), B = r(u), V = a(o()?.themeScope), [H, U] = m(null), [W, G] = m(null), K = p(null);
|
|
186
|
+
d(() => {
|
|
187
|
+
b && K.current?.focus();
|
|
188
|
+
}, [b]);
|
|
189
|
+
let q = (e) => {
|
|
190
|
+
try {
|
|
191
|
+
e();
|
|
192
|
+
} catch (e) {
|
|
193
|
+
z.showError?.(e);
|
|
194
|
+
}
|
|
195
|
+
}, ne = n.getRange(E.cellToRange(s)).getAddress(), J = B?.resolved ? A : k, Y = !u, re = f(() => Y ? n.getWorkbook()?.getPeople().getCurrent() ?? null : null, [Y, n]), X = v(T, {
|
|
196
|
+
className: "sxl-comment-address",
|
|
197
|
+
variant: "caption",
|
|
198
|
+
sx: {
|
|
199
|
+
color: "text.secondary",
|
|
200
|
+
flexShrink: 0
|
|
201
|
+
},
|
|
202
|
+
children: ne
|
|
203
|
+
}), Z = !!B?.deleted, Q = !Z && !!B?.resolved, ie = Q && u ? y(x, {
|
|
204
|
+
className: "sxl-comment-resolved-header",
|
|
205
|
+
sx: {
|
|
206
|
+
display: "flex",
|
|
207
|
+
alignItems: "center",
|
|
208
|
+
gap: .75,
|
|
209
|
+
minWidth: 0,
|
|
210
|
+
pb: .75,
|
|
211
|
+
borderBottom: 1,
|
|
212
|
+
borderColor: "divider"
|
|
213
|
+
},
|
|
214
|
+
children: [
|
|
215
|
+
v(i, {
|
|
216
|
+
style: { transform: "scale(0.85)" },
|
|
217
|
+
iconKey: "Check"
|
|
218
|
+
}),
|
|
219
|
+
v(T, {
|
|
220
|
+
variant: "subtitle2",
|
|
221
|
+
sx: { fontWeight: 600 },
|
|
222
|
+
children: R(O.resolved)
|
|
223
|
+
}),
|
|
224
|
+
v(x, { sx: { flex: "1 1 auto" } }),
|
|
225
|
+
v(g, {
|
|
226
|
+
disableInteractive: !0,
|
|
227
|
+
title: R(O.reopen),
|
|
228
|
+
children: v(C, {
|
|
229
|
+
className: "sxl-comment-reopen",
|
|
230
|
+
size: "small",
|
|
231
|
+
"aria-label": R(O.reopen),
|
|
232
|
+
sx: { padding: "2px" },
|
|
233
|
+
onClick: () => q(() => {
|
|
234
|
+
u.setResolved(!1);
|
|
235
|
+
}),
|
|
236
|
+
children: v(i, {
|
|
237
|
+
style: { transform: "scale(0.85)" },
|
|
238
|
+
iconKey: "Undo"
|
|
239
|
+
})
|
|
240
|
+
})
|
|
241
|
+
}),
|
|
242
|
+
v(g, {
|
|
243
|
+
disableInteractive: !0,
|
|
244
|
+
title: R(O.delete),
|
|
245
|
+
children: v(C, {
|
|
246
|
+
className: "sxl-comment-delete",
|
|
247
|
+
size: "small",
|
|
248
|
+
"aria-label": R(O.delete),
|
|
249
|
+
sx: { padding: "2px" },
|
|
250
|
+
onClick: () => q(() => {
|
|
251
|
+
u.delete();
|
|
252
|
+
}),
|
|
253
|
+
children: v(i, {
|
|
254
|
+
style: { transform: "scale(0.85)" },
|
|
255
|
+
iconKey: "Delete"
|
|
256
|
+
})
|
|
257
|
+
})
|
|
258
|
+
})
|
|
259
|
+
]
|
|
260
|
+
}) : null, ae = W?.replyId ? u?.getReply(W.replyId) ?? null : null, $ = (e, t) => v(j, {
|
|
261
|
+
initialValue: e,
|
|
262
|
+
placeholder: R(O.edit),
|
|
263
|
+
submitLabel: R(O.save),
|
|
264
|
+
cancelLabel: R(O.cancel),
|
|
265
|
+
alwaysShowActions: !0,
|
|
266
|
+
refInput: (e) => {
|
|
267
|
+
e?.focus();
|
|
268
|
+
},
|
|
269
|
+
onSubmit: (e) => {
|
|
270
|
+
q(() => t(e)), U(null);
|
|
271
|
+
},
|
|
272
|
+
onCancel: () => U(null)
|
|
273
|
+
});
|
|
274
|
+
return y(te, {
|
|
275
|
+
ref: I,
|
|
276
|
+
tabIndex: -1,
|
|
277
|
+
elevation: w ? 6 : 0,
|
|
278
|
+
...L,
|
|
279
|
+
className: e("sxl-comment-card", F, {
|
|
280
|
+
"sxl-comment-draft": Y,
|
|
281
|
+
"sxl-comment-resolved": !!B?.resolved,
|
|
282
|
+
"sxl-comment-highlighted": S
|
|
283
|
+
}),
|
|
284
|
+
"data-comment-id": u?.getId(),
|
|
285
|
+
onClick: (e) => {
|
|
286
|
+
L.onClick?.(e), D && !e.defaultPrevented && (e.target.closest("input, textarea, button, a, [role=\"button\"], [role=\"menu\"], .MuiFormControl-root") || D());
|
|
287
|
+
},
|
|
288
|
+
sx: {
|
|
289
|
+
display: "flex",
|
|
290
|
+
flexDirection: "column",
|
|
291
|
+
gap: (e) => e.spacing(1),
|
|
292
|
+
boxSizing: "border-box",
|
|
293
|
+
width: w ? 300 : void 0,
|
|
294
|
+
maxWidth: "100%",
|
|
295
|
+
padding: (e) => `${e.spacing(1.25)} 12px`,
|
|
296
|
+
border: `1px solid ${J}`,
|
|
297
|
+
borderRadius: (e) => e.spacing(1.25),
|
|
298
|
+
borderLeft: S ? `4px solid ${J}` : void 0,
|
|
299
|
+
cursor: D ? "pointer" : void 0,
|
|
300
|
+
"&:focus-within": { outline: `2px solid ${J}` }
|
|
301
|
+
},
|
|
302
|
+
children: [
|
|
303
|
+
Y || Z ? null : y(_, { children: [
|
|
304
|
+
ie,
|
|
305
|
+
v(M, {
|
|
306
|
+
author: B.author,
|
|
307
|
+
date: B.date,
|
|
308
|
+
content: B.content,
|
|
309
|
+
trailing: X,
|
|
310
|
+
overhang: !0,
|
|
311
|
+
editor: H && H.replyId === null ? $(B.content, (e) => {
|
|
312
|
+
u.setContent(e);
|
|
313
|
+
}) : void 0,
|
|
314
|
+
onMenu: Q ? void 0 : (e) => G({
|
|
315
|
+
anchor: e,
|
|
316
|
+
replyId: null
|
|
317
|
+
})
|
|
318
|
+
}),
|
|
319
|
+
B.replies.length > 0 ? v(x, {
|
|
320
|
+
className: "sxl-comment-replies",
|
|
321
|
+
sx: {
|
|
322
|
+
display: "flex",
|
|
323
|
+
flexDirection: "column",
|
|
324
|
+
gap: 1,
|
|
325
|
+
pl: 2.5,
|
|
326
|
+
minWidth: 0
|
|
327
|
+
},
|
|
328
|
+
children: B.replies.map((e) => v(M, {
|
|
329
|
+
author: e.getAuthor(),
|
|
330
|
+
date: e.getCreationDate(),
|
|
331
|
+
content: e.getContent(),
|
|
332
|
+
editor: H?.replyId === e.getId() ? $(e.getContent(), (t) => {
|
|
333
|
+
e.setContent(t);
|
|
334
|
+
}) : void 0,
|
|
335
|
+
onMenu: Q ? void 0 : (t) => G({
|
|
336
|
+
anchor: t,
|
|
337
|
+
replyId: e.getId()
|
|
338
|
+
})
|
|
339
|
+
}, e.getId()))
|
|
340
|
+
}) : null
|
|
341
|
+
] }),
|
|
342
|
+
Y ? v(M, {
|
|
343
|
+
author: re,
|
|
344
|
+
date: null,
|
|
345
|
+
content: "",
|
|
346
|
+
trailing: X,
|
|
347
|
+
overhang: !0,
|
|
348
|
+
editor: v(j, {
|
|
349
|
+
placeholder: R(O.placeholder),
|
|
350
|
+
submitLabel: R(O.post),
|
|
351
|
+
cancelLabel: R(O.cancel),
|
|
352
|
+
alwaysShowActions: !0,
|
|
353
|
+
refInput: K,
|
|
354
|
+
onSubmit: (e) => {
|
|
355
|
+
q(() => {
|
|
356
|
+
let t = n.getComments().add(E.cellToRange(s), e);
|
|
357
|
+
P?.(t);
|
|
358
|
+
});
|
|
359
|
+
},
|
|
360
|
+
onCancel: N
|
|
361
|
+
})
|
|
362
|
+
}) : Z || Q ? null : v(j, {
|
|
363
|
+
placeholder: R(O.reply),
|
|
364
|
+
submitLabel: R(O.post),
|
|
365
|
+
cancelLabel: R(O.cancel),
|
|
366
|
+
refInput: K,
|
|
367
|
+
onSubmit: (e) => q(() => {
|
|
368
|
+
u.addReply(e);
|
|
369
|
+
})
|
|
370
|
+
}),
|
|
371
|
+
W && u ? y(ee, {
|
|
372
|
+
open: !0,
|
|
373
|
+
anchorEl: W.anchor,
|
|
374
|
+
className: V.className,
|
|
375
|
+
...V.attrs,
|
|
376
|
+
onClose: () => G(null),
|
|
377
|
+
onClick: (e) => {
|
|
378
|
+
e.stopPropagation();
|
|
379
|
+
},
|
|
380
|
+
children: [
|
|
381
|
+
v(h, {
|
|
382
|
+
icon: v(i, { iconKey: "CardEdit" }),
|
|
383
|
+
onClick: () => {
|
|
384
|
+
U({ replyId: W.replyId }), G(null);
|
|
385
|
+
},
|
|
386
|
+
children: R(O.edit)
|
|
387
|
+
}),
|
|
388
|
+
W.replyId === null ? v(h, {
|
|
389
|
+
icon: v(i, { iconKey: B?.resolved ? "Undo" : "Check" }),
|
|
390
|
+
onClick: () => {
|
|
391
|
+
q(() => {
|
|
392
|
+
u.setResolved(!u.isResolved());
|
|
393
|
+
}), G(null);
|
|
394
|
+
},
|
|
395
|
+
children: R(B?.resolved ? O.reopen : O.resolve)
|
|
396
|
+
}) : null,
|
|
397
|
+
v(h, {
|
|
398
|
+
icon: v(i, { iconKey: "Delete" }),
|
|
399
|
+
onClick: () => {
|
|
400
|
+
q(() => {
|
|
401
|
+
W.replyId === null ? u.delete() : ae?.delete();
|
|
402
|
+
}), G(null);
|
|
403
|
+
},
|
|
404
|
+
children: R(O.delete)
|
|
405
|
+
})
|
|
406
|
+
]
|
|
407
|
+
}) : null
|
|
408
|
+
]
|
|
409
|
+
});
|
|
410
|
+
});
|
|
411
|
+
N.displayName = "CommentCard";
|
|
412
|
+
export { N as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
function e(t) {
|
|
8
8
|
var n, r, i = "";
|
|
9
9
|
if (typeof t == "string" || typeof t == "number") i += t;
|
|
10
|
-
else if (typeof t == "object")
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
else if (typeof t == "object") {
|
|
11
|
+
if (Array.isArray(t)) {
|
|
12
|
+
var a = t.length;
|
|
13
|
+
for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
|
|
14
|
+
} else for (r in t) t[r] && (i && (i += " "), i += r);
|
|
15
|
+
}
|
|
14
16
|
return i;
|
|
15
17
|
}
|
|
16
18
|
function t() {
|