sheet-happens 0.0.36 → 0.0.38

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.
@@ -21,7 +21,10 @@ export declare const COLORS: {
21
21
  headerActive: string;
22
22
  headerActiveText: string;
23
23
  headerSelected: string;
24
+ headerSelectedGroup: string;
24
25
  headerSelectedText: string;
26
+ headerSelectedGroupText: string;
27
+ shadowColor: string;
25
28
  };
26
29
  export declare const SIZES: {
27
30
  knobArea: number;
@@ -32,6 +35,8 @@ export declare const SIZES: {
32
35
  resizeZone: number;
33
36
  scrollZone: number;
34
37
  scrollSpeed: number;
38
+ shadowBlur: number;
39
+ shadowOpacity: number;
35
40
  };
36
41
  export declare const DEFAULT_CELL_STYLE: Required<Style>;
37
42
  export declare const DEFAULT_COLUMN_HEADER_STYLE: Required<Style>;
@@ -42,4 +47,8 @@ export declare const HEADER_SELECTED_STYLE: {
42
47
  backgroundColor: string;
43
48
  color: string;
44
49
  };
50
+ export declare const HEADER_GROUP_SELECTED_STYLE: {
51
+ backgroundColor: string;
52
+ color: string;
53
+ };
45
54
  export declare const ARROW_KEYS: Record<string, Direction>;
@@ -8,6 +8,11 @@ export declare const clampXY: (p: XY, min: XY, max?: XY) => XY;
8
8
  export declare const getDirectionStep: (direction: string) => XY;
9
9
  export declare const isSameXY: (a: XY, b: XY) => boolean;
10
10
  export declare const isSameSelection: (a: Rectangle, b: Rectangle) => boolean;
11
+ export declare const forRange: (min: number, max: number, callback: (i: number) => void) => void;
12
+ export declare const forSelectionColumns: (selection: Rectangle) => (callback: (i: number) => void) => void;
13
+ export declare const forSelectionRows: (selection: Rectangle) => (callback: (i: number) => void) => void;
14
+ export declare const mapSelectionColumns: (selection: Rectangle) => <B>(map: (i: number) => B) => B[];
15
+ export declare const mapSelectionRows: (selection: Rectangle) => <B>(map: (i: number) => B) => B[];
11
16
  export declare const isMaybeRowSelection: (selection: Rectangle) => boolean;
12
17
  export declare const isMaybeColumnSelection: (selection: Rectangle) => boolean;
13
18
  export declare const isRowSelection: (selection: Rectangle) => boolean;
@@ -15,4 +20,6 @@ export declare const isColumnSelection: (selection: Rectangle) => boolean;
15
20
  export declare const isCellSelection: (selection: Rectangle) => boolean;
16
21
  export declare const isEmptySelection: (selection: Rectangle) => boolean;
17
22
  export declare const isPointInsideSelection: (selection: Rectangle, point: XY) => boolean;
23
+ export declare const validateSelection: (selection: Rectangle) => Rectangle;
18
24
  export declare const normalizeSelection: (selection: Rectangle) => Rectangle;
25
+ export declare const orientSelection: (normalized: Rectangle, to: Rectangle) => Rectangle;
@@ -0,0 +1,3 @@
1
+ import { Rectangle, RowOrColumnPropertyFunction } from './types';
2
+ export declare const expandSelectionToRowOrColumnGroups: (selection: Rectangle, groupKeys: RowOrColumnPropertyFunction<string | number | null>, matchKeys: Set<string | number | null> | null, coordinate: number) => Rectangle;
3
+ export declare const isBoundaryInsideGroup: (index: number, groupKeys: RowOrColumnPropertyFunction<string | number | null>) => boolean;
package/dist/index.css CHANGED
@@ -1,18 +1,21 @@
1
1
  ._PxIi8::-webkit-scrollbar {
2
- -webkit-appearance: none;
2
+ -webkit-appearance: none;
3
3
  }
4
4
  ._PxIi8::-webkit-scrollbar:vertical {
5
- width: 13px;
5
+ width: 13px;
6
6
  }
7
7
  ._PxIi8::-webkit-scrollbar:horizontal {
8
- height: 13px;
8
+ height: 13px;
9
+ }
10
+ ._PxIi8::-webkit-scrollbar-corner {
11
+ background: #fff;
9
12
  }
10
13
  ._PxIi8::-webkit-scrollbar-thumb {
11
- border-radius: 8px;
12
- background-color: #c1c1c1;
13
- border: 2px solid #fff;
14
+ border-radius: 8px;
15
+ background-color: #c1c1c1;
16
+ border: 2px solid #fff;
14
17
  }
15
18
  ._PxIi8::-webkit-scrollbar-track {
16
- background-color: #fff;
17
- border-radius: 0px;
18
- }
19
+ background-color: #fff;
20
+ border-radius: 0px;
21
+ }