caplink-saas-ui-shared-component-library 0.4.1 → 0.4.3

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.
@@ -34,18 +34,18 @@ export declare function getPoint<T>(params: {
34
34
  /** Checks if the source and target point are equal */
35
35
  export declare function isSamePoint(source: Point, target: Point): boolean;
36
36
  /** Returns whether given point exists in given range */
37
- export declare function hasPointInRange(pointRange: PointRange, point: Point): boolean;
37
+ export declare function hasPointInRange(pointsRange: PointRange[], point: Point): boolean;
38
38
  /** Determines whether all columns are selected */
39
39
  export declare function hasEntireColumns(params: {
40
40
  matrix: Matrix<unknown>;
41
- pointRange: PointRange;
42
- }): boolean;
41
+ pointsRange: PointRange[];
42
+ }): true | undefined;
43
43
  /** Determines which row is entirely selected in given selection */
44
44
  export declare function hasEntireRows(params: {
45
45
  matrix: Matrix<unknown>;
46
- pointRange: PointRange;
46
+ pointsRange: PointRange[];
47
47
  row: number;
48
- }): boolean;
48
+ }): false | undefined;
49
49
  /** Converts string value into an matrix */
50
50
  export declare function parseString(value: string): Matrix<unknown>;
51
51
  /**
@@ -60,6 +60,7 @@ export type DataEditor = {
60
60
  export type DataViewer = {
61
61
  width: number;
62
62
  mode: Mode;
63
+ setMode?: (mode: Mode) => void;
63
64
  /** Data viewer current value */
64
65
  value?: unknown;
65
66
  column: Column;
@@ -140,8 +141,8 @@ export type Context = {
140
141
  hasSomeEntireRow?: boolean;
141
142
  /** Whether last row is highlighted */
142
143
  highlightLastRow?: boolean;
143
- pointRange: Matrix.PointRange | null;
144
- setPointRange: (pointRange: Matrix.PointRange | null) => void;
144
+ pointsRange: Matrix.PointRange[];
145
+ setPointsRange: (pointRange: Matrix.PointRange[]) => void;
145
146
  containerDimensions: Dimensions;
146
147
  setContainerDimensions: (dimensions: Dimensions) => void;
147
148
  onPaste: (point: Matrix.Point, event: ClipboardEvent) => void;