@prismiq/react 0.1.0

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 (82) hide show
  1. package/README.md +88 -0
  2. package/dist/CustomSQLEditor-BXB4rf1q.d.cts +1297 -0
  3. package/dist/CustomSQLEditor-DYeId0Gp.d.ts +1297 -0
  4. package/dist/DashboardDialog-B3vYC5Gs.d.ts +1106 -0
  5. package/dist/DashboardDialog-LHmrtNQU.d.cts +1106 -0
  6. package/dist/accessibility-2yy5yqRR.d.cts +145 -0
  7. package/dist/accessibility-2yy5yqRR.d.ts +145 -0
  8. package/dist/charts/index.cjs +110 -0
  9. package/dist/charts/index.cjs.map +1 -0
  10. package/dist/charts/index.d.cts +2 -0
  11. package/dist/charts/index.d.ts +2 -0
  12. package/dist/charts/index.js +5 -0
  13. package/dist/charts/index.js.map +1 -0
  14. package/dist/chunk-2H5WTH4K.js +2409 -0
  15. package/dist/chunk-2H5WTH4K.js.map +1 -0
  16. package/dist/chunk-4AVL6GQK.cjs +470 -0
  17. package/dist/chunk-4AVL6GQK.cjs.map +1 -0
  18. package/dist/chunk-EX74SI67.js +455 -0
  19. package/dist/chunk-EX74SI67.js.map +1 -0
  20. package/dist/chunk-FEABEF3J.cjs +7543 -0
  21. package/dist/chunk-FEABEF3J.cjs.map +1 -0
  22. package/dist/chunk-JTCBZDHY.js +126 -0
  23. package/dist/chunk-JTCBZDHY.js.map +1 -0
  24. package/dist/chunk-LMTG3LRC.cjs +326 -0
  25. package/dist/chunk-LMTG3LRC.cjs.map +1 -0
  26. package/dist/chunk-MDXGGZSW.cjs +273 -0
  27. package/dist/chunk-MDXGGZSW.cjs.map +1 -0
  28. package/dist/chunk-MOAEEF5P.js +7510 -0
  29. package/dist/chunk-MOAEEF5P.js.map +1 -0
  30. package/dist/chunk-NK7HKX2J.cjs +2459 -0
  31. package/dist/chunk-NK7HKX2J.cjs.map +1 -0
  32. package/dist/chunk-NY6TZLST.cjs +8781 -0
  33. package/dist/chunk-NY6TZLST.cjs.map +1 -0
  34. package/dist/chunk-T6STUE7E.js +321 -0
  35. package/dist/chunk-T6STUE7E.js.map +1 -0
  36. package/dist/chunk-TRW7DKLP.cjs +141 -0
  37. package/dist/chunk-TRW7DKLP.cjs.map +1 -0
  38. package/dist/chunk-UPYINBZU.js +8706 -0
  39. package/dist/chunk-UPYINBZU.js.map +1 -0
  40. package/dist/chunk-WWTT2OJ5.js +246 -0
  41. package/dist/chunk-WWTT2OJ5.js.map +1 -0
  42. package/dist/components/index.cjs +222 -0
  43. package/dist/components/index.cjs.map +1 -0
  44. package/dist/components/index.d.cts +207 -0
  45. package/dist/components/index.d.ts +207 -0
  46. package/dist/components/index.js +5 -0
  47. package/dist/components/index.js.map +1 -0
  48. package/dist/dashboard/index.cjs +140 -0
  49. package/dist/dashboard/index.cjs.map +1 -0
  50. package/dist/dashboard/index.d.cts +302 -0
  51. package/dist/dashboard/index.d.ts +302 -0
  52. package/dist/dashboard/index.js +7 -0
  53. package/dist/dashboard/index.js.map +1 -0
  54. package/dist/export/index.cjs +32 -0
  55. package/dist/export/index.cjs.map +1 -0
  56. package/dist/export/index.d.cts +197 -0
  57. package/dist/export/index.d.ts +197 -0
  58. package/dist/export/index.js +3 -0
  59. package/dist/export/index.js.map +1 -0
  60. package/dist/index-C-Qcuu4Y.d.cts +821 -0
  61. package/dist/index-rPc7ijt8.d.ts +821 -0
  62. package/dist/index.cjs +1486 -0
  63. package/dist/index.cjs.map +1 -0
  64. package/dist/index.d.cts +1435 -0
  65. package/dist/index.d.ts +1435 -0
  66. package/dist/index.js +926 -0
  67. package/dist/index.js.map +1 -0
  68. package/dist/ssr/index.cjs +64 -0
  69. package/dist/ssr/index.cjs.map +1 -0
  70. package/dist/ssr/index.d.cts +213 -0
  71. package/dist/ssr/index.d.ts +213 -0
  72. package/dist/ssr/index.js +3 -0
  73. package/dist/ssr/index.js.map +1 -0
  74. package/dist/types-WrCbOeAV.d.cts +569 -0
  75. package/dist/types-WrCbOeAV.d.ts +569 -0
  76. package/dist/utils/index.cjs +64 -0
  77. package/dist/utils/index.cjs.map +1 -0
  78. package/dist/utils/index.d.cts +112 -0
  79. package/dist/utils/index.d.ts +112 -0
  80. package/dist/utils/index.js +3 -0
  81. package/dist/utils/index.js.map +1 -0
  82. package/package.json +110 -0
