@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
|
@@ -1165,7 +1165,12 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1165
1165
|
'validateHidden': 'true', 'class': HIDDENELEMENT } }));
|
|
1166
1166
|
this.inputName = this.inputName !== null ? this.inputName : this.element.id;
|
|
1167
1167
|
this.element.removeAttribute('name');
|
|
1168
|
-
|
|
1168
|
+
if (this.isAngular && this.angularTagName === 'EJS-NUMERICTEXTBOX' && this.cloneElement.id.length > 0) {
|
|
1169
|
+
attributes(this.hiddenInput, { 'name': this.cloneElement.id });
|
|
1170
|
+
}
|
|
1171
|
+
else {
|
|
1172
|
+
attributes(this.hiddenInput, { 'name': this.inputName });
|
|
1173
|
+
}
|
|
1169
1174
|
this.container.insertBefore(this.hiddenInput, this.container.childNodes[1]);
|
|
1170
1175
|
this.updateDataAttribute(false);
|
|
1171
1176
|
if (this.inputStyle !== null) {
|
|
@@ -1408,7 +1413,7 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1408
1413
|
this.updateValue(parsedInput, event);
|
|
1409
1414
|
};
|
|
1410
1415
|
NumericTextBox.prototype.raiseChangeEvent = function (event) {
|
|
1411
|
-
if (this.prevValue !== this.value) {
|
|
1416
|
+
if (this.prevValue !== this.value || this.prevValue !== this.inputValue) {
|
|
1412
1417
|
var eventArgs = {};
|
|
1413
1418
|
this.changeEventArgs = { value: this.value, previousValue: this.prevValue, isInteracted: this.isInteract,
|
|
1414
1419
|
isInteraction: this.isInteract, event: event };
|
|
@@ -1625,6 +1630,7 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1625
1630
|
value = this.roundNumber(value, this.decimals);
|
|
1626
1631
|
}
|
|
1627
1632
|
}
|
|
1633
|
+
this.inputValue = value;
|
|
1628
1634
|
this.changeValue(value === null || isNaN(value) ? null : this.strictMode ? this.trimValue(value) : value);
|
|
1629
1635
|
/* istanbul ignore next */
|
|
1630
1636
|
if (!this.isDynamicChange) {
|
|
@@ -6634,6 +6640,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
|
|
|
6634
6640
|
case 'tooltip':
|
|
6635
6641
|
if (!isNullOrUndefined(newProp.tooltip) && !isNullOrUndefined(oldProp.tooltip)) {
|
|
6636
6642
|
this.setTooltip(prop);
|
|
6643
|
+
this.wireEvents();
|
|
6637
6644
|
}
|
|
6638
6645
|
break;
|
|
6639
6646
|
case 'type':
|
|
@@ -12661,6 +12668,11 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12661
12668
|
};
|
|
12662
12669
|
ColorPicker.prototype.destroyOtherComp = function () {
|
|
12663
12670
|
if (this.isPicker()) {
|
|
12671
|
+
var popup = closest(this.hueSlider.element, '.e-color-picker');
|
|
12672
|
+
var numericElemColl = popup.querySelectorAll('.e-numerictextbox');
|
|
12673
|
+
for (var i = 0; i < numericElemColl.length; i++) {
|
|
12674
|
+
getInstance(numericElemColl[i], NumericTextBox).destroy();
|
|
12675
|
+
}
|
|
12664
12676
|
this.hueSlider.destroy();
|
|
12665
12677
|
if (this.enableOpacity) {
|
|
12666
12678
|
this.opacitySlider.destroy();
|
|
@@ -13280,7 +13292,7 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
13280
13292
|
this.updateHTMLAttrToElement();
|
|
13281
13293
|
this.updateHTMLAttrToWrapper();
|
|
13282
13294
|
this.checkAttributes(true);
|
|
13283
|
-
Input.validateInputType(this.textboxWrapper.container, this.element);
|
|
13295
|
+
this.multiline && !isNullOrUndefined(this.textarea) ? Input.validateInputType(this.textboxWrapper.container, this.textarea) : Input.validateInputType(this.textboxWrapper.container, this.element);
|
|
13284
13296
|
}
|
|
13285
13297
|
break;
|
|
13286
13298
|
case 'readonly':
|
|
@@ -13545,7 +13557,7 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
13545
13557
|
for (var _i = 0, _a = Object.keys(this.htmlAttributes); _i < _a.length; _i++) {
|
|
13546
13558
|
var key = _a[_i];
|
|
13547
13559
|
if (containerAttr.indexOf(key) < 0) {
|
|
13548
|
-
this.element.setAttribute(key, this.htmlAttributes["" + key]);
|
|
13560
|
+
this.multiline && !isNullOrUndefined(this.textarea) ? this.textarea.setAttribute(key, this.htmlAttributes["" + key]) : this.element.setAttribute(key, this.htmlAttributes["" + key]);
|
|
13549
13561
|
}
|
|
13550
13562
|
}
|
|
13551
13563
|
}
|