@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
|
@@ -1235,7 +1235,7 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1235
1235
|
};
|
|
1236
1236
|
NumericTextBox.prototype.resetHandler = function (e) {
|
|
1237
1237
|
e.preventDefault();
|
|
1238
|
-
if (!(this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide'))) {
|
|
1238
|
+
if (!(this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide')) || this.inputWrapper.container.classList.contains('e-static-clear')) {
|
|
1239
1239
|
this.clear(e);
|
|
1240
1240
|
}
|
|
1241
1241
|
this.isInteract = true;
|
|
@@ -1481,6 +1481,11 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1481
1481
|
if (this.isVue) {
|
|
1482
1482
|
var current = this.instance.getNumberParser({ format: 'n' })(this.element.value);
|
|
1483
1483
|
var previous = this.instance.getNumberParser({ format: 'n' })(this.elementPrevValue);
|
|
1484
|
+
//EJ2-54963-if type "." or ".0" or "-.0" it converts to "0" automatically when binding v-model
|
|
1485
|
+
var nonZeroRegex = new RegExp('[^1-9]+$');
|
|
1486
|
+
if (nonZeroRegex.test(this.element.value)) {
|
|
1487
|
+
current = this.value;
|
|
1488
|
+
}
|
|
1484
1489
|
var eventArgs = {
|
|
1485
1490
|
event: event,
|
|
1486
1491
|
value: (current === null || isNaN(current) ? null : current),
|
|
@@ -2339,7 +2344,7 @@ function bindClearEvent() {
|
|
|
2339
2344
|
}
|
|
2340
2345
|
function resetHandler(e) {
|
|
2341
2346
|
e.preventDefault();
|
|
2342
|
-
if (!this.inputObj.clearButton.classList.contains('e-clear-icon-hide')) {
|
|
2347
|
+
if (!this.inputObj.clearButton.classList.contains('e-clear-icon-hide') || (this.inputObj.container.classList.contains('e-static-clear'))) {
|
|
2343
2348
|
clear.call(this, e);
|
|
2344
2349
|
this.value = '';
|
|
2345
2350
|
}
|
|
@@ -11230,6 +11235,7 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
11230
11235
|
target: this.container,
|
|
11231
11236
|
disabled: this.disabled,
|
|
11232
11237
|
enableRtl: this.enableRtl,
|
|
11238
|
+
createPopupOnClick: this.createPopupOnClick,
|
|
11233
11239
|
open: this.onOpen.bind(this),
|
|
11234
11240
|
click: function () {
|
|
11235
11241
|
_this.trigger('change', {
|
|
@@ -12377,7 +12383,12 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12377
12383
|
if (!this.showButtons && !isKey) {
|
|
12378
12384
|
this.trigger('change', { currentValue: { hex: hex, rgba: rgba },
|
|
12379
12385
|
previousValue: { hex: this.value.slice(0, 7), rgba: this.convertToRgbString(this.hexToRgb(this.value)) }, value: cValue });
|
|
12380
|
-
this.
|
|
12386
|
+
if (this.enableOpacity) {
|
|
12387
|
+
this.setProperties({ 'value': cValue }, true);
|
|
12388
|
+
}
|
|
12389
|
+
else {
|
|
12390
|
+
this.setProperties({ 'value': hex }, true);
|
|
12391
|
+
}
|
|
12381
12392
|
this.element.value = hex ? hex : '#000000';
|
|
12382
12393
|
}
|
|
12383
12394
|
else {
|
|
@@ -12899,6 +12910,9 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12899
12910
|
__decorate$5([
|
|
12900
12911
|
Property(true)
|
|
12901
12912
|
], ColorPicker.prototype, "enableOpacity", void 0);
|
|
12913
|
+
__decorate$5([
|
|
12914
|
+
Property(false)
|
|
12915
|
+
], ColorPicker.prototype, "createPopupOnClick", void 0);
|
|
12902
12916
|
__decorate$5([
|
|
12903
12917
|
Event()
|
|
12904
12918
|
], ColorPicker.prototype, "select", void 0);
|
|
@@ -13437,7 +13451,7 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
13437
13451
|
};
|
|
13438
13452
|
TextBox.prototype.resetInputHandler = function (event) {
|
|
13439
13453
|
event.preventDefault();
|
|
13440
|
-
if (!(this.textboxWrapper.clearButton.classList.contains(HIDE_CLEAR))) {
|
|
13454
|
+
if (!(this.textboxWrapper.clearButton.classList.contains(HIDE_CLEAR)) || this.textboxWrapper.container.classList.contains('e-static-clear')) {
|
|
13441
13455
|
Input.setValue('', this.respectiveElement, this.floatLabelType, this.showClearButton);
|
|
13442
13456
|
if (this.isHiddenInput) {
|
|
13443
13457
|
this.element.value = this.respectiveElement.value;
|