react-semaphor 0.0.439 → 0.0.440
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-BbpuKZcd.js → index-B5cVrMjI.js} +6911 -6914
- package/dist/chunks/{index-C3CSs3d8.js → index-DZVUg4jE.js} +82 -82
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +91 -88
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as A, p as nn, u as _, a as rt, b as Ve, d as Rn, e as jn, B as ee, P as mt, f as Bn, g as Pn, h as Hn, i as Gn, L as U, I as he, j as Un, k as $n, l as Qn, m as X, n as Kn, o as Jn, q as Wn, r as ks, s as In, t as G, C as an, v as Ms, S as ke, w as Me, x as De, y as Ie, z as Fe, A as Oe, E as ue, T as Yn, F as
|
|
2
|
-
import { D as Go, cs as Uo, cq as $o, cq as Qo, cv as Ko, cu as Jo, ct as Wo, cw as Yo, cx as Zo, cr as Xo, co as ec, cp as tc } from "./chunks/index-
|
|
1
|
+
import { c as A, p as nn, u as _, a as rt, b as Ve, d as Rn, e as jn, B as ee, P as mt, f as Bn, g as Pn, h as Hn, i as Gn, L as U, I as he, j as Un, k as $n, l as Qn, m as X, n as Kn, o as Jn, q as Wn, r as ks, s as In, t as G, C as an, v as Ms, S as ke, w as Me, x as De, y as Ie, z as Fe, A as Oe, E as ue, T as Yn, F as Je, G as We, H as It, J as ze, K as sn, M as Ot, N as rn, O as Tt, Q as Le, R as Zn, U as zt, V as Xn, W as Ae, X as On, Y as Re, Z as f, _ as ea, $ as nt, a0 as bt, a1 as Ds, a2 as ta, a3 as na, a4 as aa, a5 as sa, a6 as ra, a7 as ia, a8 as la, a9 as oa, aa as ca, ab as da, ac as ua, ad as ma, ae as xe, af as Is, ag as Se, ah as $e, ai as we, aj as Os, ak as Ts, al as zs, am as vt, an as Ee, ao as As, ap as xt, aq as Fs, ar as W, as as Ls, at as Es, au as _s, av as Jt, aw as ha, ax as At, ay as Qe, az as pa, aA as Ct, aB as ge, aC as Vs, aD as qs, aE as it, aF as Rs, aG as js, aH as Bs, aI as fa, aJ as Ps, aK as Ft, aL as Hs, aM as Gs, aN as Us, aO as Tn, aP as $s, aQ as Qs, aR as ln, aS as Ce, aT as Ks, aU as Wt, aV as je, aW as pe, aX as Be, aY as Js, aZ as Ws, a_ as Ys, a$ as Zs, b0 as Xs, b1 as Rt, b2 as er, b3 as zn, b4 as tr, b5 as An, b6 as nr, b7 as ar, b8 as sr, b9 as rr, ba as ga, bb as ir, bc as on, bd as ya, be as lr, bf as or, bg as et, bh as cr, bi as dr, bj as ba, bk as ur, bl as mr, bm as hr, bn as pr, bo as fr, bp as Lt, bq as va, br as gr, bs as cn, bt as dn, bu as tt, bv as yt, bw as yr, bx as br, by as vr, bz as un, bA as xa, bB as Ca, bC as Nt, bD as xr, bE as St, bF as Na, bG as Sa, bH as wa, bI as Cr, bJ as Nr, bK as Sr, bL as wr, bM as qe, bN as le, bO as oe, bP as ce, bQ as mn, bR as kr, bS as Mr, bT as Dr, bU as Ir, bV as Fn, bW as ka, bX as Or, bY as Tr, bZ as zr, b_ as Ar, b$ as hn, c0 as Ma, c1 as Da, c2 as pn, c3 as Fr, c4 as Ia, c5 as Oa, c6 as Lr, c7 as Er, c8 as _r, c9 as Vr, ca as qr, cb as Rr, cc as jr, cd as Br, ce as Pr, cf as jt, cg as Ta, ch as Hr, ci as Gr, cj as Ur, ck as $r, cl as Qr, cm as Kr, cn as Jr } from "./chunks/index-B5cVrMjI.js";
|
|
2
|
+
import { D as Go, cs as Uo, cq as $o, cq as Qo, cv as Ko, cu as Jo, ct as Wo, cw as Yo, cx as Zo, cr as Xo, co as ec, cp as tc } from "./chunks/index-B5cVrMjI.js";
|
|
3
3
|
import { jsxs as r, jsx as e, Fragment as ae } from "react/jsx-runtime";
|
|
4
|
-
import * as
|
|
4
|
+
import * as Xe from "react";
|
|
5
5
|
import _e, { useState as J, useMemo as Pe, useEffect as me, useRef as at, useCallback as za, Suspense as Wr } from "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
/**
|
|
@@ -680,7 +680,7 @@ const Ai = A("ListX", [
|
|
|
680
680
|
* This source code is licensed under the ISC license.
|
|
681
681
|
* See the LICENSE file in the root directory of this source tree.
|
|
682
682
|
*/
|
|
683
|
-
const
|
|
683
|
+
const Ke = A("LoaderCircle", [
|
|
684
684
|
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
685
685
|
]);
|
|
686
686
|
/**
|
|
@@ -1273,7 +1273,7 @@ function tl({
|
|
|
1273
1273
|
tooltip: "Download PDF",
|
|
1274
1274
|
className: "h-7 p-2",
|
|
1275
1275
|
onClick: s,
|
|
1276
|
-
children: n ? /* @__PURE__ */ e(
|
|
1276
|
+
children: n ? /* @__PURE__ */ e(Ke, { className: G("size-3.5 animate-spin", t) }) : /* @__PURE__ */ e(Ms, { className: G("size-4", t) })
|
|
1277
1277
|
}
|
|
1278
1278
|
);
|
|
1279
1279
|
}
|
|
@@ -1329,8 +1329,8 @@ function nl({
|
|
|
1329
1329
|
error: o,
|
|
1330
1330
|
isDeleting: l
|
|
1331
1331
|
} = al(), [u, c] = J(""), [h, d] = J(Ln[0].value), [y, x] = J("06:00"), [m, C] = J("");
|
|
1332
|
-
return /* @__PURE__ */ e(Yn, { delayDuration: 0, children: /* @__PURE__ */ r(
|
|
1333
|
-
/* @__PURE__ */ e(
|
|
1332
|
+
return /* @__PURE__ */ e(Yn, { delayDuration: 0, children: /* @__PURE__ */ r(Je, { children: [
|
|
1333
|
+
/* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1334
1334
|
X,
|
|
1335
1335
|
{
|
|
1336
1336
|
tooltip: "Schedule Dashboard",
|
|
@@ -1411,7 +1411,7 @@ function nl({
|
|
|
1411
1411
|
className: "h-8 p-2",
|
|
1412
1412
|
disabled: i === "loading" || !u,
|
|
1413
1413
|
children: [
|
|
1414
|
-
i === "loading" && /* @__PURE__ */ e(
|
|
1414
|
+
i === "loading" && /* @__PURE__ */ e(Ke, { className: "mr-2 size-4 animate-spin" }),
|
|
1415
1415
|
i === "success" && /* @__PURE__ */ e(sn, { className: "mr-2 size-4" }),
|
|
1416
1416
|
i === "error" && /* @__PURE__ */ r(Ot, { children: [
|
|
1417
1417
|
/* @__PURE__ */ e(rn, { children: /* @__PURE__ */ e(Va, { className: "mr-2 size-4 text-destructive" }) }),
|
|
@@ -1451,7 +1451,7 @@ function nl({
|
|
|
1451
1451
|
}
|
|
1452
1452
|
),
|
|
1453
1453
|
/* @__PURE__ */ e(En, { tooltip: `${p.endUserEmail}`, children: /* @__PURE__ */ e(Li, { className: "size-3.5" }) }),
|
|
1454
|
-
l === p.id ? /* @__PURE__ */ e(
|
|
1454
|
+
l === p.id ? /* @__PURE__ */ e(Ke, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ e(
|
|
1455
1455
|
Qi,
|
|
1456
1456
|
{
|
|
1457
1457
|
onClick: () => s(p.id),
|
|
@@ -1566,7 +1566,7 @@ function sl() {
|
|
|
1566
1566
|
if (!o || !S) return;
|
|
1567
1567
|
const M = {
|
|
1568
1568
|
connectionId: l,
|
|
1569
|
-
id:
|
|
1569
|
+
id: nt(),
|
|
1570
1570
|
title: "Title",
|
|
1571
1571
|
description: "Description",
|
|
1572
1572
|
preferences: {
|
|
@@ -1581,7 +1581,7 @@ function sl() {
|
|
|
1581
1581
|
sql: "",
|
|
1582
1582
|
data: []
|
|
1583
1583
|
}, V = {
|
|
1584
|
-
id:
|
|
1584
|
+
id: nt(),
|
|
1585
1585
|
cards: [M],
|
|
1586
1586
|
activeCardId: M.id
|
|
1587
1587
|
};
|
|
@@ -1687,8 +1687,8 @@ function rl({
|
|
|
1687
1687
|
icon: c,
|
|
1688
1688
|
showNone: h = !1
|
|
1689
1689
|
}) {
|
|
1690
|
-
const d =
|
|
1691
|
-
|
|
1690
|
+
const d = Xe.useRef(null), [y, x] = Xe.useState(!1), [m, C] = Xe.useState("100%"), p = h ? [...a || [], { id: "none", name: "None" }] : a;
|
|
1691
|
+
Xe.useLayoutEffect(() => {
|
|
1692
1692
|
d.current && C(d.current.offsetWidth);
|
|
1693
1693
|
}, []);
|
|
1694
1694
|
function v() {
|
|
@@ -1698,8 +1698,8 @@ function rl({
|
|
|
1698
1698
|
function g(N, S) {
|
|
1699
1699
|
s(S), x(!1);
|
|
1700
1700
|
}
|
|
1701
|
-
return /* @__PURE__ */ r(
|
|
1702
|
-
/* @__PURE__ */ e(
|
|
1701
|
+
return /* @__PURE__ */ r(Je, { open: y, onOpenChange: x, children: [
|
|
1702
|
+
/* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ r(
|
|
1703
1703
|
ee,
|
|
1704
1704
|
{
|
|
1705
1705
|
ref: d,
|
|
@@ -2256,7 +2256,7 @@ function Ne(t, a) {
|
|
|
2256
2256
|
function Te(B) {
|
|
2257
2257
|
d(B === "none" ? "" : B), y(""), x(""), B !== "none" && B !== "" && h("");
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function Ze(B) {
|
|
2260
2260
|
c(B);
|
|
2261
2261
|
}
|
|
2262
2262
|
function Et(B) {
|
|
@@ -2326,7 +2326,7 @@ function Ne(t, a) {
|
|
|
2326
2326
|
refetchSchemas: D,
|
|
2327
2327
|
refetchTables: Q,
|
|
2328
2328
|
refetchColumns: de,
|
|
2329
|
-
handleConnectionChange:
|
|
2329
|
+
handleConnectionChange: Ze,
|
|
2330
2330
|
handleDatamodelChange: Et,
|
|
2331
2331
|
handleDatabaseChange: Te,
|
|
2332
2332
|
handleSchemaChange: fe
|
|
@@ -2629,7 +2629,7 @@ function cl() {
|
|
|
2629
2629
|
};
|
|
2630
2630
|
}
|
|
2631
2631
|
function ve(t) {
|
|
2632
|
-
return `${t}-${
|
|
2632
|
+
return `${t}-${nt()}`;
|
|
2633
2633
|
}
|
|
2634
2634
|
function ut(t, a) {
|
|
2635
2635
|
const n = ha(t.replace(/_/g, " "));
|
|
@@ -2882,7 +2882,7 @@ function dl({
|
|
|
2882
2882
|
variant: "secondary",
|
|
2883
2883
|
className: "flex",
|
|
2884
2884
|
children: [
|
|
2885
|
-
s !== "Success" ? /* @__PURE__ */ e(
|
|
2885
|
+
s !== "Success" ? /* @__PURE__ */ e(Ke, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e(Fi, { className: "mr-2 size-4" }),
|
|
2886
2886
|
"Top 10"
|
|
2887
2887
|
]
|
|
2888
2888
|
}
|
|
@@ -2896,7 +2896,7 @@ function dl({
|
|
|
2896
2896
|
variant: "secondary",
|
|
2897
2897
|
className: "w-full",
|
|
2898
2898
|
children: [
|
|
2899
|
-
s !== "Success" ? /* @__PURE__ */ e(
|
|
2899
|
+
s !== "Success" ? /* @__PURE__ */ e(Ke, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e(Qa, { className: "mr-2 size-4" }),
|
|
2900
2900
|
"Count"
|
|
2901
2901
|
]
|
|
2902
2902
|
}
|
|
@@ -2920,8 +2920,8 @@ function dl({
|
|
|
2920
2920
|
},
|
|
2921
2921
|
b.column_name
|
|
2922
2922
|
)) }),
|
|
2923
|
-
/* @__PURE__ */ e(
|
|
2924
|
-
/* @__PURE__ */ e(
|
|
2923
|
+
/* @__PURE__ */ e(Qe, { orientation: "vertical" }),
|
|
2924
|
+
/* @__PURE__ */ e(Qe, { orientation: "horizontal" })
|
|
2925
2925
|
]
|
|
2926
2926
|
}
|
|
2927
2927
|
)
|
|
@@ -2993,7 +2993,7 @@ function es({
|
|
|
2993
2993
|
q();
|
|
2994
2994
|
}, 100)) : x(""), y(ie);
|
|
2995
2995
|
}
|
|
2996
|
-
function
|
|
2996
|
+
function Ze() {
|
|
2997
2997
|
if (!s || b === "S3" || b === "API") return null;
|
|
2998
2998
|
if (!o || o === "none")
|
|
2999
2999
|
return /* @__PURE__ */ e(
|
|
@@ -3098,7 +3098,7 @@ function es({
|
|
|
3098
3098
|
)) == null ? void 0 : ht.type) || ""
|
|
3099
3099
|
}
|
|
3100
3100
|
),
|
|
3101
|
-
|
|
3101
|
+
Ze(),
|
|
3102
3102
|
Et(),
|
|
3103
3103
|
_t(),
|
|
3104
3104
|
Vt(),
|
|
@@ -3922,7 +3922,7 @@ function wl() {
|
|
|
3922
3922
|
className: "shrink-0",
|
|
3923
3923
|
size: "sm",
|
|
3924
3924
|
children: [
|
|
3925
|
-
R || j ? /* @__PURE__ */ e(
|
|
3925
|
+
R || j ? /* @__PURE__ */ e(Ke, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(Js, { className: "mr-2 h-4 w-4" }),
|
|
3926
3926
|
"Run"
|
|
3927
3927
|
]
|
|
3928
3928
|
}
|
|
@@ -4015,28 +4015,31 @@ function kl({ data: t }) {
|
|
|
4015
4015
|
sorting: a
|
|
4016
4016
|
}
|
|
4017
4017
|
});
|
|
4018
|
-
return /* @__PURE__ */
|
|
4019
|
-
/* @__PURE__ */
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
c.
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4018
|
+
return /* @__PURE__ */ r(At, { className: "grow overflow-auto font-mono text-xs text-foreground/95", children: [
|
|
4019
|
+
/* @__PURE__ */ r("table", { className: "w-full", children: [
|
|
4020
|
+
/* @__PURE__ */ e(Xs, { className: "sticky top-0 z-50 h-0 bg-muted", children: o.getHeaderGroups().map((u) => /* @__PURE__ */ e(Rt, { className: "", children: u.headers.map((c) => /* @__PURE__ */ e(
|
|
4021
|
+
er,
|
|
4022
|
+
{
|
|
4023
|
+
className: "h-11 font-semibold text-foreground",
|
|
4024
|
+
children: c.isPlaceholder ? null : zn(
|
|
4025
|
+
c.column.columnDef.header,
|
|
4026
|
+
c.getContext()
|
|
4027
|
+
)
|
|
4028
|
+
},
|
|
4029
|
+
c.id
|
|
4030
|
+
)) }, u.id)) }),
|
|
4031
|
+
/* @__PURE__ */ e(tr, { children: (l = o.getRowModel().rows) != null && l.length ? o.getRowModel().rows.map((u) => /* @__PURE__ */ e(
|
|
4032
|
+
Rt,
|
|
4033
|
+
{
|
|
4034
|
+
className: "h-11 whitespace-nowrap py-2",
|
|
4035
|
+
"data-state": u.getIsSelected() && "selected",
|
|
4036
|
+
children: u.getVisibleCells().map((c) => /* @__PURE__ */ e(An, { className: "py-2", children: zn(c.column.columnDef.cell, c.getContext()) }, c.id))
|
|
4037
|
+
},
|
|
4038
|
+
u.id
|
|
4039
|
+
)) : /* @__PURE__ */ e(Rt, { children: /* @__PURE__ */ e(An, { colSpan: i.length, className: "h-24 text-center", children: "No results." }) }) })
|
|
4040
|
+
] }),
|
|
4041
|
+
/* @__PURE__ */ e(Qe, { orientation: "horizontal" })
|
|
4042
|
+
] });
|
|
4040
4043
|
}
|
|
4041
4044
|
function Ml({ card: t }) {
|
|
4042
4045
|
var N, S, z, k, O, R, j, Y, M, V, Z;
|
|
@@ -4170,7 +4173,7 @@ function cs({
|
|
|
4170
4173
|
if (n.type === "table" && (c != null && c.records) && (c == null ? void 0 : c.records.length) > 0)
|
|
4171
4174
|
return /* @__PURE__ */ r(it, { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: [
|
|
4172
4175
|
/* @__PURE__ */ e(pr, { card: n, data: c == null ? void 0 : c.records }),
|
|
4173
|
-
/* @__PURE__ */ e(
|
|
4176
|
+
/* @__PURE__ */ e(Qe, { orientation: "horizontal" })
|
|
4174
4177
|
] });
|
|
4175
4178
|
}
|
|
4176
4179
|
return /* @__PURE__ */ r(
|
|
@@ -4183,7 +4186,7 @@ function cs({
|
|
|
4183
4186
|
s && /* @__PURE__ */ r(or, { className: "flex flex-row items-start justify-between py-4", children: [
|
|
4184
4187
|
/* @__PURE__ */ r("div", { children: [
|
|
4185
4188
|
/* @__PURE__ */ e(
|
|
4186
|
-
|
|
4189
|
+
et,
|
|
4187
4190
|
{
|
|
4188
4191
|
text: n.title,
|
|
4189
4192
|
onSave: (g) => y({ ...n, title: g }),
|
|
@@ -4192,7 +4195,7 @@ function cs({
|
|
|
4192
4195
|
n.title
|
|
4193
4196
|
),
|
|
4194
4197
|
/* @__PURE__ */ e(
|
|
4195
|
-
|
|
4198
|
+
et,
|
|
4196
4199
|
{
|
|
4197
4200
|
text: n.description || "",
|
|
4198
4201
|
onSave: (g) => y({ ...n, description: g }),
|
|
@@ -4203,7 +4206,7 @@ function cs({
|
|
|
4203
4206
|
] }),
|
|
4204
4207
|
u && /* @__PURE__ */ r("div", { className: "flex items-center gap-3", children: [
|
|
4205
4208
|
/* @__PURE__ */ e(
|
|
4206
|
-
|
|
4209
|
+
et,
|
|
4207
4210
|
{
|
|
4208
4211
|
className: "my-1",
|
|
4209
4212
|
text: u.title || u.column,
|
|
@@ -4268,9 +4271,9 @@ const $t = ({
|
|
|
4268
4271
|
onCodeChange: i
|
|
4269
4272
|
}) => /* @__PURE__ */ r(cn, { defaultValue: "final-config", className: "flex w-1/2 flex-col", children: [
|
|
4270
4273
|
/* @__PURE__ */ r(dn, { className: "justify-start rounded-sm rounded-b-none border border-b-0", children: [
|
|
4271
|
-
/* @__PURE__ */ e(
|
|
4272
|
-
/* @__PURE__ */ e(
|
|
4273
|
-
/* @__PURE__ */ e(
|
|
4274
|
+
/* @__PURE__ */ e(tt, { value: "final-config", children: "Config" }),
|
|
4275
|
+
/* @__PURE__ */ e(tt, { value: "custom-config", children: "Changes" }),
|
|
4276
|
+
/* @__PURE__ */ e(tt, { value: "custom-code", children: "Custom Code" })
|
|
4274
4277
|
] }),
|
|
4275
4278
|
/* @__PURE__ */ e(
|
|
4276
4279
|
yt,
|
|
@@ -4734,8 +4737,8 @@ function Ll({
|
|
|
4734
4737
|
function El() {
|
|
4735
4738
|
var o, l;
|
|
4736
4739
|
const [t, a] = J(!1), n = f((u) => u.card), s = n.type, i = _((u) => u.isVisualEditing);
|
|
4737
|
-
return /* @__PURE__ */ r(
|
|
4738
|
-
/* @__PURE__ */ e(
|
|
4740
|
+
return /* @__PURE__ */ r(Je, { open: t, onOpenChange: a, children: [
|
|
4741
|
+
/* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ e(ee, { size: "sm", variant: i ? "ghost" : "outline", children: /* @__PURE__ */ e(
|
|
4739
4742
|
Ll,
|
|
4740
4743
|
{
|
|
4741
4744
|
className: "size-4",
|
|
@@ -4786,12 +4789,12 @@ function _l() {
|
|
|
4786
4789
|
return (E = L.card) == null ? void 0 : E.type;
|
|
4787
4790
|
}), M = ["pie", "doughnut", "polarArea"].includes(Y);
|
|
4788
4791
|
me(() => {
|
|
4789
|
-
var L, E, se, Q, re, P, ne, K, de, q, te, fe, Te,
|
|
4792
|
+
var L, E, se, Q, re, P, ne, K, de, q, te, fe, Te, Ze;
|
|
4790
4793
|
o(qn(n)), u(
|
|
4791
4794
|
((se = (E = (L = n == null ? void 0 : n.chartOptions) == null ? void 0 : L.scales) == null ? void 0 : E[s]) == null ? void 0 : se.min) === 0 ? 0 : ""
|
|
4792
4795
|
), h(((P = (re = (Q = n == null ? void 0 : n.chartOptions) == null ? void 0 : Q.scales) == null ? void 0 : re[s]) == null ? void 0 : P.max) || ""), m(
|
|
4793
4796
|
((q = (de = (K = (ne = n == null ? void 0 : n.chartOptions) == null ? void 0 : ne.scales) == null ? void 0 : K[s]) == null ? void 0 : de.ticks) == null ? void 0 : q.stepSize) || ""
|
|
4794
|
-
), p(((te = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : te.decimalPlaces) || 0), g(((fe = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : fe.suffix) || ""), S(((Te = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : Te.currency) || ""), k(((
|
|
4797
|
+
), p(((te = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : te.decimalPlaces) || 0), g(((fe = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : fe.suffix) || ""), S(((Te = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : Te.currency) || ""), k(((Ze = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : Ze.locale) || "");
|
|
4795
4798
|
}, [t, n, s]);
|
|
4796
4799
|
function V(L, E) {
|
|
4797
4800
|
return E === "" || /^[0-9\b]+$/.test(E) ? Number(E) : Number(L);
|
|
@@ -4934,8 +4937,8 @@ function _l() {
|
|
|
4934
4937
|
};
|
|
4935
4938
|
R(se);
|
|
4936
4939
|
}
|
|
4937
|
-
return /* @__PURE__ */ r(
|
|
4938
|
-
/* @__PURE__ */ e(
|
|
4940
|
+
return /* @__PURE__ */ r(Je, { onOpenChange: (L) => a(L), children: [
|
|
4941
|
+
/* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ e(X, { tooltip: "Format Number", children: /* @__PURE__ */ e(vi, { className: "size-4" }) }) }),
|
|
4939
4942
|
/* @__PURE__ */ e(un, { align: "end", className: "max-w-65", children: /* @__PURE__ */ r("div", { className: "grid gap-4", children: [
|
|
4940
4943
|
/* @__PURE__ */ r("div", { className: "space-y-2", children: [
|
|
4941
4944
|
/* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Format Options" }),
|
|
@@ -5037,8 +5040,8 @@ function Vl() {
|
|
|
5037
5040
|
align: u
|
|
5038
5041
|
});
|
|
5039
5042
|
};
|
|
5040
|
-
return /* @__PURE__ */ r(
|
|
5041
|
-
/* @__PURE__ */ e(
|
|
5043
|
+
return /* @__PURE__ */ r(Je, { children: [
|
|
5044
|
+
/* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ e(X, { tooltip: "Legend Settings", children: /* @__PURE__ */ e(Oi, { className: "size-4" }) }) }),
|
|
5042
5045
|
/* @__PURE__ */ e(un, { align: "end", className: "w-72", children: /* @__PURE__ */ r("div", { className: "grid gap-4", children: [
|
|
5043
5046
|
/* @__PURE__ */ r("div", { className: "space-y-2", children: [
|
|
5044
5047
|
/* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Legend Options" }),
|
|
@@ -5214,7 +5217,7 @@ function ft() {
|
|
|
5214
5217
|
lastSelectedSchema: a.lastSelectedSchema,
|
|
5215
5218
|
lastSelectedTable: a.lastSelectedTable,
|
|
5216
5219
|
lastSelectedDatamodelId: a.lastSelectedDatamodelId,
|
|
5217
|
-
id:
|
|
5220
|
+
id: nt(),
|
|
5218
5221
|
title: "Title",
|
|
5219
5222
|
description: "Description",
|
|
5220
5223
|
preferences: {
|
|
@@ -5242,7 +5245,7 @@ function ft() {
|
|
|
5242
5245
|
function k() {
|
|
5243
5246
|
const D = {
|
|
5244
5247
|
...a,
|
|
5245
|
-
id:
|
|
5248
|
+
id: nt(),
|
|
5246
5249
|
title: `${a.title} Copy`,
|
|
5247
5250
|
tabTitle: `${a.tabTitle || a.title} Copy`
|
|
5248
5251
|
};
|
|
@@ -5306,14 +5309,14 @@ function ft() {
|
|
|
5306
5309
|
t.cards.map((D) => /* @__PURE__ */ e(yt, { className: "mt-0 grow", value: D.id, children: I() }, D.id)),
|
|
5307
5310
|
/* @__PURE__ */ e(dn, { className: "group mx-4 justify-between overflow-x-auto", children: /* @__PURE__ */ r("div", { className: "flex items-center", children: [
|
|
5308
5311
|
t.cards.map((D, w) => /* @__PURE__ */ e(
|
|
5309
|
-
|
|
5312
|
+
et,
|
|
5310
5313
|
{
|
|
5311
5314
|
text: D.tabTitle || D.title,
|
|
5312
5315
|
onSave: (L) => {
|
|
5313
5316
|
d({ ...a, tabTitle: L }), y({ ...a, tabTitle: L });
|
|
5314
5317
|
},
|
|
5315
5318
|
children: /* @__PURE__ */ r(
|
|
5316
|
-
|
|
5319
|
+
tt,
|
|
5317
5320
|
{
|
|
5318
5321
|
draggable: !0,
|
|
5319
5322
|
onDragStart: (L) => Y(L, w),
|
|
@@ -5393,7 +5396,7 @@ function ft() {
|
|
|
5393
5396
|
{
|
|
5394
5397
|
className: "relative isolate flex h-full flex-col py-2 pb-3",
|
|
5395
5398
|
children: [
|
|
5396
|
-
(v || g) && /* @__PURE__ */ e("div", { className: "absolute bottom-0 left-0 right-0 top-0 z-50 m-auto flex h-10 w-10 items-center justify-center rounded-md bg-muted", children: /* @__PURE__ */ e(
|
|
5399
|
+
(v || g) && /* @__PURE__ */ e("div", { className: "absolute bottom-0 left-0 right-0 top-0 z-50 m-auto flex h-10 w-10 items-center justify-center rounded-md bg-muted", children: /* @__PURE__ */ e(Ke, { className: "h-8 w-8 animate-spin text-muted-foreground" }) }),
|
|
5397
5400
|
/* @__PURE__ */ r(
|
|
5398
5401
|
"div",
|
|
5399
5402
|
{
|
|
@@ -5486,7 +5489,7 @@ function jl() {
|
|
|
5486
5489
|
/* @__PURE__ */ e("div", { className: "sticky top-0 flex max-h-11 min-h-11 grow items-center border-b bg-muted px-3 font-mono text-xs font-semibold text-foreground/70", children: "Python Output" }),
|
|
5487
5490
|
/* @__PURE__ */ r(it, { className: "overflow-y-auto px-2 pt-1 font-mono text-xs text-foreground/90", children: [
|
|
5488
5491
|
/* @__PURE__ */ e("div", { dangerouslySetInnerHTML: { __html: a } }),
|
|
5489
|
-
/* @__PURE__ */ e(
|
|
5492
|
+
/* @__PURE__ */ e(Qe, { orientation: "horizontal" })
|
|
5490
5493
|
] })
|
|
5491
5494
|
] });
|
|
5492
5495
|
}
|
|
@@ -5650,8 +5653,8 @@ function Pl() {
|
|
|
5650
5653
|
value: o,
|
|
5651
5654
|
onValueChange: C,
|
|
5652
5655
|
children: /* @__PURE__ */ r(dn, { className: "h-9 w-full", children: [
|
|
5653
|
-
/* @__PURE__ */ e(
|
|
5654
|
-
/* @__PURE__ */ e(
|
|
5656
|
+
/* @__PURE__ */ e(tt, { className: "h-7 w-full", value: "single", children: "Single Visual" }),
|
|
5657
|
+
/* @__PURE__ */ e(tt, { className: "h-7 w-full", value: "multiple", children: "Multi-Visual" })
|
|
5655
5658
|
] })
|
|
5656
5659
|
}
|
|
5657
5660
|
)
|
|
@@ -5691,7 +5694,7 @@ function Pl() {
|
|
|
5691
5694
|
}
|
|
5692
5695
|
);
|
|
5693
5696
|
}
|
|
5694
|
-
function
|
|
5697
|
+
function Ye() {
|
|
5695
5698
|
const [t, a] = J([]), n = f((h) => h.card.preferences), { setFilterOnClickColumnIndex: s, setCardPreferences: i } = f(
|
|
5696
5699
|
(h) => h.actions
|
|
5697
5700
|
), o = f(
|
|
@@ -5852,8 +5855,8 @@ function Hl({ idx: t }) {
|
|
|
5852
5855
|
});
|
|
5853
5856
|
}
|
|
5854
5857
|
}
|
|
5855
|
-
return /* @__PURE__ */ r(
|
|
5856
|
-
/* @__PURE__ */ e(
|
|
5858
|
+
return /* @__PURE__ */ r(Je, { children: [
|
|
5859
|
+
/* @__PURE__ */ e(We, { children: /* @__PURE__ */ e(Ui, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
|
|
5857
5860
|
/* @__PURE__ */ e(It, { className: "w-fit px-2 py-1", children: /* @__PURE__ */ r("div", { className: "flex gap-1", children: [
|
|
5858
5861
|
/* @__PURE__ */ e(
|
|
5859
5862
|
"button",
|
|
@@ -6080,7 +6083,7 @@ function Cs() {
|
|
|
6080
6083
|
if (O)
|
|
6081
6084
|
c(O.id), u(O.id);
|
|
6082
6085
|
else {
|
|
6083
|
-
const j =
|
|
6086
|
+
const j = nt();
|
|
6084
6087
|
return d === "api" && t ? (l({
|
|
6085
6088
|
location: C,
|
|
6086
6089
|
id: j,
|
|
@@ -6142,9 +6145,9 @@ function Gl({
|
|
|
6142
6145
|
onSelect: a
|
|
6143
6146
|
}) {
|
|
6144
6147
|
var l;
|
|
6145
|
-
const [n, s] =
|
|
6146
|
-
return /* @__PURE__ */ r(
|
|
6147
|
-
/* @__PURE__ */ e(
|
|
6148
|
+
const [n, s] = Xe.useState(!1), [i, o] = Xe.useState("");
|
|
6149
|
+
return /* @__PURE__ */ r(Je, { open: n, onOpenChange: s, children: [
|
|
6150
|
+
/* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ r(
|
|
6148
6151
|
ee,
|
|
6149
6152
|
{
|
|
6150
6153
|
size: "sm",
|
|
@@ -6225,7 +6228,7 @@ function Ul({
|
|
|
6225
6228
|
/* @__PURE__ */ r(le, { value: "item-3", children: [
|
|
6226
6229
|
/* @__PURE__ */ e(oe, { children: "Filters" }),
|
|
6227
6230
|
/* @__PURE__ */ r(ce, { className: "space-y-4 px-2", children: [
|
|
6228
|
-
/* @__PURE__ */ e(
|
|
6231
|
+
/* @__PURE__ */ e(Ye, {}),
|
|
6229
6232
|
/* @__PURE__ */ e(ot, {})
|
|
6230
6233
|
] })
|
|
6231
6234
|
] })
|
|
@@ -6318,7 +6321,7 @@ function $l({
|
|
|
6318
6321
|
/* @__PURE__ */ r(le, { value: "item-3", children: [
|
|
6319
6322
|
/* @__PURE__ */ e(oe, { children: "Filters" }),
|
|
6320
6323
|
/* @__PURE__ */ r(ce, { className: "space-y-4 px-2", children: [
|
|
6321
|
-
/* @__PURE__ */ e(
|
|
6324
|
+
/* @__PURE__ */ e(Ye, {}),
|
|
6322
6325
|
/* @__PURE__ */ e(ot, {})
|
|
6323
6326
|
] })
|
|
6324
6327
|
] })
|
|
@@ -6361,7 +6364,7 @@ function Jl() {
|
|
|
6361
6364
|
),
|
|
6362
6365
|
!["kpi"].includes(t) && /* @__PURE__ */ r("div", { className: "space-y-4", children: [
|
|
6363
6366
|
/* @__PURE__ */ e(Cn, {}),
|
|
6364
|
-
/* @__PURE__ */ e(
|
|
6367
|
+
/* @__PURE__ */ e(Ye, {}),
|
|
6365
6368
|
/* @__PURE__ */ e(ot, {})
|
|
6366
6369
|
] })
|
|
6367
6370
|
] });
|
|
@@ -6983,7 +6986,7 @@ function no() {
|
|
|
6983
6986
|
)
|
|
6984
6987
|
] }) }),
|
|
6985
6988
|
/* @__PURE__ */ e(Le, { className: "my-4" }),
|
|
6986
|
-
/* @__PURE__ */ e(
|
|
6989
|
+
/* @__PURE__ */ e(Ye, {})
|
|
6987
6990
|
] });
|
|
6988
6991
|
}
|
|
6989
6992
|
function ao() {
|
|
@@ -7058,7 +7061,7 @@ function gt({
|
|
|
7058
7061
|
!["range", "text"].includes(t) && /* @__PURE__ */ r(le, { value: "item-3", children: [
|
|
7059
7062
|
/* @__PURE__ */ e(oe, { children: "Filters" }),
|
|
7060
7063
|
/* @__PURE__ */ r(ce, { className: "space-y-4 px-2", children: [
|
|
7061
|
-
/* @__PURE__ */ e(
|
|
7064
|
+
/* @__PURE__ */ e(Ye, {}),
|
|
7062
7065
|
/* @__PURE__ */ e(ot, {})
|
|
7063
7066
|
] })
|
|
7064
7067
|
] })
|
|
@@ -7137,7 +7140,7 @@ function so() {
|
|
|
7137
7140
|
/* @__PURE__ */ r(le, { value: "item-3", children: [
|
|
7138
7141
|
/* @__PURE__ */ e(oe, { children: "Filters" }),
|
|
7139
7142
|
/* @__PURE__ */ r(ce, { className: "space-y-4 px-2", children: [
|
|
7140
|
-
/* @__PURE__ */ e(
|
|
7143
|
+
/* @__PURE__ */ e(Ye, {}),
|
|
7141
7144
|
/* @__PURE__ */ e(ot, {})
|
|
7142
7145
|
] })
|
|
7143
7146
|
] })
|
|
@@ -7157,7 +7160,7 @@ function ro({
|
|
|
7157
7160
|
/* @__PURE__ */ e(qe, { defaultValue: ["item-3"], type: "multiple", children: /* @__PURE__ */ r(le, { value: "item-3", children: [
|
|
7158
7161
|
/* @__PURE__ */ e(oe, { children: "Filters" }),
|
|
7159
7162
|
/* @__PURE__ */ r(ce, { className: "space-y-4 px-2", children: [
|
|
7160
|
-
/* @__PURE__ */ e(
|
|
7163
|
+
/* @__PURE__ */ e(Ye, {}),
|
|
7161
7164
|
/* @__PURE__ */ e(ot, {})
|
|
7162
7165
|
] })
|
|
7163
7166
|
] }) }),
|
|
@@ -7273,7 +7276,7 @@ function co() {
|
|
|
7273
7276
|
}
|
|
7274
7277
|
return /* @__PURE__ */ r(it, { className: "h-full w-full text-sm", children: [
|
|
7275
7278
|
a(t),
|
|
7276
|
-
/* @__PURE__ */ e(
|
|
7279
|
+
/* @__PURE__ */ e(Qe, { orientation: "horizontal" })
|
|
7277
7280
|
] });
|
|
7278
7281
|
}
|
|
7279
7282
|
function Ns({
|
|
@@ -7481,7 +7484,7 @@ function go({ column: t }) {
|
|
|
7481
7484
|
), u = l ? n.indexOf(l) : -1;
|
|
7482
7485
|
return /* @__PURE__ */ r("div", { className: "space-y-3", children: [
|
|
7483
7486
|
l && /* @__PURE__ */ e(xs, { idx: u, col: l, children: /* @__PURE__ */ e(
|
|
7484
|
-
|
|
7487
|
+
et,
|
|
7485
7488
|
{
|
|
7486
7489
|
className: "w-[130px]",
|
|
7487
7490
|
text: t.label || "",
|
|
@@ -7498,7 +7501,7 @@ function go({ column: t }) {
|
|
|
7498
7501
|
o && /* @__PURE__ */ r("div", { className: "flex items-center justify-between gap-2", children: [
|
|
7499
7502
|
/* @__PURE__ */ e(U, { children: "Pivot Header" }),
|
|
7500
7503
|
/* @__PURE__ */ e(
|
|
7501
|
-
|
|
7504
|
+
et,
|
|
7502
7505
|
{
|
|
7503
7506
|
text: t.aliasTemplate || "",
|
|
7504
7507
|
placeholder: "{label} ({pivot})",
|
|
@@ -7936,7 +7939,7 @@ function xo() {
|
|
|
7936
7939
|
),
|
|
7937
7940
|
/* @__PURE__ */ e(vo, {})
|
|
7938
7941
|
] }),
|
|
7939
|
-
/* @__PURE__ */ e(
|
|
7942
|
+
/* @__PURE__ */ e(Qe, { orientation: "horizontal" })
|
|
7940
7943
|
] })
|
|
7941
7944
|
] });
|
|
7942
7945
|
}
|