@burdenoff/microfe-bigconsole 2026.1004.2 → 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.
Files changed (150) hide show
  1. package/dist/bigconsole/BigConsoleRoutes.d.ts +1 -1
  2. package/dist/bigconsole/BigConsoleRoutes.d.ts.map +1 -1
  3. package/dist/bigconsole/BigConsoleRoutes.js +15 -1
  4. package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
  5. package/dist/bigconsole/components/DrilldownModal.d.ts.map +1 -1
  6. package/dist/bigconsole/components/DrilldownModal.js +54 -53
  7. package/dist/bigconsole/components/DrilldownModal.js.map +1 -1
  8. package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts +3 -1
  9. package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts.map +1 -1
  10. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +40 -39
  11. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
  12. package/dist/bigconsole/components/dashboard/DashboardCanvas.d.ts.map +1 -1
  13. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +184 -177
  14. package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
  15. package/dist/bigconsole/components/dashboard/DashboardGrid.d.ts.map +1 -1
  16. package/dist/bigconsole/components/dashboard/DashboardGrid.js +40 -22
  17. package/dist/bigconsole/components/dashboard/DashboardGrid.js.map +1 -1
  18. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.d.ts.map +1 -1
  19. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +31 -25
  20. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js.map +1 -1
  21. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts +1 -1
  22. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts.map +1 -1
  23. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +115 -80
  24. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
  25. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.d.ts.map +1 -1
  26. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +177 -146
  27. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
  28. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts +1 -1
  29. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts.map +1 -1
  30. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +375 -325
  31. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
  32. package/dist/bigconsole/components/datasink/CacheTTLSelector.d.ts.map +1 -1
  33. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +7 -1
  34. package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
  35. package/dist/bigconsole/components/parser/ParserSelector.d.ts +3 -1
  36. package/dist/bigconsole/components/parser/ParserSelector.d.ts.map +1 -1
  37. package/dist/bigconsole/components/parser/ParserSelector.js +94 -94
  38. package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
  39. package/dist/bigconsole/components/pipeline/PipelineCard.d.ts.map +1 -1
  40. package/dist/bigconsole/components/pipeline/PipelineCard.js +111 -89
  41. package/dist/bigconsole/components/pipeline/PipelineCard.js.map +1 -1
  42. package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts +8 -0
  43. package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts.map +1 -0
  44. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +52 -0
  45. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js.map +1 -0
  46. package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts.map +1 -1
  47. package/dist/bigconsole/components/widgets/PropertiesPanel.js +257 -221
  48. package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
  49. package/dist/bigconsole/components/widgets/WidgetHeader.d.ts +1 -0
  50. package/dist/bigconsole/components/widgets/WidgetHeader.d.ts.map +1 -1
  51. package/dist/bigconsole/components/widgets/WidgetHeader.js +29 -29
  52. package/dist/bigconsole/components/widgets/WidgetHeader.js.map +1 -1
  53. package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts +2 -0
  54. package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts.map +1 -1
  55. package/dist/bigconsole/components/widgets/WidgetWrapper.js +247 -239
  56. package/dist/bigconsole/components/widgets/WidgetWrapper.js.map +1 -1
  57. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.d.ts.map +1 -1
  58. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +6 -4
  59. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js.map +1 -1
  60. package/dist/bigconsole/components/widgets/states/EmptyState.d.ts +1 -0
  61. package/dist/bigconsole/components/widgets/states/EmptyState.d.ts.map +1 -1
  62. package/dist/bigconsole/components/widgets/states/EmptyState.js +4 -4
  63. package/dist/bigconsole/components/widgets/states/EmptyState.js.map +1 -1
  64. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts +7 -0
  65. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts.map +1 -0
  66. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js +94 -0
  67. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js.map +1 -0
  68. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts +7 -0
  69. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts.map +1 -0
  70. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +101 -0
  71. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js.map +1 -0
  72. package/dist/bigconsole/hooks/useBigConsoleSettings.d.ts +16 -0
  73. package/dist/bigconsole/hooks/useBigConsoleSettings.d.ts.map +1 -0
  74. package/dist/bigconsole/hooks/useBigConsoleSettings.js +57 -0
  75. package/dist/bigconsole/hooks/useBigConsoleSettings.js.map +1 -0
  76. package/dist/bigconsole/hooks/useDashboardOperations.d.ts.map +1 -1
  77. package/dist/bigconsole/hooks/useDashboardOperations.js +102 -79
  78. package/dist/bigconsole/hooks/useDashboardOperations.js.map +1 -1
  79. package/dist/bigconsole/hooks/useExportDashboard.d.ts +3 -1
  80. package/dist/bigconsole/hooks/useExportDashboard.d.ts.map +1 -1
  81. package/dist/bigconsole/hooks/useExportDashboard.js +23 -13
  82. package/dist/bigconsole/hooks/useExportDashboard.js.map +1 -1
  83. package/dist/bigconsole/hooks/useFilterUrlSync.d.ts +18 -0
  84. package/dist/bigconsole/hooks/useFilterUrlSync.d.ts.map +1 -1
  85. package/dist/bigconsole/hooks/useFilterUrlSync.js +87 -57
  86. package/dist/bigconsole/hooks/useFilterUrlSync.js.map +1 -1
  87. package/dist/bigconsole/hooks/useGlobalFilters.d.ts.map +1 -1
  88. package/dist/bigconsole/hooks/useGlobalFilters.js +39 -29
  89. package/dist/bigconsole/hooks/useGlobalFilters.js.map +1 -1
  90. package/dist/bigconsole/hooks/usePageOperations.d.ts.map +1 -1
  91. package/dist/bigconsole/hooks/usePageOperations.js +1 -0
  92. package/dist/bigconsole/hooks/usePageOperations.js.map +1 -1
  93. package/dist/bigconsole/hooks/usePipelineOperations.d.ts.map +1 -1
  94. package/dist/bigconsole/hooks/usePipelineOperations.js +114 -112
  95. package/dist/bigconsole/hooks/usePipelineOperations.js.map +1 -1
  96. package/dist/bigconsole/hooks/useShareRecipients.d.ts +22 -0
  97. package/dist/bigconsole/hooks/useShareRecipients.d.ts.map +1 -0
  98. package/dist/bigconsole/hooks/useShareRecipients.js +198 -0
  99. package/dist/bigconsole/hooks/useShareRecipients.js.map +1 -0
  100. package/dist/bigconsole/pages/DashboardBuilderPage.d.ts.map +1 -1
  101. package/dist/bigconsole/pages/DashboardBuilderPage.js +198 -193
  102. package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
  103. package/dist/bigconsole/pages/DashboardViewPage.d.ts.map +1 -1
  104. package/dist/bigconsole/pages/DashboardViewPage.js +171 -167
  105. package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
  106. package/dist/bigconsole/pages/DashboardsPage.d.ts.map +1 -1
  107. package/dist/bigconsole/pages/DashboardsPage.js +313 -266
  108. package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
  109. package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts.map +1 -1
  110. package/dist/bigconsole/pages/DataSinkBuilderPage.js +84 -79
  111. package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
  112. package/dist/bigconsole/pages/DataSinkViewPage.d.ts.map +1 -1
  113. package/dist/bigconsole/pages/DataSinkViewPage.js +267 -257
  114. package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
  115. package/dist/bigconsole/pages/InsightsPage.d.ts.map +1 -1
  116. package/dist/bigconsole/pages/InsightsPage.js +465 -402
  117. package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
  118. package/dist/bigconsole/pages/PipelineBuilderPage.d.ts.map +1 -1
  119. package/dist/bigconsole/pages/PipelineBuilderPage.js +169 -157
  120. package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
  121. package/dist/bigconsole/pages/PipelineViewPage.d.ts.map +1 -1
  122. package/dist/bigconsole/pages/PipelineViewPage.js +370 -230
  123. package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
  124. package/dist/bigconsole/pages/PipelinesPage.d.ts.map +1 -1
  125. package/dist/bigconsole/pages/PipelinesPage.js +181 -151
  126. package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
  127. package/dist/bigconsole/pages/SettingsPage.d.ts.map +1 -1
  128. package/dist/bigconsole/pages/SettingsPage.js +188 -208
  129. package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
  130. package/dist/bigconsole/pages/WidgetDemoPage.d.ts.map +1 -1
  131. package/dist/bigconsole/pages/WidgetDemoPage.js +134 -117
  132. package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
  133. package/dist/bigconsole/pages/WorkflowViewPage.d.ts.map +1 -1
  134. package/dist/bigconsole/pages/WorkflowViewPage.js +315 -267
  135. package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
  136. package/dist/bigconsole/pages/WorkflowsPage.d.ts.map +1 -1
  137. package/dist/bigconsole/pages/WorkflowsPage.js +4 -3
  138. package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
  139. package/dist/bigconsole/types/index.d.ts +4 -0
  140. package/dist/bigconsole/types/index.d.ts.map +1 -1
  141. package/dist/generated/wspace-operations.d.ts +148 -0
  142. package/dist/generated/wspace-operations.d.ts.map +1 -1
  143. package/dist/generated/wspace-operations.js +172 -133
  144. package/dist/generated/wspace-operations.js.map +1 -1
  145. package/dist/generated/wspace-types.d.ts +21 -0
  146. package/dist/generated/wspace-types.d.ts.map +1 -1
  147. package/dist/generated/wspace-types.js.map +1 -1
  148. package/dist/microfe-bigconsole.css +1 -1
  149. package/dist/translations/en.d.ts.map +1 -1
  150. package/package.json +3 -3
