react-semaphor 0.1.301 → 0.1.302
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appearance/index.cjs +1 -0
- package/dist/appearance/index.js +9 -0
- package/dist/brand-studio/index.cjs +21 -0
- package/dist/brand-studio/index.js +1512 -0
- package/dist/chunks/{braces-BwK7fWd_.js → braces-CpOcaBNm.js} +1 -1
- package/dist/chunks/{braces-Bhqo4iW1.js → braces-TYclg8Hl.js} +1 -1
- package/dist/chunks/dashboard-controls-BkuB9TQX.js +47 -0
- package/dist/chunks/dashboard-controls-CZuC_QjN.js +2227 -0
- package/dist/chunks/dashboard-filter-controls-button-2I1ltWQ9.js +11 -0
- package/dist/chunks/{dashboard-filter-controls-button-DjALRkvg.js → dashboard-filter-controls-button-kfb_T18o.js} +205 -216
- package/dist/chunks/dashboard-json-C3v6rBdp.js +1 -0
- package/dist/chunks/{dashboard-json-D-zIG46N.js → dashboard-json-Df6v2Jem.js} +14 -12
- package/dist/chunks/dashboard-summary-settings-dialog-BBALEHJQ.js +1 -0
- package/dist/chunks/{dashboard-summary-settings-dialog-D-F1eEJI.js → dashboard-summary-settings-dialog-DKAaWq-G.js} +64 -63
- package/dist/chunks/date-formatter-D9Bvw5Qk.js +1 -0
- package/dist/chunks/date-formatter-DyIOb6uC.js +333 -0
- package/dist/chunks/edit-dashboard-visual-CGBYahAK.js +183 -0
- package/dist/chunks/{edit-dashboard-visual-BjflrL8w.js → edit-dashboard-visual-D8L0cl_U.js} +6691 -6679
- package/dist/chunks/{index-DDA12yqV.js → index-BmoR3VQT.js} +48608 -66300
- package/dist/chunks/index-Cxb9UUro.js +4 -0
- package/dist/chunks/index-D7KJindZ.js +1 -0
- package/dist/chunks/index-DFOb_6HB.js +1657 -0
- package/dist/chunks/index-eM6MU4q_.js +1361 -0
- package/dist/chunks/index-uRJmUpof.js +2555 -0
- package/dist/chunks/palette-326-dgn0.js +6 -0
- package/dist/chunks/palette-jd7xiGTg.js +23 -0
- package/dist/chunks/{resource-management-panel-B2558XA1.js → resource-management-panel-C_c-BwrC.js} +116 -115
- package/dist/chunks/resource-management-panel-DrcEEARD.js +6 -0
- package/dist/chunks/rotate-ccw-BugHcM1w.js +6 -0
- package/dist/chunks/rotate-ccw-yFwqBFJZ.js +14 -0
- package/dist/chunks/save-CaybXtdd.js +6 -0
- package/dist/chunks/save-DU0FXUlM.js +21 -0
- package/dist/chunks/switch-AmoR1YIA.js +163 -0
- package/dist/chunks/switch-CZtMtqEj.js +19725 -0
- package/dist/chunks/{use-create-flow-overlay-state-BUw_JtLs.js → use-create-flow-overlay-state-84Xe8VrP.js} +396 -412
- package/dist/chunks/use-create-flow-overlay-state-CiKVJGWF.js +16 -0
- package/dist/chunks/use-visual-utils-lp5DfmvL.js +1 -0
- package/dist/chunks/{use-visual-utils-C45OxsOf.js → use-visual-utils-z3ifg6Fd.js} +54 -53
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/format-utils/index.cjs +1 -1
- package/dist/format-utils/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +210 -207
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/appearance.d.ts +176 -0
- package/dist/types/brand-studio.d.ts +245 -0
- package/dist/types/dashboard.d.ts +134 -0
- package/dist/types/main.d.ts +141 -1
- package/dist/types/surfboard.d.ts +134 -0
- package/dist/types/types.d.ts +139 -0
- package/package.json +13 -1
- package/dist/chunks/dashboard-controls-BIRiWCUK.js +0 -47
- package/dist/chunks/dashboard-controls-DIlnYo96.js +0 -2219
- package/dist/chunks/dashboard-filter-controls-button-CK1-mKQh.js +0 -11
- package/dist/chunks/dashboard-json-DK4mQ1gS.js +0 -1
- package/dist/chunks/dashboard-summary-settings-dialog-DSxNqxFI.js +0 -1
- package/dist/chunks/date-formatter-CqXdM6JO.js +0 -1
- package/dist/chunks/date-formatter-vkCj9Ct-.js +0 -1982
- package/dist/chunks/edit-dashboard-visual-DCsrtJr_.js +0 -193
- package/dist/chunks/index-8GnvL1_L.js +0 -1523
- package/dist/chunks/resource-management-panel-CKp4_aem.js +0 -6
- package/dist/chunks/use-create-flow-overlay-state-CWcCdPbC.js +0 -21
- package/dist/chunks/use-visual-utils-DyaThRzf.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { CONTROL_CARD_DEFAULT_VALUE as
|
|
4
|
-
import { C as
|
|
5
|
-
import { jsx as e, jsxs as r, Fragment as
|
|
1
|
+
import { u as j, z as H, A as G, E as Q, F as q, S as K, B as Y, U as X, G as J, H as Z, I as B, J as ee, K as ae, h as te, i as se, L as W, M as re, j as ne, k as ie, l as oe, m as le, N as de, O as ce, P as ue, Q as E, T as me, V as he } from "./chunks/index-BmoR3VQT.js";
|
|
2
|
+
import { aw as Oe, ay as ze, aS as Be, ax as je, a9 as Qe, D as We, a7 as Ve, a4 as $e, aY as He, Y as Ge, $ as qe, $ as Ke, a0 as Ye, a8 as Xe, a as Je, aX as Ze, aD as ea, aT as aa, aF as ta, a6 as sa, a5 as ra, a$ as na, aC as ia, aM as oa, aJ as la, aQ as da, aK as ca, aL as ua, aI as ma, aH as ha, aW as pa, aV as fa, aU as ga, a_ as xa, aZ as Na, aP as va, aB as ya, aO as Aa, aG as Ca, aE as ba, aN as Sa, aR as Da, ag as Ea, ad as Ta, ap as wa, an as Ra, av as Ia, au as _a, am as Pa, al as ka, ak as Ma, ao as Fa, az as La, ai as Ua, aj as Oa, aq as za, as as Ba, a3 as ja, ar as Qa, ab as Wa, a2 as Va, X as $a, aa as Ha, ac as Ga, Z as qa, aA as Ka, af as Ya, ae as Xa, ah as Ja, W as Za, a1 as et, at, _ as tt } from "./chunks/index-BmoR3VQT.js";
|
|
3
|
+
import { CONTROL_CARD_DEFAULT_VALUE as rt, DEFAULT_CALENDAR_CONTEXT as nt, DEFAULT_SEMANTIC_DOMAIN_ACCESS as it, EMPTY_SELECTION as ot } from "./types/index.js";
|
|
4
|
+
import { C as dt, D as ct } from "./chunks/dashboard-summary-settings-dialog-DKAaWq-G.js";
|
|
5
|
+
import { jsx as e, jsxs as r, Fragment as pe } from "react/jsx-runtime";
|
|
6
|
+
import { u as L, P as fe, b as ge, B as T, a as _, G as xe, d as Ne, e as ve } from "./chunks/switch-CZtMtqEj.js";
|
|
7
|
+
import { M as mt, N as ht, V as pt, ac as ft, a1 as gt, H as xt, J as Nt, W as vt, a3 as yt, a2 as At, a6 as Ct, a7 as bt, a0 as St, K as Dt, $ as Et, Q as Tt, R as wt, O as Rt, a4 as It, _ as _t, Z as Pt, Y as kt, a8 as Mt, a5 as Ft, a9 as Lt, ab as Ut, aa as Ot, m as zt, l as Bt, n as jt } from "./chunks/switch-CZtMtqEj.js";
|
|
6
8
|
import * as R from "react";
|
|
7
9
|
import { useMemo as V, useEffect as k, useState as P, useCallback as F } from "react";
|
|
8
|
-
import { ResourceManagementPanel as
|
|
9
|
-
import { u as
|
|
10
|
+
import { ResourceManagementPanel as Wt } from "./chunks/resource-management-panel-C_c-BwrC.js";
|
|
11
|
+
import { u as $t } from "./chunks/use-debounced-dirty-check-BwAbnX_5.js";
|
|
10
12
|
import "react-dom";
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
|
|
13
|
+
import "./chunks/index-uRJmUpof.js";
|
|
14
|
+
import { A as Gt, D as qt, c as Kt, a as Yt, E as Xt, N as Jt, U as Zt, V as es, u as as, b as ts } from "./chunks/dashboard-filter-controls-button-kfb_T18o.js";
|
|
15
|
+
import { n as rs, s as ns } from "./chunks/normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
16
|
+
function we(a) {
|
|
14
17
|
const { authToken: t, tokenProps: n } = j();
|
|
15
|
-
return
|
|
16
|
-
mutationFn: async (i) =>
|
|
18
|
+
return H({
|
|
19
|
+
mutationFn: async (i) => G(
|
|
17
20
|
n.apiServiceUrl,
|
|
18
21
|
t.accessToken,
|
|
19
22
|
a,
|
|
@@ -21,18 +24,18 @@ function Ee(a) {
|
|
|
21
24
|
)
|
|
22
25
|
});
|
|
23
26
|
}
|
|
24
|
-
function
|
|
27
|
+
function Re(a) {
|
|
25
28
|
const { displayPreferences: t, cardId: n, ...i } = a, o = {
|
|
26
29
|
...i,
|
|
27
30
|
id: a.dashboardId
|
|
28
31
|
// override the id to the dashboard id so that the dashboard is not loaded
|
|
29
32
|
};
|
|
30
|
-
return /* @__PURE__ */ e(Q, { FallbackComponent:
|
|
31
|
-
/* @__PURE__ */ e(
|
|
32
|
-
/* @__PURE__ */ e(
|
|
33
|
+
return /* @__PURE__ */ e(Q, { FallbackComponent: q, children: /* @__PURE__ */ r(K, { dashboardProps: o, children: [
|
|
34
|
+
/* @__PURE__ */ e(Y, { componentType: "visual", componentId: a.cardId }),
|
|
35
|
+
/* @__PURE__ */ e(X, { appearance: a.appearance, children: /* @__PURE__ */ e(J, { displayPreferences: t, children: /* @__PURE__ */ e(Z, { type: "visual", cardId: n, ...o, children: /* @__PURE__ */ e(ye, { cardId: n }) }) }) })
|
|
33
36
|
] }) });
|
|
34
37
|
}
|
|
35
|
-
function
|
|
38
|
+
function ye({ cardId: a }) {
|
|
36
39
|
const t = L((o) => {
|
|
37
40
|
var c;
|
|
38
41
|
return (c = o.dashboard) == null ? void 0 : c.sheets;
|
|
@@ -40,7 +43,7 @@ function ve({ cardId: a }) {
|
|
|
40
43
|
const o = t == null ? void 0 : t.flatMap((l) => l.frames), c = o == null ? void 0 : o.flatMap((l) => l == null ? void 0 : l.cards), u = c == null ? void 0 : c.find((l) => (l == null ? void 0 : l.id) === a), s = o == null ? void 0 : o.find(
|
|
41
44
|
(l) => {
|
|
42
45
|
var m;
|
|
43
|
-
return (m = l == null ? void 0 : l.cards) == null ? void 0 : m.find((
|
|
46
|
+
return (m = l == null ? void 0 : l.cards) == null ? void 0 : m.find((g) => (g == null ? void 0 : g.id) === a);
|
|
44
47
|
}
|
|
45
48
|
);
|
|
46
49
|
return { card: u, frame: s };
|
|
@@ -71,12 +74,12 @@ function ve({ cardId: a }) {
|
|
|
71
74
|
}
|
|
72
75
|
) });
|
|
73
76
|
}
|
|
74
|
-
function
|
|
77
|
+
function Ie(a, t, n, i) {
|
|
75
78
|
k(() => {
|
|
76
79
|
a && !n && t && i(ae(t));
|
|
77
80
|
}, [a, n, t, i]);
|
|
78
81
|
}
|
|
79
|
-
function
|
|
82
|
+
function _e({
|
|
80
83
|
name: a,
|
|
81
84
|
items: t,
|
|
82
85
|
value: n,
|
|
@@ -88,45 +91,45 @@ function Re({
|
|
|
88
91
|
icon: l,
|
|
89
92
|
showNone: m = !1
|
|
90
93
|
}) {
|
|
91
|
-
const
|
|
94
|
+
const g = R.useRef(null), [y, x] = R.useState(!1), [A, C] = R.useState("100%"), N = m ? [...t || [], { id: "none", name: "None" }] : t;
|
|
92
95
|
R.useLayoutEffect(() => {
|
|
93
|
-
|
|
96
|
+
g.current && C(g.current.offsetWidth);
|
|
94
97
|
}, []);
|
|
95
98
|
function M() {
|
|
96
99
|
var h;
|
|
97
|
-
return o ? "Loading..." : c ? "Error" : n ? (h = t == null ? void 0 : t.find((
|
|
100
|
+
return o ? "Loading..." : c ? "Error" : n ? (h = t == null ? void 0 : t.find((v) => v.id === n)) == null ? void 0 : h.name : `Select ${a}`;
|
|
98
101
|
}
|
|
99
|
-
function w(h,
|
|
100
|
-
i(
|
|
102
|
+
function w(h, v) {
|
|
103
|
+
i(v), x(!1);
|
|
101
104
|
}
|
|
102
|
-
return /* @__PURE__ */ r(
|
|
103
|
-
/* @__PURE__ */ e(
|
|
105
|
+
return /* @__PURE__ */ r(fe, { open: y, onOpenChange: x, children: [
|
|
106
|
+
/* @__PURE__ */ e(ge, { asChild: !0, children: /* @__PURE__ */ r(
|
|
104
107
|
T,
|
|
105
108
|
{
|
|
106
|
-
ref:
|
|
109
|
+
ref: g,
|
|
107
110
|
variant: "outline",
|
|
108
111
|
role: "combobox",
|
|
109
|
-
"aria-expanded":
|
|
112
|
+
"aria-expanded": y,
|
|
110
113
|
className: _("flex h-9 w-full justify-between", s),
|
|
111
114
|
children: [
|
|
112
115
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
|
|
113
116
|
l && /* @__PURE__ */ e("div", { className: "mr-2", children: l }),
|
|
114
117
|
/* @__PURE__ */ e("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children: M() })
|
|
115
118
|
] }),
|
|
116
|
-
/* @__PURE__ */ e(
|
|
119
|
+
/* @__PURE__ */ e(xe, { className: "size-4 opacity-50" })
|
|
117
120
|
]
|
|
118
121
|
}
|
|
119
122
|
) }),
|
|
120
123
|
/* @__PURE__ */ e(
|
|
121
|
-
|
|
124
|
+
Ne,
|
|
122
125
|
{
|
|
123
126
|
className: "w-full p-0",
|
|
124
|
-
style: { minWidth:
|
|
125
|
-
children: /* @__PURE__ */ r(
|
|
127
|
+
style: { minWidth: A },
|
|
128
|
+
children: /* @__PURE__ */ r(te, { children: [
|
|
126
129
|
/* @__PURE__ */ r("div", { className: "flex h-9 items-center justify-between border-b pr-1", children: [
|
|
127
|
-
/* @__PURE__ */ e(
|
|
130
|
+
/* @__PURE__ */ e(se, { className: "h-9", placeholder: "Search..." }),
|
|
128
131
|
/* @__PURE__ */ e(W, { className: "h-7", onClick: u, children: /* @__PURE__ */ e(
|
|
129
|
-
|
|
132
|
+
re,
|
|
130
133
|
{
|
|
131
134
|
className: _(
|
|
132
135
|
"size-3.5 opacity-50",
|
|
@@ -135,21 +138,21 @@ function Re({
|
|
|
135
138
|
}
|
|
136
139
|
) })
|
|
137
140
|
] }),
|
|
138
|
-
/* @__PURE__ */ r(
|
|
139
|
-
/* @__PURE__ */ r(
|
|
141
|
+
/* @__PURE__ */ r(ne, { children: [
|
|
142
|
+
/* @__PURE__ */ r(ie, { children: [
|
|
140
143
|
"No ",
|
|
141
144
|
a == null ? void 0 : a.toLowerCase(),
|
|
142
145
|
" found."
|
|
143
146
|
] }),
|
|
144
|
-
/* @__PURE__ */ e(
|
|
145
|
-
|
|
147
|
+
/* @__PURE__ */ e(oe, { children: N == null ? void 0 : N.map((h) => /* @__PURE__ */ e(
|
|
148
|
+
le,
|
|
146
149
|
{
|
|
147
150
|
className: "overflow-x-auto",
|
|
148
151
|
value: h.name,
|
|
149
|
-
onSelect: (
|
|
152
|
+
onSelect: (v) => w(v, h.id),
|
|
150
153
|
children: /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
|
|
151
154
|
/* @__PURE__ */ e(
|
|
152
|
-
|
|
155
|
+
ve,
|
|
153
156
|
{
|
|
154
157
|
className: _(
|
|
155
158
|
"size-4",
|
|
@@ -168,7 +171,7 @@ function Re({
|
|
|
168
171
|
)
|
|
169
172
|
] });
|
|
170
173
|
}
|
|
171
|
-
function
|
|
174
|
+
function Pe({
|
|
172
175
|
triggerButtonClassName: a,
|
|
173
176
|
variant: t = "ghost"
|
|
174
177
|
}) {
|
|
@@ -179,7 +182,7 @@ function Ie({
|
|
|
179
182
|
var s;
|
|
180
183
|
return (s = u.dashboard) == null ? void 0 : s.title;
|
|
181
184
|
});
|
|
182
|
-
return o ? /* @__PURE__ */ r(
|
|
185
|
+
return o ? /* @__PURE__ */ r(pe, { children: [
|
|
183
186
|
/* @__PURE__ */ e(
|
|
184
187
|
W,
|
|
185
188
|
{
|
|
@@ -187,11 +190,11 @@ function Ie({
|
|
|
187
190
|
className: _("h-7 p-2", a),
|
|
188
191
|
buttonProps: { variant: t },
|
|
189
192
|
onClick: () => i(!0),
|
|
190
|
-
children: /* @__PURE__ */ e(
|
|
193
|
+
children: /* @__PURE__ */ e(de, { className: "size-4" })
|
|
191
194
|
}
|
|
192
195
|
),
|
|
193
196
|
/* @__PURE__ */ e(
|
|
194
|
-
|
|
197
|
+
ce,
|
|
195
198
|
{
|
|
196
199
|
open: n,
|
|
197
200
|
onOpenChange: i,
|
|
@@ -201,7 +204,7 @@ function Ie({
|
|
|
201
204
|
)
|
|
202
205
|
] }) : null;
|
|
203
206
|
}
|
|
204
|
-
function
|
|
207
|
+
function ke(a, t) {
|
|
205
208
|
k(() => (a && t && (window.__SEMAPHOR_PRINT_STATE__ = {
|
|
206
209
|
...t
|
|
207
210
|
}), () => {
|
|
@@ -213,13 +216,13 @@ function I(a) {
|
|
|
213
216
|
const t = new Date(a);
|
|
214
217
|
return Number.isNaN(t.getTime()) ? "--" : t.toLocaleString();
|
|
215
218
|
}
|
|
216
|
-
function
|
|
219
|
+
function Ae(a) {
|
|
217
220
|
var t;
|
|
218
221
|
return ((t = a.alertState) == null ? void 0 : t.currentState) === "FIRING" ? "Signal surfaced" : a.status === "ACTIVE" ? "Watching" : a.status === "PAUSED" ? "Paused" : a.status;
|
|
219
222
|
}
|
|
220
|
-
function
|
|
221
|
-
var h,
|
|
222
|
-
const { authToken: n, tokenProps: i } = j(), { data: o, isLoading: c, refetch: u } =
|
|
223
|
+
function Me({ alertId: a, onBack: t }) {
|
|
224
|
+
var h, v, U, O;
|
|
225
|
+
const { authToken: n, tokenProps: i } = j(), { data: o, isLoading: c, refetch: u } = ue(a), s = (o == null ? void 0 : o.alert) ?? null, [l, m] = P([]), [g, y] = P([]), [x, A] = P(null), C = F(async () => {
|
|
223
226
|
var f;
|
|
224
227
|
const d = i == null ? void 0 : i.apiServiceUrl, p = n == null ? void 0 : n.accessToken;
|
|
225
228
|
if (!d || !p || !a) return null;
|
|
@@ -228,16 +231,16 @@ function Pe({ alertId: a, onBack: t }) {
|
|
|
228
231
|
headers: { Authorization: `Bearer ${p}` }
|
|
229
232
|
});
|
|
230
233
|
if (S.ok) {
|
|
231
|
-
const D = await S.json(),
|
|
232
|
-
return
|
|
234
|
+
const D = await S.json(), b = Array.isArray(D.runs) ? D.runs : [], z = x && b.some(($) => $.id === x) ? x : ((f = b[0]) == null ? void 0 : f.id) ?? null;
|
|
235
|
+
return y(b), A(z), z;
|
|
233
236
|
}
|
|
234
|
-
|
|
237
|
+
y([]), A(null);
|
|
235
238
|
} catch {
|
|
236
|
-
return
|
|
239
|
+
return y([]), A(null), null;
|
|
237
240
|
}
|
|
238
241
|
return null;
|
|
239
|
-
}, [a, n,
|
|
240
|
-
const p = i == null ? void 0 : i.apiServiceUrl, f = n == null ? void 0 : n.accessToken, S = d ??
|
|
242
|
+
}, [a, n, x, i]), N = F(async (d) => {
|
|
243
|
+
const p = i == null ? void 0 : i.apiServiceUrl, f = n == null ? void 0 : n.accessToken, S = d ?? x;
|
|
241
244
|
if (!p || !f || !a || !S) {
|
|
242
245
|
m([]);
|
|
243
246
|
return;
|
|
@@ -250,25 +253,25 @@ function Pe({ alertId: a, onBack: t }) {
|
|
|
250
253
|
}
|
|
251
254
|
);
|
|
252
255
|
if (D.ok) {
|
|
253
|
-
const
|
|
254
|
-
m(Array.isArray(
|
|
256
|
+
const b = await D.json();
|
|
257
|
+
m(Array.isArray(b.attempts) ? b.attempts : []);
|
|
255
258
|
} else
|
|
256
259
|
m([]);
|
|
257
260
|
} catch {
|
|
258
261
|
m([]);
|
|
259
262
|
}
|
|
260
|
-
}, [a, n,
|
|
263
|
+
}, [a, n, x, i]), M = F(async () => {
|
|
261
264
|
await u();
|
|
262
|
-
const d = await
|
|
263
|
-
await
|
|
264
|
-
}, [
|
|
265
|
+
const d = await C();
|
|
266
|
+
await N(d);
|
|
267
|
+
}, [N, C, u]);
|
|
265
268
|
k(() => {
|
|
266
|
-
|
|
269
|
+
C().catch(() => {
|
|
267
270
|
});
|
|
268
|
-
}, [
|
|
269
|
-
|
|
271
|
+
}, [C]), k(() => {
|
|
272
|
+
N().catch(() => {
|
|
270
273
|
});
|
|
271
|
-
}, [
|
|
274
|
+
}, [N]);
|
|
272
275
|
const w = V(() => {
|
|
273
276
|
const d = {};
|
|
274
277
|
for (const p of l)
|
|
@@ -280,7 +283,7 @@ function Pe({ alertId: a, onBack: t }) {
|
|
|
280
283
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
|
|
281
284
|
t && /* @__PURE__ */ e(T, { variant: "outline", size: "sm", onClick: t, children: "Back" }),
|
|
282
285
|
/* @__PURE__ */ e("h2", { className: "text-lg font-semibold", children: s.name }),
|
|
283
|
-
/* @__PURE__ */ e(E, { variant: s.status === "ACTIVE" ? "default" : "secondary", children:
|
|
286
|
+
/* @__PURE__ */ e(E, { variant: s.status === "ACTIVE" ? "default" : "secondary", children: Ae(s) }),
|
|
284
287
|
((h = s.alertState) == null ? void 0 : h.currentState) && /* @__PURE__ */ e(E, { variant: s.alertState.currentState === "FIRING" ? "destructive" : "outline", children: s.alertState.currentState === "FIRING" ? "Signal surfaced" : "Stable" })
|
|
285
288
|
] }),
|
|
286
289
|
/* @__PURE__ */ e(T, { variant: "outline", size: "sm", onClick: () => void M(), children: "Refresh" })
|
|
@@ -296,7 +299,7 @@ function Pe({ alertId: a, onBack: t }) {
|
|
|
296
299
|
/* @__PURE__ */ r("div", { children: [
|
|
297
300
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Watching for:" }),
|
|
298
301
|
" ",
|
|
299
|
-
|
|
302
|
+
me(s.jobConfig.operator, s.jobConfig.threshold)
|
|
300
303
|
] }),
|
|
301
304
|
/* @__PURE__ */ r("div", { children: [
|
|
302
305
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Severity:" }),
|
|
@@ -306,27 +309,27 @@ function Pe({ alertId: a, onBack: t }) {
|
|
|
306
309
|
/* @__PURE__ */ r("div", { children: [
|
|
307
310
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Last Evaluated:" }),
|
|
308
311
|
" ",
|
|
309
|
-
I((
|
|
312
|
+
I((v = s.alertState) == null ? void 0 : v.lastEvaluatedAt)
|
|
310
313
|
] }),
|
|
311
314
|
/* @__PURE__ */ r("div", { children: [
|
|
312
315
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Last Surfaced:" }),
|
|
313
316
|
" ",
|
|
314
|
-
I((
|
|
317
|
+
I((U = s.alertState) == null ? void 0 : U.lastTriggeredAt)
|
|
315
318
|
] })
|
|
316
319
|
] })
|
|
317
320
|
] }),
|
|
318
|
-
((
|
|
321
|
+
((O = s.deliveryConfig) == null ? void 0 : O.channels) && s.deliveryConfig.channels.length > 0 && /* @__PURE__ */ r("div", { className: "rounded-md border bg-background p-4 space-y-2", children: [
|
|
319
322
|
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold", children: "Where It Surfaces" }),
|
|
320
323
|
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: s.deliveryConfig.channels.map((d) => /* @__PURE__ */ e(E, { variant: "outline", children: d }, d)) })
|
|
321
324
|
] }),
|
|
322
|
-
|
|
325
|
+
g.length > 0 && /* @__PURE__ */ r("div", { className: "rounded-md border bg-background p-4 space-y-3", children: [
|
|
323
326
|
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold", children: "Recent Delivery Activity" }),
|
|
324
|
-
|
|
327
|
+
g.length > 1 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: g.map((d) => /* @__PURE__ */ e(
|
|
325
328
|
T,
|
|
326
329
|
{
|
|
327
|
-
variant: d.id ===
|
|
330
|
+
variant: d.id === x ? "default" : "outline",
|
|
328
331
|
size: "sm",
|
|
329
|
-
onClick: () =>
|
|
332
|
+
onClick: () => A(d.id),
|
|
330
333
|
children: I(d.scheduledFor)
|
|
331
334
|
},
|
|
332
335
|
d.id
|
|
@@ -358,9 +361,9 @@ function Pe({ alertId: a, onBack: t }) {
|
|
|
358
361
|
] })
|
|
359
362
|
] }) : /* @__PURE__ */ e("div", { className: "p-4 text-sm text-muted-foreground", children: "Signal not found." });
|
|
360
363
|
}
|
|
361
|
-
function
|
|
364
|
+
function Fe() {
|
|
362
365
|
var c, u;
|
|
363
|
-
const { quotasQuery: a, usageQuery: t } =
|
|
366
|
+
const { quotasQuery: a, usageQuery: t } = he(), n = ((c = a.data) == null ? void 0 : c.quotas) || [], i = ((u = t.data) == null ? void 0 : u.usage) || [], o = new Map(i.map((s) => [s.tenantId || "org", s]));
|
|
364
367
|
return /* @__PURE__ */ r("div", { className: "space-y-4 p-4", children: [
|
|
365
368
|
/* @__PURE__ */ r("div", { className: "flex items-center justify-between", children: [
|
|
366
369
|
/* @__PURE__ */ e("h2", { className: "text-xl font-semibold", children: "Alert Quotas" }),
|
|
@@ -402,142 +405,142 @@ function ke() {
|
|
|
402
405
|
] });
|
|
403
406
|
}
|
|
404
407
|
export {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
408
|
+
Gt as AdvancedModeToggle,
|
|
409
|
+
Me as AlertDetailPageEmbedded,
|
|
410
|
+
Oe as AlertManagementPage,
|
|
411
|
+
ze as AlertWizardDialog,
|
|
412
|
+
Be as AlertsApiError,
|
|
413
|
+
mt as CALCULATED_FIELD_ENTITY_MARKER,
|
|
414
|
+
rt as CONTROL_CARD_DEFAULT_VALUE,
|
|
415
|
+
dt as CalendarPreferencesDialog,
|
|
416
|
+
je as CardAlertIndicator,
|
|
417
|
+
Qe as CardSummary,
|
|
418
|
+
_e as Combobox,
|
|
419
|
+
ht as DATE_FORMAT_VALUES,
|
|
420
|
+
nt as DEFAULT_CALENDAR_CONTEXT,
|
|
421
|
+
it as DEFAULT_SEMANTIC_DOMAIN_ACCESS,
|
|
419
422
|
We as Dashboard,
|
|
420
|
-
|
|
423
|
+
qt as DashboardControlsSettings,
|
|
421
424
|
Ve as DashboardExportDialog,
|
|
422
|
-
|
|
423
|
-
|
|
425
|
+
Kt as DashboardFilterControlsButton,
|
|
426
|
+
ct as DashboardSummarySettingsDialog,
|
|
424
427
|
$e as DashboardWC,
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
428
|
+
ot as EMPTY_SELECTION,
|
|
429
|
+
ce as EmailScheduleDialog,
|
|
430
|
+
He as ExportError,
|
|
431
|
+
Yt as ExportNotificationItem,
|
|
432
|
+
Xt as ExportNotificationList,
|
|
433
|
+
Jt as NotificationBell,
|
|
434
|
+
pt as PivotMarkerEnum,
|
|
435
|
+
Wt as ResourceManagementPanel,
|
|
433
436
|
Ge as ResourceType,
|
|
434
|
-
|
|
437
|
+
Pe as ScheduleDashboard,
|
|
435
438
|
K as SemaphorContextProvider,
|
|
436
|
-
|
|
437
|
-
|
|
439
|
+
qe as SemaphorDataProvider,
|
|
440
|
+
Ke as SemaphorQueryClient,
|
|
438
441
|
Ye as ShareDialog,
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
442
|
+
Xe as SummaryCard,
|
|
443
|
+
Je as Surfboard,
|
|
444
|
+
Fe as TenantQuotaPage,
|
|
445
|
+
Zt as UnsavedChangesAlert,
|
|
446
|
+
Re as Visual,
|
|
447
|
+
es as VisualEditingControls,
|
|
448
|
+
G as backtestAlert,
|
|
449
|
+
Ze as cancelExport,
|
|
447
450
|
ae as cloneDeep,
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
451
|
+
ea as createAlert,
|
|
452
|
+
ft as createEmptyKpiConfig,
|
|
453
|
+
aa as createExport,
|
|
454
|
+
gt as createSqlGenConfig,
|
|
455
|
+
ta as deleteAlert,
|
|
456
|
+
sa as downloadDocumentPdf,
|
|
457
|
+
ra as downloadPdf,
|
|
458
|
+
xt as emitDashboardLoad,
|
|
459
|
+
Nt as emitDashboardUnload,
|
|
460
|
+
vt as fmt,
|
|
461
|
+
na as formatFileSize,
|
|
462
|
+
ia as getAlert,
|
|
463
|
+
oa as getAlertContextSources,
|
|
464
|
+
la as getAlertHistory,
|
|
465
|
+
da as getAlertQuotaUsage,
|
|
466
|
+
ca as getAlertRunDeliveries,
|
|
467
|
+
ua as getAlertRunSteps,
|
|
468
|
+
ma as getAlertRuns,
|
|
469
|
+
ha as getAlertState,
|
|
470
|
+
yt as getColumnDataType,
|
|
471
|
+
pa as getDownloadUrl,
|
|
472
|
+
fa as getExportStatus,
|
|
473
|
+
ga as getExports,
|
|
474
|
+
At as getFilterValueType,
|
|
475
|
+
Ct as getFormattedTableNameForQuery,
|
|
476
|
+
bt as getQualifiedTableName,
|
|
477
|
+
St as getSql,
|
|
478
|
+
Dt as invalidateToken,
|
|
479
|
+
Et as isBooleanDataType,
|
|
480
|
+
Tt as isCalculatedDimension,
|
|
481
|
+
wt as isCalculatedField,
|
|
482
|
+
Rt as isCalculatedMetric,
|
|
483
|
+
It as isColumnInSqlGen,
|
|
484
|
+
_t as isDateDataType,
|
|
485
|
+
xa as isExportComplete,
|
|
486
|
+
Na as isExportInProgress,
|
|
487
|
+
Pt as isNumberDataType,
|
|
488
|
+
kt as isTextDataType,
|
|
489
|
+
va as listAlertQuotas,
|
|
490
|
+
ya as listAlerts,
|
|
491
|
+
rs as normalizeDashboardForDirtyCheck,
|
|
492
|
+
Aa as previewAlertDeliverable,
|
|
493
|
+
Mt as resolveDataType,
|
|
494
|
+
Ft as resolveDatamodelName,
|
|
495
|
+
ns as serializeDashboardForDirtyCheck,
|
|
496
|
+
Ca as triggerAlertNow,
|
|
497
|
+
ba as updateAlert,
|
|
498
|
+
Sa as updateAlertContextSources,
|
|
499
|
+
Da as updateAlertQuota,
|
|
500
|
+
Ea as useActiveExports,
|
|
501
|
+
Ta as useAddNewFrame,
|
|
502
|
+
wa as useAlertActions,
|
|
503
|
+
we as useAlertBacktest,
|
|
504
|
+
Ra as useAlertDeliveries,
|
|
505
|
+
ue as useAlertDetail,
|
|
506
|
+
Ia as useAlertDraft,
|
|
507
|
+
_a as useAlertFilters,
|
|
508
|
+
Pa as useAlertHistory,
|
|
509
|
+
he as useAlertQuotas,
|
|
510
|
+
ka as useAlertRuns,
|
|
511
|
+
Ma as useAlertState,
|
|
512
|
+
Fa as useAlertStore,
|
|
513
|
+
La as useAlertWizard,
|
|
514
|
+
Ua as useAlerts,
|
|
515
|
+
Oa as useAlertsBootstrap,
|
|
516
|
+
za as useAlertsById,
|
|
517
|
+
Ba as useAlertsForCard,
|
|
518
|
+
ja as useCard,
|
|
519
|
+
Qa as useCardAlertMap,
|
|
520
|
+
Wa as useCardSummary,
|
|
521
|
+
Lt as useCurrentActiveCard,
|
|
522
|
+
Ut as useCurrentCardConfig,
|
|
523
|
+
Ot as useCurrentSheetActiveCards,
|
|
524
|
+
zt as useDashboardActions,
|
|
525
|
+
Va as useDashboardById,
|
|
526
|
+
$a as useDashboardQuery,
|
|
524
527
|
L as useDashboardStore,
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
528
|
+
Ha as useDashboardSummary,
|
|
529
|
+
Ga as useDataColumns,
|
|
530
|
+
qa as useDateFilterHook,
|
|
531
|
+
$t as useDebouncedDirtyCheck,
|
|
532
|
+
Bt as useEditorActions,
|
|
533
|
+
Ka as useEditorAside,
|
|
534
|
+
jt as useEditorStore,
|
|
535
|
+
Ya as useExportActions,
|
|
536
|
+
as as useExportPolling,
|
|
537
|
+
ts as useExportRecovery,
|
|
538
|
+
Xa as useExportStore,
|
|
539
|
+
ke as useExposePrintState,
|
|
540
|
+
Ja as useInProgressExportsCount,
|
|
541
|
+
Za as useManagementStore,
|
|
542
|
+
Ie as usePristineSnapshotInitializer,
|
|
543
|
+
et as useResourceManagement,
|
|
544
|
+
at as useSelectedAlertId,
|
|
545
|
+
tt as useTextFilterHook
|
|
543
546
|
};
|