@prismiq/react 0.1.0 → 0.2.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 (65) hide show
  1. package/dist/{CustomSQLEditor-DYeId0Gp.d.ts → ChatBubble-ARocmvZD.d.cts} +48 -4
  2. package/dist/{CustomSQLEditor-BXB4rf1q.d.cts → ChatBubble-BN_CjIpk.d.ts} +48 -4
  3. package/dist/{DashboardDialog-B3vYC5Gs.d.ts → DashboardDialog-UhUGXx2h.d.ts} +6 -4
  4. package/dist/{DashboardDialog-LHmrtNQU.d.cts → DashboardDialog-Z-HypxmG.d.cts} +6 -4
  5. package/dist/{accessibility-2yy5yqRR.d.cts → accessibility-Bu2mNtaB.d.cts} +1 -1
  6. package/dist/{accessibility-2yy5yqRR.d.ts → accessibility-Bu2mNtaB.d.ts} +1 -1
  7. package/dist/charts/index.cjs +27 -27
  8. package/dist/charts/index.d.cts +2 -2
  9. package/dist/charts/index.d.ts +2 -2
  10. package/dist/charts/index.js +2 -2
  11. package/dist/{chunk-NK7HKX2J.cjs → chunk-73TPDGXB.cjs} +7 -7
  12. package/dist/{chunk-NK7HKX2J.cjs.map → chunk-73TPDGXB.cjs.map} +1 -1
  13. package/dist/{chunk-FEABEF3J.cjs → chunk-FKXCINUF.cjs} +551 -299
  14. package/dist/chunk-FKXCINUF.cjs.map +1 -0
  15. package/dist/{chunk-2H5WTH4K.js → chunk-FQ23KG6G.js} +3 -3
  16. package/dist/{chunk-2H5WTH4K.js.map → chunk-FQ23KG6G.js.map} +1 -1
  17. package/dist/{chunk-UPYINBZU.js → chunk-GELI7MDZ.js} +982 -51
  18. package/dist/chunk-GELI7MDZ.js.map +1 -0
  19. package/dist/{chunk-WWTT2OJ5.js → chunk-HKZFEXT6.js} +27 -9
  20. package/dist/chunk-HKZFEXT6.js.map +1 -0
  21. package/dist/{chunk-MOAEEF5P.js → chunk-JBJ5LEAG.js} +362 -110
  22. package/dist/chunk-JBJ5LEAG.js.map +1 -0
  23. package/dist/{chunk-4AVL6GQK.cjs → chunk-KXB2IZI2.cjs} +36 -9
  24. package/dist/chunk-KXB2IZI2.cjs.map +1 -0
  25. package/dist/{chunk-EX74SI67.js → chunk-LBE6GIBC.js} +36 -9
  26. package/dist/chunk-LBE6GIBC.js.map +1 -0
  27. package/dist/{chunk-NY6TZLST.cjs → chunk-PG7QBH3G.cjs} +988 -53
  28. package/dist/chunk-PG7QBH3G.cjs.map +1 -0
  29. package/dist/{chunk-MDXGGZSW.cjs → chunk-ZYVN6XAZ.cjs} +35 -37
  30. package/dist/chunk-ZYVN6XAZ.cjs.map +1 -0
  31. package/dist/components/index.cjs +63 -55
  32. package/dist/components/index.d.cts +2 -2
  33. package/dist/components/index.d.ts +2 -2
  34. package/dist/components/index.js +2 -2
  35. package/dist/dashboard/index.cjs +36 -36
  36. package/dist/dashboard/index.d.cts +7 -5
  37. package/dist/dashboard/index.d.ts +7 -5
  38. package/dist/dashboard/index.js +4 -4
  39. package/dist/export/index.cjs +7 -7
  40. package/dist/export/index.d.cts +6 -4
  41. package/dist/export/index.d.ts +6 -4
  42. package/dist/export/index.js +1 -1
  43. package/dist/{index-C-Qcuu4Y.d.cts → index-B8DelfpL.d.cts} +2 -2
  44. package/dist/{index-rPc7ijt8.d.ts → index-RbfYPQD_.d.ts} +2 -2
  45. package/dist/index.cjs +150 -134
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.d.cts +97 -9
  48. package/dist/index.d.ts +97 -9
  49. package/dist/index.js +7 -7
  50. package/dist/index.js.map +1 -1
  51. package/dist/{types-WrCbOeAV.d.cts → types-ccB9Ps3k.d.cts} +59 -1
  52. package/dist/{types-WrCbOeAV.d.ts → types-ccB9Ps3k.d.ts} +59 -1
  53. package/dist/utils/index.cjs +15 -15
  54. package/dist/utils/index.d.cts +5 -21
  55. package/dist/utils/index.d.ts +5 -21
  56. package/dist/utils/index.js +1 -1
  57. package/package.json +3 -7
  58. package/dist/chunk-4AVL6GQK.cjs.map +0 -1
  59. package/dist/chunk-EX74SI67.js.map +0 -1
  60. package/dist/chunk-FEABEF3J.cjs.map +0 -1
  61. package/dist/chunk-MDXGGZSW.cjs.map +0 -1
  62. package/dist/chunk-MOAEEF5P.js.map +0 -1
  63. package/dist/chunk-NY6TZLST.cjs.map +0 -1
  64. package/dist/chunk-UPYINBZU.js.map +0 -1
  65. package/dist/chunk-WWTT2OJ5.js.map +0 -1
