@gravitee/gamma-lib-observability 3.2.1-fix-esm-210-tracing-filter-module.addd71d → 3.2.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/INTEGRATION.md +0 -19
- package/dist/data-sources/http-traces-filter-source.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +234 -219
- package/dist/routing/ObservabilityRoutes.d.ts.map +1 -1
- package/dist/routing/TracingFilterProvider.d.ts +1 -7
- package/dist/routing/TracingFilterProvider.d.ts.map +1 -1
- package/dist/routing/index.d.ts +1 -1
- package/dist/routing/index.d.ts.map +1 -1
- package/dist/routing/types.d.ts +0 -13
- package/dist/routing/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { AlertCircleIcon as S, AlignRightIcon as C, ArrowDownIcon as w, ArrowLef
|
|
|
3
3
|
import { Component as Ie, Fragment as Le, Suspense as Re, createContext as ze, createElement as Be, forwardRef as Ve, lazy as He, memo as Ue, useCallback as A, useContext as We, useEffect as j, useId as Ge, useLayoutEffect as Ke, useMemo as M, useReducer as qe, useRef as N, useState as P } from "react";
|
|
4
4
|
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
5
5
|
import { keepPreviousData as Je, useInfiniteQuery as Ye, useMutation as Xe, useQueries as Ze, useQuery as R, useQueryClient as Qe } from "@tanstack/react-query";
|
|
6
|
-
import { Accordion as $e, AccordionContent as et, AccordionItem as tt, AccordionTrigger as nt, Alert as rt, AlertDescription as it, AlertTitle as at, Badge as
|
|
6
|
+
import { Accordion as $e, AccordionContent as et, AccordionItem as tt, AccordionTrigger as nt, Alert as rt, AlertDescription as it, AlertTitle as at, Badge as z, Button as B, Calendar as ot, Card as st, Combobox as ct, ComboboxChip as lt, ComboboxChips as ut, ComboboxChipsInput as dt, ComboboxContent as ft, ComboboxEmpty as pt, ComboboxInput as mt, ComboboxItem as ht, ComboboxList as gt, ComboboxValue as _t, DataTable as vt, DataTableColumnHeader as yt, DataTablePagination as bt, Dialog as xt, DialogClose as St, DialogContent as Ct, DialogDescription as wt, DialogFooter as Tt, DialogHeader as Et, DialogTitle as Dt, DropdownMenu as Ot, DropdownMenuContent as kt, DropdownMenuItem as At, DropdownMenuLabel as jt, DropdownMenuSeparator as Mt, DropdownMenuTrigger as Nt, Empty as Pt, EmptyDescription as Ft, EmptyHeader as It, EmptyMedia as Lt, EmptyTitle as Rt, Field as V, FieldDescription as zt, FieldError as Bt, FieldGroup as Vt, FieldLabel as Ht, Input as H, Label as Ut, Popover as Wt, PopoverAnchor as Gt, PopoverContent as Kt, PopoverTrigger as qt, ScrollArea as Jt, Select as U, SelectContent as W, SelectGroup as Yt, SelectItem as G, SelectLabel as Xt, SelectTrigger as K, SelectValue as q, Separator as Zt, Sheet as Qt, SheetContent as $t, SheetDescription as en, SheetTitle as tn, Skeleton as J, Spinner as nn, Switch as rn, Tabs as an, TabsContent as on, TabsList as sn, TabsTrigger as cn, Textarea as ln, ToggleGroup as un, ToggleGroupItem as dn, Tooltip as fn, TooltipContent as pn, TooltipProvider as Y, TooltipTrigger as mn, buttonVariants as hn, cn as X, toast as Z, useComboboxAnchor as gn } from "@gravitee/graphene-core";
|
|
7
7
|
import { AreaSeries as _n, BarChart as vn, BarSeries as yn, BreakdownChart as bn, BreakdownTooltip as xn, BreakdownTooltipContent as Sn, CartesianChart as Cn, ChartContainer as wn, ChartLegend as Tn, ChartLegendContent as En, ChartTooltip as Dn, ChartTooltipContent as On, DoughnutChart as kn, FilterCombobox as An, Grid as jn, LineSeries as Mn, Metric as Nn, MetricGroup as Pn, ReferenceLine as Fn, TraceWaterfall as In, ValueAxis as Ln, XAxis as Rn, YAxis as zn, compactTick as Bn } from "@gravitee/graphene-charts";
|
|
8
8
|
import { DashboardGrid as Vn, DashboardWidget as Hn } from "@gravitee/graphene-charts/dashboard-grid";
|
|
9
9
|
import { Link as Un, Navigate as Wn, Route as Gn, Routes as Kn, useLocation as qn, useNavigate as Jn, useParams as Yn, useSearchParams as Xn } from "react-router-dom";
|
|
@@ -1050,7 +1050,7 @@ function zi({ value: e, onChange: t, disabled: n = !1, showTimezone: r = !1, cla
|
|
|
1050
1050
|
onOpenChange: S,
|
|
1051
1051
|
children: [/* @__PURE__ */ I(qt, {
|
|
1052
1052
|
asChild: !0,
|
|
1053
|
-
children: /* @__PURE__ */ L(
|
|
1053
|
+
children: /* @__PURE__ */ L(B, {
|
|
1054
1054
|
variant: "outline",
|
|
1055
1055
|
disabled: n,
|
|
1056
1056
|
"aria-label": "Time range picker",
|
|
@@ -1095,7 +1095,7 @@ function zi({ value: e, onChange: t, disabled: n = !1, showTimezone: r = !1, cla
|
|
|
1095
1095
|
children: t.label
|
|
1096
1096
|
}), /* @__PURE__ */ I("div", {
|
|
1097
1097
|
className: "grid grid-cols-3 gap-2",
|
|
1098
|
-
children: t.periods.map((t) => /* @__PURE__ */ I(
|
|
1098
|
+
children: t.periods.map((t) => /* @__PURE__ */ I(B, {
|
|
1099
1099
|
variant: "outline",
|
|
1100
1100
|
size: "sm",
|
|
1101
1101
|
role: "option",
|
|
@@ -1112,7 +1112,7 @@ function zi({ value: e, onChange: t, disabled: n = !1, showTimezone: r = !1, cla
|
|
|
1112
1112
|
u === "custom" && /* @__PURE__ */ L("div", {
|
|
1113
1113
|
className: "flex flex-col gap-3",
|
|
1114
1114
|
children: [
|
|
1115
|
-
/* @__PURE__ */ I(
|
|
1115
|
+
/* @__PURE__ */ I(ot, {
|
|
1116
1116
|
mode: "range",
|
|
1117
1117
|
selected: f,
|
|
1118
1118
|
onSelect: w,
|
|
@@ -1165,7 +1165,7 @@ function zi({ value: e, onChange: t, disabled: n = !1, showTimezone: r = !1, cla
|
|
|
1165
1165
|
role: "alert",
|
|
1166
1166
|
children: "Start must be before end"
|
|
1167
1167
|
}),
|
|
1168
|
-
/* @__PURE__ */ I(
|
|
1168
|
+
/* @__PURE__ */ I(B, {
|
|
1169
1169
|
size: "sm",
|
|
1170
1170
|
disabled: !x || n,
|
|
1171
1171
|
onClick: T,
|
|
@@ -1385,24 +1385,24 @@ function ca({ options: e, selected: t, onSelectedChange: n, multiple: r, onSearc
|
|
|
1385
1385
|
...a && { filter: null },
|
|
1386
1386
|
...i && { onInputValueChange: (e) => i(String(e)) }
|
|
1387
1387
|
}, v = /* @__PURE__ */ L(F, { children: [
|
|
1388
|
-
/* @__PURE__ */ I(
|
|
1389
|
-
/* @__PURE__ */ I(
|
|
1388
|
+
/* @__PURE__ */ I(pt, { children: s }),
|
|
1389
|
+
/* @__PURE__ */ I(gt, { children: (e) => /* @__PURE__ */ I(ht, {
|
|
1390
1390
|
value: e,
|
|
1391
1391
|
children: e.label
|
|
1392
1392
|
}, e.value) }),
|
|
1393
1393
|
c
|
|
1394
|
-
] }), y = r ? /* @__PURE__ */ L(
|
|
1394
|
+
] }), y = r ? /* @__PURE__ */ L(ct, {
|
|
1395
1395
|
..._,
|
|
1396
1396
|
multiple: !0,
|
|
1397
1397
|
autoHighlight: !0,
|
|
1398
1398
|
value: t,
|
|
1399
1399
|
onValueChange: (e) => n(Array.isArray(e) ? e : []),
|
|
1400
|
-
children: [/* @__PURE__ */ I(
|
|
1400
|
+
children: [/* @__PURE__ */ I(ut, {
|
|
1401
1401
|
ref: u,
|
|
1402
|
-
children: /* @__PURE__ */ I(
|
|
1402
|
+
children: /* @__PURE__ */ I(_t, { children: (e) => /* @__PURE__ */ L(Le, { children: [e.map((e) => /* @__PURE__ */ I(lt, {
|
|
1403
1403
|
removeAriaLabel: `Remove ${e.label}`,
|
|
1404
1404
|
children: e.label
|
|
1405
|
-
}, e.value)), /* @__PURE__ */ I(
|
|
1405
|
+
}, e.value)), /* @__PURE__ */ I(dt, {
|
|
1406
1406
|
"aria-label": "Filter values",
|
|
1407
1407
|
"aria-invalid": g || void 0,
|
|
1408
1408
|
"aria-describedby": g ? h : void 0,
|
|
@@ -1410,19 +1410,19 @@ function ca({ options: e, selected: t, onSelectedChange: n, multiple: r, onSearc
|
|
|
1410
1410
|
onFocus: p,
|
|
1411
1411
|
onKeyDown: m
|
|
1412
1412
|
})] }) })
|
|
1413
|
-
}), /* @__PURE__ */ I(
|
|
1413
|
+
}), /* @__PURE__ */ I(ft, {
|
|
1414
1414
|
anchor: u,
|
|
1415
1415
|
className: "max-h-48",
|
|
1416
1416
|
children: v
|
|
1417
1417
|
})]
|
|
1418
|
-
}) : /* @__PURE__ */ L(
|
|
1418
|
+
}) : /* @__PURE__ */ L(ct, {
|
|
1419
1419
|
..._,
|
|
1420
1420
|
value: t[0] ?? null,
|
|
1421
1421
|
onValueChange: (e) => n(e ? [e] : []),
|
|
1422
1422
|
openOnInputClick: !0,
|
|
1423
|
-
children: [/* @__PURE__ */ I(
|
|
1423
|
+
children: [/* @__PURE__ */ I(ut, {
|
|
1424
1424
|
ref: u,
|
|
1425
|
-
children: /* @__PURE__ */ I(
|
|
1425
|
+
children: /* @__PURE__ */ I(dt, {
|
|
1426
1426
|
"aria-label": "Filter values",
|
|
1427
1427
|
"aria-invalid": g || void 0,
|
|
1428
1428
|
"aria-describedby": g ? h : void 0,
|
|
@@ -1430,7 +1430,7 @@ function ca({ options: e, selected: t, onSelectedChange: n, multiple: r, onSearc
|
|
|
1430
1430
|
onFocus: p,
|
|
1431
1431
|
onKeyDown: m
|
|
1432
1432
|
})
|
|
1433
|
-
}), /* @__PURE__ */ I(
|
|
1433
|
+
}), /* @__PURE__ */ I(ft, {
|
|
1434
1434
|
anchor: u,
|
|
1435
1435
|
className: "max-h-48",
|
|
1436
1436
|
children: v
|
|
@@ -1786,7 +1786,7 @@ function ka({ existingCondition: e, onApply: t, onCancel: r, providers: i, activ
|
|
|
1786
1786
|
s?.({ isEmptyValue: T }),
|
|
1787
1787
|
/* @__PURE__ */ L("div", {
|
|
1788
1788
|
className: `flex items-center gap-2 ${c ? "justify-between" : "justify-end"}`,
|
|
1789
|
-
children: [c ? /* @__PURE__ */ I(
|
|
1789
|
+
children: [c ? /* @__PURE__ */ I(B, {
|
|
1790
1790
|
type: "button",
|
|
1791
1791
|
variant: "ghost",
|
|
1792
1792
|
size: "sm",
|
|
@@ -1795,13 +1795,13 @@ function ka({ existingCondition: e, onApply: t, onCancel: r, providers: i, activ
|
|
|
1795
1795
|
children: "Remove"
|
|
1796
1796
|
}) : null, /* @__PURE__ */ L("div", {
|
|
1797
1797
|
className: "flex items-center gap-2",
|
|
1798
|
-
children: [/* @__PURE__ */ I(
|
|
1798
|
+
children: [/* @__PURE__ */ I(B, {
|
|
1799
1799
|
type: "button",
|
|
1800
1800
|
variant: "ghost",
|
|
1801
1801
|
size: "sm",
|
|
1802
1802
|
onClick: r,
|
|
1803
1803
|
children: "Cancel"
|
|
1804
|
-
}), /* @__PURE__ */ I(
|
|
1804
|
+
}), /* @__PURE__ */ I(B, {
|
|
1805
1805
|
type: "button",
|
|
1806
1806
|
size: "sm",
|
|
1807
1807
|
disabled: !E,
|
|
@@ -1837,7 +1837,7 @@ var Aa = Ue(function({ signals: e, variant: t = "compact" }) {
|
|
|
1837
1837
|
className: "inline-flex items-center gap-1",
|
|
1838
1838
|
children: e.map((e) => {
|
|
1839
1839
|
let t = ir(e);
|
|
1840
|
-
return t ? /* @__PURE__ */ I(
|
|
1840
|
+
return t ? /* @__PURE__ */ I(z, {
|
|
1841
1841
|
variant: "highlight",
|
|
1842
1842
|
className: "gap-1 px-1.5 py-0 text-[10px] font-medium",
|
|
1843
1843
|
children: /* @__PURE__ */ I(t.icon, { className: "size-3" })
|
|
@@ -1956,7 +1956,7 @@ var za = Ue(Ve(function({ condition: e, onEdit: t, onRemove: n, editable: r = !0
|
|
|
1956
1956
|
onMouseLeave: () => v(!1),
|
|
1957
1957
|
onFocus: () => h && v(!0),
|
|
1958
1958
|
onBlur: () => v(!1),
|
|
1959
|
-
children: [/* @__PURE__ */ I(
|
|
1959
|
+
children: [/* @__PURE__ */ I(z, {
|
|
1960
1960
|
variant: S,
|
|
1961
1961
|
className: X("h-auto max-w-xs gap-1.5 py-1 font-normal transition-all", g && "border-dashed border-highlight/40", h ? X("cursor-pointer", C) : "pr-2", h && (n && _ ? "pr-1" : "pr-2")),
|
|
1962
1962
|
role: h ? "button" : void 0,
|
|
@@ -1967,7 +1967,7 @@ var za = Ue(Ve(function({ condition: e, onEdit: t, onRemove: n, editable: r = !0
|
|
|
1967
1967
|
h && ((e.key === "Enter" || e.key === " ") && (e.preventDefault(), t?.()), (e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), n?.()));
|
|
1968
1968
|
},
|
|
1969
1969
|
children: T
|
|
1970
|
-
}), h && n && _ ? /* @__PURE__ */ I(
|
|
1970
|
+
}), h && n && _ ? /* @__PURE__ */ I(B, {
|
|
1971
1971
|
type: "button",
|
|
1972
1972
|
variant: "ghost",
|
|
1973
1973
|
size: "sm",
|
|
@@ -2131,7 +2131,7 @@ function Qa({ filters: e, onFiltersChange: t, editable: n = !0, scopeFilterField
|
|
|
2131
2131
|
onRemove: () => ee(t)
|
|
2132
2132
|
}, Ua(e));
|
|
2133
2133
|
}),
|
|
2134
|
-
n ? /* @__PURE__ */ L(
|
|
2134
|
+
n ? /* @__PURE__ */ L(B, {
|
|
2135
2135
|
ref: p,
|
|
2136
2136
|
type: "button",
|
|
2137
2137
|
variant: "ghost",
|
|
@@ -3569,7 +3569,7 @@ function cc({ columns: e, data: t, loading: n, totalCount: r, page: i, pageSize:
|
|
|
3569
3569
|
onClick: D,
|
|
3570
3570
|
onKeyDown: ne,
|
|
3571
3571
|
className: l ? "[&_tbody_tr]:cursor-pointer" : void 0,
|
|
3572
|
-
children: /* @__PURE__ */ I(
|
|
3572
|
+
children: /* @__PURE__ */ I(vt, {
|
|
3573
3573
|
columns: e,
|
|
3574
3574
|
data: t,
|
|
3575
3575
|
loading: n,
|
|
@@ -3590,7 +3590,7 @@ function cc({ columns: e, data: t, loading: n, totalCount: r, page: i, pageSize:
|
|
|
3590
3590
|
onColumnVisibilityChange: te
|
|
3591
3591
|
},
|
|
3592
3592
|
emptyMessage: _,
|
|
3593
|
-
footer: x && r > 0 ? /* @__PURE__ */ I(
|
|
3593
|
+
footer: x && r > 0 ? /* @__PURE__ */ I(bt, {
|
|
3594
3594
|
page: i,
|
|
3595
3595
|
pageSize: a,
|
|
3596
3596
|
totalCount: r,
|
|
@@ -3859,7 +3859,7 @@ function Pc({ columns: e, rows: t, dimensionLabel: n, state: r, sort: i, onSortC
|
|
|
3859
3859
|
}
|
|
3860
3860
|
}, r = re.map((e) => ({
|
|
3861
3861
|
id: e.id,
|
|
3862
|
-
header: ({ column: t }) => /* @__PURE__ */ I(
|
|
3862
|
+
header: ({ column: t }) => /* @__PURE__ */ I(yt, {
|
|
3863
3863
|
column: t,
|
|
3864
3864
|
title: e.label,
|
|
3865
3865
|
className: "justify-end whitespace-nowrap"
|
|
@@ -3951,7 +3951,7 @@ function Fc() {
|
|
|
3951
3951
|
function Ic({ columns: e }) {
|
|
3952
3952
|
return /* @__PURE__ */ L(Wt, { children: [/* @__PURE__ */ I(qt, {
|
|
3953
3953
|
asChild: !0,
|
|
3954
|
-
children: /* @__PURE__ */ L(
|
|
3954
|
+
children: /* @__PURE__ */ L(B, {
|
|
3955
3955
|
variant: "ghost",
|
|
3956
3956
|
size: "xs",
|
|
3957
3957
|
className: "h-5 px-1.5 text-xs",
|
|
@@ -3975,15 +3975,15 @@ function Ic({ columns: e }) {
|
|
|
3975
3975
|
})] });
|
|
3976
3976
|
}
|
|
3977
3977
|
function Lc({ row: e, hiddenColumns: t, shareBases: n, children: r }) {
|
|
3978
|
-
return /* @__PURE__ */ L(
|
|
3978
|
+
return /* @__PURE__ */ L(Ot, { children: [/* @__PURE__ */ I(Nt, {
|
|
3979
3979
|
asChild: !0,
|
|
3980
|
-
children: /* @__PURE__ */ I(
|
|
3980
|
+
children: /* @__PURE__ */ I(B, {
|
|
3981
3981
|
variant: "ghost",
|
|
3982
3982
|
size: "icon-xs",
|
|
3983
3983
|
"aria-label": `Actions for ${e.label}`,
|
|
3984
3984
|
children: /* @__PURE__ */ I(we, { className: "size-4" })
|
|
3985
3985
|
})
|
|
3986
|
-
}), /* @__PURE__ */ L(
|
|
3986
|
+
}), /* @__PURE__ */ L(kt, {
|
|
3987
3987
|
align: "end",
|
|
3988
3988
|
className: "w-auto min-w-56",
|
|
3989
3989
|
children: [t.length > 0 && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(jt, {
|
|
@@ -4101,7 +4101,7 @@ function Hc({ widget: e, timeRange: t, filters: n, onInteract: r }) {
|
|
|
4101
4101
|
value: e.key,
|
|
4102
4102
|
label: e.label
|
|
4103
4103
|
});
|
|
4104
|
-
}, [y, f]), S = M(() => Vc.filter((e) => b(e.kind)), [b]), C = A((e) => S.map(({ kind: t, label: n, icon: r }) => /* @__PURE__ */ L(
|
|
4104
|
+
}, [y, f]), S = M(() => Vc.filter((e) => b(e.kind)), [b]), C = A((e) => S.map(({ kind: t, label: n, icon: r }) => /* @__PURE__ */ L(At, {
|
|
4105
4105
|
onSelect: () => y?.({
|
|
4106
4106
|
kind: t,
|
|
4107
4107
|
field: f ?? "",
|
|
@@ -4398,7 +4398,7 @@ function fl({ message: e, onRetry: t, className: n }) {
|
|
|
4398
4398
|
className: "flex-1 text-sm text-destructive",
|
|
4399
4399
|
children: e
|
|
4400
4400
|
}),
|
|
4401
|
-
/* @__PURE__ */ L(
|
|
4401
|
+
/* @__PURE__ */ L(B, {
|
|
4402
4402
|
variant: "outline",
|
|
4403
4403
|
size: "sm",
|
|
4404
4404
|
onClick: t,
|
|
@@ -4566,7 +4566,7 @@ function Al(e) {
|
|
|
4566
4566
|
function jl({ level: e }) {
|
|
4567
4567
|
if (!e) return null;
|
|
4568
4568
|
let t = e.toLowerCase();
|
|
4569
|
-
return /* @__PURE__ */ I(
|
|
4569
|
+
return /* @__PURE__ */ I(z, {
|
|
4570
4570
|
variant: Al(t) ? kl[t] : "secondary",
|
|
4571
4571
|
children: e.toUpperCase()
|
|
4572
4572
|
});
|
|
@@ -4639,7 +4639,7 @@ function Rl(e, t) {
|
|
|
4639
4639
|
}
|
|
4640
4640
|
case "http-method": {
|
|
4641
4641
|
let e = String(n).toUpperCase();
|
|
4642
|
-
r = /* @__PURE__ */ I(
|
|
4642
|
+
r = /* @__PURE__ */ I(z, {
|
|
4643
4643
|
variant: Ml[e] ?? "secondary",
|
|
4644
4644
|
children: e
|
|
4645
4645
|
});
|
|
@@ -5036,7 +5036,7 @@ function Ql({ code: e, language: t = "json", maxHeight: n = Zl }) {
|
|
|
5036
5036
|
className: "absolute right-2 top-2 z-10",
|
|
5037
5037
|
children: /* @__PURE__ */ I(Y, { children: /* @__PURE__ */ L(fn, { children: [/* @__PURE__ */ I(mn, {
|
|
5038
5038
|
asChild: !0,
|
|
5039
|
-
children: /* @__PURE__ */ I(
|
|
5039
|
+
children: /* @__PURE__ */ I(B, {
|
|
5040
5040
|
variant: "ghost",
|
|
5041
5041
|
size: "icon",
|
|
5042
5042
|
className: "size-7",
|
|
@@ -5127,7 +5127,7 @@ function nu({ data: e, onCopyAll: t }) {
|
|
|
5127
5127
|
className: "flex justify-end",
|
|
5128
5128
|
children: /* @__PURE__ */ I(Y, { children: /* @__PURE__ */ L(fn, { children: [/* @__PURE__ */ I(mn, {
|
|
5129
5129
|
asChild: !0,
|
|
5130
|
-
children: /* @__PURE__ */ I(
|
|
5130
|
+
children: /* @__PURE__ */ I(B, {
|
|
5131
5131
|
variant: "ghost",
|
|
5132
5132
|
size: "icon",
|
|
5133
5133
|
className: "size-7",
|
|
@@ -5321,7 +5321,7 @@ function au({ item: e, onFilter: t, wrap: n }) {
|
|
|
5321
5321
|
className: "flex shrink-0 items-center gap-0.5 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 transition-opacity duration-150",
|
|
5322
5322
|
children: [e.copyable !== !1 && /* @__PURE__ */ I(Y, { children: /* @__PURE__ */ L(fn, { children: [/* @__PURE__ */ I(mn, {
|
|
5323
5323
|
asChild: !0,
|
|
5324
|
-
children: /* @__PURE__ */ I(
|
|
5324
|
+
children: /* @__PURE__ */ I(B, {
|
|
5325
5325
|
variant: "ghost",
|
|
5326
5326
|
size: "icon",
|
|
5327
5327
|
className: "size-6",
|
|
@@ -5333,7 +5333,7 @@ function au({ item: e, onFilter: t, wrap: n }) {
|
|
|
5333
5333
|
})
|
|
5334
5334
|
}), /* @__PURE__ */ I(pn, { children: "Copy" })] }) }), e.filterable && e.filterField && t && /* @__PURE__ */ I(Y, { children: /* @__PURE__ */ L(fn, { children: [/* @__PURE__ */ I(mn, {
|
|
5335
5335
|
asChild: !0,
|
|
5336
|
-
children: /* @__PURE__ */ I(
|
|
5336
|
+
children: /* @__PURE__ */ I(B, {
|
|
5337
5337
|
variant: "ghost",
|
|
5338
5338
|
size: "icon",
|
|
5339
5339
|
className: "size-6",
|
|
@@ -5856,12 +5856,12 @@ function _u({ message: e }) {
|
|
|
5856
5856
|
/* @__PURE__ */ L("div", {
|
|
5857
5857
|
className: "flex items-center gap-2 flex-wrap",
|
|
5858
5858
|
children: [
|
|
5859
|
-
/* @__PURE__ */ I(
|
|
5859
|
+
/* @__PURE__ */ I(z, {
|
|
5860
5860
|
variant: "secondary",
|
|
5861
5861
|
className: "text-[10px]",
|
|
5862
5862
|
children: new Date(e.timestamp).toLocaleTimeString()
|
|
5863
5863
|
}),
|
|
5864
|
-
/* @__PURE__ */ I(
|
|
5864
|
+
/* @__PURE__ */ I(z, {
|
|
5865
5865
|
variant: e.operation === "PUBLISH" ? "default" : "outline",
|
|
5866
5866
|
className: "text-[10px]",
|
|
5867
5867
|
children: e.operation
|
|
@@ -6040,7 +6040,7 @@ function bu({ attempts: e }) {
|
|
|
6040
6040
|
}),
|
|
6041
6041
|
/* @__PURE__ */ I("td", {
|
|
6042
6042
|
className: "px-3 py-2",
|
|
6043
|
-
children: /* @__PURE__ */ I(
|
|
6043
|
+
children: /* @__PURE__ */ I(z, {
|
|
6044
6044
|
variant: e.status >= 200 && e.status < 300 ? "default" : "destructive",
|
|
6045
6045
|
children: e.status
|
|
6046
6046
|
})
|
|
@@ -6320,14 +6320,14 @@ function Wu({ method: e, status: t, uri: n, timestamp: r, onClose: i, onNavigate
|
|
|
6320
6320
|
className: "flex items-center justify-between px-5 pt-4 pb-2",
|
|
6321
6321
|
children: [/* @__PURE__ */ I("div", {
|
|
6322
6322
|
className: "flex items-center gap-0.5",
|
|
6323
|
-
children: (a ?? o) && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(
|
|
6323
|
+
children: (a ?? o) && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(B, {
|
|
6324
6324
|
variant: "ghost",
|
|
6325
6325
|
size: "icon",
|
|
6326
6326
|
onClick: a,
|
|
6327
6327
|
disabled: !c,
|
|
6328
6328
|
"aria-label": "Previous log",
|
|
6329
6329
|
children: /* @__PURE__ */ I(T, { className: "size-4" })
|
|
6330
|
-
}), /* @__PURE__ */ I(
|
|
6330
|
+
}), /* @__PURE__ */ I(B, {
|
|
6331
6331
|
variant: "ghost",
|
|
6332
6332
|
size: "icon",
|
|
6333
6333
|
onClick: o,
|
|
@@ -6340,7 +6340,7 @@ function Wu({ method: e, status: t, uri: n, timestamp: r, onClose: i, onNavigate
|
|
|
6340
6340
|
children: [
|
|
6341
6341
|
s && /* @__PURE__ */ I(Y, { children: /* @__PURE__ */ L(fn, { children: [/* @__PURE__ */ I(mn, {
|
|
6342
6342
|
asChild: !0,
|
|
6343
|
-
children: /* @__PURE__ */ I(
|
|
6343
|
+
children: /* @__PURE__ */ I(B, {
|
|
6344
6344
|
variant: "ghost",
|
|
6345
6345
|
size: "icon",
|
|
6346
6346
|
onClick: s,
|
|
@@ -6350,7 +6350,7 @@ function Wu({ method: e, status: t, uri: n, timestamp: r, onClose: i, onNavigate
|
|
|
6350
6350
|
}), /* @__PURE__ */ I(pn, { children: "Copy as JSON" })] }) }),
|
|
6351
6351
|
u && /* @__PURE__ */ I(Y, { children: /* @__PURE__ */ L(fn, { children: [/* @__PURE__ */ I(mn, {
|
|
6352
6352
|
asChild: !0,
|
|
6353
|
-
children: /* @__PURE__ */ I(
|
|
6353
|
+
children: /* @__PURE__ */ I(B, {
|
|
6354
6354
|
variant: "ghost",
|
|
6355
6355
|
size: "icon",
|
|
6356
6356
|
onClick: () => f(!d),
|
|
@@ -6361,7 +6361,7 @@ function Wu({ method: e, status: t, uri: n, timestamp: r, onClose: i, onNavigate
|
|
|
6361
6361
|
i && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(Zt, {
|
|
6362
6362
|
orientation: "vertical",
|
|
6363
6363
|
className: "mx-1.5 h-4"
|
|
6364
|
-
}), /* @__PURE__ */ I(
|
|
6364
|
+
}), /* @__PURE__ */ I(B, {
|
|
6365
6365
|
variant: "ghost",
|
|
6366
6366
|
size: "icon",
|
|
6367
6367
|
onClick: i,
|
|
@@ -6375,7 +6375,7 @@ function Wu({ method: e, status: t, uri: n, timestamp: r, onClose: i, onNavigate
|
|
|
6375
6375
|
children: [/* @__PURE__ */ L("div", {
|
|
6376
6376
|
className: "flex items-center gap-3",
|
|
6377
6377
|
children: [
|
|
6378
|
-
e && /* @__PURE__ */ I(
|
|
6378
|
+
e && /* @__PURE__ */ I(z, {
|
|
6379
6379
|
variant: Vu[e] ?? "secondary",
|
|
6380
6380
|
children: e
|
|
6381
6381
|
}),
|
|
@@ -6450,7 +6450,7 @@ function Ju({ title: e, badge: t, children: n }) {
|
|
|
6450
6450
|
className: "px-5 py-4 text-sm font-medium tracking-tight hover:bg-muted/30 transition-colors duration-150",
|
|
6451
6451
|
children: /* @__PURE__ */ L("span", {
|
|
6452
6452
|
className: "flex items-center gap-3",
|
|
6453
|
-
children: [e, t != null && /* @__PURE__ */ I(
|
|
6453
|
+
children: [e, t != null && /* @__PURE__ */ I(z, {
|
|
6454
6454
|
variant: "secondary",
|
|
6455
6455
|
className: "text-[10px] font-semibold",
|
|
6456
6456
|
children: t
|
|
@@ -6573,7 +6573,7 @@ function Qu({ config: e, logId: t, apiId: n, onClose: r, onNavigatePrev: i, onNa
|
|
|
6573
6573
|
className: "text-sm text-destructive",
|
|
6574
6574
|
children: "Failed to load log details"
|
|
6575
6575
|
}),
|
|
6576
|
-
/* @__PURE__ */ I(
|
|
6576
|
+
/* @__PURE__ */ I(B, {
|
|
6577
6577
|
variant: "outline",
|
|
6578
6578
|
size: "sm",
|
|
6579
6579
|
onClick: () => m(),
|
|
@@ -6657,7 +6657,7 @@ function ed({ config: e, onFilter: t }) {
|
|
|
6657
6657
|
children: [/* @__PURE__ */ I("p", {
|
|
6658
6658
|
className: "text-sm font-medium text-muted-foreground",
|
|
6659
6659
|
children: "Log not found"
|
|
6660
|
-
}), /* @__PURE__ */ L(
|
|
6660
|
+
}), /* @__PURE__ */ L(B, {
|
|
6661
6661
|
variant: "outline",
|
|
6662
6662
|
size: "sm",
|
|
6663
6663
|
onClick: f,
|
|
@@ -6671,7 +6671,7 @@ function ed({ config: e, onFilter: t }) {
|
|
|
6671
6671
|
className: "text-sm text-destructive",
|
|
6672
6672
|
children: "Failed to load log details"
|
|
6673
6673
|
}),
|
|
6674
|
-
/* @__PURE__ */ I(
|
|
6674
|
+
/* @__PURE__ */ I(B, {
|
|
6675
6675
|
variant: "outline",
|
|
6676
6676
|
size: "sm",
|
|
6677
6677
|
onClick: () => d(),
|
|
@@ -6682,13 +6682,13 @@ function ed({ config: e, onFilter: t }) {
|
|
|
6682
6682
|
className: "space-y-0",
|
|
6683
6683
|
children: [/* @__PURE__ */ I("div", {
|
|
6684
6684
|
className: "border-b px-6 py-3",
|
|
6685
|
-
children: /* @__PURE__ */ L(
|
|
6685
|
+
children: /* @__PURE__ */ L(B, {
|
|
6686
6686
|
variant: "ghost",
|
|
6687
6687
|
size: "sm",
|
|
6688
6688
|
onClick: f,
|
|
6689
6689
|
children: [/* @__PURE__ */ I(T, { className: "size-4 mr-1.5" }), "Back to logs"]
|
|
6690
6690
|
})
|
|
6691
|
-
}), /* @__PURE__ */ I(
|
|
6691
|
+
}), /* @__PURE__ */ I(st, {
|
|
6692
6692
|
className: "mx-6 mt-4 overflow-hidden",
|
|
6693
6693
|
children: /* @__PURE__ */ I(Xu, {
|
|
6694
6694
|
config: e,
|
|
@@ -6723,7 +6723,7 @@ var td = {
|
|
|
6723
6723
|
};
|
|
6724
6724
|
function nd({ status: e }) {
|
|
6725
6725
|
let t = td[e];
|
|
6726
|
-
return /* @__PURE__ */ I(
|
|
6726
|
+
return /* @__PURE__ */ I(z, {
|
|
6727
6727
|
variant: t.variant,
|
|
6728
6728
|
children: t.label
|
|
6729
6729
|
});
|
|
@@ -6969,7 +6969,7 @@ function md({ text: e, query: t }) {
|
|
|
6969
6969
|
}, n) : e) });
|
|
6970
6970
|
}
|
|
6971
6971
|
function hd({ option: e, searchQuery: t }) {
|
|
6972
|
-
return /* @__PURE__ */ I(
|
|
6972
|
+
return /* @__PURE__ */ I(ht, {
|
|
6973
6973
|
value: e,
|
|
6974
6974
|
children: /* @__PURE__ */ L("span", {
|
|
6975
6975
|
className: "flex min-w-0 flex-col",
|
|
@@ -7042,7 +7042,7 @@ function vd({ paginatedLoader: e, resolveApiLabel: t, value: n, onSelect: r }) {
|
|
|
7042
7042
|
inputId: c,
|
|
7043
7043
|
errorId: l,
|
|
7044
7044
|
loadError: g,
|
|
7045
|
-
children: /* @__PURE__ */ L(
|
|
7045
|
+
children: /* @__PURE__ */ L(ct, {
|
|
7046
7046
|
open: i,
|
|
7047
7047
|
onOpenChange: b,
|
|
7048
7048
|
items: u,
|
|
@@ -7060,7 +7060,7 @@ function vd({ paginatedLoader: e, resolveApiLabel: t, value: n, onSelect: r }) {
|
|
|
7060
7060
|
i && _(String(e));
|
|
7061
7061
|
},
|
|
7062
7062
|
openOnInputClick: !0,
|
|
7063
|
-
children: [/* @__PURE__ */ I(
|
|
7063
|
+
children: [/* @__PURE__ */ I(mt, {
|
|
7064
7064
|
id: c,
|
|
7065
7065
|
"aria-label": "API",
|
|
7066
7066
|
"aria-required": "true",
|
|
@@ -7072,14 +7072,14 @@ function vd({ paginatedLoader: e, resolveApiLabel: t, value: n, onSelect: r }) {
|
|
|
7072
7072
|
className: "w-72 max-w-full",
|
|
7073
7073
|
onFocus: o,
|
|
7074
7074
|
onKeyDown: s
|
|
7075
|
-
}), /* @__PURE__ */ I(
|
|
7075
|
+
}), /* @__PURE__ */ I(ft, {
|
|
7076
7076
|
className: "max-h-56",
|
|
7077
7077
|
children: p && u.length === 0 ? /* @__PURE__ */ I(gd, {}) : /* @__PURE__ */ L(F, { children: [
|
|
7078
|
-
/* @__PURE__ */ I(
|
|
7078
|
+
/* @__PURE__ */ I(pt, { children: /* @__PURE__ */ I("span", {
|
|
7079
7079
|
className: "block px-3 py-6 text-center text-sm text-muted-foreground",
|
|
7080
7080
|
children: "No API found."
|
|
7081
7081
|
}) }),
|
|
7082
|
-
/* @__PURE__ */ I(
|
|
7082
|
+
/* @__PURE__ */ I(gt, { children: (e) => /* @__PURE__ */ I(hd, {
|
|
7083
7083
|
option: e,
|
|
7084
7084
|
searchQuery: f
|
|
7085
7085
|
}, e.id) }),
|
|
@@ -7095,7 +7095,7 @@ function yd({ options: e, value: t, onSelect: n, loading: r }) {
|
|
|
7095
7095
|
inputId: c,
|
|
7096
7096
|
errorId: c,
|
|
7097
7097
|
loadError: null,
|
|
7098
|
-
children: /* @__PURE__ */ L(
|
|
7098
|
+
children: /* @__PURE__ */ L(ct, {
|
|
7099
7099
|
open: i,
|
|
7100
7100
|
onOpenChange: a,
|
|
7101
7101
|
items: e,
|
|
@@ -7109,7 +7109,7 @@ function yd({ options: e, value: t, onSelect: n, loading: r }) {
|
|
|
7109
7109
|
isItemEqualToValue: (e, t) => e.id === t.id,
|
|
7110
7110
|
disabled: r,
|
|
7111
7111
|
openOnInputClick: !0,
|
|
7112
|
-
children: [/* @__PURE__ */ I(
|
|
7112
|
+
children: [/* @__PURE__ */ I(mt, {
|
|
7113
7113
|
id: c,
|
|
7114
7114
|
"aria-label": "API",
|
|
7115
7115
|
"aria-required": "true",
|
|
@@ -7119,12 +7119,12 @@ function yd({ options: e, value: t, onSelect: n, loading: r }) {
|
|
|
7119
7119
|
className: "w-72 max-w-full",
|
|
7120
7120
|
onFocus: o,
|
|
7121
7121
|
onKeyDown: s
|
|
7122
|
-
}), /* @__PURE__ */ L(
|
|
7122
|
+
}), /* @__PURE__ */ L(ft, {
|
|
7123
7123
|
className: "max-h-56",
|
|
7124
|
-
children: [/* @__PURE__ */ I(
|
|
7124
|
+
children: [/* @__PURE__ */ I(pt, { children: /* @__PURE__ */ I("span", {
|
|
7125
7125
|
className: "block px-3 py-6 text-center text-sm text-muted-foreground",
|
|
7126
7126
|
children: "No API found."
|
|
7127
|
-
}) }), /* @__PURE__ */ I(
|
|
7127
|
+
}) }), /* @__PURE__ */ I(gt, { children: (e) => /* @__PURE__ */ I(hd, {
|
|
7128
7128
|
option: e,
|
|
7129
7129
|
searchQuery: ""
|
|
7130
7130
|
}, e.id) })]
|
|
@@ -7141,7 +7141,7 @@ function bd({ options: e = [], paginatedLoader: t, resolveApiLabel: n, value: r,
|
|
|
7141
7141
|
className: "flex-1 text-sm text-destructive",
|
|
7142
7142
|
children: "Failed to load the API list."
|
|
7143
7143
|
}),
|
|
7144
|
-
s && /* @__PURE__ */ L(
|
|
7144
|
+
s && /* @__PURE__ */ L(B, {
|
|
7145
7145
|
variant: "outline",
|
|
7146
7146
|
size: "sm",
|
|
7147
7147
|
onClick: s,
|
|
@@ -7443,7 +7443,7 @@ function Wd({ span: e, onClose: t }) {
|
|
|
7443
7443
|
className: "truncate text-sm font-semibold tracking-tight",
|
|
7444
7444
|
children: e.operationName
|
|
7445
7445
|
})]
|
|
7446
|
-
}), t && /* @__PURE__ */ I(
|
|
7446
|
+
}), t && /* @__PURE__ */ I(B, {
|
|
7447
7447
|
variant: "ghost",
|
|
7448
7448
|
size: "icon",
|
|
7449
7449
|
className: "size-7 shrink-0",
|
|
@@ -7533,7 +7533,7 @@ function Gd({ title: e, badge: t, children: n }) {
|
|
|
7533
7533
|
children: [/* @__PURE__ */ I("h4", {
|
|
7534
7534
|
className: "text-[11px] font-medium uppercase tracking-wide text-muted-foreground/70",
|
|
7535
7535
|
children: e
|
|
7536
|
-
}), t !== void 0 && /* @__PURE__ */ I(
|
|
7536
|
+
}), t !== void 0 && /* @__PURE__ */ I(z, {
|
|
7537
7537
|
variant: "secondary",
|
|
7538
7538
|
className: "text-[10px] font-semibold",
|
|
7539
7539
|
children: t
|
|
@@ -7813,7 +7813,7 @@ function df({ onRetry: e }) {
|
|
|
7813
7813
|
className: "text-sm text-destructive",
|
|
7814
7814
|
children: "Failed to load trace details"
|
|
7815
7815
|
}),
|
|
7816
|
-
/* @__PURE__ */ I(
|
|
7816
|
+
/* @__PURE__ */ I(B, {
|
|
7817
7817
|
variant: "outline",
|
|
7818
7818
|
size: "sm",
|
|
7819
7819
|
onClick: e,
|
|
@@ -7828,7 +7828,7 @@ function ff({ onBack: e }) {
|
|
|
7828
7828
|
children: [/* @__PURE__ */ I("p", {
|
|
7829
7829
|
className: "text-sm font-medium text-muted-foreground",
|
|
7830
7830
|
children: "Trace not found"
|
|
7831
|
-
}), /* @__PURE__ */ L(
|
|
7831
|
+
}), /* @__PURE__ */ L(B, {
|
|
7832
7832
|
variant: "outline",
|
|
7833
7833
|
size: "sm",
|
|
7834
7834
|
onClick: e,
|
|
@@ -7847,7 +7847,7 @@ function pf({ apiId: e }) {
|
|
|
7847
7847
|
className: "flex flex-col",
|
|
7848
7848
|
children: [/* @__PURE__ */ I("div", {
|
|
7849
7849
|
className: "border-b px-6 py-3",
|
|
7850
|
-
children: /* @__PURE__ */ L(
|
|
7850
|
+
children: /* @__PURE__ */ L(B, {
|
|
7851
7851
|
variant: "ghost",
|
|
7852
7852
|
size: "sm",
|
|
7853
7853
|
onClick: l,
|
|
@@ -7886,7 +7886,7 @@ function hf({ onClose: e, onNavigatePrev: t, onNavigateNext: n, hasPrev: r, hasN
|
|
|
7886
7886
|
"aria-label": "Trace detail toolbar",
|
|
7887
7887
|
children: [/* @__PURE__ */ I("div", {
|
|
7888
7888
|
className: "flex items-center gap-0.5",
|
|
7889
|
-
children: !!(t ?? n) && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(
|
|
7889
|
+
children: !!(t ?? n) && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(B, {
|
|
7890
7890
|
variant: "ghost",
|
|
7891
7891
|
size: "icon",
|
|
7892
7892
|
className: "size-7",
|
|
@@ -7894,7 +7894,7 @@ function hf({ onClose: e, onNavigatePrev: t, onNavigateNext: n, hasPrev: r, hasN
|
|
|
7894
7894
|
disabled: !r,
|
|
7895
7895
|
"aria-label": "Previous trace",
|
|
7896
7896
|
children: /* @__PURE__ */ I(T, { className: "size-4" })
|
|
7897
|
-
}), /* @__PURE__ */ I(
|
|
7897
|
+
}), /* @__PURE__ */ I(B, {
|
|
7898
7898
|
variant: "ghost",
|
|
7899
7899
|
size: "icon",
|
|
7900
7900
|
className: "size-7",
|
|
@@ -7907,7 +7907,7 @@ function hf({ onClose: e, onNavigatePrev: t, onNavigateNext: n, hasPrev: r, hasN
|
|
|
7907
7907
|
className: "flex items-center gap-0.5",
|
|
7908
7908
|
children: [/* @__PURE__ */ I(Y, { children: /* @__PURE__ */ L(fn, { children: [/* @__PURE__ */ I(mn, {
|
|
7909
7909
|
asChild: !0,
|
|
7910
|
-
children: /* @__PURE__ */ I(
|
|
7910
|
+
children: /* @__PURE__ */ I(B, {
|
|
7911
7911
|
variant: "ghost",
|
|
7912
7912
|
size: "icon",
|
|
7913
7913
|
className: "size-7",
|
|
@@ -7915,7 +7915,7 @@ function hf({ onClose: e, onNavigatePrev: t, onNavigateNext: n, hasPrev: r, hasN
|
|
|
7915
7915
|
"aria-label": a ? "Exit full screen" : "Full screen",
|
|
7916
7916
|
children: I(a ? Ee : de, { className: "size-4" })
|
|
7917
7917
|
})
|
|
7918
|
-
}), /* @__PURE__ */ I(pn, { children: a ? "Exit full screen" : "Full screen" })] }) }), /* @__PURE__ */ I(
|
|
7918
|
+
}), /* @__PURE__ */ I(pn, { children: a ? "Exit full screen" : "Full screen" })] }) }), /* @__PURE__ */ I(B, {
|
|
7919
7919
|
variant: "ghost",
|
|
7920
7920
|
size: "icon",
|
|
7921
7921
|
className: "size-7",
|
|
@@ -8126,12 +8126,12 @@ function Hf() {
|
|
|
8126
8126
|
//#region src/dashboards/editor/DashboardConflictDialog.tsx
|
|
8127
8127
|
function Uf({ open: e, theirDashboard: t, deleted: n = !1, pending: r = null, onResolve: i, onCancel: a }) {
|
|
8128
8128
|
let [o, s] = P(!1), [c, l] = P(e), u = r !== null;
|
|
8129
|
-
return e !== c && (l(e), e && s(!1)), /* @__PURE__ */ I(
|
|
8129
|
+
return e !== c && (l(e), e && s(!1)), /* @__PURE__ */ I(xt, {
|
|
8130
8130
|
open: e,
|
|
8131
8131
|
onOpenChange: (e) => {
|
|
8132
8132
|
!e && !u && a();
|
|
8133
8133
|
},
|
|
8134
|
-
children: /* @__PURE__ */ I(
|
|
8134
|
+
children: /* @__PURE__ */ I(Ct, { children: n ? /* @__PURE__ */ I(Kf, {
|
|
8135
8135
|
busy: u,
|
|
8136
8136
|
pending: r,
|
|
8137
8137
|
onResolve: i,
|
|
@@ -8152,7 +8152,7 @@ function Uf({ open: e, theirDashboard: t, deleted: n = !1, pending: r = null, on
|
|
|
8152
8152
|
}
|
|
8153
8153
|
function Wf({ theirDashboard: e, busy: t, pending: n, onResolve: r, onTakeTheirs: i, onCancel: a }) {
|
|
8154
8154
|
return /* @__PURE__ */ L(F, { children: [
|
|
8155
|
-
/* @__PURE__ */ L(
|
|
8155
|
+
/* @__PURE__ */ L(Et, { children: [/* @__PURE__ */ I(Dt, { children: "Someone else updated this dashboard while you were editing" }), /* @__PURE__ */ I(wt, { children: "Nothing was saved and nothing was lost: your changes are still in the editor behind this dialog, and their version is still on the server. Pick what should happen to each." })] }),
|
|
8156
8156
|
e && /* @__PURE__ */ I(qf, { dashboard: e }),
|
|
8157
8157
|
/* @__PURE__ */ L("div", {
|
|
8158
8158
|
className: "flex flex-col gap-2",
|
|
@@ -8179,7 +8179,7 @@ function Wf({ theirDashboard: e, busy: t, pending: n, onResolve: r, onTakeTheirs
|
|
|
8179
8179
|
})
|
|
8180
8180
|
]
|
|
8181
8181
|
}),
|
|
8182
|
-
/* @__PURE__ */ I(
|
|
8182
|
+
/* @__PURE__ */ I(Tt, { children: /* @__PURE__ */ I(B, {
|
|
8183
8183
|
variant: "ghost",
|
|
8184
8184
|
disabled: t,
|
|
8185
8185
|
onClick: a,
|
|
@@ -8188,12 +8188,12 @@ function Wf({ theirDashboard: e, busy: t, pending: n, onResolve: r, onTakeTheirs
|
|
|
8188
8188
|
] });
|
|
8189
8189
|
}
|
|
8190
8190
|
function Gf({ busy: e, onResolve: t, onBack: n }) {
|
|
8191
|
-
return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L(
|
|
8191
|
+
return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L(Et, { children: [/* @__PURE__ */ I(Dt, { children: "Discard your changes?" }), /* @__PURE__ */ I(wt, { children: "Everything you edited since you opened this dashboard is replaced by the version the other author saved. It was never sent to the server, so this cannot be undone." })] }), /* @__PURE__ */ L(Tt, { children: [/* @__PURE__ */ I(B, {
|
|
8192
8192
|
variant: "outline",
|
|
8193
8193
|
disabled: e,
|
|
8194
8194
|
onClick: n,
|
|
8195
8195
|
children: "Keep my changes"
|
|
8196
|
-
}), /* @__PURE__ */ I(
|
|
8196
|
+
}), /* @__PURE__ */ I(B, {
|
|
8197
8197
|
variant: "destructive",
|
|
8198
8198
|
disabled: e,
|
|
8199
8199
|
onClick: () => t("take-theirs"),
|
|
@@ -8201,12 +8201,12 @@ function Gf({ busy: e, onResolve: t, onBack: n }) {
|
|
|
8201
8201
|
})] })] });
|
|
8202
8202
|
}
|
|
8203
8203
|
function Kf({ busy: e, pending: t, onResolve: n, onCancel: r }) {
|
|
8204
|
-
return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L(
|
|
8204
|
+
return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L(Et, { children: [/* @__PURE__ */ I(Dt, { children: "This dashboard no longer exists" }), /* @__PURE__ */ I(wt, { children: "It was deleted while you were editing, so there is nothing left to save it to. Your changes are still here and can be kept as a new dashboard." })] }), /* @__PURE__ */ L(Tt, { children: [/* @__PURE__ */ I(B, {
|
|
8205
8205
|
variant: "ghost",
|
|
8206
8206
|
disabled: e,
|
|
8207
8207
|
onClick: r,
|
|
8208
8208
|
children: "Keep editing"
|
|
8209
|
-
}), /* @__PURE__ */ I(
|
|
8209
|
+
}), /* @__PURE__ */ I(B, {
|
|
8210
8210
|
disabled: e,
|
|
8211
8211
|
onClick: () => n("save-as-copy"),
|
|
8212
8212
|
children: t === "save-as-copy" ? "Saving…" : "Save as a new dashboard"
|
|
@@ -8232,7 +8232,7 @@ function qf({ dashboard: e }) {
|
|
|
8232
8232
|
});
|
|
8233
8233
|
}
|
|
8234
8234
|
function Jf({ label: e, description: t, loading: n = !1, disabled: r, onClick: i }) {
|
|
8235
|
-
return /* @__PURE__ */ L(
|
|
8235
|
+
return /* @__PURE__ */ L(B, {
|
|
8236
8236
|
variant: "outline",
|
|
8237
8237
|
className: "h-auto w-full flex-col items-start gap-0.5 py-3 text-left whitespace-normal",
|
|
8238
8238
|
disabled: r,
|
|
@@ -8391,7 +8391,7 @@ function ap({ addableProviders: e, activeApiTypes: t, onAdd: n }) {
|
|
|
8391
8391
|
onOpenChange: i,
|
|
8392
8392
|
children: [/* @__PURE__ */ I(qt, {
|
|
8393
8393
|
asChild: !0,
|
|
8394
|
-
children: /* @__PURE__ */ L(
|
|
8394
|
+
children: /* @__PURE__ */ L(B, {
|
|
8395
8395
|
variant: "ghost",
|
|
8396
8396
|
size: "sm",
|
|
8397
8397
|
className: "h-7 gap-1 text-muted-foreground",
|
|
@@ -8923,12 +8923,12 @@ function Lp({ text: e, onTextChange: t, dirty: n, onApply: r }) {
|
|
|
8923
8923
|
children: "Copy this document to duplicate parts of the dashboard, or edit it and apply your changes."
|
|
8924
8924
|
}), /* @__PURE__ */ L("div", {
|
|
8925
8925
|
className: "flex shrink-0 items-center gap-2",
|
|
8926
|
-
children: [/* @__PURE__ */ L(
|
|
8926
|
+
children: [/* @__PURE__ */ L(B, {
|
|
8927
8927
|
variant: "outline",
|
|
8928
8928
|
size: "sm",
|
|
8929
8929
|
onClick: () => void a(),
|
|
8930
8930
|
children: [/* @__PURE__ */ I(ue, { className: "size-4" }), "Copy JSON"]
|
|
8931
|
-
}), /* @__PURE__ */ L(
|
|
8931
|
+
}), /* @__PURE__ */ L(B, {
|
|
8932
8932
|
size: "sm",
|
|
8933
8933
|
onClick: () => {
|
|
8934
8934
|
i.ok && (r(i.fields), Z.success("JSON applied to the dashboard"));
|
|
@@ -9697,7 +9697,7 @@ function lm({ items: e, onChange: t }) {
|
|
|
9697
9697
|
disabled: !o,
|
|
9698
9698
|
onChange: (e) => n(i, { sentiment: e })
|
|
9699
9699
|
}),
|
|
9700
|
-
/* @__PURE__ */ I(
|
|
9700
|
+
/* @__PURE__ */ I(B, {
|
|
9701
9701
|
variant: "ghost",
|
|
9702
9702
|
size: "icon",
|
|
9703
9703
|
"aria-label": "Remove metric",
|
|
@@ -9711,7 +9711,7 @@ function lm({ items: e, onChange: t }) {
|
|
|
9711
9711
|
}),
|
|
9712
9712
|
/* @__PURE__ */ I("div", {
|
|
9713
9713
|
className: "mt-0.5",
|
|
9714
|
-
children: /* @__PURE__ */ L(
|
|
9714
|
+
children: /* @__PURE__ */ L(B, {
|
|
9715
9715
|
variant: "outline",
|
|
9716
9716
|
size: "sm",
|
|
9717
9717
|
onClick: i,
|
|
@@ -9917,7 +9917,7 @@ function gm({ series: e, onChange: t }) {
|
|
|
9917
9917
|
children: "Right"
|
|
9918
9918
|
})] })]
|
|
9919
9919
|
}),
|
|
9920
|
-
/* @__PURE__ */ I(
|
|
9920
|
+
/* @__PURE__ */ I(B, {
|
|
9921
9921
|
variant: "ghost",
|
|
9922
9922
|
size: "icon",
|
|
9923
9923
|
"aria-label": "Remove series",
|
|
@@ -9930,7 +9930,7 @@ function gm({ series: e, onChange: t }) {
|
|
|
9930
9930
|
}, l)),
|
|
9931
9931
|
/* @__PURE__ */ I("div", {
|
|
9932
9932
|
className: "mt-0.5",
|
|
9933
|
-
children: /* @__PURE__ */ L(
|
|
9933
|
+
children: /* @__PURE__ */ L(B, {
|
|
9934
9934
|
variant: "outline",
|
|
9935
9935
|
size: "sm",
|
|
9936
9936
|
onClick: l,
|
|
@@ -10204,28 +10204,28 @@ function Mm({ columns: e, onChange: t }) {
|
|
|
10204
10204
|
}),
|
|
10205
10205
|
/* @__PURE__ */ L("div", {
|
|
10206
10206
|
className: "flex items-center gap-0.5",
|
|
10207
|
-
children: [/* @__PURE__ */ L(
|
|
10207
|
+
children: [/* @__PURE__ */ L(Ot, { children: [/* @__PURE__ */ I(Nt, {
|
|
10208
10208
|
asChild: !0,
|
|
10209
|
-
children: /* @__PURE__ */ I(
|
|
10209
|
+
children: /* @__PURE__ */ I(B, {
|
|
10210
10210
|
variant: "ghost",
|
|
10211
10211
|
size: "icon-xs",
|
|
10212
10212
|
"aria-label": `More actions for column ${l + 1}`,
|
|
10213
10213
|
children: /* @__PURE__ */ I(we, { className: "size-4" })
|
|
10214
10214
|
})
|
|
10215
|
-
}), /* @__PURE__ */ L(
|
|
10215
|
+
}), /* @__PURE__ */ L(kt, {
|
|
10216
10216
|
align: "end",
|
|
10217
10217
|
children: [
|
|
10218
|
-
/* @__PURE__ */ L(
|
|
10218
|
+
/* @__PURE__ */ L(At, {
|
|
10219
10219
|
disabled: l === 0,
|
|
10220
10220
|
onSelect: () => c(l, -1),
|
|
10221
10221
|
children: [/* @__PURE__ */ I(ee, { className: "size-4" }), "Move up"]
|
|
10222
10222
|
}),
|
|
10223
|
-
/* @__PURE__ */ L(
|
|
10223
|
+
/* @__PURE__ */ L(At, {
|
|
10224
10224
|
disabled: l === e.length - 1,
|
|
10225
10225
|
onSelect: () => c(l, 1),
|
|
10226
10226
|
children: [/* @__PURE__ */ I(w, { className: "size-4" }), "Move down"]
|
|
10227
10227
|
}),
|
|
10228
|
-
/* @__PURE__ */ L(
|
|
10228
|
+
/* @__PURE__ */ L(At, {
|
|
10229
10229
|
variant: "destructive",
|
|
10230
10230
|
disabled: e.length === 1,
|
|
10231
10231
|
onSelect: () => u(l),
|
|
@@ -10234,7 +10234,7 @@ function Mm({ columns: e, onChange: t }) {
|
|
|
10234
10234
|
]
|
|
10235
10235
|
})] }), /* @__PURE__ */ I(Om, {
|
|
10236
10236
|
label: g ? "Hide format and thresholds" : "Format and thresholds",
|
|
10237
|
-
children: /* @__PURE__ */ I(
|
|
10237
|
+
children: /* @__PURE__ */ I(B, {
|
|
10238
10238
|
variant: "ghost",
|
|
10239
10239
|
size: "icon-xs",
|
|
10240
10240
|
"aria-label": `${g ? "Hide" : "Show"} format and thresholds for column ${l + 1}`,
|
|
@@ -10299,7 +10299,7 @@ function Mm({ columns: e, onChange: t }) {
|
|
|
10299
10299
|
}),
|
|
10300
10300
|
h.map((e, i) => {
|
|
10301
10301
|
let a = "tier" in n && n.tier === i;
|
|
10302
|
-
return /* @__PURE__ */ L(
|
|
10302
|
+
return /* @__PURE__ */ L(B, {
|
|
10303
10303
|
variant: "outline",
|
|
10304
10304
|
size: "xs",
|
|
10305
10305
|
className: `h-6 gap-1.5 rounded-full px-2 font-normal tabular-nums ${a ? "border-primary ring-2 ring-primary/20" : ""}`,
|
|
@@ -10311,7 +10311,7 @@ function Mm({ columns: e, onChange: t }) {
|
|
|
10311
10311
|
children: [/* @__PURE__ */ I(km, { color: e.color }), Dm(e, t)]
|
|
10312
10312
|
}, i);
|
|
10313
10313
|
}),
|
|
10314
|
-
/* @__PURE__ */ L(
|
|
10314
|
+
/* @__PURE__ */ L(B, {
|
|
10315
10315
|
variant: "outline",
|
|
10316
10316
|
size: "xs",
|
|
10317
10317
|
className: "h-6 gap-1 rounded-full border-dashed px-2 font-medium text-primary",
|
|
@@ -10377,7 +10377,7 @@ function Mm({ columns: e, onChange: t }) {
|
|
|
10377
10377
|
}),
|
|
10378
10378
|
/* @__PURE__ */ I("div", {
|
|
10379
10379
|
className: "mt-0.5",
|
|
10380
|
-
children: /* @__PURE__ */ L(
|
|
10380
|
+
children: /* @__PURE__ */ L(B, {
|
|
10381
10381
|
variant: "outline",
|
|
10382
10382
|
size: "sm",
|
|
10383
10383
|
onClick: l,
|
|
@@ -10454,7 +10454,7 @@ function Nm({ column: e, color: t, op: n, basis: r, value: i, onColor: a, onOp:
|
|
|
10454
10454
|
children: [m && /* @__PURE__ */ L(F, { children: [
|
|
10455
10455
|
/* @__PURE__ */ I(Om, {
|
|
10456
10456
|
label: "Move earlier. Earlier thresholds win.",
|
|
10457
|
-
children: /* @__PURE__ */ I(
|
|
10457
|
+
children: /* @__PURE__ */ I(B, {
|
|
10458
10458
|
variant: "ghost",
|
|
10459
10459
|
size: "icon-xs",
|
|
10460
10460
|
"aria-label": "Move threshold earlier",
|
|
@@ -10465,7 +10465,7 @@ function Nm({ column: e, color: t, op: n, basis: r, value: i, onColor: a, onOp:
|
|
|
10465
10465
|
}),
|
|
10466
10466
|
/* @__PURE__ */ I(Om, {
|
|
10467
10467
|
label: "Move later",
|
|
10468
|
-
children: /* @__PURE__ */ I(
|
|
10468
|
+
children: /* @__PURE__ */ I(B, {
|
|
10469
10469
|
variant: "ghost",
|
|
10470
10470
|
size: "icon-xs",
|
|
10471
10471
|
"aria-label": "Move threshold later",
|
|
@@ -10476,7 +10476,7 @@ function Nm({ column: e, color: t, op: n, basis: r, value: i, onColor: a, onOp:
|
|
|
10476
10476
|
}),
|
|
10477
10477
|
/* @__PURE__ */ I(Om, {
|
|
10478
10478
|
label: "Remove threshold",
|
|
10479
|
-
children: /* @__PURE__ */ I(
|
|
10479
|
+
children: /* @__PURE__ */ I(B, {
|
|
10480
10480
|
variant: "ghost",
|
|
10481
10481
|
size: "icon-xs",
|
|
10482
10482
|
"aria-label": "Remove threshold",
|
|
@@ -10486,7 +10486,7 @@ function Nm({ column: e, color: t, op: n, basis: r, value: i, onColor: a, onOp:
|
|
|
10486
10486
|
})
|
|
10487
10487
|
] }), /* @__PURE__ */ I(Om, {
|
|
10488
10488
|
label: "Done",
|
|
10489
|
-
children: /* @__PURE__ */ I(
|
|
10489
|
+
children: /* @__PURE__ */ I(B, {
|
|
10490
10490
|
variant: "ghost",
|
|
10491
10491
|
size: "icon-xs",
|
|
10492
10492
|
"aria-label": "Done",
|
|
@@ -10872,7 +10872,7 @@ function Ym({ widget: e, onChange: t }) {
|
|
|
10872
10872
|
}),
|
|
10873
10873
|
/* @__PURE__ */ L(cn, {
|
|
10874
10874
|
value: "filters",
|
|
10875
|
-
children: ["Filters", a > 0 && /* @__PURE__ */ I(
|
|
10875
|
+
children: ["Filters", a > 0 && /* @__PURE__ */ I(z, {
|
|
10876
10876
|
variant: "highlight",
|
|
10877
10877
|
className: "ml-1.5",
|
|
10878
10878
|
children: a
|
|
@@ -11133,14 +11133,14 @@ function fh({ open: e, widget: t, isNew: n, timeRange: r, dashboardFilters: i, o
|
|
|
11133
11133
|
children: n ? "New widget" : "Edit widget"
|
|
11134
11134
|
}), /* @__PURE__ */ L("div", {
|
|
11135
11135
|
className: "flex items-center gap-1",
|
|
11136
|
-
children: [/* @__PURE__ */ I(
|
|
11136
|
+
children: [/* @__PURE__ */ I(B, {
|
|
11137
11137
|
variant: "ghost",
|
|
11138
11138
|
size: "icon",
|
|
11139
11139
|
"aria-label": f ? "Collapse panel" : "Expand panel",
|
|
11140
11140
|
title: f ? "Collapse panel" : "Expand panel",
|
|
11141
11141
|
onClick: () => p((e) => !e),
|
|
11142
11142
|
children: I(f ? Ee : de, { className: "size-4" })
|
|
11143
|
-
}), /* @__PURE__ */ I(
|
|
11143
|
+
}), /* @__PURE__ */ I(B, {
|
|
11144
11144
|
variant: "ghost",
|
|
11145
11145
|
size: "icon",
|
|
11146
11146
|
"aria-label": "Close",
|
|
@@ -11181,11 +11181,11 @@ function fh({ open: e, widget: t, isNew: n, timeRange: r, dashboardFilters: i, o
|
|
|
11181
11181
|
})
|
|
11182
11182
|
}), /* @__PURE__ */ L("div", {
|
|
11183
11183
|
className: "flex items-center justify-end gap-2 border-t border-border px-4 py-3",
|
|
11184
|
-
children: [/* @__PURE__ */ I(
|
|
11184
|
+
children: [/* @__PURE__ */ I(B, {
|
|
11185
11185
|
variant: "outline",
|
|
11186
11186
|
onClick: _,
|
|
11187
11187
|
children: "Cancel"
|
|
11188
|
-
}), /* @__PURE__ */ I(
|
|
11188
|
+
}), /* @__PURE__ */ I(B, {
|
|
11189
11189
|
onClick: v,
|
|
11190
11190
|
children: n ? "Add widget" : "Save widget"
|
|
11191
11191
|
})]
|
|
@@ -11350,11 +11350,11 @@ function bh({ name: e, reason: t, onRetry: n, retrying: r = !1 }) {
|
|
|
11350
11350
|
] })
|
|
11351
11351
|
}), /* @__PURE__ */ L("div", {
|
|
11352
11352
|
className: "flex items-center gap-2",
|
|
11353
|
-
children: [/* @__PURE__ */ I(
|
|
11353
|
+
children: [/* @__PURE__ */ I(B, {
|
|
11354
11354
|
variant: "outline",
|
|
11355
11355
|
onClick: () => i("../..", { relative: "path" }),
|
|
11356
11356
|
children: "Back to dashboards"
|
|
11357
|
-
}), n && /* @__PURE__ */ I(
|
|
11357
|
+
}), n && /* @__PURE__ */ I(B, {
|
|
11358
11358
|
variant: "outline",
|
|
11359
11359
|
disabled: r,
|
|
11360
11360
|
onClick: n,
|
|
@@ -11493,7 +11493,7 @@ function Sh({ initial: e, mode: t, reloadError: n = null, scopeFilterField: r })
|
|
|
11493
11493
|
}), c(null);
|
|
11494
11494
|
}, xe = A((e) => /* @__PURE__ */ L("div", {
|
|
11495
11495
|
className: "flex items-center gap-0.5",
|
|
11496
|
-
children: [/* @__PURE__ */ I(
|
|
11496
|
+
children: [/* @__PURE__ */ I(B, {
|
|
11497
11497
|
variant: "ghost",
|
|
11498
11498
|
size: "icon",
|
|
11499
11499
|
"aria-label": `Edit ${e.title || "untitled widget"}`,
|
|
@@ -11503,25 +11503,25 @@ function Sh({ initial: e, mode: t, reloadError: n = null, scopeFilterField: r })
|
|
|
11503
11503
|
isNew: !1
|
|
11504
11504
|
}),
|
|
11505
11505
|
children: /* @__PURE__ */ I(De, { className: "size-4" })
|
|
11506
|
-
}), /* @__PURE__ */ L(
|
|
11506
|
+
}), /* @__PURE__ */ L(Ot, { children: [/* @__PURE__ */ I(Nt, {
|
|
11507
11507
|
asChild: !0,
|
|
11508
|
-
children: /* @__PURE__ */ I(
|
|
11508
|
+
children: /* @__PURE__ */ I(B, {
|
|
11509
11509
|
variant: "ghost",
|
|
11510
11510
|
size: "icon",
|
|
11511
11511
|
"aria-label": `More actions for ${e.title || "untitled widget"}`,
|
|
11512
11512
|
children: /* @__PURE__ */ I(we, { className: "size-4" })
|
|
11513
11513
|
})
|
|
11514
|
-
}), /* @__PURE__ */ L(
|
|
11514
|
+
}), /* @__PURE__ */ L(kt, {
|
|
11515
11515
|
align: "end",
|
|
11516
11516
|
children: [
|
|
11517
|
-
/* @__PURE__ */ L(
|
|
11517
|
+
/* @__PURE__ */ L(At, {
|
|
11518
11518
|
onSelect: () => b({
|
|
11519
11519
|
widget: e,
|
|
11520
11520
|
isNew: !1
|
|
11521
11521
|
}),
|
|
11522
11522
|
children: [/* @__PURE__ */ I(De, { className: "size-4" }), "Edit"]
|
|
11523
11523
|
}),
|
|
11524
|
-
/* @__PURE__ */ L(
|
|
11524
|
+
/* @__PURE__ */ L(At, {
|
|
11525
11525
|
onSelect: () => o({
|
|
11526
11526
|
type: "duplicateWidget",
|
|
11527
11527
|
widgetId: e.id,
|
|
@@ -11530,7 +11530,7 @@ function Sh({ initial: e, mode: t, reloadError: n = null, scopeFilterField: r })
|
|
|
11530
11530
|
children: [/* @__PURE__ */ I(ue, { className: "size-4" }), "Duplicate"]
|
|
11531
11531
|
}),
|
|
11532
11532
|
/* @__PURE__ */ I(Mt, {}),
|
|
11533
|
-
/* @__PURE__ */ L(
|
|
11533
|
+
/* @__PURE__ */ L(At, {
|
|
11534
11534
|
variant: "destructive",
|
|
11535
11535
|
onSelect: () => o({
|
|
11536
11536
|
type: "removeWidget",
|
|
@@ -11556,7 +11556,7 @@ function Sh({ initial: e, mode: t, reloadError: n = null, scopeFilterField: r })
|
|
|
11556
11556
|
className: "flex flex-wrap items-start justify-between gap-3",
|
|
11557
11557
|
children: [/* @__PURE__ */ L("div", {
|
|
11558
11558
|
className: "flex min-w-0 items-center gap-2",
|
|
11559
|
-
children: [/* @__PURE__ */ I(
|
|
11559
|
+
children: [/* @__PURE__ */ I(B, {
|
|
11560
11560
|
variant: "ghost",
|
|
11561
11561
|
size: "icon",
|
|
11562
11562
|
"aria-label": "Back",
|
|
@@ -11596,12 +11596,12 @@ function Sh({ initial: e, mode: t, reloadError: n = null, scopeFilterField: r })
|
|
|
11596
11596
|
value: "json",
|
|
11597
11597
|
children: "JSON"
|
|
11598
11598
|
})] }),
|
|
11599
|
-
/* @__PURE__ */ I(
|
|
11599
|
+
/* @__PURE__ */ I(B, {
|
|
11600
11600
|
variant: "outline",
|
|
11601
11601
|
onClick: oe.requestLeave,
|
|
11602
11602
|
children: "Cancel"
|
|
11603
11603
|
}),
|
|
11604
|
-
/* @__PURE__ */ I(
|
|
11604
|
+
/* @__PURE__ */ I(B, {
|
|
11605
11605
|
onClick: de,
|
|
11606
11606
|
disabled: C.isSaving || !ee && t === "edit",
|
|
11607
11607
|
children: C.isSaving ? "Saving…" : "Save"
|
|
@@ -11634,7 +11634,7 @@ function Sh({ initial: e, mode: t, reloadError: n = null, scopeFilterField: r })
|
|
|
11634
11634
|
/* @__PURE__ */ L("div", {
|
|
11635
11635
|
className: "flex items-center gap-1.5",
|
|
11636
11636
|
children: [
|
|
11637
|
-
!Ee && /* @__PURE__ */ L(
|
|
11637
|
+
!Ee && /* @__PURE__ */ L(B, {
|
|
11638
11638
|
variant: "ghost",
|
|
11639
11639
|
size: "sm",
|
|
11640
11640
|
className: "text-xs",
|
|
@@ -11658,7 +11658,7 @@ function Sh({ initial: e, mode: t, reloadError: n = null, scopeFilterField: r })
|
|
|
11658
11658
|
})
|
|
11659
11659
|
]
|
|
11660
11660
|
}),
|
|
11661
|
-
/* @__PURE__ */ L(
|
|
11661
|
+
/* @__PURE__ */ L(B, {
|
|
11662
11662
|
onClick: ye,
|
|
11663
11663
|
children: [/* @__PURE__ */ I(Oe, { className: "size-4" }), "Add widget"]
|
|
11664
11664
|
})
|
|
@@ -11737,20 +11737,20 @@ function Sh({ initial: e, mode: t, reloadError: n = null, scopeFilterField: r })
|
|
|
11737
11737
|
onResolve: he,
|
|
11738
11738
|
onCancel: re
|
|
11739
11739
|
}),
|
|
11740
|
-
/* @__PURE__ */ I(
|
|
11740
|
+
/* @__PURE__ */ I(xt, {
|
|
11741
11741
|
open: v !== null,
|
|
11742
11742
|
onOpenChange: (e) => !e && y(null),
|
|
11743
|
-
children: /* @__PURE__ */ L(
|
|
11743
|
+
children: /* @__PURE__ */ L(Ct, { children: [/* @__PURE__ */ L(Et, { children: [/* @__PURE__ */ I(Dt, { children: "Discard widget changes?" }), /* @__PURE__ */ L(wt, { children: [
|
|
11744
11744
|
"This widget has changes that were never added to the dashboard.",
|
|
11745
11745
|
" ",
|
|
11746
11746
|
v?.kind === "switch-tab" ? "Switching tabs will discard them." : "Opening another one will discard them."
|
|
11747
|
-
] })] }), /* @__PURE__ */ L(
|
|
11747
|
+
] })] }), /* @__PURE__ */ L(Tt, { children: [/* @__PURE__ */ I(St, {
|
|
11748
11748
|
asChild: !0,
|
|
11749
|
-
children: /* @__PURE__ */ I(
|
|
11749
|
+
children: /* @__PURE__ */ I(B, {
|
|
11750
11750
|
variant: "outline",
|
|
11751
11751
|
children: "Keep editing"
|
|
11752
11752
|
})
|
|
11753
|
-
}), /* @__PURE__ */ I(
|
|
11753
|
+
}), /* @__PURE__ */ I(B, {
|
|
11754
11754
|
variant: "destructive",
|
|
11755
11755
|
onClick: () => {
|
|
11756
11756
|
let e = v;
|
|
@@ -11765,16 +11765,16 @@ function Sh({ initial: e, mode: t, reloadError: n = null, scopeFilterField: r })
|
|
|
11765
11765
|
children: "Discard changes"
|
|
11766
11766
|
})] })] })
|
|
11767
11767
|
}),
|
|
11768
|
-
/* @__PURE__ */ I(
|
|
11768
|
+
/* @__PURE__ */ I(xt, {
|
|
11769
11769
|
open: oe.confirmOpen,
|
|
11770
11770
|
onOpenChange: (e) => !e && oe.stay(),
|
|
11771
|
-
children: /* @__PURE__ */ L(
|
|
11771
|
+
children: /* @__PURE__ */ L(Ct, { children: [/* @__PURE__ */ L(Et, { children: [/* @__PURE__ */ I(Dt, { children: "Discard changes?" }), /* @__PURE__ */ I(wt, { children: "This dashboard has unsaved changes. Leaving now will discard them." })] }), /* @__PURE__ */ L(Tt, { children: [/* @__PURE__ */ I(St, {
|
|
11772
11772
|
asChild: !0,
|
|
11773
|
-
children: /* @__PURE__ */ I(
|
|
11773
|
+
children: /* @__PURE__ */ I(B, {
|
|
11774
11774
|
variant: "outline",
|
|
11775
11775
|
children: "Keep editing"
|
|
11776
11776
|
})
|
|
11777
|
-
}), /* @__PURE__ */ I(
|
|
11777
|
+
}), /* @__PURE__ */ I(B, {
|
|
11778
11778
|
variant: "destructive",
|
|
11779
11779
|
onClick: oe.confirmLeave,
|
|
11780
11780
|
children: "Discard changes"
|
|
@@ -12463,10 +12463,10 @@ function mg({ templates: e }) {
|
|
|
12463
12463
|
{
|
|
12464
12464
|
id: "type",
|
|
12465
12465
|
header: "Type",
|
|
12466
|
-
cell: ({ row: e }) => e.original.kind === "custom" ? /* @__PURE__ */ I(
|
|
12466
|
+
cell: ({ row: e }) => e.original.kind === "custom" ? /* @__PURE__ */ I(z, {
|
|
12467
12467
|
variant: "secondary",
|
|
12468
12468
|
children: "Custom"
|
|
12469
|
-
}) : /* @__PURE__ */ I(
|
|
12469
|
+
}) : /* @__PURE__ */ I(z, {
|
|
12470
12470
|
variant: "outline",
|
|
12471
12471
|
children: "Template"
|
|
12472
12472
|
})
|
|
@@ -12504,11 +12504,11 @@ function mg({ templates: e }) {
|
|
|
12504
12504
|
children: [/* @__PURE__ */ I("h1", {
|
|
12505
12505
|
className: "text-lg font-semibold",
|
|
12506
12506
|
children: "Dashboards"
|
|
12507
|
-
}), i && /* @__PURE__ */ L(
|
|
12507
|
+
}), i && /* @__PURE__ */ L(B, {
|
|
12508
12508
|
onClick: () => r("new", { relative: "path" }),
|
|
12509
12509
|
children: [/* @__PURE__ */ I(Oe, { className: "size-4" }), "New dashboard"]
|
|
12510
12510
|
})]
|
|
12511
|
-
}), /* @__PURE__ */ I(
|
|
12511
|
+
}), /* @__PURE__ */ I(vt, {
|
|
12512
12512
|
columns: c,
|
|
12513
12513
|
data: s,
|
|
12514
12514
|
emptyMessage: i ? "No dashboards yet. Create your first one to get started." : "No dashboards available.",
|
|
@@ -12540,49 +12540,49 @@ function hg({ row: e, capabilities: t }) {
|
|
|
12540
12540
|
};
|
|
12541
12541
|
return /* @__PURE__ */ L("div", {
|
|
12542
12542
|
className: "flex justify-end",
|
|
12543
|
-
children: [/* @__PURE__ */ L(
|
|
12543
|
+
children: [/* @__PURE__ */ L(Ot, { children: [/* @__PURE__ */ I(Nt, {
|
|
12544
12544
|
asChild: !0,
|
|
12545
|
-
children: /* @__PURE__ */ I(
|
|
12545
|
+
children: /* @__PURE__ */ I(B, {
|
|
12546
12546
|
variant: "ghost",
|
|
12547
12547
|
size: "icon",
|
|
12548
12548
|
"aria-label": `Actions for ${e.title}`,
|
|
12549
12549
|
children: /* @__PURE__ */ I(we, { className: "size-4" })
|
|
12550
12550
|
})
|
|
12551
|
-
}), /* @__PURE__ */ L(
|
|
12551
|
+
}), /* @__PURE__ */ L(kt, {
|
|
12552
12552
|
align: "end",
|
|
12553
12553
|
children: [
|
|
12554
|
-
e.kind === "custom" && s && /* @__PURE__ */ L(
|
|
12554
|
+
e.kind === "custom" && s && /* @__PURE__ */ L(At, {
|
|
12555
12555
|
onSelect: () => n(`${e.id}/edit`, { relative: "path" }),
|
|
12556
12556
|
children: [/* @__PURE__ */ I(De, { className: "size-4" }), "Edit"]
|
|
12557
12557
|
}),
|
|
12558
|
-
s && /* @__PURE__ */ L(
|
|
12558
|
+
s && /* @__PURE__ */ L(At, {
|
|
12559
12559
|
onSelect: u,
|
|
12560
12560
|
children: [/* @__PURE__ */ I(ue, { className: "size-4" }), e.kind === "template" ? "Duplicate as custom dashboard" : "Duplicate"]
|
|
12561
12561
|
}),
|
|
12562
|
-
/* @__PURE__ */ L(
|
|
12562
|
+
/* @__PURE__ */ L(At, {
|
|
12563
12563
|
onSelect: () => void l(),
|
|
12564
12564
|
children: [/* @__PURE__ */ I(ue, { className: "size-4" }), "Copy JSON"]
|
|
12565
12565
|
}),
|
|
12566
|
-
e.kind === "custom" && s && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(Mt, {}), /* @__PURE__ */ L(
|
|
12566
|
+
e.kind === "custom" && s && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(Mt, {}), /* @__PURE__ */ L(At, {
|
|
12567
12567
|
variant: "destructive",
|
|
12568
12568
|
onSelect: () => o(!0),
|
|
12569
12569
|
children: [/* @__PURE__ */ I(je, { className: "size-4" }), "Delete"]
|
|
12570
12570
|
})] })
|
|
12571
12571
|
]
|
|
12572
|
-
})] }), /* @__PURE__ */ I(
|
|
12572
|
+
})] }), /* @__PURE__ */ I(xt, {
|
|
12573
12573
|
open: a,
|
|
12574
12574
|
onOpenChange: o,
|
|
12575
|
-
children: /* @__PURE__ */ L(
|
|
12575
|
+
children: /* @__PURE__ */ L(Ct, { children: [/* @__PURE__ */ L(Et, { children: [/* @__PURE__ */ I(Dt, { children: "Delete this dashboard?" }), /* @__PURE__ */ L(wt, { children: [
|
|
12576
12576
|
"\"",
|
|
12577
12577
|
e.title,
|
|
12578
12578
|
"\" will be permanently deleted. This cannot be undone."
|
|
12579
|
-
] })] }), /* @__PURE__ */ L(
|
|
12579
|
+
] })] }), /* @__PURE__ */ L(Tt, { children: [/* @__PURE__ */ I(St, {
|
|
12580
12580
|
asChild: !0,
|
|
12581
|
-
children: /* @__PURE__ */ I(
|
|
12581
|
+
children: /* @__PURE__ */ I(B, {
|
|
12582
12582
|
variant: "outline",
|
|
12583
12583
|
children: "Cancel"
|
|
12584
12584
|
})
|
|
12585
|
-
}), /* @__PURE__ */ I(
|
|
12585
|
+
}), /* @__PURE__ */ I(B, {
|
|
12586
12586
|
variant: "destructive",
|
|
12587
12587
|
disabled: i.isPending,
|
|
12588
12588
|
onClick: () => {
|
|
@@ -12776,7 +12776,7 @@ function xg({ condition: e, provider: t, activeApiTypes: n, onReset: r, onApply:
|
|
|
12776
12776
|
})
|
|
12777
12777
|
] }), /* @__PURE__ */ L("div", {
|
|
12778
12778
|
className: `flex items-center gap-2 ${r ? "justify-between" : "justify-end"}`,
|
|
12779
|
-
children: [r ? /* @__PURE__ */ I(
|
|
12779
|
+
children: [r ? /* @__PURE__ */ I(B, {
|
|
12780
12780
|
type: "button",
|
|
12781
12781
|
variant: "ghost",
|
|
12782
12782
|
size: "sm",
|
|
@@ -12784,13 +12784,13 @@ function xg({ condition: e, provider: t, activeApiTypes: n, onReset: r, onApply:
|
|
|
12784
12784
|
children: "Reset"
|
|
12785
12785
|
}) : null, /* @__PURE__ */ L("div", {
|
|
12786
12786
|
className: "flex items-center gap-2",
|
|
12787
|
-
children: [/* @__PURE__ */ I(
|
|
12787
|
+
children: [/* @__PURE__ */ I(B, {
|
|
12788
12788
|
type: "button",
|
|
12789
12789
|
variant: "ghost",
|
|
12790
12790
|
size: "sm",
|
|
12791
12791
|
onClick: a,
|
|
12792
12792
|
children: "Cancel"
|
|
12793
|
-
}), /* @__PURE__ */ I(
|
|
12793
|
+
}), /* @__PURE__ */ I(B, {
|
|
12794
12794
|
type: "button",
|
|
12795
12795
|
size: "sm",
|
|
12796
12796
|
onClick: m,
|
|
@@ -12991,7 +12991,7 @@ function Og({ dashboard: e, kind: t, scopeFilterField: r, externalLinks: i, widg
|
|
|
12991
12991
|
children: [/* @__PURE__ */ I("h1", {
|
|
12992
12992
|
className: "truncate text-lg font-semibold",
|
|
12993
12993
|
children: e.title
|
|
12994
|
-
}), t === "custom" && /* @__PURE__ */ I(
|
|
12994
|
+
}), t === "custom" && /* @__PURE__ */ I(z, {
|
|
12995
12995
|
variant: "secondary",
|
|
12996
12996
|
children: "Custom"
|
|
12997
12997
|
})]
|
|
@@ -13071,52 +13071,52 @@ function kg({ dashboard: e, kind: t }) {
|
|
|
13071
13071
|
onError: (e) => Z.error(fg(e, "delete"))
|
|
13072
13072
|
});
|
|
13073
13073
|
};
|
|
13074
|
-
return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L(
|
|
13074
|
+
return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L(Ot, { children: [/* @__PURE__ */ I(Nt, {
|
|
13075
13075
|
asChild: !0,
|
|
13076
|
-
children: /* @__PURE__ */ I(
|
|
13076
|
+
children: /* @__PURE__ */ I(B, {
|
|
13077
13077
|
variant: "ghost",
|
|
13078
13078
|
size: "icon",
|
|
13079
13079
|
"aria-label": "Dashboard actions",
|
|
13080
13080
|
children: /* @__PURE__ */ I(we, { className: "size-4" })
|
|
13081
13081
|
})
|
|
13082
|
-
}), /* @__PURE__ */ L(
|
|
13082
|
+
}), /* @__PURE__ */ L(kt, {
|
|
13083
13083
|
align: "end",
|
|
13084
13084
|
children: [
|
|
13085
|
-
t === "custom" && c && /* @__PURE__ */ L(
|
|
13085
|
+
t === "custom" && c && /* @__PURE__ */ L(At, {
|
|
13086
13086
|
onSelect: () => n({
|
|
13087
13087
|
pathname: "edit",
|
|
13088
13088
|
search: r.search
|
|
13089
13089
|
}, { relative: "path" }),
|
|
13090
13090
|
children: [/* @__PURE__ */ I(De, { className: "size-4" }), "Edit"]
|
|
13091
13091
|
}),
|
|
13092
|
-
c && /* @__PURE__ */ L(
|
|
13092
|
+
c && /* @__PURE__ */ L(At, {
|
|
13093
13093
|
onSelect: u,
|
|
13094
13094
|
children: [/* @__PURE__ */ I(ue, { className: "size-4" }), t === "template" ? "Duplicate as custom dashboard" : "Duplicate"]
|
|
13095
13095
|
}),
|
|
13096
|
-
/* @__PURE__ */ L(
|
|
13096
|
+
/* @__PURE__ */ L(At, {
|
|
13097
13097
|
onSelect: () => void l(),
|
|
13098
13098
|
children: [/* @__PURE__ */ I(ue, { className: "size-4" }), "Copy JSON"]
|
|
13099
13099
|
}),
|
|
13100
|
-
t === "custom" && c && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(Mt, {}), /* @__PURE__ */ L(
|
|
13100
|
+
t === "custom" && c && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(Mt, {}), /* @__PURE__ */ L(At, {
|
|
13101
13101
|
variant: "destructive",
|
|
13102
13102
|
onSelect: () => s(!0),
|
|
13103
13103
|
children: [/* @__PURE__ */ I(je, { className: "size-4" }), "Delete"]
|
|
13104
13104
|
})] })
|
|
13105
13105
|
]
|
|
13106
|
-
})] }), /* @__PURE__ */ I(
|
|
13106
|
+
})] }), /* @__PURE__ */ I(xt, {
|
|
13107
13107
|
open: o,
|
|
13108
13108
|
onOpenChange: s,
|
|
13109
|
-
children: /* @__PURE__ */ L(
|
|
13109
|
+
children: /* @__PURE__ */ L(Ct, { children: [/* @__PURE__ */ L(Et, { children: [/* @__PURE__ */ I(Dt, { children: "Delete this dashboard?" }), /* @__PURE__ */ L(wt, { children: [
|
|
13110
13110
|
"\"",
|
|
13111
13111
|
e.title,
|
|
13112
13112
|
"\" will be permanently deleted. This cannot be undone."
|
|
13113
|
-
] })] }), /* @__PURE__ */ L(
|
|
13113
|
+
] })] }), /* @__PURE__ */ L(Tt, { children: [/* @__PURE__ */ I(St, {
|
|
13114
13114
|
asChild: !0,
|
|
13115
|
-
children: /* @__PURE__ */ I(
|
|
13115
|
+
children: /* @__PURE__ */ I(B, {
|
|
13116
13116
|
variant: "outline",
|
|
13117
13117
|
children: "Cancel"
|
|
13118
13118
|
})
|
|
13119
|
-
}), /* @__PURE__ */ I(
|
|
13119
|
+
}), /* @__PURE__ */ I(B, {
|
|
13120
13120
|
variant: "destructive",
|
|
13121
13121
|
disabled: a.isPending,
|
|
13122
13122
|
onClick: () => {
|
|
@@ -13172,11 +13172,9 @@ function Mg(e, t) {
|
|
|
13172
13172
|
}
|
|
13173
13173
|
return {
|
|
13174
13174
|
async fetchFilterDefinitions(t) {
|
|
13175
|
-
let r =
|
|
13176
|
-
|
|
13177
|
-
|
|
13178
|
-
if (!c.ok) throw Error(`[gamma-lib-observability] HTTP ${c.status} on GET traces/filters/definition`);
|
|
13179
|
-
return (await c.json()).data.map((e) => {
|
|
13175
|
+
let r = await n(`${e}/observability/traces/filters/definition`, a({ signal: t }));
|
|
13176
|
+
if (!r.ok) throw Error(`[gamma-lib-observability] HTTP ${r.status} on GET traces/filters/definition`);
|
|
13177
|
+
return (await r.json()).data.map((e) => {
|
|
13180
13178
|
let t = jg(e.type), n = e.operators.map(Ag), r = e.type.toUpperCase();
|
|
13181
13179
|
if (r === "BOOLEAN") return {
|
|
13182
13180
|
field: e.name,
|
|
@@ -13405,14 +13403,23 @@ function Gg() {
|
|
|
13405
13403
|
]
|
|
13406
13404
|
});
|
|
13407
13405
|
}
|
|
13408
|
-
function Kg({
|
|
13406
|
+
function Kg({ baseUrl: e, http: t, children: n }) {
|
|
13407
|
+
let { apiId: r } = Yn();
|
|
13408
|
+
return /* @__PURE__ */ I(Ng, {
|
|
13409
|
+
baseUrl: e,
|
|
13410
|
+
http: t,
|
|
13411
|
+
module: r,
|
|
13412
|
+
children: n
|
|
13413
|
+
});
|
|
13414
|
+
}
|
|
13415
|
+
function qg({ section: e }) {
|
|
13409
13416
|
let { "*": t = "" } = Yn(), { pathname: n } = qn(), r = t.split("/").filter(Boolean).length, i = n.split("/").filter(Boolean);
|
|
13410
13417
|
return /* @__PURE__ */ I(Wn, {
|
|
13411
13418
|
to: `/${[...r > 0 ? i.slice(0, -r) : i, e].join("/")}`,
|
|
13412
13419
|
replace: !0
|
|
13413
13420
|
});
|
|
13414
13421
|
}
|
|
13415
|
-
function
|
|
13422
|
+
function Jg({ templates: e, contextFilters: n }) {
|
|
13416
13423
|
let r = x(), i = t(), a = Pf(), o = M(() => sl(e, r), [e, r]), s = dg(), c = i !== null && a.isLoading, l = !xf(a.error) && (a.data?.length ?? 0) > 0;
|
|
13417
13424
|
return !s && !c && !l && o.length === 1 && o[0] ? /* @__PURE__ */ I(Wn, {
|
|
13418
13425
|
to: `./${o[0].id}`,
|
|
@@ -13422,7 +13429,7 @@ function qg({ templates: e, contextFilters: n }) {
|
|
|
13422
13429
|
children: /* @__PURE__ */ I(mg, { templates: e })
|
|
13423
13430
|
});
|
|
13424
13431
|
}
|
|
13425
|
-
function
|
|
13432
|
+
function Yg({ contextFilters: e, scopeFilterField: n }) {
|
|
13426
13433
|
let r = x(), i = t();
|
|
13427
13434
|
return !r["observability.dashboards.write"] || i === null ? /* @__PURE__ */ I(Wn, {
|
|
13428
13435
|
to: "..",
|
|
@@ -13433,7 +13440,7 @@ function Jg({ contextFilters: e, scopeFilterField: n }) {
|
|
|
13433
13440
|
children: /* @__PURE__ */ I(_h, { scopeFilterField: n })
|
|
13434
13441
|
});
|
|
13435
13442
|
}
|
|
13436
|
-
function
|
|
13443
|
+
function Xg({ baseUrl: e, tracesBaseUrl: n, http: r, dataSource: i, filterProviders: o, logsPage: s, logsDataSource: l, logsColumns: f, logsOnRowClick: p, logsGetRowId: m, logsGetApiId: v, logsDetailBasePath: y, tracesDataSource: b, loadTracingApis: S, config: C }) {
|
|
13437
13444
|
let w = Tr(), T = Er(r ?? w), E = x(), ee = a(), te = M(() => Yh(e, T), [e, T]), D = i !== void 0 || ee === null, O = i ?? ee ?? te, ne = M(() => Qh(e, T), [e, T]), k = d(), re = M(() => C.features.logs?.enabled ? eg(e, T) : void 0, [
|
|
13438
13445
|
e,
|
|
13439
13446
|
T,
|
|
@@ -13464,37 +13471,27 @@ function Yg({ baseUrl: e, tracesBaseUrl: n, http: r, dataSource: i, filterProvid
|
|
|
13464
13471
|
Te,
|
|
13465
13472
|
Ee,
|
|
13466
13473
|
y
|
|
13467
|
-
]), Oe = ve?.detailMode ?? "drawer", ke = M(() => f ?? Xl(y ?? ""), [f, y]), Ae = m ?? ((e) => e.requestId), je = v ?? ((e) => e.apiId), Me =
|
|
13468
|
-
baseUrl: se,
|
|
13469
|
-
http: T,
|
|
13470
|
-
module: C.module,
|
|
13471
|
-
children: /* @__PURE__ */ I(zg, {
|
|
13472
|
-
loadTracingApis: S,
|
|
13473
|
-
detailMode: ye.detailMode ?? "drawer",
|
|
13474
|
-
pageSize: ye.pageSize,
|
|
13475
|
-
columnVisibilityStorageKey: ye.columnVisibilityStorageKey
|
|
13476
|
-
})
|
|
13477
|
-
})) : null, Ne = (e) => /* @__PURE__ */ I(h, {
|
|
13474
|
+
]), Oe = ve?.detailMode ?? "drawer", ke = M(() => f ?? Xl(y ?? ""), [f, y]), Ae = m ?? ((e) => e.requestId), je = v ?? ((e) => e.apiId), Me = (e) => /* @__PURE__ */ I(h, {
|
|
13478
13475
|
providers: e,
|
|
13479
13476
|
children: /* @__PURE__ */ L(Kn, { children: [
|
|
13480
13477
|
Se && de && /* @__PURE__ */ L(F, { children: [
|
|
13481
13478
|
/* @__PURE__ */ I(Gn, {
|
|
13482
13479
|
path: "dashboards",
|
|
13483
|
-
element: /* @__PURE__ */ I(
|
|
13480
|
+
element: /* @__PURE__ */ I(Jg, {
|
|
13484
13481
|
templates: de.templates,
|
|
13485
13482
|
contextFilters: be.contextFilters
|
|
13486
13483
|
})
|
|
13487
13484
|
}),
|
|
13488
13485
|
/* @__PURE__ */ I(Gn, {
|
|
13489
13486
|
path: "dashboards/new",
|
|
13490
|
-
element: /* @__PURE__ */ I(
|
|
13487
|
+
element: /* @__PURE__ */ I(Yg, {
|
|
13491
13488
|
contextFilters: be.contextFilters,
|
|
13492
13489
|
scopeFilterField: be.scopeFilterField
|
|
13493
13490
|
})
|
|
13494
13491
|
}),
|
|
13495
13492
|
/* @__PURE__ */ I(Gn, {
|
|
13496
13493
|
path: "dashboards/:dashboardId/edit",
|
|
13497
|
-
element: /* @__PURE__ */ I(
|
|
13494
|
+
element: /* @__PURE__ */ I(Yg, {
|
|
13498
13495
|
contextFilters: be.contextFilters,
|
|
13499
13496
|
scopeFilterField: be.scopeFilterField
|
|
13500
13497
|
})
|
|
@@ -13542,17 +13539,35 @@ function Yg({ baseUrl: e, tracesBaseUrl: n, http: r, dataSource: i, filterProvid
|
|
|
13542
13539
|
path: "logs/:logId",
|
|
13543
13540
|
element: /* @__PURE__ */ I(Hr, {
|
|
13544
13541
|
filters: xe.contextFilters,
|
|
13545
|
-
children: Hg(ae, ie, /* @__PURE__ */ I(
|
|
13542
|
+
children: Hg(ae, ie, /* @__PURE__ */ I(Zg, { config: De }))
|
|
13546
13543
|
})
|
|
13547
13544
|
}),
|
|
13548
13545
|
we && ye && le && /* @__PURE__ */ L(F, { children: [
|
|
13549
13546
|
/* @__PURE__ */ I(Gn, {
|
|
13550
13547
|
path: "tracing",
|
|
13551
|
-
element:
|
|
13548
|
+
element: Ug(ue, le, /* @__PURE__ */ I(Kg, {
|
|
13549
|
+
baseUrl: se,
|
|
13550
|
+
http: T,
|
|
13551
|
+
children: /* @__PURE__ */ I(zg, {
|
|
13552
|
+
loadTracingApis: S,
|
|
13553
|
+
detailMode: ye.detailMode ?? "drawer",
|
|
13554
|
+
pageSize: ye.pageSize,
|
|
13555
|
+
columnVisibilityStorageKey: ye.columnVisibilityStorageKey
|
|
13556
|
+
})
|
|
13557
|
+
}))
|
|
13552
13558
|
}),
|
|
13553
13559
|
/* @__PURE__ */ I(Gn, {
|
|
13554
13560
|
path: "tracing/:apiId",
|
|
13555
|
-
element:
|
|
13561
|
+
element: Ug(ue, le, /* @__PURE__ */ I(Kg, {
|
|
13562
|
+
baseUrl: se,
|
|
13563
|
+
http: T,
|
|
13564
|
+
children: /* @__PURE__ */ I(zg, {
|
|
13565
|
+
loadTracingApis: S,
|
|
13566
|
+
detailMode: ye.detailMode ?? "drawer",
|
|
13567
|
+
pageSize: ye.pageSize,
|
|
13568
|
+
columnVisibilityStorageKey: ye.columnVisibilityStorageKey
|
|
13569
|
+
})
|
|
13570
|
+
}))
|
|
13556
13571
|
}),
|
|
13557
13572
|
/* @__PURE__ */ I(Gn, {
|
|
13558
13573
|
path: "tracing/:apiId/:traceId",
|
|
@@ -13561,7 +13576,7 @@ function Yg({ baseUrl: e, tracesBaseUrl: n, http: r, dataSource: i, filterProvid
|
|
|
13561
13576
|
] }),
|
|
13562
13577
|
/* @__PURE__ */ I(Gn, {
|
|
13563
13578
|
path: "*",
|
|
13564
|
-
element: Se ? /* @__PURE__ */ I(
|
|
13579
|
+
element: Se ? /* @__PURE__ */ I(qg, { section: "dashboards" }) : Ce ? /* @__PURE__ */ I(qg, { section: "logs" }) : we ? /* @__PURE__ */ I(qg, { section: "tracing" }) : de?.enabled || ve?.enabled || ye?.enabled ? /* @__PURE__ */ I("div", {
|
|
13565
13580
|
className: "flex items-center justify-center p-8 text-muted-foreground",
|
|
13566
13581
|
children: "You don't have access to any observability feature."
|
|
13567
13582
|
}) : /* @__PURE__ */ I("div", {
|
|
@@ -13570,19 +13585,19 @@ function Yg({ baseUrl: e, tracesBaseUrl: n, http: r, dataSource: i, filterProvid
|
|
|
13570
13585
|
})
|
|
13571
13586
|
})
|
|
13572
13587
|
] })
|
|
13573
|
-
}),
|
|
13588
|
+
}), Ne = /* @__PURE__ */ I(hr, { children: Se || Ce ? /* @__PURE__ */ I(yr, {
|
|
13574
13589
|
source: ne,
|
|
13575
|
-
children: o ?
|
|
13576
|
-
}) :
|
|
13590
|
+
children: o ? Me(o) : /* @__PURE__ */ I(Wg, { children: (e) => Me(e) })
|
|
13591
|
+
}) : Me(o ?? []) }), Pe = _e && ge ? /* @__PURE__ */ I(c, {
|
|
13577
13592
|
persistence: ge,
|
|
13578
|
-
children:
|
|
13579
|
-
}) :
|
|
13593
|
+
children: Ne
|
|
13594
|
+
}) : Ne;
|
|
13580
13595
|
return /* @__PURE__ */ I(_, { children: D ? /* @__PURE__ */ I(u, {
|
|
13581
13596
|
dataSource: O,
|
|
13582
|
-
children:
|
|
13583
|
-
}) :
|
|
13597
|
+
children: Pe
|
|
13598
|
+
}) : Pe });
|
|
13584
13599
|
}
|
|
13585
|
-
function
|
|
13600
|
+
function Zg({ config: e }) {
|
|
13586
13601
|
let t = Jn(), { filters: n, timeRange: r } = hl();
|
|
13587
13602
|
return /* @__PURE__ */ I(ed, {
|
|
13588
13603
|
config: e,
|
|
@@ -13600,7 +13615,7 @@ function Xg({ config: e }) {
|
|
|
13600
13615
|
}
|
|
13601
13616
|
//#endregion
|
|
13602
13617
|
//#region src/routing/define-observability-features.ts
|
|
13603
|
-
var
|
|
13618
|
+
var Qg = {
|
|
13604
13619
|
dashboards: {
|
|
13605
13620
|
icon: re,
|
|
13606
13621
|
title: "Dashboards",
|
|
@@ -13620,10 +13635,10 @@ var Zg = {
|
|
|
13620
13635
|
showInNav: !0
|
|
13621
13636
|
}
|
|
13622
13637
|
};
|
|
13623
|
-
function
|
|
13624
|
-
let t = e.basePath ?? "observe", n =
|
|
13638
|
+
function $g(e) {
|
|
13639
|
+
let t = e.basePath ?? "observe", n = e_(e), r = t_(e, n, t), i = n.map((e) => `${t}/${e}`), a = n_(n, t);
|
|
13625
13640
|
function o(t) {
|
|
13626
|
-
return Be(
|
|
13641
|
+
return Be(Xg, {
|
|
13627
13642
|
...t,
|
|
13628
13643
|
config: e
|
|
13629
13644
|
});
|
|
@@ -13652,13 +13667,13 @@ function Qg(e) {
|
|
|
13652
13667
|
breadcrumbSegments: c
|
|
13653
13668
|
};
|
|
13654
13669
|
}
|
|
13655
|
-
function
|
|
13670
|
+
function e_(e) {
|
|
13656
13671
|
let t = [];
|
|
13657
|
-
return e.features.dashboards?.enabled && t.push("dashboards"), e.features.logs?.enabled && t.push("logs"), e.features.tracing?.enabled && t.push("tracing"), t.sort((e, t) =>
|
|
13672
|
+
return e.features.dashboards?.enabled && t.push("dashboards"), e.features.logs?.enabled && t.push("logs"), e.features.tracing?.enabled && t.push("tracing"), t.sort((e, t) => Qg[e].order - Qg[t].order);
|
|
13658
13673
|
}
|
|
13659
|
-
function
|
|
13660
|
-
let r = t.filter((e) =>
|
|
13661
|
-
let r =
|
|
13674
|
+
function t_(e, t, n) {
|
|
13675
|
+
let r = t.filter((e) => Qg[e].showInNav).map((t) => {
|
|
13676
|
+
let r = Qg[t], i = e.nav.overrides?.[t];
|
|
13662
13677
|
return {
|
|
13663
13678
|
key: `${n}/${t}`,
|
|
13664
13679
|
title: i?.title ?? r.title,
|
|
@@ -13670,10 +13685,10 @@ function e_(e, t, n) {
|
|
|
13670
13685
|
items: r
|
|
13671
13686
|
};
|
|
13672
13687
|
}
|
|
13673
|
-
function
|
|
13688
|
+
function n_(e, t) {
|
|
13674
13689
|
let n = {};
|
|
13675
13690
|
for (let r of e) {
|
|
13676
|
-
let e =
|
|
13691
|
+
let e = Qg[r], i = `${t}/${r}`;
|
|
13677
13692
|
n[i] = {
|
|
13678
13693
|
path: `${t}/${r}`,
|
|
13679
13694
|
label: e.title
|
|
@@ -13683,7 +13698,7 @@ function t_(e, t) {
|
|
|
13683
13698
|
}
|
|
13684
13699
|
//#endregion
|
|
13685
13700
|
//#region src/build-observability-base-url.ts
|
|
13686
|
-
function
|
|
13701
|
+
function r_(e, t, n, r) {
|
|
13687
13702
|
let i = e;
|
|
13688
13703
|
if (r?.useDevProxy) try {
|
|
13689
13704
|
i = new URL(i).pathname;
|
|
@@ -13692,21 +13707,21 @@ function n_(e, t, n, r) {
|
|
|
13692
13707
|
}
|
|
13693
13708
|
//#endregion
|
|
13694
13709
|
//#region src/build-traces-base-url.ts
|
|
13695
|
-
function
|
|
13696
|
-
return
|
|
13710
|
+
function i_(e, t, n, r) {
|
|
13711
|
+
return r_(e, t, n, r);
|
|
13697
13712
|
}
|
|
13698
13713
|
//#endregion
|
|
13699
13714
|
//#region src/persistence/local-storage-dashboard-persistence.ts
|
|
13700
|
-
var
|
|
13701
|
-
function
|
|
13702
|
-
let t = e.storageKey ??
|
|
13715
|
+
var a_ = "observability.custom-dashboards", o_ = 1;
|
|
13716
|
+
function s_(e = {}) {
|
|
13717
|
+
let t = e.storageKey ?? a_, n = () => {
|
|
13703
13718
|
if (e.storage) return e.storage;
|
|
13704
13719
|
if (typeof window > "u" || !window.localStorage) throw Error("[gamma-lib-observability] localStorage is not available in this environment.");
|
|
13705
13720
|
return window.localStorage;
|
|
13706
13721
|
}, r = () => {
|
|
13707
13722
|
let e = n().getItem(t);
|
|
13708
13723
|
if (!e) return {
|
|
13709
|
-
version:
|
|
13724
|
+
version: o_,
|
|
13710
13725
|
dashboards: {}
|
|
13711
13726
|
};
|
|
13712
13727
|
let r = JSON.parse(e);
|
|
@@ -13769,4 +13784,4 @@ function o_(e = {}) {
|
|
|
13769
13784
|
};
|
|
13770
13785
|
}
|
|
13771
13786
|
//#endregion
|
|
13772
|
-
export { Zn as API_TYPE_REGISTRY, Pc as AnalyticsTable, Fo as BarPresentation, Ci as CODEC_VERSION, y as CapabilityProvider, Cs as CartesianPresentation, Hr as ContextFiltersProvider, xs as DASHBOARD_BUCKET_TARGET, b as DEFAULT_CAPABILITIES, dr as DEFAULT_MEASURE, gi as DEFAULT_PERIOD, pr as DEFAULT_REFRESH_INTERVAL_MS, Dr as DEFAULT_STALE_TIME, wi as DEFAULT_TIME_RANGE, yf as DashboardConflictError, _f as DashboardForbiddenError, vf as DashboardNotFoundError, gf as DashboardPersistenceError, c as DashboardPersistenceProvider, ll as DashboardTemplatesProvider, tl as DashboardView, As as DoughnutPresentation, cc as ExplorerTable, e as FILTER_OPERATORS, Wi as FILTER_SCOPES, Qa as FilterBar, za as FilterChip, ka as FilterPopoverForm, na as FilterPropertyCombobox, h as FilterProvidersProvider, mo as HTTP_STATUS_PALETTE, wr as HttpProvider, ml as LiveIndicator, hr as LiveRefreshProvider, Ql as LogDetailCodeBlock, Nu as LogDetailContextChart, Qu as LogDetailDrawer, Bu as LogDetailDrawerShell, eu as LogDetailEmptyField, Wu as LogDetailHeader, tu as LogDetailHeadersTable, nu as LogDetailJsonTree, $ as LogDetailKeyValueGrid, Gu as LogDetailMetrics, ed as LogDetailPage, Ju as LogDetailSection, qu as LogDetailSections, jl as LogSeverityBadge, Vl as LogTable, o as LogsDataSourceProvider, Gl as LogsExplorerPage, Fs as MetricGroupPresentation, Bs as MetricPresentation, u as MetricsDataSourceProvider, bi as PERIOD_DISPLAY_LABELS, yi as PERIOD_LABELS, Fd as POLICY_POST_EVENT, Pd as POLICY_PRE_EVENT, _i as PRESET_CATEGORIES, jd as PolicyAttributeDiff, fl as QueryErrorBanner, vi as RELATIVE_PERIODS, Ui as SCOPE_COMMON, Hi as SIGNAL_DATA_TYPES, nr as SIGNAL_REGISTRY, Ud as SpanDetailPanel, zc as TablePresentation, zi as TimeRangePicker, mf as TraceDetailDrawer, pf as TraceDetailPage, cf as TraceDetailShell, ud as TraceExplorerPage, $d as TraceLineage, nd as TraceStatusBadge, cd as TraceTable, of as TraceTimeline, p as TracesDataSourceProvider, bd as TracingApiSelector, zg as TracingScreen, il as WidgetGroup, ao as WidgetInteractionProvider, Xc as WidgetItem, Yl as buildApiTypeLink, Fa as buildChipLabel, Ia as buildChipLabelParts, La as buildChipTooltip, $a as buildDashboardDeepLink, Xl as buildDefaultConnectionLogColumns, Ou as buildDefaultLogDetailConfig, Qi as buildFilterScopes, Kl as buildLogsDeepLink,
|
|
13787
|
+
export { Zn as API_TYPE_REGISTRY, Pc as AnalyticsTable, Fo as BarPresentation, Ci as CODEC_VERSION, y as CapabilityProvider, Cs as CartesianPresentation, Hr as ContextFiltersProvider, xs as DASHBOARD_BUCKET_TARGET, b as DEFAULT_CAPABILITIES, dr as DEFAULT_MEASURE, gi as DEFAULT_PERIOD, pr as DEFAULT_REFRESH_INTERVAL_MS, Dr as DEFAULT_STALE_TIME, wi as DEFAULT_TIME_RANGE, yf as DashboardConflictError, _f as DashboardForbiddenError, vf as DashboardNotFoundError, gf as DashboardPersistenceError, c as DashboardPersistenceProvider, ll as DashboardTemplatesProvider, tl as DashboardView, As as DoughnutPresentation, cc as ExplorerTable, e as FILTER_OPERATORS, Wi as FILTER_SCOPES, Qa as FilterBar, za as FilterChip, ka as FilterPopoverForm, na as FilterPropertyCombobox, h as FilterProvidersProvider, mo as HTTP_STATUS_PALETTE, wr as HttpProvider, ml as LiveIndicator, hr as LiveRefreshProvider, Ql as LogDetailCodeBlock, Nu as LogDetailContextChart, Qu as LogDetailDrawer, Bu as LogDetailDrawerShell, eu as LogDetailEmptyField, Wu as LogDetailHeader, tu as LogDetailHeadersTable, nu as LogDetailJsonTree, $ as LogDetailKeyValueGrid, Gu as LogDetailMetrics, ed as LogDetailPage, Ju as LogDetailSection, qu as LogDetailSections, jl as LogSeverityBadge, Vl as LogTable, o as LogsDataSourceProvider, Gl as LogsExplorerPage, Fs as MetricGroupPresentation, Bs as MetricPresentation, u as MetricsDataSourceProvider, bi as PERIOD_DISPLAY_LABELS, yi as PERIOD_LABELS, Fd as POLICY_POST_EVENT, Pd as POLICY_PRE_EVENT, _i as PRESET_CATEGORIES, jd as PolicyAttributeDiff, fl as QueryErrorBanner, vi as RELATIVE_PERIODS, Ui as SCOPE_COMMON, Hi as SIGNAL_DATA_TYPES, nr as SIGNAL_REGISTRY, Ud as SpanDetailPanel, zc as TablePresentation, zi as TimeRangePicker, mf as TraceDetailDrawer, pf as TraceDetailPage, cf as TraceDetailShell, ud as TraceExplorerPage, $d as TraceLineage, nd as TraceStatusBadge, cd as TraceTable, of as TraceTimeline, p as TracesDataSourceProvider, bd as TracingApiSelector, zg as TracingScreen, il as WidgetGroup, ao as WidgetInteractionProvider, Xc as WidgetItem, Yl as buildApiTypeLink, Fa as buildChipLabel, Ia as buildChipLabelParts, La as buildChipTooltip, $a as buildDashboardDeepLink, Xl as buildDefaultConnectionLogColumns, Ou as buildDefaultLogDetailConfig, Qi as buildFilterScopes, Kl as buildLogsDeepLink, r_ as buildObservabilityBaseUrl, Ki as buildScopeFromId, Zs as buildTableMetrics, i_ as buildTracesBaseUrl, Ed as buildTracesDeepLink, Kc as clearWidgetRenderers, Ss as computeBucketInterval, Bd as computePolicyAttributeDiff, Go as computePreviousTimeRange, zo as computeTrend, ou as connectionLogPreset, wh as createDashboardRevisionStore, Ih as createHttpDashboardPersistence, Yh as createHttpDataSource, Qh as createHttpFilterSource, eg as createHttpLogsSource, Mg as createHttpTracesFilterSource, ug as createHttpTracesSource, s_ as createLocalStorageDashboardPersistence, Ai as decodeObservabilityState, al as defineDashboardTemplate, Bi as defineFilterProvider, Tu as defineLogDetail, $g as defineObservabilityFeatures, ki as encodeObservabilityState, Lo as extractMeasureValue, Bo as extractSparklineData, po as facetsToBar, uo as facetsToDoughnut, id as formatDuration, mc as formatTableValue, rd as formatTraceTime, $n as getApiType, tr as getApiTypeOrFallback, Wr as getLocaleWeekStart, ir as getSignal, Gc as getWidgetRenderer, sr as isBarWidget, ar as isCartesianWidget, xf as isDashboardForbidden, bf as isDashboardGone, or as isDoughnutWidget, lr as isMetricGroupWidget, cr as isMetricWidget, ya as isMultiSelectForFilter, go as isStatusFacetField, ur as isTableWidget, Cd as isTracingApiLegacyLoader, Td as isTracingApiPaginatedLoad, Sd as isTracingApiPaginatedLoader, xd as isTracingApiPaginatedLoaderConfig, Ro as measureResultToMetric, Rr as mergeFilters, hs as mergeTimeSeriesToCartesian, fu as messageLogPreset, ba as normalizeMembershipOperatorForValues, _o as normalizeStatusGroupKey, Q as observabilityQueryKeys, ma as operatorLabel, ha as operatorNeedsValue, Dp as parseDashboardJson, Cc as planColumns, Jc as registerDefaultRenderers, Wc as registerWidgetRenderer, ol as resolveDashboardFromTemplate, ta as resolveDataTypeIds, xo as resolveGroupColor, Eu as resolveLogDetailVariant, fr as resolveMeasure, Du as resolvePreset, Zr as resolveRelativePeriod, wc as resolveRowsPerPage, $r as resolveStableTimeRange, vo as resolveStatusPaletteColor, Gs as resolveTableColumns, Ks as resolveTableSort, wd as resolveTracingApiPaginatedLoader, Ep as serializeDashboard, Hs as tableColumnId, $i as toFilterItems, zf as useAdoptServerDashboard, ec as useAnalyticsTableQuery, x as useCapabilities, r as useCapability, Ur as useContextFilters, If as useCreateDashboardMutation, Ff as useCustomDashboardQuery, Pf as useCustomDashboardsQuery, s as useDashboardPersistence, dl as useDashboardTemplate, ul as useDashboardTemplates, Hf as useDeleteDashboardMutation, ri as useFacetsQuery, l as useFilterProvider, n as useFilterProviders, Tr as useHttpOptions, Pr as useInfiniteOptions, gr as useLiveRefresh, Fu as useLogDetailDrawerExpand, ii as useLogDetailQuery, m as useLogsDataSource, ci as useLogsPagedQuery, ai as useLogsQuery, li as useMeasuresQuery, Co as useMergedWidgetFilters, v as useMetricsDataSource, t as useOptionalDashboardPersistence, _r as useOptionalLiveRefresh, d as useOptionalLogsDataSource, a as useOptionalMetricsDataSource, g as useOptionalTracesDataSource, Rf as useOverwriteDashboardMutation, Er as useStableHttpOptions, ti as useStableTimeRange, Bf as useTakeReadDashboardRevision, di as useTimeSeriesQuery, fi as useTraceDetailQuery, i as useTracesDataSource, hi as useTracesPagedQuery, Lf as useUpdateDashboardMutation, ro as useWidgetGroupContext, oo as useWidgetInteractionContext, vu as webhookLogPreset };
|