@sheetxl/react 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/1-LEUre9ZLG0OYYB.mjs +197 -0
- package/browser/esm/94dxo1A-z8lgiiGw.mjs +128 -0
- package/browser/esm/B26QVfjer2oY2ewK.mjs +32 -0
- package/browser/esm/B93LSmhnvkxNXTq-.mjs +42 -0
- package/browser/esm/BQYS2Yf-EAV_tBLr.mjs +20 -0
- package/{node/esm/DAE_NG8D9uT50zUH.mjs → browser/esm/BegvsXeRs7e-9t8k.mjs} +3 -4
- package/browser/esm/Bl2BFCQ00fotauKB.mjs +36 -0
- package/browser/esm/Bos4Rkp8UTF7QXUB.mjs +31 -0
- package/browser/esm/C1pc9F4Rt2C5FKUo.mjs +45 -0
- package/browser/esm/CPnnESfZz2jjJd82.mjs +134 -0
- package/browser/esm/CRi6DQ3UXmPEv-w_.mjs +729 -0
- package/browser/esm/ClAtIfYbsUPA073B.mjs +2706 -0
- package/browser/esm/CzRIbc-Lk__VMLKM.mjs +60 -0
- package/browser/esm/D2u6THGErqw64KQI.mjs +63 -0
- package/browser/esm/DMdsMPT0fWBbTkNn.mjs +67 -0
- package/browser/esm/DS66lAIM-9M-YoZQ.mjs +315 -0
- package/browser/esm/DgL7Dy-Lqcr1TvW6.mjs +23528 -0
- package/browser/esm/Dnh1kpz3v1JKtRD_.mjs +79 -0
- package/browser/esm/cQ6xdPFkEcuDlNTN.mjs +75 -0
- package/browser/esm/chart.mjs +40 -0
- package/browser/esm/control.mjs +216 -0
- package/browser/esm/group.mjs +123 -0
- package/browser/esm/index.mjs +15460 -8762
- package/browser/esm/note.mjs +112 -0
- package/browser/esm/picture.mjs +86 -0
- package/browser/esm/shape.mjs +7 -0
- package/browser/esm/slicer.mjs +276 -0
- package/browser/esm/ugfE7YeZALQURDKF.mjs +241 -0
- package/licenses/dependencies.txt +319 -600
- package/node/esm/6zApGj9DozhFy-bx.mjs +35 -0
- package/node/esm/BMVK5plvmBOAIlxP.mjs +80 -0
- package/node/esm/BaRfst1euuhquupX.mjs +66 -0
- package/node/esm/Be9c1GwQkPo8Piuh.mjs +134 -0
- package/node/esm/BiaDWnN3tT7neoRL.mjs +68 -0
- package/node/esm/BlxXufqBBg1PtsXd.mjs +8 -0
- package/node/esm/C_SNx7TlFEcwbYjx.mjs +2706 -0
- package/node/esm/DJPgbB1X22YmhbaR.mjs +242 -0
- package/node/esm/DTMTIrYIK1eZswsM.mjs +37 -0
- package/node/esm/D_pCpfdQowV_4Aje.mjs +198 -0
- package/node/esm/DgGEHydEjD7nfsDB.mjs +76 -0
- package/node/esm/Dj5FM7_-YWhCtCCt.mjs +45 -0
- package/node/esm/DxQZmb-j4NLUO9Af.mjs +63 -0
- package/node/esm/JiQGhLkoL8CJpVvA.mjs +20 -0
- package/node/esm/b-XRVRI1fYQQMkTC.mjs +1664 -0
- package/node/esm/chart.mjs +40 -0
- package/node/esm/control.mjs +216 -0
- package/node/esm/gpD-9LDW92phhoma.mjs +32 -0
- package/node/esm/group.mjs +123 -0
- package/node/esm/index.mjs +15830 -8966
- package/node/esm/note.mjs +113 -0
- package/node/esm/picture.mjs +86 -0
- package/node/esm/shape.mjs +735 -0
- package/node/esm/sigD1UFqvPlWUw_9.mjs +128 -0
- package/node/esm/slicer.mjs +278 -0
- package/node/esm/umljAT66yb3_rURh.mjs +320 -0
- package/package.json +55 -14
- package/resources/contents.json +24 -0
- package/resources/locales/contents.json +56 -0
- package/resources/locales/de/chart.cmd.json +82 -0
- package/resources/locales/de/movable.cmd.json +154 -0
- package/resources/locales/de/picture.cmd.json +31 -0
- package/resources/locales/de/selection.cmd.json +8 -0
- package/resources/locales/de/shape.cmd.json +17 -0
- package/resources/locales/de/sheet.cmd.json +339 -21
- package/resources/locales/de/slicer.cmd.json +17 -0
- package/resources/locales/de/table.cmd.json +9 -1
- package/resources/locales/de/ui.msg.json +321 -3
- package/resources/locales/de/workbook.cmd.json +15 -6
- package/resources/locales/en/chart.cmd.json +82 -0
- package/resources/locales/en/movable.cmd.json +154 -0
- package/resources/locales/en/picture.cmd.json +31 -0
- package/resources/locales/en/selection.cmd.json +8 -0
- package/resources/locales/en/shape.cmd.json +17 -0
- package/resources/locales/en/sheet.cmd.json +353 -22
- package/resources/locales/en/slicer.cmd.json +17 -0
- package/resources/locales/en/table.cmd.json +9 -1
- package/resources/locales/en/ui.msg.json +321 -3
- package/resources/locales/en/workbook.cmd.json +16 -7
- package/types/chart.d.ts +2 -0
- package/types/control.d.ts +2 -0
- package/types/group.d.ts +2 -0
- package/types/note.d.ts +2 -0
- package/types/picture.d.ts +2 -0
- package/types/shape.d.ts +2 -0
- package/types/slicer.d.ts +2 -0
- package/types/src/annotation/RangeAnnotations.d.ts +119 -0
- package/types/src/annotation/index.d.ts +2 -0
- package/types/src/autoFill/AutoFillPresets.d.ts +14 -0
- package/types/src/autoFill/FillMenu.d.ts +36 -0
- package/types/src/autoFill/FillSeries.d.ts +38 -0
- package/types/src/autoFill/index.d.ts +4 -0
- package/types/src/border/StaticBorderRenderer.d.ts +19 -2
- package/types/src/border/useBorders.d.ts +81 -8
- package/types/src/cell/CornerTriangle.d.ts +6 -0
- package/types/src/cell/FormulaCellRenderer.d.ts +6 -3
- package/types/src/cell/OutlineButton.d.ts +123 -0
- package/types/src/cell/SheetCellRenderer.d.ts +2 -2
- package/types/src/cell/SheetHeaderRenderer.d.ts +5 -0
- package/types/src/cell/StaticCellRenderer.d.ts +57 -0
- package/types/src/cell/index.d.ts +2 -0
- package/types/src/cell/useFormulaViewAnchor.d.ts +3 -3
- package/types/src/chart/ChartCommands.d.ts +15 -0
- package/types/src/chart/ChartEditor.d.ts +10 -2
- package/types/src/chart/ChartElement.d.ts +111 -0
- package/types/src/chart/ChartKind.d.ts +7 -0
- package/types/src/chart/PresetChartTypeDescriptors.d.ts +3 -1
- package/types/src/chart/index.d.ts +2 -1
- package/types/src/chart/paint/_fills.d.ts +24 -0
- package/types/src/chart/paint/_graphics.d.ts +46 -0
- package/types/src/chart/paint/echarts.d.ts +30 -0
- package/types/src/chart/paint/index.d.ts +12 -0
- package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +132 -0
- package/types/src/chart/paint/kinds/_Area.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Bar.d.ts +3 -0
- package/types/src/chart/paint/kinds/_BoxWhisker.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Bubble.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Funnel.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Histogram.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Line.d.ts +10 -0
- package/types/src/chart/paint/kinds/_OfPie.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Pie.d.ts +21 -0
- package/types/src/chart/paint/kinds/_Placeholder.d.ts +7 -0
- package/types/src/chart/paint/kinds/_Radar.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Scatter.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Sunburst.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Surface.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Treemap.d.ts +3 -0
- package/types/src/chart/paint/kinds/_Waterfall.d.ts +3 -0
- package/types/src/chart/paint/kinds/_builtIns.d.ts +12 -0
- package/types/src/chart/paint/toEChartsOption.d.ts +31 -0
- package/types/src/checklist/ValueChecklist.d.ts +112 -0
- package/types/src/checklist/index.d.ts +2 -0
- package/types/src/clipboard/ClipboardCommands.d.ts +3 -3
- package/types/src/clipboard/SheetClipboardLayer.d.ts +2 -2
- package/types/src/commands/ContextualToolbar.d.ts +19 -0
- package/types/src/commands/createTransactionalMiddleware.d.ts +4 -1
- package/types/src/commands/index.d.ts +1 -0
- package/types/src/comment/CommentCardRequest.d.ts +94 -0
- package/types/src/comment/CommentUtils.d.ts +43 -0
- package/types/src/comment/NoteEditor.d.ts +20 -0
- package/types/src/comment/index.d.ts +5 -0
- package/types/src/comment/useCommentThread.d.ts +37 -0
- package/types/src/comment/useSheetComments.d.ts +28 -0
- package/types/src/{sheet → conditionalFormat}/ConditionalFormatPresets.d.ts +6 -6
- package/types/src/conditionalFormat/index.d.ts +1 -0
- package/types/src/context/WorksheetContext.d.ts +18 -0
- package/types/src/context/index.d.ts +1 -1
- package/types/src/control/FormControlRenderers.d.ts +22 -0
- package/types/src/editor/EditorCommands.d.ts +3 -3
- package/types/src/editor/FunctionPreviewPanel.d.ts +15 -1
- package/types/src/editor/NamedItemLabel.d.ts +29 -0
- package/types/src/editor/NamedItemsPanel.d.ts +13 -2
- package/types/src/editor/SheetCellEditorLayer.d.ts +5 -9
- package/types/src/editor/SheetCellEditorStartLayer.d.ts +61 -0
- package/types/src/editor/SheetCellInput.d.ts +26 -2
- package/types/src/editor/SheetEditable.d.ts +14 -8
- package/types/src/editor/SheetReferenceLayer.d.ts +4 -4
- package/types/src/editor/VirtualKeyboardLayer.d.ts +49 -0
- package/types/src/editor/formulaAnchor.d.ts +12 -0
- package/types/src/editor/formulaCaret.d.ts +39 -10
- package/types/src/editor/formulaEval.d.ts +9 -5
- package/types/src/editor/formulaLint.d.ts +36 -0
- package/types/src/editor/formulaPresentation.d.ts +7 -0
- package/types/src/editor/formulaText.d.ts +17 -5
- package/types/src/editor/functionArgs.d.ts +20 -0
- package/types/src/editor/index.d.ts +5 -1
- package/types/src/editor/pickedReference.d.ts +76 -0
- package/types/src/editor/useEditRejectedNotice.d.ts +32 -0
- package/types/src/editor/useFormulaHints.d.ts +95 -5
- package/types/src/editor/useFormulaInput.d.ts +30 -4
- package/types/src/editor/useReferenceMode.d.ts +12 -0
- package/types/src/editor/validationAlert.d.ts +24 -0
- package/types/src/externalLink/ExternalLinksPaneArgs.d.ts +23 -0
- package/types/src/externalLink/index.d.ts +2 -0
- package/types/src/form/FormulaInput.d.ts +18 -2
- package/types/src/form/FormulaInputParts.d.ts +10 -1
- package/types/src/form/useEditCommit.d.ts +23 -3
- package/types/src/form/useInputField.d.ts +2 -3
- package/types/src/frame/CommandContext.d.ts +189 -7
- package/types/src/group/GroupEditor.d.ts +25 -0
- package/types/src/index.d.ts +14 -2
- package/types/src/io/WorkbookIO.d.ts +2 -0
- package/types/src/layer/BorderLayer.d.ts +2 -2
- package/types/src/layer/CellErrorLayer.d.ts +26 -9
- package/types/src/layer/CellFillLayer.d.ts +2 -2
- package/types/src/layer/CellInsertLayer.d.ts +71 -0
- package/types/src/layer/CircularIndicatorLayer.d.ts +2 -2
- package/types/src/layer/CommentCardLayer.d.ts +43 -0
- package/types/src/layer/CommentsLayer.d.ts +35 -0
- package/types/src/layer/ConditionalBarLayer.d.ts +2 -2
- package/types/src/layer/ConditionalIcons.d.ts +4 -4
- package/types/src/layer/ConditionalIconsLayer.d.ts +2 -2
- package/types/src/layer/ContextMenuLayer.d.ts +2 -2
- package/types/src/layer/FreezeDragLines.d.ts +17 -0
- package/types/src/layer/GridFreezeLayer.d.ts +11 -0
- package/types/src/layer/HeaderFreezeLayer.d.ts +12 -0
- package/types/src/layer/HeaderResizerLayer.d.ts +2 -1
- package/types/src/layer/HyperlinkLayer.d.ts +109 -0
- package/types/src/layer/MovableKindScope.d.ts +17 -0
- package/types/src/layer/ProtectionLayer.d.ts +52 -0
- package/types/src/layer/RangeAnnotationLayer.d.ts +71 -0
- package/types/src/layer/ResizeIndicator.d.ts +11 -10
- package/types/src/layer/ResizeTooltip.d.ts +13 -0
- package/types/src/layer/SheetBackgroundLayer.d.ts +3 -3
- package/types/src/layer/SheetCellLayer.d.ts +4 -4
- package/types/src/layer/SheetColumnButtonLayer.d.ts +2 -2
- package/types/src/layer/SheetGridLineLayer.d.ts +11 -13
- package/types/src/layer/SheetHeaderCellLayer.d.ts +10 -1
- package/types/src/layer/SheetLayers.d.ts +115 -0
- package/types/src/layer/SheetMovableLayer.d.ts +2 -2
- package/types/src/layer/SheetOutlineLayer.d.ts +40 -0
- package/types/src/layer/SheetTableCommandLayer.d.ts +2 -2
- package/types/src/layer/SpillLayer.d.ts +2 -2
- package/types/src/layer/TableLayer.d.ts +6 -5
- package/types/src/layer/TableToolbar.d.ts +42 -0
- package/types/src/layer/ValidationDropdownLayer.d.ts +17 -7
- package/types/src/layer/ValidationIndicatorLayer.d.ts +11 -5
- package/types/src/layer/ValidationPromptLayer.d.ts +65 -0
- package/types/src/layer/_tableColor.d.ts +4 -0
- package/types/src/layer/cellTip.d.ts +13 -0
- package/types/src/layer/freezeDragState.d.ts +21 -0
- package/types/src/layer/index.d.ts +14 -1
- package/types/src/layer/resizeIndicatorState.d.ts +3 -1
- package/types/src/layer/useFreezeDrag.d.ts +22 -0
- package/types/src/layer/useNormalBorderLines.d.ts +15 -0
- package/types/src/layer/useSheetFeatureRegions.d.ts +2 -2
- package/types/src/layer/useSheetVisibleCells.d.ts +2 -2
- package/types/src/layer/useSheetVisibleDecorations.d.ts +2 -2
- package/types/src/layer/useTableHeaderCells.d.ts +2 -2
- package/types/src/layer/useValidationPicker.d.ts +37 -37
- package/types/src/layer/useVisibleTables.d.ts +2 -2
- package/types/src/layer/validationMark.d.ts +63 -0
- package/types/src/listener/index.d.ts +5 -0
- package/types/src/listener/useCell.d.ts +29 -0
- package/types/src/listener/useCellRange.d.ts +23 -0
- package/types/src/listener/useCellValue.d.ts +26 -0
- package/types/src/listener/useModelListener.d.ts +8 -8
- package/types/src/listener/useRangeSnapshot.d.ts +35 -0
- package/types/src/listener/useTable.d.ts +26 -0
- package/types/src/movable/ConnectionSites.d.ts +18 -0
- package/types/src/movable/DefaultMovable.d.ts +8 -0
- package/types/src/movable/IMovableArea.d.ts +56 -0
- package/types/src/movable/MovableAdornment.d.ts +26 -0
- package/types/src/movable/MovableCommandGroups.d.ts +40 -0
- package/types/src/movable/MovableCommands.d.ts +8 -3
- package/types/src/movable/MovableControl.d.ts +78 -0
- package/types/src/movable/MovableEdit.d.ts +22 -0
- package/types/src/movable/MovableFrame.d.ts +16 -13
- package/types/src/movable/MovableLayer.d.ts +25 -7
- package/types/src/movable/MovableRenderers.d.ts +210 -0
- package/types/src/movable/PlaceholderFrames.d.ts +11 -0
- package/types/src/movable/RotateHandle.d.ts +37 -0
- package/types/src/movable/TextBox.d.ts +34 -0
- package/types/src/movable/connect.d.ts +16 -0
- package/types/src/movable/framePlacement.d.ts +72 -0
- package/types/src/movable/geometry.d.ts +61 -0
- package/types/src/movable/index.d.ts +11 -0
- package/types/src/movable/pressTarget.d.ts +20 -0
- package/types/src/picker/PickerPanel.d.ts +52 -0
- package/types/src/picker/cellPickerOpen.d.ts +6 -0
- package/types/src/picker/index.d.ts +4 -0
- package/types/src/picker/useCellPicker.d.ts +95 -0
- package/types/src/picture/PictureCommands.d.ts +12 -0
- package/types/src/picture/PictureKind.d.ts +7 -0
- package/types/src/picture/index.d.ts +0 -1
- package/types/src/protection/ProtectionPaneArgs.d.ts +31 -0
- package/types/src/protection/index.d.ts +3 -0
- package/types/src/protection/unlockProtectedRanges.d.ts +23 -0
- package/types/src/richText/RichTextEditor.d.ts +41 -0
- package/types/src/richText/index.d.ts +2 -0
- package/types/src/selection/SelectionCommands.d.ts +2 -2
- package/types/src/selection/SheetSelectionLayer.d.ts +16 -12
- package/types/src/shape/ConnectorControl.d.ts +46 -0
- package/types/src/shape/ShapeCommands.d.ts +11 -0
- package/types/src/shape/ShapeControl.d.ts +8 -0
- package/types/src/shape/ShapeEditor.d.ts +15 -2
- package/types/src/shape/ShapeGallery.d.ts +31 -0
- package/types/src/shape/ShapeHandles.d.ts +28 -0
- package/types/src/shape/ShapeKind.d.ts +7 -0
- package/types/src/shape/ShapeSVG.d.ts +22 -0
- package/types/src/shape/ShapeText.d.ts +17 -0
- package/types/src/shape/icons/ShapeIcons.d.ts +16 -0
- package/types/src/shape/icons/_ShapeIconPack.d.ts +4 -0
- package/types/src/shape/index.d.ts +3 -1
- package/types/src/shape/shapeFrame.d.ts +50 -0
- package/types/src/shape/shapeStyle.d.ts +82 -0
- package/types/src/sheet/ISheetHeaderElement.d.ts +1 -1
- package/types/src/sheet/{ISheetElement.d.ts → IWorksheetElement.d.ts} +107 -77
- package/types/src/sheet/OpaqueSheetElement.d.ts +21 -0
- package/types/src/sheet/SheetCommandProvider.d.ts +11 -6
- package/types/src/sheet/SheetCommands.d.ts +22 -7
- package/types/src/sheet/SheetKindIcon.d.ts +14 -0
- package/types/src/sheet/SheetOutlineElement.d.ts +70 -0
- package/types/src/sheet/SheetPanels.d.ts +11 -0
- package/types/src/sheet/SheetScrollbar.d.ts +4 -13
- package/types/src/sheet/TopLeftCorner.d.ts +2 -2
- package/types/src/sheet/WorksheetElement.d.ts +12 -0
- package/types/src/sheet/_freezeAt.d.ts +10 -0
- package/types/src/sheet/_useHeaderMetrics.d.ts +11 -0
- package/types/src/sheet/circularReferences.d.ts +12 -4
- package/types/src/sheet/index.d.ts +6 -3
- package/types/src/sheet/useCycleHighlight.d.ts +21 -0
- package/types/src/slicer/SlicerCommands.d.ts +10 -0
- package/types/src/slicer/SlicerEditor.d.ts +8 -2
- package/types/src/slicer/SlicerKind.d.ts +7 -0
- package/types/src/slicer/SlicerStylePreview.d.ts +18 -0
- package/types/src/slicer/index.d.ts +2 -1
- package/types/src/slicer/slicerStyles.d.ts +32 -0
- package/types/src/tabStrip/SheetTab.d.ts +1 -1
- package/types/src/tabStrip/TabStrip.d.ts +7 -0
- package/types/src/table/TableCommands.d.ts +2 -2
- package/types/src/taskPane/ITaskPane.d.ts +12 -1
- package/types/src/taskPane/MovablePane.d.ts +17 -0
- package/types/src/taskPane/TaskPaneArea.d.ts +7 -0
- package/types/src/taskPane/index.d.ts +1 -0
- package/types/src/theme/ThemeState.d.ts +14 -1
- package/types/src/theme/buildOOXMLThemeCSS.d.ts +2 -2
- package/types/src/theme/useGridColorScheme.d.ts +2 -2
- package/types/src/theme/useSystemColors.d.ts +2 -2
- package/types/src/workbook/DefaultMovableRenderers.d.ts +20 -0
- package/types/src/workbook/DefaultRenderers.d.ts +3 -2
- package/types/src/workbook/IWorkbookElement.d.ts +51 -5
- package/types/src/workbook/WorkbookCommands.d.ts +2 -4
- package/types/src/workbook/WorkbookStrip.d.ts +9 -0
- package/types/src/workbook/_followOrigin.d.ts +9 -0
- package/types/src/workbook/useWorkbookFormat.d.ts +3 -3
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +0 -156
- package/browser/cjs/index.cjs +0 -35
- package/browser/esm/SJMJzBwlXTJ9QIO5.mjs +0 -6286
- package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/area-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/area-template.json.d.ts +0 -9
- package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/bar-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/bar-template.json.d.ts +0 -9
- package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/column-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/column-template.json.d.ts +0 -9
- package/types/src/chart/templates/line-markers-template.json.d.ts +0 -10
- package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +0 -11
- package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +0 -11
- package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +0 -10
- package/types/src/chart/templates/line-stacked-template.json.d.ts +0 -10
- package/types/src/chart/templates/line-template.json.d.ts +0 -9
- package/types/src/chart/templates/pie-doughnut-template.json.d.ts +0 -10
- package/types/src/chart/templates/pie-template.json.d.ts +0 -9
- package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-lines-template.json.d.ts +0 -10
- package/types/src/chart/templates/scatter-markers-template.json.d.ts +0 -10
- package/types/src/context/SheetContext.d.ts +0 -18
- package/types/src/editor/useProtectedEditNotice.d.ts +0 -14
- package/types/src/layer/validationList.d.ts +0 -84
- package/types/src/list/SheetValueList.d.ts +0 -93
- package/types/src/list/index.d.ts +0 -2
- package/types/src/movable/MoveableBundle.d.ts +0 -4
- package/types/src/sheet/SheetElement.d.ts +0 -15
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - 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 "./C1pc9F4Rt2C5FKUo.mjs";
|
|
8
|
+
import { t } from "./D2u6THGErqw64KQI.mjs";
|
|
9
|
+
import { t as n } from "./Dnh1kpz3v1JKtRD_.mjs";
|
|
10
|
+
import { Color as r, IColor as i, IFont as a, IFontStyle as o, IStroke as s } from "@sheetxl/sdk";
|
|
11
|
+
import { forwardRef as c, memo as l, useReducer as u } from "react";
|
|
12
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
13
|
+
import { useImperativeElement as f } from "@sheetxl/utils-react";
|
|
14
|
+
var p = new r(i.Named.InfoBk).toCSS("adaptive"), m = new r(i.Named.InfoText).toCSS("adaptive"), h = (e, t) => {
|
|
15
|
+
if (t) try {
|
|
16
|
+
return e.getWorksheet().getStyles().parseColor(t)?.toCSS("adaptive");
|
|
17
|
+
} catch {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
}, g = (e, t) => {
|
|
21
|
+
let n = t.family;
|
|
22
|
+
if (n === o.ThemeFamily.Heading || n === o.ThemeFamily.Body) {
|
|
23
|
+
let t = e.getWorksheet().getStyles().getTheme().getFontScheme();
|
|
24
|
+
n = (n === o.ThemeFamily.Heading ? t.getMajorFont() : t.getMinorFont()) ?? void 0;
|
|
25
|
+
}
|
|
26
|
+
if (n) return [n, ...t.fallbacks ?? []].map((e) => e.includes(" ") ? `"${e}"` : e).join(", ");
|
|
27
|
+
}, _ = (e) => {
|
|
28
|
+
let t = [], n = e.underline;
|
|
29
|
+
if (n && n !== a.UnderlineStyle.None && t.push("underline"), e.strike && e.strike !== a.StrikeStyle.None && t.push("line-through"), t.length === 0) return;
|
|
30
|
+
let r = n === a.UnderlineStyle.Double || n === a.UnderlineStyle.DoubleAccounting;
|
|
31
|
+
return t.join(" ") + (r ? " double" : "");
|
|
32
|
+
}, v = (e) => {
|
|
33
|
+
let t = {
|
|
34
|
+
borderWidth: "1px",
|
|
35
|
+
borderStyle: "solid",
|
|
36
|
+
borderColor: `var(--sxl-note-border-color, ${m})`,
|
|
37
|
+
backgroundColor: `var(--sxl-note-background-color, ${p})`
|
|
38
|
+
}, n = e.getStyle(), r = n?.toJSON();
|
|
39
|
+
if (!n || !r) return t;
|
|
40
|
+
try {
|
|
41
|
+
if (r.fill && (delete t.backgroundColor, Object.assign(t, n.getFill().toCSS("adaptive"))), r.stroke) {
|
|
42
|
+
let e = n.getStroke();
|
|
43
|
+
if (e.isVisible()) {
|
|
44
|
+
let { borderWidth: n, borderStyle: r, borderColor: i } = e.toCSS("adaptive");
|
|
45
|
+
Object.assign(t, {
|
|
46
|
+
borderWidth: n,
|
|
47
|
+
borderStyle: r,
|
|
48
|
+
borderColor: i
|
|
49
|
+
}), e.getCompound() !== s.Compound.Single && (t.borderStyle = "double");
|
|
50
|
+
} else t.borderStyle = "none";
|
|
51
|
+
}
|
|
52
|
+
} catch {}
|
|
53
|
+
return t;
|
|
54
|
+
}, y = l(c((r, i) => {
|
|
55
|
+
let { children: a, disabled: o, style: s, note: c, movable: l, zoom: p = 1, isDragging: y, onHide: b, onShow: x, onDragZone: S, adornmentHost: C, flip: w, gesture: T, ...E } = r, [, D] = u((e) => e + 1, 0);
|
|
56
|
+
e(c, {
|
|
57
|
+
onContentChange: () => {
|
|
58
|
+
D();
|
|
59
|
+
},
|
|
60
|
+
onAnyChange: () => {
|
|
61
|
+
D();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
let O = f(i, () => ({ isNoteEditor: () => !0 }), []);
|
|
65
|
+
if (!c.isDeleted() && c.isNote()) return d(t, {
|
|
66
|
+
className: "note-editor",
|
|
67
|
+
...E,
|
|
68
|
+
ref: O,
|
|
69
|
+
movable: l,
|
|
70
|
+
onContextMenu: (e) => {
|
|
71
|
+
e.stopPropagation();
|
|
72
|
+
},
|
|
73
|
+
onDragZone: S,
|
|
74
|
+
disabled: o,
|
|
75
|
+
style: {
|
|
76
|
+
...v(c),
|
|
77
|
+
color: `var(--sxl-note-color, ${m})`,
|
|
78
|
+
fontFamily: "Tahoma, sans-serif",
|
|
79
|
+
fontSize: "9pt",
|
|
80
|
+
zoom: p,
|
|
81
|
+
boxShadow: y ? "1px 1px 2px var(--sxl-color-shadow, rgba(0,0,0,.15))" : void 0,
|
|
82
|
+
...s
|
|
83
|
+
},
|
|
84
|
+
contentStyle: { padding: "0px 1px" },
|
|
85
|
+
children: d(n, {
|
|
86
|
+
value: c.getRichContent() ?? c.getContent(),
|
|
87
|
+
readOnly: o,
|
|
88
|
+
runStyle: (e) => ((e, t) => {
|
|
89
|
+
if (!t) return;
|
|
90
|
+
let n = !!t.baseline, r = t.size === void 0 ? void 0 : `${t.size}pt`;
|
|
91
|
+
return n && (r = t.size === void 0 ? "smaller" : .66 * t.size + "pt"), {
|
|
92
|
+
fontFamily: g(e, t),
|
|
93
|
+
fontSize: r,
|
|
94
|
+
fontWeight: t.weight,
|
|
95
|
+
fontStyle: t.style,
|
|
96
|
+
textDecoration: _(t),
|
|
97
|
+
verticalAlign: n ? t.baseline > 0 ? "super" : "sub" : void 0,
|
|
98
|
+
letterSpacing: t.letterSpacing === void 0 ? void 0 : `${t.letterSpacing}px`,
|
|
99
|
+
color: h(e, t.color)
|
|
100
|
+
};
|
|
101
|
+
})(c, e),
|
|
102
|
+
onChange: (e) => {
|
|
103
|
+
c.setContent(e);
|
|
104
|
+
},
|
|
105
|
+
onDone: () => {
|
|
106
|
+
l?.unselect();
|
|
107
|
+
}
|
|
108
|
+
})
|
|
109
|
+
});
|
|
110
|
+
}));
|
|
111
|
+
y.displayName = "NoteEditor";
|
|
112
|
+
export { y as NoteEditor };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - 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 "./C1pc9F4Rt2C5FKUo.mjs";
|
|
8
|
+
import { forwardRef as t, memo as n, useEffect as r, useMemo as i, useReducer as a, useState as o } from "react";
|
|
9
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
10
|
+
import { useImperativeElement as l } from "@sheetxl/utils-react";
|
|
11
|
+
var u = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyokIAEAMhrSRmEOSPyS/jvR+BYFIWkUhLQhCpLGGQ2rhPiCOKPxDIVQmAZQDMYIjCTfNQXVJv8pnQqhuAonnczGDPv0VwFw/w+uGiAwQYjJXxffaJzROKPHoArGAPA+6o9AtiIj4XgAWGKCwAQBVNMSHQNEjTMqOSWPQEFRHOVl4vp/nnhI/DBNK8CGXCpeFvONip/jvPn67qb957v+Nssyv96/Jwg/xzT9yORhfR4fb6vF9ef39Nt62g55v37/7dRzfx9xFLRtIyX8ae+/AxARE8APxb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zPDeJxhV3uyBB2/cnx4+sK8QJahqm47Y8PNg9c0JItRedyM2PAxMWqZQVakyrgZMeFg7y8PsS7VeuO70P4bxP3ZRaUGWZ6OmVv9oSk63llBVqkLh4Zt9IaW1Tt6tjfIYhWRY86YGCKH/WWGmUOWraaHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=", d = n(t((t, n) => {
|
|
12
|
+
let { children: d, disabled: f, style: p, picture: m, zoom: h, description: g, tile: _, offsetX: v = 0, offsetY: y = 0, isDragging: b, onHide: x, onShow: S, onDragZone: C, adornmentHost: w, flip: T, onKeyDownCapture: E, onFocus: D, onBlur: O, loadingPanel: k, ...A } = t, [j, M] = o(!1), [N, P] = o(null), [F, I] = o(null), [L, R] = o(null), [z, B] = a((e) => e + 1, 0);
|
|
13
|
+
e(m, { onAnyChange: B }), r(() => {
|
|
14
|
+
I(null), m.getDetails().then((e) => {
|
|
15
|
+
M(!1), I(e.asUrl()), R(e.asSVGText?.() || null);
|
|
16
|
+
}).catch((e) => {
|
|
17
|
+
console.warn(e), M(!0), I(u), R(null);
|
|
18
|
+
});
|
|
19
|
+
}, [m, z]);
|
|
20
|
+
let V = l(n, () => ({ isPictureEditor: () => !0 }), []), H = i(() => {
|
|
21
|
+
if (F || L) return _ ? s("div", { style: {
|
|
22
|
+
backgroundPosition: `${v}px ${y}px`,
|
|
23
|
+
backgroundImage: `url(${F})`,
|
|
24
|
+
backgroundRepeat: "repeat",
|
|
25
|
+
backgroundSize: "auto",
|
|
26
|
+
width: "100%",
|
|
27
|
+
height: "100%",
|
|
28
|
+
filter: "var(--sxl-image-filter)"
|
|
29
|
+
} }) : s("img", {
|
|
30
|
+
style: {
|
|
31
|
+
flex: "1",
|
|
32
|
+
width: "100%",
|
|
33
|
+
height: "100%",
|
|
34
|
+
border: j ? "var(--sxl-color-neutral, grey) solid 1px" : void 0,
|
|
35
|
+
backgroundColor: j ? "var(--sxl-color-base-100, white)" : void 0,
|
|
36
|
+
boxShadow: j ? "0px 0px 3px var(--sxl-color-error, red)" : void 0,
|
|
37
|
+
objectFit: j ? "contain" : void 0,
|
|
38
|
+
opacity: +!!N,
|
|
39
|
+
filter: "var(--sxl-image-filter)"
|
|
40
|
+
},
|
|
41
|
+
draggable: !1,
|
|
42
|
+
src: F ?? void 0,
|
|
43
|
+
onLoad: () => {
|
|
44
|
+
P(!0);
|
|
45
|
+
},
|
|
46
|
+
onError: ({ currentTarget: e }) => {
|
|
47
|
+
console.log("error"), e.onerror = null, I(u), M(!0);
|
|
48
|
+
},
|
|
49
|
+
alt: g ?? `${m.getType()}`
|
|
50
|
+
});
|
|
51
|
+
}, [
|
|
52
|
+
N,
|
|
53
|
+
m,
|
|
54
|
+
F,
|
|
55
|
+
L,
|
|
56
|
+
b,
|
|
57
|
+
_,
|
|
58
|
+
v,
|
|
59
|
+
y
|
|
60
|
+
]);
|
|
61
|
+
if (m.isDeleted()) return;
|
|
62
|
+
let U = T && (T.horizontal || T.vertical) ? `scale(${T.horizontal ? -1 : 1}, ${T.vertical ? -1 : 1})` : void 0;
|
|
63
|
+
return c("div", {
|
|
64
|
+
className: "picture-editor",
|
|
65
|
+
style: {
|
|
66
|
+
position: "relative",
|
|
67
|
+
display: "flex",
|
|
68
|
+
flex: "1 1 100%",
|
|
69
|
+
filter: b ? "drop-shadow(1px 1px 1.5px var(--sxl-color-shadow, rgba(0, 0, 0, .25)))" : void 0,
|
|
70
|
+
transform: U,
|
|
71
|
+
transformOrigin: "center",
|
|
72
|
+
...p,
|
|
73
|
+
width: "100%",
|
|
74
|
+
height: "100%"
|
|
75
|
+
},
|
|
76
|
+
tabIndex: 0,
|
|
77
|
+
...A,
|
|
78
|
+
onKeyDownCapture: (e) => {
|
|
79
|
+
E?.(e);
|
|
80
|
+
},
|
|
81
|
+
ref: V,
|
|
82
|
+
children: [N || j ? void 0 : k, H]
|
|
83
|
+
});
|
|
84
|
+
}));
|
|
85
|
+
d.displayName = "PictureEditor";
|
|
86
|
+
export { d as PictureEditor };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - 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
|
+
export { t as ShapeEditor } from "./CRi6DQ3UXmPEv-w_.mjs";
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - 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 "./C1pc9F4Rt2C5FKUo.mjs";
|
|
8
|
+
import { n as t } from "./BQYS2Yf-EAV_tBLr.mjs";
|
|
9
|
+
import { i as n, r, t as i } from "./DMdsMPT0fWBbTkNn.mjs";
|
|
10
|
+
import { forwardRef as a, memo as o, useCallback as s, useEffect as c, useLayoutEffect as l, useMemo as u, useReducer as ee, useRef as d, useState as f } from "react";
|
|
11
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
12
|
+
import { useImperativeElement as h, useNotifier as g, useTranslator as _ } from "@sheetxl/utils-react";
|
|
13
|
+
var v = () => m("svg", {
|
|
14
|
+
viewBox: "0 0 16 16",
|
|
15
|
+
width: 14,
|
|
16
|
+
height: 14,
|
|
17
|
+
"aria-hidden": !0,
|
|
18
|
+
children: [p("path", {
|
|
19
|
+
d: "M1.5 2.5h10l-4 5v5l-2 1v-6z",
|
|
20
|
+
fill: "none",
|
|
21
|
+
stroke: "currentColor",
|
|
22
|
+
strokeWidth: 1.2,
|
|
23
|
+
strokeLinejoin: "round"
|
|
24
|
+
}), p("path", {
|
|
25
|
+
d: "M10.5 10l4 4M14.5 10l-4 4",
|
|
26
|
+
stroke: "currentColor",
|
|
27
|
+
strokeWidth: 1.2
|
|
28
|
+
})]
|
|
29
|
+
}), y = () => m("svg", {
|
|
30
|
+
viewBox: "0 0 16 16",
|
|
31
|
+
width: 14,
|
|
32
|
+
height: 14,
|
|
33
|
+
"aria-hidden": !0,
|
|
34
|
+
children: [p("path", {
|
|
35
|
+
d: "M1.5 3.5l1.5 1.5 2.5-3M1.5 10.5l1.5 1.5 2.5-3",
|
|
36
|
+
fill: "none",
|
|
37
|
+
stroke: "currentColor",
|
|
38
|
+
strokeWidth: 1.2
|
|
39
|
+
}), p("path", {
|
|
40
|
+
d: "M8 4h7M8 11h7",
|
|
41
|
+
stroke: "currentColor",
|
|
42
|
+
strokeWidth: 1.2
|
|
43
|
+
})]
|
|
44
|
+
}), te = (e) => {
|
|
45
|
+
let t = e?.getTheme().getFontScheme().getMinorFont();
|
|
46
|
+
return {
|
|
47
|
+
fontFamily: (t ? t.includes(" ") ? `"${t}", ` : `${t}, ` : "") + "sans-serif",
|
|
48
|
+
fontSize: "11pt"
|
|
49
|
+
};
|
|
50
|
+
}, b = o(a((a, o) => {
|
|
51
|
+
let { children: b, disabled: x, style: ne, slicer: S, movable: C, zoom: w = 1, isDragging: T, onHide: re, onShow: ie, onDragZone: E, adornmentHost: ae, flip: oe, gesture: se, ...D } = a, O = _(), k = g(), A = (t() ?? S.getTable()?.getWorksheet() ?? null)?.getStyles() ?? null, [j, M] = ee((e) => e + 1, 0);
|
|
52
|
+
e(S, {
|
|
53
|
+
onAnyChange: M,
|
|
54
|
+
onReferencesChange: M
|
|
55
|
+
}), c(() => A?.addListeners({ onAnyChange: M }), [A]);
|
|
56
|
+
let [N, P] = f([]);
|
|
57
|
+
c(() => {
|
|
58
|
+
let e = !0;
|
|
59
|
+
if (!S.isDeleted()) return S.getItems().then((t) => {
|
|
60
|
+
e && P(t);
|
|
61
|
+
}).catch(() => {
|
|
62
|
+
e && P([]);
|
|
63
|
+
}), () => {
|
|
64
|
+
e = !1;
|
|
65
|
+
};
|
|
66
|
+
}, [S, j]);
|
|
67
|
+
let [F, I] = f(!1), [L, R] = f(null), z = d(null), B = d(null), V = d(null), [H, U] = f(!1);
|
|
68
|
+
l(() => {
|
|
69
|
+
let e = V.current;
|
|
70
|
+
if (!e) return;
|
|
71
|
+
let t = () => U(e.scrollHeight > e.clientHeight);
|
|
72
|
+
if (t(), typeof ResizeObserver > "u") return;
|
|
73
|
+
let n = new ResizeObserver(t);
|
|
74
|
+
return n.observe(e), () => n.disconnect();
|
|
75
|
+
}, [
|
|
76
|
+
N,
|
|
77
|
+
S.getRowHeight(),
|
|
78
|
+
S.getColumnCount(),
|
|
79
|
+
S.isShowCaption()
|
|
80
|
+
]), l(() => {
|
|
81
|
+
E?.((e) => {
|
|
82
|
+
let t = e.target;
|
|
83
|
+
return !t || !V.current?.contains(t) && !t.closest?.("button");
|
|
84
|
+
});
|
|
85
|
+
}, [E]);
|
|
86
|
+
let W = d(!1), G = S.getColumnCount(), K = S.getRowHeight();
|
|
87
|
+
l(() => {
|
|
88
|
+
if (W.current || N.length === 0 || !V.current) return;
|
|
89
|
+
W.current = !0;
|
|
90
|
+
let e = S.toJSON()?.startItem ?? 0;
|
|
91
|
+
e > 0 && (V.current.scrollTop = Math.floor(e / G) * (K + 4));
|
|
92
|
+
}, [
|
|
93
|
+
N,
|
|
94
|
+
G,
|
|
95
|
+
K
|
|
96
|
+
]);
|
|
97
|
+
let q = s((e) => {
|
|
98
|
+
S.selectItems(e).catch((e) => k.showError(e));
|
|
99
|
+
}, [S, k]), J = s((e, t) => {
|
|
100
|
+
if (x) return;
|
|
101
|
+
let n = N.map((e) => e.key), r = S.isFilterCleared() ? [] : N.filter((e) => e.isSelected).map((e) => e.key), i = z.current;
|
|
102
|
+
if (t.shiftKey && i !== null && n.includes(i)) {
|
|
103
|
+
let a = n.indexOf(i), o = n.indexOf(e.key), s = n.slice(Math.min(a, o), Math.max(a, o) + 1);
|
|
104
|
+
q(t.ctrlKey || t.metaKey ? [.../* @__PURE__ */ new Set([...r, ...s])] : s);
|
|
105
|
+
} else z.current = e.key, t.ctrlKey || t.metaKey || F ? r.length === 0 ? q([e.key]) : r.includes(e.key) ? q(r.filter((t) => t !== e.key)) : q([...r, e.key]) : q([e.key]);
|
|
106
|
+
}, [
|
|
107
|
+
S,
|
|
108
|
+
N,
|
|
109
|
+
F,
|
|
110
|
+
x,
|
|
111
|
+
q
|
|
112
|
+
]), Y = h(o, () => ({ isSlicerEditor: () => !0 }), []), X = i(S.getStyle(), A), ce = u(() => r(X?.wholeTable, A), [
|
|
113
|
+
X,
|
|
114
|
+
A,
|
|
115
|
+
j
|
|
116
|
+
]), le = u(() => r(X?.headerRow, A), [
|
|
117
|
+
X,
|
|
118
|
+
A,
|
|
119
|
+
j
|
|
120
|
+
]);
|
|
121
|
+
if (S.isDeleted()) return null;
|
|
122
|
+
let Z = S.isFilterCleared(), Q = S.isShowCaption(), $ = {
|
|
123
|
+
display: "flex",
|
|
124
|
+
alignItems: "center",
|
|
125
|
+
justifyContent: "center",
|
|
126
|
+
width: 22,
|
|
127
|
+
height: 22,
|
|
128
|
+
padding: 0,
|
|
129
|
+
margin: 0,
|
|
130
|
+
border: "1px solid transparent",
|
|
131
|
+
borderRadius: 2,
|
|
132
|
+
background: "none",
|
|
133
|
+
color: "inherit",
|
|
134
|
+
cursor: "pointer"
|
|
135
|
+
};
|
|
136
|
+
return m("div", {
|
|
137
|
+
className: "slicer-editor",
|
|
138
|
+
...D,
|
|
139
|
+
ref: Y,
|
|
140
|
+
style: {
|
|
141
|
+
width: "100%",
|
|
142
|
+
height: "100%",
|
|
143
|
+
zoom: w,
|
|
144
|
+
boxSizing: "border-box",
|
|
145
|
+
display: "flex",
|
|
146
|
+
flexDirection: "column",
|
|
147
|
+
overflow: "hidden",
|
|
148
|
+
position: "relative",
|
|
149
|
+
backgroundColor: "var(--sxl-color-base-100, white)",
|
|
150
|
+
border: "var(--sxl-color-neutral, grey) solid 1px",
|
|
151
|
+
...te(A),
|
|
152
|
+
...ce,
|
|
153
|
+
filter: x ? "blur(1px)" : void 0,
|
|
154
|
+
boxShadow: T ? "1px 1px 2px var(--sxl-color-shadow, rgba(0,0,0,.15))" : void 0,
|
|
155
|
+
...ne
|
|
156
|
+
},
|
|
157
|
+
children: [Q ? m("div", {
|
|
158
|
+
ref: B,
|
|
159
|
+
className: "slicer-caption",
|
|
160
|
+
style: {
|
|
161
|
+
display: "flex",
|
|
162
|
+
alignItems: "center",
|
|
163
|
+
gap: 2,
|
|
164
|
+
margin: "0 9px",
|
|
165
|
+
padding: "6px 0 4px 0",
|
|
166
|
+
flex: "none",
|
|
167
|
+
...le
|
|
168
|
+
},
|
|
169
|
+
children: [
|
|
170
|
+
p("span", {
|
|
171
|
+
style: {
|
|
172
|
+
flex: "1 1 auto",
|
|
173
|
+
overflow: "hidden",
|
|
174
|
+
textOverflow: "ellipsis",
|
|
175
|
+
whiteSpace: "nowrap"
|
|
176
|
+
},
|
|
177
|
+
children: S.getCaption()
|
|
178
|
+
}),
|
|
179
|
+
p("button", {
|
|
180
|
+
type: "button",
|
|
181
|
+
className: "slicer-multi-select",
|
|
182
|
+
tabIndex: -1,
|
|
183
|
+
title: O("slicer.multiSelect"),
|
|
184
|
+
"aria-label": O("slicer.multiSelect"),
|
|
185
|
+
"aria-pressed": F,
|
|
186
|
+
style: {
|
|
187
|
+
...$,
|
|
188
|
+
borderColor: F ? "var(--sxl-color-neutral, grey)" : "transparent",
|
|
189
|
+
backgroundColor: F ? "var(--sxl-color-base-200, #eee)" : void 0
|
|
190
|
+
},
|
|
191
|
+
onClick: () => I((e) => !e),
|
|
192
|
+
children: p(y, {})
|
|
193
|
+
}),
|
|
194
|
+
p("button", {
|
|
195
|
+
type: "button",
|
|
196
|
+
className: "slicer-clear",
|
|
197
|
+
tabIndex: -1,
|
|
198
|
+
title: O("slicer.clearFilter"),
|
|
199
|
+
"aria-label": O("slicer.clearFilter"),
|
|
200
|
+
disabled: Z || x,
|
|
201
|
+
style: {
|
|
202
|
+
...$,
|
|
203
|
+
opacity: Z ? .4 : 1,
|
|
204
|
+
cursor: Z ? "default" : "pointer"
|
|
205
|
+
},
|
|
206
|
+
onClick: () => {
|
|
207
|
+
S.clearFilters().catch((e) => k.showError(e));
|
|
208
|
+
},
|
|
209
|
+
children: p(v, {})
|
|
210
|
+
})
|
|
211
|
+
]
|
|
212
|
+
}) : null, p("div", {
|
|
213
|
+
ref: V,
|
|
214
|
+
className: "slicer-items",
|
|
215
|
+
role: "listbox",
|
|
216
|
+
"aria-multiselectable": !0,
|
|
217
|
+
"aria-label": S.getCaption(),
|
|
218
|
+
style: {
|
|
219
|
+
flex: "1 1 auto",
|
|
220
|
+
minHeight: 0,
|
|
221
|
+
overflowY: "auto",
|
|
222
|
+
overflowX: "hidden",
|
|
223
|
+
overscrollBehavior: "contain",
|
|
224
|
+
"--scrollbar-width": "8px",
|
|
225
|
+
"--scrollbar-border-width": "1px",
|
|
226
|
+
display: "grid",
|
|
227
|
+
gridTemplateColumns: `repeat(${G}, minmax(0, 1fr))`,
|
|
228
|
+
gridAutoRows: `${K}px`,
|
|
229
|
+
alignContent: "start",
|
|
230
|
+
gap: 4,
|
|
231
|
+
margin: (Q ? 4 : 9) + "px 9px 9px 9px",
|
|
232
|
+
paddingRight: H ? 3 : 0
|
|
233
|
+
},
|
|
234
|
+
onPointerLeave: () => R(null),
|
|
235
|
+
children: N.map((e) => {
|
|
236
|
+
let t = n(e.isSelected, e.hasData, L === e.key);
|
|
237
|
+
return p("div", {
|
|
238
|
+
className: "slicer-item",
|
|
239
|
+
role: "option",
|
|
240
|
+
"aria-selected": e.isSelected,
|
|
241
|
+
"data-key": e.key,
|
|
242
|
+
"data-has-data": e.hasData || void 0,
|
|
243
|
+
title: e.name,
|
|
244
|
+
style: {
|
|
245
|
+
boxSizing: "border-box",
|
|
246
|
+
display: "flex",
|
|
247
|
+
alignItems: "center",
|
|
248
|
+
justifyContent: "center",
|
|
249
|
+
padding: "0 4px",
|
|
250
|
+
overflow: "hidden",
|
|
251
|
+
whiteSpace: "nowrap",
|
|
252
|
+
textOverflow: "ellipsis",
|
|
253
|
+
userSelect: "none",
|
|
254
|
+
cursor: x ? void 0 : "pointer",
|
|
255
|
+
border: "1px solid transparent",
|
|
256
|
+
...r(X?.[t], A)
|
|
257
|
+
},
|
|
258
|
+
onPointerEnter: () => R(e.key),
|
|
259
|
+
onPointerDown: (e) => {
|
|
260
|
+
e.button === 0 && (e.stopPropagation(), e.preventDefault(), C && !C.isSelected() && C.select());
|
|
261
|
+
},
|
|
262
|
+
onClick: (t) => J(e, t),
|
|
263
|
+
children: p("span", {
|
|
264
|
+
style: {
|
|
265
|
+
overflow: "hidden",
|
|
266
|
+
textOverflow: "ellipsis"
|
|
267
|
+
},
|
|
268
|
+
children: e.name
|
|
269
|
+
})
|
|
270
|
+
}, e.key);
|
|
271
|
+
})
|
|
272
|
+
})]
|
|
273
|
+
});
|
|
274
|
+
}));
|
|
275
|
+
b.displayName = "SlicerEditor";
|
|
276
|
+
export { b as SlicerEditor };
|