react-semaphor 0.0.598 → 0.0.600
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{dashboard-plus-CRYpdcX_.js → dashboard-plus-BmCs016Q.js} +56 -61
- package/dist/chunks/{dashboard-plus-CvIP7sHn.js → dashboard-plus-Bzs4D9wv.js} +52 -64
- package/dist/chunks/{index-CBkCp_zm.js → index-Cps7ZMha.js} +182 -166
- package/dist/chunks/{index-B2BHK75N.js → index-DT9VO-bl.js} +17628 -17376
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +98 -49
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/main.d.ts +8 -0
- package/package.json +1 -1
|
@@ -4,9 +4,9 @@ var yr = (t) => {
|
|
|
4
4
|
var Ws = (t, a, s) => a.has(t) || yr("Cannot " + s);
|
|
5
5
|
var Ae = (t, a, s) => (Ws(t, a, "read from private field"), s ? s.call(t) : a.get(t)), Ta = (t, a, s) => a.has(t) ? yr("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, s), Ma = (t, a, s, r) => (Ws(t, a, "write to private field"), r ? r.call(t, s) : a.set(t, s), s), Ea = (t, a, s) => (Ws(t, a, "access private method"), s);
|
|
6
6
|
import { jsxs as n, jsx as e, Fragment as ne } from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { K as ji, L as Bi, M as vr, N as Ui, O as Hr, P as at, Q as $i, R as qi, T as se, V as Qr, u as Z, W as ca, X as da, Y as V, Z as ua, _ as We, $ as wn, H as wt, a0 as Oe, a1 as zt, a2 as Xr, a3 as $e, a4 as Lt, a5 as Pt, a6 as _t, a7 as sa, a8 as B, a9 as De, aa as Na, ab as ve, ac as Zr, ad as Ia, ae as Yi, af as Nr, ag as el, ah as K, ai as Sn, aj as Gi, ak as tl, al, am as Oa, an as be, ao as ue, ap as me, aq as he, ar as pe, as as Ra, at as Fa, au as Q, av as sl, aw as ht, ax as pt, ay as Ki, az as St, aA as ot, aB as Pe, aC as ma, aD as _e, aE as je, aF as Be, aG as Xe, aH as Is, aI as Qe, aJ as ls, aK as Wi, aL as kt, aM as ba, aN as Va, aO as rt, aP as ut, aQ as kn, aR as Ji, aS as Ls, aT as Zt, aU as nl, aV as rl, aW as bt, aX as is, aY as ja, aZ as Re, a_ as ce, a$ as Te, b0 as Ba, b1 as Dt, b2 as Ua, b3 as Hi, b4 as ha, b5 as et, b6 as os, b7 as nt, b8 as ll, b9 as on, ba as Tt, bb as wa, bc as cs, bd as ds, be as Qi, bf as Sa, bg as Dn, bh as Tn, bi as Mn, bj as En, bk as $a, bl as us, bm as il, bn as An, bo as Ps, bp as In, bq as Xi, br as On, bs as Zi, bt as eo, bu as Ut, bv as $t, bw as Ie, bx as ea, by as ol, J as re, bz as Nt, I as E, bA as _s, bB as cl, bC as dl, bD as ul, bE as ml, bF as hl, bG as pl, bH as fl, bI as gl, bJ as to, bK as ao, bL as Aa, bM as Rn, bN as so, bO as no, bP as ro, i as lo, bQ as xl, bR as Qa, bS as pa, bT as ms, bU as hs, bV as yl, bW as ps, bX as fs, bY as fa, bZ as qa, b_ as Ct, b$ as Vs, z as Mt, c0 as Fn, q as vl, p as Nl, k as vt, c1 as Le, c2 as io, c3 as na, c4 as ta, c5 as bl, c6 as oo, j as Cl, c7 as Xa, c8 as Jt, c9 as co, m as aa, l as It, n as Ot, ca as cn, cb as zn, cc as Ln, cd as js, ce as ra, w as br, cf as Ve, cg as Pn, ch as Ts, ci as _n, cj as uo, ck as mo, cl as ho, cm as wl, cn as po, co as Bs, cp as fo, cq as za, cr as go, cs as dn, ct as Ht, cu as Ge, cv as Qt, cw as xo, cx as yo, cy as vo, cz as Vn, cA as No, cB as jn, cC as Bn, cD as bo, cE as Sl, cF as kl, cG as Co, cH as wo, cI as Za, cJ as So, cK as Un, cL as ko, cM as Do, cN as Cr, cO as To, E as gs, b as $n, cP as qn, cQ as Mo, cR as Eo, cS as Ao, cT as Io, cU as Oo, cV as Dl, cW as Yn, cX as Tl, cY as Ml, cZ as El, c_ as Al, c$ as Il, d0 as Gn, d1 as Kn, d2 as Ol, d3 as Rl, d4 as Fl, d5 as Us, d6 as $s, d7 as Ro, d8 as Fo, d9 as zo, da as Lo, db as Po, dc as _o, dd as Vo, de as jo, df as Ze, dg as tt, dh as Ce, di as we, dj as Se, dk as Bo, dl as Uo, dm as $o, dn as qo, dp as Yo, x as Go, dq as wr, dr as zl, ds as Ko, dt as Wo, du as Cs, dv as Sr, dw as Jo, dx as kr, dy as Dr, dz as Ho, dA as Qo, dB as Xo, dC as Zo, dD as Wn, dE as Jn, dF as Hn, dG as Ya, dH as Qn, dI as la, dJ as ec, dK as qs, dL as Ll, dM as Js, dN as tc, dO as ac, dP as Tr, dQ as sc, dR as nc, dS as rc, dT as lc, dU as ic, v as Mr, dV as Er, dW as oc, dX as cc, dY as dc, dZ as uc, d_ as mc, d$ as hc, e0 as pc, e1 as fc, e2 as gc, e3 as xc, e4 as yc, e5 as vc, e6 as Nc, e7 as bc, e8 as Cc, e9 as wc, ea as Sc, eb as kc, ec as Dc, ed as Xn, ee as Hs, ef as Tc, eg as Mc, eh as un, ei as Ec, ej as Ms, ek as Es, el as Ga, em as Ac, en as Ar, eo as Ic, ep as mn, eq as Pl, er as Zn, es as Oc, et as Qs, eu as er, ev as Rc, ew as Fc, ex as zc, ey as es, ez as Lc, eA as hn, eB as Pc, eC as _c, eD as Vc, eE as pn, eF as fn, eG as Os, eH as jc, eI as La, eJ as ts, eK as Bc, eL as Uc, eM as $c, eN as qc, eO as Yc, F as _l, eP as Gc, eQ as Kc, o as Wc, eR as Jc, A as Hc, eS as Qc, eT as Xc, S as Zc, eU as ed, U as td, eV as ad, C as sd } from "./index-DT9VO-bl.js";
|
|
8
8
|
import * as st from "react";
|
|
9
|
-
import dt, { useState as j, useCallback as Ne, useEffect as Me, useRef as Vt, useMemo as Ke, Suspense as
|
|
9
|
+
import dt, { useState as j, useCallback as Ne, useEffect as Me, useRef as Vt, useMemo as Ke, Suspense as Vl, useContext as nd } from "react";
|
|
10
10
|
import "react-dom";
|
|
11
11
|
var Kt, Wt, He, At, Ft, As, gn, Jr, rd = (Jr = class extends ji {
|
|
12
12
|
constructor(a, s) {
|
|
@@ -295,7 +295,7 @@ const fd = se("CircleArrowRight", [
|
|
|
295
295
|
* This source code is licensed under the ISC license.
|
|
296
296
|
* See the LICENSE file in the root directory of this source tree.
|
|
297
297
|
*/
|
|
298
|
-
const
|
|
298
|
+
const jl = se("CircleX", [
|
|
299
299
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
300
300
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
301
301
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -388,7 +388,7 @@ const vd = se("DatabaseZap", [
|
|
|
388
388
|
* This source code is licensed under the ISC license.
|
|
389
389
|
* See the LICENSE file in the root directory of this source tree.
|
|
390
390
|
*/
|
|
391
|
-
const
|
|
391
|
+
const Bl = se("Expand", [
|
|
392
392
|
["path", { d: "m21 21-6-6m6 6v-4.8m0 4.8h-4.8", key: "1c15vz" }],
|
|
393
393
|
["path", { d: "M3 16.2V21m0 0h4.8M3 21l6-6", key: "1fsnz2" }],
|
|
394
394
|
["path", { d: "M21 7.8V3m0 0h-4.8M21 3l-6 6", key: "hawz9i" }],
|
|
@@ -782,18 +782,6 @@ const $d = se("Plug", [
|
|
|
782
782
|
["path", { d: "M15 8V2", key: "18g5xt" }],
|
|
783
783
|
["path", { d: "M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z", key: "osxo6l" }]
|
|
784
784
|
]);
|
|
785
|
-
/**
|
|
786
|
-
* @license lucide-react v0.453.0 - ISC
|
|
787
|
-
*
|
|
788
|
-
* This source code is licensed under the ISC license.
|
|
789
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
790
|
-
*/
|
|
791
|
-
const Bl = se("RefreshCw", [
|
|
792
|
-
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
793
|
-
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
794
|
-
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
795
|
-
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
796
|
-
]);
|
|
797
785
|
/**
|
|
798
786
|
* @license lucide-react v0.453.0 - ISC
|
|
799
787
|
*
|
|
@@ -1640,7 +1628,7 @@ function ou({
|
|
|
1640
1628
|
l === "loading" && /* @__PURE__ */ e(Pe, { className: "mr-2 size-4 animate-spin" }),
|
|
1641
1629
|
l === "success" && /* @__PURE__ */ e(ma, { className: "mr-2 size-4" }),
|
|
1642
1630
|
l === "error" && /* @__PURE__ */ n(_e, { children: [
|
|
1643
|
-
/* @__PURE__ */ e(je, { children: /* @__PURE__ */ e(
|
|
1631
|
+
/* @__PURE__ */ e(je, { children: /* @__PURE__ */ e(jl, { className: "mr-2 size-4 text-destructive" }) }),
|
|
1644
1632
|
/* @__PURE__ */ e(Be, { children: /* @__PURE__ */ e("p", { children: i }) })
|
|
1645
1633
|
] }),
|
|
1646
1634
|
"Schedule"
|
|
@@ -6301,7 +6289,7 @@ function rm({
|
|
|
6301
6289
|
/* @__PURE__ */ n("div", { className: "flex h-9 items-center justify-between border-b pr-1", children: [
|
|
6302
6290
|
/* @__PURE__ */ e(hs, { className: "h-9", placeholder: "Search..." }),
|
|
6303
6291
|
/* @__PURE__ */ e(ve, { className: "h-7", onClick: c, children: /* @__PURE__ */ e(
|
|
6304
|
-
|
|
6292
|
+
yl,
|
|
6305
6293
|
{
|
|
6306
6294
|
className: K(
|
|
6307
6295
|
"size-3.5 opacity-50",
|
|
@@ -6391,7 +6379,7 @@ function Ja({
|
|
|
6391
6379
|
r ? /* @__PURE__ */ e(Fa, { children: "Loading..." }) : /* @__PURE__ */ n(Fa, { className: "flex items-center justify-between gap-2", children: [
|
|
6392
6380
|
t,
|
|
6393
6381
|
/* @__PURE__ */ e(
|
|
6394
|
-
|
|
6382
|
+
yl,
|
|
6395
6383
|
{
|
|
6396
6384
|
className: K(
|
|
6397
6385
|
"mr-1 size-3 cursor-pointer text-muted-foreground hover:text-foreground",
|
|
@@ -6438,11 +6426,11 @@ function lm({ column: t }) {
|
|
|
6438
6426
|
), o = E((p) => p.sqlGen), { modelItems: u, connectionType: d } = Mt(), m = E((p) => p.actions.setSqlGen), h = E((p) => p.actions.setCardSql), g = E((p) => p.actions.setRunSql);
|
|
6439
6427
|
function x(p, v) {
|
|
6440
6428
|
var F;
|
|
6441
|
-
const f =
|
|
6429
|
+
const f = vl(p, o, v), b = (F = u == null ? void 0 : u.find(
|
|
6442
6430
|
(C) => C.id === c
|
|
6443
6431
|
)) == null ? void 0 : F.name;
|
|
6444
6432
|
m(f);
|
|
6445
|
-
const M =
|
|
6433
|
+
const M = Nl(
|
|
6446
6434
|
f,
|
|
6447
6435
|
vt(l || ""),
|
|
6448
6436
|
vt(r),
|
|
@@ -6595,7 +6583,7 @@ function cm({
|
|
|
6595
6583
|
}
|
|
6596
6584
|
),
|
|
6597
6585
|
children: [
|
|
6598
|
-
s === a.column_name && /* @__PURE__ */ e(
|
|
6586
|
+
s === a.column_name && /* @__PURE__ */ e(bl, { children: /* @__PURE__ */ e(
|
|
6599
6587
|
Xs,
|
|
6600
6588
|
{
|
|
6601
6589
|
column: a,
|
|
@@ -6668,7 +6656,7 @@ function dm() {
|
|
|
6668
6656
|
setFilterColumns: y,
|
|
6669
6657
|
setOrderByColumns: p,
|
|
6670
6658
|
setPivotByColumns: v
|
|
6671
|
-
} = re(), { columns: f } =
|
|
6659
|
+
} = re(), { columns: f } = Cl(), { formattedTableName: b } = Mt(), M = Xa(
|
|
6672
6660
|
Jt(co, {
|
|
6673
6661
|
activationConstraint: {
|
|
6674
6662
|
distance: 1
|
|
@@ -6994,11 +6982,11 @@ function mm({
|
|
|
6994
6982
|
function D(L) {
|
|
6995
6983
|
var $;
|
|
6996
6984
|
if (d) {
|
|
6997
|
-
const U =
|
|
6985
|
+
const U = vl(L, u);
|
|
6998
6986
|
M(U);
|
|
6999
6987
|
const le = ($ = k == null ? void 0 : k.find(
|
|
7000
6988
|
(X) => X.id === g
|
|
7001
|
-
)) == null ? void 0 : $.name, ie =
|
|
6989
|
+
)) == null ? void 0 : $.name, ie = Nl(
|
|
7002
6990
|
U,
|
|
7003
6991
|
vt(t),
|
|
7004
6992
|
vt(a),
|
|
@@ -7543,7 +7531,7 @@ function ui({
|
|
|
7543
7531
|
onDebugWithAssistant: s
|
|
7544
7532
|
}) {
|
|
7545
7533
|
return /* @__PURE__ */ n(Dn, { openDelay: a ? 0 : 500, children: [
|
|
7546
|
-
/* @__PURE__ */ e(Tn, { asChild: !0, children: /* @__PURE__ */ e(V, { variant: "link", className: "h-5 p-0", children: a ? /* @__PURE__ */ e(
|
|
7534
|
+
/* @__PURE__ */ e(Tn, { asChild: !0, children: /* @__PURE__ */ e(V, { variant: "link", className: "h-5 p-0", children: a ? /* @__PURE__ */ e(jl, { className: "h-4 w-4 text-red-500" }) : /* @__PURE__ */ e(os, { className: "h-4 w-4 text-muted-foreground" }) }) }),
|
|
7547
7535
|
/* @__PURE__ */ e(Mn, { align: "start", className: "flex w-[600px]", children: /* @__PURE__ */ e(
|
|
7548
7536
|
di,
|
|
7549
7537
|
{
|
|
@@ -7560,7 +7548,7 @@ function hm(t) {
|
|
|
7560
7548
|
function mi(t) {
|
|
7561
7549
|
const { theme: a } = Qr(), s = Z((p) => p.theme), r = E((p) => p.frame), l = E((p) => p.card), i = E((p) => p.activeTabCardId), c = ho(), { refetch: o } = Ve(l), { updateCardTab: u, setRunSql: d } = re(), m = Vt(), h = Vt({}), g = r.cards.find((p) => p.id === i), x = Ne(() => {
|
|
7562
7550
|
let p = "";
|
|
7563
|
-
return t === "python" && (p = (g == null ? void 0 : g.python) ||
|
|
7551
|
+
return t === "python" && (p = (g == null ? void 0 : g.python) || wl), t === "sql" && (p = (g == null ? void 0 : g.sql) || ""), p;
|
|
7564
7552
|
}, [t, g]);
|
|
7565
7553
|
Me(() => {
|
|
7566
7554
|
if (i && l.id && l.id !== i) {
|
|
@@ -7661,7 +7649,7 @@ function fm() {
|
|
|
7661
7649
|
className: "pt-3",
|
|
7662
7650
|
theme: "default",
|
|
7663
7651
|
onChange: r,
|
|
7664
|
-
value: t ||
|
|
7652
|
+
value: t || wl,
|
|
7665
7653
|
options: {
|
|
7666
7654
|
minimap: {
|
|
7667
7655
|
enabled: !1
|
|
@@ -8119,7 +8107,7 @@ function vm({ card: t }) {
|
|
|
8119
8107
|
return O || null;
|
|
8120
8108
|
});
|
|
8121
8109
|
return /* @__PURE__ */ e("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ n(
|
|
8122
|
-
|
|
8110
|
+
Vl,
|
|
8123
8111
|
{
|
|
8124
8112
|
fallback: /* @__PURE__ */ e(ne, {}),
|
|
8125
8113
|
children: [
|
|
@@ -8208,7 +8196,7 @@ function hi({
|
|
|
8208
8196
|
}
|
|
8209
8197
|
};
|
|
8210
8198
|
p(S), v(S), s.sql && ((T = (z = s.preferences) == null ? void 0 : z.tablePrefs) != null && T.enableDevModePagination) && o(!0);
|
|
8211
|
-
}, C = Ke(() => !s.id || !(m != null && m.records) ? null :
|
|
8199
|
+
}, C = Ke(() => !s.id || !(m != null && m.records) ? null : Sl({
|
|
8212
8200
|
card: s,
|
|
8213
8201
|
data: m == null ? void 0 : m.records,
|
|
8214
8202
|
cardType: s.type,
|
|
@@ -8351,7 +8339,7 @@ function hi({
|
|
|
8351
8339
|
inputClassName: "text-sm"
|
|
8352
8340
|
}
|
|
8353
8341
|
) }),
|
|
8354
|
-
/* @__PURE__ */ e(
|
|
8342
|
+
/* @__PURE__ */ e(kl, { filter: d })
|
|
8355
8343
|
] })
|
|
8356
8344
|
] }),
|
|
8357
8345
|
/* @__PURE__ */ e(Sa, { className: "flex grow flex-col", children: N() })
|
|
@@ -8491,7 +8479,7 @@ function wm() {
|
|
|
8491
8479
|
}, b = () => {
|
|
8492
8480
|
var k, N;
|
|
8493
8481
|
if (!((k = x == null ? void 0 : x.records) != null && k.length)) return;
|
|
8494
|
-
const C =
|
|
8482
|
+
const C = Sl({
|
|
8495
8483
|
card: m,
|
|
8496
8484
|
data: x.records,
|
|
8497
8485
|
cardType: m.type,
|
|
@@ -8724,7 +8712,7 @@ function gi({
|
|
|
8724
8712
|
onClick: () => u("stackedLine"),
|
|
8725
8713
|
className: "h-10 p-4",
|
|
8726
8714
|
children: /* @__PURE__ */ e(
|
|
8727
|
-
|
|
8715
|
+
Il,
|
|
8728
8716
|
{
|
|
8729
8717
|
className: K("size-5", a),
|
|
8730
8718
|
strokeWidth: 0
|
|
@@ -8739,7 +8727,7 @@ function gi({
|
|
|
8739
8727
|
tooltip: "Scatter Chart",
|
|
8740
8728
|
onClick: () => u("scatter"),
|
|
8741
8729
|
className: "h-10 p-4",
|
|
8742
|
-
children: /* @__PURE__ */ e(
|
|
8730
|
+
children: /* @__PURE__ */ e(Rl, { className: K("size-5", a) })
|
|
8743
8731
|
}
|
|
8744
8732
|
),
|
|
8745
8733
|
/* @__PURE__ */ e(
|
|
@@ -8749,7 +8737,7 @@ function gi({
|
|
|
8749
8737
|
tooltip: "Bubble Chart",
|
|
8750
8738
|
onClick: () => u("bubble"),
|
|
8751
8739
|
className: "h-10 p-4",
|
|
8752
|
-
children: /* @__PURE__ */ e(
|
|
8740
|
+
children: /* @__PURE__ */ e(Ol, { className: K("size-5", a) })
|
|
8753
8741
|
}
|
|
8754
8742
|
),
|
|
8755
8743
|
/* @__PURE__ */ e(
|
|
@@ -8779,7 +8767,7 @@ function gi({
|
|
|
8779
8767
|
tooltip: "Funnel Chart",
|
|
8780
8768
|
onClick: () => u("funnel"),
|
|
8781
8769
|
className: "h-10 p-4",
|
|
8782
|
-
children: /* @__PURE__ */ e(
|
|
8770
|
+
children: /* @__PURE__ */ e(El, { className: K("size-5", a) })
|
|
8783
8771
|
}
|
|
8784
8772
|
),
|
|
8785
8773
|
/* @__PURE__ */ e(
|
|
@@ -8789,7 +8777,7 @@ function gi({
|
|
|
8789
8777
|
tooltip: "Radar Chart",
|
|
8790
8778
|
onClick: () => u("radar"),
|
|
8791
8779
|
className: "h-10 p-4",
|
|
8792
|
-
children: /* @__PURE__ */ e(
|
|
8780
|
+
children: /* @__PURE__ */ e(Fl, { className: K("size-5", a) })
|
|
8793
8781
|
}
|
|
8794
8782
|
),
|
|
8795
8783
|
/* @__PURE__ */ e(
|
|
@@ -8799,7 +8787,7 @@ function gi({
|
|
|
8799
8787
|
tooltip: "Polar Area Chart",
|
|
8800
8788
|
onClick: () => u("polarArea"),
|
|
8801
8789
|
className: "h-10 p-4",
|
|
8802
|
-
children: /* @__PURE__ */ e(
|
|
8790
|
+
children: /* @__PURE__ */ e(Al, { className: K("size-5", a) })
|
|
8803
8791
|
}
|
|
8804
8792
|
),
|
|
8805
8793
|
/* @__PURE__ */ e(
|
|
@@ -8809,7 +8797,7 @@ function gi({
|
|
|
8809
8797
|
tooltip: "Tornado Chart",
|
|
8810
8798
|
onClick: () => u("tornado"),
|
|
8811
8799
|
className: "h-10 p-4",
|
|
8812
|
-
children: /* @__PURE__ */ e(
|
|
8800
|
+
children: /* @__PURE__ */ e(Ml, { className: K("size-5", a) })
|
|
8813
8801
|
}
|
|
8814
8802
|
),
|
|
8815
8803
|
/* @__PURE__ */ e(
|
|
@@ -8818,7 +8806,7 @@ function gi({
|
|
|
8818
8806
|
tooltip: "Range Chart",
|
|
8819
8807
|
onClick: () => u("range"),
|
|
8820
8808
|
className: "h-10 p-4",
|
|
8821
|
-
children: /* @__PURE__ */ e(
|
|
8809
|
+
children: /* @__PURE__ */ e(Tl, { className: K("size-5", a) })
|
|
8822
8810
|
}
|
|
8823
8811
|
),
|
|
8824
8812
|
/* @__PURE__ */ e(
|
|
@@ -8847,7 +8835,7 @@ function gi({
|
|
|
8847
8835
|
tooltip: "Map",
|
|
8848
8836
|
onClick: () => u("map"),
|
|
8849
8837
|
className: "h-10 p-4",
|
|
8850
|
-
children: /* @__PURE__ */ e(
|
|
8838
|
+
children: /* @__PURE__ */ e(Dl, { className: K("size-5", a) })
|
|
8851
8839
|
}
|
|
8852
8840
|
),
|
|
8853
8841
|
/* @__PURE__ */ e(
|
|
@@ -8877,32 +8865,32 @@ function Dm({
|
|
|
8877
8865
|
case "pie":
|
|
8878
8866
|
return /* @__PURE__ */ e(_s, { className: a });
|
|
8879
8867
|
case "radar":
|
|
8880
|
-
return /* @__PURE__ */ e(
|
|
8868
|
+
return /* @__PURE__ */ e(Fl, { className: a });
|
|
8881
8869
|
case "scatter":
|
|
8882
|
-
return /* @__PURE__ */ e(
|
|
8870
|
+
return /* @__PURE__ */ e(Rl, { className: a });
|
|
8883
8871
|
case "bubble":
|
|
8884
|
-
return /* @__PURE__ */ e(
|
|
8872
|
+
return /* @__PURE__ */ e(Ol, { className: a });
|
|
8885
8873
|
case "doughnut":
|
|
8886
8874
|
return /* @__PURE__ */ e(Kn, { className: a });
|
|
8887
8875
|
case "stackedBar":
|
|
8888
8876
|
return /* @__PURE__ */ e(Gn, { className: a });
|
|
8889
8877
|
case "stackedLine":
|
|
8890
|
-
return /* @__PURE__ */ e(
|
|
8878
|
+
return /* @__PURE__ */ e(Il, { className: a });
|
|
8891
8879
|
case "polarArea":
|
|
8892
|
-
return /* @__PURE__ */ e(
|
|
8880
|
+
return /* @__PURE__ */ e(Al, { className: a });
|
|
8893
8881
|
case "funnel":
|
|
8894
|
-
return /* @__PURE__ */ e(
|
|
8882
|
+
return /* @__PURE__ */ e(El, { className: a });
|
|
8895
8883
|
case "tornado":
|
|
8896
8884
|
case "pyramid":
|
|
8897
|
-
return /* @__PURE__ */ e(
|
|
8885
|
+
return /* @__PURE__ */ e(Ml, { className: a });
|
|
8898
8886
|
case "range":
|
|
8899
|
-
return /* @__PURE__ */ e(
|
|
8887
|
+
return /* @__PURE__ */ e(Tl, { className: a });
|
|
8900
8888
|
case "kpi":
|
|
8901
8889
|
return /* @__PURE__ */ e(Yn, { className: a });
|
|
8902
8890
|
case "text":
|
|
8903
8891
|
return /* @__PURE__ */ e(mt, { className: a });
|
|
8904
8892
|
case "map":
|
|
8905
|
-
return /* @__PURE__ */ e(
|
|
8893
|
+
return /* @__PURE__ */ e(Dl, { className: a });
|
|
8906
8894
|
case "custom":
|
|
8907
8895
|
return s && l ? /* @__PURE__ */ e(l, { className: a }) : r ? r == null ? void 0 : r.charAt(0).toUpperCase() : /* @__PURE__ */ e(ss, { className: a });
|
|
8908
8896
|
default:
|
|
@@ -10031,7 +10019,7 @@ function Ka() {
|
|
|
10031
10019
|
return /* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
10032
10020
|
/* @__PURE__ */ e(B, { children: "Card Filter" }),
|
|
10033
10021
|
/* @__PURE__ */ e(Fm, { onSelect: i, columns: r }),
|
|
10034
|
-
c && /* @__PURE__ */ e(
|
|
10022
|
+
c && /* @__PURE__ */ e(zl, { filter: c })
|
|
10035
10023
|
] });
|
|
10036
10024
|
}
|
|
10037
10025
|
function Fm({
|
|
@@ -12754,7 +12742,7 @@ function hh({
|
|
|
12754
12742
|
onChange: a,
|
|
12755
12743
|
droppableId: s
|
|
12756
12744
|
}) {
|
|
12757
|
-
const { columns: r } =
|
|
12745
|
+
const { columns: r } = Cl(), l = Ke(() => {
|
|
12758
12746
|
let o = [];
|
|
12759
12747
|
(s === xa || s === ya || s === va) && (o = r);
|
|
12760
12748
|
const u = o == null ? void 0 : o.filter(
|
|
@@ -12954,7 +12942,7 @@ function ph({
|
|
|
12954
12942
|
)
|
|
12955
12943
|
}
|
|
12956
12944
|
) : /* @__PURE__ */ e(
|
|
12957
|
-
|
|
12945
|
+
Bl,
|
|
12958
12946
|
{
|
|
12959
12947
|
className: K(
|
|
12960
12948
|
"size-3 cursor-pointer items-center justify-center rounded-r-sm text-muted-foreground"
|
|
@@ -13136,7 +13124,7 @@ function gh() {
|
|
|
13136
13124
|
children: /* @__PURE__ */ n("div", { className: "flex h-full grow items-center justify-between gap-2", children: [
|
|
13137
13125
|
/* @__PURE__ */ n("div", { className: "flex h-full grow items-center justify-between gap-2 rounded-sm bg-muted px-2", children: [
|
|
13138
13126
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-3", children: [
|
|
13139
|
-
/* @__PURE__ */ e(
|
|
13127
|
+
/* @__PURE__ */ e(Bl, { className: "size-3 cursor-move text-muted-foreground hover:text-foreground" }),
|
|
13140
13128
|
/* @__PURE__ */ e(Ks, { className: "w-[175px] text-sm", children: ((b = x(f.columnId)) == null ? void 0 : b.label) || ((M = x(f.columnId)) == null ? void 0 : M.name) })
|
|
13141
13129
|
] }),
|
|
13142
13130
|
/* @__PURE__ */ e(
|
|
@@ -13354,7 +13342,7 @@ function yh({
|
|
|
13354
13342
|
connectionId: i,
|
|
13355
13343
|
// not needed
|
|
13356
13344
|
dataType: t.type
|
|
13357
|
-
}, { data: g, isLoading: x, isFetching: y, isError: p } =
|
|
13345
|
+
}, { data: g, isLoading: x, isFetching: y, isError: p } = Ll(h), v = Ke(() => {
|
|
13358
13346
|
var F;
|
|
13359
13347
|
return h.column ? (F = g == null ? void 0 : g.records) == null ? void 0 : F.map((C) => {
|
|
13360
13348
|
let k = h.column.split(".").slice(-1)[0].replace(/"/g, "");
|
|
@@ -13546,7 +13534,7 @@ function bh({
|
|
|
13546
13534
|
title: "",
|
|
13547
13535
|
// not needed
|
|
13548
13536
|
dataType: t.type
|
|
13549
|
-
}, { isLoading: u, isFetching: d, isError: m, data: h } =
|
|
13537
|
+
}, { isLoading: u, isFetching: d, isError: m, data: h } = Ll(o), g = h == null ? void 0 : h.records, { dateRange: x, setDateRange: y, initialDateRange: p } = ac(g), { updateEditorFilterValue: v } = re();
|
|
13550
13538
|
function f(F) {
|
|
13551
13539
|
var k, N;
|
|
13552
13540
|
const C = {
|
|
@@ -16175,7 +16163,7 @@ function _h({
|
|
|
16175
16163
|
title: a,
|
|
16176
16164
|
maxDetails: s = 10
|
|
16177
16165
|
}) {
|
|
16178
|
-
const l =
|
|
16166
|
+
const l = Pl(t).slice(0, s), i = l.find(
|
|
16179
16167
|
(o) => o.label === "Description"
|
|
16180
16168
|
), c = l.filter((o) => o.label === "Description" ? !1 : !["Connection", "Database", "Schema"].includes(o.label));
|
|
16181
16169
|
return /* @__PURE__ */ e(Be, { side: "top", className: "ml-5 max-w-xs", children: /* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
@@ -16202,7 +16190,7 @@ function Vh({
|
|
|
16202
16190
|
" more entities"
|
|
16203
16191
|
] }),
|
|
16204
16192
|
/* @__PURE__ */ e("div", { className: "space-y-1", children: t.map((a, s) => {
|
|
16205
|
-
const r =
|
|
16193
|
+
const r = Pl(a), l = r.find(
|
|
16206
16194
|
(c) => c.label === "Description"
|
|
16207
16195
|
), i = r.filter((c) => c.label === "Description" ? !1 : !["Connection", "Database", "Schema"].includes(c.label)).slice(0, 3);
|
|
16208
16196
|
return /* @__PURE__ */ n(
|
|
@@ -20269,7 +20257,7 @@ function Ep({
|
|
|
20269
20257
|
}
|
|
20270
20258
|
)
|
|
20271
20259
|
] }),
|
|
20272
|
-
/* @__PURE__ */ e("div", { className: "h-full min-h-0 flex-1", children: d && /* @__PURE__ */ e(
|
|
20260
|
+
/* @__PURE__ */ e("div", { className: "h-full min-h-0 flex-1", children: d && /* @__PURE__ */ e(Vl, { fallback: /* @__PURE__ */ e("div", { children: "Loading chart settings..." }), children: /* @__PURE__ */ e(
|
|
20273
20261
|
d,
|
|
20274
20262
|
{
|
|
20275
20263
|
chartData: (o == null ? void 0 : o.records) || [],
|
|
@@ -20671,7 +20659,7 @@ function Rp() {
|
|
|
20671
20659
|
onOpenChange: i
|
|
20672
20660
|
}
|
|
20673
20661
|
),
|
|
20674
|
-
/* @__PURE__ */ e(
|
|
20662
|
+
/* @__PURE__ */ e(bl, { dropAnimation: null, children: /* @__PURE__ */ e(Ip, { activeField: O || null }) })
|
|
20675
20663
|
]
|
|
20676
20664
|
}
|
|
20677
20665
|
);
|
|
@@ -20746,7 +20734,7 @@ function Fp({ authToken: t, onSave: a, onClose: s }) {
|
|
|
20746
20734
|
}
|
|
20747
20735
|
);
|
|
20748
20736
|
}
|
|
20749
|
-
return /* @__PURE__ */ e(gs, { FallbackComponent:
|
|
20737
|
+
return /* @__PURE__ */ e(gs, { FallbackComponent: _l, children: i ? /* @__PURE__ */ e(
|
|
20750
20738
|
La,
|
|
20751
20739
|
{
|
|
20752
20740
|
sensors: y,
|
|
@@ -20989,8 +20977,8 @@ function Bp() {
|
|
|
20989
20977
|
{
|
|
20990
20978
|
className: "flex min-w-[250px] max-w-fit flex-col gap-1 p-2",
|
|
20991
20979
|
children: [
|
|
20992
|
-
/* @__PURE__ */ e(
|
|
20993
|
-
/* @__PURE__ */ e(
|
|
20980
|
+
/* @__PURE__ */ e(zl, { filter: r }),
|
|
20981
|
+
/* @__PURE__ */ e(kl, { filter: r })
|
|
20994
20982
|
]
|
|
20995
20983
|
},
|
|
20996
20984
|
r.id
|
|
@@ -21089,7 +21077,7 @@ function Jp({
|
|
|
21089
21077
|
if (typeof window > "u")
|
|
21090
21078
|
return null;
|
|
21091
21079
|
const { preferences: r } = s;
|
|
21092
|
-
return /* @__PURE__ */ e(gs, { FallbackComponent:
|
|
21080
|
+
return /* @__PURE__ */ e(gs, { FallbackComponent: _l, children: /* @__PURE__ */ n(Zc, { dashboardProps: s, children: [
|
|
21093
21081
|
/* @__PURE__ */ e(ed, {}),
|
|
21094
21082
|
/* @__PURE__ */ e(td, { children: /* @__PURE__ */ n(ad, { preferences: r, children: [
|
|
21095
21083
|
/* @__PURE__ */ e($p, {}),
|