vc-create-dashboard 2.8.21 → 2.8.22
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,5 @@
|
|
|
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
|
-
import * as dayjs from 'dayjs';
|
|
4
3
|
import * as i1 from '@angular/common/http';
|
|
5
4
|
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
6
5
|
import { JwtHelperService } from '@auth0/angular-jwt';
|
|
@@ -3819,7 +3818,7 @@ class CreateDashboardComponent {
|
|
|
3819
3818
|
}
|
|
3820
3819
|
}
|
|
3821
3820
|
populateDashboardForm(data) {
|
|
3822
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
3821
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3823
3822
|
try {
|
|
3824
3823
|
console.log(" datattttta ===> ", data, this.groupList);
|
|
3825
3824
|
this.dashboardForm.dashboardName = data === null || data === void 0 ? void 0 : data.dashboard_name,
|
|
@@ -3833,14 +3832,14 @@ class CreateDashboardComponent {
|
|
|
3833
3832
|
this.dashboardForm.selectedResponsibilityCategories = this.setList(this.allComplianceCategories, data === null || data === void 0 ? void 0 : data.responsibility_category, 'category_id');
|
|
3834
3833
|
this.dashboardForm.selectedRiskCategories = this.setList(this.allRiskCategories, data === null || data === void 0 ? void 0 : data.risk_category, 'category_id');
|
|
3835
3834
|
this.dashboardForm.displayCriteria = ((data === null || data === void 0 ? void 0 : data.display_criteria) === "BOTH_RC_AND_CATEGORY") ? 'and' : 'or';
|
|
3836
|
-
this.dashboardForm.selectedFromDate = ((_d = data === null || data === void 0 ? void 0 : data.timeframe) === null || _d === void 0 ? void 0 : _d.start_date) ?
|
|
3837
|
-
this.dashboardForm.selectedToDate = ((
|
|
3835
|
+
this.dashboardForm.selectedFromDate = ((_d = data === null || data === void 0 ? void 0 : data.timeframe) === null || _d === void 0 ? void 0 : _d.start_date) ? new Date((_e = data === null || data === void 0 ? void 0 : data.timeframe) === null || _e === void 0 ? void 0 : _e.start_date) : undefined;
|
|
3836
|
+
this.dashboardForm.selectedToDate = ((_f = data === null || data === void 0 ? void 0 : data.timeframe) === null || _f === void 0 ? void 0 : _f.end_date) ? new Date((_g = data === null || data === void 0 ? void 0 : data.timeframe) === null || _g === void 0 ? void 0 : _g.end_date) : undefined;
|
|
3838
3837
|
this.vLoader = false;
|
|
3839
3838
|
this.dashboardForm.configureWidget = data.widget_details;
|
|
3840
3839
|
this.selectedWidgets = data.widget_details.length > 0 ? [...new Set(data.widget_details)] : [];
|
|
3841
3840
|
this.displayedWidgets = data.all_widgets.length > 0 ? [...new Set(data.all_widgets)] : [];
|
|
3842
3841
|
this.setFrequency(data === null || data === void 0 ? void 0 : data.email_summary, 'import');
|
|
3843
|
-
let minToDate = this.setToDate((
|
|
3842
|
+
let minToDate = this.setToDate((_h = data === null || data === void 0 ? void 0 : data.timeframe) === null || _h === void 0 ? void 0 : _h.start_date);
|
|
3844
3843
|
this.toDatePickerConfig = { min: minToDate };
|
|
3845
3844
|
this.hideToDate = true;
|
|
3846
3845
|
setTimeout(() => {
|