handsontable 0.0.0-next-b6c1230-20240508 → 0.0.0-next-f8a55a6-20240510
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/base.js +2 -2
- package/base.mjs +2 -2
- package/core.js +26 -18
- package/core.mjs +26 -18
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +31 -23
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +3 -3
- package/dist/handsontable.js +31 -23
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +3 -3
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
package/base.js
CHANGED
@@ -45,8 +45,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
|
|
45
45
|
Handsontable.CellCoords = _src.CellCoords;
|
46
46
|
Handsontable.CellRange = _src.CellRange;
|
47
47
|
Handsontable.packageName = 'handsontable';
|
48
|
-
Handsontable.buildDate = "
|
49
|
-
Handsontable.version = "0.0.0-next-
|
48
|
+
Handsontable.buildDate = "10/05/2024 13:13:56";
|
49
|
+
Handsontable.version = "0.0.0-next-f8a55a6-20240510";
|
50
50
|
Handsontable.languages = {
|
51
51
|
dictionaryKeys: _registry.dictionaryKeys,
|
52
52
|
getLanguageDictionary: _registry.getLanguageDictionary,
|
package/base.mjs
CHANGED
@@ -35,8 +35,8 @@ Handsontable.hooks = Hooks.getSingleton();
|
|
35
35
|
Handsontable.CellCoords = CellCoords;
|
36
36
|
Handsontable.CellRange = CellRange;
|
37
37
|
Handsontable.packageName = 'handsontable';
|
38
|
-
Handsontable.buildDate = "
|
39
|
-
Handsontable.version = "0.0.0-next-
|
38
|
+
Handsontable.buildDate = "10/05/2024 13:14:02";
|
39
|
+
Handsontable.version = "0.0.0-next-f8a55a6-20240510";
|
40
40
|
Handsontable.languages = {
|
41
41
|
dictionaryKeys,
|
42
42
|
getLanguageDictionary,
|
package/core.js
CHANGED
@@ -583,6 +583,14 @@ function Core(rootElement, userSettings) {
|
|
583
583
|
// Remove from the stack the last added selection as that selection below will be
|
584
584
|
// replaced by new transformed selection.
|
585
585
|
selection.getSelectedRange().pop();
|
586
|
+
instance.addHookOnce('afterSelection', function () {
|
587
|
+
for (var _len16 = arguments.length, _ref5 = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
|
588
|
+
_ref5[_key16] = arguments[_key16];
|
589
|
+
}
|
590
|
+
let [,,,, preventScrolling] = _ref5;
|
591
|
+
preventScrolling.value = true;
|
592
|
+
});
|
593
|
+
|
586
594
|
// I can't use transforms as they don't work in negative indexes.
|
587
595
|
selection.setRangeStartOnly(instance._createCellCoords(currentFromRow + rowDelta, currentFromColumn), true);
|
588
596
|
selection.setRangeEnd(instance._createCellCoords(currentToRow + rowDelta, currentToColumn)); // will call render() internally
|
@@ -651,8 +659,8 @@ function Core(rootElement, userSettings) {
|
|
651
659
|
let offset = 0;
|
652
660
|
|
653
661
|
// Normalize the {index, amount} groups into bigger groups.
|
654
|
-
(0, _array.arrayEach)(indexes,
|
655
|
-
let [groupIndex, groupAmount] =
|
662
|
+
(0, _array.arrayEach)(indexes, _ref6 => {
|
663
|
+
let [groupIndex, groupAmount] = _ref6;
|
656
664
|
const calcIndex = (0, _mixed.isEmpty)(groupIndex) ? instance.countRows() - 1 : Math.max(groupIndex - offset, 0);
|
657
665
|
|
658
666
|
// If the 'index' is an integer decrease it by 'offset' otherwise pass it through to make the value
|
@@ -693,8 +701,8 @@ function Core(rootElement, userSettings) {
|
|
693
701
|
let offset = 0;
|
694
702
|
|
695
703
|
// Normalize the {index, amount} groups into bigger groups.
|
696
|
-
(0, _array.arrayEach)(indexes,
|
697
|
-
let [groupIndex, groupAmount] =
|
704
|
+
(0, _array.arrayEach)(indexes, _ref7 => {
|
705
|
+
let [groupIndex, groupAmount] = _ref7;
|
698
706
|
const calcIndex = (0, _mixed.isEmpty)(groupIndex) ? instance.countCols() - 1 : Math.max(groupIndex - offset, 0);
|
699
707
|
let physicalColumnIndex = instance.toPhysicalColumn(calcIndex);
|
700
708
|
|
@@ -1628,8 +1636,8 @@ function Core(rootElement, userSettings) {
|
|
1628
1636
|
* @returns {Array} Returns removed portion of columns.
|
1629
1637
|
*/
|
1630
1638
|
this.spliceCol = function (column, index, amount) {
|
1631
|
-
for (var
|
1632
|
-
elements[
|
1639
|
+
for (var _len17 = arguments.length, elements = new Array(_len17 > 3 ? _len17 - 3 : 0), _key17 = 3; _key17 < _len17; _key17++) {
|
1640
|
+
elements[_key17 - 3] = arguments[_key17];
|
1633
1641
|
}
|
1634
1642
|
return datamap.spliceCol(column, index, amount, ...elements);
|
1635
1643
|
};
|
@@ -1646,8 +1654,8 @@ function Core(rootElement, userSettings) {
|
|
1646
1654
|
* @returns {Array} Returns removed portion of rows.
|
1647
1655
|
*/
|
1648
1656
|
this.spliceRow = function (row, index, amount) {
|
1649
|
-
for (var
|
1650
|
-
elements[
|
1657
|
+
for (var _len18 = arguments.length, elements = new Array(_len18 > 3 ? _len18 - 3 : 0), _key18 = 3; _key18 < _len18; _key18++) {
|
1658
|
+
elements[_key18 - 3] = arguments[_key18];
|
1651
1659
|
}
|
1652
1660
|
return datamap.spliceRow(row, index, amount, ...elements);
|
1653
1661
|
};
|
@@ -1668,11 +1676,11 @@ function Core(rootElement, userSettings) {
|
|
1668
1676
|
this.getSelected = function () {
|
1669
1677
|
// https://github.com/handsontable/handsontable/issues/44 //cjl
|
1670
1678
|
if (selection.isSelected()) {
|
1671
|
-
return (0, _array.arrayMap)(selection.getSelectedRange(),
|
1679
|
+
return (0, _array.arrayMap)(selection.getSelectedRange(), _ref8 => {
|
1672
1680
|
let {
|
1673
1681
|
from,
|
1674
1682
|
to
|
1675
|
-
} =
|
1683
|
+
} = _ref8;
|
1676
1684
|
return [from.row, from.col, to.row, to.col];
|
1677
1685
|
});
|
1678
1686
|
}
|
@@ -2898,15 +2906,15 @@ function Core(rootElement, userSettings) {
|
|
2898
2906
|
const isThereAnySetSourceListener = this.hasHook('afterSetSourceDataAtCell');
|
2899
2907
|
const changesForHook = [];
|
2900
2908
|
if (isThereAnySetSourceListener) {
|
2901
|
-
(0, _array.arrayEach)(input,
|
2902
|
-
let [changeRow, changeProp, changeValue] =
|
2909
|
+
(0, _array.arrayEach)(input, _ref9 => {
|
2910
|
+
let [changeRow, changeProp, changeValue] = _ref9;
|
2903
2911
|
changesForHook.push([changeRow, changeProp, dataSource.getAtCell(changeRow, changeProp),
|
2904
2912
|
// The previous value.
|
2905
2913
|
changeValue]);
|
2906
2914
|
});
|
2907
2915
|
}
|
2908
|
-
(0, _array.arrayEach)(input,
|
2909
|
-
let [changeRow, changeProp, changeValue] =
|
2916
|
+
(0, _array.arrayEach)(input, _ref10 => {
|
2917
|
+
let [changeRow, changeProp, changeValue] = _ref10;
|
2910
2918
|
dataSource.setAtCell(changeRow, changeProp, changeValue);
|
2911
2919
|
});
|
2912
2920
|
if (isThereAnySetSourceListener) {
|
@@ -3044,8 +3052,8 @@ function Core(rootElement, userSettings) {
|
|
3044
3052
|
*/
|
3045
3053
|
this.spliceCellsMeta = function (visualIndex) {
|
3046
3054
|
let deleteAmount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
3047
|
-
for (var
|
3048
|
-
cellMetaRows[
|
3055
|
+
for (var _len19 = arguments.length, cellMetaRows = new Array(_len19 > 2 ? _len19 - 2 : 0), _key19 = 2; _key19 < _len19; _key19++) {
|
3056
|
+
cellMetaRows[_key19 - 2] = arguments[_key19];
|
3049
3057
|
}
|
3050
3058
|
if (cellMetaRows.length > 0 && !Array.isArray(cellMetaRows[0])) {
|
3051
3059
|
throw new Error('The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.');
|
@@ -4258,8 +4266,8 @@ function Core(rootElement, userSettings) {
|
|
4258
4266
|
instance.batchExecution(() => {
|
4259
4267
|
instance.rowIndexMapper.unregisterAll();
|
4260
4268
|
instance.columnIndexMapper.unregisterAll();
|
4261
|
-
pluginsRegistry.getItems().forEach(
|
4262
|
-
let [, plugin] =
|
4269
|
+
pluginsRegistry.getItems().forEach(_ref11 => {
|
4270
|
+
let [, plugin] = _ref11;
|
4263
4271
|
plugin.destroy();
|
4264
4272
|
});
|
4265
4273
|
pluginsRegistry.clear();
|
package/core.mjs
CHANGED
@@ -578,6 +578,14 @@ export default function Core(rootElement, userSettings) {
|
|
578
578
|
// Remove from the stack the last added selection as that selection below will be
|
579
579
|
// replaced by new transformed selection.
|
580
580
|
selection.getSelectedRange().pop();
|
581
|
+
instance.addHookOnce('afterSelection', function () {
|
582
|
+
for (var _len16 = arguments.length, _ref5 = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
|
583
|
+
_ref5[_key16] = arguments[_key16];
|
584
|
+
}
|
585
|
+
let [,,,, preventScrolling] = _ref5;
|
586
|
+
preventScrolling.value = true;
|
587
|
+
});
|
588
|
+
|
581
589
|
// I can't use transforms as they don't work in negative indexes.
|
582
590
|
selection.setRangeStartOnly(instance._createCellCoords(currentFromRow + rowDelta, currentFromColumn), true);
|
583
591
|
selection.setRangeEnd(instance._createCellCoords(currentToRow + rowDelta, currentToColumn)); // will call render() internally
|
@@ -646,8 +654,8 @@ export default function Core(rootElement, userSettings) {
|
|
646
654
|
let offset = 0;
|
647
655
|
|
648
656
|
// Normalize the {index, amount} groups into bigger groups.
|
649
|
-
arrayEach(indexes,
|
650
|
-
let [groupIndex, groupAmount] =
|
657
|
+
arrayEach(indexes, _ref6 => {
|
658
|
+
let [groupIndex, groupAmount] = _ref6;
|
651
659
|
const calcIndex = isEmpty(groupIndex) ? instance.countRows() - 1 : Math.max(groupIndex - offset, 0);
|
652
660
|
|
653
661
|
// If the 'index' is an integer decrease it by 'offset' otherwise pass it through to make the value
|
@@ -688,8 +696,8 @@ export default function Core(rootElement, userSettings) {
|
|
688
696
|
let offset = 0;
|
689
697
|
|
690
698
|
// Normalize the {index, amount} groups into bigger groups.
|
691
|
-
arrayEach(indexes,
|
692
|
-
let [groupIndex, groupAmount] =
|
699
|
+
arrayEach(indexes, _ref7 => {
|
700
|
+
let [groupIndex, groupAmount] = _ref7;
|
693
701
|
const calcIndex = isEmpty(groupIndex) ? instance.countCols() - 1 : Math.max(groupIndex - offset, 0);
|
694
702
|
let physicalColumnIndex = instance.toPhysicalColumn(calcIndex);
|
695
703
|
|
@@ -1623,8 +1631,8 @@ export default function Core(rootElement, userSettings) {
|
|
1623
1631
|
* @returns {Array} Returns removed portion of columns.
|
1624
1632
|
*/
|
1625
1633
|
this.spliceCol = function (column, index, amount) {
|
1626
|
-
for (var
|
1627
|
-
elements[
|
1634
|
+
for (var _len17 = arguments.length, elements = new Array(_len17 > 3 ? _len17 - 3 : 0), _key17 = 3; _key17 < _len17; _key17++) {
|
1635
|
+
elements[_key17 - 3] = arguments[_key17];
|
1628
1636
|
}
|
1629
1637
|
return datamap.spliceCol(column, index, amount, ...elements);
|
1630
1638
|
};
|
@@ -1641,8 +1649,8 @@ export default function Core(rootElement, userSettings) {
|
|
1641
1649
|
* @returns {Array} Returns removed portion of rows.
|
1642
1650
|
*/
|
1643
1651
|
this.spliceRow = function (row, index, amount) {
|
1644
|
-
for (var
|
1645
|
-
elements[
|
1652
|
+
for (var _len18 = arguments.length, elements = new Array(_len18 > 3 ? _len18 - 3 : 0), _key18 = 3; _key18 < _len18; _key18++) {
|
1653
|
+
elements[_key18 - 3] = arguments[_key18];
|
1646
1654
|
}
|
1647
1655
|
return datamap.spliceRow(row, index, amount, ...elements);
|
1648
1656
|
};
|
@@ -1663,11 +1671,11 @@ export default function Core(rootElement, userSettings) {
|
|
1663
1671
|
this.getSelected = function () {
|
1664
1672
|
// https://github.com/handsontable/handsontable/issues/44 //cjl
|
1665
1673
|
if (selection.isSelected()) {
|
1666
|
-
return arrayMap(selection.getSelectedRange(),
|
1674
|
+
return arrayMap(selection.getSelectedRange(), _ref8 => {
|
1667
1675
|
let {
|
1668
1676
|
from,
|
1669
1677
|
to
|
1670
|
-
} =
|
1678
|
+
} = _ref8;
|
1671
1679
|
return [from.row, from.col, to.row, to.col];
|
1672
1680
|
});
|
1673
1681
|
}
|
@@ -2893,15 +2901,15 @@ export default function Core(rootElement, userSettings) {
|
|
2893
2901
|
const isThereAnySetSourceListener = this.hasHook('afterSetSourceDataAtCell');
|
2894
2902
|
const changesForHook = [];
|
2895
2903
|
if (isThereAnySetSourceListener) {
|
2896
|
-
arrayEach(input,
|
2897
|
-
let [changeRow, changeProp, changeValue] =
|
2904
|
+
arrayEach(input, _ref9 => {
|
2905
|
+
let [changeRow, changeProp, changeValue] = _ref9;
|
2898
2906
|
changesForHook.push([changeRow, changeProp, dataSource.getAtCell(changeRow, changeProp),
|
2899
2907
|
// The previous value.
|
2900
2908
|
changeValue]);
|
2901
2909
|
});
|
2902
2910
|
}
|
2903
|
-
arrayEach(input,
|
2904
|
-
let [changeRow, changeProp, changeValue] =
|
2911
|
+
arrayEach(input, _ref10 => {
|
2912
|
+
let [changeRow, changeProp, changeValue] = _ref10;
|
2905
2913
|
dataSource.setAtCell(changeRow, changeProp, changeValue);
|
2906
2914
|
});
|
2907
2915
|
if (isThereAnySetSourceListener) {
|
@@ -3039,8 +3047,8 @@ export default function Core(rootElement, userSettings) {
|
|
3039
3047
|
*/
|
3040
3048
|
this.spliceCellsMeta = function (visualIndex) {
|
3041
3049
|
let deleteAmount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
3042
|
-
for (var
|
3043
|
-
cellMetaRows[
|
3050
|
+
for (var _len19 = arguments.length, cellMetaRows = new Array(_len19 > 2 ? _len19 - 2 : 0), _key19 = 2; _key19 < _len19; _key19++) {
|
3051
|
+
cellMetaRows[_key19 - 2] = arguments[_key19];
|
3044
3052
|
}
|
3045
3053
|
if (cellMetaRows.length > 0 && !Array.isArray(cellMetaRows[0])) {
|
3046
3054
|
throw new Error('The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.');
|
@@ -4253,8 +4261,8 @@ export default function Core(rootElement, userSettings) {
|
|
4253
4261
|
instance.batchExecution(() => {
|
4254
4262
|
instance.rowIndexMapper.unregisterAll();
|
4255
4263
|
instance.columnIndexMapper.unregisterAll();
|
4256
|
-
pluginsRegistry.getItems().forEach(
|
4257
|
-
let [, plugin] =
|
4264
|
+
pluginsRegistry.getItems().forEach(_ref11 => {
|
4265
|
+
let [, plugin] = _ref11;
|
4258
4266
|
plugin.destroy();
|
4259
4267
|
});
|
4260
4268
|
pluginsRegistry.clear();
|
package/dist/handsontable.css
CHANGED
@@ -25,8 +25,8 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 16/04/2024 (built at
|
28
|
+
* Version: 0.0.0-next-f8a55a6-20240510
|
29
|
+
* Release date: 16/04/2024 (built at 10/05/2024 13:14:07)
|
30
30
|
*/
|
31
31
|
/**
|
32
32
|
* Fix for bootstrap styles
|
@@ -25,8 +25,8 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 16/04/2024 (built at
|
28
|
+
* Version: 0.0.0-next-f8a55a6-20240510
|
29
|
+
* Release date: 16/04/2024 (built at 10/05/2024 13:14:07)
|
30
30
|
*/
|
31
31
|
/**
|
32
32
|
* Fix for bootstrap styles
|
@@ -25,8 +25,8 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 16/04/2024 (built at
|
28
|
+
* Version: 0.0.0-next-f8a55a6-20240510
|
29
|
+
* Release date: 16/04/2024 (built at 10/05/2024 13:14:07)
|
30
30
|
*/
|
31
31
|
(function webpackUniversalModuleDefinition(root, factory) {
|
32
32
|
if(typeof exports === 'object' && typeof module === 'object')
|
@@ -42675,8 +42675,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
|
|
42675
42675
|
Handsontable.CellCoords = _src.CellCoords;
|
42676
42676
|
Handsontable.CellRange = _src.CellRange;
|
42677
42677
|
Handsontable.packageName = 'handsontable';
|
42678
|
-
Handsontable.buildDate = "
|
42679
|
-
Handsontable.version = "0.0.0-next-
|
42678
|
+
Handsontable.buildDate = "10/05/2024 13:14:07";
|
42679
|
+
Handsontable.version = "0.0.0-next-f8a55a6-20240510";
|
42680
42680
|
Handsontable.languages = {
|
42681
42681
|
dictionaryKeys: _registry.dictionaryKeys,
|
42682
42682
|
getLanguageDictionary: _registry.getLanguageDictionary,
|
@@ -43312,6 +43312,14 @@ function Core(rootElement, userSettings) {
|
|
43312
43312
|
// Remove from the stack the last added selection as that selection below will be
|
43313
43313
|
// replaced by new transformed selection.
|
43314
43314
|
selection.getSelectedRange().pop();
|
43315
|
+
instance.addHookOnce('afterSelection', function () {
|
43316
|
+
for (var _len16 = arguments.length, _ref5 = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
|
43317
|
+
_ref5[_key16] = arguments[_key16];
|
43318
|
+
}
|
43319
|
+
let [,,,, preventScrolling] = _ref5;
|
43320
|
+
preventScrolling.value = true;
|
43321
|
+
});
|
43322
|
+
|
43315
43323
|
// I can't use transforms as they don't work in negative indexes.
|
43316
43324
|
selection.setRangeStartOnly(instance._createCellCoords(currentFromRow + rowDelta, currentFromColumn), true);
|
43317
43325
|
selection.setRangeEnd(instance._createCellCoords(currentToRow + rowDelta, currentToColumn)); // will call render() internally
|
@@ -43380,8 +43388,8 @@ function Core(rootElement, userSettings) {
|
|
43380
43388
|
let offset = 0;
|
43381
43389
|
|
43382
43390
|
// Normalize the {index, amount} groups into bigger groups.
|
43383
|
-
(0, _array.arrayEach)(indexes,
|
43384
|
-
let [groupIndex, groupAmount] =
|
43391
|
+
(0, _array.arrayEach)(indexes, _ref6 => {
|
43392
|
+
let [groupIndex, groupAmount] = _ref6;
|
43385
43393
|
const calcIndex = (0, _mixed.isEmpty)(groupIndex) ? instance.countRows() - 1 : Math.max(groupIndex - offset, 0);
|
43386
43394
|
|
43387
43395
|
// If the 'index' is an integer decrease it by 'offset' otherwise pass it through to make the value
|
@@ -43422,8 +43430,8 @@ function Core(rootElement, userSettings) {
|
|
43422
43430
|
let offset = 0;
|
43423
43431
|
|
43424
43432
|
// Normalize the {index, amount} groups into bigger groups.
|
43425
|
-
(0, _array.arrayEach)(indexes,
|
43426
|
-
let [groupIndex, groupAmount] =
|
43433
|
+
(0, _array.arrayEach)(indexes, _ref7 => {
|
43434
|
+
let [groupIndex, groupAmount] = _ref7;
|
43427
43435
|
const calcIndex = (0, _mixed.isEmpty)(groupIndex) ? instance.countCols() - 1 : Math.max(groupIndex - offset, 0);
|
43428
43436
|
let physicalColumnIndex = instance.toPhysicalColumn(calcIndex);
|
43429
43437
|
|
@@ -44357,8 +44365,8 @@ function Core(rootElement, userSettings) {
|
|
44357
44365
|
* @returns {Array} Returns removed portion of columns.
|
44358
44366
|
*/
|
44359
44367
|
this.spliceCol = function (column, index, amount) {
|
44360
|
-
for (var
|
44361
|
-
elements[
|
44368
|
+
for (var _len17 = arguments.length, elements = new Array(_len17 > 3 ? _len17 - 3 : 0), _key17 = 3; _key17 < _len17; _key17++) {
|
44369
|
+
elements[_key17 - 3] = arguments[_key17];
|
44362
44370
|
}
|
44363
44371
|
return datamap.spliceCol(column, index, amount, ...elements);
|
44364
44372
|
};
|
@@ -44375,8 +44383,8 @@ function Core(rootElement, userSettings) {
|
|
44375
44383
|
* @returns {Array} Returns removed portion of rows.
|
44376
44384
|
*/
|
44377
44385
|
this.spliceRow = function (row, index, amount) {
|
44378
|
-
for (var
|
44379
|
-
elements[
|
44386
|
+
for (var _len18 = arguments.length, elements = new Array(_len18 > 3 ? _len18 - 3 : 0), _key18 = 3; _key18 < _len18; _key18++) {
|
44387
|
+
elements[_key18 - 3] = arguments[_key18];
|
44380
44388
|
}
|
44381
44389
|
return datamap.spliceRow(row, index, amount, ...elements);
|
44382
44390
|
};
|
@@ -44397,11 +44405,11 @@ function Core(rootElement, userSettings) {
|
|
44397
44405
|
this.getSelected = function () {
|
44398
44406
|
// https://github.com/handsontable/handsontable/issues/44 //cjl
|
44399
44407
|
if (selection.isSelected()) {
|
44400
|
-
return (0, _array.arrayMap)(selection.getSelectedRange(),
|
44408
|
+
return (0, _array.arrayMap)(selection.getSelectedRange(), _ref8 => {
|
44401
44409
|
let {
|
44402
44410
|
from,
|
44403
44411
|
to
|
44404
|
-
} =
|
44412
|
+
} = _ref8;
|
44405
44413
|
return [from.row, from.col, to.row, to.col];
|
44406
44414
|
});
|
44407
44415
|
}
|
@@ -45627,15 +45635,15 @@ function Core(rootElement, userSettings) {
|
|
45627
45635
|
const isThereAnySetSourceListener = this.hasHook('afterSetSourceDataAtCell');
|
45628
45636
|
const changesForHook = [];
|
45629
45637
|
if (isThereAnySetSourceListener) {
|
45630
|
-
(0, _array.arrayEach)(input,
|
45631
|
-
let [changeRow, changeProp, changeValue] =
|
45638
|
+
(0, _array.arrayEach)(input, _ref9 => {
|
45639
|
+
let [changeRow, changeProp, changeValue] = _ref9;
|
45632
45640
|
changesForHook.push([changeRow, changeProp, dataSource.getAtCell(changeRow, changeProp),
|
45633
45641
|
// The previous value.
|
45634
45642
|
changeValue]);
|
45635
45643
|
});
|
45636
45644
|
}
|
45637
|
-
(0, _array.arrayEach)(input,
|
45638
|
-
let [changeRow, changeProp, changeValue] =
|
45645
|
+
(0, _array.arrayEach)(input, _ref10 => {
|
45646
|
+
let [changeRow, changeProp, changeValue] = _ref10;
|
45639
45647
|
dataSource.setAtCell(changeRow, changeProp, changeValue);
|
45640
45648
|
});
|
45641
45649
|
if (isThereAnySetSourceListener) {
|
@@ -45773,8 +45781,8 @@ function Core(rootElement, userSettings) {
|
|
45773
45781
|
*/
|
45774
45782
|
this.spliceCellsMeta = function (visualIndex) {
|
45775
45783
|
let deleteAmount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
45776
|
-
for (var
|
45777
|
-
cellMetaRows[
|
45784
|
+
for (var _len19 = arguments.length, cellMetaRows = new Array(_len19 > 2 ? _len19 - 2 : 0), _key19 = 2; _key19 < _len19; _key19++) {
|
45785
|
+
cellMetaRows[_key19 - 2] = arguments[_key19];
|
45778
45786
|
}
|
45779
45787
|
if (cellMetaRows.length > 0 && !Array.isArray(cellMetaRows[0])) {
|
45780
45788
|
throw new Error('The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.');
|
@@ -46987,8 +46995,8 @@ function Core(rootElement, userSettings) {
|
|
46987
46995
|
instance.batchExecution(() => {
|
46988
46996
|
instance.rowIndexMapper.unregisterAll();
|
46989
46997
|
instance.columnIndexMapper.unregisterAll();
|
46990
|
-
pluginsRegistry.getItems().forEach(
|
46991
|
-
let [, plugin] =
|
46998
|
+
pluginsRegistry.getItems().forEach(_ref11 => {
|
46999
|
+
let [, plugin] = _ref11;
|
46992
47000
|
plugin.destroy();
|
46993
47001
|
});
|
46994
47002
|
pluginsRegistry.clear();
|
@@ -53361,7 +53369,7 @@ const domMessages = {
|
|
53361
53369
|
function _injectProductInfo(key, element) {
|
53362
53370
|
const hasValidType = !isEmpty(key);
|
53363
53371
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
53364
|
-
const hotVersion = "0.0.0-next-
|
53372
|
+
const hotVersion = "0.0.0-next-f8a55a6-20240510";
|
53365
53373
|
let keyValidityDate;
|
53366
53374
|
let consoleMessageState = 'invalid';
|
53367
53375
|
let domMessageState = 'invalid';
|
@@ -25,8 +25,8 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 16/04/2024 (built at
|
28
|
+
* Version: 0.0.0-next-f8a55a6-20240510
|
29
|
+
* Release date: 16/04/2024 (built at 10/05/2024 13:14:24)
|
30
30
|
*/.handsontable .table td,.handsontable .table th{border-top:none}.handsontable tr{background:#fff}.handsontable td{background-color:inherit}.handsontable .table caption+thead tr:first-child td,.handsontable .table caption+thead tr:first-child th,.handsontable .table colgroup+thead tr:first-child td,.handsontable .table colgroup+thead tr:first-child th,.handsontable .table thead:first-child tr:first-child td,.handsontable .table thead:first-child tr:first-child th{border-top:1px solid #ccc}.handsontable .table-bordered{border:0;border-collapse:separate}.handsontable .table-bordered td,.handsontable .table-bordered th{border-left:none}.handsontable .table-bordered td:first-child,.handsontable .table-bordered th:first-child{border-left:1px solid #ccc}.handsontable .table>tbody>tr>td,.handsontable .table>tbody>tr>th,.handsontable .table>tfoot>tr>td,.handsontable .table>tfoot>tr>th,.handsontable .table>thead>tr>td,.handsontable .table>thead>tr>th{line-height:21px;padding:0}.col-lg-1.handsontable,.col-lg-10.handsontable,.col-lg-11.handsontable,.col-lg-12.handsontable,.col-lg-2.handsontable,.col-lg-3.handsontable,.col-lg-4.handsontable,.col-lg-5.handsontable,.col-lg-6.handsontable,.col-lg-7.handsontable,.col-lg-8.handsontable,.col-lg-9.handsontable,.col-md-1.handsontable,.col-md-10.handsontable,.col-md-11.handsontable,.col-md-12.handsontable,.col-md-2.handsontable,.col-md-3.handsontable,.col-md-4.handsontable,.col-md-5.handsontable,.col-md-6.handsontable,.col-md-7.handsontable,.col-md-8.handsontable,.col-md-9.handsontable .col-sm-1.handsontable,.col-sm-10.handsontable,.col-sm-11.handsontable,.col-sm-12.handsontable,.col-sm-2.handsontable,.col-sm-3.handsontable,.col-sm-4.handsontable,.col-sm-5.handsontable,.col-sm-6.handsontable,.col-sm-7.handsontable,.col-sm-8.handsontable,.col-sm-9.handsontable .col-xs-1.handsontable,.col-xs-10.handsontable,.col-xs-11.handsontable,.col-xs-12.handsontable,.col-xs-2.handsontable,.col-xs-3.handsontable,.col-xs-4.handsontable,.col-xs-5.handsontable,.col-xs-6.handsontable,.col-xs-7.handsontable,.col-xs-8.handsontable,.col-xs-9.handsontable{padding-left:0;padding-right:0}.handsontable .table-striped>tbody>tr:nth-of-type(2n){background-color:#fff}.handsontable{position:relative}.handsontable .hide{display:none}.handsontable .relative{position:relative}.handsontable .wtHider{width:0}.handsontable .wtSpreader{height:auto;position:relative;width:0}.handsontable div,.handsontable input,.handsontable table,.handsontable tbody,.handsontable td,.handsontable textarea,.handsontable th,.handsontable thead{box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.handsontable input,.handsontable textarea{min-height:auto}.handsontable table.htCore{border-collapse:separate;border-spacing:0;border-width:0;cursor:default;margin:0;max-height:none;max-width:none;outline-width:0;table-layout:fixed;width:0}.handsontable col,.handsontable col.rowHeader{width:50px}.handsontable td,.handsontable th{background-color:#fff;border-bottom:1px solid #ccc;border-left-width:0;border-right:1px solid #ccc;border-top-width:0;empty-cells:show;height:22px;line-height:21px;outline:none;outline-width:0;overflow:hidden;padding:0 4px;vertical-align:top;white-space:pre-wrap}[dir=rtl].handsontable td,[dir=rtl].handsontable th{border-left:1px solid #ccc;border-right-width:0}.handsontable th:last-child{border-bottom:1px solid #ccc;border-left:none;border-right:1px solid #ccc}[dir=rtl].handsontable th:last-child{border-left:1px solid #ccc;border-right:none}.handsontable td:first-of-type,.handsontable th:first-child{border-left:1px solid #ccc}[dir=rtl].handsontable td:first-of-type,[dir=rtl].handsontable th:first-child{border-right:1px solid #ccc}.handsontable .ht_clone_top th:nth-child(2){border-left-width:0;border-right:1px solid #ccc}[dir=rtl].handsontable .ht_clone_top th:nth-child(2){border-left:1px solid #ccc;border-right-width:0}.handsontable.htRowHeaders thead tr th:nth-child(2){border-left:1px solid #ccc}[dir=rtl].handsontable.htRowHeaders thead tr th:nth-child(2){border-right:1px solid #ccc}.handsontable tr:first-child td,.handsontable tr:first-child th{border-top:1px solid #ccc}.ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable tbody tr th,.ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.ht_clone_top) thead tr th:first-child{border-left:1px solid #ccc;border-right-width:0}[dir=rtl].ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable tbody tr th,[dir=rtl].ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.ht_clone_top) thead tr th:first-child{border-left-width:0;border-right:1px solid #ccc}.ht_master:not(.innerBorderTop):not(.innerBorderBottom) thead tr.lastChild th,.ht_master:not(.innerBorderTop):not(.innerBorderBottom) thead tr:last-child th,.ht_master:not(.innerBorderTop):not(.innerBorderBottom)~.handsontable thead tr.lastChild th,.ht_master:not(.innerBorderTop):not(.innerBorderBottom)~.handsontable thead tr:last-child th{border-bottom-width:0}.handsontable th{background-color:#f0f0f0;color:#222;font-weight:400;text-align:center;white-space:nowrap}.handsontable thead th{padding:0}.handsontable th.active{background-color:#ccc}.handsontable thead th .relative{padding:2px 4px}.handsontable span.colHeader{display:inline-block;line-height:1.1}.handsontable .wtBorder{font-size:0;position:absolute}.handsontable .wtBorder.hidden{display:none!important}.handsontable .wtBorder.current{z-index:10}.handsontable .wtBorder.area{z-index:8}.handsontable .wtBorder.fill{z-index:6}.handsontable .wtBorder.corner{cursor:crosshair;font-size:0}.ht_clone_master{z-index:100}.ht_clone_inline_start{z-index:120}.ht_clone_bottom{z-index:130}.ht_clone_bottom_inline_start_corner{z-index:150}.ht_clone_top{z-index:160}.ht_clone_top_inline_start_corner{z-index:180}.handsontable col.hidden{width:0!important}.handsontable tr.hidden,.handsontable tr.hidden td,.handsontable tr.hidden th{display:none}.ht_clone_bottom,.ht_clone_inline_start,.ht_clone_top,.ht_master{overflow:hidden}.ht_master .wtHolder{overflow:auto}.handsontable .ht_clone_inline_start table.htCore>thead,.handsontable .ht_master table.htCore>tbody>tr>th,.handsontable .ht_master table.htCore>thead{visibility:hidden}.ht_clone_bottom .wtHolder,.ht_clone_inline_start .wtHolder,.ht_clone_top .wtHolder{overflow:hidden}.handsontable{color:#373737;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Arial,sans-serif;font-size:13px;font-weight:400;touch-action:manipulation}.handsontable a{color:#104acc}.handsontable.htAutoSize{left:-99000px;position:absolute;top:-99000px;visibility:hidden}.handsontable td.htInvalid{background-color:#ffbeba!important}.handsontable td.htNoWrap{white-space:nowrap}.handsontable td.invisibleSelection,.handsontable th.invisibleSelection{outline:none}.handsontable td.invisibleSelection::selection,.handsontable th.invisibleSelection::selection{background:hsla(0,0%,100%,0)}.hot-display-license-info{color:#373737;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Arial,sans-serif;font-size:10px;font-weight:400;padding:5px 0 3px;text-align:left}.hot-display-license-info a{color:#104acc;font-size:10px}.handsontable .htFocusCatcher{border:0;height:0;margin:0;opacity:0;padding:0;position:absolute;width:0;z-index:-1}.handsontable .manualColumnResizer{cursor:col-resize;height:25px;position:absolute;top:0;width:5px;z-index:210}.handsontable .manualRowResizer{cursor:row-resize;height:5px;left:0;position:absolute;width:50px;z-index:210}.handsontable .manualColumnResizer.active,.handsontable .manualColumnResizer:hover,.handsontable .manualRowResizer.active,.handsontable .manualRowResizer:hover{background-color:#34a9db}.handsontable .manualColumnResizerGuide{background-color:#34a9db;border-left:none;border-right:1px dashed #777;display:none;margin-left:5px;margin-right:unset;position:absolute;right:unset;top:0;width:0}[dir=rtl].handsontable .manualColumnResizerGuide{border-left:1px dashed #777;border-right:none;left:unset;margin-left:unset;margin-right:5px}.handsontable .manualRowResizerGuide{background-color:#34a9db;border-bottom:1px dashed #777;bottom:0;display:none;height:0;left:0;margin-top:5px;position:absolute}.handsontable .manualColumnResizerGuide.active,.handsontable .manualRowResizerGuide.active{display:block;z-index:209}.handsontable .columnSorting{position:relative}.handsontable .columnSorting.sortAction:hover{cursor:pointer;text-decoration:underline}.handsontable span.colHeader.columnSorting:before{background-position-x:right;background-repeat:no-repeat;background-size:contain;content:"";height:10px;left:unset;margin-top:-6px;padding-left:8px;padding-right:0;position:absolute;right:-9px;top:50%;width:5px}[dir=rtl].handsontable span.colHeader.columnSorting:before{background-position-x:left;left:-9px;padding-left:0;padding-right:8px;right:unset}.handsontable span.colHeader.columnSorting.ascending:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAoCAMAAADJ7yrpAAAAKlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKE86IAAAADXRSTlMABBEmRGprlJW72e77tTkTKwAAAFNJREFUeAHtzjkSgCAUBNHPgsoy97+ulGXRqJE5L+xkxoYt2UdsLb5bqFINz+aLuuLn5rIu2RkO3fZpWENimNgiw6iBYRTPMLJjGFxQZ1hxxb/xBI1qC8k39CdKAAAAAElFTkSuQmCC)}.handsontable span.colHeader.columnSorting.descending:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAoCAMAAADJ7yrpAAAAKlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKE86IAAAADXRSTlMABBEmRGprlJW72e77tTkTKwAAAFJJREFUeAHtzjkSgCAQRNFmQYUZ7n9dKUvru0TmvPAn3br0QfgdZ5xx6x+rQn23GqTYnq1FDcnuzZIO2WmedVqIRVxgGKEyjNgYRjKGkZ1hFIZ3I70LyM0VtU8AAAAASUVORK5CYII=)}.htGhostTable .htCore span.colHeader.columnSorting:not(.indicatorDisabled):before{content:"*";display:inline-block;padding-right:20px;position:relative}.handsontable td.area,.handsontable td.area-1,.handsontable td.area-2,.handsontable td.area-3,.handsontable td.area-4,.handsontable td.area-5,.handsontable td.area-6,.handsontable td.area-7{position:relative}.handsontable td.area-1:before,.handsontable td.area-2:before,.handsontable td.area-3:before,.handsontable td.area-4:before,.handsontable td.area-5:before,.handsontable td.area-6:before,.handsontable td.area-7:before,.handsontable td.area:before{background:#005eff;bottom:0;bottom:-100%\9;content:"";left:0;position:absolute;right:0;top:0}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.handsontable td.area-1:before,.handsontable td.area-2:before,.handsontable td.area-3:before,.handsontable td.area-4:before,.handsontable td.area-5:before,.handsontable td.area-6:before,.handsontable td.area-7:before,.handsontable td.area:before{bottom:-100%}}.handsontable td.area:before{opacity:.1}.handsontable td.area-1:before{opacity:.2}.handsontable td.area-2:before{opacity:.27}.handsontable td.area-3:before{opacity:.35}.handsontable td.area-4:before{opacity:.41}.handsontable td.area-5:before{opacity:.47}.handsontable td.area-6:before{opacity:.54}.handsontable td.area-7:before{opacity:.58}.handsontable tbody th.current,.handsontable thead th.current{box-shadow:inset 0 0 0 2px #4b89ff}.handsontable tbody th.ht__highlight,.handsontable thead th.ht__highlight{background-color:#dcdcdc}.handsontable tbody th.ht__active_highlight,.handsontable thead th.ht__active_highlight{background-color:#8eb0e7;color:#000}.handsontableInput{background-color:#fff;border:none;border-radius:0;box-shadow:inset 0 0 0 2px #5292f7;color:#000;display:block;font-family:inherit;font-size:inherit;line-height:21px;margin:0;outline-width:0;padding:1px 5px 0;resize:none}.handsontableInput:focus{outline:none}.handsontableInputHolder{left:0;position:absolute;top:0}.htSelectEditor{-webkit-appearance:menulist-button!important;position:absolute;width:auto}.htSelectEditor:focus{outline:none}.handsontable .htDimmed{color:#777}.handsontable .htSubmenu{position:relative}.handsontable .htSubmenu :after{color:#777;content:"▶";font-size:9px;position:absolute;right:5px}[dir=rtl].handsontable .htSubmenu :after{content:""}[dir=rtl].handsontable .htSubmenu :before{color:#777;content:"◀";font-size:9px;left:5px;position:absolute}.handsontable .htLeft{text-align:left}.handsontable .htCenter{text-align:center}.handsontable .htRight{text-align:right}.handsontable .htJustify{text-align:justify}.handsontable .htTop{vertical-align:top}.handsontable .htMiddle{vertical-align:middle}.handsontable .htBottom{vertical-align:bottom}.handsontable .htPlaceholder{color:#999}.handsontable.listbox{margin:0}.handsontable.listbox .ht_master table{background:#fff;border:1px solid #ccc;border-collapse:separate}.handsontable.listbox td,.handsontable.listbox th,.handsontable.listbox tr:first-child td,.handsontable.listbox tr:first-child th,.handsontable.listbox tr:last-child th{border-color:transparent!important}.handsontable.listbox td,.handsontable.listbox th{text-overflow:ellipsis;white-space:nowrap}.handsontable.listbox td.htDimmed{color:inherit;cursor:default;font-style:inherit}.handsontable.listbox .wtBorder{visibility:hidden}.handsontable.listbox tr td.current,.handsontable.listbox tr:hover td{background:#eee}.ht_editor_hidden{z-index:-1}.ht_editor_visible{z-index:200}.handsontable td.htSearchResult{background:#fcedd9;color:#583707}.handsontable .collapsibleIndicator{background:#eee;border:1px solid #a6a6a6;border-radius:10px;-webkit-box-shadow:0 0 0 6px #eee;-moz-box-shadow:0 0 0 6px #eee;box-shadow:0 0 0 3px #eee;color:#222;cursor:pointer;font-size:10px;height:10px;left:unset;line-height:8px;position:absolute;right:5px;text-align:center;top:50%;transform:translateY(-50%);width:10px}[dir=rtl].handsontable .collapsibleIndicator{left:5px;right:unset}.handsontable.mobile,.handsontable.mobile .wtHolder{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-overflow-scrolling:touch}.handsontable.mobile .handsontableInput:focus{-webkit-appearance:none;-webkit-box-shadow:inset 0 0 0 2px #5292f7;-moz-box-shadow:inset 0 0 0 2px #5292f7;box-shadow:inset 0 0 0 2px #5292f7}.handsontable .bottomSelectionHandle,.handsontable .bottomSelectionHandle-HitArea,.handsontable .topSelectionHandle,.handsontable .topSelectionHandle-HitArea{left:-10000px;right:unset;top:-10000px;z-index:9999}[dir=rtl].handsontable .bottomSelectionHandle,[dir=rtl].handsontable .bottomSelectionHandle-HitArea,[dir=rtl].handsontable .topSelectionHandle,[dir=rtl].handsontable .topSelectionHandle-HitArea{left:unset;right:-10000px}.handsontable.hide-tween{-webkit-animation:opacity-hide .3s;animation:opacity-hide .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.handsontable.show-tween{-webkit-animation:opacity-show .3s;animation:opacity-show .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}
|
31
31
|
/*!
|
32
32
|
* Pikaday
|