@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.
Files changed (38) hide show
  1. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +129 -117
  2. package/dist/bigconsole/components/embed/widgets/ChartEmbed.js +70 -66
  3. package/dist/bigconsole/components/insights/GeneratedFormattingReview.d.ts +21 -0
  4. package/dist/bigconsole/components/insights/GeneratedFormattingReview.js +90 -44
  5. package/dist/bigconsole/components/parser/ParserCard.d.ts +3 -1
  6. package/dist/bigconsole/components/parser/ParserCard.js +125 -120
  7. package/dist/bigconsole/components/parser/ParserScopeBadge.d.ts +6 -0
  8. package/dist/bigconsole/components/parser/ParserScopeBadge.js +23 -0
  9. package/dist/bigconsole/components/widgets/chart/ChartWidget.js +1 -0
  10. package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +5 -1
  11. package/dist/bigconsole/components/widgets/chart/charts/AreaChart.js +4 -1
  12. package/dist/bigconsole/components/widgets/chart/charts/BarChart.js +53 -45
  13. package/dist/bigconsole/components/widgets/chart/charts/ComboChart.js +5 -1
  14. package/dist/bigconsole/components/widgets/chart/charts/LineChart.js +4 -1
  15. package/dist/bigconsole/components/widgets/chart/charts/referenceElements.d.ts +13 -11
  16. package/dist/bigconsole/components/widgets/chart/charts/referenceElements.js +58 -29
  17. package/dist/bigconsole/components/widgets/chart/charts/types.d.ts +8 -1
  18. package/dist/bigconsole/components/widgets/chart/referenceLineDraft.js +26 -23
  19. package/dist/bigconsole/components/widgets/utils/conditionalFormat.d.ts +41 -0
  20. package/dist/bigconsole/components/widgets/utils/conditionalFormat.js +80 -44
  21. package/dist/bigconsole/hooks/useExportDashboard.d.ts +14 -2
  22. package/dist/bigconsole/hooks/useExportDashboard.js +45 -41
  23. package/dist/bigconsole/hooks/useParserOperations.d.ts +6 -0
  24. package/dist/bigconsole/hooks/useParserOperations.js +64 -65
  25. package/dist/bigconsole/pages/DataParsersPage.js +201 -172
  26. package/dist/bigconsole/pages/InsightsPage.js +458 -451
  27. package/dist/bigconsole/store/parserScope.js +9 -6
  28. package/dist/bigconsole/types/index.d.ts +16 -0
  29. package/dist/bigconsole/utils/parserScopeFilter.d.ts +14 -0
  30. package/dist/bigconsole/utils/parserScopeFilter.js +25 -0
  31. package/dist/bigconsole/utils/pipelineExecutionTimeline.d.ts +13 -1
  32. package/dist/bigconsole/utils/pipelineExecutionTimeline.js +26 -3
  33. package/dist/generated/global-operations.d.ts +45 -6
  34. package/dist/generated/global-types.d.ts +5839 -804
  35. package/dist/generated/wspace-operations.d.ts +48 -1
  36. package/dist/generated/wspace-operations.js +86 -7
  37. package/dist/generated/wspace-types.d.ts +1339 -6
  38. 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 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
