drizzle-cube 0.1.23 → 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 (38) hide show
  1. package/dist/client/charts/chartConfigs.d.ts +31 -1
  2. package/dist/client/charts.d.ts +1 -0
  3. package/dist/client/charts.js +1 -1
  4. package/dist/client/chunks/charts-Dx3asDBi.js +2269 -0
  5. package/dist/client/chunks/charts-Dx3asDBi.js.map +1 -0
  6. package/dist/client/chunks/{icons-QczkAx61.js → icons-BMGOKdZb.js} +268 -233
  7. package/dist/client/chunks/icons-BMGOKdZb.js.map +1 -0
  8. package/dist/client/components/ChartConfigPanel.d.ts +3 -2
  9. package/dist/client/components/ColorPaletteSelector.d.ts +11 -0
  10. package/dist/client/components/DashboardGrid.d.ts +3 -1
  11. package/dist/client/components/DataHistogram.d.ts +23 -0
  12. package/dist/client/components/PortletEditModal.d.ts +3 -2
  13. package/dist/client/components/charts/ActivityGridChart.d.ts +1 -1
  14. package/dist/client/components/charts/AreaChart.d.ts +1 -1
  15. package/dist/client/components/charts/BarChart.d.ts +1 -1
  16. package/dist/client/components/charts/BubbleChart.d.ts +1 -1
  17. package/dist/client/components/charts/KpiNumber.config.d.ts +5 -0
  18. package/dist/client/components/charts/KpiNumber.d.ts +2 -0
  19. package/dist/client/components/charts/KpiText.config.d.ts +5 -0
  20. package/dist/client/components/charts/KpiText.d.ts +2 -0
  21. package/dist/client/components/charts/LineChart.d.ts +1 -1
  22. package/dist/client/components/charts/PieChart.d.ts +1 -1
  23. package/dist/client/components/charts/RadarChart.d.ts +1 -1
  24. package/dist/client/components/charts/RadialBarChart.d.ts +1 -1
  25. package/dist/client/components/charts/ScatterChart.d.ts +1 -1
  26. package/dist/client/components/charts/TreeMapChart.d.ts +1 -1
  27. package/dist/client/components/charts/index.d.ts +2 -0
  28. package/dist/client/components.js +4420 -2417
  29. package/dist/client/components.js.map +1 -1
  30. package/dist/client/index.d.ts +1 -0
  31. package/dist/client/index.js +1 -1
  32. package/dist/client/types.d.ts +12 -4
  33. package/dist/client/utils/colorPalettes.d.ts +35 -0
  34. package/dist/client-bundle-stats.html +1 -1
  35. package/package.json +1 -1
  36. package/dist/client/chunks/charts-8KmxUVvG.js +0 -2285
  37. package/dist/client/chunks/charts-8KmxUVvG.js.map +0 -1
  38. package/dist/client/chunks/icons-QczkAx61.js.map +0 -1
@@ -22,14 +22,44 @@ export interface AxisDropZoneConfig {
22
22
  /** Placeholder text when drop zone is empty */
23
23
  emptyText?: string;
24
24
  }
25
+ /**
26
+ * Configuration for a single display option
27
+ */
28
+ export interface DisplayOptionConfig {
29
+ /** The key to store this field in displayConfig */
30
+ key: string;
31
+ /** Display label for the option */
32
+ label: string;
33
+ /** Type of input control to render */
34
+ type: 'boolean' | 'string' | 'number' | 'select' | 'color' | 'paletteColor';
35
+ /** Default value for the option */
36
+ defaultValue?: any;
37
+ /** Placeholder text for string/number inputs */
38
+ placeholder?: string;
39
+ /** Options for select type */
40
+ options?: Array<{
41
+ value: any;
42
+ label: string;
43
+ }>;
44
+ /** Help text shown below the input */
45
+ description?: string;
46
+ /** Minimum value for number inputs */
47
+ min?: number;
48
+ /** Maximum value for number inputs */
49
+ max?: number;
50
+ /** Step value for number inputs */
51
+ step?: number;
52
+ }
25
53
  /**
26
54
  * Complete configuration for a chart type
27
55
  */
28
56
  export interface ChartTypeConfig {
29
57
  /** Configuration for each drop zone */
30
58
  dropZones: AxisDropZoneConfig[];
31
- /** Which display options to show for this chart type */
59
+ /** Simple display options (backward compatibility) - rendered as boolean checkboxes */
32
60
  displayOptions?: string[];
61
+ /** Structured display options with metadata for different input types */
62
+ displayOptionsConfig?: DisplayOptionConfig[];
33
63
  /** Optional custom validation function */
34
64
  validate?: (config: any) => {
35
65
  isValid: boolean;
@@ -8,3 +8,4 @@ export { RechartsBarChart, RechartsLineChart, RechartsAreaChart, RechartsPieChar
8
8
  export { formatChartData } from './utils/index';
9
9
  export { CHART_COLORS, POSITIVE_COLOR, NEGATIVE_COLOR, CHART_MARGINS } from './utils/chartConstants';
10
10
  export type { ChartType, ChartAxisConfig, ChartDisplayConfig } from './types';
11
+ export type { ChartTypeConfig, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs';
@@ -1,4 +1,4 @@
1
- import { k as t, C as s, D as h, N as R, u as e, A as C, B as c, L as O, P as T, R as A, a as L, S, T as I, f as _ } from "./chunks/charts-8KmxUVvG.js";
1
+ import { k as t, C as s, D as h, N as R, u as e, A as C, B as c, L as O, P as T, R as A, a as L, S, T as I, f as _ } from "./chunks/charts-Dx3asDBi.js";
2
2
  export {
3
3
  t as CHART_COLORS,
4
4
  s as CHART_MARGINS,