ecabs-components 0.0.40 → 0.0.41

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.
@@ -566,7 +566,9 @@ class EcabsInputComponent extends ElementBaseComponent {
566
566
  if (val !== undefined && this.val !== val) {
567
567
  this.val = val;
568
568
  this.onChange(val);
569
- this.onTouch(val);
569
+ if (this.getData()?.control?.updateOn !== 'blur') {
570
+ this.onTouch(val);
571
+ }
570
572
  }
571
573
  }
572
574
  ngOnInit() {
@@ -590,8 +592,13 @@ class EcabsInputComponent extends ElementBaseComponent {
590
592
  this.onTouch = fn;
591
593
  }
592
594
  blurChange(e) {
595
+ console.log(`2232`);
593
596
  this.onblur.emit(e);
594
597
  }
598
+ getUpdateOn() {
599
+ console.log(this.getData()?.control);
600
+ return { updateOn: this.getData()?.control?.updateOn ? this.getData().control.updateOn : 'change' };
601
+ }
595
602
  }
596
603
  EcabsInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EcabsInputComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
597
604
  EcabsInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: EcabsInputComponent, selector: "ecabs-input", inputs: { digitsOnly: "digitsOnly", allowDecimal: "allowDecimal", allowHyphen: "allowHyphen", max: "max", step: "step" }, outputs: { onblur: "onblur" }, providers: [