vc-create-dashboard 2.7.3 → 2.7.5

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,7 @@
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 moment from 'moment';
4
+ import * as customParseFormat from 'dayjs/plugin/customParseFormat';
5
5
  import * as i1 from '@angular/common/http';
6
6
  import { HttpHeaders, HttpParams } from '@angular/common/http';
7
7
  import { JwtHelperService } from '@auth0/angular-jwt';
@@ -3160,6 +3160,7 @@ class CreateDashboardComponent {
3160
3160
  this.smileyMessage = '';
3161
3161
  this.groupsEnabled = false;
3162
3162
  this.submitted = false;
3163
+ dayjs.extend(customParseFormat);
3163
3164
  }
3164
3165
  ngOnChanges() {
3165
3166
  if (this.createdBy) {
@@ -3813,8 +3814,8 @@ class CreateDashboardComponent {
3813
3814
  this.dashboardForm.selectedResponsibilityCategories = this.setList(this.allComplianceCategories, data === null || data === void 0 ? void 0 : data.responsibility_category, 'category_id');
3814
3815
  this.dashboardForm.selectedRiskCategories = this.setList(this.allRiskCategories, data === null || data === void 0 ? void 0 : data.risk_category, 'category_id');
3815
3816
  this.dashboardForm.displayCriteria = ((data === null || data === void 0 ? void 0 : data.display_criteria) === "BOTH_RC_AND_CATEGORY") ? 'and' : 'or';
3816
- this.dashboardForm.selectedFromDate = ((_d = data === null || data === void 0 ? void 0 : data.timeframe) === null || _d === void 0 ? void 0 : _d.start_date) ? (_f = moment((_e = data === null || data === void 0 ? void 0 : data.timeframe) === null || _e === void 0 ? void 0 : _e.start_date, 'YYYY-MM-DD')) === null || _f === void 0 ? void 0 : _f.toDate() : undefined;
3817
- this.dashboardForm.selectedToDate = ((_g = data === null || data === void 0 ? void 0 : data.timeframe) === null || _g === void 0 ? void 0 : _g.end_date) ? (_j = moment((_h = data === null || data === void 0 ? void 0 : data.timeframe) === null || _h === void 0 ? void 0 : _h.end_date, 'YYYY-MM-DD')) === null || _j === void 0 ? void 0 : _j.toDate() : undefined;
3817
+ this.dashboardForm.selectedFromDate = ((_d = data === null || data === void 0 ? void 0 : data.timeframe) === null || _d === void 0 ? void 0 : _d.start_date) ? (_f = dayjs((_e = data === null || data === void 0 ? void 0 : data.timeframe) === null || _e === void 0 ? void 0 : _e.start_date)) === null || _f === void 0 ? void 0 : _f.toDate() : undefined;
3818
+ this.dashboardForm.selectedToDate = ((_g = data === null || data === void 0 ? void 0 : data.timeframe) === null || _g === void 0 ? void 0 : _g.end_date) ? (_j = dayjs((_h = data === null || data === void 0 ? void 0 : data.timeframe) === null || _h === void 0 ? void 0 : _h.end_date)) === null || _j === void 0 ? void 0 : _j.toDate() : undefined;
3818
3819
  this.vLoader = false;
3819
3820
  this.dashboardForm.configureWidget = data.widget_details;
3820
3821
  this.selectedWidgets = data.widget_details.length > 0 ? [...new Set(data.widget_details)] : [];
@@ -3823,7 +3824,6 @@ class CreateDashboardComponent {
3823
3824
  let minToDate = this.setToDate((_k = data === null || data === void 0 ? void 0 : data.timeframe) === null || _k === void 0 ? void 0 : _k.start_date);
3824
3825
  this.toDatePickerConfig = { min: minToDate };
3825
3826
  this.hideToDate = true;
3826
- console.log(" this.dashboardForm ===>", data, this.groupList);
3827
3827
  setTimeout(() => {
3828
3828
  this.hideToDate = false;
3829
3829
  }, 20);