@evotor-dev/ui-kit 8.19.0 → 8.21.0

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.
@@ -1245,7 +1245,14 @@ class EvoInputComponent extends EvoBaseControl {
1245
1245
  event.stopPropagation();
1246
1246
  }
1247
1247
  onClear() {
1248
- this.writeValue('');
1248
+ if (this.mask) {
1249
+ this.maskValue = '';
1250
+ }
1251
+ else {
1252
+ this.writeToElement('');
1253
+ }
1254
+ this.onChange('');
1255
+ this.changeDetector.markForCheck();
1249
1256
  }
1250
1257
  hideTooltip() {
1251
1258
  this.tooltipVisibilityTimeout = true;
@@ -1271,6 +1278,12 @@ class EvoInputComponent extends EvoBaseControl {
1271
1278
  this.value = value;
1272
1279
  }
1273
1280
  }
1281
+ validate() {
1282
+ if (this.maskValidation && this.mask && !this.iMask.masked.isComplete) {
1283
+ return { mask: true };
1284
+ }
1285
+ return null;
1286
+ }
1274
1287
  // eslint-disable-next-line
1275
1288
  removePrefix(value) {
1276
1289
  if (typeof value === 'string' && value.indexOf(this.prefix) === 0) {
@@ -1294,12 +1307,6 @@ class EvoInputComponent extends EvoBaseControl {
1294
1307
  this.customTooltipChecked = true;
1295
1308
  this.changeDetector.detectChanges();
1296
1309
  }
1297
- validate() {
1298
- if (this.maskValidation && this.mask && !this.iMask.masked.isComplete) {
1299
- return { mask: true };
1300
- }
1301
- return null;
1302
- }
1303
1310
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: EvoInputComponent, deps: [{ token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: COMPOSITION_BUFFER_MODE, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
1304
1311
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.10", type: EvoInputComponent, isStandalone: true, selector: "evo-input", inputs: { autoFocus: "autoFocus", dataCp: ["data-cp", "dataCp"], icon: "icon", mask: "mask", placeholder: "placeholder", tooltip: "tooltip", type: "type", disabled: "disabled", loading: "loading", prefix: "prefix", autocomplete: "autocomplete", inputDebounce: "inputDebounce", unmask: "unmask", clearable: "clearable", maskValidation: "maskValidation", setValue: ["value", "setValue"], setSize: ["size", "setSize"], setTheme: ["theme", "setTheme"] }, outputs: { blur: "blur", onFocus: "onFocus" }, providers: [
1305
1312
  {