drizzle-cube 0.1.23 → 0.1.25
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/README.md +3 -1
- package/dist/client/charts/chartConfigs.d.ts +31 -1
- package/dist/client/charts.d.ts +1 -0
- package/dist/client/charts.js +1 -1
- package/dist/client/chunks/charts-Dx3asDBi.js +2269 -0
- package/dist/client/chunks/charts-Dx3asDBi.js.map +1 -0
- package/dist/client/chunks/{icons-QczkAx61.js → icons-BMGOKdZb.js} +268 -233
- package/dist/client/chunks/icons-BMGOKdZb.js.map +1 -0
- package/dist/client/components/ChartConfigPanel.d.ts +3 -2
- package/dist/client/components/ColorPaletteSelector.d.ts +11 -0
- package/dist/client/components/DashboardGrid.d.ts +3 -1
- package/dist/client/components/DataHistogram.d.ts +25 -0
- package/dist/client/components/PortletEditModal.d.ts +3 -2
- package/dist/client/components/charts/ActivityGridChart.d.ts +1 -1
- package/dist/client/components/charts/AreaChart.d.ts +1 -1
- package/dist/client/components/charts/BarChart.d.ts +1 -1
- package/dist/client/components/charts/BubbleChart.d.ts +1 -1
- package/dist/client/components/charts/KpiNumber.config.d.ts +5 -0
- package/dist/client/components/charts/KpiNumber.d.ts +2 -0
- package/dist/client/components/charts/KpiText.config.d.ts +5 -0
- package/dist/client/components/charts/KpiText.d.ts +2 -0
- package/dist/client/components/charts/LineChart.d.ts +1 -1
- package/dist/client/components/charts/PieChart.d.ts +1 -1
- package/dist/client/components/charts/RadarChart.d.ts +1 -1
- package/dist/client/components/charts/RadialBarChart.d.ts +1 -1
- package/dist/client/components/charts/ScatterChart.d.ts +1 -1
- package/dist/client/components/charts/TreeMapChart.d.ts +1 -1
- package/dist/client/components/charts/index.d.ts +2 -0
- package/dist/client/components.js +4529 -2490
- package/dist/client/components.js.map +1 -1
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +1 -1
- package/dist/client/types.d.ts +12 -4
- package/dist/client/utils/colorPalettes.d.ts +35 -0
- package/dist/client-bundle-stats.html +1 -1
- package/package.json +1 -1
- package/dist/client/chunks/charts-8KmxUVvG.js +0 -2285
- package/dist/client/chunks/charts-8KmxUVvG.js.map +0 -1
- package/dist/client/chunks/icons-QczkAx61.js.map +0 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
**Drizzle ORM-first semantic layer with Cube.js compatibility**
|
|
4
4
|
|
|
5
|
+
<img width="1262" height="976" alt="color_1" src="https://github.com/user-attachments/assets/653bd6b4-ba55-4a60-a8d1-cb14e47e6aa6" />
|
|
6
|
+
|
|
5
7
|
Transform your Drizzle schema into a powerful, type-safe analytics platform with SQL injection protection and full TypeScript support.
|
|
6
8
|
|
|
7
9
|
📖 **[Documentation](https://www.drizzle-cube.dev/)**
|
|
@@ -187,4 +189,4 @@ MIT © [Clifton Cunningham](https://github.com/cliftonc)
|
|
|
187
189
|
|
|
188
190
|
---
|
|
189
191
|
|
|
190
|
-
**Built with ❤️ for the Drizzle ORM community**
|
|
192
|
+
**Built with ❤️ for the Drizzle ORM community**
|
|
@@ -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
|
-
/**
|
|
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;
|
package/dist/client/charts.d.ts
CHANGED
|
@@ -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';
|
package/dist/client/charts.js
CHANGED
|
@@ -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-
|
|
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,
|