react-semaphor 0.0.315 → 0.0.316
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-BsNAaiEz.js +245 -0
- package/dist/chunks/{index-x7NTgf-0.js → index-CI-FTIIz.js} +87 -87
- package/dist/chunks/{index-CeBN3gPY.js → index-Ct1jmduc.js} +1968 -1924
- package/dist/chunks/{index-CQr4rRQo.js → index-D-SnuYbq.js} +34 -34
- package/dist/chunks/{lucide-react-B9GnH8Nu.js → lucide-react-BbKgFV_m.js} +3 -3
- package/dist/chunks/{lucide-react-r40q1Zfi.js → lucide-react-CXJInwq0.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/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/index-BeiJEe0p.js +0 -245
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as V, p as Os, u as z, n as zs, o as Ie, q as e, r as Fs, s as Is, t as O, j as Ts, v as Ds, w as Ms, x as Ls, y as Es, L as R, z as le, A as la, E as ra, H as ia, J as oa, K as st, M as at, N as tt, O as Js, Q as W, R as Ge, V as m, W as nt, F as ca, Y as Qe, Z as Je, _ as da, $ as lt, a0 as ua, a1 as
|
|
1
|
+
import { c as V, p as Os, u as z, n as zs, o as Ie, q as e, r as Fs, s as Is, t as O, j as Ts, v as Ds, w as Ms, x as Ls, y as Es, L as R, z as le, A as la, E as ra, H as ia, J as oa, K as st, M as at, N as tt, O as Js, Q as W, R as Ge, V as m, W as nt, F as ca, Y as Qe, Z as Je, _ as da, $ as lt, a0 as ua, a1 as me, a2 as he, a3 as xe, a4 as pe, a5 as Se, a6 as fe, a7 as J, T as As, a8 as Vs, a9 as qs, aa as Rs, ab as ma, ac as ha, ad as de, ae as rt, af as it, ag as xa, ah as ot, C as ct, ai as dt, aj as pa, B as ut, ak as We, al as mt, am as Ks, an as fa, ao as ys, ap as Ne, aq as ze, ar as ge, as as ga, at as ht, au as xt, av as pt, aw as ft, I as gt, ax as jt, ay as bt, az as yt, aA as Ve, aB as vs, aC as vt, a as Ct, aD as Be, aE as Cs, aF as Ae, aG as Ns, aH as Nt, aI as St, aJ as wt, aK as kt, aL as Ot, aM as zt, aN as bs, aO as Ft, aP as Ws, aQ as It, aR as Ys, aS as Tt, aT as Dt, aU as Mt, aV as Lt, aW as ja, aX as re, aY as _s, aZ as ba, a_ as Et, a$ as At, b0 as ls, b1 as Vt, b2 as qt, b3 as Rt, b4 as _t, b5 as Ht, b6 as $t, b7 as Pt, l as Bt, b8 as us, b9 as ya, ba as va, bb as Ca, bc as rs, bd as Na, be as is, bf as Xs, bg as Ut, bh as Gt, bi as ms, bj as hs, bk as xs, bl as Qt, X as Sa, bm as Jt, bn as Kt, bo as Wt, bp as ps, bq as Fe, f as Yt, br as Pe, bs as Hs, bt as wa, bu as Xt, bv as Zt, bw as os, bx as en, by as sn, bz as an, bA as Zs, bB as tn, bC as nn, bD as ln, bE as rn, bF as on, bG as cn, bH as dn, bI as un, bJ as Te, bK as B, bL as U, bM as $s, bN as G, bO as mn, bP as ka, bQ as hn, bR as xn, bS as pn, bT as fn, bU as gn, bV as jn, bW as bn, bX as yn, bY as vn } from "./index-Ct1jmduc.js";
|
|
2
2
|
import * as ea from "react";
|
|
3
3
|
import we, { useState as q, useMemo as Ss, useEffect as Z, useRef as ws, Suspense as Cn } from "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -916,24 +916,24 @@ function $e({
|
|
|
916
916
|
/* @__PURE__ */ e.jsx(lt, { children: g() }),
|
|
917
917
|
/* @__PURE__ */ e.jsx(ua, { className: "text-xs", align: "start", children: o })
|
|
918
918
|
] }) : g() }),
|
|
919
|
-
/* @__PURE__ */ e.jsxs(
|
|
919
|
+
/* @__PURE__ */ e.jsxs(me, { disabled: u, value: y, onValueChange: i, children: [
|
|
920
920
|
/* @__PURE__ */ e.jsx(
|
|
921
|
-
|
|
921
|
+
he,
|
|
922
922
|
{
|
|
923
923
|
className: W(
|
|
924
924
|
"h-9 w-full focus:ring-1 focus:ring-offset-0",
|
|
925
925
|
d
|
|
926
926
|
),
|
|
927
927
|
children: /* @__PURE__ */ e.jsx(
|
|
928
|
-
|
|
928
|
+
xe,
|
|
929
929
|
{
|
|
930
930
|
placeholder: n ? "Loading..." : l ? "Error" : `Select ${s}`
|
|
931
931
|
}
|
|
932
932
|
)
|
|
933
933
|
}
|
|
934
934
|
),
|
|
935
|
-
/* @__PURE__ */ e.jsx(
|
|
936
|
-
n ? /* @__PURE__ */ e.jsx(
|
|
935
|
+
/* @__PURE__ */ e.jsx(pe, { children: /* @__PURE__ */ e.jsxs(Se, { children: [
|
|
936
|
+
n ? /* @__PURE__ */ e.jsx(fe, { children: "Loading..." }) : /* @__PURE__ */ e.jsx(fe, { children: s }),
|
|
937
937
|
/* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
938
938
|
c && /* @__PURE__ */ e.jsx(J, { value: "none", children: "None" }, "none"),
|
|
939
939
|
t && t.map((x, j) => /* @__PURE__ */ e.jsx(J, { value: x.id, children: x.name }, j))
|
|
@@ -957,8 +957,8 @@ function tl({ column: s }) {
|
|
|
957
957
|
d(b);
|
|
958
958
|
const C = ha(
|
|
959
959
|
b,
|
|
960
|
-
|
|
961
|
-
|
|
960
|
+
de(l || ""),
|
|
961
|
+
de(n),
|
|
962
962
|
I
|
|
963
963
|
);
|
|
964
964
|
C && (p(C), u(!0)), a(!1);
|
|
@@ -1056,7 +1056,7 @@ function nl({
|
|
|
1056
1056
|
x(v);
|
|
1057
1057
|
const f = (L = C == null ? void 0 : C.find(
|
|
1058
1058
|
(H) => H.id === p
|
|
1059
|
-
)) == null ? void 0 : L.name, k = ha(v,
|
|
1059
|
+
)) == null ? void 0 : L.name, k = ha(v, de(s), de(t), f);
|
|
1060
1060
|
k && (b(k), g(!0));
|
|
1061
1061
|
}
|
|
1062
1062
|
function F() {
|
|
@@ -1369,10 +1369,10 @@ function qe(s, t) {
|
|
|
1369
1369
|
v
|
|
1370
1370
|
]);
|
|
1371
1371
|
const ye = (v == null ? void 0 : v.type) === "API" ? (Xe = v == null ? void 0 : v.type) == null ? void 0 : Xe.toLowerCase() : d || "", Q = k ? "" : c || "";
|
|
1372
|
-
function
|
|
1372
|
+
function oe(r) {
|
|
1373
1373
|
x(r), j("");
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function ce(r) {
|
|
1376
1376
|
g(r === "none" ? "" : r), x(""), j(""), r !== "none" && r !== "" && y("");
|
|
1377
1377
|
}
|
|
1378
1378
|
function Oe(r) {
|
|
@@ -1429,8 +1429,8 @@ function qe(s, t) {
|
|
|
1429
1429
|
schemaName: Q,
|
|
1430
1430
|
handleConnectionChange: Oe,
|
|
1431
1431
|
handleDatamodelChange: Le,
|
|
1432
|
-
handleDatabaseChange:
|
|
1433
|
-
handleSchemaChange:
|
|
1432
|
+
handleDatabaseChange: ce,
|
|
1433
|
+
handleSchemaChange: oe
|
|
1434
1434
|
};
|
|
1435
1435
|
}
|
|
1436
1436
|
function Aa({
|
|
@@ -1508,9 +1508,9 @@ function Aa({
|
|
|
1508
1508
|
function _() {
|
|
1509
1509
|
if (t && !f && (!n || n === "none") && (!a || a === "none"))
|
|
1510
1510
|
return /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-3", children: [
|
|
1511
|
-
/* @__PURE__ */ e.jsx("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e.jsx(
|
|
1511
|
+
/* @__PURE__ */ e.jsx("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e.jsx(ge, {}) }),
|
|
1512
1512
|
/* @__PURE__ */ e.jsx("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e.jsx(R, { children: "OR" }) }),
|
|
1513
|
-
/* @__PURE__ */ e.jsx("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e.jsx(
|
|
1513
|
+
/* @__PURE__ */ e.jsx("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e.jsx(ge, {}) })
|
|
1514
1514
|
] });
|
|
1515
1515
|
}
|
|
1516
1516
|
function ee() {
|
|
@@ -2023,10 +2023,17 @@ function fl(s) {
|
|
|
2023
2023
|
function gl({ sql: s }) {
|
|
2024
2024
|
return /* @__PURE__ */ e.jsxs(Vs, { children: [
|
|
2025
2025
|
/* @__PURE__ */ e.jsx(qs, { asChild: !0, children: /* @__PURE__ */ e.jsx(O, { variant: "link", className: "h-5 p-0", children: /* @__PURE__ */ e.jsx(gt, { className: "h-4 w-4 text-muted-foreground" }) }) }),
|
|
2026
|
-
/* @__PURE__ */ e.jsx(
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2026
|
+
/* @__PURE__ */ e.jsx(
|
|
2027
|
+
Rs,
|
|
2028
|
+
{
|
|
2029
|
+
align: "end",
|
|
2030
|
+
className: "w-full min-w-fit max-w-[700px] p-3 pt-2",
|
|
2031
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
2032
|
+
/* @__PURE__ */ e.jsx(R, { className: "text-xs font-semibold", children: "Resolved Query" }),
|
|
2033
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex grow flex-col space-y-2", children: /* @__PURE__ */ e.jsx(We, { className: "max-h-[250px] min-h-0 overflow-scroll", children: /* @__PURE__ */ e.jsx("p", { className: "overflow-auto rounded-md bg-muted p-2 font-mono text-xs leading-relaxed", children: s }) }) })
|
|
2034
|
+
] })
|
|
2035
|
+
}
|
|
2036
|
+
)
|
|
2030
2037
|
] });
|
|
2031
2038
|
}
|
|
2032
2039
|
function jl() {
|
|
@@ -2073,8 +2080,8 @@ function jl() {
|
|
|
2073
2080
|
(r) => r.actions.setIsSqlRunning
|
|
2074
2081
|
), {
|
|
2075
2082
|
data: Q,
|
|
2076
|
-
isLoading:
|
|
2077
|
-
isFetching:
|
|
2083
|
+
isLoading: oe,
|
|
2084
|
+
isFetching: ce,
|
|
2078
2085
|
isSuccess: Oe,
|
|
2079
2086
|
isError: Le,
|
|
2080
2087
|
error: _e,
|
|
@@ -2095,10 +2102,10 @@ function jl() {
|
|
|
2095
2102
|
ae,
|
|
2096
2103
|
se
|
|
2097
2104
|
]), Z(() => {
|
|
2098
|
-
(
|
|
2105
|
+
(oe || ce) && ye(!0), (Le || Oe) && ye(!1), Le ? (T(_e.message), ae([]), se("")) : T("");
|
|
2099
2106
|
}, [
|
|
2107
|
+
oe,
|
|
2100
2108
|
ce,
|
|
2101
|
-
de,
|
|
2102
2109
|
Q,
|
|
2103
2110
|
se,
|
|
2104
2111
|
Le,
|
|
@@ -2389,7 +2396,7 @@ function jl() {
|
|
|
2389
2396
|
O,
|
|
2390
2397
|
{
|
|
2391
2398
|
title: "Shift + Enter",
|
|
2392
|
-
disabled:
|
|
2399
|
+
disabled: oe || ce,
|
|
2393
2400
|
onClick: () => {
|
|
2394
2401
|
Ee();
|
|
2395
2402
|
},
|
|
@@ -2397,7 +2404,7 @@ function jl() {
|
|
|
2397
2404
|
size: "sm",
|
|
2398
2405
|
variant: "outline",
|
|
2399
2406
|
children: [
|
|
2400
|
-
|
|
2407
|
+
oe || ce ? /* @__PURE__ */ e.jsx(Ke, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Hn, { className: "mr-2 h-4 w-4" }),
|
|
2401
2408
|
"Run"
|
|
2402
2409
|
]
|
|
2403
2410
|
}
|
|
@@ -2881,7 +2888,7 @@ function Ja(s) {
|
|
|
2881
2888
|
const [t, a] = q(null);
|
|
2882
2889
|
return Z(() => {
|
|
2883
2890
|
s && (async () => {
|
|
2884
|
-
const o = (await import("./lucide-react-
|
|
2891
|
+
const o = (await import("./lucide-react-BbKgFV_m.js"))[s];
|
|
2885
2892
|
a(o);
|
|
2886
2893
|
})();
|
|
2887
2894
|
}, [s]), t;
|
|
@@ -2913,7 +2920,7 @@ function Cl({
|
|
|
2913
2920
|
}
|
|
2914
2921
|
})();
|
|
2915
2922
|
}, [n]), t.length === 0 ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2916
|
-
/* @__PURE__ */ e.jsx(
|
|
2923
|
+
/* @__PURE__ */ e.jsx(ge, { className: "my-2" }),
|
|
2917
2924
|
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-4 place-items-center", children: t.map((l, o) => /* @__PURE__ */ e.jsx(
|
|
2918
2925
|
Nl,
|
|
2919
2926
|
{
|
|
@@ -3360,7 +3367,7 @@ function Ol() {
|
|
|
3360
3367
|
className: "bg-muted p-2 font-mono text-sm"
|
|
3361
3368
|
}
|
|
3362
3369
|
),
|
|
3363
|
-
/* @__PURE__ */ e.jsx(
|
|
3370
|
+
/* @__PURE__ */ e.jsx(ge, { className: "mb-2" })
|
|
3364
3371
|
] });
|
|
3365
3372
|
}
|
|
3366
3373
|
function zl() {
|
|
@@ -3399,23 +3406,23 @@ function Fl({
|
|
|
3399
3406
|
}
|
|
3400
3407
|
);
|
|
3401
3408
|
}
|
|
3402
|
-
function
|
|
3409
|
+
function ue({
|
|
3403
3410
|
label: s,
|
|
3404
3411
|
options: t,
|
|
3405
3412
|
value: a,
|
|
3406
3413
|
onValueChange: n,
|
|
3407
3414
|
className: l
|
|
3408
3415
|
}) {
|
|
3409
|
-
return /* @__PURE__ */ e.jsxs(
|
|
3416
|
+
return /* @__PURE__ */ e.jsxs(me, { value: a, onValueChange: n, children: [
|
|
3410
3417
|
/* @__PURE__ */ e.jsx(
|
|
3411
|
-
|
|
3418
|
+
he,
|
|
3412
3419
|
{
|
|
3413
3420
|
className: W("w-full focus:ring-0 focus:ring-offset-0", l),
|
|
3414
|
-
children: /* @__PURE__ */ e.jsx(
|
|
3421
|
+
children: /* @__PURE__ */ e.jsx(xe, { placeholder: s })
|
|
3415
3422
|
}
|
|
3416
3423
|
),
|
|
3417
|
-
/* @__PURE__ */ e.jsx(
|
|
3418
|
-
/* @__PURE__ */ e.jsx(
|
|
3424
|
+
/* @__PURE__ */ e.jsx(pe, { children: /* @__PURE__ */ e.jsxs(Se, { children: [
|
|
3425
|
+
/* @__PURE__ */ e.jsx(fe, { children: s }),
|
|
3419
3426
|
t.map((o) => /* @__PURE__ */ e.jsx(J, { value: o.value, children: o.label }, o.value))
|
|
3420
3427
|
] }) })
|
|
3421
3428
|
] });
|
|
@@ -3482,7 +3489,7 @@ function Il() {
|
|
|
3482
3489
|
children: [
|
|
3483
3490
|
/* @__PURE__ */ e.jsx("div", { className: "col-span-4 flex items-center", children: N }),
|
|
3484
3491
|
/* @__PURE__ */ e.jsx(
|
|
3485
|
-
|
|
3492
|
+
ue,
|
|
3486
3493
|
{
|
|
3487
3494
|
className: "col-span-6 h-8 w-full justify-between",
|
|
3488
3495
|
label: "",
|
|
@@ -3516,7 +3523,7 @@ function Il() {
|
|
|
3516
3523
|
},
|
|
3517
3524
|
D
|
|
3518
3525
|
) : C === "select" ? /* @__PURE__ */ e.jsx(
|
|
3519
|
-
|
|
3526
|
+
ue,
|
|
3520
3527
|
{
|
|
3521
3528
|
className: "h-8 w-full",
|
|
3522
3529
|
label: "",
|
|
@@ -3556,7 +3563,7 @@ function Il() {
|
|
|
3556
3563
|
children: [
|
|
3557
3564
|
/* @__PURE__ */ e.jsx(Ue, { summary: "Plugin Settings", children: /* @__PURE__ */ e.jsx("div", { className: "space-y-4 text-sm", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 text-sm", children: [
|
|
3558
3565
|
/* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: /* @__PURE__ */ e.jsx("div", { className: "px-2", children: /* @__PURE__ */ e.jsx(
|
|
3559
|
-
|
|
3566
|
+
ue,
|
|
3560
3567
|
{
|
|
3561
3568
|
className: "h-8 w-full",
|
|
3562
3569
|
label: "",
|
|
@@ -3585,7 +3592,7 @@ function Il() {
|
|
|
3585
3592
|
((s == null ? void 0 : s.type) === "component" || (s == null ? void 0 : s.type) === void 0) && s && /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
3586
3593
|
/* @__PURE__ */ e.jsx(R, { children: "Component" }),
|
|
3587
3594
|
/* @__PURE__ */ e.jsx("div", { className: "space-y-2 px-2", children: c && /* @__PURE__ */ e.jsx(
|
|
3588
|
-
|
|
3595
|
+
ue,
|
|
3589
3596
|
{
|
|
3590
3597
|
className: "h-8 w-full",
|
|
3591
3598
|
label: "",
|
|
@@ -3606,7 +3613,7 @@ function Il() {
|
|
|
3606
3613
|
) })
|
|
3607
3614
|
] }) })
|
|
3608
3615
|
] }) }) }),
|
|
3609
|
-
/* @__PURE__ */ e.jsx(
|
|
3616
|
+
/* @__PURE__ */ e.jsx(ge, { className: "my-4" }),
|
|
3610
3617
|
((I = n == null ? void 0 : n.customCardPreferences) == null ? void 0 : I.componentName) && /* @__PURE__ */ e.jsxs(Ue, { summary: "Component Settings", children: [
|
|
3611
3618
|
p && p.dataInputs && /* @__PURE__ */ e.jsxs("div", { className: "space-y-3", children: [
|
|
3612
3619
|
/* @__PURE__ */ e.jsx(R, { children: "Input Mapping" }),
|
|
@@ -3793,12 +3800,12 @@ function Wa() {
|
|
|
3793
3800
|
return (T = E.card) == null ? void 0 : T.type;
|
|
3794
3801
|
}), k = ["pie", "doughnut", "polarArea"].includes(f);
|
|
3795
3802
|
Z(() => {
|
|
3796
|
-
var E, T, se, $, X, te, Me, ke, be, ye, Q,
|
|
3803
|
+
var E, T, se, $, X, te, Me, ke, be, ye, Q, oe, ce, Oe;
|
|
3797
3804
|
i(na(a)), d(
|
|
3798
3805
|
((se = (T = (E = a == null ? void 0 : a.chartOptions) == null ? void 0 : E.scales) == null ? void 0 : T[l]) == null ? void 0 : se.min) === 0 ? 0 : ""
|
|
3799
3806
|
), u(((te = (X = ($ = a == null ? void 0 : a.chartOptions) == null ? void 0 : $.scales) == null ? void 0 : X[l]) == null ? void 0 : te.max) || ""), j(
|
|
3800
3807
|
((ye = (be = (ke = (Me = a == null ? void 0 : a.chartOptions) == null ? void 0 : Me.scales) == null ? void 0 : ke[l]) == null ? void 0 : be.ticks) == null ? void 0 : ye.stepSize) || ""
|
|
3801
|
-
), I(((Q = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Q.decimalPlaces) || 0), D(((
|
|
3808
|
+
), I(((Q = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Q.decimalPlaces) || 0), D(((oe = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : oe.suffix) || ""), A(((ce = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : ce.currency) || ""), S(((Oe = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Oe.locale) || "");
|
|
3802
3809
|
}, [s, a, l]);
|
|
3803
3810
|
function L(E, T) {
|
|
3804
3811
|
return T === "" || /^[0-9\b]+$/.test(T) ? Number(T) : Number(E);
|
|
@@ -3825,30 +3832,30 @@ function Wa() {
|
|
|
3825
3832
|
}
|
|
3826
3833
|
),
|
|
3827
3834
|
/* @__PURE__ */ e.jsxs(
|
|
3828
|
-
|
|
3835
|
+
me,
|
|
3829
3836
|
{
|
|
3830
3837
|
value: F || "none",
|
|
3831
3838
|
onValueChange: (T) => A(T === "none" ? "" : T),
|
|
3832
3839
|
children: [
|
|
3833
|
-
/* @__PURE__ */ e.jsx(
|
|
3834
|
-
/* @__PURE__ */ e.jsx(
|
|
3835
|
-
/* @__PURE__ */ e.jsx(
|
|
3840
|
+
/* @__PURE__ */ e.jsx(he, { className: "col-span-2 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e.jsx(xe, {}) }),
|
|
3841
|
+
/* @__PURE__ */ e.jsx(pe, { children: /* @__PURE__ */ e.jsxs(Se, { children: [
|
|
3842
|
+
/* @__PURE__ */ e.jsx(fe, { children: "Currency" }),
|
|
3836
3843
|
/* @__PURE__ */ e.jsx(J, { value: "none", children: "None" }),
|
|
3837
3844
|
E.map((T) => /* @__PURE__ */ e.jsx(J, { value: T, children: T }, T))
|
|
3838
3845
|
] }) })
|
|
3839
3846
|
]
|
|
3840
3847
|
}
|
|
3841
3848
|
),
|
|
3842
|
-
/* @__PURE__ */ e.jsxs(
|
|
3849
|
+
/* @__PURE__ */ e.jsxs(me, { value: N, onValueChange: (T) => S(T), children: [
|
|
3843
3850
|
/* @__PURE__ */ e.jsx(
|
|
3844
|
-
|
|
3851
|
+
he,
|
|
3845
3852
|
{
|
|
3846
3853
|
className: "col-span-2 h-8 w-full focus:ring-1 focus:ring-offset-0",
|
|
3847
|
-
children: /* @__PURE__ */ e.jsx(
|
|
3854
|
+
children: /* @__PURE__ */ e.jsx(xe, {})
|
|
3848
3855
|
}
|
|
3849
3856
|
),
|
|
3850
|
-
/* @__PURE__ */ e.jsx(
|
|
3851
|
-
/* @__PURE__ */ e.jsx(
|
|
3857
|
+
/* @__PURE__ */ e.jsx(pe, { children: /* @__PURE__ */ e.jsxs(Se, { children: [
|
|
3858
|
+
/* @__PURE__ */ e.jsx(fe, { children: "Locale" }),
|
|
3852
3859
|
os.map((T) => /* @__PURE__ */ e.jsx(J, { value: T.locale, children: T.locale }, T.locale))
|
|
3853
3860
|
] }) })
|
|
3854
3861
|
] })
|
|
@@ -3952,15 +3959,15 @@ function Wa() {
|
|
|
3952
3959
|
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-3 items-center gap-2", children: [
|
|
3953
3960
|
/* @__PURE__ */ e.jsx(R, { htmlFor: "scale", children: "Type" }),
|
|
3954
3961
|
/* @__PURE__ */ e.jsxs(
|
|
3955
|
-
|
|
3962
|
+
me,
|
|
3956
3963
|
{
|
|
3957
3964
|
disabled: k,
|
|
3958
3965
|
value: o,
|
|
3959
3966
|
onValueChange: (E) => i(E),
|
|
3960
3967
|
children: [
|
|
3961
|
-
/* @__PURE__ */ e.jsx(
|
|
3962
|
-
/* @__PURE__ */ e.jsx(
|
|
3963
|
-
/* @__PURE__ */ e.jsx(
|
|
3968
|
+
/* @__PURE__ */ e.jsx(he, { className: "col-span-2 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e.jsx(xe, {}) }),
|
|
3969
|
+
/* @__PURE__ */ e.jsx(pe, { id: "type", children: /* @__PURE__ */ e.jsxs(Se, { children: [
|
|
3970
|
+
/* @__PURE__ */ e.jsx(fe, { children: "Option" }),
|
|
3964
3971
|
/* @__PURE__ */ e.jsx(J, { value: "linear", children: "Linear" }),
|
|
3965
3972
|
/* @__PURE__ */ e.jsx(J, { value: "logarithmic", children: "Logarithmic" })
|
|
3966
3973
|
] }) })
|
|
@@ -4213,13 +4220,6 @@ function Dl({ col: s, idx: t }) {
|
|
|
4213
4220
|
className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
|
|
4214
4221
|
}
|
|
4215
4222
|
),
|
|
4216
|
-
/* @__PURE__ */ e.jsx(
|
|
4217
|
-
oe,
|
|
4218
|
-
{
|
|
4219
|
-
orientation: "vertical",
|
|
4220
|
-
className: "invisible size-4 cursor-pointer py-2 text-muted-foreground hover:text-foreground group-hover:visible"
|
|
4221
|
-
}
|
|
4222
|
-
),
|
|
4223
4223
|
/* @__PURE__ */ e.jsx(Tl, { idx: t })
|
|
4224
4224
|
] })
|
|
4225
4225
|
] });
|
|
@@ -4230,7 +4230,7 @@ function Xa() {
|
|
|
4230
4230
|
), { modelItems: p, tableName: u } = qe();
|
|
4231
4231
|
function y(g, x = "dashboard") {
|
|
4232
4232
|
var S;
|
|
4233
|
-
const j =
|
|
4233
|
+
const j = de(g.column_name), b = de(a || ""), I = de(n || ""), C = de(u);
|
|
4234
4234
|
let D = fa(
|
|
4235
4235
|
I,
|
|
4236
4236
|
C
|
|
@@ -4431,15 +4431,15 @@ function Gs() {
|
|
|
4431
4431
|
!["pyramid"].includes(a) && /* @__PURE__ */ e.jsx(Wa, {})
|
|
4432
4432
|
] }),
|
|
4433
4433
|
/* @__PURE__ */ e.jsxs(
|
|
4434
|
-
|
|
4434
|
+
me,
|
|
4435
4435
|
{
|
|
4436
4436
|
value: (i = (o = (l = s == null ? void 0 : s.options) == null ? void 0 : l.plugins) == null ? void 0 : o.datalabels) == null ? void 0 : i.anchor,
|
|
4437
4437
|
onValueChange: n,
|
|
4438
4438
|
defaultValue: "none",
|
|
4439
4439
|
children: [
|
|
4440
|
-
/* @__PURE__ */ e.jsx(
|
|
4441
|
-
/* @__PURE__ */ e.jsx(
|
|
4442
|
-
/* @__PURE__ */ e.jsx(
|
|
4440
|
+
/* @__PURE__ */ e.jsx(he, { className: "h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e.jsx(xe, { placeholder: "Select position" }) }),
|
|
4441
|
+
/* @__PURE__ */ e.jsx(pe, { children: /* @__PURE__ */ e.jsxs(Se, { children: [
|
|
4442
|
+
/* @__PURE__ */ e.jsx(fe, { children: "Data Labels" }),
|
|
4443
4443
|
/* @__PURE__ */ e.jsx(J, { value: "none", children: "None" }),
|
|
4444
4444
|
a !== "pyramid" && /* @__PURE__ */ e.jsx(J, { value: "start", children: "Start" }),
|
|
4445
4445
|
/* @__PURE__ */ e.jsx(J, { value: "center", children: "Center" }),
|
|
@@ -4697,7 +4697,7 @@ function _l() {
|
|
|
4697
4697
|
/* @__PURE__ */ e.jsxs("div", { className: "w-full space-y-1", children: [
|
|
4698
4698
|
/* @__PURE__ */ e.jsx(R, { children: "Locale" }),
|
|
4699
4699
|
/* @__PURE__ */ e.jsxs(
|
|
4700
|
-
|
|
4700
|
+
me,
|
|
4701
4701
|
{
|
|
4702
4702
|
value: n || "none",
|
|
4703
4703
|
onValueChange: (x) => {
|
|
@@ -4710,9 +4710,9 @@ function _l() {
|
|
|
4710
4710
|
);
|
|
4711
4711
|
},
|
|
4712
4712
|
children: [
|
|
4713
|
-
/* @__PURE__ */ e.jsx(
|
|
4714
|
-
/* @__PURE__ */ e.jsx(
|
|
4715
|
-
/* @__PURE__ */ e.jsx(
|
|
4713
|
+
/* @__PURE__ */ e.jsx(he, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e.jsx(xe, {}) }),
|
|
4714
|
+
/* @__PURE__ */ e.jsx(pe, { children: /* @__PURE__ */ e.jsxs(Se, { children: [
|
|
4715
|
+
/* @__PURE__ */ e.jsx(fe, { children: "Format" }),
|
|
4716
4716
|
/* @__PURE__ */ e.jsx(J, { value: "none", children: "None" }, "none"),
|
|
4717
4717
|
os.map((x) => /* @__PURE__ */ e.jsx(J, { value: x.locale, children: x.locale }, x.locale))
|
|
4718
4718
|
] }) })
|
|
@@ -4723,7 +4723,7 @@ function _l() {
|
|
|
4723
4723
|
/* @__PURE__ */ e.jsxs("div", { className: "w-full space-y-1", children: [
|
|
4724
4724
|
/* @__PURE__ */ e.jsx(R, { children: "Currency" }),
|
|
4725
4725
|
/* @__PURE__ */ e.jsxs(
|
|
4726
|
-
|
|
4726
|
+
me,
|
|
4727
4727
|
{
|
|
4728
4728
|
value: l || "none",
|
|
4729
4729
|
onValueChange: (x) => {
|
|
@@ -4736,9 +4736,9 @@ function _l() {
|
|
|
4736
4736
|
);
|
|
4737
4737
|
},
|
|
4738
4738
|
children: [
|
|
4739
|
-
/* @__PURE__ */ e.jsx(
|
|
4740
|
-
/* @__PURE__ */ e.jsx(
|
|
4741
|
-
/* @__PURE__ */ e.jsx(
|
|
4739
|
+
/* @__PURE__ */ e.jsx(he, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e.jsx(xe, {}) }),
|
|
4740
|
+
/* @__PURE__ */ e.jsx(pe, { children: /* @__PURE__ */ e.jsxs(Se, { children: [
|
|
4741
|
+
/* @__PURE__ */ e.jsx(fe, { children: "Currency" }),
|
|
4742
4742
|
/* @__PURE__ */ e.jsx(J, { value: "none", children: "None" }, "none"),
|
|
4743
4743
|
c.map((x) => /* @__PURE__ */ e.jsx(J, { value: x, children: x }, x))
|
|
4744
4744
|
] }) })
|
|
@@ -4751,7 +4751,7 @@ function _l() {
|
|
|
4751
4751
|
/* @__PURE__ */ e.jsxs("div", { className: "w-full space-y-1", children: [
|
|
4752
4752
|
/* @__PURE__ */ e.jsx(R, { children: "Decimals" }),
|
|
4753
4753
|
/* @__PURE__ */ e.jsxs(
|
|
4754
|
-
|
|
4754
|
+
me,
|
|
4755
4755
|
{
|
|
4756
4756
|
value: ((y = (u = s == null ? void 0 : s.formatNumber) == null ? void 0 : u.decimalPlaces) == null ? void 0 : y.toString()) || "0",
|
|
4757
4757
|
onValueChange: (x) => {
|
|
@@ -4764,8 +4764,8 @@ function _l() {
|
|
|
4764
4764
|
);
|
|
4765
4765
|
},
|
|
4766
4766
|
children: [
|
|
4767
|
-
/* @__PURE__ */ e.jsx(
|
|
4768
|
-
/* @__PURE__ */ e.jsx(
|
|
4767
|
+
/* @__PURE__ */ e.jsx(he, { className: "col-span-3 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e.jsx(xe, {}) }),
|
|
4768
|
+
/* @__PURE__ */ e.jsx(pe, { children: ["0", "1", "2", "3", "4"].map((x) => /* @__PURE__ */ e.jsx(J, { value: x, children: x }, x)) })
|
|
4769
4769
|
]
|
|
4770
4770
|
}
|
|
4771
4771
|
)
|
|
@@ -4792,7 +4792,7 @@ function _l() {
|
|
|
4792
4792
|
] })
|
|
4793
4793
|
] })
|
|
4794
4794
|
] }) }),
|
|
4795
|
-
/* @__PURE__ */ e.jsx(
|
|
4795
|
+
/* @__PURE__ */ e.jsx(ge, { className: "my-3" }),
|
|
4796
4796
|
/* @__PURE__ */ e.jsx(
|
|
4797
4797
|
mn,
|
|
4798
4798
|
{
|
|
@@ -4957,10 +4957,10 @@ function Ul() {
|
|
|
4957
4957
|
];
|
|
4958
4958
|
return /* @__PURE__ */ e.jsxs("div", { className: "p-6", children: [
|
|
4959
4959
|
/* @__PURE__ */ e.jsx(Ue, { summary: "Map Query", children: /* @__PURE__ */ e.jsx("p", { className: "rounded-md bg-muted p-2 font-mono text-xs", children: "SELECT country, value FROM table" }) }),
|
|
4960
|
-
/* @__PURE__ */ e.jsx(
|
|
4960
|
+
/* @__PURE__ */ e.jsx(ge, { className: "my-4" }),
|
|
4961
4961
|
/* @__PURE__ */ e.jsx(Ue, { open: !0, summary: "Settings", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-3 px-2", children: [
|
|
4962
4962
|
/* @__PURE__ */ e.jsx(
|
|
4963
|
-
|
|
4963
|
+
ue,
|
|
4964
4964
|
{
|
|
4965
4965
|
className: "h-9",
|
|
4966
4966
|
options: c,
|
|
@@ -5002,7 +5002,7 @@ function Ul() {
|
|
|
5002
5002
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
|
|
5003
5003
|
/* @__PURE__ */ e.jsx(R, { children: "Map Object" }),
|
|
5004
5004
|
/* @__PURE__ */ e.jsx(
|
|
5005
|
-
|
|
5005
|
+
ue,
|
|
5006
5006
|
{
|
|
5007
5007
|
className: "h-9",
|
|
5008
5008
|
options: i,
|
|
@@ -5024,7 +5024,7 @@ function Ul() {
|
|
|
5024
5024
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
|
|
5025
5025
|
/* @__PURE__ */ e.jsx(R, { children: "Projection" }),
|
|
5026
5026
|
/* @__PURE__ */ e.jsx(
|
|
5027
|
-
|
|
5027
|
+
ue,
|
|
5028
5028
|
{
|
|
5029
5029
|
className: "h-9",
|
|
5030
5030
|
options: $l,
|
|
@@ -5046,7 +5046,7 @@ function Ul() {
|
|
|
5046
5046
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
|
|
5047
5047
|
/* @__PURE__ */ e.jsx(R, { children: "Colors" }),
|
|
5048
5048
|
/* @__PURE__ */ e.jsx(
|
|
5049
|
-
|
|
5049
|
+
ue,
|
|
5050
5050
|
{
|
|
5051
5051
|
className: "h-9",
|
|
5052
5052
|
options: Bl,
|
|
@@ -5067,7 +5067,7 @@ function Ul() {
|
|
|
5067
5067
|
] })
|
|
5068
5068
|
] })
|
|
5069
5069
|
] }) }),
|
|
5070
|
-
/* @__PURE__ */ e.jsx(
|
|
5070
|
+
/* @__PURE__ */ e.jsx(ge, { className: "my-4" }),
|
|
5071
5071
|
/* @__PURE__ */ e.jsx(Ue, { className: "", summary: "Scale Options", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
5072
5072
|
/* @__PURE__ */ e.jsx(
|
|
5073
5073
|
le,
|
|
@@ -5135,7 +5135,7 @@ function Ul() {
|
|
|
5135
5135
|
}
|
|
5136
5136
|
)
|
|
5137
5137
|
] }) }),
|
|
5138
|
-
/* @__PURE__ */ e.jsx(
|
|
5138
|
+
/* @__PURE__ */ e.jsx(ge, { className: "my-4" }),
|
|
5139
5139
|
/* @__PURE__ */ e.jsx(De, {})
|
|
5140
5140
|
] });
|
|
5141
5141
|
}
|
|
@@ -5230,7 +5230,7 @@ function Ql() {
|
|
|
5230
5230
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
5231
5231
|
/* @__PURE__ */ e.jsx(R, { children: "Sort" }),
|
|
5232
5232
|
/* @__PURE__ */ e.jsx(
|
|
5233
|
-
|
|
5233
|
+
ue,
|
|
5234
5234
|
{
|
|
5235
5235
|
className: "h-8",
|
|
5236
5236
|
label: "Sort Chart",
|
|
@@ -5526,7 +5526,7 @@ function ar() {
|
|
|
5526
5526
|
const { modelItems: n, columns: l } = qe(), { assignFilter: o } = Xa();
|
|
5527
5527
|
return /* @__PURE__ */ e.jsx("div", { className: "xbg-red-100 flex-1 basis-0 flex-col overflow-scroll px-3", children: l == null ? void 0 : l.map((i) => {
|
|
5528
5528
|
const c = a == null ? void 0 : a.find(
|
|
5529
|
-
(d) => d.column ===
|
|
5529
|
+
(d) => d.column === de(i.column_name) && d.table === t && d.database === s
|
|
5530
5530
|
);
|
|
5531
5531
|
return /* @__PURE__ */ e.jsx(
|
|
5532
5532
|
"div",
|