drizzle-cube 0.1.21 → 0.1.24

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.
Files changed (53) hide show
  1. package/dist/adapters/{compiler-CPsEzFP2.js → compiler-CSr2Ti96.js} +553 -505
  2. package/dist/adapters/express/index.js +1 -1
  3. package/dist/adapters/fastify/index.js +1 -1
  4. package/dist/adapters/hono/index.js +1 -1
  5. package/dist/adapters/nextjs/index.js +50 -50
  6. package/dist/client/charts/chartConfigs.d.ts +31 -1
  7. package/dist/client/charts.d.ts +1 -0
  8. package/dist/client/charts.js +1 -1
  9. package/dist/client/chunks/charts-Dx3asDBi.js +2269 -0
  10. package/dist/client/chunks/charts-Dx3asDBi.js.map +1 -0
  11. package/dist/client/chunks/{icons-B5RVM-7b.js → icons-BMGOKdZb.js} +279 -239
  12. package/dist/client/chunks/icons-BMGOKdZb.js.map +1 -0
  13. package/dist/client/chunks/{providers-DI5zeeEU.js → providers-B7MVnAAt.js} +50 -50
  14. package/dist/client/chunks/providers-B7MVnAAt.js.map +1 -0
  15. package/dist/client/components/ChartConfigPanel.d.ts +3 -2
  16. package/dist/client/components/ColorPaletteSelector.d.ts +11 -0
  17. package/dist/client/components/DashboardGrid.d.ts +3 -1
  18. package/dist/client/components/DataHistogram.d.ts +23 -0
  19. package/dist/client/components/PortletEditModal.d.ts +3 -2
  20. package/dist/client/components/charts/ActivityGridChart.config.d.ts +5 -0
  21. package/dist/client/components/charts/ActivityGridChart.d.ts +2 -0
  22. package/dist/client/components/charts/AreaChart.d.ts +1 -1
  23. package/dist/client/components/charts/BarChart.d.ts +1 -1
  24. package/dist/client/components/charts/BubbleChart.d.ts +1 -1
  25. package/dist/client/components/charts/KpiNumber.config.d.ts +5 -0
  26. package/dist/client/components/charts/KpiNumber.d.ts +2 -0
  27. package/dist/client/components/charts/KpiText.config.d.ts +5 -0
  28. package/dist/client/components/charts/KpiText.d.ts +2 -0
  29. package/dist/client/components/charts/LineChart.d.ts +1 -1
  30. package/dist/client/components/charts/PieChart.d.ts +1 -1
  31. package/dist/client/components/charts/RadarChart.d.ts +1 -1
  32. package/dist/client/components/charts/RadialBarChart.d.ts +1 -1
  33. package/dist/client/components/charts/ScatterChart.d.ts +1 -1
  34. package/dist/client/components/charts/TreeMapChart.d.ts +1 -1
  35. package/dist/client/components/charts/index.d.ts +3 -0
  36. package/dist/client/components.js +5134 -2607
  37. package/dist/client/components.js.map +1 -1
  38. package/dist/client/hooks/useCubeMeta.d.ts +1 -0
  39. package/dist/client/hooks.js +62 -60
  40. package/dist/client/hooks.js.map +1 -1
  41. package/dist/client/index.d.ts +1 -0
  42. package/dist/client/index.js +2 -2
  43. package/dist/client/providers.js +1 -1
  44. package/dist/client/types.d.ts +17 -5
  45. package/dist/client/utils/colorPalettes.d.ts +35 -0
  46. package/dist/client-bundle-stats.html +1 -1
  47. package/dist/server/index.d.ts +3 -8
  48. package/dist/server/index.js +748 -700
  49. package/package.json +22 -1
  50. package/dist/client/chunks/charts-BadAUMmd.js +0 -2285
  51. package/dist/client/chunks/charts-BadAUMmd.js.map +0 -1
  52. package/dist/client/chunks/icons-B5RVM-7b.js.map +0 -1
  53. package/dist/client/chunks/providers-DI5zeeEU.js.map +0 -1
@@ -1,3 +1,4 @@
1
+ import { ColorPalette } from '../utils/colorPalettes';
1
2
  import { DashboardConfig } from '../types';
