react-semaphor 0.1.313 → 0.1.314
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/brand-studio/index.js +4 -4
- package/dist/chunks/{braces-raPCNcS4.js → braces-CWi8x9ww.js} +1 -1
- package/dist/chunks/calendar-preferences-dialog-BzpQ5u4h.js +1 -0
- package/dist/chunks/calendar-preferences-dialog-D70CuT-1.js +456 -0
- package/dist/chunks/{chevrons-up-down-BYzO4q5w.js → chevrons-up-down-B2viXO2I.js} +1 -1
- package/dist/chunks/dashboard-controls-BS_aZcxs.js +57 -0
- package/dist/chunks/{dashboard-controls-DMsmUQkB.js → dashboard-controls-DbKtbw1V.js} +501 -523
- package/dist/chunks/{dashboard-filter-controls-launcher-CqXgWEa1.js → dashboard-filter-controls-launcher-C8Wm2Smj.js} +39 -39
- package/dist/chunks/{dashboard-filter-controls-launcher-DBmNn4EY.js → dashboard-filter-controls-launcher-CMXpudFJ.js} +1 -1
- package/dist/chunks/{dashboard-json-CHoCrAp0.js → dashboard-json-CJCAen1R.js} +2 -2
- package/dist/chunks/{dashboard-json-DMFZLkws.js → dashboard-json-v2C6Tmqf.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-B0Ae_O25.js → edit-dashboard-visual-DljWvnMy.js} +419 -419
- package/dist/chunks/{edit-dashboard-visual-CIP9G-Bu.js → edit-dashboard-visual-lRn3FeaP.js} +1 -1
- package/dist/chunks/{index-D7e2Eyp_.js → index-P5hPTTzm.js} +15127 -15106
- package/dist/chunks/{index-DjZqoaV5.js → index-XYIIY48z.js} +193 -193
- package/dist/chunks/{palette-7yJYVEvk.js → palette-CIuwlEiG.js} +1 -1
- package/dist/chunks/{resource-management-panel-B1mhnY97.js → resource-management-panel-CAxXzMdi.js} +1 -1
- package/dist/chunks/{resource-management-panel-CSkNW3es.js → resource-management-panel-Dk0DzgVm.js} +18 -18
- package/dist/chunks/{save-DDX_vrED.js → save-_ALpoMy6.js} +1 -1
- package/dist/chunks/{switch-DEPWsRhf.js → switch-B6fh8nb-.js} +25 -25
- package/dist/chunks/{use-create-flow-overlay-state-BHQjJwik.js → use-create-flow-overlay-state-Cqf7GaFm.js} +4 -4
- package/dist/chunks/{use-create-flow-overlay-state-7LiC_vaL.js → use-create-flow-overlay-state-DMZTflFt.js} +1 -1
- package/dist/chunks/{use-visual-utils-Dw-uLgop.js → use-visual-utils-CPMQLBYR.js} +12 -12
- package/dist/chunks/{use-visual-utils-Bz7kjSrk.js → use-visual-utils-CQQ3jvDn.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 +69 -70
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +7 -8
- package/dist/types/main.d.ts +0 -11
- package/dist/types/surfboard.d.ts +0 -10
- package/package.json +1 -1
- package/dist/chunks/dashboard-controls-wPVXTTiH.js +0 -57
- package/dist/chunks/dashboard-summary-settings-dialog-CZkn4rtm.js +0 -545
- package/dist/chunks/dashboard-summary-settings-dialog-DoxcpXjk.js +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import * as lc from "react";
|
|
3
3
|
import Jt, { useState as K, useEffect as Se, useRef as Ee, useCallback as Ie, useMemo as ce, useContext as pr, Suspense as ic } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { c as
|
|
6
|
-
import { f as lh, g as xt, h as po, V as fo, u as ih, e as oh, C as Wl } from "./use-create-flow-overlay-state-
|
|
7
|
-
import { r as go, f as _n } from "./use-visual-utils-
|
|
8
|
-
import { C as xo } from "./chevrons-up-down-
|
|
4
|
+
import { cM as gi, b as Ia, c as Da, d as Ea, e as Aa, f as Qa, n as ns, P as nt, ba as vt, cN as xi, cO as Xn, o as st, cP as bi, bl as yt, cQ as fr, cR as vi, cS as yi, cT as Ni, cU as gr, cV as xr, bc as us, b6 as bt, cW as ss, ca as br, cX as oc, cd as rs, cY as Ci, cZ as cc, q as ms, c_ as dc, c$ as uc, d0 as sr, d1 as Zn, u as La, W as wi, d2 as mc, d3 as hc, d4 as Si, d5 as Ti, d6 as pc, d7 as fc, d8 as gc, b0 as Pa, b1 as pa, b2 as fa, b3 as Vn, b4 as Yt, b5 as Ua, d9 as rr, cF as wn, da as ki, db as ea, dc as pt, dd as xc, c7 as ca, de as Ii, df as vr, dg as Di, dh as bc, di as vc, dj as yc, dk as Nc, dl as Cc, dm as wc, dn as Sc, dp as Ei, dq as Tc, dr as Rs, ds as kc, dt as kl, du as Ic, dv as Il, dw as Dc, dx as Ec, dy as Ac, dz as Ha, bg as Ut, bi as Ht, dA as Ai, dB as yr, bO as Nr, bX as Cr, dC as wr, dD as Oc, dE as Oi, dF as Fi, dG as Kt, dH as Fc, dI as Mc, dJ as Mi, a8 as Ri, dK as Li, dL as Rc, dM as Lc, dN as Pc, dO as kn, dP as Vc, dQ as Bc, dR as Dl, dS as zc, E as hs, B as Sr, dT as _c, dU as Tr, ci as $c, dV as El, I as ft, dW as qc, dX as jc, dY as Pi, dZ as Vi, cG as Kc, d_ as kr, d$ as Ir, bS as ps, e0 as Bi, e1 as zi, e2 as Al, e3 as Bn, e4 as Gc, e5 as Uc, e6 as Hc, e7 as Wc, e8 as Qc, bD as Dr, e9 as Jc, ea as Yc, eb as _i, ec as $i, ed as Xc, ee as Zc, ef as ed, eg as td, eh as qi, ei as ad, ej as nd, ek as fs, el as gs, bq as tn, br as an, bt as nn, cj as In, by as Gt, em as sa, en as Oa, eo as Fa, ep as da, eq as Ja, er as sd, es as rd, et as ld, eu as id, ev as od, ew as cd, ex as dd, ey as xs, ez as ud, eA as Ol, bh as Xt, bb as Zt, eB as md, eC as hd, eD as pd, eE as fd, eF as ji, eG as gd, eH as xd, eI as bd, eJ as vd, eK as yd, eL as lr, eM as Nd, eN as Cd, eO as ir, eP as or, eQ as wd, eR as Sd, eS as Td, eT as kd, eU as Fl, bY as cr, eV as ua, bF as Id, eW as Dd, bG as Ed, bH as Ad, bI as Od, bJ as Fd, bK as Md, bL as Rd, bM as Ld, bu as ut, bp as Pd, eX as Vd, eY as Ya, eZ as Xa, e_ as Za, e$ as Ki, bs as Er, bZ as Bd, bv as zd, f0 as _d, f1 as $d, f2 as qd, f3 as bs, f4 as lt, f5 as it, f6 as ot, f7 as jd, f8 as Kd, f9 as Gi, fa as Ui, fb as Gd, cf as Hi, fc as Ud, fd as Hd, fe as Wd, ff as Qd, fg as Jd, fh as Yd, fi as Xd, fj as Zd, fk as eu, fl as tu, fm as au, fn as nu, fo as Ca, fp as vn, fq as Wa, R as vs, g as Ma, fr as su, fs as Ml, ft as ru, fu as lu, fv as Ls, fw as Rl, fx as iu, fy as ou, fz as cu, fA as du, fB as uu, fC as Ps, fD as Wi, fE as mu, fF as ls, fG as hu, fH as Qi, fI as pu, fJ as Ji, fK as fu, fL as gu, az as xu, fM as Wn, fN as bu, fO as Ll, fP as vu, fQ as yu, fR as Pl, fS as Nu, fT as Cu, fU as wu, fV as Su, fW as Tu, fX as ku, fY as Iu, fZ as Du, f_ as Eu, f$ as Yi, g0 as Au, g1 as Ou, g2 as Fu, g3 as Mu, g4 as Ru, g5 as Lu, g6 as Pu, g7 as Vu, g8 as Bu, g9 as Xi, ga as zu, gb as ys, gc as Ns, gd as Zi, ge as _u, gf as $u, gg as eo, gh as qu, gi as ju, gj as Cs, gk as Vs, gl as Ku, gm as Gu, gn as Uu, go as Hu, gp as Wu, gq as Vl, gr as en, gs as to, gt as Qu, gu as ao, gv as no, gw as es, gx as so, gy as ro, gz as Bl, gA as Ju, gB as Yu, gC as ts, gD as Xu, gE as Ar, gF as Zu, gG as em, gH as is, C as Dn, h as En, j as An, i as On, k as Fn, l as Mn, gI as tm, gJ as Rn, gK as ra, gL as dr, gM as ur, gN as Ln, gO as lo, gP as am, gQ as Bs, gR as zs, gS as nm, gT as _s, gU as sm, gV as zl, gW as _l, gX as rm, gY as lm, gZ as im, g_ as om, g$ as cm, V as dm, h0 as um, h1 as mm, h2 as hm, cI as pm, cJ as fm, cK as gm, bA as ws, h3 as Ss, h4 as $l, h5 as io, cg as $s, h6 as xm, h7 as bm, h8 as vm, F as ym, b8 as Nm, h9 as Cm, ha as wm, b9 as Sm } from "./index-P5hPTTzm.js";
|
|
5
|
+
import { c as qe, g as we, B as Z, r as os, m as sn, a as W, i as M, aM as Tm, L as $, y as te, z as ae, A as ne, D as se, E as j, aN as oo, G as kt, X as tt, w as wt, s as Lt, t as St, v as Tt, P as It, b as At, d as Dt, C as ma, aO as km, aL as Sn, aP as Or, aQ as co, aG as Fr, aE as Im, x as Me, aR as Dm, f as ha, u as Ae, e as ga, aS as Mr, aT as zn, h as uo, T as Ts, k as ks, l as oa, n as Ta, I as Wt, q as Is, S as Ra, M as Em, az as ka, aU as Am, aV as Om, aW as mo, ah as Fm, aB as Mm, aX as Rm, aY as Lm, aZ as ql, a_ as Pm, a$ as Vm, b0 as Bm, b1 as zm, b2 as _m, b3 as jl, b4 as $m, b5 as Kl, R as mr, b6 as rn, b7 as qm, F as Ze, b8 as jm, b9 as Pn, ba as cs, bb as la, bc as Qn, bd as Gl, be as Rt, bf as Km, p as ho, bg as rt, a0 as Ul, bh as Gm, bi as Um, bj as Hm, bk as Wm, bl as Qm, bm as Jm, bn as Ym, bo as Xm, bp as Zm, bq as eh, br as th, bs as ah, ay as Hl, bt as nh, bu as sh, bv as rh, o as Ds } from "./switch-B6fh8nb-.js";
|
|
6
|
+
import { f as lh, g as xt, h as po, V as fo, u as ih, e as oh, C as Wl } from "./use-create-flow-overlay-state-Cqf7GaFm.js";
|
|
7
|
+
import { r as go, f as _n } from "./use-visual-utils-CPMQLBYR.js";
|
|
8
|
+
import { C as xo } from "./chevrons-up-down-B2viXO2I.js";
|
|
9
9
|
import { createPortal as ch } from "react-dom";
|
|
10
10
|
import "./index-CJdxSyQq.js";
|
|
11
|
-
import { P as dh } from "./palette-
|
|
11
|
+
import { P as dh } from "./palette-CIuwlEiG.js";
|
|
12
12
|
import { a as uh } from "./common-types-4bjoIgvm.js";
|
|
13
13
|
/**
|
|
14
14
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -16,7 +16,7 @@ import { a as uh } from "./common-types-4bjoIgvm.js";
|
|
|
16
16
|
* This source code is licensed under the ISC license.
|
|
17
17
|
* See the LICENSE file in the root directory of this source tree.
|
|
18
18
|
*/
|
|
19
|
-
const mh =
|
|
19
|
+
const mh = qe("ArrowDownAZ", [
|
|
20
20
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
21
21
|
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
22
22
|
["path", { d: "M20 8h-5", key: "1vsyxs" }],
|
|
@@ -29,7 +29,7 @@ const mh = je("ArrowDownAZ", [
|
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
31
|
*/
|
|
32
|
-
const hh =
|
|
32
|
+
const hh = qe("ArrowUpAZ", [
|
|
33
33
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
34
34
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
35
35
|
["path", { d: "M20 8h-5", key: "1vsyxs" }],
|
|
@@ -42,7 +42,7 @@ const hh = je("ArrowUpAZ", [
|
|
|
42
42
|
* This source code is licensed under the ISC license.
|
|
43
43
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
const bo =
|
|
45
|
+
const bo = qe("ArrowUpDown", [
|
|
46
46
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
47
47
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
48
48
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
@@ -54,7 +54,7 @@ const bo = je("ArrowUpDown", [
|
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
56
|
*/
|
|
57
|
-
const vo =
|
|
57
|
+
const vo = qe("Blocks", [
|
|
58
58
|
["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
|
|
59
59
|
[
|
|
60
60
|
"path",
|
|
@@ -70,7 +70,7 @@ const vo = je("Blocks", [
|
|
|
70
70
|
* This source code is licensed under the ISC license.
|
|
71
71
|
* See the LICENSE file in the root directory of this source tree.
|
|
72
72
|
*/
|
|
73
|
-
const Rr =
|
|
73
|
+
const Rr = qe("Columns3", [
|
|
74
74
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
75
75
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
76
76
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
@@ -81,7 +81,7 @@ const Rr = je("Columns3", [
|
|
|
81
81
|
* This source code is licensed under the ISC license.
|
|
82
82
|
* See the LICENSE file in the root directory of this source tree.
|
|
83
83
|
*/
|
|
84
|
-
const ph =
|
|
84
|
+
const ph = qe("Component", [
|
|
85
85
|
[
|
|
86
86
|
"path",
|
|
87
87
|
{
|
|
@@ -117,7 +117,7 @@ const ph = je("Component", [
|
|
|
117
117
|
* This source code is licensed under the ISC license.
|
|
118
118
|
* See the LICENSE file in the root directory of this source tree.
|
|
119
119
|
*/
|
|
120
|
-
const yo =
|
|
120
|
+
const yo = qe("FileCode2", [
|
|
121
121
|
["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
|
|
122
122
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
123
123
|
["path", { d: "m5 12-3 3 3 3", key: "oke12k" }],
|
|
@@ -129,7 +129,7 @@ const yo = je("FileCode2", [
|
|
|
129
129
|
* This source code is licensed under the ISC license.
|
|
130
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
131
131
|
*/
|
|
132
|
-
const fh =
|
|
132
|
+
const fh = qe("FileJson2", [
|
|
133
133
|
["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
|
|
134
134
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
135
135
|
[
|
|
@@ -147,7 +147,7 @@ const fh = je("FileJson2", [
|
|
|
147
147
|
* This source code is licensed under the ISC license.
|
|
148
148
|
* See the LICENSE file in the root directory of this source tree.
|
|
149
149
|
*/
|
|
150
|
-
const gh =
|
|
150
|
+
const gh = qe("Fullscreen", [
|
|
151
151
|
["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
|
|
152
152
|
["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
|
|
153
153
|
["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
|
|
@@ -160,7 +160,7 @@ const gh = je("Fullscreen", [
|
|
|
160
160
|
* This source code is licensed under the ISC license.
|
|
161
161
|
* See the LICENSE file in the root directory of this source tree.
|
|
162
162
|
*/
|
|
163
|
-
const xh =
|
|
163
|
+
const xh = qe("GitCompareArrows", [
|
|
164
164
|
["circle", { cx: "5", cy: "6", r: "3", key: "1qnov2" }],
|
|
165
165
|
["path", { d: "M12 6h5a2 2 0 0 1 2 2v7", key: "1yj91y" }],
|
|
166
166
|
["path", { d: "m15 9-3-3 3-3", key: "1lwv8l" }],
|
|
@@ -174,7 +174,7 @@ const xh = je("GitCompareArrows", [
|
|
|
174
174
|
* This source code is licensed under the ISC license.
|
|
175
175
|
* See the LICENSE file in the root directory of this source tree.
|
|
176
176
|
*/
|
|
177
|
-
const bh =
|
|
177
|
+
const bh = qe("Hammer", [
|
|
178
178
|
["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
|
|
179
179
|
["path", { d: "m18 15 4-4", key: "16gjal" }],
|
|
180
180
|
[
|
|
@@ -191,7 +191,7 @@ const bh = je("Hammer", [
|
|
|
191
191
|
* This source code is licensed under the ISC license.
|
|
192
192
|
* See the LICENSE file in the root directory of this source tree.
|
|
193
193
|
*/
|
|
194
|
-
const vh =
|
|
194
|
+
const vh = qe("LayoutList", [
|
|
195
195
|
["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
|
|
196
196
|
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
|
|
197
197
|
["path", { d: "M14 4h7", key: "3xa0d5" }],
|
|
@@ -205,7 +205,7 @@ const vh = je("LayoutList", [
|
|
|
205
205
|
* This source code is licensed under the ISC license.
|
|
206
206
|
* See the LICENSE file in the root directory of this source tree.
|
|
207
207
|
*/
|
|
208
|
-
const yh =
|
|
208
|
+
const yh = qe("ListEnd", [
|
|
209
209
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
210
210
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
211
211
|
["path", { d: "M10 18H3", key: "13769t" }],
|
|
@@ -218,7 +218,7 @@ const yh = je("ListEnd", [
|
|
|
218
218
|
* This source code is licensed under the ISC license.
|
|
219
219
|
* See the LICENSE file in the root directory of this source tree.
|
|
220
220
|
*/
|
|
221
|
-
const Ql =
|
|
221
|
+
const Ql = qe("ListFilter", [
|
|
222
222
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
223
223
|
["path", { d: "M7 12h10", key: "b7w52i" }],
|
|
224
224
|
["path", { d: "M10 18h4", key: "1ulq68" }]
|
|
@@ -229,7 +229,7 @@ const Ql = je("ListFilter", [
|
|
|
229
229
|
* This source code is licensed under the ISC license.
|
|
230
230
|
* See the LICENSE file in the root directory of this source tree.
|
|
231
231
|
*/
|
|
232
|
-
const Nh =
|
|
232
|
+
const Nh = qe("ListStart", [
|
|
233
233
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
234
234
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
235
235
|
["path", { d: "M10 6H3", key: "lf8lx7" }],
|
|
@@ -242,7 +242,7 @@ const Nh = je("ListStart", [
|
|
|
242
242
|
* This source code is licensed under the ISC license.
|
|
243
243
|
* See the LICENSE file in the root directory of this source tree.
|
|
244
244
|
*/
|
|
245
|
-
const Ch =
|
|
245
|
+
const Ch = qe("ListX", [
|
|
246
246
|
["path", { d: "M11 12H3", key: "51ecnj" }],
|
|
247
247
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
248
248
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
@@ -255,7 +255,7 @@ const Ch = je("ListX", [
|
|
|
255
255
|
* This source code is licensed under the ISC license.
|
|
256
256
|
* See the LICENSE file in the root directory of this source tree.
|
|
257
257
|
*/
|
|
258
|
-
const
|
|
258
|
+
const qs = qe("MoveHorizontal", [
|
|
259
259
|
["path", { d: "m18 8 4 4-4 4", key: "1ak13k" }],
|
|
260
260
|
["path", { d: "M2 12h20", key: "9i4pu4" }],
|
|
261
261
|
["path", { d: "m6 8-4 4 4 4", key: "15zrgr" }]
|
|
@@ -266,7 +266,7 @@ const js = je("MoveHorizontal", [
|
|
|
266
266
|
* This source code is licensed under the ISC license.
|
|
267
267
|
* See the LICENSE file in the root directory of this source tree.
|
|
268
268
|
*/
|
|
269
|
-
const
|
|
269
|
+
const js = qe("MoveVertical", [
|
|
270
270
|
["path", { d: "M12 2v20", key: "t6zp3m" }],
|
|
271
271
|
["path", { d: "m8 18 4 4 4-4", key: "bh5tu3" }],
|
|
272
272
|
["path", { d: "m8 6 4-4 4 4", key: "ybng9g" }]
|
|
@@ -277,7 +277,7 @@ const qs = je("MoveVertical", [
|
|
|
277
277
|
* This source code is licensed under the ISC license.
|
|
278
278
|
* See the LICENSE file in the root directory of this source tree.
|
|
279
279
|
*/
|
|
280
|
-
const wh =
|
|
280
|
+
const wh = qe("Paintbrush", [
|
|
281
281
|
["path", { d: "m14.622 17.897-10.68-2.913", key: "vj2p1u" }],
|
|
282
282
|
[
|
|
283
283
|
"path",
|
|
@@ -300,7 +300,7 @@ const wh = je("Paintbrush", [
|
|
|
300
300
|
* This source code is licensed under the ISC license.
|
|
301
301
|
* See the LICENSE file in the root directory of this source tree.
|
|
302
302
|
*/
|
|
303
|
-
const Sh =
|
|
303
|
+
const Sh = qe("PanelRightClose", [
|
|
304
304
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
305
305
|
["path", { d: "M15 3v18", key: "14nvp0" }],
|
|
306
306
|
["path", { d: "m8 9 3 3-3 3", key: "12hl5m" }]
|
|
@@ -311,7 +311,7 @@ const Sh = je("PanelRightClose", [
|
|
|
311
311
|
* This source code is licensed under the ISC license.
|
|
312
312
|
* See the LICENSE file in the root directory of this source tree.
|
|
313
313
|
*/
|
|
314
|
-
const Th =
|
|
314
|
+
const Th = qe("PanelRight", [
|
|
315
315
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
316
316
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
317
317
|
]);
|
|
@@ -321,7 +321,7 @@ const Th = je("PanelRight", [
|
|
|
321
321
|
* This source code is licensed under the ISC license.
|
|
322
322
|
* See the LICENSE file in the root directory of this source tree.
|
|
323
323
|
*/
|
|
324
|
-
const Es =
|
|
324
|
+
const Es = qe("Rows3", [
|
|
325
325
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
326
326
|
["path", { d: "M21 9H3", key: "1338ky" }],
|
|
327
327
|
["path", { d: "M21 15H3", key: "9uk58r" }]
|
|
@@ -332,7 +332,7 @@ const Es = je("Rows3", [
|
|
|
332
332
|
* This source code is licensed under the ISC license.
|
|
333
333
|
* See the LICENSE file in the root directory of this source tree.
|
|
334
334
|
*/
|
|
335
|
-
const kh =
|
|
335
|
+
const kh = qe("SendHorizontal", [
|
|
336
336
|
[
|
|
337
337
|
"path",
|
|
338
338
|
{
|
|
@@ -348,7 +348,7 @@ const kh = je("SendHorizontal", [
|
|
|
348
348
|
* This source code is licensed under the ISC license.
|
|
349
349
|
* See the LICENSE file in the root directory of this source tree.
|
|
350
350
|
*/
|
|
351
|
-
const Ih =
|
|
351
|
+
const Ih = qe("Shapes", [
|
|
352
352
|
[
|
|
353
353
|
"path",
|
|
354
354
|
{
|
|
@@ -365,7 +365,7 @@ const Ih = je("Shapes", [
|
|
|
365
365
|
* This source code is licensed under the ISC license.
|
|
366
366
|
* See the LICENSE file in the root directory of this source tree.
|
|
367
367
|
*/
|
|
368
|
-
const Dh =
|
|
368
|
+
const Dh = qe("Sigma", [
|
|
369
369
|
[
|
|
370
370
|
"path",
|
|
371
371
|
{
|
|
@@ -380,7 +380,7 @@ const Dh = je("Sigma", [
|
|
|
380
380
|
* This source code is licensed under the ISC license.
|
|
381
381
|
* See the LICENSE file in the root directory of this source tree.
|
|
382
382
|
*/
|
|
383
|
-
const Eh =
|
|
383
|
+
const Eh = qe("Spline", [
|
|
384
384
|
["circle", { cx: "19", cy: "5", r: "2", key: "mhkx31" }],
|
|
385
385
|
["circle", { cx: "5", cy: "19", r: "2", key: "v8kfzx" }],
|
|
386
386
|
["path", { d: "M5 17A12 12 0 0 1 17 5", key: "1okkup" }]
|
|
@@ -391,7 +391,7 @@ const Eh = je("Spline", [
|
|
|
391
391
|
* This source code is licensed under the ISC license.
|
|
392
392
|
* See the LICENSE file in the root directory of this source tree.
|
|
393
393
|
*/
|
|
394
|
-
const Ah =
|
|
394
|
+
const Ah = qe("SquareFunction", [
|
|
395
395
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
396
396
|
["path", { d: "M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3", key: "m1af9g" }],
|
|
397
397
|
["path", { d: "M9 11.2h5.7", key: "3zgcl2" }]
|
|
@@ -402,7 +402,7 @@ const Ah = je("SquareFunction", [
|
|
|
402
402
|
* This source code is licensed under the ISC license.
|
|
403
403
|
* See the LICENSE file in the root directory of this source tree.
|
|
404
404
|
*/
|
|
405
|
-
const Oh =
|
|
405
|
+
const Oh = qe("SquareSplitVertical", [
|
|
406
406
|
["path", { d: "M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3", key: "1pi83i" }],
|
|
407
407
|
["path", { d: "M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3", key: "ido5k7" }],
|
|
408
408
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
|
|
@@ -413,7 +413,7 @@ const Oh = je("SquareSplitVertical", [
|
|
|
413
413
|
* This source code is licensed under the ISC license.
|
|
414
414
|
* See the LICENSE file in the root directory of this source tree.
|
|
415
415
|
*/
|
|
416
|
-
const Fh =
|
|
416
|
+
const Fh = qe("Tag", [
|
|
417
417
|
[
|
|
418
418
|
"path",
|
|
419
419
|
{
|
|
@@ -429,7 +429,7 @@ const Fh = je("Tag", [
|
|
|
429
429
|
* This source code is licensed under the ISC license.
|
|
430
430
|
* See the LICENSE file in the root directory of this source tree.
|
|
431
431
|
*/
|
|
432
|
-
const Mh =
|
|
432
|
+
const Mh = qe("Tags", [
|
|
433
433
|
["path", { d: "m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19", key: "1cbfv1" }],
|
|
434
434
|
[
|
|
435
435
|
"path",
|
|
@@ -624,13 +624,13 @@ function Lh({
|
|
|
624
624
|
if ((b = O.source) != null && b.name && ((S = O.target) != null && S.name) && O.joinKeyGroups[0].keys.length === 0) {
|
|
625
625
|
const A = n.find(
|
|
626
626
|
(P) => {
|
|
627
|
-
var
|
|
628
|
-
return P.name === ((
|
|
627
|
+
var q;
|
|
628
|
+
return P.name === ((q = O.source) == null ? void 0 : q.name);
|
|
629
629
|
}
|
|
630
630
|
), B = n.find(
|
|
631
631
|
(P) => {
|
|
632
|
-
var
|
|
633
|
-
return P.name === ((
|
|
632
|
+
var q;
|
|
633
|
+
return P.name === ((q = O.target) == null ? void 0 : q.name);
|
|
634
634
|
}
|
|
635
635
|
), _ = {
|
|
636
636
|
id: `key-${Date.now()}`,
|
|
@@ -918,7 +918,7 @@ function Ph({
|
|
|
918
918
|
children: [
|
|
919
919
|
/* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(ne, { placeholder: "Select base entity..." }) }),
|
|
920
920
|
/* @__PURE__ */ e(se, { children: n.map((D) => /* @__PURE__ */ e(
|
|
921
|
-
|
|
921
|
+
j,
|
|
922
922
|
{
|
|
923
923
|
className: "hover:bg-muted",
|
|
924
924
|
value: D.name,
|
|
@@ -1041,7 +1041,7 @@ function Ph({
|
|
|
1041
1041
|
/* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(ne, { placeholder: "Select source..." }) }),
|
|
1042
1042
|
/* @__PURE__ */ e(se, { children: w(D.id).map(
|
|
1043
1043
|
(S) => /* @__PURE__ */ e(
|
|
1044
|
-
|
|
1044
|
+
j,
|
|
1045
1045
|
{
|
|
1046
1046
|
className: "hover:bg-muted",
|
|
1047
1047
|
value: S.name,
|
|
@@ -1077,7 +1077,7 @@ function Ph({
|
|
|
1077
1077
|
/* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(ne, {}) }),
|
|
1078
1078
|
/* @__PURE__ */ a(se, { children: [
|
|
1079
1079
|
/* @__PURE__ */ e(
|
|
1080
|
-
|
|
1080
|
+
j,
|
|
1081
1081
|
{
|
|
1082
1082
|
className: "hover:bg-muted",
|
|
1083
1083
|
value: "INNER",
|
|
@@ -1085,7 +1085,7 @@ function Ph({
|
|
|
1085
1085
|
}
|
|
1086
1086
|
),
|
|
1087
1087
|
/* @__PURE__ */ e(
|
|
1088
|
-
|
|
1088
|
+
j,
|
|
1089
1089
|
{
|
|
1090
1090
|
className: "hover:bg-muted",
|
|
1091
1091
|
value: "LEFT",
|
|
@@ -1093,7 +1093,7 @@ function Ph({
|
|
|
1093
1093
|
}
|
|
1094
1094
|
),
|
|
1095
1095
|
/* @__PURE__ */ e(
|
|
1096
|
-
|
|
1096
|
+
j,
|
|
1097
1097
|
{
|
|
1098
1098
|
className: "hover:bg-muted",
|
|
1099
1099
|
value: "RIGHT",
|
|
@@ -1101,7 +1101,7 @@ function Ph({
|
|
|
1101
1101
|
}
|
|
1102
1102
|
),
|
|
1103
1103
|
/* @__PURE__ */ e(
|
|
1104
|
-
|
|
1104
|
+
j,
|
|
1105
1105
|
{
|
|
1106
1106
|
className: "hover:bg-muted",
|
|
1107
1107
|
value: "FULL",
|
|
@@ -1140,7 +1140,7 @@ function Ph({
|
|
|
1140
1140
|
/* @__PURE__ */ e(se, { children: D.source.name ? E(
|
|
1141
1141
|
D.source.name
|
|
1142
1142
|
).map((S) => /* @__PURE__ */ e(
|
|
1143
|
-
|
|
1143
|
+
j,
|
|
1144
1144
|
{
|
|
1145
1145
|
className: "hover:bg-muted",
|
|
1146
1146
|
value: S.name,
|
|
@@ -1218,14 +1218,14 @@ function Ph({
|
|
|
1218
1218
|
/* @__PURE__ */ e(ae, { className: "w-[100px]", children: /* @__PURE__ */ e(ne, {}) }),
|
|
1219
1219
|
/* @__PURE__ */ a(se, { children: [
|
|
1220
1220
|
/* @__PURE__ */ e(
|
|
1221
|
-
|
|
1221
|
+
j,
|
|
1222
1222
|
{
|
|
1223
1223
|
className: "hover:bg-muted",
|
|
1224
1224
|
value: "AND",
|
|
1225
1225
|
children: "AND"
|
|
1226
1226
|
}
|
|
1227
1227
|
),
|
|
1228
|
-
/* @__PURE__ */ e(
|
|
1228
|
+
/* @__PURE__ */ e(j, { value: "OR", children: "OR" })
|
|
1229
1229
|
] })
|
|
1230
1230
|
]
|
|
1231
1231
|
}
|
|
@@ -1268,7 +1268,7 @@ function Ph({
|
|
|
1268
1268
|
/* @__PURE__ */ e(se, { children: R(
|
|
1269
1269
|
D.source.name
|
|
1270
1270
|
).map((z) => /* @__PURE__ */ e(
|
|
1271
|
-
|
|
1271
|
+
j,
|
|
1272
1272
|
{
|
|
1273
1273
|
className: "hover:bg-muted",
|
|
1274
1274
|
value: z.name,
|
|
@@ -1304,7 +1304,7 @@ function Ph({
|
|
|
1304
1304
|
/* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(ne, {}) }),
|
|
1305
1305
|
/* @__PURE__ */ a(se, { children: [
|
|
1306
1306
|
/* @__PURE__ */ e(
|
|
1307
|
-
|
|
1307
|
+
j,
|
|
1308
1308
|
{
|
|
1309
1309
|
className: "hover:bg-muted",
|
|
1310
1310
|
value: "=",
|
|
@@ -1312,7 +1312,7 @@ function Ph({
|
|
|
1312
1312
|
}
|
|
1313
1313
|
),
|
|
1314
1314
|
/* @__PURE__ */ e(
|
|
1315
|
-
|
|
1315
|
+
j,
|
|
1316
1316
|
{
|
|
1317
1317
|
className: "hover:bg-muted",
|
|
1318
1318
|
value: "<",
|
|
@@ -1320,7 +1320,7 @@ function Ph({
|
|
|
1320
1320
|
}
|
|
1321
1321
|
),
|
|
1322
1322
|
/* @__PURE__ */ e(
|
|
1323
|
-
|
|
1323
|
+
j,
|
|
1324
1324
|
{
|
|
1325
1325
|
className: "hover:bg-muted",
|
|
1326
1326
|
value: ">",
|
|
@@ -1328,7 +1328,7 @@ function Ph({
|
|
|
1328
1328
|
}
|
|
1329
1329
|
),
|
|
1330
1330
|
/* @__PURE__ */ e(
|
|
1331
|
-
|
|
1331
|
+
j,
|
|
1332
1332
|
{
|
|
1333
1333
|
className: "hover:bg-muted",
|
|
1334
1334
|
value: "<=",
|
|
@@ -1336,7 +1336,7 @@ function Ph({
|
|
|
1336
1336
|
}
|
|
1337
1337
|
),
|
|
1338
1338
|
/* @__PURE__ */ e(
|
|
1339
|
-
|
|
1339
|
+
j,
|
|
1340
1340
|
{
|
|
1341
1341
|
className: "hover:bg-muted",
|
|
1342
1342
|
value: ">=",
|
|
@@ -1363,7 +1363,7 @@ function Ph({
|
|
|
1363
1363
|
/* @__PURE__ */ e(se, { children: R(
|
|
1364
1364
|
D.target.name
|
|
1365
1365
|
).map((z) => /* @__PURE__ */ e(
|
|
1366
|
-
|
|
1366
|
+
j,
|
|
1367
1367
|
{
|
|
1368
1368
|
className: "hover:bg-muted",
|
|
1369
1369
|
value: z.name,
|
|
@@ -1932,7 +1932,7 @@ function wo({
|
|
|
1932
1932
|
return { value: d, onChange: v, flush: h };
|
|
1933
1933
|
}
|
|
1934
1934
|
const $h = 300;
|
|
1935
|
-
function
|
|
1935
|
+
function qh() {
|
|
1936
1936
|
const t = M((w) => w.card.sql), n = M((w) => w.sqlGen), s = M((w) => w.card), r = xt(), { setCardSql: d, setSqlGen: i, setRunSql: l } = we(), c = ce(() => r !== s.type ? { ...s, type: r } : s, [s, r]), { queryKey: o } = bt(c), m = ms(), h = Ee(o);
|
|
1937
1937
|
h.current = o;
|
|
1938
1938
|
const v = Ee(n);
|
|
@@ -1976,7 +1976,7 @@ function jh() {
|
|
|
1976
1976
|
)
|
|
1977
1977
|
] });
|
|
1978
1978
|
}
|
|
1979
|
-
const
|
|
1979
|
+
const jh = 300;
|
|
1980
1980
|
function Kh() {
|
|
1981
1981
|
const t = M((p) => p.card.python), n = M((p) => p.card), s = xt(), { setCardPython: r, setRunSql: d } = we(), i = ce(() => s !== n.type ? { ...n, type: s } : n, [n, s]), { queryKey: l } = bt(i), c = ms(), o = Ee(l);
|
|
1982
1982
|
o.current = l;
|
|
@@ -1984,7 +1984,7 @@ function Kh() {
|
|
|
1984
1984
|
storeValue: t,
|
|
1985
1985
|
defaultValue: dc,
|
|
1986
1986
|
onStoreUpdate: r,
|
|
1987
|
-
delay:
|
|
1987
|
+
delay: jh
|
|
1988
1988
|
});
|
|
1989
1989
|
return Se(() => go(v), [v]), /* @__PURE__ */ e(
|
|
1990
1990
|
ma,
|
|
@@ -2178,7 +2178,7 @@ function ap({
|
|
|
2178
2178
|
Gs
|
|
2179
2179
|
), [B, _] = K(!1), [z, P] = K(
|
|
2180
2180
|
() => Jn("inline-query-session")
|
|
2181
|
-
),
|
|
2181
|
+
), q = Ee(null), H = Ee(null), Y = Ee(null), Q = Ee(0), de = Ee(0), oe = Ee(
|
|
2182
2182
|
Jn("inline-run-token")
|
|
2183
2183
|
), ue = Ee(z), Ce = Ee(/* @__PURE__ */ new Set()), me = Ee(/* @__PURE__ */ new Map()), xe = Ee(0), Le = Ee(""), et = Ee(!1), Je = Ee(!1), ie = Ee(Gs), Oe = Ee(!1), He = Ee(null), at = Ee(() => {
|
|
2184
2184
|
}), mt = (Ft = o.apiServiceUrl) == null ? void 0 : Ft.replace(/\/$/, ""), ye = mt ? `${mt}/v1/sql/validate` : "/v1/sql/validate", Pe = Ie(
|
|
@@ -2253,7 +2253,7 @@ function ap({
|
|
|
2253
2253
|
});
|
|
2254
2254
|
},
|
|
2255
2255
|
[f, S.finalOutcome, S.hasTools]
|
|
2256
|
-
),
|
|
2256
|
+
), je = Ie(
|
|
2257
2257
|
(X, le) => {
|
|
2258
2258
|
const re = Y.current;
|
|
2259
2259
|
if (!re)
|
|
@@ -2274,11 +2274,11 @@ function ap({
|
|
|
2274
2274
|
);
|
|
2275
2275
|
Se(() => {
|
|
2276
2276
|
const X = He.current;
|
|
2277
|
-
!X || X.sessionId !== z || (He.current = null,
|
|
2278
|
-
}, [z,
|
|
2277
|
+
!X || X.sessionId !== z || (He.current = null, je(X.message, X.runToken));
|
|
2278
|
+
}, [z, je]);
|
|
2279
2279
|
const Ue = z, pe = Ie(
|
|
2280
2280
|
async ({ toolCall: X }) => {
|
|
2281
|
-
var Xe, Mt,
|
|
2281
|
+
var Xe, Mt, qt, Na, ct, qa;
|
|
2282
2282
|
if (Ue !== ue.current)
|
|
2283
2283
|
return;
|
|
2284
2284
|
const le = String(X.toolName || "").trim();
|
|
@@ -2312,7 +2312,7 @@ function ap({
|
|
|
2312
2312
|
}
|
|
2313
2313
|
const Fe = mc.has(le), be = hc.has(le);
|
|
2314
2314
|
if (Fe || !be) {
|
|
2315
|
-
(
|
|
2315
|
+
(qt = H.current) == null || qt.call(H, {
|
|
2316
2316
|
tool: le,
|
|
2317
2317
|
toolCallId: X.toolCallId,
|
|
2318
2318
|
output: {
|
|
@@ -2328,7 +2328,7 @@ function ap({
|
|
|
2328
2328
|
hasTools: !0
|
|
2329
2329
|
}), Ne("inline_tool_step", re, { hasTools: !0 });
|
|
2330
2330
|
const $e = ((Na = X.input) == null ? void 0 : Na.sql) ?? ((ct = X.args) == null ? void 0 : ct.sql);
|
|
2331
|
-
typeof $e == "string" && $e.trim().length > 0 && (Oe.current = !1, T($e.trim())), (
|
|
2331
|
+
typeof $e == "string" && $e.trim().length > 0 && (Oe.current = !1, T($e.trim())), (qa = H.current) == null || qa.call(H, {
|
|
2332
2332
|
tool: le,
|
|
2333
2333
|
toolCallId: X.toolCallId,
|
|
2334
2334
|
output: {
|
|
@@ -2629,9 +2629,9 @@ function ap({
|
|
|
2629
2629
|
attemptCount: Mt,
|
|
2630
2630
|
errorCode: Re.errorCode
|
|
2631
2631
|
}), Oe.current = !0, gt(), ze([]), T("");
|
|
2632
|
-
const
|
|
2633
|
-
const
|
|
2634
|
-
return `${
|
|
2632
|
+
const qt = u.map((ct) => {
|
|
2633
|
+
const qa = ct != null && ct.database ? `${ct.database}.` : "", Hn = ct != null && ct.schema ? `${ct.schema}.` : "", gn = (ct == null ? void 0 : ct.name) || "unknown";
|
|
2634
|
+
return `${qa}${Hn}${gn}`;
|
|
2635
2635
|
}), Na = Yh({
|
|
2636
2636
|
request: E,
|
|
2637
2637
|
failedSql: X,
|
|
@@ -2640,9 +2640,9 @@ function ap({
|
|
|
2640
2640
|
selectedDatabaseName: s || "",
|
|
2641
2641
|
selectedSchemaName: r || "",
|
|
2642
2642
|
selectedTableName: d || "",
|
|
2643
|
-
contextEntityLabels:
|
|
2643
|
+
contextEntityLabels: qt
|
|
2644
2644
|
});
|
|
2645
|
-
|
|
2645
|
+
je(Na, oe.current);
|
|
2646
2646
|
})(), () => {
|
|
2647
2647
|
Fe = !0;
|
|
2648
2648
|
};
|
|
@@ -2657,7 +2657,7 @@ function ap({
|
|
|
2657
2657
|
s,
|
|
2658
2658
|
r,
|
|
2659
2659
|
d,
|
|
2660
|
-
|
|
2660
|
+
je,
|
|
2661
2661
|
ze,
|
|
2662
2662
|
xa,
|
|
2663
2663
|
G,
|
|
@@ -2708,7 +2708,7 @@ function ap({
|
|
|
2708
2708
|
[i, N]
|
|
2709
2709
|
), ba = N.trim().length > 0, Va = ["valid", "invalid", "error"].includes(
|
|
2710
2710
|
L.status
|
|
2711
|
-
), dn = ba && Va, ta = L.status === "invalid", Ba = L.status === "validating", un = ba && E.length > 0 && E === g.trim(), mn = _t.length > 0,
|
|
2711
|
+
), dn = ba && Va, ta = L.status === "invalid", Ba = L.status === "validating", un = ba && E.length > 0 && E === g.trim(), mn = _t.length > 0, qn = g.length > 0, za = un && I === "draft", va = un && I === "refine" && x === _t, aa = y === "refine" && !mn ? "draft" : y, hn = (aa === "refine" ? va : za) ? "Open composer preview" : "Generate composer SQL", $t = g.trim().length > 0 || E.trim().length > 0 || ba || L.status !== "idle" || S.timelineSteps.length > 0, pn = Ie((X = "draft") => {
|
|
2712
2712
|
if (Be)
|
|
2713
2713
|
return;
|
|
2714
2714
|
if ((X === "refine" ? va : za) && !B) {
|
|
@@ -2764,7 +2764,7 @@ function ap({
|
|
|
2764
2764
|
return /* @__PURE__ */ a(
|
|
2765
2765
|
"div",
|
|
2766
2766
|
{
|
|
2767
|
-
ref:
|
|
2767
|
+
ref: q,
|
|
2768
2768
|
className: "relative flex h-7 min-w-[320px] flex-1 items-center",
|
|
2769
2769
|
children: [
|
|
2770
2770
|
/* @__PURE__ */ e(
|
|
@@ -2787,14 +2787,14 @@ function ap({
|
|
|
2787
2787
|
placeholder: "Ask in plain English — e.g. top 10 customers by profit last quarter",
|
|
2788
2788
|
className: [
|
|
2789
2789
|
"h-7 rounded-[5px] border border-border/60 bg-background pl-7 text-[12px] shadow-none placeholder:text-muted-foreground/70 focus-visible:border-ring focus-visible:ring-0",
|
|
2790
|
-
|
|
2790
|
+
qn ? "pr-[56px]" : "pr-9"
|
|
2791
2791
|
].join(" ")
|
|
2792
2792
|
}
|
|
2793
2793
|
),
|
|
2794
2794
|
/* @__PURE__ */ a(It, { open: B, onOpenChange: Gn, children: [
|
|
2795
2795
|
/* @__PURE__ */ e(Dm, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
|
|
2796
2796
|
/* @__PURE__ */ a("div", { className: "absolute right-1 flex items-center gap-1", children: [
|
|
2797
|
-
|
|
2797
|
+
qn && /* @__PURE__ */ e(
|
|
2798
2798
|
Z,
|
|
2799
2799
|
{
|
|
2800
2800
|
type: "button",
|
|
@@ -2841,7 +2841,7 @@ function ap({
|
|
|
2841
2841
|
onInteractOutside: (X) => {
|
|
2842
2842
|
var re;
|
|
2843
2843
|
const le = X.target;
|
|
2844
|
-
le && ((re =
|
|
2844
|
+
le && ((re = q.current) != null && re.contains(le)) && X.preventDefault();
|
|
2845
2845
|
},
|
|
2846
2846
|
children: /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
2847
2847
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-3", children: [
|
|
@@ -3122,7 +3122,7 @@ function np() {
|
|
|
3122
3122
|
isLoading: _,
|
|
3123
3123
|
isFetching: z,
|
|
3124
3124
|
isSuccess: P,
|
|
3125
|
-
isError:
|
|
3125
|
+
isError: q,
|
|
3126
3126
|
error: H,
|
|
3127
3127
|
errorSql: Y,
|
|
3128
3128
|
queryKey: Q,
|
|
@@ -3140,13 +3140,13 @@ function np() {
|
|
|
3140
3140
|
} else
|
|
3141
3141
|
T([]);
|
|
3142
3142
|
}, [B, T, y]), Se(() => {
|
|
3143
|
-
(_ || z) && (A(!0), T([])), (
|
|
3143
|
+
(_ || z) && (A(!0), T([])), (q || P) && A(!1), q && (T([]), y(""));
|
|
3144
3144
|
}, [
|
|
3145
3145
|
_,
|
|
3146
3146
|
z,
|
|
3147
3147
|
B,
|
|
3148
3148
|
y,
|
|
3149
|
-
|
|
3149
|
+
q,
|
|
3150
3150
|
P,
|
|
3151
3151
|
A,
|
|
3152
3152
|
T,
|
|
@@ -3187,7 +3187,7 @@ function np() {
|
|
|
3187
3187
|
{
|
|
3188
3188
|
id: "sql-container",
|
|
3189
3189
|
className: "relative flex w-full overflow-hidden rounded-control border border-border bg-background",
|
|
3190
|
-
children: /* @__PURE__ */ e(
|
|
3190
|
+
children: /* @__PURE__ */ e(qh, {})
|
|
3191
3191
|
}
|
|
3192
3192
|
),
|
|
3193
3193
|
n && /* @__PURE__ */ e("code", { className: "absolute right-3 top-2 text-[10px] uppercase tracking-[0.08em] text-muted-foreground/70", children: "sql" })
|
|
@@ -3880,7 +3880,7 @@ function To({
|
|
|
3880
3880
|
style: n,
|
|
3881
3881
|
...s
|
|
3882
3882
|
}) {
|
|
3883
|
-
var he, ke, Ne,
|
|
3883
|
+
var he, ke, Ne, je, Ue;
|
|
3884
3884
|
const r = M((pe) => pe.card), d = yr(), l = M((pe) => pe.isDevMode) ? !1 : ((he = r.customCardPreferences) == null ? void 0 : he.showCardHeader) ?? !0, c = ((Ne = (ke = r.preferences) == null ? void 0 : ke.displayOptions) == null ? void 0 : Ne.showInlineFilterBar) ?? !0, o = M((pe) => pe.frame), m = M(
|
|
3885
3885
|
(pe) => pe.inlineFilterValuesMap[r.id]
|
|
3886
3886
|
), h = Ae((pe) => pe.dashboard.filters), v = Ae((pe) => pe.selectedSheetId), [p, u] = K(!1), { currentUser: f } = Nr(), { tokenProps: C } = pr(Cr), g = M((pe) => pe.actions.setRunSql), w = M(
|
|
@@ -3891,7 +3891,7 @@ function To({
|
|
|
3891
3891
|
() => Pa(o, r),
|
|
3892
3892
|
[o, r]
|
|
3893
3893
|
), { manifest: I } = pa(
|
|
3894
|
-
((
|
|
3894
|
+
((je = T == null ? void 0 : T.customCardPreferences) == null ? void 0 : je.url) || ""
|
|
3895
3895
|
), k = ce(
|
|
3896
3896
|
() => {
|
|
3897
3897
|
var pe;
|
|
@@ -3922,7 +3922,7 @@ function To({
|
|
|
3922
3922
|
) ?? r.type, [T, y, x, r, k == null ? void 0 : k.slots]), D = R ?? r.type, F = ce(
|
|
3923
3923
|
() => D === r.type ? r : { ...r, type: D },
|
|
3924
3924
|
[r, D]
|
|
3925
|
-
), L = F.type === "table" || F.type === "pivotTable" || F.type === "aggregateTable" || F.type === "detailTable", b = ce(() => R !== r.type ? { ...r, type: R } : r, [r, R]), { data: S, isLoading: A, isFetching: B, errorMessage: _, errorSql: z, pagination: P } = bt(b), { handleOpenInEditor:
|
|
3925
|
+
), L = F.type === "table" || F.type === "pivotTable" || F.type === "aggregateTable" || F.type === "detailTable", b = ce(() => R !== r.type ? { ...r, type: R } : r, [r, R]), { data: S, isLoading: A, isFetching: B, errorMessage: _, errorSql: z, pagination: P } = bt(b), { handleOpenInEditor: q, handleDebugWithAssistant: H } = So(_, z || r.sql || r.python), Y = ce(() => (S == null ? void 0 : S.records) || [], [S == null ? void 0 : S.records]), { setCard: Q, updateCardInFrame: de } = we(), { data: oe } = wr(F), ue = F.id, Ce = F.config, me = F.interactionConfig, xe = F.customCfg, Le = F.preferences, et = F.queryConfig, Je = !!F.sql, ie = S == null ? void 0 : S.records, Oe = ce(
|
|
3926
3926
|
() => ({
|
|
3927
3927
|
id: ue,
|
|
3928
3928
|
type: D,
|
|
@@ -4038,7 +4038,7 @@ function To({
|
|
|
4038
4038
|
{
|
|
4039
4039
|
error: _,
|
|
4040
4040
|
errorSql: z || r.sql || r.python,
|
|
4041
|
-
onOpenInEditor:
|
|
4041
|
+
onOpenInEditor: q,
|
|
4042
4042
|
onDebugWithAssistant: H,
|
|
4043
4043
|
onSendFeedback: mt,
|
|
4044
4044
|
showFeedbackButton: !0
|
|
@@ -4372,7 +4372,7 @@ function up({
|
|
|
4372
4372
|
});
|
|
4373
4373
|
if (x) {
|
|
4374
4374
|
l(I(x)), h(((D = u.preferences) == null ? void 0 : D.customVisualCode) || "");
|
|
4375
|
-
const F =
|
|
4375
|
+
const F = qc(x, C);
|
|
4376
4376
|
o(I(F));
|
|
4377
4377
|
}
|
|
4378
4378
|
}, y = () => {
|
|
@@ -4380,7 +4380,7 @@ function up({
|
|
|
4380
4380
|
if (m && T(m), c) {
|
|
4381
4381
|
const x = JSON.parse(
|
|
4382
4382
|
c
|
|
4383
|
-
), R =
|
|
4383
|
+
), R = jc(
|
|
4384
4384
|
JSON.parse(i),
|
|
4385
4385
|
x
|
|
4386
4386
|
);
|
|
@@ -4893,7 +4893,7 @@ const Ga = {
|
|
|
4893
4893
|
line: fs,
|
|
4894
4894
|
stackedBar: nd,
|
|
4895
4895
|
stackedLine: ad,
|
|
4896
|
-
scatter:
|
|
4896
|
+
scatter: qi,
|
|
4897
4897
|
bubble: td,
|
|
4898
4898
|
pie: ed,
|
|
4899
4899
|
doughnut: Zc,
|
|
@@ -5195,7 +5195,7 @@ function bp() {
|
|
|
5195
5195
|
},
|
|
5196
5196
|
tooltip: "Chart Orientation",
|
|
5197
5197
|
className: "h-7 w-7 px-0",
|
|
5198
|
-
children: o === "x" ? /* @__PURE__ */ e(
|
|
5198
|
+
children: o === "x" ? /* @__PURE__ */ e(js, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ e(qs, { className: "h-3.5 w-3.5" })
|
|
5199
5199
|
}
|
|
5200
5200
|
);
|
|
5201
5201
|
}
|
|
@@ -5208,7 +5208,7 @@ function bp() {
|
|
|
5208
5208
|
},
|
|
5209
5209
|
tooltip: "Chart Orientation",
|
|
5210
5210
|
className: "h-7 w-7 px-0",
|
|
5211
|
-
children: t === "y" || t === void 0 ? /* @__PURE__ */ e(
|
|
5211
|
+
children: t === "y" || t === void 0 ? /* @__PURE__ */ e(js, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ e(qs, { className: "h-3.5 w-3.5" })
|
|
5212
5212
|
}
|
|
5213
5213
|
);
|
|
5214
5214
|
}
|
|
@@ -5222,7 +5222,7 @@ function bp() {
|
|
|
5222
5222
|
},
|
|
5223
5223
|
tooltip: "Chart Orientation",
|
|
5224
5224
|
className: "h-7 w-7 px-0",
|
|
5225
|
-
children: o === "y" ? /* @__PURE__ */ e(
|
|
5225
|
+
children: o === "y" ? /* @__PURE__ */ e(qs, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ e(js, { className: "h-3.5 w-3.5" })
|
|
5226
5226
|
}
|
|
5227
5227
|
);
|
|
5228
5228
|
}
|
|
@@ -5364,8 +5364,8 @@ function Br({
|
|
|
5364
5364
|
(y) => y.actions.setCardInlineFilterValue
|
|
5365
5365
|
), u = Ae((y) => y.isVisualEditing), f = (i == null ? void 0 : i.inlineFilters) || [], C = ((I = (T = c == null ? void 0 : c.params) == null ? void 0 : T.calendarContext) == null ? void 0 : I.tz) || ((k = c == null ? void 0 : c.params) == null ? void 0 : k.timezone) || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
5366
5366
|
function g(y) {
|
|
5367
|
-
var z, P,
|
|
5368
|
-
const O = ((
|
|
5367
|
+
var z, P, q, H, Y, Q, de;
|
|
5368
|
+
const O = ((q = (P = (z = i == null ? void 0 : i.dataSource) == null ? void 0 : z.selectedEntities) == null ? void 0 : P[0]) == null ? void 0 : q.database) || "", x = y.qualifiedFieldName || y.name;
|
|
5369
5369
|
if (f.find(
|
|
5370
5370
|
(oe) => rd(oe, y)
|
|
5371
5371
|
))
|
|
@@ -5828,9 +5828,9 @@ function Sp({
|
|
|
5828
5828
|
te,
|
|
5829
5829
|
{
|
|
5830
5830
|
value: A || "__none__",
|
|
5831
|
-
onValueChange: (P) => g(N, (
|
|
5832
|
-
if (
|
|
5833
|
-
const Y = { ...
|
|
5831
|
+
onValueChange: (P) => g(N, (q) => {
|
|
5832
|
+
if (q.target === "config_metric_selector") {
|
|
5833
|
+
const Y = { ...q.mapping };
|
|
5834
5834
|
if (P === "__none__")
|
|
5835
5835
|
delete Y[b.value];
|
|
5836
5836
|
else {
|
|
@@ -5840,12 +5840,12 @@ function Sp({
|
|
|
5840
5840
|
Q != null && Q.target ? Y[b.value] = Q.target : delete Y[b.value];
|
|
5841
5841
|
}
|
|
5842
5842
|
return {
|
|
5843
|
-
...
|
|
5843
|
+
...q,
|
|
5844
5844
|
mapping: Y
|
|
5845
5845
|
};
|
|
5846
5846
|
}
|
|
5847
|
-
if (
|
|
5848
|
-
const Y = { ...
|
|
5847
|
+
if (q.target === "config_field_selector") {
|
|
5848
|
+
const Y = { ...q.mapping };
|
|
5849
5849
|
if (P === "__none__")
|
|
5850
5850
|
delete Y[b.value];
|
|
5851
5851
|
else {
|
|
@@ -5855,21 +5855,21 @@ function Sp({
|
|
|
5855
5855
|
Q != null && Q.target ? Y[b.value] = Q.target : delete Y[b.value];
|
|
5856
5856
|
}
|
|
5857
5857
|
return {
|
|
5858
|
-
...
|
|
5858
|
+
...q,
|
|
5859
5859
|
mapping: Y
|
|
5860
5860
|
};
|
|
5861
5861
|
}
|
|
5862
|
-
const H = { ...
|
|
5862
|
+
const H = { ...q.mapping };
|
|
5863
5863
|
return P === "__none__" ? delete H[b.value] : H[b.value] = P, {
|
|
5864
|
-
...
|
|
5864
|
+
...q,
|
|
5865
5865
|
mapping: H
|
|
5866
5866
|
};
|
|
5867
5867
|
}),
|
|
5868
5868
|
children: [
|
|
5869
5869
|
/* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(ne, { placeholder: "Choose what this should use" }) }),
|
|
5870
5870
|
/* @__PURE__ */ a(se, { children: [
|
|
5871
|
-
/* @__PURE__ */ e(
|
|
5872
|
-
z.map((P) => /* @__PURE__ */ e(
|
|
5871
|
+
/* @__PURE__ */ e(j, { value: "__none__", children: "Not mapped" }),
|
|
5872
|
+
z.map((P) => /* @__PURE__ */ e(j, { value: P.value, children: P.label }, P.value))
|
|
5873
5873
|
] })
|
|
5874
5874
|
]
|
|
5875
5875
|
}
|
|
@@ -5953,11 +5953,11 @@ function zr({
|
|
|
5953
5953
|
})), O = (L, b) => {
|
|
5954
5954
|
if (!g)
|
|
5955
5955
|
return;
|
|
5956
|
-
const S = (b == null ? void 0 : b.type) === "rename" ?
|
|
5956
|
+
const S = (b == null ? void 0 : b.type) === "rename" ? ql(g, {
|
|
5957
5957
|
type: "rename",
|
|
5958
5958
|
oldId: b.oldId,
|
|
5959
5959
|
newId: b.newId
|
|
5960
|
-
}) : (b == null ? void 0 : b.type) === "remove" ?
|
|
5960
|
+
}) : (b == null ? void 0 : b.type) === "remove" ? ql(g, {
|
|
5961
5961
|
type: "remove",
|
|
5962
5962
|
controlId: b.controlId
|
|
5963
5963
|
}) : g, A = {
|
|
@@ -6148,8 +6148,8 @@ function kp({
|
|
|
6148
6148
|
((S = s == null ? void 0 : s.customCardPreferences) == null ? void 0 : S.url) || ""
|
|
6149
6149
|
), f = (A = u == null ? void 0 : u.visuals) == null ? void 0 : A.find(
|
|
6150
6150
|
(P) => {
|
|
6151
|
-
var
|
|
6152
|
-
return P.name === ((
|
|
6151
|
+
var q;
|
|
6152
|
+
return P.name === ((q = s == null ? void 0 : s.customCardPreferences) == null ? void 0 : q.componentName);
|
|
6153
6153
|
}
|
|
6154
6154
|
), g = fa(s, f) === "multiple", w = (f == null ? void 0 : f.minInputs) ?? ((B = s == null ? void 0 : s.customCardPreferences) == null ? void 0 : B.minInputs) ?? 1, E = (f == null ? void 0 : f.maxInputs) ?? ((_ = s == null ? void 0 : s.customCardPreferences) == null ? void 0 : _.maxInputs), V = ce(
|
|
6155
6155
|
() => Vn({
|
|
@@ -6158,19 +6158,19 @@ function kp({
|
|
|
6158
6158
|
isMultiInputVisual: g
|
|
6159
6159
|
}),
|
|
6160
6160
|
[r, s, g]
|
|
6161
|
-
), N = g ? V.filter(Boolean).length : r.cards.length, T = l ? !1 : E ? N < E : !0, I = N > Math.max(w || 1, 1), k = !!((z = s == null ? void 0 : s.customCardPreferences) != null && z.dataInputCardIds), y = (P,
|
|
6162
|
-
P.dataTransfer.setData("tabIndex",
|
|
6161
|
+
), N = g ? V.filter(Boolean).length : r.cards.length, T = l ? !1 : E ? N < E : !0, I = N > Math.max(w || 1, 1), k = !!((z = s == null ? void 0 : s.customCardPreferences) != null && z.dataInputCardIds), y = (P, q) => {
|
|
6162
|
+
P.dataTransfer.setData("tabIndex", q.toString());
|
|
6163
6163
|
}, O = (P) => {
|
|
6164
6164
|
P.preventDefault();
|
|
6165
|
-
}, x = (P,
|
|
6165
|
+
}, x = (P, q) => {
|
|
6166
6166
|
const H = P.dataTransfer.getData("tabIndex");
|
|
6167
|
-
if (H ===
|
|
6167
|
+
if (H === q.toString()) return;
|
|
6168
6168
|
const Y = Array.from(r.cards), [Q] = Y.splice(parseInt(H), 1);
|
|
6169
|
-
Y.splice(
|
|
6169
|
+
Y.splice(q, 0, Q), c({ ...r, cards: Y });
|
|
6170
6170
|
};
|
|
6171
6171
|
function R(P) {
|
|
6172
|
-
const
|
|
6173
|
-
if (!(k &&
|
|
6172
|
+
const q = (s == null ? void 0 : s.id) === P;
|
|
6173
|
+
if (!(k && q ? r.cards.length > 1 : I)) return;
|
|
6174
6174
|
let Y = r.cards.filter((ue) => ue.id !== P);
|
|
6175
6175
|
g && !k && (Y = Td(Y));
|
|
6176
6176
|
const Q = Y[0], de = {
|
|
@@ -6181,14 +6181,14 @@ function kp({
|
|
|
6181
6181
|
}, oe = P === d.id;
|
|
6182
6182
|
oe && v(), c(de), o(Q.id), m(Q), oe && p(Q);
|
|
6183
6183
|
}
|
|
6184
|
-
function D(P,
|
|
6184
|
+
function D(P, q) {
|
|
6185
6185
|
if (!T) return;
|
|
6186
6186
|
const H = {
|
|
6187
6187
|
...r,
|
|
6188
|
-
cards: [...r.cards,
|
|
6188
|
+
cards: [...r.cards, q],
|
|
6189
6189
|
activeCardId: P.id
|
|
6190
6190
|
};
|
|
6191
|
-
c(H), o(
|
|
6191
|
+
c(H), o(q.id);
|
|
6192
6192
|
}
|
|
6193
6193
|
function F() {
|
|
6194
6194
|
if (l) return;
|
|
@@ -6206,7 +6206,7 @@ function kp({
|
|
|
6206
6206
|
slotIndex: g ? Math.max(
|
|
6207
6207
|
-1,
|
|
6208
6208
|
...V.map(
|
|
6209
|
-
(
|
|
6209
|
+
(q, H) => Yt(q, H)
|
|
6210
6210
|
)
|
|
6211
6211
|
) + 1 : d.customCardPreferences.slotIndex
|
|
6212
6212
|
} : void 0
|
|
@@ -6217,7 +6217,7 @@ function kp({
|
|
|
6217
6217
|
function L(P) {
|
|
6218
6218
|
var oe;
|
|
6219
6219
|
if (l || !T) return;
|
|
6220
|
-
let
|
|
6220
|
+
let q = g ? "table" : "bar", H = "Title", Y = "";
|
|
6221
6221
|
const Q = g ? Math.max(
|
|
6222
6222
|
-1,
|
|
6223
6223
|
...V.map(
|
|
@@ -6229,7 +6229,7 @@ function kp({
|
|
|
6229
6229
|
f.slots,
|
|
6230
6230
|
Q
|
|
6231
6231
|
);
|
|
6232
|
-
ue && (
|
|
6232
|
+
ue && (q = kd(ue), H = ue.label || `Tab ${Q + 1}`, Y = ue.description || "");
|
|
6233
6233
|
}
|
|
6234
6234
|
const de = {
|
|
6235
6235
|
dataSource: P.dataSource,
|
|
@@ -6250,7 +6250,7 @@ function kp({
|
|
|
6250
6250
|
}
|
|
6251
6251
|
]
|
|
6252
6252
|
},
|
|
6253
|
-
type:
|
|
6253
|
+
type: q,
|
|
6254
6254
|
sql: "",
|
|
6255
6255
|
data: [],
|
|
6256
6256
|
mode: "explorer",
|
|
@@ -6263,18 +6263,18 @@ function kp({
|
|
|
6263
6263
|
};
|
|
6264
6264
|
D(P, de);
|
|
6265
6265
|
}
|
|
6266
|
-
function b(P,
|
|
6267
|
-
return P.cards.length === 1 && (
|
|
6266
|
+
function b(P, q) {
|
|
6267
|
+
return P.cards.length === 1 && (q.displayTab === !0 || q.displayTab === void 0) || P.activeCardId !== q.id && (q.displayTab === !0 || q.displayTab === void 0) ? null : /* @__PURE__ */ e(
|
|
6268
6268
|
"div",
|
|
6269
6269
|
{
|
|
6270
6270
|
onClick: () => {
|
|
6271
|
-
const H =
|
|
6272
|
-
m({ ...
|
|
6273
|
-
...
|
|
6271
|
+
const H = q.displayTab === void 0 ? !1 : !q.displayTab;
|
|
6272
|
+
m({ ...q, displayTab: H }), h({
|
|
6273
|
+
...q,
|
|
6274
6274
|
displayTab: H
|
|
6275
6275
|
});
|
|
6276
6276
|
},
|
|
6277
|
-
children:
|
|
6277
|
+
children: q.displayTab === !0 || q.displayTab === void 0 ? /* @__PURE__ */ e(or, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(ir, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" })
|
|
6278
6278
|
}
|
|
6279
6279
|
);
|
|
6280
6280
|
}
|
|
@@ -6284,18 +6284,18 @@ function kp({
|
|
|
6284
6284
|
variant: "underline",
|
|
6285
6285
|
className: "group flex h-9 items-center justify-start gap-1 overflow-x-auto rounded-none border-b-0 border-t border-border bg-background px-4",
|
|
6286
6286
|
children: /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
6287
|
-
r.cards.map((P,
|
|
6287
|
+
r.cards.map((P, q) => {
|
|
6288
6288
|
var oe, ue;
|
|
6289
|
-
const H = g ? Yt(P,
|
|
6289
|
+
const H = g ? Yt(P, q) : -1, Y = g && ((oe = f == null ? void 0 : f.slots) != null && oe.length) && H >= 0 ? lr(f.slots, H) : null, Q = Y ? (Array.isArray(Y.expectedType) ? Y.expectedType[0] : Y.expectedType) || "table" : P.type, de = g && ((ue = f == null ? void 0 : f.slots) == null ? void 0 : ue.length) && f.slots.every(
|
|
6290
6290
|
(Ce) => typeof Ce.position == "number" || typeof Ce.position == "string" && !Ce.position.includes("+")
|
|
6291
6291
|
);
|
|
6292
6292
|
return /* @__PURE__ */ a(
|
|
6293
6293
|
oa,
|
|
6294
6294
|
{
|
|
6295
6295
|
draggable: !g && !l,
|
|
6296
|
-
onDragStart: g || l ? void 0 : (Ce) => y(Ce,
|
|
6296
|
+
onDragStart: g || l ? void 0 : (Ce) => y(Ce, q),
|
|
6297
6297
|
onDragOver: g || l ? void 0 : O,
|
|
6298
|
-
onDrop: g || l ? void 0 : (Ce) => x(Ce,
|
|
6298
|
+
onDrop: g || l ? void 0 : (Ce) => x(Ce, q),
|
|
6299
6299
|
className: W(
|
|
6300
6300
|
"inline-flex h-6 shrink-0 items-center gap-1.5 rounded-[5px] border px-2 text-[12px] font-normal text-muted-foreground transition-colors",
|
|
6301
6301
|
"mb-0 border-transparent pb-0",
|
|
@@ -6430,7 +6430,7 @@ function Sa({
|
|
|
6430
6430
|
}).map(
|
|
6431
6431
|
(he) => (he == null ? void 0 : he.id) === r.id ? r : he
|
|
6432
6432
|
), [s, l, r]), S = ce(
|
|
6433
|
-
() =>
|
|
6433
|
+
() => ji(b),
|
|
6434
6434
|
[b]
|
|
6435
6435
|
), A = ce(() => {
|
|
6436
6436
|
const J = b.findIndex(
|
|
@@ -6449,7 +6449,7 @@ function Sa({
|
|
|
6449
6449
|
python: "",
|
|
6450
6450
|
config: void 0,
|
|
6451
6451
|
queryConfig: void 0
|
|
6452
|
-
} : B !== r.type ? { ...r, type: B } : r, [r, B, L]), { data: z, isLoading: P, isFetching:
|
|
6452
|
+
} : B !== r.type ? { ...r, type: B } : r, [r, B, L]), { data: z, isLoading: P, isFetching: q, isError: H } = bt(_), Y = Ie(
|
|
6453
6453
|
(J, he) => {
|
|
6454
6454
|
const ke = gd(he);
|
|
6455
6455
|
g((Ne) => ({
|
|
@@ -6521,8 +6521,8 @@ function Sa({
|
|
|
6521
6521
|
activeCardId: J
|
|
6522
6522
|
};
|
|
6523
6523
|
o(Ne);
|
|
6524
|
-
const
|
|
6525
|
-
|
|
6524
|
+
const je = Ne.cards.find((Ue) => Ue.id === J);
|
|
6525
|
+
je.sql && v(!0), h(je);
|
|
6526
6526
|
}
|
|
6527
6527
|
function ye() {
|
|
6528
6528
|
if (O)
|
|
@@ -6539,9 +6539,9 @@ function Sa({
|
|
|
6539
6539
|
return /* @__PURE__ */ a("div", { className: "relative flex h-full flex-col pl-2 pr-4", children: [
|
|
6540
6540
|
b.map((ke, Ne) => {
|
|
6541
6541
|
if (!ke) return null;
|
|
6542
|
-
const
|
|
6542
|
+
const je = Yt(ke, Ne), Ue = Ua(
|
|
6543
6543
|
ke,
|
|
6544
|
-
|
|
6544
|
+
je,
|
|
6545
6545
|
D == null ? void 0 : D.slots
|
|
6546
6546
|
);
|
|
6547
6547
|
return /* @__PURE__ */ e(
|
|
@@ -6552,7 +6552,7 @@ function Sa({
|
|
|
6552
6552
|
card: ke,
|
|
6553
6553
|
effectiveCardType: Ue
|
|
6554
6554
|
},
|
|
6555
|
-
`${ke.id}-${
|
|
6555
|
+
`${ke.id}-${je}`
|
|
6556
6556
|
);
|
|
6557
6557
|
}),
|
|
6558
6558
|
de && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-10 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(Kt, { size: "md", color: "muted", "aria-label": "Loading preview" }) }),
|
|
@@ -6595,25 +6595,25 @@ function Sa({
|
|
|
6595
6595
|
}
|
|
6596
6596
|
function Pe() {
|
|
6597
6597
|
var J;
|
|
6598
|
-
return L ? ye() : t && (n || !P && !
|
|
6598
|
+
return L ? ye() : t && (n || !P && !q && !H) ? t({
|
|
6599
6599
|
card: r,
|
|
6600
6600
|
data: z,
|
|
6601
6601
|
isLoading: P,
|
|
6602
|
-
isFetching:
|
|
6602
|
+
isFetching: q,
|
|
6603
6603
|
isError: H
|
|
6604
|
-
}) : r.type === "kpi" ? P ||
|
|
6604
|
+
}) : r.type === "kpi" ? P || q ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Kt, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ a("div", { className: "w-1/2 space-y-3", children: [
|
|
6605
6605
|
/* @__PURE__ */ e("div", { className: "rounded-md border border-border", children: /* @__PURE__ */ e(
|
|
6606
6606
|
vd,
|
|
6607
6607
|
{
|
|
6608
6608
|
card: r,
|
|
6609
6609
|
data: z == null ? void 0 : z.records,
|
|
6610
|
-
isPending: P ||
|
|
6610
|
+
isPending: P || q,
|
|
6611
6611
|
isError: H,
|
|
6612
6612
|
comparisonMetadata: (J = z == null ? void 0 : z.metadata) == null ? void 0 : J.comparisonMetadata
|
|
6613
6613
|
}
|
|
6614
6614
|
) }),
|
|
6615
6615
|
Mi(r) && /* @__PURE__ */ e(Ri, { card: r, mode: "editor" })
|
|
6616
|
-
] }) }) : r.type === "text" ? P ||
|
|
6616
|
+
] }) }) : r.type === "text" ? P || q ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Kt, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e(sn, { className: "mx-3 my-6 h-[300px] overflow-y-auto break-words px-3", children: /* @__PURE__ */ e(
|
|
6617
6617
|
yd,
|
|
6618
6618
|
{
|
|
6619
6619
|
isLoading: c,
|
|
@@ -6679,14 +6679,14 @@ function Oo({
|
|
|
6679
6679
|
var F;
|
|
6680
6680
|
const i = M((L) => L.card), l = M((L) => L.actions.setCard), c = M(
|
|
6681
6681
|
(L) => L.actions.updateCardInFrame
|
|
6682
|
-
), o =
|
|
6682
|
+
), o = jl(
|
|
6683
6683
|
(F = i.dynamicCardPreferences) == null ? void 0 : F.rendererCode
|
|
6684
6684
|
), [m, h] = K(o), [v, p] = K(o);
|
|
6685
6685
|
Se(() => {
|
|
6686
6686
|
h(o), p(o);
|
|
6687
6687
|
}, [o, i.id]);
|
|
6688
6688
|
const u = ce(
|
|
6689
|
-
() =>
|
|
6689
|
+
() => jl(m),
|
|
6690
6690
|
[m]
|
|
6691
6691
|
), f = ce(
|
|
6692
6692
|
() => $m(u),
|
|
@@ -6934,12 +6934,12 @@ function Fo({
|
|
|
6934
6934
|
const n = M((m) => m.card), s = M((m) => m.frame), r = M(
|
|
6935
6935
|
(m) => m.actions.setIsShowingVisual
|
|
6936
6936
|
), { setVisualizationMode: d, setDynamicCardPreferences: i } = we(), c = rn(n) === "dynamic";
|
|
6937
|
-
if (s.cards.length !== 1 ||
|
|
6937
|
+
if (s.cards.length !== 1 || qm(n))
|
|
6938
6938
|
return null;
|
|
6939
6939
|
const o = (m) => {
|
|
6940
6940
|
var h;
|
|
6941
6941
|
m === "dynamic" && !n.dynamicCardPreferences && i(
|
|
6942
|
-
|
|
6942
|
+
jm(
|
|
6943
6943
|
n.type,
|
|
6944
6944
|
(h = n.preferences) == null ? void 0 : h.displayOptions
|
|
6945
6945
|
)
|
|
@@ -7312,7 +7312,7 @@ function Hs({
|
|
|
7312
7312
|
setCardType: _
|
|
7313
7313
|
} = we(), z = ce(() => w !== c.type ? { ...c, type: w } : c, [c, w]), {
|
|
7314
7314
|
data: P,
|
|
7315
|
-
isLoading:
|
|
7315
|
+
isLoading: q,
|
|
7316
7316
|
isFetching: H,
|
|
7317
7317
|
errorMessage: Y,
|
|
7318
7318
|
errorSql: Q,
|
|
@@ -7351,17 +7351,17 @@ function Hs({
|
|
|
7351
7351
|
D(J);
|
|
7352
7352
|
const he = {
|
|
7353
7353
|
...l,
|
|
7354
|
-
cards: l.cards.map((
|
|
7354
|
+
cards: l.cards.map((je) => je.id === c.id ? J : je)
|
|
7355
7355
|
};
|
|
7356
7356
|
R(he), c.sql && ((Ne = (ke = c.preferences) == null ? void 0 : ke.tablePrefs) != null && Ne.enableDevModePagination) && g(!0);
|
|
7357
7357
|
}
|
|
7358
7358
|
function Oe(fe) {
|
|
7359
|
-
var ke, Ne,
|
|
7359
|
+
var ke, Ne, je, Ue, pe;
|
|
7360
7360
|
const G = Tr(
|
|
7361
7361
|
fe,
|
|
7362
7362
|
(ke = c.config) == null ? void 0 : ke.metricColumns,
|
|
7363
7363
|
(Ne = c.config) == null ? void 0 : Ne.groupByColumns,
|
|
7364
|
-
(
|
|
7364
|
+
(je = c.config) == null ? void 0 : je.detailColumns
|
|
7365
7365
|
), J = {
|
|
7366
7366
|
...c,
|
|
7367
7367
|
config: {
|
|
@@ -7390,7 +7390,7 @@ function Hs({
|
|
|
7390
7390
|
function mt() {
|
|
7391
7391
|
const G = [
|
|
7392
7392
|
Object.keys(
|
|
7393
|
-
P == null ? void 0 : P.records.reduce((Ne,
|
|
7393
|
+
P == null ? void 0 : P.records.reduce((Ne, je) => ({ ...Ne, ...je }), {})
|
|
7394
7394
|
).join(","),
|
|
7395
7395
|
...((P == null ? void 0 : P.records) || []).map((Ne) => Object.values(Ne).join(","))
|
|
7396
7396
|
].join(`
|
|
@@ -7425,7 +7425,7 @@ function Hs({
|
|
|
7425
7425
|
}
|
|
7426
7426
|
) }) }),
|
|
7427
7427
|
!v && /* @__PURE__ */ e("div", { className: "grow" }),
|
|
7428
|
-
!
|
|
7428
|
+
!q && !H && !Y && (P == null ? void 0 : P.sql) && /* @__PURE__ */ e("div", { className: "inline-flex shrink-0 items-center text-[11px] text-muted-foreground", children: /* @__PURE__ */ a(Ya, { openDelay: 200, children: [
|
|
7429
7429
|
/* @__PURE__ */ e(Xa, { asChild: !0, children: /* @__PURE__ */ e(
|
|
7430
7430
|
"button",
|
|
7431
7431
|
{
|
|
@@ -7495,7 +7495,7 @@ function Hs({
|
|
|
7495
7495
|
ft,
|
|
7496
7496
|
{
|
|
7497
7497
|
tooltip: "Refresh",
|
|
7498
|
-
disabled:
|
|
7498
|
+
disabled: q || H,
|
|
7499
7499
|
className: "h-7 w-7 px-0",
|
|
7500
7500
|
onClick: () => {
|
|
7501
7501
|
if (Je(!0), o) {
|
|
@@ -7699,7 +7699,7 @@ function Hs({
|
|
|
7699
7699
|
onPaginationChange: ie,
|
|
7700
7700
|
onPageSizePreferenceChange: B,
|
|
7701
7701
|
onSortChange: Oe,
|
|
7702
|
-
isLoading:
|
|
7702
|
+
isLoading: q || H
|
|
7703
7703
|
}
|
|
7704
7704
|
) : P.records.length > 0 ? /* @__PURE__ */ e(
|
|
7705
7705
|
kn,
|
|
@@ -7711,7 +7711,7 @@ function Hs({
|
|
|
7711
7711
|
paginationMetadata: ue,
|
|
7712
7712
|
onPaginationChange: ie,
|
|
7713
7713
|
onSortChange: Oe,
|
|
7714
|
-
isLoading:
|
|
7714
|
+
isLoading: q || H
|
|
7715
7715
|
}
|
|
7716
7716
|
) : null),
|
|
7717
7717
|
Y && /* @__PURE__ */ e("div", { className: "flex h-full flex-col items-start justify-start overflow-auto p-4", children: /* @__PURE__ */ e(
|
|
@@ -7803,7 +7803,7 @@ function Fp() {
|
|
|
7803
7803
|
},
|
|
7804
7804
|
children: [
|
|
7805
7805
|
/* @__PURE__ */ e(ae, { className: "h-7 w-20 rounded-[5px] px-2 text-[12px]", children: /* @__PURE__ */ e(ne, {}) }),
|
|
7806
|
-
/* @__PURE__ */ e(se, { children: i.map((C) => /* @__PURE__ */ e(
|
|
7806
|
+
/* @__PURE__ */ e(se, { children: i.map((C) => /* @__PURE__ */ e(j, { value: String(C), children: C }, C)) })
|
|
7807
7807
|
]
|
|
7808
7808
|
}
|
|
7809
7809
|
)
|
|
@@ -7895,7 +7895,7 @@ function ia({
|
|
|
7895
7895
|
),
|
|
7896
7896
|
/* @__PURE__ */ e(se, { children: /* @__PURE__ */ a(Pn, { children: [
|
|
7897
7897
|
/* @__PURE__ */ e(cs, { children: n }),
|
|
7898
|
-
s.map((o) => /* @__PURE__ */ e(
|
|
7898
|
+
s.map((o) => /* @__PURE__ */ e(j, { value: o.value, children: o.label }, o.value))
|
|
7899
7899
|
] }) })
|
|
7900
7900
|
]
|
|
7901
7901
|
}
|
|
@@ -8004,7 +8004,7 @@ function Ro() {
|
|
|
8004
8004
|
var D, F, L;
|
|
8005
8005
|
const t = M(
|
|
8006
8006
|
(b) => b.card.customCardPreferences
|
|
8007
|
-
), { data: n } =
|
|
8007
|
+
), { data: n } = qd(), s = (n == null ? void 0 : n.plugins) || [], r = M((b) => b.card), d = M((b) => b.frame), { setCustomCardPreferences: i } = we(), l = ce(
|
|
8008
8008
|
() => Pa(d, r),
|
|
8009
8009
|
[d, r]
|
|
8010
8010
|
), c = l == null ? void 0 : l.customCardPreferences, { components: o, manifest: m } = pa(
|
|
@@ -8022,7 +8022,7 @@ function Ro() {
|
|
|
8022
8022
|
}),
|
|
8023
8023
|
[d, l, r, p]
|
|
8024
8024
|
), w = ce(
|
|
8025
|
-
() =>
|
|
8025
|
+
() => ji(g),
|
|
8026
8026
|
[g]
|
|
8027
8027
|
), E = ce(
|
|
8028
8028
|
() => w.map((b, S) => {
|
|
@@ -8066,7 +8066,7 @@ function Ro() {
|
|
|
8066
8066
|
return b ? (Array.isArray(b) ? b : [b]).join(", ") : null;
|
|
8067
8067
|
}
|
|
8068
8068
|
function k(b, S, A = [], B = "", _, z, P) {
|
|
8069
|
-
const
|
|
8069
|
+
const q = y({
|
|
8070
8070
|
key: S,
|
|
8071
8071
|
defaultValue: B,
|
|
8072
8072
|
settingsValue: z,
|
|
@@ -8077,7 +8077,7 @@ function Ro() {
|
|
|
8077
8077
|
{
|
|
8078
8078
|
className: `h-8 w-full ${la}`,
|
|
8079
8079
|
value: String(
|
|
8080
|
-
|
|
8080
|
+
q ?? ""
|
|
8081
8081
|
),
|
|
8082
8082
|
onCommit: (H) => {
|
|
8083
8083
|
O({
|
|
@@ -8097,7 +8097,7 @@ function Ro() {
|
|
|
8097
8097
|
label: "",
|
|
8098
8098
|
options: A,
|
|
8099
8099
|
value: String(
|
|
8100
|
-
|
|
8100
|
+
q !== void 0 ? q : B ?? ""
|
|
8101
8101
|
),
|
|
8102
8102
|
onValueChange: (H) => {
|
|
8103
8103
|
O({
|
|
@@ -8127,8 +8127,8 @@ function Ro() {
|
|
|
8127
8127
|
settingsValue: B,
|
|
8128
8128
|
sourceCard: _
|
|
8129
8129
|
}) {
|
|
8130
|
-
const z = { ...B || {} }, P = b === "title" && (_ == null ? void 0 : _.title) !== void 0,
|
|
8131
|
-
P && S === String((_ == null ? void 0 : _.title) ?? "") ||
|
|
8130
|
+
const z = { ...B || {} }, P = b === "title" && (_ == null ? void 0 : _.title) !== void 0, q = b === "description" && (_ == null ? void 0 : _.description) !== void 0;
|
|
8131
|
+
P && S === String((_ == null ? void 0 : _.title) ?? "") || q && S === String((_ == null ? void 0 : _.description) ?? "") ? delete z[b] : z[b] = S, i({
|
|
8132
8132
|
...t || {},
|
|
8133
8133
|
[A]: z
|
|
8134
8134
|
});
|
|
@@ -8143,21 +8143,21 @@ function Ro() {
|
|
|
8143
8143
|
const z = Object.entries(b || {});
|
|
8144
8144
|
return /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
8145
8145
|
_ && /* @__PURE__ */ e($, { children: _ }),
|
|
8146
|
-
z.map(([P,
|
|
8146
|
+
z.map(([P, q]) => {
|
|
8147
8147
|
var H;
|
|
8148
8148
|
return /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
8149
8149
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
8150
|
-
/* @__PURE__ */ e($, { children:
|
|
8151
|
-
((H =
|
|
8150
|
+
/* @__PURE__ */ e($, { children: q.title }),
|
|
8151
|
+
((H = q.docs) == null ? void 0 : H.description) && /* @__PURE__ */ e(Lt, { delayDuration: 0, children: /* @__PURE__ */ a(St, { children: [
|
|
8152
8152
|
/* @__PURE__ */ e(Tt, { asChild: !0, children: /* @__PURE__ */ e(Wt, { className: "h-3.5 w-3.5 cursor-help text-muted-foreground" }) }),
|
|
8153
|
-
/* @__PURE__ */ e(wt, { side: "right", className: "max-w-xs", children: /* @__PURE__ */ e("p", { className: "text-xs", children:
|
|
8153
|
+
/* @__PURE__ */ e(wt, { side: "right", className: "max-w-xs", children: /* @__PURE__ */ e("p", { className: "text-xs", children: q.docs.description }) })
|
|
8154
8154
|
] }) })
|
|
8155
8155
|
] }),
|
|
8156
8156
|
k(
|
|
8157
|
-
|
|
8157
|
+
q.ui,
|
|
8158
8158
|
P,
|
|
8159
|
-
|
|
8160
|
-
|
|
8159
|
+
q.options,
|
|
8160
|
+
q.defaultValue,
|
|
8161
8161
|
S,
|
|
8162
8162
|
A,
|
|
8163
8163
|
B
|
|
@@ -8305,7 +8305,7 @@ function Ro() {
|
|
|
8305
8305
|
h.docs.dataSchema && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
8306
8306
|
/* @__PURE__ */ e("h4", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: "Data Schema" }),
|
|
8307
8307
|
/* @__PURE__ */ e("div", { className: "prose prose-sm dark:prose-invert prose-pre:bg-muted prose-pre:text-xs max-w-none", children: /* @__PURE__ */ e(
|
|
8308
|
-
|
|
8308
|
+
jd,
|
|
8309
8309
|
{
|
|
8310
8310
|
remarkPlugins: [Kd],
|
|
8311
8311
|
components: Vp,
|
|
@@ -8500,8 +8500,8 @@ function zp() {
|
|
|
8500
8500
|
/* @__PURE__ */ e(ae, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(ne, {}) }),
|
|
8501
8501
|
/* @__PURE__ */ e(se, { children: /* @__PURE__ */ a(Pn, { children: [
|
|
8502
8502
|
/* @__PURE__ */ e(cs, { children: "Format" }),
|
|
8503
|
-
/* @__PURE__ */ e(
|
|
8504
|
-
Gl.map((C) => /* @__PURE__ */ e(
|
|
8503
|
+
/* @__PURE__ */ e(j, { value: "none", children: "Auto" }, "none"),
|
|
8504
|
+
Gl.map((C) => /* @__PURE__ */ e(j, { value: C.locale, children: C.locale }, C.locale))
|
|
8505
8505
|
] }) })
|
|
8506
8506
|
]
|
|
8507
8507
|
}
|
|
@@ -8526,8 +8526,8 @@ function zp() {
|
|
|
8526
8526
|
/* @__PURE__ */ e(ae, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(ne, {}) }),
|
|
8527
8527
|
/* @__PURE__ */ e(se, { children: /* @__PURE__ */ a(Pn, { children: [
|
|
8528
8528
|
/* @__PURE__ */ e(cs, { children: "Currency" }),
|
|
8529
|
-
/* @__PURE__ */ e(
|
|
8530
|
-
m.map((C) => /* @__PURE__ */ e(
|
|
8529
|
+
/* @__PURE__ */ e(j, { value: "none", children: "None" }, "none"),
|
|
8530
|
+
m.map((C) => /* @__PURE__ */ e(j, { value: C, children: C }, C))
|
|
8531
8531
|
] }) })
|
|
8532
8532
|
]
|
|
8533
8533
|
}
|
|
@@ -8552,7 +8552,7 @@ function zp() {
|
|
|
8552
8552
|
},
|
|
8553
8553
|
children: [
|
|
8554
8554
|
/* @__PURE__ */ e(ae, { className: "col-span-3 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(ne, {}) }),
|
|
8555
|
-
/* @__PURE__ */ e(se, { children: ["0", "1", "2", "3", "4"].map((C) => /* @__PURE__ */ e(
|
|
8555
|
+
/* @__PURE__ */ e(se, { children: ["0", "1", "2", "3", "4"].map((C) => /* @__PURE__ */ e(j, { value: C, children: C }, C)) })
|
|
8556
8556
|
]
|
|
8557
8557
|
}
|
|
8558
8558
|
)
|
|
@@ -8910,7 +8910,7 @@ function $p({
|
|
|
8910
8910
|
)
|
|
8911
8911
|
] }) : null;
|
|
8912
8912
|
}
|
|
8913
|
-
function
|
|
8913
|
+
function qp({
|
|
8914
8914
|
chartType: t
|
|
8915
8915
|
}) {
|
|
8916
8916
|
return Lo(t) ? /* @__PURE__ */ a(Ya, { openDelay: 200, children: [
|
|
@@ -8940,10 +8940,10 @@ function As({
|
|
|
8940
8940
|
}) {
|
|
8941
8941
|
return /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
8942
8942
|
/* @__PURE__ */ e("h3", { className: "text-sm font-medium", children: n }),
|
|
8943
|
-
/* @__PURE__ */ e(
|
|
8943
|
+
/* @__PURE__ */ e(qp, { chartType: t })
|
|
8944
8944
|
] });
|
|
8945
8945
|
}
|
|
8946
|
-
function
|
|
8946
|
+
function jp() {
|
|
8947
8947
|
return /* @__PURE__ */ a("div", { className: "space-y-6 px-6 py-4", children: [
|
|
8948
8948
|
/* @__PURE__ */ e(As, { chartType: "kpi" }),
|
|
8949
8949
|
/* @__PURE__ */ e("section", { children: /* @__PURE__ */ e(zp, {}) })
|
|
@@ -9544,7 +9544,7 @@ function ln({
|
|
|
9544
9544
|
children: /* @__PURE__ */ e(ne, {})
|
|
9545
9545
|
}
|
|
9546
9546
|
),
|
|
9547
|
-
/* @__PURE__ */ e(se, { children: Qp.map((u) => /* @__PURE__ */ e(
|
|
9547
|
+
/* @__PURE__ */ e(se, { children: Qp.map((u) => /* @__PURE__ */ e(j, { value: u, className: "text-xs", children: u === "auto" ? "Auto (Default)" : Xp(u) }, u)) })
|
|
9548
9548
|
]
|
|
9549
9549
|
}
|
|
9550
9550
|
)
|
|
@@ -9607,7 +9607,7 @@ function ln({
|
|
|
9607
9607
|
}
|
|
9608
9608
|
),
|
|
9609
9609
|
/* @__PURE__ */ e(se, { children: Jp.map((u) => /* @__PURE__ */ e(
|
|
9610
|
-
|
|
9610
|
+
j,
|
|
9611
9611
|
{
|
|
9612
9612
|
value: u.value,
|
|
9613
9613
|
className: "text-xs",
|
|
@@ -9650,7 +9650,7 @@ function ln({
|
|
|
9650
9650
|
}
|
|
9651
9651
|
),
|
|
9652
9652
|
/* @__PURE__ */ e(se, { children: Yp.map((u) => /* @__PURE__ */ e(
|
|
9653
|
-
|
|
9653
|
+
j,
|
|
9654
9654
|
{
|
|
9655
9655
|
value: u.value,
|
|
9656
9656
|
className: "text-xs",
|
|
@@ -9905,7 +9905,7 @@ function Po({
|
|
|
9905
9905
|
}
|
|
9906
9906
|
}
|
|
9907
9907
|
});
|
|
9908
|
-
},
|
|
9908
|
+
}, q = x ? /* @__PURE__ */ e(
|
|
9909
9909
|
tf,
|
|
9910
9910
|
{
|
|
9911
9911
|
calculatedAs: R.calculatedAs ?? "change_difference",
|
|
@@ -9948,7 +9948,7 @@ function Po({
|
|
|
9948
9948
|
onEnabledChange: B,
|
|
9949
9949
|
onStyleChange: A
|
|
9950
9950
|
} : void 0,
|
|
9951
|
-
extraSection:
|
|
9951
|
+
extraSection: q,
|
|
9952
9952
|
onReset: w ? P : void 0
|
|
9953
9953
|
}
|
|
9954
9954
|
) }),
|
|
@@ -9995,7 +9995,7 @@ function tf({
|
|
|
9995
9995
|
}),
|
|
9996
9996
|
children: [
|
|
9997
9997
|
/* @__PURE__ */ e(ae, { size: "xs", className: "w-full", children: /* @__PURE__ */ e(ne, {}) }),
|
|
9998
|
-
/* @__PURE__ */ e(se, { children: Zp.map((l) => /* @__PURE__ */ e(
|
|
9998
|
+
/* @__PURE__ */ e(se, { children: Zp.map((l) => /* @__PURE__ */ e(j, { value: l.value, children: l.label }, l.value)) })
|
|
9999
9999
|
]
|
|
10000
10000
|
}
|
|
10001
10001
|
) }),
|
|
@@ -10008,7 +10008,7 @@ function tf({
|
|
|
10008
10008
|
}),
|
|
10009
10009
|
children: [
|
|
10010
10010
|
/* @__PURE__ */ e(ae, { size: "xs", className: "w-full", children: /* @__PURE__ */ e(ne, {}) }),
|
|
10011
|
-
/* @__PURE__ */ e(se, { children: ef.map((l) => /* @__PURE__ */ e(
|
|
10011
|
+
/* @__PURE__ */ e(se, { children: ef.map((l) => /* @__PURE__ */ e(j, { value: l.value, children: l.label }, l.value)) })
|
|
10012
10012
|
]
|
|
10013
10013
|
}
|
|
10014
10014
|
) }),
|
|
@@ -10374,7 +10374,7 @@ function df() {
|
|
|
10374
10374
|
}), s = xt(), { setCardPreferences: r, updateCardInFrame: d } = we(), i = ce(() => s !== t.type ? { ...t, type: s } : t, [t, s]), { data: l } = bt(i), [c, o] = K({}), [m, h] = K(
|
|
10375
10375
|
null
|
|
10376
10376
|
), [v, p] = K(null), u = ce(() => {
|
|
10377
|
-
var B, _, z, P,
|
|
10377
|
+
var B, _, z, P, q, H, Y;
|
|
10378
10378
|
if (!(l != null && l.records) || l.records.length === 0) return [];
|
|
10379
10379
|
const b = s === "stackedBar" || s === "stackedLine", S = s === "bar" || s === "line" || s === "horizontalBar" || s === "bullet" || s === "combo" || s === "area" || s === "stackedArea", A = ((B = t == null ? void 0 : t.config) == null ? void 0 : B.pivotByColumns) && t.config.pivotByColumns.length > 0;
|
|
10380
10380
|
if ((b || S) && A) {
|
|
@@ -10400,7 +10400,7 @@ function df() {
|
|
|
10400
10400
|
);
|
|
10401
10401
|
}
|
|
10402
10402
|
}
|
|
10403
|
-
if ((S || b) && !A && ((
|
|
10403
|
+
if ((S || b) && !A && ((q = (P = t == null ? void 0 : t.config) == null ? void 0 : P.metricColumns) != null && q.length))
|
|
10404
10404
|
return t.config.metricColumns.map(
|
|
10405
10405
|
(Q) => Q.alias || Q.label || Q.name
|
|
10406
10406
|
);
|
|
@@ -10448,8 +10448,8 @@ function df() {
|
|
|
10448
10448
|
};
|
|
10449
10449
|
d(_);
|
|
10450
10450
|
}, g = (b, S) => {
|
|
10451
|
-
var
|
|
10452
|
-
const A = f[S % f.length], { [b]: B, ..._ } = ((
|
|
10451
|
+
var q;
|
|
10452
|
+
const A = f[S % f.length], { [b]: B, ..._ } = ((q = n == null ? void 0 : n.colorConfig) == null ? void 0 : q.segments) || {}, z = {
|
|
10453
10453
|
...n || {},
|
|
10454
10454
|
colorConfig: {
|
|
10455
10455
|
segments: _
|
|
@@ -10786,8 +10786,8 @@ function Ys({ axis: t, label: n, type: s, config: r, onChange: d, defaultTitle:
|
|
|
10786
10786
|
children: [
|
|
10787
10787
|
/* @__PURE__ */ e(ae, { className: "h-7 w-20 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
10788
10788
|
/* @__PURE__ */ a(se, { children: [
|
|
10789
|
-
/* @__PURE__ */ e(
|
|
10790
|
-
/* @__PURE__ */ e(
|
|
10789
|
+
/* @__PURE__ */ e(j, { value: "normal", className: "text-xs", children: "Normal" }),
|
|
10790
|
+
/* @__PURE__ */ e(j, { value: "bold", className: "text-xs", children: "Bold" })
|
|
10791
10791
|
] })
|
|
10792
10792
|
]
|
|
10793
10793
|
}
|
|
@@ -10805,7 +10805,7 @@ function Ys({ axis: t, label: n, type: s, config: r, onChange: d, defaultTitle:
|
|
|
10805
10805
|
onValueChange: (D) => o("position", D),
|
|
10806
10806
|
children: [
|
|
10807
10807
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
10808
|
-
/* @__PURE__ */ e(se, { children: p.map((D) => /* @__PURE__ */ e(
|
|
10808
|
+
/* @__PURE__ */ e(se, { children: p.map((D) => /* @__PURE__ */ e(j, { value: D, className: "text-xs", children: D === "auto" ? "Auto (Default)" : Rt(D) }, D)) })
|
|
10809
10809
|
]
|
|
10810
10810
|
}
|
|
10811
10811
|
)
|
|
@@ -10834,7 +10834,7 @@ function Ys({ axis: t, label: n, type: s, config: r, onChange: d, defaultTitle:
|
|
|
10834
10834
|
),
|
|
10835
10835
|
children: [
|
|
10836
10836
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
10837
|
-
/* @__PURE__ */ e(se, { children: u.map((D) => /* @__PURE__ */ e(
|
|
10837
|
+
/* @__PURE__ */ e(se, { children: u.map((D) => /* @__PURE__ */ e(j, { value: D, className: "text-xs", children: D === "auto" ? "Auto (Default)" : `${D}°` }, D)) })
|
|
10838
10838
|
]
|
|
10839
10839
|
}
|
|
10840
10840
|
)
|
|
@@ -11063,7 +11063,7 @@ function mf() {
|
|
|
11063
11063
|
onValueChange: (v) => o("position", v),
|
|
11064
11064
|
children: [
|
|
11065
11065
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
11066
|
-
/* @__PURE__ */ e(se, { children: m.map((v) => /* @__PURE__ */ e(
|
|
11066
|
+
/* @__PURE__ */ e(se, { children: m.map((v) => /* @__PURE__ */ e(j, { value: v, className: "text-xs", children: Rt(v) }, v)) })
|
|
11067
11067
|
]
|
|
11068
11068
|
}
|
|
11069
11069
|
)
|
|
@@ -11077,7 +11077,7 @@ function mf() {
|
|
|
11077
11077
|
onValueChange: (v) => o("align", v),
|
|
11078
11078
|
children: [
|
|
11079
11079
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
11080
|
-
/* @__PURE__ */ e(se, { children: h.map((v) => /* @__PURE__ */ e(
|
|
11080
|
+
/* @__PURE__ */ e(se, { children: h.map((v) => /* @__PURE__ */ e(j, { value: v, className: "text-xs", children: Rt(v) }, v)) })
|
|
11081
11081
|
]
|
|
11082
11082
|
}
|
|
11083
11083
|
)
|
|
@@ -11090,8 +11090,8 @@ function hf() {
|
|
|
11090
11090
|
var F, L, b, S, A, B, _;
|
|
11091
11091
|
const t = M((z) => z.card), n = xt(), s = M(
|
|
11092
11092
|
(z) => {
|
|
11093
|
-
var P,
|
|
11094
|
-
return (
|
|
11093
|
+
var P, q;
|
|
11094
|
+
return (q = (P = z.card) == null ? void 0 : P.preferences) == null ? void 0 : q.dataLabelsConfig;
|
|
11095
11095
|
}
|
|
11096
11096
|
), r = M((z) => {
|
|
11097
11097
|
var P;
|
|
@@ -11120,11 +11120,11 @@ function hf() {
|
|
|
11120
11120
|
};
|
|
11121
11121
|
i(de);
|
|
11122
11122
|
}, E = (z, P) => {
|
|
11123
|
-
const
|
|
11123
|
+
const q = s ?? {}, Y = {
|
|
11124
11124
|
...u ?? {},
|
|
11125
|
-
...
|
|
11125
|
+
...q,
|
|
11126
11126
|
font: {
|
|
11127
|
-
...
|
|
11127
|
+
...q.font || {},
|
|
11128
11128
|
[z]: P
|
|
11129
11129
|
}
|
|
11130
11130
|
}, Q = {
|
|
@@ -11149,7 +11149,7 @@ function hf() {
|
|
|
11149
11149
|
k = ["center"];
|
|
11150
11150
|
else {
|
|
11151
11151
|
const z = c ? ["center", "left", "right"] : ["center", "top", "bottom"];
|
|
11152
|
-
k = ["auto", ...n === "bullet" ? z : z.filter((
|
|
11152
|
+
k = ["auto", ...n === "bullet" ? z : z.filter((q) => q !== I), "custom"];
|
|
11153
11153
|
}
|
|
11154
11154
|
const y = () => Rt(I), O = ["center", "start", "end"], x = ["center", "start", "end", "top", "bottom"], R = (f == null ? void 0 : f.formatMode) || (f != null && f.format && !["auto"].includes(f.format) ? "override" : "inherit"), D = (f == null ? void 0 : f.format) === "none";
|
|
11155
11155
|
return /* @__PURE__ */ a(lt, { value: "data-labels", className: "border-b-0", children: [
|
|
@@ -11179,7 +11179,7 @@ function hf() {
|
|
|
11179
11179
|
onValueChange: (z) => w("position", z),
|
|
11180
11180
|
children: [
|
|
11181
11181
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
11182
|
-
/* @__PURE__ */ e(se, { children: k.map((z) => /* @__PURE__ */ e(
|
|
11182
|
+
/* @__PURE__ */ e(se, { children: k.map((z) => /* @__PURE__ */ e(j, { value: z, className: "text-xs", children: z === "auto" ? y() : z === "custom" ? "Custom (Advanced)" : Rt(z) }, z)) })
|
|
11183
11183
|
]
|
|
11184
11184
|
}
|
|
11185
11185
|
)
|
|
@@ -11205,7 +11205,7 @@ function hf() {
|
|
|
11205
11205
|
onValueChange: (z) => w("anchor", z),
|
|
11206
11206
|
children: [
|
|
11207
11207
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(ne, {}) }),
|
|
11208
|
-
/* @__PURE__ */ e(se, { children: O.map((z) => /* @__PURE__ */ e(
|
|
11208
|
+
/* @__PURE__ */ e(se, { children: O.map((z) => /* @__PURE__ */ e(j, { value: z, className: "text-xs", children: Rt(z) }, z)) })
|
|
11209
11209
|
]
|
|
11210
11210
|
}
|
|
11211
11211
|
)
|
|
@@ -11219,7 +11219,7 @@ function hf() {
|
|
|
11219
11219
|
onValueChange: (z) => w("align", z),
|
|
11220
11220
|
children: [
|
|
11221
11221
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(ne, {}) }),
|
|
11222
|
-
/* @__PURE__ */ e(se, { children: x.map((z) => /* @__PURE__ */ e(
|
|
11222
|
+
/* @__PURE__ */ e(se, { children: x.map((z) => /* @__PURE__ */ e(j, { value: z, className: "text-xs", children: Rt(z) }, z)) })
|
|
11223
11223
|
]
|
|
11224
11224
|
}
|
|
11225
11225
|
)
|
|
@@ -11320,8 +11320,8 @@ function hf() {
|
|
|
11320
11320
|
children: [
|
|
11321
11321
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(ne, {}) }),
|
|
11322
11322
|
/* @__PURE__ */ a(se, { children: [
|
|
11323
|
-
/* @__PURE__ */ e(
|
|
11324
|
-
/* @__PURE__ */ e(
|
|
11323
|
+
/* @__PURE__ */ e(j, { value: "normal", className: "text-xs", children: "Normal" }),
|
|
11324
|
+
/* @__PURE__ */ e(j, { value: "bold", className: "text-xs", children: "Bold" })
|
|
11325
11325
|
] })
|
|
11326
11326
|
]
|
|
11327
11327
|
}
|
|
@@ -11339,8 +11339,8 @@ function hf() {
|
|
|
11339
11339
|
children: [
|
|
11340
11340
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(ne, {}) }),
|
|
11341
11341
|
/* @__PURE__ */ a(se, { children: [
|
|
11342
|
-
/* @__PURE__ */ e(
|
|
11343
|
-
/* @__PURE__ */ e(
|
|
11342
|
+
/* @__PURE__ */ e(j, { value: "auto", className: "text-xs", children: "Auto (Smart Contrast)" }),
|
|
11343
|
+
/* @__PURE__ */ e(j, { value: "custom", disabled: !0, className: "text-xs", children: "Custom (Coming Soon)" })
|
|
11344
11344
|
] })
|
|
11345
11345
|
]
|
|
11346
11346
|
}
|
|
@@ -11494,7 +11494,7 @@ function ff() {
|
|
|
11494
11494
|
}),
|
|
11495
11495
|
children: [
|
|
11496
11496
|
/* @__PURE__ */ e(ae, { id: "calculation-type", className: "h-7 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
11497
|
-
/* @__PURE__ */ e(se, { children: Object.entries(ci).map(([I, k]) => /* @__PURE__ */ e(
|
|
11497
|
+
/* @__PURE__ */ e(se, { children: Object.entries(ci).map(([I, k]) => /* @__PURE__ */ e(j, { value: I, className: "text-xs", children: k.label }, I)) })
|
|
11498
11498
|
]
|
|
11499
11499
|
}
|
|
11500
11500
|
)
|
|
@@ -11522,9 +11522,9 @@ function ff() {
|
|
|
11522
11522
|
children: [
|
|
11523
11523
|
/* @__PURE__ */ e(ae, { className: "h-7 w-20 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
11524
11524
|
/* @__PURE__ */ a(se, { children: [
|
|
11525
|
-
/* @__PURE__ */ e(
|
|
11526
|
-
/* @__PURE__ */ e(
|
|
11527
|
-
/* @__PURE__ */ e(
|
|
11525
|
+
/* @__PURE__ */ e(j, { value: "right", className: "text-xs", children: "Right" }),
|
|
11526
|
+
/* @__PURE__ */ e(j, { value: "left", className: "text-xs", children: "Left" }),
|
|
11527
|
+
/* @__PURE__ */ e(j, { value: "top", className: "text-xs", children: "Top" })
|
|
11528
11528
|
] })
|
|
11529
11529
|
]
|
|
11530
11530
|
}
|
|
@@ -11943,7 +11943,7 @@ function bf() {
|
|
|
11943
11943
|
),
|
|
11944
11944
|
children: [
|
|
11945
11945
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
11946
|
-
/* @__PURE__ */ e(se, { children: ["top", "bottom", "left", "right"].map((p) => /* @__PURE__ */ e(
|
|
11946
|
+
/* @__PURE__ */ e(se, { children: ["top", "bottom", "left", "right"].map((p) => /* @__PURE__ */ e(j, { value: p, className: "text-xs", children: p[0].toUpperCase() + p.slice(1) }, p)) })
|
|
11947
11947
|
]
|
|
11948
11948
|
}
|
|
11949
11949
|
)
|
|
@@ -11994,12 +11994,12 @@ function vf() {
|
|
|
11994
11994
|
})) || [];
|
|
11995
11995
|
}, [(F = n == null ? void 0 : n.config) == null ? void 0 : F.metricColumns]);
|
|
11996
11996
|
Se(() => {
|
|
11997
|
-
var
|
|
11997
|
+
var q, H;
|
|
11998
11998
|
if (!t || g.length === 0)
|
|
11999
11999
|
return;
|
|
12000
12000
|
const b = {};
|
|
12001
12001
|
let S = !1;
|
|
12002
|
-
const A = (
|
|
12002
|
+
const A = (q = g[1]) == null ? void 0 : q.value;
|
|
12003
12003
|
!i.targetMetricKey && A && (b.targetMetricKey = A, S = !0);
|
|
12004
12004
|
const B = (H = g[2]) == null ? void 0 : H.value;
|
|
12005
12005
|
!i.comparativeMetricKey && !i.disableAutoComparative && B && (b.comparativeMetricKey = B, S = !0);
|
|
@@ -12113,8 +12113,8 @@ function vf() {
|
|
|
12113
12113
|
children: [
|
|
12114
12114
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
12115
12115
|
/* @__PURE__ */ a(se, { children: [
|
|
12116
|
-
/* @__PURE__ */ e(
|
|
12117
|
-
/* @__PURE__ */ e(
|
|
12116
|
+
/* @__PURE__ */ e(j, { value: "horizontal", className: "text-xs", children: "Horizontal" }),
|
|
12117
|
+
/* @__PURE__ */ e(j, { value: "vertical", className: "text-xs", children: "Vertical" })
|
|
12118
12118
|
] })
|
|
12119
12119
|
]
|
|
12120
12120
|
}
|
|
@@ -12132,9 +12132,9 @@ function vf() {
|
|
|
12132
12132
|
children: [
|
|
12133
12133
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select metric" }) }),
|
|
12134
12134
|
/* @__PURE__ */ a(se, { children: [
|
|
12135
|
-
/* @__PURE__ */ e(
|
|
12135
|
+
/* @__PURE__ */ e(j, { value: "__none", className: "text-xs", children: "None" }),
|
|
12136
12136
|
g.map((b) => /* @__PURE__ */ e(
|
|
12137
|
-
|
|
12137
|
+
j,
|
|
12138
12138
|
{
|
|
12139
12139
|
value: b.value,
|
|
12140
12140
|
className: "text-xs",
|
|
@@ -12160,7 +12160,7 @@ function vf() {
|
|
|
12160
12160
|
children: [
|
|
12161
12161
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select metric" }) }),
|
|
12162
12162
|
/* @__PURE__ */ e(se, { children: x.map((b) => /* @__PURE__ */ e(
|
|
12163
|
-
|
|
12163
|
+
j,
|
|
12164
12164
|
{
|
|
12165
12165
|
value: b.value,
|
|
12166
12166
|
className: "text-xs",
|
|
@@ -12276,7 +12276,7 @@ function vf() {
|
|
|
12276
12276
|
children: [
|
|
12277
12277
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select column" }) }),
|
|
12278
12278
|
/* @__PURE__ */ e(se, { children: R.map((P) => /* @__PURE__ */ e(
|
|
12279
|
-
|
|
12279
|
+
j,
|
|
12280
12280
|
{
|
|
12281
12281
|
value: P.value,
|
|
12282
12282
|
className: "text-xs",
|
|
@@ -12403,7 +12403,7 @@ function yf() {
|
|
|
12403
12403
|
};
|
|
12404
12404
|
return !l && !c ? null : /* @__PURE__ */ a(lt, { value: "bubble-scatter-config", children: [
|
|
12405
12405
|
/* @__PURE__ */ e(it, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
12406
|
-
/* @__PURE__ */ e(l ? mu :
|
|
12406
|
+
/* @__PURE__ */ e(l ? mu : qi, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
12407
12407
|
/* @__PURE__ */ a("span", { children: [
|
|
12408
12408
|
l ? "Bubble" : "Scatter",
|
|
12409
12409
|
" Configuration"
|
|
@@ -12427,7 +12427,7 @@ function yf() {
|
|
|
12427
12427
|
onValueChange: (A) => E({ labelKey: A }),
|
|
12428
12428
|
children: [
|
|
12429
12429
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select label column" }) }),
|
|
12430
|
-
/* @__PURE__ */ e(se, { children: p.map((A) => /* @__PURE__ */ e(
|
|
12430
|
+
/* @__PURE__ */ e(se, { children: p.map((A) => /* @__PURE__ */ e(j, { value: A.value, children: A.label }, A.value)) })
|
|
12431
12431
|
]
|
|
12432
12432
|
}
|
|
12433
12433
|
) : /* @__PURE__ */ e(
|
|
@@ -12460,7 +12460,7 @@ function yf() {
|
|
|
12460
12460
|
onValueChange: (A) => E({ groupKey: A }),
|
|
12461
12461
|
children: [
|
|
12462
12462
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select group column" }) }),
|
|
12463
|
-
/* @__PURE__ */ e(se, { children: p.map((A) => /* @__PURE__ */ e(
|
|
12463
|
+
/* @__PURE__ */ e(se, { children: p.map((A) => /* @__PURE__ */ e(j, { value: A.value, children: A.label }, A.value)) })
|
|
12464
12464
|
]
|
|
12465
12465
|
}
|
|
12466
12466
|
) : /* @__PURE__ */ e(
|
|
@@ -12485,7 +12485,7 @@ function yf() {
|
|
|
12485
12485
|
onValueChange: (A) => E({ xMetricKey: A }),
|
|
12486
12486
|
children: [
|
|
12487
12487
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select X metric" }) }),
|
|
12488
|
-
/* @__PURE__ */ e(se, { children: v.map((A) => /* @__PURE__ */ e(
|
|
12488
|
+
/* @__PURE__ */ e(se, { children: v.map((A) => /* @__PURE__ */ e(j, { value: A.value, children: A.label }, A.value)) })
|
|
12489
12489
|
]
|
|
12490
12490
|
}
|
|
12491
12491
|
) : /* @__PURE__ */ e(
|
|
@@ -12507,7 +12507,7 @@ function yf() {
|
|
|
12507
12507
|
onValueChange: (A) => E({ yMetricKey: A }),
|
|
12508
12508
|
children: [
|
|
12509
12509
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select Y metric" }) }),
|
|
12510
|
-
/* @__PURE__ */ e(se, { children: v.map((A) => /* @__PURE__ */ e(
|
|
12510
|
+
/* @__PURE__ */ e(se, { children: v.map((A) => /* @__PURE__ */ e(j, { value: A.value, children: A.label }, A.value)) })
|
|
12511
12511
|
]
|
|
12512
12512
|
}
|
|
12513
12513
|
) : /* @__PURE__ */ e(
|
|
@@ -12529,7 +12529,7 @@ function yf() {
|
|
|
12529
12529
|
onValueChange: (A) => E({ radiusMetricKey: A }),
|
|
12530
12530
|
children: [
|
|
12531
12531
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select radius metric" }) }),
|
|
12532
|
-
/* @__PURE__ */ e(se, { children: v.map((A) => /* @__PURE__ */ e(
|
|
12532
|
+
/* @__PURE__ */ e(se, { children: v.map((A) => /* @__PURE__ */ e(j, { value: A.value, children: A.label }, A.value)) })
|
|
12533
12533
|
]
|
|
12534
12534
|
}
|
|
12535
12535
|
) : /* @__PURE__ */ e(
|
|
@@ -12555,9 +12555,9 @@ function yf() {
|
|
|
12555
12555
|
children: [
|
|
12556
12556
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
12557
12557
|
/* @__PURE__ */ a(se, { children: [
|
|
12558
|
-
/* @__PURE__ */ e(
|
|
12559
|
-
/* @__PURE__ */ e(
|
|
12560
|
-
/* @__PURE__ */ e(
|
|
12558
|
+
/* @__PURE__ */ e(j, { value: "sqrt", children: "Square Root (area-proportional)" }),
|
|
12559
|
+
/* @__PURE__ */ e(j, { value: "linear", children: "Linear" }),
|
|
12560
|
+
/* @__PURE__ */ e(j, { value: "fixed", children: "Fixed Size" })
|
|
12561
12561
|
] })
|
|
12562
12562
|
]
|
|
12563
12563
|
}
|
|
@@ -12638,7 +12638,7 @@ function yf() {
|
|
|
12638
12638
|
size: "sm",
|
|
12639
12639
|
checked: ((x = (O = t == null ? void 0 : t.xAxisConfig) == null ? void 0 : O.name) == null ? void 0 : x.enabled) ?? !1,
|
|
12640
12640
|
onCheckedChange: (A) => {
|
|
12641
|
-
var z, P,
|
|
12641
|
+
var z, P, q, H;
|
|
12642
12642
|
const B = o.xMetricKey || "X Axis", _ = o.yMetricKey || "Y Axis";
|
|
12643
12643
|
w({
|
|
12644
12644
|
...t ?? {},
|
|
@@ -12653,7 +12653,7 @@ function yf() {
|
|
|
12653
12653
|
...t == null ? void 0 : t.yAxisConfig,
|
|
12654
12654
|
name: {
|
|
12655
12655
|
enabled: A,
|
|
12656
|
-
text: ((H = (
|
|
12656
|
+
text: ((H = (q = t == null ? void 0 : t.yAxisConfig) == null ? void 0 : q.name) == null ? void 0 : H.text) || _
|
|
12657
12657
|
}
|
|
12658
12658
|
}
|
|
12659
12659
|
});
|
|
@@ -12921,7 +12921,7 @@ function Fs({
|
|
|
12921
12921
|
onValueChange: (N) => o("position", N),
|
|
12922
12922
|
children: [
|
|
12923
12923
|
/* @__PURE__ */ e(ae, { className: "h-7 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
12924
|
-
/* @__PURE__ */ e(se, { children: l.map((N) => /* @__PURE__ */ e(
|
|
12924
|
+
/* @__PURE__ */ e(se, { children: l.map((N) => /* @__PURE__ */ e(j, { value: N, className: "text-xs", children: N === "auto" ? v() : N === "custom" ? "Custom (Advanced)" : Rt(N) }, N)) })
|
|
12925
12925
|
]
|
|
12926
12926
|
}
|
|
12927
12927
|
)
|
|
@@ -12936,7 +12936,7 @@ function Fs({
|
|
|
12936
12936
|
onValueChange: (N) => o("anchor", N),
|
|
12937
12937
|
children: [
|
|
12938
12938
|
/* @__PURE__ */ e(ae, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
12939
|
-
/* @__PURE__ */ e(se, { children: Tf.map((N) => /* @__PURE__ */ e(
|
|
12939
|
+
/* @__PURE__ */ e(se, { children: Tf.map((N) => /* @__PURE__ */ e(j, { value: N, className: "text-xs", children: Rt(N) }, N)) })
|
|
12940
12940
|
]
|
|
12941
12941
|
}
|
|
12942
12942
|
)
|
|
@@ -12950,7 +12950,7 @@ function Fs({
|
|
|
12950
12950
|
onValueChange: (N) => o("align", N),
|
|
12951
12951
|
children: [
|
|
12952
12952
|
/* @__PURE__ */ e(ae, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
12953
|
-
/* @__PURE__ */ e(se, { children: kf.map((N) => /* @__PURE__ */ e(
|
|
12953
|
+
/* @__PURE__ */ e(se, { children: kf.map((N) => /* @__PURE__ */ e(j, { value: N, className: "text-xs", children: Rt(N) }, N)) })
|
|
12954
12954
|
]
|
|
12955
12955
|
}
|
|
12956
12956
|
)
|
|
@@ -12965,7 +12965,7 @@ function Fs({
|
|
|
12965
12965
|
onValueChange: (N) => o("format", N),
|
|
12966
12966
|
children: [
|
|
12967
12967
|
/* @__PURE__ */ e(ae, { className: "h-7 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
12968
|
-
/* @__PURE__ */ e(se, { children: c.map((N) => /* @__PURE__ */ e(
|
|
12968
|
+
/* @__PURE__ */ e(se, { children: c.map((N) => /* @__PURE__ */ e(j, { value: N, className: "text-xs", children: N === "auto" && r ? "Auto (Use Axis)" : N === "none" ? "None (Raw Value)" : Rt(N) }, N)) })
|
|
12969
12969
|
]
|
|
12970
12970
|
}
|
|
12971
12971
|
)
|
|
@@ -12996,7 +12996,7 @@ function Fs({
|
|
|
12996
12996
|
children: [
|
|
12997
12997
|
/* @__PURE__ */ e(ae, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
12998
12998
|
/* @__PURE__ */ e(se, { children: wf.map((N) => /* @__PURE__ */ e(
|
|
12999
|
-
|
|
12999
|
+
j,
|
|
13000
13000
|
{
|
|
13001
13001
|
value: N.value,
|
|
13002
13002
|
className: "text-xs",
|
|
@@ -13029,7 +13029,7 @@ function Fs({
|
|
|
13029
13029
|
children: [
|
|
13030
13030
|
/* @__PURE__ */ e(ae, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13031
13031
|
/* @__PURE__ */ e(se, { children: Sf.map((N) => /* @__PURE__ */ e(
|
|
13032
|
-
|
|
13032
|
+
j,
|
|
13033
13033
|
{
|
|
13034
13034
|
value: N.value,
|
|
13035
13035
|
className: "text-xs",
|
|
@@ -13068,8 +13068,8 @@ function Fs({
|
|
|
13068
13068
|
children: [
|
|
13069
13069
|
/* @__PURE__ */ e(ae, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13070
13070
|
/* @__PURE__ */ a(se, { children: [
|
|
13071
|
-
/* @__PURE__ */ e(
|
|
13072
|
-
/* @__PURE__ */ e(
|
|
13071
|
+
/* @__PURE__ */ e(j, { value: "normal", className: "text-xs", children: "Normal" }),
|
|
13072
|
+
/* @__PURE__ */ e(j, { value: "bold", className: "text-xs", children: "Bold" })
|
|
13073
13073
|
] })
|
|
13074
13074
|
]
|
|
13075
13075
|
}
|
|
@@ -13087,8 +13087,8 @@ function Fs({
|
|
|
13087
13087
|
children: [
|
|
13088
13088
|
/* @__PURE__ */ e(ae, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13089
13089
|
/* @__PURE__ */ a(se, { children: [
|
|
13090
|
-
/* @__PURE__ */ e(
|
|
13091
|
-
/* @__PURE__ */ e(
|
|
13090
|
+
/* @__PURE__ */ e(j, { value: "auto", className: "text-xs", children: "Auto (Contrast)" }),
|
|
13091
|
+
/* @__PURE__ */ e(j, { value: "custom", disabled: !0, className: "text-xs", children: "Custom" })
|
|
13092
13092
|
] })
|
|
13093
13093
|
]
|
|
13094
13094
|
}
|
|
@@ -13273,8 +13273,8 @@ function Mf({ metricKey: t, idx: n }) {
|
|
|
13273
13273
|
children: [
|
|
13274
13274
|
/* @__PURE__ */ e(ae, { className: "h-8 w-20 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13275
13275
|
/* @__PURE__ */ a(se, { children: [
|
|
13276
|
-
/* @__PURE__ */ e(
|
|
13277
|
-
/* @__PURE__ */ e(
|
|
13276
|
+
/* @__PURE__ */ e(j, { value: "y", className: "text-xs", children: "Y1 (Left)" }),
|
|
13277
|
+
/* @__PURE__ */ e(j, { value: "y2", className: "text-xs", children: "Y2 (Right)" })
|
|
13278
13278
|
] })
|
|
13279
13279
|
]
|
|
13280
13280
|
}
|
|
@@ -13294,7 +13294,7 @@ function Mf({ metricKey: t, idx: n }) {
|
|
|
13294
13294
|
children: [
|
|
13295
13295
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13296
13296
|
/* @__PURE__ */ e(se, { children: Af.map(({ value: E, label: V }) => /* @__PURE__ */ e(
|
|
13297
|
-
|
|
13297
|
+
j,
|
|
13298
13298
|
{
|
|
13299
13299
|
value: E,
|
|
13300
13300
|
className: "text-xs",
|
|
@@ -13316,7 +13316,7 @@ function Mf({ metricKey: t, idx: n }) {
|
|
|
13316
13316
|
children: [
|
|
13317
13317
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13318
13318
|
/* @__PURE__ */ e(se, { children: Df.map((E) => /* @__PURE__ */ e(
|
|
13319
|
-
|
|
13319
|
+
j,
|
|
13320
13320
|
{
|
|
13321
13321
|
value: String(E),
|
|
13322
13322
|
className: "text-xs",
|
|
@@ -13338,7 +13338,7 @@ function Mf({ metricKey: t, idx: n }) {
|
|
|
13338
13338
|
children: [
|
|
13339
13339
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13340
13340
|
/* @__PURE__ */ e(se, { children: Ef.map(({ value: E, label: V }) => /* @__PURE__ */ e(
|
|
13341
|
-
|
|
13341
|
+
j,
|
|
13342
13342
|
{
|
|
13343
13343
|
value: E,
|
|
13344
13344
|
className: "text-xs",
|
|
@@ -13510,7 +13510,7 @@ function _f({ metricKey: t, idx: n }) {
|
|
|
13510
13510
|
children: [
|
|
13511
13511
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13512
13512
|
/* @__PURE__ */ e(se, { children: tr.map((g) => /* @__PURE__ */ e(
|
|
13513
|
-
|
|
13513
|
+
j,
|
|
13514
13514
|
{
|
|
13515
13515
|
value: g.value,
|
|
13516
13516
|
className: "text-xs",
|
|
@@ -13535,7 +13535,7 @@ function _f({ metricKey: t, idx: n }) {
|
|
|
13535
13535
|
children: [
|
|
13536
13536
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13537
13537
|
/* @__PURE__ */ e(se, { children: Pf.map(({ value: g, label: w }) => /* @__PURE__ */ e(
|
|
13538
|
-
|
|
13538
|
+
j,
|
|
13539
13539
|
{
|
|
13540
13540
|
value: g,
|
|
13541
13541
|
className: "text-xs",
|
|
@@ -13557,7 +13557,7 @@ function _f({ metricKey: t, idx: n }) {
|
|
|
13557
13557
|
children: [
|
|
13558
13558
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13559
13559
|
/* @__PURE__ */ e(se, { children: Rf.map((g) => /* @__PURE__ */ e(
|
|
13560
|
-
|
|
13560
|
+
j,
|
|
13561
13561
|
{
|
|
13562
13562
|
value: String(g),
|
|
13563
13563
|
className: "text-xs",
|
|
@@ -13579,7 +13579,7 @@ function _f({ metricKey: t, idx: n }) {
|
|
|
13579
13579
|
children: [
|
|
13580
13580
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13581
13581
|
/* @__PURE__ */ e(se, { children: Lf.map(({ value: g, label: w }) => /* @__PURE__ */ e(
|
|
13582
|
-
|
|
13582
|
+
j,
|
|
13583
13583
|
{
|
|
13584
13584
|
value: g,
|
|
13585
13585
|
className: "text-xs",
|
|
@@ -13619,7 +13619,7 @@ function _f({ metricKey: t, idx: n }) {
|
|
|
13619
13619
|
] }) }) })
|
|
13620
13620
|
] }) });
|
|
13621
13621
|
}
|
|
13622
|
-
const $f = [0, 1, 2, 3, 4, 5, 6, 8, 10],
|
|
13622
|
+
const $f = [0, 1, 2, 3, 4, 5, 6, 8, 10], qf = [
|
|
13623
13623
|
{ value: "circle", label: "Circle ●" },
|
|
13624
13624
|
{ value: "rect", label: "Square ■" },
|
|
13625
13625
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -13636,7 +13636,7 @@ const $f = [0, 1, 2, 3, 4, 5, 6, 8, 10], jf = [
|
|
|
13636
13636
|
{ value: "dotted", label: "Dotted ···" },
|
|
13637
13637
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
13638
13638
|
];
|
|
13639
|
-
function
|
|
13639
|
+
function jf() {
|
|
13640
13640
|
return M((n) => {
|
|
13641
13641
|
var s;
|
|
13642
13642
|
return (s = n.card) == null ? void 0 : s.type;
|
|
@@ -13742,7 +13742,7 @@ function Gf({ metricKey: t, idx: n }) {
|
|
|
13742
13742
|
children: [
|
|
13743
13743
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13744
13744
|
/* @__PURE__ */ e(se, { children: ar.map(({ value: w, label: E }) => /* @__PURE__ */ e(
|
|
13745
|
-
|
|
13745
|
+
j,
|
|
13746
13746
|
{
|
|
13747
13747
|
value: w,
|
|
13748
13748
|
className: "text-xs",
|
|
@@ -13764,7 +13764,7 @@ function Gf({ metricKey: t, idx: n }) {
|
|
|
13764
13764
|
children: [
|
|
13765
13765
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13766
13766
|
/* @__PURE__ */ e(se, { children: $f.map((w) => /* @__PURE__ */ e(
|
|
13767
|
-
|
|
13767
|
+
j,
|
|
13768
13768
|
{
|
|
13769
13769
|
value: String(w),
|
|
13770
13770
|
className: "text-xs",
|
|
@@ -13785,8 +13785,8 @@ function Gf({ metricKey: t, idx: n }) {
|
|
|
13785
13785
|
onValueChange: (w) => u({ pointStyle: w }),
|
|
13786
13786
|
children: [
|
|
13787
13787
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13788
|
-
/* @__PURE__ */ e(se, { children:
|
|
13789
|
-
|
|
13788
|
+
/* @__PURE__ */ e(se, { children: qf.map(({ value: w, label: E }) => /* @__PURE__ */ e(
|
|
13789
|
+
j,
|
|
13790
13790
|
{
|
|
13791
13791
|
value: w,
|
|
13792
13792
|
className: "text-xs",
|
|
@@ -13936,7 +13936,7 @@ function Qf({ metricKey: t, idx: n }) {
|
|
|
13936
13936
|
children: [
|
|
13937
13937
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
13938
13938
|
/* @__PURE__ */ e(se, { children: Uf.map((C) => /* @__PURE__ */ e(
|
|
13939
|
-
|
|
13939
|
+
j,
|
|
13940
13940
|
{
|
|
13941
13941
|
value: String(C),
|
|
13942
13942
|
className: "text-xs",
|
|
@@ -14025,7 +14025,7 @@ function Zf() {
|
|
|
14025
14025
|
onValueChange: (c) => l("lineStyle", c),
|
|
14026
14026
|
children: [
|
|
14027
14027
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
14028
|
-
/* @__PURE__ */ e(se, { children: Xf.map(({ value: c, label: o }) => /* @__PURE__ */ e(
|
|
14028
|
+
/* @__PURE__ */ e(se, { children: Xf.map(({ value: c, label: o }) => /* @__PURE__ */ e(j, { value: c, className: "text-xs", children: o }, c)) })
|
|
14029
14029
|
]
|
|
14030
14030
|
}
|
|
14031
14031
|
)
|
|
@@ -14040,7 +14040,7 @@ function Zf() {
|
|
|
14040
14040
|
children: [
|
|
14041
14041
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
14042
14042
|
/* @__PURE__ */ e(se, { children: Jf.map((c) => /* @__PURE__ */ e(
|
|
14043
|
-
|
|
14043
|
+
j,
|
|
14044
14044
|
{
|
|
14045
14045
|
value: String(c),
|
|
14046
14046
|
className: "text-xs",
|
|
@@ -14061,7 +14061,7 @@ function Zf() {
|
|
|
14061
14061
|
onValueChange: (c) => l("pointStyle", c),
|
|
14062
14062
|
children: [
|
|
14063
14063
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
14064
|
-
/* @__PURE__ */ e(se, { children: Yf.map(({ value: c, label: o }) => /* @__PURE__ */ e(
|
|
14064
|
+
/* @__PURE__ */ e(se, { children: Yf.map(({ value: c, label: o }) => /* @__PURE__ */ e(j, { value: c, className: "text-xs", children: o }, c)) })
|
|
14065
14065
|
]
|
|
14066
14066
|
}
|
|
14067
14067
|
)
|
|
@@ -14118,7 +14118,7 @@ function ng() {
|
|
|
14118
14118
|
children: [
|
|
14119
14119
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
14120
14120
|
/* @__PURE__ */ e(se, { children: eg.map((c) => /* @__PURE__ */ e(
|
|
14121
|
-
|
|
14121
|
+
j,
|
|
14122
14122
|
{
|
|
14123
14123
|
value: String(c),
|
|
14124
14124
|
className: "text-xs",
|
|
@@ -14139,7 +14139,7 @@ function ng() {
|
|
|
14139
14139
|
onValueChange: (c) => l("barPercentage", Number(c)),
|
|
14140
14140
|
children: [
|
|
14141
14141
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
14142
|
-
/* @__PURE__ */ e(se, { children: tg.map(({ value: c, label: o }) => /* @__PURE__ */ e(
|
|
14142
|
+
/* @__PURE__ */ e(se, { children: tg.map(({ value: c, label: o }) => /* @__PURE__ */ e(j, { value: c, className: "text-xs", children: o }, c)) })
|
|
14143
14143
|
]
|
|
14144
14144
|
}
|
|
14145
14145
|
)
|
|
@@ -14153,7 +14153,7 @@ function ng() {
|
|
|
14153
14153
|
onValueChange: (c) => l("categoryPercentage", Number(c)),
|
|
14154
14154
|
children: [
|
|
14155
14155
|
/* @__PURE__ */ e(ae, { className: "h-8 text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
14156
|
-
/* @__PURE__ */ e(se, { children: ag.map(({ value: c, label: o }) => /* @__PURE__ */ e(
|
|
14156
|
+
/* @__PURE__ */ e(se, { children: ag.map(({ value: c, label: o }) => /* @__PURE__ */ e(j, { value: c, className: "text-xs", children: o }, c)) })
|
|
14157
14157
|
]
|
|
14158
14158
|
}
|
|
14159
14159
|
)
|
|
@@ -14452,7 +14452,7 @@ function Vo({ mode: t }) {
|
|
|
14452
14452
|
return /* @__PURE__ */ a(De, { children: [
|
|
14453
14453
|
n === "combo" && /* @__PURE__ */ e(Of, {}),
|
|
14454
14454
|
(n === "area" || n === "stackedArea") && /* @__PURE__ */ e(Bf, {}),
|
|
14455
|
-
n === "line" && /* @__PURE__ */ e(
|
|
14455
|
+
n === "line" && /* @__PURE__ */ e(jf, {}),
|
|
14456
14456
|
(n === "bar" || n === "horizontalBar" || n === "stackedBar") && /* @__PURE__ */ e(Hf, {}),
|
|
14457
14457
|
/* @__PURE__ */ e(Zf, {}),
|
|
14458
14458
|
/* @__PURE__ */ e(ng, {}),
|
|
@@ -14492,7 +14492,7 @@ function mg({
|
|
|
14492
14492
|
function i() {
|
|
14493
14493
|
switch (r) {
|
|
14494
14494
|
case "kpi":
|
|
14495
|
-
return /* @__PURE__ */ e(
|
|
14495
|
+
return /* @__PURE__ */ e(jp, {});
|
|
14496
14496
|
case "table":
|
|
14497
14497
|
case "detailTable":
|
|
14498
14498
|
case "aggregateTable":
|
|
@@ -14634,7 +14634,7 @@ function pg(t) {
|
|
|
14634
14634
|
errorMessage: O,
|
|
14635
14635
|
refetch: x,
|
|
14636
14636
|
data: R
|
|
14637
|
-
} = bt(V), { setTriggerAIRun: D, setCurrentAssitantScope: F, setCardConfig: L } = we(), { selectedDatamodelName: b, connectionType: S, selectedDatamodelId: A } = xu(), B = (fe = wi().data) == null ? void 0 : fe.assistantProfileId, _ = Ee(Wn()), z = Ee(null), P = Ee(c),
|
|
14637
|
+
} = bt(V), { setTriggerAIRun: D, setCurrentAssitantScope: F, setCardConfig: L } = we(), { selectedDatamodelName: b, connectionType: S, selectedDatamodelId: A } = xu(), B = (fe = wi().data) == null ? void 0 : fe.assistantProfileId, _ = Ee(Wn()), z = Ee(null), P = Ee(c), q = Ee(!1), H = () => {
|
|
14638
14638
|
const G = z.current;
|
|
14639
14639
|
G && (z.current = null, _.current = Wn(), G === "clear" && Q([]));
|
|
14640
14640
|
}, {
|
|
@@ -14679,7 +14679,7 @@ function pg(t) {
|
|
|
14679
14679
|
}),
|
|
14680
14680
|
onError: (G) => {
|
|
14681
14681
|
var J;
|
|
14682
|
-
if (
|
|
14682
|
+
if (q.current = !1, G.name === "AbortError" || (J = G.message) != null && J.includes("aborted")) {
|
|
14683
14683
|
console.log("[Editor Assistant] Stream aborted (expected)"), H();
|
|
14684
14684
|
return;
|
|
14685
14685
|
}
|
|
@@ -14687,37 +14687,37 @@ function pg(t) {
|
|
|
14687
14687
|
},
|
|
14688
14688
|
onToolCall: Oe,
|
|
14689
14689
|
onFinish({ isAbort: G, isDisconnect: J, isError: he }) {
|
|
14690
|
-
|
|
14690
|
+
q.current = !1, s(""), console.log(G ? "[Editor Assistant] Stream aborted by user" : J ? "[Editor Assistant] Stream disconnected (network error)" : he ? "[Editor Assistant] Stream error occurred" : "[Editor Assistant] Stream completed successfully"), H();
|
|
14691
14691
|
}
|
|
14692
14692
|
}), et = Ie(
|
|
14693
14693
|
(G) => {
|
|
14694
|
-
|
|
14694
|
+
q.current = !0;
|
|
14695
14695
|
try {
|
|
14696
14696
|
const J = ue(G);
|
|
14697
14697
|
return Ll(J) ? J.catch((he) => {
|
|
14698
|
-
throw
|
|
14698
|
+
throw q.current = !1, he;
|
|
14699
14699
|
}) : J;
|
|
14700
14700
|
} catch (J) {
|
|
14701
|
-
throw
|
|
14701
|
+
throw q.current = !1, J;
|
|
14702
14702
|
}
|
|
14703
14703
|
},
|
|
14704
14704
|
[ue]
|
|
14705
14705
|
), Je = Ie(() => {
|
|
14706
|
-
|
|
14706
|
+
q.current = !0;
|
|
14707
14707
|
try {
|
|
14708
14708
|
const G = de();
|
|
14709
14709
|
return Ll(G) ? G.catch((J) => {
|
|
14710
|
-
throw
|
|
14710
|
+
throw q.current = !1, J;
|
|
14711
14711
|
}) : G;
|
|
14712
14712
|
} catch (G) {
|
|
14713
|
-
throw
|
|
14713
|
+
throw q.current = !1, G;
|
|
14714
14714
|
}
|
|
14715
14715
|
}, [de]), ie = (G) => {
|
|
14716
14716
|
let J = !1;
|
|
14717
14717
|
Q((he) => {
|
|
14718
14718
|
const ke = typeof G == "function" ? G(he) : G;
|
|
14719
14719
|
if (ke.length === 0) {
|
|
14720
|
-
if (
|
|
14720
|
+
if (q.current)
|
|
14721
14721
|
return z.current = "clear", J = !0, he;
|
|
14722
14722
|
z.current = null, _.current = Wn();
|
|
14723
14723
|
}
|
|
@@ -14726,7 +14726,7 @@ function pg(t) {
|
|
|
14726
14726
|
};
|
|
14727
14727
|
Se(() => {
|
|
14728
14728
|
if (P.current !== c) {
|
|
14729
|
-
if (P.current = c,
|
|
14729
|
+
if (P.current = c, q.current) {
|
|
14730
14730
|
z.current !== "clear" && (z.current = "rotate"), xe();
|
|
14731
14731
|
return;
|
|
14732
14732
|
}
|
|
@@ -14739,9 +14739,9 @@ function pg(t) {
|
|
|
14739
14739
|
}), D(!1));
|
|
14740
14740
|
}, [E, w, et, D]);
|
|
14741
14741
|
async function Oe({ toolCall: G }) {
|
|
14742
|
-
var J, he, ke, Ne,
|
|
14742
|
+
var J, he, ke, Ne, je, Ue, pe, Ke, Ye, ze, _e, Nt, Ot, ge, Qe, gt;
|
|
14743
14743
|
if (["createChartFromSql", "createForecast"].includes(G.toolName)) {
|
|
14744
|
-
const Be = ((J = G.input) == null ? void 0 : J.sql) ?? ((he = G.args) == null ? void 0 : he.sql), zt = ((ke = G.input) == null ? void 0 : ke.python) ?? ((Ne = G.args) == null ? void 0 : Ne.python), We = ((
|
|
14744
|
+
const Be = ((J = G.input) == null ? void 0 : J.sql) ?? ((he = G.args) == null ? void 0 : he.sql), zt = ((ke = G.input) == null ? void 0 : ke.python) ?? ((Ne = G.args) == null ? void 0 : Ne.python), We = ((je = G.input) == null ? void 0 : je.chartType) ?? ((Ue = G.args) == null ? void 0 : Ue.chartType);
|
|
14745
14745
|
f(We), p(Be), v(zt), u(!0), me({
|
|
14746
14746
|
tool: G.toolName,
|
|
14747
14747
|
toolCallId: G.toolCallId,
|
|
@@ -14919,7 +14919,7 @@ function hi({
|
|
|
14919
14919
|
setMessages: _,
|
|
14920
14920
|
sendMessage: z,
|
|
14921
14921
|
isLoading: P,
|
|
14922
|
-
stop:
|
|
14922
|
+
stop: q,
|
|
14923
14923
|
status: H,
|
|
14924
14924
|
llmUsage: Y,
|
|
14925
14925
|
errorMessage: Q,
|
|
@@ -15020,7 +15020,7 @@ function hi({
|
|
|
15020
15020
|
} catch (Qe) {
|
|
15021
15021
|
console.error("Failed to copy conversation", Qe), st.error("Unable to copy conversation");
|
|
15022
15022
|
}
|
|
15023
|
-
}, [B]),
|
|
15023
|
+
}, [B]), je = Ie(() => {
|
|
15024
15024
|
he(!C);
|
|
15025
15025
|
}, [C, he]);
|
|
15026
15026
|
function Ue(ge, Qe) {
|
|
@@ -15134,7 +15134,7 @@ function hi({
|
|
|
15134
15134
|
{
|
|
15135
15135
|
tooltip: C ? "Exit Fullscreen" : "Expand",
|
|
15136
15136
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
15137
|
-
onClick:
|
|
15137
|
+
onClick: je,
|
|
15138
15138
|
children: C ? /* @__PURE__ */ e(Du, { className: "size-4" }) : /* @__PURE__ */ e(Eu, { className: "size-4" })
|
|
15139
15139
|
}
|
|
15140
15140
|
),
|
|
@@ -15259,7 +15259,7 @@ function hi({
|
|
|
15259
15259
|
{
|
|
15260
15260
|
ref: r,
|
|
15261
15261
|
setInput: ue,
|
|
15262
|
-
stop:
|
|
15262
|
+
stop: q,
|
|
15263
15263
|
input: oe,
|
|
15264
15264
|
handleInputChange: Ce,
|
|
15265
15265
|
handleSubmit: (ge) => {
|
|
@@ -15747,10 +15747,10 @@ function Cg() {
|
|
|
15747
15747
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(ne, { placeholder: "Select position" }) }),
|
|
15748
15748
|
/* @__PURE__ */ e(se, { children: /* @__PURE__ */ a(Pn, { children: [
|
|
15749
15749
|
/* @__PURE__ */ e(cs, { children: "Data Labels" }),
|
|
15750
|
-
/* @__PURE__ */ e(
|
|
15751
|
-
!["pyramid", "funnel"].includes(t) && /* @__PURE__ */ e(
|
|
15752
|
-
/* @__PURE__ */ e(
|
|
15753
|
-
!["pyramid", "funnel"].includes(t) && /* @__PURE__ */ e(
|
|
15750
|
+
/* @__PURE__ */ e(j, { value: "none", children: "None" }),
|
|
15751
|
+
!["pyramid", "funnel"].includes(t) && /* @__PURE__ */ e(j, { value: "start", children: "Start" }),
|
|
15752
|
+
/* @__PURE__ */ e(j, { value: "center", children: "Center" }),
|
|
15753
|
+
!["pyramid", "funnel"].includes(t) && /* @__PURE__ */ e(j, { value: "end", children: "End" })
|
|
15754
15754
|
] }) })
|
|
15755
15755
|
]
|
|
15756
15756
|
}
|
|
@@ -15768,10 +15768,10 @@ function Cg() {
|
|
|
15768
15768
|
children: [
|
|
15769
15769
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select position" }) }),
|
|
15770
15770
|
/* @__PURE__ */ e(se, { children: /* @__PURE__ */ a(Pn, { children: [
|
|
15771
|
-
/* @__PURE__ */ e(
|
|
15772
|
-
!["pyramid", "funnel"].includes(t) && /* @__PURE__ */ e(
|
|
15773
|
-
/* @__PURE__ */ e(
|
|
15774
|
-
!["pyramid", "funnel"].includes(t) && /* @__PURE__ */ e(
|
|
15771
|
+
/* @__PURE__ */ e(j, { className: "text-xs", value: "none", children: "None" }),
|
|
15772
|
+
!["pyramid", "funnel"].includes(t) && /* @__PURE__ */ e(j, { className: "text-xs", value: "start", children: "Start" }),
|
|
15773
|
+
/* @__PURE__ */ e(j, { className: "text-xs", value: "center", children: "Center" }),
|
|
15774
|
+
!["pyramid", "funnel"].includes(t) && /* @__PURE__ */ e(j, { className: "text-xs", value: "end", children: "End" })
|
|
15775
15775
|
] }) })
|
|
15776
15776
|
]
|
|
15777
15777
|
}
|
|
@@ -16210,7 +16210,7 @@ function Dg({
|
|
|
16210
16210
|
handleMetricWindowTransformChange: _,
|
|
16211
16211
|
handleMetricWindowOrderByChange: z,
|
|
16212
16212
|
handleMetricWindowDirectionChange: P,
|
|
16213
|
-
handleMetricWindowPartitionToggle:
|
|
16213
|
+
handleMetricWindowPartitionToggle: q,
|
|
16214
16214
|
handleMetricMovingAverageWindowSizeChange: H,
|
|
16215
16215
|
handleMetricMovingAverageMinPeriodsChange: Y,
|
|
16216
16216
|
handleMetricPreviousPeriodDeltaModeChange: Q,
|
|
@@ -16245,14 +16245,14 @@ function Dg({
|
|
|
16245
16245
|
Ve.dataType
|
|
16246
16246
|
), [G, J] = K(
|
|
16247
16247
|
t.dateFormat || "YYYY-MM-DD"
|
|
16248
|
-
), [he, ke] = K(t.customFormat || ""), [Ne,
|
|
16248
|
+
), [he, ke] = K(t.customFormat || ""), [Ne, je] = K(!!t.customFormat), Ue = Ee(null), [pe, Ke] = K(
|
|
16249
16249
|
t.aliasTemplate || ""
|
|
16250
16250
|
), [Ye, ze] = K(
|
|
16251
16251
|
t.valueAliases || {}
|
|
16252
16252
|
), [_e, Nt] = K((Wr = t.parameters) == null ? void 0 : Wr.filters), Ot = (U) => {
|
|
16253
|
-
U === "custom" ?
|
|
16253
|
+
U === "custom" ? je(!0) : (je(!1), J(U), (n === "groupBy" || jn) && D(s, U, "", n));
|
|
16254
16254
|
}, ge = (U) => {
|
|
16255
|
-
ke(U), (n === "groupBy" ||
|
|
16255
|
+
ke(U), (n === "groupBy" || jn) && D(s, "custom", U, n);
|
|
16256
16256
|
}, Qe = (U) => {
|
|
16257
16257
|
var ve;
|
|
16258
16258
|
const Te = (ve = Vs(U)[0]) == null ? void 0 : ve.value;
|
|
@@ -16263,11 +16263,11 @@ function Dg({
|
|
|
16263
16263
|
ze(U), n === "metrics" && b(s, U);
|
|
16264
16264
|
}, zt = (U) => {
|
|
16265
16265
|
x(n, s, U);
|
|
16266
|
-
}, We = $u(t), $n = eo(t), xa =
|
|
16266
|
+
}, We = $u(t), $n = eo(t), xa = qu(t), on = t.role === "metric" && xa, _t = xa && (We === "user_calculated" || We === "inline_expression" && t.fieldScope !== "domain"), Et = _t ? ah({
|
|
16267
16267
|
field: t,
|
|
16268
16268
|
sheetFields: (f == null ? void 0 : f.calculatedFields) || [],
|
|
16269
16269
|
dashboardFields: N
|
|
16270
|
-
}) : void 0, cn = _t && (Et == null ? void 0 : Et.scope) === "sheet", ba = _t && (Et == null ? void 0 : Et.scope) === "dashboard", Va = We === "domain_calculated" || t.fieldScope === "domain", dn = Va ?
|
|
16270
|
+
}) : void 0, cn = _t && (Et == null ? void 0 : Et.scope) === "sheet", ba = _t && (Et == null ? void 0 : Et.scope) === "dashboard", Va = We === "domain_calculated" || t.fieldScope === "domain", dn = Va ? ju(t, T) : void 0, ta = Va ? "domain" : cn ? "sheet" : ba ? "dashboard" : "card", Ba = Va ? dn || t : (cn || ba) && (Et != null && Et.matchedField) ? Et.matchedField : t, un = (U) => {
|
|
16271
16271
|
var ee;
|
|
16272
16272
|
if (Nt(U), n === "metrics") {
|
|
16273
16273
|
const Te = {
|
|
@@ -16284,12 +16284,12 @@ function Dg({
|
|
|
16284
16284
|
He(!1);
|
|
16285
16285
|
}, mn = () => {
|
|
16286
16286
|
A(n, s);
|
|
16287
|
-
},
|
|
16287
|
+
}, qn = {
|
|
16288
16288
|
transform: Cs.Transform.toString(h),
|
|
16289
16289
|
transition: v
|
|
16290
16290
|
}, za = rt(
|
|
16291
16291
|
Ve.dataType || t.dataType
|
|
16292
|
-
), va = za === "date", aa = l === "kpi",
|
|
16292
|
+
), va = za === "date", aa = l === "kpi", jn = n === "detailColumns", hn = (Qr = u.config) == null ? void 0 : Qr.metricColumns, $t = (Jr = u.config) == null ? void 0 : Jr.groupByColumns, pn = Ae(
|
|
16293
16293
|
(U) => {
|
|
16294
16294
|
var ee;
|
|
16295
16295
|
return (ee = U.dashboard) == null ? void 0 : ee.filters;
|
|
@@ -16357,24 +16357,24 @@ function Dg({
|
|
|
16357
16357
|
cardConfig: u.config || {},
|
|
16358
16358
|
metric: be,
|
|
16359
16359
|
transformMode: Xe || "running_total"
|
|
16360
|
-
}),
|
|
16360
|
+
}), qt = !!be.comparisonType && be.comparisonType !== "none", Na = Uu(
|
|
16361
16361
|
$t || []
|
|
16362
|
-
), ct = ((nl = (al = (tl = be.parameters) == null ? void 0 : tl.windowTransform) == null ? void 0 : al.orderBy) == null ? void 0 : nl.fieldId) || "",
|
|
16362
|
+
), ct = ((nl = (al = (tl = be.parameters) == null ? void 0 : tl.windowTransform) == null ? void 0 : al.orderBy) == null ? void 0 : nl.fieldId) || "", qa = ((ll = (rl = (sl = be.parameters) == null ? void 0 : sl.windowTransform) == null ? void 0 : rl.orderBy) == null ? void 0 : ll.direction) || "asc", Hn = Na.find(
|
|
16363
16363
|
(U) => U.id === ct
|
|
16364
16364
|
), gn = Xe === "running_total" || Xe === "moving_average" || Xe === "previous_period_delta", _o = $e && gn && !!Hn && rt(Hn.dataType || "") !== "date", $o = Hu({
|
|
16365
16365
|
cardType: l || "table",
|
|
16366
16366
|
cardConfig: u.config || {},
|
|
16367
16367
|
orderByFieldId: ct || void 0
|
|
16368
|
-
}),
|
|
16368
|
+
}), qo = new Set(
|
|
16369
16369
|
((ol = (il = be.parameters) == null ? void 0 : il.windowTransform) == null ? void 0 : ol.partitionByFieldIds) || $o
|
|
16370
|
-
),
|
|
16370
|
+
), jo = l === "pivotTable" || Wu(
|
|
16371
16371
|
l || "table",
|
|
16372
16372
|
u.config || {}
|
|
16373
|
-
),
|
|
16373
|
+
), jr = [
|
|
16374
16374
|
...($t || []).filter(
|
|
16375
16375
|
(U) => U.id && (!gn || U.id !== ct)
|
|
16376
16376
|
),
|
|
16377
|
-
...
|
|
16377
|
+
...jo ? (((cl = u.config) == null ? void 0 : cl.pivotByColumns) || []).filter((U) => U.id) : []
|
|
16378
16378
|
], Kr = ((ml = (ul = (dl = be.parameters) == null ? void 0 : dl.windowTransform) == null ? void 0 : ul.movingAverage) == null ? void 0 : ml.windowSize) || 7, Ko = ((fl = (pl = (hl = be.parameters) == null ? void 0 : hl.windowTransform) == null ? void 0 : pl.movingAverage) == null ? void 0 : fl.minPeriods) || 1, Go = ((bl = (xl = (gl = be.parameters) == null ? void 0 : gl.windowTransform) == null ? void 0 : xl.previousPeriodDelta) == null ? void 0 : bl.mode) || "absolute", Gr = ((Nl = (yl = (vl = be.parameters) == null ? void 0 : vl.windowTransform) == null ? void 0 : yl.percentOfTotal) == null ? void 0 : Nl.scope) || "grand_total", Uo = ((Sl = (wl = (Cl = be.parameters) == null ? void 0 : Cl.windowTransform) == null ? void 0 : wl.percentOfTotal) == null ? void 0 : Sl.output) || "percent", Ho = ce(
|
|
16379
16379
|
() => (hn || []).some(
|
|
16380
16380
|
(U) => U.comparisonType === "start_vs_end"
|
|
@@ -16384,7 +16384,7 @@ function Dg({
|
|
|
16384
16384
|
Se(() => {
|
|
16385
16385
|
$e && ie(!0);
|
|
16386
16386
|
}, [$e]);
|
|
16387
|
-
const Wo = n !== "pivotBy" && n !== "sortBy", Qo = va && n === "groupBy" && (!aa || Ho), Jo = !aa && va && (n === "groupBy" ||
|
|
16387
|
+
const Wo = n !== "pivotBy" && n !== "sortBy", Qo = va && n === "groupBy" && (!aa || Ho), Jo = !aa && va && (n === "groupBy" || jn), Yo = l === "kpi" && va && n === "groupBy", Xo = n === "metrics", Ur = $a && n === "metrics", Zo = () => {
|
|
16388
16388
|
const U = t, ee = n === "metrics" && on;
|
|
16389
16389
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
16390
16390
|
!ee && /* @__PURE__ */ e(
|
|
@@ -16434,8 +16434,8 @@ function Dg({
|
|
|
16434
16434
|
children: [
|
|
16435
16435
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, {}) }),
|
|
16436
16436
|
/* @__PURE__ */ a(se, { children: [
|
|
16437
|
-
/* @__PURE__ */ e(
|
|
16438
|
-
/* @__PURE__ */ e(
|
|
16437
|
+
/* @__PURE__ */ e(j, { className: "text-xs", value: "asc", children: "Ascending" }),
|
|
16438
|
+
/* @__PURE__ */ e(j, { className: "text-xs", value: "desc", children: "Descending" })
|
|
16439
16439
|
] })
|
|
16440
16440
|
]
|
|
16441
16441
|
}
|
|
@@ -16449,7 +16449,7 @@ function Dg({
|
|
|
16449
16449
|
onValueChange: Qe,
|
|
16450
16450
|
children: [
|
|
16451
16451
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select granularity..." }) }),
|
|
16452
|
-
/* @__PURE__ */ e(se, { children: fe.map((U) => /* @__PURE__ */ e(
|
|
16452
|
+
/* @__PURE__ */ e(se, { children: fe.map((U) => /* @__PURE__ */ e(j, { className: "text-xs", value: U, children: Hl(U) }, U)) })
|
|
16453
16453
|
]
|
|
16454
16454
|
}
|
|
16455
16455
|
)
|
|
@@ -16465,7 +16465,7 @@ function Dg({
|
|
|
16465
16465
|
children: [
|
|
16466
16466
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select date format..." }) }),
|
|
16467
16467
|
/* @__PURE__ */ e(se, { children: _a.map((U) => /* @__PURE__ */ e(
|
|
16468
|
-
|
|
16468
|
+
j,
|
|
16469
16469
|
{
|
|
16470
16470
|
className: "text-xs",
|
|
16471
16471
|
value: U.value,
|
|
@@ -16536,9 +16536,9 @@ function Dg({
|
|
|
16536
16536
|
children: [
|
|
16537
16537
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select granularity..." }) }),
|
|
16538
16538
|
/* @__PURE__ */ a(se, { children: [
|
|
16539
|
-
/* @__PURE__ */ e(
|
|
16540
|
-
/* @__PURE__ */ e(
|
|
16541
|
-
/* @__PURE__ */ e(
|
|
16539
|
+
/* @__PURE__ */ e(j, { value: "day", children: "Day" }),
|
|
16540
|
+
/* @__PURE__ */ e(j, { value: "week", children: "Week" }),
|
|
16541
|
+
/* @__PURE__ */ e(j, { value: "month", children: "Month" })
|
|
16542
16542
|
] })
|
|
16543
16543
|
]
|
|
16544
16544
|
}
|
|
@@ -16579,14 +16579,14 @@ function Dg({
|
|
|
16579
16579
|
children: [
|
|
16580
16580
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select function..." }) }),
|
|
16581
16581
|
/* @__PURE__ */ a(se, { children: [
|
|
16582
|
-
/* @__PURE__ */ e(
|
|
16583
|
-
/* @__PURE__ */ e(
|
|
16582
|
+
/* @__PURE__ */ e(j, { className: "text-xs", value: "COUNT", children: "Count" }),
|
|
16583
|
+
/* @__PURE__ */ e(j, { className: "text-xs", value: "DISTINCT", children: "Count Distinct" }),
|
|
16584
16584
|
rt(t.dataType) === "number" && /* @__PURE__ */ a(De, { children: [
|
|
16585
|
-
/* @__PURE__ */ e(
|
|
16586
|
-
/* @__PURE__ */ e(
|
|
16587
|
-
/* @__PURE__ */ e(
|
|
16588
|
-
/* @__PURE__ */ e(
|
|
16589
|
-
/* @__PURE__ */ e(
|
|
16585
|
+
/* @__PURE__ */ e(j, { className: "text-xs", value: "SUM", children: "Sum" }),
|
|
16586
|
+
/* @__PURE__ */ e(j, { className: "text-xs", value: "AVG", children: "Average" }),
|
|
16587
|
+
/* @__PURE__ */ e(j, { className: "text-xs", value: "MIN", children: "Min" }),
|
|
16588
|
+
/* @__PURE__ */ e(j, { className: "text-xs", value: "MAX", children: "Max" }),
|
|
16589
|
+
/* @__PURE__ */ e(j, { className: "text-xs", value: "MEDIAN", children: "Median" })
|
|
16590
16590
|
] })
|
|
16591
16591
|
] })
|
|
16592
16592
|
]
|
|
@@ -16647,36 +16647,36 @@ function Dg({
|
|
|
16647
16647
|
children: [
|
|
16648
16648
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select transform..." }) }),
|
|
16649
16649
|
/* @__PURE__ */ a(se, { children: [
|
|
16650
|
-
/* @__PURE__ */ e(
|
|
16650
|
+
/* @__PURE__ */ e(j, { value: "none", children: "None" }),
|
|
16651
16651
|
/* @__PURE__ */ e(
|
|
16652
|
-
|
|
16652
|
+
j,
|
|
16653
16653
|
{
|
|
16654
16654
|
value: "running_total",
|
|
16655
|
-
disabled:
|
|
16655
|
+
disabled: qt,
|
|
16656
16656
|
children: "Running Total"
|
|
16657
16657
|
}
|
|
16658
16658
|
),
|
|
16659
16659
|
/* @__PURE__ */ e(
|
|
16660
|
-
|
|
16660
|
+
j,
|
|
16661
16661
|
{
|
|
16662
16662
|
value: "moving_average",
|
|
16663
|
-
disabled:
|
|
16663
|
+
disabled: qt,
|
|
16664
16664
|
children: "Moving Average"
|
|
16665
16665
|
}
|
|
16666
16666
|
),
|
|
16667
16667
|
/* @__PURE__ */ e(
|
|
16668
|
-
|
|
16668
|
+
j,
|
|
16669
16669
|
{
|
|
16670
16670
|
value: "previous_period_delta",
|
|
16671
|
-
disabled:
|
|
16671
|
+
disabled: qt,
|
|
16672
16672
|
children: "Previous Period Delta"
|
|
16673
16673
|
}
|
|
16674
16674
|
),
|
|
16675
16675
|
/* @__PURE__ */ e(
|
|
16676
|
-
|
|
16676
|
+
j,
|
|
16677
16677
|
{
|
|
16678
16678
|
value: "percent_of_total",
|
|
16679
|
-
disabled:
|
|
16679
|
+
disabled: qt,
|
|
16680
16680
|
children: "Percent of Total"
|
|
16681
16681
|
}
|
|
16682
16682
|
)
|
|
@@ -16685,7 +16685,7 @@ function Dg({
|
|
|
16685
16685
|
}
|
|
16686
16686
|
),
|
|
16687
16687
|
!Mt.supported && !$e && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: Mt.reason }),
|
|
16688
|
-
|
|
16688
|
+
qt && !$e && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "Disable comparison to enable metric transforms." })
|
|
16689
16689
|
] }),
|
|
16690
16690
|
$e && /* @__PURE__ */ a(De, { children: [
|
|
16691
16691
|
gn && /* @__PURE__ */ a(De, { children: [
|
|
@@ -16699,7 +16699,7 @@ function Dg({
|
|
|
16699
16699
|
children: [
|
|
16700
16700
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select order field..." }) }),
|
|
16701
16701
|
/* @__PURE__ */ e(se, { children: Na.filter((ee) => !!ee.id).map((ee) => /* @__PURE__ */ e(
|
|
16702
|
-
|
|
16702
|
+
j,
|
|
16703
16703
|
{
|
|
16704
16704
|
value: ee.id,
|
|
16705
16705
|
className: "text-xs",
|
|
@@ -16718,7 +16718,7 @@ function Dg({
|
|
|
16718
16718
|
/* @__PURE__ */ a(
|
|
16719
16719
|
te,
|
|
16720
16720
|
{
|
|
16721
|
-
value:
|
|
16721
|
+
value: qa,
|
|
16722
16722
|
onValueChange: (ee) => P(
|
|
16723
16723
|
s,
|
|
16724
16724
|
ee
|
|
@@ -16727,8 +16727,8 @@ function Dg({
|
|
|
16727
16727
|
children: [
|
|
16728
16728
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select direction..." }) }),
|
|
16729
16729
|
/* @__PURE__ */ a(se, { children: [
|
|
16730
|
-
/* @__PURE__ */ e(
|
|
16731
|
-
/* @__PURE__ */ e(
|
|
16730
|
+
/* @__PURE__ */ e(j, { className: "text-xs", value: "asc", children: "Ascending" }),
|
|
16731
|
+
/* @__PURE__ */ e(j, { className: "text-xs", value: "desc", children: "Descending" })
|
|
16732
16732
|
] })
|
|
16733
16733
|
]
|
|
16734
16734
|
}
|
|
@@ -16779,8 +16779,8 @@ function Dg({
|
|
|
16779
16779
|
children: [
|
|
16780
16780
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select output..." }) }),
|
|
16781
16781
|
/* @__PURE__ */ a(se, { children: [
|
|
16782
|
-
/* @__PURE__ */ e(
|
|
16783
|
-
/* @__PURE__ */ e(
|
|
16782
|
+
/* @__PURE__ */ e(j, { value: "absolute", children: "Absolute Delta" }),
|
|
16783
|
+
/* @__PURE__ */ e(j, { value: "percent", children: "Percent Delta" })
|
|
16784
16784
|
] })
|
|
16785
16785
|
]
|
|
16786
16786
|
}
|
|
@@ -16800,8 +16800,8 @@ function Dg({
|
|
|
16800
16800
|
children: [
|
|
16801
16801
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select scope..." }) }),
|
|
16802
16802
|
/* @__PURE__ */ a(se, { children: [
|
|
16803
|
-
/* @__PURE__ */ e(
|
|
16804
|
-
/* @__PURE__ */ e(
|
|
16803
|
+
/* @__PURE__ */ e(j, { value: "grand_total", children: "Grand Total" }),
|
|
16804
|
+
/* @__PURE__ */ e(j, { value: "partition_total", children: "Partition Total" })
|
|
16805
16805
|
] })
|
|
16806
16806
|
]
|
|
16807
16807
|
}
|
|
@@ -16820,24 +16820,24 @@ function Dg({
|
|
|
16820
16820
|
children: [
|
|
16821
16821
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select output..." }) }),
|
|
16822
16822
|
/* @__PURE__ */ a(se, { children: [
|
|
16823
|
-
/* @__PURE__ */ e(
|
|
16824
|
-
/* @__PURE__ */ e(
|
|
16823
|
+
/* @__PURE__ */ e(j, { value: "percent", children: "Percent" }),
|
|
16824
|
+
/* @__PURE__ */ e(j, { value: "fraction", children: "Fraction" })
|
|
16825
16825
|
] })
|
|
16826
16826
|
]
|
|
16827
16827
|
}
|
|
16828
16828
|
)
|
|
16829
16829
|
] })
|
|
16830
16830
|
] }),
|
|
16831
|
-
(Xe === "running_total" || Xe === "moving_average" || Xe === "previous_period_delta" || Xe === "percent_of_total" && Gr === "partition_total") &&
|
|
16831
|
+
(Xe === "running_total" || Xe === "moving_average" || Xe === "previous_period_delta" || Xe === "percent_of_total" && Gr === "partition_total") && jr.length > 0 && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
16832
16832
|
/* @__PURE__ */ e($, { className: "text-xs font-medium text-muted-foreground", children: "Reset By" }),
|
|
16833
|
-
/* @__PURE__ */ e("div", { className: "space-y-1", children:
|
|
16833
|
+
/* @__PURE__ */ e("div", { className: "space-y-1", children: jr.map(
|
|
16834
16834
|
(ee) => {
|
|
16835
|
-
const Te = !!ee.id &&
|
|
16835
|
+
const Te = !!ee.id && qo.has(ee.id);
|
|
16836
16836
|
return /* @__PURE__ */ a(
|
|
16837
16837
|
"button",
|
|
16838
16838
|
{
|
|
16839
16839
|
type: "button",
|
|
16840
|
-
onClick: () => ee.id &&
|
|
16840
|
+
onClick: () => ee.id && q(
|
|
16841
16841
|
s,
|
|
16842
16842
|
ee.id
|
|
16843
16843
|
),
|
|
@@ -16874,11 +16874,11 @@ function Dg({
|
|
|
16874
16874
|
children: [
|
|
16875
16875
|
/* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select comparison type..." }) }),
|
|
16876
16876
|
/* @__PURE__ */ a(se, { children: [
|
|
16877
|
-
/* @__PURE__ */ e(
|
|
16877
|
+
/* @__PURE__ */ e(j, { value: "none", children: "No Comparison" }),
|
|
16878
16878
|
(() => {
|
|
16879
16879
|
const ee = !X || !Fe, Te = X ? Fe ? void 0 : "Add a date filter to enable" : "Add a date groupBy to enable", ve = (Ge, dt) => /* @__PURE__ */ e(Lt, { children: /* @__PURE__ */ a(St, { children: [
|
|
16880
16880
|
/* @__PURE__ */ e(Tt, { asChild: !0, children: /* @__PURE__ */ e(
|
|
16881
|
-
|
|
16881
|
+
j,
|
|
16882
16882
|
{
|
|
16883
16883
|
value: Ge,
|
|
16884
16884
|
disabled: ee,
|
|
@@ -16897,7 +16897,7 @@ function Dg({
|
|
|
16897
16897
|
ve("start_vs_end", "Start vs End")
|
|
16898
16898
|
] });
|
|
16899
16899
|
})(),
|
|
16900
|
-
Un && /* @__PURE__ */ e(
|
|
16900
|
+
Un && /* @__PURE__ */ e(j, { value: "target", children: "Target" })
|
|
16901
16901
|
] })
|
|
16902
16902
|
]
|
|
16903
16903
|
}
|
|
@@ -17042,7 +17042,7 @@ function Dg({
|
|
|
17042
17042
|
"div",
|
|
17043
17043
|
{
|
|
17044
17044
|
ref: m,
|
|
17045
|
-
style:
|
|
17045
|
+
style: qn,
|
|
17046
17046
|
className: W(
|
|
17047
17047
|
"group flex h-7 w-full items-center gap-1.5 rounded-control border bg-background px-1.5 transition-colors",
|
|
17048
17048
|
Le ? "border-foreground/30 bg-muted/40" : "border-border hover:bg-muted/40",
|
|
@@ -17171,13 +17171,13 @@ function Dg({
|
|
|
17171
17171
|
initialFieldType: "metric",
|
|
17172
17172
|
allowedFieldTypes: ["metric"],
|
|
17173
17173
|
onSave: (U) => {
|
|
17174
|
-
var
|
|
17174
|
+
var ja, jt;
|
|
17175
17175
|
if (U.role !== "metric") return;
|
|
17176
17176
|
const {
|
|
17177
17177
|
card: ee,
|
|
17178
17178
|
frame: Te,
|
|
17179
17179
|
actions: ve
|
|
17180
|
-
} = M.getState(), Ge = ((
|
|
17180
|
+
} = M.getState(), Ge = ((ja = ee.config) == null ? void 0 : ja.metricColumns) || [], dt = ((jt = ee.config) == null ? void 0 : jt.sortByColumns) || [], ht = ta === "dashboard" ? N : Te.calculatedFields || [], {
|
|
17181
17181
|
nextActiveFields: Pt,
|
|
17182
17182
|
nextSortByFields: Vt,
|
|
17183
17183
|
nextStoredFields: Qt,
|
|
@@ -17216,8 +17216,8 @@ function Dg({
|
|
|
17216
17216
|
nextActiveFields: Vt,
|
|
17217
17217
|
nextSortByFields: Qt,
|
|
17218
17218
|
nextStoredFields: na,
|
|
17219
|
-
nextSheetFields:
|
|
17220
|
-
nextDashboardFields:
|
|
17219
|
+
nextSheetFields: ja,
|
|
17220
|
+
nextDashboardFields: jt
|
|
17221
17221
|
} = so({
|
|
17222
17222
|
activeFields: dt,
|
|
17223
17223
|
sortByFields: ht,
|
|
@@ -17236,13 +17236,13 @@ function Dg({
|
|
|
17236
17236
|
previousScope: ta
|
|
17237
17237
|
});
|
|
17238
17238
|
es({
|
|
17239
|
-
nextSharedFields:
|
|
17239
|
+
nextSharedFields: ja,
|
|
17240
17240
|
currentSharedFields: Pt,
|
|
17241
17241
|
isVisualEditing: C,
|
|
17242
17242
|
selectedSheetId: g,
|
|
17243
17243
|
updateFrame: ve.updateFrame,
|
|
17244
17244
|
updateSheetCalculatedFields: w
|
|
17245
|
-
}),
|
|
17245
|
+
}), jt && jt !== N && E(jt), (Vt || Qt) && ve.updateCardConfig(u.id, {
|
|
17246
17246
|
...Vt ? { metricColumns: Vt } : {},
|
|
17247
17247
|
...Qt ? { sortByColumns: Qt } : {}
|
|
17248
17248
|
}), ve.updateCard(u.id, {
|
|
@@ -17260,8 +17260,8 @@ function Dg({
|
|
|
17260
17260
|
nextActiveFields: Vt,
|
|
17261
17261
|
nextSortByFields: Qt,
|
|
17262
17262
|
nextStoredFields: na,
|
|
17263
|
-
nextSharedFields:
|
|
17264
|
-
nextSheetFields:
|
|
17263
|
+
nextSharedFields: ja,
|
|
17264
|
+
nextSheetFields: jt
|
|
17265
17265
|
} = no({
|
|
17266
17266
|
activeFields: dt,
|
|
17267
17267
|
sortByFields: ht,
|
|
@@ -17279,8 +17279,8 @@ function Dg({
|
|
|
17279
17279
|
editingField: Ba,
|
|
17280
17280
|
previousScope: ta
|
|
17281
17281
|
});
|
|
17282
|
-
E(
|
|
17283
|
-
nextSharedFields:
|
|
17282
|
+
E(ja), jt && jt !== Pt && es({
|
|
17283
|
+
nextSharedFields: jt,
|
|
17284
17284
|
currentSharedFields: Pt,
|
|
17285
17285
|
isVisualEditing: C,
|
|
17286
17286
|
selectedSheetId: g,
|
|
@@ -17530,7 +17530,7 @@ function Rg({
|
|
|
17530
17530
|
"aggregateTable",
|
|
17531
17531
|
"bubble",
|
|
17532
17532
|
"scatter"
|
|
17533
|
-
].includes(x), P = b && !z,
|
|
17533
|
+
].includes(x), P = b && !z, q = () => x === "kpi" ? {
|
|
17534
17534
|
label: "Trend By",
|
|
17535
17535
|
placeholder: "Drop trend field here"
|
|
17536
17536
|
} : {
|
|
@@ -17571,8 +17571,8 @@ function Rg({
|
|
|
17571
17571
|
{
|
|
17572
17572
|
zone: "groupBy",
|
|
17573
17573
|
fields: t,
|
|
17574
|
-
label:
|
|
17575
|
-
placeholder:
|
|
17574
|
+
label: q().label,
|
|
17575
|
+
placeholder: q().placeholder,
|
|
17576
17576
|
activeField: i
|
|
17577
17577
|
}
|
|
17578
17578
|
),
|
|
@@ -18382,7 +18382,7 @@ function $r(t) {
|
|
|
18382
18382
|
})
|
|
18383
18383
|
), isPending: p, error: u };
|
|
18384
18384
|
}
|
|
18385
|
-
function
|
|
18385
|
+
function qg({
|
|
18386
18386
|
field: t,
|
|
18387
18387
|
selected: n,
|
|
18388
18388
|
onChange: s,
|
|
@@ -18461,7 +18461,7 @@ function jg({
|
|
|
18461
18461
|
] }) })
|
|
18462
18462
|
] }) });
|
|
18463
18463
|
}
|
|
18464
|
-
function
|
|
18464
|
+
function jg({
|
|
18465
18465
|
field: t,
|
|
18466
18466
|
value: n,
|
|
18467
18467
|
onChange: s,
|
|
@@ -18475,7 +18475,7 @@ function qg({
|
|
|
18475
18475
|
] }) : c ? /* @__PURE__ */ e("div", { className: "flex-1 p-2 text-xs text-red-500", children: "Error loading values" }) : /* @__PURE__ */ a(te, { value: n, onValueChange: s, children: [
|
|
18476
18476
|
/* @__PURE__ */ e(ae, { className: d || "flex-1", children: /* @__PURE__ */ e(ne, { placeholder: r, children: n }) }),
|
|
18477
18477
|
/* @__PURE__ */ e(se, { children: i.map((o, m) => /* @__PURE__ */ e(
|
|
18478
|
-
|
|
18478
|
+
j,
|
|
18479
18479
|
{
|
|
18480
18480
|
className: "hover:bg-muted",
|
|
18481
18481
|
value: o.value,
|
|
@@ -18538,7 +18538,7 @@ function Kg({
|
|
|
18538
18538
|
}
|
|
18539
18539
|
);
|
|
18540
18540
|
}
|
|
18541
|
-
const
|
|
18541
|
+
const qr = [
|
|
18542
18542
|
"contains",
|
|
18543
18543
|
"startsWith",
|
|
18544
18544
|
"endsWith",
|
|
@@ -18551,7 +18551,7 @@ const jr = [
|
|
|
18551
18551
|
">=",
|
|
18552
18552
|
"<",
|
|
18553
18553
|
"<=",
|
|
18554
|
-
...
|
|
18554
|
+
...qr,
|
|
18555
18555
|
"in",
|
|
18556
18556
|
"not in",
|
|
18557
18557
|
"isNull",
|
|
@@ -18559,7 +18559,7 @@ const jr = [
|
|
|
18559
18559
|
], Ug = [
|
|
18560
18560
|
"=",
|
|
18561
18561
|
"!=",
|
|
18562
|
-
...
|
|
18562
|
+
...qr,
|
|
18563
18563
|
"in",
|
|
18564
18564
|
"not in",
|
|
18565
18565
|
"isNull",
|
|
@@ -18670,8 +18670,8 @@ function zo({
|
|
|
18670
18670
|
children: [
|
|
18671
18671
|
/* @__PURE__ */ e(ae, { className: "w-24", children: /* @__PURE__ */ e(ne, {}) }),
|
|
18672
18672
|
/* @__PURE__ */ a(se, { children: [
|
|
18673
|
-
/* @__PURE__ */ e(
|
|
18674
|
-
/* @__PURE__ */ e(
|
|
18673
|
+
/* @__PURE__ */ e(j, { value: "AND", children: "AND" }),
|
|
18674
|
+
/* @__PURE__ */ e(j, { value: "OR", children: "OR" })
|
|
18675
18675
|
] })
|
|
18676
18676
|
]
|
|
18677
18677
|
}
|
|
@@ -18717,7 +18717,7 @@ function zo({
|
|
|
18717
18717
|
children: [
|
|
18718
18718
|
/* @__PURE__ */ e(ae, { className: "w-32", children: /* @__PURE__ */ e(ne, { children: t.operator ? fi(t.operator) : "" }) }),
|
|
18719
18719
|
/* @__PURE__ */ e(se, { children: Yg(rt(t.field.dataType)).map(
|
|
18720
|
-
(E) => /* @__PURE__ */ e(
|
|
18720
|
+
(E) => /* @__PURE__ */ e(j, { className: "hover:bg-muted", value: E, children: fi(E) }, E)
|
|
18721
18721
|
) })
|
|
18722
18722
|
]
|
|
18723
18723
|
}
|
|
@@ -18726,7 +18726,7 @@ function zo({
|
|
|
18726
18726
|
/* @__PURE__ */ e(ha, { className: "mr-2 size-3.5 animate-spin" }),
|
|
18727
18727
|
" Loading values..."
|
|
18728
18728
|
] }) : g ? /* @__PURE__ */ e("div", { className: "flex-1 p-2 text-xs text-red-500", children: "Error loading values" }) : /* @__PURE__ */ e(
|
|
18729
|
-
|
|
18729
|
+
qg,
|
|
18730
18730
|
{
|
|
18731
18731
|
field: t.field,
|
|
18732
18732
|
selected: Array.isArray(t.value) && t.value.every((E) => typeof E == "string") ? t.value : [],
|
|
@@ -18736,7 +18736,7 @@ function zo({
|
|
|
18736
18736
|
placeholder: `Select values for ${t.operator}...`,
|
|
18737
18737
|
className: "flex-1"
|
|
18738
18738
|
}
|
|
18739
|
-
) :
|
|
18739
|
+
) : qr.includes(t.operator) ? /* @__PURE__ */ e(
|
|
18740
18740
|
Me,
|
|
18741
18741
|
{
|
|
18742
18742
|
value: typeof t.value == "string" ? t.value : "",
|
|
@@ -18747,7 +18747,7 @@ function zo({
|
|
|
18747
18747
|
placeholder: t.operator.charAt(0).toUpperCase() + t.operator.slice(1) + "..."
|
|
18748
18748
|
}
|
|
18749
18749
|
) : /* @__PURE__ */ e(
|
|
18750
|
-
|
|
18750
|
+
jg,
|
|
18751
18751
|
{
|
|
18752
18752
|
field: t.field,
|
|
18753
18753
|
value: typeof t.value == "string" ? t.value : "",
|
|
@@ -18765,8 +18765,8 @@ function zo({
|
|
|
18765
18765
|
children: [
|
|
18766
18766
|
/* @__PURE__ */ e(ae, { className: "flex-1", children: /* @__PURE__ */ e(ne, { placeholder: "Select value..." }) }),
|
|
18767
18767
|
/* @__PURE__ */ a(se, { children: [
|
|
18768
|
-
/* @__PURE__ */ e(
|
|
18769
|
-
/* @__PURE__ */ e(
|
|
18768
|
+
/* @__PURE__ */ e(j, { value: "true", children: "True" }),
|
|
18769
|
+
/* @__PURE__ */ e(j, { value: "false", children: "False" })
|
|
18770
18770
|
] })
|
|
18771
18771
|
]
|
|
18772
18772
|
}
|
|
@@ -18888,8 +18888,8 @@ function Xg({
|
|
|
18888
18888
|
children: [
|
|
18889
18889
|
/* @__PURE__ */ e(ae, { className: "h-7 w-20", children: /* @__PURE__ */ e(ne, {}) }),
|
|
18890
18890
|
/* @__PURE__ */ a(se, { children: [
|
|
18891
|
-
/* @__PURE__ */ e(
|
|
18892
|
-
/* @__PURE__ */ e(
|
|
18891
|
+
/* @__PURE__ */ e(j, { className: "hover:bg-muted", value: "AND", children: "AND" }),
|
|
18892
|
+
/* @__PURE__ */ e(j, { className: "hover:bg-muted", value: "OR", children: "OR" })
|
|
18893
18893
|
] })
|
|
18894
18894
|
]
|
|
18895
18895
|
}
|
|
@@ -19584,7 +19584,7 @@ function sx() {
|
|
|
19584
19584
|
/* @__PURE__ */ e(ca, { className: "h-3 w-3", strokeWidth: 1.75 }),
|
|
19585
19585
|
/* @__PURE__ */ e(ne, { placeholder: "Select limit" })
|
|
19586
19586
|
] }),
|
|
19587
|
-
/* @__PURE__ */ e(se, { children: nx.map((h) => /* @__PURE__ */ e(
|
|
19587
|
+
/* @__PURE__ */ e(se, { children: nx.map((h) => /* @__PURE__ */ e(j, { value: h.value, children: h.label }, h.value)) })
|
|
19588
19588
|
]
|
|
19589
19589
|
}
|
|
19590
19590
|
) });
|
|
@@ -19803,7 +19803,7 @@ function ux({
|
|
|
19803
19803
|
data: _,
|
|
19804
19804
|
errorMessage: z,
|
|
19805
19805
|
isLoading: P,
|
|
19806
|
-
isFetching:
|
|
19806
|
+
isFetching: q,
|
|
19807
19807
|
errorSql: H,
|
|
19808
19808
|
pagination: Y,
|
|
19809
19809
|
refetch: Q,
|
|
@@ -19814,12 +19814,12 @@ function ux({
|
|
|
19814
19814
|
() => (_ == null ? void 0 : _.records) || [],
|
|
19815
19815
|
[_ == null ? void 0 : _.records]
|
|
19816
19816
|
), me = ce(
|
|
19817
|
-
() => !
|
|
19818
|
-
[
|
|
19817
|
+
() => !q && Ce.length > 0 ? Object.keys(Ce[0]) : [],
|
|
19818
|
+
[q, Ce]
|
|
19819
19819
|
), [xe, Le] = K(!1);
|
|
19820
19820
|
Se(() => {
|
|
19821
|
-
|
|
19822
|
-
}, [
|
|
19821
|
+
q || Le(!1);
|
|
19822
|
+
}, [q]);
|
|
19823
19823
|
const et = () => {
|
|
19824
19824
|
const ye = !F;
|
|
19825
19825
|
ye && t === "table" && n("chart"), L(ye);
|
|
@@ -19913,7 +19913,7 @@ function ux({
|
|
|
19913
19913
|
{
|
|
19914
19914
|
tooltip: "Refresh",
|
|
19915
19915
|
className: "h-7 w-7 rounded-[5px] p-0",
|
|
19916
|
-
disabled: P ||
|
|
19916
|
+
disabled: P || q,
|
|
19917
19917
|
onClick: () => {
|
|
19918
19918
|
Le(!0), Q();
|
|
19919
19919
|
},
|
|
@@ -20001,7 +20001,7 @@ function ux({
|
|
|
20001
20001
|
card: r,
|
|
20002
20002
|
queryData: _,
|
|
20003
20003
|
isLoading: P,
|
|
20004
|
-
isFetching:
|
|
20004
|
+
isFetching: q,
|
|
20005
20005
|
pagination: Y,
|
|
20006
20006
|
onPaginationChange: Je,
|
|
20007
20007
|
onSortChange: ie,
|
|
@@ -20012,7 +20012,7 @@ function ux({
|
|
|
20012
20012
|
}
|
|
20013
20013
|
) }),
|
|
20014
20014
|
t === "table" && (_ == null ? void 0 : _.records) && /* @__PURE__ */ a("div", { className: "relative flex h-full min-h-0 max-w-full flex-1 grow basis-0 px-4 py-4", children: [
|
|
20015
|
-
(P ||
|
|
20015
|
+
(P || q) && (_ == null ? void 0 : _.records) && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(
|
|
20016
20016
|
Kt,
|
|
20017
20017
|
{
|
|
20018
20018
|
size: "md",
|
|
@@ -20029,7 +20029,7 @@ function ux({
|
|
|
20029
20029
|
comparisonMetadata: de,
|
|
20030
20030
|
paginationMetadata: Y,
|
|
20031
20031
|
onPaginationChange: Je,
|
|
20032
|
-
isLoading: P ||
|
|
20032
|
+
isLoading: P || q,
|
|
20033
20033
|
onSortChange: ie,
|
|
20034
20034
|
sortState: Oe
|
|
20035
20035
|
}
|
|
@@ -20138,9 +20138,9 @@ const hx = () => {
|
|
|
20138
20138
|
};
|
|
20139
20139
|
function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width: d, onWidthChange: i }) {
|
|
20140
20140
|
var _, z, P;
|
|
20141
|
-
const l = M((
|
|
20142
|
-
|
|
20143
|
-
startX:
|
|
20141
|
+
const l = M((q) => q.card), { updateCardConfig: c, removeGroupByColumn: o, removeMetricColumn: m, updateFilters: h } = we(), [v, p] = K(!1), [u, f] = K(!1), C = Ee(null), g = Ie((q) => {
|
|
20142
|
+
q.preventDefault(), q.stopPropagation(), f(!0), C.current = {
|
|
20143
|
+
startX: q.clientX,
|
|
20144
20144
|
startWidth: d || 150
|
|
20145
20145
|
};
|
|
20146
20146
|
const H = (Q) => {
|
|
@@ -20152,9 +20152,9 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
|
|
|
20152
20152
|
};
|
|
20153
20153
|
document.addEventListener("mousemove", H), document.addEventListener("mouseup", Y);
|
|
20154
20154
|
}, [d, t.id, i]), w = (_ = l == null ? void 0 : l.config) == null ? void 0 : _.filters, E = (z = w == null ? void 0 : w.conditions) == null ? void 0 : z.some(
|
|
20155
|
-
(
|
|
20156
|
-
), V = (
|
|
20157
|
-
|
|
20155
|
+
(q) => q.field.name === t.name && q.field.qualifiedEntityName === t.qualifiedEntityName
|
|
20156
|
+
), V = (q) => {
|
|
20157
|
+
q ? h(l.id, q) : c(l.id, { filters: void 0 });
|
|
20158
20158
|
}, {
|
|
20159
20159
|
attributes: N,
|
|
20160
20160
|
listeners: T,
|
|
@@ -20167,14 +20167,14 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
|
|
|
20167
20167
|
transition: y
|
|
20168
20168
|
}, R = rt(t.dataType), D = fx(R), F = () => {
|
|
20169
20169
|
var Y;
|
|
20170
|
-
const
|
|
20170
|
+
const q = ((Y = l == null ? void 0 : l.config) == null ? void 0 : Y.sortByColumns) || [], H = q.findIndex((Q) => Q.name === t.name);
|
|
20171
20171
|
if (H !== -1) {
|
|
20172
|
-
const Q = [...
|
|
20172
|
+
const Q = [...q];
|
|
20173
20173
|
Q[H] = { ...Q[H], direction: "asc" }, c(l.id, { sortByColumns: Q });
|
|
20174
20174
|
} else
|
|
20175
20175
|
c(l.id, {
|
|
20176
20176
|
sortByColumns: [
|
|
20177
|
-
...
|
|
20177
|
+
...q,
|
|
20178
20178
|
{
|
|
20179
20179
|
...t,
|
|
20180
20180
|
id: `sort-${t.id}`,
|
|
@@ -20185,14 +20185,14 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
|
|
|
20185
20185
|
});
|
|
20186
20186
|
}, L = () => {
|
|
20187
20187
|
var Y;
|
|
20188
|
-
const
|
|
20188
|
+
const q = ((Y = l == null ? void 0 : l.config) == null ? void 0 : Y.sortByColumns) || [], H = q.findIndex((Q) => Q.name === t.name);
|
|
20189
20189
|
if (H !== -1) {
|
|
20190
|
-
const Q = [...
|
|
20190
|
+
const Q = [...q];
|
|
20191
20191
|
Q[H] = { ...Q[H], direction: "desc" }, c(l.id, { sortByColumns: Q });
|
|
20192
20192
|
} else
|
|
20193
20193
|
c(l.id, {
|
|
20194
20194
|
sortByColumns: [
|
|
20195
|
-
...
|
|
20195
|
+
...q,
|
|
20196
20196
|
{
|
|
20197
20197
|
...t,
|
|
20198
20198
|
id: `sort-${t.id}`,
|
|
@@ -20203,29 +20203,29 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
|
|
|
20203
20203
|
});
|
|
20204
20204
|
}, b = () => {
|
|
20205
20205
|
var Y;
|
|
20206
|
-
const
|
|
20207
|
-
if (!
|
|
20206
|
+
const q = ((Y = l == null ? void 0 : l.config) == null ? void 0 : Y.groupByColumns) || [];
|
|
20207
|
+
if (!q.some((Q) => Q.name === t.name)) {
|
|
20208
20208
|
const Q = {
|
|
20209
20209
|
...t,
|
|
20210
20210
|
id: `groupby-${t.id}-${Date.now()}`,
|
|
20211
20211
|
role: "groupby"
|
|
20212
20212
|
};
|
|
20213
20213
|
c(l.id, {
|
|
20214
|
-
groupByColumns: [...
|
|
20214
|
+
groupByColumns: [...q, Q]
|
|
20215
20215
|
});
|
|
20216
20216
|
}
|
|
20217
|
-
}, S = (
|
|
20217
|
+
}, S = (q) => {
|
|
20218
20218
|
var Q;
|
|
20219
20219
|
const H = ((Q = l == null ? void 0 : l.config) == null ? void 0 : Q.metricColumns) || [];
|
|
20220
20220
|
if (!H.some(
|
|
20221
|
-
(de) => de.name === t.name && de.aggregate ===
|
|
20221
|
+
(de) => de.name === t.name && de.aggregate === q
|
|
20222
20222
|
)) {
|
|
20223
20223
|
const de = {
|
|
20224
20224
|
...t,
|
|
20225
|
-
id: `metric-${t.id}-${
|
|
20226
|
-
label: `${
|
|
20225
|
+
id: `metric-${t.id}-${q}-${Date.now()}`,
|
|
20226
|
+
label: `${q} of ${t.label || t.name}`,
|
|
20227
20227
|
role: "metric",
|
|
20228
|
-
aggregate:
|
|
20228
|
+
aggregate: q
|
|
20229
20229
|
};
|
|
20230
20230
|
c(l.id, {
|
|
20231
20231
|
metricColumns: [...H, de]
|
|
@@ -20359,7 +20359,7 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
|
|
|
20359
20359
|
availableFields: r.length > 0 ? r : [t],
|
|
20360
20360
|
existingFilters: w,
|
|
20361
20361
|
editingCondition: E ? (P = w == null ? void 0 : w.conditions) == null ? void 0 : P.find(
|
|
20362
|
-
(
|
|
20362
|
+
(q) => q.field.name === t.name && q.field.qualifiedEntityName === t.qualifiedEntityName
|
|
20363
20363
|
) : void 0,
|
|
20364
20364
|
onSave: V
|
|
20365
20365
|
}
|
|
@@ -21093,22 +21093,22 @@ function Cx() {
|
|
|
21093
21093
|
sourceFields: T,
|
|
21094
21094
|
getFieldsForContainer: O,
|
|
21095
21095
|
setFieldsForContainer: x
|
|
21096
|
-
}), L = (P,
|
|
21097
|
-
|
|
21096
|
+
}), L = (P, q) => {
|
|
21097
|
+
q && V(P, q);
|
|
21098
21098
|
}, b = (P) => {
|
|
21099
|
-
var
|
|
21099
|
+
var q;
|
|
21100
21100
|
w(P, {
|
|
21101
21101
|
config: {
|
|
21102
|
-
...(
|
|
21102
|
+
...(q = u.cards.find((H) => H.id === P)) == null ? void 0 : q.config,
|
|
21103
21103
|
filters: void 0
|
|
21104
21104
|
}
|
|
21105
21105
|
});
|
|
21106
21106
|
}, S = I, A = (P) => {
|
|
21107
21107
|
if (!P) return 0;
|
|
21108
|
-
let
|
|
21108
|
+
let q = P.conditions.length;
|
|
21109
21109
|
return P.groups.forEach((H) => {
|
|
21110
|
-
|
|
21111
|
-
}),
|
|
21110
|
+
q += A(H);
|
|
21111
|
+
}), q;
|
|
21112
21112
|
}, B = A(((_ = y == null ? void 0 : y.config) == null ? void 0 : _.filters) || null);
|
|
21113
21113
|
return /* @__PURE__ */ a(
|
|
21114
21114
|
Oa,
|