handsontable 0.0.0-next-afbc65f-20231215 → 0.0.0-next-250dc75-20231218

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of handsontable might be problematic. Click here for more details.

package/helpers/mixed.js CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
134
134
  function _injectProductInfo(key, element) {
135
135
  const hasValidType = !isEmpty(key);
136
136
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
137
- const hotVersion = "0.0.0-next-afbc65f-20231215";
137
+ const hotVersion = "0.0.0-next-250dc75-20231218";
138
138
  let keyValidityDate;
139
139
  let consoleMessageState = 'invalid';
140
140
  let domMessageState = 'invalid';
package/helpers/mixed.mjs CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
124
124
  export function _injectProductInfo(key, element) {
125
125
  const hasValidType = !isEmpty(key);
126
126
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
127
- const hotVersion = "0.0.0-next-afbc65f-20231215";
127
+ const hotVersion = "0.0.0-next-250dc75-20231218";
128
128
  let keyValidityDate;
129
129
  let consoleMessageState = 'invalid';
130
130
  let domMessageState = 'invalid';
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/handsontable/handsontable/issues"
11
11
  },
12
12
  "author": "Handsoncode <hello@handsontable.com>",
13
- "version": "0.0.0-next-afbc65f-20231215",
13
+ "version": "0.0.0-next-250dc75-20231218",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
@@ -1,3 +1,4 @@
1
+ import CellRange from '../../3rdparty/walkontable/src/cell/range';
1
2
  import Core from '../../core';
2
3
  import { BasePlugin } from '../base';
3
4
  import { SimpleCellCoords } from "../../common";
@@ -13,6 +14,14 @@ export interface BorderRange {
13
14
  to: SimpleCellCoords;
14
15
  };
15
16
  }
17
+ export interface BorderDescriptor {
18
+ start?: BorderOptions;
19
+ end?: BorderOptions;
20
+ left?: BorderOptions;
21
+ right?: BorderOptions;
22
+ top?: BorderOptions;
23
+ bottom?: BorderOptions;
24
+ }
16
25
  export type DetailedSettings = (SimpleCellCoords | BorderRange) & {
17
26
  start?: BorderOptions | string;
18
27
  end?: BorderOptions | string;
@@ -24,17 +33,17 @@ export type DetailedSettings = (SimpleCellCoords | BorderRange) & {
24
33
 
25
34
  export type Settings = boolean | DetailedSettings[];
26
35
 
27
- export interface RangeType {
28
- startRow: number;
29
- startCol: number;
30
- endRow: number;
31
- endCol: number;
36
+ export interface ComputedBorder extends BorderDescriptor {
37
+ id: string;
38
+ row: number;
39
+ col: number;
40
+ border?: BorderOptions;
32
41
  }
33
42
 
34
43
  export class CustomBorders extends BasePlugin {
35
44
  constructor(hotInstance: Core);
36
45
  isEnabled(): boolean;
37
- setBorders(selectionRanges: RangeType[][] | Array<[number, number, number, number]>, borderObject: object): void;
38
- getBorders(selectionRanges: RangeType[][] | Array<[number, number, number, number]>): Array<[object]>;
39
- clearBorders(selectionRanges: RangeType[][] | Array<[number, number, number, number]>): void;
46
+ setBorders(selectionRanges: CellRange[] | Array<[number, number, number, number]>, borderObject: BorderDescriptor): void;
47
+ getBorders(selectionRanges?: CellRange[] | Array<[number, number, number, number]>): ComputedBorder[];
48
+ clearBorders(selectionRanges?: CellRange[] | Array<[number, number, number, number]>): void;
40
49
  }
@@ -12,6 +12,7 @@ export interface HyperFormulaSettings extends Partial<ConfigParams> {
12
12
  }
13
13
  export interface DetailedSettings {
14
14
  engine: typeof HyperFormula | HyperFormula | HyperFormulaSettings;
15
+ sheetName?: string;
15
16
  }
16
17
 
17
18
  export type Settings = DetailedSettings;
package/tableView.js CHANGED
@@ -345,7 +345,7 @@ class TableView {
345
345
  }
346
346
  _classPrivateFieldSet(this, _mouseDown, false);
347
347
  const isOutsideInputElement = (0, _element.isOutsideInput)(rootDocument.activeElement);
348
- if (!isOutsideInputElement) {
348
+ if ((0, _element.isInput)(rootDocument.activeElement) && !isOutsideInputElement) {
349
349
  return;
350
350
  }
351
351
  if (isOutsideInputElement || !selection.isSelected() && !selection.isSelectedByAnyHeader() && !rootElement.contains(event.target) && !(0, _event.isRightClick)(event)) {
package/tableView.mjs CHANGED
@@ -341,7 +341,7 @@ class TableView {
341
341
  }
342
342
  _classPrivateFieldSet(this, _mouseDown, false);
343
343
  const isOutsideInputElement = isOutsideInput(rootDocument.activeElement);
344
- if (!isOutsideInputElement) {
344
+ if (isInput(rootDocument.activeElement) && !isOutsideInputElement) {
345
345
  return;
346
346
  }
347
347
  if (isOutsideInputElement || !selection.isSelected() && !selection.isSelectedByAnyHeader() && !rootElement.contains(event.target) && !isRightClick(event)) {