vc-create-dashboard 3.0.87 → 3.0.88
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/services/create-dashboard.service.mjs +9 -4
- package/esm2022/lib/create-dashboard-container/utils/dashboard-timeframe.util.mjs +88 -0
- package/fesm2022/vc-create-dashboard.mjs +95 -3
- package/fesm2022/vc-create-dashboard.mjs.map +1 -1
- package/lib/create-dashboard-container/utils/dashboard-timeframe.util.d.ts +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API timeframe values are UTC `YYYY-MM-DD HH:mm:ss` without a zone suffix.
|
|
3
|
+
* Convert to the browser/system timezone and keep the same format.
|
|
4
|
+
* Date-only values are left unchanged so legacy `YYYY-MM-DD` fields do not shift.
|
|
5
|
+
*/
|
|
6
|
+
export declare function utcTimeframeToLocal(value: string | null | undefined): string | null;
|
|
7
|
+
export declare function toLocalDashboardTimeframe<T>(timeframe: T): T;
|
|
8
|
+
/** Converts `timeframe` (and nested `dashboard.timeframe`) on a dashboard API item. */
|
|
9
|
+
export declare function applyLocalTimeframeToDashboard<T>(dashboard: T): T;
|
|
10
|
+
/** Walks getCustomDashboards / customDashboard envelopes and localizes timeframe. */
|
|
11
|
+
export declare function applyLocalTimeframeToDashboardResponse<T>(res: T): T;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vc-create-dashboard",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.88",
|
|
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 "
|