@@ -1,140 +1,140 @@
1
1
  'use strict';
2
2
 
3
- var chunkFEABEF3J_cjs = require('../chunk-FEABEF3J.cjs');
4
- require('../chunk-NK7HKX2J.cjs');
5
- require('../chunk-NY6TZLST.cjs');
3
+ var chunkFKXCINUF_cjs = require('../chunk-FKXCINUF.cjs');
4
+ require('../chunk-73TPDGXB.cjs');
5
+ require('../chunk-PG7QBH3G.cjs');
6
6
  require('../chunk-LMTG3LRC.cjs');
7
- require('../chunk-4AVL6GQK.cjs');
7
+ require('../chunk-KXB2IZI2.cjs');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "Dashboard", {
12
12
  enumerable: true,
13
- get: function () { return chunkFEABEF3J_cjs.Dashboard; }
13
+ get: function () { return chunkFKXCINUF_cjs.Dashboard; }
14
14
  });
15
15
  Object.defineProperty(exports, "DashboardCard", {
16
16
  enumerable: true,
17
- get: function () { return chunkFEABEF3J_cjs.DashboardCard; }
17
+ get: function () { return chunkFKXCINUF_cjs.DashboardCard; }
18
18
  });
19
19
  Object.defineProperty(exports, "DashboardContext", {
20
20
  enumerable: true,
21
- get: function () { return chunkFEABEF3J_cjs.DashboardContext; }
21
+ get: function () { return chunkFKXCINUF_cjs.DashboardContext; }
22
22
  });
23
23
  Object.defineProperty(exports, "DashboardDialog", {
24
24
  enumerable: true,
25
- get: function () { return chunkFEABEF3J_cjs.DashboardDialog; }
25
+ get: function () { return chunkFKXCINUF_cjs.DashboardDialog; }
26
26
  });
27
27
  Object.defineProperty(exports, "DashboardEditor", {
28
28
  enumerable: true,
29
- get: function () { return chunkFEABEF3J_cjs.DashboardEditor; }
29
+ get: function () { return chunkFKXCINUF_cjs.DashboardEditor; }
30
30
  });
31
31
  Object.defineProperty(exports, "DashboardLayoutComponent", {
32
32
  enumerable: true,
33
- get: function () { return chunkFEABEF3J_cjs.DashboardLayout; }
33
+ get: function () { return chunkFKXCINUF_cjs.DashboardLayout; }
34
34
  });
35
35
  Object.defineProperty(exports, "DashboardList", {
36
36
  enumerable: true,
37
- get: function () { return chunkFEABEF3J_cjs.DashboardList; }
37
+ get: function () { return chunkFKXCINUF_cjs.DashboardList; }
38
38
  });
39
39
  Object.defineProperty(exports, "DashboardProvider", {
40
40
  enumerable: true,
41
- get: function () { return chunkFEABEF3J_cjs.DashboardProvider; }
41
+ get: function () { return chunkFKXCINUF_cjs.DashboardProvider; }
42
42
  });
43
43
  Object.defineProperty(exports, "DateRangeFilter", {
44
44
  enumerable: true,
45
- get: function () { return chunkFEABEF3J_cjs.DateRangeFilter; }
45
+ get: function () { return chunkFKXCINUF_cjs.DateRangeFilter; }
46
46
  });
47
47
  Object.defineProperty(exports, "EditableDashboardLayout", {
48
48
  enumerable: true,
49
- get: function () { return chunkFEABEF3J_cjs.EditableDashboardLayout; }
49
+ get: function () { return chunkFKXCINUF_cjs.EditableDashboardLayout; }
50
50
  });
51
51
  Object.defineProperty(exports, "EditorToolbar", {
52
52
  enumerable: true,
53
- get: function () { return chunkFEABEF3J_cjs.EditorToolbar; }
53
+ get: function () { return chunkFKXCINUF_cjs.EditorToolbar; }
54
54
  });
55
55
  Object.defineProperty(exports, "FilterBar", {
56
56
  enumerable: true,
57
- get: function () { return chunkFEABEF3J_cjs.FilterBar; }
57
+ get: function () { return chunkFKXCINUF_cjs.FilterBar; }
58
58
  });
59
59
  Object.defineProperty(exports, "LazyWidget", {
60
60
  enumerable: true,
61
- get: function () { return chunkFEABEF3J_cjs.LazyWidget; }
61
+ get: function () { return chunkFKXCINUF_cjs.LazyWidget; }
62
62
  });
63
63
  Object.defineProperty(exports, "MultiSelectFilter", {
64
64
  enumerable: true,
65
- get: function () { return chunkFEABEF3J_cjs.MultiSelectFilter; }
65
+ get: function () { return chunkFKXCINUF_cjs.MultiSelectFilter; }
66
66
  });
67
67
  Object.defineProperty(exports, "SelectFilter", {
68
68
  enumerable: true,
69
- get: function () { return chunkFEABEF3J_cjs.SelectFilter; }
69
+ get: function () { return chunkFKXCINUF_cjs.SelectFilter; }
70
70
  });
