mapa-library-ui 1.1.2 → 1.1.3

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.
@@ -5909,14 +5909,13 @@ class MapaDatepickerRange {
5909
5909
  return first.getTime() === second.getTime();
5910
5910
  }
5911
5911
  cleanDatepicker() {
5912
- const defaultRange = getRelativeDateRange(this.defaultDaysBack);
5913
- const nextValue = {
5914
- startDate: formatDateAsDayMonthYear(defaultRange.startDate),
5915
- endDate: formatDateAsDayMonthYear(defaultRange.endDate),
5912
+ const defaultRange = {
5913
+ startDate: null,
5914
+ endDate: null,
5916
5915
  };
5917
5916
  this.formDatepicker.patchValue(defaultRange, { emitEvent: false });
5918
- this.formDisplay.patchValue(nextValue, { emitEvent: false });
5919
- this.patchExternalValue(nextValue);
5917
+ this.formDisplay.patchValue(defaultRange, { emitEvent: false });
5918
+ this.patchExternalValue(defaultRange);
5920
5919
  this.cdr.markForCheck();
5921
5920
  }
5922
5921
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: MapaDatepickerRange, deps: [{ token: MapaI18nService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }