@burdenoff/microfe-bigconsole 2026.804.2 → 2026.805.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/AdminRoot.js +21 -16
- package/dist/bigconsole/AdminRoot.js.map +1 -1
- package/dist/bigconsole/BigConsoleRoot.js +44 -39
- package/dist/bigconsole/BigConsoleRoot.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +115 -100
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js +100 -98
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +164 -161
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkCard.js +20 -20
- package/dist/bigconsole/components/datasink/DataSinkCard.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +216 -49
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +96 -90
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetMenu.js +87 -76
- package/dist/bigconsole/components/widgets/WidgetMenu.js.map +1 -1
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +120 -118
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +113 -104
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +208 -199
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +376 -325
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +135 -125
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +182 -172
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +233 -198
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +281 -268
- package/dist/bigconsole/pages/DataSinksPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +238 -223
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +162 -144
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +212 -204
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +191 -183
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +128 -103
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +238 -217
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +116 -102
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/utils/csv.js +91 -0
- package/dist/bigconsole/utils/csv.js.map +1 -0
- package/dist/constants/permissions.js +83 -0
- package/dist/constants/permissions.js.map +1 -0
- package/package.json +2 -2
|
@@ -3,16 +3,19 @@ import { useAppNavigate as t } from "../contexts/NavigationContext.js";
|
|
|
3
3
|
import "../contexts/index.js";
|
|
4
4
|
import n from "../hooks/useParserOperations.js";
|
|
5
5
|
import r from "../hooks/useExportParser.js";
|
|
6
|
-
import {
|
|
7
|
-
import te from "
|
|
8
|
-
import ne from "../components/parser/
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
6
|
+
import { BIGCONSOLE_PERMISSIONS as i } from "../../constants/permissions.js";
|
|
7
|
+
import { isNative as a, nativeConfirm as ee, nativeImpact as te, nativeNotify as o } from "../../utils/nativeBridge.js";
|
|
8
|
+
import ne from "../components/parser/ParserCard.js";
|
|
9
|
+
import s from "../components/parser/ImportParserDialog.js";
|
|
10
|
+
import { memo as c, useCallback as l, useMemo as re, useState as u } from "react";
|
|
11
|
+
import { useParams as ie } from "react-router";
|
|
12
|
+
import { AccessDenied as ae, PermissionButton as oe } from "@burdenoff/fe-libs/shared/components";
|
|
13
|
+
import { usePermissions as se } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
14
|
+
import { AlertCircle as ce, FileCode2 as le, Plus as d, Search as ue, Upload as de, X as f } from "lucide-react";
|
|
15
|
+
import { AuroraBackground as fe, Badge as pe, Button as p, CTAOverflowMenu as m, Card as me, CardContent as he, GlassCard as h, GradientText as ge, IllustratedEmptyState as g, Input as _, PagePurpose as v, Select as y, SelectContent as b, SelectItem as x, SelectTrigger as S, SelectValue as C, Spinner as _e } from "@burdenoff/fe-libs/ui";
|
|
16
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
14
17
|
//#region src/bigconsole/pages/DataParsersPage.tsx
|
|
15
|
-
var
|
|
18
|
+
var ve = [
|
|
16
19
|
{
|
|
17
20
|
value: "all",
|
|
18
21
|
label: "All Types"
|
|
@@ -25,7 +28,7 @@ var le = [
|
|
|
25
28
|
value: "jsonata",
|
|
26
29
|
label: "JSONata"
|
|
27
30
|
}
|
|
28
|
-
],
|
|
31
|
+
], ye = [
|
|
29
32
|
{
|
|
30
33
|
value: "all",
|
|
31
34
|
label: "All Status"
|
|
@@ -38,75 +41,75 @@ var le = [
|
|
|
38
41
|
value: "inactive",
|
|
39
42
|
label: "Inactive"
|
|
40
43
|
}
|
|
41
|
-
],
|
|
42
|
-
let
|
|
43
|
-
consoleId:
|
|
44
|
+
], E = "default", D = c(function() {
|
|
45
|
+
let c = t(), { consoleId: D } = ie(), { hasPermission: O, isLoading: k } = se(), A = O(i.PARSER_READ), j = O(i.PARSER_CREATE), M = O(i.PARSER_UPDATE), N = O(i.PARSER_DELETE), P = D || E, F = e((e) => e.typeFilter), I = e((e) => e.statusFilter), L = e((e) => e.searchQuery), R = e((e) => e.setTypeFilter), z = e((e) => e.setStatusFilter), B = e((e) => e.setSearchQuery), [be, V] = u(!1), [xe, H] = u(null), [Se, U] = u(!1), { loading: W, error: G, parsers: K, deleteParser: q, refetch: J } = n({
|
|
46
|
+
consoleId: P,
|
|
44
47
|
skipFetch: !1
|
|
45
|
-
}), { downloadParser: Y, loading:
|
|
46
|
-
if (
|
|
47
|
-
if (
|
|
48
|
-
let t =
|
|
48
|
+
}), { downloadParser: Y, loading: Ce } = r(), X = re(() => K ? K.filter((e) => {
|
|
49
|
+
if (F && e.type !== F || I && e.status !== I) return !1;
|
|
50
|
+
if (L) {
|
|
51
|
+
let t = L.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);
|
|
49
52
|
if (!n && !r && !i && !a) return !1;
|
|
50
53
|
}
|
|
51
54
|
return !0;
|
|
52
55
|
}) : [], [
|
|
53
56
|
K,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
]),
|
|
58
|
-
|
|
59
|
-
}, [
|
|
60
|
-
|
|
61
|
-
}, [
|
|
62
|
-
|
|
63
|
-
}, [
|
|
64
|
-
|
|
65
|
-
}, [
|
|
66
|
-
|
|
67
|
-
}, [
|
|
68
|
-
|
|
69
|
-
}, [
|
|
70
|
-
let t = await
|
|
57
|
+
F,
|
|
58
|
+
I,
|
|
59
|
+
L
|
|
60
|
+
]), we = l((e) => {
|
|
61
|
+
R(e === "all" ? null : e);
|
|
62
|
+
}, [R]), Te = l((e) => {
|
|
63
|
+
z(e === "all" ? null : e);
|
|
64
|
+
}, [z]), Ee = l((e) => {
|
|
65
|
+
B(e.target.value);
|
|
66
|
+
}, [B]), Z = l(() => {
|
|
67
|
+
c(D ? `/dashboards/${D}/parsers/new` : "/parsers/new");
|
|
68
|
+
}, [c, D]), De = l((e) => {
|
|
69
|
+
c(D ? `/dashboards/${D}/parsers/${e}` : `/parsers/${e}`);
|
|
70
|
+
}, [c, D]), Oe = l((e) => {
|
|
71
|
+
c(D ? `/dashboards/${D}/parsers/${e}/edit` : `/parsers/${e}/edit`);
|
|
72
|
+
}, [c, D]), ke = l(async (e) => {
|
|
73
|
+
let t = await ee({
|
|
71
74
|
title: "Delete parser?",
|
|
72
75
|
message: "Are you sure you want to delete this parser?",
|
|
73
76
|
okButtonTitle: "Delete",
|
|
74
77
|
cancelButtonTitle: "Cancel"
|
|
75
78
|
});
|
|
76
79
|
if (t === null ? window.confirm("Are you sure you want to delete this parser?") : t) {
|
|
77
|
-
|
|
80
|
+
te("medium"), V(!0), H(e);
|
|
78
81
|
try {
|
|
79
|
-
await q(e),
|
|
82
|
+
await q(e), a() && o("success");
|
|
80
83
|
} catch {
|
|
81
|
-
|
|
84
|
+
a() && o("error");
|
|
82
85
|
} finally {
|
|
83
|
-
|
|
86
|
+
V(!1), H(null);
|
|
84
87
|
}
|
|
85
88
|
}
|
|
86
|
-
}, [q]), Q =
|
|
87
|
-
|
|
89
|
+
}, [q]), Q = l(() => {
|
|
90
|
+
R(null), z(null), B("");
|
|
88
91
|
}, [
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
]),
|
|
92
|
+
R,
|
|
93
|
+
z,
|
|
94
|
+
B
|
|
95
|
+
]), Ae = l(async (e) => {
|
|
93
96
|
let t = K.find((t) => t.id === e);
|
|
94
97
|
t && await Y(e, t.name);
|
|
95
|
-
}, [K, Y]),
|
|
98
|
+
}, [K, Y]), je = l(() => {
|
|
96
99
|
U(!0);
|
|
97
|
-
}, []),
|
|
100
|
+
}, []), Me = l((e, t, n) => {
|
|
98
101
|
J();
|
|
99
|
-
}, [J]), $ =
|
|
100
|
-
return G ? /* @__PURE__ */
|
|
102
|
+
}, [J]), $ = F !== null || I !== null || (L?.length ?? 0) > 0;
|
|
103
|
+
return G ? /* @__PURE__ */ w("div", {
|
|
101
104
|
style: { padding: "var(--space-pagePadding)" },
|
|
102
|
-
children: /* @__PURE__ */
|
|
105
|
+
children: /* @__PURE__ */ w(me, {
|
|
103
106
|
style: {
|
|
104
107
|
borderColor: "var(--color-status-error-border)",
|
|
105
108
|
backgroundColor: "var(--color-status-error-bgSubtle)"
|
|
106
109
|
},
|
|
107
|
-
children: /* @__PURE__ */
|
|
110
|
+
children: /* @__PURE__ */ w(he, {
|
|
108
111
|
style: { padding: "var(--space-pagePadding)" },
|
|
109
|
-
children: /* @__PURE__ */
|
|
112
|
+
children: /* @__PURE__ */ T("div", {
|
|
110
113
|
style: {
|
|
111
114
|
display: "flex",
|
|
112
115
|
flexDirection: "column",
|
|
@@ -114,20 +117,20 @@ var le = [
|
|
|
114
117
|
textAlign: "center"
|
|
115
118
|
},
|
|
116
119
|
children: [
|
|
117
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ w("div", {
|
|
118
121
|
style: {
|
|
119
122
|
padding: "var(--space-controlGap)",
|
|
120
123
|
borderRadius: "50%",
|
|
121
124
|
backgroundColor: "var(--color-status-error-bgSubtle)",
|
|
122
125
|
marginBottom: "var(--space-formGap)"
|
|
123
126
|
},
|
|
124
|
-
children: /* @__PURE__ */
|
|
127
|
+
children: /* @__PURE__ */ w(ce, { style: {
|
|
125
128
|
height: "var(--size-icon-xl)",
|
|
126
129
|
width: "var(--size-icon-xl)",
|
|
127
130
|
color: "var(--color-status-error-text)"
|
|
128
131
|
} })
|
|
129
132
|
}),
|
|
130
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ w("h3", {
|
|
131
134
|
style: {
|
|
132
135
|
fontSize: "var(--font-size-body-lg)",
|
|
133
136
|
fontWeight: "var(--font-weight-medium)",
|
|
@@ -136,7 +139,7 @@ var le = [
|
|
|
136
139
|
},
|
|
137
140
|
children: "Failed to load Parsers"
|
|
138
141
|
}),
|
|
139
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ w("p", {
|
|
140
143
|
style: {
|
|
141
144
|
fontSize: "var(--font-size-body-sm)",
|
|
142
145
|
color: "var(--color-text-secondary)",
|
|
@@ -144,7 +147,7 @@ var le = [
|
|
|
144
147
|
},
|
|
145
148
|
children: G.message
|
|
146
149
|
}),
|
|
147
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ w(p, {
|
|
148
151
|
size: "sm",
|
|
149
152
|
onClick: () => J(),
|
|
150
153
|
children: "Try Again"
|
|
@@ -153,29 +156,32 @@ var le = [
|
|
|
153
156
|
})
|
|
154
157
|
})
|
|
155
158
|
})
|
|
156
|
-
}) : /* @__PURE__ */
|
|
159
|
+
}) : !k && !A ? /* @__PURE__ */ w(ae, {
|
|
160
|
+
title: "Access Denied",
|
|
161
|
+
description: "You don't have permission to view parsers."
|
|
162
|
+
}) : /* @__PURE__ */ T("div", {
|
|
157
163
|
style: {
|
|
158
164
|
minHeight: "100vh",
|
|
159
165
|
backgroundColor: "var(--color-bg-canvas)"
|
|
160
166
|
},
|
|
161
167
|
children: [
|
|
162
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ T("div", {
|
|
163
169
|
className: "relative overflow-hidden border-b border-border-seam bg-gloss-card",
|
|
164
|
-
children: [/* @__PURE__ */
|
|
170
|
+
children: [/* @__PURE__ */ w(fe, { intensity: "subtle" }), /* @__PURE__ */ w("div", {
|
|
165
171
|
style: { padding: "var(--space-pagePadding)" },
|
|
166
|
-
children: /* @__PURE__ */
|
|
172
|
+
children: /* @__PURE__ */ T("div", {
|
|
167
173
|
style: {
|
|
168
174
|
display: "flex",
|
|
169
175
|
alignItems: "center",
|
|
170
176
|
justifyContent: "space-between"
|
|
171
177
|
},
|
|
172
|
-
children: [/* @__PURE__ */
|
|
178
|
+
children: [/* @__PURE__ */ T("div", {
|
|
173
179
|
style: {
|
|
174
180
|
display: "flex",
|
|
175
181
|
alignItems: "center",
|
|
176
182
|
gap: "var(--space-formGap)"
|
|
177
183
|
},
|
|
178
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ w("div", {
|
|
179
185
|
style: {
|
|
180
186
|
display: "flex",
|
|
181
187
|
height: "var(--size-controlHeight-lg)",
|
|
@@ -185,20 +191,20 @@ var le = [
|
|
|
185
191
|
borderRadius: "var(--radius-card)",
|
|
186
192
|
backgroundColor: "var(--color-action-primary-bg)"
|
|
187
193
|
},
|
|
188
|
-
children: /* @__PURE__ */
|
|
194
|
+
children: /* @__PURE__ */ w(le, { style: {
|
|
189
195
|
height: "var(--size-icon-lg)",
|
|
190
196
|
width: "var(--size-icon-lg)",
|
|
191
197
|
color: "var(--color-action-primary-text)"
|
|
192
198
|
} })
|
|
193
|
-
}), /* @__PURE__ */
|
|
199
|
+
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
|
|
194
200
|
style: {
|
|
195
201
|
fontSize: "var(--font-size-heading-h4)",
|
|
196
202
|
fontWeight: "var(--font-weight-bold)",
|
|
197
203
|
margin: 0,
|
|
198
204
|
color: "var(--color-text-primary)"
|
|
199
205
|
},
|
|
200
|
-
children: /* @__PURE__ */
|
|
201
|
-
}), /* @__PURE__ */
|
|
206
|
+
children: /* @__PURE__ */ w(ge, { children: "Data Parsers" })
|
|
207
|
+
}), /* @__PURE__ */ w("p", {
|
|
202
208
|
style: {
|
|
203
209
|
fontSize: "var(--font-size-body-sm)",
|
|
204
210
|
color: "var(--color-text-secondary)",
|
|
@@ -206,36 +212,36 @@ var le = [
|
|
|
206
212
|
},
|
|
207
213
|
children: "Transform and process data with JQ or JSONata expressions"
|
|
208
214
|
})] })]
|
|
209
|
-
}), /* @__PURE__ */
|
|
210
|
-
primary: {
|
|
215
|
+
}), /* @__PURE__ */ w(m, {
|
|
216
|
+
primary: j ? {
|
|
211
217
|
label: "Create Parser",
|
|
212
218
|
onSelect: Z,
|
|
213
|
-
icon: /* @__PURE__ */
|
|
219
|
+
icon: /* @__PURE__ */ w(d, { style: {
|
|
214
220
|
marginRight: "var(--space-iconGap)",
|
|
215
221
|
height: "var(--size-icon-sm)",
|
|
216
222
|
width: "var(--size-icon-sm)"
|
|
217
223
|
} })
|
|
218
|
-
},
|
|
219
|
-
actions: [{
|
|
224
|
+
} : void 0,
|
|
225
|
+
actions: j ? [{
|
|
220
226
|
label: "Import",
|
|
221
|
-
onSelect:
|
|
222
|
-
icon: /* @__PURE__ */
|
|
227
|
+
onSelect: je,
|
|
228
|
+
icon: /* @__PURE__ */ w(de, { style: {
|
|
223
229
|
height: "var(--size-icon-sm)",
|
|
224
230
|
width: "var(--size-icon-sm)"
|
|
225
231
|
} })
|
|
226
|
-
}]
|
|
232
|
+
}] : []
|
|
227
233
|
})]
|
|
228
234
|
})
|
|
229
235
|
})]
|
|
230
236
|
}),
|
|
231
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ T("div", {
|
|
232
238
|
style: { padding: "var(--space-pagePadding)" },
|
|
233
239
|
children: [
|
|
234
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ w(v, {
|
|
235
241
|
className: "mb-[var(--space-sectionGap)]",
|
|
236
242
|
children: "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."
|
|
237
243
|
}),
|
|
238
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ T("div", {
|
|
239
245
|
style: {
|
|
240
246
|
display: "flex",
|
|
241
247
|
alignItems: "center",
|
|
@@ -244,13 +250,13 @@ var le = [
|
|
|
244
250
|
flexWrap: "wrap"
|
|
245
251
|
},
|
|
246
252
|
children: [
|
|
247
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ T("div", {
|
|
248
254
|
style: {
|
|
249
255
|
position: "relative",
|
|
250
256
|
maxWidth: "400px",
|
|
251
257
|
flex: 1
|
|
252
258
|
},
|
|
253
|
-
children: [/* @__PURE__ */
|
|
259
|
+
children: [/* @__PURE__ */ w(ue, { style: {
|
|
254
260
|
position: "absolute",
|
|
255
261
|
left: "var(--space-controlGap)",
|
|
256
262
|
top: "50%",
|
|
@@ -258,50 +264,50 @@ var le = [
|
|
|
258
264
|
height: "var(--size-icon-sm)",
|
|
259
265
|
width: "var(--size-icon-sm)",
|
|
260
266
|
color: "var(--color-text-muted)"
|
|
261
|
-
} }), /* @__PURE__ */
|
|
267
|
+
} }), /* @__PURE__ */ w(_, {
|
|
262
268
|
type: "text",
|
|
263
269
|
placeholder: "Search parsers...",
|
|
264
|
-
value:
|
|
265
|
-
onChange:
|
|
270
|
+
value: L || "",
|
|
271
|
+
onChange: Ee,
|
|
266
272
|
style: {
|
|
267
273
|
paddingLeft: "var(--size-controlHeight-md)",
|
|
268
274
|
height: "var(--size-controlHeight-md)"
|
|
269
275
|
}
|
|
270
276
|
})]
|
|
271
277
|
}),
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
value:
|
|
274
|
-
onValueChange:
|
|
275
|
-
children: [/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ T(y, {
|
|
279
|
+
value: F || "all",
|
|
280
|
+
onValueChange: we,
|
|
281
|
+
children: [/* @__PURE__ */ w(S, {
|
|
276
282
|
style: { width: "150px" },
|
|
277
|
-
children: /* @__PURE__ */
|
|
278
|
-
}), /* @__PURE__ */
|
|
283
|
+
children: /* @__PURE__ */ w(C, { placeholder: "All Types" })
|
|
284
|
+
}), /* @__PURE__ */ w(b, { children: ve.map((e) => /* @__PURE__ */ w(x, {
|
|
279
285
|
value: e.value,
|
|
280
286
|
children: e.label
|
|
281
287
|
}, e.value)) })]
|
|
282
288
|
}),
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
-
value:
|
|
285
|
-
onValueChange:
|
|
286
|
-
children: [/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ T(y, {
|
|
290
|
+
value: I || "all",
|
|
291
|
+
onValueChange: Te,
|
|
292
|
+
children: [/* @__PURE__ */ w(S, {
|
|
287
293
|
style: { width: "150px" },
|
|
288
|
-
children: /* @__PURE__ */
|
|
289
|
-
}), /* @__PURE__ */
|
|
294
|
+
children: /* @__PURE__ */ w(C, { placeholder: "All Status" })
|
|
295
|
+
}), /* @__PURE__ */ w(b, { children: ye.map((e) => /* @__PURE__ */ w(x, {
|
|
290
296
|
value: e.value,
|
|
291
297
|
children: e.label
|
|
292
298
|
}, e.value)) })]
|
|
293
299
|
}),
|
|
294
|
-
$ && /* @__PURE__ */
|
|
300
|
+
$ && /* @__PURE__ */ T(p, {
|
|
295
301
|
variant: "ghost",
|
|
296
302
|
size: "sm",
|
|
297
303
|
onClick: Q,
|
|
298
|
-
children: [/* @__PURE__ */
|
|
304
|
+
children: [/* @__PURE__ */ w(f, { style: {
|
|
299
305
|
marginRight: "var(--space-iconGap)",
|
|
300
306
|
height: "var(--size-icon-sm)",
|
|
301
307
|
width: "var(--size-icon-sm)"
|
|
302
308
|
} }), "Clear Filters"]
|
|
303
309
|
}),
|
|
304
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ T(pe, {
|
|
305
311
|
variant: "secondary",
|
|
306
312
|
style: { marginLeft: "auto" },
|
|
307
313
|
children: [
|
|
@@ -312,20 +318,20 @@ var le = [
|
|
|
312
318
|
})
|
|
313
319
|
]
|
|
314
320
|
}),
|
|
315
|
-
W && /* @__PURE__ */
|
|
321
|
+
W && /* @__PURE__ */ w("div", {
|
|
316
322
|
style: {
|
|
317
323
|
display: "flex",
|
|
318
324
|
alignItems: "center",
|
|
319
325
|
justifyContent: "center",
|
|
320
326
|
padding: "80px 0"
|
|
321
327
|
},
|
|
322
|
-
children: /* @__PURE__ */
|
|
328
|
+
children: /* @__PURE__ */ T("div", {
|
|
323
329
|
style: { textAlign: "center" },
|
|
324
|
-
children: [/* @__PURE__ */
|
|
330
|
+
children: [/* @__PURE__ */ w(_e, { style: {
|
|
325
331
|
height: "var(--size-icon-xl)",
|
|
326
332
|
width: "var(--size-icon-xl)",
|
|
327
333
|
margin: "0 auto var(--space-formGap)"
|
|
328
|
-
} }), /* @__PURE__ */
|
|
334
|
+
} }), /* @__PURE__ */ w("p", {
|
|
329
335
|
style: {
|
|
330
336
|
fontSize: "var(--font-size-body-sm)",
|
|
331
337
|
color: "var(--color-text-muted)"
|
|
@@ -334,31 +340,35 @@ var le = [
|
|
|
334
340
|
})]
|
|
335
341
|
})
|
|
336
342
|
}),
|
|
337
|
-
!W && X.length === 0 && !$ && /* @__PURE__ */
|
|
343
|
+
!W && X.length === 0 && !$ && /* @__PURE__ */ w(h, {
|
|
338
344
|
treatment: "insight",
|
|
339
345
|
className: "border-border-seam",
|
|
340
|
-
children: /* @__PURE__ */
|
|
346
|
+
children: /* @__PURE__ */ w(g, {
|
|
341
347
|
illustration: "empty-data",
|
|
342
348
|
title: "No Parsers yet",
|
|
343
349
|
description: "Create your first parser to start transforming data with JQ or JSONata.",
|
|
344
|
-
action: /* @__PURE__ */
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
350
|
+
action: /* @__PURE__ */ w(oe, {
|
|
351
|
+
permission: i.PARSER_CREATE,
|
|
352
|
+
deniedBehavior: "disable",
|
|
353
|
+
children: /* @__PURE__ */ T(p, {
|
|
354
|
+
onClick: Z,
|
|
355
|
+
children: [/* @__PURE__ */ w(d, { style: {
|
|
356
|
+
marginRight: "var(--space-iconGap)",
|
|
357
|
+
height: "var(--size-icon-sm)",
|
|
358
|
+
width: "var(--size-icon-sm)"
|
|
359
|
+
} }), "Create Parser"]
|
|
360
|
+
})
|
|
351
361
|
})
|
|
352
362
|
})
|
|
353
363
|
}),
|
|
354
|
-
!W && X.length === 0 && $ && /* @__PURE__ */
|
|
364
|
+
!W && X.length === 0 && $ && /* @__PURE__ */ w(h, {
|
|
355
365
|
treatment: "insight",
|
|
356
366
|
className: "border-border-seam",
|
|
357
|
-
children: /* @__PURE__ */
|
|
367
|
+
children: /* @__PURE__ */ w(g, {
|
|
358
368
|
illustration: "empty-search",
|
|
359
369
|
title: "No matching parsers",
|
|
360
370
|
description: "No parsers match your filters",
|
|
361
|
-
action: /* @__PURE__ */
|
|
371
|
+
action: /* @__PURE__ */ w(p, {
|
|
362
372
|
variant: "ghost",
|
|
363
373
|
size: "sm",
|
|
364
374
|
onClick: Q,
|
|
@@ -366,33 +376,33 @@ var le = [
|
|
|
366
376
|
})
|
|
367
377
|
})
|
|
368
378
|
}),
|
|
369
|
-
!W && X.length > 0 && /* @__PURE__ */
|
|
379
|
+
!W && X.length > 0 && /* @__PURE__ */ w("div", {
|
|
370
380
|
style: {
|
|
371
381
|
display: "grid",
|
|
372
382
|
gridTemplateColumns: "repeat(auto-fill, minmax(320px, 1fr))",
|
|
373
383
|
gap: "var(--space-formGap)"
|
|
374
384
|
},
|
|
375
|
-
children: X.map((e) => /* @__PURE__ */
|
|
385
|
+
children: X.map((e) => /* @__PURE__ */ w(ne, {
|
|
376
386
|
parser: e,
|
|
377
|
-
onView:
|
|
378
|
-
onEdit:
|
|
379
|
-
onExport:
|
|
380
|
-
onDelete:
|
|
381
|
-
isDeleting:
|
|
387
|
+
onView: De,
|
|
388
|
+
onEdit: M ? Oe : void 0,
|
|
389
|
+
onExport: Ae,
|
|
390
|
+
onDelete: N ? ke : void 0,
|
|
391
|
+
isDeleting: be && xe === e.id
|
|
382
392
|
}, e.id))
|
|
383
393
|
})
|
|
384
394
|
]
|
|
385
395
|
}),
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
isOpen:
|
|
396
|
+
/* @__PURE__ */ w(s, {
|
|
397
|
+
isOpen: Se,
|
|
388
398
|
onClose: () => U(!1),
|
|
389
|
-
consoleId:
|
|
390
|
-
onSuccess:
|
|
399
|
+
consoleId: P,
|
|
400
|
+
onSuccess: Me
|
|
391
401
|
})
|
|
392
402
|
]
|
|
393
403
|
});
|
|
394
404
|
});
|
|
395
405
|
//#endregion
|
|
396
|
-
export {
|
|
406
|
+
export { D as DataParsersPage, D as default };
|
|
397
407
|
|
|
398
408
|
//# sourceMappingURL=DataParsersPage.js.map
|