@syncfusion/ej2-inputs 20.4.48 → 20.4.51
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/CHANGELOG.md +2 -0
- package/GitLeaksReport.json +42 -0
- 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 +8 -3
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +8 -3
- 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/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
- package/package.json +9 -9
- package/src/input/input.d.ts +1 -1
- package/src/input/input.js +2 -2
- package/src/uploader/uploader.js +6 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.4.
|
|
3
|
+
* version : 20.4.51
|
|
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
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-inputs@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-inputs@20.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-inputs@20.4.48",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-FRWDUwkYLJk9gnXe6Vl0eipQzrAurV1MkwWdl4gHD4SSwy0d04AaDO9ppCIUIAQieC+enqNzIlfgaKfhx0AHWw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-inputs",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"/@syncfusion/ej2-schedule",
|
|
40
40
|
"/@syncfusion/ej2-vue-inputs"
|
|
41
41
|
],
|
|
42
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-20.4.
|
|
43
|
-
"_shasum": "
|
|
42
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-20.4.48.tgz",
|
|
43
|
+
"_shasum": "536c3e9c1ad5374b53999855749003f596899ba4",
|
|
44
44
|
"_spec": "@syncfusion/ej2-inputs@*",
|
|
45
45
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
46
46
|
"author": {
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
},
|
|
49
49
|
"bundleDependencies": false,
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@syncfusion/ej2-base": "~20.4.
|
|
52
|
-
"@syncfusion/ej2-buttons": "~20.4.
|
|
53
|
-
"@syncfusion/ej2-popups": "~20.4.
|
|
54
|
-
"@syncfusion/ej2-splitbuttons": "~20.4.
|
|
51
|
+
"@syncfusion/ej2-base": "~20.4.51",
|
|
52
|
+
"@syncfusion/ej2-buttons": "~20.4.50",
|
|
53
|
+
"@syncfusion/ej2-popups": "~20.4.51",
|
|
54
|
+
"@syncfusion/ej2-splitbuttons": "~20.4.50"
|
|
55
55
|
},
|
|
56
56
|
"deprecated": false,
|
|
57
57
|
"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.",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/inputs"
|
|
120
120
|
},
|
|
121
121
|
"typings": "index.d.ts",
|
|
122
|
-
"version": "20.4.
|
|
122
|
+
"version": "20.4.51",
|
|
123
123
|
"sideEffects": false,
|
|
124
124
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
125
125
|
}
|
package/src/input/input.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare namespace Input {
|
|
|
51
51
|
* @param {any} element - Input element which is need to add.
|
|
52
52
|
* @param {HTMLElement} container - The parent element which is need to get the label span to calculate width
|
|
53
53
|
*/
|
|
54
|
-
function calculateWidth(element: any, container: HTMLElement): void;
|
|
54
|
+
function calculateWidth(element: any, container: HTMLElement, moduleName?: string): void;
|
|
55
55
|
/**
|
|
56
56
|
* Set the width to the wrapper of input element.
|
|
57
57
|
* ```
|
package/src/input/input.js
CHANGED
|
@@ -430,8 +430,8 @@ export var Input;
|
|
|
430
430
|
* @param {any} element - Input element which is need to add.
|
|
431
431
|
* @param {HTMLElement} container - The parent element which is need to get the label span to calculate width
|
|
432
432
|
*/
|
|
433
|
-
function calculateWidth(element, container) {
|
|
434
|
-
var elementWidth = element.clientWidth - parseInt(getComputedStyle(element, null).getPropertyValue('padding-left'));
|
|
433
|
+
function calculateWidth(element, container, moduleName) {
|
|
434
|
+
var elementWidth = moduleName === 'multiselect' ? element : element.clientWidth - parseInt(getComputedStyle(element, null).getPropertyValue('padding-left'));
|
|
435
435
|
if (!isNullOrUndefined(container.getElementsByClassName('e-float-text-content')[0])) {
|
|
436
436
|
if (container.getElementsByClassName('e-float-text-content')[0].classList.contains('e-float-text-overflow')) {
|
|
437
437
|
container.getElementsByClassName('e-float-text-content')[0].classList.remove('e-float-text-overflow');
|
package/src/uploader/uploader.js
CHANGED
|
@@ -337,7 +337,12 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
337
337
|
var inputElement = this.createElement('input', { attrs: { type: 'file' } });
|
|
338
338
|
var index = 0;
|
|
339
339
|
for (index; index < this.element.attributes.length; index++) {
|
|
340
|
-
|
|
340
|
+
if (this.element.attributes[index].nodeName !== 'id') {
|
|
341
|
+
inputElement.setAttribute(this.element.attributes[index].nodeName, this.element.attributes[index].nodeValue);
|
|
342
|
+
}
|
|
343
|
+
else if (this.element.attributes[index].nodeName === 'id') {
|
|
344
|
+
inputElement.setAttribute(this.element.attributes[index].nodeName, getUniqueID('uploader'));
|
|
345
|
+
}
|
|
341
346
|
inputElement.innerHTML = this.element.innerHTML;
|
|
342
347
|
}
|
|
343
348
|
if (!inputElement.hasAttribute('name')) {
|