@burdenoff/microfe-bigconsole 2026.1119.7 → 2026.1119.9
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/components/dashboard/ExportDashboardDialog.js +129 -117
- package/dist/bigconsole/components/embed/widgets/ChartEmbed.js +70 -66
- package/dist/bigconsole/components/insights/GeneratedFormattingReview.d.ts +21 -0
- package/dist/bigconsole/components/insights/GeneratedFormattingReview.js +90 -44
- package/dist/bigconsole/components/parser/ParserCard.d.ts +3 -1
- package/dist/bigconsole/components/parser/ParserCard.js +125 -120
- package/dist/bigconsole/components/parser/ParserScopeBadge.d.ts +6 -0
- package/dist/bigconsole/components/parser/ParserScopeBadge.js +23 -0
- package/dist/bigconsole/components/widgets/chart/ChartWidget.js +1 -0
- package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +5 -1
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.js +4 -1
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.js +53 -45
- package/dist/bigconsole/components/widgets/chart/charts/ComboChart.js +5 -1
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.js +4 -1
- package/dist/bigconsole/components/widgets/chart/charts/referenceElements.d.ts +13 -11
- package/dist/bigconsole/components/widgets/chart/charts/referenceElements.js +58 -29
- package/dist/bigconsole/components/widgets/chart/charts/types.d.ts +8 -1
- package/dist/bigconsole/components/widgets/chart/referenceLineDraft.js +26 -23
- package/dist/bigconsole/components/widgets/utils/conditionalFormat.d.ts +41 -0
- package/dist/bigconsole/components/widgets/utils/conditionalFormat.js +80 -44
- package/dist/bigconsole/hooks/useExportDashboard.d.ts +14 -2
- package/dist/bigconsole/hooks/useExportDashboard.js +45 -41
- package/dist/bigconsole/hooks/useParserOperations.d.ts +6 -0
- package/dist/bigconsole/hooks/useParserOperations.js +64 -65
- package/dist/bigconsole/pages/DataParsersPage.js +201 -172
- package/dist/bigconsole/pages/InsightsPage.js +458 -451
- package/dist/bigconsole/store/parserScope.js +9 -6
- package/dist/bigconsole/types/index.d.ts +16 -0
- package/dist/bigconsole/utils/parserScopeFilter.d.ts +14 -0
- package/dist/bigconsole/utils/parserScopeFilter.js +25 -0
- package/dist/bigconsole/utils/pipelineExecutionTimeline.d.ts +13 -1
- package/dist/bigconsole/utils/pipelineExecutionTimeline.js +26 -3
- package/dist/generated/global-operations.d.ts +45 -6
- package/dist/generated/global-types.d.ts +5839 -804
- package/dist/generated/wspace-operations.d.ts +48 -1
- package/dist/generated/wspace-operations.js +86 -7
- package/dist/generated/wspace-types.d.ts +1339 -6
- package/package.json +1 -1
|
@@ -8,170 +8,175 @@ import ne from "../hooks/useExportParser.js";
|
|
|
8
8
|
import { ParserCard as re } from "../components/parser/ParserCard.js";
|
|
9
9
|
import { ImportParserDialog as ie } from "../components/parser/ImportParserDialog.js";
|
|
10
10
|
import "../components/common/index.js";
|
|
11
|
-
import { parsersListControls as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
11
|
+
import { parsersListControls as ae } from "../assistant/pageControls.js";
|
|
12
|
+
import { matchesParserScopeFilter as oe, parserScopeDashboardOptions as se, toParserScopeFilter as ce } from "../utils/parserScopeFilter.js";
|
|
13
|
+
import { BIGCONSOLE_PERMISSIONS as s } from "../../constants/permissions.js";
|
|
14
|
+
import { useTr as le } from "../../shared/hooks/useTr.js";
|
|
15
|
+
import { memo as c, useCallback as l, useMemo as u, useState as d } from "react";
|
|
16
|
+
import { useParams as ue } from "react-router";
|
|
17
|
+
import { AccessDenied as de, PermissionButton as fe } from "@burdenoff/fe-libs/shared/components";
|
|
18
|
+
import { usePermissions as pe } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
19
|
+
import { AlertCircle as me, FileCode2 as he, LayoutGrid as ge, List as _e, Plus as f, Search as ve, Upload as ye, X as be } from "lucide-react";
|
|
20
|
+
import { AuroraBackground as xe, Badge as Se, Button as p, CTAOverflowMenu as Ce, GradientText as we, IllustratedEmptyState as m, Input as Te, PagePurpose as Ee, Select as h, SelectContent as g, SelectItem as _, SelectTrigger as v, SelectValue as y, Spinner as De } from "@burdenoff/fe-libs/ui";
|
|
21
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
22
|
+
import { useAssistantPageControls as Oe } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
|
|
22
23
|
// src/bigconsole/pages/DataParsersPage.tsx
|
|
23
|
-
var
|
|
24
|
-
let
|
|
24
|
+
var ke = "default", S = c(function() {
|
|
25
|
+
let c = e(), { consoleId: S } = ue(), C = le(), w = u(() => [
|
|
25
26
|
{
|
|
26
27
|
value: "all",
|
|
27
|
-
label:
|
|
28
|
+
label: C("bigconsole.parsers.filters.allTypes", "All Types")
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
31
|
value: "jq",
|
|
31
|
-
label:
|
|
32
|
+
label: C("bigconsole.parsers.filters.jq", "JQ")
|
|
32
33
|
},
|
|
33
34
|
{
|
|
34
35
|
value: "jsonata",
|
|
35
|
-
label:
|
|
36
|
+
label: C("bigconsole.parsers.filters.jsonata", "JSONata")
|
|
36
37
|
}
|
|
37
|
-
], [
|
|
38
|
+
], [C]), T = u(() => [
|
|
38
39
|
{
|
|
39
40
|
value: "all",
|
|
40
|
-
label:
|
|
41
|
+
label: C("bigconsole.parsers.filters.allStatus", "All Status")
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
44
|
value: "active",
|
|
44
|
-
label:
|
|
45
|
+
label: C("bigconsole.parsers.filters.active", "Active")
|
|
45
46
|
},
|
|
46
47
|
{
|
|
47
48
|
value: "inactive",
|
|
48
|
-
label:
|
|
49
|
+
label: C("bigconsole.parsers.filters.inactive", "Inactive")
|
|
49
50
|
}
|
|
50
|
-
], [
|
|
51
|
+
], [C]), { hasPermission: E, isLoading: D } = pe(), O = E(s.PARSER_READ), k = E(s.PARSER_CREATE), Ae = E(s.PARSER_UPDATE), je = E(s.PARSER_DELETE), A = S || ke, j = !S, M = o((e) => e.typeFilter), N = o((e) => e.statusFilter), P = o((e) => e.searchQuery), F = o((e) => e.setTypeFilter), I = o((e) => e.setStatusFilter), L = o((e) => e.setSearchQuery), [Me, R] = d(!1), [Ne, z] = d(null), [Pe, B] = d(!1), [V, Fe] = d("grid"), [H, U] = d("all"), Ie = u(() => [{
|
|
51
52
|
mode: "grid",
|
|
52
|
-
Icon:
|
|
53
|
-
label:
|
|
53
|
+
Icon: ge,
|
|
54
|
+
label: C("bigconsole.parsers.list.gridView", "Grid view")
|
|
54
55
|
}, {
|
|
55
56
|
mode: "list",
|
|
56
|
-
Icon:
|
|
57
|
-
label:
|
|
58
|
-
}], [
|
|
59
|
-
consoleId:
|
|
57
|
+
Icon: _e,
|
|
58
|
+
label: C("bigconsole.parsers.list.listView", "List view")
|
|
59
|
+
}], [C]), { loading: W, error: G, parsers: K, deleteParser: q, refetch: J } = te({
|
|
60
|
+
consoleId: A,
|
|
61
|
+
allScopes: j,
|
|
60
62
|
skipFetch: !1
|
|
61
|
-
}), { downloadParser:
|
|
62
|
-
if (M && e.type !== M || N && e.status !== N) return !1;
|
|
63
|
+
}), Le = u(() => j ? se(K) : [], [j, K]), Y = H.startsWith("dashboard:") && !Le.some((e) => e.value === H) ? "all" : H, { downloadParser: Re } = ne(), X = u(() => K ? K.filter((e) => {
|
|
64
|
+
if (!oe(e, Y) || M && e.type !== M || N && e.status !== N) return !1;
|
|
63
65
|
if (P) {
|
|
64
66
|
let t = P.toLowerCase(), n = e.name?.toLowerCase().includes(t), r = e.description?.toLowerCase().includes(t), i = e.inputSinkKey?.toLowerCase().includes(t), a = e.outputKey?.toLowerCase().includes(t);
|
|
65
67
|
if (!n && !r && !i && !a) return !1;
|
|
66
68
|
}
|
|
67
69
|
return !0;
|
|
68
70
|
}) : [], [
|
|
69
|
-
|
|
71
|
+
K,
|
|
72
|
+
Y,
|
|
70
73
|
M,
|
|
71
74
|
N,
|
|
72
75
|
P
|
|
73
|
-
]),
|
|
76
|
+
]), Z = l((e) => {
|
|
74
77
|
F(e === "all" ? null : e);
|
|
75
|
-
}, [F]),
|
|
78
|
+
}, [F]), Q = l((e) => {
|
|
76
79
|
I(e === "all" ? null : e);
|
|
77
|
-
}, [I]),
|
|
80
|
+
}, [I]), ze = l((e) => {
|
|
81
|
+
U(ce(e));
|
|
82
|
+
}, []), Be = l((e) => {
|
|
78
83
|
L(e.target.value);
|
|
79
|
-
}, [L]),
|
|
80
|
-
|
|
81
|
-
}, [
|
|
82
|
-
|
|
83
|
-
}, [
|
|
84
|
-
|
|
85
|
-
}, [
|
|
84
|
+
}, [L]), Ve = l(() => {
|
|
85
|
+
c(S ? `/dashboards/${S}/parsers/new` : "/parsers/new");
|
|
86
|
+
}, [c, S]), He = l((e) => {
|
|
87
|
+
c(S ? `/dashboards/${S}/parsers/${e}` : `/parsers/${e}`);
|
|
88
|
+
}, [c, S]), Ue = l((e) => {
|
|
89
|
+
c(S ? `/dashboards/${S}/parsers/${e}/edit` : `/parsers/${e}/edit`);
|
|
90
|
+
}, [c, S]), We = l(async (e) => {
|
|
86
91
|
let a = await n({
|
|
87
|
-
title:
|
|
88
|
-
message:
|
|
89
|
-
okButtonTitle:
|
|
90
|
-
cancelButtonTitle:
|
|
92
|
+
title: C("bigconsole.parsers.confirmDelete.title", "Delete parser?"),
|
|
93
|
+
message: C("bigconsole.parsers.confirmDelete.message", "Are you sure you want to delete this parser?"),
|
|
94
|
+
okButtonTitle: C("bigconsole.parsers.actions.delete", "Delete"),
|
|
95
|
+
cancelButtonTitle: C("bigconsole.parsers.actions.cancel", "Cancel")
|
|
91
96
|
});
|
|
92
|
-
if (a === null ? window.confirm(
|
|
97
|
+
if (a === null ? window.confirm(C("bigconsole.parsers.confirmDelete.message", "Are you sure you want to delete this parser?")) : a) {
|
|
93
98
|
r("medium"), R(!0), z(e);
|
|
94
99
|
try {
|
|
95
|
-
await
|
|
100
|
+
await q(e), t() && i("success");
|
|
96
101
|
} catch {
|
|
97
102
|
t() && i("error");
|
|
98
103
|
} finally {
|
|
99
104
|
R(!1), z(null);
|
|
100
105
|
}
|
|
101
106
|
}
|
|
102
|
-
}, [
|
|
103
|
-
F(null), I(null), L("");
|
|
107
|
+
}, [q, C]), Ge = l(() => {
|
|
108
|
+
U("all"), F(null), I(null), L("");
|
|
104
109
|
}, [
|
|
105
110
|
F,
|
|
106
111
|
I,
|
|
107
112
|
L
|
|
108
|
-
]),
|
|
109
|
-
let t =
|
|
110
|
-
t && await
|
|
111
|
-
}, [
|
|
113
|
+
]), Ke = l(async (e) => {
|
|
114
|
+
let t = K.find((t) => t.id === e);
|
|
115
|
+
t && await Re(e, t.name);
|
|
116
|
+
}, [K, Re]), qe = l(() => {
|
|
112
117
|
B(!0);
|
|
113
|
-
}, []),
|
|
114
|
-
|
|
115
|
-
}, [
|
|
116
|
-
tr:
|
|
117
|
-
typeOptions:
|
|
118
|
-
statusOptions:
|
|
118
|
+
}, []), Je = l((e, t, n) => {
|
|
119
|
+
J();
|
|
120
|
+
}, [J]), $ = Y !== "all" || M !== null || N !== null || (P?.length ?? 0) > 0, Ye = u(() => !D && O && !G ? ae({
|
|
121
|
+
tr: C,
|
|
122
|
+
typeOptions: w,
|
|
123
|
+
statusOptions: T,
|
|
119
124
|
type: M ?? "all",
|
|
120
125
|
status: N ?? "all",
|
|
121
|
-
setType:
|
|
122
|
-
setStatus:
|
|
126
|
+
setType: Z,
|
|
127
|
+
setStatus: Q,
|
|
123
128
|
setSearch: L
|
|
124
129
|
}) : null, [
|
|
125
|
-
|
|
130
|
+
C,
|
|
131
|
+
D,
|
|
126
132
|
O,
|
|
127
|
-
|
|
128
|
-
|
|
133
|
+
G,
|
|
134
|
+
w,
|
|
129
135
|
T,
|
|
130
|
-
E,
|
|
131
136
|
M,
|
|
132
137
|
N,
|
|
133
|
-
|
|
134
|
-
|
|
138
|
+
Z,
|
|
139
|
+
Q,
|
|
135
140
|
L
|
|
136
141
|
]);
|
|
137
|
-
return
|
|
142
|
+
return Oe(Ye), G ? /* @__PURE__ */ b("div", {
|
|
138
143
|
style: { padding: "var(--space-pagePadding)" },
|
|
139
|
-
children: /* @__PURE__ */
|
|
144
|
+
children: /* @__PURE__ */ b(a, {
|
|
140
145
|
tone: "danger",
|
|
141
146
|
headingLevel: 2,
|
|
142
|
-
title:
|
|
147
|
+
title: C("bigconsole.parsers.errors.loadFailed", "Failed to load Parsers"),
|
|
143
148
|
description: "The parser list could not be fetched. Retry, or check that the BigConsole service is reachable.",
|
|
144
|
-
icon: /* @__PURE__ */
|
|
145
|
-
actions: /* @__PURE__ */
|
|
149
|
+
icon: /* @__PURE__ */ b(me, { className: "h-icon-md w-icon-md text-[var(--color-status-error-text)]" }),
|
|
150
|
+
actions: /* @__PURE__ */ b(p, {
|
|
146
151
|
size: "sm",
|
|
147
|
-
onClick: () =>
|
|
148
|
-
children:
|
|
152
|
+
onClick: () => J(),
|
|
153
|
+
children: C("bigconsole.parsers.actions.tryAgain", "Try Again")
|
|
149
154
|
}),
|
|
150
155
|
"data-testid": "parsers-error",
|
|
151
|
-
children: /* @__PURE__ */
|
|
156
|
+
children: /* @__PURE__ */ b("p", {
|
|
152
157
|
className: "font-mono text-xs break-words text-text-secondary",
|
|
153
|
-
children:
|
|
158
|
+
children: G.message
|
|
154
159
|
})
|
|
155
160
|
})
|
|
156
|
-
}) : !
|
|
157
|
-
title:
|
|
158
|
-
description:
|
|
159
|
-
}) : /* @__PURE__ */
|
|
161
|
+
}) : !D && !O ? /* @__PURE__ */ b(de, {
|
|
162
|
+
title: C("bigconsole.parsers.accessDenied.title", "Access Denied"),
|
|
163
|
+
description: C("bigconsole.parsers.accessDenied.list", "You don't have permission to view parsers.")
|
|
164
|
+
}) : /* @__PURE__ */ x("div", {
|
|
160
165
|
style: {
|
|
161
166
|
minHeight: "100vh",
|
|
162
167
|
backgroundColor: "var(--color-bg-canvas)"
|
|
163
168
|
},
|
|
164
169
|
children: [
|
|
165
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ x("div", {
|
|
166
171
|
className: "relative overflow-hidden border-b border-[var(--color-border-seam)] bg-[image:var(--gradient-gloss-card)]",
|
|
167
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ b(xe, { intensity: "subtle" }), /* @__PURE__ */ b("div", {
|
|
168
173
|
className: "relative",
|
|
169
174
|
style: { padding: "var(--space-pagePadding)" },
|
|
170
|
-
children: /* @__PURE__ */
|
|
175
|
+
children: /* @__PURE__ */ x("div", {
|
|
171
176
|
className: "flex flex-wrap items-center justify-between gap-form-gap",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
177
|
+
children: [/* @__PURE__ */ x("div", {
|
|
173
178
|
className: "flex min-w-0 items-center gap-form-gap",
|
|
174
|
-
children: [/* @__PURE__ */
|
|
179
|
+
children: [/* @__PURE__ */ b("div", {
|
|
175
180
|
className: "flex shrink-0 items-center justify-center",
|
|
176
181
|
style: {
|
|
177
182
|
height: "var(--size-controlHeight-lg)",
|
|
@@ -179,27 +184,27 @@ var Te = "default", C = l(function() {
|
|
|
179
184
|
borderRadius: "var(--radius-card)",
|
|
180
185
|
backgroundColor: "var(--color-action-primary-bg)"
|
|
181
186
|
},
|
|
182
|
-
children: /* @__PURE__ */
|
|
187
|
+
children: /* @__PURE__ */ b(he, { style: {
|
|
183
188
|
height: "var(--size-icon-lg)",
|
|
184
189
|
width: "var(--size-icon-lg)",
|
|
185
190
|
color: "var(--color-action-primary-text)"
|
|
186
191
|
} })
|
|
187
|
-
}), /* @__PURE__ */
|
|
192
|
+
}), /* @__PURE__ */ x("div", {
|
|
188
193
|
className: "min-w-0",
|
|
189
|
-
children: [/* @__PURE__ */
|
|
194
|
+
children: [/* @__PURE__ */ b("h1", {
|
|
190
195
|
className: "m-0 text-2xl font-bold text-text-primary sm:text-3xl",
|
|
191
|
-
children: /* @__PURE__ */
|
|
192
|
-
}), /* @__PURE__ */
|
|
196
|
+
children: /* @__PURE__ */ b(we, { children: C("bigconsole.parsers.list.title", "Data Parsers") })
|
|
197
|
+
}), /* @__PURE__ */ b("p", {
|
|
193
198
|
className: "m-0 text-sm text-text-secondary",
|
|
194
|
-
children:
|
|
199
|
+
children: C("bigconsole.parsers.list.subtitle", "Transform and process data with JQ or JSONata expressions")
|
|
195
200
|
})]
|
|
196
201
|
})]
|
|
197
|
-
}), /* @__PURE__ */
|
|
202
|
+
}), /* @__PURE__ */ x("div", {
|
|
198
203
|
className: "flex w-full flex-wrap items-center gap-control-gap lg:w-auto lg:flex-nowrap",
|
|
199
204
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ x("div", {
|
|
201
206
|
className: "relative min-w-[200px] flex-1 lg:w-80 lg:flex-none",
|
|
202
|
-
children: [/* @__PURE__ */
|
|
207
|
+
children: [/* @__PURE__ */ b(ve, {
|
|
203
208
|
"aria-hidden": "true",
|
|
204
209
|
style: {
|
|
205
210
|
position: "absolute",
|
|
@@ -210,28 +215,28 @@ var Te = "default", C = l(function() {
|
|
|
210
215
|
width: "var(--size-icon-sm)",
|
|
211
216
|
color: "var(--color-text-muted)"
|
|
212
217
|
}
|
|
213
|
-
}), /* @__PURE__ */
|
|
218
|
+
}), /* @__PURE__ */ b(Te, {
|
|
214
219
|
type: "text",
|
|
215
|
-
"aria-label":
|
|
216
|
-
placeholder:
|
|
220
|
+
"aria-label": C("bigconsole.parsers.list.searchPlaceholder", "Search parsers..."),
|
|
221
|
+
placeholder: C("bigconsole.parsers.list.searchPlaceholder", "Search parsers..."),
|
|
217
222
|
value: P || "",
|
|
218
|
-
onChange:
|
|
223
|
+
onChange: Be,
|
|
219
224
|
className: "min-h-11",
|
|
220
225
|
style: { paddingLeft: "var(--size-controlHeight-md)" }
|
|
221
226
|
})]
|
|
222
227
|
}),
|
|
223
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ b("div", {
|
|
224
229
|
role: "group",
|
|
225
|
-
"aria-label":
|
|
230
|
+
"aria-label": C("bigconsole.parsers.list.viewModeAriaLabel", "Parser layout"),
|
|
226
231
|
className: "flex shrink-0 items-center overflow-hidden rounded-md border border-[var(--color-border-default)]",
|
|
227
|
-
children:
|
|
232
|
+
children: Ie.map(({ mode: e, Icon: t, label: n }) => /* @__PURE__ */ b("button", {
|
|
228
233
|
type: "button",
|
|
229
|
-
onClick: () =>
|
|
234
|
+
onClick: () => Fe(e),
|
|
230
235
|
"aria-label": n,
|
|
231
236
|
"aria-pressed": V === e,
|
|
232
237
|
title: n,
|
|
233
238
|
className: `flex min-h-11 min-w-11 items-center justify-center motion-safe:transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring ${V === e ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"}`,
|
|
234
|
-
children: /* @__PURE__ */
|
|
239
|
+
children: /* @__PURE__ */ b(t, {
|
|
235
240
|
"aria-hidden": "true",
|
|
236
241
|
style: {
|
|
237
242
|
height: "var(--size-icon-sm)",
|
|
@@ -240,20 +245,20 @@ var Te = "default", C = l(function() {
|
|
|
240
245
|
})
|
|
241
246
|
}, e))
|
|
242
247
|
}),
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
primary:
|
|
245
|
-
label:
|
|
246
|
-
onSelect:
|
|
247
|
-
icon: /* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ b(Ce, {
|
|
249
|
+
primary: k ? {
|
|
250
|
+
label: C("bigconsole.parsers.actions.create", "Create Parser"),
|
|
251
|
+
onSelect: Ve,
|
|
252
|
+
icon: /* @__PURE__ */ b(f, { style: {
|
|
248
253
|
marginRight: "var(--space-iconGap)",
|
|
249
254
|
height: "var(--size-icon-sm)",
|
|
250
255
|
width: "var(--size-icon-sm)"
|
|
251
256
|
} })
|
|
252
257
|
} : void 0,
|
|
253
|
-
actions:
|
|
254
|
-
label:
|
|
255
|
-
onSelect:
|
|
256
|
-
icon: /* @__PURE__ */
|
|
258
|
+
actions: k ? [{
|
|
259
|
+
label: C("bigconsole.parsers.actions.import", "Import"),
|
|
260
|
+
onSelect: qe,
|
|
261
|
+
icon: /* @__PURE__ */ b(ye, { style: {
|
|
257
262
|
height: "var(--size-icon-sm)",
|
|
258
263
|
width: "var(--size-icon-sm)"
|
|
259
264
|
} })
|
|
@@ -264,127 +269,151 @@ var Te = "default", C = l(function() {
|
|
|
264
269
|
})
|
|
265
270
|
})]
|
|
266
271
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ b("div", {
|
|
268
273
|
style: { padding: "var(--space-pagePadding)" },
|
|
269
|
-
children: /* @__PURE__ */
|
|
270
|
-
/* @__PURE__ */
|
|
274
|
+
children: /* @__PURE__ */ x(ee, { children: [
|
|
275
|
+
/* @__PURE__ */ b(Ee, {
|
|
271
276
|
className: "max-w-[80ch]",
|
|
272
|
-
children:
|
|
277
|
+
children: C("bigconsole.parsers.list.purpose", "Parsers define how raw input — log lines, CSVs, JSON, or arbitrary text — is read and mapped into structured fields. Build a parser once, test it against a sample, then reuse it across pipelines so every source lands in a consistent, queryable shape.")
|
|
273
278
|
}),
|
|
274
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ b(a, {
|
|
275
280
|
emphasis: "muted",
|
|
276
281
|
padding: "compact",
|
|
277
282
|
headingLevel: 2,
|
|
278
|
-
title:
|
|
283
|
+
title: C("bigconsole.parsers.list.findTitle", "Find a parser"),
|
|
279
284
|
headerClassName: "mb-control-gap",
|
|
280
285
|
"data-testid": "parser-filters",
|
|
281
|
-
children: /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ x("div", {
|
|
282
287
|
className: "flex flex-wrap items-center gap-control-gap",
|
|
283
288
|
children: [
|
|
284
|
-
/* @__PURE__ */
|
|
289
|
+
j && /* @__PURE__ */ x(h, {
|
|
290
|
+
value: Y,
|
|
291
|
+
onValueChange: ze,
|
|
292
|
+
children: [/* @__PURE__ */ b(v, {
|
|
293
|
+
"aria-label": C("bigconsole.parsers.filters.scopeAriaLabel", "Filter by scope"),
|
|
294
|
+
className: "min-h-control-md w-full sm:w-[200px]",
|
|
295
|
+
"data-testid": "parser-scope-filter",
|
|
296
|
+
children: /* @__PURE__ */ b(y, { placeholder: C("bigconsole.parsers.filters.allScopes", "All Scopes") })
|
|
297
|
+
}), /* @__PURE__ */ x(g, { children: [
|
|
298
|
+
/* @__PURE__ */ b(_, {
|
|
299
|
+
value: "all",
|
|
300
|
+
children: C("bigconsole.parsers.filters.allScopes", "All Scopes")
|
|
301
|
+
}),
|
|
302
|
+
/* @__PURE__ */ b(_, {
|
|
303
|
+
value: "global",
|
|
304
|
+
children: C("bigconsole.parsers.filters.globalScope", "Global")
|
|
305
|
+
}),
|
|
306
|
+
Le.map((e) => /* @__PURE__ */ b(_, {
|
|
307
|
+
value: e.value,
|
|
308
|
+
children: e.label
|
|
309
|
+
}, e.value))
|
|
310
|
+
] })]
|
|
311
|
+
}),
|
|
312
|
+
/* @__PURE__ */ x(h, {
|
|
285
313
|
value: M || "all",
|
|
286
|
-
onValueChange:
|
|
287
|
-
children: [/* @__PURE__ */
|
|
288
|
-
"aria-label":
|
|
314
|
+
onValueChange: Z,
|
|
315
|
+
children: [/* @__PURE__ */ b(v, {
|
|
316
|
+
"aria-label": C("bigconsole.parsers.filters.typeAriaLabel", "Filter by parser type"),
|
|
289
317
|
className: "min-h-control-md w-full sm:w-[150px]",
|
|
290
|
-
children: /* @__PURE__ */
|
|
291
|
-
}), /* @__PURE__ */
|
|
318
|
+
children: /* @__PURE__ */ b(y, { placeholder: C("bigconsole.parsers.filters.allTypes", "All Types") })
|
|
319
|
+
}), /* @__PURE__ */ b(g, { children: w.map((e) => /* @__PURE__ */ b(_, {
|
|
292
320
|
value: e.value,
|
|
293
321
|
children: e.label
|
|
294
322
|
}, e.value)) })]
|
|
295
323
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ x(h, {
|
|
297
325
|
value: N || "all",
|
|
298
|
-
onValueChange:
|
|
299
|
-
children: [/* @__PURE__ */
|
|
300
|
-
"aria-label":
|
|
326
|
+
onValueChange: Q,
|
|
327
|
+
children: [/* @__PURE__ */ b(v, {
|
|
328
|
+
"aria-label": C("bigconsole.parsers.filters.statusAriaLabel", "Filter by status"),
|
|
301
329
|
className: "min-h-control-md w-full sm:w-[150px]",
|
|
302
|
-
children: /* @__PURE__ */
|
|
303
|
-
}), /* @__PURE__ */
|
|
330
|
+
children: /* @__PURE__ */ b(y, { placeholder: C("bigconsole.parsers.filters.allStatus", "All Status") })
|
|
331
|
+
}), /* @__PURE__ */ b(g, { children: T.map((e) => /* @__PURE__ */ b(_, {
|
|
304
332
|
value: e.value,
|
|
305
333
|
children: e.label
|
|
306
334
|
}, e.value)) })]
|
|
307
335
|
}),
|
|
308
|
-
$ && /* @__PURE__ */
|
|
336
|
+
$ && /* @__PURE__ */ x(p, {
|
|
309
337
|
variant: "ghost",
|
|
310
338
|
size: "sm",
|
|
311
|
-
onClick:
|
|
339
|
+
onClick: Ge,
|
|
312
340
|
className: "min-h-control-md",
|
|
313
|
-
children: [/* @__PURE__ */
|
|
341
|
+
children: [/* @__PURE__ */ b(be, { style: {
|
|
314
342
|
marginRight: "var(--space-iconGap)",
|
|
315
343
|
height: "var(--size-icon-sm)",
|
|
316
344
|
width: "var(--size-icon-sm)"
|
|
317
|
-
} }),
|
|
345
|
+
} }), C("bigconsole.parsers.filters.clear", "Clear Filters")]
|
|
318
346
|
})
|
|
319
347
|
]
|
|
320
348
|
})
|
|
321
349
|
}),
|
|
322
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ x(a, {
|
|
323
351
|
emphasis: "primary",
|
|
324
352
|
padding: "compact",
|
|
325
353
|
headingLevel: 2,
|
|
326
|
-
title:
|
|
327
|
-
description:
|
|
328
|
-
meta: /* @__PURE__ */
|
|
354
|
+
title: C("bigconsole.parsers.list.resultsTitle", "Parsers"),
|
|
355
|
+
description: j ? C("bigconsole.parsers.list.resultsDescriptionAllScopes", "Global parsers work in every dashboard; a parser created from a widget belongs to that dashboard, as its badge shows. Open a parser to review its expression, or use the actions on a card to edit, export or delete it.") : C("bigconsole.parsers.list.resultsDescription", "Open a parser to review its expression, or use the actions on a card to edit, export or delete it."),
|
|
356
|
+
meta: /* @__PURE__ */ b(Se, {
|
|
329
357
|
variant: "secondary",
|
|
330
|
-
children:
|
|
358
|
+
children: X.length === 1 ? C("bigconsole.parsers.list.countSingular", "{{count}} Parser", { count: X.length }) : C("bigconsole.parsers.list.countPlural", "{{count}} Parsers", { count: X.length })
|
|
331
359
|
}),
|
|
332
360
|
"data-testid": "parser-results",
|
|
333
361
|
children: [
|
|
334
|
-
|
|
362
|
+
W && /* @__PURE__ */ b("div", {
|
|
335
363
|
className: "flex items-center justify-center py-12 sm:py-16",
|
|
336
|
-
children: /* @__PURE__ */
|
|
364
|
+
children: /* @__PURE__ */ x("div", {
|
|
337
365
|
className: "text-center",
|
|
338
|
-
children: [/* @__PURE__ */
|
|
366
|
+
children: [/* @__PURE__ */ b(De, { style: {
|
|
339
367
|
height: "var(--size-icon-xl)",
|
|
340
368
|
width: "var(--size-icon-xl)",
|
|
341
369
|
margin: "0 auto var(--space-formGap)"
|
|
342
|
-
} }), /* @__PURE__ */
|
|
370
|
+
} }), /* @__PURE__ */ b("p", {
|
|
343
371
|
className: "text-sm text-text-muted",
|
|
344
|
-
children:
|
|
372
|
+
children: C("bigconsole.parsers.list.loading", "Loading parsers...")
|
|
345
373
|
})]
|
|
346
374
|
})
|
|
347
375
|
}),
|
|
348
|
-
!
|
|
376
|
+
!W && X.length === 0 && !$ && /* @__PURE__ */ b(m, {
|
|
349
377
|
illustration: "empty-data",
|
|
350
|
-
title:
|
|
351
|
-
description:
|
|
352
|
-
action: /* @__PURE__ */
|
|
353
|
-
permission:
|
|
378
|
+
title: C("bigconsole.parsers.list.emptyTitle", "No Parsers yet"),
|
|
379
|
+
description: C("bigconsole.parsers.list.emptyDescription", "Create your first parser to start transforming data with JQ or JSONata."),
|
|
380
|
+
action: /* @__PURE__ */ b(fe, {
|
|
381
|
+
permission: s.PARSER_CREATE,
|
|
354
382
|
deniedBehavior: "disable",
|
|
355
|
-
children: /* @__PURE__ */
|
|
356
|
-
onClick:
|
|
357
|
-
children: [/* @__PURE__ */
|
|
383
|
+
children: /* @__PURE__ */ x(p, {
|
|
384
|
+
onClick: Ve,
|
|
385
|
+
children: [/* @__PURE__ */ b(f, { style: {
|
|
358
386
|
marginRight: "var(--space-iconGap)",
|
|
359
387
|
height: "var(--size-icon-sm)",
|
|
360
388
|
width: "var(--size-icon-sm)"
|
|
361
|
-
} }),
|
|
389
|
+
} }), C("bigconsole.parsers.actions.create", "Create Parser")]
|
|
362
390
|
})
|
|
363
391
|
})
|
|
364
392
|
}),
|
|
365
|
-
!
|
|
393
|
+
!W && X.length === 0 && $ && /* @__PURE__ */ b(m, {
|
|
366
394
|
illustration: "empty-search",
|
|
367
|
-
title:
|
|
368
|
-
description:
|
|
369
|
-
action: /* @__PURE__ */
|
|
395
|
+
title: C("bigconsole.parsers.list.noMatchTitle", "No matching parsers"),
|
|
396
|
+
description: C("bigconsole.parsers.list.noMatchDescription", "No parsers match your filters"),
|
|
397
|
+
action: /* @__PURE__ */ b(p, {
|
|
370
398
|
variant: "ghost",
|
|
371
399
|
size: "sm",
|
|
372
|
-
onClick:
|
|
373
|
-
children:
|
|
400
|
+
onClick: Ge,
|
|
401
|
+
children: C("bigconsole.parsers.filters.clear", "Clear Filters")
|
|
374
402
|
})
|
|
375
403
|
}),
|
|
376
|
-
!
|
|
404
|
+
!W && X.length > 0 && /* @__PURE__ */ b("ul", {
|
|
377
405
|
className: V === "grid" ? "grid list-none grid-cols-1 gap-form-gap p-0 md:grid-cols-2 xl:grid-cols-3" : "flex list-none flex-col gap-control-gap p-0",
|
|
378
|
-
children:
|
|
406
|
+
children: X.map((e) => /* @__PURE__ */ b("li", {
|
|
379
407
|
className: "min-w-0",
|
|
380
|
-
children: /* @__PURE__ */
|
|
408
|
+
children: /* @__PURE__ */ b(re, {
|
|
381
409
|
parser: e,
|
|
382
410
|
layout: V,
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
411
|
+
showScope: j,
|
|
412
|
+
onView: He,
|
|
413
|
+
onEdit: Ae ? Ue : void 0,
|
|
414
|
+
onExport: Ke,
|
|
415
|
+
onDelete: je ? We : void 0,
|
|
416
|
+
isDeleting: Me && Ne === e.id
|
|
388
417
|
})
|
|
389
418
|
}, e.id))
|
|
390
419
|
})
|
|
@@ -392,13 +421,13 @@ var Te = "default", C = l(function() {
|
|
|
392
421
|
})
|
|
393
422
|
] })
|
|
394
423
|
}),
|
|
395
|
-
/* @__PURE__ */
|
|
396
|
-
isOpen:
|
|
424
|
+
/* @__PURE__ */ b(ie, {
|
|
425
|
+
isOpen: Pe,
|
|
397
426
|
onClose: () => B(!1),
|
|
398
|
-
consoleId:
|
|
399
|
-
onSuccess:
|
|
427
|
+
consoleId: A,
|
|
428
|
+
onSuccess: Je
|
|
400
429
|
})
|
|
401
430
|
]
|
|
402
431
|
});
|
|
403
432
|
});
|
|
404
|
-
export {
|
|
433
|
+
export { S as DataParsersPage, S as default };
|