drizzle-cube 0.2.8 → 0.2.9

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 (55) hide show
  1. package/dist/client/charts.js +2 -2
  2. package/dist/client/chunks/chart-activitygridchart-config-DVH-sdYZ.js +244 -0
  3. package/dist/client/chunks/chart-activitygridchart-config-DVH-sdYZ.js.map +1 -0
  4. package/dist/client/chunks/{chart-areachart-config-DWN1E5ej.js → chart-areachart-config-C2iwLEgm.js} +2 -2
  5. package/dist/client/chunks/{chart-areachart-config-DWN1E5ej.js.map → chart-areachart-config-C2iwLEgm.js.map} +1 -1
  6. package/dist/client/chunks/{chart-barchart-config-DZA0xTns.js → chart-barchart-config-CAsUZfHw.js} +2 -2
  7. package/dist/client/chunks/{chart-barchart-config-DZA0xTns.js.map → chart-barchart-config-CAsUZfHw.js.map} +1 -1
  8. package/dist/client/chunks/{chart-bubblechart-config-C79lfDSO.js → chart-bubblechart-config-DRuY0m7S.js} +2 -2
  9. package/dist/client/chunks/{chart-bubblechart-config-C79lfDSO.js.map → chart-bubblechart-config-DRuY0m7S.js.map} +1 -1
  10. package/dist/client/chunks/{chart-datatable-config-DqGw99R3.js → chart-datatable-config-C0MoGDgo.js} +2 -2
  11. package/dist/client/chunks/{chart-datatable-config-DqGw99R3.js.map → chart-datatable-config-C0MoGDgo.js.map} +1 -1
  12. package/dist/client/chunks/{chart-datatable-Mo4gYCwa.js → chart-datatable-zyVFtRJ_.js} +2 -2
  13. package/dist/client/chunks/{chart-datatable-Mo4gYCwa.js.map → chart-datatable-zyVFtRJ_.js.map} +1 -1
  14. package/dist/client/chunks/{chart-kpidelta-config-B-Y-LHmd.js → chart-kpidelta-config-Bq2Ph_Sp.js} +2 -2
  15. package/dist/client/chunks/{chart-kpidelta-config-B-Y-LHmd.js.map → chart-kpidelta-config-Bq2Ph_Sp.js.map} +1 -1
  16. package/dist/client/chunks/{chart-kpinumber-config-BaNaJMI6.js → chart-kpinumber-config-OMNhJXdH.js} +2 -2
  17. package/dist/client/chunks/{chart-kpinumber-config-BaNaJMI6.js.map → chart-kpinumber-config-OMNhJXdH.js.map} +1 -1
  18. package/dist/client/chunks/{chart-kpitext-config-BNywYqEW.js → chart-kpitext-config-BLiwQIVN.js} +2 -2
  19. package/dist/client/chunks/{chart-kpitext-config-BNywYqEW.js.map → chart-kpitext-config-BLiwQIVN.js.map} +1 -1
  20. package/dist/client/chunks/{chart-linechart-config-BL_1mjHF.js → chart-linechart-config-CVbDAvCB.js} +2 -2
  21. package/dist/client/chunks/{chart-linechart-config-BL_1mjHF.js.map → chart-linechart-config-CVbDAvCB.js.map} +1 -1
  22. package/dist/client/chunks/{chart-markdownchart-config-DtZOfYu4.js → chart-markdownchart-config-uttA9Th4.js} +2 -2
  23. package/dist/client/chunks/{chart-markdownchart-config-DtZOfYu4.js.map → chart-markdownchart-config-uttA9Th4.js.map} +1 -1
  24. package/dist/client/chunks/{chart-piechart-config-Bg4jeIFo.js → chart-piechart-config-J748ISAR.js} +2 -2
  25. package/dist/client/chunks/{chart-piechart-config-Bg4jeIFo.js.map → chart-piechart-config-J748ISAR.js.map} +1 -1
  26. package/dist/client/chunks/{chart-radarchart-config-d6dLkI7B.js → chart-radarchart-config-CU_MwXOg.js} +2 -2
  27. package/dist/client/chunks/{chart-radarchart-config-d6dLkI7B.js.map → chart-radarchart-config-CU_MwXOg.js.map} +1 -1
  28. package/dist/client/chunks/{chart-radialbarchart-config-BGf97-BV.js → chart-radialbarchart-config-D0eEa2hb.js} +2 -2
  29. package/dist/client/chunks/{chart-radialbarchart-config-BGf97-BV.js.map → chart-radialbarchart-config-D0eEa2hb.js.map} +1 -1
  30. package/dist/client/chunks/{chart-scatterchart-config-DEIB74ot.js → chart-scatterchart-config-Bh0qBq9F.js} +2 -2
  31. package/dist/client/chunks/{chart-scatterchart-config-DEIB74ot.js.map → chart-scatterchart-config-Bh0qBq9F.js.map} +1 -1
  32. package/dist/client/chunks/{chart-treemapchart-config-ppKPTB96.js → chart-treemapchart-config-Bl0wYGhB.js} +2 -2
  33. package/dist/client/chunks/{chart-treemapchart-config-ppKPTB96.js.map → chart-treemapchart-config-Bl0wYGhB.js.map} +1 -1
  34. package/dist/client/chunks/{charts-MJLpxe3r.js → charts-BUq4jszb.js} +18 -18
  35. package/dist/client/chunks/{charts-MJLpxe3r.js.map → charts-BUq4jszb.js.map} +1 -1
  36. package/dist/client/chunks/{components-CXA6-jJq.js → components-DnhfrXo3.js} +22 -21
  37. package/dist/client/chunks/{components-CXA6-jJq.js.map → components-DnhfrXo3.js.map} +1 -1
  38. package/dist/client/components/AnalysisBuilder/AnalysisFilterSection.d.ts +3 -1
  39. package/dist/client/components/AnalysisBuilder/AnalysisQueryPanel.d.ts +2 -1
  40. package/dist/client/components/AnalysisBuilder/AnalysisResultsPanel.d.ts +2 -1
  41. package/dist/client/components/AnalysisBuilder/BreakdownItemCard.d.ts +3 -1
  42. package/dist/client/components/AnalysisBuilder/BreakdownSection.d.ts +3 -2
  43. package/dist/client/components/AnalysisBuilder/MetricItemCard.d.ts +3 -1
  44. package/dist/client/components/AnalysisBuilder/MetricsSection.d.ts +3 -2
  45. package/dist/client/components/AnalysisBuilder/types.d.ts +42 -0
  46. package/dist/client/components.js +3 -3
  47. package/dist/client/icons/registry.d.ts +1 -1
  48. package/dist/client/icons.js +1 -1
  49. package/dist/client/index.js +2138 -1874
  50. package/dist/client/index.js.map +1 -1
  51. package/dist/client/styles.css +1 -1
  52. package/dist/client-bundle-stats.html +1 -1
  53. package/package.json +1 -1
  54. package/dist/client/chunks/chart-activitygridchart-config-BngZDVh_.js +0 -236
  55. package/dist/client/chunks/chart-activitygridchart-config-BngZDVh_.js.map +0 -1
