@burdenoff/microfe-bigconsole 2026.1004.3 → 2026.1004.4
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/bigconsole/BigConsoleRoutes.d.ts +1 -1
- package/dist/bigconsole/BigConsoleRoutes.d.ts.map +1 -1
- package/dist/bigconsole/BigConsoleRoutes.js +15 -1
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/components/DrilldownModal.d.ts.map +1 -1
- package/dist/bigconsole/components/DrilldownModal.js +54 -53
- package/dist/bigconsole/components/DrilldownModal.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts +3 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts.map +1 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +40 -39
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.d.ts.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +184 -177
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardGrid.d.ts.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardGrid.js +40 -22
- package/dist/bigconsole/components/dashboard/DashboardGrid.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.d.ts.map +1 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +31 -25
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +115 -80
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.d.ts.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +177 -146
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +375 -325
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.d.ts.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +7 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.d.ts +3 -1
- package/dist/bigconsole/components/parser/ParserSelector.d.ts.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +94 -94
- package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
- package/dist/bigconsole/components/pipeline/PipelineCard.d.ts.map +1 -1
- package/dist/bigconsole/components/pipeline/PipelineCard.js +111 -89
- package/dist/bigconsole/components/pipeline/PipelineCard.js.map +1 -1
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts +8 -0
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +52 -0
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js.map +1 -0
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +257 -221
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.d.ts +1 -0
- package/dist/bigconsole/components/widgets/WidgetHeader.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +29 -29
- package/dist/bigconsole/components/widgets/WidgetHeader.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts +2 -0
- package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +247 -239
- package/dist/bigconsole/components/widgets/WidgetWrapper.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +6 -4
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/states/EmptyState.d.ts +1 -0
- package/dist/bigconsole/components/widgets/states/EmptyState.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/states/EmptyState.js +4 -4
- package/dist/bigconsole/components/widgets/states/EmptyState.js.map +1 -1
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts +7 -0
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js +94 -0
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts +7 -0
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +101 -0
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js.map +1 -0
- package/dist/bigconsole/hooks/useBigConsoleSettings.d.ts +16 -0
- package/dist/bigconsole/hooks/useBigConsoleSettings.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useBigConsoleSettings.js +57 -0
- package/dist/bigconsole/hooks/useBigConsoleSettings.js.map +1 -0
- package/dist/bigconsole/hooks/useDashboardOperations.d.ts.map +1 -1
- package/dist/bigconsole/hooks/useDashboardOperations.js +102 -79
- package/dist/bigconsole/hooks/useDashboardOperations.js.map +1 -1
- package/dist/bigconsole/hooks/useExportDashboard.d.ts +3 -1
- package/dist/bigconsole/hooks/useExportDashboard.d.ts.map +1 -1
- package/dist/bigconsole/hooks/useExportDashboard.js +23 -13
- package/dist/bigconsole/hooks/useExportDashboard.js.map +1 -1
- package/dist/bigconsole/hooks/useFilterUrlSync.d.ts +18 -0
- package/dist/bigconsole/hooks/useFilterUrlSync.d.ts.map +1 -1
- package/dist/bigconsole/hooks/useFilterUrlSync.js +87 -57
- package/dist/bigconsole/hooks/useFilterUrlSync.js.map +1 -1
- package/dist/bigconsole/hooks/useGlobalFilters.d.ts.map +1 -1
- package/dist/bigconsole/hooks/useGlobalFilters.js +39 -29
- package/dist/bigconsole/hooks/useGlobalFilters.js.map +1 -1
- package/dist/bigconsole/hooks/usePageOperations.d.ts.map +1 -1
- package/dist/bigconsole/hooks/usePageOperations.js +1 -0
- package/dist/bigconsole/hooks/usePageOperations.js.map +1 -1
- package/dist/bigconsole/hooks/usePipelineOperations.d.ts.map +1 -1
- package/dist/bigconsole/hooks/usePipelineOperations.js +114 -112
- package/dist/bigconsole/hooks/usePipelineOperations.js.map +1 -1
- package/dist/bigconsole/hooks/useShareRecipients.d.ts +22 -0
- package/dist/bigconsole/hooks/useShareRecipients.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useShareRecipients.js +198 -0
- package/dist/bigconsole/hooks/useShareRecipients.js.map +1 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +198 -193
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +171 -167
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +313 -266
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +84 -79
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +267 -257
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +465 -402
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +169 -157
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +370 -230
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +181 -151
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +188 -208
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +134 -117
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +315 -267
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +4 -3
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/types/index.d.ts +4 -0
- package/dist/bigconsole/types/index.d.ts.map +1 -1
- package/dist/generated/wspace-operations.d.ts +148 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +172 -133
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +21 -0
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/microfe-bigconsole.css +1 -1
- package/dist/translations/en.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -9,47 +9,52 @@ import ne from "../../hooks/useWidgetComments.js";
|
|
|
9
9
|
import re from "../../hooks/useWidgetExport.js";
|
|
10
10
|
import ie from "../../hooks/useDrilldown.js";
|
|
11
11
|
import "../../hooks/index.js";
|
|
12
|
-
import { resolveTextData as
|
|
13
|
-
import
|
|
12
|
+
import { resolveTextData as c } from "./text-widget/textData.js";
|
|
13
|
+
import ae from "./WidgetHeader.js";
|
|
14
|
+
import { useBigConsoleSettings as oe } from "../../hooks/useBigConsoleSettings.js";
|
|
14
15
|
import se from "./states/LoadingState.js";
|
|
15
16
|
import ce from "./states/ErrorState.js";
|
|
16
|
-
import
|
|
17
|
+
import l from "./states/EmptyState.js";
|
|
17
18
|
import le from "./WidgetErrorBoundary.js";
|
|
18
19
|
import { hasCustomIframeConfig as ue, hasRenderableCustomConfig as de } from "./custom/config.js";
|
|
19
20
|
import { getBindingForWidget as fe } from "../../utils/widgetBinding.js";
|
|
20
21
|
import pe from "../../renderers/factory/WidgetRendererFactory.js";
|
|
21
22
|
import me from "./widget-actions/WidgetActions.js";
|
|
22
23
|
import "./widget-actions/index.js";
|
|
23
|
-
import { Suspense as
|
|
24
|
+
import { Suspense as u, lazy as d, memo as f, useCallback as p, useEffect as he, useMemo as m, useRef as h, useState as g } from "react";
|
|
24
25
|
import { useApolloClient as ge } from "@apollo/client/react";
|
|
25
|
-
import { jsx as
|
|
26
|
+
import { jsx as _, jsxs as _e } from "react/jsx-runtime";
|
|
26
27
|
//#region src/bigconsole/components/widgets/WidgetWrapper.tsx
|
|
27
|
-
var ve =
|
|
28
|
-
|
|
29
|
-
var Fe =
|
|
30
|
-
function
|
|
31
|
-
return !(e.widget.id !== t.widget.id || e.widget.updatedAt !== t.widget.updatedAt || e.isLoading !== t.isLoading || e.error !== t.error || e.actions !== t.actions || e.data !== t.data || JSON.stringify(e.filterValues) !== JSON.stringify(t.filterValues));
|
|
28
|
+
var ve = d(() => import("./metric-card/index.js").then((e) => ({ default: e.MetricCardWidget }))), ye = d(() => import("./chart/index.js").then((e) => ({ default: e.ChartWidget }))), be = d(() => import("./table/index.js").then((e) => ({ default: e.TableWidget }))), xe = d(() => import("./pivot-table/index.js").then((e) => ({ default: e.PivotTableWidget }))), Se = d(() => import("./gauge/index.js").then((e) => ({ default: e.GaugeWidget }))), Ce = d(() => import("./progress/index.js").then((e) => ({ default: e.ProgressWidget }))), we = d(() => import("./list/index.js").then((e) => ({ default: e.ListWidget }))), Te = d(() => import("./heatmap/index.js").then((e) => ({ default: e.HeatmapWidget }))), Ee = d(() => import("./retention/index.js").then((e) => ({ default: e.RetentionWidget }))), De = d(() => import("./calendar/index.js").then((e) => ({ default: e.CalendarWidget }))), Oe = d(() => import("./kanban/index.js").then((e) => ({ default: e.KanbanWidget }))), ke = d(() => import("./timeline/index.js").then((e) => ({ default: e.TimelineWidget }))), Ae = d(() => import("./kpi-comparison/index.js").then((e) => ({ default: e.KPIComparisonWidget }))), je = d(() => import("./text-widget/index.js").then((e) => ({ default: e.TextWidget }))), Me = d(() => import("./map-widget/index.js").then((e) => ({ default: e.MapWidget }))), Ne = d(() => import("./iframe-widget/index.js").then((e) => ({ default: e.IframeWidget }))), Pe = d(() => import("./custom/index.js").then((e) => ({ default: e.CustomWidget })));
|
|
29
|
+
d(() => import("./adaptive-card/index.js").then((e) => ({ default: e.AdaptiveCardWidget })));
|
|
30
|
+
var Fe = d(() => import("./form/index.js").then((e) => ({ default: e.FormWidget }))), Ie = d(() => import("./comments/WidgetComments.js").then((e) => ({ default: e.WidgetComments })));
|
|
31
|
+
function v(e, t) {
|
|
32
|
+
return !(e.previewOnly !== t.previewOnly || e.widget.id !== t.widget.id || e.widget.updatedAt !== t.widget.updatedAt || e.isLoading !== t.isLoading || e.error !== t.error || e.actions !== t.actions || e.data !== t.data || JSON.stringify(e.filterValues) !== JSON.stringify(t.filterValues));
|
|
32
33
|
}
|
|
33
|
-
var
|
|
34
|
-
let
|
|
35
|
-
if (!
|
|
34
|
+
var y = f(function({ widget: d, children: f, data: v, className: y = "", isLoading: Le, error: Re, onRefresh: b, onDrilldown: ze, actions: x, onAction: S, filterValues: C, previewOnly: w = !1 }) {
|
|
35
|
+
let T = oe(), Be = r((e) => e.viewMode === "edit"), E = !w && Be, D = t((e) => e.selectWidget), O = e(d.id), k = n(d.id), A = i(), j = ge(), M = d.dashboardId, N = m(() => {
|
|
36
|
+
if (!M) return {};
|
|
36
37
|
try {
|
|
37
|
-
let e =
|
|
38
|
+
let e = j.readQuery({
|
|
38
39
|
query: a,
|
|
39
|
-
variables: { id:
|
|
40
|
+
variables: { id: M }
|
|
40
41
|
}), t = {};
|
|
41
42
|
for (let n of e?.getDashboard?.globalFilters ?? []) {
|
|
42
43
|
let e = n.config?.field;
|
|
43
|
-
typeof e == "string" && e && (t[n.id] = e);
|
|
44
|
+
typeof e == "string" && e && Object.hasOwn(A, n.id) && (t[n.id] = e);
|
|
44
45
|
}
|
|
45
46
|
return t;
|
|
46
47
|
} catch {
|
|
47
48
|
return {};
|
|
48
49
|
}
|
|
49
|
-
}, [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
}, [
|
|
51
|
+
j,
|
|
52
|
+
M,
|
|
53
|
+
A
|
|
54
|
+
]), P = m(() => fe(d), [d]), F = P.source.kind !== "DATASINK" || !!P.source.ref || !!P.parserId || !!d.datasetId, { data: I, loading: Ve } = o(d.id, {
|
|
55
|
+
skip: w || !F,
|
|
56
|
+
pollInterval: (d.refreshInterval ?? 0) * 1e3 || 0
|
|
57
|
+
}), L = m(() => {
|
|
53
58
|
if (typeof window > "u") return {};
|
|
54
59
|
let e = new URLSearchParams(window.location.search), t = {};
|
|
55
60
|
return e.forEach((e, n) => {
|
|
@@ -58,56 +63,56 @@ var v = d(function({ widget: u, children: d, data: _, className: v = "", isLoadi
|
|
|
58
63
|
r.startsWith("__") || (t[r] = e);
|
|
59
64
|
}
|
|
60
65
|
}), t;
|
|
61
|
-
}, []),
|
|
66
|
+
}, []), R = m(() => {
|
|
62
67
|
let e = {};
|
|
63
|
-
return
|
|
68
|
+
return L && Object.keys(L).length > 0 && Object.assign(e, L), A && Object.keys(A).length > 0 && Object.assign(e, A), C && Object.keys(C).length > 0 && Object.assign(e, C), e;
|
|
64
69
|
}, [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
]),
|
|
70
|
+
L,
|
|
71
|
+
A,
|
|
72
|
+
C
|
|
73
|
+
]), z = Object.keys(R).length > 0, B = Le ?? (Ve && !I) ?? k.isLoading, V = Re ?? k.errorMessage, He = s(d.type), H = h(b);
|
|
69
74
|
he(() => {
|
|
70
|
-
|
|
71
|
-
}, [
|
|
72
|
-
let
|
|
73
|
-
|
|
74
|
-
}, []), { timeUntilRefresh:
|
|
75
|
-
widgetId:
|
|
76
|
-
refreshInterval:
|
|
77
|
-
onRefresh:
|
|
78
|
-
enabled: !
|
|
79
|
-
}),
|
|
80
|
-
|
|
75
|
+
H.current = b;
|
|
76
|
+
}, [b]);
|
|
77
|
+
let Ue = p(async () => {
|
|
78
|
+
H.current && await H.current();
|
|
79
|
+
}, []), { timeUntilRefresh: We, isPaused: Ge } = te({
|
|
80
|
+
widgetId: d.id,
|
|
81
|
+
refreshInterval: d.refreshInterval,
|
|
82
|
+
onRefresh: Ue,
|
|
83
|
+
enabled: !w && !E && !!d.refreshInterval
|
|
84
|
+
}), U = h(null), [W, Ke] = g(!1), [qe, Je] = g(!1), { count: Ye } = ne(d.id, qe), Xe = p(() => {
|
|
85
|
+
Ke((e) => {
|
|
81
86
|
let t = !e;
|
|
82
|
-
return t &&
|
|
87
|
+
return t && Je(!0), t;
|
|
83
88
|
});
|
|
84
|
-
}, []),
|
|
85
|
-
if (
|
|
86
|
-
let e =
|
|
89
|
+
}, []), Ze = m(() => {
|
|
90
|
+
if (v && Array.isArray(v)) return v;
|
|
91
|
+
let e = d.data;
|
|
87
92
|
if (e?.processed && Array.isArray(e.processed)) return e.processed;
|
|
88
93
|
if (e?.raw) {
|
|
89
94
|
let t = typeof e.raw == "string" ? JSON.parse(e.raw) : e.raw;
|
|
90
95
|
if (Array.isArray(t)) return t;
|
|
91
96
|
}
|
|
92
97
|
return null;
|
|
93
|
-
}, [
|
|
94
|
-
data:
|
|
95
|
-
containerRef:
|
|
96
|
-
}),
|
|
98
|
+
}, [v, d]), { exportCSV: Qe, exportPNG: $e } = re(d, {
|
|
99
|
+
data: Ze,
|
|
100
|
+
containerRef: U
|
|
101
|
+
}), G = p((e) => {
|
|
97
102
|
if (e == null) return !1;
|
|
98
103
|
if (Array.isArray(e)) return e.length > 0;
|
|
99
104
|
if (typeof e == "object") {
|
|
100
105
|
let t = e, n = Object.keys(t);
|
|
101
106
|
return n.length === 0 ? !1 : n.some((e) => {
|
|
102
107
|
let n = t[e];
|
|
103
|
-
return n == null || n === "" ? !1 : Array.isArray(n) ? n.length > 0 : typeof n == "object" ?
|
|
108
|
+
return n == null || n === "" ? !1 : Array.isArray(n) ? n.length > 0 : typeof n == "object" ? G(n) : !0;
|
|
104
109
|
});
|
|
105
110
|
}
|
|
106
111
|
return !0;
|
|
107
|
-
}, []),
|
|
108
|
-
if (!
|
|
112
|
+
}, []), et = p((e) => {
|
|
113
|
+
if (!z || !e) return e;
|
|
109
114
|
let t = {}, n = {};
|
|
110
|
-
Object.entries(
|
|
115
|
+
Object.entries(R || {}).forEach(([e, r]) => {
|
|
111
116
|
if (e.startsWith("ctx_")) {
|
|
112
117
|
let n = e.slice(4);
|
|
113
118
|
t[n] = r;
|
|
@@ -169,7 +174,7 @@ var v = d(function({ widget: u, children: d, data: _, className: v = "", isLoadi
|
|
|
169
174
|
}
|
|
170
175
|
}
|
|
171
176
|
if (typeof a == "object" && a && !Array.isArray(a)) continue;
|
|
172
|
-
let n =
|
|
177
|
+
let n = N[t];
|
|
173
178
|
if (n) {
|
|
174
179
|
let t = i(e, n);
|
|
175
180
|
if (t !== void 0) {
|
|
@@ -236,82 +241,82 @@ var v = d(function({ widget: u, children: d, data: _, className: v = "", isLoadi
|
|
|
236
241
|
}
|
|
237
242
|
return e;
|
|
238
243
|
}, [
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
]),
|
|
244
|
+
z,
|
|
245
|
+
R,
|
|
246
|
+
d.id,
|
|
247
|
+
N
|
|
248
|
+
]), K = m(() => {
|
|
244
249
|
let e = null;
|
|
245
|
-
if (
|
|
246
|
-
else if (
|
|
247
|
-
let t =
|
|
248
|
-
if (t?.processed &&
|
|
250
|
+
if (v && G(v)) e = v;
|
|
251
|
+
else if (I) {
|
|
252
|
+
let t = I;
|
|
253
|
+
if (t?.processed && G(t.processed)) e = t.processed;
|
|
249
254
|
else if (t?.raw) try {
|
|
250
255
|
let n = typeof t.raw == "string" ? JSON.parse(t.raw) : t.raw;
|
|
251
|
-
|
|
256
|
+
G(n) && (e = n);
|
|
252
257
|
} catch {}
|
|
253
258
|
} else {
|
|
254
|
-
let t =
|
|
255
|
-
if (t?.processed &&
|
|
259
|
+
let t = d.data;
|
|
260
|
+
if (t?.processed && G(t.processed)) e = t.processed;
|
|
256
261
|
else if (t?.raw) try {
|
|
257
262
|
let n = typeof t.raw == "string" ? JSON.parse(t.raw) : t.raw;
|
|
258
|
-
|
|
263
|
+
G(n) && (e = n);
|
|
259
264
|
} catch {}
|
|
260
265
|
}
|
|
261
266
|
if (!e) {
|
|
262
|
-
let t =
|
|
267
|
+
let t = d.config?.mockData;
|
|
263
268
|
if (t) try {
|
|
264
269
|
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
265
|
-
|
|
270
|
+
G(n) && (e = n);
|
|
266
271
|
} catch {}
|
|
267
272
|
}
|
|
268
273
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
269
|
-
let t =
|
|
274
|
+
let t = d.config, n = t?.dataKey ?? t?.dataPath ?? t?.seriesPath;
|
|
270
275
|
if (n && typeof n == "string") {
|
|
271
276
|
let t = n.split(".").reduce((e, t) => e && typeof e == "object" ? e[t] : void 0, e);
|
|
272
|
-
t != null &&
|
|
277
|
+
t != null && G(t) && (e = t);
|
|
273
278
|
}
|
|
274
279
|
}
|
|
275
|
-
return
|
|
280
|
+
return z && e ? et(e) : e;
|
|
276
281
|
}, [
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
N,
|
|
282
|
+
v,
|
|
283
|
+
d,
|
|
280
284
|
I,
|
|
281
|
-
|
|
285
|
+
z,
|
|
286
|
+
et,
|
|
287
|
+
R,
|
|
288
|
+
G
|
|
289
|
+
]), q = m(() => K ?? null, [K]), tt = m(() => !q || F ? !1 : d.config?.mockData != null, [
|
|
290
|
+
q,
|
|
282
291
|
F,
|
|
283
|
-
|
|
284
|
-
]),
|
|
285
|
-
K,
|
|
286
|
-
M,
|
|
287
|
-
u.config
|
|
288
|
-
]), { executeDrilldown: q, canDrilldown: $e } = ie({ onDrilldown: (e, t) => {
|
|
292
|
+
d.config
|
|
293
|
+
]), { executeDrilldown: nt, canDrilldown: rt } = ie({ onDrilldown: (e, t) => {
|
|
289
294
|
ze?.(e);
|
|
290
|
-
} }), J =
|
|
291
|
-
if (!
|
|
295
|
+
} }), J = m(() => rt(d), [d, rt]), it = p((e) => {
|
|
296
|
+
if (!d.drilldown?.enabled) return;
|
|
292
297
|
let t = {
|
|
293
298
|
selectedData: e || {},
|
|
294
|
-
globalFilters:
|
|
295
|
-
widgetData:
|
|
299
|
+
globalFilters: A || {},
|
|
300
|
+
widgetData: q || {},
|
|
296
301
|
metadata: {
|
|
297
|
-
widgetId:
|
|
298
|
-
widgetType:
|
|
299
|
-
widgetTitle:
|
|
302
|
+
widgetId: d.id,
|
|
303
|
+
widgetType: d.type,
|
|
304
|
+
widgetTitle: d.title
|
|
300
305
|
},
|
|
301
|
-
sourceDashboardId:
|
|
306
|
+
sourceDashboardId: d.dashboardId
|
|
302
307
|
};
|
|
303
|
-
|
|
308
|
+
nt(d.drilldown, t);
|
|
304
309
|
}, [
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
]), Y = J && !
|
|
310
|
+
d,
|
|
311
|
+
q,
|
|
312
|
+
A,
|
|
313
|
+
nt
|
|
314
|
+
]), Y = J && !E ? it : void 0, X = h(null), at = p((e) => {
|
|
310
315
|
X.current = {
|
|
311
316
|
x: e.clientX,
|
|
312
317
|
y: e.clientY
|
|
313
318
|
};
|
|
314
|
-
}, []),
|
|
319
|
+
}, []), ot = p((e) => {
|
|
315
320
|
if (e.stopPropagation(), X.current) {
|
|
316
321
|
let t = Math.abs(e.clientX - X.current.x), n = Math.abs(e.clientY - X.current.y);
|
|
317
322
|
if (t > 5 || n > 5) {
|
|
@@ -319,49 +324,49 @@ var v = d(function({ widget: u, children: d, data: _, className: v = "", isLoadi
|
|
|
319
324
|
return;
|
|
320
325
|
}
|
|
321
326
|
}
|
|
322
|
-
X.current = null,
|
|
327
|
+
X.current = null, E && D(d.id);
|
|
323
328
|
}, [
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
]),
|
|
328
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(),
|
|
329
|
+
E,
|
|
330
|
+
D,
|
|
331
|
+
d.id
|
|
332
|
+
]), st = p((e) => {
|
|
333
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), E && D(d.id));
|
|
329
334
|
}, [
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
]),
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
]),
|
|
338
|
-
widgetId:
|
|
339
|
-
data:
|
|
340
|
-
}), [
|
|
341
|
-
if (!
|
|
342
|
-
let n =
|
|
343
|
-
|
|
344
|
-
}, [
|
|
335
|
+
E,
|
|
336
|
+
D,
|
|
337
|
+
d.id
|
|
338
|
+
]), ct = m(() => d.type === "custom" && de(d.config), [d.type, d.config]), lt = m(() => d.type === "custom" && ue(d.config), [d.type, d.config]), Z = J && !lt, ut = m(() => d.type === "text" ? c(d.config, q).hasContent : !1, [
|
|
339
|
+
d.type,
|
|
340
|
+
d.config,
|
|
341
|
+
q
|
|
342
|
+
]), dt = !B && !V && !q && !ct && !ut, Q = m(() => d.renderer, [d]), ft = m(() => Q && Q !== "BIGCONSOLE", [Q]), pt = m(() => ({
|
|
343
|
+
widgetId: d.id,
|
|
344
|
+
data: q || {}
|
|
345
|
+
}), [d.id, q]), $ = p((e, t) => {
|
|
346
|
+
if (!S) return;
|
|
347
|
+
let n = x?.find((t) => t.name === e.name);
|
|
348
|
+
S(n || e, t);
|
|
349
|
+
}, [S, x]), mt = p(() => {
|
|
345
350
|
let e = {
|
|
346
|
-
widget:
|
|
351
|
+
widget: d,
|
|
347
352
|
data: (() => {
|
|
348
|
-
if (!
|
|
349
|
-
if (
|
|
350
|
-
if (Array.isArray(
|
|
351
|
-
if (
|
|
353
|
+
if (!q) return q;
|
|
354
|
+
if (d.type === "table" || d.type === "pivot_table") {
|
|
355
|
+
if (Array.isArray(q)) return q;
|
|
356
|
+
if (q && typeof q == "object" && "rows" in q) return q.rows;
|
|
352
357
|
}
|
|
353
|
-
if (
|
|
354
|
-
if (Array.isArray(
|
|
355
|
-
if (
|
|
358
|
+
if (d.type === "list") {
|
|
359
|
+
if (Array.isArray(q)) return q;
|
|
360
|
+
if (q && typeof q == "object" && "items" in q) return q.items;
|
|
356
361
|
}
|
|
357
|
-
if (
|
|
358
|
-
if (Array.isArray(
|
|
359
|
-
if (
|
|
362
|
+
if (d.type === "funnel_chart") {
|
|
363
|
+
if (Array.isArray(q)) return q;
|
|
364
|
+
if (q && typeof q == "object" && "stages" in q) return q.stages;
|
|
360
365
|
}
|
|
361
|
-
if (
|
|
362
|
-
if (Array.isArray(
|
|
363
|
-
if (
|
|
364
|
-
let e =
|
|
366
|
+
if (d.type === "chart") {
|
|
367
|
+
if (Array.isArray(q)) return q;
|
|
368
|
+
if (q && typeof q == "object" && "datasets" in q) {
|
|
369
|
+
let e = q;
|
|
365
370
|
if (e.labels && e.datasets) return e.labels.map((t, n) => {
|
|
366
371
|
let r = { name: t };
|
|
367
372
|
return e.datasets?.forEach((e) => {
|
|
@@ -370,184 +375,187 @@ var v = d(function({ widget: u, children: d, data: _, className: v = "", isLoadi
|
|
|
370
375
|
});
|
|
371
376
|
}
|
|
372
377
|
}
|
|
373
|
-
if (
|
|
374
|
-
let e =
|
|
378
|
+
if (d.type === "text") {
|
|
379
|
+
let e = c(d.config, q);
|
|
375
380
|
return {
|
|
376
381
|
content: e.content,
|
|
377
382
|
format: e.format,
|
|
378
383
|
alignment: e.alignment
|
|
379
384
|
};
|
|
380
385
|
}
|
|
381
|
-
if (
|
|
382
|
-
let e =
|
|
383
|
-
if (e &&
|
|
384
|
-
let t =
|
|
386
|
+
if (d.type === "custom") {
|
|
387
|
+
let e = d.config?.valueField;
|
|
388
|
+
if (e && q && typeof q == "object" && !Array.isArray(q)) {
|
|
389
|
+
let t = q;
|
|
385
390
|
if (e in t) return {
|
|
386
391
|
value: t[e],
|
|
387
|
-
label:
|
|
392
|
+
label: d.title,
|
|
388
393
|
data: t
|
|
389
394
|
};
|
|
390
395
|
}
|
|
391
396
|
}
|
|
392
|
-
return
|
|
397
|
+
return q;
|
|
393
398
|
})(),
|
|
394
399
|
onDrilldown: Y
|
|
395
400
|
};
|
|
396
|
-
if (
|
|
401
|
+
if (ft) {
|
|
397
402
|
let e = {};
|
|
398
|
-
if (
|
|
399
|
-
let t =
|
|
403
|
+
if (K && typeof K == "object" && !Array.isArray(K) && Object.keys(K).length > 0 && (e = { ...K }), d.config?._internalWidgetType === "custom" && Object.keys(e).length > 0) {
|
|
404
|
+
let t = d.config?.valueField;
|
|
400
405
|
if (t && t in e) {
|
|
401
406
|
let n = e[t], r = typeof n == "number" ? n.toLocaleString() : String(n);
|
|
402
407
|
e = {
|
|
403
408
|
...e,
|
|
404
409
|
value: n,
|
|
405
410
|
title: e.title || r,
|
|
406
|
-
description: e.description ||
|
|
411
|
+
description: e.description || d.title || "",
|
|
407
412
|
text: e.text || r
|
|
408
413
|
};
|
|
409
414
|
}
|
|
410
415
|
}
|
|
411
|
-
return /* @__PURE__ */
|
|
412
|
-
widget:
|
|
416
|
+
return /* @__PURE__ */ _(pe, {
|
|
417
|
+
widget: d,
|
|
413
418
|
data: e,
|
|
414
|
-
isEditMode:
|
|
415
|
-
isSelected:
|
|
416
|
-
isLoading:
|
|
417
|
-
error:
|
|
419
|
+
isEditMode: E,
|
|
420
|
+
isSelected: O,
|
|
421
|
+
isLoading: B,
|
|
422
|
+
error: V,
|
|
418
423
|
onDrilldown: Y,
|
|
419
424
|
onAction: $
|
|
420
425
|
});
|
|
421
426
|
}
|
|
422
|
-
switch (
|
|
423
|
-
case "metric_card": return /* @__PURE__ */
|
|
424
|
-
case "kpi_card_comparison": return /* @__PURE__ */
|
|
427
|
+
switch (d.type?.toLowerCase() || "") {
|
|
428
|
+
case "metric_card": return /* @__PURE__ */ _(ve, { ...e });
|
|
429
|
+
case "kpi_card_comparison": return /* @__PURE__ */ _(Ae, { ...e });
|
|
425
430
|
case "chart":
|
|
426
|
-
case "funnel_chart": return /* @__PURE__ */
|
|
427
|
-
case "table": return /* @__PURE__ */
|
|
428
|
-
case "pivot_table": return /* @__PURE__ */
|
|
429
|
-
case "gauge": return /* @__PURE__ */
|
|
430
|
-
case "progress": return /* @__PURE__ */
|
|
431
|
-
case "list": return /* @__PURE__ */
|
|
432
|
-
case "heatmap": return /* @__PURE__ */
|
|
433
|
-
case "retention": return /* @__PURE__ */
|
|
434
|
-
case "calendar": return /* @__PURE__ */
|
|
435
|
-
case "timeline": return /* @__PURE__ */
|
|
436
|
-
case "kanban": return /* @__PURE__ */
|
|
437
|
-
case "form": return /* @__PURE__ */
|
|
438
|
-
case "text": return /* @__PURE__ */
|
|
439
|
-
case "iframe": return /* @__PURE__ */
|
|
440
|
-
case "map": return /* @__PURE__ */
|
|
441
|
-
case "custom": return /* @__PURE__ */
|
|
442
|
-
default: return
|
|
431
|
+
case "funnel_chart": return /* @__PURE__ */ _(ye, { ...e });
|
|
432
|
+
case "table": return /* @__PURE__ */ _(be, { ...e });
|
|
433
|
+
case "pivot_table": return /* @__PURE__ */ _(xe, { ...e });
|
|
434
|
+
case "gauge": return /* @__PURE__ */ _(Se, { ...e });
|
|
435
|
+
case "progress": return /* @__PURE__ */ _(Ce, { ...e });
|
|
436
|
+
case "list": return /* @__PURE__ */ _(we, { ...e });
|
|
437
|
+
case "heatmap": return /* @__PURE__ */ _(Te, { ...e });
|
|
438
|
+
case "retention": return /* @__PURE__ */ _(Ee, { ...e });
|
|
439
|
+
case "calendar": return /* @__PURE__ */ _(De, { ...e });
|
|
440
|
+
case "timeline": return /* @__PURE__ */ _(ke, { ...e });
|
|
441
|
+
case "kanban": return /* @__PURE__ */ _(Oe, { ...e });
|
|
442
|
+
case "form": return /* @__PURE__ */ _(Fe, { ...e });
|
|
443
|
+
case "text": return /* @__PURE__ */ _(je, { ...e });
|
|
444
|
+
case "iframe": return /* @__PURE__ */ _(Ne, { ...e });
|
|
445
|
+
case "map": return /* @__PURE__ */ _(Me, { ...e });
|
|
446
|
+
case "custom": return /* @__PURE__ */ _(Pe, { ...e });
|
|
447
|
+
default: return f || /* @__PURE__ */ _(l, { widgetType: d.type });
|
|
443
448
|
}
|
|
444
449
|
}, [
|
|
445
|
-
u,
|
|
446
|
-
K,
|
|
447
450
|
d,
|
|
451
|
+
q,
|
|
452
|
+
f,
|
|
448
453
|
Y,
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
+
ft,
|
|
455
|
+
E,
|
|
456
|
+
O,
|
|
457
|
+
B,
|
|
458
|
+
V,
|
|
454
459
|
$,
|
|
455
|
-
|
|
460
|
+
K
|
|
456
461
|
]);
|
|
457
462
|
return /* @__PURE__ */ _e("div", {
|
|
458
|
-
ref:
|
|
463
|
+
ref: U,
|
|
459
464
|
className: `
|
|
460
465
|
group relative flex flex-col
|
|
461
466
|
h-full w-full min-w-0
|
|
462
467
|
rounded-card border
|
|
463
468
|
bg-bg-surface
|
|
464
469
|
shadow-[var(--shadow-elevation-1)]
|
|
465
|
-
motion-safe:transition-[box-shadow,border-color] motion-safe:duration-200
|
|
466
|
-
${
|
|
467
|
-
${
|
|
468
|
-
${
|
|
470
|
+
${T.animationsEnabled ? "motion-safe:transition-[box-shadow,border-color] motion-safe:duration-200" : ""}
|
|
471
|
+
${O && E ? "border-[var(--color-action-primary-border)] ring-2 ring-[var(--color-action-primary-border)]/30 shadow-[var(--shadow-elevation-2)]" : T.showWidgetBorders ? "border-[var(--color-border-subtle)] hover:border-action-primary-bg hover:shadow-[var(--shadow-elevation-2)]" : "border-transparent"}
|
|
472
|
+
${E ? "cursor-pointer" : ""}
|
|
473
|
+
${y}
|
|
469
474
|
`,
|
|
470
|
-
onMouseDown:
|
|
471
|
-
onClick:
|
|
472
|
-
onKeyDown:
|
|
473
|
-
tabIndex:
|
|
474
|
-
role:
|
|
475
|
-
"aria-selected":
|
|
476
|
-
"aria-label": `Widget: ${
|
|
477
|
-
"data-widget-id":
|
|
478
|
-
"data-widget-type":
|
|
475
|
+
onMouseDown: at,
|
|
476
|
+
onClick: ot,
|
|
477
|
+
onKeyDown: st,
|
|
478
|
+
tabIndex: E ? 0 : -1,
|
|
479
|
+
role: E ? "button" : void 0,
|
|
480
|
+
"aria-selected": O,
|
|
481
|
+
"aria-label": `Widget: ${d.title}`,
|
|
482
|
+
"data-widget-id": d.id,
|
|
483
|
+
"data-widget-type": d.type,
|
|
479
484
|
children: [
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
widget:
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
485
|
+
/* @__PURE__ */ _(ae, {
|
|
486
|
+
widget: d,
|
|
487
|
+
previewOnly: w,
|
|
488
|
+
definition: He,
|
|
489
|
+
isSelected: O,
|
|
490
|
+
isEditMode: E,
|
|
491
|
+
isLoading: B,
|
|
492
|
+
isSampleData: tt,
|
|
493
|
+
timeUntilRefresh: d.refreshInterval && !Ge ? ee(We) : void 0,
|
|
488
494
|
hasDrilldown: J,
|
|
489
|
-
onRefresh:
|
|
490
|
-
onExportCSV:
|
|
491
|
-
onExportPNG:
|
|
495
|
+
onRefresh: b,
|
|
496
|
+
onExportCSV: Ze ? Qe : void 0,
|
|
497
|
+
onExportPNG: $e,
|
|
492
498
|
onDrilldown: Y ? () => Y() : void 0,
|
|
493
|
-
onToggleComments:
|
|
494
|
-
commentsOpen:
|
|
495
|
-
commentCount:
|
|
499
|
+
onToggleComments: w ? void 0 : Xe,
|
|
500
|
+
commentsOpen: W,
|
|
501
|
+
commentCount: qe ? Ye : void 0
|
|
496
502
|
}),
|
|
497
|
-
/* @__PURE__ */
|
|
503
|
+
/* @__PURE__ */ _("div", {
|
|
498
504
|
className: `
|
|
499
|
-
flex-1 overflow-hidden
|
|
500
|
-
${
|
|
505
|
+
flex-1 overflow-hidden min-h-0 min-w-0
|
|
506
|
+
${T.compactMode ? "p-2" : "p-3 sm:p-4"}
|
|
507
|
+
${Z && !E ? "cursor-pointer" : ""}
|
|
501
508
|
`,
|
|
502
|
-
title: Z && !
|
|
503
|
-
children: /* @__PURE__ */
|
|
509
|
+
title: Z && !E ? "Click data to drill down" : void 0,
|
|
510
|
+
children: /* @__PURE__ */ _("div", {
|
|
504
511
|
className: "h-full min-w-0 overflow-auto",
|
|
505
512
|
children: (() => {
|
|
506
|
-
if (
|
|
507
|
-
if (
|
|
508
|
-
error:
|
|
509
|
-
onRetry:
|
|
513
|
+
if (B) return /* @__PURE__ */ _(se, {});
|
|
514
|
+
if (V) return /* @__PURE__ */ _(ce, {
|
|
515
|
+
error: V,
|
|
516
|
+
onRetry: b
|
|
510
517
|
});
|
|
511
|
-
if (
|
|
512
|
-
widgetType:
|
|
513
|
-
|
|
514
|
-
|
|
518
|
+
if (dt && !f) return /* @__PURE__ */ _(l, {
|
|
519
|
+
widgetType: d.type,
|
|
520
|
+
hideEditHint: w,
|
|
521
|
+
hasDataSource: F,
|
|
522
|
+
templateSlot: typeof d.metadata?.templateDataSinkSlot == "string" ? d.metadata.templateDataSinkSlot : null
|
|
515
523
|
});
|
|
516
|
-
let e = `${
|
|
517
|
-
return /* @__PURE__ */
|
|
518
|
-
widgetId:
|
|
519
|
-
widgetType:
|
|
520
|
-
widgetTitle:
|
|
524
|
+
let e = `${P.source.kind}|${P.source.ref ?? ""}|${P.parserId ?? ""}|${d.updatedAt ?? ""}`;
|
|
525
|
+
return /* @__PURE__ */ _(le, {
|
|
526
|
+
widgetId: d.id,
|
|
527
|
+
widgetType: d.type,
|
|
528
|
+
widgetTitle: d.title,
|
|
521
529
|
resetKey: e,
|
|
522
|
-
children:
|
|
523
|
-
fallback: /* @__PURE__ */
|
|
524
|
-
children:
|
|
530
|
+
children: f ?? /* @__PURE__ */ _(u, {
|
|
531
|
+
fallback: /* @__PURE__ */ _(se, {}),
|
|
532
|
+
children: mt()
|
|
525
533
|
})
|
|
526
534
|
});
|
|
527
535
|
})()
|
|
528
536
|
})
|
|
529
537
|
}),
|
|
530
|
-
|
|
538
|
+
x && x.length > 0 && !B && !V && /* @__PURE__ */ _("div", {
|
|
531
539
|
className: "min-w-0 border-t border-[var(--color-border-subtle)] bg-bg-sunken px-3 py-2 sm:px-4",
|
|
532
540
|
style: { flexShrink: 0 },
|
|
533
|
-
children: /* @__PURE__ */
|
|
534
|
-
actions:
|
|
535
|
-
context:
|
|
536
|
-
onAction:
|
|
537
|
-
disabled:
|
|
541
|
+
children: /* @__PURE__ */ _(me, {
|
|
542
|
+
actions: x,
|
|
543
|
+
context: pt,
|
|
544
|
+
onAction: S,
|
|
545
|
+
disabled: E,
|
|
538
546
|
layout: "horizontal",
|
|
539
547
|
size: "sm"
|
|
540
548
|
})
|
|
541
549
|
}),
|
|
542
|
-
Z && !
|
|
550
|
+
Z && !E && /* @__PURE__ */ _("div", {
|
|
543
551
|
className: "\n absolute bottom-2 right-2\n opacity-0 group-hover:opacity-100\n transition-opacity duration-200\n ",
|
|
544
552
|
title: "Click to drill down",
|
|
545
|
-
children: /* @__PURE__ */
|
|
553
|
+
children: /* @__PURE__ */ _("svg", {
|
|
546
554
|
className: "w-4 h-4 text-text-secondary",
|
|
547
555
|
fill: "none",
|
|
548
556
|
stroke: "currentColor",
|
|
549
557
|
viewBox: "0 0 24 24",
|
|
550
|
-
children: /* @__PURE__ */
|
|
558
|
+
children: /* @__PURE__ */ _("path", {
|
|
551
559
|
strokeLinecap: "round",
|
|
552
560
|
strokeLinejoin: "round",
|
|
553
561
|
strokeWidth: 2,
|
|
@@ -555,17 +563,17 @@ var v = d(function({ widget: u, children: d, data: _, className: v = "", isLoadi
|
|
|
555
563
|
})
|
|
556
564
|
})
|
|
557
565
|
}),
|
|
558
|
-
|
|
566
|
+
W && /* @__PURE__ */ _(u, {
|
|
559
567
|
fallback: null,
|
|
560
|
-
children: /* @__PURE__ */
|
|
561
|
-
widgetId:
|
|
562
|
-
onClose: () =>
|
|
568
|
+
children: /* @__PURE__ */ _(Ie, {
|
|
569
|
+
widgetId: d.id,
|
|
570
|
+
onClose: () => Ke(!1)
|
|
563
571
|
})
|
|
564
572
|
})
|
|
565
573
|
]
|
|
566
574
|
});
|
|
567
|
-
},
|
|
575
|
+
}, v);
|
|
568
576
|
//#endregion
|
|
569
|
-
export {
|
|
577
|
+
export { y as default };
|
|
570
578
|
|
|
571
579
|
//# sourceMappingURL=WidgetWrapper.js.map
|