handsontable 0.0.0-next-bfb0e3a-20240403 → 0.0.0-next-53a190b-20240403

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.

Potentially problematic release.


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

@@ -13,6 +13,8 @@ exports.getCaretPosition = getCaretPosition;
13
13
  exports.getComputedStyle = getComputedStyle;
14
14
  exports.getCssTransform = getCssTransform;
15
15
  exports.getFrameElement = getFrameElement;
16
+ exports.getMaximumScrollLeft = getMaximumScrollLeft;
17
+ exports.getMaximumScrollTop = getMaximumScrollTop;
16
18
  exports.getParent = getParent;
17
19
  exports.getParentWindow = getParentWindow;
18
20
  exports.getScrollLeft = getScrollLeft;
@@ -664,6 +666,26 @@ function getScrollableElement(element) {
664
666
  return rootWindow;
665
667
  }
666
668
 
669
+ /**
670
+ * Get the maximum available `scrollTop` value for the provided element.
671
+ *
672
+ * @param {HTMLElement} element The element to get the maximum scroll top value from.
673
+ * @returns {number} The maximum scroll top value.
674
+ */
675
+ function getMaximumScrollTop(element) {
676
+ return element.scrollHeight - element.clientHeight;
677
+ }
678
+
679
+ /**
680
+ * Get the maximum available `scrollLeft` value for the provided element.
681
+ *
682
+ * @param {HTMLElement} element The element to get the maximum scroll left value from.
683
+ * @returns {number} The maximum scroll left value.
684
+ */
685
+ function getMaximumScrollLeft(element) {
686
+ return element.scrollWidth - element.clientWidth;
687
+ }
688
+
667
689
  /**
668
690
  * Returns a DOM element responsible for trimming the provided element.
669
691
  *
@@ -606,6 +606,26 @@ export function getScrollableElement(element) {
606
606
  return rootWindow;
607
607
  }
608
608
 
609
+ /**
610
+ * Get the maximum available `scrollTop` value for the provided element.
611
+ *
612
+ * @param {HTMLElement} element The element to get the maximum scroll top value from.
613
+ * @returns {number} The maximum scroll top value.
614
+ */
615
+ export function getMaximumScrollTop(element) {
616
+ return element.scrollHeight - element.clientHeight;
617
+ }
618
+
619
+ /**
620
+ * Get the maximum available `scrollLeft` value for the provided element.
621
+ *
622
+ * @param {HTMLElement} element The element to get the maximum scroll left value from.
623
+ * @returns {number} The maximum scroll left value.
624
+ */
625
+ export function getMaximumScrollLeft(element) {
626
+ return element.scrollWidth - element.clientWidth;
627
+ }
628
+
609
629
  /**
610
630
  * Returns a DOM element responsible for trimming the provided element.
611
631
  *
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-bfb0e3a-20240403";
137
+ const hotVersion = "0.0.0-next-53a190b-20240403";
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-bfb0e3a-20240403";
127
+ const hotVersion = "0.0.0-next-53a190b-20240403";
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-bfb0e3a-20240403",
13
+ "version": "0.0.0-next-53a190b-20240403",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",