@burdenoff/microfe-bigconsole 2026.1113.1 → 2026.1113.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.
Files changed (40) hide show
  1. package/dist/bigconsole/components/datasink/DataSinkCard.js +60 -58
  2. package/dist/bigconsole/components/widgets/WidgetWrapper.js +123 -121
  3. package/dist/bigconsole/context/BigConsoleContext.d.ts +2 -0
  4. package/dist/bigconsole/context/BigConsoleContext.js +14 -12
  5. package/dist/bigconsole/pages/DashboardViewPage.js +241 -239
  6. package/dist/bigconsole/pages/DashboardsPage.js +265 -262
  7. package/dist/bigconsole/pages/DataSinkViewPage.js +253 -251
  8. package/dist/bigconsole/pages/DataSinksPage.js +162 -160
  9. package/dist/bigconsole/pages/SettingsPage.js +127 -123
  10. package/dist/bigconsole/proactive/actions.d.ts +16 -0
  11. package/dist/bigconsole/proactive/actions.js +34 -0
  12. package/dist/bigconsole/proactive/activityEntity.d.ts +5 -0
  13. package/dist/bigconsole/proactive/activityEntity.js +27 -0
  14. package/dist/bigconsole/proactive/entities.d.ts +16 -0
  15. package/dist/bigconsole/proactive/entities.js +20 -0
  16. package/dist/bigconsole/proactive/index.d.ts +15 -0
  17. package/dist/bigconsole/proactive/index.js +5 -0
  18. package/dist/bigconsole/proactive/routes.d.ts +11 -0
  19. package/dist/bigconsole/proactive/routes.js +6 -0
  20. package/dist/bigconsole/types/index.d.ts +7 -0
  21. package/dist/generated/wspace-operations.js +213 -19
  22. package/dist/node_modules/zod/v4/classic/errors.js +42 -0
  23. package/dist/node_modules/zod/v4/classic/parse.js +5 -0
  24. package/dist/node_modules/zod/v4/classic/schemas.js +622 -0
  25. package/dist/node_modules/zod/v4/core/api.js +427 -0
  26. package/dist/node_modules/zod/v4/core/checks.js +141 -0
  27. package/dist/node_modules/zod/v4/core/core.js +82 -0
  28. package/dist/node_modules/zod/v4/core/doc.js +27 -0
  29. package/dist/node_modules/zod/v4/core/errors.js +88 -0
  30. package/dist/node_modules/zod/v4/core/json-schema-processors.js +190 -0
  31. package/dist/node_modules/zod/v4/core/memoizer.js +186 -0
  32. package/dist/node_modules/zod/v4/core/parse.js +157 -0
  33. package/dist/node_modules/zod/v4/core/regexes.js +32 -0
  34. package/dist/node_modules/zod/v4/core/registries.js +39 -0
  35. package/dist/node_modules/zod/v4/core/schemas.js +856 -0
  36. package/dist/node_modules/zod/v4/core/to-json-schema.js +328 -0
  37. package/dist/node_modules/zod/v4/core/util.js +415 -0
  38. package/dist/node_modules/zod/v4/core/versions.js +7 -0
  39. package/dist/node_modules/zod/v4/locales/en.js +94 -0
  40. package/package.json +8 -4
