@syncfusion/ej2-inputs 19.3.44 → 19.3.57
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/.eslintrc.json +244 -0
- package/CHANGELOG.md +19 -0
- 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 +19 -5
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +18 -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-model.d.ts +7 -0
- package/src/color-picker/color-picker.d.ts +6 -0
- package/src/color-picker/color-picker.js +10 -1
- package/src/maskedtextbox/base/mask-base.js +1 -1
- package/src/numerictextbox/numerictextbox.js +6 -1
- package/src/textbox/textbox.js +1 -1
- package/tslint.json +111 -0
|
@@ -1211,7 +1211,7 @@ let NumericTextBox = class NumericTextBox extends Component {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
resetHandler(e) {
|
|
1213
1213
|
e.preventDefault();
|
|
1214
|
-
if (!(this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide'))) {
|
|
1214
|
+
if (!(this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide')) || this.inputWrapper.container.classList.contains('e-static-clear')) {
|
|
1215
1215
|
this.clear(e);
|
|
1216
1216
|
}
|
|
1217
1217
|
this.isInteract = true;
|
|
@@ -1453,8 +1453,13 @@ let NumericTextBox = class NumericTextBox extends Component {
|
|
|
1453
1453
|
this.preventChange = true;
|
|
1454
1454
|
}
|
|
1455
1455
|
if (this.isVue) {
|
|
1456
|
-
|
|
1456
|
+
let current = this.instance.getNumberParser({ format: 'n' })(this.element.value);
|
|
1457
1457
|
const previous = this.instance.getNumberParser({ format: 'n' })(this.elementPrevValue);
|
|
1458
|
+
//EJ2-54963-if type "." or ".0" or "-.0" it converts to "0" automatically when binding v-model
|
|
1459
|
+
const nonZeroRegex = new RegExp('[^1-9]+$');
|
|
1460
|
+
if (nonZeroRegex.test(this.element.value)) {
|
|
1461
|
+
current = this.value;
|
|
1462
|
+
}
|
|
1458
1463
|
const eventArgs = {
|
|
1459
1464
|
event: event,
|
|
1460
1465
|
value: (current === null || isNaN(current) ? null : current),
|
|
@@ -2306,7 +2311,7 @@ function bindClearEvent() {
|
|
|
2306
2311
|
}
|
|
2307
2312
|
function resetHandler(e) {
|
|
2308
2313
|
e.preventDefault();
|
|
2309
|
-
if (!this.inputObj.clearButton.classList.contains('e-clear-icon-hide')) {
|
|
2314
|
+
if (!this.inputObj.clearButton.classList.contains('e-clear-icon-hide') || (this.inputObj.container.classList.contains('e-static-clear'))) {
|
|
2310
2315
|
clear.call(this, e);
|
|
2311
2316
|
this.value = '';
|
|
2312
2317
|
}
|
|
@@ -10990,6 +10995,7 @@ let ColorPicker = class ColorPicker extends Component {
|
|
|
10990
10995
|
target: this.container,
|
|
10991
10996
|
disabled: this.disabled,
|
|
10992
10997
|
enableRtl: this.enableRtl,
|
|
10998
|
+
createPopupOnClick: this.createPopupOnClick,
|
|
10993
10999
|
open: this.onOpen.bind(this),
|
|
10994
11000
|
click: () => {
|
|
10995
11001
|
this.trigger('change', {
|
|
@@ -12128,7 +12134,12 @@ let ColorPicker = class ColorPicker extends Component {
|
|
|
12128
12134
|
if (!this.showButtons && !isKey) {
|
|
12129
12135
|
this.trigger('change', { currentValue: { hex: hex, rgba: rgba },
|
|
12130
12136
|
previousValue: { hex: this.value.slice(0, 7), rgba: this.convertToRgbString(this.hexToRgb(this.value)) }, value: cValue });
|
|
12131
|
-
this.
|
|
12137
|
+
if (this.enableOpacity) {
|
|
12138
|
+
this.setProperties({ 'value': cValue }, true);
|
|
12139
|
+
}
|
|
12140
|
+
else {
|
|
12141
|
+
this.setProperties({ 'value': hex }, true);
|
|
12142
|
+
}
|
|
12132
12143
|
this.element.value = hex ? hex : '#000000';
|
|
12133
12144
|
}
|
|
12134
12145
|
else {
|
|
@@ -12644,6 +12655,9 @@ __decorate$5([
|
|
|
12644
12655
|
__decorate$5([
|
|
12645
12656
|
Property(true)
|
|
12646
12657
|
], ColorPicker.prototype, "enableOpacity", void 0);
|
|
12658
|
+
__decorate$5([
|
|
12659
|
+
Property(false)
|
|
12660
|
+
], ColorPicker.prototype, "createPopupOnClick", void 0);
|
|
12647
12661
|
__decorate$5([
|
|
12648
12662
|
Event()
|
|
12649
12663
|
], ColorPicker.prototype, "select", void 0);
|
|
@@ -13161,7 +13175,7 @@ let TextBox = class TextBox extends Component {
|
|
|
13161
13175
|
}
|
|
13162
13176
|
resetInputHandler(event) {
|
|
13163
13177
|
event.preventDefault();
|
|
13164
|
-
if (!(this.textboxWrapper.clearButton.classList.contains(HIDE_CLEAR))) {
|
|
13178
|
+
if (!(this.textboxWrapper.clearButton.classList.contains(HIDE_CLEAR)) || this.textboxWrapper.container.classList.contains('e-static-clear')) {
|
|
13165
13179
|
Input.setValue('', this.respectiveElement, this.floatLabelType, this.showClearButton);
|
|
13166
13180
|
if (this.isHiddenInput) {
|
|
13167
13181
|
this.element.value = this.respectiveElement.value;
|