handsontable 0.0.0-next-43b9ea1-20240520 → 0.0.0-next-e898184-20240520
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/3rdparty/walkontable/src/overlay/inlineStart.js +19 -13
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +19 -13
- package/3rdparty/walkontable/src/overlay/top.js +10 -6
- package/3rdparty/walkontable/src/overlay/top.mjs +10 -6
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +38 -26
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +5 -5
- package/dist/handsontable.js +38 -26
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +5 -5
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/contextMenu/contextMenu.d.ts +1 -1
- package/plugins/formulas/formulas.d.ts +10 -0
- package/plugins/formulas/formulas.js +4 -2
- package/plugins/formulas/formulas.mjs +4 -2
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-
|
137
|
+
const hotVersion = "0.0.0-next-e898184-20240520";
|
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-
|
127
|
+
const hotVersion = "0.0.0-next-e898184-20240520";
|
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-
|
13
|
+
"version": "0.0.0-next-e898184-20240520",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
@@ -2,17 +2,27 @@ import {
|
|
2
2
|
CellType as HyperFormulaCellType,
|
3
3
|
ConfigParams,
|
4
4
|
HyperFormula,
|
5
|
+
RawCellContent,
|
6
|
+
NamedExpressionOptions,
|
5
7
|
} from 'hyperformula';
|
6
8
|
import Core from '../../core';
|
7
9
|
import { CellValue } from '../../common';
|
8
10
|
import { BasePlugin } from '../base';
|
9
11
|
|
12
|
+
type NamedExpressions = {
|
13
|
+
name: string;
|
14
|
+
expression: RawCellContent;
|
15
|
+
scope?: number;
|
16
|
+
options?: NamedExpressionOptions;
|
17
|
+
}
|
18
|
+
|
10
19
|
export interface HyperFormulaSettings extends Partial<ConfigParams> {
|
11
20
|
hyperformula: typeof HyperFormula | HyperFormula;
|
12
21
|
}
|
13
22
|
export interface DetailedSettings {
|
14
23
|
engine: typeof HyperFormula | HyperFormula | HyperFormulaSettings;
|
15
24
|
sheetName?: string;
|
25
|
+
namedExpressions?: NamedExpressions[],
|
16
26
|
}
|
17
27
|
|
18
28
|
export type Settings = DetailedSettings;
|
@@ -1134,7 +1134,8 @@ function _onAfterRemoveRow(row, amount, physicalRows, source) {
|
|
1134
1134
|
if (isBlockedSource(source)) {
|
1135
1135
|
return;
|
1136
1136
|
}
|
1137
|
-
const descendingHfRows = this.rowAxisSyncer.getRemovedHfIndexes().sort(
|
1137
|
+
const descendingHfRows = this.rowAxisSyncer.getRemovedHfIndexes().sort((a, b) => b - a); // sort numeric values descending
|
1138
|
+
|
1138
1139
|
const changes = this.engine.batch(() => {
|
1139
1140
|
descendingHfRows.forEach(hfRow => {
|
1140
1141
|
this.engine.removeRows(this.sheetId, [hfRow, 1]);
|
@@ -1155,7 +1156,8 @@ function _onAfterRemoveCol(col, amount, physicalColumns, source) {
|
|
1155
1156
|
if (isBlockedSource(source)) {
|
1156
1157
|
return;
|
1157
1158
|
}
|
1158
|
-
const descendingHfColumns = this.columnAxisSyncer.getRemovedHfIndexes().sort(
|
1159
|
+
const descendingHfColumns = this.columnAxisSyncer.getRemovedHfIndexes().sort((a, b) => b - a); // sort numeric values descending
|
1160
|
+
|
1159
1161
|
const changes = this.engine.batch(() => {
|
1160
1162
|
descendingHfColumns.forEach(hfColumn => {
|
1161
1163
|
this.engine.removeColumns(this.sheetId, [hfColumn, 1]);
|
@@ -1129,7 +1129,8 @@ function _onAfterRemoveRow(row, amount, physicalRows, source) {
|
|
1129
1129
|
if (isBlockedSource(source)) {
|
1130
1130
|
return;
|
1131
1131
|
}
|
1132
|
-
const descendingHfRows = this.rowAxisSyncer.getRemovedHfIndexes().sort(
|
1132
|
+
const descendingHfRows = this.rowAxisSyncer.getRemovedHfIndexes().sort((a, b) => b - a); // sort numeric values descending
|
1133
|
+
|
1133
1134
|
const changes = this.engine.batch(() => {
|
1134
1135
|
descendingHfRows.forEach(hfRow => {
|
1135
1136
|
this.engine.removeRows(this.sheetId, [hfRow, 1]);
|
@@ -1150,7 +1151,8 @@ function _onAfterRemoveCol(col, amount, physicalColumns, source) {
|
|
1150
1151
|
if (isBlockedSource(source)) {
|
1151
1152
|
return;
|
1152
1153
|
}
|
1153
|
-
const descendingHfColumns = this.columnAxisSyncer.getRemovedHfIndexes().sort(
|
1154
|
+
const descendingHfColumns = this.columnAxisSyncer.getRemovedHfIndexes().sort((a, b) => b - a); // sort numeric values descending
|
1155
|
+
|
1154
1156
|
const changes = this.engine.batch(() => {
|
1155
1157
|
descendingHfColumns.forEach(hfColumn => {
|
1156
1158
|
this.engine.removeColumns(this.sheetId, [hfColumn, 1]);
|