@c10t/nice-component-library 0.0.31 → 0.0.33

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.
@@ -4563,7 +4563,7 @@ class CvaMultiSelectAutocomplete {
4563
4563
  <input #searchInput type="text" [ngClass]="{'pl-1': !multiple}"
4564
4564
  (keydown.space)="$event.stopPropagation()"
4565
4565
  (input)="filterItem(searchInput.value)"
4566
- placeholder="{{'btnSearch' | translate}}...">
4566
+ placeholder="{{'btnSearch' | translate}}">
4567
4567
  <div class="box-search-icon" (click)="filterItem(''); searchInput.value = ''">
4568
4568
  <button mat-icon-button class="search-button">
4569
4569
  <mat-icon class="mat-24" aria-label="Search icon">clear</mat-icon>
@@ -4660,7 +4660,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
4660
4660
  <input #searchInput type="text" [ngClass]="{'pl-1': !multiple}"
4661
4661
  (keydown.space)="$event.stopPropagation()"
4662
4662
  (input)="filterItem(searchInput.value)"
4663
- placeholder="{{'btnSearch' | translate}}...">
4663
+ placeholder="{{'btnSearch' | translate}}">
4664
4664
  <div class="box-search-icon" (click)="filterItem(''); searchInput.value = ''">
4665
4665
  <button mat-icon-button class="search-button">
4666
4666
  <mat-icon class="mat-24" aria-label="Search icon">clear</mat-icon>
@@ -5982,6 +5982,8 @@ class CvaRangeDatePickerComponent {
5982
5982
  }
5983
5983
  set fromDateValue(val) {
5984
5984
  this.value.fromDate = val;
5985
+ this.value.toDate = '';
5986
+ this.writeValue(this.value);
5985
5987
  }
5986
5988
  get toDateValue() {
5987
5989
  if (this.value.toDate instanceof Date) {
@@ -6012,22 +6014,22 @@ class CvaRangeDatePickerComponent {
6012
6014
  this.propagateChange(fn);
6013
6015
  }
6014
6016
  writeValue(obj) {
6017
+ console.log('writeValue', obj);
6015
6018
  if (!obj) {
6016
6019
  obj = new RangeDatePickerModel();
6017
6020
  }
6018
6021
  if (!this.defaultFromDate && this.value.fromDate instanceof Date) {
6019
6022
  this.defaultFromDate = this.prepareWriteValueData(this.value.fromDate);
6020
6023
  }
6021
- // this.value = obj;
6022
6024
  this.value.fromDate = this.prepareWriteValueData(obj.fromDate);
6023
6025
  this.value.toDate = this.prepareWriteValueData(obj.toDate);
6024
6026
  this.createTitle();
6025
- this.propagateChange(this.value);
6026
- this.callValidator();
6027
- this.onChange.emit(this.value);
6028
6027
  if (this.defaultFromDate && this.getDisabled(this.disabledFromDate)) {
6029
6028
  this.value.fromDate = new Date(this.defaultFromDate.replace('Z', ''));
6030
6029
  }
6030
+ this.propagateChange(this.value);
6031
+ this.callValidator();
6032
+ this.onChange.emit(this.value);
6031
6033
  }
6032
6034
  getDisabled(disabled) {
6033
6035
  return typeof disabled === 'function' ? disabled() : disabled;