@sheetxl/react 0.7.27 → 0.7.28-beta.1

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.
Files changed (257) hide show
  1. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +1 -0
  2. package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +156 -0
  3. package/browser/cjs/index.cjs +24 -24
  4. package/browser/esm/D_suN0U6XvrHxTak.mjs +6286 -0
  5. package/browser/esm/index.mjs +19258 -4911
  6. package/licenses/dependencies.txt +42 -214
  7. package/node/esm/CH084kteEgVy0a8H.mjs +9 -0
  8. package/node/esm/index.mjs +17035 -3691
  9. package/package.json +10 -11
  10. package/resources/contents.json +60 -0
  11. package/resources/locales/contents.json +114 -0
  12. package/resources/locales/de/clipboard.cmd.json +36 -0
  13. package/resources/locales/de/editor.cmd.json +128 -0
  14. package/resources/locales/de/movable.cmd.json +123 -0
  15. package/resources/locales/de/selection.cmd.json +373 -0
  16. package/resources/locales/de/sheet.cmd.json +1563 -0
  17. package/resources/locales/de/table.cmd.json +83 -0
  18. package/resources/locales/de/ui.msg.json +166 -0
  19. package/resources/locales/de/workbook.cmd.json +282 -0
  20. package/resources/locales/en/clipboard.cmd.json +36 -0
  21. package/resources/locales/en/editor.cmd.json +128 -0
  22. package/resources/locales/en/movable.cmd.json +123 -0
  23. package/resources/locales/en/selection.cmd.json +373 -0
  24. package/resources/locales/en/sheet.cmd.json +1563 -0
  25. package/resources/locales/en/table.cmd.json +83 -0
  26. package/resources/locales/en/ui.msg.json +166 -0
  27. package/resources/locales/en/workbook.cmd.json +282 -0
  28. package/types/index.d.ts +2 -1767
  29. package/types/src/border/StaticBorderRenderer.d.ts +32 -0
  30. package/types/src/border/StyledStrokePath.d.ts +14 -0
  31. package/types/src/border/index.d.ts +4 -0
  32. package/types/src/border/useBorders.d.ts +87 -0
  33. package/types/src/cell/ColumnButton.d.ts +45 -0
  34. package/types/src/cell/CornerTriangle.d.ts +27 -0
  35. package/types/src/cell/FormulaCellRenderer.d.ts +34 -0
  36. package/types/src/cell/SheetCellRenderer.d.ts +52 -0
  37. package/types/src/cell/SheetHeaderRenderer.d.ts +37 -0
  38. package/types/src/cell/index.d.ts +7 -0
  39. package/types/src/cell/useFormulaViewAnchor.d.ts +42 -0
  40. package/types/src/chart/ChartEditor.d.ts +17 -0
  41. package/types/src/chart/PresetChartTypeDescriptors.d.ts +35 -0
  42. package/types/src/chart/index.d.ts +3 -0
  43. package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +10 -0
  44. package/types/src/chart/templates/area-stacked-template.json.d.ts +10 -0
  45. package/types/src/chart/templates/area-template.json.d.ts +9 -0
  46. package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +10 -0
  47. package/types/src/chart/templates/bar-stacked-template.json.d.ts +10 -0
  48. package/types/src/chart/templates/bar-template.json.d.ts +9 -0
  49. package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +10 -0
  50. package/types/src/chart/templates/column-stacked-template.json.d.ts +10 -0
  51. package/types/src/chart/templates/column-template.json.d.ts +9 -0
  52. package/types/src/chart/templates/line-markers-template.json.d.ts +10 -0
  53. package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +11 -0
  54. package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +11 -0
  55. package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +10 -0
  56. package/types/src/chart/templates/line-stacked-template.json.d.ts +10 -0
  57. package/types/src/chart/templates/line-template.json.d.ts +9 -0
  58. package/types/src/chart/templates/pie-doughnut-template.json.d.ts +10 -0
  59. package/types/src/chart/templates/pie-template.json.d.ts +9 -0
  60. package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +10 -0
  61. package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +10 -0
  62. package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +10 -0
  63. package/types/src/chart/templates/scatter-lines-template.json.d.ts +10 -0
  64. package/types/src/chart/templates/scatter-markers-template.json.d.ts +10 -0
  65. package/types/src/clipboard/ClipboardCommands.d.ts +68 -0
  66. package/types/src/clipboard/SheetClipboardLayer.d.ts +22 -0
  67. package/types/src/clipboard/index.d.ts +3 -0
  68. package/types/src/commands/Catalog.d.ts +8 -0
  69. package/types/src/commands/CommandRootProvider.d.ts +36 -0
  70. package/types/src/commands/InputClipboardCommands.d.ts +41 -0
  71. package/types/src/commands/InputClipboardInjector.d.ts +16 -0
  72. package/types/src/commands/MainFocusContext.d.ts +13 -0
  73. package/types/src/commands/PaneScopeProvider.d.ts +40 -0
  74. package/types/src/commands/createTransactionalMiddleware.d.ts +49 -0
  75. package/types/src/commands/index.d.ts +7 -0
  76. package/types/src/context/SheetContext.d.ts +18 -0
  77. package/types/src/context/WorkbookContext.d.ts +20 -0
  78. package/types/src/context/index.d.ts +3 -0
  79. package/types/src/editableLabel/EditableLabel.d.ts +28 -0
  80. package/types/src/editableLabel/index.d.ts +2 -0
  81. package/types/src/editor/EditorCommands.d.ts +98 -0
  82. package/types/src/editor/FunctionPreviewPanel.d.ts +166 -0
  83. package/types/src/editor/NamedHintPanel.d.ts +38 -0
  84. package/types/src/editor/NamedItemsPanel.d.ts +59 -0
  85. package/types/src/editor/SheetCellEditorLayer.d.ts +40 -0
  86. package/types/src/editor/SheetCellInput.d.ts +99 -0
  87. package/types/src/editor/SheetEditable.d.ts +53 -0
  88. package/types/src/editor/SheetReferenceHeaderLayer.d.ts +46 -0
  89. package/types/src/editor/SheetReferenceLayer.d.ts +55 -0
  90. package/types/src/editor/formulaCaret.d.ts +84 -0
  91. package/types/src/editor/formulaEval.d.ts +202 -0
  92. package/types/src/editor/formulaPresentation.d.ts +136 -0
  93. package/types/src/editor/formulaText.d.ts +80 -0
  94. package/types/src/editor/functionArgs.d.ts +111 -0
  95. package/types/src/editor/functionHint.d.ts +37 -0
  96. package/types/src/editor/index.d.ts +18 -0
  97. package/types/src/editor/referencePointNav.d.ts +39 -0
  98. package/types/src/editor/useFormulaHints.d.ts +126 -0
  99. package/types/src/editor/useFormulaInput.d.ts +326 -0
  100. package/types/src/editor/useProtectedEditNotice.d.ts +14 -0
  101. package/types/src/editor/useReferenceMode.d.ts +177 -0
  102. package/types/src/form/FormulaInput.d.ts +86 -0
  103. package/types/src/form/FormulaInputParts.d.ts +94 -0
  104. package/types/src/form/index.d.ts +5 -0
  105. package/types/src/form/useEditCommit.d.ts +174 -0
  106. package/types/src/form/useInputField.d.ts +86 -0
  107. package/types/src/frame/CommandContext.d.ts +179 -0
  108. package/types/src/frame/IFrame.d.ts +17 -0
  109. package/types/src/frame/index.d.ts +3 -0
  110. package/types/src/icons/LogoNoPaddingIcon.d.ts +3 -0
  111. package/types/src/icons/LogoTextNoPaddingIcon.d.ts +4 -0
  112. package/types/src/icons/WaterMark.d.ts +12 -0
  113. package/types/src/icons/chart/ChartAreaIcon.d.ts +5 -0
  114. package/types/src/icons/chart/ChartAreaStackedIcon.d.ts +5 -0
  115. package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts +5 -0
  116. package/types/src/icons/chart/ChartBarIcon.d.ts +5 -0
  117. package/types/src/icons/chart/ChartBarStackedIcon.d.ts +5 -0
  118. package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts +5 -0
  119. package/types/src/icons/chart/ChartBubble3DIcon.d.ts +5 -0
  120. package/types/src/icons/chart/ChartBubbleIcon.d.ts +5 -0
  121. package/types/src/icons/chart/ChartColumnIcon.d.ts +5 -0
  122. package/types/src/icons/chart/ChartColumnStackedIcon.d.ts +5 -0
  123. package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts +5 -0
  124. package/types/src/icons/chart/ChartLineIcon.d.ts +5 -0
  125. package/types/src/icons/chart/ChartLineMarkersIcon.d.ts +5 -0
  126. package/types/src/icons/chart/ChartLineStackedIcon.d.ts +5 -0
  127. package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts +5 -0
  128. package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts +5 -0
  129. package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts +5 -0
  130. package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts +5 -0
  131. package/types/src/icons/chart/ChartPieIcon.d.ts +5 -0
  132. package/types/src/icons/chart/ChartScatterLinesIcon.d.ts +5 -0
  133. package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts +5 -0
  134. package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts +5 -0
  135. package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts +5 -0
  136. package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts +5 -0
  137. package/types/src/icons/chart/ChartWaterfallIcon.d.ts +5 -0
  138. package/types/src/icons/chart/ThemedChartIcon.d.ts +20 -0
  139. package/types/src/icons/chart/index.d.ts +50 -0
  140. package/types/src/icons/index.d.ts +4 -0
  141. package/types/src/index.d.ts +27 -0
  142. package/types/src/io/WorkbookIO.d.ts +50 -0
  143. package/types/src/io/index.d.ts +2 -0
  144. package/types/src/layer/BorderLayer.d.ts +14 -0
  145. package/types/src/layer/CellErrorLayer.d.ts +49 -0
  146. package/types/src/layer/CellFillLayer.d.ts +15 -0
  147. package/types/src/layer/ConditionalBarLayer.d.ts +41 -0
  148. package/types/src/layer/ConditionalIcons.d.ts +34 -0
  149. package/types/src/layer/ConditionalIconsLayer.d.ts +31 -0
  150. package/types/src/layer/ContextMenuLayer.d.ts +27 -0
  151. package/types/src/layer/HeaderResizerLayer.d.ts +28 -0
  152. package/types/src/layer/HeaderSelectionLayer.d.ts +89 -0
  153. package/types/src/layer/ResizeIndicator.d.ts +19 -0
  154. package/types/src/layer/SheetBackgroundLayer.d.ts +22 -0
  155. package/types/src/layer/SheetCellLayer.d.ts +49 -0
  156. package/types/src/layer/SheetColumnButtonLayer.d.ts +23 -0
  157. package/types/src/layer/SheetGridLineLayer.d.ts +22 -0
  158. package/types/src/layer/SheetHeaderCellLayer.d.ts +30 -0
  159. package/types/src/layer/SheetMovableLayer.d.ts +26 -0
  160. package/types/src/layer/SheetTableCommandLayer.d.ts +16 -0
  161. package/types/src/layer/SpillLayer.d.ts +22 -0
  162. package/types/src/layer/TableLayer.d.ts +22 -0
  163. package/types/src/layer/ValidationIndicatorLayer.d.ts +41 -0
  164. package/types/src/layer/index.d.ts +25 -0
  165. package/types/src/layer/resizeIndicatorState.d.ts +26 -0
  166. package/types/src/layer/useSheetFeatureRegions.d.ts +21 -0
  167. package/types/src/layer/useSheetVisibleCells.d.ts +60 -0
  168. package/types/src/layer/useSheetVisibleDecorations.d.ts +42 -0
  169. package/types/src/layer/useTableHeaderCells.d.ts +22 -0
  170. package/types/src/layer/useVisibleTables.d.ts +27 -0
  171. package/types/src/listener/index.d.ts +3 -0
  172. package/types/src/listener/useModelListener.d.ts +67 -0
  173. package/types/src/listener/useRangeListener.d.ts +15 -0
  174. package/types/src/movable/EmptyFrame.d.ts +16 -0
  175. package/types/src/movable/IMovableArea.d.ts +34 -0
  176. package/types/src/movable/MovableCommands.d.ts +22 -0
  177. package/types/src/movable/MovableFrame.d.ts +48 -0
  178. package/types/src/movable/MovableLayer.d.ts +77 -0
  179. package/types/src/movable/MoveableBundle.d.ts +4 -0
  180. package/types/src/movable/index.d.ts +4 -0
  181. package/types/src/picture/IPictureEditor.d.ts +39 -0
  182. package/types/src/picture/PictureEditor.d.ts +4 -0
  183. package/types/src/picture/index.d.ts +3 -0
  184. package/types/src/selection/SelectionCommands.d.ts +23 -0
  185. package/types/src/selection/SheetSelection.d.ts +53 -0
  186. package/types/src/selection/SheetSelectionLayer.d.ts +30 -0
  187. package/types/src/selection/index.d.ts +4 -0
  188. package/types/src/shape/ShapeEditor.d.ts +16 -0
  189. package/types/src/shape/index.d.ts +2 -0
  190. package/types/src/sheet/ConditionalFormatPresets.d.ts +56 -0
  191. package/types/src/sheet/ISheetElement.d.ts +233 -0
  192. package/types/src/sheet/ISheetHeaderElement.d.ts +138 -0
  193. package/types/src/sheet/NotImplemented.d.ts +3 -0
  194. package/types/src/sheet/SheetCommandProvider.d.ts +57 -0
  195. package/types/src/sheet/SheetCommands.d.ts +75 -0
  196. package/types/src/sheet/SheetElement.d.ts +15 -0
  197. package/types/src/sheet/SheetHeaderElement.d.ts +4 -0
  198. package/types/src/sheet/SheetScrollbar.d.ts +28 -0
  199. package/types/src/sheet/TopLeftCorner.d.ts +17 -0
  200. package/types/src/sheet/index.d.ts +7 -0
  201. package/types/src/slicer/SlicerEditor.d.ts +16 -0
  202. package/types/src/slicer/index.d.ts +2 -0
  203. package/types/src/tabStrip/SheetTab.d.ts +41 -0
  204. package/types/src/tabStrip/Sortable.d.ts +66 -0
  205. package/types/src/tabStrip/Tab.d.ts +19 -0
  206. package/types/src/tabStrip/TabStrip.d.ts +41 -0
  207. package/types/src/tabStrip/TabStripItem.d.ts +36 -0
  208. package/types/src/tabStrip/TabStripRow.d.ts +9 -0
  209. package/types/src/tabStrip/index.d.ts +7 -0
  210. package/types/src/table/TableCommands.d.ts +16 -0
  211. package/types/src/taskPane/ITaskPane.d.ts +72 -0
  212. package/types/src/taskPane/TaskPaneArea.d.ts +144 -0
  213. package/types/src/taskPane/TaskPaneFrame.d.ts +48 -0
  214. package/types/src/taskPane/TaskPaneRegistry.d.ts +108 -0
  215. package/types/src/taskPane/TaskPaneStrip.d.ts +33 -0
  216. package/types/src/taskPane/TaskPaneTitle.d.ts +24 -0
  217. package/types/src/taskPane/index.d.ts +7 -0
  218. package/types/src/taskPane/useTaskPane.d.ts +29 -0
  219. package/types/src/theme/DocThemesContext.d.ts +3 -0
  220. package/types/src/theme/DocThemesProvider.d.ts +15 -0
  221. package/types/src/theme/ThemeState.d.ts +19 -0
  222. package/types/src/theme/buildDocThemeCSS.d.ts +16 -0
  223. package/types/src/theme/buildOOXMLThemeCSS.d.ts +13 -0
  224. package/types/src/theme/createCSSSystemLookup.d.ts +51 -0
  225. package/types/src/theme/index.d.ts +11 -0
  226. package/types/src/theme/useAppColorScheme.d.ts +15 -0
  227. package/types/src/theme/useDocThemes.d.ts +3 -0
  228. package/types/src/theme/useGridColorScheme.d.ts +20 -0
  229. package/types/src/theme/useSystemColors.d.ts +44 -0
  230. package/types/src/undo/UndoCommands.d.ts +28 -0
  231. package/types/src/undo/UndoManagerContext.d.ts +14 -0
  232. package/types/src/undo/index.d.ts +3 -0
  233. package/types/src/workbook/DefaultRenderers.d.ts +14 -0
  234. package/types/src/workbook/GlobalWorkbookElement.d.ts +10 -0
  235. package/types/src/workbook/IWorkbookElement.d.ts +178 -0
  236. package/types/src/workbook/WindowChrome.d.ts +61 -0
  237. package/types/src/workbook/WorkbookCommandContributor.d.ts +24 -0
  238. package/types/src/workbook/WorkbookCommands.d.ts +97 -0
  239. package/types/src/workbook/WorkbookElement.d.ts +9 -0
  240. package/types/src/workbook/WorkbookStrip.d.ts +73 -0
  241. package/types/src/workbook/index.d.ts +17 -0
  242. package/types/src/workbook/resolveWorkbookInput.d.ts +27 -0
  243. package/types/src/workbook/useResolvedWorkbook.d.ts +31 -0
  244. package/types/src/workbook/useWindowChrome.d.ts +24 -0
  245. package/types/src/workbook/useWorkbookApp.d.ts +47 -0
  246. package/types/src/workbook/useWorkbookEncrypted.d.ts +15 -0
  247. package/types/src/workbook/useWorkbookFormat.d.ts +18 -0
  248. package/types/src/workbook/useWorkbookName.d.ts +13 -0
  249. package/types/src/workbook/useWorkbookSaveState.d.ts +29 -0
  250. package/browser/cjs/DNki9dGbSn_gUfd3.cjs +0 -7
  251. package/browser/cjs/Da611GSWMp5ncOGO.cjs +0 -16
  252. package/browser/cjs/F8ZECny0CwW2OV5X.cjs +0 -161
  253. package/browser/esm/BYGSBjns_83FWXAx.mjs +0 -3905
  254. package/browser/esm/CmObbQiLq9AAM7-q.mjs +0 -394
  255. package/browser/esm/Daa2g2QALCIHFgqP.mjs +0 -1377
  256. package/node/assets/style.css +0 -1
  257. package/node/esm/Bu9xI_rgkuupQ2AO.mjs +0 -11