@@ -26,14 +26,15 @@ import { isUsableWidgetData as Se, resolveWidgetDisplayData as Ce, widgetDataSou
26
26
  import { WidgetRendererFactory as Ee } from "../../renderers/factory/WidgetRendererFactory.js";
27
27
  import { WidgetActions as De } from "./widget-actions/WidgetActions.js";
28
28
  import "./widget-actions/index.js";
29
- import { Suspense as o, lazy as s, memo as c, useCallback as l, useEffect as Oe, useMemo as u, useRef as d, useState as f } from "react";
30
- import { useI18n as ke } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
31
- import { useQuery as Ae } from "@apollo/client/react";
32
- import { jsx as p, jsxs as je } from "react/jsx-runtime";
29
+ import { dashboardSuggestAnchorProps as Oe } from "../../proactive/entities.js";
30
+ import { Suspense as o, lazy as s, memo as c, useCallback as l, useEffect as ke, useMemo as u, useRef as d, useState as f } from "react";
31
+ import { useI18n as Ae } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
32
+ import { useQuery as je } from "@apollo/client/react";
33
+ import { jsx as p, jsxs as Me } from "react/jsx-runtime";
33
34
  // src/bigconsole/components/widgets/WidgetWrapper.tsx
34
- var Me = s(() => import("./metric-card/index.js").then((e) => ({ default: e.MetricCardWidget }))), Ne = s(() => import("./chart/index.js").then((e) => ({ default: e.ChartWidget }))), Pe = s(() => import("./table/index.js").then((e) => ({ default: e.TableWidget }))), Fe = s(() => import("./pivot-table/index.js").then((e) => ({ default: e.PivotTableWidget }))), Ie = s(() => import("./gauge/index.js").then((e) => ({ default: e.GaugeWidget }))), Le = s(() => import("./progress/index.js").then((e) => ({ default: e.ProgressWidget }))), Re = s(() => import("./list/index.js").then((e) => ({ default: e.ListWidget }))), ze = s(() => import("./heatmap/index.js").then((e) => ({ default: e.HeatmapWidget }))), Be = s(() => import("./retention/index.js").then((e) => ({ default: e.RetentionWidget }))), Ve = s(() => import("./calendar/index.js").then((e) => ({ default: e.CalendarWidget }))), He = s(() => import("./kanban/index.js").then((e) => ({ default: e.KanbanWidget }))), Ue = s(() => import("./timeline/index.js").then((e) => ({ default: e.TimelineWidget }))), We = s(() => import("./kpi-comparison/index.js").then((e) => ({ default: e.KPIComparisonWidget }))), Ge = s(() => import("./text-widget/index.js").then((e) => ({ default: e.TextWidget }))), Ke = s(() => import("./map-widget/index.js").then((e) => ({ default: e.MapWidget }))), qe = s(() => import("./iframe-widget/index.js").then((e) => ({ default: e.IframeWidget }))), Je = s(() => import("./custom/index.js").then((e) => ({ default: e.CustomWidget })));
35
+ var Ne = s(() => import("./metric-card/index.js").then((e) => ({ default: e.MetricCardWidget }))), Pe = s(() => import("./chart/index.js").then((e) => ({ default: e.ChartWidget }))), Fe = s(() => import("./table/index.js").then((e) => ({ default: e.TableWidget }))), Ie = s(() => import("./pivot-table/index.js").then((e) => ({ default: e.PivotTableWidget }))), Le = s(() => import("./gauge/index.js").then((e) => ({ default: e.GaugeWidget }))), Re = s(() => import("./progress/index.js").then((e) => ({ default: e.ProgressWidget }))), ze = s(() => import("./list/index.js").then((e) => ({ default: e.ListWidget }))), Be = s(() => import("./heatmap/index.js").then((e) => ({ default: e.HeatmapWidget }))), Ve = s(() => import("./retention/index.js").then((e) => ({ default: e.RetentionWidget }))), He = s(() => import("./calendar/index.js").then((e) => ({ default: e.CalendarWidget }))), Ue = s(() => import("./kanban/index.js").then((e) => ({ default: e.KanbanWidget }))), We = s(() => import("./timeline/index.js").then((e) => ({ default: e.TimelineWidget }))), Ge = s(() => import("./kpi-comparison/index.js").then((e) => ({ default: e.KPIComparisonWidget }))), Ke = s(() => import("./text-widget/index.js").then((e) => ({ default: e.TextWidget }))), qe = s(() => import("./map-widget/index.js").then((e) => ({ default: e.MapWidget }))), Je = s(() => import("./iframe-widget/index.js").then((e) => ({ default: e.IframeWidget }))), Ye = s(() => import("./custom/index.js").then((e) => ({ default: e.CustomWidget })));
35
36
  s(() => import("./adaptive-card/index.js").then((e) => ({ default: e.AdaptiveCardWidget })));
36
- var Ye = s(() => import("./form/index.js").then((e) => ({ default: e.FormWidget }))), Xe = s(() => import("./advanced/AdvancedWidgets.js").then((e) => ({ default: e.SankeyWidget }))), Ze = s(() => import("./advanced/AdvancedWidgets.js").then((e) => ({ default: e.BoxPlotWidget }))), Qe = s(() => import("./advanced/AdvancedWidgets.js").then((e) => ({ default: e.WaterfallWidget }))), $e = s(() => import("./comments/WidgetComments.js").then((e) => ({ default: e.WidgetComments }))), et = /* @__PURE__ */ new Set([
37
+ var Xe = s(() => import("./form/index.js").then((e) => ({ default: e.FormWidget }))), Ze = s(() => import("./advanced/AdvancedWidgets.js").then((e) => ({ default: e.SankeyWidget }))), Qe = s(() => import("./advanced/AdvancedWidgets.js").then((e) => ({ default: e.BoxPlotWidget }))), $e = s(() => import("./advanced/AdvancedWidgets.js").then((e) => ({ default: e.WaterfallWidget }))), et = s(() => import("./comments/WidgetComments.js").then((e) => ({ default: e.WidgetComments }))), tt = /* @__PURE__ */ new Set([
37
38
  "text",
38
39
  "iframe",
39
40
  "form",
@@ -42,15 +43,15 @@ var Ye = s(() => import("./form/index.js").then((e) => ({ default: e.FormWidget
42
43
  function m(e, t) {
43
44
  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) && e.narrativeOpen === t.narrativeOpen && e.narrativePanel === t.narrativePanel;
44
45
  }
45
- var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoading: tt, error: nt, onRefresh: g, onDrilldown: rt, actions: _, onAction: v, filterValues: y, onToggleNarrative: it, narrativeOpen: at = !1, narrativePanel: ot, previewOnly: b = !1 }) {
46
- let x = ue(), st = r((e) => e.viewMode === "edit"), S = !b && st, C = t((e) => e.selectWidget), w = e(s.id), ct = n(s.id), T = ee(), { t: lt } = ke(), E = s.dashboardId, { data: ut } = Ae(ne, {
47
- variables: { id: E ?? "" },
48
- skip: !E,
46
+ var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoading: nt, error: rt, onRefresh: g, onDrilldown: it, actions: _, onAction: v, filterValues: y, onToggleNarrative: at, narrativeOpen: ot = !1, narrativePanel: st, previewOnly: b = !1 }) {
47
+ let x = ue(), ct = r((e) => e.viewMode === "edit"), S = !b && ct, C = t((e) => e.selectWidget), w = e(s.id), lt = n(s.id), T = ee(), { t: ut } = Ae(), dt = s.dashboardId, { data: ft } = je(ne, {
48
+ variables: { id: dt ?? "" },
49
+ skip: !dt,
49
50
  fetchPolicy: "cache-only"
50
- }), D = ut?.getDashboard?.globalFilters, O = u(() => _e(D), [D]), k = u(() => Object.fromEntries(Object.entries(O).map(([e, t]) => [e, t.field])), [O]), A = u(() => ge(s), [s]), { hasDataSource: dt, allowSamples: ft, mockSource: pt } = we(s, A), { data: j, loading: mt, error: ht } = te(s.id, {
51
- skip: b || !dt,
51
+ }), E = ft?.getDashboard?.globalFilters, D = u(() => _e(E), [E]), O = u(() => Object.fromEntries(Object.entries(D).map(([e, t]) => [e, t.field])), [D]), k = u(() => ge(s), [s]), { hasDataSource: pt, allowSamples: A, mockSource: j } = we(s, k), { data: M, loading: mt, error: ht } = te(s.id, {
52
+ skip: b || !pt,
52
53
  pollInterval: (s.refreshInterval ?? 0) * 1e3 || 0
53
- }), M = u(() => {
54
+ }), N = u(() => {
54
55
  if (typeof window > "u") return {};
55
56
  let e = new URLSearchParams(window.location.search), t = {};
56
57
  return e.forEach((e, n) => {
@@ -59,40 +60,40 @@ var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoadi
59
60
  r.startsWith("__") || (t[r] = e);
60
61
  }
61
62
  }), t;
62
- }, []), N = u(() => {
63
+ }, []), P = u(() => {
63
64
  let e = {};
64
- return M && Object.keys(M).length > 0 && Object.assign(e, M), T && Object.keys(T).length > 0 && Object.assign(e, T), y && Object.keys(y).length > 0 && Object.assign(e, y), e;
65
+ return N && Object.keys(N).length > 0 && Object.assign(e, N), T && Object.keys(T).length > 0 && Object.assign(e, T), y && Object.keys(y).length > 0 && Object.assign(e, y), e;
65
66
  }, [
66
- M,
67
+ N,
67
68
  T,
68
69
  y
69
- ]), P = Object.keys(N).length > 0, F = tt ?? (mt && !j) ?? ct.isLoading, I = nt ?? ht?.message ?? ct.errorMessage, gt = ce(s.type), L = d(g);
70
- Oe(() => {
70
+ ]), gt = Object.keys(P).length > 0, F = nt ?? (mt && !M) ?? lt.isLoading, I = rt ?? ht?.message ?? lt.errorMessage, _t = ce(s.type), L = d(g);
71
+ ke(() => {
71
72
  L.current = g;
72
73
  }, [g]);
73
- let _t = l(async () => {
74
+ let vt = l(async () => {
74
75
  L.current && await L.current();
75
- }, []), { timeUntilRefresh: vt, isPaused: yt } = ie({
76
+ }, []), { timeUntilRefresh: yt, isPaused: bt } = ie({
76
77
  widgetId: s.id,
77
78
  refreshInterval: s.refreshInterval,
78
- onRefresh: _t,
79
+ onRefresh: vt,
79
80
  enabled: !b && !S && !!s.refreshInterval
80
- }), R = d(null), [z, B] = f(!1), [V, bt] = f(!1), { count: xt } = ae(s.id, V), St = l(() => {
81
- bt(!0), B((e) => !e);
81
+ }), R = d(null), [z, B] = f(!1), [V, xt] = f(!1), { count: St } = ae(s.id, V), Ct = l(() => {
82
+ xt(!0), B((e) => !e);
82
83
  }, []), H = u(() => Ce({
83
84
  explicit: m,
84
- fetched: j,
85
+ fetched: M,
85
86
  persisted: s.data,
86
87
  config: s.config,
87
- allowSamples: ft,
88
- mockSource: pt,
88
+ allowSamples: A,
89
+ mockSource: j,
89
90
  widgetType: s.type
90
91
  }), [
91
92
  m,
92
- j,
93
+ M,
93
94
  s,
94
- ft,
95
- pt
95
+ A,
96
+ j
96
97
  ]), U = u(() => {
97
98
  let e = H.data;
98
99
  if (e && typeof e == "object" && !Array.isArray(e)) {
@@ -103,20 +104,20 @@ var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoadi
103
104
  }
104
105
  }
105
106
  return e;
106
- }, [H, s.config]), W = u(() => P ? ye(U, {
107
- filterValues: N,
108
- filterFieldMap: k,
107
+ }, [H, s.config]), W = u(() => gt ? ye(U, {
108
+ filterValues: P,
109
+ filterFieldMap: O,
109
110
  widgetType: s.type
110
111
  }) : U, [
111
112
  U,
113
+ gt,
112
114
  P,
113
- N,
114
- k,
115
+ O,
115
116
  s.type
116
- ]), Ct = W !== null && H.isSample, G = u(() => et.has(s.type) ? [] : ve(U, O, N, s.type), [
117
+ ]), wt = W !== null && H.isSample, G = u(() => tt.has(s.type) ? [] : ve(U, D, P, s.type), [
117
118
  U,
118
- O,
119
- N,
119
+ D,
120
+ P,
120
121
  s.type
121
122
  ]), K = u(() => Te(W, s.type), [W, s.type]), q = u(() => {
122
123
  let e = s.config;
@@ -124,12 +125,12 @@ var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoadi
124
125
  xAxisKey: typeof e?.xAxisKey == "string" ? e.xAxisKey : void 0,
125
126
  selectedFields: Array.isArray(e?.selectedFields) ? e.selectedFields.filter((e) => typeof e == "string") : void 0
126
127
  });
127
- }, [W, s.config]), [wt, Tt] = f(!1), { exportCSV: Et, exportPNG: Dt } = oe(s, {
128
+ }, [W, s.config]), [Tt, J] = f(!1), { exportCSV: Et, exportPNG: Dt } = oe(s, {
128
129
  data: K,
129
130
  containerRef: R
130
131
  }), { executeDrilldown: Ot, canDrilldown: kt } = se({ onDrilldown: (e, t) => {
131
- rt?.(e);
132
- } }), J = u(() => kt(s), [s, kt]), At = l((e) => {
132
+ it?.(e);
133
+ } }), Y = u(() => kt(s), [s, kt]), At = l((e) => {
133
134
  if (!s.drilldown?.enabled) return;
134
135
  let t = {
135
136
  selectedData: e || {},
@@ -148,20 +149,20 @@ var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoadi
148
149
  W,
149
150
  T,
150
151
  Ot
151
- ]), Y = J && !S ? At : void 0, X = d(null), jt = l((e) => {
152
- X.current = {
152
+ ]), X = Y && !S ? At : void 0, Z = d(null), jt = l((e) => {
153
+ Z.current = {
153
154
  x: e.clientX,
154
155
  y: e.clientY
155
156
  };
156
157
  }, []), Mt = l((e) => {
157
- if (e.stopPropagation(), X.current) {
158
- let t = Math.abs(e.clientX - X.current.x), n = Math.abs(e.clientY - X.current.y);
158
+ if (e.stopPropagation(), Z.current) {
159
+ let t = Math.abs(e.clientX - Z.current.x), n = Math.abs(e.clientY - Z.current.y);
159
160
  if (t > 5 || n > 5) {
160
- X.current = null;
161
+ Z.current = null;
161
162
  return;
162
163
  }
163
164
  }
164
- X.current = null, S && C(s.id);
165
+ Z.current = null, S && C(s.id);
165
166
  }, [
166
167
  S,
167
168
  C,
@@ -172,18 +173,18 @@ var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoadi
172
173
  S,
173
174
  C,
174
175
  s.id
175
- ]), Pt = u(() => s.type === "custom" && he(s.config), [s.type, s.config]), Ft = u(() => s.type === "custom" && me(s.config), [s.type, s.config]), Z = J && !Ft, It = u(() => s.type === "text" && i(s.config, W).hasContent, [
176
+ ]), Pt = u(() => s.type === "custom" && he(s.config), [s.type, s.config]), Ft = u(() => s.type === "custom" && me(s.config), [s.type, s.config]), Q = Y && !Ft, It = u(() => s.type === "text" && i(s.config, W).hasContent, [
176
177
  s.type,
177
178
  s.config,
178
179
  W
179
- ]), Lt = !F && !I && !W && !Pt && !It, Q = u(() => s.renderer, [s]), Rt = u(() => Q && Q !== "BIGCONSOLE", [Q]), zt = u(() => ({
180
+ ]), Lt = !F && !I && !W && !Pt && !It, $ = u(() => s.renderer, [s]), Rt = u(() => $ && $ !== "BIGCONSOLE", [$]), zt = u(() => ({
180
181
  widgetId: s.id,
181
182
  data: W || {}
182
- }), [s.id, W]), $ = l((e, t) => {
183
+ }), [s.id, W]), Bt = l((e, t) => {
183
184
  if (!v) return;
184
185
  let n = _?.find((t) => t.name === e.name);
185
186
  v(n || e, t);
186
- }, [v, _]), Bt = l(() => {
187
+ }, [v, _]), Vt = l(() => {
187
188
  let e = (() => {
188
189
  if (!W) return W;
189
190
  if (s.type === "pivot_table") {
@@ -232,7 +233,7 @@ var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoadi
232
233
  return W;
233
234
  })(), t = {
234
235
  widget: s,
235
- onDrilldown: Y
236
+ onDrilldown: X
236
237
  };
237
238
  if (Rt) {
238
239
  let e = {};
@@ -256,93 +257,93 @@ var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoadi
256
257
  isSelected: w,
257
258
  isLoading: F,
258
259
  error: I,
259
- onDrilldown: Y,
260
- onAction: $
260
+ onDrilldown: X,
261
+ onAction: Bt
261
262
  });
262
263
  }
263
264
  switch (s.type?.toLowerCase() || "") {
264
- case "metric_card": return /* @__PURE__ */ p(Me, {
265
+ case "metric_card": return /* @__PURE__ */ p(Ne, {
265
266
  ...t,
266
267
  data: e
267
268
  });
268
- case "kpi_card_comparison": return /* @__PURE__ */ p(We, {
269
+ case "kpi_card_comparison": return /* @__PURE__ */ p(Ge, {
269
270
  ...t,
270
271
  data: e
271
272
  });
272
273
  case "chart":
273
- case "funnel_chart": return /* @__PURE__ */ p(Ne, {
274
+ case "funnel_chart": return /* @__PURE__ */ p(Pe, {
274
275
  ...t,
275
276
  data: e
276
277
  });
277
- case "waterfall": return /* @__PURE__ */ p(Qe, {
278
+ case "waterfall": return /* @__PURE__ */ p($e, {
278
279
  ...t,
279
280
  data: e
280
281
  });
281
- case "sankey": return /* @__PURE__ */ p(Xe, {
282
+ case "sankey": return /* @__PURE__ */ p(Ze, {
282
283
  ...t,
283
284
  data: e
284
285
  });
285
- case "box_plot": return /* @__PURE__ */ p(Ze, {
286
+ case "box_plot": return /* @__PURE__ */ p(Qe, {
286
287
  ...t,
287
288
  data: e
288
289
  });
289
- case "table": return /* @__PURE__ */ p(Pe, {
290
+ case "table": return /* @__PURE__ */ p(Fe, {
290
291
  ...t,
291
292
  data: e
292
293
  });
293
- case "pivot_table": return /* @__PURE__ */ p(Fe, {
294
+ case "pivot_table": return /* @__PURE__ */ p(Ie, {
294
295
  ...t,
295
296
  data: e
296
297
  });
297
- case "gauge": return /* @__PURE__ */ p(Ie, {
298
+ case "gauge": return /* @__PURE__ */ p(Le, {
298
299
  ...t,
299
300
  data: e
300
301
  });
301
- case "progress": return /* @__PURE__ */ p(Le, {
302
+ case "progress": return /* @__PURE__ */ p(Re, {
302
303
  ...t,
303
304
  data: e
304
305
  });
305
- case "list": return /* @__PURE__ */ p(Re, {
306
+ case "list": return /* @__PURE__ */ p(ze, {
306
307
  ...t,
307
308
  data: e
308
309
  });
309
- case "heatmap": return /* @__PURE__ */ p(ze, {
310
+ case "heatmap": return /* @__PURE__ */ p(Be, {
310
311
  ...t,
311
312
  data: e
312
313
  });
313
- case "retention": return /* @__PURE__ */ p(Be, {
314
+ case "retention": return /* @__PURE__ */ p(Ve, {
314
315
  ...t,
315
316
  data: e
316
317
  });
317
- case "calendar": return /* @__PURE__ */ p(Ve, {
318
+ case "calendar": return /* @__PURE__ */ p(He, {
318
319
  ...t,
319
320
  data: e
320
321
  });
321
- case "timeline": return /* @__PURE__ */ p(Ue, {
322
+ case "timeline": return /* @__PURE__ */ p(We, {
322
323
  ...t,
323
324
  data: e
324
325
  });
325
- case "kanban": return /* @__PURE__ */ p(He, {
326
+ case "kanban": return /* @__PURE__ */ p(Ue, {
326
327
  ...t,
327
328
  data: e
328
329
  });
329
- case "form": return /* @__PURE__ */ p(Ye, {
330
+ case "form": return /* @__PURE__ */ p(Xe, {
330
331
  ...t,
331
332
  data: e
332
333
  });
333
- case "text": return /* @__PURE__ */ p(Ge, {
334
+ case "text": return /* @__PURE__ */ p(Ke, {
334
335
  ...t,
335
336
  data: e
336
337
  });
337
- case "iframe": return /* @__PURE__ */ p(qe, {
338
+ case "iframe": return /* @__PURE__ */ p(Je, {
338
339
  ...t,
339
340
  data: e
340
341
  });
341
- case "map": return /* @__PURE__ */ p(Ke, {
342
+ case "map": return /* @__PURE__ */ p(qe, {
342
343
  ...t,
343
344
  data: e
344
345
  });
345
- case "custom": return /* @__PURE__ */ p(Je, {
346
+ case "custom": return /* @__PURE__ */ p(Ye, {
346
347
  ...t,
347
348
  data: e
348
349
  });
@@ -352,16 +353,41 @@ var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoadi
352
353
  s,
353
354
  W,
354
355
  c,
355
- Y,
356
+ X,
356
357
  Rt,
357
358
  S,
358
359
  w,
359
360
  F,
360
361
  I,
361
- $
362
- ]);
363
- return /* @__PURE__ */ je("div", {
362
+ Bt
363
+ ]), Ht = () => {
364
+ if (F) return /* @__PURE__ */ p(de, {});
365
+ if (I) return /* @__PURE__ */ p(fe, {
366
+ error: I,
367
+ onRetry: g
368
+ });
369
+ if (Lt && !c) return /* @__PURE__ */ p(a, {
370
+ widgetType: s.type,
371
+ hideEditHint: b,
372
+ hasDataSource: pt,
373
+ compact: (s.position?.height ?? s.positionHeight ?? 4) <= 2,
374
+ templateSlot: typeof s.metadata?.templateDataSinkSlot == "string" ? s.metadata.templateDataSinkSlot : null
375
+ });
376
+ let e = `${k.source.kind}|${k.source.ref ?? ""}|${k.parserId ?? ""}|${s.updatedAt ?? ""}`;
377
+ return /* @__PURE__ */ p(pe, {
378
+ widgetId: s.id,
379
+ widgetType: s.type,
380
+ widgetTitle: s.title,
381
+ resetKey: e,
382
+ children: c ?? /* @__PURE__ */ p(o, {
383
+ fallback: /* @__PURE__ */ p(de, {}),
384
+ children: Vt()
385
+ })
386
+ });
387
+ };
388
+ return /* @__PURE__ */ Me("div", {
364
389
  ref: R,
390
+ ...b ? {} : Oe(s.dashboardId, s.id),
365
391
  className: `
366
392
  group relative flex flex-col
367
393
  h-full w-full min-w-0
@@ -386,30 +412,30 @@ var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoadi
386
412
  /* @__PURE__ */ p(le, {
387
413
  widget: s,
388
414
  previewOnly: b,
389
- definition: gt,
415
+ definition: _t,
390
416
  isSelected: w,
391
417
  isEditMode: S,
392
418
  isLoading: F,
393
- isSampleData: Ct,
394
- timeUntilRefresh: s.refreshInterval && !yt ? re(vt) : void 0,
395
- hasDrilldown: J,
419
+ isSampleData: wt,
420
+ timeUntilRefresh: s.refreshInterval && !bt ? re(yt) : void 0,
421
+ hasDrilldown: Y,
396
422
  onRefresh: g,
397
423
  onExportCSV: K ? Et : void 0,
398
424
  onExportPNG: Dt,
399
- onDrilldown: Y ? () => Y() : void 0,
400
- onToggleComments: b ? void 0 : St,
425
+ onDrilldown: X ? () => X() : void 0,
426
+ onToggleComments: b ? void 0 : Ct,
401
427
  commentsOpen: z,
402
- commentCount: V ? xt : void 0,
403
- onExplain: b ? void 0 : it,
404
- explainOpen: at,
405
- onSpotOutliers: q.length > 0 ? () => Tt(!0) : void 0
428
+ commentCount: V ? St : void 0,
429
+ onExplain: b ? void 0 : at,
430
+ explainOpen: ot,
431
+ onSpotOutliers: q.length > 0 ? () => J(!0) : void 0
406
432
  }),
407
- at && ot,
433
+ ot && st,
408
434
  G.length > 0 && /* @__PURE__ */ p("div", {
409
435
  role: "status",
410
436
  "data-testid": "widget-filter-not-applicable",
411
437
  className: "mx-3 mt-2 rounded bg-status-warning-bg-subtle px-2 py-1 text-xs text-status-warning-text",
412
- children: G.map((e) => lt("bigconsole.widget.filterNotApplicable", "Filter '{{name}}' does not apply to this widget (no field '{{field}}')", {
438
+ children: G.map((e) => ut("bigconsole.widget.filterNotApplicable", "Filter '{{name}}' does not apply to this widget (no field '{{field}}')", {
413
439
  name: e.name,
414
440
  field: e.field
415
441
  })).join(" ")
@@ -418,36 +444,12 @@ var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoadi
418
444
  className: `
419
445
  flex-1 overflow-hidden min-h-0 min-w-0
420
446
  ${x.compactMode ? "p-2" : "p-3 sm:p-4"}
421
- ${Z && !S ? "cursor-pointer" : ""}
447
+ ${Q && !S ? "cursor-pointer" : ""}
422
448
  `,
423
- title: Z && !S ? "Click data to drill down" : void 0,
449
+ title: Q && !S ? "Click data to drill down" : void 0,
424
450
  children: /* @__PURE__ */ p("div", {
425
451
  className: "h-full min-w-0 overflow-auto",
426
- children: (() => {
427
- if (F) return /* @__PURE__ */ p(de, {});
428
- if (I) return /* @__PURE__ */ p(fe, {
429
- error: I,
430
- onRetry: g
431
- });
432
- if (Lt && !c) return /* @__PURE__ */ p(a, {
433
- widgetType: s.type,
434
- hideEditHint: b,
435
- hasDataSource: dt,
436
- compact: (s.position?.height ?? s.positionHeight ?? 4) <= 2,
437
- templateSlot: typeof s.metadata?.templateDataSinkSlot == "string" ? s.metadata.templateDataSinkSlot : null
438
- });
439
- let e = `${A.source.kind}|${A.source.ref ?? ""}|${A.parserId ?? ""}|${s.updatedAt ?? ""}`;
440
- return /* @__PURE__ */ p(pe, {
441
- widgetId: s.id,
442
- widgetType: s.type,
443
- widgetTitle: s.title,
444
- resetKey: e,
445
- children: c ?? /* @__PURE__ */ p(o, {
446
- fallback: /* @__PURE__ */ p(de, {}),
447
- children: Bt()
448
- })
449
- });
450
- })()
452
+ children: Ht()
451
453
  })
452
454
  }),
453
455
  _ && _.length > 0 && !F && !I && /* @__PURE__ */ p("div", {
@@ -462,7 +464,7 @@ var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoadi
462
464
  size: "sm"
463
465
  })
464
466
  }),
465
- Z && !S && /* @__PURE__ */ p("div", {
467
+ Q && !S && /* @__PURE__ */ p("div", {
466
468
  className: "\n absolute bottom-2 right-2\n opacity-0 group-hover:opacity-100\n transition-opacity duration-200\n ",
467
469
  title: "Click to drill down",
468
470
  children: /* @__PURE__ */ p("svg", {
@@ -480,14 +482,14 @@ var h = c(function({ widget: s, children: c, data: m, className: h = "", isLoadi
480
482
  }),
481
483
  z && /* @__PURE__ */ p(o, {
482
484
  fallback: null,
483
- children: /* @__PURE__ */ p($e, {
485
+ children: /* @__PURE__ */ p(et, {
484
486
  widgetId: s.id,
485
487
  onClose: () => B(!1)
486
488
  })
487
489
  }),
488
490
  /* @__PURE__ */ p(xe, {
489
- open: wt,
490
- onClose: () => Tt(!1),
491
+ open: Tt,
492
+ onClose: () => J(!1),
491
493
  widgetTitle: s.title,
492
494
  series: q
493
495
  })
@@ -11,6 +11,8 @@ interface BigConsoleContextValue {
11
11
  /** Exact https origins iframe widgets may embed; empty means any https origin. */
12
12
  iframeAllowedOrigins: readonly string[];
13
13
  dashboardOnly: boolean;
14
+ /** The host's settings section for the Settings page (BOFF-13168). */
15
+ settingsExtension?: ReactNode;
14
16
  }
15
17
  interface BigConsoleProviderProps {
16
18
  children: ReactNode;
@@ -10,36 +10,38 @@ function o(e) {
10
10
  }
11
11
  var s = e(null);
12
12
  function c({ children: e, props: n }) {
13
- let { basePath: c = "", navigate: l, currentUser: u, workspaceId: d, tenantId: f, apiGatewayUrl: p, authToken: m, iframeAllowedOrigins: h } = n, g = JSON.stringify(h ?? a), _ = r(() => o(g), [g]), v = c.endsWith("/") ? c.slice(0, -1) : c, y = t((e) => {
14
- if (!v || v === "/" || e.startsWith(v)) {
13
+ let { basePath: c = "", navigate: l, currentUser: u, workspaceId: d, tenantId: f, apiGatewayUrl: p, authToken: m, iframeAllowedOrigins: h, settingsExtension: g } = n, _ = JSON.stringify(h ?? a), v = r(() => o(_), [_]), y = c.endsWith("/") ? c.slice(0, -1) : c, b = t((e) => {
14
+ if (!y || y === "/" || e.startsWith(y)) {
15
15
  l(e);
16
16
  return;
17
17
  }
18
- let t = e.startsWith("/") ? `${v}${e}` : `${v}/${e}`;
18
+ let t = e.startsWith("/") ? `${y}${e}` : `${y}/${e}`;
19
19
  l(t);
20
- }, [v, l]), b = r(() => ({
21
- basePath: v,
22
- navigate: y,
20
+ }, [y, l]), x = r(() => ({
21
+ basePath: y,
22
+ navigate: b,
23
23
  currentUser: u,
24
24
  workspaceId: d,
25
25
  tenantId: f,
26
26
  apiGatewayUrl: p || "",
27
27
  authToken: m || "",
28
- iframeAllowedOrigins: _,
29
- dashboardOnly: n.dashboardOnly ?? !1
28
+ iframeAllowedOrigins: v,
29
+ dashboardOnly: n.dashboardOnly ?? !1,
30
+ settingsExtension: g
30
31
  }), [
31
- v,
32
32
  y,
33
+ b,
33
34
  u,
34
35
  d,
35
36
  f,
36
37
  p,
37
38
  m,
38
- _,
39
- n.dashboardOnly
39
+ v,
40
+ n.dashboardOnly,
41
+ g
40
42
  ]);
41
43
  return /* @__PURE__ */ i(s.Provider, {
42
- value: b,
44
+ value: x,
43
45
  children: e
44
46
  });
45
47
  }