@syncfusion/ej2-inputs 21.1.39 → 21.2.4
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 +16 -4
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +16 -4
- 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/color-picker/color-picker.js +5 -0
- package/src/numerictextbox/numerictextbox.d.ts +1 -0
- package/src/numerictextbox/numerictextbox.js +8 -2
- package/src/slider/slider.js +1 -0
- package/src/textbox/textbox.js +2 -2
- package/styles/bootstrap-dark.css +0 -8
- package/styles/bootstrap.css +0 -8
- package/styles/bootstrap4.css +0 -8
- package/styles/bootstrap5-dark.css +0 -8
- package/styles/bootstrap5.css +0 -8
- package/styles/fabric-dark.css +0 -8
- package/styles/fabric.css +0 -8
- package/styles/fluent-dark.css +0 -8
- package/styles/fluent.css +0 -8
- package/styles/highcontrast-light.css +0 -8
- package/styles/highcontrast.css +0 -8
- package/styles/material-dark.css +0 -8
- package/styles/material.css +0 -8
- package/styles/rating/_bootstrap-dark-definition.scss +3 -4
- package/styles/rating/_bootstrap-definition.scss +3 -4
- package/styles/rating/_bootstrap4-definition.scss +3 -4
- package/styles/rating/_bootstrap5-definition.scss +0 -4
- package/styles/rating/_fabric-dark-definition.scss +3 -4
- package/styles/rating/_fabric-definition.scss +3 -4
- package/styles/rating/_fluent-definition.scss +0 -4
- package/styles/rating/_fusionnew-definition.scss +3 -4
- package/styles/rating/_highcontrast-definition.scss +3 -4
- package/styles/rating/_highcontrast-light-definition.scss +3 -4
- package/styles/rating/_layout.scss +0 -8
- package/styles/rating/_material-dark-definition.scss +3 -4
- package/styles/rating/_material-definition.scss +3 -4
- package/styles/rating/_tailwind-definition.scss +0 -4
- package/styles/rating/bootstrap-dark.css +0 -8
- package/styles/rating/bootstrap.css +0 -8
- package/styles/rating/bootstrap4.css +0 -8
- package/styles/rating/bootstrap5-dark.css +0 -8
- package/styles/rating/bootstrap5.css +0 -8
- package/styles/rating/fabric-dark.css +0 -8
- package/styles/rating/fabric.css +0 -8
- package/styles/rating/fluent-dark.css +0 -8
- package/styles/rating/fluent.css +0 -8
- package/styles/rating/highcontrast-light.css +0 -8
- package/styles/rating/highcontrast.css +0 -8
- package/styles/rating/material-dark.css +0 -8
- package/styles/rating/material.css +0 -8
- package/styles/rating/tailwind-dark.css +0 -8
- package/styles/rating/tailwind.css +0 -8
- package/styles/tailwind-dark.css +0 -8
- package/styles/tailwind.css +0 -8
|
@@ -1143,7 +1143,12 @@ let NumericTextBox = class NumericTextBox extends Component {
|
|
|
1143
1143
|
'validateHidden': 'true', 'class': HIDDENELEMENT } }));
|
|
1144
1144
|
this.inputName = this.inputName !== null ? this.inputName : this.element.id;
|
|
1145
1145
|
this.element.removeAttribute('name');
|
|
1146
|
-
|
|
1146
|
+
if (this.isAngular && this.angularTagName === 'EJS-NUMERICTEXTBOX' && this.cloneElement.id.length > 0) {
|
|
1147
|
+
attributes(this.hiddenInput, { 'name': this.cloneElement.id });
|
|
1148
|
+
}
|
|
1149
|
+
else {
|
|
1150
|
+
attributes(this.hiddenInput, { 'name': this.inputName });
|
|
1151
|
+
}
|
|
1147
1152
|
this.container.insertBefore(this.hiddenInput, this.container.childNodes[1]);
|
|
1148
1153
|
this.updateDataAttribute(false);
|
|
1149
1154
|
if (this.inputStyle !== null) {
|
|
@@ -1383,7 +1388,7 @@ let NumericTextBox = class NumericTextBox extends Component {
|
|
|
1383
1388
|
this.updateValue(parsedInput, event);
|
|
1384
1389
|
}
|
|
1385
1390
|
raiseChangeEvent(event) {
|
|
1386
|
-
if (this.prevValue !== this.value) {
|
|
1391
|
+
if (this.prevValue !== this.value || this.prevValue !== this.inputValue) {
|
|
1387
1392
|
const eventArgs = {};
|
|
1388
1393
|
this.changeEventArgs = { value: this.value, previousValue: this.prevValue, isInteracted: this.isInteract,
|
|
1389
1394
|
isInteraction: this.isInteract, event: event };
|
|
@@ -1598,6 +1603,7 @@ let NumericTextBox = class NumericTextBox extends Component {
|
|
|
1598
1603
|
value = this.roundNumber(value, this.decimals);
|
|
1599
1604
|
}
|
|
1600
1605
|
}
|
|
1606
|
+
this.inputValue = value;
|
|
1601
1607
|
this.changeValue(value === null || isNaN(value) ? null : this.strictMode ? this.trimValue(value) : value);
|
|
1602
1608
|
/* istanbul ignore next */
|
|
1603
1609
|
if (!this.isDynamicChange) {
|
|
@@ -6525,6 +6531,7 @@ let Slider = class Slider extends Component {
|
|
|
6525
6531
|
case 'tooltip':
|
|
6526
6532
|
if (!isNullOrUndefined(newProp.tooltip) && !isNullOrUndefined(oldProp.tooltip)) {
|
|
6527
6533
|
this.setTooltip(prop);
|
|
6534
|
+
this.wireEvents();
|
|
6528
6535
|
}
|
|
6529
6536
|
break;
|
|
6530
6537
|
case 'type':
|
|
@@ -12410,6 +12417,11 @@ let ColorPicker = class ColorPicker extends Component {
|
|
|
12410
12417
|
}
|
|
12411
12418
|
destroyOtherComp() {
|
|
12412
12419
|
if (this.isPicker()) {
|
|
12420
|
+
const popup = closest(this.hueSlider.element, '.e-color-picker');
|
|
12421
|
+
const numericElemColl = popup.querySelectorAll('.e-numerictextbox');
|
|
12422
|
+
for (let i = 0; i < numericElemColl.length; i++) {
|
|
12423
|
+
getInstance(numericElemColl[i], NumericTextBox).destroy();
|
|
12424
|
+
}
|
|
12413
12425
|
this.hueSlider.destroy();
|
|
12414
12426
|
if (this.enableOpacity) {
|
|
12415
12427
|
this.opacitySlider.destroy();
|
|
@@ -13006,7 +13018,7 @@ let TextBox = class TextBox extends Component {
|
|
|
13006
13018
|
this.updateHTMLAttrToElement();
|
|
13007
13019
|
this.updateHTMLAttrToWrapper();
|
|
13008
13020
|
this.checkAttributes(true);
|
|
13009
|
-
Input.validateInputType(this.textboxWrapper.container, this.element);
|
|
13021
|
+
this.multiline && !isNullOrUndefined(this.textarea) ? Input.validateInputType(this.textboxWrapper.container, this.textarea) : Input.validateInputType(this.textboxWrapper.container, this.element);
|
|
13010
13022
|
}
|
|
13011
13023
|
break;
|
|
13012
13024
|
case 'readonly':
|
|
@@ -13268,7 +13280,7 @@ let TextBox = class TextBox extends Component {
|
|
|
13268
13280
|
if (!isNullOrUndefined(this.htmlAttributes)) {
|
|
13269
13281
|
for (const key of Object.keys(this.htmlAttributes)) {
|
|
13270
13282
|
if (containerAttr.indexOf(key) < 0) {
|
|
13271
|
-
this.element.setAttribute(key, this.htmlAttributes[`${key}`]);
|
|
13283
|
+
this.multiline && !isNullOrUndefined(this.textarea) ? this.textarea.setAttribute(key, this.htmlAttributes[`${key}`]) : this.element.setAttribute(key, this.htmlAttributes[`${key}`]);
|
|
13272
13284
|
}
|
|
13273
13285
|
}
|
|
13274
13286
|
}
|