react-semaphor 0.0.298 → 0.0.300
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/{index-1p9AH5Uv.js → index-7otGcVu9.js} +86 -86
- package/dist/chunks/{index-7kOro_zu.js → index-OPD88AmE.js} +104 -104
- package/dist/chunks/{index-zdZ1lpAC.js → index-Vb86qFLd.js} +7636 -7616
- package/dist/chunks/{index-DoHEkv9j.js → index-hAC5cpmj.js} +2 -2
- package/dist/chunks/{lucide-react-Mpu2F2_p.js → lucide-react-alNLff4L.js} +3 -3
- package/dist/chunks/{lucide-react-vDdGhe6o.js → lucide-react-dZNY_WiG.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as q, p as hs, u as z, n as
|
|
1
|
+
import { c as q, p as hs, u as z, n as Is, o as Oe, q as e, r as Ts, s as Ds, t as F, j as Ms, v as Ls, w as Es, x as As, y as Vs, L as H, z as re, A as oa, E as ca, H as da, J as ua, K as rt, M as it, N as ot, O as Ys, Q as W, R as Je, V as u, W as ct, F as ha, Y as We, Z as Ye, _ as qs, $ as ma, a0 as Rs, a1 as fe, a2 as ge, a3 as je, a4 as be, a5 as ke, a6 as ye, a7 as Q, T as _s, a8 as Hs, a9 as $s, aa as Ps, ab as xa, ac as pa, ad as xe, ae as dt, af as ut, ag as fa, ah as ht, C as mt, ai as xt, aj as ga, B as pt, ak as ms, al as ft, am as Xs, an as ja, ao as Ss, ap as me, aq as we, ar as de, as as xs, at as ba, au as gt, av as jt, aw as ya, ax as bt, ay as yt, az as vt, aA as Ct, aB as Nt, aC as qe, aD as ws, aE as St, a as wt, aF as Ke, aG as ks, aH as Ve, aI as zs, aJ as kt, aK as zt, aL as Ot, aM as Ft, aN as It, aO as Tt, aP as Ns, aQ as Dt, aR as Zs, aS as Mt, aT as ea, aU as Lt, aV as Et, aW as At, aX as va, aY as ce, aZ as Bs, a_ as Ca, a$ as Vt, b0 as qt, b1 as rs, b2 as Rt, b3 as _t, b4 as Ht, b5 as $t, b6 as Pt, b7 as Bt, b8 as Ut, l as Gt, b9 as ps, ba as Na, bb as Sa, bc as wa, bd as is, be as ka, bf as os, bg as sa, bh as Kt, bi as Qt, bj as fs, bk as gs, bl as js, bm as Jt, bn as Wt, X as za, bo as Yt, bp as Xt, bq as Zt, br as bs, bs as Te, f as en, bt as Ge, bu as Oa, bv as sn, bw as an, bx as cs, by as tn, bz as nn, bA as ln, bB as aa, bC as rn, bD as on, bE as cn, bF as dn, bG as un, bH as hn, bI as mn, bJ as xn, bK as De, bL as U, bM as G, bN as Us, bO as K, bP as pn, bQ as Fa, bR as fn, bS as gn, bT as jn, bU as bn, bV as yn, bW as vn, bX as Cn, bY as Nn, bZ as Sn } from "./index-Vb86qFLd.js";
|
|
2
2
|
import * as ta from "react";
|
|
3
|
-
import ze, { useState as R, useMemo as
|
|
3
|
+
import ze, { useState as R, useMemo as Os, useEffect as Z, useRef as Xe, Suspense as wn } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -581,7 +581,7 @@ async function el(s, t, a, n) {
|
|
|
581
581
|
operation: "create"
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
|
-
async function
|
|
584
|
+
async function Fs(s, t) {
|
|
585
585
|
if (!t)
|
|
586
586
|
return null;
|
|
587
587
|
const { id: a, template: n, filterValues: l, isDefault: i, shared: r } = s;
|
|
@@ -601,7 +601,7 @@ async function sl(s, t) {
|
|
|
601
601
|
}) : null;
|
|
602
602
|
}
|
|
603
603
|
function al() {
|
|
604
|
-
const [s, t] = R(""), [a, n] = R(!1), l = z((j) => j.lenses), { setLenses: i, setSelectedLensId: r } =
|
|
604
|
+
const [s, t] = R(""), [a, n] = R(!1), l = z((j) => j.lenses), { setLenses: i, setSelectedLensId: r } = Is(), [c, o] = R(!1), [x, d] = R(!1), y = z((j) => j.dashboard), f = z((j) => j.filterValues), { authToken: m } = Oe();
|
|
605
605
|
async function g() {
|
|
606
606
|
o(!0);
|
|
607
607
|
const j = qa(
|
|
@@ -614,23 +614,23 @@ function al() {
|
|
|
614
614
|
);
|
|
615
615
|
D && (i([...l || [], D]), r(D.id), d(!1)), o(!1);
|
|
616
616
|
}
|
|
617
|
-
return /* @__PURE__ */ e.jsxs(
|
|
618
|
-
/* @__PURE__ */ e.jsx(
|
|
617
|
+
return /* @__PURE__ */ e.jsxs(Ts, { open: x, onOpenChange: d, children: [
|
|
618
|
+
/* @__PURE__ */ e.jsx(Ds, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
619
619
|
F,
|
|
620
620
|
{
|
|
621
621
|
variant: "secondary",
|
|
622
622
|
className: "h-7 p-2",
|
|
623
623
|
size: "sm",
|
|
624
624
|
children: [
|
|
625
|
-
/* @__PURE__ */ e.jsx(
|
|
625
|
+
/* @__PURE__ */ e.jsx(Ms, { className: "mr-2 h-4 w-4", strokeWidth: 1.5 }),
|
|
626
626
|
"Lens"
|
|
627
627
|
]
|
|
628
628
|
}
|
|
629
629
|
) }),
|
|
630
|
-
/* @__PURE__ */ e.jsxs(
|
|
631
|
-
/* @__PURE__ */ e.jsxs(
|
|
632
|
-
/* @__PURE__ */ e.jsx(
|
|
633
|
-
/* @__PURE__ */ e.jsx(
|
|
630
|
+
/* @__PURE__ */ e.jsxs(Ls, { className: "sm:max-w-[425px]", children: [
|
|
631
|
+
/* @__PURE__ */ e.jsxs(Es, { children: [
|
|
632
|
+
/* @__PURE__ */ e.jsx(As, { children: "Create Lens" }),
|
|
633
|
+
/* @__PURE__ */ e.jsx(Vs, { children: "Lenses are private by default and are only visible to you." })
|
|
634
634
|
] }),
|
|
635
635
|
/* @__PURE__ */ e.jsx("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-8 items-center gap-4", children: [
|
|
636
636
|
/* @__PURE__ */ e.jsx(H, { className: "text-right", children: "Name" }),
|
|
@@ -662,7 +662,7 @@ function al() {
|
|
|
662
662
|
] });
|
|
663
663
|
}
|
|
664
664
|
function tl() {
|
|
665
|
-
const [s, t] = R(!1), a = z((d) => d.lenses), n = z((d) => d.selectedLensId), { setLenses: l, setSelectedLensId: i } =
|
|
665
|
+
const [s, t] = R(!1), a = z((d) => d.lenses), n = z((d) => d.selectedLensId), { setLenses: l, setSelectedLensId: i } = Is(), { authToken: r } = Oe();
|
|
666
666
|
async function c(d) {
|
|
667
667
|
i(d);
|
|
668
668
|
}
|
|
@@ -685,14 +685,14 @@ function tl() {
|
|
|
685
685
|
...d,
|
|
686
686
|
isDefault: !d.isDefault
|
|
687
687
|
};
|
|
688
|
-
await
|
|
688
|
+
await Fs(f, r == null ? void 0 : r.accessToken);
|
|
689
689
|
const m = a == null ? void 0 : a.find((g) => g.isDefault);
|
|
690
690
|
if (m && m.id !== d.id) {
|
|
691
691
|
const g = {
|
|
692
692
|
...m,
|
|
693
693
|
isDefault: !1
|
|
694
694
|
};
|
|
695
|
-
await
|
|
695
|
+
await Fs(g, r == null ? void 0 : r.accessToken);
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
return /* @__PURE__ */ e.jsxs(ca, { open: s, onOpenChange: t, children: [
|
|
@@ -767,10 +767,10 @@ function nl() {
|
|
|
767
767
|
(p) => p.actions.setShowFilters
|
|
768
768
|
), { addFrame: g, setSelectedFrameId: j } = z(
|
|
769
769
|
(p) => p.actions
|
|
770
|
-
), { getSelectedSheet: D, setIsDashboardEditing: C, setShowDashboardJSON: L } = z((p) => p.actions), I = D(), { tenantId: O, endUserId: N } =
|
|
770
|
+
), { getSelectedSheet: D, setIsDashboardEditing: C, setShowDashboardJSON: L } = z((p) => p.actions), I = D(), { tenantId: O, endUserId: N } = Os(
|
|
771
771
|
() => ct(s == null ? void 0 : s.accessToken),
|
|
772
772
|
[s == null ? void 0 : s.accessToken]
|
|
773
|
-
), T =
|
|
773
|
+
), T = Os(() => O || N, [O, N]), A = () => {
|
|
774
774
|
if (!i || !I)
|
|
775
775
|
return;
|
|
776
776
|
const p = {
|
|
@@ -808,7 +808,7 @@ function nl() {
|
|
|
808
808
|
template: k,
|
|
809
809
|
filterValues: x
|
|
810
810
|
};
|
|
811
|
-
await
|
|
811
|
+
await Fs(V, s == null ? void 0 : s.accessToken), Ye.success("Lens saved"), f == null || f(p), o(!1);
|
|
812
812
|
}
|
|
813
813
|
return d ? null : /* @__PURE__ */ e.jsxs(
|
|
814
814
|
"div",
|
|
@@ -829,7 +829,7 @@ function nl() {
|
|
|
829
829
|
disabled: !i,
|
|
830
830
|
onClick: A,
|
|
831
831
|
children: [
|
|
832
|
-
/* @__PURE__ */ e.jsx(
|
|
832
|
+
/* @__PURE__ */ e.jsx(Ms, { className: "mr-2 h-4 w-4", strokeWidth: 1.5 }),
|
|
833
833
|
"Frame"
|
|
834
834
|
]
|
|
835
835
|
}
|
|
@@ -907,14 +907,14 @@ function Ue({
|
|
|
907
907
|
if (s === "Schema")
|
|
908
908
|
return /* @__PURE__ */ e.jsx($n, { className: "size-4" });
|
|
909
909
|
if (s === "Table")
|
|
910
|
-
return /* @__PURE__ */ e.jsx(
|
|
910
|
+
return /* @__PURE__ */ e.jsx(_s, { className: "size-4" });
|
|
911
911
|
if (s === "Model")
|
|
912
912
|
return /* @__PURE__ */ e.jsx(kn, { className: "size-4" });
|
|
913
913
|
}
|
|
914
914
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
915
|
-
x && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: i ? /* @__PURE__ */ e.jsxs(
|
|
915
|
+
x && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: i ? /* @__PURE__ */ e.jsxs(qs, { children: [
|
|
916
916
|
/* @__PURE__ */ e.jsx(ma, { children: f() }),
|
|
917
|
-
/* @__PURE__ */ e.jsx(
|
|
917
|
+
/* @__PURE__ */ e.jsx(Rs, { className: "text-xs", align: "start", children: i })
|
|
918
918
|
] }) : f() }),
|
|
919
919
|
/* @__PURE__ */ e.jsxs(fe, { disabled: d, value: y, onValueChange: r, children: [
|
|
920
920
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1007,10 +1007,10 @@ function ll({ column: s }) {
|
|
|
1007
1007
|
)
|
|
1008
1008
|
] });
|
|
1009
1009
|
}
|
|
1010
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1011
|
-
/* @__PURE__ */ e.jsx(
|
|
1010
|
+
return /* @__PURE__ */ e.jsxs(Hs, { openDelay: 0, open: t, onOpenChange: a, children: [
|
|
1011
|
+
/* @__PURE__ */ e.jsx($s, { asChild: !0, children: /* @__PURE__ */ e.jsx(Ma, { className: "invisible size-3.5 cursor-pointer text-foreground/40 group-hover:visible" }) }),
|
|
1012
1012
|
/* @__PURE__ */ e.jsx(
|
|
1013
|
-
|
|
1013
|
+
Ps,
|
|
1014
1014
|
{
|
|
1015
1015
|
align: "center",
|
|
1016
1016
|
className: "w-20 rounded-md p-0 shadow-none",
|
|
@@ -1020,7 +1020,7 @@ function ll({ column: s }) {
|
|
|
1020
1020
|
] });
|
|
1021
1021
|
}
|
|
1022
1022
|
function Ra({ column: s }) {
|
|
1023
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1023
|
+
return /* @__PURE__ */ e.jsxs(qs, { children: [
|
|
1024
1024
|
/* @__PURE__ */ e.jsx(dt, { asChild: !0, children: ut.includes(s.data_type.toLowerCase()) ? (
|
|
1025
1025
|
// <span className=" font-thin">T</span>
|
|
1026
1026
|
/* @__PURE__ */ e.jsx(Qs, { className: "size-3" })
|
|
@@ -1028,7 +1028,7 @@ function Ra({ column: s }) {
|
|
|
1028
1028
|
//
|
|
1029
1029
|
/* @__PURE__ */ e.jsx(An, { className: "size-3" })
|
|
1030
1030
|
) : ht.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(mt, { className: "size-3" }) : xt.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(Wn, { className: "size-3" }) : /* @__PURE__ */ e.jsx(Gn, { className: "size-3" }) }),
|
|
1031
|
-
/* @__PURE__ */ e.jsx(
|
|
1031
|
+
/* @__PURE__ */ e.jsx(Rs, { children: /* @__PURE__ */ e.jsx("p", { className: "font-mono text-xs", children: s.data_type }) })
|
|
1032
1032
|
] });
|
|
1033
1033
|
}
|
|
1034
1034
|
function rl({
|
|
@@ -1099,7 +1099,7 @@ function rl({
|
|
|
1099
1099
|
const v = (V = C == null ? void 0 : C.find(
|
|
1100
1100
|
($) => $.id === x
|
|
1101
1101
|
)) == null ? void 0 : V.name;
|
|
1102
|
-
console.log("modelName", v), x && x !== "none" && (h = `${
|
|
1102
|
+
console.log("modelName", v), x && x !== "none" && (h = `${Ss}.${v}`);
|
|
1103
1103
|
let p = h;
|
|
1104
1104
|
return (($) => /[A-Z]/.test($))(t) && (p = p.split(".").map((B) => `"${B}"`).join(".")), p;
|
|
1105
1105
|
}
|
|
@@ -1164,7 +1164,7 @@ function rl({
|
|
|
1164
1164
|
)
|
|
1165
1165
|
] }),
|
|
1166
1166
|
/* @__PURE__ */ e.jsxs(
|
|
1167
|
-
|
|
1167
|
+
ms,
|
|
1168
1168
|
{
|
|
1169
1169
|
className: "flex-1 basis-0 overflow-y-auto border-b border-t border-muted py-3",
|
|
1170
1170
|
children: [
|
|
@@ -1204,7 +1204,7 @@ function rl({
|
|
|
1204
1204
|
}
|
|
1205
1205
|
function Re(s, t) {
|
|
1206
1206
|
var Pe, ss, as, ts, Be;
|
|
1207
|
-
let a =
|
|
1207
|
+
let a = Os(() => [], []);
|
|
1208
1208
|
const n = Oe().authToken || s, l = u(
|
|
1209
1209
|
(S) => S.selectedConnectionId
|
|
1210
1210
|
), i = u(
|
|
@@ -1400,7 +1400,7 @@ function Re(s, t) {
|
|
|
1400
1400
|
})), Ae = J == null ? void 0 : J.schemas.map((S) => ({
|
|
1401
1401
|
id: S.schema_name,
|
|
1402
1402
|
name: S.schema_name
|
|
1403
|
-
})),
|
|
1403
|
+
})), vs = E == null ? void 0 : E.tables.map((S) => ({
|
|
1404
1404
|
id: S.table_name,
|
|
1405
1405
|
name: S.table_name
|
|
1406
1406
|
}));
|
|
@@ -1417,7 +1417,7 @@ function Re(s, t) {
|
|
|
1417
1417
|
schemaItems: Ae,
|
|
1418
1418
|
isSchemaLoadingOrFetching: ne || w,
|
|
1419
1419
|
isSchemaError: _,
|
|
1420
|
-
tableItems:
|
|
1420
|
+
tableItems: vs,
|
|
1421
1421
|
isTableLoadingOrFetching: M || se,
|
|
1422
1422
|
isTableError: P,
|
|
1423
1423
|
columns: a,
|
|
@@ -1621,10 +1621,10 @@ function ol({
|
|
|
1621
1621
|
setUserInputforAI: a,
|
|
1622
1622
|
setTriggerAIRun: n
|
|
1623
1623
|
}) {
|
|
1624
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1625
|
-
/* @__PURE__ */ e.jsx(
|
|
1626
|
-
/* @__PURE__ */ e.jsx(
|
|
1627
|
-
/* @__PURE__ */ e.jsx(
|
|
1624
|
+
return /* @__PURE__ */ e.jsxs(Hs, { openDelay: 0, children: [
|
|
1625
|
+
/* @__PURE__ */ e.jsx($s, { asChild: !0, children: /* @__PURE__ */ e.jsx(F, { variant: "link", className: "h-5 p-0", children: /* @__PURE__ */ e.jsx(On, { className: "h-4 w-4 text-red-500" }) }) }),
|
|
1626
|
+
/* @__PURE__ */ e.jsx(Ps, { align: "start", className: "min-w-fit max-w-[500px]", children: /* @__PURE__ */ e.jsx("div", { className: "flex justify-between space-x-4", children: /* @__PURE__ */ e.jsxs("div", { className: "flex grow flex-col space-y-2", children: [
|
|
1627
|
+
/* @__PURE__ */ e.jsx(ms, { className: "max-h-[250px] min-h-0 overflow-scroll", children: /* @__PURE__ */ e.jsx("p", { className: "overflow-auto rounded-md bg-muted p-2 text-xs leading-relaxed", children: s }) }),
|
|
1628
1628
|
/* @__PURE__ */ e.jsxs(
|
|
1629
1629
|
F,
|
|
1630
1630
|
{
|
|
@@ -1648,7 +1648,7 @@ function cl({
|
|
|
1648
1648
|
checked: a
|
|
1649
1649
|
}) {
|
|
1650
1650
|
return /* @__PURE__ */ e.jsxs("div", { className: "xbg-red-100 ml-6 flex items-center gap-2", children: [
|
|
1651
|
-
/* @__PURE__ */ e.jsx(
|
|
1651
|
+
/* @__PURE__ */ e.jsx(xs, { checked: a, onCheckedChange: t }),
|
|
1652
1652
|
/* @__PURE__ */ e.jsx("label", { className: "text-xs leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", children: s })
|
|
1653
1653
|
] });
|
|
1654
1654
|
}
|
|
@@ -1671,7 +1671,7 @@ function dl() {
|
|
|
1671
1671
|
function ul() {
|
|
1672
1672
|
const { authToken: s } = Oe(), t = Xe(null), a = u((o) => o.applyFilters), [n, l] = R(""), i = u((o) => o.filterValues), r = u((o) => o.card.sql), c = dl();
|
|
1673
1673
|
return /* @__PURE__ */ e.jsxs(
|
|
1674
|
-
|
|
1674
|
+
Hs,
|
|
1675
1675
|
{
|
|
1676
1676
|
openDelay: 0,
|
|
1677
1677
|
onOpenChange: async (o) => {
|
|
@@ -1690,8 +1690,8 @@ function ul() {
|
|
|
1690
1690
|
console.log(x), x.sql ? (console.log(x.records), l(x.sql)) : l("Error");
|
|
1691
1691
|
},
|
|
1692
1692
|
children: [
|
|
1693
|
-
/* @__PURE__ */ e.jsx(
|
|
1694
|
-
/* @__PURE__ */ e.jsxs(
|
|
1693
|
+
/* @__PURE__ */ e.jsx($s, { asChild: !0, children: a && /* @__PURE__ */ e.jsx("p", { className: "p-0 text-xs hover:cursor-pointer", children: "| Filter Query" }) }),
|
|
1694
|
+
/* @__PURE__ */ e.jsxs(Ps, { align: "end", className: "w-[600px]", children: [
|
|
1695
1695
|
/* @__PURE__ */ e.jsx("div", { className: "flex justify-between space-x-4", children: /* @__PURE__ */ e.jsx("div", { className: "rounded-sm bg-muted p-2", children: /* @__PURE__ */ e.jsxs("code", { ref: t, className: "font-mono text-sm", children: [
|
|
1696
1696
|
n,
|
|
1697
1697
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1903,8 +1903,8 @@ function ml({
|
|
|
1903
1903
|
_
|
|
1904
1904
|
) : /* @__PURE__ */ e.jsx("div", {}, _));
|
|
1905
1905
|
}
|
|
1906
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1907
|
-
/* @__PURE__ */ e.jsx(
|
|
1906
|
+
return /* @__PURE__ */ e.jsxs(Ts, { open: s, onOpenChange: t, children: [
|
|
1907
|
+
/* @__PURE__ */ e.jsx(Ds, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
1908
1908
|
F,
|
|
1909
1909
|
{
|
|
1910
1910
|
size: "sm",
|
|
@@ -1914,13 +1914,13 @@ function ml({
|
|
|
1914
1914
|
}
|
|
1915
1915
|
) }),
|
|
1916
1916
|
/* @__PURE__ */ e.jsxs(
|
|
1917
|
-
|
|
1917
|
+
Ls,
|
|
1918
1918
|
{
|
|
1919
1919
|
className: "flex flex-col justify-between overflow-auto sm:max-w-[425px] md:max-h-[625px] md:min-w-[625px]",
|
|
1920
1920
|
children: [
|
|
1921
|
-
/* @__PURE__ */ e.jsxs(
|
|
1922
|
-
/* @__PURE__ */ e.jsx(
|
|
1923
|
-
/* @__PURE__ */ e.jsx(
|
|
1921
|
+
/* @__PURE__ */ e.jsxs(Es, { children: [
|
|
1922
|
+
/* @__PURE__ */ e.jsx(As, { children: "Assistant" }),
|
|
1923
|
+
/* @__PURE__ */ e.jsx(Vs, { children: "What can I help you with?" })
|
|
1924
1924
|
] }),
|
|
1925
1925
|
/* @__PURE__ */ e.jsx(
|
|
1926
1926
|
"div",
|
|
@@ -2141,7 +2141,7 @@ function Cl() {
|
|
|
2141
2141
|
position: "top-center",
|
|
2142
2142
|
richColors: !0
|
|
2143
2143
|
}), se((ae == null ? void 0 : ae.output) || ""), ae.records.length > 0)) {
|
|
2144
|
-
const { dimensionKeys: b } =
|
|
2144
|
+
const { dimensionKeys: b } = ws(ae.records);
|
|
2145
2145
|
ne(b);
|
|
2146
2146
|
}
|
|
2147
2147
|
}, [
|
|
@@ -2165,7 +2165,7 @@ function Cl() {
|
|
|
2165
2165
|
]), Z(() => {
|
|
2166
2166
|
Ne && (Ae(), Fe(!1));
|
|
2167
2167
|
}, [Ne, Ae, Fe]);
|
|
2168
|
-
function
|
|
2168
|
+
function vs() {
|
|
2169
2169
|
const b = n.getQueryData($e);
|
|
2170
2170
|
s.queryData || t({
|
|
2171
2171
|
queryKey: $e,
|
|
@@ -2209,7 +2209,7 @@ function Cl() {
|
|
|
2209
2209
|
sql: b,
|
|
2210
2210
|
customCfg: I ? C.customCfg : null
|
|
2211
2211
|
}, Ie = k.cards.map(
|
|
2212
|
-
(
|
|
2212
|
+
(Cs) => Cs.id === C.id ? te : Cs
|
|
2213
2213
|
), oe = {
|
|
2214
2214
|
...k,
|
|
2215
2215
|
cards: Ie,
|
|
@@ -2323,7 +2323,7 @@ function Cl() {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
function tt() {
|
|
2325
2325
|
return /* @__PURE__ */ e.jsxs(
|
|
2326
|
-
|
|
2326
|
+
ks,
|
|
2327
2327
|
{
|
|
2328
2328
|
className: "flex grow pb-1",
|
|
2329
2329
|
direction: "vertical",
|
|
@@ -2375,7 +2375,7 @@ function Cl() {
|
|
|
2375
2375
|
}
|
|
2376
2376
|
),
|
|
2377
2377
|
r && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2378
|
-
/* @__PURE__ */ e.jsx(
|
|
2378
|
+
/* @__PURE__ */ e.jsx(zs, { withHandle: !0, className: "border" }),
|
|
2379
2379
|
/* @__PURE__ */ e.jsxs(
|
|
2380
2380
|
Ve,
|
|
2381
2381
|
{
|
|
@@ -2481,7 +2481,7 @@ function Cl() {
|
|
|
2481
2481
|
/* @__PURE__ */ e.jsxs(
|
|
2482
2482
|
F,
|
|
2483
2483
|
{
|
|
2484
|
-
onClick:
|
|
2484
|
+
onClick: vs,
|
|
2485
2485
|
className: "",
|
|
2486
2486
|
size: "sm",
|
|
2487
2487
|
variant: "outline",
|
|
@@ -2581,19 +2581,19 @@ function Nl({ data: s }) {
|
|
|
2581
2581
|
}
|
|
2582
2582
|
});
|
|
2583
2583
|
return /* @__PURE__ */ e.jsxs(It, { children: [
|
|
2584
|
-
/* @__PURE__ */ e.jsx(Tt, { children: i.getHeaderGroups().map((c) => /* @__PURE__ */ e.jsx(
|
|
2584
|
+
/* @__PURE__ */ e.jsx(Tt, { children: i.getHeaderGroups().map((c) => /* @__PURE__ */ e.jsx(Ns, { children: c.headers.map((o) => /* @__PURE__ */ e.jsx(Dt, { className: "sticky top-0 bg-muted", children: o.isPlaceholder ? null : Zs(
|
|
2585
2585
|
o.column.columnDef.header,
|
|
2586
2586
|
o.getContext()
|
|
2587
2587
|
) }, o.id)) }, c.id)) }),
|
|
2588
2588
|
/* @__PURE__ */ e.jsx(Mt, { children: (r = i.getRowModel().rows) != null && r.length ? i.getRowModel().rows.map((c) => /* @__PURE__ */ e.jsx(
|
|
2589
|
-
|
|
2589
|
+
Ns,
|
|
2590
2590
|
{
|
|
2591
2591
|
className: "whitespace-nowrap py-2",
|
|
2592
2592
|
"data-state": c.getIsSelected() && "selected",
|
|
2593
2593
|
children: c.getVisibleCells().map((o) => /* @__PURE__ */ e.jsx(ea, { children: Zs(o.column.columnDef.cell, o.getContext()) }, o.id))
|
|
2594
2594
|
},
|
|
2595
2595
|
c.id
|
|
2596
|
-
)) : /* @__PURE__ */ e.jsx(
|
|
2596
|
+
)) : /* @__PURE__ */ e.jsx(Ns, { children: /* @__PURE__ */ e.jsx(ea, { colSpan: l.length, className: "h-24 text-center", children: "No results." }) }) })
|
|
2597
2597
|
] });
|
|
2598
2598
|
}
|
|
2599
2599
|
function Sl({ card: s }) {
|
|
@@ -2660,7 +2660,7 @@ function Pa({
|
|
|
2660
2660
|
var m, g;
|
|
2661
2661
|
const a = u((j) => j.card), n = ((m = a.customCardPreferences) == null ? void 0 : m.showCardHeader) ?? !0, l = u((j) => j.frame), i = z((j) => j.dashboard.filters);
|
|
2662
2662
|
u((j) => j.actions.setRunSql);
|
|
2663
|
-
const { updateFilter: r } =
|
|
2663
|
+
const { updateFilter: r } = Is(), c = i == null ? void 0 : i.find((j) => j.id === l.filterId), { data: o } = qe(a), { setCard: x } = ce(), { data: d } = Bs(a);
|
|
2664
2664
|
if (!a.id)
|
|
2665
2665
|
return null;
|
|
2666
2666
|
let y;
|
|
@@ -2784,8 +2784,8 @@ function wl() {
|
|
|
2784
2784
|
}
|
|
2785
2785
|
return a ? (N = D(JSON.parse(a)), N) : "";
|
|
2786
2786
|
}
|
|
2787
|
-
return /* @__PURE__ */ e.jsxs(
|
|
2788
|
-
/* @__PURE__ */ e.jsx(
|
|
2787
|
+
return /* @__PURE__ */ e.jsxs(Ts, { open: s, onOpenChange: t, children: [
|
|
2788
|
+
/* @__PURE__ */ e.jsx(Ds, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
2789
2789
|
F,
|
|
2790
2790
|
{
|
|
2791
2791
|
onClick: C,
|
|
@@ -2796,14 +2796,14 @@ function wl() {
|
|
|
2796
2796
|
}
|
|
2797
2797
|
) }),
|
|
2798
2798
|
/* @__PURE__ */ e.jsxs(
|
|
2799
|
-
|
|
2799
|
+
Ls,
|
|
2800
2800
|
{
|
|
2801
2801
|
className: "max-h-[70vh] min-h-[70vh] overflow-auto sm:min-w-[900px] lg:min-w-[1200px]",
|
|
2802
2802
|
children: [
|
|
2803
|
-
/* @__PURE__ */ e.jsxs(
|
|
2803
|
+
/* @__PURE__ */ e.jsxs(Es, { className: "", children: [
|
|
2804
2804
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2805
|
-
/* @__PURE__ */ e.jsx(
|
|
2806
|
-
/* @__PURE__ */ e.jsxs(
|
|
2805
|
+
/* @__PURE__ */ e.jsx(As, { children: "Customize Card" }),
|
|
2806
|
+
/* @__PURE__ */ e.jsxs(qs, { children: [
|
|
2807
2807
|
/* @__PURE__ */ e.jsx(ma, { children: /* @__PURE__ */ e.jsx(
|
|
2808
2808
|
La,
|
|
2809
2809
|
{
|
|
@@ -2813,10 +2813,10 @@ function wl() {
|
|
|
2813
2813
|
className: "size-3 cursor-pointer text-muted-foreground/70 transition-colors hover:text-muted-foreground"
|
|
2814
2814
|
}
|
|
2815
2815
|
) }),
|
|
2816
|
-
/* @__PURE__ */ e.jsx(
|
|
2816
|
+
/* @__PURE__ */ e.jsx(Rs, { side: "right", align: "center", children: /* @__PURE__ */ e.jsx("p", { className: "text-xs", children: "Copy Card ID" }) })
|
|
2817
2817
|
] })
|
|
2818
2818
|
] }),
|
|
2819
|
-
/* @__PURE__ */ e.jsxs(
|
|
2819
|
+
/* @__PURE__ */ e.jsxs(Vs, { children: [
|
|
2820
2820
|
"See the configuration options and documentation",
|
|
2821
2821
|
/* @__PURE__ */ e.jsx(
|
|
2822
2822
|
"a",
|
|
@@ -2830,7 +2830,7 @@ function wl() {
|
|
|
2830
2830
|
] })
|
|
2831
2831
|
] }),
|
|
2832
2832
|
/* @__PURE__ */ e.jsxs("div", { className: "flex grow gap-2", children: [
|
|
2833
|
-
/* @__PURE__ */ e.jsx(
|
|
2833
|
+
/* @__PURE__ */ e.jsx(ps, { FallbackComponent: Na, children: /* @__PURE__ */ e.jsx(Pa, { className: "w-1/2 rounded shadow-none" }) }),
|
|
2834
2834
|
/* @__PURE__ */ e.jsxs(Sa, { defaultValue: "custom-config", className: "flex w-1/2 flex-col", children: [
|
|
2835
2835
|
/* @__PURE__ */ e.jsxs(wa, { className: "justify-start rounded-sm rounded-b-none border border-b-0", children: [
|
|
2836
2836
|
/* @__PURE__ */ e.jsxs(is, { value: "custom-config", children: [
|
|
@@ -2962,7 +2962,7 @@ function Xa(s) {
|
|
|
2962
2962
|
const [t, a] = R(null);
|
|
2963
2963
|
return Z(() => {
|
|
2964
2964
|
s && (async () => {
|
|
2965
|
-
const i = (await import("./lucide-react-
|
|
2965
|
+
const i = (await import("./lucide-react-alNLff4L.js"))[s];
|
|
2966
2966
|
a(i);
|
|
2967
2967
|
})();
|
|
2968
2968
|
}, [s]), t;
|
|
@@ -3026,8 +3026,8 @@ function Ol() {
|
|
|
3026
3026
|
icon: m.icon
|
|
3027
3027
|
}), t(!1);
|
|
3028
3028
|
}
|
|
3029
|
-
return /* @__PURE__ */ e.jsxs(
|
|
3030
|
-
/* @__PURE__ */ e.jsx(
|
|
3029
|
+
return /* @__PURE__ */ e.jsxs(fs, { open: s, onOpenChange: t, children: [
|
|
3030
|
+
/* @__PURE__ */ e.jsx(gs, { asChild: !0, children: /* @__PURE__ */ e.jsx(F, { size: "sm", variant: "outline", children: /* @__PURE__ */ e.jsx(
|
|
3031
3031
|
Fl,
|
|
3032
3032
|
{
|
|
3033
3033
|
className: "h-4 w-4",
|
|
@@ -3036,7 +3036,7 @@ function Ol() {
|
|
|
3036
3036
|
componentName: (y = a.customCardPreferences) == null ? void 0 : y.componentName
|
|
3037
3037
|
}
|
|
3038
3038
|
) }) }),
|
|
3039
|
-
/* @__PURE__ */ e.jsxs(
|
|
3039
|
+
/* @__PURE__ */ e.jsxs(js, { className: "w-50", children: [
|
|
3040
3040
|
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-4 place-items-center", children: [
|
|
3041
3041
|
/* @__PURE__ */ e.jsx(
|
|
3042
3042
|
F,
|
|
@@ -3146,7 +3146,7 @@ function Ol() {
|
|
|
3146
3146
|
{
|
|
3147
3147
|
onClick: () => x("table"),
|
|
3148
3148
|
variant: "ghost",
|
|
3149
|
-
children: /* @__PURE__ */ e.jsx(
|
|
3149
|
+
children: /* @__PURE__ */ e.jsx(_s, { className: "size-5" })
|
|
3150
3150
|
}
|
|
3151
3151
|
),
|
|
3152
3152
|
/* @__PURE__ */ e.jsx(
|
|
@@ -3227,7 +3227,7 @@ function Fl({
|
|
|
3227
3227
|
case "custom":
|
|
3228
3228
|
return a && l ? /* @__PURE__ */ e.jsx(l, { className: t }) : n ? n == null ? void 0 : n.charAt(0).toUpperCase() : /* @__PURE__ */ e.jsx(Va, { className: t });
|
|
3229
3229
|
default:
|
|
3230
|
-
return /* @__PURE__ */ e.jsx(
|
|
3230
|
+
return /* @__PURE__ */ e.jsx(_s, { className: t });
|
|
3231
3231
|
}
|
|
3232
3232
|
}
|
|
3233
3233
|
function Il() {
|
|
@@ -3401,7 +3401,7 @@ function ra() {
|
|
|
3401
3401
|
className: "ml-1 h-8 px-2 hover:bg-muted-foreground/50",
|
|
3402
3402
|
variant: "outline",
|
|
3403
3403
|
onClick: m,
|
|
3404
|
-
children: /* @__PURE__ */ e.jsx(
|
|
3404
|
+
children: /* @__PURE__ */ e.jsx(Ms, { className: "h-4 w-4" })
|
|
3405
3405
|
}
|
|
3406
3406
|
),
|
|
3407
3407
|
/* @__PURE__ */ e.jsx(
|
|
@@ -3419,14 +3419,14 @@ function ra() {
|
|
|
3419
3419
|
);
|
|
3420
3420
|
}
|
|
3421
3421
|
function A() {
|
|
3422
|
-
return t.type === "kpi" ? /* @__PURE__ */ e.jsx("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e.jsx(Yt, { card: t, data: d == null ? void 0 : d.records }) }) }) : t.type === "text" ? /* @__PURE__ */ e.jsx("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e.jsx(
|
|
3422
|
+
return t.type === "kpi" ? /* @__PURE__ */ e.jsx("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e.jsx(Yt, { card: t, data: d == null ? void 0 : d.records }) }) }) : t.type === "text" ? /* @__PURE__ */ e.jsx("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e.jsx(ms, { className: "mx-3 my-6 h-[300px] overflow-y-auto break-words px-3", children: /* @__PURE__ */ e.jsx(
|
|
3423
3423
|
Xt,
|
|
3424
3424
|
{
|
|
3425
3425
|
isLoading: n,
|
|
3426
3426
|
card: t,
|
|
3427
3427
|
data: d == null ? void 0 : d.records
|
|
3428
3428
|
}
|
|
3429
|
-
) }) }) : /* @__PURE__ */ e.jsx(
|
|
3429
|
+
) }) }) }) : /* @__PURE__ */ e.jsx(ps, { FallbackComponent: Na, children: /* @__PURE__ */ e.jsx(Pa, { className: "grow border-none shadow-none" }) });
|
|
3430
3430
|
}
|
|
3431
3431
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex h-full flex-col py-3", children: [
|
|
3432
3432
|
(y || f) && /* @__PURE__ */ e.jsx(Ze, { className: "absolute bottom-0 left-0 right-0 top-0 z-50 m-auto h-10 w-10 animate-spin text-foreground/10" }),
|
|
@@ -3485,7 +3485,7 @@ function Ml({
|
|
|
3485
3485
|
onValueChange: a
|
|
3486
3486
|
}) {
|
|
3487
3487
|
return /* @__PURE__ */ e.jsx(
|
|
3488
|
-
|
|
3488
|
+
bs,
|
|
3489
3489
|
{
|
|
3490
3490
|
value: t,
|
|
3491
3491
|
onValueChange: a,
|
|
@@ -3799,7 +3799,7 @@ function Me() {
|
|
|
3799
3799
|
children: /* @__PURE__ */ e.jsxs("div", { className: "grow", children: [
|
|
3800
3800
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-2 py-2", children: [
|
|
3801
3801
|
/* @__PURE__ */ e.jsx(
|
|
3802
|
-
|
|
3802
|
+
xs,
|
|
3803
3803
|
{
|
|
3804
3804
|
checked: !!((f = a == null ? void 0 : a.onClickFilter) != null && f.find(
|
|
3805
3805
|
(g) => g.columnIndex === y
|
|
@@ -3837,7 +3837,7 @@ function Me() {
|
|
|
3837
3837
|
})
|
|
3838
3838
|
] });
|
|
3839
3839
|
}
|
|
3840
|
-
function
|
|
3840
|
+
function ys() {
|
|
3841
3841
|
var r, c, o;
|
|
3842
3842
|
const s = u((x) => x.card.preferences), t = u(
|
|
3843
3843
|
(x) => x.card.cfg
|
|
@@ -3847,7 +3847,7 @@ function bs() {
|
|
|
3847
3847
|
l(x);
|
|
3848
3848
|
}
|
|
3849
3849
|
return /* @__PURE__ */ e.jsxs(
|
|
3850
|
-
|
|
3850
|
+
bs,
|
|
3851
3851
|
{
|
|
3852
3852
|
value: ((c = s == null ? void 0 : s.chartOptions) == null ? void 0 : c.indexAxis) || ((o = t == null ? void 0 : t.options) == null ? void 0 : o.indexAxis) || "x",
|
|
3853
3853
|
onValueChange: i,
|
|
@@ -4041,9 +4041,9 @@ function et() {
|
|
|
4041
4041
|
};
|
|
4042
4042
|
h(se);
|
|
4043
4043
|
}
|
|
4044
|
-
return /* @__PURE__ */ e.jsxs(
|
|
4045
|
-
/* @__PURE__ */ e.jsx(
|
|
4046
|
-
/* @__PURE__ */ e.jsx(
|
|
4044
|
+
return /* @__PURE__ */ e.jsxs(fs, { onOpenChange: (E) => t(E), children: [
|
|
4045
|
+
/* @__PURE__ */ e.jsx(gs, { asChild: !0, children: /* @__PURE__ */ e.jsx(sn, { className: "size-4 cursor-pointer text-muted-foreground hover:text-foreground" }) }),
|
|
4046
|
+
/* @__PURE__ */ e.jsx(js, { align: "center", className: "max-w-65", children: /* @__PURE__ */ e.jsxs("div", { className: "grid gap-4", children: [
|
|
4047
4047
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
4048
4048
|
/* @__PURE__ */ e.jsx("h4", { className: "font-medium leading-none", children: "Scale Options" }),
|
|
4049
4049
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground", children: "Set the scale for the number axis" })
|
|
@@ -4071,7 +4071,7 @@ function et() {
|
|
|
4071
4071
|
i == "linear" && /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-3 items-center gap-2 py-1", children: [
|
|
4072
4072
|
/* @__PURE__ */ e.jsx(H, { htmlFor: "scale-option", children: "Setup" }),
|
|
4073
4073
|
/* @__PURE__ */ e.jsxs(
|
|
4074
|
-
|
|
4074
|
+
bs,
|
|
4075
4075
|
{
|
|
4076
4076
|
disabled: k,
|
|
4077
4077
|
id: "scale-option",
|
|
@@ -4152,9 +4152,9 @@ function El({ idx: s }) {
|
|
|
4152
4152
|
});
|
|
4153
4153
|
}
|
|
4154
4154
|
}
|
|
4155
|
-
return /* @__PURE__ */ e.jsxs(
|
|
4156
|
-
/* @__PURE__ */ e.jsx(
|
|
4157
|
-
/* @__PURE__ */ e.jsx(
|
|
4155
|
+
return /* @__PURE__ */ e.jsxs(fs, { children: [
|
|
4156
|
+
/* @__PURE__ */ e.jsx(gs, { children: /* @__PURE__ */ e.jsx(Jn, { className: "invisible size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible" }) }),
|
|
4157
|
+
/* @__PURE__ */ e.jsx(js, { className: "w-fit p-1", children: /* @__PURE__ */ e.jsxs("div", { className: "flex gap-1", children: [
|
|
4158
4158
|
/* @__PURE__ */ e.jsx(
|
|
4159
4159
|
F,
|
|
4160
4160
|
{
|
|
@@ -4229,7 +4229,7 @@ function st() {
|
|
|
4229
4229
|
keys: i,
|
|
4230
4230
|
metricKeys: r,
|
|
4231
4231
|
dimensionKeys: c
|
|
4232
|
-
} =
|
|
4232
|
+
} = ws((a == null ? void 0 : a.records) || []);
|
|
4233
4233
|
let o = r;
|
|
4234
4234
|
if (["stackedBar", "stackedLine"].includes(s.type)) {
|
|
4235
4235
|
const x = ln({
|
|
@@ -4237,7 +4237,7 @@ function st() {
|
|
|
4237
4237
|
groupKey: c[0],
|
|
4238
4238
|
pivotKey: c[1],
|
|
4239
4239
|
valueKey: o[0]
|
|
4240
|
-
}), { metricKeys: d } =
|
|
4240
|
+
}), { metricKeys: d } = ws(x);
|
|
4241
4241
|
o = d;
|
|
4242
4242
|
}
|
|
4243
4243
|
return i.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
@@ -4338,7 +4338,7 @@ function at() {
|
|
|
4338
4338
|
const O = (T = x == null ? void 0 : x.find(
|
|
4339
4339
|
(A) => A.id === t
|
|
4340
4340
|
)) == null ? void 0 : T.name;
|
|
4341
|
-
t && t !== "none" && (I = `${
|
|
4341
|
+
t && t !== "none" && (I = `${Ss}.${O}.${g}`, L = `${Ss}.${O}`);
|
|
4342
4342
|
const N = i == null ? void 0 : i.find(
|
|
4343
4343
|
(A) => A.column === I && A.table === C && (A.database === j || A.database === a)
|
|
4344
4344
|
);
|
|
@@ -4408,8 +4408,8 @@ function Vl({
|
|
|
4408
4408
|
}) {
|
|
4409
4409
|
var r;
|
|
4410
4410
|
const [a, n] = ta.useState(!1), [l, i] = ta.useState("");
|
|
4411
|
-
return /* @__PURE__ */ e.jsxs(
|
|
4412
|
-
/* @__PURE__ */ e.jsx(
|
|
4411
|
+
return /* @__PURE__ */ e.jsxs(fs, { open: a, onOpenChange: n, children: [
|
|
4412
|
+
/* @__PURE__ */ e.jsx(gs, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
4413
4413
|
F,
|
|
4414
4414
|
{
|
|
4415
4415
|
size: "sm",
|
|
@@ -4423,7 +4423,7 @@ function Vl({
|
|
|
4423
4423
|
]
|
|
4424
4424
|
}
|
|
4425
4425
|
) }),
|
|
4426
|
-
/* @__PURE__ */ e.jsx(
|
|
4426
|
+
/* @__PURE__ */ e.jsx(js, { className: "w-[200px] p-0", children: /* @__PURE__ */ e.jsxs(cn, { children: [
|
|
4427
4427
|
/* @__PURE__ */ e.jsx(dn, { placeholder: "Search column", className: "h-9" }),
|
|
4428
4428
|
/* @__PURE__ */ e.jsxs(un, { children: [
|
|
4429
4429
|
/* @__PURE__ */ e.jsx(hn, { children: "No framework found." }),
|
|
@@ -4486,7 +4486,7 @@ function ql({
|
|
|
4486
4486
|
/* @__PURE__ */ e.jsxs(U, { value: "item-2", children: [
|
|
4487
4487
|
/* @__PURE__ */ e.jsx(G, { children: "Settings" }),
|
|
4488
4488
|
/* @__PURE__ */ e.jsxs(K, { className: "space-y-4 px-2", children: [
|
|
4489
|
-
/* @__PURE__ */ e.jsx(
|
|
4489
|
+
/* @__PURE__ */ e.jsx(ys, {}),
|
|
4490
4490
|
/* @__PURE__ */ e.jsx(st, {})
|
|
4491
4491
|
] })
|
|
4492
4492
|
] }),
|
|
@@ -4633,7 +4633,7 @@ function $l() {
|
|
|
4633
4633
|
children: Pl(s)
|
|
4634
4634
|
}
|
|
4635
4635
|
),
|
|
4636
|
-
/* @__PURE__ */ e.jsx("section", { className: "", children: ["line", "bar"].includes(s) && /* @__PURE__ */ e.jsx(
|
|
4636
|
+
/* @__PURE__ */ e.jsx("section", { className: "", children: ["line", "bar"].includes(s) && /* @__PURE__ */ e.jsx(ys, {}) }),
|
|
4637
4637
|
!["kpi"].includes(s) && /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
4638
4638
|
/* @__PURE__ */ e.jsx(Js, {}),
|
|
4639
4639
|
/* @__PURE__ */ e.jsx(Me, {}),
|
|
@@ -4776,7 +4776,7 @@ function Bl() {
|
|
|
4776
4776
|
return /* @__PURE__ */ e.jsxs("div", { children: [
|
|
4777
4777
|
/* @__PURE__ */ e.jsxs("div", { className: "mb-3 flex items-center gap-2", children: [
|
|
4778
4778
|
/* @__PURE__ */ e.jsx(
|
|
4779
|
-
|
|
4779
|
+
xs,
|
|
4780
4780
|
{
|
|
4781
4781
|
checked: !!((o = s == null ? void 0 : s.formatNumber) != null && o.enabled),
|
|
4782
4782
|
onCheckedChange: (m) => {
|
|
@@ -5253,7 +5253,7 @@ function Wl() {
|
|
|
5253
5253
|
});
|
|
5254
5254
|
}
|
|
5255
5255
|
return /* @__PURE__ */ e.jsxs(
|
|
5256
|
-
|
|
5256
|
+
bs,
|
|
5257
5257
|
{
|
|
5258
5258
|
value: (n = s == null ? void 0 : s.textVisualOptions) != null && n.isDynamicText ? "dynamic" : "static",
|
|
5259
5259
|
onValueChange: a,
|
|
@@ -5305,7 +5305,7 @@ function ls({
|
|
|
5305
5305
|
/* @__PURE__ */ e.jsxs(U, { value: "item-2", children: [
|
|
5306
5306
|
/* @__PURE__ */ e.jsx(G, { children: "Settings" }),
|
|
5307
5307
|
/* @__PURE__ */ e.jsxs(K, { className: "space-y-4 px-2", children: [
|
|
5308
|
-
s === "range" && /* @__PURE__ */ e.jsx(
|
|
5308
|
+
s === "range" && /* @__PURE__ */ e.jsx(ys, {}),
|
|
5309
5309
|
s !== "text" && /* @__PURE__ */ e.jsx(Js, {}),
|
|
5310
5310
|
s === "text" && /* @__PURE__ */ e.jsx(Wl, {})
|
|
5311
5311
|
] })
|
|
@@ -5385,7 +5385,7 @@ function Yl() {
|
|
|
5385
5385
|
/* @__PURE__ */ e.jsxs(U, { value: "item-2", children: [
|
|
5386
5386
|
/* @__PURE__ */ e.jsx(G, { children: "Settings" }),
|
|
5387
5387
|
/* @__PURE__ */ e.jsxs(K, { className: "space-y-4 px-2", children: [
|
|
5388
|
-
/* @__PURE__ */ e.jsx(
|
|
5388
|
+
/* @__PURE__ */ e.jsx(ys, {}),
|
|
5389
5389
|
a(),
|
|
5390
5390
|
/* @__PURE__ */ e.jsx(st, {})
|
|
5391
5391
|
] })
|
|
@@ -5420,7 +5420,7 @@ function Xl({}) {
|
|
|
5420
5420
|
] })
|
|
5421
5421
|
] }) }),
|
|
5422
5422
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
5423
|
-
/* @__PURE__ */ e.jsx(
|
|
5423
|
+
/* @__PURE__ */ e.jsx(xs, { onCheckedChange: a, id: "allow-download" }),
|
|
5424
5424
|
/* @__PURE__ */ e.jsx(
|
|
5425
5425
|
"label",
|
|
5426
5426
|
{
|
|
@@ -5524,12 +5524,12 @@ function ar() {
|
|
|
5524
5524
|
return /* @__PURE__ */ e.jsx($l, {});
|
|
5525
5525
|
}
|
|
5526
5526
|
}
|
|
5527
|
-
return /* @__PURE__ */ e.jsx(
|
|
5527
|
+
return /* @__PURE__ */ e.jsx(ms, { className: "h-full w-full text-sm", children: t(s) });
|
|
5528
5528
|
}
|
|
5529
5529
|
function tr() {
|
|
5530
5530
|
const s = u((t) => t.isShowingVisual);
|
|
5531
5531
|
return /* @__PURE__ */ e.jsxs(
|
|
5532
|
-
|
|
5532
|
+
ks,
|
|
5533
5533
|
{
|
|
5534
5534
|
direction: "vertical",
|
|
5535
5535
|
className: "min-h-[250px] min-w-full max-w-lg",
|
|
@@ -5544,7 +5544,7 @@ function tr() {
|
|
|
5544
5544
|
children: /* @__PURE__ */ e.jsx(Cl, {})
|
|
5545
5545
|
}
|
|
5546
5546
|
),
|
|
5547
|
-
/* @__PURE__ */ e.jsx(
|
|
5547
|
+
/* @__PURE__ */ e.jsx(zs, { withHandle: !0, className: "border" }),
|
|
5548
5548
|
/* @__PURE__ */ e.jsx(
|
|
5549
5549
|
Ve,
|
|
5550
5550
|
{
|
|
@@ -5552,7 +5552,7 @@ function tr() {
|
|
|
5552
5552
|
role: "visual-section",
|
|
5553
5553
|
minSize: 0,
|
|
5554
5554
|
defaultSize: 60,
|
|
5555
|
-
children: s ? /* @__PURE__ */ e.jsxs(
|
|
5555
|
+
children: s ? /* @__PURE__ */ e.jsxs(ks, { direction: "horizontal", children: [
|
|
5556
5556
|
/* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(
|
|
5557
5557
|
Ve,
|
|
5558
5558
|
{
|
|
@@ -5563,7 +5563,7 @@ function tr() {
|
|
|
5563
5563
|
children: /* @__PURE__ */ e.jsx(ar, {})
|
|
5564
5564
|
}
|
|
5565
5565
|
) }),
|
|
5566
|
-
/* @__PURE__ */ e.jsx(
|
|
5566
|
+
/* @__PURE__ */ e.jsx(zs, { className: "border" }),
|
|
5567
5567
|
/* @__PURE__ */ e.jsx(Ve, { minSize: 40, defaultSize: 75, maxSize: 100, children: /* @__PURE__ */ e.jsx(ra, {}) })
|
|
5568
5568
|
] }) : /* @__PURE__ */ e.jsx(ra, {})
|
|
5569
5569
|
}
|
|
@@ -5579,7 +5579,7 @@ function nr({ authToken: s, onSave: t, onClose: a }) {
|
|
|
5579
5579
|
t && n(t), a && l(a);
|
|
5580
5580
|
}, [t, n, a, l]), Z(() => {
|
|
5581
5581
|
s && s.accessToken && i(s);
|
|
5582
|
-
}, [s, i]), /* @__PURE__ */ e.jsx(
|
|
5582
|
+
}, [s, i]), /* @__PURE__ */ e.jsx(ps, { FallbackComponent: Fa, children: /* @__PURE__ */ e.jsxs(
|
|
5583
5583
|
fn,
|
|
5584
5584
|
{
|
|
5585
5585
|
style: {
|
|
@@ -5745,7 +5745,7 @@ function mr({
|
|
|
5745
5745
|
showFooter: t = !0,
|
|
5746
5746
|
...a
|
|
5747
5747
|
}) {
|
|
5748
|
-
return /* @__PURE__ */ e.jsx(
|
|
5748
|
+
return /* @__PURE__ */ e.jsx(ps, { FallbackComponent: Fa, children: /* @__PURE__ */ e.jsxs(vn, { dashboardProps: a, children: [
|
|
5749
5749
|
/* @__PURE__ */ e.jsx(Cn, {}),
|
|
5750
5750
|
/* @__PURE__ */ e.jsxs(Nn, { children: [
|
|
5751
5751
|
/* @__PURE__ */ e.jsx(cr, {}),
|