71
71
  Object.defineProperty(exports, "TextFilter", {
72
72
  enumerable: true,
73
- get: function () { return chunkFEABEF3J_cjs.TextFilter; }
73
+ get: function () { return chunkFKXCINUF_cjs.TextFilter; }
74
74
  });
75
75
  Object.defineProperty(exports, "Widget", {
76
76
  enumerable: true,
77
- get: function () { return chunkFEABEF3J_cjs.Widget; }
77
+ get: function () { return chunkFKXCINUF_cjs.Widget; }
78
78
  });
79
79
  Object.defineProperty(exports, "WidgetContainer", {
80
80
  enumerable: true,
81
- get: function () { return chunkFEABEF3J_cjs.WidgetContainer; }
81
+ get: function () { return chunkFKXCINUF_cjs.WidgetContainer; }
82
82
  });
83
83
  Object.defineProperty(exports, "WidgetContent", {
84
84
  enumerable: true,
85
- get: function () { return chunkFEABEF3J_cjs.WidgetContent; }
85
+ get: function () { return chunkFKXCINUF_cjs.WidgetContent; }
86
86
  });
87
87
  Object.defineProperty(exports, "WidgetEditor", {
88
88
  enumerable: true,
89
- get: function () { return chunkFEABEF3J_cjs.WidgetEditor; }
89
+ get: function () { return chunkFKXCINUF_cjs.WidgetEditor; }
90
90
  });
91
91
  Object.defineProperty(exports, "WidgetEditorPage", {
92
92
  enumerable: true,
93
- get: function () { return chunkFEABEF3J_cjs.WidgetEditorPage; }
93
+ get: function () { return chunkFKXCINUF_cjs.WidgetEditorPage; }
94
94
  });
95
95
  Object.defineProperty(exports, "WidgetHeader", {
96
96
  enumerable: true,
97
- get: function () { return chunkFEABEF3J_cjs.WidgetHeader; }
97
+ get: function () { return chunkFKXCINUF_cjs.WidgetHeader; }
98
98
  });
99
99
  Object.defineProperty(exports, "WidgetPalette", {
100
100
  enumerable: true,
101
- get: function () { return chunkFEABEF3J_cjs.WidgetPalette; }
101
+ get: function () { return chunkFKXCINUF_cjs.WidgetPalette; }
102
102
  });
103
103
  Object.defineProperty(exports, "WidgetPlaceholder", {
104
104
  enumerable: true,
105
- get: function () { return chunkFEABEF3J_cjs.WidgetPlaceholder; }
105
+ get: function () { return chunkFKXCINUF_cjs.WidgetPlaceholder; }
106
106
  });
107
107
  Object.defineProperty(exports, "WidgetPreview", {
108
108
  enumerable: true,
109
- get: function () { return chunkFEABEF3J_cjs.WidgetPreview; }
109
+ get: function () { return chunkFKXCINUF_cjs.WidgetPreview; }
110
110
  });
111
111
  Object.defineProperty(exports, "WidgetTypeSelector", {
112
112
  enumerable: true,
113
- get: function () { return chunkFEABEF3J_cjs.WidgetTypeSelector; }
113
+ get: function () { return chunkFKXCINUF_cjs.WidgetTypeSelector; }
114
114
  });
115
115
  Object.defineProperty(exports, "useAutoRefresh", {
116
116
  enumerable: true,
117
- get: function () { return chunkFEABEF3J_cjs.useAutoRefresh; }
117
+ get: function () { return chunkFKXCINUF_cjs.useAutoRefresh; }
118
118
  });
119
119
  Object.defineProperty(exports, "useDashboard", {
120
120
  enumerable: true,
121
- get: function () { return chunkFEABEF3J_cjs.useDashboard; }
121
+ get: function () { return chunkFKXCINUF_cjs.useDashboard; }
122
122
  });
123
123
  Object.defineProperty(exports, "useDashboardFilters", {
124
124
  enumerable: true,
125
- get: function () { return chunkFEABEF3J_cjs.useDashboardFilters; }
125
+ get: function () { return chunkFKXCINUF_cjs.useDashboardFilters; }
126
126
  });
127
127
  Object.defineProperty(exports, "useFullscreen", {
128
128
  enumerable: true,
129
- get: function () { return chunkFEABEF3J_cjs.useFullscreen; }
129
+ get: function () { return chunkFKXCINUF_cjs.useFullscreen; }
130
130
  });
131
131
  Object.defineProperty(exports, "useWidget", {
132
132
  enumerable: true,
133
- get: function () { return chunkFEABEF3J_cjs.useWidget; }
133
+ get: function () { return chunkFKXCINUF_cjs.useWidget; }
134
134
  });
135
135
  Object.defineProperty(exports, "useWidgetVisibility", {
136
136
  enumerable: true,
137
- get: function () { return chunkFEABEF3J_cjs.useWidgetVisibility; }
137
+ get: function () { return chunkFKXCINUF_cjs.useWidgetVisibility; }
138
138
  });
139
139
  //# sourceMappingURL=index.cjs.map
