@syncfusion/ej2-inputs 20.1.47 → 20.1.48
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.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +18 -9
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +19 -10
- 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 +6 -6
- package/src/textbox/textbox-model.d.ts +1 -1
- package/src/textbox/textbox.js +8 -1
- package/src/uploader/uploader.js +12 -10
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.1.
|
|
3
|
+
* version : 20.1.48
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-inputs@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-inputs@
|
|
3
|
+
"_id": "@syncfusion/ej2-inputs@20.1.47",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-rCma6vTU5RKepKxtjizZsQPvWibkiX3WtNDFgS9UTA+75K6wCagt839cG7Xpzlt6S5E6WRoGABNoeK+dyVXC3w==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-inputs",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"/@syncfusion/ej2-schedule",
|
|
39
39
|
"/@syncfusion/ej2-vue-inputs"
|
|
40
40
|
],
|
|
41
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-
|
|
42
|
-
"_shasum": "
|
|
41
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-20.1.47.tgz",
|
|
42
|
+
"_shasum": "683f590bd05d5c7ccbee926b8f1bac963d876340",
|
|
43
43
|
"_spec": "@syncfusion/ej2-inputs@*",
|
|
44
44
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
45
45
|
"author": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"bundleDependencies": false,
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@syncfusion/ej2-base": "~20.1.
|
|
50
|
+
"@syncfusion/ej2-base": "~20.1.48",
|
|
51
51
|
"@syncfusion/ej2-buttons": "~20.1.47",
|
|
52
52
|
"@syncfusion/ej2-popups": "~20.1.47",
|
|
53
53
|
"@syncfusion/ej2-splitbuttons": "~20.1.47"
|
|
@@ -118,6 +118,6 @@
|
|
|
118
118
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/inputs"
|
|
119
119
|
},
|
|
120
120
|
"typings": "index.d.ts",
|
|
121
|
-
"version": "20.1.
|
|
121
|
+
"version": "20.1.48",
|
|
122
122
|
"sideEffects": false
|
|
123
123
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Property, Event, EmitType, EventHandler, L10n, setValue, getValue, isNullOrUndefined } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, detach, Internationalization, getUniqueID, closest } from '@syncfusion/ej2-base';import { addClass, removeClass } from '@syncfusion/ej2-base';import { FloatLabelType, Input, InputObject } from '../input/input';
|
|
1
|
+
import { Component, Property, Event, EmitType, EventHandler, L10n, setValue, getValue, isNullOrUndefined, Browser } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, detach, Internationalization, getUniqueID, closest } from '@syncfusion/ej2-base';import { addClass, removeClass } from '@syncfusion/ej2-base';import { FloatLabelType, Input, InputObject } from '../input/input';
|
|
2
2
|
import {ChangedEventArgs,FocusOutEventArgs,FocusInEventArgs,InputEventArgs} from "./textbox";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
package/src/textbox/textbox.js
CHANGED
|
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
17
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
-
import { Component, Property, Event, EventHandler, L10n, setValue, getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
20
|
+
import { Component, Property, Event, EventHandler, L10n, setValue, getValue, isNullOrUndefined, Browser } from '@syncfusion/ej2-base';
|
|
21
21
|
import { NotifyPropertyChanges, detach, Internationalization, getUniqueID, closest } from '@syncfusion/ej2-base';
|
|
22
22
|
import { addClass, removeClass } from '@syncfusion/ej2-base';
|
|
23
23
|
import { Input } from '../input/input';
|
|
@@ -193,6 +193,9 @@ var TextBox = /** @class */ (function (_super) {
|
|
|
193
193
|
}
|
|
194
194
|
this.updateHTMLAttrToElement();
|
|
195
195
|
this.checkAttributes(false);
|
|
196
|
+
if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['value'] === undefined)) && this.element.value !== '') {
|
|
197
|
+
this.setProperties({ value: this.element.value }, true);
|
|
198
|
+
}
|
|
196
199
|
if (this.element.tagName !== 'TEXTAREA') {
|
|
197
200
|
this.element.setAttribute('type', this.type);
|
|
198
201
|
}
|
|
@@ -490,6 +493,10 @@ var TextBox = /** @class */ (function (_super) {
|
|
|
490
493
|
this.preventChange = false;
|
|
491
494
|
this.trigger('change', eventArgs);
|
|
492
495
|
this.previousValue = this.value;
|
|
496
|
+
//EJ2CORE-738:For this task we update the textarea value to the input when input tag with multiline is present
|
|
497
|
+
if (this.element.tagName === 'INPUT' && this.multiline && Browser.info.name === 'mozilla') {
|
|
498
|
+
this.element.value = this.respectiveElement.value;
|
|
499
|
+
}
|
|
493
500
|
};
|
|
494
501
|
TextBox.prototype.bindClearEvent = function () {
|
|
495
502
|
if (this.showClearButton && this.respectiveElement.tagName !== 'TEXTAREA') {
|
package/src/uploader/uploader.js
CHANGED
|
@@ -1588,16 +1588,18 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
1588
1588
|
fileList.classList.add(INVALID_FILE);
|
|
1589
1589
|
};
|
|
1590
1590
|
Uploader.prototype.createFormInput = function (fileData) {
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
var
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
this.
|
|
1591
|
+
if (this.browserName !== 'safari') {
|
|
1592
|
+
var inputElement = this.element.cloneNode(true);
|
|
1593
|
+
inputElement.classList.add(HIDDEN_INPUT);
|
|
1594
|
+
for (var _i = 0, fileData_3 = fileData; _i < fileData_3.length; _i++) {
|
|
1595
|
+
var listItem = fileData_3[_i];
|
|
1596
|
+
listItem.input = inputElement;
|
|
1597
|
+
}
|
|
1598
|
+
inputElement.setAttribute('name', this.uploaderName);
|
|
1599
|
+
this.uploadWrapper.querySelector('.' + INPUT_WRAPPER).appendChild(inputElement);
|
|
1600
|
+
if (this.browserName !== 'msie' && this.browserName !== 'edge') {
|
|
1601
|
+
this.element.value = '';
|
|
1602
|
+
}
|
|
1601
1603
|
}
|
|
1602
1604
|
};
|
|
1603
1605
|
Uploader.prototype.getFileSize = function (fileData) {
|