@syncfusion/ej2-inputs 33.1.44 → 33.1.49
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 +37 -17
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +37 -17
- 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 +4 -4
- package/src/maskedtextbox/maskedtextbox/maskedtextbox.js +12 -8
- package/src/numerictextbox/numerictextbox.js +3 -1
- package/src/textarea/textarea.js +3 -1
- package/src/textbox/textbox.js +10 -5
- package/src/uploader/uploader.js +9 -2
- package/styles/bootstrap5.3-lite.css +8 -8
- package/styles/bootstrap5.3.css +8 -8
- package/styles/input/_bootstrap5.3-definition.scss +3 -3
- package/styles/input/bootstrap5.3.css +8 -8
|
@@ -2413,7 +2413,9 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
2413
2413
|
floatLabelType: this.floatLabelType,
|
|
2414
2414
|
properties: this.properties
|
|
2415
2415
|
}, this.clearButton);
|
|
2416
|
-
|
|
2416
|
+
if (this.element.tagName === 'EJS-NUMERICTEXTBOX') {
|
|
2417
|
+
setValue('ej2_instances', null, this.element);
|
|
2418
|
+
}
|
|
2417
2419
|
_super.prototype.destroy.call(this);
|
|
2418
2420
|
};
|
|
2419
2421
|
/**
|
|
@@ -4217,13 +4219,15 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
4217
4219
|
var prop = _a[_i];
|
|
4218
4220
|
switch (prop) {
|
|
4219
4221
|
case 'value':
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
this.
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
this.
|
|
4226
|
-
|
|
4222
|
+
if (newProp.value !== oldProp.value) {
|
|
4223
|
+
setMaskValue.call(this, this.value);
|
|
4224
|
+
if (this.placeholder && !this.isFocus) {
|
|
4225
|
+
this.setMaskPlaceholder(false, false);
|
|
4226
|
+
}
|
|
4227
|
+
if (this.value === '' && oldProp.value != null) {
|
|
4228
|
+
this.element.selectionStart = 0;
|
|
4229
|
+
this.element.selectionEnd = 0;
|
|
4230
|
+
}
|
|
4227
4231
|
}
|
|
4228
4232
|
break;
|
|
4229
4233
|
case 'placeholder':
|
|
@@ -4484,7 +4488,9 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
4484
4488
|
}, this.clearButton);
|
|
4485
4489
|
this.changeEventArgs = null;
|
|
4486
4490
|
this.inputObj = null;
|
|
4487
|
-
|
|
4491
|
+
if (this.element.tagName === 'EJS-MASKEDTEXTBOX') {
|
|
4492
|
+
setValue('ej2_instances', null, this.element);
|
|
4493
|
+
}
|
|
4488
4494
|
_super.prototype.destroy.call(this);
|
|
4489
4495
|
};
|
|
4490
4496
|
__decorate$1([
|
|
@@ -8961,7 +8967,12 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
|
|
|
8961
8967
|
}
|
|
8962
8968
|
}
|
|
8963
8969
|
if (isNullOrUndefined(this.element.getAttribute('name'))) {
|
|
8964
|
-
this.element.
|
|
8970
|
+
if (!isNullOrUndefined(this.element.getAttribute('id')) && this.element.getAttribute('id') !== '') {
|
|
8971
|
+
this.element.setAttribute('name', this.element.getAttribute('id'));
|
|
8972
|
+
}
|
|
8973
|
+
else {
|
|
8974
|
+
this.element.setAttribute('name', 'UploadFiles');
|
|
8975
|
+
}
|
|
8965
8976
|
}
|
|
8966
8977
|
if (!this.element.hasAttribute('type')) {
|
|
8967
8978
|
this.element.setAttribute('type', 'file');
|
|
@@ -11657,7 +11668,9 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
|
|
|
11657
11668
|
this.keyboardModule = null;
|
|
11658
11669
|
this.clearButton = null;
|
|
11659
11670
|
this.uploadButton = null;
|
|
11660
|
-
|
|
11671
|
+
if (this.element.tagName === 'EJS-UPLOADER') {
|
|
11672
|
+
setValue('ej2_instances', null, this.element);
|
|
11673
|
+
}
|
|
11661
11674
|
_super.prototype.destroy.call(this);
|
|
11662
11675
|
};
|
|
11663
11676
|
/**
|
|
@@ -14487,10 +14500,13 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
14487
14500
|
Input.updateCssClass(newProp.cssClass, oldProp.cssClass, this.textboxWrapper.container);
|
|
14488
14501
|
break;
|
|
14489
14502
|
case 'locale':
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
|
|
14493
|
-
|
|
14503
|
+
{
|
|
14504
|
+
this.globalize = new Internationalization(this.locale);
|
|
14505
|
+
this.l10n.setLocale(this.locale);
|
|
14506
|
+
var currentPlaceholder = (this.l10n.getConstant('placeholder') === '' ? this.placeholder : this.l10n.getConstant('placeholder'));
|
|
14507
|
+
this.setProperties({ placeholder: currentPlaceholder }, true);
|
|
14508
|
+
Input.setPlaceholder(this.placeholder, this.respectiveElement);
|
|
14509
|
+
}
|
|
14494
14510
|
break;
|
|
14495
14511
|
case 'prependTemplate':
|
|
14496
14512
|
this.updatePrependTemplate();
|
|
@@ -15037,7 +15053,9 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
15037
15053
|
floatLabelType: this.floatLabelType,
|
|
15038
15054
|
properties: this.properties
|
|
15039
15055
|
}, this.clearButton);
|
|
15040
|
-
|
|
15056
|
+
if (this.element.tagName === 'EJS-TEXTBOX') {
|
|
15057
|
+
setValue('ej2_instances', null, this.element);
|
|
15058
|
+
}
|
|
15041
15059
|
_super.prototype.destroy.call(this);
|
|
15042
15060
|
};
|
|
15043
15061
|
/**
|
|
@@ -15760,7 +15778,9 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
|
|
|
15760
15778
|
properties: this.properties
|
|
15761
15779
|
}, this.clearButton);
|
|
15762
15780
|
this.formElement = null;
|
|
15763
|
-
|
|
15781
|
+
if (this.element.tagName === 'EJS-TEXTAREA' || this.element.tagName === 'EJS-SMARTTEXTAREA') {
|
|
15782
|
+
setValue('ej2_instances', null, this.element);
|
|
15783
|
+
}
|
|
15764
15784
|
_super.prototype.destroy.call(this);
|
|
15765
15785
|
};
|
|
15766
15786
|
TextArea.prototype.focusHandler = function (args) {
|