140
140
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
- import { W as Widget, D as DashboardLayout, a as WidgetPosition, b as WidgetType, c as WidgetConfig } from '../DashboardDialog-LHmrtNQU.cjs';
2
- export { J as Dashboard, a6 as DashboardCard, a9 as DashboardCardProps, x as DashboardContext, k as DashboardContextValue, j as DashboardDefinition, a7 as DashboardDialog, aa as DashboardDialogProps, a0 as DashboardEditor, l as DashboardEditorContextValue, o as DashboardEditorProps, g as DashboardFilter, f as DashboardFilterType, K as DashboardLayoutComponent, p as DashboardLayoutProps, a5 as DashboardList, a8 as DashboardListProps, n as DashboardProps, w as DashboardProvider, m as DashboardProviderProps, Y as DateRangeFilter, t as DateRangeFilterProps, i as DateRangeValue, a1 as EditorToolbar, a4 as EditorToolbarProps, X as FilterBar, s as FilterBarProps, F as FilterOption, h as FilterValue, L as LazyLoadingConfig, _ as MultiSelectFilter, M as MultiSelectFilterProps, N as NumberRangeValue, R as ReferenceLine, Z as SelectFilter, S as SelectFilterProps, $ as TextFilter, T as TextFilterProps, E as UseAutoRefreshOptions, G as UseAutoRefreshResult, U as UseDashboardFiltersResult, I as UseFullscreenResult, B as UseWidgetResult, O as Widget, Q as WidgetContent, V as WidgetContentProps, d as WidgetCrossFilterConfig, a3 as WidgetEditor, v as WidgetEditorProps, P as WidgetHeader, r as WidgetHeaderProps, e as WidgetHyperlink, a2 as WidgetPalette, u as WidgetPaletteProps, q as WidgetProps, C as useAutoRefresh, y as useDashboard, z as useDashboardFilters, H as useFullscreen, A as useWidget } from '../DashboardDialog-LHmrtNQU.cjs';
1
+ import { W as Widget, D as DashboardLayout, a as WidgetPosition, b as WidgetType, c as WidgetConfig } from '../DashboardDialog-Z-HypxmG.cjs';
2
+ export { d as Dashboard, e as DashboardCard, f as DashboardCardProps, g as DashboardContext, h as DashboardContextValue, i as DashboardDefinition, j as DashboardDialog, k as DashboardDialogProps, l as DashboardEditor, m as DashboardEditorContextValue, n as DashboardEditorProps, o as DashboardFilter, p as DashboardFilterType, q as DashboardLayoutComponent, r as DashboardLayoutProps, s as DashboardList, t as DashboardListProps, u as DashboardProps, v as DashboardProvider, w as DashboardProviderProps, x as DateRangeFilter, y as DateRangeFilterProps, z as DateRangeValue, E as EditorToolbar, A as EditorToolbarProps, F as FilterBar, B as FilterBarProps, C as FilterOption, G as FilterValue, L as LazyLoadingConfig, M as MultiSelectFilter, H as MultiSelectFilterProps, N as NumberRangeValue, R as ReferenceLine, S as SelectFilter, I as SelectFilterProps, T as TextFilter, J as TextFilterProps, U as UseAutoRefreshOptions, K as UseAutoRefreshResult, O as UseDashboardFiltersResult, P as UseFullscreenResult, Q as UseWidgetResult, V as Widget, X as WidgetContent, Y as WidgetContentProps, Z as WidgetCrossFilterConfig, _ as WidgetEditor, $ as WidgetEditorProps, a0 as WidgetHeader, a1 as WidgetHeaderProps, a2 as WidgetHyperlink, a3 as WidgetPalette, a4 as WidgetPaletteProps, a5 as WidgetProps, a6 as useAutoRefresh, a7 as useDashboard, a8 as useDashboardFilters, a9 as useFullscreen, aa as useWidget } from '../DashboardDialog-Z-HypxmG.cjs';
3
3
  import { ReactNode } from 'react';
4
- import { D as DatabaseSchema, a as QueryDefinition, Q as QueryResult } from '../types-WrCbOeAV.cjs';
4
+ import { D as DatabaseSchema, a as QueryDefinition, Q as QueryResult } from '../types-ccB9Ps3k.cjs';
5
5
 
6
6
  /**
7
7
  * Hook for tracking widget visibility using Intersection Observer.
@@ -281,8 +281,10 @@ interface WidgetPreviewProps {
281
281
  title: string;
282
282
  /** Widget configuration. */
283
283
  config: WidgetConfig;
284
- /** Query definition (null for text widgets). */
284
+ /** Query definition (null for text widgets and SQL-mode widgets). */
285
285
  query: QueryDefinition | null;
286
+ /** Raw SQL for SQL-mode widgets. */
287
+ rawSql?: string;
286
288
  /** Query result data. */
287
289
  result: QueryResult | null;
288
290
  /** Whether data is loading. */
