vc-create-dashboard 3.0.87 → 3.0.89

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.
@@ -81,6 +81,8 @@ export declare class CreateDashboardComponent implements OnInit, OnChanges {
81
81
  };
82
82
  programListUrl: any;
83
83
  private readonly datePickerBaseConfig;
84
+ /** organization/?mode=users timezone; JWT timezone is the fallback. */
85
+ private userTimeZone;
84
86
  fromDatePickerConfig: IDatePickerConfig;
85
87
  toDatePickerConfig: IDatePickerConfig;
86
88
  isSmiley: boolean;
@@ -123,6 +125,8 @@ export declare class CreateDashboardComponent implements OnInit, OnChanges {
123
125
  animateImage(): void;
124
126
  saveFrequency(eventValues: any): void;
125
127
  getCurrentDate(): string;
128
+ /** Disables dates before today in the VComply user timezone. */
129
+ private applyFromDateMin;
126
130
  setToDate(data: string): string;
127
131
  getFromDate(data: string): string;
128
132
  /**
@@ -55,6 +55,10 @@ export declare class CreateDashboardService {
55
55
  fetchCustomDashboardById(id: string | number): import("rxjs").Observable<ArrayBuffer>;
56
56
  getUserInformation(): import("rxjs").Observable<ArrayBuffer>;
57
57
  _ID(): any;
58
+ /**
59
+ * JWT timezone used until organization/?mode=users timezone is loaded.
60
+ */
61
+ getTokenTimezone(): string;
58
62
  checkDuplicateDashboardName(payload: any): import("rxjs").Observable<ArrayBuffer>;
59
63
  createDashboard(payload: any): import("rxjs").Observable<ArrayBuffer>;
60
64
  updateDashboard(payload: any, id: any): import("rxjs").Observable<ArrayBuffer>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Calendar day `DD-MM-YYYY` for an instant in an IANA timezone.
3
+ * Used as the date-picker min so past days follow the VComply user timezone.
4
+ * Falls back to the device calendar day only when timezone is missing or invalid.
5
+ */
6
+ export declare function formatCalendarDateInTimeZone(date: Date, timeZone?: string | null): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vc-create-dashboard",
3
- "version": "3.0.87",
3
+ "version": "3.0.89",
4
4
  "peerDependencies": {
5
5
  "@angular/common": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x ",
6
6
  "@angular/core": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x "