@burdenoff/microfe-bigconsole 2026.624.2 → 2026.625.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/BigConsoleRoutes.js +93 -93
- package/dist/bigconsole/assistant/assistantApi.js +215 -0
- package/dist/bigconsole/assistant/assistantApi.js.map +1 -0
- package/dist/bigconsole/assistant/createSandboxAssistantTransport.js +119 -0
- package/dist/bigconsole/assistant/createSandboxAssistantTransport.js.map +1 -0
- package/dist/bigconsole/assistant/index.js +2 -0
- package/dist/bigconsole/assistant/pageContext.js +51 -0
- package/dist/bigconsole/assistant/pageContext.js.map +1 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +48 -48
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +52 -52
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +33 -33
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +179 -179
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +38 -38
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +32 -32
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +31 -31
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +98 -98
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ExportParserDialog.js +31 -31
- package/dist/bigconsole/components/parser/ImportParserDialog.js +162 -162
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +79 -79
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +307 -307
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js +222 -222
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.js +23 -23
- package/dist/bigconsole/index.js +3 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.js +74 -74
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +168 -189
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +266 -310
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +148 -194
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +252 -246
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +256 -231
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +173 -219
- package/dist/bigconsole/pages/DataSinksPage.js.map +1 -1
- package/dist/bigconsole/pages/HomePage.js +125 -141
- package/dist/bigconsole/pages/HomePage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +159 -184
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +401 -393
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +220 -201
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +212 -206
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +204 -181
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +107 -150
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +184 -171
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +69 -81
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +230 -216
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +106 -149
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/generated/wspace-operations.js +87 -36
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/index.js +3 -1
- package/package.json +6 -2
|
@@ -12,8 +12,8 @@ import te from "../parser/DataSinkSelector.js";
|
|
|
12
12
|
import ne from "../parser/ParserSelector.js";
|
|
13
13
|
import { memo as c, useCallback as l, useEffect as re, useMemo as ie, useState as u } from "react";
|
|
14
14
|
import { Code as ae, CreditCard as d, ExternalLink as f, Layout as p, MessageSquare as oe } from "lucide-react";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { Button as m, Card as se, CardDescription as ce, CardHeader as le, CardTitle as ue, Dialog as de, DialogContent as fe, DialogDescription as pe, DialogFooter as me, DialogHeader as he, DialogTitle as ge, Input as h, Label as g, Tabs as _e, TabsContent as _, TabsList as ve, TabsTrigger as ye, Textarea as v } from "@burdenoff/fe-libs/ui";
|
|
16
|
+
import { Fragment as be, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
17
17
|
//#region src/bigconsole/components/widgets/WidgetConfigDialog.tsx
|
|
18
18
|
var x = [
|
|
19
19
|
"kpi_card_comparison",
|
|
@@ -34,7 +34,7 @@ var x = [
|
|
|
34
34
|
"kanban",
|
|
35
35
|
"timeline",
|
|
36
36
|
"custom"
|
|
37
|
-
],
|
|
37
|
+
], S = [
|
|
38
38
|
{
|
|
39
39
|
type: "BIGCONSOLE",
|
|
40
40
|
name: "BigConsole Native",
|
|
@@ -63,7 +63,7 @@ var x = [
|
|
|
63
63
|
icon: ae,
|
|
64
64
|
supportedTypes: x
|
|
65
65
|
}
|
|
66
|
-
],
|
|
66
|
+
], xe = [
|
|
67
67
|
{
|
|
68
68
|
id: "ac-simple-text",
|
|
69
69
|
name: "Simple Text Card",
|
|
@@ -158,7 +158,7 @@ var x = [
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
];
|
|
161
|
-
function
|
|
161
|
+
function Se(e) {
|
|
162
162
|
switch (e) {
|
|
163
163
|
case "metric_card":
|
|
164
164
|
case "kpi_card_comparison": return a;
|
|
@@ -172,14 +172,14 @@ function Ce(e) {
|
|
|
172
172
|
default: return null;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
var
|
|
175
|
+
var Ce = c(function({ renderer: e, template: t, onChange: n }) {
|
|
176
176
|
let [r, i] = u(null), [a, o] = u(() => {
|
|
177
177
|
try {
|
|
178
178
|
return t && typeof t == "object" ? JSON.stringify(t, null, 2) : "";
|
|
179
179
|
} catch {
|
|
180
180
|
return "";
|
|
181
181
|
}
|
|
182
|
-
}), s = ie(() =>
|
|
182
|
+
}), s = ie(() => xe.filter((t) => t.renderer === e), [e]), ee = l((e) => {
|
|
183
183
|
o(e);
|
|
184
184
|
try {
|
|
185
185
|
e.trim() && n(JSON.parse(e)), i(null);
|
|
@@ -194,35 +194,35 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
194
194
|
o(JSON.stringify(t, null, 2)), i(null);
|
|
195
195
|
} catch {}
|
|
196
196
|
else t || o("");
|
|
197
|
-
}, [t]), /* @__PURE__ */
|
|
197
|
+
}, [t]), /* @__PURE__ */ b("div", {
|
|
198
198
|
className: "space-y-4",
|
|
199
199
|
children: [
|
|
200
|
-
s.length > 0 && /* @__PURE__ */
|
|
200
|
+
s.length > 0 && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y(g, {
|
|
201
201
|
className: "mb-2",
|
|
202
202
|
children: "Quick Start Templates"
|
|
203
|
-
}), /* @__PURE__ */
|
|
203
|
+
}), /* @__PURE__ */ y("div", {
|
|
204
204
|
className: "grid grid-cols-2 gap-2",
|
|
205
|
-
children: s.map((e) => /* @__PURE__ */
|
|
205
|
+
children: s.map((e) => /* @__PURE__ */ y(se, {
|
|
206
206
|
className: "cursor-pointer hover:border-primary transition-colors",
|
|
207
207
|
onClick: () => te(e),
|
|
208
|
-
children: /* @__PURE__ */
|
|
208
|
+
children: /* @__PURE__ */ b(le, {
|
|
209
209
|
className: "p-3",
|
|
210
|
-
children: [/* @__PURE__ */
|
|
210
|
+
children: [/* @__PURE__ */ y(ue, {
|
|
211
211
|
className: "text-sm",
|
|
212
212
|
children: e.name
|
|
213
|
-
}), /* @__PURE__ */
|
|
213
|
+
}), /* @__PURE__ */ y(ce, {
|
|
214
214
|
className: "text-xs",
|
|
215
215
|
children: e.description
|
|
216
216
|
})]
|
|
217
217
|
})
|
|
218
218
|
}, e.id))
|
|
219
219
|
})] }),
|
|
220
|
-
/* @__PURE__ */
|
|
221
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ b("div", { children: [
|
|
221
|
+
/* @__PURE__ */ y(g, {
|
|
222
222
|
className: "mb-2",
|
|
223
223
|
children: "Template JSON"
|
|
224
224
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ y(v, {
|
|
226
226
|
value: a,
|
|
227
227
|
onChange: (e) => ee(e.target.value),
|
|
228
228
|
placeholder: `Enter ${e} template JSON...`,
|
|
@@ -230,15 +230,15 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
230
230
|
spellCheck: !1,
|
|
231
231
|
className: `font-mono text-sm ${r ? "border-status-error-border focus-visible:ring-destructive" : ""}`
|
|
232
232
|
}),
|
|
233
|
-
r && /* @__PURE__ */
|
|
233
|
+
r && /* @__PURE__ */ b("p", {
|
|
234
234
|
className: "mt-1 text-xs text-status-error-text",
|
|
235
235
|
children: ["Invalid JSON: ", r]
|
|
236
236
|
})
|
|
237
237
|
] }),
|
|
238
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ b("div", {
|
|
239
239
|
className: "flex items-center justify-between rounded-lg bg-bg-sunken p-3",
|
|
240
240
|
children: [
|
|
241
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ b("p", {
|
|
242
242
|
className: "text-xs text-text-secondary",
|
|
243
243
|
children: [
|
|
244
244
|
e === "ADAPTIVE_CARD" && "Use Microsoft Adaptive Cards format with data binding.",
|
|
@@ -246,49 +246,49 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
246
246
|
e === "CUSTOM" && "Specify componentName and props for your custom React component."
|
|
247
247
|
]
|
|
248
248
|
}),
|
|
249
|
-
e === "ADAPTIVE_CARD" && /* @__PURE__ */ m
|
|
249
|
+
e === "ADAPTIVE_CARD" && /* @__PURE__ */ y(m, {
|
|
250
250
|
variant: "ghost",
|
|
251
251
|
size: "sm",
|
|
252
252
|
asChild: !0,
|
|
253
|
-
children: /* @__PURE__ */
|
|
253
|
+
children: /* @__PURE__ */ b("a", {
|
|
254
254
|
href: "https://adaptivecards.io/designer/",
|
|
255
255
|
target: "_blank",
|
|
256
256
|
rel: "noopener noreferrer",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ y(f, { className: "size-3.5" }), "Designer"]
|
|
258
258
|
})
|
|
259
259
|
}),
|
|
260
|
-
e === "BLOCKKIT" && /* @__PURE__ */ m
|
|
260
|
+
e === "BLOCKKIT" && /* @__PURE__ */ y(m, {
|
|
261
261
|
variant: "ghost",
|
|
262
262
|
size: "sm",
|
|
263
263
|
asChild: !0,
|
|
264
|
-
children: /* @__PURE__ */
|
|
264
|
+
children: /* @__PURE__ */ b("a", {
|
|
265
265
|
href: "https://app.slack.com/block-kit-builder",
|
|
266
266
|
target: "_blank",
|
|
267
267
|
rel: "noopener noreferrer",
|
|
268
|
-
children: [/* @__PURE__ */
|
|
268
|
+
children: [/* @__PURE__ */ y(f, { className: "size-3.5" }), "Builder"]
|
|
269
269
|
})
|
|
270
270
|
})
|
|
271
271
|
]
|
|
272
272
|
})
|
|
273
273
|
]
|
|
274
274
|
});
|
|
275
|
-
}),
|
|
276
|
-
let d = !r, [f, p] = u(d ? i ? "general" : "type" : "general"), oe = e((e) => e.dataSinks), [x,
|
|
275
|
+
}), C = c(function({ isOpen: n, widget: r, preselectedType: i, preselectedDefinition: a, onClose: o, onSave: s, dashboardId: c, installedWidgets: ae }) {
|
|
276
|
+
let d = !r, [f, p] = u(d ? i ? "general" : "type" : "general"), oe = e((e) => e.dataSinks), [x, C] = u(r?.type || i), [w, T] = u(r?.title || ""), [we, E] = u(r?.description || ""), [Te, D] = u(r?.refreshInterval ?? void 0), [O, k] = u(r?.config || {}), [A, j] = u(r?.renderer || "BIGCONSOLE"), [M, N] = u(r?.template || null), [P, F] = u(r?.config?.dataSourceType || "MOCK"), [I, L] = u(r?.config?.dataSinkKey || ""), [Ee, R] = u(r?.parserId || ""), [De, z] = u(r?.config?.endpointUrl || ""), [B, V] = u(r?.config?.httpMethod || "GET"), [H, U] = u(r?.config?.headers || ""), [W, G] = u(r?.config?.authType || "none"), [Oe, K] = u(r?.config?.authValue || ""), [ke, q] = u(r?.config?.requestBody || ""), [J, Y] = u(r?.config?.dataPath || ""), [Ae, X] = u(r?.config?.graphqlEndpoint || ""), [je, Z] = u(r?.config?.graphqlQuery || ""), [Me, Q] = u(r?.config?.graphqlVariables || ""), Ne = ie(() => x ? S.filter((e) => e.supportedTypes.includes(x)) : S, [x]);
|
|
277
277
|
re(() => {
|
|
278
|
-
x && !Ne.find((e) => e.type ===
|
|
278
|
+
x && !Ne.find((e) => e.type === A) && (j("BIGCONSOLE"), N(null));
|
|
279
279
|
}, [
|
|
280
280
|
x,
|
|
281
281
|
Ne,
|
|
282
|
-
|
|
282
|
+
A
|
|
283
283
|
]), re(() => {
|
|
284
284
|
if (r) {
|
|
285
|
-
|
|
285
|
+
C(r.type), T(r.title), E(r.description || ""), D(r.refreshInterval ?? void 0), k(r.config || {}), j(r.renderer || "BIGCONSOLE"), N(r.template || null);
|
|
286
286
|
let e = r.config || {};
|
|
287
|
-
|
|
287
|
+
F(e.dataSourceType || "MOCK"), L(e.dataSinkKey || ""), R(r.parserId || ""), z(e.endpointUrl || ""), V(e.httpMethod || "GET"), U(e.headers || ""), G(e.authType || "none"), K(e.authValue || ""), q(e.requestBody || ""), Y(e.dataPath || ""), X(e.graphqlEndpoint || ""), Z(e.graphqlQuery || ""), Q(e.graphqlVariables || ""), p("general");
|
|
288
288
|
} else if (i) {
|
|
289
289
|
let e = a || t(i);
|
|
290
|
-
|
|
291
|
-
} else
|
|
290
|
+
C(i), T(e.name), E(""), D(void 0), k(e.defaultConfig || {}), j(e.category === "Installed" ? "CUSTOM" : "BIGCONSOLE"), N(null), F("MOCK"), L(""), R(""), z(""), V("GET"), U(""), G("none"), K(""), q(""), Y(""), X(""), Z(""), Q(""), p("general");
|
|
291
|
+
} else C(void 0), T(""), E(""), D(void 0), k({}), j("BIGCONSOLE"), N(null), F("MOCK"), L(""), R(""), z(""), V("GET"), U(""), G("none"), K(""), q(""), Y(""), X(""), Z(""), Q(""), p("type");
|
|
292
292
|
}, [
|
|
293
293
|
r,
|
|
294
294
|
i,
|
|
@@ -296,80 +296,80 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
296
296
|
n
|
|
297
297
|
]);
|
|
298
298
|
let Pe = l((e, n) => {
|
|
299
|
-
|
|
299
|
+
C(e);
|
|
300
300
|
let r = n || t(e);
|
|
301
|
-
r && (
|
|
301
|
+
r && (T(r.name), k(r.defaultConfig || {}), r.category === "Installed" && j("CUSTOM"));
|
|
302
302
|
}, []), Fe = l((e) => {
|
|
303
|
-
if (
|
|
303
|
+
if (j(e), e === "BIGCONSOLE") N(null);
|
|
304
304
|
else {
|
|
305
|
-
let t =
|
|
306
|
-
|
|
305
|
+
let t = xe.find((t) => t.renderer === e);
|
|
306
|
+
N(t ? t.template : {});
|
|
307
307
|
}
|
|
308
308
|
}, []), Ie = l(() => {
|
|
309
309
|
if (!x) return;
|
|
310
310
|
let e;
|
|
311
|
-
if (
|
|
312
|
-
for (let t of oe.values()) if (t.key ===
|
|
311
|
+
if (I) {
|
|
312
|
+
for (let t of oe.values()) if (t.key === I) {
|
|
313
313
|
e = t.id;
|
|
314
314
|
break;
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
s({
|
|
318
318
|
type: x,
|
|
319
|
-
title:
|
|
320
|
-
description:
|
|
321
|
-
refreshInterval:
|
|
319
|
+
title: w,
|
|
320
|
+
description: we || void 0,
|
|
321
|
+
refreshInterval: Te,
|
|
322
322
|
config: {
|
|
323
|
-
...
|
|
324
|
-
dataSourceType:
|
|
325
|
-
dataSinkKey:
|
|
326
|
-
...
|
|
327
|
-
endpointUrl:
|
|
328
|
-
httpMethod:
|
|
329
|
-
headers:
|
|
330
|
-
authType:
|
|
331
|
-
authValue:
|
|
332
|
-
requestBody:
|
|
333
|
-
dataPath:
|
|
323
|
+
...O,
|
|
324
|
+
dataSourceType: P,
|
|
325
|
+
dataSinkKey: I || void 0,
|
|
326
|
+
...P === "REST_API" ? {
|
|
327
|
+
endpointUrl: De || void 0,
|
|
328
|
+
httpMethod: B || "GET",
|
|
329
|
+
headers: H || void 0,
|
|
330
|
+
authType: W || "none",
|
|
331
|
+
authValue: Oe || void 0,
|
|
332
|
+
requestBody: ke || void 0,
|
|
333
|
+
dataPath: J || void 0
|
|
334
334
|
} : {},
|
|
335
|
-
...
|
|
336
|
-
graphqlEndpoint:
|
|
337
|
-
graphqlQuery:
|
|
338
|
-
graphqlVariables:
|
|
339
|
-
headers:
|
|
340
|
-
dataPath:
|
|
335
|
+
...P === "GRAPHQL" ? {
|
|
336
|
+
graphqlEndpoint: Ae || void 0,
|
|
337
|
+
graphqlQuery: je || void 0,
|
|
338
|
+
graphqlVariables: Me || void 0,
|
|
339
|
+
headers: H || void 0,
|
|
340
|
+
dataPath: J || void 0
|
|
341
341
|
} : {}
|
|
342
342
|
},
|
|
343
|
-
renderer:
|
|
344
|
-
template:
|
|
343
|
+
renderer: A,
|
|
344
|
+
template: A === "BIGCONSOLE" ? void 0 : M,
|
|
345
345
|
dataSinkId: e || void 0,
|
|
346
|
-
parserId:
|
|
346
|
+
parserId: Ee || void 0
|
|
347
347
|
}), o();
|
|
348
348
|
}, [
|
|
349
349
|
x,
|
|
350
|
-
|
|
350
|
+
w,
|
|
351
|
+
we,
|
|
351
352
|
Te,
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
F,
|
|
353
|
+
O,
|
|
354
|
+
A,
|
|
355
|
+
M,
|
|
356
|
+
P,
|
|
357
|
+
I,
|
|
358
358
|
oe,
|
|
359
|
+
Ee,
|
|
359
360
|
De,
|
|
361
|
+
B,
|
|
362
|
+
H,
|
|
363
|
+
W,
|
|
360
364
|
Oe,
|
|
361
|
-
z,
|
|
362
|
-
V,
|
|
363
|
-
U,
|
|
364
365
|
ke,
|
|
366
|
+
J,
|
|
365
367
|
Ae,
|
|
366
|
-
q,
|
|
367
368
|
je,
|
|
368
369
|
Me,
|
|
369
|
-
Z,
|
|
370
370
|
s,
|
|
371
371
|
o
|
|
372
|
-
]), Le = x ? t(x) : null, Re = x ?
|
|
372
|
+
]), Le = x ? t(x) : null, Re = x ? Se(x) : null, ze = A !== "BIGCONSOLE", Be = A === "BIGCONSOLE" && Re, $ = ie(() => [
|
|
373
373
|
{
|
|
374
374
|
id: "type",
|
|
375
375
|
label: "Type",
|
|
@@ -395,10 +395,10 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
395
395
|
ze,
|
|
396
396
|
!0
|
|
397
397
|
]);
|
|
398
|
-
return /* @__PURE__ */
|
|
398
|
+
return /* @__PURE__ */ y(de, {
|
|
399
399
|
open: n,
|
|
400
400
|
onOpenChange: (e) => !e && o(),
|
|
401
|
-
children: /* @__PURE__ */
|
|
401
|
+
children: /* @__PURE__ */ b(fe, {
|
|
402
402
|
style: {
|
|
403
403
|
maxWidth: "520px",
|
|
404
404
|
width: "95vw",
|
|
@@ -409,23 +409,23 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
409
409
|
overflow: "hidden"
|
|
410
410
|
},
|
|
411
411
|
children: [
|
|
412
|
-
/* @__PURE__ */
|
|
412
|
+
/* @__PURE__ */ b(he, {
|
|
413
413
|
style: {
|
|
414
414
|
padding: "16px 16px 8px 16px",
|
|
415
415
|
flexShrink: 0
|
|
416
416
|
},
|
|
417
|
-
children: [/* @__PURE__ */
|
|
417
|
+
children: [/* @__PURE__ */ y(ge, {
|
|
418
418
|
style: { fontSize: "16px" },
|
|
419
419
|
children: d ? "Add Widget" : "Edit Widget"
|
|
420
|
-
}), /* @__PURE__ */
|
|
420
|
+
}), /* @__PURE__ */ y(pe, {
|
|
421
421
|
className: "text-xs",
|
|
422
|
-
children: Le ? /* @__PURE__ */
|
|
422
|
+
children: Le ? /* @__PURE__ */ b(be, { children: [Le.name, A !== "BIGCONSOLE" && /* @__PURE__ */ y("span", {
|
|
423
423
|
className: "ml-2 px-1.5 py-0.5 text-xs bg-action-primary-bg/10 text-primary rounded",
|
|
424
|
-
children:
|
|
424
|
+
children: S.find((e) => e.type === A)?.name
|
|
425
425
|
})] }) : "Configure the widget data source, appearance, and actions."
|
|
426
426
|
})]
|
|
427
427
|
}),
|
|
428
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ b(_e, {
|
|
429
429
|
value: f,
|
|
430
430
|
onValueChange: (e) => p(e),
|
|
431
431
|
style: {
|
|
@@ -435,7 +435,7 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
435
435
|
minHeight: 0,
|
|
436
436
|
overflow: "hidden"
|
|
437
437
|
},
|
|
438
|
-
children: [/* @__PURE__ */
|
|
438
|
+
children: [/* @__PURE__ */ y(ve, {
|
|
439
439
|
style: {
|
|
440
440
|
margin: "0 16px",
|
|
441
441
|
width: "auto",
|
|
@@ -443,7 +443,7 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
443
443
|
height: "32px",
|
|
444
444
|
flexShrink: 0
|
|
445
445
|
},
|
|
446
|
-
children: $.map((e) => /* @__PURE__ */
|
|
446
|
+
children: $.map((e) => /* @__PURE__ */ y(ye, {
|
|
447
447
|
value: e.id,
|
|
448
448
|
disabled: e.id !== "type" && !x,
|
|
449
449
|
style: {
|
|
@@ -452,7 +452,7 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
452
452
|
},
|
|
453
453
|
children: e.label
|
|
454
454
|
}, e.id))
|
|
455
|
-
}), /* @__PURE__ */
|
|
455
|
+
}), /* @__PURE__ */ b("div", {
|
|
456
456
|
style: {
|
|
457
457
|
flex: 1,
|
|
458
458
|
minHeight: 0,
|
|
@@ -462,16 +462,16 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
462
462
|
flexDirection: "column"
|
|
463
463
|
},
|
|
464
464
|
children: [
|
|
465
|
-
/* @__PURE__ */
|
|
465
|
+
/* @__PURE__ */ y(_, {
|
|
466
466
|
value: "type",
|
|
467
467
|
style: {
|
|
468
468
|
marginTop: 0,
|
|
469
469
|
height: "100%",
|
|
470
470
|
overflow: "hidden"
|
|
471
471
|
},
|
|
472
|
-
children: /* @__PURE__ */
|
|
472
|
+
children: /* @__PURE__ */ y(ee, {
|
|
473
473
|
selectedType: x,
|
|
474
|
-
selectedRenderer:
|
|
474
|
+
selectedRenderer: A,
|
|
475
475
|
onSelect: (e, t) => {
|
|
476
476
|
Pe(e, t), p("general");
|
|
477
477
|
},
|
|
@@ -479,7 +479,7 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
479
479
|
installedWidgets: ae
|
|
480
480
|
})
|
|
481
481
|
}),
|
|
482
|
-
/* @__PURE__ */
|
|
482
|
+
/* @__PURE__ */ y(_, {
|
|
483
483
|
value: "general",
|
|
484
484
|
style: {
|
|
485
485
|
marginTop: 0,
|
|
@@ -488,56 +488,56 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
488
488
|
padding: "12px 16px",
|
|
489
489
|
minHeight: "300px"
|
|
490
490
|
},
|
|
491
|
-
children: /* @__PURE__ */
|
|
491
|
+
children: /* @__PURE__ */ b("div", {
|
|
492
492
|
className: "space-y-4",
|
|
493
493
|
children: [
|
|
494
|
-
/* @__PURE__ */
|
|
494
|
+
/* @__PURE__ */ b("div", {
|
|
495
495
|
className: "space-y-2",
|
|
496
|
-
children: [/* @__PURE__ */
|
|
496
|
+
children: [/* @__PURE__ */ y(g, {
|
|
497
497
|
htmlFor: "title",
|
|
498
498
|
children: "Title"
|
|
499
|
-
}), /* @__PURE__ */
|
|
499
|
+
}), /* @__PURE__ */ y(h, {
|
|
500
500
|
id: "title",
|
|
501
|
-
value:
|
|
502
|
-
onChange: (e) =>
|
|
501
|
+
value: w,
|
|
502
|
+
onChange: (e) => T(e.target.value),
|
|
503
503
|
placeholder: "Widget title"
|
|
504
504
|
})]
|
|
505
505
|
}),
|
|
506
|
-
/* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ b("div", {
|
|
507
507
|
className: "space-y-2",
|
|
508
|
-
children: [/* @__PURE__ */
|
|
508
|
+
children: [/* @__PURE__ */ y(g, {
|
|
509
509
|
htmlFor: "description",
|
|
510
510
|
children: "Description (optional)"
|
|
511
|
-
}), /* @__PURE__ */
|
|
511
|
+
}), /* @__PURE__ */ y(v, {
|
|
512
512
|
id: "description",
|
|
513
|
-
value:
|
|
514
|
-
onChange: (e) =>
|
|
513
|
+
value: we,
|
|
514
|
+
onChange: (e) => E(e.target.value),
|
|
515
515
|
placeholder: "Brief description of this widget",
|
|
516
516
|
rows: 2
|
|
517
517
|
})]
|
|
518
518
|
}),
|
|
519
|
-
/* @__PURE__ */
|
|
519
|
+
/* @__PURE__ */ b("div", {
|
|
520
520
|
className: "space-y-2",
|
|
521
|
-
children: [/* @__PURE__ */
|
|
521
|
+
children: [/* @__PURE__ */ y(g, { children: "Renderer" }), /* @__PURE__ */ y("div", {
|
|
522
522
|
className: "grid grid-cols-2 gap-2",
|
|
523
523
|
children: Ne.map((e) => {
|
|
524
524
|
let t = e.icon;
|
|
525
|
-
return /* @__PURE__ */
|
|
526
|
-
className: `cursor-pointer transition-colors ${
|
|
525
|
+
return /* @__PURE__ */ y(se, {
|
|
526
|
+
className: `cursor-pointer transition-colors ${A === e.type ? "border-primary bg-action-primary-bg/5" : "hover:border-primary/50"}`,
|
|
527
527
|
onClick: () => Fe(e.type),
|
|
528
|
-
children: /* @__PURE__ */
|
|
528
|
+
children: /* @__PURE__ */ y(le, {
|
|
529
529
|
className: "p-3",
|
|
530
|
-
children: /* @__PURE__ */
|
|
530
|
+
children: /* @__PURE__ */ b("div", {
|
|
531
531
|
className: "flex items-start gap-3",
|
|
532
|
-
children: [/* @__PURE__ */
|
|
533
|
-
className: `p-2 rounded-md ${
|
|
534
|
-
children: /* @__PURE__ */
|
|
535
|
-
}), /* @__PURE__ */
|
|
532
|
+
children: [/* @__PURE__ */ y("div", {
|
|
533
|
+
className: `p-2 rounded-md ${A === e.type ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken"}`,
|
|
534
|
+
children: /* @__PURE__ */ y(t, { className: "size-4" })
|
|
535
|
+
}), /* @__PURE__ */ b("div", {
|
|
536
536
|
className: "flex-1 min-w-0",
|
|
537
|
-
children: [/* @__PURE__ */
|
|
537
|
+
children: [/* @__PURE__ */ y(ue, {
|
|
538
538
|
className: "text-sm",
|
|
539
539
|
children: e.name
|
|
540
|
-
}), /* @__PURE__ */
|
|
540
|
+
}), /* @__PURE__ */ y(ce, {
|
|
541
541
|
className: "text-xs line-clamp-2",
|
|
542
542
|
children: e.description
|
|
543
543
|
})]
|
|
@@ -548,16 +548,16 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
548
548
|
})
|
|
549
549
|
})]
|
|
550
550
|
}),
|
|
551
|
-
/* @__PURE__ */
|
|
551
|
+
/* @__PURE__ */ b("div", {
|
|
552
552
|
className: "space-y-2",
|
|
553
|
-
children: [/* @__PURE__ */
|
|
553
|
+
children: [/* @__PURE__ */ y(g, {
|
|
554
554
|
htmlFor: "refresh",
|
|
555
555
|
children: "Auto-Refresh Interval (seconds)"
|
|
556
|
-
}), /* @__PURE__ */
|
|
556
|
+
}), /* @__PURE__ */ y(h, {
|
|
557
557
|
id: "refresh",
|
|
558
558
|
type: "number",
|
|
559
|
-
value:
|
|
560
|
-
onChange: (e) =>
|
|
559
|
+
value: Te || "",
|
|
560
|
+
onChange: (e) => D(e.target.value ? Number(e.target.value) : void 0),
|
|
561
561
|
min: 0,
|
|
562
562
|
placeholder: "No auto-refresh"
|
|
563
563
|
})]
|
|
@@ -565,7 +565,7 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
565
565
|
]
|
|
566
566
|
})
|
|
567
567
|
}),
|
|
568
|
-
/* @__PURE__ */
|
|
568
|
+
/* @__PURE__ */ y(_, {
|
|
569
569
|
value: "renderer",
|
|
570
570
|
style: {
|
|
571
571
|
marginTop: 0,
|
|
@@ -574,13 +574,13 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
574
574
|
padding: "12px 16px",
|
|
575
575
|
minHeight: "300px"
|
|
576
576
|
},
|
|
577
|
-
children: /* @__PURE__ */
|
|
578
|
-
renderer:
|
|
579
|
-
template:
|
|
580
|
-
onChange:
|
|
577
|
+
children: /* @__PURE__ */ y(Ce, {
|
|
578
|
+
renderer: A,
|
|
579
|
+
template: M,
|
|
580
|
+
onChange: N
|
|
581
581
|
})
|
|
582
582
|
}),
|
|
583
|
-
/* @__PURE__ */
|
|
583
|
+
/* @__PURE__ */ y(_, {
|
|
584
584
|
value: "config",
|
|
585
585
|
style: {
|
|
586
586
|
marginTop: 0,
|
|
@@ -589,158 +589,158 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
589
589
|
padding: "12px 16px",
|
|
590
590
|
minHeight: "300px"
|
|
591
591
|
},
|
|
592
|
-
children: /* @__PURE__ */
|
|
592
|
+
children: /* @__PURE__ */ b("div", {
|
|
593
593
|
className: "space-y-4",
|
|
594
|
-
children: [/* @__PURE__ */
|
|
594
|
+
children: [/* @__PURE__ */ b("div", {
|
|
595
595
|
className: "space-y-3 p-3 border border-border-subtle rounded-lg bg-bg-sunken/30",
|
|
596
596
|
children: [
|
|
597
|
-
/* @__PURE__ */
|
|
597
|
+
/* @__PURE__ */ y("h4", {
|
|
598
598
|
className: "text-sm font-medium",
|
|
599
599
|
children: "Data Source"
|
|
600
600
|
}),
|
|
601
|
-
/* @__PURE__ */
|
|
601
|
+
/* @__PURE__ */ b("div", {
|
|
602
602
|
className: "space-y-2",
|
|
603
|
-
children: [/* @__PURE__ */
|
|
603
|
+
children: [/* @__PURE__ */ y(g, {
|
|
604
604
|
htmlFor: "dataSourceType",
|
|
605
605
|
children: "Source Type"
|
|
606
|
-
}), /* @__PURE__ */
|
|
606
|
+
}), /* @__PURE__ */ b("select", {
|
|
607
607
|
id: "dataSourceType",
|
|
608
|
-
value:
|
|
609
|
-
onChange: (e) =>
|
|
608
|
+
value: P,
|
|
609
|
+
onChange: (e) => F(e.target.value),
|
|
610
610
|
className: "w-full h-9 px-3 rounded-md border border-border-default bg-bg-surface text-sm",
|
|
611
611
|
children: [
|
|
612
|
-
/* @__PURE__ */
|
|
612
|
+
/* @__PURE__ */ y("option", {
|
|
613
613
|
value: "MOCK",
|
|
614
614
|
children: "Sample JSON"
|
|
615
615
|
}),
|
|
616
|
-
/* @__PURE__ */
|
|
616
|
+
/* @__PURE__ */ y("option", {
|
|
617
617
|
value: "DATASINK",
|
|
618
618
|
children: "DataSink"
|
|
619
619
|
}),
|
|
620
|
-
/* @__PURE__ */
|
|
620
|
+
/* @__PURE__ */ y("option", {
|
|
621
621
|
value: "REST_API",
|
|
622
622
|
children: "REST API"
|
|
623
623
|
}),
|
|
624
|
-
/* @__PURE__ */
|
|
624
|
+
/* @__PURE__ */ y("option", {
|
|
625
625
|
value: "GRAPHQL",
|
|
626
626
|
children: "GraphQL"
|
|
627
627
|
})
|
|
628
628
|
]
|
|
629
629
|
})]
|
|
630
630
|
}),
|
|
631
|
-
|
|
631
|
+
P === "DATASINK" && /* @__PURE__ */ b("div", {
|
|
632
632
|
className: "space-y-2",
|
|
633
|
-
children: [/* @__PURE__ */
|
|
633
|
+
children: [/* @__PURE__ */ y(g, {
|
|
634
634
|
htmlFor: "dataSinkKey",
|
|
635
635
|
children: "DataSink"
|
|
636
|
-
}), /* @__PURE__ */
|
|
637
|
-
value:
|
|
638
|
-
onChange: (e) =>
|
|
636
|
+
}), /* @__PURE__ */ y(te, {
|
|
637
|
+
value: I || null,
|
|
638
|
+
onChange: (e) => L(e || ""),
|
|
639
639
|
placeholder: "Select a DataSink..."
|
|
640
640
|
})]
|
|
641
641
|
}),
|
|
642
|
-
|
|
642
|
+
P === "REST_API" && /* @__PURE__ */ b("div", {
|
|
643
643
|
className: "space-y-3",
|
|
644
644
|
children: [
|
|
645
|
-
/* @__PURE__ */
|
|
645
|
+
/* @__PURE__ */ b("div", {
|
|
646
646
|
className: "space-y-2",
|
|
647
|
-
children: [/* @__PURE__ */
|
|
648
|
-
value:
|
|
649
|
-
onChange: (e) =>
|
|
647
|
+
children: [/* @__PURE__ */ y(g, { children: "Endpoint URL *" }), /* @__PURE__ */ y(h, {
|
|
648
|
+
value: De,
|
|
649
|
+
onChange: (e) => z(e.target.value),
|
|
650
650
|
placeholder: "https://api.example.com/data"
|
|
651
651
|
})]
|
|
652
652
|
}),
|
|
653
|
-
/* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ b("div", {
|
|
654
654
|
className: "space-y-2",
|
|
655
|
-
children: [/* @__PURE__ */
|
|
656
|
-
value:
|
|
657
|
-
onChange: (e) =>
|
|
655
|
+
children: [/* @__PURE__ */ y(g, { children: "HTTP Method" }), /* @__PURE__ */ b("select", {
|
|
656
|
+
value: B,
|
|
657
|
+
onChange: (e) => V(e.target.value),
|
|
658
658
|
className: "w-full h-9 px-3 rounded-md border border-border-default bg-bg-surface text-sm",
|
|
659
659
|
children: [
|
|
660
|
-
/* @__PURE__ */
|
|
660
|
+
/* @__PURE__ */ y("option", {
|
|
661
661
|
value: "GET",
|
|
662
662
|
children: "GET"
|
|
663
663
|
}),
|
|
664
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ y("option", {
|
|
665
665
|
value: "POST",
|
|
666
666
|
children: "POST"
|
|
667
667
|
}),
|
|
668
|
-
/* @__PURE__ */
|
|
668
|
+
/* @__PURE__ */ y("option", {
|
|
669
669
|
value: "PUT",
|
|
670
670
|
children: "PUT"
|
|
671
671
|
}),
|
|
672
|
-
/* @__PURE__ */
|
|
672
|
+
/* @__PURE__ */ y("option", {
|
|
673
673
|
value: "DELETE",
|
|
674
674
|
children: "DELETE"
|
|
675
675
|
})
|
|
676
676
|
]
|
|
677
677
|
})]
|
|
678
678
|
}),
|
|
679
|
-
/* @__PURE__ */
|
|
679
|
+
/* @__PURE__ */ b("div", {
|
|
680
680
|
className: "space-y-2",
|
|
681
|
-
children: [/* @__PURE__ */
|
|
682
|
-
value:
|
|
683
|
-
onChange: (e) =>
|
|
681
|
+
children: [/* @__PURE__ */ y(g, { children: "Headers (JSON)" }), /* @__PURE__ */ y(v, {
|
|
682
|
+
value: H,
|
|
683
|
+
onChange: (e) => U(e.target.value),
|
|
684
684
|
rows: 2,
|
|
685
685
|
placeholder: "{\"Content-Type\": \"application/json\"}",
|
|
686
686
|
className: "font-mono text-xs"
|
|
687
687
|
})]
|
|
688
688
|
}),
|
|
689
|
-
/* @__PURE__ */
|
|
689
|
+
/* @__PURE__ */ b("div", {
|
|
690
690
|
className: "space-y-2",
|
|
691
|
-
children: [/* @__PURE__ */
|
|
692
|
-
value:
|
|
693
|
-
onChange: (e) =>
|
|
691
|
+
children: [/* @__PURE__ */ y(g, { children: "Authentication" }), /* @__PURE__ */ b("select", {
|
|
692
|
+
value: W,
|
|
693
|
+
onChange: (e) => G(e.target.value),
|
|
694
694
|
className: "w-full h-9 px-3 rounded-md border border-border-default bg-bg-surface text-sm",
|
|
695
695
|
children: [
|
|
696
|
-
/* @__PURE__ */
|
|
696
|
+
/* @__PURE__ */ y("option", {
|
|
697
697
|
value: "none",
|
|
698
698
|
children: "None"
|
|
699
699
|
}),
|
|
700
|
-
/* @__PURE__ */
|
|
700
|
+
/* @__PURE__ */ y("option", {
|
|
701
701
|
value: "api_key",
|
|
702
702
|
children: "API Key"
|
|
703
703
|
}),
|
|
704
|
-
/* @__PURE__ */
|
|
704
|
+
/* @__PURE__ */ y("option", {
|
|
705
705
|
value: "bearer",
|
|
706
706
|
children: "Bearer Token"
|
|
707
707
|
}),
|
|
708
|
-
/* @__PURE__ */
|
|
708
|
+
/* @__PURE__ */ y("option", {
|
|
709
709
|
value: "basic",
|
|
710
710
|
children: "Basic Auth"
|
|
711
711
|
})
|
|
712
712
|
]
|
|
713
713
|
})]
|
|
714
714
|
}),
|
|
715
|
-
|
|
715
|
+
W !== "none" && /* @__PURE__ */ b("div", {
|
|
716
716
|
className: "space-y-2",
|
|
717
|
-
children: [/* @__PURE__ */
|
|
717
|
+
children: [/* @__PURE__ */ y(g, { children: W === "basic" ? "Credentials (user:pass)" : "Token/Key" }), /* @__PURE__ */ y(h, {
|
|
718
718
|
type: "password",
|
|
719
|
-
value:
|
|
720
|
-
onChange: (e) =>
|
|
721
|
-
placeholder:
|
|
719
|
+
value: Oe,
|
|
720
|
+
onChange: (e) => K(e.target.value),
|
|
721
|
+
placeholder: W === "basic" ? "username:password" : "Enter token or API key"
|
|
722
722
|
})]
|
|
723
723
|
}),
|
|
724
|
-
(
|
|
724
|
+
(B === "POST" || B === "PUT") && /* @__PURE__ */ b("div", {
|
|
725
725
|
className: "space-y-2",
|
|
726
|
-
children: [/* @__PURE__ */
|
|
727
|
-
value:
|
|
728
|
-
onChange: (e) =>
|
|
726
|
+
children: [/* @__PURE__ */ y(g, { children: "Request Body (JSON)" }), /* @__PURE__ */ y(v, {
|
|
727
|
+
value: ke,
|
|
728
|
+
onChange: (e) => q(e.target.value),
|
|
729
729
|
rows: 3,
|
|
730
730
|
placeholder: "{\"key\": \"value\"}",
|
|
731
731
|
className: "font-mono text-xs"
|
|
732
732
|
})]
|
|
733
733
|
}),
|
|
734
|
-
/* @__PURE__ */
|
|
734
|
+
/* @__PURE__ */ b("div", {
|
|
735
735
|
className: "space-y-2",
|
|
736
736
|
children: [
|
|
737
|
-
/* @__PURE__ */
|
|
738
|
-
/* @__PURE__ */
|
|
739
|
-
value:
|
|
740
|
-
onChange: (e) =>
|
|
737
|
+
/* @__PURE__ */ y(g, { children: "Data Path (optional)" }),
|
|
738
|
+
/* @__PURE__ */ y(h, {
|
|
739
|
+
value: J,
|
|
740
|
+
onChange: (e) => Y(e.target.value),
|
|
741
741
|
placeholder: "$.data.items or .data.items"
|
|
742
742
|
}),
|
|
743
|
-
/* @__PURE__ */
|
|
743
|
+
/* @__PURE__ */ y("p", {
|
|
744
744
|
className: "text-xs text-text-secondary",
|
|
745
745
|
children: "Extract data from response using JSONPath"
|
|
746
746
|
})
|
|
@@ -748,57 +748,57 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
748
748
|
})
|
|
749
749
|
]
|
|
750
750
|
}),
|
|
751
|
-
|
|
751
|
+
P === "GRAPHQL" && /* @__PURE__ */ b("div", {
|
|
752
752
|
className: "space-y-3",
|
|
753
753
|
children: [
|
|
754
|
-
/* @__PURE__ */
|
|
754
|
+
/* @__PURE__ */ b("div", {
|
|
755
755
|
className: "space-y-2",
|
|
756
|
-
children: [/* @__PURE__ */
|
|
757
|
-
value:
|
|
758
|
-
onChange: (e) =>
|
|
756
|
+
children: [/* @__PURE__ */ y(g, { children: "GraphQL Endpoint *" }), /* @__PURE__ */ y(h, {
|
|
757
|
+
value: Ae,
|
|
758
|
+
onChange: (e) => X(e.target.value),
|
|
759
759
|
placeholder: "https://api.example.com/graphql"
|
|
760
760
|
})]
|
|
761
761
|
}),
|
|
762
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ b("div", {
|
|
763
763
|
className: "space-y-2",
|
|
764
|
-
children: [/* @__PURE__ */
|
|
765
|
-
value:
|
|
766
|
-
onChange: (e) =>
|
|
764
|
+
children: [/* @__PURE__ */ y(g, { children: "Query *" }), /* @__PURE__ */ y(v, {
|
|
765
|
+
value: je,
|
|
766
|
+
onChange: (e) => Z(e.target.value),
|
|
767
767
|
rows: 5,
|
|
768
768
|
placeholder: "query GetData($limit: Int) {\n items(limit: $limit) {\n id\n name\n }\n}",
|
|
769
769
|
className: "font-mono text-xs"
|
|
770
770
|
})]
|
|
771
771
|
}),
|
|
772
|
-
/* @__PURE__ */
|
|
772
|
+
/* @__PURE__ */ b("div", {
|
|
773
773
|
className: "space-y-2",
|
|
774
|
-
children: [/* @__PURE__ */
|
|
775
|
-
value:
|
|
774
|
+
children: [/* @__PURE__ */ y(g, { children: "Variables (JSON, optional)" }), /* @__PURE__ */ y(v, {
|
|
775
|
+
value: Me,
|
|
776
776
|
onChange: (e) => Q(e.target.value),
|
|
777
777
|
rows: 2,
|
|
778
778
|
placeholder: "{\"limit\": 10}",
|
|
779
779
|
className: "font-mono text-xs"
|
|
780
780
|
})]
|
|
781
781
|
}),
|
|
782
|
-
/* @__PURE__ */
|
|
782
|
+
/* @__PURE__ */ b("div", {
|
|
783
783
|
className: "space-y-2",
|
|
784
|
-
children: [/* @__PURE__ */
|
|
785
|
-
value:
|
|
786
|
-
onChange: (e) =>
|
|
784
|
+
children: [/* @__PURE__ */ y(g, { children: "Headers (JSON, optional)" }), /* @__PURE__ */ y(v, {
|
|
785
|
+
value: H,
|
|
786
|
+
onChange: (e) => U(e.target.value),
|
|
787
787
|
rows: 2,
|
|
788
788
|
placeholder: "{\"Authorization\": \"Bearer token\"}",
|
|
789
789
|
className: "font-mono text-xs"
|
|
790
790
|
})]
|
|
791
791
|
}),
|
|
792
|
-
/* @__PURE__ */
|
|
792
|
+
/* @__PURE__ */ b("div", {
|
|
793
793
|
className: "space-y-2",
|
|
794
794
|
children: [
|
|
795
|
-
/* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
-
value:
|
|
798
|
-
onChange: (e) =>
|
|
795
|
+
/* @__PURE__ */ y(g, { children: "Data Path (optional)" }),
|
|
796
|
+
/* @__PURE__ */ y(h, {
|
|
797
|
+
value: J,
|
|
798
|
+
onChange: (e) => Y(e.target.value),
|
|
799
799
|
placeholder: ".data.items"
|
|
800
800
|
}),
|
|
801
|
-
/* @__PURE__ */
|
|
801
|
+
/* @__PURE__ */ y("p", {
|
|
802
802
|
className: "text-xs text-text-secondary",
|
|
803
803
|
children: "Extract data from GraphQL response"
|
|
804
804
|
})
|
|
@@ -806,38 +806,38 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
806
806
|
})
|
|
807
807
|
]
|
|
808
808
|
}),
|
|
809
|
-
c && /* @__PURE__ */
|
|
809
|
+
c && /* @__PURE__ */ b("div", {
|
|
810
810
|
className: "space-y-2",
|
|
811
811
|
children: [
|
|
812
|
-
/* @__PURE__ */
|
|
812
|
+
/* @__PURE__ */ y(g, {
|
|
813
813
|
htmlFor: "parserId",
|
|
814
814
|
children: "Parser (optional)"
|
|
815
815
|
}),
|
|
816
|
-
/* @__PURE__ */
|
|
816
|
+
/* @__PURE__ */ y(ne, {
|
|
817
817
|
consoleId: c,
|
|
818
|
-
value:
|
|
819
|
-
onChange: (e) =>
|
|
820
|
-
filterInputSinkKey:
|
|
818
|
+
value: Ee || null,
|
|
819
|
+
onChange: (e) => R(e || ""),
|
|
820
|
+
filterInputSinkKey: P === "DATASINK" ? I : void 0,
|
|
821
821
|
filterStatus: void 0,
|
|
822
822
|
placeholder: "Select a parser..."
|
|
823
823
|
}),
|
|
824
|
-
/* @__PURE__ */
|
|
824
|
+
/* @__PURE__ */ y("p", {
|
|
825
825
|
className: "text-xs text-text-secondary",
|
|
826
826
|
children: "Transform data using a parser before display"
|
|
827
827
|
})
|
|
828
828
|
]
|
|
829
829
|
})
|
|
830
830
|
]
|
|
831
|
-
}), Be && Re && /* @__PURE__ */
|
|
832
|
-
config:
|
|
833
|
-
onChange:
|
|
831
|
+
}), Be && Re && /* @__PURE__ */ y(Re, {
|
|
832
|
+
config: O,
|
|
833
|
+
onChange: k
|
|
834
834
|
})]
|
|
835
835
|
})
|
|
836
836
|
})
|
|
837
837
|
]
|
|
838
838
|
})]
|
|
839
839
|
}),
|
|
840
|
-
/* @__PURE__ */
|
|
840
|
+
/* @__PURE__ */ b(me, {
|
|
841
841
|
style: {
|
|
842
842
|
display: "flex",
|
|
843
843
|
flexDirection: "row",
|
|
@@ -846,7 +846,7 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
846
846
|
borderTop: "1px solid var(--border)",
|
|
847
847
|
flexShrink: 0
|
|
848
848
|
},
|
|
849
|
-
children: [/* @__PURE__ */ m
|
|
849
|
+
children: [/* @__PURE__ */ y(m, {
|
|
850
850
|
variant: "ghost",
|
|
851
851
|
size: "sm",
|
|
852
852
|
onClick: () => {
|
|
@@ -854,9 +854,9 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
854
854
|
e > 0 ? p($[e - 1].id) : o();
|
|
855
855
|
},
|
|
856
856
|
children: f === $[0]?.id ? "Cancel" : "Back"
|
|
857
|
-
}), /* @__PURE__ */
|
|
857
|
+
}), /* @__PURE__ */ b("div", {
|
|
858
858
|
className: "flex gap-2",
|
|
859
|
-
children: [f !== $[$.length - 1]?.id && x && /* @__PURE__ */ m
|
|
859
|
+
children: [f !== $[$.length - 1]?.id && x && /* @__PURE__ */ y(m, {
|
|
860
860
|
variant: "outline",
|
|
861
861
|
size: "sm",
|
|
862
862
|
onClick: () => {
|
|
@@ -864,10 +864,10 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
864
864
|
e < $.length - 1 && p($[e + 1].id);
|
|
865
865
|
},
|
|
866
866
|
children: "Next"
|
|
867
|
-
}), /* @__PURE__ */ m
|
|
867
|
+
}), /* @__PURE__ */ y(m, {
|
|
868
868
|
size: "sm",
|
|
869
869
|
onClick: Ie,
|
|
870
|
-
disabled: !x || !
|
|
870
|
+
disabled: !x || !w.trim() || A !== "BIGCONSOLE" && !M,
|
|
871
871
|
children: d ? "Add Widget" : "Save"
|
|
872
872
|
})]
|
|
873
873
|
})]
|
|
@@ -877,6 +877,6 @@ var we = c(function({ renderer: e, template: t, onChange: n }) {
|
|
|
877
877
|
});
|
|
878
878
|
});
|
|
879
879
|
//#endregion
|
|
880
|
-
export {
|
|
880
|
+
export { C as default };
|
|
881
881
|
|
|
882
882
|
//# sourceMappingURL=WidgetConfigDialog.js.map
|