@@ -297,6 +299,6 @@ interface WidgetPreviewProps {
297
299
  *
298
300
  * Shows the actual rendered widget with current configuration and data.
299
301
  */
300
- declare function WidgetPreview({ type, title, config, query, result, isLoading, error, className, }: WidgetPreviewProps): JSX.Element;
302
+ declare function WidgetPreview({ type, title, config, query, rawSql, result, isLoading, error, className, }: WidgetPreviewProps): JSX.Element;
301
303
 
302
304
  export { DashboardLayout, EditableDashboardLayout, type EditableDashboardLayoutProps, LazyWidget, type LazyWidgetProps, type UseWidgetVisibilityOptions, type UseWidgetVisibilityResult, WidgetConfig, WidgetContainer, type WidgetContainerProps, Widget as WidgetDefinition, WidgetEditorPage, type WidgetEditorPageProps, WidgetPlaceholder, type WidgetPlaceholderProps, WidgetPosition, WidgetPreview, type WidgetPreviewProps, WidgetType, WidgetTypeSelector, type WidgetTypeSelectorProps, useWidgetVisibility };
@@ -1,7 +1,7 @@
1
- import { W as Widget, D as DashboardLayout, a as WidgetPosition, b as WidgetType, c as WidgetConfig } from '../DashboardDialog-B3vYC5Gs.js';
2
- export { J as Dashboard, a6 as DashboardCard, a9 as DashboardCardProps, x as DashboardContext, k as DashboardContextValue, j as DashboardDefinition, a7 as DashboardDialog, aa as DashboardDialogProps, a0 as DashboardEditor, l as DashboardEditorContextValue, o as DashboardEditorProps, g as DashboardFilter, f as DashboardFilterType, K as DashboardLayoutComponent, p as DashboardLayoutProps, a5 as DashboardList, a8 as DashboardListProps, n as DashboardProps, w as DashboardProvider, m as DashboardProviderProps, Y as DateRangeFilter, t as DateRangeFilterProps, i as DateRangeValue, a1 as EditorToolbar, a4 as EditorToolbarProps, X as FilterBar, s as FilterBarProps, F as FilterOption, h as FilterValue, L as LazyLoadingConfig, _ as MultiSelectFilter, M as MultiSelectFilterProps, N as NumberRangeValue, R as ReferenceLine, Z as SelectFilter, S as SelectFilterProps, $ as TextFilter, T as TextFilterProps, E as UseAutoRefreshOptions, G as UseAutoRefreshResult, U as UseDashboardFiltersResult, I as UseFullscreenResult, B as UseWidgetResult, O as Widget, Q as WidgetContent, V as WidgetContentProps, d as WidgetCrossFilterConfig, a3 as WidgetEditor, v as WidgetEditorProps, P as WidgetHeader, r as WidgetHeaderProps, e as WidgetHyperlink, a2 as WidgetPalette, u as WidgetPaletteProps, q as WidgetProps, C as useAutoRefresh, y as useDashboard, z as useDashboardFilters, H as useFullscreen, A as useWidget } from '../DashboardDialog-B3vYC5Gs.js';
1
+ import { W as Widget, D as DashboardLayout, a as WidgetPosition, b as WidgetType, c as WidgetConfig } from '../DashboardDialog-UhUGXx2h.js';
2
+ export { d as Dashboard, e as DashboardCard, f as DashboardCardProps, g as DashboardContext, h as DashboardContextValue, i as DashboardDefinition, j as DashboardDialog, k as DashboardDialogProps, l as DashboardEditor, m as DashboardEditorContextValue, n as DashboardEditorProps, o as DashboardFilter, p as DashboardFilterType, q as DashboardLayoutComponent, r as DashboardLayoutProps, s as DashboardList, t as DashboardListProps, u as DashboardProps, v as DashboardProvider, w as DashboardProviderProps, x as DateRangeFilter, y as DateRangeFilterProps, z as DateRangeValue, E as EditorToolbar, A as EditorToolbarProps, F as FilterBar, B as FilterBarProps, C as FilterOption, G as FilterValue, L as LazyLoadingConfig, M as MultiSelectFilter, H as MultiSelectFilterProps, N as NumberRangeValue, R as ReferenceLine, S as SelectFilter, I as SelectFilterProps, T as TextFilter, J as TextFilterProps, U as UseAutoRefreshOptions, K as UseAutoRefreshResult, O as UseDashboardFiltersResult, P as UseFullscreenResult, Q as UseWidgetResult, V as Widget, X as WidgetContent, Y as WidgetContentProps, Z as WidgetCrossFilterConfig, _ as WidgetEditor, $ as WidgetEditorProps, a0 as WidgetHeader, a1 as WidgetHeaderProps, a2 as WidgetHyperlink, a3 as WidgetPalette, a4 as WidgetPaletteProps, a5 as WidgetProps, a6 as useAutoRefresh, a7 as useDashboard, a8 as useDashboardFilters, a9 as useFullscreen, aa as useWidget } from '../DashboardDialog-UhUGXx2h.js';
3
3
  import { ReactNode } from 'react';
4
- import { D as DatabaseSchema, a as QueryDefinition, Q as QueryResult } from '../types-WrCbOeAV.js';
4
+ import { D as DatabaseSchema, a as QueryDefinition, Q as QueryResult } from '../types-ccB9Ps3k.js';
5
5
 
6
6
  /**
7
7
  * Hook for tracking widget visibility using Intersection Observer.
@@ -281,8 +281,10 @@ interface WidgetPreviewProps {
281
281
  title: string;
282
282
  /** Widget configuration. */
283
283
  config: WidgetConfig;
284
- /** Query definition (null for text widgets). */
284
+ /** Query definition (null for text widgets and SQL-mode widgets). */
285
285
  query: QueryDefinition | null;
286
+ /** Raw SQL for SQL-mode widgets. */
287
+ rawSql?: string;
286
288
  /** Query result data. */
287
289
  result: QueryResult | null;
288
290
  /** Whether data is loading. */
@@ -297,6 +299,6 @@ interface WidgetPreviewProps {
297
299
  *
298
300
  * Shows the actual rendered widget with current configuration and data.
299
301
  */
300
- declare function WidgetPreview({ type, title, config, query, result, isLoading, error, className, }: WidgetPreviewProps): JSX.Element;
302
+ declare function WidgetPreview({ type, title, config, query, rawSql, result, isLoading, error, className, }: WidgetPreviewProps): JSX.Element;
301
303
 
302
304
  export { DashboardLayout, EditableDashboardLayout, type EditableDashboardLayoutProps, LazyWidget, type LazyWidgetProps, type UseWidgetVisibilityOptions, type UseWidgetVisibilityResult, WidgetConfig, WidgetContainer, type WidgetContainerProps, Widget as WidgetDefinition, WidgetEditorPage, type WidgetEditorPageProps, WidgetPlaceholder, type WidgetPlaceholderProps, WidgetPosition, WidgetPreview, type WidgetPreviewProps, WidgetType, WidgetTypeSelector, type WidgetTypeSelectorProps, useWidgetVisibility };
@@ -1,7 +1,7 @@
1
- export { Dashboard, DashboardCard, DashboardContext, DashboardDialog, DashboardEditor, DashboardLayout as DashboardLayoutComponent, DashboardList, DashboardProvider, DateRangeFilter, EditableDashboardLayout, EditorToolbar, FilterBar, LazyWidget, MultiSelectFilter, SelectFilter, TextFilter, Widget, WidgetContainer, WidgetContent, WidgetEditor, WidgetEditorPage, WidgetHeader, WidgetPalette, WidgetPlaceholder, WidgetPreview, WidgetTypeSelector, useAutoRefresh, useDashboard, useDashboardFilters, useFullscreen, useWidget, useWidgetVisibility } from '../chunk-MOAEEF5P.js';
2
- import '../chunk-2H5WTH4K.js';
3
- import '../chunk-UPYINBZU.js';
1
+ export { Dashboard, DashboardCard, DashboardContext, DashboardDialog, DashboardEditor, DashboardLayout as DashboardLayoutComponent, DashboardList, DashboardProvider, DateRangeFilter, EditableDashboardLayout, EditorToolbar, FilterBar, LazyWidget, MultiSelectFilter, SelectFilter, TextFilter, Widget, WidgetContainer, WidgetContent, WidgetEditor, WidgetEditorPage, WidgetHeader, WidgetPalette, WidgetPlaceholder, WidgetPreview, WidgetTypeSelector, useAutoRefresh, useDashboard, useDashboardFilters, useFullscreen, useWidget, useWidgetVisibility } from '../chunk-JBJ5LEAG.js';
2
+ import '../chunk-FQ23KG6G.js';
3
+ import '../chunk-GELI7MDZ.js';
4
4
  import '../chunk-T6STUE7E.js';
5
- import '../chunk-EX74SI67.js';
5
+ import '../chunk-LBE6GIBC.js';
6
6
  //# sourceMappingURL=index.js.map
7
7
  //# sourceMappingURL=index.js.map
@@ -1,32 +1,32 @@
1
1
  'use strict';
2
2
 
3
- var chunkMDXGGZSW_cjs = require('../chunk-MDXGGZSW.cjs');
3
+ var chunkZYVN6XAZ_cjs = require('../chunk-ZYVN6XAZ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "downloadFile", {
8
8
  enumerable: true,
9
- get: function () { return chunkMDXGGZSW_cjs.downloadFile; }
9
+ get: function () { return chunkZYVN6XAZ_cjs.downloadFile; }
10
10
  });
11
11
  Object.defineProperty(exports, "exportMultipleSheets", {
12
12
  enumerable: true,
13
- get: function () { return chunkMDXGGZSW_cjs.exportMultipleSheets; }
13
+ get: function () { return chunkZYVN6XAZ_cjs.exportMultipleSheets; }
14
14
  });
15
15
  Object.defineProperty(exports, "exportToCSV", {
16
16
  enumerable: true,
17
- get: function () { return chunkMDXGGZSW_cjs.exportToCSV; }
17
+ get: function () { return chunkZYVN6XAZ_cjs.exportToCSV; }
18
18
  });
19
19
  Object.defineProperty(exports, "exportToExcel", {
20
20
  enumerable: true,
21
- get: function () { return chunkMDXGGZSW_cjs.exportToExcel; }
21
+ get: function () { return chunkZYVN6XAZ_cjs.exportToExcel; }
22
22
  });
23
23
  Object.defineProperty(exports, "generateCSV", {
24
24
  enumerable: true,
25
- get: function () { return chunkMDXGGZSW_cjs.generateCSV; }
25
+ get: function () { return chunkZYVN6XAZ_cjs.generateCSV; }
26
26
  });
27
27
  Object.defineProperty(exports, "useExport", {
28
28
  enumerable: true,
29
- get: function () { return chunkMDXGGZSW_cjs.useExport; }
29
+ get: function () { return chunkZYVN6XAZ_cjs.useExport; }
30
30
  });
31
31
  //# sourceMappingURL=index.cjs.map
32
32
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { Q as QueryResult } from '../types-WrCbOeAV.cjs';
1
+ import { Q as QueryResult } from '../types-ccB9Ps3k.cjs';
2
2
 
3
3
  /**
4
4
  * Types for export functionality.
@@ -118,7 +118,7 @@ declare function exportToCSV(data: ExportData, options?: ExportOptions): void;
118
118
  * });
119
119
  * ```
120
120
  */
121
- declare function exportToExcel(data: ExportData, options?: ExcelExportOptions): void;
121
+ declare function exportToExcel(data: ExportData, options?: ExcelExportOptions): Promise<void>;
122
122
  /**
123
123
  * Export multiple sheets to a single Excel file.
124
124
  *
@@ -134,7 +134,7 @@ declare function exportToExcel(data: ExportData, options?: ExcelExportOptions):
134
134
  * }, 'full-report');
135
135
  * ```
136
136
  */
137
- declare function exportMultipleSheets(sheets: Record<string, ExportData>, filename: string): void;
137
+ declare function exportMultipleSheets(sheets: Record<string, ExportData>, filename: string): Promise<void>;
138
138
 
139
139
  /**
140
140
  * Options for the useExport hook.
@@ -156,11 +156,13 @@ interface UseExportResult {
156
156
  /** Export to CSV file */
157
157
  exportCSV: () => void;
158
158
  /** Export to Excel file */
159
- exportExcel: (options?: ExcelExportOptions) => void;
159
+ exportExcel: (options?: ExcelExportOptions) => Promise<void>;
160
160
  /** Whether an export is in progress */
161
161
  isExporting: boolean;
162
162
  /** Whether export is possible (data is available) */
163
163
  canExport: boolean;
164
+ /** Error from the most recent export attempt, if any */
165
+ error: Error | null;
164
166
  }