@@ -0,0 +1,32 @@
1
+ import { default as React } from 'react';
2
+ import { IBorder } from '@sheetxl/sdk';
3
+ export interface StaticBorderRendererProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * Returns a border for the given value and index.
6
+ */
7
+ getBorderAt?: (value: any, index: number) => IBorder;
8
+ rowCount?: number;
9
+ columnCount?: number;
10
+ /**
11
+ * Allow for the border width to be set.
12
+ * If this is not set then the border width will be the same as the cell size.
13
+ * Note - Measuring the child will need to wait until a render which can cause a flicker
14
+ * @defaultValue childSize
15
+ */
16
+ width?: number;
17
+ /**
18
+ * Allow for the border height to be set.
19
+ * If this is not set then the border width will be the same as the cell size.
20
+ * Note - Measuring the child will need to wait until a render which can cause a flicker
21
+ * @defaultValue childSize
22
+ */
23
+ height?: number;
24
+ forceThinBorder?: boolean;
25
+ }
26
+ /**
27
+ * Render a grid border using a border property as an input. Useful
28
+ * when wanting to render either a single cell or a border template.
29
+ * All cells are the same height/width.
30
+ */
31
+ export declare const StaticBorderRenderer: React.MemoExoticComponent<(props: StaticBorderRendererProps) => React.JSX.Element | null>;
32
+ //# sourceMappingURL=StaticBorderRenderer.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ export interface StyledStrokePathProps extends React.SVGProps<SVGPathElement> {
3
+ dashArray?: number[];
4
+ isDouble?: boolean;
5
+ isAngled?: boolean;
6
+ dashArrayAdditional?: number[];
7
+ length?: number;
8
+ width?: number;
9
+ offsetX?: number;
10
+ offsetY?: number;
11
+ isVertical?: boolean;
12
+ }
13
+ export declare const StyledStrokePath: (props: StyledStrokePathProps) => React.ReactElement;
14
+ //# sourceMappingURL=StyledStrokePath.d.ts.map
@@ -0,0 +1,4 @@
1
+ export * from './StyledStrokePath';
2
+ export * from './StaticBorderRenderer';
3
+ export * from './useBorders';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,87 @@
1
+ import { default as React } from 'react';
2
+ import { IBorder, IRange, ICell } from '@sheetxl/sdk';
3
+ import { IGridPane, IGridMetrics } from '@sheetxl/grid-react';
4
+ export interface BorderRenderProps {
5
+ stroke: IBorder.IStroke;
6
+ range: IRange.Coords;
7
+ points: number[];
8
+ key: string;
9
+ /**
10
+ * Which cell edge this stroke belongs to. Trailing edges (right/bottom) are
11
+ * shifted to sit after the divider; leading edges (left/top) sit before it.
12
+ */
13
+ edge?: IBorder.Edge;
14
+ /**
15
+ * Int Hint to tell the border the direction that it is rendering
16
+ */
17
+ isVertical?: boolean;
18
+ /**
19
+ * Hint to tell render that we are rendering a small small
20
+ */
21
+ forceThinBorder?: boolean;
22
+ /**
23
+ * Used for generating corners for wide borders. If not provided then borders will simply overlap.
24
+ */
25
+ metrics?: IGridMetrics;
26
+ /**
27
+ * Used for generating corners for wide borders. If not provided then borders will simply overlap.
28
+ */
29
+ intersections?: {
30
+ stroke: IBorder.IStroke;
31
+ edge?: IBorder.Edge;
32
+ range: IRange.Coords;
33
+ }[];
34
+ /**
35
+ * CSS px to extend the start (left/top) end, pre-computed by the corner-join pass
36
+ * to miter into a perpendicular border at a true L corner.
37
+ */
38
+ startExtend?: number;
39
+ /**
40
+ * CSS px to extend the end (right/bottom) end, pre-computed by the corner-join pass.
41
+ */
42
+ endExtend?: number;
43
+ }
44
+ export interface UseBorderOptions {
45
+ /**
46
+ * Returns a list of visible cells.
47
+ *
48
+ * @param pane - {@link IGridPane}
49
+ * @returns An array of visible coords
50
+ */
51
+ getVisibleCells: (pane: IGridPane) => ({
52
+ cell: ICell.Coords;
53
+ value?: any;
54
+ range?: IRange.Coords;
55
+ })[];
56
+ /**
57
+ * For finding the border. The value is the value returned from getVisibleCells and the index is the index found.
58
+ *
59
+ * @param value - ?
60
+ * @param index - ?
61
+ * @returns The IBorder at the location.
62
+ */
63
+ getBorderAt?: (value: any, index: number) => IBorder;
64
+ /**
65
+ * Allow users to customize border rendering.
66
+ * Note - This is wrapped in a single SVG so must be an SVG Element type (like a path).
67
+ */
68
+ rendererBorder?: (props: BorderRenderProps) => React.ReactNode;
69
+ defaultColor?: string;
70
+ /**
71
+ * Force all rendering to be a single border line.
72
+ * Use for previews.
73
+ */
74
+ forceThinBorder?: boolean;
75
+ }
76
+ export interface UseBorderResults {
77
+ /**
78
+ * Array of functions that return components to overlay
79
+ */
80
+ renderLayer?: (props: React.HTMLProps<HTMLDivElement>, pane: IGridPane) => React.ReactNode;
81
+ }
82
+ /**
83
+ * useBorders
84
+ * Renders borders by combining individual cells border attributes.
85
+ */
86
+ export declare const useBorders: ({ getBorderAt, rendererBorder, getVisibleCells: propGetVisibleCells, forceThinBorder, defaultColor, }: UseBorderOptions) => UseBorderResults;
87
+ //# sourceMappingURL=useBorders.d.ts.map
@@ -0,0 +1,45 @@
1
+ import { default as React } from 'react';
2
+ import { Bounds } from '@sheetxl/utils';
3
+ import { ITable } from '@sheetxl/sdk';
4
+ /**
5
+ * The column (filter/sort) button configuration.
6
+ *
7
+ * @remarks
8
+ * Rides the shared `propsCellRender` channel. Consumed by the in-grid button layer
9
+ * (`SheetColumnButtonLayer`) and the header-strip renderer (`SheetHeaderRenderer`) — NOT by the text
10
+ * cell renderer (which is now just text).
11
+ */
12
+ export interface ColumnButtonConfigProps {
13
+ /**
14
+ * Callback for when a column (filter/sort) button has been pressed.
15
+ *
16
+ * @param event - The mouse event (its `currentTarget` anchors the menu)
17
+ * @param column - The table column the button belongs to
18
+ */
19
+ onColumnButtonMouseDown?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, column: ITable.IColumn) => void;
20
+ /**
21
+ * Custom properties for the column button.
22
+ */
23
+ propsColumnButton?: ColumnButtonProps;
24
+ /**
25
+ * Callback for creating a custom column button.
26
+ *
27
+ * @returns A React Element representing the ColumnButton.
28
+ */
29
+ renderColumnButton?: (props: ColumnButtonProps) => React.ReactElement;
30
+ }
31
+ /**
32
+ * Property for the filter button
33
+ */
34
+ export interface ColumnButtonProps extends React.HTMLAttributes<HTMLElement> {
35
+ renderBounds: Bounds;
36
+ zoom: number;
37
+ disabled: boolean;
38
+ column: ITable.IColumn;
39
+ onColumnButtonMouseDown?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, column: ITable.IColumn) => void;
40
+ }
41
+ /**
42
+ * The default ColumnButton
43
+ */
44
+ export declare const ColumnButton: (props: ColumnButtonProps) => React.ReactElement;
45
+ //# sourceMappingURL=ColumnButton.d.ts.map
@@ -0,0 +1,27 @@
1
+ import { default as React } from 'react';
2
+ import { AnchorLocation } from '@sheetxl/utils';
3
+ export interface CornerTriangleProps extends React.SVGProps<SVGSVGElement> {
4
+ /**
5
+ * @defaultValue AnchorLocation.TopLeft
6
+ */
7
+ anchorLocation?: AnchorLocation;
8
+ /**
9
+ * defaults based on corner
10
+ */
11
+ fill?: string;
12
+ /**
13
+ * The right sides of the triangle.
14
+ * @defaultValue 7
15
+ */
16
+ size?: number;
17
+ /**
18
+ * inset within the cell
19
+ * @defaultValue 1
20
+ */
21
+ inset?: number;
22
+ cellWidth?: number;
23
+ cellHeight?: number;
24
+ propsPath?: React.SVGProps<SVGPathElement>;
25
+ }
26
+ export declare const CornerTriangle: React.MemoExoticComponent<(props: CornerTriangleProps) => React.JSX.Element>;
27
+ //# sourceMappingURL=CornerTriangle.d.ts.map
@@ -0,0 +1,34 @@
1
+ import { default as React } from 'react';
2
+ import { ICalculation, ICell } from '@sheetxl/sdk';
3
+ /**
4
+ * Props for {@link FormulaCellRenderer}.
5
+ */
6
+ export interface FormulaCellRendererProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ /** The formula cell being rendered (styling source: font, alignment, insets). */
8
+ cell: ICell;
9
+ /**
10
+ * The formula's tokens (`createFormula('=' + cell.getFormulaText(), …).getTokens()`).
11
+ * Rendered verbatim after a leading `=`, each span colored by {@link tokenColor} — reference
12
+ * tokens rotate the shared `--sxl-color-series-*` palette by `referenceIndex`, the SAME hues the
13
+ * range picker outlines with, so text and rectangle always match.
14
+ */
15
+ tokens: readonly ICalculation.FormulaToken[];
16
+ /** The pane's zoom (the hosting box's bounds are zoomed; fonts must match). */
17
+ zoom: number;
18
+ }
19
+ /**
20
+ * The **formula-view** cell renderer: the anchor cell's formula as tokenized, syntax-colored text.
21
+ *
22
+ * @remarks
23
+ * The live counterpart of `SheetCellRenderer`'s (plain) `showFormulas` path: the tiled layer keeps
24
+ * every formula cell as an immutable plain-text snapshot, and `SheetCellLayer` suppresses the
25
+ * ANCHOR cell (the live `data-rc` CSS channel) and overlays this renderer in its place — so
26
+ * selection moves never invalidate a tile. Colors are emitted as theme tokens (`light-dark()`
27
+ * aware), so a mode flip re-resolves in pure CSS here too.
28
+ *
29
+ * Layout mirrors the plain formula path's rules: forced left alignment, no rotation, no overflow
30
+ * past the cell box (clipped by the hosting box), vertical alignment from the cell style.
31
+ * (2nd pass: hover highlight/eval tooltips like the editor's overlay.)
32
+ */
33
+ export declare const FormulaCellRenderer: React.FC<FormulaCellRendererProps>;
34
+ //# sourceMappingURL=FormulaCellRenderer.d.ts.map
@@ -0,0 +1,52 @@
1
+ import { default as React } from 'react';
2
+ import { ICell, IStyle, ITheme } from '@sheetxl/sdk';
3
+ import { CellRendererProps } from '@sheetxl/grid-react';
4
+ export interface SheetCellRendererProps extends CellRendererProps<ICell> {
5
+ /**
6
+ * If true, prefer to show the formulas over values
7
+ */
8
+ showFormulas?: boolean;
9
+ /**
10
+ * If true, show zero values
11
+ */
12
+ showZeros?: boolean;
13
+ /**
14
+ * Ability to query the theme colors.
15
+ * Note - There are also css variables that can be used to style using doc theme colors
16
+ * @see https://www.sheetxl.com/docs
17
+ */
18
+ docTheme?: ITheme;
19
+ /**
20
+ * An optimization that tells the render all of the styling is normal. And doesn't need to
21
+ * be overwritten.
22
+ */
23
+ normalStyle?: IStyle;
24
+ /**
25
+ * Callback for when a link has been clicked.
26
+ *
27
+ * @param event - The mouse event
28
+ */
29
+ onLinkMouseDown?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
30
+ }
31
+ /**
32
+ * CellRender is used for rendering text values on ICell.
33
+ *
34
+ * Some of the features are:
35
+ * 1. Text Color
36
+ * 2. Horizontal Alignment (Left, Right, Center, Justify)
37
+ * 3. Vertical Alignment (Top, Middle, Bottom)
38
+ * 4. Spacing formatting (*, ?)
39
+ * 5. Decimal rounding
40
+ * 6. Overflow Character
41
+ * 7. Text Wrapping
42
+ * 8. Text Rotation
43
+ * 9. Indentions
44
+ * 10. Underline (Accounting, Standard, Double, Single)
45
+ * 11. Scaling
46
+ * 12. Super/Subscript
47
+ * 13. Formulas
48
+ *
49
+ * @param props
50
+ */
51
+ export declare const SheetCellRenderer: React.FC<SheetCellRendererProps>;
52
+ //# sourceMappingURL=SheetCellRenderer.d.ts.map
@@ -0,0 +1,37 @@
1
+ import { default as React } from 'react';
2
+ import { RangeAxis } from '@sheetxl/utils';
3
+ import { CellRendererProps } from '@sheetxl/grid-react';
4
+ import { ITable } from '@sheetxl/sdk';
5
+ import { ColumnButtonProps } from './ColumnButton';
6
+ export interface SheetHeaderRendererProps extends CellRendererProps {
7
+ axis: RangeAxis;
8
+ index: number;
9
+ verticalPadding?: number;
10
+ horizontalPadding?: number;
11
+ headerText?: (index: number) => string;
12
+ isSelected?: (index: number) => boolean;
13
+ isSelectedAll?: (index: number) => boolean;
14
+ /**
15
+ * This is not the default grid zoom this is just for rendering.
16
+ * @defaultValue 100
17
+ */
18
+ zoomScale?: number;
19
+ /**
20
+ * Callback for when a filter has been clicked.
21
+ *
22
+ * @param event - The mouse event
23
+ */
24
+ onColumnButtonMouseDown?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, column: ITable.IColumn) => void;
25
+ /**
26
+ * Custom properties for the filter button
27
+ */
28
+ propsColumnButton?: ColumnButtonProps;
29
+ /**
30
+ * Callback for creating a custom column button.
31
+ *
32
+ * @returns A React Element representing the ColumnButton.
33
+ */
34
+ renderColumnButton?: (props: ColumnButtonProps) => React.ReactElement;
35
+ }
36
+ export declare const SheetHeaderRenderer: React.MemoExoticComponent<(props: SheetHeaderRendererProps) => React.JSX.Element>;
37
+ //# sourceMappingURL=SheetHeaderRenderer.d.ts.map
@@ -0,0 +1,7 @@
1
+ export * from './SheetCellRenderer';
2
+ export * from './FormulaCellRenderer';
3
+ export * from './useFormulaViewAnchor';
4
+ export * from './SheetHeaderRenderer';
5
+ export * from './ColumnButton';
6
+ export * from './CornerTriangle';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,42 @@
1
+ import { RangeCoords } from '@sheetxl/utils';
2
+ import { ICalculation, ICell, ISheet } from '@sheetxl/sdk';
3
+ /**
4
+ * The formula-view anchor: the selection anchor's formula, tokenized, when the view is showing
5
+ * formulas. `null` whenever there is nothing to spotlight (not in formula view, anchor isn't a
6
+ * formula cell, or the formula fails to tokenize).
7
+ */
8
+ export interface FormulaViewAnchor {
9
+ /** The anchor cell's coordinates (sheet-local). */
10
+ coords: ICell.Coords;
11
+ /** The anchor cell itself (styling source for the overlay renderer). */
12
+ cell: ICell;
13
+ /**
14
+ * The formula's tokens (resilient tokenizer over `'=' + getFormulaText()`), index-aligned with
15
+ * {@link ranges} via each token's `referenceIndex`.
16
+ */
17
+ tokens: readonly ICalculation.FormulaToken[];
18
+ /**
19
+ * The formula's references as scoped ranges — every slot carries an explicit `scope` (implicit
20
+ * same-sheet references are stamped with this sheet's name, mirroring the editor's `parsed.ranges`)
21
+ * so per-pane consumers can filter without guessing. A slot is `null` when that reference can't
22
+ * resolve to a range (`#REF!`, a dangling name) — it must survive so later indices keep their
23
+ * color/token alignment.
24
+ */
25
+ ranges: readonly (RangeCoords | null)[];
26
+ }
27
+ /**
28
+ * The shared **formula-view spotlight** source: while `sheetView.isShowFormulas()` is on, tracks the
29
+ * sheet's selection anchor and — when it sits on a formula cell — returns that formula's tokens and
30
+ * scoped reference ranges. Consumed by `SheetCellLayer` (suppress the anchor's plain tile text +
31
+ * overlay the colored `FormulaCellRenderer`) and `SheetReferenceLayer` (outline the references via
32
+ * the ranges picker), so the two always agree on what is spotlighted — and colors line up, both
33
+ * keying off `referenceIndex`.
34
+ *
35
+ * @remarks
36
+ * Re-renders on `onSelectionChange` only while enabled. The derivation is memoized on the anchor
37
+ * (the sdk selection's coords object is replaced only on a real change), so per-frame renders
38
+ * (scroll) never re-tokenize; `token` lets a caller bust it when cell CONTENT changed (e.g. the
39
+ * cells layer's visible-range cache token).
40
+ */
41
+ export declare const useFormulaViewAnchor: (sheet: ISheet, showFormulas: boolean, token?: unknown) => FormulaViewAnchor | null;
42
+ //# sourceMappingURL=useFormulaViewAnchor.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { IChart } from '@sheetxl/sdk';
3
+ import { MovableElementProps } from '../movable';
4
+ export interface ChartEditorAttributes {
5
+ isChartEditor: () => true;
6
+ }
7
+ export interface IChartEditorElement extends HTMLDivElement, ChartEditorAttributes {
8
+ }
9
+ export interface ChartEditorProps extends MovableElementProps {
10
+ chart: IChart;
11
+ ref?: React.Ref<IChartEditorElement>;
12
+ }
13
+ /**
14
+ * Placeholder for chart editors.
15
+ */
16
+ export declare const ChartEditor: React.NamedExoticComponent<Omit<ChartEditorProps, "ref"> & React.RefAttributes<IChartEditorElement>>;
17
+ //# sourceMappingURL=ChartEditor.d.ts.map
@@ -0,0 +1,35 @@
1
+ import { default as React } from 'react';
2
+ export declare const PresetChartType: {
3
+ readonly Column: "column";
4
+ readonly ColumnStacked: "columnStacked";
5
+ readonly ColumnStackedPercent: "columnStackedPercent";
6
+ readonly Line: "line";
7
+ readonly LineStacked: "lineStacked";
8
+ readonly LineStackedPercent: "lineStackedPercent";
9
+ readonly LineMarkers: "lineMarkers";
10
+ readonly LineStackedMarkers: "lineStackedMarkers";
11
+ readonly LineStackedPercentMarkers: "lineStackedPercentMarkers";
12
+ readonly Pie: "pie";
13
+ readonly PieDoughnut: "pieDoughnut";
14
+ readonly Bar: "bar";
15
+ readonly BarStacked: "barStacked";
16
+ readonly BarStackedPercent: "barStackedPercent";
17
+ readonly Area: "area";
18
+ readonly AreaStacked: "areaStacked";
19
+ readonly AreaStackedPercent: "areaStackedPercent";
20
+ readonly ScatterMarkers: "scatterMarkers";
21
+ readonly ScatterLinesMarkersSmooth: "scatterLinesMarkersSmooth";
22
+ readonly ScatterLinesMarkers: "scatterLinesMarkers";
23
+ readonly ScatterLinesSmooth: "scatterLinesSmooth";
24
+ readonly ScatterLines: "scatterLines";
25
+ readonly Bubble: "bubble";
26
+ readonly Bubble3D: "bubble3D";
27
+ };
28
+ export type PresetChartType = typeof PresetChartType[keyof typeof PresetChartType];
29
+ export interface ChartTypeDescriptor {
30
+ Icon: React.FC<React.SVGProps<SVGSVGElement>>;
31
+ description: string;
32
+ template: any;
33
+ }
34
+ export declare const presetChartTypeDescriptor: (presetType: PresetChartType) => ChartTypeDescriptor;
35
+ //# sourceMappingURL=PresetChartTypeDescriptors.d.ts.map
@@ -0,0 +1,3 @@
1
+ export * from './ChartEditor';
2
+ export * from './PresetChartTypeDescriptors';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "area",
5
+ "grouping": "percentStacked"
6
+ }
7
+ }
8
+ };
9
+
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "area",
5
+ "grouping": "stacked"
6
+ }
7
+ }
8
+ };
9
+
10
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "area"
5
+ }
6
+ }
7
+ };
8
+
9
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "bar",
5
+ "grouping": "percentStacked"
6
+ }
7
+ }
8
+ };
9
+
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "bar",
5
+ "grouping": "stacked"
6
+ }
7
+ }
8
+ };
9
+
10
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "bar"
5
+ }
6
+ }
7
+ };
8
+
9
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "column",
5
+ "grouping": "percentStacked"
6
+ }
7
+ }
8
+ };
9
+
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "column",
5
+ "grouping": "stacked"
6
+ }
7
+ }
8
+ };
9
+
10
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "column"
5
+ }
6
+ }
7
+ };
8
+
9
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "line",
5
+ "scatterStyle": "lineMarker"
6
+ }
7
+ }
8
+ };
9
+
10
+ export default _default;
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "line",
5
+ "scatterStyle": "lineMarker",
6
+ "grouping": "stacked"
7
+ }
8
+ }
9
+ };
10
+
11
+ export default _default;
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "line",
5
+ "scatterStyle": "lineMarker",
6
+ "grouping": "percentStacked"
7
+ }
8
+ }
9
+ };
10
+
11
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "line",
5
+ "grouping": "percentStacked"
6
+ }
7
+ }
8
+ };
9
+
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "line",
5
+ "grouping": "stacked"
6
+ }
7
+ }
8
+ };
9
+
10
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "line"
5
+ }
6
+ }
7
+ };
8
+
9
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "pie",
5
+ "holeSize": 50
6
+ }
7
+ }
8
+ };
9
+
10
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "pie"
5
+ }
6
+ }
7
+ };
8
+
9
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ "types": {
3
+ "0": {
4
+ "type": "scatter",
5
+ "scatterStyle": "smoothMarker"
6
+ }
7
+ }
8
+ };
9
+
10
+ export default _default;