react-semaphor 0.1.1 → 0.1.3
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-plus-BDQLhRLH.js → dashboard-plus-CZRz_vg0.js} +4 -4
- package/dist/chunks/{dashboard-plus-CuVaDeqE.js → dashboard-plus-rKN821bl.js} +235 -235
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as q } from "react/jsx-runtime";
|
|
2
|
-
import { c as ce, a1 as js, u as J, a2 as wt, a3 as St, B as z, a4 as kt, a5 as Be, a6 as $s, _ as ht, a7 as qe, a8 as st, a9 as kl, aa as Ge, ab as nt, ac as lt, ad as rt, ae as ft, af as U, ag as Ie, ah as Dt, I as ge, ai as Gs, aj as
|
|
2
|
+
import { c as ce, a1 as js, u as J, a2 as wt, a3 as St, B as z, a4 as kt, a5 as Be, a6 as $s, _ as ht, a7 as qe, a8 as st, a9 as kl, aa as Ge, ab as nt, ac as lt, ad as rt, ae as ft, af as U, ag as Ie, ah as Dt, I as ge, ai as Gs, aj as Qt, ak as ci, al as qn, am as Ys, f as B, an as Bs, ao as di, ap as Dl, aq as ui, ar as mi, as as ua, at as de, w as Kn, au as hi, av as pi, aw as Ht, ax as je, ay as le, az as Ae, aA as bt, aB as Ve, aC as Na, aD as ta, aE as ya, aF as fi, aG as aa, aH as Tt, aI as Qe, aJ as He, aK as Aa, aL as et, aM as Me, aN as Je, aO as qs, aP as Qa, aQ as ma, aR as jt, aS as sa, aT as Ks, aU as Ws, aV as gi, aW as Ia, aX as Js, aY as Qs, aZ as Hs, a_ as Xs, R as Ot, a$ as Tl, b0 as vi, b1 as Zs, b2 as Oa, b3 as en, b4 as tn, b5 as ba, b6 as Ca, b7 as wa, b8 as an, b9 as rs, ba as sn, bb as El, bc as Ml, bd as nn, be as me, bf as he, bg as pe, bh as fe, bi as H, bj as Al, bk as Il, bl as xi, bm as Ni, bn as Rt, bo as yi, bp as bi, bq as Ft, br as Pt, bs as ze, bt as ct, bu as yt, $ as A, bv as Et, bw as is, bx as os, by as ln, bz as Ci, bA as ut, bB as As, bC as $t, bD as Is, bE as Ol, bF as Rl, bG as wi, bH as rn, bI as on, bJ as cn, bK as dn, bL as un, bM as mn, bN as hn, bO as pn, bP as Si, bQ as cs, bR as Ra, a0 as re, bS as ki, bT as Ct, bU as Di, o as na, bV as Fl, bW as Ke, bX as Ti, bY as fn, bZ as Ha, b_ as gn, b$ as qa, c0 as Fa, c1 as vn, c2 as Ei, c3 as Mi, c4 as Ai, c5 as Ii, c6 as Oi, v as Ri, c7 as Xa, c8 as Pl, c9 as Fi, ca as Pi, cb as Os, cc as Li, cd as Ka, ce as Wa, cf as ds, W as Pa, A as Wn, Q as Jn, K as Ll, J as zl, y as Vt, z as zi, G as Vi, T as _i, cg as Qn, ch as Hn, ci as us, cj as ms, ck as hs, cl as ot, cm as La, cn as Ui, co as Za, cp as Ut, cq as Vl, cr as ps, cs as _l, ct as mt, cu as ke, cv as De, cw as Te, cx as Da, cy as Ul, cz as jl, cA as za, g as Gt, cB as Xn, cC as ji, cD as Rs, cE as $l, cF as xn, cG as Gl, cH as Ta, cI as Zn, cJ as $i, cK as Gi, cL as Yi, cM as Yl, cN as Bi, cO as qi, cP as Bl, cQ as Ki, cR as fs, cS as Wi, cT as Ji, cU as Fs, cV as Xt, cW as at, cX as Zt, cY as Qi, cZ as Hi, c_ as gs, c$ as Xi, d0 as Nn, d1 as Zi, d2 as ql, d3 as yn, d4 as eo, d5 as Kl, d6 as Ja, d7 as Wl, d8 as to, d9 as ao, da as so, db as bn, dc as no, dd as lo, de as el, df as ro, E as Va, b as Cn, dg as io, dh as oo, di as co, dj as wn, dk as uo, dl as mo, dm as ho, dn as Jl, dp as Sn, dq as Ql, dr as Hl, ds as Xl, dt as Zl, du as er, dv as kn, dw as Dn, dx as tr, dy as ar, dz as sr, dA as Tn, dB as vs, dC as xs, dD as po, P as Yt, e as Bt, dE as fo, dF as Kt, dG as go, dH as vo, dI as xo, dJ as No, dK as yo, dL as bo, dM as nr, dN as dt, dO as Ea, dP as es, dQ as _t, h as la, dR as Co, dS as wo, dT as So, dU as ko, dV as Do, dW as lr, dX as To, i as Ns, j as ys, k as bs, l as Cs, m as da, n as _a, dY as Eo, dZ as pt, d_ as ja, d$ as tl, e0 as Mo, e1 as al, e2 as Ao, e3 as Io, e4 as Oo, e5 as Ro, e6 as sl, e7 as Fo, e8 as Po, e9 as Lo, ea as zo, eb as Vo, O as nl, ec as ll, ed as _o, ee as Uo, ef as rr, eg as jo, eh as ir, ei as $o, ej as Go, ek as Yo, el as Bo, em as qo, en as Ko, eo as Wo, ep as Jo, eq as Qo, er as Ho, es as Xo, et as Zo, eu as ec, ev as tc, ew as ac, ex as sc, ey as or, ez as ks, eA as En, eB as nc, eC as lc, eD as rc, eE as ic, eF as ha, eG as pa, eH as oc, eI as cr, eJ as Ps, eK as cc, eL as dc, eM as uc, eN as ts, eO as Wt, eP as Ls, eQ as zs, eR as as, eS as dr, eT as fa, eU as ga, eV as Mn, eW as mc, eX as hc, eY as pc, eZ as fc, e_ as gc, e$ as vc, f0 as xc, f1 as Nc, f2 as yc, f3 as Ds, f4 as bc, f5 as Cc, f6 as wc, F as ur, f7 as Sc, f8 as kc, f9 as Dc, fa as mr, fb as hr, fc as Tc, fd as pr, fe as Ec, ff as Mc, fg as Ac, fh as Ic, fi as Oc, S as Rc, fj as Fc, U as Pc, fk as Lc, C as zc } from "./index-opTTQPdi.js";
|
|
3
3
|
import * as Vs from "react";
|
|
4
4
|
import $e, { useState as V, useRef as xt, useEffect as Ne, useMemo as We, useCallback as Ce, useContext as An, Suspense as fr } from "react";
|
|
5
5
|
import { createPortal as Vc } from "react-dom";
|
|
@@ -259,7 +259,7 @@ const Hc = ce("Glasses", [
|
|
|
259
259
|
* This source code is licensed under the ISC license.
|
|
260
260
|
* See the LICENSE file in the root directory of this source tree.
|
|
261
261
|
*/
|
|
262
|
-
const
|
|
262
|
+
const ws = ce("Grid3x3", [
|
|
263
263
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
264
264
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
265
265
|
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
@@ -458,7 +458,7 @@ const od = ce("PanelLeft", [
|
|
|
458
458
|
* This source code is licensed under the ISC license.
|
|
459
459
|
* See the LICENSE file in the root directory of this source tree.
|
|
460
460
|
*/
|
|
461
|
-
const
|
|
461
|
+
const ss = ce("PenLine", [
|
|
462
462
|
["path", { d: "M12 20h9", key: "t2du7b" }],
|
|
463
463
|
[
|
|
464
464
|
"path",
|
|
@@ -529,7 +529,7 @@ const Ma = ce("Shapes", [
|
|
|
529
529
|
* This source code is licensed under the ISC license.
|
|
530
530
|
* See the LICENSE file in the root directory of this source tree.
|
|
531
531
|
*/
|
|
532
|
-
const
|
|
532
|
+
const Jt = ce("Share2", [
|
|
533
533
|
["circle", { cx: "18", cy: "5", r: "3", key: "gq8acd" }],
|
|
534
534
|
["circle", { cx: "6", cy: "12", r: "3", key: "w7nqdw" }],
|
|
535
535
|
["circle", { cx: "18", cy: "19", r: "3", key: "1xt0gg" }],
|
|
@@ -681,7 +681,7 @@ const yr = ce("ToggleLeft", [
|
|
|
681
681
|
* This source code is licensed under the ISC license.
|
|
682
682
|
* See the LICENSE file in the root directory of this source tree.
|
|
683
683
|
*/
|
|
684
|
-
const
|
|
684
|
+
const ns = ce("Type", [
|
|
685
685
|
["polyline", { points: "4 7 4 4 20 4 20 7", key: "1nosan" }],
|
|
686
686
|
["line", { x1: "9", x2: "15", y1: "20", y2: "20", key: "swin9y" }],
|
|
687
687
|
["line", { x1: "12", x2: "12", y1: "4", y2: "20", key: "1tx1rr" }]
|
|
@@ -944,7 +944,7 @@ function Sd() {
|
|
|
944
944
|
/* @__PURE__ */ e(St, { asChild: !0, children: /* @__PURE__ */ e(ge, { tooltip: "Lenses", className: "h-7 p-2", children: /* @__PURE__ */ e(Hc, { className: "h-4 w-4" }) }) }),
|
|
945
945
|
/* @__PURE__ */ a(kt, { align: "end", className: "w-60", children: [
|
|
946
946
|
/* @__PURE__ */ e(Gs, { className: "px-3", children: "Lenses" }),
|
|
947
|
-
/* @__PURE__ */ e(
|
|
947
|
+
/* @__PURE__ */ e(Qt, {}),
|
|
948
948
|
/* @__PURE__ */ a(
|
|
949
949
|
ci,
|
|
950
950
|
{
|
|
@@ -1144,13 +1144,13 @@ function Dd({
|
|
|
1144
1144
|
)
|
|
1145
1145
|
] }) : null;
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function ls({
|
|
1148
1148
|
value: t,
|
|
1149
1149
|
onChange: n,
|
|
1150
1150
|
placeholder: s = "Search users by name, email, or department..."
|
|
1151
1151
|
}) {
|
|
1152
1152
|
return /* @__PURE__ */ a("div", { className: "relative", children: [
|
|
1153
|
-
/* @__PURE__ */ e(
|
|
1153
|
+
/* @__PURE__ */ e(Ht, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
1154
1154
|
/* @__PURE__ */ e(
|
|
1155
1155
|
je,
|
|
1156
1156
|
{
|
|
@@ -1162,7 +1162,7 @@ function rs({
|
|
|
1162
1162
|
)
|
|
1163
1163
|
] });
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function ea({
|
|
1166
1166
|
currentRole: t,
|
|
1167
1167
|
onRoleChange: n,
|
|
1168
1168
|
roleOptions: s,
|
|
@@ -1227,7 +1227,7 @@ function br({
|
|
|
1227
1227
|
return /* @__PURE__ */ a(le, { variant: "secondary", className: "gap-1", children: [
|
|
1228
1228
|
i.name,
|
|
1229
1229
|
/* @__PURE__ */ e(
|
|
1230
|
-
|
|
1230
|
+
ea,
|
|
1231
1231
|
{
|
|
1232
1232
|
currentRole: (c == null ? void 0 : c.role) || "VIEWER",
|
|
1233
1233
|
onRoleChange: (d) => l(i.id, d),
|
|
@@ -1396,7 +1396,7 @@ function Ad({
|
|
|
1396
1396
|
(h) => h.id === t.id
|
|
1397
1397
|
), u = d ? d.newRole : n == null ? void 0 : n.role, m = r(t.type);
|
|
1398
1398
|
return n ? /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: c ? /* @__PURE__ */ e(
|
|
1399
|
-
|
|
1399
|
+
ea,
|
|
1400
1400
|
{
|
|
1401
1401
|
currentRole: u,
|
|
1402
1402
|
onRoleChange: (h) => {
|
|
@@ -1444,7 +1444,7 @@ function Id({
|
|
|
1444
1444
|
variant: "outline",
|
|
1445
1445
|
className: "border-blue-200 bg-blue-50 text-xs text-blue-700",
|
|
1446
1446
|
children: [
|
|
1447
|
-
/* @__PURE__ */ e(
|
|
1447
|
+
/* @__PURE__ */ e(Jt, { className: "mr-1 h-3 w-3" }),
|
|
1448
1448
|
"Will Share"
|
|
1449
1449
|
]
|
|
1450
1450
|
}
|
|
@@ -1852,7 +1852,7 @@ function Pd({
|
|
|
1852
1852
|
] }),
|
|
1853
1853
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
1854
1854
|
l && !s ? /* @__PURE__ */ e(
|
|
1855
|
-
|
|
1855
|
+
ea,
|
|
1856
1856
|
{
|
|
1857
1857
|
currentRole: n == null ? void 0 : n.role,
|
|
1858
1858
|
onRoleChange: (N) => p(t.id, n.role, N),
|
|
@@ -1872,7 +1872,7 @@ function Pd({
|
|
|
1872
1872
|
}
|
|
1873
1873
|
),
|
|
1874
1874
|
i && !r && /* @__PURE__ */ e("div", { onClick: (N) => N.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1875
|
-
|
|
1875
|
+
ea,
|
|
1876
1876
|
{
|
|
1877
1877
|
currentRole: (c == null ? void 0 : c.role) || "VIEWER",
|
|
1878
1878
|
onRoleChange: (N) => v(t.id, N),
|
|
@@ -1919,7 +1919,7 @@ function Dr({
|
|
|
1919
1919
|
handleRemoveAccess: d,
|
|
1920
1920
|
handleUpdateAccess: u
|
|
1921
1921
|
}) {
|
|
1922
|
-
const m = Na(), h =
|
|
1922
|
+
const m = Na(), h = ta(), p = ya(), v = fi(), N = aa(), f = c || ((w) => {
|
|
1923
1923
|
const D = m.some((C) => C.id === w), g = h.includes(w);
|
|
1924
1924
|
D ? N.removeSelectedUser(w) : g ? N.removeUserFromRemove(w) : N.addSelectedUser({ id: w, role: "VIEWER" });
|
|
1925
1925
|
}), b = o || N.updateSelectedUserRole, y = d || N.addUserToRemove, S = u || ((w, D, g) => {
|
|
@@ -2090,7 +2090,7 @@ function Ld({
|
|
|
2090
2090
|
l(m, S);
|
|
2091
2091
|
};
|
|
2092
2092
|
return /* @__PURE__ */ e("div", { className: "space-y-4", children: /* @__PURE__ */ a(
|
|
2093
|
-
|
|
2093
|
+
sa,
|
|
2094
2094
|
{
|
|
2095
2095
|
className: B(
|
|
2096
2096
|
"pb-6",
|
|
@@ -2263,7 +2263,7 @@ function zd({
|
|
|
2263
2263
|
isRemoving: c = !1
|
|
2264
2264
|
}) {
|
|
2265
2265
|
var G, se;
|
|
2266
|
-
const o = Zs(), d = Oa(), { searchQuery: u, setSearchQuery: m, debouncedSearchQuery: h } = en(), p = Na(), v =
|
|
2266
|
+
const o = Zs(), d = Oa(), { searchQuery: u, setSearchQuery: m, debouncedSearchQuery: h } = en(), p = Na(), v = ta(), N = ya(), f = jt(), b = tn(), y = aa(), [S, I] = $e.useState("specific_users"), E = () => {
|
|
2267
2267
|
if (o === "org") return "organization";
|
|
2268
2268
|
if (o === "tenant") return "tenant";
|
|
2269
2269
|
}, w = () => {
|
|
@@ -2348,7 +2348,7 @@ function zd({
|
|
|
2348
2348
|
}
|
|
2349
2349
|
),
|
|
2350
2350
|
S === "specific_users" ? /* @__PURE__ */ a("div", { className: "mt-3 space-y-2", children: [
|
|
2351
|
-
/* @__PURE__ */ e(
|
|
2351
|
+
/* @__PURE__ */ e(ls, { value: u, onChange: m }),
|
|
2352
2352
|
/* @__PURE__ */ e(
|
|
2353
2353
|
br,
|
|
2354
2354
|
{
|
|
@@ -2448,7 +2448,7 @@ function Er({
|
|
|
2448
2448
|
handleRemoveAccess: d,
|
|
2449
2449
|
handleUpdateAccess: u
|
|
2450
2450
|
}) {
|
|
2451
|
-
const m = ba(), h = Ca(), p = wa(), v =
|
|
2451
|
+
const m = ba(), h = Ca(), p = wa(), v = aa(), N = r(i == null ? void 0 : i.type);
|
|
2452
2452
|
return s ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center py-6", children: /* @__PURE__ */ e(Me, { className: "h-6 w-6 animate-spin" }) }) : t.length === 0 ? /* @__PURE__ */ e("div", { className: "py-6 text-center text-sm text-muted-foreground", children: "No groups available to share with" }) : /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
2453
2453
|
/* @__PURE__ */ e(U, { children: "Available Groups" }),
|
|
2454
2454
|
/* @__PURE__ */ e("div", { className: "max-h-[300px] space-y-2 overflow-y-auto rounded-md border p-3", children: t.map((f) => {
|
|
@@ -2514,7 +2514,7 @@ function Er({
|
|
|
2514
2514
|
] }),
|
|
2515
2515
|
/* @__PURE__ */ a("div", { className: "flex items-center space-x-2", children: [
|
|
2516
2516
|
E && !S ? /* @__PURE__ */ e(
|
|
2517
|
-
|
|
2517
|
+
ea,
|
|
2518
2518
|
{
|
|
2519
2519
|
currentRole: D,
|
|
2520
2520
|
onRoleChange: (g) => {
|
|
@@ -2528,7 +2528,7 @@ function Er({
|
|
|
2528
2528
|
) : (
|
|
2529
2529
|
/* Show role selector for newly selected groups */
|
|
2530
2530
|
y && !E && /* @__PURE__ */ e(
|
|
2531
|
-
|
|
2531
|
+
ea,
|
|
2532
2532
|
{
|
|
2533
2533
|
currentRole: D,
|
|
2534
2534
|
onRoleChange: (g) => o == null ? void 0 : o(f.id, g),
|
|
@@ -2609,7 +2609,7 @@ function Mr({
|
|
|
2609
2609
|
] }),
|
|
2610
2610
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
2611
2611
|
/* @__PURE__ */ e(
|
|
2612
|
-
|
|
2612
|
+
ea,
|
|
2613
2613
|
{
|
|
2614
2614
|
currentRole: c.role,
|
|
2615
2615
|
onRoleChange: (d) => l(c.id, d),
|
|
@@ -2644,7 +2644,7 @@ function dl({
|
|
|
2644
2644
|
isRemoving: c = !1
|
|
2645
2645
|
}) {
|
|
2646
2646
|
var K;
|
|
2647
|
-
const { searchQuery: o, debouncedSearchQuery: d, setSearchQuery: u } = en(), m = Na(), h =
|
|
2647
|
+
const { searchQuery: o, debouncedSearchQuery: d, setSearchQuery: u } = en(), m = Na(), h = ta(), p = ya(), v = ba(), N = Ca(), f = wa(), b = jt(), y = rs(), S = sn(), I = Oa(), E = aa(), { data: w, isLoading: D } = El({
|
|
2648
2648
|
enabled: (s == null ? void 0 : s.type) === "organization"
|
|
2649
2649
|
}), { groups: g, isLoading: C } = Ml(
|
|
2650
2650
|
"tenant",
|
|
@@ -2827,7 +2827,7 @@ function dl({
|
|
|
2827
2827
|
] }),
|
|
2828
2828
|
X() ? /* @__PURE__ */ e(q, { children: x === "specific_tenant_users" ? /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
2829
2829
|
/* @__PURE__ */ e(
|
|
2830
|
-
|
|
2830
|
+
ls,
|
|
2831
2831
|
{
|
|
2832
2832
|
value: o,
|
|
2833
2833
|
onChange: u
|
|
@@ -2880,7 +2880,7 @@ function dl({
|
|
|
2880
2880
|
)
|
|
2881
2881
|
] }) : x === "groups" ? /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
2882
2882
|
/* @__PURE__ */ e(
|
|
2883
|
-
|
|
2883
|
+
ls,
|
|
2884
2884
|
{
|
|
2885
2885
|
value: o,
|
|
2886
2886
|
onChange: u,
|
|
@@ -2964,7 +2964,7 @@ function Ud({
|
|
|
2964
2964
|
isRemoving: c = !1
|
|
2965
2965
|
}) {
|
|
2966
2966
|
var L, F;
|
|
2967
|
-
const { searchQuery: o, setSearchQuery: d } = en(), u = ba(), m = Ca(), h = wa(), p =
|
|
2967
|
+
const { searchQuery: o, setSearchQuery: d } = en(), u = ba(), m = Ca(), h = wa(), p = aa(), [v, N] = $e.useState("org_groups"), [f, b] = $e.useState(""), { data: y, isLoading: S } = El({
|
|
2968
2968
|
enabled: (s == null ? void 0 : s.type) === "organization" && v === "tenant_groups"
|
|
2969
2969
|
}), I = Array.isArray(y) ? y : (y == null ? void 0 : y.tenants) || [], E = () => {
|
|
2970
2970
|
if ((s == null ? void 0 : s.type) === "organization") return "organization";
|
|
@@ -3052,7 +3052,7 @@ function Ud({
|
|
|
3052
3052
|
] }),
|
|
3053
3053
|
/* @__PURE__ */ e("div", { className: "mt-3 space-y-2", children: v === "tenant_groups" && (s == null ? void 0 : s.type) === "organization" && !f ? /* @__PURE__ */ e("div", { className: "rounded-md border border-dashed p-6 text-center", children: /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Please select a tenant above to view and share with its groups" }) }) : /* @__PURE__ */ a(q, { children: [
|
|
3054
3054
|
/* @__PURE__ */ e(
|
|
3055
|
-
|
|
3055
|
+
ls,
|
|
3056
3056
|
{
|
|
3057
3057
|
value: o,
|
|
3058
3058
|
onChange: d,
|
|
@@ -3104,7 +3104,7 @@ function Ud({
|
|
|
3104
3104
|
] }) : null;
|
|
3105
3105
|
}
|
|
3106
3106
|
const Ar = () => {
|
|
3107
|
-
const t = Al(), n = jt(), s = Na(), l =
|
|
3107
|
+
const t = Al(), n = jt(), s = Na(), l = ta(), r = ya(), i = ba(), c = Ca(), o = wa(), d = Oa(), u = tn(), m = sn(), h = rs(), p = Il(), v = We(() => () => xi({
|
|
3108
3108
|
currentContext: t,
|
|
3109
3109
|
currentMode: n,
|
|
3110
3110
|
selectedUsers: s,
|
|
@@ -3187,7 +3187,7 @@ function ul({
|
|
|
3187
3187
|
currentAllUsersShare: d,
|
|
3188
3188
|
onRemoveAccess: u
|
|
3189
3189
|
}) {
|
|
3190
|
-
const m = Na(), h =
|
|
3190
|
+
const m = Na(), h = ta(), p = ya(), v = Oa(), N = tn(), f = sn(), b = rs(), { buildShareData: y, validateShareData: S, isCurrentStateValid: I } = Ar(), E = s || l || r, w = () => {
|
|
3191
3191
|
var R, T, P, k;
|
|
3192
3192
|
if (E) return "Updating...";
|
|
3193
3193
|
if (o === "specific_users") {
|
|
@@ -3321,7 +3321,7 @@ function ul({
|
|
|
3321
3321
|
E ? /* @__PURE__ */ a(q, { children: [
|
|
3322
3322
|
/* @__PURE__ */ e(Me, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
3323
3323
|
"Updating..."
|
|
3324
|
-
] }) : /* @__PURE__ */ e(
|
|
3324
|
+
] }) : /* @__PURE__ */ e(Jt, { className: "mr-2 h-4 w-4" }),
|
|
3325
3325
|
!E && w()
|
|
3326
3326
|
]
|
|
3327
3327
|
}
|
|
@@ -3353,9 +3353,9 @@ function jd({
|
|
|
3353
3353
|
shareTabType: c,
|
|
3354
3354
|
currentAllUsersShare: o
|
|
3355
3355
|
}) {
|
|
3356
|
-
const d = Na(), u =
|
|
3356
|
+
const d = Na(), u = ta(), m = ya(), h = ba(), p = Ca(), v = wa();
|
|
3357
3357
|
jt(), Al();
|
|
3358
|
-
const N =
|
|
3358
|
+
const N = rs();
|
|
3359
3359
|
Oa();
|
|
3360
3360
|
const { buildShareData: f, validateShareData: b, isCurrentStateValid: y } = Ar(), S = n || s || l, I = () => {
|
|
3361
3361
|
if (S) return "Updating...";
|
|
@@ -3424,7 +3424,7 @@ function jd({
|
|
|
3424
3424
|
S ? /* @__PURE__ */ a(q, { children: [
|
|
3425
3425
|
/* @__PURE__ */ e(Me, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
3426
3426
|
"Updating..."
|
|
3427
|
-
] }) : /* @__PURE__ */ e(
|
|
3427
|
+
] }) : /* @__PURE__ */ e(Jt, { className: "mr-2 h-4 w-4" }),
|
|
3428
3428
|
!S && I()
|
|
3429
3429
|
]
|
|
3430
3430
|
}
|
|
@@ -3439,7 +3439,7 @@ function jd({
|
|
|
3439
3439
|
S ? /* @__PURE__ */ a(q, { children: [
|
|
3440
3440
|
/* @__PURE__ */ e(Me, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
3441
3441
|
"Updating..."
|
|
3442
|
-
] }) : /* @__PURE__ */ e(
|
|
3442
|
+
] }) : /* @__PURE__ */ e(Jt, { className: "mr-2 h-4 w-4" }),
|
|
3443
3443
|
!S && I()
|
|
3444
3444
|
]
|
|
3445
3445
|
}
|
|
@@ -3454,7 +3454,7 @@ function jd({
|
|
|
3454
3454
|
S ? /* @__PURE__ */ a(q, { children: [
|
|
3455
3455
|
/* @__PURE__ */ e(Me, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
3456
3456
|
"Updating..."
|
|
3457
|
-
] }) : /* @__PURE__ */ e(
|
|
3457
|
+
] }) : /* @__PURE__ */ e(Jt, { className: "mr-2 h-4 w-4" }),
|
|
3458
3458
|
!S && I()
|
|
3459
3459
|
]
|
|
3460
3460
|
}
|
|
@@ -3951,7 +3951,7 @@ function Yd(t, n, s, l) {
|
|
|
3951
3951
|
}
|
|
3952
3952
|
}
|
|
3953
3953
|
function Bd(t, n, s) {
|
|
3954
|
-
const l =
|
|
3954
|
+
const l = aa(), r = ta(), i = Zs(), c = jt(), { currentUser: o } = Rt(), { existingShares: d } = xa({
|
|
3955
3955
|
debouncedSearchQuery: "",
|
|
3956
3956
|
resourceId: t || "",
|
|
3957
3957
|
resourceType: Ot.DASHBOARD,
|
|
@@ -4022,7 +4022,7 @@ function Rn({
|
|
|
4022
4022
|
onRemoveSuccess: r
|
|
4023
4023
|
}) {
|
|
4024
4024
|
var k, M, O, L, F, _, j, te;
|
|
4025
|
-
const { currentUser: i } = Rt(), [c, o] = $e.useState("specific_users"), [d, u] = $e.useState("specific_users"), [m, h] = $e.useState("specific_groups"), p =
|
|
4025
|
+
const { currentUser: i } = Rt(), [c, o] = $e.useState("specific_users"), [d, u] = $e.useState("specific_users"), [m, h] = $e.useState("specific_groups"), p = aa(), v = Zs(), N = jt(), f = yi(), b = bi(), { handleShareSubmit: y, handleRemoveAccess: S } = Bd(
|
|
4026
4026
|
t.id,
|
|
4027
4027
|
(Z, G) => {
|
|
4028
4028
|
f.mutate(Z, {
|
|
@@ -4071,7 +4071,7 @@ function Rn({
|
|
|
4071
4071
|
return /* @__PURE__ */ e(st, { open: !0, onOpenChange: T, children: /* @__PURE__ */ a(nt, { className: "z-[51] flex max-h-[80vh] max-w-3xl flex-col", children: [
|
|
4072
4072
|
/* @__PURE__ */ a(lt, { children: [
|
|
4073
4073
|
/* @__PURE__ */ e(rt, { children: /* @__PURE__ */ a("span", { className: "flex items-center gap-2", children: [
|
|
4074
|
-
/* @__PURE__ */ e(
|
|
4074
|
+
/* @__PURE__ */ e(Jt, { className: "h-5 w-5" }),
|
|
4075
4075
|
' Share "',
|
|
4076
4076
|
t == null ? void 0 : t.title,
|
|
4077
4077
|
'"'
|
|
@@ -4279,7 +4279,7 @@ function qd({
|
|
|
4279
4279
|
}
|
|
4280
4280
|
const Kd = async (t, n, s) => {
|
|
4281
4281
|
const l = `${t}/management/v1/groups`;
|
|
4282
|
-
return await
|
|
4282
|
+
return await os(l, n, s);
|
|
4283
4283
|
}, Wd = async (t, n, s) => {
|
|
4284
4284
|
const l = `${t}/management/v1/groups/${s}`, r = await fetch(l, {
|
|
4285
4285
|
method: "DELETE",
|
|
@@ -4293,7 +4293,7 @@ const Kd = async (t, n, s) => {
|
|
|
4293
4293
|
}
|
|
4294
4294
|
}, Jd = async (t, n, s, l) => {
|
|
4295
4295
|
const r = `${t}/management/v1/groups/${s}/members`;
|
|
4296
|
-
return await
|
|
4296
|
+
return await os(r, n, l);
|
|
4297
4297
|
}, Qd = async (t, n, s, l) => {
|
|
4298
4298
|
const r = `${t}/management/v1/groups/${s}/members`, i = await fetch(r, {
|
|
4299
4299
|
method: "DELETE",
|
|
@@ -4310,7 +4310,7 @@ const Kd = async (t, n, s) => {
|
|
|
4310
4310
|
};
|
|
4311
4311
|
function Hd() {
|
|
4312
4312
|
const { authToken: t, tokenProps: n } = qe(), s = Et();
|
|
4313
|
-
return
|
|
4313
|
+
return is({
|
|
4314
4314
|
mutationFn: (l) => Kd(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", l),
|
|
4315
4315
|
onSuccess: () => {
|
|
4316
4316
|
s.invalidateQueries({ queryKey: ["groups"] }), de.success("Group created successfully");
|
|
@@ -4324,7 +4324,7 @@ function Hd() {
|
|
|
4324
4324
|
}
|
|
4325
4325
|
function Xd() {
|
|
4326
4326
|
const { authToken: t, tokenProps: n } = qe(), s = Et();
|
|
4327
|
-
return
|
|
4327
|
+
return is({
|
|
4328
4328
|
mutationFn: (l) => Wd(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", l),
|
|
4329
4329
|
onSuccess: (l, r) => {
|
|
4330
4330
|
s.invalidateQueries({ queryKey: ["groups"] }), s.removeQueries({ queryKey: ["group", r] }), de.success("Group deleted successfully");
|
|
@@ -4338,7 +4338,7 @@ function Xd() {
|
|
|
4338
4338
|
}
|
|
4339
4339
|
function Zd() {
|
|
4340
4340
|
const { authToken: t, tokenProps: n } = qe(), s = Et();
|
|
4341
|
-
return
|
|
4341
|
+
return is({
|
|
4342
4342
|
mutationFn: ({
|
|
4343
4343
|
groupId: l,
|
|
4344
4344
|
data: r
|
|
@@ -4357,7 +4357,7 @@ function Zd() {
|
|
|
4357
4357
|
}
|
|
4358
4358
|
function eu() {
|
|
4359
4359
|
const { authToken: t, tokenProps: n } = qe(), s = Et();
|
|
4360
|
-
return
|
|
4360
|
+
return is({
|
|
4361
4361
|
mutationFn: ({
|
|
4362
4362
|
groupId: l,
|
|
4363
4363
|
data: r
|
|
@@ -4564,7 +4564,7 @@ function au({
|
|
|
4564
4564
|
] }),
|
|
4565
4565
|
/* @__PURE__ */ a(ct, { value: "members", className: "mt-4 space-y-4", children: [
|
|
4566
4566
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
4567
|
-
/* @__PURE__ */ e(
|
|
4567
|
+
/* @__PURE__ */ e(Ht, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
4568
4568
|
/* @__PURE__ */ e(
|
|
4569
4569
|
Ie,
|
|
4570
4570
|
{
|
|
@@ -4575,7 +4575,7 @@ function au({
|
|
|
4575
4575
|
}
|
|
4576
4576
|
)
|
|
4577
4577
|
] }),
|
|
4578
|
-
/* @__PURE__ */ e(ut, { className: m.length > 0 ? "h-[300px]" : "h-[350px]", children: v ? /* @__PURE__ */ e("div", { className: "space-y-2", children: [1, 2, 3].map((k) => /* @__PURE__ */ e(
|
|
4578
|
+
/* @__PURE__ */ e(ut, { className: m.length > 0 ? "h-[300px]" : "h-[350px]", children: v ? /* @__PURE__ */ e("div", { className: "space-y-2", children: [1, 2, 3].map((k) => /* @__PURE__ */ e(As, { className: "h-16 w-full" }, k)) }) : C.length === 0 ? /* @__PURE__ */ a("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
4579
4579
|
/* @__PURE__ */ e(Ve, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
4580
4580
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: c ? "No members found" : "No members yet" }),
|
|
4581
4581
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: c ? "Try a different search" : 'Switch to the "Add Members" tab to add people to this group' })
|
|
@@ -4615,7 +4615,7 @@ function au({
|
|
|
4615
4615
|
] }),
|
|
4616
4616
|
/* @__PURE__ */ a(ct, { value: "add", className: "mt-4 space-y-4", children: [
|
|
4617
4617
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
4618
|
-
/* @__PURE__ */ e(
|
|
4618
|
+
/* @__PURE__ */ e(Ht, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
4619
4619
|
/* @__PURE__ */ e(
|
|
4620
4620
|
Ie,
|
|
4621
4621
|
{
|
|
@@ -4626,8 +4626,8 @@ function au({
|
|
|
4626
4626
|
}
|
|
4627
4627
|
)
|
|
4628
4628
|
] }),
|
|
4629
|
-
/* @__PURE__ */ e(ut, { className: "h-[300px]", children: y ? /* @__PURE__ */ e("div", { className: "space-y-2", children: [1, 2, 3].map((k) => /* @__PURE__ */ e(
|
|
4630
|
-
/* @__PURE__ */ e(
|
|
4629
|
+
/* @__PURE__ */ e(ut, { className: "h-[300px]", children: y ? /* @__PURE__ */ e("div", { className: "space-y-2", children: [1, 2, 3].map((k) => /* @__PURE__ */ e(As, { className: "h-16 w-full" }, k)) }) : g.length === 0 ? /* @__PURE__ */ a("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
4630
|
+
/* @__PURE__ */ e(Is, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
4631
4631
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No available users" }),
|
|
4632
4632
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: c ? "Try a different search" : "All eligible users are already members" })
|
|
4633
4633
|
] }) : /* @__PURE__ */ e("div", { className: "space-y-2", children: g.map((k) => /* @__PURE__ */ e(
|
|
@@ -4655,7 +4655,7 @@ function au({
|
|
|
4655
4655
|
/* @__PURE__ */ e(Me, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
4656
4656
|
"Adding..."
|
|
4657
4657
|
] }) : /* @__PURE__ */ a(q, { children: [
|
|
4658
|
-
/* @__PURE__ */ e(
|
|
4658
|
+
/* @__PURE__ */ e(Is, { className: "mr-2 h-4 w-4" }),
|
|
4659
4659
|
"Add Members"
|
|
4660
4660
|
] })
|
|
4661
4661
|
}
|
|
@@ -4758,7 +4758,7 @@ function lu({
|
|
|
4758
4758
|
] }),
|
|
4759
4759
|
/* @__PURE__ */ e(ct, { value: "groups", className: "mt-4", children: /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
4760
4760
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
4761
|
-
/* @__PURE__ */ e(
|
|
4761
|
+
/* @__PURE__ */ e(Ht, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
4762
4762
|
/* @__PURE__ */ e(
|
|
4763
4763
|
Ie,
|
|
4764
4764
|
{
|
|
@@ -4769,7 +4769,7 @@ function lu({
|
|
|
4769
4769
|
}
|
|
4770
4770
|
)
|
|
4771
4771
|
] }),
|
|
4772
|
-
/* @__PURE__ */ e(ut, { className: "h-[400px]", children: S ? /* @__PURE__ */ e("div", { className: "space-y-3", children: [1, 2, 3].map((C) => /* @__PURE__ */ e(
|
|
4772
|
+
/* @__PURE__ */ e(ut, { className: "h-[400px]", children: S ? /* @__PURE__ */ e("div", { className: "space-y-3", children: [1, 2, 3].map((C) => /* @__PURE__ */ e(As, { className: "h-24 w-full" }, C)) }) : E.length === 0 ? /* @__PURE__ */ a("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
4773
4773
|
/* @__PURE__ */ e(Ve, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
4774
4774
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No groups found" }),
|
|
4775
4775
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: r ? "Try a different search" : "Create your first group to get started" })
|
|
@@ -4871,7 +4871,7 @@ function ru({
|
|
|
4871
4871
|
size: "sm",
|
|
4872
4872
|
onClick: n,
|
|
4873
4873
|
title: "Manage members",
|
|
4874
|
-
children: /* @__PURE__ */ e(
|
|
4874
|
+
children: /* @__PURE__ */ e(Is, { className: "h-4 w-4" })
|
|
4875
4875
|
}
|
|
4876
4876
|
),
|
|
4877
4877
|
r && /* @__PURE__ */ e(
|
|
@@ -5071,8 +5071,8 @@ function du() {
|
|
|
5071
5071
|
m
|
|
5072
5072
|
]) };
|
|
5073
5073
|
}
|
|
5074
|
-
function
|
|
5075
|
-
const { authToken: t, tokenProps: n } = qe(), s = Et(), l =
|
|
5074
|
+
function ra() {
|
|
5075
|
+
const { authToken: t, tokenProps: n } = qe(), s = Et(), l = cs(), { selectVisual: r } = Ra(), {
|
|
5076
5076
|
setFrame: i,
|
|
5077
5077
|
setCard: c,
|
|
5078
5078
|
setIsDevMode: o,
|
|
@@ -5356,7 +5356,7 @@ function mu({
|
|
|
5356
5356
|
), A((d) => d.selectedTableName), A(
|
|
5357
5357
|
(d) => d.selectedConnectionId
|
|
5358
5358
|
), A((d) => d.isShowingVisual), l.sql;
|
|
5359
|
-
const r = A((d) => d.onSave), { getUpdatedFrame: i } =
|
|
5359
|
+
const r = A((d) => d.onSave), { getUpdatedFrame: i } = ra();
|
|
5360
5360
|
function c() {
|
|
5361
5361
|
const d = i();
|
|
5362
5362
|
r == null || r(d);
|
|
@@ -5369,7 +5369,7 @@ function mu({
|
|
|
5369
5369
|
size: "sm",
|
|
5370
5370
|
variant: n,
|
|
5371
5371
|
children: [
|
|
5372
|
-
/* @__PURE__ */ e(
|
|
5372
|
+
/* @__PURE__ */ e(na, { className: "mr-2 size-4 font-bold" }),
|
|
5373
5373
|
"Accept"
|
|
5374
5374
|
]
|
|
5375
5375
|
}
|
|
@@ -5381,7 +5381,7 @@ function hu({
|
|
|
5381
5381
|
}) {
|
|
5382
5382
|
const s = Et(), [l, r] = V(!1), i = J(
|
|
5383
5383
|
(p) => p.actions.setIsDashboardPanelOpen
|
|
5384
|
-
), { setIsVisualEditing: c } = ht(), { getUpdatedFrame: o } =
|
|
5384
|
+
), { setIsVisualEditing: c } = ht(), { getUpdatedFrame: o } = ra(), d = cs(), u = A((p) => p.frame), m = Fl();
|
|
5385
5385
|
return /* @__PURE__ */ a(
|
|
5386
5386
|
z,
|
|
5387
5387
|
{
|
|
@@ -5430,7 +5430,7 @@ function hu({
|
|
|
5430
5430
|
function pu({
|
|
5431
5431
|
className: t
|
|
5432
5432
|
}) {
|
|
5433
|
-
const n = Et(), [s, l] = V(!1), r =
|
|
5433
|
+
const n = Et(), [s, l] = V(!1), r = cs(), i = A((p) => p.frame), c = J((p) => p.selectedSheetId), { updateFrame: o, setIsVisualEditing: d } = ht(), { getUpdatedFrame: u } = ra(), m = Fl();
|
|
5434
5434
|
return /* @__PURE__ */ e(
|
|
5435
5435
|
z,
|
|
5436
5436
|
{
|
|
@@ -5482,7 +5482,7 @@ function pu({
|
|
|
5482
5482
|
);
|
|
5483
5483
|
}
|
|
5484
5484
|
function fu({ className: t }) {
|
|
5485
|
-
const { getUpdatedFrame: n } =
|
|
5485
|
+
const { getUpdatedFrame: n } = ra();
|
|
5486
5486
|
A((d) => d.frame);
|
|
5487
5487
|
const s = J((d) => d.selectedSheetId), { updateFrame: l, setIsVisualEditing: r } = ht(), [i, c] = V(!1);
|
|
5488
5488
|
return /* @__PURE__ */ a(
|
|
@@ -5512,7 +5512,7 @@ function fu({ className: t }) {
|
|
|
5512
5512
|
" Applying"
|
|
5513
5513
|
] }),
|
|
5514
5514
|
!i && /* @__PURE__ */ a(q, { children: [
|
|
5515
|
-
/* @__PURE__ */ e(
|
|
5515
|
+
/* @__PURE__ */ e(na, { className: "mr-2 size-4 font-bold" }),
|
|
5516
5516
|
"Apply Locally"
|
|
5517
5517
|
] })
|
|
5518
5518
|
]
|
|
@@ -5578,9 +5578,9 @@ function Pn() {
|
|
|
5578
5578
|
);
|
|
5579
5579
|
}
|
|
5580
5580
|
function vu() {
|
|
5581
|
-
const [t, n] = V(!1), [s, l] = V(!1), [r, i] = V(null), c = A((E) => E.frame), o = A((E) => E.card), d =
|
|
5581
|
+
const [t, n] = V(!1), [s, l] = V(!1), [r, i] = V(null), c = A((E) => E.frame), o = A((E) => E.card), d = cs(), u = J((E) => E.selectedSheetId), m = J(
|
|
5582
5582
|
(E) => E.actions.setIsDashboardPanelOpen
|
|
5583
|
-
), { getUpdatedFrame: h } =
|
|
5583
|
+
), { getUpdatedFrame: h } = ra(), { selectVisual: p } = Ra(), { addFrame: v, setSelectedFrameId: N, setIsVisualEditing: f } = ht(), b = !!(c != null && c.visualId), y = (d == null ? void 0 : d.title) || (o == null ? void 0 : o.title) || "Untitled Visual", S = Ti((E) => {
|
|
5584
5584
|
if (E != null && E.id) {
|
|
5585
5585
|
if (p(E), s && r && u) {
|
|
5586
5586
|
const w = {
|
|
@@ -5641,7 +5641,7 @@ function xu({
|
|
|
5641
5641
|
isLibraryVisual: v,
|
|
5642
5642
|
currentVisualName: N,
|
|
5643
5643
|
isSaving: f
|
|
5644
|
-
} = vu(), { handleAddLibraryVisual: b } =
|
|
5644
|
+
} = vu(), { handleAddLibraryVisual: b } = ra(), y = async () => {
|
|
5645
5645
|
if (!i) {
|
|
5646
5646
|
de.error("No dashboard sheet selected");
|
|
5647
5647
|
return;
|
|
@@ -5679,7 +5679,7 @@ function xu({
|
|
|
5679
5679
|
variant: "outline",
|
|
5680
5680
|
size: "sm",
|
|
5681
5681
|
className: B(t, "w-8 p-0"),
|
|
5682
|
-
children: /* @__PURE__ */ e(
|
|
5682
|
+
children: /* @__PURE__ */ e(Ha, { className: "h-4 w-4" })
|
|
5683
5683
|
}
|
|
5684
5684
|
) }),
|
|
5685
5685
|
/* @__PURE__ */ e(kt, { align: "end", children: /* @__PURE__ */ a(
|
|
@@ -5703,7 +5703,7 @@ function xu({
|
|
|
5703
5703
|
variant: "outline",
|
|
5704
5704
|
size: "sm",
|
|
5705
5705
|
className: B(t, "w-8 p-0"),
|
|
5706
|
-
children: /* @__PURE__ */ e(
|
|
5706
|
+
children: /* @__PURE__ */ e(Ha, { className: "h-4 w-4" })
|
|
5707
5707
|
}
|
|
5708
5708
|
) }),
|
|
5709
5709
|
/* @__PURE__ */ e(kt, { align: "end", children: /* @__PURE__ */ a(Be, { onClick: () => h(!0), children: [
|
|
@@ -5906,7 +5906,7 @@ function yu() {
|
|
|
5906
5906
|
tooltip: "Share Dashboard",
|
|
5907
5907
|
onClick: () => f(!0),
|
|
5908
5908
|
className: "h-7 p-2",
|
|
5909
|
-
children: /* @__PURE__ */ e(
|
|
5909
|
+
children: /* @__PURE__ */ e(Jt, { className: "h-4 w-4" })
|
|
5910
5910
|
}
|
|
5911
5911
|
),
|
|
5912
5912
|
!T && !w && h && i.canUseFilters && c && /* @__PURE__ */ e(
|
|
@@ -5916,7 +5916,7 @@ function yu() {
|
|
|
5916
5916
|
variant: "outline",
|
|
5917
5917
|
onClick: () => M(!0),
|
|
5918
5918
|
size: "sm",
|
|
5919
|
-
children: /* @__PURE__ */ e(
|
|
5919
|
+
children: /* @__PURE__ */ e(Xa, { className: "h-4 w-4" })
|
|
5920
5920
|
}
|
|
5921
5921
|
),
|
|
5922
5922
|
h && !w && ee && l && c && /* @__PURE__ */ e(wd, {}),
|
|
@@ -6326,7 +6326,7 @@ function $a(t) {
|
|
|
6326
6326
|
return `${t}-${Ct()}`;
|
|
6327
6327
|
}
|
|
6328
6328
|
function hl(t, n) {
|
|
6329
|
-
const s =
|
|
6329
|
+
const s = ds(t.replace(/_/g, " "));
|
|
6330
6330
|
switch (n) {
|
|
6331
6331
|
case "SUM":
|
|
6332
6332
|
return `Sum of ${s}`;
|
|
@@ -6345,7 +6345,7 @@ function hl(t, n) {
|
|
|
6345
6345
|
}
|
|
6346
6346
|
}
|
|
6347
6347
|
function bu(t, n) {
|
|
6348
|
-
const s =
|
|
6348
|
+
const s = ds(t.replace(/_/g, " "));
|
|
6349
6349
|
switch (n) {
|
|
6350
6350
|
case "day":
|
|
6351
6351
|
return `Date of ${s}`;
|
|
@@ -6637,7 +6637,7 @@ function Cu({ column: t }) {
|
|
|
6637
6637
|
] });
|
|
6638
6638
|
}
|
|
6639
6639
|
return N ? /* @__PURE__ */ a(Js, { openDelay: 0, open: n, onOpenChange: s, children: [
|
|
6640
|
-
/* @__PURE__ */ e(Qs, { asChild: !0, children: /* @__PURE__ */ e(
|
|
6640
|
+
/* @__PURE__ */ e(Qs, { asChild: !0, children: /* @__PURE__ */ e(Ha, { className: "invisible size-3.5 cursor-pointer text-foreground/40 group-hover/container:visible" }) }),
|
|
6641
6641
|
/* @__PURE__ */ e(
|
|
6642
6642
|
Hs,
|
|
6643
6643
|
{
|
|
@@ -6669,7 +6669,7 @@ function Su({ field: t, context: n = "editor" }) {
|
|
|
6669
6669
|
transform: m,
|
|
6670
6670
|
transition: h,
|
|
6671
6671
|
isDragging: p
|
|
6672
|
-
} =
|
|
6672
|
+
} = us({
|
|
6673
6673
|
id: t.id,
|
|
6674
6674
|
disabled: s || l
|
|
6675
6675
|
// Disable drag in dev mode and filter context
|
|
@@ -6689,11 +6689,11 @@ function Su({ field: t, context: n = "editor" }) {
|
|
|
6689
6689
|
label: t.label,
|
|
6690
6690
|
description: t.description
|
|
6691
6691
|
}, w = {
|
|
6692
|
-
transform:
|
|
6692
|
+
transform: ms.Transform.toString(m),
|
|
6693
6693
|
transition: h
|
|
6694
6694
|
}, D = (g) => {
|
|
6695
6695
|
const C = (g || "").toLowerCase(), x = ot(C);
|
|
6696
|
-
return x === "string" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-blue-100 text-xs text-blue-700 dark:bg-blue-950 dark:text-blue-300", children: /* @__PURE__ */ e(
|
|
6696
|
+
return x === "string" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-blue-100 text-xs text-blue-700 dark:bg-blue-950 dark:text-blue-300", children: /* @__PURE__ */ e(ns, { className: "h-3 w-3" }) }) : x === "number" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-green-100 text-xs text-green-700 dark:bg-green-950 dark:text-green-300", children: /* @__PURE__ */ e(In, { className: "h-3 w-3" }) }) : x === "date" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-purple-100 text-xs text-purple-700 dark:bg-purple-950 dark:text-purple-300", children: /* @__PURE__ */ e(hs, { className: "h-3 w-3" }) }) : x === "boolean" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-orange-100 text-xs text-orange-700 dark:bg-orange-950 dark:text-orange-300", children: /* @__PURE__ */ e(yr, { className: "h-3 w-3" }) }) : x === "json" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-gray-100 text-xs text-gray-700 dark:bg-gray-950 dark:text-gray-300", children: /* @__PURE__ */ e(vr, { className: "h-3 w-3" }) }) : x === "geo" ? /* @__PURE__ */ e("div", { className: "bg-orange -100 flex size-6 shrink-0 items-center justify-center rounded-sm text-xs text-orange-700 dark:bg-orange-950 dark:text-orange-300", children: /* @__PURE__ */ e(nd, { className: "h-3 w-3" }) }) : x === "calculated" ? /* @__PURE__ */ e("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-gray-100 text-xs text-gray-700 dark:bg-gray-950 dark:text-gray-300", children: /* @__PURE__ */ e(gr, { className: "h-3 w-3" }) }) : null;
|
|
6697
6697
|
};
|
|
6698
6698
|
return /* @__PURE__ */ a(
|
|
6699
6699
|
"div",
|
|
@@ -6765,7 +6765,7 @@ function Su({ field: t, context: n = "editor" }) {
|
|
|
6765
6765
|
// </Badge>
|
|
6766
6766
|
// </div>
|
|
6767
6767
|
// </div>
|
|
6768
|
-
/* @__PURE__ */ e("div", { className: "text-muted-foreground-700 px-2 pb-3 text-sm", children: /* @__PURE__ */ e(
|
|
6768
|
+
/* @__PURE__ */ e("div", { className: "text-muted-foreground-700 px-2 pb-3 text-sm", children: /* @__PURE__ */ e(sa, { className: "", children: /* @__PURE__ */ a(Ia, { className: "space-y-2 p-3", children: [
|
|
6769
6769
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
6770
6770
|
/* @__PURE__ */ e(Nr, { className: "h-4 w-4 text-muted-foreground" }),
|
|
6771
6771
|
/* @__PURE__ */ e("span", { className: "break-all", children: t.label || t.name })
|
|
@@ -6808,7 +6808,7 @@ function ku({ context: t = "editor" } = {}) {
|
|
|
6808
6808
|
).length, w = v.filter(
|
|
6809
6809
|
(g) => N(g) === "calculated"
|
|
6810
6810
|
).length, D = v.length > 0;
|
|
6811
|
-
return u ? /* @__PURE__ */ e("div", { className: "flex h-[calc(100vh-200px)] w-[290px] flex-col items-center justify-center", children: /* @__PURE__ */ e(
|
|
6811
|
+
return u ? /* @__PURE__ */ e("div", { className: "flex h-[calc(100vh-200px)] w-[290px] flex-col items-center justify-center", children: /* @__PURE__ */ e(Za, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : m ? /* @__PURE__ */ a("div", { className: "flex h-[calc(100vh-200px)] w-[290px] flex-col items-center justify-center", children: [
|
|
6812
6812
|
/* @__PURE__ */ e(Ut, { className: "mb-4 h-12 w-12 text-red-300" }),
|
|
6813
6813
|
/* @__PURE__ */ e("p", { className: "mb-2 text-sm text-red-500", children: "Error loading fields" }),
|
|
6814
6814
|
/* @__PURE__ */ e("p", { className: "px-4 text-center text-xs text-red-400", children: m.message || "Failed to load column data" })
|
|
@@ -6849,7 +6849,7 @@ function ku({ context: t = "editor" } = {}) {
|
|
|
6849
6849
|
)
|
|
6850
6850
|
] }),
|
|
6851
6851
|
o.length > 0 && /* @__PURE__ */ a("div", { className: "relative mb-4", children: [
|
|
6852
|
-
/* @__PURE__ */ e(
|
|
6852
|
+
/* @__PURE__ */ e(Ht, { className: "absolute left-3 top-1/2 size-3.5 -translate-y-1/2 transform text-muted-foreground" }),
|
|
6853
6853
|
/* @__PURE__ */ e(
|
|
6854
6854
|
je,
|
|
6855
6855
|
{
|
|
@@ -6887,7 +6887,7 @@ function ku({ context: t = "editor" } = {}) {
|
|
|
6887
6887
|
/* @__PURE__ */ e("span", { className: "ml-2 text-xs font-semibold", children: I })
|
|
6888
6888
|
] }),
|
|
6889
6889
|
/* @__PURE__ */ a(ze, { value: "metrics", className: "text-xs", children: [
|
|
6890
|
-
/* @__PURE__ */ e(
|
|
6890
|
+
/* @__PURE__ */ e(ps, { className: "size-4 shrink-0" }),
|
|
6891
6891
|
/* @__PURE__ */ e("span", { className: "ml-2 text-xs font-semibold", children: E })
|
|
6892
6892
|
] }),
|
|
6893
6893
|
/* @__PURE__ */ a(ze, { value: "calculated", className: "text-xs", children: [
|
|
@@ -7342,7 +7342,7 @@ function Tu({
|
|
|
7342
7342
|
), k = n.find(
|
|
7343
7343
|
(O) => O.name === T.target.name
|
|
7344
7344
|
), M = d.has(T.id);
|
|
7345
|
-
return /* @__PURE__ */ a(
|
|
7345
|
+
return /* @__PURE__ */ a(sa, { className: "border", children: [
|
|
7346
7346
|
/* @__PURE__ */ e(Ks, { className: "pb-3", children: /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
7347
7347
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
7348
7348
|
/* @__PURE__ */ e(le, { children: T.sequence }),
|
|
@@ -8673,7 +8673,7 @@ function Pu() {
|
|
|
8673
8673
|
return /* @__PURE__ */ a("div", { className: "relative h-full w-full", children: [
|
|
8674
8674
|
!t && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute left-[65px] top-3 z-10 font-mono text-sm text-muted-foreground", children: "Write your SQL here" }),
|
|
8675
8675
|
/* @__PURE__ */ e(
|
|
8676
|
-
|
|
8676
|
+
fs,
|
|
8677
8677
|
{
|
|
8678
8678
|
theme: "default",
|
|
8679
8679
|
className: "pt-3",
|
|
@@ -8703,7 +8703,7 @@ function Lu() {
|
|
|
8703
8703
|
n(r);
|
|
8704
8704
|
}
|
|
8705
8705
|
return /* @__PURE__ */ e(
|
|
8706
|
-
|
|
8706
|
+
fs,
|
|
8707
8707
|
{
|
|
8708
8708
|
className: "pt-3",
|
|
8709
8709
|
theme: "default",
|
|
@@ -8728,7 +8728,7 @@ function Lu() {
|
|
|
8728
8728
|
}
|
|
8729
8729
|
function zu({ jsonString: t }) {
|
|
8730
8730
|
return /* @__PURE__ */ e(
|
|
8731
|
-
|
|
8731
|
+
fs,
|
|
8732
8732
|
{
|
|
8733
8733
|
theme: "default",
|
|
8734
8734
|
defaultLanguage: "json",
|
|
@@ -8866,14 +8866,14 @@ ${u}` : ""}
|
|
|
8866
8866
|
variant: "ghost",
|
|
8867
8867
|
onClick: () => i(!r),
|
|
8868
8868
|
className: "absolute bottom-0 right-6 size-7 p-1",
|
|
8869
|
-
children: r ? /* @__PURE__ */ e(Ae, { className: "size-3.5 text-muted-foreground" }) : /* @__PURE__ */ e(
|
|
8869
|
+
children: r ? /* @__PURE__ */ e(Ae, { className: "size-3.5 text-muted-foreground" }) : /* @__PURE__ */ e(Xa, { className: "size-3.5 text-muted-foreground" })
|
|
8870
8870
|
}
|
|
8871
8871
|
)
|
|
8872
8872
|
] });
|
|
8873
8873
|
}
|
|
8874
8874
|
function te() {
|
|
8875
8875
|
return /* @__PURE__ */ a(
|
|
8876
|
-
|
|
8876
|
+
Xt,
|
|
8877
8877
|
{
|
|
8878
8878
|
className: "flex grow pb-1",
|
|
8879
8879
|
direction: "vertical",
|
|
@@ -8900,7 +8900,7 @@ ${u}` : ""}
|
|
|
8900
8900
|
}
|
|
8901
8901
|
),
|
|
8902
8902
|
s && /* @__PURE__ */ a(q, { children: [
|
|
8903
|
-
/* @__PURE__ */ e(
|
|
8903
|
+
/* @__PURE__ */ e(Zt, { withHandle: !0, className: "border" }),
|
|
8904
8904
|
/* @__PURE__ */ a(
|
|
8905
8905
|
at,
|
|
8906
8906
|
{
|
|
@@ -9004,9 +9004,9 @@ ${u}` : ""}
|
|
|
9004
9004
|
);
|
|
9005
9005
|
}
|
|
9006
9006
|
const _u = [
|
|
9007
|
-
{ value: "table", label: "Table", icon:
|
|
9007
|
+
{ value: "table", label: "Table", icon: gs },
|
|
9008
9008
|
{ value: "aggregateTable", label: "Aggregate", icon: Vl },
|
|
9009
|
-
{ value: "pivotTable", label: "Pivot", icon:
|
|
9009
|
+
{ value: "pivotTable", label: "Pivot", icon: ws }
|
|
9010
9010
|
];
|
|
9011
9011
|
function Uu({ className: t }) {
|
|
9012
9012
|
const n = A((d) => d.card), { setCardType: s, setCard: l, updateCardInFrame: r } = re(), i = ["table", "aggregateTable", "pivotTable"].includes(
|
|
@@ -9220,7 +9220,7 @@ function jr({
|
|
|
9220
9220
|
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "No results to display" })
|
|
9221
9221
|
] });
|
|
9222
9222
|
if ((h || p) && s.type !== "table")
|
|
9223
|
-
return /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(
|
|
9223
|
+
return /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Za, { size: "md", color: "muted", "aria-label": "Loading data" }) });
|
|
9224
9224
|
if (!s.id) return null;
|
|
9225
9225
|
if (s.type === "custom")
|
|
9226
9226
|
return D(s);
|
|
@@ -9289,7 +9289,7 @@ function jr({
|
|
|
9289
9289
|
) });
|
|
9290
9290
|
}
|
|
9291
9291
|
return /* @__PURE__ */ a(
|
|
9292
|
-
|
|
9292
|
+
sa,
|
|
9293
9293
|
{
|
|
9294
9294
|
role: "editor-visual-card",
|
|
9295
9295
|
className: B("relative flex h-full flex-col rounded-none", t),
|
|
@@ -9343,13 +9343,13 @@ function jr({
|
|
|
9343
9343
|
}
|
|
9344
9344
|
);
|
|
9345
9345
|
}
|
|
9346
|
-
const
|
|
9346
|
+
const Ts = ({
|
|
9347
9347
|
language: t,
|
|
9348
9348
|
value: n,
|
|
9349
9349
|
onChange: s,
|
|
9350
9350
|
readonly: l
|
|
9351
9351
|
}) => /* @__PURE__ */ e(
|
|
9352
|
-
|
|
9352
|
+
fs,
|
|
9353
9353
|
{
|
|
9354
9354
|
className: "h-full w-full overflow-hidden text-xs",
|
|
9355
9355
|
theme: "default",
|
|
@@ -9402,7 +9402,7 @@ const Es = ({
|
|
|
9402
9402
|
value: "final-config",
|
|
9403
9403
|
className: "mt-0 grow rounded-b border border-t-0",
|
|
9404
9404
|
children: /* @__PURE__ */ e(
|
|
9405
|
-
|
|
9405
|
+
Ts,
|
|
9406
9406
|
{
|
|
9407
9407
|
language: "json",
|
|
9408
9408
|
value: s,
|
|
@@ -9417,7 +9417,7 @@ const Es = ({
|
|
|
9417
9417
|
value: "custom-config",
|
|
9418
9418
|
className: "mt-0 grow rounded-b border border-t-0",
|
|
9419
9419
|
children: /* @__PURE__ */ e(
|
|
9420
|
-
|
|
9420
|
+
Ts,
|
|
9421
9421
|
{
|
|
9422
9422
|
readonly: !0,
|
|
9423
9423
|
language: "json",
|
|
@@ -9434,7 +9434,7 @@ const Es = ({
|
|
|
9434
9434
|
value: "custom-code",
|
|
9435
9435
|
className: "mt-0 grow rounded-b border border-t-0",
|
|
9436
9436
|
children: /* @__PURE__ */ e(
|
|
9437
|
-
|
|
9437
|
+
Ts,
|
|
9438
9438
|
{
|
|
9439
9439
|
language: "javascript",
|
|
9440
9440
|
value: t,
|
|
@@ -9544,7 +9544,7 @@ function Bu() {
|
|
|
9544
9544
|
] })
|
|
9545
9545
|
] });
|
|
9546
9546
|
}
|
|
9547
|
-
function
|
|
9547
|
+
function Ss(t) {
|
|
9548
9548
|
const [n, s] = V(null);
|
|
9549
9549
|
return n;
|
|
9550
9550
|
}
|
|
@@ -9645,7 +9645,7 @@ const Ku = ({
|
|
|
9645
9645
|
icon: n,
|
|
9646
9646
|
onClick: s
|
|
9647
9647
|
}) => {
|
|
9648
|
-
const l =
|
|
9648
|
+
const l = Ss(), r = t.charAt(0).toUpperCase();
|
|
9649
9649
|
return /* @__PURE__ */ e(ge, { onClick: s, tooltip: t, children: l ? /* @__PURE__ */ e(l, { className: "h-4 w-4" }) : r });
|
|
9650
9650
|
};
|
|
9651
9651
|
function Wu({
|
|
@@ -9667,7 +9667,7 @@ function Wu({
|
|
|
9667
9667
|
tooltip: "Table",
|
|
9668
9668
|
onClick: () => d("table"),
|
|
9669
9669
|
className: "h-10 p-4",
|
|
9670
|
-
children: /* @__PURE__ */ e(
|
|
9670
|
+
children: /* @__PURE__ */ e(gs, { className: B("size-5", n) })
|
|
9671
9671
|
}
|
|
9672
9672
|
),
|
|
9673
9673
|
/* @__PURE__ */ e(
|
|
@@ -9677,7 +9677,7 @@ function Wu({
|
|
|
9677
9677
|
tooltip: "Bar Chart",
|
|
9678
9678
|
onClick: () => d("bar"),
|
|
9679
9679
|
className: "h-10 p-4",
|
|
9680
|
-
children: /* @__PURE__ */ e(
|
|
9680
|
+
children: /* @__PURE__ */ e(xs, { className: B("size-5", n) })
|
|
9681
9681
|
}
|
|
9682
9682
|
),
|
|
9683
9683
|
/* @__PURE__ */ e(
|
|
@@ -9687,7 +9687,7 @@ function Wu({
|
|
|
9687
9687
|
tooltip: "Line Chart",
|
|
9688
9688
|
onClick: () => d("line"),
|
|
9689
9689
|
className: "h-10 p-4",
|
|
9690
|
-
children: /* @__PURE__ */ e(
|
|
9690
|
+
children: /* @__PURE__ */ e(vs, { className: B("size-5", n) })
|
|
9691
9691
|
}
|
|
9692
9692
|
),
|
|
9693
9693
|
/* @__PURE__ */ e(
|
|
@@ -9852,12 +9852,12 @@ function Ju({
|
|
|
9852
9852
|
customIcon: s,
|
|
9853
9853
|
componentName: l
|
|
9854
9854
|
}) {
|
|
9855
|
-
const r =
|
|
9855
|
+
const r = Ss();
|
|
9856
9856
|
switch (t) {
|
|
9857
9857
|
case "bar":
|
|
9858
|
-
return /* @__PURE__ */ e(Ns, { className: n });
|
|
9859
|
-
case "line":
|
|
9860
9858
|
return /* @__PURE__ */ e(xs, { className: n });
|
|
9859
|
+
case "line":
|
|
9860
|
+
return /* @__PURE__ */ e(vs, { className: n });
|
|
9861
9861
|
case "pie":
|
|
9862
9862
|
return /* @__PURE__ */ e(Tn, { className: n });
|
|
9863
9863
|
case "radar":
|
|
@@ -9884,13 +9884,13 @@ function Ju({
|
|
|
9884
9884
|
case "kpi":
|
|
9885
9885
|
return /* @__PURE__ */ e(Sn, { className: n });
|
|
9886
9886
|
case "text":
|
|
9887
|
-
return /* @__PURE__ */ e(
|
|
9887
|
+
return /* @__PURE__ */ e(ns, { className: n });
|
|
9888
9888
|
case "map":
|
|
9889
9889
|
return /* @__PURE__ */ e(Jl, { className: n });
|
|
9890
9890
|
case "custom":
|
|
9891
9891
|
return s && r ? /* @__PURE__ */ e(r, { className: n }) : l ? l == null ? void 0 : l.charAt(0).toUpperCase() : /* @__PURE__ */ e(Ma, { className: n });
|
|
9892
9892
|
default:
|
|
9893
|
-
return /* @__PURE__ */ e(
|
|
9893
|
+
return /* @__PURE__ */ e(gs, { className: n });
|
|
9894
9894
|
}
|
|
9895
9895
|
}
|
|
9896
9896
|
function Yr({
|
|
@@ -10053,7 +10053,7 @@ function Xu({
|
|
|
10053
10053
|
) }),
|
|
10054
10054
|
/* @__PURE__ */ a(kt, { align: "end", className: "w-64", children: [
|
|
10055
10055
|
/* @__PURE__ */ e(Gs, { children: "Display Options" }),
|
|
10056
|
-
/* @__PURE__ */ e(
|
|
10056
|
+
/* @__PURE__ */ e(Qt, {}),
|
|
10057
10057
|
/* @__PURE__ */ e("div", { className: "px-2 py-1.5", children: /* @__PURE__ */ e("p", { className: "mb-2 text-xs text-muted-foreground", children: "Changes apply to dashboard view only" }) }),
|
|
10058
10058
|
/* @__PURE__ */ a(
|
|
10059
10059
|
Kt,
|
|
@@ -10152,7 +10152,7 @@ function Br() {
|
|
|
10152
10152
|
"text",
|
|
10153
10153
|
"map"
|
|
10154
10154
|
].includes(t.type) && /* @__PURE__ */ a(ge, { tooltip: "Grid Style", onClick: r, children: [
|
|
10155
|
-
(s === "xy" || !s) && /* @__PURE__ */ e(
|
|
10155
|
+
(s === "xy" || !s) && /* @__PURE__ */ e(ws, { className: "size-4" }),
|
|
10156
10156
|
s === "x" && /* @__PURE__ */ e(Gc, { className: "size-4" }),
|
|
10157
10157
|
s === "y" && /* @__PURE__ */ e(cd, { className: "size-4" }),
|
|
10158
10158
|
s === "none" && /* @__PURE__ */ e(hd, { className: "size-4" })
|
|
@@ -10320,14 +10320,14 @@ function qr() {
|
|
|
10320
10320
|
y.sql && d(!0), c(y);
|
|
10321
10321
|
}
|
|
10322
10322
|
function N() {
|
|
10323
|
-
return n.type === "kpi" ? m || h ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(
|
|
10323
|
+
return n.type === "kpi" ? m || h ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Za, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border border-border", children: /* @__PURE__ */ e(
|
|
10324
10324
|
vo,
|
|
10325
10325
|
{
|
|
10326
10326
|
card: n,
|
|
10327
10327
|
data: u == null ? void 0 : u.records,
|
|
10328
10328
|
isPending: m || h
|
|
10329
10329
|
}
|
|
10330
|
-
) }) }) : n.type === "text" ? m || h ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(
|
|
10330
|
+
) }) }) : n.type === "text" ? m || h ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Za, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e(ut, { className: "mx-3 my-6 h-[300px] overflow-y-auto break-words px-3", children: /* @__PURE__ */ e(
|
|
10331
10331
|
xo,
|
|
10332
10332
|
{
|
|
10333
10333
|
isLoading: s,
|
|
@@ -10476,7 +10476,7 @@ function fl({
|
|
|
10476
10476
|
}
|
|
10477
10477
|
),
|
|
10478
10478
|
l ? /* @__PURE__ */ e(qr, {}) : /* @__PURE__ */ a(
|
|
10479
|
-
|
|
10479
|
+
Xt,
|
|
10480
10480
|
{
|
|
10481
10481
|
className: "px-6",
|
|
10482
10482
|
direction: "horizontal",
|
|
@@ -10493,7 +10493,7 @@ function fl({
|
|
|
10493
10493
|
children: i && /* @__PURE__ */ e(em, {})
|
|
10494
10494
|
}
|
|
10495
10495
|
),
|
|
10496
|
-
/* @__PURE__ */ e(
|
|
10496
|
+
/* @__PURE__ */ e(Zt, {})
|
|
10497
10497
|
] }),
|
|
10498
10498
|
/* @__PURE__ */ a(
|
|
10499
10499
|
at,
|
|
@@ -10578,7 +10578,7 @@ function At({
|
|
|
10578
10578
|
}
|
|
10579
10579
|
),
|
|
10580
10580
|
/* @__PURE__ */ e(fe, { children: /* @__PURE__ */ a(Ea, { children: [
|
|
10581
|
-
/* @__PURE__ */ e(
|
|
10581
|
+
/* @__PURE__ */ e(es, { children: n }),
|
|
10582
10582
|
s.map((d) => /* @__PURE__ */ e(H, { value: d.value, children: d.label }, d.value))
|
|
10583
10583
|
] }) })
|
|
10584
10584
|
]
|
|
@@ -10769,7 +10769,7 @@ function am() {
|
|
|
10769
10769
|
}
|
|
10770
10770
|
);
|
|
10771
10771
|
}
|
|
10772
|
-
function
|
|
10772
|
+
function ia() {
|
|
10773
10773
|
const [t, n] = V([]), s = A((u) => u.card.preferences), { setFilterOnClickColumnIndex: l, setCardPreferences: r } = A(
|
|
10774
10774
|
(u) => u.actions
|
|
10775
10775
|
), i = A(
|
|
@@ -10929,7 +10929,7 @@ function sm({ idx: t }) {
|
|
|
10929
10929
|
}
|
|
10930
10930
|
return /* @__PURE__ */ a(Yt, { children: [
|
|
10931
10931
|
/* @__PURE__ */ e(Bt, { children: /* @__PURE__ */ e(Nr, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
|
|
10932
|
-
/* @__PURE__ */ e(
|
|
10932
|
+
/* @__PURE__ */ e(la, { className: "w-fit px-2 py-1", children: /* @__PURE__ */ a("div", { className: "flex gap-1", children: [
|
|
10933
10933
|
/* @__PURE__ */ e(
|
|
10934
10934
|
"button",
|
|
10935
10935
|
{
|
|
@@ -11114,7 +11114,7 @@ function Jr({
|
|
|
11114
11114
|
r || /* @__PURE__ */ e(Vn, { className: "max-w-[100px]", title: t, children: Wr(t) }),
|
|
11115
11115
|
/* @__PURE__ */ a("div", { className: "flex gap-2", children: [
|
|
11116
11116
|
/* @__PURE__ */ e(
|
|
11117
|
-
|
|
11117
|
+
xs,
|
|
11118
11118
|
{
|
|
11119
11119
|
onClick: () => u("bar"),
|
|
11120
11120
|
className: B(
|
|
@@ -11124,7 +11124,7 @@ function Jr({
|
|
|
11124
11124
|
}
|
|
11125
11125
|
),
|
|
11126
11126
|
/* @__PURE__ */ e(
|
|
11127
|
-
|
|
11127
|
+
vs,
|
|
11128
11128
|
{
|
|
11129
11129
|
onClick: () => u("line"),
|
|
11130
11130
|
className: B(
|
|
@@ -11185,11 +11185,11 @@ function lm({
|
|
|
11185
11185
|
]
|
|
11186
11186
|
}
|
|
11187
11187
|
) }),
|
|
11188
|
-
/* @__PURE__ */ e(
|
|
11189
|
-
/* @__PURE__ */ e(
|
|
11190
|
-
/* @__PURE__ */ a(
|
|
11191
|
-
/* @__PURE__ */ e(
|
|
11192
|
-
/* @__PURE__ */ e(
|
|
11188
|
+
/* @__PURE__ */ e(la, { className: "w-[200px] p-0", children: /* @__PURE__ */ a(Ns, { children: [
|
|
11189
|
+
/* @__PURE__ */ e(ys, { placeholder: "Search column", className: "h-9" }),
|
|
11190
|
+
/* @__PURE__ */ a(bs, { children: [
|
|
11191
|
+
/* @__PURE__ */ e(Cs, { children: "No framework found." }),
|
|
11192
|
+
/* @__PURE__ */ e(da, { children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ a(
|
|
11193
11193
|
_a,
|
|
11194
11194
|
{
|
|
11195
11195
|
value: o.column_name,
|
|
@@ -11252,7 +11252,7 @@ function rm({
|
|
|
11252
11252
|
/* @__PURE__ */ a(ke, { value: "item-3", children: [
|
|
11253
11253
|
/* @__PURE__ */ e(De, { children: "Click Filters" }),
|
|
11254
11254
|
/* @__PURE__ */ a(Te, { className: "space-y-4 px-2", children: [
|
|
11255
|
-
/* @__PURE__ */ e(
|
|
11255
|
+
/* @__PURE__ */ e(ia, {}),
|
|
11256
11256
|
/* @__PURE__ */ e(Sa, {})
|
|
11257
11257
|
] })
|
|
11258
11258
|
] })
|
|
@@ -11295,7 +11295,7 @@ function im({
|
|
|
11295
11295
|
/* @__PURE__ */ a(ke, { value: "item-3", children: [
|
|
11296
11296
|
/* @__PURE__ */ e(De, { children: "Click Filters" }),
|
|
11297
11297
|
/* @__PURE__ */ a(Te, { className: "space-y-4 px-2", children: [
|
|
11298
|
-
/* @__PURE__ */ e(
|
|
11298
|
+
/* @__PURE__ */ e(ia, {}),
|
|
11299
11299
|
/* @__PURE__ */ e(Sa, {})
|
|
11300
11300
|
] })
|
|
11301
11301
|
] })
|
|
@@ -11337,7 +11337,7 @@ function Qr() {
|
|
|
11337
11337
|
children: [
|
|
11338
11338
|
/* @__PURE__ */ e(he, { className: "h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(pe, { placeholder: "Select position" }) }),
|
|
11339
11339
|
/* @__PURE__ */ e(fe, { children: /* @__PURE__ */ a(Ea, { children: [
|
|
11340
|
-
/* @__PURE__ */ e(
|
|
11340
|
+
/* @__PURE__ */ e(es, { children: "Data Labels" }),
|
|
11341
11341
|
/* @__PURE__ */ e(H, { value: "none", children: "None" }),
|
|
11342
11342
|
!["pyramid", "funnel"].includes(t) && /* @__PURE__ */ e(H, { value: "start", children: "Start" }),
|
|
11343
11343
|
/* @__PURE__ */ e(H, { value: "center", children: "Center" }),
|
|
@@ -11407,7 +11407,7 @@ function dm() {
|
|
|
11407
11407
|
),
|
|
11408
11408
|
!["kpi"].includes(t) && /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
11409
11409
|
/* @__PURE__ */ e(Qr, {}),
|
|
11410
|
-
/* @__PURE__ */ e(
|
|
11410
|
+
/* @__PURE__ */ e(ia, {}),
|
|
11411
11411
|
/* @__PURE__ */ e(Sa, {})
|
|
11412
11412
|
] })
|
|
11413
11413
|
] });
|
|
@@ -11666,7 +11666,7 @@ function hm() {
|
|
|
11666
11666
|
children: [
|
|
11667
11667
|
/* @__PURE__ */ e(he, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(pe, {}) }),
|
|
11668
11668
|
/* @__PURE__ */ e(fe, { children: /* @__PURE__ */ a(Ea, { children: [
|
|
11669
|
-
/* @__PURE__ */ e(
|
|
11669
|
+
/* @__PURE__ */ e(es, { children: "Format" }),
|
|
11670
11670
|
/* @__PURE__ */ e(H, { value: "none", children: "Auto" }, "none"),
|
|
11671
11671
|
tl.map((f) => /* @__PURE__ */ e(H, { value: f.locale, children: f.locale }, f.locale))
|
|
11672
11672
|
] }) })
|
|
@@ -11692,7 +11692,7 @@ function hm() {
|
|
|
11692
11692
|
children: [
|
|
11693
11693
|
/* @__PURE__ */ e(he, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(pe, {}) }),
|
|
11694
11694
|
/* @__PURE__ */ e(fe, { children: /* @__PURE__ */ a(Ea, { children: [
|
|
11695
|
-
/* @__PURE__ */ e(
|
|
11695
|
+
/* @__PURE__ */ e(es, { children: "Currency" }),
|
|
11696
11696
|
/* @__PURE__ */ e(H, { value: "none", children: "None" }, "none"),
|
|
11697
11697
|
u.map((f) => /* @__PURE__ */ e(H, { value: f, children: f }, f))
|
|
11698
11698
|
] }) })
|
|
@@ -11788,7 +11788,7 @@ function pm() {
|
|
|
11788
11788
|
/* @__PURE__ */ e("div", {})
|
|
11789
11789
|
] });
|
|
11790
11790
|
}
|
|
11791
|
-
function
|
|
11791
|
+
function Es({
|
|
11792
11792
|
children: t,
|
|
11793
11793
|
summary: n,
|
|
11794
11794
|
open: s,
|
|
@@ -11918,9 +11918,9 @@ function xm() {
|
|
|
11918
11918
|
value: R
|
|
11919
11919
|
})) || [];
|
|
11920
11920
|
return /* @__PURE__ */ a("div", { className: "p-6", children: [
|
|
11921
|
-
/* @__PURE__ */ e(
|
|
11921
|
+
/* @__PURE__ */ e(Es, { summary: "Map Chart", children: /* @__PURE__ */ e("p", { className: "rounded-md bg-muted p-2 font-mono text-xs", children: "SELECT country, value FROM table" }) }),
|
|
11922
11922
|
/* @__PURE__ */ e(bt, { className: "my-4" }),
|
|
11923
|
-
/* @__PURE__ */ e(
|
|
11923
|
+
/* @__PURE__ */ e(Es, { open: !0, summary: "Settings", children: /* @__PURE__ */ a("div", { className: "space-y-3 px-2", children: [
|
|
11924
11924
|
/* @__PURE__ */ e(
|
|
11925
11925
|
At,
|
|
11926
11926
|
{
|
|
@@ -12043,7 +12043,7 @@ function xm() {
|
|
|
12043
12043
|
] })
|
|
12044
12044
|
] }) }),
|
|
12045
12045
|
/* @__PURE__ */ e(bt, { className: "my-4" }),
|
|
12046
|
-
/* @__PURE__ */ e(
|
|
12046
|
+
/* @__PURE__ */ e(Es, { className: "", summary: "Scale Options", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
12047
12047
|
/* @__PURE__ */ e(
|
|
12048
12048
|
Ie,
|
|
12049
12049
|
{
|
|
@@ -12111,7 +12111,7 @@ function xm() {
|
|
|
12111
12111
|
)
|
|
12112
12112
|
] }) }),
|
|
12113
12113
|
/* @__PURE__ */ e(bt, { className: "my-4" }),
|
|
12114
|
-
/* @__PURE__ */ e(
|
|
12114
|
+
/* @__PURE__ */ e(ia, {})
|
|
12115
12115
|
] });
|
|
12116
12116
|
}
|
|
12117
12117
|
function Nm() {
|
|
@@ -12184,7 +12184,7 @@ function Ga({
|
|
|
12184
12184
|
!["range", "text"].includes(t) && /* @__PURE__ */ a(ke, { value: "item-3", children: [
|
|
12185
12185
|
/* @__PURE__ */ e(De, { children: "Click Filters" }),
|
|
12186
12186
|
/* @__PURE__ */ a(Te, { className: "space-y-4 px-2", children: [
|
|
12187
|
-
/* @__PURE__ */ e(
|
|
12187
|
+
/* @__PURE__ */ e(ia, {}),
|
|
12188
12188
|
/* @__PURE__ */ e(Sa, {})
|
|
12189
12189
|
] })
|
|
12190
12190
|
] })
|
|
@@ -12263,7 +12263,7 @@ function ym() {
|
|
|
12263
12263
|
/* @__PURE__ */ a(ke, { value: "item-3", children: [
|
|
12264
12264
|
/* @__PURE__ */ e(De, { children: "Click Filters" }),
|
|
12265
12265
|
/* @__PURE__ */ a(Te, { className: "space-y-4 px-2", children: [
|
|
12266
|
-
/* @__PURE__ */ e(
|
|
12266
|
+
/* @__PURE__ */ e(ia, {}),
|
|
12267
12267
|
/* @__PURE__ */ e(Sa, {})
|
|
12268
12268
|
] })
|
|
12269
12269
|
] })
|
|
@@ -12283,7 +12283,7 @@ function bm({
|
|
|
12283
12283
|
/* @__PURE__ */ e(mt, { defaultValue: ["item-3"], type: "multiple", children: /* @__PURE__ */ a(ke, { value: "item-3", children: [
|
|
12284
12284
|
/* @__PURE__ */ e(De, { children: "Click Filters" }),
|
|
12285
12285
|
/* @__PURE__ */ a(Te, { className: "space-y-4 px-2", children: [
|
|
12286
|
-
/* @__PURE__ */ e(
|
|
12286
|
+
/* @__PURE__ */ e(ia, {}),
|
|
12287
12287
|
/* @__PURE__ */ e(Sa, {})
|
|
12288
12288
|
] })
|
|
12289
12289
|
] }) }),
|
|
@@ -12667,7 +12667,7 @@ function Xr() {
|
|
|
12667
12667
|
style: { backgroundColor: i[k] }
|
|
12668
12668
|
}
|
|
12669
12669
|
) }),
|
|
12670
|
-
/* @__PURE__ */ e(
|
|
12670
|
+
/* @__PURE__ */ e(la, { align: "start", className: "w-auto p-3", children: /* @__PURE__ */ a("div", { className: "space-y-2.5", children: [
|
|
12671
12671
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
12672
12672
|
/* @__PURE__ */ e("p", { className: "text-xs font-medium text-muted-foreground", children: "Theme Colors" }),
|
|
12673
12673
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children: p.slice(0, 10).map((F, _) => /* @__PURE__ */ a(
|
|
@@ -12810,7 +12810,7 @@ function It({
|
|
|
12810
12810
|
className: "h-6 w-6 p-0",
|
|
12811
12811
|
"aria-label": "Confirm edit",
|
|
12812
12812
|
onClick: u,
|
|
12813
|
-
children: /* @__PURE__ */ e(
|
|
12813
|
+
children: /* @__PURE__ */ e(na, { className: "h-4 w-4 text-green-600" })
|
|
12814
12814
|
}
|
|
12815
12815
|
),
|
|
12816
12816
|
/* @__PURE__ */ e(
|
|
@@ -13793,7 +13793,7 @@ function Fm() {
|
|
|
13793
13793
|
var r, i, c, o;
|
|
13794
13794
|
l ? ((r = t.current) == null || r.resize(0), (i = n.current) == null || i.resize(0)) : ((c = t.current) == null || c.resize(25), (o = n.current) == null || o.resize(25));
|
|
13795
13795
|
}, [l]), /* @__PURE__ */ a(
|
|
13796
|
-
|
|
13796
|
+
Xt,
|
|
13797
13797
|
{
|
|
13798
13798
|
direction: "vertical",
|
|
13799
13799
|
className: "min-h-[250px] min-w-full max-w-lg",
|
|
@@ -13808,7 +13808,7 @@ function Fm() {
|
|
|
13808
13808
|
children: /* @__PURE__ */ e(Vu, {})
|
|
13809
13809
|
}
|
|
13810
13810
|
),
|
|
13811
|
-
/* @__PURE__ */ e(
|
|
13811
|
+
/* @__PURE__ */ e(Zt, { withHandle: !0 }),
|
|
13812
13812
|
/* @__PURE__ */ e(
|
|
13813
13813
|
at,
|
|
13814
13814
|
{
|
|
@@ -13816,7 +13816,7 @@ function Fm() {
|
|
|
13816
13816
|
role: "visual-section",
|
|
13817
13817
|
minSize: 0,
|
|
13818
13818
|
defaultSize: 60,
|
|
13819
|
-
children: s && !l ? /* @__PURE__ */ a(
|
|
13819
|
+
children: s && !l ? /* @__PURE__ */ a(Xt, { direction: "horizontal", children: [
|
|
13820
13820
|
/* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(
|
|
13821
13821
|
at,
|
|
13822
13822
|
{
|
|
@@ -13827,7 +13827,7 @@ function Fm() {
|
|
|
13827
13827
|
children: /* @__PURE__ */ e(Rm, {})
|
|
13828
13828
|
}
|
|
13829
13829
|
) }),
|
|
13830
|
-
!l && /* @__PURE__ */ e(
|
|
13830
|
+
!l && /* @__PURE__ */ e(Zt, {}),
|
|
13831
13831
|
/* @__PURE__ */ e(at, { minSize: 40, defaultSize: 75, maxSize: 100, children: /* @__PURE__ */ e(fl, {}) })
|
|
13832
13832
|
] }) : /* @__PURE__ */ e(fl, {})
|
|
13833
13833
|
}
|
|
@@ -13921,7 +13921,7 @@ function Pm(t) {
|
|
|
13921
13921
|
}), T(!1));
|
|
13922
13922
|
}, [y, b, Z, T]);
|
|
13923
13923
|
async function xe({ toolCall: Y }) {
|
|
13924
|
-
var ue, Re, Se, Xe, Pe, X, K, $, oe, Ee, Fe, be, Le, Ye,
|
|
13924
|
+
var ue, Re, Se, Xe, Pe, X, K, $, oe, Ee, Fe, be, Le, Ye, oa, ca;
|
|
13925
13925
|
if (["createChartFromSql", "createForecast"].includes(Y.toolName)) {
|
|
13926
13926
|
const Lt = ((ue = Y.input) == null ? void 0 : ue.sql) ?? ((Re = Y.args) == null ? void 0 : Re.sql), gt = ((Se = Y.input) == null ? void 0 : Se.python) ?? ((Xe = Y.args) == null ? void 0 : Xe.python), ne = ((Pe = Y.input) == null ? void 0 : Pe.chartType) ?? ((X = Y.args) == null ? void 0 : X.chartType);
|
|
13927
13927
|
v(ne), h(Lt), m(gt), p(!0), se({
|
|
@@ -13970,7 +13970,7 @@ function Pm(t) {
|
|
|
13970
13970
|
});
|
|
13971
13971
|
return;
|
|
13972
13972
|
}
|
|
13973
|
-
if ((
|
|
13973
|
+
if ((oa = ne == null ? void 0 : ne.data) != null && oa.records) {
|
|
13974
13974
|
se({
|
|
13975
13975
|
tool: Y.toolName,
|
|
13976
13976
|
toolCallId: Y.toolCallId,
|
|
@@ -13989,7 +13989,7 @@ function Pm(t) {
|
|
|
13989
13989
|
status: "success",
|
|
13990
13990
|
queryConfig: gt,
|
|
13991
13991
|
message: "The data has been visualized",
|
|
13992
|
-
records: (
|
|
13992
|
+
records: (ca = ne == null ? void 0 : ne.data) == null ? void 0 : ca.records
|
|
13993
13993
|
}
|
|
13994
13994
|
});
|
|
13995
13995
|
} else
|
|
@@ -14215,7 +14215,7 @@ function Nl({
|
|
|
14215
14215
|
parts: [{ type: "text", text: ne }]
|
|
14216
14216
|
});
|
|
14217
14217
|
}
|
|
14218
|
-
function
|
|
14218
|
+
function oa() {
|
|
14219
14219
|
return /* @__PURE__ */ a(wt, { children: [
|
|
14220
14220
|
/* @__PURE__ */ e(St, { asChild: !0, children: /* @__PURE__ */ e(
|
|
14221
14221
|
z,
|
|
@@ -14223,12 +14223,12 @@ function Nl({
|
|
|
14223
14223
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
14224
14224
|
size: "sm",
|
|
14225
14225
|
variant: "ghost",
|
|
14226
|
-
children: /* @__PURE__ */ e(
|
|
14226
|
+
children: /* @__PURE__ */ e(Ha, { className: "size-3.5" })
|
|
14227
14227
|
}
|
|
14228
14228
|
) }),
|
|
14229
14229
|
/* @__PURE__ */ a(kt, { align: "end", children: [
|
|
14230
14230
|
/* @__PURE__ */ e(Gs, { children: "Options" }),
|
|
14231
|
-
/* @__PURE__ */ e(
|
|
14231
|
+
/* @__PURE__ */ e(Qt, {}),
|
|
14232
14232
|
/* @__PURE__ */ e(
|
|
14233
14233
|
Kt,
|
|
14234
14234
|
{
|
|
@@ -14256,7 +14256,7 @@ function Nl({
|
|
|
14256
14256
|
] })
|
|
14257
14257
|
] });
|
|
14258
14258
|
}
|
|
14259
|
-
function
|
|
14259
|
+
function ca() {
|
|
14260
14260
|
return /* @__PURE__ */ e("div", { "data-role": "header", children: /* @__PURE__ */ e("div", { className: "text-lg font-semibold", children: "Assistant" }) });
|
|
14261
14261
|
}
|
|
14262
14262
|
const Lt = (se == null ? void 0 : se.length) === 0 && (M == null ? void 0 : M.filter((ne) => ne.role === "user").length) === 0, gt = /* @__PURE__ */ a(
|
|
@@ -14274,7 +14274,7 @@ function Nl({
|
|
|
14274
14274
|
"data-role": "header-section",
|
|
14275
14275
|
className: "flex items-start justify-between gap-2",
|
|
14276
14276
|
children: [
|
|
14277
|
-
|
|
14277
|
+
ca(),
|
|
14278
14278
|
x && /* @__PURE__ */ e(
|
|
14279
14279
|
z,
|
|
14280
14280
|
{
|
|
@@ -14286,7 +14286,7 @@ function Nl({
|
|
|
14286
14286
|
}
|
|
14287
14287
|
),
|
|
14288
14288
|
/* @__PURE__ */ a("div", { "data-role": "header-actions", className: "flex items-center", children: [
|
|
14289
|
-
|
|
14289
|
+
oa(),
|
|
14290
14290
|
c && /* @__PURE__ */ e(
|
|
14291
14291
|
z,
|
|
14292
14292
|
{
|
|
@@ -14476,7 +14476,7 @@ const yl = ({
|
|
|
14476
14476
|
index: n,
|
|
14477
14477
|
onSelect: s
|
|
14478
14478
|
}) => {
|
|
14479
|
-
const l =
|
|
14479
|
+
const l = Ss(t.icon || ""), r = t.name.charAt(0).toUpperCase(), i = En(t.name);
|
|
14480
14480
|
return /* @__PURE__ */ e(
|
|
14481
14481
|
_a,
|
|
14482
14482
|
{
|
|
@@ -14542,7 +14542,7 @@ function _m({
|
|
|
14542
14542
|
const g = A.getState().card;
|
|
14543
14543
|
return ((D = g == null ? void 0 : g.customCardPreferences) == null ? void 0 : D.componentName) || "Custom Visual";
|
|
14544
14544
|
}
|
|
14545
|
-
const w =
|
|
14545
|
+
const w = ks.find((g) => g.id === t);
|
|
14546
14546
|
return (w == null ? void 0 : w.label) || "Select chart type";
|
|
14547
14547
|
};
|
|
14548
14548
|
return /* @__PURE__ */ e("div", { className: "", children: /* @__PURE__ */ a(Yt, { open: s, onOpenChange: l, children: [
|
|
@@ -14568,7 +14568,7 @@ function _m({
|
|
|
14568
14568
|
}
|
|
14569
14569
|
return /* @__PURE__ */ e(Ma, { className: "h-4 w-4" });
|
|
14570
14570
|
}
|
|
14571
|
-
const w =
|
|
14571
|
+
const w = ks.find((C) => C.id === t);
|
|
14572
14572
|
if (w) {
|
|
14573
14573
|
const C = w.icon;
|
|
14574
14574
|
return /* @__PURE__ */ e(C, { className: "h-4 w-4" });
|
|
@@ -14581,14 +14581,14 @@ function _m({
|
|
|
14581
14581
|
]
|
|
14582
14582
|
}
|
|
14583
14583
|
) }),
|
|
14584
|
-
/* @__PURE__ */ e(
|
|
14585
|
-
/* @__PURE__ */ e(
|
|
14586
|
-
/* @__PURE__ */ a(
|
|
14587
|
-
/* @__PURE__ */ e(
|
|
14584
|
+
/* @__PURE__ */ e(la, { className: "w-[300px] p-0", align: "start", children: /* @__PURE__ */ a(Ns, { children: [
|
|
14585
|
+
/* @__PURE__ */ e(ys, { placeholder: "Search chart types..." }),
|
|
14586
|
+
/* @__PURE__ */ a(bs, { className: "mb-2 max-h-[300px]", children: [
|
|
14587
|
+
/* @__PURE__ */ e(Cs, { children: "No chart type found." }),
|
|
14588
14588
|
f.map((w) => {
|
|
14589
14589
|
if (w === "default")
|
|
14590
14590
|
return /* @__PURE__ */ e(
|
|
14591
|
-
|
|
14591
|
+
da,
|
|
14592
14592
|
{
|
|
14593
14593
|
heading: /* @__PURE__ */ a("div", { className: "group flex w-full items-center justify-between", children: [
|
|
14594
14594
|
/* @__PURE__ */ a(Qe, { children: [
|
|
@@ -14608,7 +14608,7 @@ function _m({
|
|
|
14608
14608
|
] })
|
|
14609
14609
|
] }),
|
|
14610
14610
|
className: "[&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
14611
|
-
children:
|
|
14611
|
+
children: ks.map((D) => {
|
|
14612
14612
|
const g = D.icon;
|
|
14613
14613
|
return /* @__PURE__ */ e(
|
|
14614
14614
|
_a,
|
|
@@ -14632,7 +14632,7 @@ function _m({
|
|
|
14632
14632
|
(g) => g.pluginType === "standard"
|
|
14633
14633
|
);
|
|
14634
14634
|
return D.length ? /* @__PURE__ */ e(
|
|
14635
|
-
|
|
14635
|
+
da,
|
|
14636
14636
|
{
|
|
14637
14637
|
heading: /* @__PURE__ */ a("div", { className: "group flex w-full items-center justify-between", children: [
|
|
14638
14638
|
/* @__PURE__ */ e("p", { children: "Standard Visuals" }),
|
|
@@ -14669,7 +14669,7 @@ function _m({
|
|
|
14669
14669
|
(g) => g.pluginType === "custom"
|
|
14670
14670
|
);
|
|
14671
14671
|
return D.length ? /* @__PURE__ */ e(
|
|
14672
|
-
|
|
14672
|
+
da,
|
|
14673
14673
|
{
|
|
14674
14674
|
heading: /* @__PURE__ */ a("div", { className: "group flex w-full items-center justify-between", children: [
|
|
14675
14675
|
/* @__PURE__ */ a(Qe, { children: [
|
|
@@ -14715,12 +14715,12 @@ const Um = ({
|
|
|
14715
14715
|
icon: t,
|
|
14716
14716
|
componentName: n
|
|
14717
14717
|
}) => {
|
|
14718
|
-
const s =
|
|
14718
|
+
const s = Ss(), l = En(n);
|
|
14719
14719
|
return s ? /* @__PURE__ */ e(s, { className: "h-4 w-4" }) : l || /* @__PURE__ */ e(Ma, { className: "h-4 w-4" });
|
|
14720
14720
|
}, jm = [
|
|
14721
|
-
{ id: "table", icon:
|
|
14722
|
-
{ id: "bar", icon:
|
|
14723
|
-
{ id: "line", icon:
|
|
14721
|
+
{ id: "table", icon: gs, label: "Table" },
|
|
14722
|
+
{ id: "bar", icon: xs, label: "Bar Chart" },
|
|
14723
|
+
{ id: "line", icon: vs, label: "Line Chart" },
|
|
14724
14724
|
{
|
|
14725
14725
|
id: "stackedBar",
|
|
14726
14726
|
icon: kn,
|
|
@@ -14764,7 +14764,7 @@ function $m({
|
|
|
14764
14764
|
}
|
|
14765
14765
|
const jn = ({ dataType: t }) => {
|
|
14766
14766
|
const n = ot(t);
|
|
14767
|
-
return n === "string" ? /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-blue-100 text-xs text-blue-700 dark:bg-blue-950 dark:text-blue-300", children: /* @__PURE__ */ e(
|
|
14767
|
+
return n === "string" ? /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-blue-100 text-xs text-blue-700 dark:bg-blue-950 dark:text-blue-300", children: /* @__PURE__ */ e(ns, { className: "h-3 w-3" }) }) : n === "number" ? /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-green-100 text-xs text-green-700 dark:bg-green-950 dark:text-green-300", children: /* @__PURE__ */ e(In, { className: "h-3 w-3" }) }) : n === "date" ? /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-purple-100 text-xs text-purple-700 dark:bg-purple-950 dark:text-purple-300", children: /* @__PURE__ */ e(hs, { className: "h-3 w-3" }) }) : n === "boolean" ? /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-orange-100 text-xs text-orange-700 dark:bg-orange-950 dark:text-orange-300", children: /* @__PURE__ */ e(yr, { className: "h-3 w-3" }) }) : /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-sm bg-gray-100 text-xs text-gray-700 dark:bg-gray-950 dark:text-gray-300", children: /* @__PURE__ */ e(ns, { className: "h-3 w-3" }) });
|
|
14768
14768
|
};
|
|
14769
14769
|
function Gm({
|
|
14770
14770
|
aliasTemplate: t,
|
|
@@ -14806,7 +14806,7 @@ function Gm({
|
|
|
14806
14806
|
onClick: () => {
|
|
14807
14807
|
n(s), i(!1);
|
|
14808
14808
|
},
|
|
14809
|
-
children: /* @__PURE__ */ e(
|
|
14809
|
+
children: /* @__PURE__ */ e(na, { className: "h-4 w-4 text-green-600" })
|
|
14810
14810
|
}
|
|
14811
14811
|
),
|
|
14812
14812
|
/* @__PURE__ */ e(
|
|
@@ -14879,7 +14879,7 @@ function Ym({
|
|
|
14879
14879
|
className: "h-6 w-6 p-0",
|
|
14880
14880
|
"aria-label": "Confirm value alias edit",
|
|
14881
14881
|
onClick: () => m(h),
|
|
14882
|
-
children: /* @__PURE__ */ e(
|
|
14882
|
+
children: /* @__PURE__ */ e(na, { className: "h-4 w-4 text-green-600" })
|
|
14883
14883
|
}
|
|
14884
14884
|
),
|
|
14885
14885
|
/* @__PURE__ */ e(
|
|
@@ -15021,7 +15021,7 @@ function qm({
|
|
|
15021
15021
|
cache_config: nc({ card: i })
|
|
15022
15022
|
};
|
|
15023
15023
|
console.log("requestBody", m);
|
|
15024
|
-
const h = await
|
|
15024
|
+
const h = await os(
|
|
15025
15025
|
`${r.apiServiceUrl}/v1/query`,
|
|
15026
15026
|
(l == null ? void 0 : l.accessToken) || "",
|
|
15027
15027
|
m
|
|
@@ -15164,7 +15164,7 @@ function Km({
|
|
|
15164
15164
|
] }),
|
|
15165
15165
|
o === "fields" && !c ? /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
15166
15166
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
15167
|
-
/* @__PURE__ */ e(
|
|
15167
|
+
/* @__PURE__ */ e(Ht, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
15168
15168
|
/* @__PURE__ */ e(
|
|
15169
15169
|
je,
|
|
15170
15170
|
{
|
|
@@ -15258,7 +15258,7 @@ function Wm({
|
|
|
15258
15258
|
] })
|
|
15259
15259
|
] }),
|
|
15260
15260
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
15261
|
-
/* @__PURE__ */ e(
|
|
15261
|
+
/* @__PURE__ */ e(Ht, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
15262
15262
|
/* @__PURE__ */ e(
|
|
15263
15263
|
je,
|
|
15264
15264
|
{
|
|
@@ -15322,7 +15322,7 @@ function Jm({
|
|
|
15322
15322
|
transform: m,
|
|
15323
15323
|
transition: h,
|
|
15324
15324
|
isDragging: p
|
|
15325
|
-
} =
|
|
15325
|
+
} = us({ id: t.id }), v = A((W) => W.card), {
|
|
15326
15326
|
updateLabel: N,
|
|
15327
15327
|
handleAggregationChange: f,
|
|
15328
15328
|
handleDateFormatChange: b,
|
|
@@ -15376,7 +15376,7 @@ function Jm({
|
|
|
15376
15376
|
}, Xe = () => {
|
|
15377
15377
|
E(n, s);
|
|
15378
15378
|
}, Pe = {
|
|
15379
|
-
transform:
|
|
15379
|
+
transform: ms.Transform.toString(m),
|
|
15380
15380
|
transition: h
|
|
15381
15381
|
}, X = ot(t.dataType), K = X === "date", $ = c === "kpi", oe = (W) => {
|
|
15382
15382
|
switch (W) {
|
|
@@ -15438,7 +15438,7 @@ function Jm({
|
|
|
15438
15438
|
{ value: "custom", label: "Custom Format..." }
|
|
15439
15439
|
];
|
|
15440
15440
|
}
|
|
15441
|
-
}, Ee = oe(G), Fe = n !== "pivotBy", be = K && n === "groupBy", Le = !$ && K && n === "groupBy", Ye = $ && K && n === "groupBy",
|
|
15441
|
+
}, Ee = oe(G), Fe = n !== "pivotBy", be = K && n === "groupBy", Le = !$ && K && n === "groupBy", Ye = $ && K && n === "groupBy", oa = $ && n === "metrics" && ((Yn = v.config) == null ? void 0 : Yn.comparisonType) === "target", ca = n === "metrics", Lt = () => /* @__PURE__ */ e(
|
|
15442
15442
|
"div",
|
|
15443
15443
|
{
|
|
15444
15444
|
title: `${t.entityName}.${t.name}`,
|
|
@@ -15468,7 +15468,7 @@ function Jm({
|
|
|
15468
15468
|
onValueChange: we,
|
|
15469
15469
|
children: [
|
|
15470
15470
|
/* @__PURE__ */ e(he, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(pe, { placeholder: "Select granularity..." }) }),
|
|
15471
|
-
/* @__PURE__ */ e(fe, { children: ["day", "week", "month", "quarter", "year"].map((W) => /* @__PURE__ */ e(H, { className: "text-xs", value: W, children:
|
|
15471
|
+
/* @__PURE__ */ e(fe, { children: ["day", "week", "month", "quarter", "year"].map((W) => /* @__PURE__ */ e(H, { className: "text-xs", value: W, children: ds(W) }, W)) })
|
|
15472
15472
|
]
|
|
15473
15473
|
}
|
|
15474
15474
|
)
|
|
@@ -15584,7 +15584,7 @@ function Jm({
|
|
|
15584
15584
|
] }) : null;
|
|
15585
15585
|
}, qt = () => {
|
|
15586
15586
|
var W, _e;
|
|
15587
|
-
return
|
|
15587
|
+
return oa ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15588
15588
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-muted-foreground", children: "Target Value" }),
|
|
15589
15589
|
/* @__PURE__ */ e(
|
|
15590
15590
|
It,
|
|
@@ -15598,7 +15598,7 @@ function Jm({
|
|
|
15598
15598
|
}
|
|
15599
15599
|
)
|
|
15600
15600
|
] }) : null;
|
|
15601
|
-
}, li = () =>
|
|
15601
|
+
}, li = () => ca ? /* @__PURE__ */ a(q, { children: [
|
|
15602
15602
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15603
15603
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-muted-foreground", children: "Aggregation" }),
|
|
15604
15604
|
/* @__PURE__ */ a(
|
|
@@ -15707,7 +15707,7 @@ function Jm({
|
|
|
15707
15707
|
O(null), k(!0);
|
|
15708
15708
|
},
|
|
15709
15709
|
children: [
|
|
15710
|
-
/* @__PURE__ */ e(
|
|
15710
|
+
/* @__PURE__ */ e(Xa, { className: "mr-2 h-3 w-3" }),
|
|
15711
15711
|
"Add attribute filter"
|
|
15712
15712
|
]
|
|
15713
15713
|
}
|
|
@@ -15755,7 +15755,7 @@ function Jm({
|
|
|
15755
15755
|
),
|
|
15756
15756
|
n === "metrics" && ((Bn = ee == null ? void 0 : ee.conditions) == null ? void 0 : Bn.length) && !R && /* @__PURE__ */ e(Tt, { children: /* @__PURE__ */ a(Qe, { children: [
|
|
15757
15757
|
/* @__PURE__ */ e(He, { asChild: !0, children: /* @__PURE__ */ a("div", { className: "flex items-center gap-1 rounded bg-primary/10 px-1.5 py-0.5 text-xs", children: [
|
|
15758
|
-
/* @__PURE__ */ e(
|
|
15758
|
+
/* @__PURE__ */ e(Xa, { className: "h-3 w-3" }),
|
|
15759
15759
|
/* @__PURE__ */ e("span", { children: ee.conditions.length })
|
|
15760
15760
|
] }) }),
|
|
15761
15761
|
/* @__PURE__ */ e(et, { side: "top", children: /* @__PURE__ */ e("div", { className: "text-xs", children: ee.conditions.map((W) => /* @__PURE__ */ a("div", { children: [
|
|
@@ -16043,7 +16043,7 @@ const Cl = [
|
|
|
16043
16043
|
"#ea580c"
|
|
16044
16044
|
// orange-600
|
|
16045
16045
|
];
|
|
16046
|
-
function
|
|
16046
|
+
function Ms({
|
|
16047
16047
|
value: t,
|
|
16048
16048
|
onChange: n,
|
|
16049
16049
|
label: s
|
|
@@ -16063,7 +16063,7 @@ function As({
|
|
|
16063
16063
|
"aria-label": `Change color for ${s}`
|
|
16064
16064
|
}
|
|
16065
16065
|
) }),
|
|
16066
|
-
/* @__PURE__ */ e(
|
|
16066
|
+
/* @__PURE__ */ e(la, { align: "start", className: "w-auto p-2", children: /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
16067
16067
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-3 items-center justify-items-center gap-1", children: Hm.map((d) => /* @__PURE__ */ e(
|
|
16068
16068
|
"button",
|
|
16069
16069
|
{
|
|
@@ -16291,7 +16291,7 @@ function Xm() {
|
|
|
16291
16291
|
] }),
|
|
16292
16292
|
i.showColor !== !1 && /* @__PURE__ */ a("div", { className: "space-y-2 border-l-2 border-muted pl-3", children: [
|
|
16293
16293
|
/* @__PURE__ */ e(
|
|
16294
|
-
|
|
16294
|
+
Ms,
|
|
16295
16295
|
{
|
|
16296
16296
|
value: ((h = i.colorConfig) == null ? void 0 : h.increase) || "green",
|
|
16297
16297
|
onChange: (y) => c({
|
|
@@ -16304,7 +16304,7 @@ function Xm() {
|
|
|
16304
16304
|
}
|
|
16305
16305
|
),
|
|
16306
16306
|
/* @__PURE__ */ e(
|
|
16307
|
-
|
|
16307
|
+
Ms,
|
|
16308
16308
|
{
|
|
16309
16309
|
value: ((p = i.colorConfig) == null ? void 0 : p.decrease) || "red",
|
|
16310
16310
|
onChange: (y) => c({
|
|
@@ -16317,7 +16317,7 @@ function Xm() {
|
|
|
16317
16317
|
}
|
|
16318
16318
|
),
|
|
16319
16319
|
/* @__PURE__ */ e(
|
|
16320
|
-
|
|
16320
|
+
Ms,
|
|
16321
16321
|
{
|
|
16322
16322
|
value: ((v = i.colorConfig) == null ? void 0 : v.noChange) || "neutral",
|
|
16323
16323
|
onChange: (y) => c({
|
|
@@ -16977,7 +16977,7 @@ const nh = (t) => {
|
|
|
16977
16977
|
case "view":
|
|
16978
16978
|
return /* @__PURE__ */ e(ua, { className: "h-3 w-3" });
|
|
16979
16979
|
case "dataset":
|
|
16980
|
-
return /* @__PURE__ */ e(
|
|
16980
|
+
return /* @__PURE__ */ e(ps, { className: "h-3 w-3" });
|
|
16981
16981
|
case "file":
|
|
16982
16982
|
return /* @__PURE__ */ e(Dl, { className: "h-3 w-3" });
|
|
16983
16983
|
default:
|
|
@@ -17026,11 +17026,11 @@ function rh({
|
|
|
17026
17026
|
]
|
|
17027
17027
|
}
|
|
17028
17028
|
) }),
|
|
17029
|
-
/* @__PURE__ */ e(
|
|
17030
|
-
/* @__PURE__ */ e(
|
|
17031
|
-
/* @__PURE__ */ e(
|
|
17032
|
-
/* @__PURE__ */ e(
|
|
17033
|
-
|
|
17029
|
+
/* @__PURE__ */ e(la, { className: "z-50 w-80 p-0", align: "start", children: /* @__PURE__ */ a(Ns, { children: [
|
|
17030
|
+
/* @__PURE__ */ e(ys, { placeholder: "Search fields...", className: "h-9" }),
|
|
17031
|
+
/* @__PURE__ */ e(Cs, { children: "No fields found." }),
|
|
17032
|
+
/* @__PURE__ */ e(bs, { className: "max-h-80", children: Object.entries(o).map(([d, u]) => /* @__PURE__ */ e(
|
|
17033
|
+
da,
|
|
17034
17034
|
{
|
|
17035
17035
|
heading: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
17036
17036
|
/* @__PURE__ */ e(Ut, { className: "h-3 w-3" }),
|
|
@@ -17051,7 +17051,7 @@ function rh({
|
|
|
17051
17051
|
className: "overflow-x-auto",
|
|
17052
17052
|
children: [
|
|
17053
17053
|
/* @__PURE__ */ e(
|
|
17054
|
-
|
|
17054
|
+
na,
|
|
17055
17055
|
{
|
|
17056
17056
|
className: B(
|
|
17057
17057
|
"mr-2 h-4 w-4",
|
|
@@ -17106,7 +17106,7 @@ function $n(t) {
|
|
|
17106
17106
|
],
|
|
17107
17107
|
queryFn: async () => {
|
|
17108
17108
|
try {
|
|
17109
|
-
return await
|
|
17109
|
+
return await os(
|
|
17110
17110
|
`${l.apiServiceUrl}/v1/query`,
|
|
17111
17111
|
(s == null ? void 0 : s.accessToken) || "",
|
|
17112
17112
|
{
|
|
@@ -17180,17 +17180,17 @@ function ih({
|
|
|
17180
17180
|
]
|
|
17181
17181
|
}
|
|
17182
17182
|
) }),
|
|
17183
|
-
/* @__PURE__ */ e(
|
|
17184
|
-
/* @__PURE__ */ e(
|
|
17185
|
-
/* @__PURE__ */ a(
|
|
17186
|
-
/* @__PURE__ */ e(
|
|
17187
|
-
/* @__PURE__ */ e(
|
|
17183
|
+
/* @__PURE__ */ e(la, { className: "z-50 w-fit overflow-auto p-0", align: "start", children: /* @__PURE__ */ a(Ns, { children: [
|
|
17184
|
+
/* @__PURE__ */ e(ys, { placeholder: "Search..." }),
|
|
17185
|
+
/* @__PURE__ */ a(bs, { children: [
|
|
17186
|
+
/* @__PURE__ */ e(Cs, { children: "No results found." }),
|
|
17187
|
+
/* @__PURE__ */ e(da, { children: o.map((m, h) => /* @__PURE__ */ a(
|
|
17188
17188
|
_a,
|
|
17189
17189
|
{
|
|
17190
17190
|
onSelect: () => u(m.value),
|
|
17191
17191
|
children: [
|
|
17192
17192
|
/* @__PURE__ */ e(
|
|
17193
|
-
|
|
17193
|
+
na,
|
|
17194
17194
|
{
|
|
17195
17195
|
className: B(
|
|
17196
17196
|
"mr-2 h-4 w-4",
|
|
@@ -17391,10 +17391,10 @@ function ai({
|
|
|
17391
17391
|
transform: p,
|
|
17392
17392
|
transition: v,
|
|
17393
17393
|
isDragging: N
|
|
17394
|
-
} =
|
|
17394
|
+
} = us({ id: t.id }), { isPending: f, error: b } = $n(
|
|
17395
17395
|
t.field
|
|
17396
17396
|
), y = {
|
|
17397
|
-
transform:
|
|
17397
|
+
transform: ms.Transform.toString(p),
|
|
17398
17398
|
transition: v
|
|
17399
17399
|
};
|
|
17400
17400
|
return /* @__PURE__ */ a(
|
|
@@ -17582,8 +17582,8 @@ function vh({
|
|
|
17582
17582
|
transform: I,
|
|
17583
17583
|
transition: E,
|
|
17584
17584
|
isDragging: w
|
|
17585
|
-
} =
|
|
17586
|
-
transform:
|
|
17585
|
+
} = us({ id: t.id }), D = {
|
|
17586
|
+
transform: ms.Transform.toString(I),
|
|
17587
17587
|
transition: E
|
|
17588
17588
|
}, g = (x) => {
|
|
17589
17589
|
const { active: R, over: T } = x;
|
|
@@ -17661,8 +17661,8 @@ function vh({
|
|
|
17661
17661
|
/* @__PURE__ */ e(
|
|
17662
17662
|
fa,
|
|
17663
17663
|
{
|
|
17664
|
-
sensors:
|
|
17665
|
-
Wt(
|
|
17664
|
+
sensors: ts(
|
|
17665
|
+
Wt(as),
|
|
17666
17666
|
Wt(zs, {
|
|
17667
17667
|
coordinateGetter: Ls
|
|
17668
17668
|
})
|
|
@@ -17697,8 +17697,8 @@ function vh({
|
|
|
17697
17697
|
/* @__PURE__ */ e(
|
|
17698
17698
|
fa,
|
|
17699
17699
|
{
|
|
17700
|
-
sensors:
|
|
17701
|
-
Wt(
|
|
17700
|
+
sensors: ts(
|
|
17701
|
+
Wt(as),
|
|
17702
17702
|
Wt(zs, {
|
|
17703
17703
|
coordinateGetter: Ls
|
|
17704
17704
|
})
|
|
@@ -17777,8 +17777,8 @@ function xh({
|
|
|
17777
17777
|
} = ah({
|
|
17778
17778
|
initialFilters: t,
|
|
17779
17779
|
availableFields: n
|
|
17780
|
-
}), w =
|
|
17781
|
-
Wt(
|
|
17780
|
+
}), w = ts(
|
|
17781
|
+
Wt(as),
|
|
17782
17782
|
Wt(zs, {
|
|
17783
17783
|
coordinateGetter: Ls
|
|
17784
17784
|
})
|
|
@@ -17916,7 +17916,7 @@ function xh({
|
|
|
17916
17916
|
T.id
|
|
17917
17917
|
), R = dr(t);
|
|
17918
17918
|
return /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
17919
|
-
/* @__PURE__ */ e(
|
|
17919
|
+
/* @__PURE__ */ e(sa, { children: /* @__PURE__ */ e(Ia, { className: "p-4", children: /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
17920
17920
|
o ? /* @__PURE__ */ a("div", { className: "flex items-center justify-center p-4", children: [
|
|
17921
17921
|
/* @__PURE__ */ e("div", { className: "h-5 w-5 animate-spin rounded-full border-2 border-gray-300 border-t-gray-600" }),
|
|
17922
17922
|
/* @__PURE__ */ e("span", { className: "ml-2 text-sm text-gray-600", children: "Loading columns..." })
|
|
@@ -18666,8 +18666,8 @@ function Eh() {
|
|
|
18666
18666
|
columns: E = [],
|
|
18667
18667
|
isLoading: w,
|
|
18668
18668
|
error: D
|
|
18669
|
-
} = La(), g =
|
|
18670
|
-
Wt(
|
|
18669
|
+
} = La(), g = ts(
|
|
18670
|
+
Wt(as, {
|
|
18671
18671
|
activationConstraint: {
|
|
18672
18672
|
distance: 8
|
|
18673
18673
|
}
|
|
@@ -18778,7 +18778,7 @@ function Eh() {
|
|
|
18778
18778
|
);
|
|
18779
18779
|
}
|
|
18780
18780
|
function Mh({ authToken: t, onSave: n, onClose: s }) {
|
|
18781
|
-
const l = xt(null), r = A((D) => D.showAIDialog), i = A((D) => D.isDevMode), c =
|
|
18781
|
+
const l = xt(null), r = A((D) => D.showAIDialog), i = A((D) => D.isDevMode), c = Ds((D) => D.setFullscreen), o = Ds((D) => D.setPanelOpen), d = Ds((D) => D.setContainer), u = bc("editor"), m = Cc(), h = wc("editor"), p = m === "editor", v = Ce(
|
|
18782
18782
|
(D) => {
|
|
18783
18783
|
d("editor", D);
|
|
18784
18784
|
},
|
|
@@ -18807,7 +18807,7 @@ function Mh({ authToken: t, onSave: n, onClose: s }) {
|
|
|
18807
18807
|
} }),
|
|
18808
18808
|
/* @__PURE__ */ a("div", { className: "relative flex grow border-l", children: [
|
|
18809
18809
|
/* @__PURE__ */ a(
|
|
18810
|
-
|
|
18810
|
+
Xt,
|
|
18811
18811
|
{
|
|
18812
18812
|
"data-content": "editor-main",
|
|
18813
18813
|
className: B(
|
|
@@ -18817,7 +18817,7 @@ function Mh({ authToken: t, onSave: n, onClose: s }) {
|
|
|
18817
18817
|
direction: "horizontal",
|
|
18818
18818
|
children: [
|
|
18819
18819
|
/* @__PURE__ */ e(at, { className: "min-w-[510px] rounded-none", children: /* @__PURE__ */ e(Fm, {}) }),
|
|
18820
|
-
/* @__PURE__ */ e(
|
|
18820
|
+
/* @__PURE__ */ e(Zt, {}),
|
|
18821
18821
|
/* @__PURE__ */ e(
|
|
18822
18822
|
at,
|
|
18823
18823
|
{
|
|
@@ -18855,7 +18855,7 @@ function Mh({ authToken: t, onSave: n, onClose: s }) {
|
|
|
18855
18855
|
function w() {
|
|
18856
18856
|
return /* @__PURE__ */ a("div", { className: "relative flex h-full grow", children: [
|
|
18857
18857
|
/* @__PURE__ */ a(
|
|
18858
|
-
|
|
18858
|
+
Xt,
|
|
18859
18859
|
{
|
|
18860
18860
|
"data-content": "explorer",
|
|
18861
18861
|
className: B(
|
|
@@ -18865,7 +18865,7 @@ function Mh({ authToken: t, onSave: n, onClose: s }) {
|
|
|
18865
18865
|
direction: "horizontal",
|
|
18866
18866
|
children: [
|
|
18867
18867
|
/* @__PURE__ */ e(at, { className: "min-w-[510px] grow rounded-none", children: /* @__PURE__ */ e(Eh, {}) }),
|
|
18868
|
-
/* @__PURE__ */ e(
|
|
18868
|
+
/* @__PURE__ */ e(Zt, {}),
|
|
18869
18869
|
/* @__PURE__ */ e(
|
|
18870
18870
|
at,
|
|
18871
18871
|
{
|
|
@@ -19123,11 +19123,11 @@ function zh({
|
|
|
19123
19123
|
block: "center"
|
|
19124
19124
|
});
|
|
19125
19125
|
}, [p]);
|
|
19126
|
-
const I = () => /* @__PURE__ */ e(
|
|
19126
|
+
const I = () => /* @__PURE__ */ e(ws, { className: "h-4 w-4" }), E = () => {
|
|
19127
19127
|
m(t), r == null || r(t);
|
|
19128
19128
|
};
|
|
19129
19129
|
return /* @__PURE__ */ e(
|
|
19130
|
-
|
|
19130
|
+
sa,
|
|
19131
19131
|
{
|
|
19132
19132
|
ref: N,
|
|
19133
19133
|
className: B(
|
|
@@ -19193,7 +19193,7 @@ function zh({
|
|
|
19193
19193
|
x.stopPropagation(), i == null || i(t);
|
|
19194
19194
|
},
|
|
19195
19195
|
title: "Edit details",
|
|
19196
|
-
children: /* @__PURE__ */ e(
|
|
19196
|
+
children: /* @__PURE__ */ e(ss, { className: "h-3 w-3" })
|
|
19197
19197
|
}
|
|
19198
19198
|
),
|
|
19199
19199
|
/* @__PURE__ */ a(
|
|
@@ -19250,7 +19250,7 @@ function zh({
|
|
|
19250
19250
|
x.stopPropagation(), i == null || i(t);
|
|
19251
19251
|
},
|
|
19252
19252
|
children: [
|
|
19253
|
-
/* @__PURE__ */ e(
|
|
19253
|
+
/* @__PURE__ */ e(ss, { className: "mr-2 h-3 w-3" }),
|
|
19254
19254
|
"Edit details"
|
|
19255
19255
|
]
|
|
19256
19256
|
}
|
|
@@ -19267,7 +19267,7 @@ function zh({
|
|
|
19267
19267
|
]
|
|
19268
19268
|
}
|
|
19269
19269
|
),
|
|
19270
|
-
/* @__PURE__ */ e(
|
|
19270
|
+
/* @__PURE__ */ e(Qt, {}),
|
|
19271
19271
|
/* @__PURE__ */ a(
|
|
19272
19272
|
Be,
|
|
19273
19273
|
{
|
|
@@ -19283,14 +19283,14 @@ function zh({
|
|
|
19283
19283
|
}
|
|
19284
19284
|
)
|
|
19285
19285
|
] }),
|
|
19286
|
-
/* @__PURE__ */ e(
|
|
19286
|
+
/* @__PURE__ */ e(Qt, {}),
|
|
19287
19287
|
/* @__PURE__ */ a("div", { className: "space-y-1 px-2 py-2 text-xs text-slate-500 dark:text-slate-400", children: [
|
|
19288
19288
|
(((D = t.ownership.createdBy) == null ? void 0 : D.type) === "tenant" || ((g = t.ownership.createdBy) == null ? void 0 : g.type) === "organization" && v) && /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
19289
19289
|
/* @__PURE__ */ e(ma, { className: "h-3 w-3" }),
|
|
19290
19290
|
/* @__PURE__ */ e("span", { children: ((C = t.ownership.createdBy) == null ? void 0 : C.name) || "Unknown" })
|
|
19291
19291
|
] }),
|
|
19292
19292
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
19293
|
-
/* @__PURE__ */ e(
|
|
19293
|
+
/* @__PURE__ */ e(hs, { className: "h-3 w-3" }),
|
|
19294
19294
|
/* @__PURE__ */ e("span", { children: u(t.lastModified) })
|
|
19295
19295
|
] })
|
|
19296
19296
|
] })
|
|
@@ -19458,7 +19458,7 @@ function _h() {
|
|
|
19458
19458
|
null
|
|
19459
19459
|
), [d, u] = V(!1), [m, h] = V(null), [p, v] = V(null), [N, f] = V(
|
|
19460
19460
|
null
|
|
19461
|
-
), { selectVisual: b } = Ra(), { handleEditLibraryVisual: y, handleAddLibraryVisual: S } =
|
|
19461
|
+
), { selectVisual: b } = Ra(), { handleEditLibraryVisual: y, handleAddLibraryVisual: S } = ra(), {
|
|
19462
19462
|
resources: I,
|
|
19463
19463
|
isLoading: E,
|
|
19464
19464
|
isError: w,
|
|
@@ -19585,7 +19585,7 @@ function _h() {
|
|
|
19585
19585
|
}
|
|
19586
19586
|
) }),
|
|
19587
19587
|
/* @__PURE__ */ e("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-3 overflow-y-auto", children: P.length === 0 ? /* @__PURE__ */ a("div", { className: "py-8 text-center", children: [
|
|
19588
|
-
/* @__PURE__ */ e("div", { className: "mb-3", children: /* @__PURE__ */ e(
|
|
19588
|
+
/* @__PURE__ */ e("div", { className: "mb-3", children: /* @__PURE__ */ e(ws, { className: "mx-auto h-12 w-12 text-muted-foreground/50" }) }),
|
|
19589
19589
|
/* @__PURE__ */ e("h3", { className: "mb-1 font-medium text-foreground", children: t ? "No visuals found" : "No visuals yet" }),
|
|
19590
19590
|
/* @__PURE__ */ e("p", { className: "mb-4 text-sm text-muted-foreground", children: t ? "Try adjusting your search" : "Create your first visual component to get started" }),
|
|
19591
19591
|
!t && /* @__PURE__ */ a(
|
|
@@ -19713,11 +19713,11 @@ function Uh({
|
|
|
19713
19713
|
Ne(() => {
|
|
19714
19714
|
s ? (I(!0), w(!0)) : E && (I(!1), w(!1));
|
|
19715
19715
|
}, [s, E]);
|
|
19716
|
-
const D = () => /* @__PURE__ */ e(
|
|
19716
|
+
const D = () => /* @__PURE__ */ e(ps, { className: "h-4 w-4" }), g = () => {
|
|
19717
19717
|
m(t), l(t.id), u == null || u(t.id);
|
|
19718
19718
|
};
|
|
19719
19719
|
return /* @__PURE__ */ e(
|
|
19720
|
-
|
|
19720
|
+
sa,
|
|
19721
19721
|
{
|
|
19722
19722
|
className: B(
|
|
19723
19723
|
"group cursor-pointer border border-border/50 p-3 transition-colors hover:bg-accent/50",
|
|
@@ -19766,7 +19766,7 @@ function Uh({
|
|
|
19766
19766
|
k.stopPropagation(), r == null || r(t);
|
|
19767
19767
|
},
|
|
19768
19768
|
title: "Edit details",
|
|
19769
|
-
children: /* @__PURE__ */ e(
|
|
19769
|
+
children: /* @__PURE__ */ e(ss, { className: "h-3 w-3" })
|
|
19770
19770
|
}
|
|
19771
19771
|
),
|
|
19772
19772
|
!y && /* @__PURE__ */ a(
|
|
@@ -19798,7 +19798,7 @@ function Uh({
|
|
|
19798
19798
|
k.stopPropagation(), r == null || r(t);
|
|
19799
19799
|
},
|
|
19800
19800
|
children: [
|
|
19801
|
-
/* @__PURE__ */ e(
|
|
19801
|
+
/* @__PURE__ */ e(ss, { className: "mr-2 h-3 w-3" }),
|
|
19802
19802
|
"Edit details"
|
|
19803
19803
|
]
|
|
19804
19804
|
}
|
|
@@ -19816,7 +19816,7 @@ function Uh({
|
|
|
19816
19816
|
}
|
|
19817
19817
|
) }),
|
|
19818
19818
|
t.permissions.canDelete && /* @__PURE__ */ a(q, { children: [
|
|
19819
|
-
/* @__PURE__ */ e(
|
|
19819
|
+
/* @__PURE__ */ e(Qt, {}),
|
|
19820
19820
|
/* @__PURE__ */ a(
|
|
19821
19821
|
Be,
|
|
19822
19822
|
{
|
|
@@ -19832,14 +19832,14 @@ function Uh({
|
|
|
19832
19832
|
}
|
|
19833
19833
|
)
|
|
19834
19834
|
] }),
|
|
19835
|
-
/* @__PURE__ */ e(
|
|
19835
|
+
/* @__PURE__ */ e(Qt, {}),
|
|
19836
19836
|
/* @__PURE__ */ a("div", { className: "space-y-1 px-2 py-2 text-xs text-slate-500 dark:text-slate-400", children: [
|
|
19837
19837
|
(((R = t.ownership.createdBy) == null ? void 0 : R.type) === "tenant" || ((T = t.ownership.createdBy) == null ? void 0 : T.type) === "organization" && p) && /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
19838
19838
|
/* @__PURE__ */ e(ma, { className: "h-3 w-3" }),
|
|
19839
19839
|
/* @__PURE__ */ e("span", { children: ((P = t.ownership.createdBy) == null ? void 0 : P.name) || "Unknown" })
|
|
19840
19840
|
] }),
|
|
19841
19841
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
19842
|
-
/* @__PURE__ */ e(
|
|
19842
|
+
/* @__PURE__ */ e(hs, { className: "h-3 w-3" }),
|
|
19843
19843
|
/* @__PURE__ */ e("span", { children: d(t.lastModified) })
|
|
19844
19844
|
] })
|
|
19845
19845
|
] })
|
|
@@ -19990,7 +19990,7 @@ function $h(t) {
|
|
|
19990
19990
|
}
|
|
19991
19991
|
) }),
|
|
19992
19992
|
/* @__PURE__ */ e("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-3 overflow-y-auto", children: se.length === 0 ? /* @__PURE__ */ a("div", { className: "py-8 text-center", children: [
|
|
19993
|
-
/* @__PURE__ */ e("div", { className: "mb-3", children: /* @__PURE__ */ e(
|
|
19993
|
+
/* @__PURE__ */ e("div", { className: "mb-3", children: /* @__PURE__ */ e(ps, { className: "mx-auto h-12 w-12 text-muted-foreground/50" }) }),
|
|
19994
19994
|
/* @__PURE__ */ e("h3", { className: "mb-1 font-medium text-foreground", children: r ? "No dashboards found" : "No dashboards yet" }),
|
|
19995
19995
|
/* @__PURE__ */ e("p", { className: "mb-4 text-sm text-muted-foreground", children: r ? "Try adjusting your search" : R.canCreateDashboards ? "Create your first dashboard to get started" : "No dashboards have been shared with you yet" }),
|
|
19996
19996
|
R.canCreateDashboards && !r && /* @__PURE__ */ a(
|
|
@@ -20140,7 +20140,7 @@ function Gh({
|
|
|
20140
20140
|
d.role && /* @__PURE__ */ a("div", { className: "text-xs text-muted-foreground", children: [
|
|
20141
20141
|
"Role:",
|
|
20142
20142
|
" ",
|
|
20143
|
-
|
|
20143
|
+
ds(
|
|
20144
20144
|
d.role.replace(/_/g, " ")
|
|
20145
20145
|
)
|
|
20146
20146
|
] }),
|
|
@@ -20210,7 +20210,7 @@ function Wh({
|
|
|
20210
20210
|
/* @__PURE__ */ a("main", { className: "relative flex h-full w-full flex-col", children: [
|
|
20211
20211
|
t && /* @__PURE__ */ e(yu, {}),
|
|
20212
20212
|
/* @__PURE__ */ a(
|
|
20213
|
-
|
|
20213
|
+
Xt,
|
|
20214
20214
|
{
|
|
20215
20215
|
direction: "horizontal",
|
|
20216
20216
|
className: "flex grow overflow-hidden",
|
|
@@ -20236,7 +20236,7 @@ function Wh({
|
|
|
20236
20236
|
}
|
|
20237
20237
|
),
|
|
20238
20238
|
/* @__PURE__ */ e(
|
|
20239
|
-
|
|
20239
|
+
Zt,
|
|
20240
20240
|
{
|
|
20241
20241
|
withHandle: d,
|
|
20242
20242
|
className: B("w-1", {
|