react-semaphor 0.0.641 → 0.0.642
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-nNjDdQ-Z.js → dashboard-plus-BfJdInCz.js} +2 -2
- package/dist/chunks/{dashboard-plus-WAU6uC9K.js → dashboard-plus-Cwvy81Z8.js} +87 -89
- package/dist/chunks/{index-C3UqoMX_.js → index-DgFF31sH.js} +42 -42
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- 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 a, jsx as e, Fragment as K } from "react/jsx-runtime";
|
|
2
|
-
import { L as ie, M as vn, u as re, N as na, O as ra, P as _, Q as la, T as st, V as yn, I as Dt, W as We, X as ut, Y as al, Z as ze, _ as mt, $ as ht, a0 as pt, a1 as kt, a2 as B, a3 as Ae, a4 as ea, a5 as ve, a6 as Nn, a7 as pa, a8 as ji, a9 as Ar, aa as bn, ab as U, ac as Cn, ad as Bi, ae as sl, af as Gi, ag as nl, ah as fa, ai as Ne, j as Er, aj as $i, ak as Yi, al as He, am as wn, an as Ui, ao as Os, ap as Bt, aq as Qt, ar as me, as as Pe, at as ft, au as rl, av as Ie, aw as ll, ax as Fa, ay as ka, az as zt, aA as Re, aB as ke, aC as dt, aD as Pa, aE as va, aF as La, aG as qi, aH as ya, aI as nt, aJ as Ue, aK as qe, aL as ss, aM as Qe, aN as tt, aO as Sn, aP as Ds, aQ as ia, aR as ns, aS as rs, aT as Wi, aU as Na, aV as kn, aW as Dn, aX as Tn, aY as Mn, R as Lt, aZ as il, a_ as Ki, a$ as An, b0 as ls, b1 as En, b2 as In, b3 as za, b4 as _a, b5 as Va, b6 as On, b7 as Rs, b8 as Rn, b9 as ol, ba as cl, bb as Fn, bc as pe, bd as fe, be as ge, bf as xe, bg as ae, bh as dl, bi as ul, bj as Ji, bk as Hi, bl as Tt, bm as Qi, bn as Zi, bo as vt, bp as yt, bq as Me, br as it, bs as Gt, bt as ml, K as le, bu as Xi, bv as St, J as E, bw as eo, bx as hl, by as Pn, bz as Ln, bA as zn, bB as _n, bC as Vn, bD as jn, bE as Bn, bF as Gn, bG as to, bH as ja, bI as qt, bJ as $n, bK as ao, bL as Yn, bM as Fs, bN as is, bO as os, bP as pl, bQ as so, bR as Da, bS as Ts, bT as fl, bU as gl, bV as no, bW as Cs, bX as ro, bY as lo, bZ as io, b_ as oo, i as co, b$ as xl, c0 as Ka, c1 as Mt, c2 as At, c3 as Et, c4 as $t, c5 as cs, c6 as ds, c7 as us, c8 as ms, c9 as da, ca as Ba, cb as ba, cc as Ta, cd as Ma, ce as _t, cf as hs, A as It, cg as vl, r as yl, q as Nl, l as Ct, ch as Be, ci as uo, cj as ta, ck as Zt, cl as bl, cm as mo, k as Cl, cn as Ja, co as Wt, cp as ho, n as Xt, m as Rt, o as Ft, cq as an, cr as Ps, cs as Ls, ct as aa, x as Ir, cu as Ge, cv as zs, cw as ws, cx as Ha, cy as sn, cz as wl, cA as Sl, cB as Un, cC as po, cD as fo, cE as kl, cF as go, cG as _s, cH as xo, cI as Aa, cJ as vo, cK as yo, cL as nn, cM as Kt, cN as Je, cO as Jt, cP as No, cQ as bo, cR as Dl, cS as
|
|
2
|
+
import { L as ie, M as vn, u as re, N as na, O as ra, P as _, Q as la, T as st, V as yn, I as Dt, W as We, X as ut, Y as al, Z as ze, _ as mt, $ as ht, a0 as pt, a1 as kt, a2 as B, a3 as Ae, a4 as ea, a5 as ve, a6 as Nn, a7 as pa, a8 as ji, a9 as Ar, aa as bn, ab as U, ac as Cn, ad as Bi, ae as sl, af as Gi, ag as nl, ah as fa, ai as Ne, j as Er, aj as $i, ak as Yi, al as He, am as wn, an as Ui, ao as Os, ap as Bt, aq as Qt, ar as me, as as Pe, at as ft, au as rl, av as Ie, aw as ll, ax as Fa, ay as ka, az as zt, aA as Re, aB as ke, aC as dt, aD as Pa, aE as va, aF as La, aG as qi, aH as ya, aI as nt, aJ as Ue, aK as qe, aL as ss, aM as Qe, aN as tt, aO as Sn, aP as Ds, aQ as ia, aR as ns, aS as rs, aT as Wi, aU as Na, aV as kn, aW as Dn, aX as Tn, aY as Mn, R as Lt, aZ as il, a_ as Ki, a$ as An, b0 as ls, b1 as En, b2 as In, b3 as za, b4 as _a, b5 as Va, b6 as On, b7 as Rs, b8 as Rn, b9 as ol, ba as cl, bb as Fn, bc as pe, bd as fe, be as ge, bf as xe, bg as ae, bh as dl, bi as ul, bj as Ji, bk as Hi, bl as Tt, bm as Qi, bn as Zi, bo as vt, bp as yt, bq as Me, br as it, bs as Gt, bt as ml, K as le, bu as Xi, bv as St, J as E, bw as eo, bx as hl, by as Pn, bz as Ln, bA as zn, bB as _n, bC as Vn, bD as jn, bE as Bn, bF as Gn, bG as to, bH as ja, bI as qt, bJ as $n, bK as ao, bL as Yn, bM as Fs, bN as is, bO as os, bP as pl, bQ as so, bR as Da, bS as Ts, bT as fl, bU as gl, bV as no, bW as Cs, bX as ro, bY as lo, bZ as io, b_ as oo, i as co, b$ as xl, c0 as Ka, c1 as Mt, c2 as At, c3 as Et, c4 as $t, c5 as cs, c6 as ds, c7 as us, c8 as ms, c9 as da, ca as Ba, cb as ba, cc as Ta, cd as Ma, ce as _t, cf as hs, A as It, cg as vl, r as yl, q as Nl, l as Ct, ch as Be, ci as uo, cj as ta, ck as Zt, cl as bl, cm as mo, k as Cl, cn as Ja, co as Wt, cp as ho, n as Xt, m as Rt, o as Ft, cq as an, cr as Ps, cs as Ls, ct as aa, x as Ir, cu as Ge, cv as zs, cw as ws, cx as Ha, cy as sn, cz as wl, cA as Sl, cB as Un, cC as po, cD as fo, cE as kl, cF as go, cG as _s, cH as xo, cI as Aa, cJ as vo, cK as yo, cL as nn, cM as Kt, cN as Je, cO as Jt, cP as No, cQ as bo, cR as Dl, cS as Co, cT as qn, cU as wo, cV as Wn, cW as Kn, cX as So, cY as Tl, cZ as Ml, c_ as ko, c$ as Do, d0 as Qa, d1 as To, d2 as Jn, d3 as Mo, d4 as Ao, d5 as Or, d6 as Eo, E as ps, b as Hn, d7 as Qn, d8 as Io, d9 as Oo, da as Zn, db as Ro, dc as Fo, dd as Po, de as Al, df as Xn, dg as El, dh as Il, di as Ol, dj as Rl, dk as Fl, dl as er, dm as tr, dn as Pl, dp as Ll, dq as zl, dr as ar, ds as Vs, dt as js, du as Lo, dv as zo, dw as qa, dx as _o, dy as Vo, dz as jo, dA as Bo, dB as Go, dC as ot, dD as ct, dE as be, dF as Ce, dG as we, dH as Ht, dI as $o, dJ as Yo, dK as Uo, dL as qo, dM as Wo, y as Ko, dN as Rr, dO as _l, dP as Jo, dQ as Ho, dR as lt, dS as xs, dT as Fr, dU as Qo, dV as Pr, dW as Lr, dX as Zo, dY as Xo, dZ as ec, d_ as tc, d$ as sr, e0 as nr, e1 as rr, e2 as Ga, e3 as lr, e4 as sa, e5 as ac, e6 as Bs, e7 as Vl, e8 as sc, e9 as nc, ea as zr, eb as rc, ec as lc, ed as ic, ee as oc, ef as cc, w as _r, eg as Vr, eh as dc, ei as uc, ej as rn, ek as mc, el as hc, em as pc, en as fc, eo as gc, ep as xc, eq as vc, er as yc, es as Nc, et as bc, eu as Cc, ev as wc, ew as Sc, ex as kc, ey as Dc, ez as Tc, eA as Mc, eB as ir, eC as Ac, eD as Ec, eE as ln, eF as Ic, eG as Ss, eH as ks, eI as $a, eJ as Oc, eK as jr, eL as Rc, eM as on, eN as jl, eO as or, eP as Bl, eQ as qs, eR as cr, eS as Fc, eT as Pc, eU as Lc, eV as Za, eW as zc, eX as _c, eY as cn, eZ as Vc, e_ as jc, e$ as Bc, f0 as dn, f1 as un, f2 as Ms, f3 as Gc, f4 as Ea, f5 as Xa, f6 as $c, f7 as dr, f8 as Yc, f9 as Uc, fa as qc, F as Gl, fb as Wc, p as Kc, fc as Jc, B as Hc, fd as Qc, fe as Zc, S as Xc, ff as ed, U as td, fg as ad, C as sd } from "./index-DgFF31sH.js";
|
|
3
3
|
import * as ca from "react";
|
|
4
4
|
import Ye, { useState as j, useEffect as Oe, useRef as Vt, useMemo as Le, useCallback as Te, Suspense as $l, useContext as ur } from "react";
|
|
5
5
|
import "react-dom";
|
|
@@ -8513,70 +8513,7 @@ function cm({ className: t }) {
|
|
|
8513
8513
|
}
|
|
8514
8514
|
) });
|
|
8515
8515
|
}
|
|
8516
|
-
function dm({
|
|
8517
|
-
var m, h, f, x;
|
|
8518
|
-
const n = E((v) => v.card), { setCardPreferences: s, updateCardInFrame: r, setCard: i } = le(), [l, c] = j(!1), o = ((h = (m = n.preferences) == null ? void 0 : m.displayOptions) == null ? void 0 : h.showFilterInfo) ?? !0, d = ((x = (f = n.preferences) == null ? void 0 : f.displayOptions) == null ? void 0 : x.showCardToolbar) ?? !0, u = (v, p) => {
|
|
8519
|
-
var C;
|
|
8520
|
-
const y = {
|
|
8521
|
-
...n.preferences,
|
|
8522
|
-
displayOptions: {
|
|
8523
|
-
...(C = n.preferences) == null ? void 0 : C.displayOptions,
|
|
8524
|
-
[v]: p
|
|
8525
|
-
}
|
|
8526
|
-
};
|
|
8527
|
-
s(y);
|
|
8528
|
-
const g = { ...n, preferences: y };
|
|
8529
|
-
i(g), r(g);
|
|
8530
|
-
};
|
|
8531
|
-
return /* @__PURE__ */ e("div", { className: U("flex items-center", t), children: /* @__PURE__ */ a(na, { modal: !1, open: l, onOpenChange: c, children: [
|
|
8532
|
-
/* @__PURE__ */ e(ra, { asChild: !0, children: /* @__PURE__ */ e(
|
|
8533
|
-
_,
|
|
8534
|
-
{
|
|
8535
|
-
variant: "outline",
|
|
8536
|
-
size: "sm",
|
|
8537
|
-
className: "h-8 w-8 p-0",
|
|
8538
|
-
title: "Dashboard Card Display Options",
|
|
8539
|
-
children: /* @__PURE__ */ e(Wl, { className: "h-4 w-4" })
|
|
8540
|
-
}
|
|
8541
|
-
) }),
|
|
8542
|
-
/* @__PURE__ */ a(la, { align: "end", className: "w-64", children: [
|
|
8543
|
-
/* @__PURE__ */ e(Nn, { children: "Display Options" }),
|
|
8544
|
-
/* @__PURE__ */ e(pa, {}),
|
|
8545
|
-
/* @__PURE__ */ e("div", { className: "px-2 py-1.5", children: /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground mb-2", children: "Changes apply to dashboard view only" }) }),
|
|
8546
|
-
/* @__PURE__ */ a(
|
|
8547
|
-
qa,
|
|
8548
|
-
{
|
|
8549
|
-
checked: o,
|
|
8550
|
-
onCheckedChange: (v) => {
|
|
8551
|
-
u("showFilterInfo", v);
|
|
8552
|
-
},
|
|
8553
|
-
onSelect: (v) => v.preventDefault(),
|
|
8554
|
-
className: "pr-2",
|
|
8555
|
-
children: [
|
|
8556
|
-
/* @__PURE__ */ e("span", { className: "flex-1", children: "Filter Info" }),
|
|
8557
|
-
/* @__PURE__ */ e("span", { className: "text-xs text-muted-foreground ml-4", children: "Badge" })
|
|
8558
|
-
]
|
|
8559
|
-
}
|
|
8560
|
-
),
|
|
8561
|
-
/* @__PURE__ */ a(
|
|
8562
|
-
qa,
|
|
8563
|
-
{
|
|
8564
|
-
checked: d,
|
|
8565
|
-
onCheckedChange: (v) => {
|
|
8566
|
-
u("showCardToolbar", v);
|
|
8567
|
-
},
|
|
8568
|
-
onSelect: (v) => v.preventDefault(),
|
|
8569
|
-
className: "pr-2",
|
|
8570
|
-
children: [
|
|
8571
|
-
/* @__PURE__ */ e("span", { className: "flex-1", children: "Card Toolbar" }),
|
|
8572
|
-
/* @__PURE__ */ e("span", { className: "text-xs text-muted-foreground ml-4", children: "Hover actions" })
|
|
8573
|
-
]
|
|
8574
|
-
}
|
|
8575
|
-
)
|
|
8576
|
-
] })
|
|
8577
|
-
] }) });
|
|
8578
|
-
}
|
|
8579
|
-
function um({ card: t }) {
|
|
8516
|
+
function dm({ card: t }) {
|
|
8580
8517
|
var M, I, k, w, N, T, b, P, A, z, D;
|
|
8581
8518
|
const [n, s] = j(!1), [r, i] = j(
|
|
8582
8519
|
[]
|
|
@@ -8715,7 +8652,7 @@ function mi({
|
|
|
8715
8652
|
g
|
|
8716
8653
|
]);
|
|
8717
8654
|
function w(b) {
|
|
8718
|
-
return /* @__PURE__ */ e(ps, { FallbackComponent: Hn, children: /* @__PURE__ */ e(
|
|
8655
|
+
return /* @__PURE__ */ e(ps, { FallbackComponent: Hn, children: /* @__PURE__ */ e(dm, { card: b }) });
|
|
8719
8656
|
}
|
|
8720
8657
|
function N() {
|
|
8721
8658
|
if (m != null && m.records && (m == null ? void 0 : m.records.length) === 0 && !h && !f)
|
|
@@ -8816,10 +8753,7 @@ function mi({
|
|
|
8816
8753
|
inputClassName: "text-base font-semibold"
|
|
8817
8754
|
}
|
|
8818
8755
|
) }),
|
|
8819
|
-
/* @__PURE__ */
|
|
8820
|
-
/* @__PURE__ */ e(cm, {}),
|
|
8821
|
-
/* @__PURE__ */ e(dm, {})
|
|
8822
|
-
] })
|
|
8756
|
+
/* @__PURE__ */ e(cm, {})
|
|
8823
8757
|
] }),
|
|
8824
8758
|
/* @__PURE__ */ e("div", { className: "w-1/2", children: /* @__PURE__ */ e(
|
|
8825
8759
|
Qt,
|
|
@@ -8879,7 +8813,7 @@ const Zs = ({
|
|
|
8879
8813
|
value: n,
|
|
8880
8814
|
onChange: s
|
|
8881
8815
|
}
|
|
8882
|
-
),
|
|
8816
|
+
), um = () => /* @__PURE__ */ a(ht, { children: [
|
|
8883
8817
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(pt, { children: "Customize Card" }) }),
|
|
8884
8818
|
/* @__PURE__ */ a(kt, { children: [
|
|
8885
8819
|
"See the configuration options and documentation",
|
|
@@ -8893,7 +8827,7 @@ const Zs = ({
|
|
|
8893
8827
|
}
|
|
8894
8828
|
)
|
|
8895
8829
|
] })
|
|
8896
|
-
] }),
|
|
8830
|
+
] }), mm = ({
|
|
8897
8831
|
// defaultConfig,
|
|
8898
8832
|
customCode: t,
|
|
8899
8833
|
cardCustomCfgString: n,
|
|
@@ -8953,7 +8887,7 @@ const Zs = ({
|
|
|
8953
8887
|
)
|
|
8954
8888
|
}
|
|
8955
8889
|
)
|
|
8956
|
-
] }),
|
|
8890
|
+
] }), hm = ({
|
|
8957
8891
|
error: t,
|
|
8958
8892
|
hasCardCustomConfig: n,
|
|
8959
8893
|
onReset: s,
|
|
@@ -8965,7 +8899,7 @@ const Zs = ({
|
|
|
8965
8899
|
/* @__PURE__ */ e(_, { onClick: r, variant: "outline", children: "Apply" }),
|
|
8966
8900
|
/* @__PURE__ */ e(_, { onClick: i, variant: "outline", children: "Close" })
|
|
8967
8901
|
] });
|
|
8968
|
-
function
|
|
8902
|
+
function pm() {
|
|
8969
8903
|
const [t, n] = j(!1), [s, r] = j(""), [i, l] = j(""), [c, o] = j(""), [d, u] = j(""), m = E((k) => k.card), h = E((k) => k.card.customCfg), f = h ? JSON.stringify(h, null, 2) : "", { data: x } = Ge(m), { data: v } = Kn(m), { setCardCustomCfg: p, setCustomVisualCode: y } = le(), g = (k) => {
|
|
8970
8904
|
var w, N;
|
|
8971
8905
|
return JSON.stringify(
|
|
@@ -9025,11 +8959,11 @@ function fm() {
|
|
|
9025
8959
|
}
|
|
9026
8960
|
) }),
|
|
9027
8961
|
/* @__PURE__ */ a(mt, { className: "flex h-[600px] grow flex-col overflow-auto sm:min-w-[900px] lg:min-w-[1200px]", children: [
|
|
9028
|
-
/* @__PURE__ */ e(
|
|
8962
|
+
/* @__PURE__ */ e(um, {}),
|
|
9029
8963
|
/* @__PURE__ */ a("div", { className: "flex grow gap-2", children: [
|
|
9030
8964
|
/* @__PURE__ */ e(ps, { FallbackComponent: Hn, children: /* @__PURE__ */ e(mi, { className: "w-1/2 rounded shadow-none" }) }),
|
|
9031
8965
|
/* @__PURE__ */ e(
|
|
9032
|
-
|
|
8966
|
+
mm,
|
|
9033
8967
|
{
|
|
9034
8968
|
customCode: c,
|
|
9035
8969
|
cardCustomCfgString: f,
|
|
@@ -9040,7 +8974,7 @@ function fm() {
|
|
|
9040
8974
|
)
|
|
9041
8975
|
] }),
|
|
9042
8976
|
/* @__PURE__ */ e(
|
|
9043
|
-
|
|
8977
|
+
hm,
|
|
9044
8978
|
{
|
|
9045
8979
|
error: d,
|
|
9046
8980
|
hasCardCustomConfig: !!h,
|
|
@@ -9105,7 +9039,7 @@ function pi() {
|
|
|
9105
9039
|
isError: c
|
|
9106
9040
|
};
|
|
9107
9041
|
}
|
|
9108
|
-
function
|
|
9042
|
+
function fm({
|
|
9109
9043
|
onChartTypeChange: t
|
|
9110
9044
|
}) {
|
|
9111
9045
|
const {
|
|
@@ -9140,7 +9074,7 @@ function gm({
|
|
|
9140
9074
|
] }) : !l || l.length === 0 ? null : /* @__PURE__ */ a(K, { children: [
|
|
9141
9075
|
/* @__PURE__ */ e(dt, { className: "my-2" }),
|
|
9142
9076
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-4 place-items-center", children: l.map((u, m) => /* @__PURE__ */ e(
|
|
9143
|
-
|
|
9077
|
+
gm,
|
|
9144
9078
|
{
|
|
9145
9079
|
text: u.name,
|
|
9146
9080
|
onClick: () => d("custom", u),
|
|
@@ -9150,7 +9084,7 @@ function gm({
|
|
|
9150
9084
|
)) })
|
|
9151
9085
|
] });
|
|
9152
9086
|
}
|
|
9153
|
-
const
|
|
9087
|
+
const gm = ({
|
|
9154
9088
|
text: t,
|
|
9155
9089
|
icon: n,
|
|
9156
9090
|
onClick: s
|
|
@@ -9356,7 +9290,7 @@ function fi({
|
|
|
9356
9290
|
)
|
|
9357
9291
|
] });
|
|
9358
9292
|
}
|
|
9359
|
-
function
|
|
9293
|
+
function xm({
|
|
9360
9294
|
chartType: t,
|
|
9361
9295
|
className: n,
|
|
9362
9296
|
customIcon: s,
|
|
@@ -9415,7 +9349,7 @@ function gi({
|
|
|
9415
9349
|
size: "sm",
|
|
9416
9350
|
variant: t || "ghost",
|
|
9417
9351
|
children: /* @__PURE__ */ e(
|
|
9418
|
-
|
|
9352
|
+
xm,
|
|
9419
9353
|
{
|
|
9420
9354
|
className: "size-4",
|
|
9421
9355
|
chartType: i,
|
|
@@ -9437,13 +9371,13 @@ function gi({
|
|
|
9437
9371
|
onChartTypeChange: () => s(!1)
|
|
9438
9372
|
}
|
|
9439
9373
|
),
|
|
9440
|
-
/* @__PURE__ */ e(
|
|
9374
|
+
/* @__PURE__ */ e(fm, { onChartTypeChange: () => s(!1) })
|
|
9441
9375
|
]
|
|
9442
9376
|
}
|
|
9443
9377
|
)
|
|
9444
9378
|
] });
|
|
9445
9379
|
}
|
|
9446
|
-
function
|
|
9380
|
+
function vm({
|
|
9447
9381
|
error: t,
|
|
9448
9382
|
className: n = "",
|
|
9449
9383
|
textClassName: s = "",
|
|
@@ -9502,7 +9436,7 @@ function ym({
|
|
|
9502
9436
|
}
|
|
9503
9437
|
);
|
|
9504
9438
|
}
|
|
9505
|
-
function
|
|
9439
|
+
function ym() {
|
|
9506
9440
|
const t = E(
|
|
9507
9441
|
(l) => {
|
|
9508
9442
|
var c, o;
|
|
@@ -9535,6 +9469,69 @@ function Nm() {
|
|
|
9535
9469
|
}
|
|
9536
9470
|
return /* @__PURE__ */ e(K, { children: n === "funnel" ? i() : r() });
|
|
9537
9471
|
}
|
|
9472
|
+
function Nm({
|
|
9473
|
+
className: t
|
|
9474
|
+
}) {
|
|
9475
|
+
var m, h, f, x;
|
|
9476
|
+
const n = E((v) => v.card), { setCardPreferences: s, updateCardInFrame: r, setCard: i } = le(), [l, c] = j(!1), o = ((h = (m = n.preferences) == null ? void 0 : m.displayOptions) == null ? void 0 : h.showFilterInfo) ?? !0, d = ((x = (f = n.preferences) == null ? void 0 : f.displayOptions) == null ? void 0 : x.showCardToolbar) ?? !0, u = (v, p) => {
|
|
9477
|
+
var C;
|
|
9478
|
+
const y = {
|
|
9479
|
+
...n.preferences,
|
|
9480
|
+
displayOptions: {
|
|
9481
|
+
...(C = n.preferences) == null ? void 0 : C.displayOptions,
|
|
9482
|
+
[v]: p
|
|
9483
|
+
}
|
|
9484
|
+
};
|
|
9485
|
+
s(y);
|
|
9486
|
+
const g = { ...n, preferences: y };
|
|
9487
|
+
i(g), r(g);
|
|
9488
|
+
};
|
|
9489
|
+
return /* @__PURE__ */ e("div", { className: U("flex items-center", t), children: /* @__PURE__ */ a(na, { modal: !1, open: l, onOpenChange: c, children: [
|
|
9490
|
+
/* @__PURE__ */ e(ra, { asChild: !0, children: /* @__PURE__ */ e(
|
|
9491
|
+
ve,
|
|
9492
|
+
{
|
|
9493
|
+
className: "h-8 w-8 p-0",
|
|
9494
|
+
tooltip: "Display Options",
|
|
9495
|
+
children: /* @__PURE__ */ e(Wl, { className: "h-4 w-4" })
|
|
9496
|
+
}
|
|
9497
|
+
) }),
|
|
9498
|
+
/* @__PURE__ */ a(la, { align: "end", className: "w-64", children: [
|
|
9499
|
+
/* @__PURE__ */ e(Nn, { children: "Display Options" }),
|
|
9500
|
+
/* @__PURE__ */ e(pa, {}),
|
|
9501
|
+
/* @__PURE__ */ e("div", { className: "px-2 py-1.5", children: /* @__PURE__ */ e("p", { className: "mb-2 text-xs text-muted-foreground", children: "Changes apply to dashboard view only" }) }),
|
|
9502
|
+
/* @__PURE__ */ a(
|
|
9503
|
+
qa,
|
|
9504
|
+
{
|
|
9505
|
+
checked: o,
|
|
9506
|
+
onCheckedChange: (v) => {
|
|
9507
|
+
u("showFilterInfo", v);
|
|
9508
|
+
},
|
|
9509
|
+
onSelect: (v) => v.preventDefault(),
|
|
9510
|
+
className: "pr-2",
|
|
9511
|
+
children: [
|
|
9512
|
+
/* @__PURE__ */ e("span", { className: "flex-1", children: "Filter Info" }),
|
|
9513
|
+
/* @__PURE__ */ e("span", { className: "ml-4 text-xs text-muted-foreground", children: "Badge" })
|
|
9514
|
+
]
|
|
9515
|
+
}
|
|
9516
|
+
),
|
|
9517
|
+
/* @__PURE__ */ a(
|
|
9518
|
+
qa,
|
|
9519
|
+
{
|
|
9520
|
+
checked: d,
|
|
9521
|
+
onCheckedChange: (v) => {
|
|
9522
|
+
u("showCardToolbar", v);
|
|
9523
|
+
},
|
|
9524
|
+
onSelect: (v) => v.preventDefault(),
|
|
9525
|
+
className: "pr-2",
|
|
9526
|
+
children: [
|
|
9527
|
+
/* @__PURE__ */ e("span", { className: "flex-1", children: "Card Toolbar" }),
|
|
9528
|
+
/* @__PURE__ */ e("span", { className: "ml-4 text-xs text-muted-foreground", children: "Hover actions" })
|
|
9529
|
+
]
|
|
9530
|
+
}
|
|
9531
|
+
)
|
|
9532
|
+
] })
|
|
9533
|
+
] }) });
|
|
9534
|
+
}
|
|
9538
9535
|
function xi() {
|
|
9539
9536
|
const t = E((c) => c.card), n = E((c) => c.isShowingVisual), s = E(
|
|
9540
9537
|
(c) => {
|
|
@@ -9555,7 +9552,7 @@ function xi() {
|
|
|
9555
9552
|
"stackedLine",
|
|
9556
9553
|
"horizontalBar",
|
|
9557
9554
|
"funnel"
|
|
9558
|
-
].includes(t.type) && /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(
|
|
9555
|
+
].includes(t.type) && /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(ym, {}) }),
|
|
9559
9556
|
!["kpi", "text", "custom", "table"].includes(t.type) && /* @__PURE__ */ e(K, {}),
|
|
9560
9557
|
![
|
|
9561
9558
|
"pie",
|
|
@@ -9573,7 +9570,8 @@ function xi() {
|
|
|
9573
9570
|
r === "x" && /* @__PURE__ */ e(fd, { className: "size-4" }),
|
|
9574
9571
|
r === "y" && /* @__PURE__ */ e(jd, { className: "size-4" }),
|
|
9575
9572
|
r === "none" && /* @__PURE__ */ e(Yd, { className: "size-4" })
|
|
9576
|
-
] })
|
|
9573
|
+
] }),
|
|
9574
|
+
/* @__PURE__ */ e(Nm, {})
|
|
9577
9575
|
] }) : null;
|
|
9578
9576
|
}
|
|
9579
9577
|
function bm() {
|
|
@@ -9811,7 +9809,7 @@ function vs({
|
|
|
9811
9809
|
r && /* @__PURE__ */ a("div", { className: "flex grow items-center", children: [
|
|
9812
9810
|
/* @__PURE__ */ e(gi, {}),
|
|
9813
9811
|
i && /* @__PURE__ */ e(ve, { tooltip: "Visual Docs", onClick: M, children: /* @__PURE__ */ e(dd, { className: "size-4" }) }),
|
|
9814
|
-
!["table", "custom"].includes(n.type) && i && /* @__PURE__ */ e(
|
|
9812
|
+
!["table", "custom"].includes(n.type) && i && /* @__PURE__ */ e(pm, {})
|
|
9815
9813
|
] }),
|
|
9816
9814
|
!r && /* @__PURE__ */ a("div", { className: "flex grow items-center gap-1", children: [
|
|
9817
9815
|
/* @__PURE__ */ e(
|
|
@@ -9905,7 +9903,7 @@ function vs({
|
|
|
9905
9903
|
children: [
|
|
9906
9904
|
(f == null ? void 0 : f.records) && (f == null ? void 0 : f.records.length) > 0 && // <ResultsTable data={data?.records || []} />
|
|
9907
9905
|
/* @__PURE__ */ e(Jn, { card: n, data: (f == null ? void 0 : f.records) || [] }),
|
|
9908
|
-
p && /* @__PURE__ */ e(
|
|
9906
|
+
p && /* @__PURE__ */ e(vm, { error: p })
|
|
9909
9907
|
]
|
|
9910
9908
|
}
|
|
9911
9909
|
)
|
|
@@ -100376,7 +100376,7 @@ export {
|
|
|
100376
100376
|
lU as by,
|
|
100377
100377
|
XR as bz,
|
|
100378
100378
|
j$e as c,
|
|
100379
|
-
|
|
100379
|
+
hL as c$,
|
|
100380
100380
|
l0 as c0,
|
|
100381
100381
|
wi as c1,
|
|
100382
100382
|
Si as c2,
|
|
@@ -100405,15 +100405,15 @@ export {
|
|
|
100405
100405
|
Ete as cP,
|
|
100406
100406
|
ab as cQ,
|
|
100407
100407
|
X0 as cR,
|
|
100408
|
-
|
|
100409
|
-
|
|
100410
|
-
|
|
100411
|
-
|
|
100412
|
-
|
|
100413
|
-
|
|
100414
|
-
|
|
100415
|
-
|
|
100416
|
-
|
|
100408
|
+
JJ as cS,
|
|
100409
|
+
Ake as cT,
|
|
100410
|
+
Ike as cU,
|
|
100411
|
+
GN as cV,
|
|
100412
|
+
vSe as cW,
|
|
100413
|
+
Hw as cX,
|
|
100414
|
+
SV as cY,
|
|
100415
|
+
bq as cZ,
|
|
100416
|
+
uL as c_,
|
|
100417
100417
|
xM as ca,
|
|
100418
100418
|
Ir as cb,
|
|
100419
100419
|
Dfe as cc,
|
|
@@ -100442,16 +100442,16 @@ export {
|
|
|
100442
100442
|
mx as cz,
|
|
100443
100443
|
RXe as d,
|
|
100444
100444
|
Ea as d$,
|
|
100445
|
-
|
|
100446
|
-
|
|
100447
|
-
|
|
100448
|
-
|
|
100449
|
-
|
|
100450
|
-
|
|
100451
|
-
|
|
100452
|
-
|
|
100453
|
-
|
|
100454
|
-
|
|
100445
|
+
Jf as d0,
|
|
100446
|
+
BR as d1,
|
|
100447
|
+
Wv as d2,
|
|
100448
|
+
VR as d3,
|
|
100449
|
+
lAe as d4,
|
|
100450
|
+
d4 as d5,
|
|
100451
|
+
aH as d6,
|
|
100452
|
+
Rs as d7,
|
|
100453
|
+
$0 as d8,
|
|
100454
|
+
Oee as d9,
|
|
100455
100455
|
Jv as dA,
|
|
100456
100456
|
EXe as dB,
|
|
100457
100457
|
BK as dC,
|
|
@@ -100479,28 +100479,28 @@ export {
|
|
|
100479
100479
|
N7 as dY,
|
|
100480
100480
|
iXe as dZ,
|
|
100481
100481
|
aXe as d_,
|
|
100482
|
-
|
|
100483
|
-
|
|
100484
|
-
|
|
100485
|
-
|
|
100486
|
-
|
|
100487
|
-
|
|
100488
|
-
|
|
100489
|
-
|
|
100490
|
-
|
|
100491
|
-
|
|
100492
|
-
|
|
100493
|
-
|
|
100494
|
-
|
|
100495
|
-
|
|
100496
|
-
|
|
100497
|
-
|
|
100498
|
-
|
|
100499
|
-
|
|
100500
|
-
|
|
100501
|
-
|
|
100502
|
-
|
|
100503
|
-
|
|
100482
|
+
En as da,
|
|
100483
|
+
PKe as db,
|
|
100484
|
+
kee as dc,
|
|
100485
|
+
Tke as dd,
|
|
100486
|
+
xte as de,
|
|
100487
|
+
yMe as df,
|
|
100488
|
+
Jee as dg,
|
|
100489
|
+
Ate as dh,
|
|
100490
|
+
gMe as di,
|
|
100491
|
+
pMe as dj,
|
|
100492
|
+
bMe as dk,
|
|
100493
|
+
Kee as dl,
|
|
100494
|
+
ste as dm,
|
|
100495
|
+
mMe as dn,
|
|
100496
|
+
tte as dp,
|
|
100497
|
+
_te as dq,
|
|
100498
|
+
ete as dr,
|
|
100499
|
+
Xee as ds,
|
|
100500
|
+
Zee as dt,
|
|
100501
|
+
qee as du,
|
|
100502
|
+
ZH as dv,
|
|
100503
|
+
E0 as dw,
|
|
100504
100504
|
oXe as dx,
|
|
100505
100505
|
YN as dy,
|
|
100506
100506
|
Uv as dz,
|
package/dist/dashboard/index.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-D9K5qlK0.js"),h=require("./types/index.cjs"),n=require("./chunks/dashboard-plus-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-D9K5qlK0.js"),h=require("./types/index.cjs"),n=require("./chunks/dashboard-plus-BfJdInCz.js"),t=require("react/jsx-runtime"),C=require("react");require("react-dom");function T(a){const{displayPreferences:i,...d}=a,u={...d,id:a.dashboardId};return t.jsx(e.ErrorBoundary,{FallbackComponent:e.Fallback,children:t.jsx(e.SemaphorContextProvider,{dashboardProps:u,children:t.jsx(e.UXProvider,{children:t.jsx(e.DisplayPreferencesProvider,{displayPreferences:i,children:t.jsx(e.Container,{type:"visual",...u,children:t.jsx(S,{cardId:a.cardId})})})})})})}function S({cardId:a}){const i=e.useDashboardStore(o=>{var s;return(s=o.dashboard)==null?void 0:s.sheets}),{card:d,frame:u}=C.useMemo(()=>{const o=i==null?void 0:i.flatMap(r=>r.frames),s=o==null?void 0:o.flatMap(r=>r==null?void 0:r.cards),c=s==null?void 0:s.find(r=>(r==null?void 0:r.id)===a),M=o==null?void 0:o.find(r=>{var l;return(l=r==null?void 0:r.cards)==null?void 0:l.find(Y=>(Y==null?void 0:Y.id)===a)});return{card:c,frame:M}},[i,a]);return!d||!u?t.jsx(e.FallbackVisual,{error:new Error("Card not found"),resetErrorBoundary:()=>{},customerFacingMessage:`Card not found with ID: ${a}`}):t.jsx("main",{className:"flex h-full grow flex-col",children:t.jsx(e.ErrorBoundary,{FallbackComponent:({error:o,resetErrorBoundary:s})=>t.jsx(e.FallbackVisual,{error:o,resetErrorBoundary:s,customerFacingMessage:"Error creating visual. Please try again."}),children:t.jsx(e.DashboardCard,{card:d,frame:u})})})}const b=["MM-DD-YYYY","YYYY-MM-DD","MM/DD/YYYY","DD/MM/YYYY","MMMM DD, YYYY","MMM DD, YYYY","DD MMM YYYY","Week of MMM DD, YYYY","Week of MMMM DD, YYYY","YYYY-WW","MMM YYYY","MMMM YYYY","YYYY-MM","MM/YYYY","YYYY MMM","Q1 YYYY","YYYY Q1","1st Quarter YYYY","YYYY-Q1","Quarter 1, YYYY","YYYY","YY","custom"];var D=(a=>(a.SUBTOTAL="__SUBTOTAL__",a.TOTAL="__TOTAL__",a.ALL="__ALL__",a))(D||{});exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.ResourceType=e.ResourceType;exports.SemaphorContextProvider=e.SemaphorContextProvider;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.createSqlGenConfig=e.createSqlGenConfig;exports.downloadPdf=e.downloadPdf;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=h.EMPTY_SELECTION;exports.ResourceManagementPanel=n.ResourceManagementPanel;exports.ScheduleDashboard=n.ScheduleDashboard;exports.SelectComponent=n.SelectComponent;exports.ShareDialog=n.ShareDialog;exports.Surfboard=n.DashboardPlus;exports.cleanCard=n.cleanCard;exports.getDashbaordStateWithoutData=n.getDashbaordStateWithoutData;exports.DATE_FORMAT_VALUES=b;exports.PivotMarkerEnum=D;exports.Visual=T;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as l, F as c, S as h, U as f, a as p, C as m, u as T, b as u, c as C } from "./chunks/index-
|
|
2
|
-
import { D as L, h as k, R as Q, f as w, f as B, r as N, j as O, l as W, t as R, s as U, x as V, y as q, q as I, i as G, p as H, v as j, o as z, n as J, m as K, z as X, w as $, g as Z, B as aa, H as ea, G as sa, I as ra, k as oa, d as ta, K as Ya, A as na, J as ia, e as da } from "./chunks/index-
|
|
1
|
+
import { E as l, F as c, S as h, U as f, a as p, C as m, u as T, b as u, c as C } from "./chunks/index-DgFF31sH.js";
|
|
2
|
+
import { D as L, h as k, R as Q, f as w, f as B, r as N, j as O, l as W, t as R, s as U, x as V, y as q, q as I, i as G, p as H, v as j, o as z, n as J, m as K, z as X, w as $, g as Z, B as aa, H as ea, G as sa, I as ra, k as oa, d as ta, K as Ya, A as na, J as ia, e as da } from "./chunks/index-DgFF31sH.js";
|
|
3
3
|
import { EMPTY_SELECTION as la } from "./types/index.js";
|
|
4
|
-
import { R as Da, a as ca, b as ha, S as fa, D as pa, c as ma, g as Ta } from "./chunks/dashboard-plus-
|
|
4
|
+
import { R as Da, a as ca, b as ha, S as fa, D as pa, c as ma, g as Ta } from "./chunks/dashboard-plus-Cwvy81Z8.js";
|
|
5
5
|
import { jsx as s } from "react/jsx-runtime";
|
|
6
6
|
import { useMemo as b } from "react";
|
|
7
7
|
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-BfJdInCz.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
|
package/dist/surfboard/index.js
CHANGED