2
3
  interface DashboardGridProps {
3
4
  config: DashboardConfig;
@@ -5,6 +6,7 @@ interface DashboardGridProps {
5
6
  onConfigChange?: (config: DashboardConfig) => void;
6
7
  onPortletRefresh?: (portletId: string) => void;
7
8
  onSave?: (config: DashboardConfig) => Promise<void> | void;
9
+ colorPalette?: ColorPalette;
8
10
  }
9
- export default function DashboardGrid({ config, editable, onConfigChange, onPortletRefresh, onSave }: DashboardGridProps): import("react/jsx-runtime").JSX.Element;
11
+ export default function DashboardGrid({ config, editable, onConfigChange, onPortletRefresh, onSave, colorPalette }: DashboardGridProps): import("react/jsx-runtime").JSX.Element;
10
12
  export {};
@@ -0,0 +1,23 @@
1
+ interface DataHistogramProps {
2
+ /** Array of numeric values to create histogram from */
3
+ values: number[];
4
+ /** Minimum value in the dataset */
5
+ min: number;
6
+ /** Maximum value in the dataset */
7
+ max: number;
8
+ /** Color for the histogram bars */
9
+ color?: string;
10
+ /** Number of buckets/bars to create (default: 12) */
11
+ bucketCount?: number;
12
+ /** Height of the histogram in pixels (default: 32) */
13
+ height?: number;
14
+ /** Format function for min/max labels */
15
+ formatValue?: (value: number) => string;
16
+ /** Width of the histogram to match text above */
17
+ width?: number;
18
+ }
19
+ /**
20
+ * Reusable histogram component that shows the distribution of actual data values
21
+ */
22
+ export default function DataHistogram({ values, min, max, color, bucketCount, height, formatValue, width }: DataHistogramProps): import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -1,4 +1,4 @@
1
- import { PortletConfig } from '../types';
1
+ import { PortletConfig, ColorPalette } from '../types';
2
2
  interface PortletEditModalProps {
3
3
  isOpen: boolean;
4
4
  onClose: () => void;
@@ -6,6 +6,7 @@ interface PortletEditModalProps {
6
6
  portlet?: PortletConfig | null;
7
7
  title: string;
8
8
  submitText: string;
9
+ colorPalette?: ColorPalette;
9
10
  }
10
- export default function PortletEditModal({ isOpen, onClose, onSave, portlet, title, submitText }: PortletEditModalProps): import("react/jsx-runtime").JSX.Element;
11
+ export default function PortletEditModal({ isOpen, onClose, onSave, portlet, title, submitText, colorPalette }: PortletEditModalProps): import("react/jsx-runtime").JSX.Element;
11
12
  export {};
@@ -0,0 +1,5 @@
1
+ import { ChartTypeConfig } from '../../charts/chartConfigs';
2
+ /**
3
+ * Configuration for the activity grid chart type
4
+ */
5
+ export declare const activityGridChartConfig: ChartTypeConfig;
@@ -0,0 +1,2 @@
1
+ import { ChartProps } from '../../types';
2
+ export default function ActivityGridChart({ data, chartConfig, displayConfig, queryObject, height, colorPalette }: ChartProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { ChartProps } from '../../types';
2
- export default function AreaChart({ data, chartConfig, displayConfig, queryObject, height }: ChartProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function AreaChart({ data, chartConfig, displayConfig, queryObject, height, colorPalette }: ChartProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { ChartProps } from '../../types';
2
- export default function BarChart({ data, chartConfig, displayConfig, queryObject, height }: ChartProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function BarChart({ data, chartConfig, displayConfig, queryObject, height, colorPalette }: ChartProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { ChartProps } from '../../types';
2
- export default function BubbleChart({ data, chartConfig, displayConfig, queryObject, height }: ChartProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function BubbleChart({ data, chartConfig, displayConfig, queryObject, height, colorPalette }: ChartProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ChartTypeConfig } from '../../charts/chartConfigs';
2
+ /**
3
+ * Configuration for the KPI Number chart type
4
+ */
5
+ export declare const kpiNumberConfig: ChartTypeConfig;
@@ -0,0 +1,2 @@
1
+ import { ChartProps } from '../../types';
2
+ export default function KpiNumber({ data, chartConfig, displayConfig, height, colorPalette }: ChartProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ChartTypeConfig } from '../../charts/chartConfigs';
2
+ /**
3
+ * Configuration for the KPI Text chart type
4
+ */
5
+ export declare const kpiTextConfig: ChartTypeConfig;
@@ -0,0 +1,2 @@
1
+ import { ChartProps } from '../../types';
2
+ export default function KpiText({ data, chartConfig, displayConfig, height, colorPalette }: ChartProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { ChartProps } from '../../types';
2
- export default function LineChart({ data, chartConfig, displayConfig, queryObject, height }: ChartProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function LineChart({ data, chartConfig, displayConfig, queryObject, height, colorPalette }: ChartProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { ChartProps } from '../../types';
2
- export default function PieChart({ data, chartConfig, displayConfig, queryObject, height }: ChartProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function PieChart({ data, chartConfig, displayConfig, queryObject, height, colorPalette }: ChartProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { ChartProps } from '../../types';
2
- export default function RadarChart({ data, chartConfig, displayConfig, queryObject, height }: ChartProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function RadarChart({ data, chartConfig, displayConfig, queryObject, height, colorPalette }: ChartProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { ChartProps } from '../../types';
2
- export default function RadialBarChart({ data, chartConfig, displayConfig, queryObject, height }: ChartProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function RadialBarChart({ data, chartConfig, displayConfig, queryObject, height, colorPalette }: ChartProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { ChartProps } from '../../types';
2
- export default function ScatterChart({ data, chartConfig, displayConfig, queryObject, height }: ChartProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function ScatterChart({ data, chartConfig, displayConfig, queryObject, height, colorPalette }: ChartProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { ChartProps } from '../../types';
2
- export default function TreeMapChart({ data, chartConfig, displayConfig, queryObject, height }: ChartProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function TreeMapChart({ data, chartConfig, displayConfig, queryObject, height, colorPalette }: ChartProps): import("react/jsx-runtime").JSX.Element;
@@ -12,3 +12,6 @@ export { default as RechartsRadialBarChart } from './RadialBarChart';
12
12
  export { default as RechartsTreeMapChart } from './TreeMapChart';
13
13
  export { default as BubbleChart } from './BubbleChart';
14
14
  export { default as DataTable } from './DataTable';
15
+ export { default as ActivityGridChart } from './ActivityGridChart';
16
+ export { default as KpiNumber } from './KpiNumber';
17
+ export { default as KpiText } from './KpiText';