- import { jsx as x, jsxs as S } from "react/jsx-runtime";
21
- import { useAssistantPageControls as we } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
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 Te = "default", C = l(function() {
24
- let l = e(), { consoleId: C } = oe(), w = ae(), T = d(() => [
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: w("bigconsole.parsers.filters.allTypes", "All Types")
28
+ label: C("bigconsole.parsers.filters.allTypes", "All Types")
28
29
  },
29
30
  {
30
31
  value: "jq",
31
- label: w("bigconsole.parsers.filters.jq", "JQ")
32
+ label: C("bigconsole.parsers.filters.jq", "JQ")
32
33
  },
33
34
  {
34
35
  value: "jsonata",
35
- label: w("bigconsole.parsers.filters.jsonata", "JSONata")
36
+ label: C("bigconsole.parsers.filters.jsonata", "JSONata")
36
37
  }
37
- ], [w]), E = d(() => [
38
+ ], [C]), T = u(() => [
38
39
  {
39
40
  value: "all",
40
- label: w("bigconsole.parsers.filters.allStatus", "All Status")
41
+ label: C("bigconsole.parsers.filters.allStatus", "All Status")
41
42
  },
42
43
  {
43
44
  value: "active",
44
- label: w("bigconsole.parsers.filters.active", "Active")
45
+ label: C("bigconsole.parsers.filters.active", "Active")
45
46
  },
46
47
  {
47
48
  value: "inactive",
48
- label: w("bigconsole.parsers.filters.inactive", "Inactive")
49
+ label: C("bigconsole.parsers.filters.inactive", "Inactive")
49
50
  }
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
+ ], [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: fe,
53
- label: w("bigconsole.parsers.list.gridView", "Grid view")
53
+ Icon: ge,
54
+ label: C("bigconsole.parsers.list.gridView", "Grid view")
54
55
  }, {
55
56
  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,
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: q } = ne(), J = d(() => W ? W.filter((e) => {
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
- W,
71
+ K,
72
+ Y,
70
73
  M,
71
74
  N,
72
75
  P
73
- ]), Y = u((e) => {
76
+ ]), Z = l((e) => {
74
77
  F(e === "all" ? null : e);
75
- }, [F]), X = u((e) => {
78
+ }, [F]), Q = l((e) => {
76
79
  I(e === "all" ? null : e);
77
- }, [I]), Ne = u((e) => {
80
+ }, [I]), ze = l((e) => {
81
+ U(ce(e));
82
+ }, []), Be = l((e) => {
78
83
  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) => {
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: w("bigconsole.parsers.confirmDelete.title", "Delete parser?"),
88
- message: w("bigconsole.parsers.confirmDelete.message", "Are you sure you want to delete this parser?"),
89
- okButtonTitle: w("bigconsole.parsers.actions.delete", "Delete"),
90
- cancelButtonTitle: w("bigconsole.parsers.actions.cancel", "Cancel")
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(w("bigconsole.parsers.confirmDelete.message", "Are you sure you want to delete this parser?")) : a) {
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 G(e), t() && i("success");
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
- }, [G, w]), Q = u(() => {
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
- ]), Le = u(async (e) => {
109
- let t = W.find((t) => t.id === e);
110
- t && await q(e, t.name);
111
- }, [W, q]), Re = u(() => {
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
- }, []), ze = u((e, t, n) => {
114
- K();
115
- }, [K]), $ = M !== null || N !== null || (P?.length ?? 0) > 0, Be = d(() => !O && k && !U ? s({
116
- tr: w,
117
- typeOptions: T,
118
- statusOptions: E,
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: Y,
122
- setStatus: X,
126
+ setType: Z,
127
+ setStatus: Q,
123
128
  setSearch: L
124
129
  }) : null, [
125
- w,
130
+ C,
131
+ D,
126
132
  O,
127
- k,
128
- U,
133
+ G,
134
+ w,
129
135
  T,
130
- E,
131
136
  M,
132
137
  N,
133
- Y,
134
- X,
138
+ Z,
139
+ Q,
135
140
  L
136
141
  ]);
137
- return we(Be), U ? /* @__PURE__ */ x("div", {
142
+ return Oe(Ye), G ? /* @__PURE__ */ b("div", {
138
143
  style: { padding: "var(--space-pagePadding)" },
139
- children: /* @__PURE__ */ x(a, {
144
+ children: /* @__PURE__ */ b(a, {
140
145
  tone: "danger",
141
146
  headingLevel: 2,
142
- title: w("bigconsole.parsers.errors.loadFailed", "Failed to load Parsers"),
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__ */ x(ue, { className: "h-icon-md w-icon-md text-[var(--color-status-error-text)]" }),
145
- actions: /* @__PURE__ */ x(m, {
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: () => K(),
148
- children: w("bigconsole.parsers.actions.tryAgain", "Try Again")
152
+ onClick: () => J(),
153
+ children: C("bigconsole.parsers.actions.tryAgain", "Try Again")
149
154
  }),
150
155
  "data-testid": "parsers-error",
151
- children: /* @__PURE__ */ x("p", {
156
+ children: /* @__PURE__ */ b("p", {
152
157
  className: "font-mono text-xs break-words text-text-secondary",
153
- children: U.message
158
+ children: G.message
154
159
  })
155
160
  })
156
- }) : !O && !k ? /* @__PURE__ */ x(se, {
157
- title: w("bigconsole.parsers.accessDenied.title", "Access Denied"),
158
- description: w("bigconsole.parsers.accessDenied.list", "You don't have permission to view parsers.")
159
- }) : /* @__PURE__ */ S("div", {
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__ */ S("div", {
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__ */ x(_e, { intensity: "subtle" }), /* @__PURE__ */ x("div", {
172
+ children: [/* @__PURE__ */ b(xe, { intensity: "subtle" }), /* @__PURE__ */ b("div", {
168
173
  className: "relative",
169
174
  style: { padding: "var(--space-pagePadding)" },
170
- children: /* @__PURE__ */ S("div", {
175
+ children: /* @__PURE__ */ x("div", {
171
176
  className: "flex flex-wrap items-center justify-between gap-form-gap",
172
- children: [/* @__PURE__ */ S("div", {
177
+ children: [/* @__PURE__ */ x("div", {
173
178
  className: "flex min-w-0 items-center gap-form-gap",
174
- children: [/* @__PURE__ */ x("div", {
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__ */ x(de, { style: {
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__ */ S("div", {
192
+ }), /* @__PURE__ */ x("div", {
188
193
  className: "min-w-0",
189
- children: [/* @__PURE__ */ x("h1", {
194
+ children: [/* @__PURE__ */ b("h1", {
190
195
  className: "m-0 text-2xl font-bold text-text-primary sm:text-3xl",
191
- children: /* @__PURE__ */ x(be, { children: w("bigconsole.parsers.list.title", "Data Parsers") })
192
- }), /* @__PURE__ */ x("p", {
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: w("bigconsole.parsers.list.subtitle", "Transform and process data with JQ or JSONata expressions")
199
+ children: C("bigconsole.parsers.list.subtitle", "Transform and process data with JQ or JSONata expressions")
195
200
  })]
196
201
  })]
197
- }), /* @__PURE__ */ S("div", {
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__ */ S("div", {
205
+ /* @__PURE__ */ x("div", {
201
206
  className: "relative min-w-[200px] flex-1 lg:w-80 lg:flex-none",
202
- children: [/* @__PURE__ */ x(me, {
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__ */ x(xe, {
218
+ }), /* @__PURE__ */ b(Te, {
214
219
  type: "text",
215
- "aria-label": w("bigconsole.parsers.list.searchPlaceholder", "Search parsers..."),
216
- placeholder: w("bigconsole.parsers.list.searchPlaceholder", "Search parsers..."),
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: Ne,
223
+ onChange: Be,
219
224
  className: "min-h-11",
220
225
  style: { paddingLeft: "var(--size-controlHeight-md)" }
221
226
  })]
222
227
  }),
223
- /* @__PURE__ */ x("div", {
228
+ /* @__PURE__ */ b("div", {
224
229
  role: "group",
225
- "aria-label": w("bigconsole.parsers.list.viewModeAriaLabel", "Parser layout"),
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: Me.map(({ mode: e, Icon: t, label: n }) => /* @__PURE__ */ x("button", {
232
+ children: Ie.map(({ mode: e, Icon: t, label: n }) => /* @__PURE__ */ b("button", {
228
233
  type: "button",
229
- onClick: () => je(e),
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__ */ x(t, {
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__ */ x(ye, {
244
- primary: A ? {
245
- label: w("bigconsole.parsers.actions.create", "Create Parser"),
246
- onSelect: Z,
247
- icon: /* @__PURE__ */ x(p, { style: {
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: A ? [{
254
- label: w("bigconsole.parsers.actions.import", "Import"),
255
- onSelect: Re,
256
- icon: /* @__PURE__ */ x(he, { style: {
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__ */ x("div", {
272
+ /* @__PURE__ */ b("div", {
268
273
  style: { padding: "var(--space-pagePadding)" },
269
- children: /* @__PURE__ */ S(ee, { children: [
270
- /* @__PURE__ */ x(Se, {
274
+ children: /* @__PURE__ */ x(ee, { children: [
275
+ /* @__PURE__ */ b(Ee, {
271
276
  className: "max-w-[80ch]",
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.")
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__ */ x(a, {
279
+ /* @__PURE__ */ b(a, {
275
280
  emphasis: "muted",
276
281
  padding: "compact",
277
282
  headingLevel: 2,
278
- title: w("bigconsole.parsers.list.findTitle", "Find a parser"),
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__ */ S("div", {
286
+ children: /* @__PURE__ */ x("div", {
282
287
  className: "flex flex-wrap items-center gap-control-gap",
283
288
  children: [
284
- /* @__PURE__ */ S(g, {
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: Y,
287
- children: [/* @__PURE__ */ x(y, {
288
- "aria-label": w("bigconsole.parsers.filters.typeAriaLabel", "Filter by parser type"),
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__ */ x(b, { placeholder: w("bigconsole.parsers.filters.allTypes", "All Types") })
291
- }), /* @__PURE__ */ x(_, { children: T.map((e) => /* @__PURE__ */ x(v, {
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__ */ S(g, {
324
+ /* @__PURE__ */ x(h, {
297
325
  value: N || "all",
298
- onValueChange: X,
299
- children: [/* @__PURE__ */ x(y, {
300
- "aria-label": w("bigconsole.parsers.filters.statusAriaLabel", "Filter by status"),
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__ */ x(b, { placeholder: w("bigconsole.parsers.filters.allStatus", "All Status") })
303
- }), /* @__PURE__ */ x(_, { children: E.map((e) => /* @__PURE__ */ x(v, {
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__ */ S(m, {
336
+ $ && /* @__PURE__ */ x(p, {
309
337
  variant: "ghost",
310
338
  size: "sm",
311
- onClick: Q,
339
+ onClick: Ge,
312
340
  className: "min-h-control-md",
313
- children: [/* @__PURE__ */ x(ge, { style: {
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
- } }), w("bigconsole.parsers.filters.clear", "Clear Filters")]
345
+ } }), C("bigconsole.parsers.filters.clear", "Clear Filters")]
318
346
  })
319
347
  ]
320
348
  })
321
349
  }),
322
- /* @__PURE__ */ S(a, {
350
+ /* @__PURE__ */ x(a, {
323
351
  emphasis: "primary",
324
352
  padding: "compact",
325
353
  headingLevel: 2,
326
- title: w("bigconsole.parsers.list.resultsTitle", "Parsers"),
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."),
328
- meta: /* @__PURE__ */ x(ve, {
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: J.length === 1 ? w("bigconsole.parsers.list.countSingular", "{{count}} Parser", { count: J.length }) : w("bigconsole.parsers.list.countPlural", "{{count}} Parsers", { count: J.length })
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
- H && /* @__PURE__ */ x("div", {
362
+ W && /* @__PURE__ */ b("div", {
335
363
  className: "flex items-center justify-center py-12 sm:py-16",
336
- children: /* @__PURE__ */ S("div", {
364
+ children: /* @__PURE__ */ x("div", {
337
365
  className: "text-center",
338
- children: [/* @__PURE__ */ x(Ce, { style: {
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__ */ x("p", {
370
+ } }), /* @__PURE__ */ b("p", {
343
371
  className: "text-sm text-text-muted",
344
- children: w("bigconsole.parsers.list.loading", "Loading parsers...")
372
+ children: C("bigconsole.parsers.list.loading", "Loading parsers...")
345
373
  })]
346
374
  })
347
375
  }),
348
- !H && J.length === 0 && !$ && /* @__PURE__ */ x(h, {
376
+ !W && X.length === 0 && !$ && /* @__PURE__ */ b(m, {
349
377
  illustration: "empty-data",
350
- title: w("bigconsole.parsers.list.emptyTitle", "No Parsers yet"),
351
- description: w("bigconsole.parsers.list.emptyDescription", "Create your first parser to start transforming data with JQ or JSONata."),
352
- action: /* @__PURE__ */ x(ce, {
353
- permission: c.PARSER_CREATE,
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__ */ S(m, {
356
- onClick: Z,
357
- children: [/* @__PURE__ */ x(p, { style: {
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
- } }), w("bigconsole.parsers.actions.create", "Create Parser")]
389
+ } }), C("bigconsole.parsers.actions.create", "Create Parser")]
362
390
  })
363
391
  })
364
392
  }),
365
- !H && J.length === 0 && $ && /* @__PURE__ */ x(h, {
393
+ !W && X.length === 0 && $ && /* @__PURE__ */ b(m, {
366
394
  illustration: "empty-search",
367
- title: w("bigconsole.parsers.list.noMatchTitle", "No matching parsers"),
368
- description: w("bigconsole.parsers.list.noMatchDescription", "No parsers match your filters"),
369
- action: /* @__PURE__ */ x(m, {
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: Q,
373
- children: w("bigconsole.parsers.filters.clear", "Clear Filters")
400
+ onClick: Ge,
401
+ children: C("bigconsole.parsers.filters.clear", "Clear Filters")
374
402
  })
375
403
  }),
376
- !H && J.length > 0 && /* @__PURE__ */ x("ul", {
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: J.map((e) => /* @__PURE__ */ x("li", {
406
+ children: X.map((e) => /* @__PURE__ */ b("li", {
379
407
  className: "min-w-0",
380
- children: /* @__PURE__ */ x(re, {
408
+ children: /* @__PURE__ */ b(re, {
381
409
  parser: e,
382
410
  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
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__ */ x(ie, {
396
- isOpen: Ae,
424
+ /* @__PURE__ */ b(ie, {
425
+ isOpen: Pe,
397
426
  onClose: () => B(!1),
398
- consoleId: j,
399
- onSuccess: ze
427
+ consoleId: A,
428
+ onSuccess: Je
400
429
  })
401
430
  ]
402
431
  });
403
432
  });
404
- export { C as DataParsersPage, C as default };
433
+ export { S as DataParsersPage, S as default };