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