@syncfusion/ej2-inputs 21.1.38 → 21.2.3
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 +14 -2
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +14 -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 +10 -13
- 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/uploader/uploader.js +1 -0
- 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) {
|
|
@@ -9175,6 +9181,7 @@ let Uploader = class Uploader extends Component {
|
|
|
9175
9181
|
for (const listItem of fileData) {
|
|
9176
9182
|
listItem.input = inputElement;
|
|
9177
9183
|
}
|
|
9184
|
+
inputElement.setAttribute('id', getUniqueID('hiddenUploader'));
|
|
9178
9185
|
inputElement.setAttribute('name', this.uploaderName);
|
|
9179
9186
|
this.uploadWrapper.querySelector('.' + INPUT_WRAPPER).appendChild(inputElement);
|
|
9180
9187
|
if (this.browserName !== 'msie' && this.browserName !== 'edge') {
|
|
@@ -12409,6 +12416,11 @@ let ColorPicker = class ColorPicker extends Component {
|
|
|
12409
12416
|
}
|
|
12410
12417
|
destroyOtherComp() {
|
|
12411
12418
|
if (this.isPicker()) {
|
|
12419
|
+
const popup = closest(this.hueSlider.element, '.e-color-picker');
|
|
12420
|
+
const numericElemColl = popup.querySelectorAll('.e-numerictextbox');
|
|
12421
|
+
for (let i = 0; i < numericElemColl.length; i++) {
|
|
12422
|
+
getInstance(numericElemColl[i], NumericTextBox).destroy();
|
|
12423
|
+
}
|
|
12412
12424
|
this.hueSlider.destroy();
|
|
12413
12425
|
if (this.enableOpacity) {
|
|
12414
12426
|
this.opacitySlider.destroy();
|