From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- comm/suite/components/bindings/numberbox.xml | 217 +++++++++++++++++++++++++++ 1 file changed, 217 insertions(+) create mode 100644 comm/suite/components/bindings/numberbox.xml (limited to 'comm/suite/components/bindings/numberbox.xml') diff --git a/comm/suite/components/bindings/numberbox.xml b/comm/suite/components/bindings/numberbox.xml new file mode 100644 index 0000000000..8f18bcbcdd --- /dev/null +++ b/comm/suite/components/bindings/numberbox.xml @@ -0,0 +1,217 @@ + + + + + + + + + + + + + + + + false + null + 0 + + + + + + + + + + + + if (this._valueEntered) { + var newval = this.inputField.value; + this._validateValue(newval); + } + return this._value; + + + this._validateValue(val); + return val; + + + + + var min = this.getAttribute("min"); + return min ? Number(min) : 0; + + + + + + + + + var max = this.getAttribute("max"); + return max ? Number(max) : Infinity; + + + val) + this._validateValue(val); + return val; + ]]> + + + + + + + + + + + + + + + + + = this.max); + } + ]]> + + + + + + + max) + aValue = max; + + this._valueEntered = false; + this._value = Number(aValue); + this.inputField.value = aValue; + + this._enableDisableButtons(); + + return aValue; + ]]> + + + + + + var evt = document.createEvent("Events"); + evt.initEvent("change", true, true); + this.dispatchEvent(evt); + + + + + + + + + + this._valueEntered = true; + + + + 57) + event.preventDefault(); + } + ]]> + + + + this._modifyUp(); + + + + this._modifyDown(); + + + + this._modifyUp(); + + + + this._modifyDown(); + + + + if (event.originalTarget == this.inputField) { + var newval = this.inputField.value; + this._validateValue(newval); + } + + + + + -- cgit v1.2.3