@prismiq/react 0.1.1 → 0.2.1
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/dist/{CustomSQLEditor-CYlOtecq.d.ts → ChatBubble-3mFpV7yX.d.ts} +42 -3
- package/dist/{CustomSQLEditor-d84v_Cgp.d.cts → ChatBubble-CMkEupzn.d.cts} +42 -3
- package/dist/{DashboardDialog-DBNTVVSp.d.ts → DashboardDialog-DMmZ3bnf.d.cts} +5 -3
- package/dist/{DashboardDialog-CZD8I-6z.d.cts → DashboardDialog-RlcPkdMt.d.ts} +5 -3
- package/dist/charts/index.d.cts +2 -2
- package/dist/charts/index.d.ts +2 -2
- package/dist/{chunk-3LDRRDJ6.js → chunk-F6QYNQEW.js} +194 -28
- package/dist/chunk-F6QYNQEW.js.map +1 -0
- package/dist/{chunk-WWTT2OJ5.js → chunk-HKZFEXT6.js} +27 -9
- package/dist/chunk-HKZFEXT6.js.map +1 -0
- package/dist/{chunk-VQDFS6VS.cjs → chunk-N6I3QOHG.cjs} +376 -210
- package/dist/chunk-N6I3QOHG.cjs.map +1 -0
- package/dist/{chunk-URJH4H6G.cjs → chunk-NXXKG4GN.cjs} +520 -6
- package/dist/chunk-NXXKG4GN.cjs.map +1 -0
- package/dist/{chunk-ET7GCREP.js → chunk-VEFYFB5H.js} +517 -7
- package/dist/chunk-VEFYFB5H.js.map +1 -0
- package/dist/{chunk-MDXGGZSW.cjs → chunk-ZYVN6XAZ.cjs} +35 -37
- package/dist/chunk-ZYVN6XAZ.cjs.map +1 -0
- package/dist/components/index.cjs +62 -54
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +1 -1
- package/dist/dashboard/index.cjs +34 -34
- package/dist/dashboard/index.d.cts +7 -5
- package/dist/dashboard/index.d.ts +7 -5
- package/dist/dashboard/index.js +2 -2
- package/dist/export/index.cjs +7 -7
- package/dist/export/index.d.cts +6 -4
- package/dist/export/index.d.ts +6 -4
- package/dist/export/index.js +1 -1
- package/dist/{index-CvKj3SWO.d.cts → index-BA2VUhgN.d.cts} +1 -1
- package/dist/{index-DXGLs1yY.d.ts → index-BPo89ZAj.d.ts} +1 -1
- package/dist/index.cjs +119 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +77 -7
- package/dist/index.d.ts +77 -7
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/{types-j0kPJ9Hz.d.cts → types-BaI6sSAG.d.cts} +62 -1
- package/dist/{types-j0kPJ9Hz.d.ts → types-BaI6sSAG.d.ts} +62 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +2 -6
- package/dist/chunk-3LDRRDJ6.js.map +0 -1
- package/dist/chunk-ET7GCREP.js.map +0 -1
- package/dist/chunk-MDXGGZSW.cjs.map +0 -1
- package/dist/chunk-URJH4H6G.cjs.map +0 -1
- package/dist/chunk-VQDFS6VS.cjs.map +0 -1
- package/dist/chunk-WWTT2OJ5.js.map +0 -1
package/dist/dashboard/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkN6I3QOHG_cjs = require('../chunk-N6I3QOHG.cjs');
|
|
4
4
|
require('../chunk-73TPDGXB.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-NXXKG4GN.cjs');
|
|
6
6
|
require('../chunk-LMTG3LRC.cjs');
|
|
7
7
|
require('../chunk-KXB2IZI2.cjs');
|
|
8
8
|
|
|
@@ -10,131 +10,131 @@ require('../chunk-KXB2IZI2.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "Dashboard", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkN6I3QOHG_cjs.Dashboard; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "DashboardCard", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkN6I3QOHG_cjs.DashboardCard; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "DashboardContext", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkN6I3QOHG_cjs.DashboardContext; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "DashboardDialog", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkN6I3QOHG_cjs.DashboardDialog; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "DashboardEditor", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkN6I3QOHG_cjs.DashboardEditor; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "DashboardLayoutComponent", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkN6I3QOHG_cjs.DashboardLayout; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "DashboardList", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkN6I3QOHG_cjs.DashboardList; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "DashboardProvider", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkN6I3QOHG_cjs.DashboardProvider; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "DateRangeFilter", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkN6I3QOHG_cjs.DateRangeFilter; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "EditableDashboardLayout", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkN6I3QOHG_cjs.EditableDashboardLayout; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "EditorToolbar", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkN6I3QOHG_cjs.EditorToolbar; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "FilterBar", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkN6I3QOHG_cjs.FilterBar; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "LazyWidget", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkN6I3QOHG_cjs.LazyWidget; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "MultiSelectFilter", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkN6I3QOHG_cjs.MultiSelectFilter; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "SelectFilter", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkN6I3QOHG_cjs.SelectFilter; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "TextFilter", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkN6I3QOHG_cjs.TextFilter; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "Widget", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkN6I3QOHG_cjs.Widget; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "WidgetContainer", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkN6I3QOHG_cjs.WidgetContainer; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "WidgetContent", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkN6I3QOHG_cjs.WidgetContent; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "WidgetEditor", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkN6I3QOHG_cjs.WidgetEditor; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "WidgetEditorPage", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkN6I3QOHG_cjs.WidgetEditorPage; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "WidgetHeader", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkN6I3QOHG_cjs.WidgetHeader; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "WidgetPalette", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkN6I3QOHG_cjs.WidgetPalette; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "WidgetPlaceholder", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkN6I3QOHG_cjs.WidgetPlaceholder; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "WidgetPreview", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkN6I3QOHG_cjs.WidgetPreview; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "WidgetTypeSelector", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkN6I3QOHG_cjs.WidgetTypeSelector; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "useAutoRefresh", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkN6I3QOHG_cjs.useAutoRefresh; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "useDashboard", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkN6I3QOHG_cjs.useDashboard; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "useDashboardFilters", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkN6I3QOHG_cjs.useDashboardFilters; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "useFullscreen", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkN6I3QOHG_cjs.useFullscreen; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "useWidget", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkN6I3QOHG_cjs.useWidget; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "useWidgetVisibility", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkN6I3QOHG_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-
|
|
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-
|
|
1
|
+
import { W as Widget, D as DashboardLayout, a as WidgetPosition, b as WidgetType, c as WidgetConfig } from '../DashboardDialog-DMmZ3bnf.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-DMmZ3bnf.cjs';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
import { D as DatabaseSchema, a as QueryDefinition, Q as QueryResult } from '../types-
|
|
4
|
+
import { D as DatabaseSchema, a as QueryDefinition, Q as QueryResult } from '../types-BaI6sSAG.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-
|
|
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-
|
|
1
|
+
import { W as Widget, D as DashboardLayout, a as WidgetPosition, b as WidgetType, c as WidgetConfig } from '../DashboardDialog-RlcPkdMt.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-RlcPkdMt.js';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
import { D as DatabaseSchema, a as QueryDefinition, Q as QueryResult } from '../types-
|
|
4
|
+
import { D as DatabaseSchema, a as QueryDefinition, Q as QueryResult } from '../types-BaI6sSAG.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 };
|
package/dist/dashboard/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-F6QYNQEW.js';
|
|
2
2
|
import '../chunk-FQ23KG6G.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-VEFYFB5H.js';
|
|
4
4
|
import '../chunk-T6STUE7E.js';
|
|
5
5
|
import '../chunk-LBE6GIBC.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/export/index.cjs
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
9
|
+
get: function () { return chunkZYVN6XAZ_cjs.downloadFile; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "exportMultipleSheets", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkZYVN6XAZ_cjs.exportMultipleSheets; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "exportToCSV", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkZYVN6XAZ_cjs.exportToCSV; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "exportToExcel", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkZYVN6XAZ_cjs.exportToExcel; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "generateCSV", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkZYVN6XAZ_cjs.generateCSV; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "useExport", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkZYVN6XAZ_cjs.useExport; }
|
|
30
30
|
});
|
|
31
31
|
//# sourceMappingURL=index.cjs.map
|
|
32
32
|
//# sourceMappingURL=index.cjs.map
|
package/dist/export/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Q as QueryResult } from '../types-
|
|
1
|
+
import { Q as QueryResult } from '../types-BaI6sSAG.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.
|
package/dist/export/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Q as QueryResult } from '../types-
|
|
1
|
+
import { Q as QueryResult } from '../types-BaI6sSAG.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.
|
package/dist/export/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { downloadFile, exportMultipleSheets, exportToCSV, exportToExcel, generateCSV, useExport } from '../chunk-
|
|
1
|
+
export { downloadFile, exportMultipleSheets, exportToCSV, exportToExcel, generateCSV, useExport } from '../chunk-HKZFEXT6.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|