165
167
  /**
166
168
  * Hook for exporting query data to CSV or Excel.
@@ -1,4 +1,4 @@
1
- import { Q as QueryResult } from '../types-WrCbOeAV.js';
1
+ import { Q as QueryResult } from '../types-ccB9Ps3k.js';
2
2
 
3
3
  /**
4
4
  * Types for export functionality.
@@ -118,7 +118,7 @@ declare function exportToCSV(data: ExportData, options?: ExportOptions): void;
118
118
  * });
119
119
  * ```
120
120
  */
121
- declare function exportToExcel(data: ExportData, options?: ExcelExportOptions): void;
121
+ declare function exportToExcel(data: ExportData, options?: ExcelExportOptions): Promise<void>;
122
122
  /**
123
123
  * Export multiple sheets to a single Excel file.
124
124
  *
@@ -134,7 +134,7 @@ declare function exportToExcel(data: ExportData, options?: ExcelExportOptions):
134
134
  * }, 'full-report');
135
135
  * ```
136
136
  */
137
- declare function exportMultipleSheets(sheets: Record<string, ExportData>, filename: string): void;
137
+ declare function exportMultipleSheets(sheets: Record<string, ExportData>, filename: string): Promise<void>;
138
138
 
139
139
  /**
140
140
  * Options for the useExport hook.
@@ -156,11 +156,13 @@ interface UseExportResult {
156
156
  /** Export to CSV file */
