@burdenoff/microfe-bigconsole 2026.1123.7 → 2026.1124.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/asof/AsOfControl.js +2 -2
- package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
- package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
- package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
- package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
- package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
- package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
- package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
- package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
- package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
- package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
- package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
- package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
- package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
- package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
- package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
- package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
- package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
- package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
- package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
- package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
- package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
- package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
- package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
- package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
- package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
- package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
- package/dist/bigconsole/pages/AdminPage.js +147 -146
- package/dist/bigconsole/pages/DashboardViewPage.js +2 -0
- package/dist/bigconsole/pages/DashboardsPage.js +638 -855
- package/dist/bigconsole/pages/DataParsersPage.js +5 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
- package/dist/bigconsole/pages/DataSinksPage.js +210 -186
- package/dist/bigconsole/pages/InsightsPage.js +386 -383
- package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
- package/dist/bigconsole/pages/ParserViewPage.js +2 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
- package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
- package/dist/bigconsole/pages/PipelinesPage.js +198 -165
- package/dist/bigconsole/pages/SettingsPage.js +160 -160
- package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
- package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
- package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
- package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
- package/dist/bigconsole/utils/dashboardGallery.js +93 -0
- package/dist/bigconsole/utils/statusTone.d.ts +17 -0
- package/dist/bigconsole/utils/statusTone.js +44 -0
- 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
|
|
8
|
-
import { jsx as
|
|
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
|
|
11
|
-
let { t:
|
|
12
|
-
if (e.preventDefault(),
|
|
13
|
-
|
|
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
|
|
16
|
-
|
|
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
|
|
19
|
+
await f();
|
|
20
20
|
} finally {
|
|
21
|
-
|
|
21
|
+
S(!1);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
},
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
onSubmit:
|
|
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__ */
|
|
30
|
+
/* @__PURE__ */ l("label", {
|
|
31
31
|
className: "block text-sm font-medium text-text-primary",
|
|
32
|
-
children: [
|
|
33
|
-
value:
|
|
34
|
-
onChange: (e) =>
|
|
35
|
-
disabled:
|
|
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:
|
|
38
|
-
children: [/* @__PURE__ */
|
|
37
|
+
className: D,
|
|
38
|
+
children: [/* @__PURE__ */ c("option", {
|
|
39
39
|
value: "",
|
|
40
|
-
children:
|
|
41
|
-
}),
|
|
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__ */
|
|
47
|
+
/* @__PURE__ */ c("p", {
|
|
48
48
|
className: "text-xs text-text-secondary",
|
|
49
|
-
children:
|
|
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
|
-
!
|
|
51
|
+
!g && !_ && T.length === 0 && /* @__PURE__ */ c("p", {
|
|
52
52
|
className: "text-sm text-text-secondary",
|
|
53
|
-
children:
|
|
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
|
-
(
|
|
55
|
+
(_ || C) && /* @__PURE__ */ c("p", {
|
|
56
56
|
role: "alert",
|
|
57
57
|
className: "text-sm text-status-error-text",
|
|
58
|
-
children:
|
|
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__ */
|
|
60
|
+
/* @__PURE__ */ l("div", {
|
|
61
61
|
className: "flex flex-wrap gap-2",
|
|
62
|
-
children: [/* @__PURE__ */
|
|
62
|
+
children: [/* @__PURE__ */ c(a, {
|
|
63
63
|
type: "submit",
|
|
64
|
-
disabled: !
|
|
64
|
+
disabled: !y || x || g,
|
|
65
65
|
className: "w-full sm:w-auto",
|
|
66
|
-
children:
|
|
67
|
-
}), /* @__PURE__ */
|
|
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:
|
|
71
|
-
disabled:
|
|
70
|
+
onClick: p,
|
|
71
|
+
disabled: x,
|
|
72
72
|
className: "w-full sm:w-auto",
|
|
73
|
-
children:
|
|
73
|
+
children: m("bigconsole.dataSinks.view.linkWorkflow.cancel", "Cancel")
|
|
74
74
|
})]
|
|
75
75
|
})
|
|
76
76
|
]
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
export {
|
|
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 {
|
|
11
|
-
import {
|
|
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
|
|
14
|
-
let
|
|
15
|
-
|
|
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(
|
|
21
|
-
return
|
|
21
|
+
let e = new AbortController(), t = i(S, e.signal);
|
|
22
|
+
return E ? C.query({
|
|
22
23
|
query: r,
|
|
23
24
|
variables: {
|
|
24
|
-
dashboardId:
|
|
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,
|
|
36
|
+
e.signal.aborted || I(a(t, w));
|
|
36
37
|
}).finally(() => {
|
|
37
38
|
e.signal.aborted || R(Y);
|
|
38
|
-
}) :
|
|
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(""),
|
|
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,
|
|
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
|
-
|
|
56
|
-
T,
|
|
57
|
+
E,
|
|
57
58
|
G,
|
|
58
59
|
q,
|
|
59
60
|
Y,
|
|
60
|
-
|
|
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
|
|
68
|
+
async function te() {
|
|
68
69
|
let n = $.current;
|
|
69
|
-
if (n && !n.signal.aborted && !Z && N.trim() &&
|
|
70
|
+
if (n && !n.signal.aborted && !Z && N.trim() && O) {
|
|
70
71
|
Q(!0), I("");
|
|
71
72
|
try {
|
|
72
|
-
let r = i(
|
|
73
|
-
if (
|
|
74
|
-
let { data: t } = o(await
|
|
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:
|
|
78
|
+
spec: b,
|
|
78
79
|
title: N.trim(),
|
|
79
|
-
pageId:
|
|
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
|
|
87
|
+
let { data: e } = o(await C.mutate({
|
|
87
88
|
mutation: t,
|
|
88
89
|
variables: {
|
|
89
|
-
savedQueryId:
|
|
90
|
+
savedQueryId: y ?? "",
|
|
90
91
|
title: N.trim(),
|
|
91
|
-
pageId:
|
|
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,
|
|
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__ */
|
|
109
|
+
return z ? /* @__PURE__ */ v("div", {
|
|
109
110
|
className: "space-y-2",
|
|
110
111
|
children: [
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ _("p", {
|
|
112
113
|
role: "status",
|
|
113
114
|
children: "Widget created."
|
|
114
115
|
}),
|
|
115
|
-
|
|
116
|
+
T && /* @__PURE__ */ _("button", {
|
|
116
117
|
type: "button",
|
|
117
118
|
className: "underline",
|
|
118
|
-
onClick: () =>
|
|
119
|
+
onClick: () => T.navigate(`/dashboards/${encodeURIComponent(E)}?page=${encodeURIComponent(O)}`),
|
|
119
120
|
children: "Open dashboard"
|
|
120
121
|
}),
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ _(u, {
|
|
122
123
|
id: z,
|
|
123
124
|
title: N
|
|
124
125
|
})
|
|
125
126
|
]
|
|
126
|
-
}) : /* @__PURE__ */
|
|
127
|
+
}) : /* @__PURE__ */ v("fieldset", {
|
|
127
128
|
className: "space-y-2",
|
|
128
129
|
children: [
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ _("legend", {
|
|
130
131
|
className: "font-medium",
|
|
131
132
|
children: "Create a dashboard widget"
|
|
132
133
|
}),
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ v("div", {
|
|
134
135
|
className: "flex flex-wrap items-end gap-2",
|
|
135
136
|
children: [
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ _(s, {
|
|
137
138
|
label: "Dashboard",
|
|
138
|
-
children: /* @__PURE__ */
|
|
139
|
+
children: /* @__PURE__ */ v(h, {
|
|
139
140
|
className: c,
|
|
140
|
-
value:
|
|
141
|
+
value: E,
|
|
141
142
|
disabled: Z,
|
|
142
143
|
onChange: (e) => {
|
|
143
|
-
|
|
144
|
+
D(e.target.value), k(""), M([]), J(null), W(null);
|
|
144
145
|
},
|
|
145
|
-
children: [/* @__PURE__ */
|
|
146
|
+
children: [/* @__PURE__ */ _("option", {
|
|
146
147
|
value: "",
|
|
147
148
|
children: "Choose dashboard"
|
|
148
|
-
}),
|
|
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
|
-
!
|
|
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
|
-
|
|
161
|
+
E && /* @__PURE__ */ _(s, {
|
|
161
162
|
label: "Dashboard page",
|
|
162
|
-
children: /* @__PURE__ */
|
|
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:
|
|
165
|
+
value: O,
|
|
165
166
|
disabled: Z,
|
|
166
|
-
onChange: (e) =>
|
|
167
|
-
children: [/* @__PURE__ */
|
|
167
|
+
onChange: (e) => k(e.target.value),
|
|
168
|
+
children: [/* @__PURE__ */ _("option", {
|
|
168
169
|
value: "",
|
|
169
170
|
children: "Choose page"
|
|
170
|
-
}), j.map((e) => /* @__PURE__ */
|
|
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
|
-
|
|
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__ */
|
|
183
|
+
/* @__PURE__ */ _(s, {
|
|
183
184
|
label: "Widget title",
|
|
184
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
192
|
+
/* @__PURE__ */ _("button", {
|
|
192
193
|
type: "button",
|
|
193
194
|
className: c,
|
|
194
|
-
onClick: () => void
|
|
195
|
-
disabled: Z || !
|
|
195
|
+
onClick: () => void te(),
|
|
196
|
+
disabled: Z || !O || !N.trim(),
|
|
196
197
|
children: "Create widget"
|
|
197
198
|
})
|
|
198
199
|
]
|
|
199
200
|
}),
|
|
200
|
-
X && /* @__PURE__ */
|
|
201
|
+
X && /* @__PURE__ */ _("p", {
|
|
201
202
|
role: "status",
|
|
202
203
|
children: "Loading destinations…"
|
|
203
204
|
}),
|
|
204
|
-
F && /* @__PURE__ */
|
|
205
|
+
F && /* @__PURE__ */ _("p", {
|
|
205
206
|
role: "alert",
|
|
206
207
|
children: F
|
|
207
208
|
})
|
|
208
209
|
]
|
|
209
210
|
});
|
|
210
211
|
}
|
|
211
|
-
export {
|
|
212
|
+
export { y as CreateQueryWidget };
|