novo-elements 9.3.0 → 9.3.1

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.
@@ -2641,6 +2641,7 @@ class NovoControlElement extends OutsideClick {
2641
2641
  methods: {
2642
2642
  restrictKeys: this.restrictKeys.bind(this),
2643
2643
  emitChange: this.emitChange.bind(this),
2644
+ handleSimpleTextInput: this.handleSimpleTextInput.bind(this),
2644
2645
  handleAccept: this.handleAccept.bind(this),
2645
2646
  handleFocus: this.handleFocus.bind(this),
2646
2647
  handlePercentChange: this.handlePercentChange.bind(this),
@@ -2839,7 +2840,7 @@ class NovoControlElement extends OutsideClick {
2839
2840
  this.formattedValue = null;
2840
2841
  }
2841
2842
  handleTextAreaInput(event) {
2842
- this.emitChange(event);
2843
+ this.emitChange(event.target.value);
2843
2844
  this.restrictKeys(event);
2844
2845
  }
2845
2846
  checkMaxLength(value) {
@@ -2922,11 +2923,16 @@ class NovoControlElement extends OutsideClick {
2922
2923
  }
2923
2924
  }
2924
2925
  }
2925
- emitChange(event) {
2926
- this.change.emit(event);
2927
- const value = typeof event === 'object' ? event.target.value : event;
2926
+ emitChange(value) {
2927
+ this.change.emit(value);
2928
2928
  this.checkMaxLength(value);
2929
2929
  }
2930
+ handleSimpleTextInput(event) {
2931
+ if (!this.control.textMaskEnabled) {
2932
+ this.emitChange(event.target.value);
2933
+ }
2934
+ // if we have maskOptions, inputs will be absorbed in handleAccept()
2935
+ }
2930
2936
  handleEdit(value) {
2931
2937
  this.edit.emit(value);
2932
2938
  }
@@ -4763,6 +4769,7 @@ NovoControlTemplates.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
4763
4769
  [id]="control.key"
4764
4770
  [type]="control?.type"
4765
4771
  [placeholder]="control?.placeholder"
4772
+ (input)="methods.handleSimpleTextInput($event)"
4766
4773
  (accept)="methods.handleAccept($event)"
4767
4774
  (focus)="methods.handleFocus($event)"
4768
4775
  (blur)="methods.handleBlur($event)"
@@ -5468,6 +5475,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
5468
5475
  [id]="control.key"
5469
5476
  [type]="control?.type"
5470
5477
  [placeholder]="control?.placeholder"
5478
+ (input)="methods.handleSimpleTextInput($event)"
5471
5479
  (accept)="methods.handleAccept($event)"
5472
5480
  (focus)="methods.handleFocus($event)"
5473
5481
  (blur)="methods.handleBlur($event)"