@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 29.1.
|
|
3
|
+
* version : 29.1.38
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,56 +1,63 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_from": "@syncfusion/ej2-inputs
|
|
2
|
+
"_from": "@syncfusion/ej2-inputs@*",
|
|
3
3
|
"_id": "@syncfusion/ej2-inputs@29.1.33",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-m5xdTVTV3SkFZyFg3cR8hf0m+peSVM2wu4Dul75++3nbSmUhkthGFTkS60APTDklcB4kC4zB2GlW2PzUSspbBQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-inputs",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
9
9
|
"type": "range",
|
|
10
10
|
"registry": true,
|
|
11
|
-
"raw": "@syncfusion/ej2-inputs
|
|
11
|
+
"raw": "@syncfusion/ej2-inputs@*",
|
|
12
12
|
"name": "@syncfusion/ej2-inputs",
|
|
13
13
|
"escapedName": "@syncfusion%2fej2-inputs",
|
|
14
14
|
"scope": "@syncfusion",
|
|
15
|
-
"rawSpec": "
|
|
15
|
+
"rawSpec": "*",
|
|
16
16
|
"saveSpec": null,
|
|
17
|
-
"fetchSpec": "
|
|
17
|
+
"fetchSpec": "*"
|
|
18
18
|
},
|
|
19
19
|
"_requiredBy": [
|
|
20
|
+
"/",
|
|
21
|
+
"/@syncfusion/ej2",
|
|
20
22
|
"/@syncfusion/ej2-angular-inputs",
|
|
21
23
|
"/@syncfusion/ej2-calendars",
|
|
22
24
|
"/@syncfusion/ej2-diagrams",
|
|
25
|
+
"/@syncfusion/ej2-documenteditor",
|
|
23
26
|
"/@syncfusion/ej2-dropdowns",
|
|
24
27
|
"/@syncfusion/ej2-filemanager",
|
|
25
28
|
"/@syncfusion/ej2-gantt",
|
|
26
29
|
"/@syncfusion/ej2-grids",
|
|
30
|
+
"/@syncfusion/ej2-image-editor",
|
|
31
|
+
"/@syncfusion/ej2-inplace-editor",
|
|
27
32
|
"/@syncfusion/ej2-interactive-chat",
|
|
33
|
+
"/@syncfusion/ej2-kanban",
|
|
28
34
|
"/@syncfusion/ej2-navigations",
|
|
35
|
+
"/@syncfusion/ej2-pdfviewer",
|
|
29
36
|
"/@syncfusion/ej2-pivotview",
|
|
37
|
+
"/@syncfusion/ej2-querybuilder",
|
|
30
38
|
"/@syncfusion/ej2-react-inputs",
|
|
31
39
|
"/@syncfusion/ej2-richtexteditor",
|
|
32
40
|
"/@syncfusion/ej2-schedule",
|
|
33
41
|
"/@syncfusion/ej2-vue-inputs"
|
|
34
42
|
],
|
|
35
|
-
"_resolved": "https://
|
|
36
|
-
"_shasum": "
|
|
37
|
-
"_spec": "@syncfusion/ej2-inputs
|
|
38
|
-
"_where": "
|
|
43
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-29.1.33.tgz",
|
|
44
|
+
"_shasum": "de2791119e2dca054fc20e84d8e8b13ddfb0326c",
|
|
45
|
+
"_spec": "@syncfusion/ej2-inputs@*",
|
|
46
|
+
"_where": "/jenkins/workspace/elease-automation_release_29.1.1/packages/included",
|
|
39
47
|
"author": {
|
|
40
48
|
"name": "Syncfusion Inc."
|
|
41
49
|
},
|
|
42
50
|
"bundleDependencies": false,
|
|
43
51
|
"dependencies": {
|
|
44
|
-
"@syncfusion/ej2-base": "~29.1.
|
|
45
|
-
"@syncfusion/ej2-buttons": "~29.1.
|
|
46
|
-
"@syncfusion/ej2-popups": "~29.1.
|
|
52
|
+
"@syncfusion/ej2-base": "~29.1.36",
|
|
53
|
+
"@syncfusion/ej2-buttons": "~29.1.34",
|
|
54
|
+
"@syncfusion/ej2-popups": "~29.1.37",
|
|
47
55
|
"@syncfusion/ej2-splitbuttons": "~29.1.33"
|
|
48
56
|
},
|
|
49
57
|
"deprecated": false,
|
|
50
58
|
"description": "A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.",
|
|
51
59
|
"devDependencies": {},
|
|
52
60
|
"es2015": "./dist/es6/ej2-inputs.es5.js",
|
|
53
|
-
"homepage": "https://www.syncfusion.com/javascript-ui-controls",
|
|
54
61
|
"keywords": [
|
|
55
62
|
"ej2",
|
|
56
63
|
"syncfusion",
|
|
@@ -112,7 +119,8 @@
|
|
|
112
119
|
"type": "git",
|
|
113
120
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/inputs"
|
|
114
121
|
},
|
|
115
|
-
"sideEffects": false,
|
|
116
122
|
"typings": "index.d.ts",
|
|
117
|
-
"version": "29.1.
|
|
118
|
-
|
|
123
|
+
"version": "29.1.38",
|
|
124
|
+
"sideEffects": false,
|
|
125
|
+
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
126
|
+
}
|
package/src/textarea/textarea.js
CHANGED
|
@@ -359,6 +359,9 @@ var TextArea = /** @class */ (function (_super) {
|
|
|
359
359
|
}
|
|
360
360
|
this.element.value = this.element.defaultValue;
|
|
361
361
|
this.element.classList.remove('e-input', RESIZE_X, RESIZE_Y, RESIZE_XY, RESIZE_NONE);
|
|
362
|
+
if (this.textareaWrapper.container.style.width.includes('%')) {
|
|
363
|
+
EventHandler.remove(this.element, 'mousemove', this.onMouseMove);
|
|
364
|
+
}
|
|
362
365
|
this.removeAttributes(['aria-disabled', 'aria-readonly', 'aria-labelledby', 'aria-multiline']);
|
|
363
366
|
if (!isNullOrUndefined(this.textareaWrapper)) {
|
|
364
367
|
this.textareaWrapper.container.insertAdjacentElement('afterend', this.element);
|
|
@@ -568,14 +571,16 @@ var TextArea = /** @class */ (function (_super) {
|
|
|
568
571
|
*/
|
|
569
572
|
TextArea.prototype.setWrapperWidth = function () {
|
|
570
573
|
if (this.enabled && ((this.resizeMode !== 'None' && this.resizeMode !== 'Vertical') || (this.cols || this.element.getAttribute('cols')))) {
|
|
571
|
-
if (this.resizeMode !== 'None' && this.resizeMode !== 'Vertical') {
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
574
|
+
if (this.resizeMode !== 'None' && this.resizeMode !== 'Vertical' && !this.textareaWrapper.container.style.width.includes('%')) {
|
|
575
|
+
this.setElementWidth(this.textareaWrapper.container.style.width);
|
|
576
|
+
}
|
|
577
|
+
if (!this.textareaWrapper.container.style.width.includes('%')) {
|
|
578
|
+
this.textareaWrapper.container.classList.add(AUTO_WIDTH);
|
|
579
|
+
this.textareaWrapper.container.style.width = '';
|
|
580
|
+
}
|
|
581
|
+
if (this.textareaWrapper.container.style.width.includes('%')) {
|
|
582
|
+
EventHandler.add(this.element, 'mousemove', this.onMouseMove, this);
|
|
577
583
|
}
|
|
578
|
-
this.textareaWrapper.container.classList.add(AUTO_WIDTH);
|
|
579
584
|
}
|
|
580
585
|
else {
|
|
581
586
|
if (this.textareaWrapper.container.classList.contains(AUTO_WIDTH)) {
|
|
@@ -583,6 +588,18 @@ var TextArea = /** @class */ (function (_super) {
|
|
|
583
588
|
}
|
|
584
589
|
}
|
|
585
590
|
};
|
|
591
|
+
TextArea.prototype.onMouseMove = function () {
|
|
592
|
+
var _this = this;
|
|
593
|
+
if (this.textareaWrapper.container.style.width !== 'auto') {
|
|
594
|
+
var initialWidth_1 = this.element.style.width;
|
|
595
|
+
setTimeout(function () {
|
|
596
|
+
var currentWidth = _this.element.style.width;
|
|
597
|
+
if (initialWidth_1 !== currentWidth) {
|
|
598
|
+
_this.textareaWrapper.container.style.width = 'auto';
|
|
599
|
+
}
|
|
600
|
+
}, 5);
|
|
601
|
+
}
|
|
602
|
+
};
|
|
586
603
|
TextArea.prototype.resetForm = function () {
|
|
587
604
|
if (this.isAngular) {
|
|
588
605
|
this.resetValue('');
|