@@ -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 ae } from "./text-widget/textData.js";
13
- import oe from "./WidgetHeader.js";
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 c from "./states/EmptyState.js";
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 l, lazy as u, memo as d, useCallback as f, useEffect as he, useMemo as p, useRef as m, useState as h } from "react";
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 g, jsxs as _e } from "react/jsx-runtime";
26
+ import { jsx as _, jsxs as _e } from "react/jsx-runtime";
26
27
  //#region src/bigconsole/components/widgets/WidgetWrapper.tsx
27
- var ve = u(() => import("./metric-card/index.js").then((e) => ({ default: e.MetricCardWidget }))), ye = u(() => import("./chart/index.js").then((e) => ({ default: e.ChartWidget }))), be = u(() => import("./table/index.js").then((e) => ({ default: e.TableWidget }))), xe = u(() => import("./pivot-table/index.js").then((e) => ({ default: e.PivotTableWidget }))), Se = u(() => import("./gauge/index.js").then((e) => ({ default: e.GaugeWidget }))), Ce = u(() => import("./progress/index.js").then((e) => ({ default: e.ProgressWidget }))), we = u(() => import("./list/index.js").then((e) => ({ default: e.ListWidget }))), Te = u(() => import("./heatmap/index.js").then((e) => ({ default: e.HeatmapWidget }))), Ee = u(() => import("./retention/index.js").then((e) => ({ default: e.RetentionWidget }))), De = u(() => import("./calendar/index.js").then((e) => ({ default: e.CalendarWidget }))), Oe = u(() => import("./kanban/index.js").then((e) => ({ default: e.KanbanWidget }))), ke = u(() => import("./timeline/index.js").then((e) => ({ default: e.TimelineWidget }))), Ae = u(() => import("./kpi-comparison/index.js").then((e) => ({ default: e.KPIComparisonWidget }))), je = u(() => import("./text-widget/index.js").then((e) => ({ default: e.TextWidget }))), Me = u(() => import("./map-widget/index.js").then((e) => ({ default: e.MapWidget }))), Ne = u(() => import("./iframe-widget/index.js").then((e) => ({ default: e.IframeWidget }))), Pe = u(() => import("./custom/index.js").then((e) => ({ default: e.CustomWidget })));
28
- u(() => import("./adaptive-card/index.js").then((e) => ({ default: e.AdaptiveCardWidget })));
29
- var Fe = u(() => import("./form/index.js").then((e) => ({ default: e.FormWidget }))), Ie = u(() => import("./comments/WidgetComments.js").then((e) => ({ default: e.WidgetComments })));
30
- function _(e, t) {
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 v = d(function({ widget: u, children: d, data: _, className: v = "", isLoading: Le, error: Re, onRefresh: y, onDrilldown: ze, actions: b, onAction: x, filterValues: S }) {
34
- let C = r((e) => e.viewMode === "edit"), w = t((e) => e.selectWidget), T = e(u.id), E = n(u.id), D = i(), O = ge(), k = u.dashboardId, A = p(() => {
35
- if (!k) return {};
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 = O.readQuery({
38
+ let e = j.readQuery({
38
39
  query: a,
39
- variables: { id: k }
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
- }, [O, k]), j = p(() => fe(u), [u]), M = j.source.kind !== "DATASINK" || !!j.source.ref || !!j.parserId || !!u.datasetId, { data: N, loading: Be } = o(u.id, {
50
- skip: !M,
51
- pollInterval: (u.refreshInterval ?? 0) * 1e3 || 0
52
- }), P = p(() => {
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
- }, []), F = p(() => {
66
+ }, []), R = m(() => {
62
67
  let e = {};
63
- return P && Object.keys(P).length > 0 && Object.assign(e, P), D && Object.keys(D).length > 0 && Object.assign(e, D), S && Object.keys(S).length > 0 && Object.assign(e, S), e;
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
- P,
66
- D,
67
- S
68
- ]), I = Object.keys(F).length > 0, L = Le ?? (Be && !N) ?? E.isLoading, R = Re ?? E.errorMessage, Ve = s(u.type), z = m(y);
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
- z.current = y;
71
- }, [y]);
72
- let He = f(async () => {
73
- z.current && await z.current();
74
- }, []), { timeUntilRefresh: Ue, isPaused: We } = te({
75
- widgetId: u.id,
76
- refreshInterval: u.refreshInterval,
77
- onRefresh: He,
78
- enabled: !C && !!u.refreshInterval
79
- }), B = m(null), [V, H] = h(!1), [U, Ge] = h(!1), { count: Ke } = ne(u.id, U), qe = f(() => {
80
- H((e) => {
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 && Ge(!0), t;
87
+ return t && Je(!0), t;
83
88
  });
84
- }, []), Je = p(() => {
85
- if (_ && Array.isArray(_)) return _;
86
- let e = u.data;
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
- }, [_, u]), { exportCSV: Ye, exportPNG: Xe } = re(u, {
94
- data: Je,
95
- containerRef: B
96
- }), W = f((e) => {
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" ? W(n) : !0;
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
- }, []), Ze = f((e) => {
108
- if (!I || !e) return e;
112
+ }, []), et = p((e) => {
113
+ if (!z || !e) return e;
109
114
  let t = {}, n = {};
110
- Object.entries(F || {}).forEach(([e, r]) => {
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 = A[t];
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
- I,
240
- F,
241
- u.id,
242
- A
243
- ]), G = p(() => {
244
+ z,
245
+ R,
246
+ d.id,
247
+ N
248
+ ]), K = m(() => {
244
249
  let e = null;
245
- if (_ && W(_)) e = _;
246
- else if (N) {
247
- let t = N;
248
- if (t?.processed && W(t.processed)) e = 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
- W(n) && (e = n);
256
+ G(n) && (e = n);
252
257
  } catch {}
253
258
  } else {
254
- let t = u.data;
255
- if (t?.processed && W(t.processed)) e = 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
- W(n) && (e = n);
263
+ G(n) && (e = n);
259
264
  } catch {}
260
265
  }
261
266
  if (!e) {
262
- let t = u.config?.mockData;
267
+ let t = d.config?.mockData;
263
268
  if (t) try {
264
269
  let n = typeof t == "string" ? JSON.parse(t) : t;
265
- W(n) && (e = n);
270
+ G(n) && (e = n);
266
271
  } catch {}
267
272
  }
268
273
  if (e && typeof e == "object" && !Array.isArray(e)) {
269
- let t = u.config, n = t?.dataKey ?? t?.dataPath ?? t?.seriesPath;
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 && W(t) && (e = t);
277
+ t != null && G(t) && (e = t);
273
278
  }
274
279
  }
275
- return I && e ? Ze(e) : e;
280
+ return z && e ? et(e) : e;
276
281
  }, [
277
- _,
278
- u,
279
- N,
282
+ v,
283
+ d,
280
284
  I,
281
- Ze,
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
- W
284
- ]), K = p(() => G ?? null, [G]), Qe = p(() => !K || M ? !1 : u.config?.mockData != null, [
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 = p(() => $e(u), [u, $e]), et = f((e) => {
291
- if (!u.drilldown?.enabled) return;
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: D || {},
295
- widgetData: K || {},
299
+ globalFilters: A || {},
300
+ widgetData: q || {},
296
301
  metadata: {
297
- widgetId: u.id,
298
- widgetType: u.type,
299
- widgetTitle: u.title
302
+ widgetId: d.id,
303
+ widgetType: d.type,
304
+ widgetTitle: d.title
300
305
  },
301
- sourceDashboardId: u.dashboardId
306
+ sourceDashboardId: d.dashboardId
302
307
  };
303
- q(u.drilldown, t);
308
+ nt(d.drilldown, t);
304
309
  }, [
305
- u,
306
- K,
307
- D,
308
- q
309
- ]), Y = J && !C ? et : void 0, X = m(null), tt = f((e) => {
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
- }, []), nt = f((e) => {
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, C && w(u.id);
327
+ X.current = null, E && D(d.id);
323
328
  }, [
324
- C,
325
- w,
326
- u.id
327
- ]), rt = f((e) => {
328
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), C && w(u.id));
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
- C,
331
- w,
332
- u.id
333
- ]), it = p(() => u.type === "custom" && de(u.config), [u.type, u.config]), at = p(() => u.type === "custom" && ue(u.config), [u.type, u.config]), Z = J && !at, ot = p(() => u.type === "text" ? ae(u.config, K).hasContent : !1, [
334
- u.type,
335
- u.config,
336
- K
337
- ]), st = !L && !R && !K && !it && !ot, Q = p(() => u.renderer, [u]), ct = p(() => Q && Q !== "BIGCONSOLE", [Q]), lt = p(() => ({
338
- widgetId: u.id,
339
- data: K || {}
340
- }), [u.id, K]), $ = f((e, t) => {
341
- if (!x) return;
342
- let n = b?.find((t) => t.name === e.name);
343
- x(n || e, t);
344
- }, [x, b]), ut = f(() => {
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: u,
351
+ widget: d,
347
352
  data: (() => {
348
- if (!K) return K;
349
- if (u.type === "table" || u.type === "pivot_table") {
350
- if (Array.isArray(K)) return K;
351
- if (K && typeof K == "object" && "rows" in K) return K.rows;
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 (u.type === "list") {
354
- if (Array.isArray(K)) return K;
355
- if (K && typeof K == "object" && "items" in K) return K.items;
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 (u.type === "funnel_chart") {
358
- if (Array.isArray(K)) return K;
359
- if (K && typeof K == "object" && "stages" in K) return K.stages;
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 (u.type === "chart") {
362
- if (Array.isArray(K)) return K;
363
- if (K && typeof K == "object" && "datasets" in K) {
364
- let e = K;
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 (u.type === "text") {
374
- let e = ae(u.config, K);
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 (u.type === "custom") {
382
- let e = u.config?.valueField;
383
- if (e && K && typeof K == "object" && !Array.isArray(K)) {
384
- let t = K;
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: u.title,
392
+ label: d.title,
388
393
  data: t
389
394
  };
390
395
  }
391
396
  }
392
- return K;
397
+ return q;
393
398
  })(),
394
399
  onDrilldown: Y
395
400
  };
396
- if (ct) {
401
+ if (ft) {
397
402
  let e = {};
398
- if (G && typeof G == "object" && !Array.isArray(G) && Object.keys(G).length > 0 && (e = { ...G }), u.config?._internalWidgetType === "custom" && Object.keys(e).length > 0) {
399
- let t = u.config?.valueField;
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 || u.title || "",
411
+ description: e.description || d.title || "",
407
412
  text: e.text || r
408
413
  };
409
414
  }
410
415
  }
411
- return /* @__PURE__ */ g(pe, {
412
- widget: u,
416
+ return /* @__PURE__ */ _(pe, {
417
+ widget: d,
413
418
  data: e,
414
- isEditMode: C,
415
- isSelected: T,
416
- isLoading: L,
417
- error: R,
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 (u.type?.toLowerCase() || "") {
423
- case "metric_card": return /* @__PURE__ */ g(ve, { ...e });
424
- case "kpi_card_comparison": return /* @__PURE__ */ g(Ae, { ...e });
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__ */ g(ye, { ...e });
427
- case "table": return /* @__PURE__ */ g(be, { ...e });
428
- case "pivot_table": return /* @__PURE__ */ g(xe, { ...e });
429
- case "gauge": return /* @__PURE__ */ g(Se, { ...e });
430
- case "progress": return /* @__PURE__ */ g(Ce, { ...e });
431
- case "list": return /* @__PURE__ */ g(we, { ...e });
432
- case "heatmap": return /* @__PURE__ */ g(Te, { ...e });
433
- case "retention": return /* @__PURE__ */ g(Ee, { ...e });
434
- case "calendar": return /* @__PURE__ */ g(De, { ...e });
435
- case "timeline": return /* @__PURE__ */ g(ke, { ...e });
436
- case "kanban": return /* @__PURE__ */ g(Oe, { ...e });
437
- case "form": return /* @__PURE__ */ g(Fe, { ...e });
438
- case "text": return /* @__PURE__ */ g(je, { ...e });
439
- case "iframe": return /* @__PURE__ */ g(Ne, { ...e });
440
- case "map": return /* @__PURE__ */ g(Me, { ...e });
441
- case "custom": return /* @__PURE__ */ g(Pe, { ...e });
442
- default: return d || /* @__PURE__ */ g(c, { widgetType: u.type });
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
- ct,
450
- C,
451
- T,
452
- L,
453
- R,
454
+ ft,
455
+ E,
456
+ O,
457
+ B,
458
+ V,
454
459
  $,
455
- G
460
+ K
456
461
  ]);
457
462
  return /* @__PURE__ */ _e("div", {
458
- ref: B,
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
- ${T && C ? "border-[var(--color-action-primary-border)] ring-2 ring-[var(--color-action-primary-border)]/30 shadow-[var(--shadow-elevation-2)]" : "border-[var(--color-border-subtle)] hover:border-action-primary-bg hover:shadow-[var(--shadow-elevation-2)]"}
467
- ${C ? "cursor-pointer" : ""}
468
- ${v}
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: tt,
471
- onClick: nt,
472
- onKeyDown: rt,
473
- tabIndex: C ? 0 : -1,
474
- role: C ? "button" : void 0,
475
- "aria-selected": T,
476
- "aria-label": `Widget: ${u.title}`,
477
- "data-widget-id": u.id,
478
- "data-widget-type": u.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__ */ g(oe, {
481
- widget: u,
482
- definition: Ve,
483
- isSelected: T,
484
- isEditMode: C,
485
- isLoading: L,
486
- isSampleData: Qe,
487
- timeUntilRefresh: u.refreshInterval && !We ? ee(Ue) : void 0,
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: y,
490
- onExportCSV: Je ? Ye : void 0,
491
- onExportPNG: Xe,
495
+ onRefresh: b,
496
+ onExportCSV: Ze ? Qe : void 0,
497
+ onExportPNG: $e,
492
498
  onDrilldown: Y ? () => Y() : void 0,
493
- onToggleComments: qe,
494
- commentsOpen: V,
495
- commentCount: U ? Ke : void 0
499
+ onToggleComments: w ? void 0 : Xe,
500
+ commentsOpen: W,
501
+ commentCount: qe ? Ye : void 0
496
502
  }),
497
- /* @__PURE__ */ g("div", {
503
+ /* @__PURE__ */ _("div", {
498
504
  className: `
499
- flex-1 overflow-hidden p-3 min-h-0 min-w-0 sm:p-4
500
- ${Z && !C ? "cursor-pointer" : ""}
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 && !C ? "Click data to drill down" : void 0,
503
- children: /* @__PURE__ */ g("div", {
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 (L) return /* @__PURE__ */ g(se, {});
507
- if (R) return /* @__PURE__ */ g(ce, {
508
- error: R,
509
- onRetry: y
513
+ if (B) return /* @__PURE__ */ _(se, {});
514
+ if (V) return /* @__PURE__ */ _(ce, {
515
+ error: V,
516
+ onRetry: b
510
517
  });
511
- if (st && !d) return /* @__PURE__ */ g(c, {
512
- widgetType: u.type,
513
- hasDataSource: M,
514
- templateSlot: typeof u.metadata?.templateDataSinkSlot == "string" ? u.metadata.templateDataSinkSlot : null
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 = `${j.source.kind}|${j.source.ref ?? ""}|${j.parserId ?? ""}|${u.updatedAt ?? ""}`;
517
- return /* @__PURE__ */ g(le, {
518
- widgetId: u.id,
519
- widgetType: u.type,
520
- widgetTitle: u.title,
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: d ?? /* @__PURE__ */ g(l, {
523
- fallback: /* @__PURE__ */ g(se, {}),
524
- children: ut()
530
+ children: f ?? /* @__PURE__ */ _(u, {
531
+ fallback: /* @__PURE__ */ _(se, {}),
532
+ children: mt()
525
533
  })
526
534
  });
527
535
  })()
528
536
  })
529
537
  }),
530
- b && b.length > 0 && !L && !R && /* @__PURE__ */ g("div", {
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__ */ g(me, {
534
- actions: b,
535
- context: lt,
536
- onAction: x,
537
- disabled: C,
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 && !C && /* @__PURE__ */ g("div", {
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__ */ g("svg", {
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__ */ g("path", {
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
- V && /* @__PURE__ */ g(l, {
566
+ W && /* @__PURE__ */ _(u, {
559
567
  fallback: null,
560
- children: /* @__PURE__ */ g(Ie, {
561
- widgetId: u.id,
562
- onClose: () => H(!1)
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 { v as default };
577
+ export { y as default };
570
578
 
571
579
  //# sourceMappingURL=WidgetWrapper.js.map