@@ -7,6 +7,8 @@ interface AnalysisFilterSectionProps {
7
7
  schema: MetaResponse | null;
8
8
  /** Callback when filters change */
9
9
  onFiltersChange: (filters: Filter[]) => void;
10
+ /** Callback when a field is dropped from another section */
11
+ onFieldDropped?: (field: string) => void;
10
12
  }
11
- export default function AnalysisFilterSection({ filters, schema, onFiltersChange }: AnalysisFilterSectionProps): import("react/jsx-runtime").JSX.Element;
13
+ export default function AnalysisFilterSection({ filters, schema, onFiltersChange, onFieldDropped }: AnalysisFilterSectionProps): import("react/jsx-runtime").JSX.Element;
12
14
  export {};
@@ -7,4 +7,5 @@ import { AnalysisQueryPanelProps } from './types';
7
7
  * - Breakdown section (dimensions)
8
8
  * - Chart configuration (in Chart tab)
9
9
  */
10
- export default function AnalysisQueryPanel({ metrics, breakdowns, filters, schema, activeTab, onActiveTabChange, onAddMetric, onRemoveMetric, onAddBreakdown, onRemoveBreakdown, onBreakdownGranularityChange, onFiltersChange, order, onOrderChange, chartType, chartConfig, displayConfig, chartAvailability, onChartTypeChange, onChartConfigChange, onDisplayConfigChange }: AnalysisQueryPanelProps): import("react/jsx-runtime").JSX.Element;
10
+ declare const AnalysisQueryPanel: import('react').NamedExoticComponent<AnalysisQueryPanelProps>;
11
+ export default AnalysisQueryPanel;
@@ -9,4 +9,5 @@ import { AnalysisResultsPanelProps } from './types';
9
9
  * - Stale results indicator
10
10
  * - Display limit control for tables
11
11
  */
12
- export default function AnalysisResultsPanel({ executionStatus, executionResults, executionError, totalRowCount, resultsStale, chartType, chartConfig, displayConfig, query, activeView, onActiveViewChange, displayLimit, onDisplayLimitChange, hasMetrics, debugQuery, debugSql, debugAnalysis, debugLoading, debugError }: AnalysisResultsPanelProps): import("react/jsx-runtime").JSX.Element;
12
+ declare const AnalysisResultsPanel: import('react').NamedExoticComponent<AnalysisResultsPanelProps>;
13
+ export default AnalysisResultsPanel;
@@ -6,5 +6,7 @@ import { BreakdownItemCardProps } from './types';
6
6
  * - Granularity dropdown (for time dimensions)
