drizzle-cube 0.1.28 → 0.1.30
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/dist/adapters/hono/index.js +7 -7
- package/dist/client/charts.js +1 -1
- package/dist/client/chunks/{charts-Dm25kuUn.js → charts-BM1k01Jw.js} +1066 -914
- package/dist/client/chunks/charts-BM1k01Jw.js.map +1 -0
- package/dist/client/components/DataHistogram.d.ts +3 -1
- package/dist/client/components.js +4773 -4670
- package/dist/client/components.js.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/types.d.ts +1 -0
- package/dist/client/utils/targetUtils.d.ts +36 -0
- package/dist/client-bundle-stats.html +1 -1
- package/package.json +12 -7
- package/dist/client/chunks/charts-Dm25kuUn.js.map +0 -1
package/dist/client/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnalyticsDashboard as t, AnalyticsPortlet as e, DashboardEditModal as s, DashboardGrid as o, Modal as h, PortletContainer as C, PortletEditModal as c, QueryBuilder as d } from "./components.js";
|
|
2
2
|
import { C as l, c as u, u as R } from "./chunks/providers-B7MVnAAt.js";
|
|
3
3
|
import { useCubeQuery as n } from "./hooks.js";
|
|
4
|
-
import { D as f, A as P, B as m, L as p, P as x, R as y, a as A, S as B, T as M, c as L, f as T } from "./chunks/charts-
|
|
4
|
+
import { D as f, A as P, B as m, L as p, P as x, R as y, a as A, S as B, T as M, c as L, f as T } from "./chunks/charts-BM1k01Jw.js";
|
|
5
5
|
export {
|
|
6
6
|
t as AnalyticsDashboard,
|
|
7
7
|
e as AnalyticsPortlet,
|
package/dist/client/types.d.ts
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for handling target values in charts
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Parse target values from string format
|
|
6
|
+
* @param targetString - String containing target values (e.g., "100" or "50,75,100")
|
|
7
|
+
* @returns Array of numeric target values
|
|
8
|
+
*/
|
|
9
|
+
export declare function parseTargetValues(targetString: string): number[];
|
|
10
|
+
/**
|
|
11
|
+
* Spread target values across data points
|
|
12
|
+
* @param targets - Array of target values
|
|
13
|
+
* @param dataLength - Number of data points to spread across
|
|
14
|
+
* @returns Array of target values for each data point
|
|
15
|
+
*/
|
|
16
|
+
export declare function spreadTargetValues(targets: number[], dataLength: number): number[];
|
|
17
|
+
/**
|
|
18
|
+
* Calculate variance between actual and target values
|
|
19
|
+
* @param actual - Actual value
|
|
20
|
+
* @param target - Target value
|
|
21
|
+
* @returns Variance as percentage
|
|
22
|
+
*/
|
|
23
|
+
export declare function calculateVariance(actual: number, target: number): number;
|
|
24
|
+
/**
|
|
25
|
+
* Format variance as percentage string with appropriate sign and color indication
|
|
26
|
+
* @param variance - Variance percentage
|
|
27
|
+
* @param decimals - Number of decimal places (default: 1)
|
|
28
|
+
* @returns Formatted variance string (e.g., "+12.5%" or "-8.3%")
|
|
29
|
+
*/
|
|
30
|
+
export declare function formatVariance(variance: number, decimals?: number): string;
|
|
31
|
+
/**
|
|
32
|
+
* Get unique target values for reference lines
|
|
33
|
+
* @param targets - Array of target values (may contain duplicates)
|
|
34
|
+
* @returns Array of unique target values
|
|
35
|
+
*/
|
|
36
|
+
export declare function getUniqueTargets(targets: number[]): number[];
|