vc-create-dashboard 2.8.15 → 2.8.17

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,7 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Pipe, Optional, EventEmitter, Component, Input, Output, Directive, HostListener, ViewChild, forwardRef, NgModule } from '@angular/core';
3
3
  import * as dayjs from 'dayjs';
4
- import * as customParseFormat from 'dayjs/plugin/customParseFormat';
5
4
  import * as i1 from '@angular/common/http';
6
5
  import { HttpHeaders, HttpParams } from '@angular/common/http';
7
6
  import { JwtHelperService } from '@auth0/angular-jwt';
@@ -3047,7 +3046,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
3047
3046
  type: Output
3048
3047
  }] } });
3049
3048
 
3050
- dayjs.extend(customParseFormat);
3049
+ // dayjs.extend(customParseFormat);
3051
3050
  class CreateDashboardComponent {
3052
3051
  constructor(createDashboardService, paginationService, cdr, snackBar, popoverService, configureWidgetsService, textCount) {
3053
3052
  this.createDashboardService = createDashboardService;
@@ -3227,8 +3226,8 @@ class CreateDashboardComponent {
3227
3226
  this.datePickerOverlay = true;
3228
3227
  }
3229
3228
  closeFromDatePicker() {
3230
- var _a, _b;
3231
- console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') ==>", this.dashboardForm, this.dashboardForm.selectedFromDate);
3229
+ var _a, _b, _c;
3230
+ console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') ==>", this.dashboardForm, new Date((_a = this.dashboardForm) === null || _a === void 0 ? void 0 : _a.selectedFromDate));
3232
3231
  if (!this.dashboardForm.selectedFromDate) {
3233
3232
  this.dashboardForm.selectedToDate = undefined;
3234
3233
  this.hideToDate = true;
@@ -3252,7 +3251,7 @@ class CreateDashboardComponent {
3252
3251
  this.hideToDate = false;
3253
3252
  }, 20);
3254
3253
  }
3255
- (_b = (_a = this.fromDatePicker) === null || _a === void 0 ? void 0 : _a.api) === null || _b === void 0 ? void 0 : _b.close();
3254
+ (_c = (_b = this.fromDatePicker) === null || _b === void 0 ? void 0 : _b.api) === null || _c === void 0 ? void 0 : _c.close();
3256
3255
  this.datePickerOverlay = false;
3257
3256
  }
3258
3257
  closeToDatePicker() {
@@ -3730,7 +3729,7 @@ class CreateDashboardComponent {
3730
3729
  }
3731
3730
  this.vLoader = true;
3732
3731
  const dashboard = this.dashboardForm;
3733
- console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD')", dashboard);
3732
+ console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD')", dashboard, new Date(dashboard === null || dashboard === void 0 ? void 0 : dashboard.selectedFromDate));
3734
3733
  console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') 123", dayjs(dashboard === null || dashboard === void 0 ? void 0 : dashboard.selectedFromDate).format('YYYY-MM-DD'));
3735
3734
  const payload = {
3736
3735
  dashboard_name: dashboard.dashboardName,
@@ -3747,8 +3746,8 @@ class CreateDashboardComponent {
3747
3746
  risk_category: this.returnIds(dashboard.selectedRiskCategories, 'category_id'),
3748
3747
  display_criteria: (dashboard.displayCriteria === 'and') ? 'BOTH_RC_AND_CATEGORY' : 'RC_OR_CATEGORY',
3749
3748
  timeframe: {
3750
- start_date: (dashboard.selectedFromDate) ? dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') : '',
3751
- end_date: (dashboard.selectedToDate) ? dayjs(dashboard.selectedToDate).format('YYYY-MM-DD') : '',
3749
+ start_date: (dashboard.selectedFromDate) ? dayjs(new Date(dashboard === null || dashboard === void 0 ? void 0 : dashboard.selectedFromDate)).format('YYYY-MM-DD') : '',
3750
+ end_date: (dashboard.selectedToDate) ? dayjs(new Date(dashboard === null || dashboard === void 0 ? void 0 : dashboard.selectedToDate)).format('YYYY-MM-DD') : '',
3752
3751
  },
3753
3752
  email_summary: this.setFrequency('', 'export'),
3754
3753
  widget_details: dashboard.configureWidget