@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,212 @@
|
|
|
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 { ICellRange as e } from "@sheetxl/sdk";
|
|
8
|
+
import { addRangeAnnotations as t, clearRangeAnnotations as n, useModelListener as r } from "@sheetxl/react";
|
|
9
|
+
import { DynamicIcon as i } from "@sheetxl/utils-react";
|
|
10
|
+
import { memo as a, useEffect as o, useState as s } from "react";
|
|
11
|
+
import { SimpleTooltip as c } from "@sheetxl/utils-mui";
|
|
12
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
13
|
+
import { Box as d, Button as f, Chip as p, IconButton as m, Typography as h } from "@mui/material";
|
|
14
|
+
var g = "anomalies", _ = {
|
|
15
|
+
formula: "Inconsistent formula",
|
|
16
|
+
formulaRange: "Omits adjacent cells",
|
|
17
|
+
numberStoredAsText: "Number stored as text",
|
|
18
|
+
emptyCellReference: "Refers to an empty cell",
|
|
19
|
+
unlockedFormula: "Unlocked formula",
|
|
20
|
+
hardcodeInRun: "Typed value in a run of formulas",
|
|
21
|
+
styleBreak: "Format break"
|
|
22
|
+
}, v = (e, t) => `'${e.getName().replace(/'/g, "''")}'!${t}`, y = (e) => {
|
|
23
|
+
let t = e.evidence, n = [];
|
|
24
|
+
return t.axis !== void 0 && n.push(t.axis === "row" ? "run left and right" : "run above and below"), t.expected !== void 0 && n.push(`run has ${t.expected}`), t.actual !== void 0 && n.push(`here ${t.actual}`), t.reference !== void 0 && n.push(`reads ${t.reference}`), t.omitted !== void 0 && n.push(`stops before ${t.omitted}`), Number(t.thickness) > 1 && n.push(`${t.thickness} thick`), Number(t.flanks) === 1 && n.push("one cell each side"), n.join(" · ");
|
|
25
|
+
}, b = a((a) => {
|
|
26
|
+
let { model: b, args: x, entryKey: S, frame: C, ref: w, ...T } = a, [E, D] = s(() => b?.getSelectedWorksheet() ?? null);
|
|
27
|
+
r(b, { onSheetsChange() {
|
|
28
|
+
D(b?.getSelectedWorksheet() ?? null);
|
|
29
|
+
} });
|
|
30
|
+
let [O, k] = s(null), [A, j] = s(() => /* @__PURE__ */ new Set()), [M, N] = s(0), [P, F] = s(E);
|
|
31
|
+
P !== E && (F(E), k(null), j(/* @__PURE__ */ new Set()));
|
|
32
|
+
let I = () => {
|
|
33
|
+
b && n(b, {
|
|
34
|
+
intent: "working",
|
|
35
|
+
source: g
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
if (o(() => I, [b]), !b || !E) return null;
|
|
39
|
+
let L = O?.filter((e) => !A.has(e.key)) ?? [], R = L.reduce((e, t) => e + t.rows * t.cols, 0);
|
|
40
|
+
return u(d, {
|
|
41
|
+
ref: w,
|
|
42
|
+
...T,
|
|
43
|
+
className: "sxl-anomalies-pane",
|
|
44
|
+
sx: {
|
|
45
|
+
display: "flex",
|
|
46
|
+
flexDirection: "column",
|
|
47
|
+
width: "100%",
|
|
48
|
+
minWidth: 0,
|
|
49
|
+
flex: "1 1 auto",
|
|
50
|
+
height: "100%",
|
|
51
|
+
minHeight: 0,
|
|
52
|
+
overflowX: "hidden"
|
|
53
|
+
},
|
|
54
|
+
children: [u(d, {
|
|
55
|
+
sx: {
|
|
56
|
+
display: "flex",
|
|
57
|
+
alignItems: "center",
|
|
58
|
+
gap: 1,
|
|
59
|
+
flex: "0 0 auto",
|
|
60
|
+
px: 1.5,
|
|
61
|
+
py: 1,
|
|
62
|
+
borderBottom: 1,
|
|
63
|
+
borderColor: "divider"
|
|
64
|
+
},
|
|
65
|
+
children: [l(f, {
|
|
66
|
+
variant: "contained",
|
|
67
|
+
size: "small",
|
|
68
|
+
sx: { textTransform: "none" },
|
|
69
|
+
onClick: () => {
|
|
70
|
+
I();
|
|
71
|
+
let t = performance.now();
|
|
72
|
+
k(((t) => {
|
|
73
|
+
let n = t.getUsedRange();
|
|
74
|
+
return n ? [...n.getRegions(e.Feature.Anomalies)].map((e) => {
|
|
75
|
+
let t = e.getCoords();
|
|
76
|
+
return {
|
|
77
|
+
key: `${t.rowStart},${t.colStart},${t.rowEnd},${t.colEnd}`,
|
|
78
|
+
coords: t,
|
|
79
|
+
address: e.getAddress(),
|
|
80
|
+
rows: e.getRowCount(),
|
|
81
|
+
cols: e.getColumnCount(),
|
|
82
|
+
anomalies: e.getCell().getAnomalies()
|
|
83
|
+
};
|
|
84
|
+
}) : [];
|
|
85
|
+
})(E)), N(Math.round(performance.now() - t)), j(/* @__PURE__ */ new Set());
|
|
86
|
+
},
|
|
87
|
+
children: "Analyze"
|
|
88
|
+
}), l(h, {
|
|
89
|
+
variant: "body2",
|
|
90
|
+
sx: {
|
|
91
|
+
color: "text.secondary",
|
|
92
|
+
minWidth: 0,
|
|
93
|
+
overflow: "hidden",
|
|
94
|
+
textOverflow: "ellipsis",
|
|
95
|
+
whiteSpace: "nowrap"
|
|
96
|
+
},
|
|
97
|
+
children: O === null ? E.getName() : `${E.getName()} · ${L.length} regions · ${R} cells · ${M} ms`
|
|
98
|
+
})]
|
|
99
|
+
}), u(d, {
|
|
100
|
+
className: "sxl-anomalies-list",
|
|
101
|
+
sx: {
|
|
102
|
+
flex: "1 1 auto",
|
|
103
|
+
minHeight: 0,
|
|
104
|
+
overflowY: "auto",
|
|
105
|
+
display: "flex",
|
|
106
|
+
flexDirection: "column",
|
|
107
|
+
gap: 1,
|
|
108
|
+
p: 1.5
|
|
109
|
+
},
|
|
110
|
+
onMouseLeave: I,
|
|
111
|
+
children: [O === null ? l(h, {
|
|
112
|
+
variant: "body2",
|
|
113
|
+
sx: { color: "text.secondary" },
|
|
114
|
+
children: "Analyze lists where this sheet breaks its own patterns."
|
|
115
|
+
}) : L.length === 0 ? l(h, {
|
|
116
|
+
variant: "body2",
|
|
117
|
+
sx: { color: "text.secondary" },
|
|
118
|
+
children: "Nothing breaks a pattern here."
|
|
119
|
+
}) : null, L.map((e) => u(d, {
|
|
120
|
+
className: "sxl-anomalies-card",
|
|
121
|
+
onMouseEnter: () => ((e) => {
|
|
122
|
+
t(b, "working", [{ range: v(E, e.address) }], { source: g });
|
|
123
|
+
})(e),
|
|
124
|
+
onClick: () => {
|
|
125
|
+
E.getRange(e.coords).select();
|
|
126
|
+
},
|
|
127
|
+
sx: {
|
|
128
|
+
display: "flex",
|
|
129
|
+
flexDirection: "column",
|
|
130
|
+
gap: .5,
|
|
131
|
+
flex: "0 0 auto",
|
|
132
|
+
border: 1,
|
|
133
|
+
borderColor: "divider",
|
|
134
|
+
borderRadius: 1,
|
|
135
|
+
px: 1.25,
|
|
136
|
+
py: 1,
|
|
137
|
+
cursor: "pointer",
|
|
138
|
+
"&:hover": { borderColor: "primary.main" }
|
|
139
|
+
},
|
|
140
|
+
children: [u(d, {
|
|
141
|
+
sx: {
|
|
142
|
+
display: "flex",
|
|
143
|
+
alignItems: "center",
|
|
144
|
+
gap: 1
|
|
145
|
+
},
|
|
146
|
+
children: [
|
|
147
|
+
l(h, {
|
|
148
|
+
variant: "body2",
|
|
149
|
+
sx: { fontWeight: 600 },
|
|
150
|
+
children: e.address
|
|
151
|
+
}),
|
|
152
|
+
l(h, {
|
|
153
|
+
variant: "caption",
|
|
154
|
+
sx: { color: "text.secondary" },
|
|
155
|
+
children: `${e.rows}×${e.cols} · rank ${e.anomalies[0]?.rank ?? 0}`
|
|
156
|
+
}),
|
|
157
|
+
l(d, { sx: { flex: "1 1 auto" } }),
|
|
158
|
+
l(c, {
|
|
159
|
+
disableInteractive: !0,
|
|
160
|
+
title: "Dismiss",
|
|
161
|
+
children: l(m, {
|
|
162
|
+
size: "small",
|
|
163
|
+
"aria-label": "Dismiss",
|
|
164
|
+
onClick: (t) => {
|
|
165
|
+
t.stopPropagation(), I(), j((t) => new Set(t).add(e.key));
|
|
166
|
+
},
|
|
167
|
+
children: l(i, { iconKey: "Close" })
|
|
168
|
+
})
|
|
169
|
+
})
|
|
170
|
+
]
|
|
171
|
+
}), e.anomalies.map((e, t) => {
|
|
172
|
+
let n = e.evidence.corroborated, r = e.evidence.layer;
|
|
173
|
+
return u(d, {
|
|
174
|
+
sx: {
|
|
175
|
+
display: "flex",
|
|
176
|
+
flexDirection: "column",
|
|
177
|
+
gap: .25
|
|
178
|
+
},
|
|
179
|
+
children: [
|
|
180
|
+
l(h, {
|
|
181
|
+
variant: "body2",
|
|
182
|
+
children: `${_[e.check] ?? e.check}${r ? ` · ${r}` : ""}`
|
|
183
|
+
}),
|
|
184
|
+
l(h, {
|
|
185
|
+
variant: "caption",
|
|
186
|
+
sx: {
|
|
187
|
+
color: "text.secondary",
|
|
188
|
+
overflowWrap: "anywhere"
|
|
189
|
+
},
|
|
190
|
+
children: y(e)
|
|
191
|
+
}),
|
|
192
|
+
Array.isArray(n) && n.length > 0 ? l(d, {
|
|
193
|
+
sx: {
|
|
194
|
+
display: "flex",
|
|
195
|
+
flexWrap: "wrap",
|
|
196
|
+
gap: .5
|
|
197
|
+
},
|
|
198
|
+
children: n.map((e) => l(p, {
|
|
199
|
+
size: "small",
|
|
200
|
+
variant: "outlined",
|
|
201
|
+
label: e
|
|
202
|
+
}, e))
|
|
203
|
+
}) : null
|
|
204
|
+
]
|
|
205
|
+
}, t);
|
|
206
|
+
})]
|
|
207
|
+
}, e.key))]
|
|
208
|
+
})]
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
b.displayName = "AnomaliesTaskPane";
|
|
212
|
+
export { b as AnomaliesTaskPane, b as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
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 e from "react";
|
|
8
|
+
var t = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
9
|
+
e.createContext(null).displayName = "HookFormControlContext", t ? e.useLayoutEffect : e.useEffect;
|
|
10
|
+
var n = e.createContext(null);
|
|
11
|
+
n.displayName = "HookFormContext";
|
|
12
|
+
var r = () => e.useContext(n);
|
|
13
|
+
export { r as t };
|
|
@@ -0,0 +1,386 @@
|
|
|
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 { r as t, t as n } from "./DJOOed_OtB-XT7f3.mjs";
|
|
9
|
+
import { n as r } from "./DG21x7RKDpge6zAE.mjs";
|
|
10
|
+
import { n as i } from "./DDc6rDuU9JAo1DH_.mjs";
|
|
11
|
+
import { InputField as a } from "./index.mjs";
|
|
12
|
+
import { useModelListener as o, useWorksheet as s } from "@sheetxl/react";
|
|
13
|
+
import { CommandButtonType as c, useCallbackRef as l, useMeasure as u, useNotifier as d, useTranslator as f } from "@sheetxl/utils-react";
|
|
14
|
+
import { forwardRef as p, memo as m, useCallback as h, useEffect as g, useMemo as _, useReducer as v, useRef as y, useState as b } from "react";
|
|
15
|
+
import { CommandButton as x, ExhibitDivider as S } from "@sheetxl/utils-mui";
|
|
16
|
+
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
17
|
+
import { Box as T, Checkbox as E, FormControlLabel as D, Paper as O, Typography as k } from "@mui/material";
|
|
18
|
+
var A = "_table-style-options-container_1kfn2_1", j = "_table-style-options_1kfn2_1", M = m(p((t, n) => {
|
|
19
|
+
let { styleOptions: r, onStyleOptionsChange: i, showHeaderRow: a, onShowHeaderRowChange: o, showTotalRow: s, onShowTotalRowChange: c, showButton: l, onShowButtonChange: u, sx: d, className: p, disabled: m, ...h } = t, g = f();
|
|
20
|
+
return C("div", {
|
|
21
|
+
className: A,
|
|
22
|
+
children: w(T, {
|
|
23
|
+
sx: {
|
|
24
|
+
pt: 1,
|
|
25
|
+
pb: 1,
|
|
26
|
+
"& .MuiFormControlLabel-root": {
|
|
27
|
+
marginLeft: (e) => `${e.spacing(2)}`,
|
|
28
|
+
marginRight: (e) => `${e.spacing(2)}`
|
|
29
|
+
},
|
|
30
|
+
"& .MuiCheckbox-root": { padding: (e) => `${e.spacing(.5)}` },
|
|
31
|
+
...d
|
|
32
|
+
},
|
|
33
|
+
...h,
|
|
34
|
+
ref: n,
|
|
35
|
+
className: e(p, j),
|
|
36
|
+
children: [
|
|
37
|
+
o && C(D, {
|
|
38
|
+
control: C(E, {
|
|
39
|
+
checked: a ?? !1,
|
|
40
|
+
indeterminate: a == null,
|
|
41
|
+
onChange: () => o(!a),
|
|
42
|
+
disabled: m || a == null
|
|
43
|
+
}),
|
|
44
|
+
label: g("tableStyle.headerRow"),
|
|
45
|
+
labelPlacement: "end"
|
|
46
|
+
}),
|
|
47
|
+
c && C(D, {
|
|
48
|
+
control: C(E, {
|
|
49
|
+
checked: s ?? !1,
|
|
50
|
+
indeterminate: s == null,
|
|
51
|
+
onChange: () => c(!s),
|
|
52
|
+
disabled: m || s == null
|
|
53
|
+
}),
|
|
54
|
+
label: g("tableStyle.totalRow"),
|
|
55
|
+
labelPlacement: "end"
|
|
56
|
+
}),
|
|
57
|
+
C(D, {
|
|
58
|
+
control: C(E, {
|
|
59
|
+
checked: r?.showRowStripes ?? !1,
|
|
60
|
+
indeterminate: !r,
|
|
61
|
+
disabled: m || !r,
|
|
62
|
+
onChange: () => {
|
|
63
|
+
i?.({
|
|
64
|
+
...r,
|
|
65
|
+
showRowStripes: !r?.showRowStripes
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}),
|
|
69
|
+
label: g("tableStyle.bandedRows"),
|
|
70
|
+
labelPlacement: "end"
|
|
71
|
+
}),
|
|
72
|
+
C(D, {
|
|
73
|
+
control: C(E, {
|
|
74
|
+
checked: r?.showFirstColumn ?? !1,
|
|
75
|
+
indeterminate: !r,
|
|
76
|
+
disabled: m || !r,
|
|
77
|
+
onChange: () => {
|
|
78
|
+
i?.({
|
|
79
|
+
...r,
|
|
80
|
+
showFirstColumn: !r?.showFirstColumn
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}),
|
|
84
|
+
label: g("tableStyle.firstColumn"),
|
|
85
|
+
labelPlacement: "end"
|
|
86
|
+
}),
|
|
87
|
+
C(D, {
|
|
88
|
+
control: C(E, {
|
|
89
|
+
checked: r?.showLastColumn ?? !1,
|
|
90
|
+
indeterminate: !r,
|
|
91
|
+
disabled: m || !r,
|
|
92
|
+
onChange: () => {
|
|
93
|
+
i?.({
|
|
94
|
+
...r,
|
|
95
|
+
showLastColumn: !r?.showLastColumn
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}),
|
|
99
|
+
label: g("tableStyle.lastColumn"),
|
|
100
|
+
labelPlacement: "end"
|
|
101
|
+
}),
|
|
102
|
+
C(D, {
|
|
103
|
+
control: C(E, {
|
|
104
|
+
checked: r?.showColumnStripes ?? !1,
|
|
105
|
+
indeterminate: !r,
|
|
106
|
+
disabled: m || !r,
|
|
107
|
+
onChange: () => {
|
|
108
|
+
i?.({
|
|
109
|
+
...r,
|
|
110
|
+
showColumnStripes: !r?.showColumnStripes
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}),
|
|
114
|
+
label: g("tableStyle.bandedColumns"),
|
|
115
|
+
labelPlacement: "end"
|
|
116
|
+
}),
|
|
117
|
+
u && C(D, {
|
|
118
|
+
control: C(E, {
|
|
119
|
+
checked: l ?? !1,
|
|
120
|
+
indeterminate: l == null,
|
|
121
|
+
disabled: m || !r || l == null,
|
|
122
|
+
onChange: () => u(!l)
|
|
123
|
+
}),
|
|
124
|
+
label: g("tableStyle.filterButton"),
|
|
125
|
+
labelPlacement: "end"
|
|
126
|
+
})
|
|
127
|
+
]
|
|
128
|
+
})
|
|
129
|
+
});
|
|
130
|
+
})), N = "_range-row_1yps2_1", P = "_action-row_1yps2_17", F = m(p((s, p) => {
|
|
131
|
+
let { title: m, table: h, getStyles: g, getNames: E, className: D, ...A } = s, j = f(), F = d(), [I, L] = b(!1), [R, z] = b(!1), B = y(null), [V, H] = v((e) => e + 1, 0), [U, { width: W }] = u(), [G, K] = b(() => h ? h.getRange().getFixed(!0).toString() : null), q = _(() => h?.getName() ?? "", [h]), J = _(() => {
|
|
132
|
+
let e = h?.getRange();
|
|
133
|
+
if (!e) return;
|
|
134
|
+
let t = e.getCoords();
|
|
135
|
+
return {
|
|
136
|
+
rowIndex: t.rowStart,
|
|
137
|
+
colIndex: t.colStart,
|
|
138
|
+
scope: e.getWorksheet().getName()
|
|
139
|
+
};
|
|
140
|
+
}, [h, G]);
|
|
141
|
+
o(h, {
|
|
142
|
+
onAnchorCoordsChange(e) {
|
|
143
|
+
K(e.getRange().getFixed(!0).toString());
|
|
144
|
+
},
|
|
145
|
+
onProtectedChange(e) {
|
|
146
|
+
H();
|
|
147
|
+
},
|
|
148
|
+
onAnyChange(e) {
|
|
149
|
+
H();
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
let Y = l((e, t) => {
|
|
153
|
+
t.reason === "accept" && h && h.getName() !== e && h.setName(e);
|
|
154
|
+
}, [h]), X = l((e, t) => {
|
|
155
|
+
if (t.reason !== "accept") return;
|
|
156
|
+
let n = e?.getReferences();
|
|
157
|
+
n && h.resize(n.at(0));
|
|
158
|
+
}, [h]), Z = null;
|
|
159
|
+
h || (Z = C(k, {
|
|
160
|
+
component: "div",
|
|
161
|
+
style: {
|
|
162
|
+
top: "0",
|
|
163
|
+
left: "0",
|
|
164
|
+
width: "100%",
|
|
165
|
+
height: "100%",
|
|
166
|
+
display: "flex",
|
|
167
|
+
alignItems: "center",
|
|
168
|
+
justifyItems: "center",
|
|
169
|
+
justifyContent: "center"
|
|
170
|
+
},
|
|
171
|
+
children: j("table.noneSelected")
|
|
172
|
+
}));
|
|
173
|
+
let Q = r([
|
|
174
|
+
B,
|
|
175
|
+
U,
|
|
176
|
+
p
|
|
177
|
+
]);
|
|
178
|
+
return C(O, {
|
|
179
|
+
square: !0,
|
|
180
|
+
onFocus: () => L(!0),
|
|
181
|
+
onBlur: (e) => {
|
|
182
|
+
B?.current?.contains(e.relatedTarget) || L(!1);
|
|
183
|
+
},
|
|
184
|
+
ref: Q,
|
|
185
|
+
sx: {
|
|
186
|
+
display: "flex",
|
|
187
|
+
flexDirection: "column",
|
|
188
|
+
flex: "1 1 auto",
|
|
189
|
+
width: "100%",
|
|
190
|
+
height: "100%",
|
|
191
|
+
overflow: "auto",
|
|
192
|
+
paddingLeft: (e) => e.spacing(1.5),
|
|
193
|
+
paddingRight: (e) => e.spacing(1.5),
|
|
194
|
+
paddingTop: (e) => e.spacing(1.5),
|
|
195
|
+
paddingBottom: (e) => e.spacing(1.5),
|
|
196
|
+
boxSizing: "border-box"
|
|
197
|
+
},
|
|
198
|
+
className: e("sxl-table-details-panel", D, { "sxl-has-focus": I }),
|
|
199
|
+
...A,
|
|
200
|
+
children: Z || w(T, {
|
|
201
|
+
sx: {
|
|
202
|
+
display: "flex",
|
|
203
|
+
flex: "1 1 auto",
|
|
204
|
+
flexDirection: "column",
|
|
205
|
+
transition: "opacity 60ms",
|
|
206
|
+
opacity: +!!h
|
|
207
|
+
},
|
|
208
|
+
children: [C(T, {
|
|
209
|
+
sx: {
|
|
210
|
+
containerType: "inline-size",
|
|
211
|
+
display: "flex",
|
|
212
|
+
flexDirection: "column",
|
|
213
|
+
maxWidth: "100%",
|
|
214
|
+
boxSizing: "border-box",
|
|
215
|
+
paddingTop: (e) => e.spacing(2),
|
|
216
|
+
paddingLeft: (e) => e.spacing(2),
|
|
217
|
+
paddingRight: (e) => e.spacing(2)
|
|
218
|
+
},
|
|
219
|
+
children: w(T, {
|
|
220
|
+
className: N,
|
|
221
|
+
children: [C(a, {
|
|
222
|
+
formName: "name",
|
|
223
|
+
defaultInput: q,
|
|
224
|
+
value: h?.getName() ?? "No table",
|
|
225
|
+
changeOn: "done",
|
|
226
|
+
onDone: Y,
|
|
227
|
+
onValidate: (e) => {
|
|
228
|
+
h && h.getName().toLowerCase() === e.toLowerCase() || E?.().validateName(e);
|
|
229
|
+
},
|
|
230
|
+
disabled: h?.isProtected() ?? !0,
|
|
231
|
+
onFocus: (e) => {
|
|
232
|
+
R || e.target?.select(), z(!0);
|
|
233
|
+
}
|
|
234
|
+
}), C(i, {
|
|
235
|
+
grammar: "reference",
|
|
236
|
+
formName: "range",
|
|
237
|
+
value: G,
|
|
238
|
+
allowMulti: !1,
|
|
239
|
+
allowCrossSheet: !1,
|
|
240
|
+
home: J,
|
|
241
|
+
pickAs: "absolute",
|
|
242
|
+
changeOn: "done",
|
|
243
|
+
onDone: X,
|
|
244
|
+
disabled: h?.isProtected() ?? !0,
|
|
245
|
+
onFocus: (e) => {
|
|
246
|
+
R || e.target?.select(), z(!0);
|
|
247
|
+
}
|
|
248
|
+
})]
|
|
249
|
+
})
|
|
250
|
+
}), w(T, {
|
|
251
|
+
sx: {
|
|
252
|
+
minHeight: "10px",
|
|
253
|
+
flex: "1 1 100%",
|
|
254
|
+
display: "flex",
|
|
255
|
+
flexDirection: "column",
|
|
256
|
+
containerType: "inline-size",
|
|
257
|
+
gap: (e) => e.spacing(.5),
|
|
258
|
+
marginTop: (e) => e.spacing(1)
|
|
259
|
+
},
|
|
260
|
+
children: [
|
|
261
|
+
C(S, {
|
|
262
|
+
orientation: "horizontal",
|
|
263
|
+
sx: {
|
|
264
|
+
marginTop: (e) => e.spacing(1.5),
|
|
265
|
+
marginBottom: (e) => e.spacing(.75)
|
|
266
|
+
}
|
|
267
|
+
}),
|
|
268
|
+
C(T, {
|
|
269
|
+
sx: {
|
|
270
|
+
display: "flex",
|
|
271
|
+
flex: "1 1 100%",
|
|
272
|
+
alignItems: "center",
|
|
273
|
+
justifyContent: "start",
|
|
274
|
+
flexDirection: "column",
|
|
275
|
+
marginTop: (e) => e.spacing(1),
|
|
276
|
+
marginBottom: (e) => e.spacing(1)
|
|
277
|
+
},
|
|
278
|
+
children: w("div", {
|
|
279
|
+
style: {
|
|
280
|
+
display: "flex",
|
|
281
|
+
alignItems: "start",
|
|
282
|
+
gap: "2px"
|
|
283
|
+
},
|
|
284
|
+
children: [C(t, {
|
|
285
|
+
table: h,
|
|
286
|
+
styles: g?.(),
|
|
287
|
+
cellHeight: 30,
|
|
288
|
+
isLive: !0
|
|
289
|
+
}), C(n, {
|
|
290
|
+
commandKey: "formatTableStyle",
|
|
291
|
+
disabledQuickKey: !0
|
|
292
|
+
})]
|
|
293
|
+
})
|
|
294
|
+
}),
|
|
295
|
+
C(S, {
|
|
296
|
+
orientation: "horizontal",
|
|
297
|
+
sx: {
|
|
298
|
+
marginTop: (e) => e.spacing(1.5),
|
|
299
|
+
marginBottom: (e) => e.spacing(.75)
|
|
300
|
+
}
|
|
301
|
+
}),
|
|
302
|
+
C(M, {
|
|
303
|
+
disabled: h?.isProtected(),
|
|
304
|
+
styleOptions: h?.getStyleOptions() ?? null,
|
|
305
|
+
onStyleOptionsChange: (e) => {
|
|
306
|
+
h.updateStyleOptions(e);
|
|
307
|
+
},
|
|
308
|
+
showHeaderRow: h?.isShowHeaders(),
|
|
309
|
+
onShowHeaderRowChange: (e) => {
|
|
310
|
+
try {
|
|
311
|
+
h.setShowHeaders(e);
|
|
312
|
+
} catch (e) {
|
|
313
|
+
F.showError(e);
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
showTotalRow: h?.isShowTotals(),
|
|
317
|
+
onShowTotalRowChange: (e) => {
|
|
318
|
+
try {
|
|
319
|
+
h.setShowTotals(e);
|
|
320
|
+
} catch (e) {
|
|
321
|
+
F.showError(e);
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
showButton: !h?.isHiddenButtons(),
|
|
325
|
+
onShowButtonChange: (e) => {
|
|
326
|
+
try {
|
|
327
|
+
h.setHiddenButtons(!e);
|
|
328
|
+
} catch (e) {
|
|
329
|
+
F.showError(e);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}),
|
|
333
|
+
C(S, { orientation: "horizontal" }),
|
|
334
|
+
w(T, {
|
|
335
|
+
className: P,
|
|
336
|
+
children: [C(x, {
|
|
337
|
+
variant: c.Menuitem,
|
|
338
|
+
commandKey: "convertTableToRange",
|
|
339
|
+
commandState: h
|
|
340
|
+
}), C(x, {
|
|
341
|
+
variant: c.Menuitem,
|
|
342
|
+
commandState: h,
|
|
343
|
+
commandKey: "deleteTable"
|
|
344
|
+
})]
|
|
345
|
+
})
|
|
346
|
+
]
|
|
347
|
+
})]
|
|
348
|
+
})
|
|
349
|
+
});
|
|
350
|
+
})), I = (e) => {
|
|
351
|
+
let { model: t, entryKey: n, frame: r, ref: i, ...a } = e, c = s(), [l, u] = v((e) => e + 1, 0), d = c?.getSelection()?.getCoords()?.cell, f = _(() => {
|
|
352
|
+
if (!c) return null;
|
|
353
|
+
let e = c.getTables().getItems({ address: d });
|
|
354
|
+
return e.length > 0 ? e[0] : null;
|
|
355
|
+
}, [
|
|
356
|
+
c,
|
|
357
|
+
d,
|
|
358
|
+
l
|
|
359
|
+
]);
|
|
360
|
+
g(() => {
|
|
361
|
+
if (!f) return;
|
|
362
|
+
let e = f.addListeners({ onAnyChange: () => u() }, R);
|
|
363
|
+
return () => {
|
|
364
|
+
e?.();
|
|
365
|
+
};
|
|
366
|
+
}, [f]), o(c, {
|
|
367
|
+
onSelectionChange: () => u(),
|
|
368
|
+
onStyleChange: () => u(),
|
|
369
|
+
onTablesChange: () => u(),
|
|
370
|
+
onAutoTableChange: () => u(),
|
|
371
|
+
onLayoutChange: () => u(),
|
|
372
|
+
onInvalidated: () => u()
|
|
373
|
+
}, L);
|
|
374
|
+
let p = h(() => c?.getStyles(), [c]), m = h(() => c?.getNames(), [c]);
|
|
375
|
+
return C(F, {
|
|
376
|
+
ref: i,
|
|
377
|
+
...a,
|
|
378
|
+
table: f,
|
|
379
|
+
getStyles: p,
|
|
380
|
+
getNames: m
|
|
381
|
+
});
|
|
382
|
+
}, L = {
|
|
383
|
+
transactional: !1,
|
|
384
|
+
ignoreModelChange: !0
|
|
385
|
+
}, R = { transactional: !1 };
|
|
386
|
+
export { I as TableDetailsTaskPane };
|
|
@@ -1,10 +1,10 @@
|
|
|
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.
|
|
6
6
|
*/
|
|
7
|
-
import { n as e } from "./
|
|
7
|
+
import { n as e } from "./DDc6rDuU9JAo1DH_.mjs";
|
|
8
8
|
import { InputField as t } from "./index.mjs";
|
|
9
9
|
import { useReferenceMode as n } from "@sheetxl/react";
|
|
10
10
|
import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
|
|
@@ -46,7 +46,7 @@ var oe = ["Ok", "Cancel"], h = { paddingTop: (e) => e.spacing(1.5) }, g = "mailt
|
|
|
46
46
|
Q.current !== M && (Q.current = M, Z());
|
|
47
47
|
}, [M]);
|
|
48
48
|
let fe = s(() => {
|
|
49
|
-
let e = b?.()?.
|
|
49
|
+
let e = b?.()?.getWorksheet()?.getName();
|
|
50
50
|
return e ? { scope: e } : void 0;
|
|
51
51
|
}, [b]), pe = n().getMode()?.mode === "point", me = r((e) => {
|
|
52
52
|
de(e.target.value);
|