@syncfusion/ej2-inputs 25.1.42 → 25.2.5
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/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 +24 -2
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +24 -2
- 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 +9 -9
- package/src/input/input.js +24 -2
- package/src/numerictextbox/numerictextbox-model.d.ts +5 -0
- package/src/numerictextbox/numerictextbox.d.ts +5 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 25.
|
|
3
|
+
* version : 25.2.5
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@25.
|
|
3
|
+
"_id": "@syncfusion/ej2-inputs@25.2.3",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-CVu43DoE54Wc6i/zkl5XR95NiUZJGhcltqI4vH/vT7mn2pp4clqJOK/iLPSONtGSEDX9Cz8ioUZXqzdjik+cmg==",
|
|
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.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-25.
|
|
43
|
-
"_shasum": "
|
|
42
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-25.2.3.tgz",
|
|
43
|
+
"_shasum": "e8632f49feddb4a15c1fe7ffe48d362137d71e79",
|
|
44
44
|
"_spec": "@syncfusion/ej2-inputs@*",
|
|
45
45
|
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
|
|
46
46
|
"author": {
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
},
|
|
49
49
|
"bundleDependencies": false,
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@syncfusion/ej2-base": "~25.
|
|
52
|
-
"@syncfusion/ej2-buttons": "~25.
|
|
53
|
-
"@syncfusion/ej2-popups": "~25.
|
|
54
|
-
"@syncfusion/ej2-splitbuttons": "~25.
|
|
51
|
+
"@syncfusion/ej2-base": "~25.2.5",
|
|
52
|
+
"@syncfusion/ej2-buttons": "~25.2.4",
|
|
53
|
+
"@syncfusion/ej2-popups": "~25.2.4",
|
|
54
|
+
"@syncfusion/ej2-splitbuttons": "~25.2.4"
|
|
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": "25.
|
|
122
|
+
"version": "25.2.5",
|
|
123
123
|
"sideEffects": false,
|
|
124
124
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
125
125
|
}
|
package/src/input/input.js
CHANGED
|
@@ -455,6 +455,9 @@ export var Input;
|
|
|
455
455
|
if (args.properties.showClearButton) {
|
|
456
456
|
unWireClearBtnEvents(args.element, button);
|
|
457
457
|
}
|
|
458
|
+
if (!isNullOrUndefined(args.buttons)) {
|
|
459
|
+
_internalRipple(false, null, args.buttons);
|
|
460
|
+
}
|
|
458
461
|
unwireFloatingEvents(args.element);
|
|
459
462
|
if (!isNullOrUndefined(args.element)) {
|
|
460
463
|
delete args.element.__eventHandlers;
|
|
@@ -561,6 +564,9 @@ export var Input;
|
|
|
561
564
|
* @param {HTMLElement} container - The parent element which is need to get the label span to calculate width
|
|
562
565
|
*/
|
|
563
566
|
function calculateWidth(element, container, moduleName) {
|
|
567
|
+
if (moduleName !== 'multiselect' && !_isElementVisible(element)) {
|
|
568
|
+
return;
|
|
569
|
+
}
|
|
564
570
|
var elementWidth = moduleName === 'multiselect' ? element : element.clientWidth - parseInt(getComputedStyle(element, null).getPropertyValue('padding-left'), 10);
|
|
565
571
|
if (!isNullOrUndefined(container.getElementsByClassName('e-float-text-content')[0])) {
|
|
566
572
|
if (container.getElementsByClassName('e-float-text-content')[0].classList.contains('e-float-text-overflow')) {
|
|
@@ -885,8 +891,8 @@ export var Input;
|
|
|
885
891
|
}
|
|
886
892
|
else if (buttons.length > 0) {
|
|
887
893
|
for (var index = 0; index < buttons.length; index++) {
|
|
888
|
-
buttons[parseInt(index.toString())].removeEventListener('mousedown', _onMouseDownRipple
|
|
889
|
-
buttons[parseInt(index.toString())].removeEventListener('mouseup', _onMouseUpRipple
|
|
894
|
+
buttons[parseInt(index.toString())].removeEventListener('mousedown', _onMouseDownRipple);
|
|
895
|
+
buttons[parseInt(index.toString())].removeEventListener('mouseup', _onMouseUpRipple);
|
|
890
896
|
}
|
|
891
897
|
}
|
|
892
898
|
}
|
|
@@ -895,6 +901,22 @@ export var Input;
|
|
|
895
901
|
button.classList.add('e-input-btn-ripple');
|
|
896
902
|
}
|
|
897
903
|
}
|
|
904
|
+
function _isElementVisible(element) {
|
|
905
|
+
if (!element) {
|
|
906
|
+
return false;
|
|
907
|
+
}
|
|
908
|
+
// Check if the element or any of its parents are hidden using display: none
|
|
909
|
+
var currentElement = element;
|
|
910
|
+
while (currentElement && currentElement !== document.body) {
|
|
911
|
+
var style = window.getComputedStyle(currentElement);
|
|
912
|
+
if (style.display === 'none') {
|
|
913
|
+
return false;
|
|
914
|
+
}
|
|
915
|
+
currentElement = currentElement.parentElement;
|
|
916
|
+
}
|
|
917
|
+
// If none of the elements have display: none, the element is considered visible
|
|
918
|
+
return true;
|
|
919
|
+
}
|
|
898
920
|
function _onMouseDownRipple() {
|
|
899
921
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
900
922
|
var ele = this;
|
|
@@ -201,6 +201,11 @@ export interface NumericTextBoxModel extends ComponentModel{
|
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
203
|
* Triggers when the value of the NumericTextBox changes.
|
|
204
|
+
* The change event of the NumericTextBox component will be triggered in the following scenarios:
|
|
205
|
+
* * Changing the previous value using keyboard interaction and then focusing out of the component.
|
|
206
|
+
* * Focusing on the component and scrolling within the input.
|
|
207
|
+
* * Changing the value using the spin buttons.
|
|
208
|
+
* * Programmatically changing the value using the value property.
|
|
204
209
|
*
|
|
205
210
|
* @event change
|
|
206
211
|
*/
|
|
@@ -227,6 +227,11 @@ export declare class NumericTextBox extends Component<HTMLInputElement> implemen
|
|
|
227
227
|
destroyed: EmitType<Object>;
|
|
228
228
|
/**
|
|
229
229
|
* Triggers when the value of the NumericTextBox changes.
|
|
230
|
+
* The change event of the NumericTextBox component will be triggered in the following scenarios:
|
|
231
|
+
* * Changing the previous value using keyboard interaction and then focusing out of the component.
|
|
232
|
+
* * Focusing on the component and scrolling within the input.
|
|
233
|
+
* * Changing the value using the spin buttons.
|
|
234
|
+
* * Programmatically changing the value using the value property.
|
|
230
235
|
*
|
|
231
236
|
* @event change
|
|
232
237
|
*/
|