vc-create-dashboard 3.0.1 → 3.0.2

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.
@@ -1,6 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Pipe, Optional, EventEmitter, Component, Input, Output, Directive, HostListener, ViewChild, ElementRef, forwardRef, NgModule, Inject } from '@angular/core';
3
- import * as dayjs from 'dayjs';
3
+ import dayjs from 'dayjs';
4
+ import * as LocalizedFormat from 'dayjs/plugin/localizedFormat';
4
5
  import * as i1 from '@angular/common/http';
5
6
  import { HttpHeaders, HttpParams } from '@angular/common/http';
6
7
  import { JwtHelperService } from '@auth0/angular-jwt';
@@ -3204,7 +3205,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
3204
3205
  type: Output
3205
3206
  }] } });
3206
3207
 
3207
- // dayjs.extend(customParseFormat);
3208
+ dayjs.extend(LocalizedFormat);
3208
3209
  class CreateDashboardComponent {
3209
3210
  createDashboardService;
3210
3211
  paginationService;
@@ -4230,9 +4231,9 @@ class CreateDashboardComponent {
4230
4231
  const openedElement = this.openedDatePicker === 'FROM_DATE'
4231
4232
  ? this.fromDatePickerPopup
4232
4233
  : this.toDatePickerPopup;
4233
- const isOutsideFromDateInput = !openedElement.nativeElement.contains(event.target);
4234
+ const isOutsideFromDateInput = !openedElement?.nativeElement?.contains(event.target);
4234
4235
  const isNotFromDateElement = event.target !== fromDateInputElement;
4235
- const isNotInsideCalendar = !datePickerCalendarContainer.contains(event.target);
4236
+ const isNotInsideCalendar = !datePickerCalendarContainer?.contains(event.target);
4236
4237
  const selectedDatePicker = this.openedDatePicker === 'FROM_DATE'
4237
4238
  ? this.fromDatePicker
4238
4239
  : this.toDatePicker;
@@ -4241,7 +4242,7 @@ class CreateDashboardComponent {
4241
4242
  }
4242
4243
  }
4243
4244
  documentClickListener(target, openedElements, selectedDatePicker) {
4244
- if (!openedElements.nativeElement.contains(target) &&
4245
+ if (!openedElements?.nativeElement?.contains(target) &&
4245
4246
  selectedDatePicker?.areCalendarsShown) {
4246
4247
  selectedDatePicker?.api?.close();
4247
4248
  this.datePickerOverlay = false;