@syncfusion/ej2-inputs 35.1.42 → 35.2.12
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 +14 -1
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +14 -1
- 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 +5 -5
- package/src/input/input.js +8 -1
- package/src/numerictextbox/numerictextbox.js +6 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 35.
|
|
3
|
+
* version : 35.2.12
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-inputs",
|
|
3
|
-
"version": "35.
|
|
3
|
+
"version": "35.2.12",
|
|
4
4
|
"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.",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"es2015": "./dist/es6/ej2-inputs.es5.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@syncfusion/ej2-base": "~35.
|
|
12
|
-
"@syncfusion/ej2-buttons": "~35.
|
|
13
|
-
"@syncfusion/ej2-popups": "~35.
|
|
14
|
-
"@syncfusion/ej2-splitbuttons": "~35.
|
|
11
|
+
"@syncfusion/ej2-base": "~35.2.12",
|
|
12
|
+
"@syncfusion/ej2-buttons": "~35.2.12",
|
|
13
|
+
"@syncfusion/ej2-popups": "~35.2.12",
|
|
14
|
+
"@syncfusion/ej2-splitbuttons": "~35.2.12"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {},
|
|
17
17
|
"keywords": [
|
package/src/input/input.js
CHANGED
|
@@ -41,6 +41,10 @@ export var Input;
|
|
|
41
41
|
var observeElementDetach = function (element, container, resizeHandler) {
|
|
42
42
|
var parent = container.parentElement;
|
|
43
43
|
if (!parent) {
|
|
44
|
+
if (!isNullOrUndefined(resizeHandlers)) {
|
|
45
|
+
window.removeEventListener('resize', resizeHandler);
|
|
46
|
+
resizeHandlers.delete(element);
|
|
47
|
+
}
|
|
44
48
|
return;
|
|
45
49
|
}
|
|
46
50
|
var observer = new MutationObserver(function () {
|
|
@@ -485,6 +489,8 @@ export var Input;
|
|
|
485
489
|
if (!isNullOrUndefined(resizeHandlers)) {
|
|
486
490
|
var resizeHandler = resizeHandlers.get(args.element);
|
|
487
491
|
if (resizeHandler) {
|
|
492
|
+
window.removeEventListener('resize', resizeHandler);
|
|
493
|
+
resizeHandlers.delete(args.element);
|
|
488
494
|
var observer = mutationObservers.get(args.element);
|
|
489
495
|
if (observer) {
|
|
490
496
|
observer.disconnect();
|
|
@@ -885,7 +891,8 @@ export var Input;
|
|
|
885
891
|
if (!isNullOrUndefined(container) && container.classList.contains(CLASSNAMES.FLOATINPUT)) {
|
|
886
892
|
var inputEle = container.querySelector('textarea') ? container.querySelector('textarea') :
|
|
887
893
|
container.querySelector('input');
|
|
888
|
-
var
|
|
894
|
+
var floatTextElement = container.querySelector('.' + CLASSNAMES.FLOATTEXT);
|
|
895
|
+
var placeholder = floatTextElement ? floatTextElement.textContent : '';
|
|
889
896
|
var clearButton = container.querySelector('.e-clear-icon') !== null;
|
|
890
897
|
detach(container.querySelector('.' + CLASSNAMES.FLOATLINE));
|
|
891
898
|
detach(container.querySelector('.' + CLASSNAMES.FLOATTEXT));
|
|
@@ -472,12 +472,18 @@ var NumericTextBox = /** @class */ (function (_super) {
|
|
|
472
472
|
'title': this.l10n.getConstant('decrementTitle'),
|
|
473
473
|
'aria-label': this.l10n.getConstant('decrementTitle')
|
|
474
474
|
});
|
|
475
|
+
if (this.spinDown.getAttribute('aria-label')) {
|
|
476
|
+
this.spinDown.setAttribute('role', 'button');
|
|
477
|
+
}
|
|
475
478
|
}
|
|
476
479
|
if (!isNullOrUndefined(this.spinUp)) {
|
|
477
480
|
attributes(this.spinUp, {
|
|
478
481
|
'title': this.l10n.getConstant('incrementTitle'),
|
|
479
482
|
'aria-label': this.l10n.getConstant('incrementTitle')
|
|
480
483
|
});
|
|
484
|
+
if (this.spinUp.getAttribute('aria-label')) {
|
|
485
|
+
this.spinUp.setAttribute('role', 'button');
|
|
486
|
+
}
|
|
481
487
|
}
|
|
482
488
|
};
|
|
483
489
|
NumericTextBox.prototype.wireEvents = function () {
|