react-semaphor 0.0.535 → 0.0.536
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-CmvfKHA9.js → dashboard-plus-AOeD-3_N.js} +2 -2
- package/dist/chunks/{dashboard-plus-CUjbcI7e.js → dashboard-plus-DoWKgbsl.js} +60 -55
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
-
import { E as J, F as Fa, w as Z, A as zt, G as Qe, H as fn, I as er, J as V, P as Oe, K as gn, L as yn, M as xn, N as vn, O as K, Q as _e, R as Kn, T as Nn, U as bn, V as le, W as Cn, X as tr, Y as $t, Z as Zl, _ as Os, $ as nr, a0 as G, a1 as Pa, a2 as De, a3 as Xl, a4 as pe, a5 as fe, a6 as ge, a7 as ye, a8 as Tt, a9 as Dt, aa as te, ab as ar, ac as Ze, ad as Xe, ae as ei, af as Lt, ag as mt, ah as _t, ai as Fe, aj as Ve, ak as je, al as
|
|
2
|
+
import { E as J, F as Fa, w as Z, A as zt, G as Qe, H as fn, I as er, J as V, P as Oe, K as gn, L as yn, M as xn, N as vn, O as K, Q as _e, R as Kn, T as Nn, U as bn, V as le, W as Cn, X as tr, Y as $t, Z as Zl, _ as Os, $ as nr, a0 as G, a1 as Pa, a2 as De, a3 as Xl, a4 as pe, a5 as fe, a6 as ge, a7 as ye, a8 as Tt, a9 as Dt, aa as te, ab as ar, ac as Ze, ad as Xe, ae as ei, af as Lt, ag as mt, ah as _t, ai as Fe, aj as Ve, ak as je, al as We, am as sr, an as wn, ao as Sn, ap as rr, aq as kn, ar as wa, as as lr, at as et, au as ir, av as ti, aw as Un, ax as or, ay as st, az as cr, aA as Qn, aB as Va, aC as ni, aD as Ee, aE as ie, aF as we, aG as Wt, aH as tt, aI as Yt, aJ as ai, aK as wt, aL as Ye, aM as Tn, aN as Zn, aO as sn, aP as ja, aQ as rn, aR as nt, aS as Ft, aT as Dn, aU as Mn, aV as dr, aW as Pt, aX as Ba, aY as Ua, aZ as qa, a_ as ur, a$ as qe, b0 as si, b1 as Kt, b2 as On, b3 as mr, b4 as $a, b5 as Xn, b6 as Ga, b7 as ri, b8 as li, b9 as Ja, ba as ii, bb as oi, bc as Vt, bd as jt, be as Ie, bf as yt, bg as ci, bh as di, bi as hr, bj as pr, bk as fr, bl as gr, bm as yr, bn as xr, bo as vr, bp as Nr, bq as br, br as ui, bs as mi, bt as Es, bu as hi, bv as Ha, bw as pi, bx as fi, by as gi, bz as ea, B as I, bA as Cr, bB as yi, bC as Wa, bD as Gt, bE as ln, bF as Qt, bG as En, bH as In, bI as An, bJ as Rn, bK as Mt, bL as Zt, bM as on, v as at, bN as wr, m as Sr, l as kr, f as He, bO as xi, g as rt, bP as vi, h as Rt, j as lt, k as Ni, bQ as bi, bR as Ci, bS as vt, bT as xt, bU as Tr, bV as wi, C as se, e as Dr, bW as cn, bX as ht, bY as Si, bZ as Sa, b_ as Ya, b$ as zn, c0 as it, c1 as Mr, r as qn, q as Is, c2 as Le, c3 as Vn, c4 as Or, c5 as ki, c6 as Ti, c7 as Di, c8 as Er, c9 as Mi, ca as ta, cb as Oi, cc as Ei, cd as Ii, ce as ka, cf as pt, cg as ze, ch as ft, ci as Ai, cj as Ka, ck as Ir, cl as Ar, cm as Ri, cn as zi, co as Li, cp as _i, cq as ha, cr as Fi, cs as As, ct as Pi, cu as Rs, cv as Vi, cw as ji, cx as Bi, cy as Ui, cz as Qa, cA as qi, cB as $i, cC as Za, cD as Rr, cE as jn, cF as zr, cG as Gi, cH as Ji, cI as Hi, cJ as Lr, cK as _r, cL as na, cM as Fr, cN as Wi, cO as Yi, cP as Ki, cQ as Pr, cR as Xa, cS as Vr, cT as Qi, cU as zs, cV as es, cW as aa, cX as sa, cY as Zi, cZ as Xi, c_ as eo, c$ as ct, d0 as Ne, d1 as be, d2 as Ce, d3 as to, d4 as no, d5 as ao, d6 as so, s as ro, d7 as Ls, d8 as jr, d9 as lo, da as io, db as oo, dc as Br, dd as ts, de as Xt, df as ns, dg as Nt, dh as co, di as en, dj as Ur, dk as uo, dl as mo, dm as ho, dn as po, dp as fo, dq as _s, dr as go, ds as yo, dt as xo, du as vo, dv as No, dw as bo, dx as Co, dy as qr, dz as wo, dA as So, dB as ko, dC as To, dD as Do, dE as $r, dF as Ta, dG as pa, dH as $e, dI as Gr, dJ as Fs, dK as ra, dL as Mo, dM as Oo, dN as Jr, dO as as, dP as Eo, dQ as Io, dR as Ao, dS as dn, dT as Da, dU as Ro, dV as zo, dW as Ps, dX as Ma, dY as Oa, dZ as $n, d_ as Jt, d$ as un, e0 as Lo, e1 as Hr, e2 as _o, e3 as Fo, S as Po, e4 as Vo, e5 as jo, e6 as Bo } from "./index-C7jXeSfd.js";
|
|
3
3
|
import * as kt from "react";
|
|
4
4
|
import ke, { useState as P, useEffect as Te, useRef as Ke, useMemo as Pe, useCallback as xe, Suspense as Wr } from "react";
|
|
5
5
|
import "react-dom";
|
|
@@ -1520,7 +1520,7 @@ function Hc({
|
|
|
1520
1520
|
}
|
|
1521
1521
|
) }),
|
|
1522
1522
|
a && a.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-4", children: [
|
|
1523
|
-
/* @__PURE__ */ e(
|
|
1523
|
+
/* @__PURE__ */ e(We, { className: "my-2" }),
|
|
1524
1524
|
/* @__PURE__ */ e("div", { className: "space-y-2", children: /* @__PURE__ */ s("div", { className: "flex items-start justify-between", children: [
|
|
1525
1525
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
1526
1526
|
/* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Subscriptions" }),
|
|
@@ -2003,7 +2003,7 @@ function cl({
|
|
|
2003
2003
|
)
|
|
2004
2004
|
] }, i.id);
|
|
2005
2005
|
}) }),
|
|
2006
|
-
/* @__PURE__ */ e(
|
|
2006
|
+
/* @__PURE__ */ e(We, {})
|
|
2007
2007
|
] });
|
|
2008
2008
|
}
|
|
2009
2009
|
function dl({
|
|
@@ -2040,7 +2040,7 @@ function dl({
|
|
|
2040
2040
|
}
|
|
2041
2041
|
)
|
|
2042
2042
|
] }, r.id)) }),
|
|
2043
|
-
/* @__PURE__ */ e(
|
|
2043
|
+
/* @__PURE__ */ e(We, {})
|
|
2044
2044
|
] });
|
|
2045
2045
|
}
|
|
2046
2046
|
function ul({
|
|
@@ -2109,7 +2109,7 @@ function Kc(t, a = {}) {
|
|
|
2109
2109
|
};
|
|
2110
2110
|
}, [t, n, r]), l;
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2112
|
+
function Ge(t, a) {
|
|
2113
2113
|
var n;
|
|
2114
2114
|
return ((n = a.find((r) => r.value === t)) == null ? void 0 : n.label) || t;
|
|
2115
2115
|
}
|
|
@@ -2166,7 +2166,7 @@ function ed({
|
|
|
2166
2166
|
allowDropdown: c,
|
|
2167
2167
|
className: o ? "border-orange-300 bg-orange-100" : ""
|
|
2168
2168
|
}
|
|
2169
|
-
) : /* @__PURE__ */ e(ie, { variant: "outline", className: "text-xs", children:
|
|
2169
|
+
) : /* @__PURE__ */ e(ie, { variant: "outline", className: "text-xs", children: Ge(m, h) }) }) : /* @__PURE__ */ e(ie, { variant: "outline", className: "text-xs", children: "Unknown" });
|
|
2170
2170
|
}
|
|
2171
2171
|
function td({
|
|
2172
2172
|
hasAccess: t,
|
|
@@ -2253,7 +2253,7 @@ function ad({
|
|
|
2253
2253
|
(w) => w.id === f.orgUserId
|
|
2254
2254
|
)) == null ? void 0 : y.name) || "Unknown User", p = ((b = a.find(
|
|
2255
2255
|
(w) => w.id === f.orgUserId
|
|
2256
|
-
)) == null ? void 0 : b.type) || "", T =
|
|
2256
|
+
)) == null ? void 0 : b.type) || "", T = Ge(
|
|
2257
2257
|
f.role,
|
|
2258
2258
|
n(p)
|
|
2259
2259
|
);
|
|
@@ -2296,7 +2296,7 @@ function ad({
|
|
|
2296
2296
|
(w) => w.id === f.tenantUserId
|
|
2297
2297
|
)) == null ? void 0 : y.name) || "Unknown User", p = ((b = a.find(
|
|
2298
2298
|
(w) => w.id === f.tenantUserId
|
|
2299
|
-
)) == null ? void 0 : b.type) || "", T =
|
|
2299
|
+
)) == null ? void 0 : b.type) || "", T = Ge(
|
|
2300
2300
|
f.role,
|
|
2301
2301
|
n(p)
|
|
2302
2302
|
);
|
|
@@ -2329,7 +2329,7 @@ function ad({
|
|
|
2329
2329
|
m.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
2330
2330
|
/* @__PURE__ */ e("div", { className: "text-xs font-medium text-purple-600", children: "All Org Users" }),
|
|
2331
2331
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-1", children: m.map((f, g) => {
|
|
2332
|
-
const x =
|
|
2332
|
+
const x = Ge(
|
|
2333
2333
|
f.role,
|
|
2334
2334
|
n("")
|
|
2335
2335
|
);
|
|
@@ -2356,7 +2356,7 @@ function ad({
|
|
|
2356
2356
|
h.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
2357
2357
|
/* @__PURE__ */ e("div", { className: "text-xs font-medium text-orange-600", children: "Org Users Only" }),
|
|
2358
2358
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-1", children: h.map((f, g) => {
|
|
2359
|
-
const x =
|
|
2359
|
+
const x = Ge(
|
|
2360
2360
|
f.role,
|
|
2361
2361
|
n("")
|
|
2362
2362
|
);
|
|
@@ -2383,7 +2383,7 @@ function ad({
|
|
|
2383
2383
|
u.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
2384
2384
|
/* @__PURE__ */ e("div", { className: "text-xs font-medium text-indigo-600", children: "All Tenants" }),
|
|
2385
2385
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-1", children: u.map((f, g) => {
|
|
2386
|
-
const x =
|
|
2386
|
+
const x = Ge(
|
|
2387
2387
|
f.role,
|
|
2388
2388
|
n("")
|
|
2389
2389
|
);
|
|
@@ -2428,7 +2428,7 @@ function ad({
|
|
|
2428
2428
|
(p) => p.id === d.tenantUserId
|
|
2429
2429
|
)) == null ? void 0 : g.name) || "Unknown User", u = ((x = a.find(
|
|
2430
2430
|
(p) => p.id === d.tenantUserId
|
|
2431
|
-
)) == null ? void 0 : x.type) || "", f =
|
|
2431
|
+
)) == null ? void 0 : x.type) || "", f = Ge(
|
|
2432
2432
|
d.role,
|
|
2433
2433
|
n(u)
|
|
2434
2434
|
);
|
|
@@ -2461,7 +2461,7 @@ function ad({
|
|
|
2461
2461
|
o.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
2462
2462
|
/* @__PURE__ */ e("div", { className: "text-xs font-medium text-green-600", children: "All Users" }),
|
|
2463
2463
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-1", children: o.map((d, m) => {
|
|
2464
|
-
const h =
|
|
2464
|
+
const h = Ge(
|
|
2465
2465
|
d.role,
|
|
2466
2466
|
n("")
|
|
2467
2467
|
);
|
|
@@ -2507,7 +2507,7 @@ function ad({
|
|
|
2507
2507
|
(x) => x.id === o.tenantUserId
|
|
2508
2508
|
)) == null ? void 0 : f.name) || "Unknown User", h = ((g = a.find(
|
|
2509
2509
|
(x) => x.id === o.tenantUserId
|
|
2510
|
-
)) == null ? void 0 : g.type) || "", u =
|
|
2510
|
+
)) == null ? void 0 : g.type) || "", u = Ge(
|
|
2511
2511
|
o.role,
|
|
2512
2512
|
n(h)
|
|
2513
2513
|
);
|
|
@@ -2540,7 +2540,7 @@ function ad({
|
|
|
2540
2540
|
c.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
2541
2541
|
/* @__PURE__ */ e("div", { className: "text-xs font-medium text-green-600", children: "All Users" }),
|
|
2542
2542
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-1", children: c.map((o, d) => {
|
|
2543
|
-
const m =
|
|
2543
|
+
const m = Ge(
|
|
2544
2544
|
o.role,
|
|
2545
2545
|
n("")
|
|
2546
2546
|
);
|
|
@@ -5538,8 +5538,8 @@ function Nd({ column: t }) {
|
|
|
5538
5538
|
h(y);
|
|
5539
5539
|
const w = kr(
|
|
5540
5540
|
y,
|
|
5541
|
-
|
|
5542
|
-
|
|
5541
|
+
He(l || ""),
|
|
5542
|
+
He(r),
|
|
5543
5543
|
b || "",
|
|
5544
5544
|
m,
|
|
5545
5545
|
i || ""
|
|
@@ -5861,7 +5861,7 @@ function wd() {
|
|
|
5861
5861
|
function C(N, v = "SUM") {
|
|
5862
5862
|
const { column_name: R, data_type: F } = N, B = [...n], U = t !== null ? t : n.length, j = {
|
|
5863
5863
|
...N,
|
|
5864
|
-
id:
|
|
5864
|
+
id: Je(R),
|
|
5865
5865
|
// Unique ID
|
|
5866
5866
|
name: R,
|
|
5867
5867
|
label: pn(R, v),
|
|
@@ -5878,14 +5878,14 @@ function wd() {
|
|
|
5878
5878
|
let B;
|
|
5879
5879
|
v ? B = {
|
|
5880
5880
|
...N,
|
|
5881
|
-
id:
|
|
5881
|
+
id: Je(N.column_name),
|
|
5882
5882
|
// Unique ID
|
|
5883
5883
|
name: N.column_name,
|
|
5884
5884
|
type: N.data_type,
|
|
5885
5885
|
role: "groupby"
|
|
5886
5886
|
} : B = {
|
|
5887
5887
|
...N,
|
|
5888
|
-
id:
|
|
5888
|
+
id: Je(N.column_name),
|
|
5889
5889
|
// Unique ID
|
|
5890
5890
|
name: N.column_name,
|
|
5891
5891
|
type: N.data_type,
|
|
@@ -5901,14 +5901,14 @@ function wd() {
|
|
|
5901
5901
|
let B;
|
|
5902
5902
|
v ? B = {
|
|
5903
5903
|
...N,
|
|
5904
|
-
id:
|
|
5904
|
+
id: Je(N.column_name),
|
|
5905
5905
|
// Unique ID
|
|
5906
5906
|
name: N.column_name,
|
|
5907
5907
|
type: N.data_type,
|
|
5908
5908
|
role: "groupby"
|
|
5909
5909
|
} : B = {
|
|
5910
5910
|
...N,
|
|
5911
|
-
id:
|
|
5911
|
+
id: Je(N.column_name),
|
|
5912
5912
|
// Unique ID
|
|
5913
5913
|
name: N.column_name,
|
|
5914
5914
|
type: N.data_type,
|
|
@@ -5920,14 +5920,14 @@ function wd() {
|
|
|
5920
5920
|
function A(N) {
|
|
5921
5921
|
const v = [...r], R = t !== null ? t : r.length, F = {
|
|
5922
5922
|
...N,
|
|
5923
|
-
id:
|
|
5923
|
+
id: Je(N.column_name),
|
|
5924
5924
|
// Unique ID
|
|
5925
5925
|
name: N.column_name,
|
|
5926
5926
|
type: N.data_type,
|
|
5927
5927
|
sql: Sa(
|
|
5928
5928
|
N.data_type,
|
|
5929
5929
|
b,
|
|
5930
|
-
|
|
5930
|
+
He(N.column_name)
|
|
5931
5931
|
),
|
|
5932
5932
|
role: "filter"
|
|
5933
5933
|
};
|
|
@@ -6001,7 +6001,7 @@ function wd() {
|
|
|
6001
6001
|
sensors: w
|
|
6002
6002
|
};
|
|
6003
6003
|
}
|
|
6004
|
-
function
|
|
6004
|
+
function Je(t) {
|
|
6005
6005
|
return `${t}-${Gt()}`;
|
|
6006
6006
|
}
|
|
6007
6007
|
function pn(t, a) {
|
|
@@ -6086,8 +6086,8 @@ function Sd({
|
|
|
6086
6086
|
(j) => j.id === u
|
|
6087
6087
|
)) == null ? void 0 : R.name, U = kr(
|
|
6088
6088
|
F,
|
|
6089
|
-
|
|
6090
|
-
|
|
6089
|
+
He(t),
|
|
6090
|
+
He(a),
|
|
6091
6091
|
B || "",
|
|
6092
6092
|
k,
|
|
6093
6093
|
d || ""
|
|
@@ -6100,7 +6100,7 @@ function Sd({
|
|
|
6100
6100
|
const F = {
|
|
6101
6101
|
...v,
|
|
6102
6102
|
role: "groupby",
|
|
6103
|
-
id:
|
|
6103
|
+
id: Je(v.column_name),
|
|
6104
6104
|
name: v.column_name,
|
|
6105
6105
|
type: v.data_type
|
|
6106
6106
|
};
|
|
@@ -6109,7 +6109,7 @@ function Sd({
|
|
|
6109
6109
|
const F = {
|
|
6110
6110
|
...v,
|
|
6111
6111
|
role: "metric",
|
|
6112
|
-
id:
|
|
6112
|
+
id: Je(v.column_name),
|
|
6113
6113
|
name: v.column_name,
|
|
6114
6114
|
label: pn(v.column_name, "COUNT"),
|
|
6115
6115
|
type: v.data_type,
|
|
@@ -6121,7 +6121,7 @@ function Sd({
|
|
|
6121
6121
|
const F = {
|
|
6122
6122
|
...v,
|
|
6123
6123
|
role: "groupby",
|
|
6124
|
-
id:
|
|
6124
|
+
id: Je(v.column_name),
|
|
6125
6125
|
name: v.column_name,
|
|
6126
6126
|
type: v.data_type,
|
|
6127
6127
|
label: Ht(v.column_name, "month"),
|
|
@@ -6133,7 +6133,7 @@ function Sd({
|
|
|
6133
6133
|
const F = {
|
|
6134
6134
|
...v,
|
|
6135
6135
|
role: "metric",
|
|
6136
|
-
id:
|
|
6136
|
+
id: Je(v.column_name),
|
|
6137
6137
|
name: v.column_name,
|
|
6138
6138
|
label: pn(v.column_name, "SUM"),
|
|
6139
6139
|
type: v.data_type,
|
|
@@ -6393,9 +6393,9 @@ function bl({
|
|
|
6393
6393
|
function _() {
|
|
6394
6394
|
if (r && !R && (!c || c === "none") && (!i || i === "none"))
|
|
6395
6395
|
return /* @__PURE__ */ s("div", { className: "grid grid-cols-3", children: [
|
|
6396
|
-
/* @__PURE__ */ e("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e(
|
|
6396
|
+
/* @__PURE__ */ e("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e(We, {}) }),
|
|
6397
6397
|
/* @__PURE__ */ e("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e(K, { children: "OR" }) }),
|
|
6398
|
-
/* @__PURE__ */ e("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e(
|
|
6398
|
+
/* @__PURE__ */ e("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e(We, {}) })
|
|
6399
6399
|
] });
|
|
6400
6400
|
}
|
|
6401
6401
|
function re() {
|
|
@@ -7623,7 +7623,7 @@ function qd({
|
|
|
7623
7623
|
}
|
|
7624
7624
|
})();
|
|
7625
7625
|
}, [o]), a.length === 0 ? null : /* @__PURE__ */ s(ae, { children: [
|
|
7626
|
-
/* @__PURE__ */ e(
|
|
7626
|
+
/* @__PURE__ */ e(We, { className: "my-2" }),
|
|
7627
7627
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-4 place-items-center", children: a.map((m, h) => /* @__PURE__ */ e(
|
|
7628
7628
|
$d,
|
|
7629
7629
|
{
|
|
@@ -8172,7 +8172,7 @@ function Hd() {
|
|
|
8172
8172
|
}
|
|
8173
8173
|
return /* @__PURE__ */ s(Ze, { onOpenChange: (ne) => a(ne), children: [
|
|
8174
8174
|
/* @__PURE__ */ e(Xe, { asChild: !0, children: /* @__PURE__ */ e(le, { tooltip: "Format Number", children: /* @__PURE__ */ e(cc, { className: "size-4" }) }) }),
|
|
8175
|
-
/* @__PURE__ */ e(Xa, { align: "end", className: "max-w-65", children: /* @__PURE__ */ s("div", { className: "grid gap-4", children: [
|
|
8175
|
+
/* @__PURE__ */ e(Xa, { align: "end", className: "max-w-65 z-[51]", children: /* @__PURE__ */ s("div", { className: "grid gap-4", children: [
|
|
8176
8176
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
8177
8177
|
/* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Format Options" }),
|
|
8178
8178
|
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Set the format for number axis" })
|
|
@@ -8232,7 +8232,7 @@ function Wd() {
|
|
|
8232
8232
|
};
|
|
8233
8233
|
return /* @__PURE__ */ s(Ze, { children: [
|
|
8234
8234
|
/* @__PURE__ */ e(Xe, { asChild: !0, children: /* @__PURE__ */ e(le, { tooltip: "Legend Settings", children: /* @__PURE__ */ e(Nc, { className: "size-4" }) }) }),
|
|
8235
|
-
/* @__PURE__ */ e(Xa, { align: "end", className: "w-72", children: /* @__PURE__ */ s("div", { className: "grid gap-4", children: [
|
|
8235
|
+
/* @__PURE__ */ e(Xa, { align: "end", className: "z-[51] w-72", children: /* @__PURE__ */ s("div", { className: "grid gap-4", children: [
|
|
8236
8236
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
8237
8237
|
/* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Legend Options" }),
|
|
8238
8238
|
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Set the legend options for the chart." })
|
|
@@ -9298,7 +9298,7 @@ function _l() {
|
|
|
9298
9298
|
const t = I((g) => g.selectedConnectionId), a = I((g) => g.selectedDatamodelId), n = I((g) => g.selectedDatabaseName), r = I((g) => g.selectedSchemaName), l = I((g) => g.selectedTableName), i = Z((g) => g.dashboard.filters) || [], c = Z((g) => g.actions.addFilter), o = Z((g) => g.actions.removeFilter), { removeFilterValues: d } = zt(), { modelItems: m, tableName: h, connectionType: u } = at();
|
|
9299
9299
|
function f(g, x = "dashboard") {
|
|
9300
9300
|
var C;
|
|
9301
|
-
const p =
|
|
9301
|
+
const p = He(g.column_name), T = He(n || ""), y = He(r || ""), b = He(h);
|
|
9302
9302
|
let w = ro({
|
|
9303
9303
|
schemaName: y,
|
|
9304
9304
|
tableName: b,
|
|
@@ -9883,7 +9883,7 @@ function hu() {
|
|
|
9883
9883
|
})) || [];
|
|
9884
9884
|
return /* @__PURE__ */ s("div", { className: "p-6", children: [
|
|
9885
9885
|
/* @__PURE__ */ e(ba, { summary: "Map Chart", children: /* @__PURE__ */ e("p", { className: "rounded-md bg-muted p-2 font-mono text-xs", children: "SELECT country, value FROM table" }) }),
|
|
9886
|
-
/* @__PURE__ */ e(
|
|
9886
|
+
/* @__PURE__ */ e(We, { className: "my-4" }),
|
|
9887
9887
|
/* @__PURE__ */ e(ba, { open: !0, summary: "Settings", children: /* @__PURE__ */ s("div", { className: "space-y-3 px-2", children: [
|
|
9888
9888
|
/* @__PURE__ */ e(
|
|
9889
9889
|
Ue,
|
|
@@ -10006,7 +10006,7 @@ function hu() {
|
|
|
10006
10006
|
] })
|
|
10007
10007
|
] })
|
|
10008
10008
|
] }) }),
|
|
10009
|
-
/* @__PURE__ */ e(
|
|
10009
|
+
/* @__PURE__ */ e(We, { className: "my-4" }),
|
|
10010
10010
|
/* @__PURE__ */ e(ba, { className: "", summary: "Scale Options", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
|
|
10011
10011
|
/* @__PURE__ */ e(
|
|
10012
10012
|
_e,
|
|
@@ -10074,7 +10074,7 @@ function hu() {
|
|
|
10074
10074
|
}
|
|
10075
10075
|
)
|
|
10076
10076
|
] }) }),
|
|
10077
|
-
/* @__PURE__ */ e(
|
|
10077
|
+
/* @__PURE__ */ e(We, { className: "my-4" }),
|
|
10078
10078
|
/* @__PURE__ */ e(Ut, {})
|
|
10079
10079
|
] });
|
|
10080
10080
|
}
|
|
@@ -11915,11 +11915,11 @@ function Bl(t, a) {
|
|
|
11915
11915
|
}
|
|
11916
11916
|
}
|
|
11917
11917
|
function ju(t, a) {
|
|
11918
|
-
const n =
|
|
11918
|
+
const n = $e(t.dataType);
|
|
11919
11919
|
return n === "number" ? "metrics" : n === "date" || n === "string" ? "groupBy" : "metrics";
|
|
11920
11920
|
}
|
|
11921
11921
|
function za(t, a) {
|
|
11922
|
-
const n = jl(a, t), r =
|
|
11922
|
+
const n = jl(a, t), r = $e(t.dataType), l = r === "date", i = {
|
|
11923
11923
|
id: n,
|
|
11924
11924
|
name: t.name,
|
|
11925
11925
|
dataType: t.dataType,
|
|
@@ -12305,9 +12305,9 @@ function Uu({ field: t }) {
|
|
|
12305
12305
|
} = Xt({ id: t.id }), [o, d] = P(!1), m = I((p) => p.card), { handleFieldClick: h } = Cs(m), u = {
|
|
12306
12306
|
transform: vt.Transform.toString(l),
|
|
12307
12307
|
transition: i
|
|
12308
|
-
}, f =
|
|
12308
|
+
}, f = $e(t.dataType), x = ((p) => {
|
|
12309
12309
|
const T = (p || "").toLowerCase();
|
|
12310
|
-
switch (
|
|
12310
|
+
switch ($e(T)) {
|
|
12311
12311
|
case "number":
|
|
12312
12312
|
return os;
|
|
12313
12313
|
case "date":
|
|
@@ -12437,7 +12437,12 @@ function qu() {
|
|
|
12437
12437
|
error: d
|
|
12438
12438
|
} = ra(), m = i.filter(
|
|
12439
12439
|
(w) => w.name.toLowerCase().includes(t.toLowerCase()) || w.dataType.toLowerCase().includes(t.toLowerCase()) || w.qualifiedEntityName && w.qualifiedEntityName.toLowerCase().includes(t.toLowerCase())
|
|
12440
|
-
), h = (w) =>
|
|
12440
|
+
), h = (w) => {
|
|
12441
|
+
if (w.dataType === "number" || w.dataType === "integer" || w.dataType === "float" || w.dataType === "decimal" || w.dataType === "currency")
|
|
12442
|
+
return "metrics";
|
|
12443
|
+
const z = $e(w.dataType);
|
|
12444
|
+
return ["date", "string", "boolean"].includes(z) ? "dimensions" : z === "number" ? "metrics" : "dimensions";
|
|
12445
|
+
}, f = (n === "all" ? m : m.filter(
|
|
12441
12446
|
(w) => h(w) === n
|
|
12442
12447
|
)).reduce((w, z) => {
|
|
12443
12448
|
const k = z.qualifiedEntityName || "Other Fields";
|
|
@@ -12520,8 +12525,8 @@ function qu() {
|
|
|
12520
12525
|
value: w,
|
|
12521
12526
|
className: "border-none",
|
|
12522
12527
|
children: [
|
|
12523
|
-
/* @__PURE__ */ e(be, { className: "group rounded-md px-3 py-2 hover:bg-muted hover:no-underline", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
12524
|
-
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: k.label || k.entityName }),
|
|
12528
|
+
/* @__PURE__ */ e(be, { className: "group rounded-md px-3 py-2 text-muted-foreground hover:bg-muted hover:no-underline", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
12529
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-primary", children: k.label || k.entityName }),
|
|
12525
12530
|
/* @__PURE__ */ e(
|
|
12526
12531
|
ie,
|
|
12527
12532
|
{
|
|
@@ -14216,7 +14221,7 @@ const tm = ({
|
|
|
14216
14221
|
const n = ua(), r = ws(a);
|
|
14217
14222
|
return n ? /* @__PURE__ */ e(n, { className: "h-4 w-4" }) : r || /* @__PURE__ */ e(mn, { className: "h-4 w-4" });
|
|
14218
14223
|
}, ql = ({ dataType: t }) => {
|
|
14219
|
-
const a =
|
|
14224
|
+
const a = $e(t);
|
|
14220
14225
|
return a === "string" ? /* @__PURE__ */ e("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-sm bg-blue-500 text-xs text-white", children: "T" }) : a === "number" ? /* @__PURE__ */ e("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-sm bg-green-500 text-xs text-white", children: "#" }) : a === "date" ? /* @__PURE__ */ e("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-sm bg-purple-500 text-xs text-white", children: "D" }) : a === "boolean" ? /* @__PURE__ */ e("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-sm bg-orange-500 text-xs text-white", children: "B" }) : /* @__PURE__ */ e("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-sm bg-gray-500 text-xs text-white", children: "?" });
|
|
14221
14226
|
};
|
|
14222
14227
|
function nm({
|
|
@@ -14518,7 +14523,7 @@ function sm({
|
|
|
14518
14523
|
}, me = {
|
|
14519
14524
|
transform: vt.Transform.toString(h),
|
|
14520
14525
|
transition: u
|
|
14521
|
-
}, ve =
|
|
14526
|
+
}, ve = $e(t.dataType), ue = ve === "date", Se = c === "kpi", X = [
|
|
14522
14527
|
{ value: "MM-DD-YYYY", label: "01-15-2024 (MM-DD-YYYY)" },
|
|
14523
14528
|
{ value: "YYYY-MM-DD", label: "2024-01-15 (YYYY-MM-DD)" },
|
|
14524
14529
|
{ value: "MM/DD/YYYY", label: "01/15/2024 (MM/DD/YYYY)" },
|
|
@@ -14698,7 +14703,7 @@ function sm({
|
|
|
14698
14703
|
/* @__PURE__ */ s(ye, { children: [
|
|
14699
14704
|
/* @__PURE__ */ e(te, { value: "COUNT", children: "Count" }),
|
|
14700
14705
|
/* @__PURE__ */ e(te, { value: "DISTINCT", children: "Count Distinct" }),
|
|
14701
|
-
|
|
14706
|
+
$e(t.dataType) === "number" && /* @__PURE__ */ s(ae, { children: [
|
|
14702
14707
|
/* @__PURE__ */ e(te, { value: "SUM", children: "Sum" }),
|
|
14703
14708
|
/* @__PURE__ */ e(te, { value: "AVG", children: "Average" }),
|
|
14704
14709
|
/* @__PURE__ */ e(te, { value: "MIN", children: "Min" }),
|
|
@@ -15719,13 +15724,13 @@ function Gl({
|
|
|
15719
15724
|
},
|
|
15720
15725
|
children: [
|
|
15721
15726
|
/* @__PURE__ */ e(fe, { className: "w-28", children: /* @__PURE__ */ e(ge, {}) }),
|
|
15722
|
-
/* @__PURE__ */ e(ye, { children: Nm(
|
|
15727
|
+
/* @__PURE__ */ e(ye, { children: Nm($e(t.field.dataType)).map(
|
|
15723
15728
|
(b) => /* @__PURE__ */ e(te, { className: "hover:bg-muted", value: b, children: b }, b)
|
|
15724
15729
|
) })
|
|
15725
15730
|
]
|
|
15726
15731
|
}
|
|
15727
15732
|
),
|
|
15728
|
-
|
|
15733
|
+
$e(t.field.dataType) === "string" ? t.operator === "in" || t.operator === "not in" ? p ? /* @__PURE__ */ s("div", { className: "flex flex-1 items-center justify-center p-2 text-xs text-gray-500", children: [
|
|
15729
15734
|
/* @__PURE__ */ e(De, { className: "mr-2 size-3.5 animate-spin" }),
|
|
15730
15735
|
" Loading values..."
|
|
15731
15736
|
] }) : T ? /* @__PURE__ */ e("div", { className: "flex-1 p-2 text-xs text-red-500", children: "Error loading values" }) : /* @__PURE__ */ e(
|
|
@@ -15760,7 +15765,7 @@ function Gl({
|
|
|
15760
15765
|
placeholder: "Select value...",
|
|
15761
15766
|
className: "flex-1"
|
|
15762
15767
|
}
|
|
15763
|
-
) :
|
|
15768
|
+
) : $e(t.field.dataType) === "boolean" ? /* @__PURE__ */ s(
|
|
15764
15769
|
pe,
|
|
15765
15770
|
{
|
|
15766
15771
|
value: typeof t.value == "boolean" ? String(t.value) : "",
|
|
@@ -16612,7 +16617,7 @@ function Om({
|
|
|
16612
16617
|
}
|
|
16613
16618
|
),
|
|
16614
16619
|
n && S(),
|
|
16615
|
-
/* @__PURE__ */ e(
|
|
16620
|
+
/* @__PURE__ */ e(We, {}),
|
|
16616
16621
|
/* @__PURE__ */ s("div", { className: "group/visualization relative flex h-full max-w-full grow flex-col pt-4", children: [
|
|
16617
16622
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2 px-6", children: [
|
|
16618
16623
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-2", children: [
|
|
@@ -16967,7 +16972,7 @@ function Lm() {
|
|
|
16967
16972
|
const t = I((i) => i.selectedDatabaseName), a = I((i) => i.selectedTableName), n = Z((i) => i.dashboard.filters) || [], { columns: r } = at(), { assignFilter: l } = _l();
|
|
16968
16973
|
return /* @__PURE__ */ e(et, { className: "flex-1 basis-0 flex-col px-3", children: r == null ? void 0 : r.map((i) => {
|
|
16969
16974
|
const c = n == null ? void 0 : n.find(
|
|
16970
|
-
(o) => o.column ===
|
|
16975
|
+
(o) => o.column === He(i.column_name) && o.table === a && o.database === t
|
|
16971
16976
|
);
|
|
16972
16977
|
return /* @__PURE__ */ e(
|
|
16973
16978
|
"div",
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-Cp70TiL_.js"),t=require("./types/index.cjs"),a=require("./chunks/dashboard-plus-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-Cp70TiL_.js"),t=require("./types/index.cjs"),a=require("./chunks/dashboard-plus-AOeD-3_N.js");require("react/jsx-runtime");require("react");require("react-dom");const r=["MM-DD-YYYY","YYYY-MM-DD","MM/DD/YYYY","DD/MM/YYYY","MMMM DD, YYYY","MMM DD, YYYY","DD MMM YYYY","YYYY-MM","MMMM YYYY","custom"];exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.SemaphorContextProvider=e.SemaphorContextProvider;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.createSqlGenConfig=e.createSqlGenConfig;exports.fmt=e.fmt;exports.getColumnDataType=e.getColumnDataType;exports.getFilterValueType=e.getFilterValueType;exports.getFormattedTableNameForQuery=e.getFormattedTableNameForQuery;exports.getQualifiedTableName=e.getQualifiedTableName;exports.getSql=e.getSql;exports.invalidateToken=e.invalidateToken;exports.isBooleanDataType=e.isBooleanDataType;exports.isColumnInSqlGen=e.isColumnInSqlGen;exports.isDateDataType=e.isDateDataType;exports.isNumberDataType=e.isNumberDataType;exports.isTextDataType=e.isTextDataType;exports.resolveDataType=e.resolveDataType;exports.resolveDatamodelName=e.resolveDatamodelName;exports.useCard=e.useCard;exports.useCurrentActiveCard=e.useCurrentActiveCard;exports.useCurrentCardConfig=e.useCurrentCardConfig;exports.useCurrentSheetActiveCards=e.useCurrentSheetActiveCards;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useDataColumns=e.useDataColumns;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorActions=e.useEditorActions;exports.useEditorAside=e.useEditorAside;exports.useEditorStore=e.useEditorStore;exports.useTextFilterHook=e.useTextFilterHook;exports.EMPTY_SELECTION=t.EMPTY_SELECTION;exports.ResourceManagementPanel=a.ResourceManagementPanel;exports.ScheduleDashboard=a.ScheduleDashboard;exports.SelectComponent=a.SelectComponent;exports.Surfboard=a.DashboardPlus;exports.cleanCard=a.cleanCard;exports.downloadPdf=a.downloadPdf;exports.getDashbaordStateWithoutData=a.getDashbaordStateWithoutData;exports.DATE_FORMAT_VALUES=r;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as Y, d as D, S as i, b as u, b as d, m as n, f as M, o as l, n as m, q as p, s as C, l as S, i as T, k as c, p as h, j as b, h as g, g as f, t as y, r as A, c as v, x, z as E, y as F, A as N, w as P, e as k, u as q, C as Q, v as R, B as _, a as w } from "./chunks/index-C7jXeSfd.js";
|
|
2
2
|
import { EMPTY_SELECTION as G } from "./types/index.js";
|
|
3
|
-
import { R as I, S as L, a as O, D as V, c as W, d as j, g as z } from "./chunks/dashboard-plus-
|
|
3
|
+
import { R as I, S as L, a as O, D as V, c as W, d as j, g as z } from "./chunks/dashboard-plus-DoWKgbsl.js";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
package/dist/surfboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-AOeD-3_N.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
|
package/dist/surfboard/index.js
CHANGED