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.
- package/esm2022/lib/create-dashboard-container/create-dashboard.component.mjs +28 -6
- package/esm2022/lib/create-dashboard-container/services/create-dashboard.service.mjs +27 -1
- package/esm2022/lib/create-dashboard-container/utils/user-timezone-date.util.mjs +36 -0
- package/fesm2022/vc-create-dashboard.mjs +88 -5
- package/fesm2022/vc-create-dashboard.mjs.map +1 -1
- package/lib/create-dashboard-container/create-dashboard.component.d.ts +4 -0
- package/lib/create-dashboard-container/services/create-dashboard.service.d.ts +4 -0
- package/lib/create-dashboard-container/utils/user-timezone-date.util.d.ts +6 -0
- package/package.json +1 -1
|
@@ -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.
|
|
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 "
|