@sheetxl/grid-react 0.8.0-beta.6 → 0.8.0-beta.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/grid-react",
3
3
  "description": "Grid React - Advanced grid component for React",
4
- "version": "0.8.0-beta.6",
4
+ "version": "0.8.0-beta.9",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -42,8 +42,8 @@
42
42
  ],
43
43
  "dependencies": {
44
44
  "@floating-ui/react-dom": "^2.1.9",
45
- "@sheetxl/utils": "^0.8.0-beta.6",
46
- "@sheetxl/utils-react": "^0.8.0-beta.6",
45
+ "@sheetxl/utils": "^0.8.0-beta.9",
46
+ "@sheetxl/utils-react": "^0.8.0-beta.9",
47
47
  "clsx": "^2.1.1",
48
48
  "react-merge-refs": "^3.0.2",
49
49
  "react-use": "^17.6.1",
@@ -34,6 +34,11 @@ export interface RangeFloatTarget<T = unknown> {
34
34
  * Defaults to the layer's {@link RangeFloatLayerProps.placement}.
35
35
  */
36
36
  placement?: GridPlacement;
37
+ /**
38
+ * Offset (px) along the edge for this target, for a layer whose offset depends on the anchor (e.g.
39
+ * a fraction of its width). Defaults to the layer's {@link RangeFloatLayerProps.alignOffset}.
40
+ */
41
+ alignOffset?: number;
37
42
  }
38
43
  /** The context passed to a {@link RangeFloatLayerProps} render-prop. */
39
44
  export interface RangeFloatRender<T = unknown> {
@@ -20,6 +20,11 @@ export interface CheckboxListProps extends React.HTMLAttributes<HTMLDivElement>
20
20
  itemCount: number;
21
21
  /** Whether the item at `index` is checked. */
22
22
  isChecked: (index: number) => boolean;
23
+ /**
24
+ * Whether the item at `index` is partly checked: a row standing for several values (a group)
25
+ * with some of them checked. Drawn as the tri-state; the row still toggles to `!isChecked`.
26
+ */
27
+ isIndeterminate?: (index: number) => boolean;
23
28
  /**
24
29
  * Set `indices` to `checked`. Called with a single index on a click, every selected row on a keyboard
25
30
  * toggle (Space/Enter), and every row from `(Select All)`. The caller maps `index` to its own store.