handsontable 0.0.0-next-5d3870b-20230222 → 0.0.0-next-ac3a342-20230222
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/calculator/viewportColumns.js +31 -9
- package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +31 -9
- package/3rdparty/walkontable/src/calculator/viewportRows.js +21 -6
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +21 -6
- package/3rdparty/walkontable/src/core/_base.js +3 -0
- package/3rdparty/walkontable/src/core/_base.mjs +3 -0
- package/3rdparty/walkontable/src/scroll.js +14 -3
- package/3rdparty/walkontable/src/scroll.mjs +14 -3
- package/3rdparty/walkontable/src/table.js +4 -2
- package/3rdparty/walkontable/src/table.mjs +4 -2
- package/3rdparty/walkontable/src/types.js +1 -0
- package/3rdparty/walkontable/src/types.mjs +1 -0
- package/3rdparty/walkontable/src/viewport.js +11 -14
- package/3rdparty/walkontable/src/viewport.mjs +11 -14
- 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 +89 -47
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +90 -90
- package/dist/handsontable.js +89 -47
- 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/plugins/filters/filters.js +0 -8
- package/plugins/filters/filters.mjs +0 -8
package/base.js
CHANGED
@@ -46,8 +46,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
|
|
46
46
|
Handsontable.CellCoords = _src.CellCoords;
|
47
47
|
Handsontable.CellRange = _src.CellRange;
|
48
48
|
Handsontable.packageName = 'handsontable';
|
49
|
-
Handsontable.buildDate = "22/02/2023 11:
|
50
|
-
Handsontable.version = "0.0.0-next-
|
49
|
+
Handsontable.buildDate = "22/02/2023 11:41:32";
|
50
|
+
Handsontable.version = "0.0.0-next-ac3a342-20230222";
|
51
51
|
Handsontable.languages = {
|
52
52
|
dictionaryKeys: _registry.dictionaryKeys,
|
53
53
|
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 = "22/02/2023 11:
|
39
|
-
Handsontable.version = "0.0.0-next-
|
38
|
+
Handsontable.buildDate = "22/02/2023 11:41:52";
|
39
|
+
Handsontable.version = "0.0.0-next-ac3a342-20230222";
|
40
40
|
Handsontable.languages = {
|
41
41
|
dictionaryKeys: dictionaryKeys,
|
42
42
|
getLanguageDictionary: getLanguageDictionary,
|
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: 06/02/2023 (built at 22/02/2023 11:
|
28
|
+
* Version: 0.0.0-next-ac3a342-20230222
|
29
|
+
* Release date: 06/02/2023 (built at 22/02/2023 11:42:10)
|
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: 06/02/2023 (built at 22/02/2023 11:
|
28
|
+
* Version: 0.0.0-next-ac3a342-20230222
|
29
|
+
* Release date: 06/02/2023 (built at 22/02/2023 11:42:10)
|
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: 06/02/2023 (built at 22/02/2023 11:
|
28
|
+
* Version: 0.0.0-next-ac3a342-20230222
|
29
|
+
* Release date: 06/02/2023 (built at 22/02/2023 11:42:10)
|
30
30
|
*/
|
31
31
|
(function webpackUniversalModuleDefinition(root, factory) {
|
32
32
|
if(typeof exports === 'object' && typeof module === 'object')
|
@@ -3103,7 +3103,7 @@ var domMessages = {
|
|
3103
3103
|
function _injectProductInfo(key, element) {
|
3104
3104
|
var hasValidType = !isEmpty(key);
|
3105
3105
|
var isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
3106
|
-
var hotVersion = "0.0.0-next-
|
3106
|
+
var hotVersion = "0.0.0-next-ac3a342-20230222";
|
3107
3107
|
var keyValidityDate;
|
3108
3108
|
var consoleMessageState = 'invalid';
|
3109
3109
|
var domMessageState = 'invalid';
|
@@ -23085,7 +23085,8 @@ var Table = /*#__PURE__*/function () {
|
|
23085
23085
|
*
|
23086
23086
|
* @param {number} row Row index.
|
23087
23087
|
* @param {number} [level=0] Header level (0 = most distant to the table).
|
23088
|
-
* @returns {HTMLElement} HTMLElement on success or Number one of the exit codes on error: `null table doesn't have
|
23088
|
+
* @returns {HTMLElement} HTMLElement on success or Number one of the exit codes on error: `null table doesn't have
|
23089
|
+
* row headers`.
|
23089
23090
|
*/
|
23090
23091
|
}, {
|
23091
23092
|
key: "getRowHeader",
|
@@ -23130,7 +23131,8 @@ var Table = /*#__PURE__*/function () {
|
|
23130
23131
|
* Returns cell coords object for a given TD (or a child element of a TD element).
|
23131
23132
|
*
|
23132
23133
|
* @param {HTMLTableCellElement} TD A cell DOM element (or a child of one).
|
23133
|
-
* @returns {CellCoords|null} The coordinates of the provided TD element (or the closest TD element) or null, if the
|
23134
|
+
* @returns {CellCoords|null} The coordinates of the provided TD element (or the closest TD element) or null, if the
|
23135
|
+
* provided element is not applicable.
|
23134
23136
|
*/
|
23135
23137
|
}, {
|
23136
23138
|
key: "getCoords",
|
@@ -43527,6 +43529,9 @@ var CoreAbstract = /*#__PURE__*/function () {
|
|
43527
43529
|
return wot.wtViewport; // TODO refactoring: move outside dao, use IOC
|
43528
43530
|
},
|
43529
43531
|
|
43532
|
+
get wtSettings() {
|
43533
|
+
return wot.wtSettings;
|
43534
|
+
},
|
43530
43535
|
get rootWindow() {
|
43531
43536
|
return wot.domBindings.rootWindow; // TODO refactoring: move outside dao
|
43532
43537
|
},
|
@@ -70294,8 +70299,10 @@ var ViewportColumnsCalculator = /*#__PURE__*/function () {
|
|
70294
70299
|
* @param {number} options.scrollOffset Current horizontal scroll position of the viewport.
|
70295
70300
|
* @param {number} options.totalItems Total number of columns.
|
70296
70301
|
* @param {Function} options.itemSizeFn Function that returns the width of the column at a given index (in px).
|
70297
|
-
* @param {Function} options.overrideFn Function that changes calculated this.startRow, this.endRow (used by
|
70302
|
+
* @param {Function} options.overrideFn Function that changes calculated this.startRow, this.endRow (used by
|
70303
|
+
* MergeCells plugin).
|
70298
70304
|
* @param {string} options.calculationType String which describes types of calculation which will be performed.
|
70305
|
+
* @param {string} options.inlineStartOffset Inline-start offset of the parent container.
|
70299
70306
|
* @param {string} [options.stretchMode] Stretch mode 'all' or 'last'.
|
70300
70307
|
* @param {Function} [options.stretchingItemWidthFn] Function that returns the new width of the stretched column.
|
70301
70308
|
*/
|
@@ -70311,7 +70318,8 @@ var ViewportColumnsCalculator = /*#__PURE__*/function () {
|
|
70311
70318
|
_ref$stretchingItemWi = _ref.stretchingItemWidthFn,
|
70312
70319
|
stretchingItemWidthFn = _ref$stretchingItemWi === void 0 ? function (width) {
|
70313
70320
|
return width;
|
70314
|
-
} : _ref$stretchingItemWi
|
70321
|
+
} : _ref$stretchingItemWi,
|
70322
|
+
inlineStartOffset = _ref.inlineStartOffset;
|
70315
70323
|
(0, _classCallCheck2.default)(this, ViewportColumnsCalculator);
|
70316
70324
|
privatePool.set(this, {
|
70317
70325
|
viewportWidth: viewportSize,
|
@@ -70320,7 +70328,8 @@ var ViewportColumnsCalculator = /*#__PURE__*/function () {
|
|
70320
70328
|
columnWidthFn: itemSizeFn,
|
70321
70329
|
overrideFn: overrideFn,
|
70322
70330
|
calculationType: calculationType,
|
70323
|
-
stretchingColumnWidthFn: stretchingItemWidthFn
|
70331
|
+
stretchingColumnWidthFn: stretchingItemWidthFn,
|
70332
|
+
inlineStartOffset: inlineStartOffset
|
70324
70333
|
});
|
70325
70334
|
|
70326
70335
|
/**
|
@@ -70350,6 +70359,7 @@ var ViewportColumnsCalculator = /*#__PURE__*/function () {
|
|
70350
70359
|
* @type {number|null}
|
70351
70360
|
*/
|
70352
70361
|
this.startPosition = null;
|
70362
|
+
this.isVisibleInTrimmingContainer = false;
|
70353
70363
|
this.stretchAllRatio = 0;
|
70354
70364
|
this.stretchLastWidth = 0;
|
70355
70365
|
this.stretch = stretchMode;
|
@@ -70369,36 +70379,53 @@ var ViewportColumnsCalculator = /*#__PURE__*/function () {
|
|
70369
70379
|
var needReverse = true;
|
70370
70380
|
var startPositions = [];
|
70371
70381
|
var columnWidth;
|
70382
|
+
var firstVisibleColumnWidth = 0;
|
70383
|
+
var lastVisibleColumnWidth = 0;
|
70372
70384
|
var priv = privatePool.get(this);
|
70373
70385
|
var calculationType = priv.calculationType;
|
70374
70386
|
var overrideFn = priv.overrideFn;
|
70375
70387
|
var scrollOffset = priv.scrollOffset;
|
70388
|
+
var zeroBasedScrollOffset = Math.max(priv.scrollOffset, 0);
|
70376
70389
|
var totalColumns = priv.totalColumns;
|
70377
70390
|
var viewportWidth = priv.viewportWidth;
|
70391
|
+
// +1 pixel for row header width compensation for horizontal scroll > 0
|
70392
|
+
var compensatedViewportWidth = zeroBasedScrollOffset > 0 ? viewportWidth + 1 : viewportWidth;
|
70378
70393
|
for (var i = 0; i < totalColumns; i++) {
|
70379
70394
|
columnWidth = this._getColumnWidth(i);
|
70380
|
-
if (sum <=
|
70395
|
+
if (sum <= zeroBasedScrollOffset && calculationType !== _constants.FULLY_VISIBLE_TYPE) {
|
70381
70396
|
this.startColumn = i;
|
70397
|
+
firstVisibleColumnWidth = columnWidth;
|
70382
70398
|
}
|
70383
|
-
|
70384
|
-
// +1 pixel for row header width compensation for horizontal scroll > 0
|
70385
|
-
var compensatedViewportWidth = scrollOffset > 0 ? viewportWidth + 1 : viewportWidth;
|
70386
|
-
if (sum >= scrollOffset && sum + (calculationType === _constants.FULLY_VISIBLE_TYPE ? columnWidth : 0) <= scrollOffset + compensatedViewportWidth) {
|
70399
|
+
if (sum >= zeroBasedScrollOffset && sum + (calculationType === _constants.FULLY_VISIBLE_TYPE ? columnWidth : 0) <= zeroBasedScrollOffset + compensatedViewportWidth) {
|
70387
70400
|
if (this.startColumn === null || this.startColumn === void 0) {
|
70388
70401
|
this.startColumn = i;
|
70402
|
+
firstVisibleColumnWidth = columnWidth;
|
70389
70403
|
}
|
70390
70404
|
this.endColumn = i;
|
70391
70405
|
}
|
70392
70406
|
startPositions.push(sum);
|
70393
70407
|
sum += columnWidth;
|
70408
|
+
lastVisibleColumnWidth = columnWidth;
|
70394
70409
|
if (calculationType !== _constants.FULLY_VISIBLE_TYPE) {
|
70395
70410
|
this.endColumn = i;
|
70396
70411
|
}
|
70397
|
-
if (sum >=
|
70412
|
+
if (sum >= zeroBasedScrollOffset + viewportWidth) {
|
70398
70413
|
needReverse = false;
|
70399
70414
|
break;
|
70400
70415
|
}
|
70401
70416
|
}
|
70417
|
+
var mostRightScrollOffset = scrollOffset + viewportWidth - compensatedViewportWidth;
|
70418
|
+
var inlineEndColumnOffset = calculationType === _constants.FULLY_VISIBLE_TYPE ? 0 : lastVisibleColumnWidth;
|
70419
|
+
var inlineStartColumnOffset = calculationType === _constants.FULLY_VISIBLE_TYPE ? firstVisibleColumnWidth : 0;
|
70420
|
+
if (
|
70421
|
+
// The table is on the left of the viewport
|
70422
|
+
mostRightScrollOffset < -1 * priv.inlineStartOffset || scrollOffset > startPositions.at(-1) + inlineEndColumnOffset ||
|
70423
|
+
// The table is on the right of the viewport
|
70424
|
+
-1 * priv.scrollOffset - priv.viewportWidth > -1 * inlineStartColumnOffset) {
|
70425
|
+
this.isVisibleInTrimmingContainer = false;
|
70426
|
+
} else {
|
70427
|
+
this.isVisibleInTrimmingContainer = true;
|
70428
|
+
}
|
70402
70429
|
if (this.endColumn === totalColumns - 1 && needReverse) {
|
70403
70430
|
this.startColumn = this.endColumn;
|
70404
70431
|
while (this.startColumn > 0) {
|
@@ -70648,6 +70675,7 @@ var ViewportRowsCalculator = /*#__PURE__*/function () {
|
|
70648
70675
|
* @type {number|null}
|
70649
70676
|
*/
|
70650
70677
|
this.startPosition = null;
|
70678
|
+
this.isVisibleInTrimmingContainer = false;
|
70651
70679
|
this.calculate();
|
70652
70680
|
}
|
70653
70681
|
|
@@ -70657,18 +70685,21 @@ var ViewportRowsCalculator = /*#__PURE__*/function () {
|
|
70657
70685
|
(0, _createClass2.default)(ViewportRowsCalculator, [{
|
70658
70686
|
key: "calculate",
|
70659
70687
|
value: function calculate() {
|
70660
|
-
var sum = 0;
|
70661
|
-
var needReverse = true;
|
70662
|
-
var startPositions = [];
|
70663
70688
|
var priv = privatePool.get(this);
|
70664
70689
|
var calculationType = priv.calculationType;
|
70665
70690
|
var overrideFn = priv.overrideFn;
|
70666
70691
|
var rowHeightFn = priv.rowHeightFn;
|
70667
70692
|
var scrollOffset = priv.scrollOffset;
|
70693
|
+
var zeroBasedScrollOffset = Math.max(priv.scrollOffset, 0);
|
70668
70694
|
var totalRows = priv.totalRows;
|
70669
70695
|
var viewportHeight = priv.viewportHeight;
|
70670
70696
|
var horizontalScrollbarHeight = priv.horizontalScrollbarHeight || 0;
|
70697
|
+
var sum = 0;
|
70698
|
+
var needReverse = true;
|
70699
|
+
var startPositions = [];
|
70671
70700
|
var rowHeight;
|
70701
|
+
var firstVisibleRowHeight = 0;
|
70702
|
+
var lastVisibleRowHeight = 0;
|
70672
70703
|
|
70673
70704
|
// Calculate the number (start and end index) of rows needed
|
70674
70705
|
for (var i = 0; i < totalRows; i++) {
|
@@ -70676,26 +70707,37 @@ var ViewportRowsCalculator = /*#__PURE__*/function () {
|
|
70676
70707
|
if (isNaN(rowHeight)) {
|
70677
70708
|
rowHeight = ViewportRowsCalculator.DEFAULT_HEIGHT;
|
70678
70709
|
}
|
70679
|
-
if (sum <=
|
70710
|
+
if (sum <= zeroBasedScrollOffset && calculationType !== _constants.FULLY_VISIBLE_TYPE) {
|
70680
70711
|
this.startRow = i;
|
70712
|
+
firstVisibleRowHeight = rowHeight;
|
70681
70713
|
}
|
70682
|
-
if (sum >=
|
70714
|
+
if (sum >= zeroBasedScrollOffset && sum + (calculationType === _constants.FULLY_VISIBLE_TYPE ? rowHeight : 0) <= zeroBasedScrollOffset + viewportHeight - horizontalScrollbarHeight) {
|
70683
70715
|
// eslint-disable-line max-len
|
70684
70716
|
if (this.startRow === null) {
|
70685
70717
|
this.startRow = i;
|
70718
|
+
firstVisibleRowHeight = rowHeight;
|
70686
70719
|
}
|
70687
70720
|
this.endRow = i;
|
70688
70721
|
}
|
70689
70722
|
startPositions.push(sum);
|
70690
70723
|
sum += rowHeight;
|
70724
|
+
lastVisibleRowHeight = rowHeight;
|
70691
70725
|
if (calculationType !== _constants.FULLY_VISIBLE_TYPE) {
|
70692
70726
|
this.endRow = i;
|
70693
70727
|
}
|
70694
|
-
if (sum >=
|
70728
|
+
if (sum >= zeroBasedScrollOffset + viewportHeight - horizontalScrollbarHeight) {
|
70695
70729
|
needReverse = false;
|
70696
70730
|
break;
|
70697
70731
|
}
|
70698
70732
|
}
|
70733
|
+
var mostBottomScrollOffset = scrollOffset + viewportHeight - horizontalScrollbarHeight;
|
70734
|
+
var topRowOffset = calculationType === _constants.FULLY_VISIBLE_TYPE ? firstVisibleRowHeight : 0;
|
70735
|
+
var bottomRowOffset = calculationType === _constants.FULLY_VISIBLE_TYPE ? 0 : lastVisibleRowHeight;
|
70736
|
+
if (mostBottomScrollOffset < topRowOffset || scrollOffset > startPositions.at(-1) + bottomRowOffset) {
|
70737
|
+
this.isVisibleInTrimmingContainer = false;
|
70738
|
+
} else {
|
70739
|
+
this.isVisibleInTrimmingContainer = true;
|
70740
|
+
}
|
70699
70741
|
|
70700
70742
|
// If the estimation has reached the last row and there is still some space available in the viewport,
|
70701
70743
|
// we need to render in reverse in order to fill the whole viewport with rows
|
@@ -91657,8 +91699,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
|
|
91657
91699
|
Handsontable.CellCoords = _src.CellCoords;
|
91658
91700
|
Handsontable.CellRange = _src.CellRange;
|
91659
91701
|
Handsontable.packageName = 'handsontable';
|
91660
|
-
Handsontable.buildDate = "22/02/2023 11:
|
91661
|
-
Handsontable.version = "0.0.0-next-
|
91702
|
+
Handsontable.buildDate = "22/02/2023 11:42:10";
|
91703
|
+
Handsontable.version = "0.0.0-next-ac3a342-20230222";
|
91662
91704
|
Handsontable.languages = {
|
91663
91705
|
dictionaryKeys: _registry.dictionaryKeys,
|
91664
91706
|
getLanguageDictionary: _registry.getLanguageDictionary,
|
@@ -97738,6 +97780,7 @@ var Scroll = /*#__PURE__*/function () {
|
|
97738
97780
|
key: "getLastVisibleColumn",
|
97739
97781
|
value: function getLastVisibleColumn() {
|
97740
97782
|
var _this$dataAccessObjec8 = this.dataAccessObject,
|
97783
|
+
wtSettings = _this$dataAccessObjec8.wtSettings,
|
97741
97784
|
inlineStartOverlay = _this$dataAccessObjec8.inlineStartOverlay,
|
97742
97785
|
wtTable = _this$dataAccessObjec8.wtTable,
|
97743
97786
|
wtViewport = _this$dataAccessObjec8.wtViewport,
|
@@ -97745,16 +97788,26 @@ var Scroll = /*#__PURE__*/function () {
|
|
97745
97788
|
rootWindow = _this$dataAccessObjec8.rootWindow;
|
97746
97789
|
var lastVisibleColumn = wtTable.getLastVisibleColumn();
|
97747
97790
|
if (inlineStartOverlay.mainTableScrollableElement === rootWindow) {
|
97748
|
-
var
|
97791
|
+
var isRtl = wtSettings.getSetting('rtlMode');
|
97792
|
+
var inlineStartRootElementOffset = null;
|
97793
|
+
if (isRtl) {
|
97794
|
+
var tableRect = wtTable.TABLE.getBoundingClientRect();
|
97795
|
+
var rootDocument = this.dataAccessObject.rootWindow.document;
|
97796
|
+
var docOffsetWidth = rootDocument.documentElement.offsetWidth;
|
97797
|
+
inlineStartRootElementOffset = Math.abs(tableRect.right - docOffsetWidth);
|
97798
|
+
} else {
|
97799
|
+
var rootElementOffset = (0, _element.offset)(wtTable.wtRootElement);
|
97800
|
+
inlineStartRootElementOffset = rootElementOffset.left;
|
97801
|
+
}
|
97749
97802
|
var windowScrollLeft = Math.abs((0, _element.getScrollLeft)(rootWindow, rootWindow));
|
97750
97803
|
|
97751
97804
|
// Only calculate lastVisibleColumn when table didn't filled (from right) whole viewport space
|
97752
|
-
if (
|
97805
|
+
if (inlineStartRootElementOffset > windowScrollLeft) {
|
97753
97806
|
var windowWidth = (0, _element.innerWidth)(rootWindow);
|
97754
97807
|
var columnsWidth = wtViewport.getRowHeaderWidth();
|
97755
97808
|
for (var column = 1; column <= totalColumns; column++) {
|
97756
97809
|
columnsWidth += inlineStartOverlay.sumCellSizes(column - 1, column);
|
97757
|
-
if (
|
97810
|
+
if (inlineStartRootElementOffset + columnsWidth - windowScrollLeft >= windowWidth) {
|
97758
97811
|
// Return physical column - 1 (-2 because rangeEach gives column index + 1 - sumCellSizes requirements)
|
97759
97812
|
lastVisibleColumn = column - 2;
|
97760
97813
|
break;
|
@@ -100009,13 +100062,10 @@ var Viewport = /*#__PURE__*/function () {
|
|
100009
100062
|
height = this.getViewportHeight();
|
100010
100063
|
}
|
100011
100064
|
var pos = this.dataAccessObject.topScrollPosition - this.dataAccessObject.topParentOffset;
|
100012
|
-
if (pos < 0) {
|
100013
|
-
pos = 0;
|
100014
|
-
}
|
100015
100065
|
var fixedRowsTop = wtSettings.getSetting('fixedRowsTop');
|
100016
100066
|
var fixedRowsBottom = wtSettings.getSetting('fixedRowsBottom');
|
100017
100067
|
var totalRows = wtSettings.getSetting('totalRows');
|
100018
|
-
if (fixedRowsTop) {
|
100068
|
+
if (fixedRowsTop && pos >= 0) {
|
100019
100069
|
fixedRowsHeight = this.dataAccessObject.topOverlay.sumCellSizes(0, fixedRowsTop);
|
100020
100070
|
pos += fixedRowsHeight;
|
100021
100071
|
height -= fixedRowsHeight;
|
@@ -100060,11 +100110,8 @@ var Viewport = /*#__PURE__*/function () {
|
|
100060
100110
|
var width = this.getViewportWidth();
|
100061
100111
|
var pos = Math.abs(this.dataAccessObject.inlineStartScrollPosition) - this.dataAccessObject.inlineStartParentOffset;
|
100062
100112
|
this.columnHeaderHeight = NaN;
|
100063
|
-
if (pos < 0) {
|
100064
|
-
pos = 0;
|
100065
|
-
}
|
100066
100113
|
var fixedColumnsStart = wtSettings.getSetting('fixedColumnsStart');
|
100067
|
-
if (fixedColumnsStart) {
|
100114
|
+
if (fixedColumnsStart && pos >= 0) {
|
100068
100115
|
var fixedColumnsWidth = this.dataAccessObject.inlineStartOverlay.sumCellSizes(0, fixedColumnsStart);
|
100069
100116
|
pos += fixedColumnsWidth;
|
100070
100117
|
width -= fixedColumnsWidth;
|
@@ -100074,7 +100121,7 @@ var Viewport = /*#__PURE__*/function () {
|
|
100074
100121
|
}
|
100075
100122
|
return new _calculator.ViewportColumnsCalculator({
|
100076
100123
|
viewportSize: width,
|
100077
|
-
scrollOffset:
|
100124
|
+
scrollOffset: pos,
|
100078
100125
|
totalItems: wtSettings.getSetting('totalColumns'),
|
100079
100126
|
itemSizeFn: function itemSizeFn(sourceCol) {
|
100080
100127
|
return wtTable.getColumnWidth(sourceCol);
|
@@ -100084,7 +100131,8 @@ var Viewport = /*#__PURE__*/function () {
|
|
100084
100131
|
stretchMode: wtSettings.getSetting('stretchH'),
|
100085
100132
|
stretchingItemWidthFn: function stretchingItemWidthFn(stretchedWidth, column) {
|
100086
100133
|
return wtSettings.getSetting('onBeforeStretchingColumnWidth', stretchedWidth, column);
|
100087
|
-
}
|
100134
|
+
},
|
100135
|
+
inlineStartOffset: this.dataAccessObject.inlineStartParentOffset
|
100088
100136
|
});
|
100089
100137
|
}
|
100090
100138
|
|
@@ -100144,11 +100192,12 @@ var Viewport = /*#__PURE__*/function () {
|
|
100144
100192
|
return false;
|
100145
100193
|
}
|
100146
100194
|
var startRow = proposedRowsVisibleCalculator.startRow,
|
100147
|
-
endRow = proposedRowsVisibleCalculator.endRow
|
100195
|
+
endRow = proposedRowsVisibleCalculator.endRow,
|
100196
|
+
isVisibleInTrimmingContainer = proposedRowsVisibleCalculator.isVisibleInTrimmingContainer;
|
100148
100197
|
|
100149
100198
|
// if there are no fully visible rows at all, return false
|
100150
100199
|
if (startRow === null && endRow === null) {
|
100151
|
-
return
|
100200
|
+
return !isVisibleInTrimmingContainer;
|
100152
100201
|
}
|
100153
100202
|
var _this$rowsRenderCalcu = this.rowsRenderCalculator,
|
100154
100203
|
renderedStartRow = _this$rowsRenderCalcu.startRow,
|
@@ -100176,11 +100225,12 @@ var Viewport = /*#__PURE__*/function () {
|
|
100176
100225
|
return false;
|
100177
100226
|
}
|
100178
100227
|
var startColumn = proposedColumnsVisibleCalculator.startColumn,
|
100179
|
-
endColumn = proposedColumnsVisibleCalculator.endColumn
|
100228
|
+
endColumn = proposedColumnsVisibleCalculator.endColumn,
|
100229
|
+
isVisibleInTrimmingContainer = proposedColumnsVisibleCalculator.isVisibleInTrimmingContainer;
|
100180
100230
|
|
100181
100231
|
// if there are no fully visible columns at all, return false
|
100182
100232
|
if (startColumn === null && endColumn === null) {
|
100183
|
-
return
|
100233
|
+
return !isVisibleInTrimmingContainer;
|
100184
100234
|
}
|
100185
100235
|
var _this$columnsRenderCa = this.columnsRenderCalculator,
|
100186
100236
|
renderedStartColumn = _this$columnsRenderCa.startColumn,
|
@@ -126967,14 +127017,6 @@ var Filters = /*#__PURE__*/function (_BasePlugin) {
|
|
126967
127017
|
* @type {Map}
|
126968
127018
|
*/
|
126969
127019
|
_this.components = new Map([['filter_by_condition', null], ['filter_operators', null], ['filter_by_condition2', null], ['filter_by_value', null], ['filter_action_bar', null]]);
|
126970
|
-
/**
|
126971
|
-
* Object containing information about last selected column physical and visual index for added filter conditions.
|
126972
|
-
*
|
126973
|
-
* @private
|
126974
|
-
* @type {object}
|
126975
|
-
* @default null
|
126976
|
-
*/
|
126977
|
-
_this.lastSelectedColumn = null;
|
126978
127020
|
/**
|
126979
127021
|
* Map of skipped rows by plugin.
|
126980
127022
|
*
|
@@ -26,8 +26,8 @@
|
|
26
26
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
27
27
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
28
28
|
*
|
29
|
-
* Version: 0.0.0-next-
|
30
|
-
* Release date: 06/02/2023 (built at 22/02/2023 11:
|
29
|
+
* Version: 0.0.0-next-ac3a342-20230222
|
30
|
+
* Release date: 06/02/2023 (built at 22/02/2023 11:42:56)
|
31
31
|
*/.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-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,.handsontable th:nth-child(2){border-left:1px solid #ccc}[dir=rtl].handsontable td:first-of-type,[dir=rtl].handsontable th:first-child,[dir=rtl].handsontable th:nth-child(2){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 thead,.handsontable .ht_master thead,.handsontable .ht_master tr th{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:#ff4c42!important}.handsontable td.htNoWrap{white-space:nowrap}.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 .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):after{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.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 6px #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-tap-highlight-color:rgba(0,0,0,0);-webkit-overflow-scrolling:touch;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.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}.topSelectionHandle-HitArea:not(.ht_master .topSelectionHandle-HitArea),.topSelectionHandle:not(.ht_master .topSelectionHandle){z-index:9999}.handsontable .bottomSelectionHandle,.handsontable .bottomSelectionHandle-HitArea,.handsontable .topSelectionHandle,.handsontable .topSelectionHandle-HitArea{left:-10000px;right:unset;top:-10000px}[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}
|
32
32
|
/*!
|
33
33
|
* Pikaday
|