vc-create-dashboard 2.8.17 → 2.8.19

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.
@@ -3226,8 +3226,7 @@ class CreateDashboardComponent {
3226
3226
  this.datePickerOverlay = true;
3227
3227
  }
3228
3228
  closeFromDatePicker() {
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));
3229
+ var _a, _b;
3231
3230
  if (!this.dashboardForm.selectedFromDate) {
3232
3231
  this.dashboardForm.selectedToDate = undefined;
3233
3232
  this.hideToDate = true;
@@ -3239,7 +3238,6 @@ class CreateDashboardComponent {
3239
3238
  return;
3240
3239
  }
3241
3240
  let minToDate = this.setToDate(this.dashboardForm.selectedFromDate);
3242
- console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') ==>1", minToDate);
3243
3241
  this.toDatePickerConfig = { min: minToDate };
3244
3242
  const fromDate = new Date(minToDate.split('-').reverse().join('-'));
3245
3243
  const toDate = new Date(this.dashboardForm.selectedToDate);
@@ -3251,7 +3249,7 @@ class CreateDashboardComponent {
3251
3249
  this.hideToDate = false;
3252
3250
  }, 20);
3253
3251
  }
3254
- (_c = (_b = this.fromDatePicker) === null || _b === void 0 ? void 0 : _b.api) === null || _c === void 0 ? void 0 : _c.close();
3252
+ (_b = (_a = this.fromDatePicker) === null || _a === void 0 ? void 0 : _a.api) === null || _b === void 0 ? void 0 : _b.close();
3255
3253
  this.datePickerOverlay = false;
3256
3254
  }
3257
3255
  closeToDatePicker() {
@@ -3729,8 +3727,6 @@ class CreateDashboardComponent {
3729
3727
  }
3730
3728
  this.vLoader = true;
3731
3729
  const dashboard = this.dashboardForm;
3732
- console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD')", dashboard, new Date(dashboard === null || dashboard === void 0 ? void 0 : dashboard.selectedFromDate));
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'));
3734
3730
  const payload = {
3735
3731
  dashboard_name: dashboard.dashboardName,
3736
3732
  description: [
@@ -3746,8 +3742,8 @@ class CreateDashboardComponent {
3746
3742
  risk_category: this.returnIds(dashboard.selectedRiskCategories, 'category_id'),
3747
3743
  display_criteria: (dashboard.displayCriteria === 'and') ? 'BOTH_RC_AND_CATEGORY' : 'RC_OR_CATEGORY',
3748
3744
  timeframe: {
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') : '',
3745
+ start_date: (dashboard.selectedFromDate) ? this.getFromDate(dashboard === null || dashboard === void 0 ? void 0 : dashboard.selectedFromDate) : '',
3746
+ end_date: (dashboard.selectedToDate) ? this.setToDate(dashboard === null || dashboard === void 0 ? void 0 : dashboard.selectedToDate) : '',
3751
3747
  },
3752
3748
  email_summary: this.setFrequency('', 'export'),
3753
3749
  widget_details: dashboard.configureWidget