157
157
  exportCSV: () => void;
158
158
  /** Export to Excel file */
159
- exportExcel: (options?: ExcelExportOptions) => void;
159
+ exportExcel: (options?: ExcelExportOptions) => Promise<void>;
160
160
  /** Whether an export is in progress */
161
161
  isExporting: boolean;
162
162
  /** Whether export is possible (data is available) */
163
163
  canExport: boolean;
164
+ /** Error from the most recent export attempt, if any */
165
+ error: Error | null;
164
166
  }
165
167
  /**
166
168
  * Hook for exporting query data to CSV or Excel.
@@ -1,3 +1,3 @@
1
- export { downloadFile, exportMultipleSheets, exportToCSV, exportToExcel, generateCSV, useExport } from '../chunk-WWTT2OJ5.js';
1
+ export { downloadFile, exportMultipleSheets, exportToCSV, exportToExcel, generateCSV, useExport } from '../chunk-HKZFEXT6.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { Q as QueryResult, q as ColumnSelection } from './types-WrCbOeAV.cjs';
1
+ import { Q as QueryResult, t as ColumnSelection } from './types-ccB9Ps3k.cjs';
2
2
 
3
3
  /**
4
4
  * Theme type definitions for Prismiq.
@@ -818,4 +818,4 @@ declare function isChartDataEmpty(data: QueryResult | ChartDataPoint[]): boolean
818
818
  */
819
819
  declare function createEmptyStateGraphic(message?: string): Record<string, unknown>;
820
820
 
