@burdenoff/microfe-bigconsole 2026.1110.7 → 2026.1111.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/components/parser/ExpressionEditor.js +1 -0
- package/dist/bigconsole/components/parser/ParserCard.d.ts +12 -1
- package/dist/bigconsole/components/parser/ParserCard.js +218 -232
- package/dist/bigconsole/components/widgets/table/TableConfig.js +256 -193
- package/dist/bigconsole/components/widgets/table/TableWidget.js +150 -150
- package/dist/bigconsole/components/widgets/table/tableSort.d.ts +12 -0
- package/dist/bigconsole/components/widgets/table/tableSort.js +12 -0
- package/dist/bigconsole/pages/DataParsersPage.js +153 -122
- package/dist/bigconsole/pages/ParserBuilderPage.js +559 -508
- package/dist/bigconsole/pages/ParserViewPage.js +324 -309
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.js +7 -0
- package/package.json +1 -1
|
@@ -8,20 +8,20 @@ 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 { BIGCONSOLE_PERMISSIONS as
|
|
13
|
-
import { useTr as
|
|
14
|
-
import { memo as
|
|
15
|
-
import { useParams as
|
|
16
|
-
import { AccessDenied as
|
|
17
|
-
import { usePermissions as
|
|
18
|
-
import { AlertCircle as
|
|
19
|
-
import { AuroraBackground as
|
|
11
|
+
import { parsersListControls as s } from "../assistant/pageControls.js";
|
|
12
|
+
import { BIGCONSOLE_PERMISSIONS as c } from "../../constants/permissions.js";
|
|
13
|
+
import { useTr as ae } from "../../shared/hooks/useTr.js";
|
|
14
|
+
import { memo as l, useCallback as u, useMemo as d, useState as f } from "react";
|
|
15
|
+
import { useParams as oe } from "react-router";
|
|
16
|
+
import { AccessDenied as se, PermissionButton as ce } from "@burdenoff/fe-libs/shared/components";
|
|
17
|
+
import { usePermissions as le } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
18
|
+
import { AlertCircle as ue, FileCode2 as de, LayoutGrid as fe, List as pe, Plus as p, Search as me, Upload as he, X as ge } from "lucide-react";
|
|
19
|
+
import { AuroraBackground as _e, Badge as ve, Button as m, CTAOverflowMenu as ye, GradientText as be, IllustratedEmptyState as h, Input as xe, PagePurpose as Se, Select as g, SelectContent as _, SelectItem as v, SelectTrigger as y, SelectValue as b, Spinner as Ce } from "@burdenoff/fe-libs/ui";
|
|
20
20
|
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
21
|
-
import { useAssistantPageControls as
|
|
21
|
+
import { useAssistantPageControls as we } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
|
|
22
22
|
// src/bigconsole/pages/DataParsersPage.tsx
|
|
23
|
-
var
|
|
24
|
-
let
|
|
23
|
+
var Te = "default", C = l(function() {
|
|
24
|
+
let l = e(), { consoleId: C } = oe(), w = ae(), T = d(() => [
|
|
25
25
|
{
|
|
26
26
|
value: "all",
|
|
27
27
|
label: w("bigconsole.parsers.filters.allTypes", "All Types")
|
|
@@ -34,7 +34,7 @@ var Ce = "default", C = c(function() {
|
|
|
34
34
|
value: "jsonata",
|
|
35
35
|
label: w("bigconsole.parsers.filters.jsonata", "JSONata")
|
|
36
36
|
}
|
|
37
|
-
], [w]), E =
|
|
37
|
+
], [w]), E = d(() => [
|
|
38
38
|
{
|
|
39
39
|
value: "all",
|
|
40
40
|
label: w("bigconsole.parsers.filters.allStatus", "All Status")
|
|
@@ -47,34 +47,42 @@ var Ce = "default", C = c(function() {
|
|
|
47
47
|
value: "inactive",
|
|
48
48
|
label: w("bigconsole.parsers.filters.inactive", "Inactive")
|
|
49
49
|
}
|
|
50
|
-
], [w]), { hasPermission: D, isLoading: O } =
|
|
51
|
-
|
|
50
|
+
], [w]), { hasPermission: D, isLoading: O } = le(), k = D(c.PARSER_READ), A = D(c.PARSER_CREATE), Ee = D(c.PARSER_UPDATE), De = D(c.PARSER_DELETE), j = C || Te, 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), [Oe, R] = f(!1), [ke, z] = f(null), [Ae, B] = f(!1), [V, je] = f("grid"), Me = d(() => [{
|
|
51
|
+
mode: "grid",
|
|
52
|
+
Icon: fe,
|
|
53
|
+
label: w("bigconsole.parsers.list.gridView", "Grid view")
|
|
54
|
+
}, {
|
|
55
|
+
mode: "list",
|
|
56
|
+
Icon: pe,
|
|
57
|
+
label: w("bigconsole.parsers.list.listView", "List view")
|
|
58
|
+
}], [w]), { loading: H, error: U, parsers: W, deleteParser: G, refetch: K } = te({
|
|
59
|
+
consoleId: j,
|
|
52
60
|
skipFetch: !1
|
|
53
|
-
}), { downloadParser: q } = ne(), J =
|
|
54
|
-
if (
|
|
55
|
-
if (
|
|
56
|
-
let t =
|
|
61
|
+
}), { downloadParser: q } = ne(), J = d(() => W ? W.filter((e) => {
|
|
62
|
+
if (M && e.type !== M || N && e.status !== N) return !1;
|
|
63
|
+
if (P) {
|
|
64
|
+
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);
|
|
57
65
|
if (!n && !r && !i && !a) return !1;
|
|
58
66
|
}
|
|
59
67
|
return !0;
|
|
60
68
|
}) : [], [
|
|
61
69
|
W,
|
|
70
|
+
M,
|
|
62
71
|
N,
|
|
63
|
-
P
|
|
64
|
-
|
|
65
|
-
|
|
72
|
+
P
|
|
73
|
+
]), Y = u((e) => {
|
|
74
|
+
F(e === "all" ? null : e);
|
|
75
|
+
}, [F]), X = u((e) => {
|
|
66
76
|
I(e === "all" ? null : e);
|
|
67
|
-
}, [I]),
|
|
68
|
-
L(e
|
|
69
|
-
}, [L]),
|
|
70
|
-
|
|
71
|
-
}, [
|
|
72
|
-
|
|
73
|
-
}, [
|
|
74
|
-
|
|
75
|
-
}, [
|
|
76
|
-
c(C ? `/dashboards/${C}/parsers/${e}/edit` : `/parsers/${e}/edit`);
|
|
77
|
-
}, [c, C]), je = l(async (e) => {
|
|
77
|
+
}, [I]), Ne = u((e) => {
|
|
78
|
+
L(e.target.value);
|
|
79
|
+
}, [L]), Z = u(() => {
|
|
80
|
+
l(C ? `/dashboards/${C}/parsers/new` : "/parsers/new");
|
|
81
|
+
}, [l, C]), Pe = u((e) => {
|
|
82
|
+
l(C ? `/dashboards/${C}/parsers/${e}` : `/parsers/${e}`);
|
|
83
|
+
}, [l, C]), Fe = u((e) => {
|
|
84
|
+
l(C ? `/dashboards/${C}/parsers/${e}/edit` : `/parsers/${e}/edit`);
|
|
85
|
+
}, [l, C]), Ie = u(async (e) => {
|
|
78
86
|
let a = await n({
|
|
79
87
|
title: w("bigconsole.parsers.confirmDelete.title", "Delete parser?"),
|
|
80
88
|
message: w("bigconsole.parsers.confirmDelete.message", "Are you sure you want to delete this parser?"),
|
|
@@ -82,37 +90,37 @@ var Ce = "default", C = c(function() {
|
|
|
82
90
|
cancelButtonTitle: w("bigconsole.parsers.actions.cancel", "Cancel")
|
|
83
91
|
});
|
|
84
92
|
if (a === null ? window.confirm(w("bigconsole.parsers.confirmDelete.message", "Are you sure you want to delete this parser?")) : a) {
|
|
85
|
-
r("medium"),
|
|
93
|
+
r("medium"), R(!0), z(e);
|
|
86
94
|
try {
|
|
87
95
|
await G(e), t() && i("success");
|
|
88
96
|
} catch {
|
|
89
97
|
t() && i("error");
|
|
90
98
|
} finally {
|
|
91
|
-
|
|
99
|
+
R(!1), z(null);
|
|
92
100
|
}
|
|
93
101
|
}
|
|
94
|
-
}, [G, w]), Q =
|
|
95
|
-
|
|
102
|
+
}, [G, w]), Q = u(() => {
|
|
103
|
+
F(null), I(null), L("");
|
|
96
104
|
}, [
|
|
105
|
+
F,
|
|
97
106
|
I,
|
|
98
|
-
L
|
|
99
|
-
|
|
100
|
-
]), Me = l(async (e) => {
|
|
107
|
+
L
|
|
108
|
+
]), Le = u(async (e) => {
|
|
101
109
|
let t = W.find((t) => t.id === e);
|
|
102
110
|
t && await q(e, t.name);
|
|
103
|
-
}, [W, q]),
|
|
104
|
-
|
|
105
|
-
}, []),
|
|
111
|
+
}, [W, q]), Re = u(() => {
|
|
112
|
+
B(!0);
|
|
113
|
+
}, []), ze = u((e, t, n) => {
|
|
106
114
|
K();
|
|
107
|
-
}, [K]), $ =
|
|
115
|
+
}, [K]), $ = M !== null || N !== null || (P?.length ?? 0) > 0, Be = d(() => !O && k && !U ? s({
|
|
108
116
|
tr: w,
|
|
109
117
|
typeOptions: T,
|
|
110
118
|
statusOptions: E,
|
|
111
|
-
type:
|
|
112
|
-
status:
|
|
119
|
+
type: M ?? "all",
|
|
120
|
+
status: N ?? "all",
|
|
113
121
|
setType: Y,
|
|
114
122
|
setStatus: X,
|
|
115
|
-
setSearch:
|
|
123
|
+
setSearch: L
|
|
116
124
|
}) : null, [
|
|
117
125
|
w,
|
|
118
126
|
O,
|
|
@@ -120,21 +128,21 @@ var Ce = "default", C = c(function() {
|
|
|
120
128
|
U,
|
|
121
129
|
T,
|
|
122
130
|
E,
|
|
131
|
+
M,
|
|
123
132
|
N,
|
|
124
|
-
P,
|
|
125
133
|
Y,
|
|
126
134
|
X,
|
|
127
|
-
|
|
135
|
+
L
|
|
128
136
|
]);
|
|
129
|
-
return
|
|
137
|
+
return we(Be), U ? /* @__PURE__ */ x("div", {
|
|
130
138
|
style: { padding: "var(--space-pagePadding)" },
|
|
131
139
|
children: /* @__PURE__ */ x(a, {
|
|
132
140
|
tone: "danger",
|
|
133
141
|
headingLevel: 2,
|
|
134
142
|
title: w("bigconsole.parsers.errors.loadFailed", "Failed to load Parsers"),
|
|
135
143
|
description: "The parser list could not be fetched. Retry, or check that the BigConsole service is reachable.",
|
|
136
|
-
icon: /* @__PURE__ */ x(
|
|
137
|
-
actions: /* @__PURE__ */ x(
|
|
144
|
+
icon: /* @__PURE__ */ x(ue, { className: "h-icon-md w-icon-md text-[var(--color-status-error-text)]" }),
|
|
145
|
+
actions: /* @__PURE__ */ x(m, {
|
|
138
146
|
size: "sm",
|
|
139
147
|
onClick: () => K(),
|
|
140
148
|
children: w("bigconsole.parsers.actions.tryAgain", "Try Again")
|
|
@@ -145,7 +153,7 @@ var Ce = "default", C = c(function() {
|
|
|
145
153
|
children: U.message
|
|
146
154
|
})
|
|
147
155
|
})
|
|
148
|
-
}) : !O && !k ? /* @__PURE__ */ x(
|
|
156
|
+
}) : !O && !k ? /* @__PURE__ */ x(se, {
|
|
149
157
|
title: w("bigconsole.parsers.accessDenied.title", "Access Denied"),
|
|
150
158
|
description: w("bigconsole.parsers.accessDenied.list", "You don't have permission to view parsers.")
|
|
151
159
|
}) : /* @__PURE__ */ S("div", {
|
|
@@ -156,7 +164,7 @@ var Ce = "default", C = c(function() {
|
|
|
156
164
|
children: [
|
|
157
165
|
/* @__PURE__ */ S("div", {
|
|
158
166
|
className: "relative overflow-hidden border-b border-[var(--color-border-seam)] bg-[image:var(--gradient-gloss-card)]",
|
|
159
|
-
children: [/* @__PURE__ */ x(
|
|
167
|
+
children: [/* @__PURE__ */ x(_e, { intensity: "subtle" }), /* @__PURE__ */ x("div", {
|
|
160
168
|
className: "relative",
|
|
161
169
|
style: { padding: "var(--space-pagePadding)" },
|
|
162
170
|
children: /* @__PURE__ */ S("div", {
|
|
@@ -171,7 +179,7 @@ var Ce = "default", C = c(function() {
|
|
|
171
179
|
borderRadius: "var(--radius-card)",
|
|
172
180
|
backgroundColor: "var(--color-action-primary-bg)"
|
|
173
181
|
},
|
|
174
|
-
children: /* @__PURE__ */ x(
|
|
182
|
+
children: /* @__PURE__ */ x(de, { style: {
|
|
175
183
|
height: "var(--size-icon-lg)",
|
|
176
184
|
width: "var(--size-icon-lg)",
|
|
177
185
|
color: "var(--color-action-primary-text)"
|
|
@@ -180,30 +188,78 @@ var Ce = "default", C = c(function() {
|
|
|
180
188
|
className: "min-w-0",
|
|
181
189
|
children: [/* @__PURE__ */ x("h1", {
|
|
182
190
|
className: "m-0 text-2xl font-bold text-text-primary sm:text-3xl",
|
|
183
|
-
children: /* @__PURE__ */ x(
|
|
191
|
+
children: /* @__PURE__ */ x(be, { children: w("bigconsole.parsers.list.title", "Data Parsers") })
|
|
184
192
|
}), /* @__PURE__ */ x("p", {
|
|
185
193
|
className: "m-0 text-sm text-text-secondary",
|
|
186
194
|
children: w("bigconsole.parsers.list.subtitle", "Transform and process data with JQ or JSONata expressions")
|
|
187
195
|
})]
|
|
188
196
|
})]
|
|
189
|
-
}), /* @__PURE__ */
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
197
|
+
}), /* @__PURE__ */ S("div", {
|
|
198
|
+
className: "flex w-full flex-wrap items-center gap-control-gap lg:w-auto lg:flex-nowrap",
|
|
199
|
+
children: [
|
|
200
|
+
/* @__PURE__ */ S("div", {
|
|
201
|
+
className: "relative min-w-[200px] flex-1 lg:w-80 lg:flex-none",
|
|
202
|
+
children: [/* @__PURE__ */ x(me, {
|
|
203
|
+
"aria-hidden": "true",
|
|
204
|
+
style: {
|
|
205
|
+
position: "absolute",
|
|
206
|
+
left: "var(--space-controlGap)",
|
|
207
|
+
top: "50%",
|
|
208
|
+
transform: "translateY(-50%)",
|
|
209
|
+
height: "var(--size-icon-sm)",
|
|
210
|
+
width: "var(--size-icon-sm)",
|
|
211
|
+
color: "var(--color-text-muted)"
|
|
212
|
+
}
|
|
213
|
+
}), /* @__PURE__ */ x(xe, {
|
|
214
|
+
type: "text",
|
|
215
|
+
"aria-label": w("bigconsole.parsers.list.searchPlaceholder", "Search parsers..."),
|
|
216
|
+
placeholder: w("bigconsole.parsers.list.searchPlaceholder", "Search parsers..."),
|
|
217
|
+
value: P || "",
|
|
218
|
+
onChange: Ne,
|
|
219
|
+
className: "min-h-11",
|
|
220
|
+
style: { paddingLeft: "var(--size-controlHeight-md)" }
|
|
221
|
+
})]
|
|
222
|
+
}),
|
|
223
|
+
/* @__PURE__ */ x("div", {
|
|
224
|
+
role: "group",
|
|
225
|
+
"aria-label": w("bigconsole.parsers.list.viewModeAriaLabel", "Parser layout"),
|
|
226
|
+
className: "flex shrink-0 items-center overflow-hidden rounded-md border border-[var(--color-border-default)]",
|
|
227
|
+
children: Me.map(({ mode: e, Icon: t, label: n }) => /* @__PURE__ */ x("button", {
|
|
228
|
+
type: "button",
|
|
229
|
+
onClick: () => je(e),
|
|
230
|
+
"aria-label": n,
|
|
231
|
+
"aria-pressed": V === e,
|
|
232
|
+
title: n,
|
|
233
|
+
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__ */ x(t, {
|
|
235
|
+
"aria-hidden": "true",
|
|
236
|
+
style: {
|
|
237
|
+
height: "var(--size-icon-sm)",
|
|
238
|
+
width: "var(--size-icon-sm)"
|
|
239
|
+
}
|
|
240
|
+
})
|
|
241
|
+
}, e))
|
|
242
|
+
}),
|
|
243
|
+
/* @__PURE__ */ x(ye, {
|
|
244
|
+
primary: A ? {
|
|
245
|
+
label: w("bigconsole.parsers.actions.create", "Create Parser"),
|
|
246
|
+
onSelect: Z,
|
|
247
|
+
icon: /* @__PURE__ */ x(p, { style: {
|
|
248
|
+
marginRight: "var(--space-iconGap)",
|
|
249
|
+
height: "var(--size-icon-sm)",
|
|
250
|
+
width: "var(--size-icon-sm)"
|
|
251
|
+
} })
|
|
252
|
+
} : void 0,
|
|
253
|
+
actions: A ? [{
|
|
254
|
+
label: w("bigconsole.parsers.actions.import", "Import"),
|
|
255
|
+
onSelect: Re,
|
|
256
|
+
icon: /* @__PURE__ */ x(he, { style: {
|
|
257
|
+
height: "var(--size-icon-sm)",
|
|
258
|
+
width: "var(--size-icon-sm)"
|
|
259
|
+
} })
|
|
260
|
+
}] : []
|
|
261
|
+
})
|
|
262
|
+
]
|
|
207
263
|
})]
|
|
208
264
|
})
|
|
209
265
|
})]
|
|
@@ -211,7 +267,7 @@ var Ce = "default", C = c(function() {
|
|
|
211
267
|
/* @__PURE__ */ x("div", {
|
|
212
268
|
style: { padding: "var(--space-pagePadding)" },
|
|
213
269
|
children: /* @__PURE__ */ S(ee, { children: [
|
|
214
|
-
/* @__PURE__ */ x(
|
|
270
|
+
/* @__PURE__ */ x(Se, {
|
|
215
271
|
className: "max-w-[80ch]",
|
|
216
272
|
children: w("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.")
|
|
217
273
|
}),
|
|
@@ -225,34 +281,8 @@ var Ce = "default", C = c(function() {
|
|
|
225
281
|
children: /* @__PURE__ */ S("div", {
|
|
226
282
|
className: "flex flex-wrap items-center gap-control-gap",
|
|
227
283
|
children: [
|
|
228
|
-
/* @__PURE__ */ S("div", {
|
|
229
|
-
className: "relative w-full min-w-0 flex-1 sm:max-w-[400px]",
|
|
230
|
-
children: [/* @__PURE__ */ x(pe, {
|
|
231
|
-
"aria-hidden": "true",
|
|
232
|
-
style: {
|
|
233
|
-
position: "absolute",
|
|
234
|
-
left: "var(--space-controlGap)",
|
|
235
|
-
top: "50%",
|
|
236
|
-
transform: "translateY(-50%)",
|
|
237
|
-
height: "var(--size-icon-sm)",
|
|
238
|
-
width: "var(--size-icon-sm)",
|
|
239
|
-
color: "var(--color-text-muted)"
|
|
240
|
-
}
|
|
241
|
-
}), /* @__PURE__ */ x(ye, {
|
|
242
|
-
type: "text",
|
|
243
|
-
"aria-label": w("bigconsole.parsers.list.searchPlaceholder", "Search parsers..."),
|
|
244
|
-
placeholder: w("bigconsole.parsers.list.searchPlaceholder", "Search parsers..."),
|
|
245
|
-
value: F || "",
|
|
246
|
-
onChange: Oe,
|
|
247
|
-
className: "min-h-control-md",
|
|
248
|
-
style: {
|
|
249
|
-
paddingLeft: "var(--size-controlHeight-md)",
|
|
250
|
-
height: "var(--size-controlHeight-md)"
|
|
251
|
-
}
|
|
252
|
-
})]
|
|
253
|
-
}),
|
|
254
284
|
/* @__PURE__ */ S(g, {
|
|
255
|
-
value:
|
|
285
|
+
value: M || "all",
|
|
256
286
|
onValueChange: Y,
|
|
257
287
|
children: [/* @__PURE__ */ x(y, {
|
|
258
288
|
"aria-label": w("bigconsole.parsers.filters.typeAriaLabel", "Filter by parser type"),
|
|
@@ -264,7 +294,7 @@ var Ce = "default", C = c(function() {
|
|
|
264
294
|
}, e.value)) })]
|
|
265
295
|
}),
|
|
266
296
|
/* @__PURE__ */ S(g, {
|
|
267
|
-
value:
|
|
297
|
+
value: N || "all",
|
|
268
298
|
onValueChange: X,
|
|
269
299
|
children: [/* @__PURE__ */ x(y, {
|
|
270
300
|
"aria-label": w("bigconsole.parsers.filters.statusAriaLabel", "Filter by status"),
|
|
@@ -275,12 +305,12 @@ var Ce = "default", C = c(function() {
|
|
|
275
305
|
children: e.label
|
|
276
306
|
}, e.value)) })]
|
|
277
307
|
}),
|
|
278
|
-
$ && /* @__PURE__ */ S(
|
|
308
|
+
$ && /* @__PURE__ */ S(m, {
|
|
279
309
|
variant: "ghost",
|
|
280
310
|
size: "sm",
|
|
281
311
|
onClick: Q,
|
|
282
312
|
className: "min-h-control-md",
|
|
283
|
-
children: [/* @__PURE__ */ x(
|
|
313
|
+
children: [/* @__PURE__ */ x(ge, { style: {
|
|
284
314
|
marginRight: "var(--space-iconGap)",
|
|
285
315
|
height: "var(--size-icon-sm)",
|
|
286
316
|
width: "var(--size-icon-sm)"
|
|
@@ -295,7 +325,7 @@ var Ce = "default", C = c(function() {
|
|
|
295
325
|
headingLevel: 2,
|
|
296
326
|
title: w("bigconsole.parsers.list.resultsTitle", "Parsers"),
|
|
297
327
|
description: w("bigconsole.parsers.list.resultsDescription", "Open a parser to review its expression, or use the actions on a card to edit, export or delete it."),
|
|
298
|
-
meta: /* @__PURE__ */ x(
|
|
328
|
+
meta: /* @__PURE__ */ x(ve, {
|
|
299
329
|
variant: "secondary",
|
|
300
330
|
children: J.length === 1 ? w("bigconsole.parsers.list.countSingular", "{{count}} Parser", { count: J.length }) : w("bigconsole.parsers.list.countPlural", "{{count}} Parsers", { count: J.length })
|
|
301
331
|
}),
|
|
@@ -305,7 +335,7 @@ var Ce = "default", C = c(function() {
|
|
|
305
335
|
className: "flex items-center justify-center py-12 sm:py-16",
|
|
306
336
|
children: /* @__PURE__ */ S("div", {
|
|
307
337
|
className: "text-center",
|
|
308
|
-
children: [/* @__PURE__ */ x(
|
|
338
|
+
children: [/* @__PURE__ */ x(Ce, { style: {
|
|
309
339
|
height: "var(--size-icon-xl)",
|
|
310
340
|
width: "var(--size-icon-xl)",
|
|
311
341
|
margin: "0 auto var(--space-formGap)"
|
|
@@ -319,12 +349,12 @@ var Ce = "default", C = c(function() {
|
|
|
319
349
|
illustration: "empty-data",
|
|
320
350
|
title: w("bigconsole.parsers.list.emptyTitle", "No Parsers yet"),
|
|
321
351
|
description: w("bigconsole.parsers.list.emptyDescription", "Create your first parser to start transforming data with JQ or JSONata."),
|
|
322
|
-
action: /* @__PURE__ */ x(
|
|
323
|
-
permission:
|
|
352
|
+
action: /* @__PURE__ */ x(ce, {
|
|
353
|
+
permission: c.PARSER_CREATE,
|
|
324
354
|
deniedBehavior: "disable",
|
|
325
|
-
children: /* @__PURE__ */ S(
|
|
355
|
+
children: /* @__PURE__ */ S(m, {
|
|
326
356
|
onClick: Z,
|
|
327
|
-
children: [/* @__PURE__ */ x(
|
|
357
|
+
children: [/* @__PURE__ */ x(p, { style: {
|
|
328
358
|
marginRight: "var(--space-iconGap)",
|
|
329
359
|
height: "var(--size-icon-sm)",
|
|
330
360
|
width: "var(--size-icon-sm)"
|
|
@@ -336,7 +366,7 @@ var Ce = "default", C = c(function() {
|
|
|
336
366
|
illustration: "empty-search",
|
|
337
367
|
title: w("bigconsole.parsers.list.noMatchTitle", "No matching parsers"),
|
|
338
368
|
description: w("bigconsole.parsers.list.noMatchDescription", "No parsers match your filters"),
|
|
339
|
-
action: /* @__PURE__ */ x(
|
|
369
|
+
action: /* @__PURE__ */ x(m, {
|
|
340
370
|
variant: "ghost",
|
|
341
371
|
size: "sm",
|
|
342
372
|
onClick: Q,
|
|
@@ -344,16 +374,17 @@ var Ce = "default", C = c(function() {
|
|
|
344
374
|
})
|
|
345
375
|
}),
|
|
346
376
|
!H && J.length > 0 && /* @__PURE__ */ x("ul", {
|
|
347
|
-
className: "grid list-none grid-cols-
|
|
377
|
+
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",
|
|
348
378
|
children: J.map((e) => /* @__PURE__ */ x("li", {
|
|
349
379
|
className: "min-w-0",
|
|
350
380
|
children: /* @__PURE__ */ x(re, {
|
|
351
381
|
parser: e,
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
382
|
+
layout: V,
|
|
383
|
+
onView: Pe,
|
|
384
|
+
onEdit: Ee ? Fe : void 0,
|
|
385
|
+
onExport: Le,
|
|
386
|
+
onDelete: De ? Ie : void 0,
|
|
387
|
+
isDeleting: Oe && ke === e.id
|
|
357
388
|
})
|
|
358
389
|
}, e.id))
|
|
359
390
|
})
|
|
@@ -362,10 +393,10 @@ var Ce = "default", C = c(function() {
|
|
|
362
393
|
] })
|
|
363
394
|
}),
|
|
364
395
|
/* @__PURE__ */ x(ie, {
|
|
365
|
-
isOpen:
|
|
366
|
-
onClose: () =>
|
|
367
|
-
consoleId:
|
|
368
|
-
onSuccess:
|
|
396
|
+
isOpen: Ae,
|
|
397
|
+
onClose: () => B(!1),
|
|
398
|
+
consoleId: j,
|
|
399
|
+
onSuccess: ze
|
|
369
400
|
})
|
|
370
401
|
]
|
|
371
402
|
});
|