@syncfusion/ej2-inputs 25.2.3 → 25.2.6

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 25.2.3
3
+ * version : 25.2.6
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.1.42",
3
+ "_id": "@syncfusion/ej2-inputs@25.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-MOxKQSpV3ecnHR8gx6t9f2cRrfa/Q4SF5MmT04smz4D0kD76mYQh1mBwGWls2l/NFbKuiE5jcF6VpigRA3mUBg==",
5
+ "_integrity": "sha512-bCug5r0JnHfhZo8hMG0SidL07TuNOEZ+SbgAiyMqQWDtWvtvj6LvP8ZbbmbedLxKVoNjsc3w+1eEUWNdikJeOA==",
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.1.42.tgz",
43
- "_shasum": "7fc6edb18eb846ef9f6baa21550a4bfd51b39b71",
42
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-25.2.5.tgz",
43
+ "_shasum": "28df2106c4093b47cc3ad5645c2df96b844594c0",
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.2.3",
52
- "@syncfusion/ej2-buttons": "~25.2.3",
53
- "@syncfusion/ej2-popups": "~25.2.3",
54
- "@syncfusion/ej2-splitbuttons": "~25.2.3"
51
+ "@syncfusion/ej2-base": "~25.2.5",
52
+ "@syncfusion/ej2-buttons": "~25.2.6",
53
+ "@syncfusion/ej2-popups": "~25.2.6",
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.2.3",
122
+ "version": "25.2.6",
123
123
  "sideEffects": false,
124
124
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
125
125
  }
@@ -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, this);
889
- buttons[parseInt(index.toString())].removeEventListener('mouseup', _onMouseUpRipple, this);
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
  */
@@ -59,6 +59,7 @@ export declare class TextBox extends Component<HTMLInputElement | HTMLTextAreaEl
59
59
  private textboxOptions;
60
60
  private inputPreviousValue;
61
61
  private isVue;
62
+ private isReact;
62
63
  private clearButton;
63
64
  /**
64
65
  * Specifies the behavior of the TextBox such as text, password, email, etc.
@@ -50,6 +50,7 @@ var TextBox = /** @class */ (function (_super) {
50
50
  _this.isForm = false;
51
51
  _this.inputPreviousValue = null;
52
52
  _this.isVue = false;
53
+ _this.isReact = false;
53
54
  _this.textboxOptions = options;
54
55
  return _this;
55
56
  }
@@ -196,7 +197,7 @@ var TextBox = /** @class */ (function (_super) {
196
197
  if (this.element.tagName !== 'TEXTAREA') {
197
198
  this.element.setAttribute('type', this.type);
198
199
  }
199
- if (this.type === 'text') {
200
+ if (this.type === 'text' || (this.element.tagName === 'INPUT' && this.multiline && this.isReact)) {
200
201
  this.element.setAttribute('role', 'textbox');
201
202
  }
202
203
  this.globalize = new Internationalization(this.locale);