821
- export { AreaChart as A, BarChart as B, type ChartDataOptions as C, type DeepPartial as D, EChartWrapper as E, type AreaChartProps as F, type PieChartProps as G, type ScatterChartProps as H, type TrendConfig as I, type MetricCardProps as J, type TrendIndicatorProps as K, LineChart as L, MetricCard as M, type SparklineProps as N, type ChartType as O, type PrismiqTheme as P, type ChartSuggestion as Q, type ReferenceLineConfig as R, Sparkline as S, type ThemeMode as T, isQueryResult as U, adjustColorOpacity as V, createMarkLines as W, createEmptyStateGraphic as X, type ThemeContextValue as a, type ChartDataResult as b, TrendIndicator as c, PieChart as d, ScatterChart as e, dataPointsToChartData as f, createChartTheme as g, applyThemeToOption as h, formatAxisLabel as i, formatCompact as j, formatMetricValue as k, getChartColors as l, createGradientColor as m, isChartDataEmpty as n, type ChartDataPoint as o, type ChartSeries as p, queryResultToChartData as q, type BaseChartProps as r, suggestChartType as s, toChartData as t, type ChartClickParams as u, type AxisFormat as v, type LegendPosition as w, type EChartWrapperProps as x, type BarChartProps as y, type LineChartProps as z };
821
+ export { AreaChart as A, BarChart as B, type ChartDataOptions as C, type DeepPartial as D, EChartWrapper as E, dataPointsToChartData as F, formatAxisLabel as G, formatCompact as H, formatMetricValue as I, getChartColors as J, isChartDataEmpty as K, type LegendPosition as L, MetricCard as M, queryResultToChartData as N, suggestChartType as O, type PrismiqTheme as P, toChartData as Q, type ReferenceLineConfig as R, ScatterChart as S, type ThemeMode as T, adjustColorOpacity as U, createEmptyStateGraphic as V, createMarkLines as W, isQueryResult as X, type ThemeContextValue as a, type ChartDataResult as b, type AreaChartProps as c, type AxisFormat as d, type BarChartProps as e, type BaseChartProps as f, type ChartClickParams as g, type ChartDataPoint as h, type ChartSeries as i, type ChartSuggestion as j, type ChartType as k, type EChartWrapperProps as l, LineChart as m, type LineChartProps as n, type MetricCardProps as o, PieChart as p, type PieChartProps as q, type ScatterChartProps as r, Sparkline as s, type SparklineProps as t, type TrendConfig as u, TrendIndicator as v, type TrendIndicatorProps as w, applyThemeToOption as x, createChartTheme as y, createGradientColor as z };
@@ -1,4 +1,4 @@
1
- import { Q as QueryResult, q as ColumnSelection } from './types-WrCbOeAV.js';
1
+ import { Q as QueryResult, t as ColumnSelection } from './types-ccB9Ps3k.js';
2
2
 
3
3
  /**
4
4
  * Theme type definitions for Prismiq.
@@ -818,4 +818,4 @@ declare function isChartDataEmpty(data: QueryResult | ChartDataPoint[]): boolean
818
818
  */
819
819
  declare function createEmptyStateGraphic(message?: string): Record<string, unknown>;
820
820
 
821
- export { AreaChart as A, BarChart as B, type ChartDataOptions as C, type DeepPartial as D, EChartWrapper as E, type AreaChartProps as F, type PieChartProps as G, type ScatterChartProps as H, type TrendConfig as I, type MetricCardProps as J, type TrendIndicatorProps as K, LineChart as L, MetricCard as M, type SparklineProps as N, type ChartType as O, type PrismiqTheme as P, type ChartSuggestion as Q, type ReferenceLineConfig as R, Sparkline as S, type ThemeMode as T, isQueryResult as U, adjustColorOpacity as V, createMarkLines as W, createEmptyStateGraphic as X, type ThemeContextValue as a, type ChartDataResult as b, TrendIndicator as c, PieChart as d, ScatterChart as e, dataPointsToChartData as f, createChartTheme as g, applyThemeToOption as h, formatAxisLabel as i, formatCompact as j, formatMetricValue as k, getChartColors as l, createGradientColor as m, isChartDataEmpty as n, type ChartDataPoint as o, type ChartSeries as p, queryResultToChartData as q, type BaseChartProps as r, suggestChartType as s, toChartData as t, type ChartClickParams as u, type AxisFormat as v, type LegendPosition as w, type EChartWrapperProps as x, type BarChartProps as y, type LineChartProps as z };
821
+ export { AreaChart as A, BarChart as B, type ChartDataOptions as C, type DeepPartial as D, EChartWrapper as E, dataPointsToChartData as F, formatAxisLabel as G, formatCompact as H, formatMetricValue as I, getChartColors as J, isChartDataEmpty as K, type LegendPosition as L, MetricCard as M, queryResultToChartData as N, suggestChartType as O, type PrismiqTheme as P, toChartData as Q, type ReferenceLineConfig as R, ScatterChart as S, type ThemeMode as T, adjustColorOpacity as U, createEmptyStateGraphic as V, createMarkLines as W, isQueryResult as X, type ThemeContextValue as a, type ChartDataResult as b, type AreaChartProps as c, type AxisFormat as d, type BarChartProps as e, type BaseChartProps as f, type ChartClickParams as g, type ChartDataPoint as h, type ChartSeries as i, type ChartSuggestion as j, type ChartType as k, type EChartWrapperProps as l, LineChart as m, type LineChartProps as n, type MetricCardProps as o, PieChart as p, type PieChartProps as q, type ScatterChartProps as r, Sparkline as s, type SparklineProps as t, type TrendConfig as u, TrendIndicator as v, type TrendIndicatorProps as w, applyThemeToOption as x, createChartTheme as y, createGradientColor as z };