7
7
  * - Sort toggle button (visible on hover, or always visible when sorted)
8
8
  * - Remove button (visible on hover)
9
+ * - Drag handle for reordering
9
10
  */
10
- export default function BreakdownItemCard({ breakdown, fieldMeta, onRemove, onGranularityChange, sortDirection, sortPriority, onToggleSort }: BreakdownItemCardProps): import("react/jsx-runtime").JSX.Element;
11
+ declare const BreakdownItemCard: import('react').NamedExoticComponent<BreakdownItemCardProps>;
12
+ export default BreakdownItemCard;
@@ -3,6 +3,7 @@ import { BreakdownSectionProps } from './types';
3
3
  * BreakdownSection displays a collapsible section with:
4
4
  * - Header with title and add button
5
5
  * - List of selected breakdowns (using BreakdownItemCard)
6
- * - Empty state with add button
6
+ * - Drag/drop reordering support
7
7
  */
8
- export default function BreakdownSection({ breakdowns, schema, onAdd, onRemove, onGranularityChange, order, onOrderChange }: BreakdownSectionProps): import("react/jsx-runtime").JSX.Element;
8
+ declare const BreakdownSection: import('react').NamedExoticComponent<BreakdownSectionProps>;
9
+ export default BreakdownSection;
@@ -5,5 +5,7 @@ import { MetricItemCardProps } from './types';
5
5
  * - Field title or full name
6
6
  * - Sort toggle button (visible on hover, or always visible when sorted)
7
7
  * - Remove button (visible on hover)
8
+ * - Drag handle for reordering
8
9
  */
9
- export default function MetricItemCard({ metric, fieldMeta, onRemove, sortDirection, sortPriority, onToggleSort }: MetricItemCardProps): import("react/jsx-runtime").JSX.Element;
10
+ declare const MetricItemCard: import('react').NamedExoticComponent<MetricItemCardProps>;
11
+ export default MetricItemCard;
@@ -3,6 +3,7 @@ import { MetricsSectionProps } from './types';
3
3
  * MetricsSection displays a collapsible section with:
4
4
  * - Header with title and add button
5
5
  * - List of selected metrics (using MetricItemCard)
6
- * - Empty state with add button
6
+ * - Drag/drop reordering support
7
7
  */
8
- export default function MetricsSection({ metrics, schema, onAdd, onRemove, order, onOrderChange }: MetricsSectionProps): import("react/jsx-runtime").JSX.Element;
8
+ declare const MetricsSection: import('react').NamedExoticComponent<MetricsSectionProps>;
9
+ export default MetricsSection;
@@ -139,10 +139,13 @@ export interface AnalysisQueryPanelProps {
139
139
  onActiveTabChange: (tab: QueryPanelTab) => void;
140
140
  onAddMetric: () => void;
141
141
  onRemoveMetric: (id: string) => void;
142
+ onReorderMetrics?: (fromIndex: number, toIndex: number) => void;
142
143
  onAddBreakdown: () => void;
143
144
  onRemoveBreakdown: (id: string) => void;
144
145
  onBreakdownGranularityChange: (id: string, granularity: string) => void;
146
+ onReorderBreakdowns?: (fromIndex: number, toIndex: number) => void;
145
147
  onFiltersChange: (filters: Filter[]) => void;
148
+ onDropFieldToFilter?: (field: string) => void;
146
149
  /** Current sort order */
147
150
  order?: Record<string, 'asc' | 'desc'>;
148
151
  /** Callback when sort order changes */
@@ -200,6 +203,9 @@ export interface AnalysisResultsPanelProps {
200
203
  debugAnalysis?: QueryAnalysis | null;
201
204
  debugLoading?: boolean;
202
205
  debugError?: string | null;
206
+ onShareClick?: () => void;
207
+ canShare?: boolean;
208
+ shareButtonState?: 'idle' | 'copied' | 'copied-no-chart';
203
209
  }
204
210
  /**
205
211
  * Props for the MetricsSection component
@@ -221,6 +227,10 @@ export interface MetricsSectionProps {
221
227
  order?: Record<string, 'asc' | 'desc'>;
222
228
  /** Callback when sort order changes */
223
229
  onOrderChange?: (fieldName: string, direction: 'asc' | 'desc' | null) => void;
230
+ /** Callback when metrics are reordered via drag/drop */
231
+ onReorder?: (fromIndex: number, toIndex: number) => void;
232
+ /** Callback when a metric is dragged to the filter section */
233
+ onDragToFilter?: (field: string) => void;
224
234
  }