@@ -0,0 +1,207 @@
1
+ export { ai as AggregationPicker, aj as AggregationPickerProps, a as Badge, m as BadgeProps, B as Button, h as ButtonProps, C as Checkbox, l as CheckboxProps, a0 as ColumnNode, a3 as ColumnNodeProps, a4 as ColumnSelector, a6 as ColumnSelectorProps, aD as CustomSQLEditor, aE as CustomSQLEditorProps, e as Dialog, g as DialogFooter, v as DialogFooterProps, f as DialogHeader, u as DialogHeaderProps, t as DialogProps, D as Dropdown, b as DropdownItem, p as DropdownItemProps, o as DropdownProps, c as DropdownSeparator, q as DropdownSeparatorProps, U as EmptyDashboard, Z as EmptyDashboardProps, P as EmptyState, V as EmptyStateProps, K as ErrorBoundary, M as ErrorBoundaryProps, L as ErrorFallback, N as ErrorFallbackProps, a8 as FilterBuilder, ab as FilterBuilderProps, a9 as FilterRow, ac as FilterRowProps, aa as FilterValueInput, ad as FilterValueInputProps, d as Icon, s as IconName, r as IconProps, I as Input, i as InputProps, Q as NoData, X as NoDataProps, R as NoResults, Y as NoResultsProps, ao as Pagination, at as PaginationProps, au as QueryBuilder, ax as QueryBuilderProps, ay as QueryBuilderState, av as QueryBuilderToolbar, az as QueryBuilderToolbarProps, aw as QueryPreview, aA as QueryPreviewProps, ak as ResultsTable, ap as ResultsTableProps, aB as SavedQueryPicker, aC as SavedQueryPickerProps, _ as SchemaExplorer, a1 as SchemaExplorerProps, S as Select, k as SelectOption, j as SelectProps, a5 as SelectedColumn, a7 as SelectedColumnProps, w as Skeleton, y as SkeletonChart, G as SkeletonChartProps, A as SkeletonMetricCard, J as SkeletonMetricCardProps, E as SkeletonProps, z as SkeletonTable, H as SkeletonTableProps, x as SkeletonText, F as SkeletonTextProps, ae as SortBuilder, ag as SortBuilderProps, af as SortRow, ah as SortRowProps, an as TableCell, as as TableCellProps, al as TableHeader, aq as TableHeaderProps, $ as TableNode, a2 as TableNodeProps, am as TableRow, ar as TableRowProps, T as Tooltip, n as TooltipProps, W as WidgetErrorBoundary, O as WidgetErrorBoundaryProps } from '../CustomSQLEditor-BXB4rf1q.cjs';
2
+ import { b as QueryTable, J as JoinDefinition, D as DatabaseSchema, T as TimeSeriesConfig$1, C as CalculatedField } from '../types-WrCbOeAV.cjs';
3
+ import * as react from 'react';
4
+ import { HTMLAttributes } from 'react';
5
+
6
+ /**
7
+ * useDebouncedLayoutSave hook.
8
+ *
9
+ * Debounces layout position updates to reduce API calls during drag/resize.
10
+ */
11
+
12
+ /**
13
+ * Save status states.
14
+ */
15
+ type SaveStatus = 'idle' | 'pending' | 'saving' | 'saved' | 'error';
16
+
17
+ /**
18
+ * JoinBuilder component for defining table joins.
19
+ */
20
+
21
+ interface JoinBuilderProps {
22
+ /** Tables in the query. */
23
+ tables: QueryTable[];
24
+ /** Current join definitions. */
25
+ joins: JoinDefinition[];
26
+ /** Callback when joins change. */
27
+ onChange: (joins: JoinDefinition[]) => void;
28
+ /** Database schema. */
29
+ schema: DatabaseSchema;
30
+ /** Maximum number of joins allowed. */
31
+ maxJoins?: number;
32
+ /** Additional class name. */
33
+ className?: string;
34
+ /** Additional styles. */
35
+ style?: React.CSSProperties;
36
+ }
37
+ /**
38
+ * Join builder component for defining table joins.
39
+ *
40
+ * @example
41
+ * ```tsx
42
+ * <JoinBuilder
43
+ * tables={query.tables}
44
+ * joins={query.joins ?? []}
45
+ * onChange={(joins) => setQuery({ ...query, joins })}
46
+ * schema={schema}
47
+ * maxJoins={5}
48
+ * />
49
+ * ```
50
+ */
51
+ declare function JoinBuilder({ tables, joins, onChange, schema, maxJoins, className, style, }: JoinBuilderProps): JSX.Element;
52
+
53
+ /**
54
+ * JoinRow component for configuring a single join.
55
+ */
56
+
57
+ interface JoinRowProps {
58
+ /** The join definition. */
59
+ join: JoinDefinition;
60
+ /** Tables in the query. */
61
+ tables: QueryTable[];
62
+ /** Database schema. */
63
+ schema: DatabaseSchema;
64
+ /** Row index. */
65
+ index: number;
66
+ /** Callback when join changes. */
67
+ onChange: (join: JoinDefinition) => void;
68
+ /** Callback when join is removed. */
69
+ onRemove: () => void;
70
+ }
71
+ /**
72
+ * A single join row in the join builder.
73
+ */
74
+ declare function JoinRow({ join, tables, schema, index, onChange, onRemove, }: JoinRowProps): JSX.Element;
75
+
76
+ interface AutoSaveIndicatorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
77
+ /** Current save status. */
78
+ status: SaveStatus;
79
+ /** Error if status is error. */
80
+ error?: Error | null;
81
+ }
82
+ /**
83
+ * Auto-save status indicator.
84
+ *
85
+ * Shows pending, saving, saved, or error states.
86
+ * Renders nothing when idle.
87
+ *
88
+ * @example
89
+ * ```tsx
90
+ * const { status, error } = useDebouncedLayoutSave({ dashboardId: id });
91
+ *
92
+ * <AutoSaveIndicator status={status} error={error} />
93
+ * ```
94
+ */
95
+ declare const AutoSaveIndicator: react.ForwardRefExoticComponent<AutoSaveIndicatorProps & react.RefAttributes<HTMLDivElement>>;
96
+
97
+ /**
98
+ * TableSelector component for selecting multiple tables in a query.
99
+ *
100
+ * Allows adding and removing tables with support for suggested joins
101
+ * based on schema relationships.
102
+ */
103
+
104
+ interface TableSelectorProps {
105
+ /** Database schema with available tables. */
106
+ schema: DatabaseSchema;
107
+ /** Currently selected tables. */
108
+ tables: QueryTable[];
109
+ /** Callback when tables change. */
110
+ onChange: (tables: QueryTable[]) => void;
111
+ /** Maximum number of tables allowed. */
112
+ maxTables?: number;
113
+ /** Whether to show relationship suggestions. */
114
+ showRelationships?: boolean;
115
+ /** Additional class name. */
116
+ className?: string;
117
+ }
118
+ /**
119
+ * Multi-table selector with relationship suggestions.
120
+ */
121
+ declare function TableSelector({ schema, tables, onChange, maxTables, showRelationships, className, }: TableSelectorProps): JSX.Element;
122
+
123
+ /**
124
+ * TimeSeriesConfig component for configuring time series queries.
125
+ *
126
+ * Provides controls for:
127
+ * - Time bucket interval (minute, hour, day, week, month, quarter, year)
128
+ * - Fill missing time buckets toggle
129
+ * - Fill value for missing buckets
130
+ */
131
+
132
+ interface TimeSeriesConfigProps {
133
+ /** Database schema for column type detection. */
134
+ schema: DatabaseSchema;
135
+ /** Tables in the current query. */
136
+ tables: QueryTable[];
137
+ /** Current time series configuration (can be undefined). */
138
+ config: TimeSeriesConfig$1 | undefined;
139
+ /** Callback when configuration changes. */
140
+ onChange: (config: TimeSeriesConfig$1 | undefined) => void;
141
+ /** Pre-selected date column (from group by selection). */
142
+ selectedDateColumn?: {
143
+ table_id: string;
144
+ column: string;
145
+ };
146
+ }
147
+ /**
148
+ * Time series configuration component for date-based charts.
149
+ */
150
+ declare function TimeSeriesConfig({ schema, tables, config, onChange, selectedDateColumn, }: TimeSeriesConfigProps): JSX.Element;
151
+
152
+ /**
153
+ * CalculatedFieldBuilder component for creating and managing calculated fields.
154
+ *
155
+ * Provides UI for:
156
+ * - Adding new calculated fields
157
+ * - Editing field names and expressions
158
+ * - Selecting data types
159
+ * - Removing fields
160
+ */
161
+
162
+ interface CalculatedFieldBuilderProps {
163
+ /** Current calculated fields. */
164
+ fields: CalculatedField[];
165
+ /** Callback when fields change. */
166
+ onChange: (fields: CalculatedField[]) => void;
167
+ /** Tables in the query (for field references). */
168
+ tables: QueryTable[];
169
+ /** Database schema for field information. */
170
+ schema: DatabaseSchema;
171
+ /** Maximum number of calculated fields allowed. */
172
+ maxFields?: number;
173
+ }
174
+ /**
175
+ * Builder for creating and managing calculated fields.
176
+ */
177
+ declare function CalculatedFieldBuilder({ fields, onChange, tables, schema, maxFields, }: CalculatedFieldBuilderProps): JSX.Element;
178
+
179
+ /**
180
+ * ExpressionEditor component for editing calculated field expressions.
181
+ *
182
+ * Provides a text input with:
183
+ * - Expression syntax help
184
+ * - Available functions reference
185
+ * - Field reference insertion
186
+ */
187
+
188
+ interface ExpressionEditorProps {
189
+ /** Current expression value. */
190
+ value: string;
191
+ /** Callback when expression changes. */
192
+ onChange: (value: string) => void;
193
+ /** Tables in the query (for field references). */
194
+ tables: QueryTable[];
195
+ /** Database schema for field information. */
196
+ schema: DatabaseSchema;
197
+ /** Placeholder text. */
198
+ placeholder?: string;
199
+ /** Whether the input is disabled. */
200
+ disabled?: boolean;
201
+ }
202
+ /**
203
+ * Expression editor with syntax help and field insertion.
204
+ */
205
+ declare function ExpressionEditor({ value, onChange, tables, schema, placeholder, disabled, }: ExpressionEditorProps): JSX.Element;
206
+
207
+ export { AutoSaveIndicator, type AutoSaveIndicatorProps, CalculatedFieldBuilder, type CalculatedFieldBuilderProps, ExpressionEditor, type ExpressionEditorProps, JoinBuilder, type JoinBuilderProps, JoinRow, type JoinRowProps, TableSelector, type TableSelectorProps, TimeSeriesConfig, type TimeSeriesConfigProps };
@@ -0,0 +1,207 @@
1
+ export { ai as AggregationPicker, aj as AggregationPickerProps, a as Badge, m as BadgeProps, B as Button, h as ButtonProps, C as Checkbox, l as CheckboxProps, a0 as ColumnNode, a3 as ColumnNodeProps, a4 as ColumnSelector, a6 as ColumnSelectorProps, aD as CustomSQLEditor, aE as CustomSQLEditorProps, e as Dialog, g as DialogFooter, v as DialogFooterProps, f as DialogHeader, u as DialogHeaderProps, t as DialogProps, D as Dropdown, b as DropdownItem, p as DropdownItemProps, o as DropdownProps, c as DropdownSeparator, q as DropdownSeparatorProps, U as EmptyDashboard, Z as EmptyDashboardProps, P as EmptyState, V as EmptyStateProps, K as ErrorBoundary, M as ErrorBoundaryProps, L as ErrorFallback, N as ErrorFallbackProps, a8 as FilterBuilder, ab as FilterBuilderProps, a9 as FilterRow, ac as FilterRowProps, aa as FilterValueInput, ad as FilterValueInputProps, d as Icon, s as IconName, r as IconProps, I as Input, i as InputProps, Q as NoData, X as NoDataProps, R as NoResults, Y as NoResultsProps, ao as Pagination, at as PaginationProps, au as QueryBuilder, ax as QueryBuilderProps, ay as QueryBuilderState, av as QueryBuilderToolbar, az as QueryBuilderToolbarProps, aw as QueryPreview, aA as QueryPreviewProps, ak as ResultsTable, ap as ResultsTableProps, aB as SavedQueryPicker, aC as SavedQueryPickerProps, _ as SchemaExplorer, a1 as SchemaExplorerProps, S as Select, k as SelectOption, j as SelectProps, a5 as SelectedColumn, a7 as SelectedColumnProps, w as Skeleton, y as SkeletonChart, G as SkeletonChartProps, A as SkeletonMetricCard, J as SkeletonMetricCardProps, E as SkeletonProps, z as SkeletonTable, H as SkeletonTableProps, x as SkeletonText, F as SkeletonTextProps, ae as SortBuilder, ag as SortBuilderProps, af as SortRow, ah as SortRowProps, an as TableCell, as as TableCellProps, al as TableHeader, aq as TableHeaderProps, $ as TableNode, a2 as TableNodeProps, am as TableRow, ar as TableRowProps, T as Tooltip, n as TooltipProps, W as WidgetErrorBoundary, O as WidgetErrorBoundaryProps } from '../CustomSQLEditor-DYeId0Gp.js';
2
+ import { b as QueryTable, J as JoinDefinition, D as DatabaseSchema, T as TimeSeriesConfig$1, C as CalculatedField } from '../types-WrCbOeAV.js';
3
+ import * as react from 'react';
4
+ import { HTMLAttributes } from 'react';
5
+
6
+ /**
7
+ * useDebouncedLayoutSave hook.
8
+ *
9
+ * Debounces layout position updates to reduce API calls during drag/resize.
10
+ */
11
+
12
+ /**
13
+ * Save status states.
14
+ */
15
+ type SaveStatus = 'idle' | 'pending' | 'saving' | 'saved' | 'error';
16
+
17
+ /**
18
+ * JoinBuilder component for defining table joins.
19
+ */
20
+
21
+ interface JoinBuilderProps {
22
+ /** Tables in the query. */
23
+ tables: QueryTable[];
24
+ /** Current join definitions. */
25
+ joins: JoinDefinition[];
26
+ /** Callback when joins change. */
27
+ onChange: (joins: JoinDefinition[]) => void;
28
+ /** Database schema. */
29
+ schema: DatabaseSchema;
30
+ /** Maximum number of joins allowed. */
31
+ maxJoins?: number;
32
+ /** Additional class name. */
33
+ className?: string;
34
+ /** Additional styles. */
35
+ style?: React.CSSProperties;
36
+ }
37
+ /**
38
+ * Join builder component for defining table joins.
39
+ *
40
+ * @example
41
+ * ```tsx
42
+ * <JoinBuilder
43
+ * tables={query.tables}
44
+ * joins={query.joins ?? []}
45
+ * onChange={(joins) => setQuery({ ...query, joins })}
46
+ * schema={schema}
47
+ * maxJoins={5}
48
+ * />
49
+ * ```
50
+ */
51
+ declare function JoinBuilder({ tables, joins, onChange, schema, maxJoins, className, style, }: JoinBuilderProps): JSX.Element;
52
+
53
+ /**
54
+ * JoinRow component for configuring a single join.
55
+ */
56
+
57
+ interface JoinRowProps {
58
+ /** The join definition. */
59
+ join: JoinDefinition;
60
+ /** Tables in the query. */
61
+ tables: QueryTable[];
62
+ /** Database schema. */
63
+ schema: DatabaseSchema;
64
+ /** Row index. */
65
+ index: number;
66
+ /** Callback when join changes. */
67
+ onChange: (join: JoinDefinition) => void;
68
+ /** Callback when join is removed. */
69
+ onRemove: () => void;
70
+ }
71
+ /**
72
+ * A single join row in the join builder.
73
+ */
74
+ declare function JoinRow({ join, tables, schema, index, onChange, onRemove, }: JoinRowProps): JSX.Element;
75
+
76
+ interface AutoSaveIndicatorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
77
+ /** Current save status. */
78
+ status: SaveStatus;
79
+ /** Error if status is error. */
80
+ error?: Error | null;
81
+ }
82
+ /**
83
+ * Auto-save status indicator.
84
+ *
85
+ * Shows pending, saving, saved, or error states.
86
+ * Renders nothing when idle.
87
+ *
88
+ * @example
89
+ * ```tsx
90
+ * const { status, error } = useDebouncedLayoutSave({ dashboardId: id });
91
+ *
92
+ * <AutoSaveIndicator status={status} error={error} />
93
+ * ```
94
+ */
95
+ declare const AutoSaveIndicator: react.ForwardRefExoticComponent<AutoSaveIndicatorProps & react.RefAttributes<HTMLDivElement>>;
96
+
97
+ /**
98
+ * TableSelector component for selecting multiple tables in a query.
99
+ *
100
+ * Allows adding and removing tables with support for suggested joins
101
+ * based on schema relationships.
102
+ */
103
+
104
+ interface TableSelectorProps {
105
+ /** Database schema with available tables. */
106
+ schema: DatabaseSchema;
107
+ /** Currently selected tables. */
108
+ tables: QueryTable[];
109
+ /** Callback when tables change. */
110
+ onChange: (tables: QueryTable[]) => void;
111
+ /** Maximum number of tables allowed. */
112
+ maxTables?: number;
113
+ /** Whether to show relationship suggestions. */
114
+ showRelationships?: boolean;
115
+ /** Additional class name. */
116
+ className?: string;
117
+ }
118
+ /**
119
+ * Multi-table selector with relationship suggestions.
120
+ */
121
+ declare function TableSelector({ schema, tables, onChange, maxTables, showRelationships, className, }: TableSelectorProps): JSX.Element;
122
+
123
+ /**
124
+ * TimeSeriesConfig component for configuring time series queries.
125
+ *
126
+ * Provides controls for:
127
+ * - Time bucket interval (minute, hour, day, week, month, quarter, year)
128
+ * - Fill missing time buckets toggle
129
+ * - Fill value for missing buckets
130
+ */
131
+
132
+ interface TimeSeriesConfigProps {
133
+ /** Database schema for column type detection. */
134
+ schema: DatabaseSchema;
135
+ /** Tables in the current query. */
136
+ tables: QueryTable[];
137
+ /** Current time series configuration (can be undefined). */
138
+ config: TimeSeriesConfig$1 | undefined;
139
+ /** Callback when configuration changes. */
140
+ onChange: (config: TimeSeriesConfig$1 | undefined) => void;
141
+ /** Pre-selected date column (from group by selection). */
142
+ selectedDateColumn?: {
143
+ table_id: string;
144
+ column: string;
145
+ };
146
+ }
147
+ /**
148
+ * Time series configuration component for date-based charts.
149
+ */
150
+ declare function TimeSeriesConfig({ schema, tables, config, onChange, selectedDateColumn, }: TimeSeriesConfigProps): JSX.Element;
151
+
152
+ /**
153
+ * CalculatedFieldBuilder component for creating and managing calculated fields.
154
+ *
155
+ * Provides UI for:
156
+ * - Adding new calculated fields
157
+ * - Editing field names and expressions
158
+ * - Selecting data types
159
+ * - Removing fields
160
+ */
161
+
162
+ interface CalculatedFieldBuilderProps {
163
+ /** Current calculated fields. */
164
+ fields: CalculatedField[];
165
+ /** Callback when fields change. */
166
+ onChange: (fields: CalculatedField[]) => void;
167
+ /** Tables in the query (for field references). */
168
+ tables: QueryTable[];
169
+ /** Database schema for field information. */
170
+ schema: DatabaseSchema;
171
+ /** Maximum number of calculated fields allowed. */
172
+ maxFields?: number;
173
+ }
174
+ /**
175
+ * Builder for creating and managing calculated fields.
176
+ */
177
+ declare function CalculatedFieldBuilder({ fields, onChange, tables, schema, maxFields, }: CalculatedFieldBuilderProps): JSX.Element;
178
+
179
+ /**
180
+ * ExpressionEditor component for editing calculated field expressions.
181
+ *
182
+ * Provides a text input with:
183
+ * - Expression syntax help
184
+ * - Available functions reference
185
+ * - Field reference insertion
186
+ */
187
+
188
+ interface ExpressionEditorProps {
189
+ /** Current expression value. */
190
+ value: string;
191
+ /** Callback when expression changes. */
192
+ onChange: (value: string) => void;
193
+ /** Tables in the query (for field references). */
194
+ tables: QueryTable[];
195
+ /** Database schema for field information. */
196
+ schema: DatabaseSchema;
197
+ /** Placeholder text. */
198
+ placeholder?: string;
199
+ /** Whether the input is disabled. */
200
+ disabled?: boolean;
201
+ }
202
+ /**
203
+ * Expression editor with syntax help and field insertion.
204
+ */
205
+ declare function ExpressionEditor({ value, onChange, tables, schema, placeholder, disabled, }: ExpressionEditorProps): JSX.Element;
206
+
207
+ export { AutoSaveIndicator, type AutoSaveIndicatorProps, CalculatedFieldBuilder, type CalculatedFieldBuilderProps, ExpressionEditor, type ExpressionEditorProps, JoinBuilder, type JoinBuilderProps, JoinRow, type JoinRowProps, TableSelector, type TableSelectorProps, TimeSeriesConfig, type TimeSeriesConfigProps };
@@ -0,0 +1,5 @@
1
+ export { AggregationPicker, AutoSaveIndicator, Badge, Button, CalculatedFieldBuilder, Checkbox, ColumnNode, ColumnSelector, CustomSQLEditor, Dialog, DialogFooter, DialogHeader, Dropdown, DropdownItem, DropdownSeparator, EmptyDashboard, EmptyState, ErrorBoundary, ErrorFallback, ExpressionEditor, FilterBuilder, FilterRow, FilterValueInput, Icon, Input, JoinBuilder, JoinRow, NoData, NoResults, Pagination, QueryBuilder, QueryBuilderToolbar, QueryPreview, ResultsTable, SavedQueryPicker, SchemaExplorer, Select, SelectedColumn, Skeleton, SkeletonChart, SkeletonMetricCard, SkeletonTable, SkeletonText, SortBuilder, SortRow, TableCell, TableHeader, TableNode, TableRow, TableSelector, TimeSeriesConfig, Tooltip, WidgetErrorBoundary } from '../chunk-UPYINBZU.js';
2
+ import '../chunk-T6STUE7E.js';
3
+ import '../chunk-EX74SI67.js';
4
+ //# sourceMappingURL=index.js.map
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,140 @@
1
+ 'use strict';
2
+
3
+ var chunkFEABEF3J_cjs = require('../chunk-FEABEF3J.cjs');
4
+ require('../chunk-NK7HKX2J.cjs');
5
+ require('../chunk-NY6TZLST.cjs');
6
+ require('../chunk-LMTG3LRC.cjs');
7
+ require('../chunk-4AVL6GQK.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "Dashboard", {
12
+ enumerable: true,
13
+ get: function () { return chunkFEABEF3J_cjs.Dashboard; }
14
+ });
15
+ Object.defineProperty(exports, "DashboardCard", {
16
+ enumerable: true,
17
+ get: function () { return chunkFEABEF3J_cjs.DashboardCard; }
18
+ });
19
+ Object.defineProperty(exports, "DashboardContext", {
20
+ enumerable: true,
21
+ get: function () { return chunkFEABEF3J_cjs.DashboardContext; }
22
+ });
23
+ Object.defineProperty(exports, "DashboardDialog", {
24
+ enumerable: true,
25
+ get: function () { return chunkFEABEF3J_cjs.DashboardDialog; }
26
+ });
27
+ Object.defineProperty(exports, "DashboardEditor", {
28
+ enumerable: true,
29
+ get: function () { return chunkFEABEF3J_cjs.DashboardEditor; }
30
+ });
31
+ Object.defineProperty(exports, "DashboardLayoutComponent", {
32
+ enumerable: true,
33
+ get: function () { return chunkFEABEF3J_cjs.DashboardLayout; }
34
+ });
35
+ Object.defineProperty(exports, "DashboardList", {
36
+ enumerable: true,
37
+ get: function () { return chunkFEABEF3J_cjs.DashboardList; }
38
+ });
39
+ Object.defineProperty(exports, "DashboardProvider", {
40
+ enumerable: true,
41
+ get: function () { return chunkFEABEF3J_cjs.DashboardProvider; }
42
+ });
43
+ Object.defineProperty(exports, "DateRangeFilter", {
44
+ enumerable: true,
45
+ get: function () { return chunkFEABEF3J_cjs.DateRangeFilter; }
46
+ });
47
+ Object.defineProperty(exports, "EditableDashboardLayout", {
48
+ enumerable: true,
49
+ get: function () { return chunkFEABEF3J_cjs.EditableDashboardLayout; }
50
+ });
51
+ Object.defineProperty(exports, "EditorToolbar", {
52
+ enumerable: true,
53
+ get: function () { return chunkFEABEF3J_cjs.EditorToolbar; }
54
+ });
55
+ Object.defineProperty(exports, "FilterBar", {
56
+ enumerable: true,
57
+ get: function () { return chunkFEABEF3J_cjs.FilterBar; }
58
+ });
59
+ Object.defineProperty(exports, "LazyWidget", {
60
+ enumerable: true,
61
+ get: function () { return chunkFEABEF3J_cjs.LazyWidget; }
62
+ });
63
+ Object.defineProperty(exports, "MultiSelectFilter", {
64
+ enumerable: true,
65
+ get: function () { return chunkFEABEF3J_cjs.MultiSelectFilter; }
66
+ });
67
+ Object.defineProperty(exports, "SelectFilter", {
68
+ enumerable: true,
69
+ get: function () { return chunkFEABEF3J_cjs.SelectFilter; }
70
+ });
71
+ Object.defineProperty(exports, "TextFilter", {
72
+ enumerable: true,
73
+ get: function () { return chunkFEABEF3J_cjs.TextFilter; }
74
+ });
75
+ Object.defineProperty(exports, "Widget", {
76
+ enumerable: true,
77
+ get: function () { return chunkFEABEF3J_cjs.Widget; }
78
+ });
79
+ Object.defineProperty(exports, "WidgetContainer", {
80
+ enumerable: true,
81
+ get: function () { return chunkFEABEF3J_cjs.WidgetContainer; }
82
+ });
83
+ Object.defineProperty(exports, "WidgetContent", {
84
+ enumerable: true,
85
+ get: function () { return chunkFEABEF3J_cjs.WidgetContent; }
86
+ });
87
+ Object.defineProperty(exports, "WidgetEditor", {
88
+ enumerable: true,
89
+ get: function () { return chunkFEABEF3J_cjs.WidgetEditor; }
90
+ });
91
+ Object.defineProperty(exports, "WidgetEditorPage", {
92
+ enumerable: true,
93
+ get: function () { return chunkFEABEF3J_cjs.WidgetEditorPage; }
94
+ });
95
+ Object.defineProperty(exports, "WidgetHeader", {
96
+ enumerable: true,
97
+ get: function () { return chunkFEABEF3J_cjs.WidgetHeader; }
98
+ });
99
+ Object.defineProperty(exports, "WidgetPalette", {
100
+ enumerable: true,
101
+ get: function () { return chunkFEABEF3J_cjs.WidgetPalette; }
102
+ });
103
+ Object.defineProperty(exports, "WidgetPlaceholder", {
104
+ enumerable: true,
105
+ get: function () { return chunkFEABEF3J_cjs.WidgetPlaceholder; }
106
+ });
107
+ Object.defineProperty(exports, "WidgetPreview", {
108
+ enumerable: true,
109
+ get: function () { return chunkFEABEF3J_cjs.WidgetPreview; }
110
+ });
111
+ Object.defineProperty(exports, "WidgetTypeSelector", {
112
+ enumerable: true,
113
+ get: function () { return chunkFEABEF3J_cjs.WidgetTypeSelector; }
114
+ });
115
+ Object.defineProperty(exports, "useAutoRefresh", {
116
+ enumerable: true,
117
+ get: function () { return chunkFEABEF3J_cjs.useAutoRefresh; }
118
+ });
119
+ Object.defineProperty(exports, "useDashboard", {
120
+ enumerable: true,
121
+ get: function () { return chunkFEABEF3J_cjs.useDashboard; }
122
+ });
123
+ Object.defineProperty(exports, "useDashboardFilters", {
124
+ enumerable: true,
125
+ get: function () { return chunkFEABEF3J_cjs.useDashboardFilters; }
126
+ });
127
+ Object.defineProperty(exports, "useFullscreen", {
128
+ enumerable: true,
129
+ get: function () { return chunkFEABEF3J_cjs.useFullscreen; }
130
+ });
131
+ Object.defineProperty(exports, "useWidget", {
132
+ enumerable: true,
133
+ get: function () { return chunkFEABEF3J_cjs.useWidget; }
134
+ });
135
+ Object.defineProperty(exports, "useWidgetVisibility", {
136
+ enumerable: true,
137
+ get: function () { return chunkFEABEF3J_cjs.useWidgetVisibility; }
138
+ });
139
+ //# sourceMappingURL=index.cjs.map
140
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}