@burdenoff/microfe-bigconsole 2026.1123.7 → 2026.1124.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 (109) hide show
  1. package/dist/bigconsole/asof/AsOfControl.js +2 -2
  2. package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
  3. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
  4. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
  5. package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
  6. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
  7. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
  8. package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
  9. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
  10. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
  11. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
  12. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
  13. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
  14. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
  15. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
  16. package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
  17. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
  18. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
  19. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
  20. package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
  21. package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
  22. package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
  23. package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
  24. package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
  25. package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
  26. package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
  27. package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
  28. package/dist/bigconsole/components/fleet/FleetChildrenPanel.d.ts +4 -0
  29. package/dist/bigconsole/components/fleet/FleetChildrenPanel.js +174 -184
  30. package/dist/bigconsole/components/fleet/FleetCopySection.d.ts +13 -0
  31. package/dist/bigconsole/components/fleet/FleetCopySection.js +266 -0
  32. package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
  33. package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
  34. package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
  35. package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
  36. package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
  37. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
  38. package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
  39. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
  40. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
  41. package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
  42. package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
  43. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
  44. package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
  45. package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
  46. package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
  47. package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
  48. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
  49. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
  50. package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
  51. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
  52. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
  53. package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
  54. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
  55. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
  56. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
  57. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
  58. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
  59. package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
  60. package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
  61. package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
  62. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
  63. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
  64. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
  65. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
  66. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
  67. package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
  68. package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
  69. package/dist/bigconsole/hooks/useFleetBreadcrumb.d.ts +8 -1
  70. package/dist/bigconsole/hooks/useFleetBreadcrumb.js +4 -1
  71. package/dist/bigconsole/hooks/useFleetChildren.d.ts +2 -0
  72. package/dist/bigconsole/hooks/useFleetChildren.js +10 -6
  73. package/dist/bigconsole/hooks/useFleetCopyActions.d.ts +23 -0
  74. package/dist/bigconsole/hooks/useFleetCopyActions.js +74 -0
  75. package/dist/bigconsole/hooks/useFleetFlags.d.ts +16 -0
  76. package/dist/bigconsole/hooks/useFleetFlags.js +79 -0
  77. package/dist/bigconsole/hooks/useOwnerBoundRun.d.ts +33 -0
  78. package/dist/bigconsole/hooks/useOwnerBoundRun.js +41 -0
  79. package/dist/bigconsole/pages/AdminPage.js +147 -146
  80. package/dist/bigconsole/pages/DashboardViewPage.js +292 -287
  81. package/dist/bigconsole/pages/DashboardsPage.js +647 -864
  82. package/dist/bigconsole/pages/DataParsersPage.js +5 -0
  83. package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
  84. package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
  85. package/dist/bigconsole/pages/DataSinksPage.js +210 -186
  86. package/dist/bigconsole/pages/InsightsPage.js +386 -383
  87. package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
  88. package/dist/bigconsole/pages/ParserViewPage.js +2 -0
  89. package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
  90. package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
  91. package/dist/bigconsole/pages/PipelinesPage.js +198 -165
  92. package/dist/bigconsole/pages/SettingsPage.js +160 -160
  93. package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
  94. package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
  95. package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
  96. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
  97. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
  98. package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
  99. package/dist/bigconsole/utils/dashboardGallery.js +93 -0
  100. package/dist/bigconsole/utils/fleetFlags.d.ts +22 -0
  101. package/dist/bigconsole/utils/fleetFlags.js +40 -0
  102. package/dist/bigconsole/utils/fleetTree.d.ts +9 -0
  103. package/dist/bigconsole/utils/fleetTree.js +5 -1
  104. package/dist/bigconsole/utils/statusTone.d.ts +17 -0
  105. package/dist/bigconsole/utils/statusTone.js +44 -0
  106. package/dist/generated/wspace-operations.d.ts +101 -0
  107. package/dist/generated/wspace-operations.js +609 -90
  108. package/dist/generated/wspace-types.js +6 -4
  109. package/package.json +4 -4
