@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 33.1.
|
|
3
|
+
* version : 33.1.49
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-inputs",
|
|
3
|
-
"version": "33.1.
|
|
3
|
+
"version": "33.1.49",
|
|
4
4
|
"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.",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"es2015": "./dist/es6/ej2-inputs.es5.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@syncfusion/ej2-base": "~33.1.
|
|
12
|
-
"@syncfusion/ej2-buttons": "~33.1.
|
|
11
|
+
"@syncfusion/ej2-base": "~33.1.45",
|
|
12
|
+
"@syncfusion/ej2-buttons": "~33.1.49",
|
|
13
13
|
"@syncfusion/ej2-popups": "~33.1.44",
|
|
14
|
-
"@syncfusion/ej2-splitbuttons": "~33.1.
|
|
14
|
+
"@syncfusion/ej2-splitbuttons": "~33.1.49"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {},
|
|
17
17
|
"keywords": [
|
|
@@ -327,13 +327,15 @@ var MaskedTextBox = /** @class */ (function (_super) {
|
|
|
327
327
|
var prop = _a[_i];
|
|
328
328
|
switch (prop) {
|
|
329
329
|
case 'value':
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
this.
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
this.
|
|
336
|
-
|
|
330
|
+
if (newProp.value !== oldProp.value) {
|
|
331
|
+
setMaskValue.call(this, this.value);
|
|
332
|
+
if (this.placeholder && !this.isFocus) {
|
|
333
|
+
this.setMaskPlaceholder(false, false);
|
|
334
|
+
}
|
|
335
|
+
if (this.value === '' && oldProp.value != null) {
|
|
336
|
+
this.element.selectionStart = 0;
|
|
337
|
+
this.element.selectionEnd = 0;
|
|
338
|
+
}
|
|
337
339
|
}
|
|
338
340
|
break;
|
|
339
341
|
case 'placeholder':
|
|
@@ -594,7 +596,9 @@ var MaskedTextBox = /** @class */ (function (_super) {
|
|
|
594
596
|
}, this.clearButton);
|
|
595
597
|
this.changeEventArgs = null;
|
|
596
598
|
this.inputObj = null;
|
|
597
|
-
|
|
599
|
+
if (this.element.tagName === 'EJS-MASKEDTEXTBOX') {
|
|
600
|
+
setValue('ej2_instances', null, this.element);
|
|
601
|
+
}
|
|
598
602
|
_super.prototype.destroy.call(this);
|
|
599
603
|
};
|
|
600
604
|
__decorate([
|
|
@@ -1293,7 +1293,9 @@ var NumericTextBox = /** @class */ (function (_super) {
|
|
|
1293
1293
|
floatLabelType: this.floatLabelType,
|
|
1294
1294
|
properties: this.properties
|
|
1295
1295
|
}, this.clearButton);
|
|
1296
|
-
|
|
1296
|
+
if (this.element.tagName === 'EJS-NUMERICTEXTBOX') {
|
|
1297
|
+
setValue('ej2_instances', null, this.element);
|
|
1298
|
+
}
|
|
1297
1299
|
_super.prototype.destroy.call(this);
|
|
1298
1300
|
};
|
|
1299
1301
|
/**
|
package/src/textarea/textarea.js
CHANGED
|
@@ -537,7 +537,9 @@ var TextArea = /** @class */ (function (_super) {
|
|
|
537
537
|
properties: this.properties
|
|
538
538
|
}, this.clearButton);
|
|
539
539
|
this.formElement = null;
|
|
540
|
-
|
|
540
|
+
if (this.element.tagName === 'EJS-TEXTAREA' || this.element.tagName === 'EJS-SMARTTEXTAREA') {
|
|
541
|
+
setValue('ej2_instances', null, this.element);
|
|
542
|
+
}
|
|
541
543
|
_super.prototype.destroy.call(this);
|
|
542
544
|
};
|
|
543
545
|
TextArea.prototype.focusHandler = function (args) {
|
package/src/textbox/textbox.js
CHANGED
|
@@ -145,10 +145,13 @@ var TextBox = /** @class */ (function (_super) {
|
|
|
145
145
|
Input.updateCssClass(newProp.cssClass, oldProp.cssClass, this.textboxWrapper.container);
|
|
146
146
|
break;
|
|
147
147
|
case 'locale':
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
{
|
|
149
|
+
this.globalize = new Internationalization(this.locale);
|
|
150
|
+
this.l10n.setLocale(this.locale);
|
|
151
|
+
var currentPlaceholder = (this.l10n.getConstant('placeholder') === '' ? this.placeholder : this.l10n.getConstant('placeholder'));
|
|
152
|
+
this.setProperties({ placeholder: currentPlaceholder }, true);
|
|
153
|
+
Input.setPlaceholder(this.placeholder, this.respectiveElement);
|
|
154
|
+
}
|
|
152
155
|
break;
|
|
153
156
|
case 'prependTemplate':
|
|
154
157
|
this.updatePrependTemplate();
|
|
@@ -695,7 +698,9 @@ var TextBox = /** @class */ (function (_super) {
|
|
|
695
698
|
floatLabelType: this.floatLabelType,
|
|
696
699
|
properties: this.properties
|
|
697
700
|
}, this.clearButton);
|
|
698
|
-
|
|
701
|
+
if (this.element.tagName === 'EJS-TEXTBOX') {
|
|
702
|
+
setValue('ej2_instances', null, this.element);
|
|
703
|
+
}
|
|
699
704
|
_super.prototype.destroy.call(this);
|
|
700
705
|
};
|
|
701
706
|
/**
|
package/src/uploader/uploader.js
CHANGED
|
@@ -370,7 +370,12 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
if (isNullOrUndefined(this.element.getAttribute('name'))) {
|
|
373
|
-
this.element.
|
|
373
|
+
if (!isNullOrUndefined(this.element.getAttribute('id')) && this.element.getAttribute('id') !== '') {
|
|
374
|
+
this.element.setAttribute('name', this.element.getAttribute('id'));
|
|
375
|
+
}
|
|
376
|
+
else {
|
|
377
|
+
this.element.setAttribute('name', 'UploadFiles');
|
|
378
|
+
}
|
|
374
379
|
}
|
|
375
380
|
if (!this.element.hasAttribute('type')) {
|
|
376
381
|
this.element.setAttribute('type', 'file');
|
|
@@ -3068,7 +3073,9 @@ var Uploader = /** @class */ (function (_super) {
|
|
|
3068
3073
|
this.keyboardModule = null;
|
|
3069
3074
|
this.clearButton = null;
|
|
3070
3075
|
this.uploadButton = null;
|
|
3071
|
-
|
|
3076
|
+
if (this.element.tagName === 'EJS-UPLOADER') {
|
|
3077
|
+
setValue('ej2_instances', null, this.element);
|
|
3078
|
+
}
|
|
3072
3079
|
_super.prototype.destroy.call(this);
|
|
3073
3080
|
};
|
|
3074
3081
|
/**
|
|
@@ -2850,8 +2850,8 @@ textarea.e-input::selection,
|
|
|
2850
2850
|
.e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-warning).e-error,
|
|
2851
2851
|
.e-input-group:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error,
|
|
2852
2852
|
.e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error {
|
|
2853
|
-
-webkit-box-shadow: 0 0 0 4px rgba(
|
|
2854
|
-
box-shadow: 0 0 0 4px rgba(
|
|
2853
|
+
-webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-danger-shadow), 0.25);
|
|
2854
|
+
box-shadow: 0 0 0 4px rgba(var(--color-sf-danger-shadow), 0.25);
|
|
2855
2855
|
}
|
|
2856
2856
|
|
|
2857
2857
|
.e-input:focus:not(.e-error):not(.e-warning).e-success,
|
|
@@ -2861,8 +2861,8 @@ textarea.e-input::selection,
|
|
|
2861
2861
|
.e-float-input.e-control-wrapper:not(.e-error):not(.e-warning).e-success:not(.e-input-group) textarea:focus,
|
|
2862
2862
|
.e-float-input:not(.e-error):not(.e-warning).e-success:not(.e-input-group).e-input-focus input,
|
|
2863
2863
|
.e-float-input.e-control-wrapper:not(.e-error):not(.e-warning).e-success:not(.e-input-group).e-input-focus input {
|
|
2864
|
-
-webkit-box-shadow: 0 0 0 4px rgba(
|
|
2865
|
-
box-shadow: 0 0 0 4px rgba(
|
|
2864
|
+
-webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 0.25);
|
|
2865
|
+
box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 0.25);
|
|
2866
2866
|
}
|
|
2867
2867
|
|
|
2868
2868
|
.e-input:focus:not(.e-success):not(.e-error).e-warning,
|
|
@@ -2876,8 +2876,8 @@ textarea.e-input::selection,
|
|
|
2876
2876
|
.e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-error).e-warning,
|
|
2877
2877
|
.e-input-group:not(.e-disabled):active:not(.e-success):not(.e-error).e-warning,
|
|
2878
2878
|
.e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-error).e-warning {
|
|
2879
|
-
-webkit-box-shadow: 0 0 0 4px rgba(
|
|
2880
|
-
box-shadow: 0 0 0 4px rgba(
|
|
2879
|
+
-webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-warning-shadow), 0.25);
|
|
2880
|
+
box-shadow: 0 0 0 4px rgba(var(--color-sf-warning-shadow), 0.25);
|
|
2881
2881
|
}
|
|
2882
2882
|
|
|
2883
2883
|
.e-input-group:not(.e-success):not(.e-warning):not(.e-error) input.e-input:focus,
|
|
@@ -2902,8 +2902,8 @@ textarea.e-input::selection,
|
|
|
2902
2902
|
.e-input-group.e-control-wrapper.e-input-focus:not(.e-error):not(.e-warning).e-success,
|
|
2903
2903
|
.e-input-group:not(.e-disabled):active:not(.e-error):not(.e-warning).e-success,
|
|
2904
2904
|
.e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-error):not(.e-warning).e-success {
|
|
2905
|
-
-webkit-box-shadow: 0 0 0 4px rgba(
|
|
2906
|
-
box-shadow: 0 0 0 4px rgba(
|
|
2905
|
+
-webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 0.25);
|
|
2906
|
+
box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 0.25);
|
|
2907
2907
|
}
|
|
2908
2908
|
|
|
2909
2909
|
.e-input-group:not(.e-success):not(.e-warning):not(.e-error),
|
package/styles/bootstrap5.3.css
CHANGED
|
@@ -2850,8 +2850,8 @@ textarea.e-input::selection,
|
|
|
2850
2850
|
.e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-warning).e-error,
|
|
2851
2851
|
.e-input-group:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error,
|
|
2852
2852
|
.e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error {
|
|
2853
|
-
-webkit-box-shadow: 0 0 0 4px rgba(
|
|
2854
|
-
box-shadow: 0 0 0 4px rgba(
|
|
2853
|
+
-webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-danger-shadow), 0.25);
|
|
2854
|
+
box-shadow: 0 0 0 4px rgba(var(--color-sf-danger-shadow), 0.25);
|
|
2855
2855
|
}
|
|
2856
2856
|
|
|
2857
2857
|
.e-input:focus:not(.e-error):not(.e-warning).e-success,
|
|
@@ -2861,8 +2861,8 @@ textarea.e-input::selection,
|
|
|
2861
2861
|
.e-float-input.e-control-wrapper:not(.e-error):not(.e-warning).e-success:not(.e-input-group) textarea:focus,
|
|
2862
2862
|
.e-float-input:not(.e-error):not(.e-warning).e-success:not(.e-input-group).e-input-focus input,
|
|
2863
2863
|
.e-float-input.e-control-wrapper:not(.e-error):not(.e-warning).e-success:not(.e-input-group).e-input-focus input {
|
|
2864
|
-
-webkit-box-shadow: 0 0 0 4px rgba(
|
|
2865
|
-
box-shadow: 0 0 0 4px rgba(
|
|
2864
|
+
-webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 0.25);
|
|
2865
|
+
box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 0.25);
|
|
2866
2866
|
}
|
|
2867
2867
|
|
|
2868
2868
|
.e-input:focus:not(.e-success):not(.e-error).e-warning,
|
|
@@ -2876,8 +2876,8 @@ textarea.e-input::selection,
|
|
|
2876
2876
|
.e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-error).e-warning,
|
|
2877
2877
|
.e-input-group:not(.e-disabled):active:not(.e-success):not(.e-error).e-warning,
|
|
2878
2878
|
.e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-error).e-warning {
|
|
2879
|
-
-webkit-box-shadow: 0 0 0 4px rgba(
|
|
2880
|
-
box-shadow: 0 0 0 4px rgba(
|
|
2879
|
+
-webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-warning-shadow), 0.25);
|
|
2880
|
+
box-shadow: 0 0 0 4px rgba(var(--color-sf-warning-shadow), 0.25);
|
|
2881
2881
|
}
|
|
2882
2882
|
|
|
2883
2883
|
.e-input-group:not(.e-success):not(.e-warning):not(.e-error) input.e-input:focus,
|
|
@@ -2902,8 +2902,8 @@ textarea.e-input::selection,
|
|
|
2902
2902
|
.e-input-group.e-control-wrapper.e-input-focus:not(.e-error):not(.e-warning).e-success,
|
|
2903
2903
|
.e-input-group:not(.e-disabled):active:not(.e-error):not(.e-warning).e-success,
|
|
2904
2904
|
.e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-error):not(.e-warning).e-success {
|
|
2905
|
-
-webkit-box-shadow: 0 0 0 4px rgba(
|
|
2906
|
-
box-shadow: 0 0 0 4px rgba(
|
|
2905
|
+
-webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 0.25);
|
|
2906
|
+
box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 0.25);
|
|
2907
2907
|
}
|
|
2908
2908
|
|
|
2909
2909
|
.e-input-group:not(.e-success):not(.e-warning):not(.e-error),
|
|
@@ -193,9 +193,9 @@ $input-bigger-small-left-child-min-height: $zero-value !default;
|
|
|
193
193
|
$input-bigger-small-left-child-min-width: $zero-value !default;
|
|
194
194
|
$input-icon-inner-width: $zero-value !default;
|
|
195
195
|
$input-icon-inner-height: $zero-value !default;
|
|
196
|
-
$input-error-border-shadow: 0 0 0 4px rgba(
|
|
197
|
-
$input-success-border-shadow: 0 0 0 4px rgba(
|
|
198
|
-
$input-warning-border-shadow: 0 0 0 4px rgba(
|
|
196
|
+
$input-error-border-shadow: 0 0 0 4px rgba($danger-shadow, .25) !default;
|
|
197
|
+
$input-success-border-shadow: 0 0 0 4px rgba($success-shadow, .25) !default;
|
|
198
|
+
$input-warning-border-shadow: 0 0 0 4px rgba($warning-shadow, .25) !default;
|
|
199
199
|
$input-group-border-shadow: $shadow-sm !default;
|
|
200
200
|
|
|
201
201
|
// color
|
|
@@ -2672,8 +2672,8 @@ textarea.e-input::selection,
|
|
|
2672
2672
|
.e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-warning).e-error,
|
|
2673
2673
|
.e-input-group:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error,
|
|
2674
2674
|
.e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error {
|
|
2675
|
-
-webkit-box-shadow: 0 0 0 4px rgba(
|
|
2676
|
-
box-shadow: 0 0 0 4px rgba(
|
|
2675
|
+
-webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-danger-shadow), 0.25);
|
|
2676
|
+
box-shadow: 0 0 0 4px rgba(var(--color-sf-danger-shadow), 0.25);
|
|
2677
2677
|
}
|
|
2678
2678
|
|
|
2679
2679
|
.e-input:focus:not(.e-error):not(.e-warning).e-success,
|
|
@@ -2683,8 +2683,8 @@ textarea.e-input::selection,
|
|
|
2683
2683
|
.e-float-input.e-control-wrapper:not(.e-error):not(.e-warning).e-success:not(.e-input-group) textarea:focus,
|
|
2684
2684
|
.e-float-input:not(.e-error):not(.e-warning).e-success:not(.e-input-group).e-input-focus input,
|
|
2685
2685
|
.e-float-input.e-control-wrapper:not(.e-error):not(.e-warning).e-success:not(.e-input-group).e-input-focus input {
|
|
2686
|
-
-webkit-box-shadow: 0 0 0 4px rgba(
|
|
2687
|
-
box-shadow: 0 0 0 4px rgba(
|
|
2686
|
+
-webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 0.25);
|
|
2687
|
+
box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 0.25);
|
|
2688
2688
|
}
|
|
2689
2689
|
|
|
2690
2690
|
.e-input:focus:not(.e-success):not(.e-error).e-warning,
|
|
@@ -2698,8 +2698,8 @@ textarea.e-input::selection,
|
|
|
2698
2698
|
.e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-error).e-warning,
|
|
2699
2699
|
.e-input-group:not(.e-disabled):active:not(.e-success):not(.e-error).e-warning,
|
|
2700
2700
|
.e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-error).e-warning {
|
|
2701
|
-
-webkit-box-shadow: 0 0 0 4px rgba(
|
|
2702
|
-
box-shadow: 0 0 0 4px rgba(
|
|
2701
|
+
-webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-warning-shadow), 0.25);
|
|
2702
|
+
box-shadow: 0 0 0 4px rgba(var(--color-sf-warning-shadow), 0.25);
|
|
2703
2703
|
}
|
|
2704
2704
|
|
|
2705
2705
|
.e-input-group:not(.e-success):not(.e-warning):not(.e-error) input.e-input:focus,
|
|
@@ -2724,8 +2724,8 @@ textarea.e-input::selection,
|
|
|
2724
2724
|
.e-input-group.e-control-wrapper.e-input-focus:not(.e-error):not(.e-warning).e-success,
|
|
2725
2725
|
.e-input-group:not(.e-disabled):active:not(.e-error):not(.e-warning).e-success,
|
|
2726
2726
|
.e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-error):not(.e-warning).e-success {
|
|
2727
|
-
-webkit-box-shadow: 0 0 0 4px rgba(
|
|
2728
|
-
box-shadow: 0 0 0 4px rgba(
|
|
2727
|
+
-webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 0.25);
|
|
2728
|
+
box-shadow: 0 0 0 4px rgba(var(--color-sf-success-shadow), 0.25);
|
|
2729
2729
|
}
|
|
2730
2730
|
|
|
2731
2731
|
.e-input-group:not(.e-success):not(.e-warning):not(.e-error),
|