vc-create-dashboard 2.7.0 → 2.7.1
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.
- package/esm2020/lib/create-dashboard-container/create-dashboard.component.mjs +31 -25
- package/fesm2015/create-dashboard.mjs +31 -25
- package/fesm2015/create-dashboard.mjs.map +1 -1
- package/fesm2020/create-dashboard.mjs +30 -24
- package/fesm2020/create-dashboard.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3769,30 +3769,36 @@ class CreateDashboardComponent {
|
|
|
3769
3769
|
}
|
|
3770
3770
|
}
|
|
3771
3771
|
populateDashboardForm(data) {
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
this.dashboardForm.
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
this.hideToDate =
|
|
3795
|
-
|
|
3772
|
+
try {
|
|
3773
|
+
console.log("datattttta ===>", data, this.groupList);
|
|
3774
|
+
this.dashboardForm.dashboardName = data?.dashboard_name,
|
|
3775
|
+
this.dashboardForm.dashboardDescriptionText = data?.description[0]?.content ?? "",
|
|
3776
|
+
this.dashboardForm.selectedViewers = this.setList(this.usersList, data?.visible_to_users, 'member_id');
|
|
3777
|
+
this.listDetails.selectedUsersList = this.dashboardForm.selectedViewers;
|
|
3778
|
+
data.visible_to_groups = (data?.visible_to_groups && data?.visible_to_groups.length) ? data?.visible_to_groups : [];
|
|
3779
|
+
this.dashboardForm.selectedGroup = this.setList(this.groupList, data?.visible_to_groups ?? [], 'group_id');
|
|
3780
|
+
this.listDetails.selectedGroupList = this.dashboardForm.selectedGroup;
|
|
3781
|
+
this.dashboardForm.selectedResponsibilityCenters = this.setList(this.responsibilityCentersList, data?.responsibility_center, 'item_id');
|
|
3782
|
+
this.dashboardForm.selectedResponsibilityCategories = this.setList(this.allComplianceCategories, data?.responsibility_category, 'category_id');
|
|
3783
|
+
this.dashboardForm.selectedRiskCategories = this.setList(this.allRiskCategories, data?.risk_category, 'category_id');
|
|
3784
|
+
this.dashboardForm.displayCriteria = (data?.display_criteria === "BOTH_RC_AND_CATEGORY") ? 'and' : 'or';
|
|
3785
|
+
this.dashboardForm.selectedFromDate = (data?.timeframe?.start_date) ? dayjs(data?.timeframe?.start_date)?.toDate() : undefined;
|
|
3786
|
+
this.dashboardForm.selectedToDate = (data?.timeframe?.end_date) ? dayjs(data?.timeframe?.end_date)?.toDate() : undefined;
|
|
3787
|
+
this.vLoader = false;
|
|
3788
|
+
this.dashboardForm.configureWidget = data.widget_details;
|
|
3789
|
+
this.selectedWidgets = data.widget_details.length > 0 ? [...new Set(data.widget_details)] : [];
|
|
3790
|
+
this.displayedWidgets = data.all_widgets.length > 0 ? [...new Set(data.all_widgets)] : [];
|
|
3791
|
+
this.setFrequency(data?.email_summary, 'import');
|
|
3792
|
+
let minToDate = this.setToDate(data?.timeframe?.start_date);
|
|
3793
|
+
this.toDatePickerConfig = { min: minToDate };
|
|
3794
|
+
this.hideToDate = true;
|
|
3795
|
+
setTimeout(() => {
|
|
3796
|
+
this.hideToDate = false;
|
|
3797
|
+
}, 20);
|
|
3798
|
+
}
|
|
3799
|
+
catch (error) {
|
|
3800
|
+
console.log("populate dashboard error ==>", error);
|
|
3801
|
+
}
|
|
3796
3802
|
}
|
|
3797
3803
|
setFrequency(event, mode) {
|
|
3798
3804
|
if (mode === 'export') {
|