225
235
  /**
226
236
  * Props for the BreakdownSection component
@@ -244,6 +254,10 @@ export interface BreakdownSectionProps {
244
254
  order?: Record<string, 'asc' | 'desc'>;
245
255
  /** Callback when sort order changes */
246
256
  onOrderChange?: (fieldName: string, direction: 'asc' | 'desc' | null) => void;
257
+ /** Callback when breakdowns are reordered via drag/drop */
258
+ onReorder?: (fromIndex: number, toIndex: number) => void;
259
+ /** Callback when a breakdown is dragged to the filter section */
260
+ onDragToFilter?: (field: string) => void;
247
261
  }
248
262
  /**
249
263
  * Props for MetricItemCard component
@@ -261,6 +275,20 @@ export interface MetricItemCardProps {
261
275
  sortPriority?: number;
262
276
  /** Toggle sort handler */
263
277
  onToggleSort?: () => void;
278
+ /** Index in the list (for drag/drop) */
279
+ index?: number;
280
+ /** Whether this item is being dragged */
281
+ isDragging?: boolean;
282
+ /** Whether dragging over this item */
283
+ isDragOver?: boolean;
284
+ /** Drag start handler */
285
+ onDragStart?: (e: React.DragEvent, index: number) => void;
286
+ /** Drag over handler */
287
+ onDragOver?: (e: React.DragEvent, index: number) => void;
288
+ /** Drop handler */
289
+ onDrop?: (e: React.DragEvent, index: number) => void;
290
+ /** Drag end handler */
291
+ onDragEnd?: () => void;
264
292
  }
265
293
  /**
266
294
  * Props for BreakdownItemCard component
@@ -280,6 +308,20 @@ export interface BreakdownItemCardProps {
280
308
  sortPriority?: number;
281
309
  /** Toggle sort handler */
282
310
  onToggleSort?: () => void;
311
+ /** Index in the list (for drag/drop) */
312
+ index?: number;
313
+ /** Whether this item is being dragged */
314
+ isDragging?: boolean;
315
+ /** Whether dragging over this item */
316
+ isDragOver?: boolean;
317
+ /** Drag start handler */
318
+ onDragStart?: (e: React.DragEvent, index: number) => void;
319
+ /** Drag over handler */
320
+ onDragOver?: (e: React.DragEvent, index: number) => void;
321
+ /** Drop handler */
322
+ onDrop?: (e: React.DragEvent, index: number) => void;
323
+ /** Drag end handler */
324
+ onDragEnd?: () => void;
283
325
  }
284
326
  /**
285
327
  * Props for the main AnalysisBuilder component
@@ -1,5 +1,5 @@
1
- import { a as t, A as s, e as o, b as r, M as d, P as l, d as i, Q as n } from "./chunks/components-CXA6-jJq.js";
2
- import { c as b, j as u, h as y, e as c, d as h, v as p } from "./chunks/charts-MJLpxe3r.js";
1
+ import { b as t, A as s, f as o, d as r, M as d, P as l, e as i, Q as n } from "./chunks/components-DnhfrXo3.js";
2
+ import { c as b, j as u, h as y, e as c, d as h, v as f } from "./chunks/charts-BUq4jszb.js";
3
3
  export {
4
4
  t as AnalyticsDashboard,
5
5
  s as AnalyticsPortlet,
@@ -14,6 +14,6 @@ export {
14
14
  y as findNextPosition,
15
15
  c as generatePortletId,
16
16
  h as generateResponsiveLayouts,
17
- p as validateCubeQuery
17
+ f as validateCubeQuery
18
18
  };
19
19
  //# sourceMappingURL=components.js.map
@@ -8,7 +8,7 @@ export declare function getIconRegistry(): IconRegistry;
8
8
  /**
9
9
  * Get a specific icon as a React component
10
10
  * @param name The icon name from the registry
11
- * @returns A React component that renders the icon
11
+ * @returns A React component that renders the icon (cached for stable references)
12
12
  */
13
13
  export declare function getIcon(name: IconName): ComponentType<IconProps>;
14
14
  /**
@@ -1,4 +1,4 @@
1
- import { D as a, g as t, c as o, b as c, d as g, f as I, h as n, a as r, r as y, e as p, s as T } from "./chunks/chart-activitygridchart-config-BngZDVh_.js";
1
+ import { D as a, g as t, c as o, b as c, d as g, f as I, h as n, a as r, r as y, e as p, s as T } from "./chunks/chart-activitygridchart-config-DVH-sdYZ.js";
2
2
  export {
3
3
  a as DEFAULT_ICONS,
4
4
  t as getChartTypeIcon,