@sheetxl/react 0.8.0-beta.17 → 0.8.0-beta.19
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/{9YeNE9FbgAbj-kFJ.mjs → 0i5npOCRbbj7n8AX.mjs} +1 -1
- package/browser/esm/{BxmM4_1EU7z1fS8J.mjs → 6KVLDn6fk3Lwk3W0.mjs} +6 -6
- package/browser/esm/{B7yfrZvX62qlpS-V.mjs → BFBIk0dXMPBtSHGB.mjs} +1 -1
- package/browser/esm/{-mdWrNwKPMBQbhpW.mjs → BMZ6O7J3XnUMlQJ5.mjs} +2 -2
- package/browser/esm/{B9r44M1lVTxnLqBb.mjs → BMl3t5nAS8wea8ia.mjs} +1 -1
- package/browser/esm/{B0tm14veV7VbqCXF.mjs → BR8he3r4FlfNbM5Y.mjs} +1 -1
- package/browser/esm/{NUXuZQHZmiYexulZ.mjs → BWCG8Jc6oF3jzfFk.mjs} +5 -5
- package/browser/esm/{BzLeA0HlYOPeNbAo.mjs → B_PNL36bd0h74iJo.mjs} +4 -4
- package/browser/esm/{CmDfYf-7BEMQKyqH.mjs → BcTcL2e5NjgL1j-k.mjs} +1 -1
- package/browser/esm/{Dm5_yXkbckf2odQK.mjs → BiyB416KncWj7-2t.mjs} +3 -3
- package/browser/esm/BpEap6qV7SAhbiMg.mjs +78 -0
- package/browser/esm/{Ip8RHzHhXWuXTW8Z.mjs → By-Xfu2c6LLIWg-G.mjs} +6 -6
- package/browser/esm/{DQ7lWEbxzkSksQvK.mjs → C8CBCqCUydGXhIco.mjs} +2 -2
- package/browser/esm/{qmxmy7tirF1as3Xs.mjs → CEIulpO2M6bY6Hgq.mjs} +1 -1
- package/browser/esm/{Z57bAJBcfLMsZG74.mjs → CJxA4mQkgsRg8ejK.mjs} +3 -3
- package/browser/esm/{DmIj68EaqzbpmhGu.mjs → CSsytd3vgnhi7AMm.mjs} +1 -1
- package/browser/esm/CTFVB5vQl5dFo1zd.mjs +14092 -0
- package/browser/esm/{CWZ7Dx5SBWu4aU9Z.mjs → C_OaCmryR0Nc4vfH.mjs} +1 -1
- package/browser/esm/{CYEzd5w4p9LRScYN.mjs → D7Kvnl4-FdEGuadk.mjs} +1 -1
- package/browser/esm/{BeVkpREgRD5DVvqq.mjs → DOuAxKNRVl3p4oUg.mjs} +1 -1
- package/browser/esm/{B1rrVGz1PwKbTLA2.mjs → DZT2k-wAR3bBFQhh.mjs} +1 -1
- package/browser/esm/{CNv5ABj97zChkI-j.mjs → Dce_lDRjVEpn-4Gj.mjs} +1 -1
- package/browser/esm/DrYGRymc8k3JZBZu.mjs +9560 -0
- package/browser/esm/{E7Yhe921O7ju1JLF.mjs → cKu0KgwuR2qIeUnu.mjs} +1 -1
- package/browser/esm/chart.mjs +3 -3
- package/browser/esm/control.mjs +2 -2
- package/browser/esm/group.mjs +3 -3
- package/browser/esm/index.mjs +5741 -3965
- package/browser/esm/note.mjs +4 -4
- package/browser/esm/picture.mjs +2 -2
- package/browser/esm/shape.mjs +2 -2
- package/browser/esm/slicer.mjs +4 -4
- package/browser/esm/{DcFFrmHW4tX2q1az.mjs → wr_Q6qSI16PKN4hz.mjs} +3 -3
- package/licenses/dependencies.txt +347 -347
- package/node/esm/{C8lBxk7g8FU777JZ.mjs → 365x7ulQ-64LrEAY.mjs} +2 -2
- package/node/esm/{DrGBVKfXN46SccPc.mjs → 5NC4KAa0mRhqju4E.mjs} +1 -1
- package/node/esm/{D4wcZkeFJ9g3E1Wx.mjs → 7F9gtINd9IcYvclT.mjs} +1 -1
- package/node/esm/{D6T6RsUdqj-dsOrE.mjs → 9PkyqxxZGq4LpuXf.mjs} +1 -1
- package/node/esm/{BPEE8SA9ZAebcfZs.mjs → B7NgL3l0XJbyq9CG.mjs} +1 -1
- package/node/esm/{roCYJ0G69HBpAkf3.mjs → BdEX-Y0ROOf8zRce.mjs} +4 -4
- package/node/esm/{B-M8LEF1gQC4VTti.mjs → C9l2nKVgsffhreTD.mjs} +1 -1
- package/node/esm/CAbud00Api3zYMB0.mjs +80 -0
- package/node/esm/{CXe6zO8r3qcKa8eD.mjs → CRM_BM8JnHgH5kni.mjs} +1 -1
- package/node/esm/{DSA6_IsV7Vneo5Za.mjs → C_E-6lqeDHYSKGcS.mjs} +5 -5
- package/node/esm/{Cp8J0CabzCF6tfAx.mjs → CyNcgbrqDcBpNJ-N.mjs} +2 -2
- package/node/esm/{SRhq2ObYt2tWPLDG.mjs → D2fA8lJO1ZAm7rTz.mjs} +1 -1
- package/node/esm/{DQ7xw--8XAi5NYEh.mjs → D5tl-HceFOKuhUPG.mjs} +2 -2
- package/node/esm/{DdXBknb60h6u7ljS.mjs → D7jDl04btyfWjg7U.mjs} +1 -1
- package/node/esm/{BXwXN7P_JyLZbQ1F.mjs → D8MLM0vKRTMxDGC6.mjs} +1 -1
- package/node/esm/{BzAvJXwmJZ2aBZff.mjs → DQkjdt-an36XKGvV.mjs} +1 -1
- package/node/esm/{BN9TsBId0PUOF3YQ.mjs → Dg4ph4wH0DWRbx7E.mjs} +1 -1
- package/node/esm/{D1o8P8Vu5yBBWDkw.mjs → Dx0Dz6NG76-IKZ1i.mjs} +2 -2
- package/node/esm/{BLyZ6mSICbKNrNXK.mjs → UbxFnWpUxT3TQSUA.mjs} +1 -1
- package/node/esm/chart.mjs +2 -2
- package/node/esm/control.mjs +2 -2
- package/node/esm/{arYXYwcOVpS7tQUp.mjs → gqpfUtQ8Q1y4j0w3.mjs} +1 -1
- package/node/esm/group.mjs +3 -3
- package/node/esm/index.mjs +8700 -6907
- package/node/esm/note.mjs +4 -4
- package/node/esm/picture.mjs +5 -5
- package/node/esm/shape.mjs +6 -6
- package/node/esm/{DOmvQX0Ox-3oN9aN.mjs → skitA3Vys5WjKQnm.mjs} +1 -1
- package/node/esm/slicer.mjs +4 -4
- package/package.json +7 -7
- package/resources/contents.json +6 -0
- package/resources/locales/contents.json +14 -0
- package/resources/locales/de/pivot.cmd.json +1 -1
- package/resources/locales/de/sheet.cmd.json +46 -5
- package/resources/locales/de/sparkline.cmd.json +301 -0
- package/resources/locales/de/ui.msg.json +37 -0
- package/resources/locales/de/workbook.cmd.json +0 -5
- package/resources/locales/en/pivot.cmd.json +1 -1
- package/resources/locales/en/sheet.cmd.json +46 -5
- package/resources/locales/en/sparkline.cmd.json +301 -0
- package/resources/locales/en/ui.msg.json +37 -0
- package/resources/locales/en/workbook.cmd.json +0 -5
- package/types/src/annotation/RangeAnnotationLayer.d.ts +110 -0
- package/types/src/annotation/RangeAnnotationTag.d.ts +23 -0
- package/types/src/annotation/RangeAnnotations.d.ts +67 -6
- package/types/src/annotation/index.d.ts +2 -0
- package/types/src/editor/VirtualKeyboardLayer.d.ts +2 -1
- package/types/src/frame/CommandContext.d.ts +16 -1
- package/types/src/index.d.ts +3 -3
- package/types/src/layer/CommentCardLayer.d.ts +1 -1
- package/types/src/layer/SheetLayers.d.ts +57 -1
- package/types/src/layer/SheetSparklineCommandLayer.d.ts +14 -0
- package/types/src/layer/SparklineLayer.d.ts +32 -0
- package/types/src/layer/index.d.ts +2 -1
- package/types/src/movable/MovableCommandGroups.d.ts +0 -18
- package/types/src/pivot/PivotTablePane.d.ts +0 -2
- package/types/src/presence/PresenceCommands.d.ts +35 -0
- package/types/src/presence/PresenceHost.d.ts +58 -0
- package/types/src/presence/PresenceMessages.d.ts +42 -0
- package/types/src/presence/PresenceStore.d.ts +165 -0
- package/types/src/presence/PresenceTypes.d.ts +78 -0
- package/types/src/presence/index.d.ts +7 -0
- package/types/src/presence/usePresence.d.ts +20 -0
- package/types/src/sparkline/PictureCache.d.ts +37 -0
- package/types/src/sparkline/SparklineCommands.d.ts +23 -0
- package/types/src/sparkline/SparklinePictures.d.ts +7 -0
- package/types/src/sparkline/paint/_drawing.d.ts +24 -0
- package/types/src/sparkline/paint/echarts.d.ts +8 -0
- package/types/src/sparkline/paint/index.d.ts +8 -0
- package/types/src/taskPane/CellControlPane.d.ts +0 -2
- package/types/src/taskPane/MovablePane.d.ts +0 -2
- package/types/src/taskPane/TaskPaneFrame.d.ts +4 -4
- package/types/src/taskPane/TaskPaneKeys.d.ts +38 -0
- package/types/src/taskPane/TaskPaneRegistry.d.ts +32 -12
- package/types/src/taskPane/_paneReasons.d.ts +7 -0
- package/types/src/taskPane/index.d.ts +1 -0
- package/types/src/theme/ThemeState.d.ts +2 -2
- package/types/src/theme/useGridColorScheme.d.ts +1 -1
- package/types/src/workbook/IWorkbookElement.d.ts +3 -1
- package/types/src/workbook/WorkbookCommands.d.ts +6 -1
- package/browser/esm/CWwumtsC8-1gwMAu.mjs +0 -23561
- package/types/src/layer/RangeAnnotationLayer.d.ts +0 -71
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IWorksheet, IWorkbook } from '@sheetxl/sdk';
|
|
3
|
-
import { LayerProps, StickyState } from '@sheetxl/grid-react';
|
|
4
|
-
import { RangeAnnotation } from '../annotation';
|
|
5
|
-
/** How an intent is drawn: its box, and the chip's frame. */
|
|
6
|
-
export interface RangeAnnotationStyle {
|
|
7
|
-
/** The box border (and the chip's frame). */
|
|
8
|
-
border: string;
|
|
9
|
-
/** The box fill — translucent, the cells show through. */
|
|
10
|
-
fill: string;
|
|
11
|
-
/** The chip's frame — opaque; a chip reads by z-order, never by letting what is under it show through. */
|
|
12
|
-
chip: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The default look per intent. Deliberately flatter than the selection (no thick, handled border,
|
|
16
|
-
* which reads as "draggable"): a soft fill and a thin border.
|
|
17
|
-
*/
|
|
18
|
-
export declare const DEFAULT_ANNOTATION_STYLES: Readonly<Record<string, RangeAnnotationStyle>>;
|
|
19
|
-
/** What a chip (or its out-of-view marker) is rendered from. */
|
|
20
|
-
export interface RangeAnnotationChipProps {
|
|
21
|
-
workbook: IWorkbook;
|
|
22
|
-
/** The annotation the chip stands for — the current one of its group when it is among them. */
|
|
23
|
-
annotation: RangeAnnotation;
|
|
24
|
-
/** Others sharing this chip's anchor cell. */
|
|
25
|
-
more: number;
|
|
26
|
-
/** 1-based position in the walked list; `0` for a `working` annotation. */
|
|
27
|
-
position: number;
|
|
28
|
-
/** How many are walked. */
|
|
29
|
-
total: number;
|
|
30
|
-
isCurrent: boolean;
|
|
31
|
-
style: RangeAnnotationStyle;
|
|
32
|
-
/** The float's resolved state (`slid`, `outOfView`, `scrollIntoView`, …). */
|
|
33
|
-
state: StickyState;
|
|
34
|
-
}
|
|
35
|
-
export interface RangeAnnotationLayerProps extends Omit<LayerProps, 'children'> {
|
|
36
|
-
/** The sheet whose annotations are drawn. @defaultValue the sheet in context (an injected layer needs none) */
|
|
37
|
-
sheet?: IWorksheet;
|
|
38
|
-
/** Per-intent look. Merged over {@link DEFAULT_ANNOTATION_STYLES}. */
|
|
39
|
-
styles?: Readonly<Record<string, RangeAnnotationStyle>>;
|
|
40
|
-
/** Render the chip beside an annotation that is in view. Omit for the default. */
|
|
41
|
-
renderChip?: (props: RangeAnnotationChipProps) => React.ReactNode;
|
|
42
|
-
/** Render the marker that stands in for a chip whose range is scrolled out of view. Omit for the default. */
|
|
43
|
-
renderMarker?: (props: RangeAnnotationChipProps) => React.ReactNode;
|
|
44
|
-
/** How much a box that is not the navigator's current one fades. Boxes only — never chips. @defaultValue 0.45 */
|
|
45
|
-
dimOpacity?: number;
|
|
46
|
-
/**
|
|
47
|
-
* Whether an annotation gets a chip (and, scrolled off, a marker) or is drawn as its box alone —
|
|
48
|
-
* for a host that shows some annotations elsewhere (an agent's cursor, in its own status control).
|
|
49
|
-
* @defaultValue every walked annotation, and a `working` one only when it has a label
|
|
50
|
-
*/
|
|
51
|
-
showChip?: (annotation: RangeAnnotation) => boolean;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* The workbook's range annotations on this sheet: a soft box per annotation, and a chip per anchor
|
|
55
|
-
* cell. The chip rides a {@link StickyPortal} with `whenOff: 'clamp'`, so when its range scrolls out
|
|
56
|
-
* of view it stays at the edge as a small marker (the position, an arrow toward the range; click
|
|
57
|
-
* reveals it) instead of vanishing.
|
|
58
|
-
*
|
|
59
|
-
* @remarks
|
|
60
|
-
* The navigator's current annotation draws last (on top) at full strength; the others dim. That is
|
|
61
|
-
* what keeps overlapping annotations legible. Hovering a chip lifts it — and its boxes — above the
|
|
62
|
-
* current one while the pointer stays, so a chip hidden under another can be read and reached. Annotations that share a top-left cell share one chip —
|
|
63
|
-
* the current one's if it is among them — with a `+N` for the rest, so chips never stack.
|
|
64
|
-
*
|
|
65
|
-
* A prebuilt layer, not part of the sheet's default stack: a host that shows annotations injects it
|
|
66
|
-
* through the sheet's `layers` (`propsSheet={{ layers: [<RangeAnnotationLayer key="annotations" />] }}`
|
|
67
|
-
* on a workbook element). It reads the sheet from context and draws nothing while the workbook has no
|
|
68
|
-
* annotations. Fed through {@link addRangeAnnotations}.
|
|
69
|
-
*/
|
|
70
|
-
export declare const RangeAnnotationLayer: React.MemoExoticComponent<(props: RangeAnnotationLayerProps) => React.JSX.Element>;
|
|
71
|
-
//# sourceMappingURL=RangeAnnotationLayer.d.ts.map
|