@@ -3,77 +3,77 @@ import { SECTION_FOCUS_RING as t } from "../common/sectionStyles.js";
3
3
  import { linkableWorkflowsForSink as n } from "../../utils/sinkWorkflowLink.js";
4
4
  import "../common/index.js";
5
5
  import { useMemo as r, useState as i } from "react";
6
- import { Button as a } from "@burdenoff/fe-libs/ui";
7
- import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
+ import { Button as a, ThemedSelect as o } from "@burdenoff/fe-libs/ui";
7
+ import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
9
  // src/bigconsole/components/datasink/SinkWorkflowLinkForm.tsx
10
- function l({ dataSinkKey: l, workflowLinks: u, onLinked: d, onCancel: f }) {
11
- let { t: p } = o(), { workflows: m, loading: h, error: g, linkDataSink: _ } = e(), [v, y] = i(""), [b, x] = i(!1), [S, C] = i(null), w = r(() => n(m, u), [m, u]), T = async (e) => {
12
- if (e.preventDefault(), w.some((e) => e.id === v) && !b) {
13
- x(!0), C(null);
10
+ function u({ dataSinkKey: u, workflowLinks: d, onLinked: f, onCancel: p }) {
11
+ let { t: m } = s(), { workflows: h, loading: g, error: _, linkDataSink: v } = e(), [y, b] = i(""), [x, S] = i(!1), [C, w] = i(null), T = r(() => n(h, d), [h, d]), E = async (e) => {
12
+ if (e.preventDefault(), T.some((e) => e.id === y) && !x) {
13
+ S(!0), w(null);
14
14
  try {
15
- if (!await _(v, { dataSinkKey: l })) {
16
- C(p("bigconsole.dataSinks.view.linkWorkflow.saveError", "The workflow could not be linked. Try again."));
15
+ if (!await v(y, { dataSinkKey: u })) {
16
+ w(m("bigconsole.dataSinks.view.linkWorkflow.saveError", "The workflow could not be linked. Try again."));
17
17
  return;
18
18
  }
19
- await d();
19
+ await f();
20
20
  } finally {
21
- x(!1);
21
+ S(!1);
22
22
  }
23
23
  }
24
- }, E = `w-full min-w-0 rounded-input border border-[var(--color-border-subtle)] bg-bg-canvas px-3 py-2 text-sm text-text-primary ${t}`;
25
- return /* @__PURE__ */ c("form", {
26
- onSubmit: T,
24
+ }, D = `w-full min-w-0 rounded-input border border-[var(--color-border-subtle)] bg-bg-canvas px-3 py-2 text-sm text-text-primary ${t}`;
25
+ return /* @__PURE__ */ l("form", {
26
+ onSubmit: E,
27
27
  className: "mb-form-gap flex min-w-0 flex-col gap-form-gap rounded-card border border-[var(--color-border-subtle)] bg-bg-sunken p-3",
28
28
  "data-testid": "sink-workflow-link-form",
29
29
  children: [
30
- /* @__PURE__ */ c("label", {
30
+ /* @__PURE__ */ l("label", {
31
31
  className: "block text-sm font-medium text-text-primary",
32
- children: [p("bigconsole.dataSinks.view.linkWorkflow.workflowLabel", "Workflow"), /* @__PURE__ */ c("select", {
33
- value: v,
34
- onChange: (e) => y(e.target.value),
35
- disabled: h || b,
32
+ children: [m("bigconsole.dataSinks.view.linkWorkflow.workflowLabel", "Workflow"), /* @__PURE__ */ l(o, {
33
+ value: y,
34
+ onChange: (e) => b(e.target.value),
35
+ disabled: g || x,
36
36
  required: !0,
37
- className: E,
38
- children: [/* @__PURE__ */ s("option", {
37
+ className: D,
38
+ children: [/* @__PURE__ */ c("option", {
39
39
  value: "",
40
- children: p("bigconsole.dataSinks.view.linkWorkflow.select", "Select a workflow")
41
- }), w.map((e) => /* @__PURE__ */ s("option", {
40
+ children: m("bigconsole.dataSinks.view.linkWorkflow.select", "Select a workflow")
41
+ }), T.map((e) => /* @__PURE__ */ c("option", {
42
42
  value: e.id,
43
43
  children: e.name || e.key
44
44
  }, e.id))]
45
45
  })]
46
46
  }),
47
- /* @__PURE__ */ s("p", {
47
+ /* @__PURE__ */ c("p", {
48
48
  className: "text-xs text-text-secondary",
49
- children: p("bigconsole.dataSinks.view.linkWorkflow.help", "The workflow will deliver its output into this sink’s key ({{key}}).", { key: l })
49
+ children: m("bigconsole.dataSinks.view.linkWorkflow.help", "The workflow will deliver its output into this sink’s key ({{key}}).", { key: u })
50
50
  }),
51
- !h && !g && w.length === 0 && /* @__PURE__ */ s("p", {
51
+ !g && !_ && T.length === 0 && /* @__PURE__ */ c("p", {
52
52
  className: "text-sm text-text-secondary",
53
- children: p("bigconsole.dataSinks.view.linkWorkflow.noAvailable", "Every workflow in this workspace is already linked to this sink, or there are none yet.")
53
+ children: m("bigconsole.dataSinks.view.linkWorkflow.noAvailable", "Every workflow in this workspace is already linked to this sink, or there are none yet.")
54
54
  }),
55
- (g || S) && /* @__PURE__ */ s("p", {
55
+ (_ || C) && /* @__PURE__ */ c("p", {
56
56
  role: "alert",
57
57
  className: "text-sm text-status-error-text",
58
- children: S || p("bigconsole.dataSinks.view.linkWorkflow.loadError", "Workflows could not be loaded. Close and reopen the form to retry.")
58
+ children: C || m("bigconsole.dataSinks.view.linkWorkflow.loadError", "Workflows could not be loaded. Close and reopen the form to retry.")
59
59
  }),
60
- /* @__PURE__ */ c("div", {
60
+ /* @__PURE__ */ l("div", {
61
61
  className: "flex flex-wrap gap-2",
62
- children: [/* @__PURE__ */ s(a, {
62
+ children: [/* @__PURE__ */ c(a, {
63
63
  type: "submit",
64
- disabled: !v || b || h,
64
+ disabled: !y || x || g,
65
65
  className: "w-full sm:w-auto",
66
- children: b ? p("bigconsole.dataSinks.view.linkWorkflow.saving", "Linking…") : p("bigconsole.dataSinks.view.linkWorkflow.submit", "Link workflow")
67
- }), /* @__PURE__ */ s(a, {
66
+ children: x ? m("bigconsole.dataSinks.view.linkWorkflow.saving", "Linking…") : m("bigconsole.dataSinks.view.linkWorkflow.submit", "Link workflow")
67
+ }), /* @__PURE__ */ c(a, {
68
68
  type: "button",
69
69
  variant: "ghost",
70
- onClick: f,
71
- disabled: b,
70
+ onClick: p,
71
+ disabled: x,
72
72
  className: "w-full sm:w-auto",
73
- children: p("bigconsole.dataSinks.view.linkWorkflow.cancel", "Cancel")
73
+ children: m("bigconsole.dataSinks.view.linkWorkflow.cancel", "Cancel")
74
74
  })]
75
75
  })
76
76
  ]
77
77
  });
78
78
  }
79
- export { l as SinkWorkflowLinkForm, l as default };
79
+ export { u as SinkWorkflowLinkForm, u as default };
@@ -7,21 +7,22 @@ import { SavedQueryWidget as u } from "./SavedQueryWidget.js";
7
7
  import "../../hooks/useActivePage.js";
8
8
  import { useOptionalTr as d } from "../../../shared/hooks/useTr.js";
9
9
  import { useEffect as f, useRef as p, useState as m } from "react";
10
- import { useApolloClient as h } from "@apollo/client/react";
11
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
10
+ import { ThemedSelect as h } from "@burdenoff/fe-libs/ui";
11
+ import { useApolloClient as g } from "@apollo/client/react";
12
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
12
13
  // src/bigconsole/components/explore/CreateQueryWidget.tsx
13
- function v({ savedId: v, askSpec: y, name: b, workspaceId: x }) {
14
- let S = h(), C = d(), w = l(), [T, E] = m(""), [D, O] = m(""), [k, A] = m([]), [j, M] = m([]), [N, P] = m(b), [F, I] = m(""), [L, R] = m(""), [z, B] = m(""), [V, H] = m(null), [U, W] = m(null), [G, K] = m(null), [q, J] = m(null), Y = JSON.stringify([
15
- T,
14
+ function y({ savedId: y, askSpec: b, name: x, workspaceId: S }) {
15
+ let C = g(), w = d(), T = l(), [E, D] = m(""), [O, k] = m(""), [A, ee] = m([]), [j, M] = m([]), [N, P] = m(x), [F, I] = m(""), [L, R] = m(""), [z, B] = m(""), [V, H] = m(null), [U, W] = m(null), [G, K] = m(null), [q, J] = m(null), Y = JSON.stringify([
16
+ E,
16
17
  G,
17
18
  q
18
19
  ]), X = Y !== L, [Z, Q] = m(!1);
19
20
  f(() => {
20
- let e = new AbortController(), t = i(x, e.signal);
21
- return T ? S.query({
21
+ let e = new AbortController(), t = i(S, e.signal);
22
+ return E ? C.query({
22
23
  query: r,
23
24
  variables: {
24
- dashboardId: T,
25
+ dashboardId: E,
25
26
  after: q
26
27
  },
27
28
  fetchPolicy: "no-cache",
@@ -32,10 +33,10 @@ function v({ savedId: v, askSpec: y, name: b, workspaceId: x }) {
32
33
  if (!n) throw Error("Missing pages");
33
34
  I(""), M((e) => [...q ? e : [], ...n.edges.map((e) => e.node)]), W(n.pageInfo.hasNextPage ? n.pageInfo.endCursor ?? null : null);
34
35
  }).catch((t) => {
35
- e.signal.aborted || I(a(t, C));
36
+ e.signal.aborted || I(a(t, w));
36
37
  }).finally(() => {
37
38
  e.signal.aborted || R(Y);
38
- }) : S.query({
39
+ }) : C.query({
39
40
  query: n,
40
41
  variables: { after: G },
41
42
  fetchPolicy: "no-cache",
@@ -44,51 +45,51 @@ function v({ savedId: v, askSpec: y, name: b, workspaceId: x }) {
44
45
  if (e.signal.aborted) return;
45
46
  if (!t?.listDashboards) throw Error("Missing dashboards");
46
47
  let n = t.listDashboards;
47
- I(""), A((e) => [...G ? e : [], ...n.edges.map((e) => e.node)]), H(n.pageInfo.hasNextPage ? n.pageInfo.endCursor ?? null : null);
48
+ I(""), ee((e) => [...G ? e : [], ...n.edges.map((e) => e.node)]), H(n.pageInfo.hasNextPage ? n.pageInfo.endCursor ?? null : null);
48
49
  }).catch((t) => {
49
- e.signal.aborted || I(a(t, C));
50
+ e.signal.aborted || I(a(t, w));
50
51
  }).finally(() => {
51
52
  e.signal.aborted || R(Y);
52
53
  }), () => e.abort();
53
54
  }, [
55
+ C,
54
56
  S,
55
- x,
56
- T,
57
+ E,
57
58
  G,
58
59
  q,
59
60
  Y,
60
- C
61
+ w
61
62
  ]);
62
63
  let $ = p(null);
63
64
  f(() => {
64
65
  let e = new AbortController();
65
66
  return $.current = e, () => e.abort();
66
67
  }, []);
67
- async function ee() {
68
+ async function te() {
68
69
  let n = $.current;
69
- if (n && !n.signal.aborted && !Z && N.trim() && D) {
70
+ if (n && !n.signal.aborted && !Z && N.trim() && O) {
70
71
  Q(!0), I("");
71
72
  try {
72
- let r = i(x, n.signal), a;
73
- if (y !== void 0) {
74
- let { data: t } = o(await S.mutate({
73
+ let r = i(S, n.signal), a;
74
+ if (b !== void 0) {
75
+ let { data: t } = o(await C.mutate({
75
76
  mutation: e,
76
77
  variables: {
77
- spec: y,
78
+ spec: b,
78
79
  title: N.trim(),
79
- pageId: D
80
+ pageId: O
80
81
  },
81
82
  fetchPolicy: "no-cache",
82
83
  context: r
83
84
  }));
84
85
  a = t?.bigconsoleAskAddToDashboard;
85
86
  } else {
86
- let { data: e } = o(await S.mutate({
87
+ let { data: e } = o(await C.mutate({
87
88
  mutation: t,
88
89
  variables: {
89
- savedQueryId: v ?? "",
90
+ savedQueryId: y ?? "",
90
91
  title: N.trim(),
91
- pageId: D
92
+ pageId: O
92
93
  },
93
94
  fetchPolicy: "no-cache",
94
95
  context: r
@@ -99,113 +100,113 @@ function v({ savedId: v, askSpec: y, name: b, workspaceId: x }) {
99
100
  if (!a) throw Error("Missing widget");
100
101
  B(a);
101
102
  } catch (e) {
102
- n.signal.aborted || I(a(e, C));
103
+ n.signal.aborted || I(a(e, w));
103
104
  } finally {
104
105
  n.signal.aborted || Q(!1);
105
106
  }
106
107
  }
107
108
  }
108
- return z ? /* @__PURE__ */ _("div", {
109
+ return z ? /* @__PURE__ */ v("div", {
109
110
  className: "space-y-2",
110
111
  children: [
111
- /* @__PURE__ */ g("p", {
112
+ /* @__PURE__ */ _("p", {
112
113
  role: "status",
113
114
  children: "Widget created."
114
115
  }),
115
- w && /* @__PURE__ */ g("button", {
116
+ T && /* @__PURE__ */ _("button", {
116
117
  type: "button",
117
118
  className: "underline",
118
- onClick: () => w.navigate(`/dashboards/${encodeURIComponent(T)}?page=${encodeURIComponent(D)}`),
119
+ onClick: () => T.navigate(`/dashboards/${encodeURIComponent(E)}?page=${encodeURIComponent(O)}`),
119
120
  children: "Open dashboard"
120
121
  }),
121
- /* @__PURE__ */ g(u, {
122
+ /* @__PURE__ */ _(u, {
122
123
  id: z,
123
124
  title: N
124
125
  })
125
126
  ]
126
- }) : /* @__PURE__ */ _("fieldset", {
127
+ }) : /* @__PURE__ */ v("fieldset", {
127
128
  className: "space-y-2",
128
129
  children: [
129
- /* @__PURE__ */ g("legend", {
130
+ /* @__PURE__ */ _("legend", {
130
131
  className: "font-medium",
131
132
  children: "Create a dashboard widget"
132
133
  }),
133
- /* @__PURE__ */ _("div", {
134
+ /* @__PURE__ */ v("div", {
134
135
  className: "flex flex-wrap items-end gap-2",
135
136
  children: [
136
- /* @__PURE__ */ g(s, {
137
+ /* @__PURE__ */ _(s, {
137
138
  label: "Dashboard",
138
- children: /* @__PURE__ */ _("select", {
139
+ children: /* @__PURE__ */ v(h, {
139
140
  className: c,
140
- value: T,
141
+ value: E,
141
142
  disabled: Z,
142
143
  onChange: (e) => {
143
- E(e.target.value), O(""), M([]), J(null), W(null);
144
+ D(e.target.value), k(""), M([]), J(null), W(null);
144
145
  },
145
- children: [/* @__PURE__ */ g("option", {
146
+ children: [/* @__PURE__ */ _("option", {
146
147
  value: "",
147
148
  children: "Choose dashboard"
148
- }), k.map((e) => /* @__PURE__ */ g("option", {
149
+ }), A.map((e) => /* @__PURE__ */ _("option", {
149
150
  value: e.id,
150
151
  children: e.name
151
152
  }, e.id))]
152
153
  })
153
154
  }),
154
- !T && V && /* @__PURE__ */ g("button", {
155
+ !E && V && /* @__PURE__ */ _("button", {
155
156
  type: "button",
156
157
  disabled: X,
157
158
  onClick: () => K(V),
158
159
  children: "More dashboards"
159
160
  }),
160
- T && /* @__PURE__ */ g(s, {
161
+ E && /* @__PURE__ */ _(s, {
161
162
  label: "Dashboard page",
162
- children: /* @__PURE__ */ _("select", {
163
+ children: /* @__PURE__ */ v(h, {
163
164
  className: "rounded border border-border-default bg-bg-surface px-2 py-1 text-sm text-text-primary",
164
- value: D,
165
+ value: O,
165
166
  disabled: Z,
166
- onChange: (e) => O(e.target.value),
167
- children: [/* @__PURE__ */ g("option", {
167
+ onChange: (e) => k(e.target.value),
168
+ children: [/* @__PURE__ */ _("option", {
168
169
  value: "",
169
170
  children: "Choose page"
170
- }), j.map((e) => /* @__PURE__ */ g("option", {
171
+ }), j.map((e) => /* @__PURE__ */ _("option", {
171
172
  value: e.id,
172
173
  children: e.name
173
174
  }, e.id))]
174
175
  })
175
176
  }),
176
- T && U && /* @__PURE__ */ g("button", {
177
+ E && U && /* @__PURE__ */ _("button", {
177
178
  type: "button",
178
179
  disabled: X,
179
180
  onClick: () => J(U),
180
181
  children: "More pages"
181
182
  }),
182
- /* @__PURE__ */ g(s, {
183
+ /* @__PURE__ */ _(s, {
183
184
  label: "Widget title",
184
- children: /* @__PURE__ */ g("input", {
185
+ children: /* @__PURE__ */ _("input", {
185
186
  className: c,
186
187
  value: N,
187
188
  disabled: Z,
188
189
  onChange: (e) => P(e.target.value)
189
190
  })
190
191
  }),
191
- /* @__PURE__ */ g("button", {
192
+ /* @__PURE__ */ _("button", {
192
193
  type: "button",
193
194
  className: c,
194
- onClick: () => void ee(),
195
- disabled: Z || !D || !N.trim(),
195
+ onClick: () => void te(),
196
+ disabled: Z || !O || !N.trim(),
196
197
  children: "Create widget"
197
198
  })
198
199
  ]
199
200
  }),
200
- X && /* @__PURE__ */ g("p", {
201
+ X && /* @__PURE__ */ _("p", {
201
202
  role: "status",
202
203
  children: "Loading destinations…"
203
204
  }),
204
- F && /* @__PURE__ */ g("p", {
205
+ F && /* @__PURE__ */ _("p", {
205
206
  role: "alert",
206
207
  children: F
207
208
  })
208
209
  ]
209
210
  });
210
211
  }
211
- export { v as CreateQueryWidget };
212
+ export { y as CreateQueryWidget };