react-semaphor 0.1.114 → 0.1.115
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/chunks/{dashboard-controls-Dx3SP8_O.js → dashboard-controls-BQDmKxxN.js} +51 -51
- package/dist/chunks/{dashboard-controls-BdvApPn1.js → dashboard-controls-YDGnMyyK.js} +1 -1
- package/dist/chunks/{dashboard-json-CLmj5Xgn.js → dashboard-json-BHAPV0Eh.js} +1 -1
- package/dist/chunks/{dashboard-json-BBUvHSx-.js → dashboard-json-D-gw81va.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-DYXisS8S.js → edit-dashboard-visual-CadUC2o0.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-F01R1pb1.js → edit-dashboard-visual-D8DmYTKj.js} +165 -165
- package/dist/chunks/{editor-action-buttons-D-aEUYpS.js → editor-action-buttons-CJ1R-8qC.js} +1 -1
- package/dist/chunks/{editor-action-buttons-CCki6g0i.js → editor-action-buttons-Cz-qv-g3.js} +2 -2
- package/dist/chunks/{index-BB_Q9BeP.js → index-Bf4pgVkQ.js} +9740 -9779
- package/dist/chunks/{index-C2IITrDh.js → index-WFJ2bdm0.js} +166 -166
- package/dist/chunks/resource-management-panel-BXzn0kHW.js +6 -0
- package/dist/chunks/resource-management-panel-ByY6ZxCb.js +878 -0
- package/dist/chunks/{schedule-dashboard-Bcu7Wcl2.js → schedule-dashboard-BJ0PeQTb.js} +3 -3
- package/dist/chunks/{schedule-dashboard-CNmepTOh.js → schedule-dashboard-DlYi6cPQ.js} +1 -1
- package/dist/chunks/{use-visual-utils-VFO0nbRa.js → use-visual-utils-DlurLDVv.js} +1 -1
- package/dist/chunks/{use-visual-utils-CQb_-z3Z.js → use-visual-utils-DlzVpKYl.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/resource-management-panel-BWpWiCnv.js +0 -11
- package/dist/chunks/resource-management-panel-C6G5vwpR.js +0 -924
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e, Fragment as E } from "react/jsx-runtime";
|
|
2
|
-
import { b as J,
|
|
2
|
+
import { b as J, bo as vs, bp as Ns, u as y, aC as Ce, aD as Se, B as k, aF as Me, aG as W, bq as ke, g as Ve, aj as R, ao as oe, br as ys, aQ as Le, ap as ie, aq as le, ar as ce, as as Pe, at as te, bs as Q, ax as Qe, I as V, bt as ws, aU as xs, bu as Ds, bv as qe, bw as He, c as X, bx as Be, by as Cs, bz as Ss, bA as Ms, bB as ks, bC as Ls, l as C, O as ze, h as de, bD as ue, bE as Ke, av as Ps, bF as As, L as H, aT as _, bG as Is, bH as Es, bI as Fs, bJ as We, bK as Je, bL as re, bM as ne, bm as be, aM as ve, bN as Ne, aV as Xe, bO as ye, aw as Ze, aZ as Ye, bP as Ts, b1 as Gs, b2 as Rs, b3 as Os, b4 as Us, b5 as qs, b6 as zs, b7 as _s, b8 as $s, bQ as js, aO as Vs, bh as Qs, bR as Hs, bS as Bs, f as _e, aA as se, bT as Ks, R as fe, bU as Ws, bV as Js, bW as Xs, bX as Zs, N as Ys, bY as ea, bZ as sa, b_ as aa, b$ as ta, J as ra } from "./index-Bf4pgVkQ.js";
|
|
3
3
|
import * as S from "react";
|
|
4
4
|
import { useState as w, useMemo as ae, useEffect as na } from "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { g as we, A as oa, V as ia, S as la } from "./schedule-dashboard-
|
|
7
|
-
import { S as
|
|
6
|
+
import { g as we, A as oa, V as ia, S as la } from "./schedule-dashboard-BJ0PeQTb.js";
|
|
7
|
+
import { S as $e } from "./editor-action-buttons-Cz-qv-g3.js";
|
|
8
8
|
/**
|
|
9
9
|
* @license lucide-react v0.453.0 - ISC
|
|
10
10
|
*
|
|
@@ -618,7 +618,7 @@ function Pa({
|
|
|
618
618
|
/* @__PURE__ */ e(H, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
619
619
|
"Creating..."
|
|
620
620
|
] }) : /* @__PURE__ */ r(E, { children: [
|
|
621
|
-
/* @__PURE__ */ e(
|
|
621
|
+
/* @__PURE__ */ e(_, { className: "mr-2 h-4 w-4" }),
|
|
622
622
|
"Create Group"
|
|
623
623
|
] })
|
|
624
624
|
}
|
|
@@ -761,15 +761,15 @@ var rs = "AvatarFallback", ns = S.forwardRef(
|
|
|
761
761
|
}
|
|
762
762
|
);
|
|
763
763
|
ns.displayName = rs;
|
|
764
|
-
function
|
|
764
|
+
function je(s, n) {
|
|
765
765
|
return s ? n ? (s.src !== n && (s.src = n), s.complete && s.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
766
766
|
}
|
|
767
767
|
function Ua(s, { referrerPolicy: n, crossOrigin: a }) {
|
|
768
768
|
const t = Ta(), i = S.useRef(null), o = t ? (i.current || (i.current = new window.Image()), i.current) : null, [l, m] = S.useState(
|
|
769
|
-
() =>
|
|
769
|
+
() => je(o, s)
|
|
770
770
|
);
|
|
771
771
|
return De(() => {
|
|
772
|
-
m(
|
|
772
|
+
m(je(o, s));
|
|
773
773
|
}, [o, s]), De(() => {
|
|
774
774
|
const h = (c) => () => {
|
|
775
775
|
m(c);
|
|
@@ -826,7 +826,7 @@ function za({
|
|
|
826
826
|
tenantId: a.tenantId || void 0,
|
|
827
827
|
active: !0,
|
|
828
828
|
limit: 100
|
|
829
|
-
}), O = ka(), G = La(), A = (p == null ? void 0 : p.members) || [],
|
|
829
|
+
}), O = ka(), G = La(), A = (p == null ? void 0 : p.members) || [], $ = ae(() => new Set(A.map((g) => g.userId)), [A]), N = ae(() => M.filter((g) => !$.has(g.id)), [M, $]), T = ae(() => {
|
|
830
830
|
if (!l) return N;
|
|
831
831
|
const g = l.toLowerCase();
|
|
832
832
|
return N.filter(
|
|
@@ -840,8 +840,8 @@ function za({
|
|
|
840
840
|
const g = l.toLowerCase();
|
|
841
841
|
return A.filter(
|
|
842
842
|
(L) => {
|
|
843
|
-
var I, q,
|
|
844
|
-
return ((q = (I = L.user) == null ? void 0 : I.name) == null ? void 0 : q.toLowerCase().includes(g)) || ((z = (
|
|
843
|
+
var I, q, Z, z;
|
|
844
|
+
return ((q = (I = L.user) == null ? void 0 : I.name) == null ? void 0 : q.toLowerCase().includes(g)) || ((z = (Z = L.user) == null ? void 0 : Z.email) == null ? void 0 : z.toLowerCase().includes(g));
|
|
845
845
|
}
|
|
846
846
|
);
|
|
847
847
|
}, [A, l]), U = async () => {
|
|
@@ -913,11 +913,11 @@ function za({
|
|
|
913
913
|
)
|
|
914
914
|
] }),
|
|
915
915
|
/* @__PURE__ */ e(ve, { className: u.length > 0 ? "h-[300px]" : "h-[350px]", children: b ? /* @__PURE__ */ e("div", { className: "space-y-2", children: [1, 2, 3].map((g) => /* @__PURE__ */ e(Ne, { className: "h-16 w-full" }, g)) }) : D.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
916
|
-
/* @__PURE__ */ e(
|
|
916
|
+
/* @__PURE__ */ e(_, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
917
917
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: l ? "No members found" : "No members yet" }),
|
|
918
918
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: l ? "Try a different search" : 'Switch to the "Add Members" tab to add people to this group' })
|
|
919
919
|
] }) : /* @__PURE__ */ e("div", { className: "space-y-2", children: D.map((g) => /* @__PURE__ */ e(
|
|
920
|
-
|
|
920
|
+
_a,
|
|
921
921
|
{
|
|
922
922
|
member: g,
|
|
923
923
|
selected: u.includes(g.userId),
|
|
@@ -968,7 +968,7 @@ function za({
|
|
|
968
968
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No available users" }),
|
|
969
969
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: l ? "Try a different search" : "All eligible users are already members" })
|
|
970
970
|
] }) : /* @__PURE__ */ e("div", { className: "space-y-2", children: T.map((g) => /* @__PURE__ */ e(
|
|
971
|
-
|
|
971
|
+
$a,
|
|
972
972
|
{
|
|
973
973
|
user: g,
|
|
974
974
|
selected: h.includes(g.id),
|
|
@@ -1002,7 +1002,7 @@ function za({
|
|
|
1002
1002
|
] })
|
|
1003
1003
|
] }) }) });
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function _a({
|
|
1006
1006
|
member: s,
|
|
1007
1007
|
selected: n,
|
|
1008
1008
|
onToggle: a
|
|
@@ -1015,7 +1015,7 @@ function $a({
|
|
|
1015
1015
|
className: "flex items-center gap-3 p-3 rounded-lg border bg-card hover:bg-muted/50 cursor-pointer",
|
|
1016
1016
|
onClick: a,
|
|
1017
1017
|
children: [
|
|
1018
|
-
/* @__PURE__ */ e(
|
|
1018
|
+
/* @__PURE__ */ e(Ze, { checked: n }),
|
|
1019
1019
|
/* @__PURE__ */ e(Ee, { className: "h-8 w-8", children: /* @__PURE__ */ e(Fe, { className: "text-xs", children: t }) }),
|
|
1020
1020
|
/* @__PURE__ */ r("div", { className: "flex-1", children: [
|
|
1021
1021
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: ((l = s.user) == null ? void 0 : l.name) || "Unknown User" }),
|
|
@@ -1025,7 +1025,7 @@ function $a({
|
|
|
1025
1025
|
}
|
|
1026
1026
|
);
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function $a({
|
|
1029
1029
|
user: s,
|
|
1030
1030
|
selected: n,
|
|
1031
1031
|
onToggle: a
|
|
@@ -1038,7 +1038,7 @@ function ja({
|
|
|
1038
1038
|
className: "flex items-center gap-3 p-3 rounded-lg border bg-card hover:bg-muted/50 cursor-pointer",
|
|
1039
1039
|
onClick: a,
|
|
1040
1040
|
children: [
|
|
1041
|
-
/* @__PURE__ */ e(
|
|
1041
|
+
/* @__PURE__ */ e(Ze, { checked: n }),
|
|
1042
1042
|
/* @__PURE__ */ e(Ee, { className: "h-8 w-8", children: /* @__PURE__ */ e(Fe, { className: "text-xs", children: t }) }),
|
|
1043
1043
|
/* @__PURE__ */ r("div", { className: "flex-1", children: [
|
|
1044
1044
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: s.name }),
|
|
@@ -1048,11 +1048,11 @@ function ja({
|
|
|
1048
1048
|
}
|
|
1049
1049
|
);
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function ja({
|
|
1052
1052
|
open: s,
|
|
1053
1053
|
onOpenChange: n
|
|
1054
1054
|
}) {
|
|
1055
|
-
const [a, t] = w("groups"), [i, o] = w(""), [l, m] = w(null), [h, f] = w(!1), [u, c] = w(null), { tokenProps: p } = R(), { currentUser: b } =
|
|
1055
|
+
const [a, t] = w("groups"), [i, o] = w(""), [l, m] = w(null), [h, f] = w(!1), [u, c] = w(null), { tokenProps: p } = R(), { currentUser: b } = Ye(), v = Ma(), x = (b == null ? void 0 : b.type) === "tenant", M = p == null ? void 0 : p.tenantId, { groups: P, isLoading: O, refetch: G } = Ts({
|
|
1056
1056
|
type: x ? "TENANT_GROUP" : "all",
|
|
1057
1057
|
tenantId: x ? M : void 0,
|
|
1058
1058
|
includeMembers: !1
|
|
@@ -1061,7 +1061,7 @@ function _a({
|
|
|
1061
1061
|
var U;
|
|
1062
1062
|
return D.name.toLowerCase().includes(i.toLowerCase()) || ((U = D.description) == null ? void 0 : U.toLowerCase().includes(i.toLowerCase()));
|
|
1063
1063
|
}
|
|
1064
|
-
),
|
|
1064
|
+
), $ = async () => {
|
|
1065
1065
|
if (u)
|
|
1066
1066
|
try {
|
|
1067
1067
|
await v.mutateAsync(u.id), c(null), G();
|
|
@@ -1077,7 +1077,7 @@ function _a({
|
|
|
1077
1077
|
/* @__PURE__ */ e(oe, { open: s, onOpenChange: n, children: /* @__PURE__ */ r(ie, { className: "max-w-4xl max-h-[80vh]", children: [
|
|
1078
1078
|
/* @__PURE__ */ r(le, { children: [
|
|
1079
1079
|
/* @__PURE__ */ r(ce, { className: "flex items-center gap-2", children: [
|
|
1080
|
-
/* @__PURE__ */ e(
|
|
1080
|
+
/* @__PURE__ */ e(_, { className: "h-5 w-5" }),
|
|
1081
1081
|
"Group Management"
|
|
1082
1082
|
] }),
|
|
1083
1083
|
/* @__PURE__ */ e(Pe, { children: "Manage your groups, create new groups, and control group membership" })
|
|
@@ -1085,7 +1085,7 @@ function _a({
|
|
|
1085
1085
|
/* @__PURE__ */ r(We, { value: a, onValueChange: t, className: "mt-4", children: [
|
|
1086
1086
|
/* @__PURE__ */ r(Je, { className: "grid w-full grid-cols-2", children: [
|
|
1087
1087
|
/* @__PURE__ */ r(re, { value: "groups", className: "flex items-center gap-2", children: [
|
|
1088
|
-
/* @__PURE__ */ e(
|
|
1088
|
+
/* @__PURE__ */ e(_, { className: "h-4 w-4" }),
|
|
1089
1089
|
"Groups"
|
|
1090
1090
|
] }),
|
|
1091
1091
|
/* @__PURE__ */ r(re, { value: "create", className: "flex items-center gap-2", children: [
|
|
@@ -1107,7 +1107,7 @@ function _a({
|
|
|
1107
1107
|
)
|
|
1108
1108
|
] }),
|
|
1109
1109
|
/* @__PURE__ */ e(ve, { className: "h-[400px]", children: O ? /* @__PURE__ */ e("div", { className: "space-y-3", children: [1, 2, 3].map((D) => /* @__PURE__ */ e(Ne, { className: "h-24 w-full" }, D)) }) : A.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
1110
|
-
/* @__PURE__ */ e(
|
|
1110
|
+
/* @__PURE__ */ e(_, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
1111
1111
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No groups found" }),
|
|
1112
1112
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: i ? "Try a different search" : "Create your first group to get started" })
|
|
1113
1113
|
] }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: A.map((D) => /* @__PURE__ */ e(
|
|
@@ -1155,11 +1155,11 @@ function _a({
|
|
|
1155
1155
|
] })
|
|
1156
1156
|
] }),
|
|
1157
1157
|
/* @__PURE__ */ r(zs, { children: [
|
|
1158
|
-
/* @__PURE__ */ e(
|
|
1158
|
+
/* @__PURE__ */ e(_s, { children: "Cancel" }),
|
|
1159
1159
|
/* @__PURE__ */ e(
|
|
1160
|
-
|
|
1160
|
+
$s,
|
|
1161
1161
|
{
|
|
1162
|
-
onClick:
|
|
1162
|
+
onClick: $,
|
|
1163
1163
|
disabled: v.isPending,
|
|
1164
1164
|
className: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
1165
1165
|
children: v.isPending ? /* @__PURE__ */ r(E, { children: [
|
|
@@ -1189,14 +1189,14 @@ function Va({
|
|
|
1189
1189
|
] }),
|
|
1190
1190
|
/* @__PURE__ */ r("div", { className: "flex flex-wrap items-center gap-3 text-xs text-muted-foreground", children: [
|
|
1191
1191
|
/* @__PURE__ */ r("span", { className: "flex items-center gap-1", children: [
|
|
1192
|
-
/* @__PURE__ */ e(
|
|
1192
|
+
/* @__PURE__ */ e(_, { className: "h-3 w-3" }),
|
|
1193
1193
|
s.memberCount,
|
|
1194
1194
|
" ",
|
|
1195
1195
|
s.memberCount === 1 ? "member" : "members"
|
|
1196
1196
|
] }),
|
|
1197
1197
|
/* @__PURE__ */ r("span", { children: [
|
|
1198
1198
|
"Created ",
|
|
1199
|
-
|
|
1199
|
+
js(new Date(s.createdAt), "MMM d, yyyy")
|
|
1200
1200
|
] })
|
|
1201
1201
|
] })
|
|
1202
1202
|
] }),
|
|
@@ -1225,7 +1225,7 @@ function Va({
|
|
|
1225
1225
|
] })
|
|
1226
1226
|
] }) });
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function Za() {
|
|
1229
1229
|
var Re, Oe, Ue;
|
|
1230
1230
|
const {
|
|
1231
1231
|
authToken: s,
|
|
@@ -1239,26 +1239,26 @@ function Ya() {
|
|
|
1239
1239
|
(d) => d.isDashboardEditing
|
|
1240
1240
|
), { setDashboardTitle: p } = y((d) => d.actions), [b, v] = w(!1), [x, M] = w(!1), [P, O] = w(!1), G = y((d) => d.isDashboardPanelOpen), A = y(
|
|
1241
1241
|
(d) => d.actions.setIsDashboardPanelOpen
|
|
1242
|
-
),
|
|
1243
|
-
|
|
1242
|
+
), $ = y((d) => d.filterValues), N = y((d) => d.isVisualEditing);
|
|
1243
|
+
_e((d) => d.card);
|
|
1244
1244
|
const T = se(
|
|
1245
1245
|
(d) => d.selectedDashboard
|
|
1246
1246
|
), D = se(
|
|
1247
1247
|
(d) => d.initialDashboard
|
|
1248
1248
|
);
|
|
1249
|
-
se((d) => d.selectedVisual), y((d) => d.selectedFrameId),
|
|
1249
|
+
se((d) => d.selectedVisual), y((d) => d.selectedFrameId), _e((d) => d.frame);
|
|
1250
1250
|
const U = T ? (Oe = T == null ? void 0 : T.permissions) == null ? void 0 : Oe.canEdit : (Re = D == null ? void 0 : D.permissions) == null ? void 0 : Re.canEdit, me = y((d) => d.showFilters), he = y(
|
|
1251
1251
|
(d) => d.showDashboardJSON
|
|
1252
1252
|
), B = y((d) => d.onSaveFunction), g = y(
|
|
1253
1253
|
(d) => d.actions.setShowFilters
|
|
1254
1254
|
), { setIsDashboardEditing: L, setShowDashboardJSON: I } = y(
|
|
1255
1255
|
(d) => d.actions
|
|
1256
|
-
), { setInitialDashboard: q, clearSelectedDashboard:
|
|
1256
|
+
), { setInitialDashboard: q, clearSelectedDashboard: Z } = se(
|
|
1257
1257
|
(d) => d.actions
|
|
1258
|
-
), { resources: z } = Ks(fe.DASHBOARD), { currentUser: cs } =
|
|
1259
|
-
id:
|
|
1260
|
-
title: (u == null ? void 0 : u.title) ||
|
|
1261
|
-
} : null, { handleAddNewFrame: us } = Js(), [pe, ge] = w(!1),
|
|
1258
|
+
), { resources: z } = Ks(fe.DASHBOARD), { currentUser: cs } = Ye(), ds = Ws(cs), j = T || D, Te = j ? {
|
|
1259
|
+
id: j.id,
|
|
1260
|
+
title: (u == null ? void 0 : u.title) || j.title || "Dashboard"
|
|
1261
|
+
} : null, { handleAddNewFrame: us } = Js(), [pe, ge] = w(!1), Y = Xs(fe.DASHBOARD), ms = async (d, F) => {
|
|
1262
1262
|
if (!(u != null && u.id)) {
|
|
1263
1263
|
console.log("No dashboard ID found");
|
|
1264
1264
|
return;
|
|
@@ -1267,7 +1267,7 @@ function Ya() {
|
|
|
1267
1267
|
dashboardId: u.id,
|
|
1268
1268
|
newTitle: d,
|
|
1269
1269
|
previousTitle: F
|
|
1270
|
-
}),
|
|
1270
|
+
}), Y.mutate(
|
|
1271
1271
|
{
|
|
1272
1272
|
resourceId: u.id,
|
|
1273
1273
|
data: { title: d }
|
|
@@ -1304,7 +1304,7 @@ function Ya() {
|
|
|
1304
1304
|
const F = {
|
|
1305
1305
|
template: d
|
|
1306
1306
|
};
|
|
1307
|
-
|
|
1307
|
+
Y.mutate(
|
|
1308
1308
|
{
|
|
1309
1309
|
resourceId: d.id,
|
|
1310
1310
|
data: F
|
|
@@ -1326,7 +1326,7 @@ function Ya() {
|
|
|
1326
1326
|
), F = JSON.stringify(d), K = {
|
|
1327
1327
|
...f,
|
|
1328
1328
|
template: F,
|
|
1329
|
-
filterValues:
|
|
1329
|
+
filterValues: $
|
|
1330
1330
|
};
|
|
1331
1331
|
await xe(
|
|
1332
1332
|
n.apiServiceUrl,
|
|
@@ -1335,7 +1335,7 @@ function Ya() {
|
|
|
1335
1335
|
), C.success("Lens saved"), B == null || B(d), v(!1);
|
|
1336
1336
|
}
|
|
1337
1337
|
const Ge = (f == null ? void 0 : f.name) || u.title;
|
|
1338
|
-
|
|
1338
|
+
Y.isPending && console.log("Title during update:", {
|
|
1339
1339
|
title: Ge,
|
|
1340
1340
|
dashboardStateTitle: u.title,
|
|
1341
1341
|
dashboardId: u == null ? void 0 : u.id,
|
|
@@ -1367,7 +1367,7 @@ function Ya() {
|
|
|
1367
1367
|
{
|
|
1368
1368
|
"aria-label": "Dashboard Hub",
|
|
1369
1369
|
tooltip: "Dashboard Hub",
|
|
1370
|
-
onClick: () =>
|
|
1370
|
+
onClick: () => Z(),
|
|
1371
1371
|
className: "h-7 p-2",
|
|
1372
1372
|
children: /* @__PURE__ */ e(He, { className: "h-4 w-4" })
|
|
1373
1373
|
}
|
|
@@ -1377,7 +1377,7 @@ function Ya() {
|
|
|
1377
1377
|
/* @__PURE__ */ e(H, { className: "h-3 w-3 animate-spin text-muted-foreground" }),
|
|
1378
1378
|
/* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground", children: "Loading..." })
|
|
1379
1379
|
] }) : /* @__PURE__ */ e(
|
|
1380
|
-
|
|
1380
|
+
Zs,
|
|
1381
1381
|
{
|
|
1382
1382
|
value: Ge || "Untitled Dashboard",
|
|
1383
1383
|
onSave: (d) => {
|
|
@@ -1393,7 +1393,7 @@ function Ya() {
|
|
|
1393
1393
|
displayClassName: "text-sm font-medium",
|
|
1394
1394
|
inputClassName: "text-sm font-medium",
|
|
1395
1395
|
placeholder: "Dashboard Title",
|
|
1396
|
-
isPending:
|
|
1396
|
+
isPending: Y.isPending
|
|
1397
1397
|
}
|
|
1398
1398
|
))
|
|
1399
1399
|
] }),
|
|
@@ -1406,7 +1406,7 @@ function Ya() {
|
|
|
1406
1406
|
V,
|
|
1407
1407
|
{
|
|
1408
1408
|
tooltip: "Invalidate Token",
|
|
1409
|
-
onClick: () =>
|
|
1409
|
+
onClick: () => Ys(n.apiServiceUrl),
|
|
1410
1410
|
className: "h-7 p-2",
|
|
1411
1411
|
children: /* @__PURE__ */ e(ma, { className: "h-4 w-4" })
|
|
1412
1412
|
}
|
|
@@ -1419,10 +1419,10 @@ function Ya() {
|
|
|
1419
1419
|
tooltip: "Manage Groups",
|
|
1420
1420
|
onClick: () => O(!0),
|
|
1421
1421
|
className: "h-7 p-2",
|
|
1422
|
-
children: /* @__PURE__ */ e(
|
|
1422
|
+
children: /* @__PURE__ */ e(_, { className: "h-4 w-4" })
|
|
1423
1423
|
}
|
|
1424
1424
|
),
|
|
1425
|
-
!N && o && ((Ue =
|
|
1425
|
+
!N && o && ((Ue = j == null ? void 0 : j.permissions) == null ? void 0 : Ue.canShare) && /* @__PURE__ */ e(
|
|
1426
1426
|
V,
|
|
1427
1427
|
{
|
|
1428
1428
|
tooltip: "Share Dashboard",
|
|
@@ -1452,7 +1452,7 @@ function Ya() {
|
|
|
1452
1452
|
onClick: fs,
|
|
1453
1453
|
size: "sm",
|
|
1454
1454
|
children: [
|
|
1455
|
-
/* @__PURE__ */ e(
|
|
1455
|
+
/* @__PURE__ */ e($e, { className: "mr-2 h-4 w-4" }),
|
|
1456
1456
|
"Save Lens"
|
|
1457
1457
|
]
|
|
1458
1458
|
}
|
|
@@ -1492,7 +1492,7 @@ function Ya() {
|
|
|
1492
1492
|
onClick: gs,
|
|
1493
1493
|
size: "sm",
|
|
1494
1494
|
children: [
|
|
1495
|
-
pe ? /* @__PURE__ */ e(H, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(
|
|
1495
|
+
pe ? /* @__PURE__ */ e(H, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e($e, { className: "mr-2 h-4 w-4" }),
|
|
1496
1496
|
pe ? "Saving..." : "Save"
|
|
1497
1497
|
]
|
|
1498
1498
|
}
|
|
@@ -1531,7 +1531,7 @@ function Ya() {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
),
|
|
1533
1533
|
/* @__PURE__ */ e(
|
|
1534
|
-
|
|
1534
|
+
ja,
|
|
1535
1535
|
{
|
|
1536
1536
|
open: P,
|
|
1537
1537
|
onOpenChange: O
|
|
@@ -1543,5 +1543,5 @@ function Ya() {
|
|
|
1543
1543
|
);
|
|
1544
1544
|
}
|
|
1545
1545
|
export {
|
|
1546
|
-
|
|
1546
|
+
Za as default
|
|
1547
1547
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-WFJ2bdm0.js"),f=require("react");require("react-dom");const O=require("./schedule-dashboard-DlYi6cPQ.js"),ne=require("./editor-action-buttons-CJ1R-8qC.js");function Ce(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const D=Ce(f);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-WFJ2bdm0.js");require("react");require("react-dom");function i(){const o=a.useDashboardStore(e=>e.dashboard),r=a.useDashboardStore(e=>e.actions.setDashboard),t=a.useDashboardStore(e=>e.showDashboardJSON),n=a.useDashboardStore(e=>e.actions.setShowDashboardJSON);return s.jsxs("div",{className:a.cn("relative p-2",{hidden:!t}),children:[s.jsxs(a.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>n(!1),children:[s.jsx(a.X,{className:"mr-2 h-4 w-4"}),"Close"]}),s.jsx(a.de,{onChange:e=>{if(e)try{JSON.parse(e),r(JSON.parse(e))}catch{}},defaultLanguage:"json",className:"h-[550px] overflow-y-auto",value:JSON.stringify(o,null,2),options:{minimap:{enabled:!1},glyphMargin:!1,wordWrap:"on",scrollbar:{verticalScrollbarSize:0,horizontalScrollbarSize:0},fontSize:12,renderLineHighlight:"none"}})]})}exports.default=i;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { u as s, c as l, B as h, X as d, d as c } from "./index-
|
|
2
|
+
import { u as s, c as l, B as h, X as d, d as c } from "./index-Bf4pgVkQ.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
function N() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-WFJ2bdm0.js"),A=require("react"),Je=require("./editor-action-buttons-CJ1R-8qC.js"),et=require("react-dom"),st=require("./use-visual-utils-DlurLDVv.js"),tt=require("./use-click-outside-B9T3lmcw.js");function at(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const Ue=at(A);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|