@syncfusion/ej2-inputs 29.1.34 → 29.1.38
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 +23 -7
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +24 -7
- 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 +24 -16
- package/src/textarea/textarea.d.ts +1 -0
- package/src/textarea/textarea.js +24 -7
|
@@ -14915,6 +14915,9 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
|
|
|
14915
14915
|
}
|
|
14916
14916
|
this.element.value = this.element.defaultValue;
|
|
14917
14917
|
this.element.classList.remove('e-input', RESIZE_X, RESIZE_Y, RESIZE_XY, RESIZE_NONE);
|
|
14918
|
+
if (this.textareaWrapper.container.style.width.includes('%')) {
|
|
14919
|
+
EventHandler.remove(this.element, 'mousemove', this.onMouseMove);
|
|
14920
|
+
}
|
|
14918
14921
|
this.removeAttributes(['aria-disabled', 'aria-readonly', 'aria-labelledby', 'aria-multiline']);
|
|
14919
14922
|
if (!isNullOrUndefined(this.textareaWrapper)) {
|
|
14920
14923
|
this.textareaWrapper.container.insertAdjacentElement('afterend', this.element);
|
|
@@ -15124,14 +15127,16 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
|
|
|
15124
15127
|
*/
|
|
15125
15128
|
TextArea.prototype.setWrapperWidth = function () {
|
|
15126
15129
|
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
|
-
|
|
15130
|
+
if (this.resizeMode !== 'None' && this.resizeMode !== 'Vertical' && !this.textareaWrapper.container.style.width.includes('%')) {
|
|
15131
|
+
this.setElementWidth(this.textareaWrapper.container.style.width);
|
|
15132
|
+
}
|
|
15133
|
+
if (!this.textareaWrapper.container.style.width.includes('%')) {
|
|
15134
|
+
this.textareaWrapper.container.classList.add(AUTO_WIDTH);
|
|
15135
|
+
this.textareaWrapper.container.style.width = '';
|
|
15136
|
+
}
|
|
15137
|
+
if (this.textareaWrapper.container.style.width.includes('%')) {
|
|
15138
|
+
EventHandler.add(this.element, 'mousemove', this.onMouseMove, this);
|
|
15133
15139
|
}
|
|
15134
|
-
this.textareaWrapper.container.classList.add(AUTO_WIDTH);
|
|
15135
15140
|
}
|
|
15136
15141
|
else {
|
|
15137
15142
|
if (this.textareaWrapper.container.classList.contains(AUTO_WIDTH)) {
|
|
@@ -15139,6 +15144,18 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
|
|
|
15139
15144
|
}
|
|
15140
15145
|
}
|
|
15141
15146
|
};
|
|
15147
|
+
TextArea.prototype.onMouseMove = function () {
|
|
15148
|
+
var _this = this;
|
|
15149
|
+
if (this.textareaWrapper.container.style.width !== 'auto') {
|
|
15150
|
+
var initialWidth_1 = this.element.style.width;
|
|
15151
|
+
setTimeout(function () {
|
|
15152
|
+
var currentWidth = _this.element.style.width;
|
|
15153
|
+
if (initialWidth_1 !== currentWidth) {
|
|
15154
|
+
_this.textareaWrapper.container.style.width = 'auto';
|
|
15155
|
+
}
|
|
15156
|
+
}, 5);
|
|
15157
|
+
}
|
|
15158
|
+
};
|
|
15142
15159
|
TextArea.prototype.resetForm = function () {
|
|
15143
15160
|
if (this.isAngular) {
|
|
15144
15161
|
this.resetValue('');
|