@syncfusion/ej2-inputs 29.1.34 → 29.1.39
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.
- package/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +26 -8
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +27 -8
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +25 -17
- package/src/numerictextbox/numerictextbox-model.d.ts +1 -1
- package/src/numerictextbox/numerictextbox.js +3 -1
- package/src/textarea/textarea.d.ts +1 -0
- package/src/textarea/textarea.js +24 -7
- package/styles/input/_theme.scss +2 -1
- package/styles/input/material-dark.css +2 -1
- package/styles/input/material.css +2 -1
- package/styles/input/material3-dark.css +2 -1
- package/styles/input/material3.css +2 -1
- package/styles/material-dark-lite.css +2 -1
- package/styles/material-dark.css +2 -1
- package/styles/material-lite.css +2 -1
- package/styles/material.css +2 -1
- package/styles/material3-dark-lite.css +2 -1
- package/styles/material3-dark.css +2 -1
- package/styles/material3-lite.css +2 -1
- package/styles/material3.css +2 -1
|
@@ -1843,7 +1843,9 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1843
1843
|
}
|
|
1844
1844
|
}
|
|
1845
1845
|
this.inputValue = value;
|
|
1846
|
-
this.
|
|
1846
|
+
if (!(this.isVue && this.element && this.element.hasAttribute('modelvalue') && this.isDynamicChange)) {
|
|
1847
|
+
this.changeValue(value === null || isNaN(value) ? null : this.strictMode ? this.trimValue(value) : value);
|
|
1848
|
+
}
|
|
1847
1849
|
/* istanbul ignore next */
|
|
1848
1850
|
if (!this.isDynamicChange) {
|
|
1849
1851
|
this.raiseChangeEvent(event);
|
|
@@ -14915,6 +14917,9 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
|
|
|
14915
14917
|
}
|
|
14916
14918
|
this.element.value = this.element.defaultValue;
|
|
14917
14919
|
this.element.classList.remove('e-input', RESIZE_X, RESIZE_Y, RESIZE_XY, RESIZE_NONE);
|
|
14920
|
+
if (this.textareaWrapper.container.style.width.includes('%')) {
|
|
14921
|
+
EventHandler.remove(this.element, 'mousemove', this.onMouseMove);
|
|
14922
|
+
}
|
|
14918
14923
|
this.removeAttributes(['aria-disabled', 'aria-readonly', 'aria-labelledby', 'aria-multiline']);
|
|
14919
14924
|
if (!isNullOrUndefined(this.textareaWrapper)) {
|
|
14920
14925
|
this.textareaWrapper.container.insertAdjacentElement('afterend', this.element);
|
|
@@ -15124,14 +15129,16 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
|
|
|
15124
15129
|
*/
|
|
15125
15130
|
TextArea.prototype.setWrapperWidth = function () {
|
|
15126
15131
|
if (this.enabled && ((this.resizeMode !== 'None' && this.resizeMode !== 'Vertical') || (this.cols || this.element.getAttribute('cols')))) {
|
|
15127
|
-
if (this.resizeMode !== 'None' && this.resizeMode !== 'Vertical') {
|
|
15128
|
-
|
|
15129
|
-
|
|
15130
|
-
|
|
15131
|
-
|
|
15132
|
-
|
|
15132
|
+
if (this.resizeMode !== 'None' && this.resizeMode !== 'Vertical' && !this.textareaWrapper.container.style.width.includes('%')) {
|
|
15133
|
+
this.setElementWidth(this.textareaWrapper.container.style.width);
|
|
15134
|
+
}
|
|
15135
|
+
if (!this.textareaWrapper.container.style.width.includes('%')) {
|
|
15136
|
+
this.textareaWrapper.container.classList.add(AUTO_WIDTH);
|
|
15137
|
+
this.textareaWrapper.container.style.width = '';
|
|
15138
|
+
}
|
|
15139
|
+
if (this.textareaWrapper.container.style.width.includes('%')) {
|
|
15140
|
+
EventHandler.add(this.element, 'mousemove', this.onMouseMove, this);
|
|
15133
15141
|
}
|
|
15134
|
-
this.textareaWrapper.container.classList.add(AUTO_WIDTH);
|
|
15135
15142
|
}
|
|
15136
15143
|
else {
|
|
15137
15144
|
if (this.textareaWrapper.container.classList.contains(AUTO_WIDTH)) {
|
|
@@ -15139,6 +15146,18 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
|
|
|
15139
15146
|
}
|
|
15140
15147
|
}
|
|
15141
15148
|
};
|
|
15149
|
+
TextArea.prototype.onMouseMove = function () {
|
|
15150
|
+
var _this = this;
|
|
15151
|
+
if (this.textareaWrapper.container.style.width !== 'auto') {
|
|
15152
|
+
var initialWidth_1 = this.element.style.width;
|
|
15153
|
+
setTimeout(function () {
|
|
15154
|
+
var currentWidth = _this.element.style.width;
|
|
15155
|
+
if (initialWidth_1 !== currentWidth) {
|
|
15156
|
+
_this.textareaWrapper.container.style.width = 'auto';
|
|
15157
|
+
}
|
|
15158
|
+
}, 5);
|
|
15159
|
+
}
|
|
15160
|
+
};
|
|
15142
15161
|
TextArea.prototype.resetForm = function () {
|
|
15143
15162
|
if (this.isAngular) {
|
|
15144
15163
|
this.resetValue('');
|