react-semaphor 0.1.210 → 0.1.211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{dashboard-controls-C08300Wi.js → dashboard-controls-7KpXzAWL.js} +592 -585
- package/dist/chunks/dashboard-controls-CnDq9Uh_.js +42 -0
- package/dist/chunks/{dashboard-json-GjDBGO26.js → dashboard-json-dqey5VK0.js} +1 -1
- package/dist/chunks/{dashboard-json-DlEE5-WA.js → dashboard-json-stWvjp2O.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-THx-gjnG.js → dashboard-summary-settings-dialog-DPEe6XBC.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-QUuhhXU9.js → dashboard-summary-settings-dialog-DuxhidK1.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-Bsmow1Pa.js → edit-dashboard-visual-CQAk_UsI.js} +483 -484
- package/dist/chunks/{edit-dashboard-visual-PfWJXb2-.js → edit-dashboard-visual-D_XPr8f8.js} +2 -2
- package/dist/chunks/{editor-action-buttons-FPyaC09X.js → editor-action-buttons-CH7W6KdH.js} +1 -1
- package/dist/chunks/{editor-action-buttons-DNbp_ZWy.js → editor-action-buttons-D34_GSZu.js} +27 -27
- package/dist/chunks/{index-CAVrkf9d.js → index-BDS2sWhv.js} +27718 -27508
- package/dist/chunks/index-BfiIPyeS.js +1109 -0
- package/dist/chunks/{notification-bell-C3a7wC1u.js → notification-bell-Cu3qDd9V.js} +251 -285
- package/dist/chunks/notification-bell-hijGST9g.js +6 -0
- package/dist/chunks/{resource-management-panel-BVTgbma8.js → resource-management-panel-BvHqslqC.js} +73 -73
- package/dist/chunks/{resource-management-panel-C5NjrVsA.js → resource-management-panel-gK3a6OEj.js} +1 -1
- package/dist/chunks/{use-role-aware-display-preferences-l7NFLYnn.js → use-role-aware-display-preferences-BlR29aKQ.js} +1 -1
- package/dist/chunks/{use-role-aware-display-preferences-DxCPoCgr.js → use-role-aware-display-preferences-a5FH9Y0k.js} +1 -1
- package/dist/chunks/{use-visual-utils-B82Q-Ytl.js → use-visual-utils-B11AA2fd.js} +1 -1
- package/dist/chunks/{use-visual-utils-D9IJz9R0.js → use-visual-utils-ptPsQ3nC.js} +23 -23
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +251 -216
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/main.d.ts +49 -0
- package/package.json +1 -1
- package/dist/chunks/dashboard-controls-BAOrAMV9.js +0 -42
- package/dist/chunks/index-CXKjmjfB.js +0 -1104
- package/dist/chunks/notification-bell-BqvKQSw9.js +0 -6
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as fe } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { bS as ke, dv as vr, I as Tt, Y as de, a1 as E, dw as va, dx as Cr, L as P, J as Q, K as X, M as Z, N as ee, O as K, c0 as Ie, B as Y, c7 as dt, dy as $a, dz as Xs, dA as Zs, dB as el, dC as tl, dD as ja, ab as Nt, X as Be, dE as Dn, ch as In, m as Ht, n as Yt, o as Wt, p as Qt, q as xa, c4 as nt, c1 as Xe, bZ as Ze, b_ as Ge, b$ as Ue, dF as Ns, dG as En, u as Se, G as yn, dH as Xt, cm as da, dd as et, dI as al, c as ae, c6 as nl, dJ as wr, dK as Sr, dL as kr, dM as ga, dN as Tr, dO as sl, dP as Ar, cS as ll, dQ as Dr, dR as rl, dS as Ir, dT as On, dU as Er, dV as Et, dW as vt, dX as Mn, U as Or, dY as Mr, bT as ua, bU as Kt, bV as Gt, bW as Ca, bX as bt, bY as _t, dZ as Nn, d_ as zt, d$ as We, e0 as $t, H as Zt, e1 as Fr, e2 as Ra, e3 as La, e4 as Pa, e5 as Fn, dq as ea, e6 as wa, e7 as Rr, R as Sa, e8 as Rn, e9 as ma, cn as Ln, ea as il, r as Ot, cN as Lr, eb as yt, ec as At, ed as Pr, ee as Dt, e as Pn, cK as Vn, Z as ol, ef as Bn, eg as Vr, eh as cl, ei as dl, ej as xt, dl as nn, ek as Br, el as zr, em as $r, en as ul, am as ml, eo as hl, ep as jr, eq as qr, er as Kr, es as qa, et as Gr, eu as Ur, ev as vs, ew as _r, a2 as Ka, a9 as zn, ex as Jr, ey as $n, cU as Hr, ac as tt, ez as Yr, eA as Wr, d7 as jn, d8 as qn, d9 as Vt, da as Oa, eB as Qr, dm as Xr, eC as pl, eD as Zr, eE as ei, cD as Ga, cB as Qe, eF as ti, eG as ai, eH as Cs, eI as ni, P as ut, s as mt, t as ht, c8 as Kn, c9 as Gn, cb as Un, cV as fl, cg as Ut, eJ as Ct, eK as jt, eL as qt, eM as Mt, eN as ta, eO as si, aH as li, eP as ri, eQ as ii, eR as oi, eS as ci, cJ as Jt, eT as di, eU as gl, eV as ui, eW as mi, l as ka, eX as hi, eY as xl, eZ as pi, e_ as fi, e$ as gi, f0 as xi, f1 as bi, f2 as yi, f3 as vn, f4 as Ni, f5 as vi, f6 as Ci, f7 as Cn, f8 as ws, f9 as wi, fa as Si, fb as ki, fc as Ti, fd as Ai, fe as bl, ff as _n, Q as Oe, fg as ba, fh as Va, fi as Di, fj as aa, fk as Te, fl as Ae, fm as De, fn as Ii, fo as Ei, fp as Oi, fq as Mi, fr as wt, fs as Ia, ft as Ss, fu as Fi, dr as yl, S as Ee, fv as Ri, fw as Li, fx as Pi, v as na, w as sa, x as la, y as ra, z as ia, A as oa, fy as Vi, fz as Bi, fA as ks, fB as zi, E as ha, fC as $i, fD as sn, fE as Ts, fF as it, fG as ji, fH as qi, fI as Ki, fJ as Gi, fK as Ta, fL as Ui, fM as ln, fN as Nl, fO as _i, fP as Ji, fQ as Hi, fR as Ba, fS as Yi, fT as Wi, fU as Bt, fV as Jn, fW as Hn, fX as vl, fY as Qi, cA as Cl, fZ as Xi, f_ as Ua, du as Zi, f$ as Le, g0 as As, bK as eo, bG as to, g1 as ao, g2 as no, g3 as so, g4 as lo, g5 as ro, bd as Ds, g6 as Is, g7 as io, g8 as oo, g9 as wl, ga as co, gb as Sl, gc as uo, gd as mo, ge as ho, gf as po, gg as fo, gh as go, gi as xo, gj as bo, gk as yo, gl as No, gm as kl, gn as vo, go as Co, gp as wo, gq as So, gr as ko, gs as To, gt as Ao, gu as Tl, ca as Do, gv as Io, gw as Eo, gx as Oo, gy as Mo, gz as Fo, gA as Al, gB as Ro, c$ as Dl, gC as _a, gD as Il, gE as El, b2 as Ea, gF as Ja, gG as Lo, gH as Ol, gI as Es, cF as Po, gJ as Os, gK as Vo, gL as Bo, gM as zo, gN as Ma, gO as $o, gP as Yn, gQ as Fa, gR as jo, gS as qo, gT as za, gU as Ko, C as Go, gV as Uo, gW as ya, gX as St, gY as wn, gZ as Sn, g_ as Na, g$ as Ml, h0 as ca, ak as _o, h1 as Jo, h2 as rn, h3 as Ho, h4 as on, h5 as Yo, h6 as Ms, h7 as Wo, h8 as Qo, h9 as Xo, ha as Zo, cc as rt, hb as ec, hc as tc, hd as ac, he as Ha, cj as Ya, hf as Fs, hg as Fl, dg as cn, hh as nc, hi as sc, hj as lc, a3 as rc } from "./index-BDS2sWhv.js";
|
|
3
3
|
import * as kn from "react";
|
|
4
|
-
import Tn, { useState as _, useRef as at, useEffect as be, useCallback as Ke, useMemo as ie, useContext as Wn, Suspense as
|
|
5
|
-
import { C as
|
|
6
|
-
import { createPortal as
|
|
4
|
+
import Tn, { useState as _, useRef as at, useEffect as be, useCallback as Ke, useMemo as ie, useContext as Wn, Suspense as ic } from "react";
|
|
5
|
+
import { C as oc, e as Qn, u as st, V as cc } from "./editor-action-buttons-D34_GSZu.js";
|
|
6
|
+
import { createPortal as dc } from "react-dom";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.453.0 - ISC
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the ISC license.
|
|
11
11
|
* See the LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
13
|
+
const uc = ke("ArrowDownAZ", [
|
|
14
14
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
15
15
|
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
16
16
|
["path", { d: "M20 8h-5", key: "1vsyxs" }],
|
|
@@ -23,7 +23,7 @@ const dc = ke("ArrowDownAZ", [
|
|
|
23
23
|
* This source code is licensed under the ISC license.
|
|
24
24
|
* See the LICENSE file in the root directory of this source tree.
|
|
25
25
|
*/
|
|
26
|
-
const
|
|
26
|
+
const mc = ke("ArrowUpAZ", [
|
|
27
27
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
28
28
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
29
29
|
["path", { d: "M20 8h-5", key: "1vsyxs" }],
|
|
@@ -63,7 +63,7 @@ const Ll = ke("Columns3", [
|
|
|
63
63
|
* This source code is licensed under the ISC license.
|
|
64
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
65
65
|
*/
|
|
66
|
-
const
|
|
66
|
+
const hc = ke("Component", [
|
|
67
67
|
[
|
|
68
68
|
"path",
|
|
69
69
|
{
|
|
@@ -111,7 +111,7 @@ const Pl = ke("FileCode2", [
|
|
|
111
111
|
* This source code is licensed under the ISC license.
|
|
112
112
|
* See the LICENSE file in the root directory of this source tree.
|
|
113
113
|
*/
|
|
114
|
-
const
|
|
114
|
+
const pc = ke("FileJson2", [
|
|
115
115
|
["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
|
|
116
116
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
117
117
|
[
|
|
@@ -129,7 +129,7 @@ const hc = ke("FileJson2", [
|
|
|
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
|
|
132
|
+
const fc = ke("Fullscreen", [
|
|
133
133
|
["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
|
|
134
134
|
["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
|
|
135
135
|
["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
|
|
@@ -156,7 +156,7 @@ const Vl = ke("GitCompareArrows", [
|
|
|
156
156
|
* This source code is licensed under the ISC license.
|
|
157
157
|
* See the LICENSE file in the root directory of this source tree.
|
|
158
158
|
*/
|
|
159
|
-
const
|
|
159
|
+
const gc = ke("Hammer", [
|
|
160
160
|
["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
|
|
161
161
|
["path", { d: "m18 15 4-4", key: "16gjal" }],
|
|
162
162
|
[
|
|
@@ -173,7 +173,7 @@ const fc = ke("Hammer", [
|
|
|
173
173
|
* This source code is licensed under the ISC license.
|
|
174
174
|
* See the LICENSE file in the root directory of this source tree.
|
|
175
175
|
*/
|
|
176
|
-
const
|
|
176
|
+
const xc = ke("LayoutList", [
|
|
177
177
|
["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
|
|
178
178
|
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
|
|
179
179
|
["path", { d: "M14 4h7", key: "3xa0d5" }],
|
|
@@ -187,7 +187,7 @@ const gc = ke("LayoutList", [
|
|
|
187
187
|
* This source code is licensed under the ISC license.
|
|
188
188
|
* See the LICENSE file in the root directory of this source tree.
|
|
189
189
|
*/
|
|
190
|
-
const
|
|
190
|
+
const bc = ke("ListEnd", [
|
|
191
191
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
192
192
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
193
193
|
["path", { d: "M10 18H3", key: "13769t" }],
|
|
@@ -200,7 +200,7 @@ const xc = ke("ListEnd", [
|
|
|
200
200
|
* This source code is licensed under the ISC license.
|
|
201
201
|
* See the LICENSE file in the root directory of this source tree.
|
|
202
202
|
*/
|
|
203
|
-
const
|
|
203
|
+
const yc = ke("ListFilter", [
|
|
204
204
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
205
205
|
["path", { d: "M7 12h10", key: "b7w52i" }],
|
|
206
206
|
["path", { d: "M10 18h4", key: "1ulq68" }]
|
|
@@ -211,7 +211,7 @@ const bc = ke("ListFilter", [
|
|
|
211
211
|
* This source code is licensed under the ISC license.
|
|
212
212
|
* See the LICENSE file in the root directory of this source tree.
|
|
213
213
|
*/
|
|
214
|
-
const
|
|
214
|
+
const Nc = ke("ListStart", [
|
|
215
215
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
216
216
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
217
217
|
["path", { d: "M10 6H3", key: "lf8lx7" }],
|
|
@@ -224,7 +224,7 @@ const yc = ke("ListStart", [
|
|
|
224
224
|
* This source code is licensed under the ISC license.
|
|
225
225
|
* See the LICENSE file in the root directory of this source tree.
|
|
226
226
|
*/
|
|
227
|
-
const
|
|
227
|
+
const vc = ke("ListX", [
|
|
228
228
|
["path", { d: "M11 12H3", key: "51ecnj" }],
|
|
229
229
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
230
230
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
@@ -259,7 +259,7 @@ const un = ke("MoveVertical", [
|
|
|
259
259
|
* This source code is licensed under the ISC license.
|
|
260
260
|
* See the LICENSE file in the root directory of this source tree.
|
|
261
261
|
*/
|
|
262
|
-
const
|
|
262
|
+
const Cc = ke("Palette", [
|
|
263
263
|
["circle", { cx: "13.5", cy: "6.5", r: ".5", fill: "currentColor", key: "1okk4w" }],
|
|
264
264
|
["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
|
|
265
265
|
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }],
|
|
@@ -278,7 +278,7 @@ const vc = ke("Palette", [
|
|
|
278
278
|
* This source code is licensed under the ISC license.
|
|
279
279
|
* See the LICENSE file in the root directory of this source tree.
|
|
280
280
|
*/
|
|
281
|
-
const
|
|
281
|
+
const wc = ke("PanelRightClose", [
|
|
282
282
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
283
283
|
["path", { d: "M15 3v18", key: "14nvp0" }],
|
|
284
284
|
["path", { d: "m8 9 3 3-3 3", key: "12hl5m" }]
|
|
@@ -289,7 +289,7 @@ const Cc = ke("PanelRightClose", [
|
|
|
289
289
|
* This source code is licensed under the ISC license.
|
|
290
290
|
* See the LICENSE file in the root directory of this source tree.
|
|
291
291
|
*/
|
|
292
|
-
const
|
|
292
|
+
const Sc = ke("PanelRight", [
|
|
293
293
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
294
294
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
295
295
|
]);
|
|
@@ -320,7 +320,7 @@ const Xn = ke("Rows3", [
|
|
|
320
320
|
* This source code is licensed under the ISC license.
|
|
321
321
|
* See the LICENSE file in the root directory of this source tree.
|
|
322
322
|
*/
|
|
323
|
-
const
|
|
323
|
+
const kc = ke("Shapes", [
|
|
324
324
|
[
|
|
325
325
|
"path",
|
|
326
326
|
{
|
|
@@ -354,7 +354,7 @@ const Bl = ke("SlidersHorizontal", [
|
|
|
354
354
|
* This source code is licensed under the ISC license.
|
|
355
355
|
* See the LICENSE file in the root directory of this source tree.
|
|
356
356
|
*/
|
|
357
|
-
const
|
|
357
|
+
const Tc = ke("Spline", [
|
|
358
358
|
["circle", { cx: "19", cy: "5", r: "2", key: "mhkx31" }],
|
|
359
359
|
["circle", { cx: "5", cy: "19", r: "2", key: "v8kfzx" }],
|
|
360
360
|
["path", { d: "M5 17A12 12 0 0 1 17 5", key: "1okkup" }]
|
|
@@ -365,7 +365,7 @@ const kc = ke("Spline", [
|
|
|
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
|
|
368
|
+
const Ac = ke("SquareFunction", [
|
|
369
369
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
370
370
|
["path", { d: "M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3", key: "m1af9g" }],
|
|
371
371
|
["path", { d: "M9 11.2h5.7", key: "3zgcl2" }]
|
|
@@ -376,7 +376,7 @@ const Tc = ke("SquareFunction", [
|
|
|
376
376
|
* This source code is licensed under the ISC license.
|
|
377
377
|
* See the LICENSE file in the root directory of this source tree.
|
|
378
378
|
*/
|
|
379
|
-
const
|
|
379
|
+
const Dc = ke("SquareSplitVertical", [
|
|
380
380
|
["path", { d: "M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3", key: "1pi83i" }],
|
|
381
381
|
["path", { d: "M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3", key: "ido5k7" }],
|
|
382
382
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
|
|
@@ -387,7 +387,7 @@ const Ac = ke("SquareSplitVertical", [
|
|
|
387
387
|
* This source code is licensed under the ISC license.
|
|
388
388
|
* See the LICENSE file in the root directory of this source tree.
|
|
389
389
|
*/
|
|
390
|
-
const
|
|
390
|
+
const Ic = ke("Tags", [
|
|
391
391
|
["path", { d: "m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19", key: "1cbfv1" }],
|
|
392
392
|
[
|
|
393
393
|
"path",
|
|
@@ -404,7 +404,7 @@ const Dc = ke("Tags", [
|
|
|
404
404
|
* This source code is licensed under the ISC license.
|
|
405
405
|
* See the LICENSE file in the root directory of this source tree.
|
|
406
406
|
*/
|
|
407
|
-
const
|
|
407
|
+
const Ec = ke("Wand", [
|
|
408
408
|
["path", { d: "M15 4V2", key: "z1p9b7" }],
|
|
409
409
|
["path", { d: "M15 16v-2", key: "px0unx" }],
|
|
410
410
|
["path", { d: "M8 9h2", key: "1g203m" }],
|
|
@@ -435,7 +435,7 @@ function zl({
|
|
|
435
435
|
);
|
|
436
436
|
return { value: o, onChange: h };
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function Oc({
|
|
439
439
|
initialJoinPlan: t,
|
|
440
440
|
availableDataSources: s
|
|
441
441
|
}) {
|
|
@@ -732,7 +732,7 @@ ${g.joinType} JOIN ${F.name}
|
|
|
732
732
|
))
|
|
733
733
|
};
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function Mc({
|
|
736
736
|
joinPlan: t,
|
|
737
737
|
availableDataSources: s,
|
|
738
738
|
onSave: n,
|
|
@@ -763,7 +763,7 @@ function Oc({
|
|
|
763
763
|
removeJoinKey: A,
|
|
764
764
|
generateSQLPreview: g,
|
|
765
765
|
isValidConfiguration: F
|
|
766
|
-
} =
|
|
766
|
+
} = Oc({
|
|
767
767
|
initialJoinPlan: t,
|
|
768
768
|
availableDataSources: s
|
|
769
769
|
}), b = (D) => {
|
|
@@ -1345,7 +1345,7 @@ function $l({
|
|
|
1345
1345
|
/* @__PURE__ */ e(xa, { children: "Configure the join between the two entities to combine the fields." })
|
|
1346
1346
|
] }),
|
|
1347
1347
|
/* @__PURE__ */ e(
|
|
1348
|
-
|
|
1348
|
+
Mc,
|
|
1349
1349
|
{
|
|
1350
1350
|
joinPlan: l,
|
|
1351
1351
|
availableDataSources: o,
|
|
@@ -1358,7 +1358,7 @@ function $l({
|
|
|
1358
1358
|
t
|
|
1359
1359
|
] });
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function Fc({
|
|
1362
1362
|
joins: t,
|
|
1363
1363
|
baseEntityId: s,
|
|
1364
1364
|
availableDataSources: n,
|
|
@@ -1518,7 +1518,7 @@ ${k.joinType} JOIN ${A.name}
|
|
|
1518
1518
|
side: "bottom",
|
|
1519
1519
|
className: "ml-4 max-w-md overflow-hidden p-0",
|
|
1520
1520
|
children: /* @__PURE__ */ e(
|
|
1521
|
-
|
|
1521
|
+
Fc,
|
|
1522
1522
|
{
|
|
1523
1523
|
joins: i.joins,
|
|
1524
1524
|
baseEntityId: i.baseEntity.name,
|
|
@@ -1584,7 +1584,7 @@ ${k.joinType} JOIN ${A.name}
|
|
|
1584
1584
|
)
|
|
1585
1585
|
] });
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function Rc({
|
|
1588
1588
|
open: t,
|
|
1589
1589
|
onOpenChange: s
|
|
1590
1590
|
}) {
|
|
@@ -1906,7 +1906,7 @@ function ql({
|
|
|
1906
1906
|
}
|
|
1907
1907
|
),
|
|
1908
1908
|
/* @__PURE__ */ e(
|
|
1909
|
-
|
|
1909
|
+
Rc,
|
|
1910
1910
|
{
|
|
1911
1911
|
open: o,
|
|
1912
1912
|
onOpenChange: c
|
|
@@ -1916,7 +1916,7 @@ function ql({
|
|
|
1916
1916
|
}
|
|
1917
1917
|
);
|
|
1918
1918
|
}
|
|
1919
|
-
function
|
|
1919
|
+
function Lc(t) {
|
|
1920
1920
|
return Ar({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z" }, child: [] }] })(t);
|
|
1921
1921
|
}
|
|
1922
1922
|
function Kl(t) {
|
|
@@ -1980,8 +1980,8 @@ function Kl(t) {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
return { handleEditorDidMount: N };
|
|
1982
1982
|
}
|
|
1983
|
-
const
|
|
1984
|
-
function
|
|
1983
|
+
const Pc = 300;
|
|
1984
|
+
function Vc() {
|
|
1985
1985
|
const t = E((f) => f.card.sql), s = E((f) => f.sqlGen), { setCardSql: n, setSqlGen: l } = de(), { handleEditorDidMount: o } = Kl("sql"), c = at(s);
|
|
1986
1986
|
c.current = s;
|
|
1987
1987
|
const i = Ke(
|
|
@@ -1993,7 +1993,7 @@ function Pc() {
|
|
|
1993
1993
|
storeValue: t,
|
|
1994
1994
|
defaultValue: "",
|
|
1995
1995
|
onStoreUpdate: i,
|
|
1996
|
-
delay:
|
|
1996
|
+
delay: Pc
|
|
1997
1997
|
});
|
|
1998
1998
|
function h(f) {
|
|
1999
1999
|
r(f), Er(c.current) || l({});
|
|
@@ -2025,13 +2025,13 @@ function Pc() {
|
|
|
2025
2025
|
)
|
|
2026
2026
|
] });
|
|
2027
2027
|
}
|
|
2028
|
-
const
|
|
2029
|
-
function
|
|
2028
|
+
const Bc = 300;
|
|
2029
|
+
function zc() {
|
|
2030
2030
|
const t = E((c) => c.card.python), { setCardPython: s } = de(), { handleEditorDidMount: n } = Kl("python"), { value: l, onChange: o } = zl({
|
|
2031
2031
|
storeValue: t,
|
|
2032
2032
|
defaultValue: rl,
|
|
2033
2033
|
onStoreUpdate: s,
|
|
2034
|
-
delay:
|
|
2034
|
+
delay: Bc
|
|
2035
2035
|
});
|
|
2036
2036
|
return /* @__PURE__ */ e(
|
|
2037
2037
|
On,
|
|
@@ -2099,7 +2099,7 @@ function Gl({
|
|
|
2099
2099
|
size: "sm",
|
|
2100
2100
|
className: "h-6 w-6 p-0",
|
|
2101
2101
|
onClick: () => o(!1),
|
|
2102
|
-
children: /* @__PURE__ */ e(
|
|
2102
|
+
children: /* @__PURE__ */ e(oc, { className: "h-4 w-4" })
|
|
2103
2103
|
}
|
|
2104
2104
|
)
|
|
2105
2105
|
] }),
|
|
@@ -2140,7 +2140,7 @@ function Gl({
|
|
|
2140
2140
|
] }) }) })
|
|
2141
2141
|
] });
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2143
|
+
function $c() {
|
|
2144
2144
|
var me, ge;
|
|
2145
2145
|
const t = Or(), { isConsoleMode: s } = nl(), [n, l] = _(!1), o = E((W) => W.frame), c = E((W) => W.card);
|
|
2146
2146
|
E((W) => W.isShowingVisual), E(
|
|
@@ -2278,7 +2278,7 @@ function zc() {
|
|
|
2278
2278
|
{
|
|
2279
2279
|
id: "sql-container",
|
|
2280
2280
|
className: "relative flex w-[99%]",
|
|
2281
|
-
children: /* @__PURE__ */ e(
|
|
2281
|
+
children: /* @__PURE__ */ e(Vc, {})
|
|
2282
2282
|
}
|
|
2283
2283
|
),
|
|
2284
2284
|
n && /* @__PURE__ */ e("code", { className: "absolute right-6 top-3 text-xs text-muted-foreground/70", children: "sql" })
|
|
@@ -2300,7 +2300,7 @@ function zc() {
|
|
|
2300
2300
|
{
|
|
2301
2301
|
id: "python-container",
|
|
2302
2302
|
className: "relative flex w-[99%] pt-0",
|
|
2303
|
-
children: /* @__PURE__ */ e(
|
|
2303
|
+
children: /* @__PURE__ */ e(zc, {})
|
|
2304
2304
|
}
|
|
2305
2305
|
),
|
|
2306
2306
|
/* @__PURE__ */ e("code", { className: "absolute right-6 top-3 text-xs text-muted-foreground/70", children: "python" })
|
|
@@ -2350,7 +2350,7 @@ function zc() {
|
|
|
2350
2350
|
size: "sm",
|
|
2351
2351
|
variant: "outline",
|
|
2352
2352
|
children: [
|
|
2353
|
-
/* @__PURE__ */ e(
|
|
2353
|
+
/* @__PURE__ */ e(Lc, { className: "mr-2 size-4 text-foreground/70" }),
|
|
2354
2354
|
"Python"
|
|
2355
2355
|
]
|
|
2356
2356
|
}
|
|
@@ -2462,13 +2462,13 @@ function zc() {
|
|
|
2462
2462
|
)
|
|
2463
2463
|
);
|
|
2464
2464
|
}
|
|
2465
|
-
const
|
|
2465
|
+
const jc = [
|
|
2466
2466
|
{ value: "table", label: "Table", icon: Rn },
|
|
2467
2467
|
{ value: "aggregateTable", label: "Aggregate", icon: ma },
|
|
2468
2468
|
{ value: "pivotTable", label: "Pivot", icon: Ln },
|
|
2469
2469
|
{ value: "detailTable", label: "Detail", icon: il }
|
|
2470
2470
|
];
|
|
2471
|
-
function
|
|
2471
|
+
function qc({ className: t }) {
|
|
2472
2472
|
const s = E((u) => u.card), n = E((u) => u.frame), l = st(), { setCard: o, updateCardInFrame: c } = de(), i = [
|
|
2473
2473
|
"table",
|
|
2474
2474
|
"aggregateTable",
|
|
@@ -2570,7 +2570,7 @@ function jc({ className: t }) {
|
|
|
2570
2570
|
value: l,
|
|
2571
2571
|
onValueChange: h,
|
|
2572
2572
|
className: "flex flex-row items-center justify-between gap-1 rounded-lg border p-1",
|
|
2573
|
-
children:
|
|
2573
|
+
children: jc.map((u) => {
|
|
2574
2574
|
const m = u.icon, C = l === u.value;
|
|
2575
2575
|
return /* @__PURE__ */ a("div", { className: "flex items-center", children: [
|
|
2576
2576
|
/* @__PURE__ */ e(
|
|
@@ -2683,7 +2683,7 @@ function Zn({
|
|
|
2683
2683
|
className: "h-8",
|
|
2684
2684
|
onClick: o,
|
|
2685
2685
|
children: [
|
|
2686
|
-
/* @__PURE__ */ e(
|
|
2686
|
+
/* @__PURE__ */ e(gc, { className: "mr-1.5 h-3.5 w-3.5" }),
|
|
2687
2687
|
"Debug with Assistant"
|
|
2688
2688
|
]
|
|
2689
2689
|
}
|
|
@@ -2848,15 +2848,13 @@ function _l({
|
|
|
2848
2848
|
preferences: k.preferences,
|
|
2849
2849
|
topoJson: j
|
|
2850
2850
|
}), [
|
|
2851
|
-
k
|
|
2851
|
+
k,
|
|
2852
2852
|
g == null ? void 0 : g.records,
|
|
2853
2853
|
x,
|
|
2854
|
-
k.customCfg,
|
|
2855
|
-
k.preferences,
|
|
2856
2854
|
j
|
|
2857
2855
|
]);
|
|
2858
2856
|
function le(q) {
|
|
2859
|
-
return /* @__PURE__ */ e(Ka, { FallbackComponent: zn, children: /* @__PURE__ */ e(
|
|
2857
|
+
return /* @__PURE__ */ e(Ka, { FallbackComponent: zn, children: /* @__PURE__ */ e(Jr, { card: q }) });
|
|
2860
2858
|
}
|
|
2861
2859
|
function me() {
|
|
2862
2860
|
var q;
|
|
@@ -2872,11 +2870,11 @@ function _l({
|
|
|
2872
2870
|
showFeedbackButton: !0
|
|
2873
2871
|
}
|
|
2874
2872
|
) }) : /* @__PURE__ */ a("div", { className: "flex h-full flex-col items-center justify-center gap-2", children: [
|
|
2875
|
-
/* @__PURE__ */ e(
|
|
2873
|
+
/* @__PURE__ */ e(jr, { className: "size-8 text-muted-foreground" }),
|
|
2876
2874
|
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "No results to display" })
|
|
2877
2875
|
] });
|
|
2878
2876
|
if ((F || b) && (!(g != null && g.records) || g.records.length === 0))
|
|
2879
|
-
return x === "table" || x === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
2877
|
+
return x === "table" || x === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(qr, {}) }) : /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(xt, { size: "md", color: "muted", "aria-label": "Loading data" }) });
|
|
2880
2878
|
if (!k.id) return null;
|
|
2881
2879
|
if (x === "custom")
|
|
2882
2880
|
return le(n);
|
|
@@ -2888,7 +2886,7 @@ function _l({
|
|
|
2888
2886
|
"custom"
|
|
2889
2887
|
].includes(x) && G)
|
|
2890
2888
|
return /* @__PURE__ */ e("div", { className: "relative h-full min-h-0 w-full flex-1 grow basis-0", children: F || b ? /* @__PURE__ */ e(fe, {}) : /* @__PURE__ */ e(
|
|
2891
|
-
|
|
2889
|
+
Kr,
|
|
2892
2890
|
{
|
|
2893
2891
|
cfg: G
|
|
2894
2892
|
}
|
|
@@ -2908,7 +2906,7 @@ function _l({
|
|
|
2908
2906
|
) });
|
|
2909
2907
|
if (x === "pivotTable" && $)
|
|
2910
2908
|
return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
2911
|
-
|
|
2909
|
+
Gr,
|
|
2912
2910
|
{
|
|
2913
2911
|
card: k,
|
|
2914
2912
|
data: $.data,
|
|
@@ -2921,7 +2919,7 @@ function _l({
|
|
|
2921
2919
|
V(ve), L(ve);
|
|
2922
2920
|
},
|
|
2923
2921
|
onAggregationLabelChange: (te) => {
|
|
2924
|
-
const pe =
|
|
2922
|
+
const pe = Ur(
|
|
2925
2923
|
te,
|
|
2926
2924
|
n.config
|
|
2927
2925
|
), ve = { ...n, config: pe };
|
|
@@ -2931,7 +2929,7 @@ function _l({
|
|
|
2931
2929
|
) });
|
|
2932
2930
|
if (x === "aggregateTable")
|
|
2933
2931
|
return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
2934
|
-
|
|
2932
|
+
_r,
|
|
2935
2933
|
{
|
|
2936
2934
|
card: k,
|
|
2937
2935
|
data: (g == null ? void 0 : g.records) || [],
|
|
@@ -2972,8 +2970,9 @@ function _l({
|
|
|
2972
2970
|
inputClassName: "text-base font-semibold"
|
|
2973
2971
|
}
|
|
2974
2972
|
) }),
|
|
2975
|
-
/* @__PURE__ */ e(
|
|
2976
|
-
/* @__PURE__ */ e(
|
|
2973
|
+
/* @__PURE__ */ e(Br, { card: n }),
|
|
2974
|
+
/* @__PURE__ */ e(cc, {}),
|
|
2975
|
+
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(qc, {}) })
|
|
2977
2976
|
] }),
|
|
2978
2977
|
/* @__PURE__ */ e("div", { className: "w-1/2", children: /* @__PURE__ */ e(
|
|
2979
2978
|
nn,
|
|
@@ -2999,10 +2998,10 @@ function _l({
|
|
|
2999
2998
|
inputClassName: "text-sm"
|
|
3000
2999
|
}
|
|
3001
3000
|
) }),
|
|
3002
|
-
/* @__PURE__ */ e(
|
|
3001
|
+
/* @__PURE__ */ e(zr, { filter: N })
|
|
3003
3002
|
] })
|
|
3004
3003
|
] }),
|
|
3005
|
-
o && n.inlineFilters && n.inlineFilters.length > 0 && /* @__PURE__ */ e("div", { className: "px-6 pb-3", children: /* @__PURE__ */ e(
|
|
3004
|
+
o && n.inlineFilters && n.inlineFilters.length > 0 && /* @__PURE__ */ e("div", { className: "px-6 pb-3", children: /* @__PURE__ */ e($r, { card: n, sheetId: d || "" }) }),
|
|
3006
3005
|
/* @__PURE__ */ a(Dn, { className: "flex min-h-0 grow flex-col", children: [
|
|
3007
3006
|
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1 grow basis-0", children: me() }),
|
|
3008
3007
|
ul(k) && /* @__PURE__ */ e("div", { className: "pt-3", children: /* @__PURE__ */ e(ml, { card: k, mode: "editor" }) })
|
|
@@ -3046,7 +3045,7 @@ const mn = ({
|
|
|
3046
3045
|
value: s,
|
|
3047
3046
|
onChange: n
|
|
3048
3047
|
}
|
|
3049
|
-
),
|
|
3048
|
+
), Kc = () => /* @__PURE__ */ a(Wt, { children: [
|
|
3050
3049
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(Qt, { children: "Customize Card" }) }),
|
|
3051
3050
|
/* @__PURE__ */ a(xa, { children: [
|
|
3052
3051
|
"See the configuration options and documentation",
|
|
@@ -3060,7 +3059,7 @@ const mn = ({
|
|
|
3060
3059
|
}
|
|
3061
3060
|
)
|
|
3062
3061
|
] })
|
|
3063
|
-
] }),
|
|
3062
|
+
] }), Gc = ({
|
|
3064
3063
|
// defaultConfig,
|
|
3065
3064
|
customCode: t,
|
|
3066
3065
|
cardCustomCfgString: s,
|
|
@@ -3120,7 +3119,7 @@ const mn = ({
|
|
|
3120
3119
|
)
|
|
3121
3120
|
}
|
|
3122
3121
|
)
|
|
3123
|
-
] }),
|
|
3122
|
+
] }), Uc = ({
|
|
3124
3123
|
error: t,
|
|
3125
3124
|
hasCardCustomConfig: s,
|
|
3126
3125
|
onReset: n,
|
|
@@ -3132,7 +3131,7 @@ const mn = ({
|
|
|
3132
3131
|
/* @__PURE__ */ e(Y, { onClick: l, variant: "outline", children: "Apply" }),
|
|
3133
3132
|
/* @__PURE__ */ e(Y, { onClick: o, variant: "outline", children: "Close" })
|
|
3134
3133
|
] });
|
|
3135
|
-
function
|
|
3134
|
+
function _c() {
|
|
3136
3135
|
const [t, s] = _(!1), [n, l] = _(""), [o, c] = _(""), [i, d] = _(""), [r, h] = _(""), f = E((k) => k.card), u = st(), m = E((k) => k.card.customCfg), C = m ? JSON.stringify(m, null, 2) : "", N = ie(() => u !== f.type ? { ...f, type: u } : f, [f, u]), { data: p } = nt(N), { data: y } = Bn(f), { setCardCustomCfg: S, setCustomVisualCode: T } = de(), B = (k) => {
|
|
3137
3136
|
var A, g;
|
|
3138
3137
|
return JSON.stringify(
|
|
@@ -3163,7 +3162,7 @@ function Uc() {
|
|
|
3163
3162
|
});
|
|
3164
3163
|
if (k) {
|
|
3165
3164
|
l(B(k)), d(((g = f.preferences) == null ? void 0 : g.customVisualCode) || "");
|
|
3166
|
-
const F =
|
|
3165
|
+
const F = Wr(k, m);
|
|
3167
3166
|
c(B(F));
|
|
3168
3167
|
}
|
|
3169
3168
|
}, M = () => {
|
|
@@ -3171,7 +3170,7 @@ function Uc() {
|
|
|
3171
3170
|
if (i && T(i), o) {
|
|
3172
3171
|
const k = JSON.parse(
|
|
3173
3172
|
o
|
|
3174
|
-
), A =
|
|
3173
|
+
), A = Qr(
|
|
3175
3174
|
JSON.parse(n),
|
|
3176
3175
|
k
|
|
3177
3176
|
);
|
|
@@ -3182,21 +3181,21 @@ function Uc() {
|
|
|
3182
3181
|
}
|
|
3183
3182
|
}, x = Object.keys(m || {}).length === 0;
|
|
3184
3183
|
return /* @__PURE__ */ a(Ht, { open: t, onOpenChange: s, children: [
|
|
3185
|
-
/* @__PURE__ */ e(
|
|
3184
|
+
/* @__PURE__ */ e(Hr, { asChild: !0, children: /* @__PURE__ */ e(
|
|
3186
3185
|
tt,
|
|
3187
3186
|
{
|
|
3188
3187
|
tooltip: "Customize Visual",
|
|
3189
3188
|
onClick: R,
|
|
3190
3189
|
className: x ? "" : "text-green-600 hover:text-green-700",
|
|
3191
|
-
children: /* @__PURE__ */ e(
|
|
3190
|
+
children: /* @__PURE__ */ e(Yr, { className: "h-4 w-4" })
|
|
3192
3191
|
}
|
|
3193
3192
|
) }),
|
|
3194
3193
|
/* @__PURE__ */ a(Yt, { className: "flex h-[600px] grow flex-col overflow-auto sm:min-w-[900px] lg:min-w-[1200px]", children: [
|
|
3195
|
-
/* @__PURE__ */ e(
|
|
3194
|
+
/* @__PURE__ */ e(Kc, {}),
|
|
3196
3195
|
/* @__PURE__ */ a("div", { className: "flex grow gap-2", children: [
|
|
3197
3196
|
/* @__PURE__ */ e(Ka, { FallbackComponent: zn, children: /* @__PURE__ */ e(_l, { className: "w-1/2 rounded shadow-none" }) }),
|
|
3198
3197
|
/* @__PURE__ */ e(
|
|
3199
|
-
|
|
3198
|
+
Gc,
|
|
3200
3199
|
{
|
|
3201
3200
|
customCode: i,
|
|
3202
3201
|
cardCustomCfgString: C,
|
|
@@ -3207,7 +3206,7 @@ function Uc() {
|
|
|
3207
3206
|
)
|
|
3208
3207
|
] }),
|
|
3209
3208
|
/* @__PURE__ */ e(
|
|
3210
|
-
|
|
3209
|
+
Uc,
|
|
3211
3210
|
{
|
|
3212
3211
|
error: r,
|
|
3213
3212
|
hasCardCustomConfig: !!m,
|
|
@@ -3221,7 +3220,7 @@ function Uc() {
|
|
|
3221
3220
|
] })
|
|
3222
3221
|
] });
|
|
3223
3222
|
}
|
|
3224
|
-
function
|
|
3223
|
+
function Jc({ isStarred: t, onClick: s, className: n }) {
|
|
3225
3224
|
return /* @__PURE__ */ e(
|
|
3226
3225
|
"button",
|
|
3227
3226
|
{
|
|
@@ -3236,7 +3235,7 @@ function _c({ isStarred: t, onClick: s, className: n }) {
|
|
|
3236
3235
|
),
|
|
3237
3236
|
"aria-label": t ? "Remove from favorites" : "Add to favorites",
|
|
3238
3237
|
children: /* @__PURE__ */ e(
|
|
3239
|
-
|
|
3238
|
+
Xr,
|
|
3240
3239
|
{
|
|
3241
3240
|
className: ae(
|
|
3242
3241
|
"h-3.5 w-3.5 transition-colors",
|
|
@@ -3274,7 +3273,7 @@ function Vs({
|
|
|
3274
3273
|
"absolute left-1 top-1 transition-opacity",
|
|
3275
3274
|
o ? "opacity-100" : "opacity-0 group-hover:opacity-100"
|
|
3276
3275
|
),
|
|
3277
|
-
children: /* @__PURE__ */ e(
|
|
3276
|
+
children: /* @__PURE__ */ e(Jc, { isStarred: o, onClick: () => d() })
|
|
3278
3277
|
}
|
|
3279
3278
|
),
|
|
3280
3279
|
n && l && /* @__PURE__ */ e("div", { className: "absolute right-1 top-1", children: /* @__PURE__ */ a(Ge, { children: [
|
|
@@ -3328,8 +3327,8 @@ const Bs = [
|
|
|
3328
3327
|
{ id: "map", name: "Map" }
|
|
3329
3328
|
// { id: 'tableBuilder', name: 'Table Builder' },
|
|
3330
3329
|
];
|
|
3331
|
-
function
|
|
3332
|
-
const [n, l] = _(""), { starredCharts: o, isStarred: c, toggleStar: i } =
|
|
3330
|
+
function Hc({ onChartSelect: t, onClose: s }) {
|
|
3331
|
+
const [n, l] = _(""), { starredCharts: o, isStarred: c, toggleStar: i } = Zr(), { data: d = [], isLoading: r } = ei(), { setCardType: h, setCardPreferences: f, setIsDevMode: u } = E(
|
|
3333
3332
|
(g) => g.actions
|
|
3334
3333
|
), m = E((g) => g.card), {
|
|
3335
3334
|
setCardCustomCfg: C,
|
|
@@ -3357,10 +3356,10 @@ function Jc({ onChartSelect: t, onClose: s }) {
|
|
|
3357
3356
|
C(null), f({}), h(g), ["custom", "text", "map"].includes(g) && (u(!0), p(void 0)), t == null || t(g), s == null || s();
|
|
3358
3357
|
}, x = (g) => {
|
|
3359
3358
|
C(null), f({}), p(void 0);
|
|
3360
|
-
const F =
|
|
3359
|
+
const F = ti(g);
|
|
3361
3360
|
if (F === "multiple" && g.slots && g.slots.length > 0) {
|
|
3362
3361
|
S();
|
|
3363
|
-
const D =
|
|
3362
|
+
const D = ai(g.slots, g, m);
|
|
3364
3363
|
y(D), D[0] && T(D[0]), s == null || s();
|
|
3365
3364
|
return;
|
|
3366
3365
|
} else
|
|
@@ -3444,7 +3443,7 @@ function Jc({ onChartSelect: t, onClose: s }) {
|
|
|
3444
3443
|
] })
|
|
3445
3444
|
] });
|
|
3446
3445
|
}
|
|
3447
|
-
function
|
|
3446
|
+
function Yc({
|
|
3448
3447
|
selectedChart: t,
|
|
3449
3448
|
onChartChange: s
|
|
3450
3449
|
}) {
|
|
@@ -3480,7 +3479,7 @@ function Hc({
|
|
|
3480
3479
|
return /* @__PURE__ */ e(b, { className: "h-4 w-4" });
|
|
3481
3480
|
}
|
|
3482
3481
|
if (N === "custom" && p) {
|
|
3483
|
-
const b =
|
|
3482
|
+
const b = ni(p);
|
|
3484
3483
|
return b || /* @__PURE__ */ e(
|
|
3485
3484
|
pl,
|
|
3486
3485
|
{
|
|
@@ -3490,7 +3489,7 @@ function Hc({
|
|
|
3490
3489
|
}
|
|
3491
3490
|
);
|
|
3492
3491
|
}
|
|
3493
|
-
return /* @__PURE__ */ e(
|
|
3492
|
+
return /* @__PURE__ */ e(kc, { className: "h-4 w-4" });
|
|
3494
3493
|
}, [N, p]);
|
|
3495
3494
|
return {
|
|
3496
3495
|
displayChartType: N,
|
|
@@ -3536,7 +3535,7 @@ function es({
|
|
|
3536
3535
|
badgeLabel: h,
|
|
3537
3536
|
handleChartSelect: f,
|
|
3538
3537
|
handleClearCustomVisual: u
|
|
3539
|
-
} =
|
|
3538
|
+
} = Yc({ selectedChart: t, onChartChange: s });
|
|
3540
3539
|
return /* @__PURE__ */ a("div", { className: ae("relative w-full", l), children: [
|
|
3541
3540
|
/* @__PURE__ */ a(ut, { open: o, onOpenChange: c, children: [
|
|
3542
3541
|
/* @__PURE__ */ e(mt, { asChild: !0, children: /* @__PURE__ */ a(
|
|
@@ -3563,7 +3562,7 @@ function es({
|
|
|
3563
3562
|
align: "start",
|
|
3564
3563
|
onOpenAutoFocus: (m) => m.preventDefault(),
|
|
3565
3564
|
children: /* @__PURE__ */ e(
|
|
3566
|
-
|
|
3565
|
+
Hc,
|
|
3567
3566
|
{
|
|
3568
3567
|
onChartSelect: (m) => f(m),
|
|
3569
3568
|
onClose: () => c(!1)
|
|
@@ -3594,7 +3593,7 @@ function es({
|
|
|
3594
3593
|
)
|
|
3595
3594
|
] });
|
|
3596
3595
|
}
|
|
3597
|
-
function
|
|
3596
|
+
function Wc() {
|
|
3598
3597
|
const t = E(
|
|
3599
3598
|
(r) => {
|
|
3600
3599
|
var h, f;
|
|
@@ -3633,7 +3632,7 @@ function Yc() {
|
|
|
3633
3632
|
}
|
|
3634
3633
|
return /* @__PURE__ */ e(fe, { children: s === "funnel" ? i() : s === "bullet" ? d() : c() });
|
|
3635
3634
|
}
|
|
3636
|
-
function
|
|
3635
|
+
function Qc({
|
|
3637
3636
|
className: t
|
|
3638
3637
|
}) {
|
|
3639
3638
|
var C, N, p, y, S, T, B, R, M, x;
|
|
@@ -3741,7 +3740,7 @@ function Wc({
|
|
|
3741
3740
|
] })
|
|
3742
3741
|
] }) });
|
|
3743
3742
|
}
|
|
3744
|
-
function
|
|
3743
|
+
function Xc() {
|
|
3745
3744
|
const [t, s] = _(!1), n = E((u) => u.card), l = E((u) => u.selectedConnectionId), { setCard: o } = de(), c = Se(
|
|
3746
3745
|
(u) => u.actions.removeCardInlineFilterValue
|
|
3747
3746
|
), i = (n == null ? void 0 : n.inlineFilters) || [];
|
|
@@ -3752,10 +3751,10 @@ function Qc() {
|
|
|
3752
3751
|
(b) => b.column === C
|
|
3753
3752
|
))
|
|
3754
3753
|
return;
|
|
3755
|
-
const p = u.qualifiedFieldName ? u.qualifiedFieldName.split(".").slice(0, -1).join(".") : u.qualifiedEntityName || u.entityName, S =
|
|
3754
|
+
const p = u.qualifiedFieldName ? u.qualifiedFieldName.split(".").slice(0, -1).join(".") : u.qualifiedEntityName || u.entityName, S = li(u.name), T = ri(u), B = ii(n == null ? void 0 : n.dataSource, {
|
|
3756
3755
|
connectionId: l || ((g = n == null ? void 0 : n.dataSource) == null ? void 0 : g.connectionId),
|
|
3757
3756
|
connectionType: (F = n == null ? void 0 : n.dataSource) == null ? void 0 : F.connectionType
|
|
3758
|
-
}), R =
|
|
3757
|
+
}), R = oi(T), M = {
|
|
3759
3758
|
id: Jt(),
|
|
3760
3759
|
column: C,
|
|
3761
3760
|
title: u.label || u.name,
|
|
@@ -3764,7 +3763,7 @@ function Qc() {
|
|
|
3764
3763
|
database: m,
|
|
3765
3764
|
connectionId: l || "",
|
|
3766
3765
|
operation: "in",
|
|
3767
|
-
sql: R ? "" :
|
|
3766
|
+
sql: R ? "" : ci(
|
|
3768
3767
|
u.dataType,
|
|
3769
3768
|
p,
|
|
3770
3769
|
S
|
|
@@ -3821,7 +3820,7 @@ function Qc() {
|
|
|
3821
3820
|
"text-primary": i.length > 0
|
|
3822
3821
|
}),
|
|
3823
3822
|
children: [
|
|
3824
|
-
/* @__PURE__ */ e(
|
|
3823
|
+
/* @__PURE__ */ e(yc, { className: "h-4 w-4" }),
|
|
3825
3824
|
i.length > 0 && /* @__PURE__ */ e("span", { className: "absolute -right-1 -top-1 flex h-4 w-4 items-center justify-center rounded-full bg-primary text-[10px] font-medium text-primary-foreground", children: i.length })
|
|
3826
3825
|
]
|
|
3827
3826
|
}
|
|
@@ -3837,7 +3836,7 @@ function Qc() {
|
|
|
3837
3836
|
items: [],
|
|
3838
3837
|
strategy: ta,
|
|
3839
3838
|
children: /* @__PURE__ */ e(
|
|
3840
|
-
|
|
3839
|
+
si,
|
|
3841
3840
|
{
|
|
3842
3841
|
context: "inline-filter",
|
|
3843
3842
|
onFieldSelect: d,
|
|
@@ -3849,7 +3848,7 @@ function Qc() {
|
|
|
3849
3848
|
i.length > 0 && /* @__PURE__ */ a("div", { className: "border-t px-4 py-3", children: [
|
|
3850
3849
|
/* @__PURE__ */ e("p", { className: "mb-2 text-xs font-medium text-muted-foreground", children: "Active Filters" }),
|
|
3851
3850
|
/* @__PURE__ */ e("div", { className: "space-y-1", children: i.map((u) => /* @__PURE__ */ e(
|
|
3852
|
-
|
|
3851
|
+
Zc,
|
|
3853
3852
|
{
|
|
3854
3853
|
filter: u,
|
|
3855
3854
|
onUpdate: (m) => h(u.id, m),
|
|
@@ -3861,7 +3860,7 @@ function Qc() {
|
|
|
3861
3860
|
] }) })
|
|
3862
3861
|
] }) }) : null;
|
|
3863
3862
|
}
|
|
3864
|
-
function
|
|
3863
|
+
function Zc({
|
|
3865
3864
|
filter: t,
|
|
3866
3865
|
onUpdate: s,
|
|
3867
3866
|
onRemove: n
|
|
@@ -3870,7 +3869,7 @@ function Xc({
|
|
|
3870
3869
|
/* @__PURE__ */ e("span", { className: "truncate", title: t.column, children: t.title }),
|
|
3871
3870
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-0.5", children: [
|
|
3872
3871
|
/* @__PURE__ */ e(
|
|
3873
|
-
|
|
3872
|
+
di,
|
|
3874
3873
|
{
|
|
3875
3874
|
filter: t,
|
|
3876
3875
|
variant: "inline",
|
|
@@ -3906,7 +3905,7 @@ function Jl() {
|
|
|
3906
3905
|
var i, d;
|
|
3907
3906
|
return (d = (i = c.card) == null ? void 0 : i.preferences) == null ? void 0 : d.chartOptions;
|
|
3908
3907
|
}
|
|
3909
|
-
), n =
|
|
3908
|
+
), n = ui(s), { setChartGrid: l } = de();
|
|
3910
3909
|
function o() {
|
|
3911
3910
|
const c = ["xy", "none", "x", "y"], d = (c.indexOf(n) + 1) % c.length;
|
|
3912
3911
|
l(c[d]);
|
|
@@ -3921,7 +3920,7 @@ function Jl() {
|
|
|
3921
3920
|
"horizontalBar",
|
|
3922
3921
|
"funnel",
|
|
3923
3922
|
"bullet"
|
|
3924
|
-
].includes(t.type) && /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ e(
|
|
3923
|
+
].includes(t.type) && /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ e(Wc, {}) }),
|
|
3925
3924
|
!["kpi", "text", "custom", "table"].includes(t.type) && /* @__PURE__ */ e(fe, {}),
|
|
3926
3925
|
![
|
|
3927
3926
|
"pie",
|
|
@@ -3938,13 +3937,13 @@ function Jl() {
|
|
|
3938
3937
|
(n === "xy" || !n) && /* @__PURE__ */ e(Ln, { className: "size-4" }),
|
|
3939
3938
|
n === "x" && /* @__PURE__ */ e(Ll, { className: "size-4" }),
|
|
3940
3939
|
n === "y" && /* @__PURE__ */ e(Xn, { className: "size-4" }),
|
|
3941
|
-
n === "none" && /* @__PURE__ */ e(
|
|
3940
|
+
n === "none" && /* @__PURE__ */ e(mi, { className: "size-4" })
|
|
3942
3941
|
] }),
|
|
3943
|
-
/* @__PURE__ */ e(
|
|
3944
|
-
/* @__PURE__ */ e(
|
|
3942
|
+
/* @__PURE__ */ e(Xc, {}),
|
|
3943
|
+
/* @__PURE__ */ e(Qc, {})
|
|
3945
3944
|
] });
|
|
3946
3945
|
}
|
|
3947
|
-
function
|
|
3946
|
+
function ed({
|
|
3948
3947
|
isPreviewMode: t,
|
|
3949
3948
|
onPreviewToggle: s,
|
|
3950
3949
|
configCard: n
|
|
@@ -3985,7 +3984,7 @@ function Zc({
|
|
|
3985
3984
|
const j = (n == null ? void 0 : n.id) === L;
|
|
3986
3985
|
if (!(M && j ? l.cards.length > 1 : R)) return;
|
|
3987
3986
|
let $ = l.cards.filter((ce) => ce.id !== L);
|
|
3988
|
-
N && !M && ($ =
|
|
3987
|
+
N && !M && ($ = ki($));
|
|
3989
3988
|
const H = $[0], re = {
|
|
3990
3989
|
...l,
|
|
3991
3990
|
cards: $,
|
|
@@ -4041,7 +4040,7 @@ function Zc({
|
|
|
4041
4040
|
m.slots,
|
|
4042
4041
|
H
|
|
4043
4042
|
);
|
|
4044
|
-
ce && (j =
|
|
4043
|
+
ce && (j = Ti(ce), J = ce.label || `Tab ${H + 1}`, $ = ce.description || "");
|
|
4045
4044
|
}
|
|
4046
4045
|
const re = {
|
|
4047
4046
|
dataSource: L.dataSource,
|
|
@@ -4110,7 +4109,7 @@ function Zc({
|
|
|
4110
4109
|
// Multi-input visual: Icon + Slot Label (non-editable, no eye icon)
|
|
4111
4110
|
/* @__PURE__ */ e(Ze, { delayDuration: 0, children: /* @__PURE__ */ a(Ge, { children: [
|
|
4112
4111
|
/* @__PURE__ */ e(Ue, { asChild: !0, children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
4113
|
-
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children:
|
|
4112
|
+
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: Ni(H, "size-3.5") }),
|
|
4114
4113
|
/* @__PURE__ */ e("span", { children: $.label || `Tab ${J + 1}` })
|
|
4115
4114
|
] }) }),
|
|
4116
4115
|
/* @__PURE__ */ e(
|
|
@@ -4134,7 +4133,7 @@ function Zc({
|
|
|
4134
4133
|
/* @__PURE__ */ a(fe, { children: [
|
|
4135
4134
|
O(l, L),
|
|
4136
4135
|
/* @__PURE__ */ e(
|
|
4137
|
-
|
|
4136
|
+
vi,
|
|
4138
4137
|
{
|
|
4139
4138
|
enabled: l.activeCardId === L.id,
|
|
4140
4139
|
text: L.tabTitle || L.title,
|
|
@@ -4148,7 +4147,7 @@ function Zc({
|
|
|
4148
4147
|
] })
|
|
4149
4148
|
),
|
|
4150
4149
|
l.activeCardId === L.id && !re && /* @__PURE__ */ e(
|
|
4151
|
-
|
|
4150
|
+
Ci,
|
|
4152
4151
|
{
|
|
4153
4152
|
className: "ml-2 size-3.5 text-muted-foreground hover:text-foreground",
|
|
4154
4153
|
onClick: (G) => {
|
|
@@ -4211,7 +4210,7 @@ function An() {
|
|
|
4211
4210
|
initializeModeDrafts: m
|
|
4212
4211
|
} = de(), [C, N] = _({}), [p, y] = _(
|
|
4213
4212
|
() => /* @__PURE__ */ new Set()
|
|
4214
|
-
), { theme: S } = ll(), T = Se((oe) => oe.themeStyle), { authToken: B } = ka(), R =
|
|
4213
|
+
), { theme: S } = ll(), T = Se((oe) => oe.themeStyle), { authToken: B } = ka(), R = hi(B == null ? void 0 : B.accessToken), M = {
|
|
4215
4214
|
mode: S || "system",
|
|
4216
4215
|
colors: ((je = ($e = T == null ? void 0 : T.chart) == null ? void 0 : $e.dataset) == null ? void 0 : je.backgroundColor) || []
|
|
4217
4216
|
}, {
|
|
@@ -4248,7 +4247,7 @@ function An() {
|
|
|
4248
4247
|
queryConfig: void 0
|
|
4249
4248
|
} : v !== s.type ? { ...s, type: v } : s, [s, v, O]), { data: L, isLoading: j, isFetching: J, isError: $ } = nt(V), H = Ke(
|
|
4250
4249
|
(oe, Ne) => {
|
|
4251
|
-
const Me =
|
|
4250
|
+
const Me = xi(Ne);
|
|
4252
4251
|
N((Re) => ({
|
|
4253
4252
|
...Re,
|
|
4254
4253
|
[oe]: Me
|
|
@@ -4263,7 +4262,7 @@ function An() {
|
|
|
4263
4262
|
});
|
|
4264
4263
|
},
|
|
4265
4264
|
[]
|
|
4266
|
-
), ne = p.size > 0, ce =
|
|
4265
|
+
), ne = p.size > 0, ce = pi(
|
|
4267
4266
|
(oe) => oe.interactionStates
|
|
4268
4267
|
), G = Se((oe) => {
|
|
4269
4268
|
var Ne;
|
|
@@ -4271,14 +4270,14 @@ function An() {
|
|
|
4271
4270
|
}), le = Se((oe) => oe.dashboard.filters), me = Se((oe) => oe.filterValues), ge = Se((oe) => oe.selectedSheetId), W = Se(
|
|
4272
4271
|
(oe) => oe.inlineFilterValuesMap[(o == null ? void 0 : o.id) || ""]
|
|
4273
4272
|
), se = ie(
|
|
4274
|
-
() => o ?
|
|
4273
|
+
() => o ? fi({
|
|
4275
4274
|
card: o,
|
|
4276
4275
|
sheetId: ge || "",
|
|
4277
4276
|
inlineFilterValues: W
|
|
4278
4277
|
}) : [],
|
|
4279
4278
|
[o, ge, W]
|
|
4280
4279
|
), { cardFilters: ye, cardFilterValues: Pe } = ie(
|
|
4281
|
-
() => o ?
|
|
4280
|
+
() => o ? gi({
|
|
4282
4281
|
card: o,
|
|
4283
4282
|
interactionStates: ce,
|
|
4284
4283
|
currentDashboardId: G,
|
|
@@ -4330,7 +4329,7 @@ function An() {
|
|
|
4330
4329
|
b == null ? void 0 : b.slots
|
|
4331
4330
|
);
|
|
4332
4331
|
return /* @__PURE__ */ e(
|
|
4333
|
-
|
|
4332
|
+
wi,
|
|
4334
4333
|
{
|
|
4335
4334
|
onLoadingStatus: re,
|
|
4336
4335
|
onDataChange: H,
|
|
@@ -4349,14 +4348,14 @@ function An() {
|
|
|
4349
4348
|
ne && "opacity-50"
|
|
4350
4349
|
),
|
|
4351
4350
|
children: /* @__PURE__ */ e(
|
|
4352
|
-
|
|
4351
|
+
ic,
|
|
4353
4352
|
{
|
|
4354
4353
|
fallback: /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e(xt, { size: "md", color: "muted" }) }),
|
|
4355
4354
|
children: /* @__PURE__ */ e(
|
|
4356
4355
|
F,
|
|
4357
4356
|
{
|
|
4358
4357
|
editing: !0,
|
|
4359
|
-
...
|
|
4358
|
+
...Si({
|
|
4360
4359
|
configCard: o,
|
|
4361
4360
|
slotOrderedCards: w,
|
|
4362
4361
|
slotTypes: Ne,
|
|
@@ -4382,7 +4381,7 @@ function An() {
|
|
|
4382
4381
|
var oe;
|
|
4383
4382
|
return O ? pe() : s.type === "kpi" ? j || J ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(xt, { 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: [
|
|
4384
4383
|
/* @__PURE__ */ e("div", { className: "rounded-md border border-border", children: /* @__PURE__ */ e(
|
|
4385
|
-
|
|
4384
|
+
bi,
|
|
4386
4385
|
{
|
|
4387
4386
|
card: s,
|
|
4388
4387
|
data: L == null ? void 0 : L.records,
|
|
@@ -4393,7 +4392,7 @@ function An() {
|
|
|
4393
4392
|
) }),
|
|
4394
4393
|
ul(s) && /* @__PURE__ */ e(ml, { card: s, mode: "editor" })
|
|
4395
4394
|
] }) }) : s.type === "text" ? j || J ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(xt, { 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(da, { className: "mx-3 my-6 h-[300px] overflow-y-auto break-words px-3", children: /* @__PURE__ */ e(
|
|
4396
|
-
|
|
4395
|
+
yi,
|
|
4397
4396
|
{
|
|
4398
4397
|
isLoading: c,
|
|
4399
4398
|
card: s,
|
|
@@ -4410,7 +4409,7 @@ function An() {
|
|
|
4410
4409
|
children: [
|
|
4411
4410
|
O ? /* @__PURE__ */ e("div", { className: "mt-0 grow", children: ve() }) : t.cards.map((oe) => /* @__PURE__ */ e(Oa, { className: "mt-0 grow", value: oe.id, children: ve() }, oe.id)),
|
|
4412
4411
|
/* @__PURE__ */ e(
|
|
4413
|
-
|
|
4412
|
+
ed,
|
|
4414
4413
|
{
|
|
4415
4414
|
isPreviewMode: O,
|
|
4416
4415
|
onPreviewToggle: l,
|
|
@@ -4513,7 +4512,7 @@ function zs({
|
|
|
4513
4512
|
children: [
|
|
4514
4513
|
o && /* @__PURE__ */ a("div", { className: "flex grow items-center", children: [
|
|
4515
4514
|
/* @__PURE__ */ e("div", { className: "w-[260px]", children: /* @__PURE__ */ e(es, { variant: "outline" }) }),
|
|
4516
|
-
!["table", "detailTable", "custom"].includes(n.type) && c && /* @__PURE__ */ e(
|
|
4515
|
+
!["table", "detailTable", "custom"].includes(n.type) && c && /* @__PURE__ */ e(_c, {})
|
|
4517
4516
|
] }),
|
|
4518
4517
|
!o && /* @__PURE__ */ a("div", { className: "flex grow items-center gap-1", children: [
|
|
4519
4518
|
/* @__PURE__ */ e(
|
|
@@ -4523,7 +4522,7 @@ function zs({
|
|
|
4523
4522
|
variant: "ghost",
|
|
4524
4523
|
size: "icon",
|
|
4525
4524
|
onClick: w,
|
|
4526
|
-
children: /* @__PURE__ */ e(
|
|
4525
|
+
children: /* @__PURE__ */ e(Ai, { className: "size-4" })
|
|
4527
4526
|
}
|
|
4528
4527
|
),
|
|
4529
4528
|
/* @__PURE__ */ e(
|
|
@@ -4533,7 +4532,7 @@ function zs({
|
|
|
4533
4532
|
variant: "ghost",
|
|
4534
4533
|
size: "icon",
|
|
4535
4534
|
onClick: z,
|
|
4536
|
-
children: /* @__PURE__ */ e(
|
|
4535
|
+
children: /* @__PURE__ */ e(pc, { strokeWidth: 1.5, className: "size-4" })
|
|
4537
4536
|
}
|
|
4538
4537
|
),
|
|
4539
4538
|
/* @__PURE__ */ e(
|
|
@@ -4566,7 +4565,7 @@ function zs({
|
|
|
4566
4565
|
),
|
|
4567
4566
|
/* @__PURE__ */ e(Jl, {})
|
|
4568
4567
|
] }),
|
|
4569
|
-
l && /* @__PURE__ */ e(
|
|
4568
|
+
l && /* @__PURE__ */ e(ad, {})
|
|
4570
4569
|
]
|
|
4571
4570
|
}
|
|
4572
4571
|
),
|
|
@@ -4585,7 +4584,7 @@ function zs({
|
|
|
4585
4584
|
defaultSize: 30,
|
|
4586
4585
|
minSize: 10,
|
|
4587
4586
|
className: "relative flex h-full min-h-0 w-full flex-1 basis-0",
|
|
4588
|
-
children: i && /* @__PURE__ */ e(
|
|
4587
|
+
children: i && /* @__PURE__ */ e(td, {})
|
|
4589
4588
|
}
|
|
4590
4589
|
),
|
|
4591
4590
|
/* @__PURE__ */ e($t, {})
|
|
@@ -4635,7 +4634,7 @@ function zs({
|
|
|
4635
4634
|
}
|
|
4636
4635
|
) : /* @__PURE__ */ e(fe, { children: "No Active Card" });
|
|
4637
4636
|
}
|
|
4638
|
-
function
|
|
4637
|
+
function td() {
|
|
4639
4638
|
const t = E((n) => n.pythonStdOut);
|
|
4640
4639
|
if (!t) return null;
|
|
4641
4640
|
const s = t.replace(/\n/g, "<br>");
|
|
@@ -4647,7 +4646,7 @@ function ed() {
|
|
|
4647
4646
|
] })
|
|
4648
4647
|
] });
|
|
4649
4648
|
}
|
|
4650
|
-
function
|
|
4649
|
+
function ad() {
|
|
4651
4650
|
const t = E((n) => n.isShowingVisual), s = E(
|
|
4652
4651
|
(n) => n.actions.setIsShowingVisual
|
|
4653
4652
|
);
|
|
@@ -4736,7 +4735,7 @@ function kt({
|
|
|
4736
4735
|
}
|
|
4737
4736
|
);
|
|
4738
4737
|
}
|
|
4739
|
-
function
|
|
4738
|
+
function nd(t, s) {
|
|
4740
4739
|
return vn(t, s) || null;
|
|
4741
4740
|
}
|
|
4742
4741
|
function pa(t) {
|
|
@@ -4750,7 +4749,7 @@ function pa(t) {
|
|
|
4750
4749
|
const n = t.match(/^(\d+)\+$/);
|
|
4751
4750
|
return n ? `Tabs ${Number(n[1]) + 1}+` : `Tab ${t}`;
|
|
4752
4751
|
}
|
|
4753
|
-
function
|
|
4752
|
+
function sd(t) {
|
|
4754
4753
|
return t ? Array.isArray(t) ? t : [t] : [];
|
|
4755
4754
|
}
|
|
4756
4755
|
function hn(t) {
|
|
@@ -4761,7 +4760,7 @@ function hn(t) {
|
|
|
4761
4760
|
const s = !!((o = t.sql) != null && o.trim()), n = wa(t.config);
|
|
4762
4761
|
return s || n;
|
|
4763
4762
|
}
|
|
4764
|
-
function
|
|
4763
|
+
function ld({
|
|
4765
4764
|
slots: t,
|
|
4766
4765
|
cards: s,
|
|
4767
4766
|
minInputs: n
|
|
@@ -4818,16 +4817,16 @@ function sd({
|
|
|
4818
4817
|
}
|
|
4819
4818
|
}), s.forEach((c, i) => {
|
|
4820
4819
|
if (!c) return;
|
|
4821
|
-
const d =
|
|
4820
|
+
const d = nd(t, i);
|
|
4822
4821
|
if (!d || !d.expectedType) return;
|
|
4823
|
-
const r =
|
|
4822
|
+
const r = sd(d.expectedType);
|
|
4824
4823
|
r.length !== 0 && (r.includes(c.type) || l.push({
|
|
4825
4824
|
type: "wrong-type",
|
|
4826
4825
|
message: `${pa(i)} ("${d.label}") expects ${r.join(", ")}, but is configured as ${c.type}.`
|
|
4827
4826
|
}));
|
|
4828
4827
|
})), l;
|
|
4829
4828
|
}
|
|
4830
|
-
const
|
|
4829
|
+
const rd = {
|
|
4831
4830
|
table: ({ children: t }) => /* @__PURE__ */ e("table", { className: "my-3 w-full border-collapse overflow-hidden rounded-md border border-border text-sm", children: t }),
|
|
4832
4831
|
thead: ({ children: t }) => /* @__PURE__ */ e("thead", { className: "bg-muted", children: t }),
|
|
4833
4832
|
th: ({ children: t }) => /* @__PURE__ */ e("th", { className: "border border-border px-3 py-2 text-left font-medium", children: t }),
|
|
@@ -4839,7 +4838,7 @@ function Hl() {
|
|
|
4839
4838
|
var D, O, z;
|
|
4840
4839
|
const t = E(
|
|
4841
4840
|
(w) => w.card.customCardPreferences
|
|
4842
|
-
), { data: s } =
|
|
4841
|
+
), { data: s } = Di(), n = (s == null ? void 0 : s.plugins) || [], l = E((w) => w.card), o = E((w) => w.frame), { setCustomCardPreferences: c } = de(), i = ie(
|
|
4843
4842
|
() => ua(o, l),
|
|
4844
4843
|
[o, l]
|
|
4845
4844
|
), d = i == null ? void 0 : i.customCardPreferences, { components: r, manifest: h } = Kt(
|
|
@@ -4874,7 +4873,7 @@ function Hl() {
|
|
|
4874
4873
|
}),
|
|
4875
4874
|
[S, f == null ? void 0 : f.slots]
|
|
4876
4875
|
), B = ie(
|
|
4877
|
-
() =>
|
|
4876
|
+
() => ld({
|
|
4878
4877
|
slots: f == null ? void 0 : f.slots,
|
|
4879
4878
|
cards: T,
|
|
4880
4879
|
minInputs: N
|
|
@@ -5028,7 +5027,7 @@ function Hl() {
|
|
|
5028
5027
|
] })
|
|
5029
5028
|
] }) })
|
|
5030
5029
|
] }),
|
|
5031
|
-
m && B.length > 0 && /* @__PURE__ */ e(
|
|
5030
|
+
m && B.length > 0 && /* @__PURE__ */ e(Oi, { className: "border-yellow-500/40 bg-yellow-500/10 text-yellow-900 dark:text-yellow-100", children: /* @__PURE__ */ e(Mi, { children: /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs", children: B.map((w, I) => /* @__PURE__ */ e("li", { children: w.message }, `${w.type}-${I}`)) }) }) }),
|
|
5032
5031
|
f && !m && f.settings && /* @__PURE__ */ e("div", { className: "space-y-3", children: /* @__PURE__ */ e("div", { className: "px-2", children: F({
|
|
5033
5032
|
settingsSchema: f.settings,
|
|
5034
5033
|
settingsField: "settings",
|
|
@@ -5089,7 +5088,7 @@ function Hl() {
|
|
|
5089
5088
|
((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && (!m || C) && /* @__PURE__ */ e(fe, { children: r && /* @__PURE__ */ e(
|
|
5090
5089
|
kt,
|
|
5091
5090
|
{
|
|
5092
|
-
icon: /* @__PURE__ */ e(
|
|
5091
|
+
icon: /* @__PURE__ */ e(hc, { className: "h-3.5 w-3.5" }),
|
|
5093
5092
|
className: "h-9 w-full",
|
|
5094
5093
|
label: "Select Component",
|
|
5095
5094
|
options: (r == null ? void 0 : r.map((w) => ({
|
|
@@ -5140,10 +5139,10 @@ function Hl() {
|
|
|
5140
5139
|
f.docs.dataSchema && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
5141
5140
|
/* @__PURE__ */ e("h4", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: "Data Schema" }),
|
|
5142
5141
|
/* @__PURE__ */ e("div", { className: "prose prose-sm dark:prose-invert prose-pre:bg-muted prose-pre:text-xs max-w-none", children: /* @__PURE__ */ e(
|
|
5143
|
-
|
|
5142
|
+
Ii,
|
|
5144
5143
|
{
|
|
5145
|
-
remarkPlugins: [
|
|
5146
|
-
components:
|
|
5144
|
+
remarkPlugins: [Ei],
|
|
5145
|
+
components: rd,
|
|
5147
5146
|
children: f.docs.dataSchema
|
|
5148
5147
|
}
|
|
5149
5148
|
) })
|
|
@@ -5177,7 +5176,7 @@ function Hl() {
|
|
|
5177
5176
|
}
|
|
5178
5177
|
);
|
|
5179
5178
|
}
|
|
5180
|
-
function
|
|
5179
|
+
function id({
|
|
5181
5180
|
colorRanges: t,
|
|
5182
5181
|
setColorRanges: s
|
|
5183
5182
|
}) {
|
|
@@ -5259,7 +5258,7 @@ function rd({
|
|
|
5259
5258
|
] }, d))
|
|
5260
5259
|
] });
|
|
5261
5260
|
}
|
|
5262
|
-
function
|
|
5261
|
+
function od() {
|
|
5263
5262
|
var f, u, m, C, N;
|
|
5264
5263
|
const t = E((p) => p.card.preferences), s = E(
|
|
5265
5264
|
(p) => p.actions.setCardPreferences
|
|
@@ -5416,7 +5415,7 @@ function id() {
|
|
|
5416
5415
|
] }) }),
|
|
5417
5416
|
/* @__PURE__ */ e(Xt, { className: "my-3" }),
|
|
5418
5417
|
/* @__PURE__ */ e(
|
|
5419
|
-
|
|
5418
|
+
id,
|
|
5420
5419
|
{
|
|
5421
5420
|
colorRanges: d,
|
|
5422
5421
|
setColorRanges: r
|
|
@@ -5425,7 +5424,7 @@ function id() {
|
|
|
5425
5424
|
] })
|
|
5426
5425
|
] });
|
|
5427
5426
|
}
|
|
5428
|
-
const
|
|
5427
|
+
const cd = {
|
|
5429
5428
|
combo: {
|
|
5430
5429
|
label: "Combo Chart",
|
|
5431
5430
|
query: "SELECT x-axis, metric-1, metric-2, ... FROM table",
|
|
@@ -5691,9 +5690,9 @@ const od = {
|
|
|
5691
5690
|
}
|
|
5692
5691
|
};
|
|
5693
5692
|
function Yl(t) {
|
|
5694
|
-
return
|
|
5693
|
+
return cd[t];
|
|
5695
5694
|
}
|
|
5696
|
-
function
|
|
5695
|
+
function dd({
|
|
5697
5696
|
chartType: t,
|
|
5698
5697
|
showDocsLink: s = !0
|
|
5699
5698
|
}) {
|
|
@@ -5739,13 +5738,13 @@ function cd({
|
|
|
5739
5738
|
className: "inline-flex items-center gap-1.5 text-xs font-medium text-primary hover:underline",
|
|
5740
5739
|
children: [
|
|
5741
5740
|
"View documentation",
|
|
5742
|
-
/* @__PURE__ */ e(
|
|
5741
|
+
/* @__PURE__ */ e(Fi, { className: "h-3 w-3" })
|
|
5743
5742
|
]
|
|
5744
5743
|
}
|
|
5745
5744
|
)
|
|
5746
5745
|
] }) : null;
|
|
5747
5746
|
}
|
|
5748
|
-
function
|
|
5747
|
+
function ud({
|
|
5749
5748
|
chartType: t
|
|
5750
5749
|
}) {
|
|
5751
5750
|
return Yl(t) ? /* @__PURE__ */ a(Ra, { openDelay: 200, children: [
|
|
@@ -5764,7 +5763,7 @@ function dd({
|
|
|
5764
5763
|
side: "left",
|
|
5765
5764
|
align: "start",
|
|
5766
5765
|
sideOffset: 8,
|
|
5767
|
-
children: /* @__PURE__ */ e(
|
|
5766
|
+
children: /* @__PURE__ */ e(dd, { chartType: t })
|
|
5768
5767
|
}
|
|
5769
5768
|
)
|
|
5770
5769
|
] }) : null;
|
|
@@ -5775,13 +5774,13 @@ function Wa({
|
|
|
5775
5774
|
}) {
|
|
5776
5775
|
return /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
5777
5776
|
/* @__PURE__ */ e("h3", { className: "text-sm font-medium", children: s }),
|
|
5778
|
-
/* @__PURE__ */ e(
|
|
5777
|
+
/* @__PURE__ */ e(ud, { chartType: t })
|
|
5779
5778
|
] });
|
|
5780
5779
|
}
|
|
5781
|
-
function
|
|
5780
|
+
function md() {
|
|
5782
5781
|
return /* @__PURE__ */ a("div", { className: "space-y-6 px-6 py-4", children: [
|
|
5783
5782
|
/* @__PURE__ */ e(Wa, { chartType: "kpi" }),
|
|
5784
|
-
/* @__PURE__ */ e("section", { children: /* @__PURE__ */ e(
|
|
5783
|
+
/* @__PURE__ */ e("section", { children: /* @__PURE__ */ e(od, {}) })
|
|
5785
5784
|
] });
|
|
5786
5785
|
}
|
|
5787
5786
|
function $s({
|
|
@@ -5919,7 +5918,7 @@ function Wl() {
|
|
|
5919
5918
|
);
|
|
5920
5919
|
}) });
|
|
5921
5920
|
}
|
|
5922
|
-
const
|
|
5921
|
+
const hd = [
|
|
5923
5922
|
{
|
|
5924
5923
|
label: "Mercator",
|
|
5925
5924
|
value: "mercator"
|
|
@@ -5976,7 +5975,7 @@ const md = [
|
|
|
5976
5975
|
label: "Natural Earth 1",
|
|
5977
5976
|
value: "naturalEarth1"
|
|
5978
5977
|
}
|
|
5979
|
-
],
|
|
5978
|
+
], pd = [
|
|
5980
5979
|
"blues",
|
|
5981
5980
|
"brBG",
|
|
5982
5981
|
"buGn",
|
|
@@ -6015,11 +6014,11 @@ const md = [
|
|
|
6015
6014
|
"ylGnBu",
|
|
6016
6015
|
"ylOrBr",
|
|
6017
6016
|
"ylOrRd"
|
|
6018
|
-
],
|
|
6017
|
+
], fd = pd.map((t) => ({
|
|
6019
6018
|
label: t,
|
|
6020
6019
|
value: t
|
|
6021
6020
|
}));
|
|
6022
|
-
function
|
|
6021
|
+
function gd() {
|
|
6023
6022
|
var r, h, f, u, m, C, N, p, y, S, T, B, R, M, x, k, A, g;
|
|
6024
6023
|
const t = E((F) => F.card), s = (h = (r = t == null ? void 0 : t.preferences) == null ? void 0 : r.mapVisualOptions) == null ? void 0 : h.topoJsonUrl, [n, l] = _(
|
|
6025
6024
|
((u = (f = t == null ? void 0 : t.preferences) == null ? void 0 : f.mapVisualOptions) == null ? void 0 : u.customTopoJsonUrl) || ""
|
|
@@ -6111,7 +6110,7 @@ function fd() {
|
|
|
6111
6110
|
kt,
|
|
6112
6111
|
{
|
|
6113
6112
|
className: "h-9",
|
|
6114
|
-
options:
|
|
6113
|
+
options: hd,
|
|
6115
6114
|
value: ((p = (N = t.preferences) == null ? void 0 : N.mapVisualOptions) == null ? void 0 : p.projection) || "",
|
|
6116
6115
|
label: "Projection",
|
|
6117
6116
|
onValueChange: (F) => {
|
|
@@ -6133,7 +6132,7 @@ function fd() {
|
|
|
6133
6132
|
kt,
|
|
6134
6133
|
{
|
|
6135
6134
|
className: "h-9",
|
|
6136
|
-
options:
|
|
6135
|
+
options: fd,
|
|
6137
6136
|
value: ((S = (y = t.preferences) == null ? void 0 : y.mapVisualOptions) == null ? void 0 : S.colorScale) || "",
|
|
6138
6137
|
label: "Select Color Scale",
|
|
6139
6138
|
onValueChange: (F) => {
|
|
@@ -6238,7 +6237,7 @@ function Ql({ color: t, onColorChange: s, onClose: n }) {
|
|
|
6238
6237
|
const S = y.currentTarget.getBoundingClientRect(), T = Math.max(0, Math.min(1, (y.clientX - S.left) / S.width)), B = Math.max(0, Math.min(1, (y.clientY - S.top) / S.height)), R = T * 100, M = (1 - B) * 100;
|
|
6239
6238
|
i(R), r(M), C(l, R, M);
|
|
6240
6239
|
}, C = (y, S, T) => {
|
|
6241
|
-
const B =
|
|
6240
|
+
const B = bd(y, S, T), R = xd(B.r, B.g, B.b);
|
|
6242
6241
|
f(R);
|
|
6243
6242
|
}, N = (y) => {
|
|
6244
6243
|
if (f(y), /^#[0-9A-Fa-f]{6}$/.test(y)) {
|
|
@@ -6358,7 +6357,7 @@ function js(t) {
|
|
|
6358
6357
|
b: parseInt(s[3], 16)
|
|
6359
6358
|
} : null;
|
|
6360
6359
|
}
|
|
6361
|
-
function
|
|
6360
|
+
function xd(t, s, n) {
|
|
6362
6361
|
return "#" + ((1 << 24) + (t << 16) + (s << 8) + n).toString(16).slice(1);
|
|
6363
6362
|
}
|
|
6364
6363
|
function qs(t, s, n) {
|
|
@@ -6386,7 +6385,7 @@ function qs(t, s, n) {
|
|
|
6386
6385
|
l: Math.round(d * 100)
|
|
6387
6386
|
};
|
|
6388
6387
|
}
|
|
6389
|
-
function
|
|
6388
|
+
function bd(t, s, n) {
|
|
6390
6389
|
t /= 360, s /= 100, n /= 100;
|
|
6391
6390
|
let l, o, c;
|
|
6392
6391
|
if (s === 0)
|
|
@@ -6405,7 +6404,7 @@ const Ks = [
|
|
|
6405
6404
|
{ value: "green", color: "#16a34a", label: "Green" },
|
|
6406
6405
|
{ value: "red", color: "#dc2626", label: "Red" },
|
|
6407
6406
|
{ value: "neutral", color: "#6b7280", label: "Neutral" }
|
|
6408
|
-
],
|
|
6407
|
+
], yd = [
|
|
6409
6408
|
"#16a34a",
|
|
6410
6409
|
// green-600
|
|
6411
6410
|
"#dc2626",
|
|
@@ -6446,7 +6445,7 @@ function It({
|
|
|
6446
6445
|
}
|
|
6447
6446
|
) }),
|
|
6448
6447
|
/* @__PURE__ */ e(ht, { align: "start", className: "w-auto p-2", children: /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
6449
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-3 items-center justify-items-center gap-1", children:
|
|
6448
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-3 items-center justify-items-center gap-1", children: yd.map((r) => /* @__PURE__ */ e(
|
|
6450
6449
|
"button",
|
|
6451
6450
|
{
|
|
6452
6451
|
className: ae(
|
|
@@ -6496,14 +6495,14 @@ function It({
|
|
|
6496
6495
|
] })
|
|
6497
6496
|
] });
|
|
6498
6497
|
}
|
|
6499
|
-
const
|
|
6498
|
+
const Nd = [
|
|
6500
6499
|
"auto",
|
|
6501
6500
|
"number",
|
|
6502
6501
|
"currency",
|
|
6503
6502
|
"percent",
|
|
6504
6503
|
"scientific",
|
|
6505
6504
|
"date"
|
|
6506
|
-
],
|
|
6505
|
+
], vd = [
|
|
6507
6506
|
// 🌐 Global Reserve & Major Currencies
|
|
6508
6507
|
{ value: "USD", label: "USD - US Dollar" },
|
|
6509
6508
|
{ value: "EUR", label: "EUR - Euro" },
|
|
@@ -6556,7 +6555,7 @@ const yd = [
|
|
|
6556
6555
|
{ value: "VND", label: "VND - Vietnamese Dong" },
|
|
6557
6556
|
{ value: "TWD", label: "TWD - New Taiwan Dollar" },
|
|
6558
6557
|
{ value: "ILS", label: "ILS - Israeli New Shekel" }
|
|
6559
|
-
],
|
|
6558
|
+
], Cd = [
|
|
6560
6559
|
{ value: "en-US", label: "English (US)" },
|
|
6561
6560
|
{ value: "en-GB", label: "English (UK)" },
|
|
6562
6561
|
{ value: "en-IN", label: "English (India)" },
|
|
@@ -6573,7 +6572,7 @@ const yd = [
|
|
|
6573
6572
|
{ value: "hi-IN", label: "Hindi" },
|
|
6574
6573
|
{ value: "nl-NL", label: "Dutch" },
|
|
6575
6574
|
{ value: "sv-SE", label: "Swedish" }
|
|
6576
|
-
],
|
|
6575
|
+
], wd = (t) => t.charAt(0).toUpperCase() + t.slice(1);
|
|
6577
6576
|
function Qa({
|
|
6578
6577
|
formatOptions: t = {},
|
|
6579
6578
|
onFormatOptionsChange: s,
|
|
@@ -6596,7 +6595,7 @@ function Qa({
|
|
|
6596
6595
|
onValueChange: (d) => c("type", d),
|
|
6597
6596
|
children: [
|
|
6598
6597
|
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
6599
|
-
/* @__PURE__ */ e(ee, { children:
|
|
6598
|
+
/* @__PURE__ */ e(ee, { children: Nd.map((d) => /* @__PURE__ */ e(K, { value: d, className: "text-xs", children: d === "auto" ? "Auto (Default)" : wd(d) }, d)) })
|
|
6600
6599
|
]
|
|
6601
6600
|
}
|
|
6602
6601
|
)
|
|
@@ -6629,7 +6628,7 @@ function Qa({
|
|
|
6629
6628
|
onValueChange: (d) => c("currency", d),
|
|
6630
6629
|
children: [
|
|
6631
6630
|
/* @__PURE__ */ e(X, { className: "h-8 flex-1 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
6632
|
-
/* @__PURE__ */ e(ee, { children:
|
|
6631
|
+
/* @__PURE__ */ e(ee, { children: vd.map((d) => /* @__PURE__ */ e(
|
|
6633
6632
|
K,
|
|
6634
6633
|
{
|
|
6635
6634
|
value: d.value,
|
|
@@ -6661,7 +6660,7 @@ function Qa({
|
|
|
6661
6660
|
onValueChange: (d) => c("locale", d),
|
|
6662
6661
|
children: [
|
|
6663
6662
|
/* @__PURE__ */ e(X, { className: "h-8 flex-1 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
6664
|
-
/* @__PURE__ */ e(ee, { children:
|
|
6663
|
+
/* @__PURE__ */ e(ee, { children: Cd.map((d) => /* @__PURE__ */ e(
|
|
6665
6664
|
K,
|
|
6666
6665
|
{
|
|
6667
6666
|
value: d.value,
|
|
@@ -6740,10 +6739,10 @@ function Qa({
|
|
|
6740
6739
|
] })
|
|
6741
6740
|
] });
|
|
6742
6741
|
}
|
|
6743
|
-
function
|
|
6742
|
+
function Sd() {
|
|
6744
6743
|
const t = Se(
|
|
6745
6744
|
(d) => d.dashboard.filters
|
|
6746
|
-
), s = E((d) => d.frame), { setFrame: n } = de(), { columns: l } = va(), { assignFilter: o } =
|
|
6745
|
+
), s = E((d) => d.frame), { setFrame: n } = de(), { columns: l } = va(), { assignFilter: o } = Ri();
|
|
6747
6746
|
function c(d) {
|
|
6748
6747
|
const r = o(d, "frame");
|
|
6749
6748
|
n({ ...s, filterId: r });
|
|
@@ -6751,11 +6750,11 @@ function wd() {
|
|
|
6751
6750
|
const i = t == null ? void 0 : t.find((d) => d.id === s.filterId);
|
|
6752
6751
|
return /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
6753
6752
|
/* @__PURE__ */ e(P, { children: "Card Filter" }),
|
|
6754
|
-
/* @__PURE__ */ e(
|
|
6755
|
-
i && /* @__PURE__ */ e(
|
|
6753
|
+
/* @__PURE__ */ e(kd, { onSelect: c, columns: l }),
|
|
6754
|
+
i && /* @__PURE__ */ e(Li, { filter: i })
|
|
6756
6755
|
] });
|
|
6757
6756
|
}
|
|
6758
|
-
function
|
|
6757
|
+
function kd({
|
|
6759
6758
|
columns: t,
|
|
6760
6759
|
onSelect: s
|
|
6761
6760
|
}) {
|
|
@@ -6772,7 +6771,7 @@ function Sd({
|
|
|
6772
6771
|
className: "w-full justify-between font-normal",
|
|
6773
6772
|
children: [
|
|
6774
6773
|
o ? ((i = t.find((d) => d.name === o)) == null ? void 0 : i.label) || o : "Select Column...",
|
|
6775
|
-
/* @__PURE__ */ e(
|
|
6774
|
+
/* @__PURE__ */ e(Pi, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
6776
6775
|
]
|
|
6777
6776
|
}
|
|
6778
6777
|
) }),
|
|
@@ -6791,7 +6790,7 @@ function Sd({
|
|
|
6791
6790
|
children: [
|
|
6792
6791
|
d.label || d.name,
|
|
6793
6792
|
/* @__PURE__ */ e(
|
|
6794
|
-
|
|
6793
|
+
Vi,
|
|
6795
6794
|
{
|
|
6796
6795
|
className: ae(
|
|
6797
6796
|
"ml-auto h-4 w-4",
|
|
@@ -6807,18 +6806,18 @@ function Sd({
|
|
|
6807
6806
|
] }) })
|
|
6808
6807
|
] });
|
|
6809
6808
|
}
|
|
6810
|
-
const
|
|
6809
|
+
const Td = [
|
|
6811
6810
|
{ value: "difference", label: "Difference" },
|
|
6812
6811
|
{ value: "change", label: "Change (%)" },
|
|
6813
6812
|
{ value: "change_difference", label: "Change + Difference" },
|
|
6814
6813
|
{ value: "ratio", label: "Ratio" }
|
|
6815
|
-
],
|
|
6814
|
+
], Ad = [
|
|
6816
6815
|
{ value: "arrow_badge", label: "Arrow + Badge" },
|
|
6817
6816
|
{ value: "arrow", label: "Arrow Only" },
|
|
6818
6817
|
{ value: "badge", label: "Badge Only" },
|
|
6819
6818
|
{ value: "none", label: "None" }
|
|
6820
6819
|
];
|
|
6821
|
-
function
|
|
6820
|
+
function Dd({
|
|
6822
6821
|
cardType: t = "table"
|
|
6823
6822
|
}) {
|
|
6824
6823
|
var f, u, m, C, N;
|
|
@@ -6869,7 +6868,7 @@ function Ad({
|
|
|
6869
6868
|
}),
|
|
6870
6869
|
children: [
|
|
6871
6870
|
/* @__PURE__ */ e(X, { className: "h-7 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
6872
|
-
/* @__PURE__ */ e(ee, { children:
|
|
6871
|
+
/* @__PURE__ */ e(ee, { children: Td.map((p) => /* @__PURE__ */ e(
|
|
6873
6872
|
K,
|
|
6874
6873
|
{
|
|
6875
6874
|
value: p.value,
|
|
@@ -6904,7 +6903,7 @@ function Ad({
|
|
|
6904
6903
|
}),
|
|
6905
6904
|
children: [
|
|
6906
6905
|
/* @__PURE__ */ e(X, { className: "h-7 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
6907
|
-
/* @__PURE__ */ e(ee, { children:
|
|
6906
|
+
/* @__PURE__ */ e(ee, { children: Ad.map((p) => /* @__PURE__ */ e(
|
|
6908
6907
|
K,
|
|
6909
6908
|
{
|
|
6910
6909
|
value: p.value,
|
|
@@ -6977,7 +6976,7 @@ function Ad({
|
|
|
6977
6976
|
/* @__PURE__ */ e(Ae, { children: "Click Filters" }),
|
|
6978
6977
|
/* @__PURE__ */ a(De, { className: "space-y-4 px-2", children: [
|
|
6979
6978
|
/* @__PURE__ */ e(Wl, {}),
|
|
6980
|
-
/* @__PURE__ */ e(
|
|
6979
|
+
/* @__PURE__ */ e(Sd, {})
|
|
6981
6980
|
] })
|
|
6982
6981
|
] })
|
|
6983
6982
|
] }),
|
|
@@ -6994,7 +6993,7 @@ function Ad({
|
|
|
6994
6993
|
] })
|
|
6995
6994
|
] });
|
|
6996
6995
|
}
|
|
6997
|
-
function
|
|
6996
|
+
function Id() {
|
|
6998
6997
|
var l;
|
|
6999
6998
|
const t = E((o) => o.card.preferences), { setCardPreferences: s } = E((o) => o.actions);
|
|
7000
6999
|
function n(o) {
|
|
@@ -7026,16 +7025,16 @@ function Dd() {
|
|
|
7026
7025
|
}
|
|
7027
7026
|
);
|
|
7028
7027
|
}
|
|
7029
|
-
function
|
|
7028
|
+
function Ed() {
|
|
7030
7029
|
return /* @__PURE__ */ a("div", { className: "space-y-4 px-6 py-4", children: [
|
|
7031
7030
|
/* @__PURE__ */ e(Wa, { chartType: "text" }),
|
|
7032
7031
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
7033
7032
|
/* @__PURE__ */ e(P, { children: "Text Type" }),
|
|
7034
|
-
/* @__PURE__ */ e(
|
|
7033
|
+
/* @__PURE__ */ e(Id, {})
|
|
7035
7034
|
] })
|
|
7036
7035
|
] });
|
|
7037
7036
|
}
|
|
7038
|
-
const
|
|
7037
|
+
const Od = [
|
|
7039
7038
|
"#000000",
|
|
7040
7039
|
// black
|
|
7041
7040
|
"#ffffff",
|
|
@@ -7067,7 +7066,7 @@ const Ed = [
|
|
|
7067
7066
|
"#fbbf24"
|
|
7068
7067
|
// yellow-400
|
|
7069
7068
|
];
|
|
7070
|
-
function
|
|
7069
|
+
function Md() {
|
|
7071
7070
|
var M, x, k, A, g, F, b, D, O, z;
|
|
7072
7071
|
const t = E((w) => w.card), s = E((w) => {
|
|
7073
7072
|
var I;
|
|
@@ -7119,7 +7118,7 @@ function Od() {
|
|
|
7119
7118
|
(x = t == null ? void 0 : t.config) == null ? void 0 : x.pivotByColumns,
|
|
7120
7119
|
(k = t == null ? void 0 : t.config) == null ? void 0 : k.metricColumns,
|
|
7121
7120
|
t == null ? void 0 : t.type
|
|
7122
|
-
]), N = ie(() =>
|
|
7121
|
+
]), N = ie(() => Bi(), []);
|
|
7123
7122
|
be(() => {
|
|
7124
7123
|
const w = {};
|
|
7125
7124
|
C.forEach((I, v) => {
|
|
@@ -7188,7 +7187,7 @@ function Od() {
|
|
|
7188
7187
|
}, R = Object.keys(((z = s == null ? void 0 : s.colorConfig) == null ? void 0 : z.segments) || {}).length > 0;
|
|
7189
7188
|
return /* @__PURE__ */ a(Te, { value: "colors", className: "border-b-0", children: [
|
|
7190
7189
|
/* @__PURE__ */ e(Ae, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
7191
|
-
/* @__PURE__ */ e(
|
|
7190
|
+
/* @__PURE__ */ e(Cc, { className: "h-4 w-4 text-muted-foreground" }),
|
|
7192
7191
|
/* @__PURE__ */ e("span", { children: "Colors" })
|
|
7193
7192
|
] }) }),
|
|
7194
7193
|
/* @__PURE__ */ e(De, { className: "", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
@@ -7204,7 +7203,7 @@ function Od() {
|
|
|
7204
7203
|
}
|
|
7205
7204
|
) }) }),
|
|
7206
7205
|
/* @__PURE__ */ e("div", { className: "max-h-[200px] space-y-2 overflow-y-auto pr-1", children: C.map((w, I) => {
|
|
7207
|
-
const v =
|
|
7206
|
+
const v = zi(d[w], I), V = !v;
|
|
7208
7207
|
return /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
7209
7208
|
/* @__PURE__ */ a(
|
|
7210
7209
|
ut,
|
|
@@ -7243,7 +7242,7 @@ function Od() {
|
|
|
7243
7242
|
] }),
|
|
7244
7243
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
7245
7244
|
/* @__PURE__ */ e("p", { className: "text-xs font-medium text-muted-foreground", children: "Popular Colors" }),
|
|
7246
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children:
|
|
7245
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children: Od.map((L, j) => /* @__PURE__ */ e(
|
|
7247
7246
|
"button",
|
|
7248
7247
|
{
|
|
7249
7248
|
className: ae(
|
|
@@ -7618,14 +7617,14 @@ function fn(t, s, n) {
|
|
|
7618
7617
|
}
|
|
7619
7618
|
return "";
|
|
7620
7619
|
}
|
|
7621
|
-
function
|
|
7620
|
+
function Fd() {
|
|
7622
7621
|
const t = E((r) => r.card), s = E((r) => {
|
|
7623
7622
|
var h;
|
|
7624
7623
|
return (h = r.card) == null ? void 0 : h.preferences;
|
|
7625
7624
|
}), { setCardPreferences: n, updateCardInFrame: l } = de(), o = st();
|
|
7626
7625
|
if (!t || ["tornado", "pyramid", "kpi", "treemap"].includes(o))
|
|
7627
7626
|
return null;
|
|
7628
|
-
const c =
|
|
7627
|
+
const c = $i.getAxisInfo(
|
|
7629
7628
|
o,
|
|
7630
7629
|
s
|
|
7631
7630
|
);
|
|
@@ -7697,16 +7696,16 @@ function Md() {
|
|
|
7697
7696
|
] }) })
|
|
7698
7697
|
] });
|
|
7699
7698
|
}
|
|
7700
|
-
function
|
|
7699
|
+
function Rd() {
|
|
7701
7700
|
const t = E((u) => u.card), s = st(), n = E(
|
|
7702
7701
|
(u) => {
|
|
7703
7702
|
var m, C, N, p;
|
|
7704
7703
|
return (p = (N = (C = (m = u.card) == null ? void 0 : m.preferences) == null ? void 0 : C.chartOptions) == null ? void 0 : N.plugins) == null ? void 0 : p.legend;
|
|
7705
7704
|
}
|
|
7706
7705
|
), { setLegendOptions: l } = de();
|
|
7707
|
-
if (!t ||
|
|
7706
|
+
if (!t || !ji(s))
|
|
7708
7707
|
return null;
|
|
7709
|
-
const o =
|
|
7708
|
+
const o = qi(s), c = (o == null ? void 0 : o.display) ?? !0, i = (o == null ? void 0 : o.position) ?? "top", d = (o == null ? void 0 : o.align) ?? "center", r = (u, m) => {
|
|
7710
7709
|
const C = {
|
|
7711
7710
|
...n,
|
|
7712
7711
|
[u]: m
|
|
@@ -7715,7 +7714,7 @@ function Fd() {
|
|
|
7715
7714
|
}, h = ["top", "bottom", "left", "right"], f = ["start", "center", "end"];
|
|
7716
7715
|
return /* @__PURE__ */ a(Te, { value: "legend", className: "border-b-0", children: [
|
|
7717
7716
|
/* @__PURE__ */ e(Ae, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
7718
|
-
/* @__PURE__ */ e(
|
|
7717
|
+
/* @__PURE__ */ e(xc, { className: "h-4 w-4 text-muted-foreground" }),
|
|
7719
7718
|
/* @__PURE__ */ e("span", { children: "Legend" })
|
|
7720
7719
|
] }) }),
|
|
7721
7720
|
/* @__PURE__ */ e(De, { className: "pt-2", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
@@ -7762,7 +7761,7 @@ function Fd() {
|
|
|
7762
7761
|
] }) })
|
|
7763
7762
|
] });
|
|
7764
7763
|
}
|
|
7765
|
-
function
|
|
7764
|
+
function Ld() {
|
|
7766
7765
|
var I, v, V, L, j, J, $, H, re, ne, ce;
|
|
7767
7766
|
const t = E((G) => G.card), s = st(), n = E(
|
|
7768
7767
|
(G) => {
|
|
@@ -7773,9 +7772,9 @@ function Rd() {
|
|
|
7773
7772
|
var le;
|
|
7774
7773
|
return (le = G.card) == null ? void 0 : le.preferences;
|
|
7775
7774
|
}), { setCardPreferences: o, updateCardInFrame: c } = de();
|
|
7776
|
-
if (!t || !
|
|
7775
|
+
if (!t || !Ki(s))
|
|
7777
7776
|
return null;
|
|
7778
|
-
const i = s === "bullet" ? ((I = l == null ? void 0 : l.bulletConfig) == null ? void 0 : I.orientation) ?? (((v = l == null ? void 0 : l.chartOptions) == null ? void 0 : v.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, d = i != null ? i === "horizontal" : ((V = l == null ? void 0 : l.chartOptions) == null ? void 0 : V.indexAxis) === "y", r = s === "stackedBar" || s === "stackedLine", h = s === "pie" || s === "doughnut" || s === "polarArea" || s === "funnel", f = !h, u = s === "bubble" || s === "scatter", m = (j = (L = l == null ? void 0 : l.chartOptions) == null ? void 0 : L.plugins) == null ? void 0 : j.datalabels, C = (m == null ? void 0 : m.display) !== !1 && ((m == null ? void 0 : m.anchor) || (m == null ? void 0 : m.align)), N =
|
|
7777
|
+
const i = s === "bullet" ? ((I = l == null ? void 0 : l.bulletConfig) == null ? void 0 : I.orientation) ?? (((v = l == null ? void 0 : l.chartOptions) == null ? void 0 : v.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, d = i != null ? i === "horizontal" : ((V = l == null ? void 0 : l.chartOptions) == null ? void 0 : V.indexAxis) === "y", r = s === "stackedBar" || s === "stackedLine", h = s === "pie" || s === "doughnut" || s === "polarArea" || s === "funnel", f = !h, u = s === "bubble" || s === "scatter", m = (j = (L = l == null ? void 0 : l.chartOptions) == null ? void 0 : L.plugins) == null ? void 0 : j.datalabels, C = (m == null ? void 0 : m.display) !== !1 && ((m == null ? void 0 : m.anchor) || (m == null ? void 0 : m.align)), N = Gi(
|
|
7779
7778
|
s,
|
|
7780
7779
|
t.preferences
|
|
7781
7780
|
), p = n ?? N, y = (N == null ? void 0 : N.enabled) ?? C ?? !1, S = (n == null ? void 0 : n.enabled) !== void 0 ? n.enabled : y, T = (G, le) => {
|
|
@@ -7866,7 +7865,7 @@ function Rd() {
|
|
|
7866
7865
|
];
|
|
7867
7866
|
return /* @__PURE__ */ a(Te, { value: "data-labels", className: "border-b-0", children: [
|
|
7868
7867
|
/* @__PURE__ */ e(Ae, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
7869
|
-
/* @__PURE__ */ e(
|
|
7868
|
+
/* @__PURE__ */ e(Ic, { className: "h-4 w-4 text-muted-foreground" }),
|
|
7870
7869
|
/* @__PURE__ */ e("span", { children: "Data Labels" })
|
|
7871
7870
|
] }) }),
|
|
7872
7871
|
/* @__PURE__ */ e(De, { className: "pt-2", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
@@ -8105,7 +8104,7 @@ Difference: Primary - Secondary`,
|
|
|
8105
8104
|
example: "You've achieved 80% of your sales quota."
|
|
8106
8105
|
}
|
|
8107
8106
|
};
|
|
8108
|
-
function
|
|
8107
|
+
function Pd() {
|
|
8109
8108
|
var m, C, N, p, y, S, T, B, R, M;
|
|
8110
8109
|
const t = E((x) => x.card), { setCardPreferences: s } = de(), n = st(), l = ((m = t.config) == null ? void 0 : m.metricColumns) || [], o = ((C = t.config) == null ? void 0 : C.groupByColumns) || [], c = l.length === 2 && o.length === 0, i = l.some(
|
|
8111
8110
|
(x) => x.comparisonType && x.comparisonType !== "none"
|
|
@@ -8445,7 +8444,7 @@ function Ld() {
|
|
|
8445
8444
|
] })
|
|
8446
8445
|
] });
|
|
8447
8446
|
}
|
|
8448
|
-
function
|
|
8447
|
+
function Vd() {
|
|
8449
8448
|
var c, i;
|
|
8450
8449
|
const t = E((d) => d.card), { setCardPreferences: s } = de();
|
|
8451
8450
|
if (st() !== "kpi")
|
|
@@ -8476,7 +8475,7 @@ function Pd() {
|
|
|
8476
8475
|
) })
|
|
8477
8476
|
] });
|
|
8478
8477
|
}
|
|
8479
|
-
function
|
|
8478
|
+
function Bd() {
|
|
8480
8479
|
var c;
|
|
8481
8480
|
const t = E((i) => {
|
|
8482
8481
|
var d;
|
|
@@ -8499,7 +8498,7 @@ function Vd() {
|
|
|
8499
8498
|
};
|
|
8500
8499
|
return /* @__PURE__ */ a(Te, { value: "treemap-color-mode", className: "border-none", children: [
|
|
8501
8500
|
/* @__PURE__ */ e(Ae, { className: "flex w-full items-center gap-2 py-3 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
8502
|
-
/* @__PURE__ */ e(
|
|
8501
|
+
/* @__PURE__ */ e(Ui, { className: "h-4 w-4 text-muted-foreground" }),
|
|
8503
8502
|
/* @__PURE__ */ e("span", { children: "Treemap Colors" })
|
|
8504
8503
|
] }) }),
|
|
8505
8504
|
/* @__PURE__ */ e(De, { className: "space-y-4 border-t border-border bg-background/50 px-3 py-4 text-sm", children: /* @__PURE__ */ a(
|
|
@@ -8542,8 +8541,8 @@ function Vd() {
|
|
|
8542
8541
|
) })
|
|
8543
8542
|
] });
|
|
8544
8543
|
}
|
|
8545
|
-
const
|
|
8546
|
-
function
|
|
8544
|
+
const zd = Object.keys(Nl);
|
|
8545
|
+
function $d() {
|
|
8547
8546
|
const t = E((m) => m.card), s = E((m) => {
|
|
8548
8547
|
var C;
|
|
8549
8548
|
return (C = m.card) == null ? void 0 : C.preferences;
|
|
@@ -8583,7 +8582,7 @@ function zd() {
|
|
|
8583
8582
|
onValueChange: (m) => h(m ?? "blue"),
|
|
8584
8583
|
className: "space-y-3",
|
|
8585
8584
|
children: [
|
|
8586
|
-
|
|
8585
|
+
zd.map((m) => {
|
|
8587
8586
|
const C = Nl[m];
|
|
8588
8587
|
return /* @__PURE__ */ a(
|
|
8589
8588
|
"div",
|
|
@@ -8667,7 +8666,7 @@ function _s(t) {
|
|
|
8667
8666
|
const s = { ...t };
|
|
8668
8667
|
return s.targetMetricKey || delete s.targetMetricKey, s.comparativeMetricKey || delete s.comparativeMetricKey, !s.targetValue && s.targetValue !== 0 && delete s.targetValue, (!s.rangeKeys || Object.keys(s.rangeKeys).length === 0) && delete s.rangeKeys, (!s.ranges || Object.keys(s.ranges).length === 0) && delete s.ranges, (!s.rangeLabels || Object.keys(s.rangeLabels).length === 0) && delete s.rangeLabels, s;
|
|
8669
8668
|
}
|
|
8670
|
-
function
|
|
8669
|
+
function jd() {
|
|
8671
8670
|
var O, z;
|
|
8672
8671
|
const t = E((w) => w.card.preferences), s = E((w) => w.card), n = E((w) => w.isDevMode), { setCardPreferences: l, setChartOrientation: o } = de(), c = ie(
|
|
8673
8672
|
() => (t == null ? void 0 : t.bulletConfig) || {},
|
|
@@ -8808,7 +8807,7 @@ function $d() {
|
|
|
8808
8807
|
};
|
|
8809
8808
|
return /* @__PURE__ */ a(Te, { value: "bullet-config", className: "border-b-0", children: [
|
|
8810
8809
|
/* @__PURE__ */ e(Ae, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
8811
|
-
/* @__PURE__ */ e(
|
|
8810
|
+
/* @__PURE__ */ e(_i, { className: "h-4 w-4 text-muted-foreground" }),
|
|
8812
8811
|
/* @__PURE__ */ e("span", { children: "Bullet Chart" })
|
|
8813
8812
|
] }) }),
|
|
8814
8813
|
/* @__PURE__ */ a(De, { className: "space-y-6 border-t border-border/50 py-4", children: [
|
|
@@ -9041,7 +9040,7 @@ function Js(t) {
|
|
|
9041
9040
|
if (s.xMetricKey || delete s.xMetricKey, s.yMetricKey || delete s.yMetricKey, s.radiusMetricKey || delete s.radiusMetricKey, s.labelKey || delete s.labelKey, s.groupKey || delete s.groupKey, s.enableGrouping === void 0 && delete s.enableGrouping, s.radiusScale || delete s.radiusScale, s.fixedRadius === void 0 && delete s.fixedRadius, s.minRadius === void 0 && delete s.minRadius, s.maxRadius === void 0 && delete s.maxRadius, Object.keys(s).length !== 0)
|
|
9042
9041
|
return s;
|
|
9043
9042
|
}
|
|
9044
|
-
function
|
|
9043
|
+
function qd() {
|
|
9045
9044
|
var M, x, k, A, g, F, b, D, O, z, w, I;
|
|
9046
9045
|
const t = E((v) => v.card.preferences), s = E((v) => v.card), n = st(), l = E((v) => v.isDevMode), { setCardPreferences: o, updateCardInFrame: c } = de(), i = n === "bubble", d = n === "scatter", r = ie(
|
|
9047
9046
|
() => (t == null ? void 0 : t.bubbleScatterConfig) || {},
|
|
@@ -9111,7 +9110,7 @@ function jd() {
|
|
|
9111
9110
|
};
|
|
9112
9111
|
return !i && !d ? null : /* @__PURE__ */ a(Te, { value: "bubble-scatter-config", children: [
|
|
9113
9112
|
/* @__PURE__ */ e(Ae, { className: "py-2 text-sm", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
9114
|
-
/* @__PURE__ */ e(i ?
|
|
9113
|
+
/* @__PURE__ */ e(i ? Ji : Hi, { className: "h-4 w-4" }),
|
|
9115
9114
|
/* @__PURE__ */ a("span", { children: [
|
|
9116
9115
|
i ? "Bubble" : "Scatter",
|
|
9117
9116
|
" Configuration"
|
|
@@ -9423,7 +9422,7 @@ function jd() {
|
|
|
9423
9422
|
] })
|
|
9424
9423
|
] });
|
|
9425
9424
|
}
|
|
9426
|
-
const
|
|
9425
|
+
const Kd = [
|
|
9427
9426
|
{
|
|
9428
9427
|
value: "percentOfTotal",
|
|
9429
9428
|
label: "% of Total",
|
|
@@ -9435,7 +9434,7 @@ const qd = [
|
|
|
9435
9434
|
description: "First stage = 100%, others relative to first stage"
|
|
9436
9435
|
}
|
|
9437
9436
|
];
|
|
9438
|
-
function
|
|
9437
|
+
function Gd() {
|
|
9439
9438
|
const t = E((m) => m.card), s = E((m) => {
|
|
9440
9439
|
var C;
|
|
9441
9440
|
return (C = m.card) == null ? void 0 : C.preferences;
|
|
@@ -9469,7 +9468,7 @@ function Kd() {
|
|
|
9469
9468
|
value: c,
|
|
9470
9469
|
onValueChange: (m) => h(m),
|
|
9471
9470
|
className: "space-y-2",
|
|
9472
|
-
children:
|
|
9471
|
+
children: Kd.map((m) => /* @__PURE__ */ a(
|
|
9473
9472
|
"div",
|
|
9474
9473
|
{
|
|
9475
9474
|
className: "flex items-start gap-2 rounded-md border border-border px-3 py-2",
|
|
@@ -9546,10 +9545,10 @@ function Kd() {
|
|
|
9546
9545
|
] }) : null;
|
|
9547
9546
|
}
|
|
9548
9547
|
function Xa() {
|
|
9549
|
-
const t = E((c) => c.card), { data: s } = nt(t), { keys: n } = Nn((s == null ? void 0 : s.records) || []), l = n.slice(1).filter((c) => !
|
|
9548
|
+
const t = E((c) => c.card), { data: s } = nt(t), { keys: n } = Nn((s == null ? void 0 : s.records) || []), l = n.slice(1).filter((c) => !Yi.includes(c));
|
|
9550
9549
|
let o = l;
|
|
9551
9550
|
if (["stackedBar", "stackedLine"].includes(t.type)) {
|
|
9552
|
-
const c =
|
|
9551
|
+
const c = Wi({
|
|
9553
9552
|
dataArray: (s == null ? void 0 : s.records) || [],
|
|
9554
9553
|
groupKey: n[0],
|
|
9555
9554
|
pivotKey: n[1],
|
|
@@ -9564,7 +9563,7 @@ function Xa() {
|
|
|
9564
9563
|
defaultMetricKeys: l
|
|
9565
9564
|
};
|
|
9566
9565
|
}
|
|
9567
|
-
const
|
|
9566
|
+
const Ud = [
|
|
9568
9567
|
{ value: "USD", label: "USD - US Dollar" },
|
|
9569
9568
|
{ value: "EUR", label: "EUR - Euro" },
|
|
9570
9569
|
{ value: "GBP", label: "GBP - British Pound" },
|
|
@@ -9573,7 +9572,7 @@ const Gd = [
|
|
|
9573
9572
|
{ value: "INR", label: "INR - Indian Rupee" },
|
|
9574
9573
|
{ value: "CAD", label: "CAD - Canadian Dollar" },
|
|
9575
9574
|
{ value: "AUD", label: "AUD - Australian Dollar" }
|
|
9576
|
-
],
|
|
9575
|
+
], _d = [
|
|
9577
9576
|
{ value: "en-US", label: "English (US)" },
|
|
9578
9577
|
{ value: "en-GB", label: "English (UK)" },
|
|
9579
9578
|
{ value: "de-DE", label: "German" },
|
|
@@ -9582,7 +9581,7 @@ const Gd = [
|
|
|
9582
9581
|
{ value: "it-IT", label: "Italian" },
|
|
9583
9582
|
{ value: "pt-BR", label: "Portuguese (Brazil)" },
|
|
9584
9583
|
{ value: "zh-CN", label: "Chinese (Simplified)" }
|
|
9585
|
-
],
|
|
9584
|
+
], Jd = ["center", "start", "end"], Hd = ["center", "start", "end", "top", "bottom"];
|
|
9586
9585
|
function Za({
|
|
9587
9586
|
config: t,
|
|
9588
9587
|
onChange: s,
|
|
@@ -9642,7 +9641,7 @@ function Za({
|
|
|
9642
9641
|
onValueChange: (R) => r("anchor", R),
|
|
9643
9642
|
children: [
|
|
9644
9643
|
/* @__PURE__ */ e(X, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
9645
|
-
/* @__PURE__ */ e(ee, { children:
|
|
9644
|
+
/* @__PURE__ */ e(ee, { children: Jd.map((R) => /* @__PURE__ */ e(K, { value: R, className: "text-xs", children: it(R) }, R)) })
|
|
9646
9645
|
]
|
|
9647
9646
|
}
|
|
9648
9647
|
)
|
|
@@ -9656,7 +9655,7 @@ function Za({
|
|
|
9656
9655
|
onValueChange: (R) => r("align", R),
|
|
9657
9656
|
children: [
|
|
9658
9657
|
/* @__PURE__ */ e(X, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
9659
|
-
/* @__PURE__ */ e(ee, { children:
|
|
9658
|
+
/* @__PURE__ */ e(ee, { children: Hd.map((R) => /* @__PURE__ */ e(K, { value: R, className: "text-xs", children: it(R) }, R)) })
|
|
9660
9659
|
]
|
|
9661
9660
|
}
|
|
9662
9661
|
)
|
|
@@ -9701,7 +9700,7 @@ function Za({
|
|
|
9701
9700
|
onValueChange: (R) => f("currency", R),
|
|
9702
9701
|
children: [
|
|
9703
9702
|
/* @__PURE__ */ e(X, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
9704
|
-
/* @__PURE__ */ e(ee, { children:
|
|
9703
|
+
/* @__PURE__ */ e(ee, { children: Ud.map((R) => /* @__PURE__ */ e(
|
|
9705
9704
|
K,
|
|
9706
9705
|
{
|
|
9707
9706
|
value: R.value,
|
|
@@ -9733,7 +9732,7 @@ function Za({
|
|
|
9733
9732
|
onValueChange: (R) => f("locale", R),
|
|
9734
9733
|
children: [
|
|
9735
9734
|
/* @__PURE__ */ e(X, { className: "h-7 w-28 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
9736
|
-
/* @__PURE__ */ e(ee, { children:
|
|
9735
|
+
/* @__PURE__ */ e(ee, { children: _d.map((R) => /* @__PURE__ */ e(
|
|
9737
9736
|
K,
|
|
9738
9737
|
{
|
|
9739
9738
|
value: R.value,
|
|
@@ -9819,10 +9818,10 @@ function Za({
|
|
|
9819
9818
|
] })
|
|
9820
9819
|
] });
|
|
9821
9820
|
}
|
|
9822
|
-
const
|
|
9821
|
+
const Yd = [
|
|
9823
9822
|
{ type: "bar", icon: Hn, label: "Bar" },
|
|
9824
9823
|
{ type: "line", icon: Jn, label: "Line" }
|
|
9825
|
-
],
|
|
9824
|
+
], Wd = [0, 1, 2, 3, 4, 5, 6, 8, 10], Qd = [
|
|
9826
9825
|
{ value: "circle", label: "Circle ●" },
|
|
9827
9826
|
{ value: "rect", label: "Square ■" },
|
|
9828
9827
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -9833,13 +9832,13 @@ const Hd = [
|
|
|
9833
9832
|
{ value: "star", label: "Star ★" },
|
|
9834
9833
|
{ value: "dash", label: "Dash —" },
|
|
9835
9834
|
{ value: "line", label: "Line │" }
|
|
9836
|
-
],
|
|
9835
|
+
], Xd = [
|
|
9837
9836
|
{ value: "solid", label: "Solid ───" },
|
|
9838
9837
|
{ value: "dashed", label: "Dashed - - -" },
|
|
9839
9838
|
{ value: "dotted", label: "Dotted ···" },
|
|
9840
9839
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
9841
9840
|
];
|
|
9842
|
-
function
|
|
9841
|
+
function Zd() {
|
|
9843
9842
|
return E((s) => {
|
|
9844
9843
|
var n;
|
|
9845
9844
|
return (n = s.card) == null ? void 0 : n.type;
|
|
@@ -9848,14 +9847,14 @@ function Xd() {
|
|
|
9848
9847
|
/* @__PURE__ */ e(ma, { className: "h-4 w-4 text-muted-foreground" }),
|
|
9849
9848
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
9850
9849
|
] }) }),
|
|
9851
|
-
/* @__PURE__ */ e(De, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
9850
|
+
/* @__PURE__ */ e(De, { className: "pt-2", children: /* @__PURE__ */ e(eu, {}) })
|
|
9852
9851
|
] });
|
|
9853
9852
|
}
|
|
9854
|
-
function
|
|
9853
|
+
function eu() {
|
|
9855
9854
|
const { transformedMetricKeys: t } = Xa();
|
|
9856
|
-
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(
|
|
9855
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(tu, { metricKey: s, idx: n }, s)) });
|
|
9857
9856
|
}
|
|
9858
|
-
function
|
|
9857
|
+
function tu({ metricKey: t, idx: s }) {
|
|
9859
9858
|
var S;
|
|
9860
9859
|
const [n, l] = _(!1), o = E((T) => {
|
|
9861
9860
|
var B;
|
|
@@ -9952,7 +9951,7 @@ function eu({ metricKey: t, idx: s }) {
|
|
|
9952
9951
|
/* @__PURE__ */ a("div", { className: "flex items-end gap-4", children: [
|
|
9953
9952
|
/* @__PURE__ */ a("div", { className: "flex-1 space-y-1.5", children: [
|
|
9954
9953
|
/* @__PURE__ */ e(P, { className: "text-xs text-muted-foreground", children: "Chart Type" }),
|
|
9955
|
-
/* @__PURE__ */ e("div", { className: "flex gap-2", children:
|
|
9954
|
+
/* @__PURE__ */ e("div", { className: "flex gap-2", children: Yd.map(({ type: T, icon: B, label: R }) => /* @__PURE__ */ a(
|
|
9956
9955
|
"button",
|
|
9957
9956
|
{
|
|
9958
9957
|
onClick: () => C(T),
|
|
@@ -9998,7 +9997,7 @@ function eu({ metricKey: t, idx: s }) {
|
|
|
9998
9997
|
onValueChange: (T) => m({ lineStyle: T }),
|
|
9999
9998
|
children: [
|
|
10000
9999
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10001
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10000
|
+
/* @__PURE__ */ e(ee, { children: Xd.map(({ value: T, label: B }) => /* @__PURE__ */ e(
|
|
10002
10001
|
K,
|
|
10003
10002
|
{
|
|
10004
10003
|
value: T,
|
|
@@ -10020,7 +10019,7 @@ function eu({ metricKey: t, idx: s }) {
|
|
|
10020
10019
|
onValueChange: (T) => m({ pointRadius: Number(T) }),
|
|
10021
10020
|
children: [
|
|
10022
10021
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10023
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10022
|
+
/* @__PURE__ */ e(ee, { children: Wd.map((T) => /* @__PURE__ */ e(
|
|
10024
10023
|
K,
|
|
10025
10024
|
{
|
|
10026
10025
|
value: String(T),
|
|
@@ -10042,7 +10041,7 @@ function eu({ metricKey: t, idx: s }) {
|
|
|
10042
10041
|
onValueChange: (T) => m({ pointStyle: T }),
|
|
10043
10042
|
children: [
|
|
10044
10043
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10045
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10044
|
+
/* @__PURE__ */ e(ee, { children: Qd.map(({ value: T, label: B }) => /* @__PURE__ */ e(
|
|
10046
10045
|
K,
|
|
10047
10046
|
{
|
|
10048
10047
|
value: T,
|
|
@@ -10089,7 +10088,7 @@ const gn = [
|
|
|
10089
10088
|
{ value: "-1", label: "Previous Series", description: "Fill to the series below" },
|
|
10090
10089
|
{ value: "+1", label: "Next Series", description: "Fill to the series above" },
|
|
10091
10090
|
{ value: "false", label: "No Fill (Line)", description: "Show as line without fill" }
|
|
10092
|
-
],
|
|
10091
|
+
], au = [0, 1, 2, 3, 4, 5, 6, 8, 10], nu = [
|
|
10093
10092
|
{ value: "circle", label: "Circle ●" },
|
|
10094
10093
|
{ value: "rect", label: "Square ■" },
|
|
10095
10094
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -10100,16 +10099,16 @@ const gn = [
|
|
|
10100
10099
|
{ value: "star", label: "Star ★" },
|
|
10101
10100
|
{ value: "dash", label: "Dash —" },
|
|
10102
10101
|
{ value: "line", label: "Line │" }
|
|
10103
|
-
],
|
|
10102
|
+
], su = [
|
|
10104
10103
|
{ value: "solid", label: "Solid ───" },
|
|
10105
10104
|
{ value: "dashed", label: "Dashed - - -" },
|
|
10106
10105
|
{ value: "dotted", label: "Dotted ···" },
|
|
10107
10106
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
10108
10107
|
];
|
|
10109
|
-
function
|
|
10108
|
+
function lu(t) {
|
|
10110
10109
|
return t == null ? "origin" : t === !1 ? "false" : t;
|
|
10111
10110
|
}
|
|
10112
|
-
function
|
|
10111
|
+
function ru() {
|
|
10113
10112
|
const t = E((s) => {
|
|
10114
10113
|
var n;
|
|
10115
10114
|
return (n = s.card) == null ? void 0 : n.type;
|
|
@@ -10119,14 +10118,14 @@ function lu() {
|
|
|
10119
10118
|
/* @__PURE__ */ e(ma, { className: "h-4 w-4 text-muted-foreground" }),
|
|
10120
10119
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
10121
10120
|
] }) }),
|
|
10122
|
-
/* @__PURE__ */ e(De, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
10121
|
+
/* @__PURE__ */ e(De, { className: "pt-2", children: /* @__PURE__ */ e(iu, {}) })
|
|
10123
10122
|
] });
|
|
10124
10123
|
}
|
|
10125
|
-
function
|
|
10124
|
+
function iu() {
|
|
10126
10125
|
const { transformedMetricKeys: t } = Xa();
|
|
10127
|
-
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(
|
|
10126
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(ou, { metricKey: s, idx: n }, s)) });
|
|
10128
10127
|
}
|
|
10129
|
-
function
|
|
10128
|
+
function ou({ metricKey: t, idx: s }) {
|
|
10130
10129
|
var p;
|
|
10131
10130
|
const [n, l] = _(!1), o = E((y) => {
|
|
10132
10131
|
var S;
|
|
@@ -10136,7 +10135,7 @@ function iu({ metricKey: t, idx: s }) {
|
|
|
10136
10135
|
var S, T;
|
|
10137
10136
|
return (T = (S = y.card) == null ? void 0 : S.preferences) == null ? void 0 : T.datasetOptions;
|
|
10138
10137
|
}
|
|
10139
|
-
), i = c == null ? void 0 : c.find((y) => y.idx === s), { setCardPreferences: d } = E((y) => y.actions), r =
|
|
10138
|
+
), i = c == null ? void 0 : c.find((y) => y.idx === s), { setCardPreferences: d } = E((y) => y.actions), r = lu(i == null ? void 0 : i.fill), h = ((p = i == null ? void 0 : i.dataLabels) == null ? void 0 : p.enabled) ?? !1, f = gn.find((y) => y.value === r) || gn[0];
|
|
10140
10139
|
function u(y) {
|
|
10141
10140
|
const S = {
|
|
10142
10141
|
idx: s,
|
|
@@ -10238,7 +10237,7 @@ function iu({ metricKey: t, idx: s }) {
|
|
|
10238
10237
|
onValueChange: (y) => u({ lineStyle: y }),
|
|
10239
10238
|
children: [
|
|
10240
10239
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10241
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10240
|
+
/* @__PURE__ */ e(ee, { children: su.map(({ value: y, label: S }) => /* @__PURE__ */ e(
|
|
10242
10241
|
K,
|
|
10243
10242
|
{
|
|
10244
10243
|
value: y,
|
|
@@ -10260,7 +10259,7 @@ function iu({ metricKey: t, idx: s }) {
|
|
|
10260
10259
|
onValueChange: (y) => u({ pointRadius: Number(y) }),
|
|
10261
10260
|
children: [
|
|
10262
10261
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10263
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10262
|
+
/* @__PURE__ */ e(ee, { children: au.map((y) => /* @__PURE__ */ e(
|
|
10264
10263
|
K,
|
|
10265
10264
|
{
|
|
10266
10265
|
value: String(y),
|
|
@@ -10282,7 +10281,7 @@ function iu({ metricKey: t, idx: s }) {
|
|
|
10282
10281
|
onValueChange: (y) => u({ pointStyle: y }),
|
|
10283
10282
|
children: [
|
|
10284
10283
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10285
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10284
|
+
/* @__PURE__ */ e(ee, { children: nu.map(({ value: y, label: S }) => /* @__PURE__ */ e(
|
|
10286
10285
|
K,
|
|
10287
10286
|
{
|
|
10288
10287
|
value: y,
|
|
@@ -10322,7 +10321,7 @@ function iu({ metricKey: t, idx: s }) {
|
|
|
10322
10321
|
] }) }) })
|
|
10323
10322
|
] }) });
|
|
10324
10323
|
}
|
|
10325
|
-
const
|
|
10324
|
+
const cu = [0, 1, 2, 3, 4, 5, 6, 8, 10], du = [
|
|
10326
10325
|
{ value: "circle", label: "Circle ●" },
|
|
10327
10326
|
{ value: "rect", label: "Square ■" },
|
|
10328
10327
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -10339,7 +10338,7 @@ const ou = [0, 1, 2, 3, 4, 5, 6, 8, 10], cu = [
|
|
|
10339
10338
|
{ value: "dotted", label: "Dotted ···" },
|
|
10340
10339
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
10341
10340
|
];
|
|
10342
|
-
function
|
|
10341
|
+
function uu() {
|
|
10343
10342
|
return E((s) => {
|
|
10344
10343
|
var n;
|
|
10345
10344
|
return (n = s.card) == null ? void 0 : n.type;
|
|
@@ -10348,14 +10347,14 @@ function du() {
|
|
|
10348
10347
|
/* @__PURE__ */ e(ma, { className: "h-4 w-4 text-muted-foreground" }),
|
|
10349
10348
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
10350
10349
|
] }) }),
|
|
10351
|
-
/* @__PURE__ */ e(De, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
10350
|
+
/* @__PURE__ */ e(De, { className: "pt-2", children: /* @__PURE__ */ e(mu, {}) })
|
|
10352
10351
|
] });
|
|
10353
10352
|
}
|
|
10354
|
-
function
|
|
10353
|
+
function mu() {
|
|
10355
10354
|
const { transformedMetricKeys: t } = Xa();
|
|
10356
|
-
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(
|
|
10355
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(hu, { metricKey: s, idx: n }, s)) });
|
|
10357
10356
|
}
|
|
10358
|
-
function
|
|
10357
|
+
function hu({ metricKey: t, idx: s }) {
|
|
10359
10358
|
var y;
|
|
10360
10359
|
const [n, l] = _(!1), o = E((S) => {
|
|
10361
10360
|
var T;
|
|
@@ -10425,7 +10424,7 @@ function mu({ metricKey: t, idx: s }) {
|
|
|
10425
10424
|
"border border-border bg-background text-muted-foreground"
|
|
10426
10425
|
),
|
|
10427
10426
|
children: [
|
|
10428
|
-
/* @__PURE__ */ e(
|
|
10427
|
+
/* @__PURE__ */ e(Qi, { className: "h-3 w-3" }),
|
|
10429
10428
|
m.label.split(" ")[0]
|
|
10430
10429
|
]
|
|
10431
10430
|
}
|
|
@@ -10466,7 +10465,7 @@ function mu({ metricKey: t, idx: s }) {
|
|
|
10466
10465
|
onValueChange: (S) => C({ pointRadius: Number(S) }),
|
|
10467
10466
|
children: [
|
|
10468
10467
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10469
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10468
|
+
/* @__PURE__ */ e(ee, { children: cu.map((S) => /* @__PURE__ */ e(
|
|
10470
10469
|
K,
|
|
10471
10470
|
{
|
|
10472
10471
|
value: String(S),
|
|
@@ -10488,7 +10487,7 @@ function mu({ metricKey: t, idx: s }) {
|
|
|
10488
10487
|
onValueChange: (S) => C({ pointStyle: S }),
|
|
10489
10488
|
children: [
|
|
10490
10489
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10491
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10490
|
+
/* @__PURE__ */ e(ee, { children: du.map(({ value: S, label: T }) => /* @__PURE__ */ e(
|
|
10492
10491
|
K,
|
|
10493
10492
|
{
|
|
10494
10493
|
value: S,
|
|
@@ -10528,8 +10527,8 @@ function mu({ metricKey: t, idx: s }) {
|
|
|
10528
10527
|
] }) }) })
|
|
10529
10528
|
] }) });
|
|
10530
10529
|
}
|
|
10531
|
-
const
|
|
10532
|
-
function
|
|
10530
|
+
const pu = [0, 2, 4, 6, 8, 10, 12, 16, 20];
|
|
10531
|
+
function fu() {
|
|
10533
10532
|
const t = E((s) => {
|
|
10534
10533
|
var n;
|
|
10535
10534
|
return (n = s.card) == null ? void 0 : n.type;
|
|
@@ -10539,14 +10538,14 @@ function pu() {
|
|
|
10539
10538
|
/* @__PURE__ */ e(ma, { className: "h-4 w-4 text-muted-foreground" }),
|
|
10540
10539
|
/* @__PURE__ */ e("span", { children: "Series" })
|
|
10541
10540
|
] }) }),
|
|
10542
|
-
/* @__PURE__ */ e(De, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
10541
|
+
/* @__PURE__ */ e(De, { className: "pt-2", children: /* @__PURE__ */ e(gu, {}) })
|
|
10543
10542
|
] });
|
|
10544
10543
|
}
|
|
10545
|
-
function
|
|
10544
|
+
function gu() {
|
|
10546
10545
|
const { transformedMetricKeys: t } = Xa();
|
|
10547
|
-
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(
|
|
10546
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((s, n) => /* @__PURE__ */ e(xu, { metricKey: s, idx: n }, s)) });
|
|
10548
10547
|
}
|
|
10549
|
-
function
|
|
10548
|
+
function xu({ metricKey: t, idx: s }) {
|
|
10550
10549
|
var N;
|
|
10551
10550
|
const [n, l] = _(!1), o = E((p) => {
|
|
10552
10551
|
var y;
|
|
@@ -10637,7 +10636,7 @@ function gu({ metricKey: t, idx: s }) {
|
|
|
10637
10636
|
onValueChange: (p) => u({ borderRadius: Number(p) }),
|
|
10638
10637
|
children: [
|
|
10639
10638
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10640
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10639
|
+
/* @__PURE__ */ e(ee, { children: pu.map((p) => /* @__PURE__ */ e(
|
|
10641
10640
|
K,
|
|
10642
10641
|
{
|
|
10643
10642
|
value: String(p),
|
|
@@ -10676,7 +10675,7 @@ function gu({ metricKey: t, idx: s }) {
|
|
|
10676
10675
|
] }) }) })
|
|
10677
10676
|
] }) });
|
|
10678
10677
|
}
|
|
10679
|
-
const
|
|
10678
|
+
const bu = [0, 1, 2, 3, 4, 5, 6, 8, 10], yu = [
|
|
10680
10679
|
{ value: "circle", label: "Circle ●" },
|
|
10681
10680
|
{ value: "rect", label: "Square ■" },
|
|
10682
10681
|
{ value: "rectRounded", label: "Rounded ▢" },
|
|
@@ -10687,13 +10686,13 @@ const xu = [0, 1, 2, 3, 4, 5, 6, 8, 10], bu = [
|
|
|
10687
10686
|
{ value: "star", label: "Star ★" },
|
|
10688
10687
|
{ value: "dash", label: "Dash —" },
|
|
10689
10688
|
{ value: "line", label: "Line │" }
|
|
10690
|
-
],
|
|
10689
|
+
], Nu = [
|
|
10691
10690
|
{ value: "solid", label: "Solid ───" },
|
|
10692
10691
|
{ value: "dashed", label: "Dashed - - -" },
|
|
10693
10692
|
{ value: "dotted", label: "Dotted ···" },
|
|
10694
10693
|
{ value: "dash-dot", label: "Dash-Dot -·-·" }
|
|
10695
10694
|
];
|
|
10696
|
-
function
|
|
10695
|
+
function vu() {
|
|
10697
10696
|
const t = E((d) => d.card), s = E((d) => {
|
|
10698
10697
|
var r;
|
|
10699
10698
|
return (r = d.card) == null ? void 0 : r.preferences;
|
|
@@ -10712,7 +10711,7 @@ function Nu() {
|
|
|
10712
10711
|
};
|
|
10713
10712
|
return /* @__PURE__ */ a(Te, { value: "line-style", className: "border-b-0", children: [
|
|
10714
10713
|
/* @__PURE__ */ e(Ae, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
10715
|
-
/* @__PURE__ */ e(
|
|
10714
|
+
/* @__PURE__ */ e(Tc, { className: "h-4 w-4 text-muted-foreground" }),
|
|
10716
10715
|
/* @__PURE__ */ e("span", { children: "Line Style" })
|
|
10717
10716
|
] }) }),
|
|
10718
10717
|
/* @__PURE__ */ e(De, { className: "pt-2", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
@@ -10726,7 +10725,7 @@ function Nu() {
|
|
|
10726
10725
|
onValueChange: (d) => i("lineStyle", d),
|
|
10727
10726
|
children: [
|
|
10728
10727
|
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10729
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10728
|
+
/* @__PURE__ */ e(ee, { children: Nu.map(({ value: d, label: r }) => /* @__PURE__ */ e(K, { value: d, className: "text-xs", children: r }, d)) })
|
|
10730
10729
|
]
|
|
10731
10730
|
}
|
|
10732
10731
|
)
|
|
@@ -10740,7 +10739,7 @@ function Nu() {
|
|
|
10740
10739
|
onValueChange: (d) => i("pointRadius", Number(d)),
|
|
10741
10740
|
children: [
|
|
10742
10741
|
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10743
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10742
|
+
/* @__PURE__ */ e(ee, { children: bu.map((d) => /* @__PURE__ */ e(
|
|
10744
10743
|
K,
|
|
10745
10744
|
{
|
|
10746
10745
|
value: String(d),
|
|
@@ -10762,7 +10761,7 @@ function Nu() {
|
|
|
10762
10761
|
onValueChange: (d) => i("pointStyle", d),
|
|
10763
10762
|
children: [
|
|
10764
10763
|
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10765
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10764
|
+
/* @__PURE__ */ e(ee, { children: yu.map(({ value: d, label: r }) => /* @__PURE__ */ e(K, { value: d, className: "text-xs", children: r }, d)) })
|
|
10766
10765
|
]
|
|
10767
10766
|
}
|
|
10768
10767
|
)
|
|
@@ -10770,14 +10769,14 @@ function Nu() {
|
|
|
10770
10769
|
] }) })
|
|
10771
10770
|
] });
|
|
10772
10771
|
}
|
|
10773
|
-
const
|
|
10772
|
+
const Cu = [0, 2, 4, 6, 8, 10, 12, 16, 20], wu = [
|
|
10774
10773
|
{ value: "0.5", label: "50%" },
|
|
10775
10774
|
{ value: "0.6", label: "60%" },
|
|
10776
10775
|
{ value: "0.7", label: "70%" },
|
|
10777
10776
|
{ value: "0.8", label: "80%" },
|
|
10778
10777
|
{ value: "0.9", label: "90%" },
|
|
10779
10778
|
{ value: "1", label: "100%" }
|
|
10780
|
-
],
|
|
10779
|
+
], Su = [
|
|
10781
10780
|
{ value: "0.5", label: "50%" },
|
|
10782
10781
|
{ value: "0.6", label: "60%" },
|
|
10783
10782
|
{ value: "0.7", label: "70%" },
|
|
@@ -10785,7 +10784,7 @@ const vu = [0, 2, 4, 6, 8, 10, 12, 16, 20], Cu = [
|
|
|
10785
10784
|
{ value: "0.9", label: "90%" },
|
|
10786
10785
|
{ value: "1", label: "100%" }
|
|
10787
10786
|
];
|
|
10788
|
-
function
|
|
10787
|
+
function ku() {
|
|
10789
10788
|
const t = E((d) => d.card), s = E((d) => {
|
|
10790
10789
|
var r;
|
|
10791
10790
|
return (r = d.card) == null ? void 0 : r.preferences;
|
|
@@ -10818,7 +10817,7 @@ function Su() {
|
|
|
10818
10817
|
onValueChange: (d) => i("borderRadius", Number(d)),
|
|
10819
10818
|
children: [
|
|
10820
10819
|
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10821
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10820
|
+
/* @__PURE__ */ e(ee, { children: Cu.map((d) => /* @__PURE__ */ e(
|
|
10822
10821
|
K,
|
|
10823
10822
|
{
|
|
10824
10823
|
value: String(d),
|
|
@@ -10840,7 +10839,7 @@ function Su() {
|
|
|
10840
10839
|
onValueChange: (d) => i("barPercentage", Number(d)),
|
|
10841
10840
|
children: [
|
|
10842
10841
|
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10843
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10842
|
+
/* @__PURE__ */ e(ee, { children: wu.map(({ value: d, label: r }) => /* @__PURE__ */ e(K, { value: d, className: "text-xs", children: r }, d)) })
|
|
10844
10843
|
]
|
|
10845
10844
|
}
|
|
10846
10845
|
)
|
|
@@ -10854,7 +10853,7 @@ function Su() {
|
|
|
10854
10853
|
onValueChange: (d) => i("categoryPercentage", Number(d)),
|
|
10855
10854
|
children: [
|
|
10856
10855
|
/* @__PURE__ */ e(X, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
|
|
10857
|
-
/* @__PURE__ */ e(ee, { children:
|
|
10856
|
+
/* @__PURE__ */ e(ee, { children: Su.map(({ value: d, label: r }) => /* @__PURE__ */ e(K, { value: d, className: "text-xs", children: r }, d)) })
|
|
10858
10857
|
]
|
|
10859
10858
|
}
|
|
10860
10859
|
)
|
|
@@ -10862,7 +10861,7 @@ function Su() {
|
|
|
10862
10861
|
] }) })
|
|
10863
10862
|
] });
|
|
10864
10863
|
}
|
|
10865
|
-
function
|
|
10864
|
+
function Tu() {
|
|
10866
10865
|
const t = E(
|
|
10867
10866
|
(n) => {
|
|
10868
10867
|
var l, o;
|
|
@@ -10871,7 +10870,7 @@ function ku() {
|
|
|
10871
10870
|
), { setSortChart: s } = de();
|
|
10872
10871
|
return /* @__PURE__ */ a(Te, { value: "stacked-sort", children: [
|
|
10873
10872
|
/* @__PURE__ */ e(Ae, { children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
10874
|
-
/* @__PURE__ */ e(
|
|
10873
|
+
/* @__PURE__ */ e(Xi, { className: "h-4 w-4" }),
|
|
10875
10874
|
"Sort"
|
|
10876
10875
|
] }) }),
|
|
10877
10876
|
/* @__PURE__ */ e(De, { className: "space-y-4 px-1", children: /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
@@ -10895,7 +10894,7 @@ function ku() {
|
|
|
10895
10894
|
] }) })
|
|
10896
10895
|
] });
|
|
10897
10896
|
}
|
|
10898
|
-
const
|
|
10897
|
+
const Au = ["kpi"], Hs = {
|
|
10899
10898
|
none: "None",
|
|
10900
10899
|
previous_period: "Previous Period",
|
|
10901
10900
|
same_period_last_year: "Same Period Last Year",
|
|
@@ -10905,27 +10904,27 @@ const Tu = ["kpi"], Hs = {
|
|
|
10905
10904
|
function Pt(t) {
|
|
10906
10905
|
return typeof t == "string" ? t.trim().toLowerCase() : ((t == null ? void 0 : t.id) || (t == null ? void 0 : t.qualifiedFieldName) || (t == null ? void 0 : t.name) || (t == null ? void 0 : t.label) || "").trim().toLowerCase();
|
|
10907
10906
|
}
|
|
10908
|
-
function
|
|
10907
|
+
function Du(t) {
|
|
10909
10908
|
if (!(t != null && t.name) || !(t != null && t.dataType) || t.role === "metric")
|
|
10910
10909
|
return !1;
|
|
10911
10910
|
const s = Le(t.dataType);
|
|
10912
10911
|
return ["date", "string", "boolean"].includes(s);
|
|
10913
10912
|
}
|
|
10914
|
-
function
|
|
10913
|
+
function Iu(t) {
|
|
10915
10914
|
return {
|
|
10916
10915
|
...t,
|
|
10917
10916
|
role: "groupby"
|
|
10918
10917
|
};
|
|
10919
10918
|
}
|
|
10920
|
-
function
|
|
10919
|
+
function Eu() {
|
|
10921
10920
|
var T, B, R, M;
|
|
10922
10921
|
const t = E((x) => x.card), s = E(
|
|
10923
10922
|
(x) => x.actions.updateCardConfig
|
|
10924
|
-
), n = st(), { scopedFields: l } = Ua(), o = ((T = t.config) == null ? void 0 : T.metricColumns) || [], c = ((B = t.config) == null ? void 0 : B.summary) || {}, i = c.breakdownDimensions || [], d =
|
|
10923
|
+
), n = st(), { scopedFields: l } = Ua(), o = ((T = t.config) == null ? void 0 : T.metricColumns) || [], c = ((B = t.config) == null ? void 0 : B.summary) || {}, i = c.breakdownDimensions || [], d = Au.includes(n), r = o.length > 0, h = c.enabled === !0, f = d && r, u = ((R = t.config) == null ? void 0 : R.comparisonType) || ((M = o.find(
|
|
10925
10924
|
(x) => x.comparisonType && x.comparisonType !== "none"
|
|
10926
10925
|
)) == null ? void 0 : M.comparisonType) || "none", m = Hs[u] || Hs.none, C = Array.from(
|
|
10927
10926
|
new Map(
|
|
10928
|
-
l.filter(
|
|
10927
|
+
l.filter(Du).map((x) => [Pt(x), Iu(x)])
|
|
10929
10928
|
).values()
|
|
10930
10929
|
), N = new Set(
|
|
10931
10930
|
C.map((x) => Pt(x))
|
|
@@ -10951,7 +10950,7 @@ function Iu() {
|
|
|
10951
10950
|
};
|
|
10952
10951
|
return /* @__PURE__ */ a(Te, { value: "summary", className: "border-none", children: [
|
|
10953
10952
|
/* @__PURE__ */ e(Ae, { className: "flex items-center gap-2 py-2 text-sm hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
10954
|
-
/* @__PURE__ */ e(
|
|
10953
|
+
/* @__PURE__ */ e(Zi, { className: "h-4 w-4" }),
|
|
10955
10954
|
/* @__PURE__ */ e("span", { children: "Summary" })
|
|
10956
10955
|
] }) }),
|
|
10957
10956
|
/* @__PURE__ */ a(De, { className: "space-y-4 pb-4 pt-2", children: [
|
|
@@ -11070,50 +11069,50 @@ function Xl({ mode: t }) {
|
|
|
11070
11069
|
return (l = n.card) == null ? void 0 : l.type;
|
|
11071
11070
|
});
|
|
11072
11071
|
return /* @__PURE__ */ a(fe, { children: [
|
|
11073
|
-
s === "combo" && /* @__PURE__ */ e(
|
|
11074
|
-
(s === "area" || s === "stackedArea") && /* @__PURE__ */ e(
|
|
11075
|
-
s === "line" && /* @__PURE__ */ e(
|
|
11076
|
-
(s === "bar" || s === "horizontalBar" || s === "stackedBar") && /* @__PURE__ */ e(
|
|
11077
|
-
/* @__PURE__ */ e(
|
|
11078
|
-
/* @__PURE__ */ e(
|
|
11079
|
-
/* @__PURE__ */ e(
|
|
11072
|
+
s === "combo" && /* @__PURE__ */ e(Zd, {}),
|
|
11073
|
+
(s === "area" || s === "stackedArea") && /* @__PURE__ */ e(ru, {}),
|
|
11074
|
+
s === "line" && /* @__PURE__ */ e(uu, {}),
|
|
11075
|
+
(s === "bar" || s === "horizontalBar" || s === "stackedBar") && /* @__PURE__ */ e(fu, {}),
|
|
11076
|
+
/* @__PURE__ */ e(vu, {}),
|
|
11077
|
+
/* @__PURE__ */ e(ku, {}),
|
|
11078
|
+
/* @__PURE__ */ e(Bd, {}),
|
|
11079
|
+
t === "config" && /* @__PURE__ */ e(Vd, {}),
|
|
11080
11080
|
t === "config" && /* @__PURE__ */ e(Pd, {}),
|
|
11081
|
-
t === "config" && /* @__PURE__ */ e(
|
|
11082
|
-
|
|
11083
|
-
/* @__PURE__ */ e(
|
|
11084
|
-
s === "
|
|
11085
|
-
s === "
|
|
11086
|
-
(s === "
|
|
11087
|
-
(s === "stackedBar" || s === "stackedLine") && /* @__PURE__ */ e(ku, {}),
|
|
11088
|
-
/* @__PURE__ */ e(Od, {}),
|
|
11081
|
+
t === "config" && /* @__PURE__ */ e(Eu, {}),
|
|
11082
|
+
/* @__PURE__ */ e($d, {}),
|
|
11083
|
+
s === "bullet" && /* @__PURE__ */ e(jd, {}),
|
|
11084
|
+
s === "funnel" && /* @__PURE__ */ e(Gd, {}),
|
|
11085
|
+
(s === "bubble" || s === "scatter") && /* @__PURE__ */ e(qd, {}),
|
|
11086
|
+
(s === "stackedBar" || s === "stackedLine") && /* @__PURE__ */ e(Tu, {}),
|
|
11089
11087
|
/* @__PURE__ */ e(Md, {}),
|
|
11090
11088
|
/* @__PURE__ */ e(Fd, {}),
|
|
11091
|
-
/* @__PURE__ */ e(Rd, {})
|
|
11089
|
+
/* @__PURE__ */ e(Rd, {}),
|
|
11090
|
+
/* @__PURE__ */ e(Ld, {})
|
|
11092
11091
|
] });
|
|
11093
11092
|
}
|
|
11094
|
-
function
|
|
11093
|
+
function Ou() {
|
|
11095
11094
|
const t = E((n) => n.card), s = t == null ? void 0 : t.type;
|
|
11096
11095
|
return s ? /* @__PURE__ */ a("div", { className: "space-y-4 px-6 py-4", children: [
|
|
11097
11096
|
/* @__PURE__ */ e(Wa, { chartType: s }),
|
|
11098
11097
|
/* @__PURE__ */ e(aa, { type: "single", collapsible: !0, className: "w-full px-2", children: /* @__PURE__ */ e(Xl, { mode: "dev" }) })
|
|
11099
11098
|
] }) : null;
|
|
11100
11099
|
}
|
|
11101
|
-
function
|
|
11100
|
+
function Mu() {
|
|
11102
11101
|
const t = E((n) => n.card.type);
|
|
11103
11102
|
function s() {
|
|
11104
11103
|
switch (t) {
|
|
11105
11104
|
case "kpi":
|
|
11106
|
-
return /* @__PURE__ */ e(
|
|
11105
|
+
return /* @__PURE__ */ e(md, {});
|
|
11107
11106
|
case "table":
|
|
11108
|
-
return /* @__PURE__ */ e(
|
|
11107
|
+
return /* @__PURE__ */ e(Dd, {});
|
|
11109
11108
|
case "map":
|
|
11110
|
-
return /* @__PURE__ */ e(
|
|
11109
|
+
return /* @__PURE__ */ e(gd, {});
|
|
11111
11110
|
case "custom":
|
|
11112
11111
|
return /* @__PURE__ */ e("div", { className: "px-6 py-2", children: /* @__PURE__ */ e(Hl, {}) });
|
|
11113
11112
|
case "text":
|
|
11114
|
-
return /* @__PURE__ */ e(
|
|
11113
|
+
return /* @__PURE__ */ e(Ed, {});
|
|
11115
11114
|
default:
|
|
11116
|
-
return /* @__PURE__ */ e(
|
|
11115
|
+
return /* @__PURE__ */ e(Ou, {});
|
|
11117
11116
|
}
|
|
11118
11117
|
}
|
|
11119
11118
|
return /* @__PURE__ */ a(da, { className: "h-full w-full text-sm", children: [
|
|
@@ -11121,7 +11120,7 @@ function Ou() {
|
|
|
11121
11120
|
/* @__PURE__ */ e(_n, { orientation: "horizontal" })
|
|
11122
11121
|
] });
|
|
11123
11122
|
}
|
|
11124
|
-
function
|
|
11123
|
+
function Fu() {
|
|
11125
11124
|
const t = at(null), s = at(null), n = E((o) => o.isShowingVisual), l = E((o) => o.showAIDialog);
|
|
11126
11125
|
return be(() => {
|
|
11127
11126
|
var o, c, i, d;
|
|
@@ -11139,7 +11138,7 @@ function Mu() {
|
|
|
11139
11138
|
className: "flex",
|
|
11140
11139
|
minSize: 20,
|
|
11141
11140
|
defaultSize: 40,
|
|
11142
|
-
children: /* @__PURE__ */ e(
|
|
11141
|
+
children: /* @__PURE__ */ e($c, {})
|
|
11143
11142
|
}
|
|
11144
11143
|
),
|
|
11145
11144
|
/* @__PURE__ */ e($t, { withHandle: !0 }),
|
|
@@ -11158,7 +11157,7 @@ function Mu() {
|
|
|
11158
11157
|
className: "flex",
|
|
11159
11158
|
defaultSize: 25,
|
|
11160
11159
|
maxSize: 30,
|
|
11161
|
-
children: /* @__PURE__ */ e(
|
|
11160
|
+
children: /* @__PURE__ */ e(Mu, {})
|
|
11162
11161
|
}
|
|
11163
11162
|
) }),
|
|
11164
11163
|
!l && /* @__PURE__ */ e($t, {}),
|
|
@@ -11170,7 +11169,7 @@ function Mu() {
|
|
|
11170
11169
|
}
|
|
11171
11170
|
);
|
|
11172
11171
|
}
|
|
11173
|
-
function
|
|
11172
|
+
function Ru(t) {
|
|
11174
11173
|
var Pe;
|
|
11175
11174
|
As(
|
|
11176
11175
|
(q) => q.currentAIContext
|
|
@@ -11199,7 +11198,7 @@ function Fu(t) {
|
|
|
11199
11198
|
errorMessage: A,
|
|
11200
11199
|
refetch: g,
|
|
11201
11200
|
data: F
|
|
11202
|
-
} = nt(T), { setTriggerAIRun: b, setCurrentAssitantScope: D, setCardConfig: O } = de(), { selectedDatamodelName: z, connectionType: w, selectedDatamodelId: I } =
|
|
11201
|
+
} = nt(T), { setTriggerAIRun: b, setCurrentAssitantScope: D, setCardConfig: O } = de(), { selectedDatamodelName: z, connectionType: w, selectedDatamodelId: I } = eo(), v = (Pe = to().data) == null ? void 0 : Pe.assistantProfileId, {
|
|
11203
11202
|
messages: V,
|
|
11204
11203
|
setMessages: L,
|
|
11205
11204
|
regenerate: j,
|
|
@@ -11209,8 +11208,8 @@ function Fu(t) {
|
|
|
11209
11208
|
addToolResult: re,
|
|
11210
11209
|
stop: ne,
|
|
11211
11210
|
clearError: ce
|
|
11212
|
-
} =
|
|
11213
|
-
transport: new
|
|
11211
|
+
} = ao({
|
|
11212
|
+
transport: new no({
|
|
11214
11213
|
api: `${i.apiServiceUrl}/v1/assistant`,
|
|
11215
11214
|
headers: () => ({
|
|
11216
11215
|
Authorization: `Bearer ${c == null ? void 0 : c.accessToken}`
|
|
@@ -11233,7 +11232,7 @@ function Fu(t) {
|
|
|
11233
11232
|
prepareSendMessagesRequest: ({ messages: q, body: te }) => ({
|
|
11234
11233
|
body: {
|
|
11235
11234
|
...te,
|
|
11236
|
-
messages:
|
|
11235
|
+
messages: so(q)
|
|
11237
11236
|
}
|
|
11238
11237
|
})
|
|
11239
11238
|
}),
|
|
@@ -11332,11 +11331,11 @@ function Fu(t) {
|
|
|
11332
11331
|
n("Analyzing...");
|
|
11333
11332
|
}
|
|
11334
11333
|
function le(q) {
|
|
11335
|
-
const te =
|
|
11334
|
+
const te = ro(p, q);
|
|
11336
11335
|
me(te);
|
|
11337
11336
|
}
|
|
11338
11337
|
function me(q) {
|
|
11339
|
-
const te =
|
|
11338
|
+
const te = oo(q);
|
|
11340
11339
|
D(te), L((pe) => [
|
|
11341
11340
|
...pe,
|
|
11342
11341
|
{
|
|
@@ -11375,7 +11374,7 @@ function Fu(t) {
|
|
|
11375
11374
|
connectionType: w || "",
|
|
11376
11375
|
datamodelId: I || ""
|
|
11377
11376
|
};
|
|
11378
|
-
if (!
|
|
11377
|
+
if (!io(
|
|
11379
11378
|
[...k || [], ...p],
|
|
11380
11379
|
q
|
|
11381
11380
|
) || p.length === 0) {
|
|
@@ -11389,7 +11388,7 @@ function Fu(t) {
|
|
|
11389
11388
|
me(pe);
|
|
11390
11389
|
}
|
|
11391
11390
|
}
|
|
11392
|
-
const se = !["ready", "error"].includes(H), ye =
|
|
11391
|
+
const se = !["ready", "error"].includes(H), ye = lo(J);
|
|
11393
11392
|
return {
|
|
11394
11393
|
messages: V,
|
|
11395
11394
|
setMessages: L,
|
|
@@ -11410,7 +11409,7 @@ function Fu(t) {
|
|
|
11410
11409
|
clearError: ce
|
|
11411
11410
|
};
|
|
11412
11411
|
}
|
|
11413
|
-
const
|
|
11412
|
+
const Lu = [
|
|
11414
11413
|
{
|
|
11415
11414
|
title: "Help me write a query for",
|
|
11416
11415
|
subtitle: "orders by month"
|
|
@@ -11425,9 +11424,9 @@ function Ys({
|
|
|
11425
11424
|
onFullscreenChange: s,
|
|
11426
11425
|
fullscreenContainer: n
|
|
11427
11426
|
}) {
|
|
11428
|
-
const l = at(null), [o, c] = _(!1), [i, d] = _(wl), [r, h] = _(!1), [f, u] = _(!1), [m, C] = _(!1), N = t ?? m, p =
|
|
11427
|
+
const l = at(null), [o, c] = _(!1), [i, d] = _(wl), [r, h] = _(!1), [f, u] = _(!1), [m, C] = _(!1), N = t ?? m, p = co(), { setCurrentAIContext: y } = Sl(), { clearQueue: S } = uo(), { clearFileAttachments: T } = mo(), B = ho("editor"), R = Se((he) => he.dashboard.aiContext), M = E((he) => he.card.dataSource), x = E((he) => he.actions.setCardSql), k = E((he) => he.actions.setRunSql), A = E((he) => he.showAIDialog), g = Se(
|
|
11429
11428
|
(he) => he.handleOpenAssistantProfile
|
|
11430
|
-
), { setShowAIDialog: F, setCardPython: b } = de(), { setDataSource: D } = de(), { assistantProfile: O } =
|
|
11429
|
+
), { setShowAIDialog: F, setCardPython: b } = de(), { setDataSource: D } = de(), { assistantProfile: O } = po(), {
|
|
11431
11430
|
messages: z,
|
|
11432
11431
|
setMessages: w,
|
|
11433
11432
|
sendMessage: I,
|
|
@@ -11437,7 +11436,7 @@ function Ys({
|
|
|
11437
11436
|
llmUsage: j,
|
|
11438
11437
|
errorMessage: J,
|
|
11439
11438
|
clearError: $
|
|
11440
|
-
} =
|
|
11439
|
+
} = Ru(), [H, re] = _(""), ne = (he) => {
|
|
11441
11440
|
re(he.target.value);
|
|
11442
11441
|
}, ce = (he) => {
|
|
11443
11442
|
he.preventDefault();
|
|
@@ -11459,7 +11458,7 @@ function Ys({
|
|
|
11459
11458
|
totalMessageCount: me,
|
|
11460
11459
|
loadMoreMessages: ge,
|
|
11461
11460
|
resetMessageWindow: W
|
|
11462
|
-
} =
|
|
11461
|
+
} = fo(z, {
|
|
11463
11462
|
maxVisibleMessages: 15,
|
|
11464
11463
|
// Reduced from 50 to 15 for better performance
|
|
11465
11464
|
initialLoadCount: 10,
|
|
@@ -11474,7 +11473,7 @@ function Ys({
|
|
|
11474
11473
|
scrollToBottom: te,
|
|
11475
11474
|
handleScroll: pe,
|
|
11476
11475
|
resetNewMessageCount: ve
|
|
11477
|
-
} =
|
|
11476
|
+
} = go(G, {
|
|
11478
11477
|
threshold: 50,
|
|
11479
11478
|
behavior: "smooth",
|
|
11480
11479
|
isStreaming: v
|
|
@@ -11486,13 +11485,13 @@ function Ys({
|
|
|
11486
11485
|
A && ((he = l.current) == null || he.focus(), y({
|
|
11487
11486
|
selectedEntities: (M == null ? void 0 : M.selectedEntities) || []
|
|
11488
11487
|
}));
|
|
11489
|
-
}, [A, M, y]),
|
|
11488
|
+
}, [A, M, y]), xo({
|
|
11490
11489
|
assistantType: "editor",
|
|
11491
11490
|
status: L,
|
|
11492
11491
|
isLoading: v,
|
|
11493
11492
|
sendMessage: I
|
|
11494
11493
|
});
|
|
11495
|
-
const { hasActiveTools: $e } =
|
|
11494
|
+
const { hasActiveTools: $e } = bo(z), je = Ke(
|
|
11496
11495
|
(he) => {
|
|
11497
11496
|
s == null || s(he), t === void 0 && C(he);
|
|
11498
11497
|
},
|
|
@@ -11559,7 +11558,7 @@ function Ys({
|
|
|
11559
11558
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
11560
11559
|
size: "sm",
|
|
11561
11560
|
variant: "ghost",
|
|
11562
|
-
children: /* @__PURE__ */ e(
|
|
11561
|
+
children: /* @__PURE__ */ e(Do, { className: "size-3.5" })
|
|
11563
11562
|
}
|
|
11564
11563
|
) }),
|
|
11565
11564
|
/* @__PURE__ */ a(Un, { align: "end", children: [
|
|
@@ -11639,7 +11638,7 @@ function Ys({
|
|
|
11639
11638
|
tooltip: N ? "Exit Fullscreen" : "Expand",
|
|
11640
11639
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
11641
11640
|
onClick: pt,
|
|
11642
|
-
children: N ? /* @__PURE__ */ e(
|
|
11641
|
+
children: N ? /* @__PURE__ */ e(yo, { className: "size-4" }) : /* @__PURE__ */ e(No, { className: "size-4" })
|
|
11643
11642
|
}
|
|
11644
11643
|
),
|
|
11645
11644
|
/* @__PURE__ */ e(
|
|
@@ -11670,7 +11669,7 @@ function Ys({
|
|
|
11670
11669
|
}
|
|
11671
11670
|
),
|
|
11672
11671
|
/* @__PURE__ */ e(
|
|
11673
|
-
|
|
11672
|
+
vo,
|
|
11674
11673
|
{
|
|
11675
11674
|
ref: se,
|
|
11676
11675
|
className: "mt-2 flex w-full grow basis-0",
|
|
@@ -11695,7 +11694,7 @@ function Ys({
|
|
|
11695
11694
|
}
|
|
11696
11695
|
) }),
|
|
11697
11696
|
/* @__PURE__ */ e(
|
|
11698
|
-
|
|
11697
|
+
Co,
|
|
11699
11698
|
{
|
|
11700
11699
|
messages: G,
|
|
11701
11700
|
showTools: i,
|
|
@@ -11705,7 +11704,7 @@ function Ys({
|
|
|
11705
11704
|
disableQuickReplies: v
|
|
11706
11705
|
}
|
|
11707
11706
|
),
|
|
11708
|
-
!$e && /* @__PURE__ */ e(
|
|
11707
|
+
!$e && /* @__PURE__ */ e(wo, { status: L, errorMessage: J })
|
|
11709
11708
|
] })
|
|
11710
11709
|
}
|
|
11711
11710
|
),
|
|
@@ -11728,23 +11727,23 @@ function Ys({
|
|
|
11728
11727
|
/* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
11729
11728
|
/* @__PURE__ */ a("div", { children: [
|
|
11730
11729
|
Ft && !O && /* @__PURE__ */ e(
|
|
11731
|
-
|
|
11730
|
+
So,
|
|
11732
11731
|
{
|
|
11733
11732
|
onClick: Me,
|
|
11734
|
-
placeholders:
|
|
11733
|
+
placeholders: Lu
|
|
11735
11734
|
}
|
|
11736
11735
|
),
|
|
11737
11736
|
/* @__PURE__ */ e("div", { children: Ft && O && /* @__PURE__ */ e(
|
|
11738
|
-
|
|
11737
|
+
ko,
|
|
11739
11738
|
{
|
|
11740
11739
|
seedQuestions: O.seedQuestions || [],
|
|
11741
11740
|
handleSeedQuestionClick: Re
|
|
11742
11741
|
}
|
|
11743
11742
|
) })
|
|
11744
11743
|
] }),
|
|
11745
|
-
/* @__PURE__ */ e(
|
|
11744
|
+
/* @__PURE__ */ e(To, { assistantType: "editor", className: "mb-3" }),
|
|
11746
11745
|
/* @__PURE__ */ e(
|
|
11747
|
-
|
|
11746
|
+
Ao,
|
|
11748
11747
|
{
|
|
11749
11748
|
ref: l,
|
|
11750
11749
|
setInput: re,
|
|
@@ -11785,22 +11784,22 @@ function Ys({
|
|
|
11785
11784
|
]
|
|
11786
11785
|
}
|
|
11787
11786
|
);
|
|
11788
|
-
return N && n ?
|
|
11787
|
+
return N && n ? dc(
|
|
11789
11788
|
/* @__PURE__ */ e("div", { className: "pointer-events-auto absolute inset-0 z-50 flex bg-background px-6 pb-6 pt-[calc(var(--app-header-height,15px)+1rem)]", children: /* @__PURE__ */ e("div", { className: "flex h-full w-full", children: Rt }) }),
|
|
11790
11789
|
n
|
|
11791
11790
|
) : Rt;
|
|
11792
11791
|
}
|
|
11793
|
-
function
|
|
11792
|
+
function Pu(t, s, n) {
|
|
11794
11793
|
if (!s) return !1;
|
|
11795
11794
|
const l = s.qualifiedFieldName, o = s.qualifiedEntityName, c = o && s.name ? `${o}.${s.name}` : l;
|
|
11796
11795
|
return t.some((i) => {
|
|
11797
11796
|
if (!(Le(i.dataType || "") === "date")) return !1;
|
|
11798
|
-
const r =
|
|
11797
|
+
const r = Io(i, n), h = r.split("."), f = h[h.length - 1] || r, u = h.length > 1 ? h.slice(0, -1).join(".") : void 0, m = i.qualifiedTableName || u, C = m ? `${m}.${f}` : void 0;
|
|
11799
11798
|
return l ? C ? C === c || C.endsWith(`.${l}`) : f === s.name : C ? C === c : f === s.name;
|
|
11800
11799
|
});
|
|
11801
11800
|
}
|
|
11802
|
-
const ts = ({ dataType: t }) =>
|
|
11803
|
-
function
|
|
11801
|
+
const ts = ({ dataType: t }) => Eo(t);
|
|
11802
|
+
function Vu({
|
|
11804
11803
|
aliasTemplate: t,
|
|
11805
11804
|
onAliasTemplateChange: s
|
|
11806
11805
|
}) {
|
|
@@ -11860,7 +11859,7 @@ function Pu({
|
|
|
11860
11859
|
] })
|
|
11861
11860
|
] });
|
|
11862
11861
|
}
|
|
11863
|
-
function
|
|
11862
|
+
function Bu({
|
|
11864
11863
|
valueAliases: t,
|
|
11865
11864
|
onValueAliasesChange: s
|
|
11866
11865
|
}) {
|
|
@@ -11982,7 +11981,7 @@ function Vu({
|
|
|
11982
11981
|
] })
|
|
11983
11982
|
] });
|
|
11984
11983
|
}
|
|
11985
|
-
function
|
|
11984
|
+
function zu({ idx: t }) {
|
|
11986
11985
|
var d;
|
|
11987
11986
|
const s = E((r) => {
|
|
11988
11987
|
var h;
|
|
@@ -11996,7 +11995,7 @@ function Bu({ idx: t }) {
|
|
|
11996
11995
|
(r) => r.actions.setCardPreferences
|
|
11997
11996
|
), o = (d = s == null ? void 0 : s.chartOptions) == null ? void 0 : d.indexAxis, c = n == null ? void 0 : n.find((r) => r.idx === t);
|
|
11998
11997
|
function i(r, h) {
|
|
11999
|
-
(r === "end" || r === "start") &&
|
|
11998
|
+
(r === "end" || r === "start") && Mo(Fo());
|
|
12000
11999
|
const f = {
|
|
12001
12000
|
display: r !== "none",
|
|
12002
12001
|
align: r,
|
|
@@ -12027,7 +12026,7 @@ function Bu({ idx: t }) {
|
|
|
12027
12026
|
}
|
|
12028
12027
|
}
|
|
12029
12028
|
return /* @__PURE__ */ a(ut, { children: [
|
|
12030
|
-
/* @__PURE__ */ e(mt, { children: /* @__PURE__ */ e(
|
|
12029
|
+
/* @__PURE__ */ e(mt, { children: /* @__PURE__ */ e(Oo, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
|
|
12031
12030
|
/* @__PURE__ */ e(ht, { className: "w-fit px-2 py-1", children: /* @__PURE__ */ a("div", { className: "flex gap-1", children: [
|
|
12032
12031
|
/* @__PURE__ */ e(
|
|
12033
12032
|
"button",
|
|
@@ -12043,7 +12042,7 @@ function Bu({ idx: t }) {
|
|
|
12043
12042
|
onClick: () => i("start", t),
|
|
12044
12043
|
className: "h-7 p-1 text-xs font-normal",
|
|
12045
12044
|
children: /* @__PURE__ */ e(
|
|
12046
|
-
|
|
12045
|
+
bc,
|
|
12047
12046
|
{
|
|
12048
12047
|
className: ae("h-4 w-4", {
|
|
12049
12048
|
"rotate-90": o === "y"
|
|
@@ -12058,7 +12057,7 @@ function Bu({ idx: t }) {
|
|
|
12058
12057
|
onClick: () => i("center", t),
|
|
12059
12058
|
className: "h-7 p-1 text-xs font-normal",
|
|
12060
12059
|
children: /* @__PURE__ */ e(
|
|
12061
|
-
|
|
12060
|
+
vc,
|
|
12062
12061
|
{
|
|
12063
12062
|
className: ae("h-4 w-4", {
|
|
12064
12063
|
"rotate-90": o === "y"
|
|
@@ -12073,7 +12072,7 @@ function Bu({ idx: t }) {
|
|
|
12073
12072
|
onClick: () => i("end", t),
|
|
12074
12073
|
className: "h-7 p-1 text-xs font-normal",
|
|
12075
12074
|
children: /* @__PURE__ */ e(
|
|
12076
|
-
|
|
12075
|
+
Nc,
|
|
12077
12076
|
{
|
|
12078
12077
|
className: ae("h-4 w-4", {
|
|
12079
12078
|
"rotate-90": o === "y"
|
|
@@ -12104,10 +12103,10 @@ function as({
|
|
|
12104
12103
|
/* @__PURE__ */ e(Xe, { children: t })
|
|
12105
12104
|
] }) });
|
|
12106
12105
|
}
|
|
12107
|
-
function
|
|
12106
|
+
function $u(t, s = 30) {
|
|
12108
12107
|
return t.length > s ? t.slice(0, s) + "..." : t;
|
|
12109
12108
|
}
|
|
12110
|
-
function
|
|
12109
|
+
function ju({
|
|
12111
12110
|
col: t,
|
|
12112
12111
|
idx: s,
|
|
12113
12112
|
className: n,
|
|
@@ -12156,7 +12155,7 @@ function $u({
|
|
|
12156
12155
|
n
|
|
12157
12156
|
),
|
|
12158
12157
|
children: [
|
|
12159
|
-
o || /* @__PURE__ */ e(as, { className: "max-w-[100px]", title: t, children:
|
|
12158
|
+
o || /* @__PURE__ */ e(as, { className: "max-w-[100px]", title: t, children: $u(t) }),
|
|
12160
12159
|
/* @__PURE__ */ a("div", { className: "flex gap-2", children: [
|
|
12161
12160
|
/* @__PURE__ */ e(
|
|
12162
12161
|
Hn,
|
|
@@ -12188,13 +12187,13 @@ function $u({
|
|
|
12188
12187
|
)
|
|
12189
12188
|
}
|
|
12190
12189
|
),
|
|
12191
|
-
/* @__PURE__ */ e(
|
|
12190
|
+
/* @__PURE__ */ e(zu, { idx: s })
|
|
12192
12191
|
] })
|
|
12193
12192
|
]
|
|
12194
12193
|
}
|
|
12195
12194
|
);
|
|
12196
12195
|
}
|
|
12197
|
-
function
|
|
12196
|
+
function qu() {
|
|
12198
12197
|
const t = E((d) => d.card.type), s = E((d) => d.isDevMode), n = E((d) => d.card.preferences), { setCardPreferences: l } = E((d) => d.actions);
|
|
12199
12198
|
function o(d) {
|
|
12200
12199
|
var f;
|
|
@@ -12263,7 +12262,7 @@ function ju() {
|
|
|
12263
12262
|
}
|
|
12264
12263
|
return /* @__PURE__ */ e(fe, { children: s ? c() : i() });
|
|
12265
12264
|
}
|
|
12266
|
-
function
|
|
12265
|
+
function Ku({
|
|
12267
12266
|
column: t
|
|
12268
12267
|
}) {
|
|
12269
12268
|
const s = E((r) => r.card.type), n = E(
|
|
@@ -12275,12 +12274,12 @@ function qu({
|
|
|
12275
12274
|
(r) => r === t.label || r === t.name
|
|
12276
12275
|
), c = o ? l.indexOf(o) : -1;
|
|
12277
12276
|
function i() {
|
|
12278
|
-
return /* @__PURE__ */ e("div", { className: "pr-1", children: o && /* @__PURE__ */ e(
|
|
12277
|
+
return /* @__PURE__ */ e("div", { className: "pr-1", children: o && /* @__PURE__ */ e(ju, { idx: c, col: o, children: /* @__PURE__ */ e("div", { className: "w-[130px] text-xs text-muted-foreground", children: "Display Series As" }) }) });
|
|
12279
12278
|
}
|
|
12280
12279
|
function d() {
|
|
12281
12280
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
12282
12281
|
/* @__PURE__ */ e(P, { className: "text-xs font-medium text-muted-foreground", children: "Data Labels" }),
|
|
12283
|
-
/* @__PURE__ */ e(
|
|
12282
|
+
/* @__PURE__ */ e(qu, {})
|
|
12284
12283
|
] });
|
|
12285
12284
|
}
|
|
12286
12285
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
@@ -12288,7 +12287,7 @@ function qu({
|
|
|
12288
12287
|
["pie", "doughnut"].includes(s) && d()
|
|
12289
12288
|
] });
|
|
12290
12289
|
}
|
|
12291
|
-
function
|
|
12290
|
+
function Gu({
|
|
12292
12291
|
field: t,
|
|
12293
12292
|
searchQuery: s = "",
|
|
12294
12293
|
limit: n = 500
|
|
@@ -12333,7 +12332,7 @@ function Ku({
|
|
|
12333
12332
|
connection_id: i.connectionId,
|
|
12334
12333
|
cardConfig: h,
|
|
12335
12334
|
cardDataSource: i,
|
|
12336
|
-
cache_config:
|
|
12335
|
+
cache_config: Ro({ card: c })
|
|
12337
12336
|
};
|
|
12338
12337
|
console.log("requestBody", f);
|
|
12339
12338
|
const u = await Dl(
|
|
@@ -12517,7 +12516,7 @@ function Zl({
|
|
|
12517
12516
|
] }),
|
|
12518
12517
|
C.length === 0 && !h && n.length > 0 && /* @__PURE__ */ e("div", { className: "text-center py-4 text-sm text-muted-foreground", children: "All available fields are already filtered" })
|
|
12519
12518
|
] }) : /* @__PURE__ */ e(
|
|
12520
|
-
|
|
12519
|
+
Uu,
|
|
12521
12520
|
{
|
|
12522
12521
|
field: u.field,
|
|
12523
12522
|
selectedValues: u.selectedValues,
|
|
@@ -12542,7 +12541,7 @@ function Zl({
|
|
|
12542
12541
|
] })
|
|
12543
12542
|
] }) });
|
|
12544
12543
|
}
|
|
12545
|
-
function
|
|
12544
|
+
function Uu({
|
|
12546
12545
|
field: t,
|
|
12547
12546
|
selectedValues: s,
|
|
12548
12547
|
onValuesChange: n,
|
|
@@ -12552,7 +12551,7 @@ function Gu({
|
|
|
12552
12551
|
values: i,
|
|
12553
12552
|
isLoading: d,
|
|
12554
12553
|
isFetching: r
|
|
12555
|
-
} =
|
|
12554
|
+
} = Gu({
|
|
12556
12555
|
field: t,
|
|
12557
12556
|
searchQuery: o,
|
|
12558
12557
|
limit: 500
|
|
@@ -12620,7 +12619,7 @@ function Gu({
|
|
|
12620
12619
|
] })
|
|
12621
12620
|
] });
|
|
12622
12621
|
}
|
|
12623
|
-
function
|
|
12622
|
+
function _u({
|
|
12624
12623
|
field: t,
|
|
12625
12624
|
zone: s,
|
|
12626
12625
|
index: n,
|
|
@@ -12705,7 +12704,7 @@ function Uu({
|
|
|
12705
12704
|
return (Ce = U.dashboard) == null ? void 0 : Ce.filters;
|
|
12706
12705
|
}) ?? [], os = Se(
|
|
12707
12706
|
(U) => U.filterValues
|
|
12708
|
-
), tr = Os(ge), ar = !!i &&
|
|
12707
|
+
), tr = Os(ge), ar = !!i && Vo.includes(i), nr = i === "kpi" || i === "table", ft = ie(
|
|
12709
12708
|
() => Aa.find(
|
|
12710
12709
|
(U) => Le(U.dataType || "") === "date"
|
|
12711
12710
|
),
|
|
@@ -12726,7 +12725,7 @@ function Uu({
|
|
|
12726
12725
|
}, ue = (we) => we.conditions.some((qe) => Le(qe.field.dataType || "") === "date" && Ce(qe)) ? !0 : we.groups.some((qe) => ue(qe));
|
|
12727
12726
|
return ue(U);
|
|
12728
12727
|
}, [(bs = C.config) == null ? void 0 : bs.filters, ft]), lr = ie(
|
|
12729
|
-
() =>
|
|
12728
|
+
() => Pu(
|
|
12730
12729
|
is,
|
|
12731
12730
|
ft,
|
|
12732
12731
|
os
|
|
@@ -12786,7 +12785,7 @@ function Uu({
|
|
|
12786
12785
|
onValueChange: je,
|
|
12787
12786
|
children: [
|
|
12788
12787
|
/* @__PURE__ */ e(X, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select granularity..." }) }),
|
|
12789
|
-
/* @__PURE__ */ e(ee, { children: ["day", "week", "month", "quarter", "year"].map((U) => /* @__PURE__ */ e(K, { className: "text-xs", value: U, children:
|
|
12788
|
+
/* @__PURE__ */ e(ee, { children: ["day", "week", "month", "quarter", "year"].map((U) => /* @__PURE__ */ e(K, { className: "text-xs", value: U, children: Po(U) }, U)) })
|
|
12790
12789
|
]
|
|
12791
12790
|
}
|
|
12792
12791
|
)
|
|
@@ -13083,17 +13082,17 @@ function Uu({
|
|
|
13083
13082
|
}
|
|
13084
13083
|
)
|
|
13085
13084
|
] }),
|
|
13086
|
-
/* @__PURE__ */ e(
|
|
13085
|
+
/* @__PURE__ */ e(Ku, { column: t }),
|
|
13087
13086
|
c && /* @__PURE__ */ a(fe, { children: [
|
|
13088
13087
|
/* @__PURE__ */ e(
|
|
13089
|
-
|
|
13088
|
+
Vu,
|
|
13090
13089
|
{
|
|
13091
13090
|
aliasTemplate: se,
|
|
13092
13091
|
onAliasTemplateChange: _e
|
|
13093
13092
|
}
|
|
13094
13093
|
),
|
|
13095
13094
|
/* @__PURE__ */ e(
|
|
13096
|
-
|
|
13095
|
+
Bu,
|
|
13097
13096
|
{
|
|
13098
13097
|
valueAliases: Pe,
|
|
13099
13098
|
onValueAliasesChange: Je
|
|
@@ -13121,7 +13120,7 @@ function Uu({
|
|
|
13121
13120
|
"w-[140px] flex-1 text-sm",
|
|
13122
13121
|
yr && "w-[120px]"
|
|
13123
13122
|
),
|
|
13124
|
-
children:
|
|
13123
|
+
children: Lo(t)
|
|
13125
13124
|
}
|
|
13126
13125
|
),
|
|
13127
13126
|
s === "metrics" && ((ys = te == null ? void 0 : te.conditions) == null ? void 0 : ys.length) && !I && /* @__PURE__ */ e(Ze, { children: /* @__PURE__ */ a(Ge, { children: [
|
|
@@ -13275,9 +13274,9 @@ function Uu({
|
|
|
13275
13274
|
)
|
|
13276
13275
|
] });
|
|
13277
13276
|
}
|
|
13278
|
-
function
|
|
13277
|
+
function Ju({ concept: t }) {
|
|
13279
13278
|
return /* @__PURE__ */ e(Ze, { children: /* @__PURE__ */ a(Ge, { delayDuration: 300, children: [
|
|
13280
|
-
/* @__PURE__ */ e(Ue, { asChild: !0, children: /* @__PURE__ */ e(
|
|
13279
|
+
/* @__PURE__ */ e(Ue, { asChild: !0, children: /* @__PURE__ */ e(Bo, { className: "size-4 text-muted-foreground hover:text-foreground" }) }),
|
|
13281
13280
|
/* @__PURE__ */ e(Xe, { side: "right", align: "start", className: "p-3", children: (() => {
|
|
13282
13281
|
switch (t) {
|
|
13283
13282
|
case "groupBy":
|
|
@@ -13377,7 +13376,7 @@ function fa({
|
|
|
13377
13376
|
hasPivotColumns: c = !1,
|
|
13378
13377
|
activeField: i = null
|
|
13379
13378
|
}) {
|
|
13380
|
-
const { isOver: d, setNodeRef: r } =
|
|
13379
|
+
const { isOver: d, setNodeRef: r } = zo({
|
|
13381
13380
|
id: t
|
|
13382
13381
|
}), { updateSortByColumn: h } = de(), f = E((y) => y.card), u = E((y) => y.card.type), m = s.length > 0, C = ie(() => !i || !d ? !0 : Ma(
|
|
13383
13382
|
i,
|
|
@@ -13405,7 +13404,7 @@ function fa({
|
|
|
13405
13404
|
children: n
|
|
13406
13405
|
}
|
|
13407
13406
|
),
|
|
13408
|
-
p && /* @__PURE__ */ e(
|
|
13407
|
+
p && /* @__PURE__ */ e(Ju, { concept: t })
|
|
13409
13408
|
] }),
|
|
13410
13409
|
/* @__PURE__ */ e(
|
|
13411
13410
|
"div",
|
|
@@ -13437,7 +13436,7 @@ function fa({
|
|
|
13437
13436
|
{
|
|
13438
13437
|
className: "flex w-full items-center gap-2",
|
|
13439
13438
|
children: /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13440
|
-
|
|
13439
|
+
_u,
|
|
13441
13440
|
{
|
|
13442
13441
|
field: y,
|
|
13443
13442
|
zone: t,
|
|
@@ -13458,7 +13457,7 @@ function fa({
|
|
|
13458
13457
|
)
|
|
13459
13458
|
] });
|
|
13460
13459
|
}
|
|
13461
|
-
function
|
|
13460
|
+
function Hu({
|
|
13462
13461
|
groupByFields: t,
|
|
13463
13462
|
pivotByFields: s,
|
|
13464
13463
|
metricsFields: n,
|
|
@@ -13479,7 +13478,7 @@ function Ju({
|
|
|
13479
13478
|
var me;
|
|
13480
13479
|
return le.name === ((me = u == null ? void 0 : u.customCardPreferences) == null ? void 0 : me.componentName);
|
|
13481
13480
|
}
|
|
13482
|
-
), N = Gt(u, C) === "multiple", p = N && !!((ce = u == null ? void 0 : u.customCardPreferences) != null && ce.url), y =
|
|
13481
|
+
), N = Gt(u, C) === "multiple", p = N && !!((ce = u == null ? void 0 : u.customCardPreferences) != null && ce.url), y = $o(C == null ? void 0 : C.slots), S = E(
|
|
13483
13482
|
(le) => le.actions.updateCardConfig
|
|
13484
13483
|
), T = E((le) => le.actions.updateFrame), { scopedFields: B, refetch: R } = Ua(), { userContext: M } = Pn(), x = N && (u == null ? void 0 : u.id) === h.id && y ? y : h == null ? void 0 : h.type, k = x === "detailTable", A = t.length > 0 || n.length > 0 || o.length > 0, g = !k && (x !== "kpi" || n.length <= 2), F = !k, b = !k && x !== "kpi", D = x !== "kpi" && A, O = k, z = k ? "Drop fields from Columns" : "Drop fields from Rows or Metrics", w = (G = h.dataSource) == null ? void 0 : G.semanticDomainId, { promoteMetric: I } = Il({ domainId: w }), v = (M == null ? void 0 : M.type) === "organization", V = (le) => {
|
|
13485
13484
|
const me = f.calculatedFields || [], ge = me.findIndex(
|
|
@@ -13643,7 +13642,7 @@ function Ju({
|
|
|
13643
13642
|
)
|
|
13644
13643
|
] });
|
|
13645
13644
|
}
|
|
13646
|
-
function
|
|
13645
|
+
function Yu({ onEditJoins: t }) {
|
|
13647
13646
|
const s = E((d) => d.card), { autoJoinMetadata: n } = nt(s);
|
|
13648
13647
|
if (!(n != null && n.autoResolved))
|
|
13649
13648
|
return null;
|
|
@@ -13661,7 +13660,7 @@ function Hu({ onEditJoins: t }) {
|
|
|
13661
13660
|
}));
|
|
13662
13661
|
return /* @__PURE__ */ e($a, { className: "border-blue-500/30 bg-blue-50/30 dark:bg-blue-950/20", children: /* @__PURE__ */ a("div", { className: "flex items-center justify-between p-3", children: [
|
|
13663
13662
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13664
|
-
/* @__PURE__ */ e(
|
|
13663
|
+
/* @__PURE__ */ e(Ec, { className: "size-4 text-blue-600 dark:text-blue-400" }),
|
|
13665
13664
|
/* @__PURE__ */ e("h3", { className: "text-sm font-medium text-blue-900 dark:text-blue-100", children: "Resolved Joins" }),
|
|
13666
13665
|
/* @__PURE__ */ e(Ze, { children: /* @__PURE__ */ a(Ge, { children: [
|
|
13667
13666
|
/* @__PURE__ */ e(Ue, { asChild: !0, children: /* @__PURE__ */ e(
|
|
@@ -13688,7 +13687,7 @@ function Hu({ onEditJoins: t }) {
|
|
|
13688
13687
|
/* @__PURE__ */ a("div", { className: "mb-1 flex items-center justify-between gap-2", children: [
|
|
13689
13688
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2 text-xs", children: [
|
|
13690
13689
|
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: d.source.name }),
|
|
13691
|
-
/* @__PURE__ */ e(
|
|
13690
|
+
/* @__PURE__ */ e(jo, { className: "size-3 text-muted-foreground" }),
|
|
13692
13691
|
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: d.target.name })
|
|
13693
13692
|
] }),
|
|
13694
13693
|
/* @__PURE__ */ e(
|
|
@@ -13760,7 +13759,7 @@ const Ws = {
|
|
|
13760
13759
|
}
|
|
13761
13760
|
}
|
|
13762
13761
|
};
|
|
13763
|
-
function
|
|
13762
|
+
function Wu({
|
|
13764
13763
|
selectedChart: t,
|
|
13765
13764
|
onChartChange: s,
|
|
13766
13765
|
groupByFields: n,
|
|
@@ -13844,7 +13843,7 @@ function Yu({
|
|
|
13844
13843
|
"data-content": "Chart Quick Selector",
|
|
13845
13844
|
className: "flex items-center justify-center",
|
|
13846
13845
|
children: /* @__PURE__ */ e(
|
|
13847
|
-
|
|
13846
|
+
qo,
|
|
13848
13847
|
{
|
|
13849
13848
|
selectedChart: t,
|
|
13850
13849
|
onChartChange: s,
|
|
@@ -13866,9 +13865,9 @@ function Yu({
|
|
|
13866
13865
|
) }),
|
|
13867
13866
|
/* @__PURE__ */ a(da, { className: "w-full flex-1 basis-0 px-6 pb-6", children: [
|
|
13868
13867
|
/* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
13869
|
-
/* @__PURE__ */ e(
|
|
13868
|
+
/* @__PURE__ */ e(Yu, { onEditJoins: x }),
|
|
13870
13869
|
/* @__PURE__ */ e(
|
|
13871
|
-
|
|
13870
|
+
Hu,
|
|
13872
13871
|
{
|
|
13873
13872
|
groupByFields: n,
|
|
13874
13873
|
pivotByFields: l,
|
|
@@ -13898,7 +13897,7 @@ function Yu({
|
|
|
13898
13897
|
}
|
|
13899
13898
|
);
|
|
13900
13899
|
}
|
|
13901
|
-
function
|
|
13900
|
+
function Qu({
|
|
13902
13901
|
initialFilters: t,
|
|
13903
13902
|
availableFields: s
|
|
13904
13903
|
} = {}) {
|
|
@@ -14124,7 +14123,7 @@ function Wu({
|
|
|
14124
14123
|
hasAnyFilters: R
|
|
14125
14124
|
};
|
|
14126
14125
|
}
|
|
14127
|
-
function
|
|
14126
|
+
function Xu({
|
|
14128
14127
|
children: t,
|
|
14129
14128
|
className: s,
|
|
14130
14129
|
delayDuration: n
|
|
@@ -14140,17 +14139,17 @@ function Qu({
|
|
|
14140
14139
|
children: t
|
|
14141
14140
|
}
|
|
14142
14141
|
) }),
|
|
14143
|
-
/* @__PURE__ */ e(
|
|
14142
|
+
/* @__PURE__ */ e(Ko, { children: t })
|
|
14144
14143
|
] }) });
|
|
14145
14144
|
}
|
|
14146
|
-
const
|
|
14145
|
+
const Zu = (t) => {
|
|
14147
14146
|
if (t.qualifiedEntityName) {
|
|
14148
14147
|
const s = t.qualifiedEntityName.split(".");
|
|
14149
14148
|
return s.length > 1 ? s[0] : "default";
|
|
14150
14149
|
}
|
|
14151
14150
|
return "default";
|
|
14152
14151
|
};
|
|
14153
|
-
function
|
|
14152
|
+
function em({
|
|
14154
14153
|
value: t,
|
|
14155
14154
|
onValueChange: s,
|
|
14156
14155
|
availableFields: n,
|
|
@@ -14160,7 +14159,7 @@ function Zu({
|
|
|
14160
14159
|
const [c, i] = Tn.useState(!1), d = Tn.useMemo(() => {
|
|
14161
14160
|
const r = {};
|
|
14162
14161
|
return n.forEach((h) => {
|
|
14163
|
-
const f =
|
|
14162
|
+
const f = Zu(h);
|
|
14164
14163
|
r[f] || (r[f] = {}), r[f][h.entityId] || (r[f][h.entityId] = []), r[f][h.entityId].push(h);
|
|
14165
14164
|
}), r;
|
|
14166
14165
|
}, [n]);
|
|
@@ -14177,12 +14176,12 @@ function Zu({
|
|
|
14177
14176
|
o
|
|
14178
14177
|
),
|
|
14179
14178
|
children: [
|
|
14180
|
-
t ? /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ a(
|
|
14179
|
+
t ? /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ a(Xu, { children: [
|
|
14181
14180
|
t.entityName,
|
|
14182
14181
|
".",
|
|
14183
14182
|
t.name
|
|
14184
14183
|
] }) }) : l,
|
|
14185
|
-
/* @__PURE__ */ e(
|
|
14184
|
+
/* @__PURE__ */ e(Go, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
14186
14185
|
]
|
|
14187
14186
|
}
|
|
14188
14187
|
) }),
|
|
@@ -14291,7 +14290,7 @@ function ns(t) {
|
|
|
14291
14290
|
})
|
|
14292
14291
|
), isPending: m, error: C };
|
|
14293
14292
|
}
|
|
14294
|
-
function
|
|
14293
|
+
function tm({
|
|
14295
14294
|
field: t,
|
|
14296
14295
|
selected: s,
|
|
14297
14296
|
onChange: n,
|
|
@@ -14370,7 +14369,7 @@ function em({
|
|
|
14370
14369
|
] }) })
|
|
14371
14370
|
] }) });
|
|
14372
14371
|
}
|
|
14373
|
-
function
|
|
14372
|
+
function am({
|
|
14374
14373
|
field: t,
|
|
14375
14374
|
value: s,
|
|
14376
14375
|
onChange: n,
|
|
@@ -14394,7 +14393,7 @@ function tm({
|
|
|
14394
14393
|
)) })
|
|
14395
14394
|
] });
|
|
14396
14395
|
}
|
|
14397
|
-
function
|
|
14396
|
+
function nm({
|
|
14398
14397
|
value: t,
|
|
14399
14398
|
operator: s,
|
|
14400
14399
|
onChange: n,
|
|
@@ -14435,7 +14434,7 @@ function am({
|
|
|
14435
14434
|
}
|
|
14436
14435
|
}, [t, s]);
|
|
14437
14436
|
return /* @__PURE__ */ e(
|
|
14438
|
-
|
|
14437
|
+
Uo,
|
|
14439
14438
|
{
|
|
14440
14439
|
value: i,
|
|
14441
14440
|
onChange: (u) => {
|
|
@@ -14460,7 +14459,7 @@ function am({
|
|
|
14460
14459
|
}
|
|
14461
14460
|
);
|
|
14462
14461
|
}
|
|
14463
|
-
const
|
|
14462
|
+
const sm = [
|
|
14464
14463
|
"=",
|
|
14465
14464
|
"!=",
|
|
14466
14465
|
">",
|
|
@@ -14474,7 +14473,7 @@ const nm = [
|
|
|
14474
14473
|
"not in",
|
|
14475
14474
|
"isNull",
|
|
14476
14475
|
"isNotNull"
|
|
14477
|
-
],
|
|
14476
|
+
], lm = [
|
|
14478
14477
|
"=",
|
|
14479
14478
|
"!=",
|
|
14480
14479
|
"contains",
|
|
@@ -14484,7 +14483,7 @@ const nm = [
|
|
|
14484
14483
|
"not in",
|
|
14485
14484
|
"isNull",
|
|
14486
14485
|
"isNotNull"
|
|
14487
|
-
],
|
|
14486
|
+
], rm = [
|
|
14488
14487
|
"=",
|
|
14489
14488
|
"!=",
|
|
14490
14489
|
">",
|
|
@@ -14495,12 +14494,12 @@ const nm = [
|
|
|
14495
14494
|
"not in",
|
|
14496
14495
|
"isNull",
|
|
14497
14496
|
"isNotNull"
|
|
14498
|
-
],
|
|
14497
|
+
], im = ["=", "!=", "isNull", "isNotNull"], om = [
|
|
14499
14498
|
"between",
|
|
14500
14499
|
// Default operator for dates
|
|
14501
14500
|
"isNull",
|
|
14502
14501
|
"isNotNull"
|
|
14503
|
-
],
|
|
14502
|
+
], cm = {
|
|
14504
14503
|
"=": "Equals",
|
|
14505
14504
|
"!=": "Not Equals",
|
|
14506
14505
|
">": "Greater Than",
|
|
@@ -14518,20 +14517,20 @@ const nm = [
|
|
|
14518
14517
|
"not between": "Not Between"
|
|
14519
14518
|
};
|
|
14520
14519
|
function Qs(t) {
|
|
14521
|
-
return
|
|
14520
|
+
return cm[t] || it(t);
|
|
14522
14521
|
}
|
|
14523
|
-
function
|
|
14522
|
+
function dm(t) {
|
|
14524
14523
|
switch (t) {
|
|
14525
14524
|
case "string":
|
|
14526
|
-
return sm;
|
|
14527
|
-
case "number":
|
|
14528
14525
|
return lm;
|
|
14529
|
-
case "
|
|
14526
|
+
case "number":
|
|
14530
14527
|
return rm;
|
|
14531
|
-
case "
|
|
14528
|
+
case "boolean":
|
|
14532
14529
|
return im;
|
|
14530
|
+
case "date":
|
|
14531
|
+
return om;
|
|
14533
14532
|
default:
|
|
14534
|
-
return
|
|
14533
|
+
return sm;
|
|
14535
14534
|
}
|
|
14536
14535
|
}
|
|
14537
14536
|
function er({
|
|
@@ -14590,7 +14589,7 @@ function er({
|
|
|
14590
14589
|
),
|
|
14591
14590
|
s === 0 && /* @__PURE__ */ e("div", { className: "w-24" }),
|
|
14592
14591
|
/* @__PURE__ */ e(
|
|
14593
|
-
|
|
14592
|
+
em,
|
|
14594
14593
|
{
|
|
14595
14594
|
value: t.field,
|
|
14596
14595
|
onValueChange: (T) => {
|
|
@@ -14625,7 +14624,7 @@ function er({
|
|
|
14625
14624
|
},
|
|
14626
14625
|
children: [
|
|
14627
14626
|
/* @__PURE__ */ e(X, { className: "w-32", children: /* @__PURE__ */ e(Z, { children: t.operator ? Qs(t.operator) : "" }) }),
|
|
14628
|
-
/* @__PURE__ */ e(ee, { children:
|
|
14627
|
+
/* @__PURE__ */ e(ee, { children: dm(Le(t.field.dataType)).map(
|
|
14629
14628
|
(T) => /* @__PURE__ */ e(K, { className: "hover:bg-muted", value: T, children: Qs(T) }, T)
|
|
14630
14629
|
) })
|
|
14631
14630
|
]
|
|
@@ -14635,7 +14634,7 @@ function er({
|
|
|
14635
14634
|
/* @__PURE__ */ e(Zt, { className: "mr-2 size-3.5 animate-spin" }),
|
|
14636
14635
|
" Loading values..."
|
|
14637
14636
|
] }) : y ? /* @__PURE__ */ e("div", { className: "flex-1 p-2 text-xs text-red-500", children: "Error loading values" }) : /* @__PURE__ */ e(
|
|
14638
|
-
|
|
14637
|
+
tm,
|
|
14639
14638
|
{
|
|
14640
14639
|
field: t.field,
|
|
14641
14640
|
selected: Array.isArray(t.value) && t.value.every((T) => typeof T == "string") ? t.value : [],
|
|
@@ -14658,7 +14657,7 @@ function er({
|
|
|
14658
14657
|
placeholder: t.operator.charAt(0).toUpperCase() + t.operator.slice(1) + "..."
|
|
14659
14658
|
}
|
|
14660
14659
|
) : /* @__PURE__ */ e(
|
|
14661
|
-
|
|
14660
|
+
am,
|
|
14662
14661
|
{
|
|
14663
14662
|
field: t.field,
|
|
14664
14663
|
value: typeof t.value == "string" ? t.value : "",
|
|
@@ -14687,7 +14686,7 @@ function er({
|
|
|
14687
14686
|
// - Handles different operators (=, !=, >, <, between, in, etc.)
|
|
14688
14687
|
// - Supports timezone-aware date selection
|
|
14689
14688
|
/* @__PURE__ */ e(
|
|
14690
|
-
|
|
14689
|
+
nm,
|
|
14691
14690
|
{
|
|
14692
14691
|
value: t.value,
|
|
14693
14692
|
operator: t.operator,
|
|
@@ -14718,7 +14717,7 @@ function er({
|
|
|
14718
14717
|
}
|
|
14719
14718
|
);
|
|
14720
14719
|
}
|
|
14721
|
-
function
|
|
14720
|
+
function um({
|
|
14722
14721
|
group: t,
|
|
14723
14722
|
depth: s,
|
|
14724
14723
|
parentGroupId: n,
|
|
@@ -14911,7 +14910,7 @@ function dm({
|
|
|
14911
14910
|
}
|
|
14912
14911
|
);
|
|
14913
14912
|
}
|
|
14914
|
-
function
|
|
14913
|
+
function mm({
|
|
14915
14914
|
filters: t,
|
|
14916
14915
|
availableFields: s,
|
|
14917
14916
|
onSave: n,
|
|
@@ -14935,7 +14934,7 @@ function um({
|
|
|
14935
14934
|
generateSQLPreview: T,
|
|
14936
14935
|
hasAnyFilters: B,
|
|
14937
14936
|
setCurrentFilters: R
|
|
14938
|
-
} =
|
|
14937
|
+
} = Qu({
|
|
14939
14938
|
initialFilters: t,
|
|
14940
14939
|
availableFields: s
|
|
14941
14940
|
}), M = ya(
|
|
@@ -15055,7 +15054,7 @@ function um({
|
|
|
15055
15054
|
)
|
|
15056
15055
|
] })
|
|
15057
15056
|
] }) }, b.id) : /* @__PURE__ */ e(
|
|
15058
|
-
|
|
15057
|
+
um,
|
|
15059
15058
|
{
|
|
15060
15059
|
group: b,
|
|
15061
15060
|
depth: D,
|
|
@@ -15119,7 +15118,7 @@ function um({
|
|
|
15119
15118
|
] })
|
|
15120
15119
|
] });
|
|
15121
15120
|
}
|
|
15122
|
-
function
|
|
15121
|
+
function hm({
|
|
15123
15122
|
cardId: t,
|
|
15124
15123
|
filters: s,
|
|
15125
15124
|
onFiltersChange: n,
|
|
@@ -15143,7 +15142,7 @@ function mm({
|
|
|
15143
15142
|
/* @__PURE__ */ e(xa, { children: "Add filters to the card to limit the data that is displayed." })
|
|
15144
15143
|
] }),
|
|
15145
15144
|
/* @__PURE__ */ e(
|
|
15146
|
-
|
|
15145
|
+
mm,
|
|
15147
15146
|
{
|
|
15148
15147
|
filters: s,
|
|
15149
15148
|
availableFields: o,
|
|
@@ -15161,7 +15160,7 @@ function mm({
|
|
|
15161
15160
|
)
|
|
15162
15161
|
] });
|
|
15163
15162
|
}
|
|
15164
|
-
function
|
|
15163
|
+
function pm({
|
|
15165
15164
|
activeCardId: t,
|
|
15166
15165
|
sourceFields: s,
|
|
15167
15166
|
getFieldsForContainer: n,
|
|
@@ -15171,9 +15170,9 @@ function hm({
|
|
|
15171
15170
|
const [o, c] = _(null), i = E((B) => B.card), d = E(
|
|
15172
15171
|
(B) => B.actions.updateCardConfig
|
|
15173
15172
|
), r = (S = i == null ? void 0 : i.config) == null ? void 0 : S.joinPlan, h = Ke(
|
|
15174
|
-
(B) => B.entityName ===
|
|
15173
|
+
(B) => B.entityName === _o || B.entityName === "calculated_fields" || B.qualifiedEntityName === "calculated_fields",
|
|
15175
15174
|
[]
|
|
15176
|
-
), f = (T = i == null ? void 0 : i.dataSource) == null ? void 0 : T.semanticDomainId, { data: u } =
|
|
15175
|
+
), f = (T = i == null ? void 0 : i.dataSource) == null ? void 0 : T.semanticDomainId, { data: u } = Jo(f), m = [
|
|
15177
15176
|
...s,
|
|
15178
15177
|
...n("groupBy"),
|
|
15179
15178
|
...n("pivotBy"),
|
|
@@ -15274,7 +15273,7 @@ function hm({
|
|
|
15274
15273
|
}
|
|
15275
15274
|
if (V !== b.qualifiedEntityName && !h(b) && b.qualifiedEntityName)
|
|
15276
15275
|
if (f && (u != null && u.joinabilityMap)) {
|
|
15277
|
-
if (
|
|
15276
|
+
if (Ho(b, {
|
|
15278
15277
|
joinabilityMap: u.joinabilityMap,
|
|
15279
15278
|
selectedFields: D,
|
|
15280
15279
|
baseEntityName: (F = r == null ? void 0 : r.baseEntity) == null ? void 0 : F.name
|
|
@@ -15288,7 +15287,7 @@ function hm({
|
|
|
15288
15287
|
on(), c(null);
|
|
15289
15288
|
return;
|
|
15290
15289
|
}
|
|
15291
|
-
if (!
|
|
15290
|
+
if (!Yo(
|
|
15292
15291
|
V,
|
|
15293
15292
|
b.qualifiedEntityName,
|
|
15294
15293
|
r
|
|
@@ -15403,7 +15402,7 @@ function hm({
|
|
|
15403
15402
|
handleDragEnd: p
|
|
15404
15403
|
};
|
|
15405
15404
|
}
|
|
15406
|
-
function
|
|
15405
|
+
function fm({
|
|
15407
15406
|
activeView: t,
|
|
15408
15407
|
onViewChange: s,
|
|
15409
15408
|
splitViewEnabled: n
|
|
@@ -15445,7 +15444,7 @@ function pm({
|
|
|
15445
15444
|
}
|
|
15446
15445
|
);
|
|
15447
15446
|
}
|
|
15448
|
-
const
|
|
15447
|
+
const gm = [
|
|
15449
15448
|
{ value: "10", label: "Top 10" },
|
|
15450
15449
|
{ value: "20", label: "Top 20" },
|
|
15451
15450
|
{ value: "50", label: "Top 50" },
|
|
@@ -15455,7 +15454,7 @@ const fm = [
|
|
|
15455
15454
|
{ value: "1000", label: "Top 1000" }
|
|
15456
15455
|
// { value: 'custom', label: 'Custom' },
|
|
15457
15456
|
];
|
|
15458
|
-
function
|
|
15457
|
+
function xm() {
|
|
15459
15458
|
var r, h;
|
|
15460
15459
|
const t = E((f) => f.card), { updateRowLimit: s } = de(), [n, l] = _(!1), [o, c] = _(""), i = (f) => {
|
|
15461
15460
|
if (f === "custom") {
|
|
@@ -15484,12 +15483,12 @@ function gm() {
|
|
|
15484
15483
|
onValueChange: i,
|
|
15485
15484
|
children: [
|
|
15486
15485
|
/* @__PURE__ */ e(X, { className: "h-8 w-24 border-none px-1 [&>svg]:hidden", children: /* @__PURE__ */ e(Z, { placeholder: "Select limit" }) }),
|
|
15487
|
-
/* @__PURE__ */ e(ee, { children:
|
|
15486
|
+
/* @__PURE__ */ e(ee, { children: gm.map((f) => /* @__PURE__ */ e(K, { value: f.value, children: f.label }, f.value)) })
|
|
15488
15487
|
]
|
|
15489
15488
|
}
|
|
15490
15489
|
) });
|
|
15491
15490
|
}
|
|
15492
|
-
function
|
|
15491
|
+
function bm({
|
|
15493
15492
|
card: t,
|
|
15494
15493
|
queryData: s,
|
|
15495
15494
|
isLoading: n,
|
|
@@ -15539,11 +15538,11 @@ function xm({
|
|
|
15539
15538
|
)
|
|
15540
15539
|
] });
|
|
15541
15540
|
}
|
|
15542
|
-
const
|
|
15543
|
-
function
|
|
15544
|
-
return jl(
|
|
15541
|
+
const ym = "semaphor-split-view-enabled";
|
|
15542
|
+
function Nm() {
|
|
15543
|
+
return jl(ym, !0);
|
|
15545
15544
|
}
|
|
15546
|
-
function
|
|
15545
|
+
function vm({
|
|
15547
15546
|
// selectedChart,
|
|
15548
15547
|
activeView: t,
|
|
15549
15548
|
onViewChange: s,
|
|
@@ -15565,7 +15564,7 @@ function Nm({
|
|
|
15565
15564
|
(se) => se.inlineFilterValuesMap[(c == null ? void 0 : c.id) || ""]
|
|
15566
15565
|
), { updateCardConfig: C, setCard: N, updateCardInFrame: p, setShowAIDialog: y } = de(), S = E((se) => se.showAIDialog), T = Se((se) => se.isVisualEditing), [B, R] = _(!1), [M, x] = _(!1), [k, A] = _(
|
|
15567
15566
|
null
|
|
15568
|
-
), { config: g } = Wn(Vn).tokenProps, F = (g == null ? void 0 : g.showInfoTab) !== !1, [b, D] =
|
|
15567
|
+
), { config: g } = Wn(Vn).tokenProps, F = (g == null ? void 0 : g.showInfoTab) !== !1, [b, D] = Nm();
|
|
15569
15568
|
E(
|
|
15570
15569
|
(se) => {
|
|
15571
15570
|
var ye;
|
|
@@ -15651,7 +15650,7 @@ function Nm({
|
|
|
15651
15650
|
});
|
|
15652
15651
|
}, le = ie(() => {
|
|
15653
15652
|
var se;
|
|
15654
|
-
return
|
|
15653
|
+
return Wo((se = h.config) == null ? void 0 : se.sortByColumns);
|
|
15655
15654
|
}, [(me = h.config) == null ? void 0 : me.sortByColumns]);
|
|
15656
15655
|
return /* @__PURE__ */ a(
|
|
15657
15656
|
"div",
|
|
@@ -15666,7 +15665,7 @@ function Nm({
|
|
|
15666
15665
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-2", children: [
|
|
15667
15666
|
t === "chart" && S && /* @__PURE__ */ e("div", { className: "w-[260px]", children: /* @__PURE__ */ e(es, { variant: "outline" }) }),
|
|
15668
15667
|
/* @__PURE__ */ e(
|
|
15669
|
-
|
|
15668
|
+
fm,
|
|
15670
15669
|
{
|
|
15671
15670
|
activeView: t,
|
|
15672
15671
|
onViewChange: s,
|
|
@@ -15674,7 +15673,7 @@ function Nm({
|
|
|
15674
15673
|
}
|
|
15675
15674
|
),
|
|
15676
15675
|
/* @__PURE__ */ e(
|
|
15677
|
-
|
|
15676
|
+
Qo,
|
|
15678
15677
|
{
|
|
15679
15678
|
cardId: c.id,
|
|
15680
15679
|
cardFilters: (ge = c.config) == null ? void 0 : ge.filters,
|
|
@@ -15688,13 +15687,13 @@ function Nm({
|
|
|
15688
15687
|
}
|
|
15689
15688
|
),
|
|
15690
15689
|
j && h.type !== "table" && /* @__PURE__ */ e(
|
|
15691
|
-
|
|
15690
|
+
Xo,
|
|
15692
15691
|
{
|
|
15693
15692
|
metadata: j,
|
|
15694
15693
|
variant: "compact"
|
|
15695
15694
|
}
|
|
15696
15695
|
),
|
|
15697
|
-
/* @__PURE__ */ e("div", { className: "ml-2", children: /* @__PURE__ */ e(
|
|
15696
|
+
/* @__PURE__ */ e("div", { className: "ml-2", children: /* @__PURE__ */ e(xm, {}) }),
|
|
15698
15697
|
S && /* @__PURE__ */ e(Qn, {})
|
|
15699
15698
|
] }),
|
|
15700
15699
|
/* @__PURE__ */ a("div", { className: ae("flex grow items-center justify-end gap-2"), children: [
|
|
@@ -15721,7 +15720,7 @@ function Nm({
|
|
|
15721
15720
|
{
|
|
15722
15721
|
tooltip: b ? "Hide Results Table" : "Show Results Table",
|
|
15723
15722
|
onClick: re,
|
|
15724
|
-
children: b ? /* @__PURE__ */ e(
|
|
15723
|
+
children: b ? /* @__PURE__ */ e(fc, { className: "size-4" }) : /* @__PURE__ */ e(Dc, { className: "size-4" })
|
|
15725
15724
|
}
|
|
15726
15725
|
),
|
|
15727
15726
|
t === "chart" && /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ e(Jl, {}) }),
|
|
@@ -15751,7 +15750,7 @@ function Nm({
|
|
|
15751
15750
|
].includes(c.type)
|
|
15752
15751
|
}),
|
|
15753
15752
|
children: /* @__PURE__ */ e(
|
|
15754
|
-
|
|
15753
|
+
bm,
|
|
15755
15754
|
{
|
|
15756
15755
|
card: c,
|
|
15757
15756
|
queryData: O,
|
|
@@ -15795,7 +15794,7 @@ function Nm({
|
|
|
15795
15794
|
error: z,
|
|
15796
15795
|
errorSql: v,
|
|
15797
15796
|
onSendFeedback: () => {
|
|
15798
|
-
const se =
|
|
15797
|
+
const se = Zo(
|
|
15799
15798
|
cl.QUERY_GENERATION,
|
|
15800
15799
|
{
|
|
15801
15800
|
cardConfig: h.config,
|
|
@@ -15835,7 +15834,7 @@ function Nm({
|
|
|
15835
15834
|
}
|
|
15836
15835
|
);
|
|
15837
15836
|
}
|
|
15838
|
-
function
|
|
15837
|
+
function Cm({ activeField: t }) {
|
|
15839
15838
|
const [s, n] = _(!0);
|
|
15840
15839
|
return be(() => {
|
|
15841
15840
|
t && n(!0);
|
|
@@ -15851,7 +15850,7 @@ function vm({ activeField: t }) {
|
|
|
15851
15850
|
}
|
|
15852
15851
|
) : null;
|
|
15853
15852
|
}
|
|
15854
|
-
const
|
|
15853
|
+
const wm = () => {
|
|
15855
15854
|
const t = console.error;
|
|
15856
15855
|
console.error = (...l) => {
|
|
15857
15856
|
l.length > 0 && typeof l[0] == "string" && l[0].includes(
|
|
@@ -15878,7 +15877,7 @@ const Cm = () => {
|
|
|
15878
15877
|
);
|
|
15879
15878
|
};
|
|
15880
15879
|
};
|
|
15881
|
-
function
|
|
15880
|
+
function Sm({ column: t, isSelected: s, onSelect: n, availableFields: l, width: o, onWidthChange: c }) {
|
|
15882
15881
|
var L, j, J;
|
|
15883
15882
|
const i = E(($) => $.card), { updateCardConfig: d, removeGroupByColumn: r, removeMetricColumn: h, updateFilters: f } = de(), [u, m] = _(!1), [C, N] = _(!1), p = at(null), y = Ke(($) => {
|
|
15884
15883
|
$.preventDefault(), $.stopPropagation(), N(!0), p.current = {
|
|
@@ -15907,7 +15906,7 @@ function wm({ column: t, isSelected: s, onSelect: n, availableFields: l, width:
|
|
|
15907
15906
|
} = _a({ id: t.id }), F = {
|
|
15908
15907
|
transform: Ja.Transform.toString(k),
|
|
15909
15908
|
transition: A
|
|
15910
|
-
}, b = Le(t.dataType), D =
|
|
15909
|
+
}, b = Le(t.dataType), D = km(b), O = () => {
|
|
15911
15910
|
var re;
|
|
15912
15911
|
const $ = ((re = i == null ? void 0 : i.config) == null ? void 0 : re.sortByColumns) || [], H = $.findIndex((ne) => ne.name === t.name);
|
|
15913
15912
|
if (H !== -1) {
|
|
@@ -16033,20 +16032,20 @@ function wm({ column: t, isSelected: s, onSelect: n, availableFields: l, width:
|
|
|
16033
16032
|
] }),
|
|
16034
16033
|
/* @__PURE__ */ e(Ut, {}),
|
|
16035
16034
|
/* @__PURE__ */ a(rt, { onClick: O, children: [
|
|
16036
|
-
/* @__PURE__ */ e(
|
|
16035
|
+
/* @__PURE__ */ e(mc, { className: "mr-2 h-4 w-4" }),
|
|
16037
16036
|
"Sort A → Z"
|
|
16038
16037
|
] }),
|
|
16039
16038
|
/* @__PURE__ */ a(rt, { onClick: z, children: [
|
|
16040
|
-
/* @__PURE__ */ e(
|
|
16039
|
+
/* @__PURE__ */ e(uc, { className: "mr-2 h-4 w-4" }),
|
|
16041
16040
|
"Sort Z → A"
|
|
16042
16041
|
] }),
|
|
16043
16042
|
/* @__PURE__ */ e(Ut, {}),
|
|
16044
|
-
/* @__PURE__ */ a(
|
|
16045
|
-
/* @__PURE__ */ a(
|
|
16043
|
+
/* @__PURE__ */ a(ec, { children: [
|
|
16044
|
+
/* @__PURE__ */ a(tc, { children: [
|
|
16046
16045
|
/* @__PURE__ */ e(Yn, { className: "mr-2 h-4 w-4" }),
|
|
16047
16046
|
"Summarize"
|
|
16048
16047
|
] }),
|
|
16049
|
-
/* @__PURE__ */ a(
|
|
16048
|
+
/* @__PURE__ */ a(ac, { children: [
|
|
16050
16049
|
/* @__PURE__ */ e(rt, { onClick: () => I("SUM"), children: "Sum" }),
|
|
16051
16050
|
/* @__PURE__ */ e(rt, { onClick: () => I("AVG"), children: "Average" }),
|
|
16052
16051
|
/* @__PURE__ */ e(rt, { onClick: () => I("COUNT"), children: "Count" }),
|
|
@@ -16110,7 +16109,7 @@ function wm({ column: t, isSelected: s, onSelect: n, availableFields: l, width:
|
|
|
16110
16109
|
}
|
|
16111
16110
|
);
|
|
16112
16111
|
}
|
|
16113
|
-
function
|
|
16112
|
+
function km(t) {
|
|
16114
16113
|
switch (t) {
|
|
16115
16114
|
case "number":
|
|
16116
16115
|
return Ta;
|
|
@@ -16121,7 +16120,7 @@ function Sm(t) {
|
|
|
16121
16120
|
return Ha;
|
|
16122
16121
|
}
|
|
16123
16122
|
}
|
|
16124
|
-
function
|
|
16123
|
+
function Tm({
|
|
16125
16124
|
selectedColumn: t,
|
|
16126
16125
|
onColumnSelect: s,
|
|
16127
16126
|
isLoading: n = !1,
|
|
@@ -16231,7 +16230,7 @@ function km({
|
|
|
16231
16230
|
items: m.map((D) => D.id),
|
|
16232
16231
|
strategy: Fs,
|
|
16233
16232
|
children: m.map((D) => /* @__PURE__ */ e(
|
|
16234
|
-
|
|
16233
|
+
Sm,
|
|
16235
16234
|
{
|
|
16236
16235
|
column: D,
|
|
16237
16236
|
isSelected: (t == null ? void 0 : t.id) === D.id,
|
|
@@ -16318,7 +16317,7 @@ function km({
|
|
|
16318
16317
|
"border-r border-border px-3 py-2 text-sm",
|
|
16319
16318
|
(t == null ? void 0 : t.id) === z.id && "bg-primary/5"
|
|
16320
16319
|
),
|
|
16321
|
-
children: /* @__PURE__ */ e("span", { className: "block truncate", children:
|
|
16320
|
+
children: /* @__PURE__ */ e("span", { className: "block truncate", children: Am(w, z) })
|
|
16322
16321
|
},
|
|
16323
16322
|
`${O}-${z.id}`
|
|
16324
16323
|
);
|
|
@@ -16348,7 +16347,7 @@ function km({
|
|
|
16348
16347
|
] })
|
|
16349
16348
|
] });
|
|
16350
16349
|
}
|
|
16351
|
-
function
|
|
16350
|
+
function Am(t, s) {
|
|
16352
16351
|
if (t == null)
|
|
16353
16352
|
return "—";
|
|
16354
16353
|
if (typeof t == "number")
|
|
@@ -16367,7 +16366,7 @@ function Tm(t, s) {
|
|
|
16367
16366
|
}
|
|
16368
16367
|
return String(t);
|
|
16369
16368
|
}
|
|
16370
|
-
function
|
|
16369
|
+
function Dm({
|
|
16371
16370
|
entityGroups: t,
|
|
16372
16371
|
isLoading: s = !1
|
|
16373
16372
|
}) {
|
|
@@ -16432,7 +16431,7 @@ function Am({
|
|
|
16432
16431
|
className: "h-7 w-7 p-0 text-muted-foreground hover:text-foreground",
|
|
16433
16432
|
onClick: () => d(!1),
|
|
16434
16433
|
title: "Close panel",
|
|
16435
|
-
children: /* @__PURE__ */ e(
|
|
16434
|
+
children: /* @__PURE__ */ e(wc, { className: "h-4 w-4" })
|
|
16436
16435
|
}
|
|
16437
16436
|
)
|
|
16438
16437
|
] }),
|
|
@@ -16579,11 +16578,11 @@ function Am({
|
|
|
16579
16578
|
className: "h-8 w-8 p-0",
|
|
16580
16579
|
onClick: () => d(!0),
|
|
16581
16580
|
title: "Open panel",
|
|
16582
|
-
children: /* @__PURE__ */ e(
|
|
16581
|
+
children: /* @__PURE__ */ e(Sc, { className: "h-4 w-4" })
|
|
16583
16582
|
}
|
|
16584
16583
|
) });
|
|
16585
16584
|
}
|
|
16586
|
-
const
|
|
16585
|
+
const Im = [
|
|
16587
16586
|
{ name: "SUM", description: "Sum of values", syntax: "SUM([column])" },
|
|
16588
16587
|
{ name: "AVG", description: "Average of values", syntax: "AVG([column])" },
|
|
16589
16588
|
{ name: "COUNT", description: "Count of rows", syntax: "COUNT([column])" },
|
|
@@ -16600,7 +16599,7 @@ const Dm = [
|
|
|
16600
16599
|
{ name: "DATEPART", description: "Extract date part", syntax: "DATEPART(year, [date])" },
|
|
16601
16600
|
{ name: "DATEDIFF", description: "Difference between dates", syntax: "DATEDIFF(day, [date1], [date2])" }
|
|
16602
16601
|
];
|
|
16603
|
-
function
|
|
16602
|
+
function Em({
|
|
16604
16603
|
value: t,
|
|
16605
16604
|
onChange: s,
|
|
16606
16605
|
onSubmit: n,
|
|
@@ -16657,14 +16656,14 @@ function Im({
|
|
|
16657
16656
|
size: "sm",
|
|
16658
16657
|
className: "h-7 w-7 p-0 text-muted-foreground hover:text-foreground",
|
|
16659
16658
|
title: "Insert function",
|
|
16660
|
-
children: /* @__PURE__ */ e(
|
|
16659
|
+
children: /* @__PURE__ */ e(Ac, { className: "h-4 w-4" })
|
|
16661
16660
|
}
|
|
16662
16661
|
) }),
|
|
16663
16662
|
/* @__PURE__ */ e(ht, { className: "w-[300px] p-0", align: "start", children: /* @__PURE__ */ a(na, { children: [
|
|
16664
16663
|
/* @__PURE__ */ e(sa, { placeholder: "Search functions..." }),
|
|
16665
16664
|
/* @__PURE__ */ a(la, { children: [
|
|
16666
16665
|
/* @__PURE__ */ e(ra, { children: "No functions found." }),
|
|
16667
|
-
/* @__PURE__ */ e(ia, { heading: "Functions", children:
|
|
16666
|
+
/* @__PURE__ */ e(ia, { heading: "Functions", children: Im.map((N) => /* @__PURE__ */ e(
|
|
16668
16667
|
oa,
|
|
16669
16668
|
{
|
|
16670
16669
|
value: N.name,
|
|
@@ -16756,7 +16755,7 @@ function Im({
|
|
|
16756
16755
|
] })
|
|
16757
16756
|
] });
|
|
16758
16757
|
}
|
|
16759
|
-
function
|
|
16758
|
+
function Om({ className: t }) {
|
|
16760
16759
|
var m, C, N, p;
|
|
16761
16760
|
const s = E((y) => y.card), [n, l] = _(null), [o, c] = _(""), {
|
|
16762
16761
|
columns: i = [],
|
|
@@ -16773,7 +16772,7 @@ function Em({ className: t }) {
|
|
|
16773
16772
|
};
|
|
16774
16773
|
return /* @__PURE__ */ a("div", { className: ae("flex h-full w-full flex-col", t), children: [
|
|
16775
16774
|
/* @__PURE__ */ e(
|
|
16776
|
-
|
|
16775
|
+
Em,
|
|
16777
16776
|
{
|
|
16778
16777
|
value: o,
|
|
16779
16778
|
onChange: c,
|
|
@@ -16785,7 +16784,7 @@ function Em({ className: t }) {
|
|
|
16785
16784
|
),
|
|
16786
16785
|
/* @__PURE__ */ a("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
16787
16786
|
/* @__PURE__ */ e("div", { className: "flex-1 overflow-auto", children: /* @__PURE__ */ e(
|
|
16788
|
-
|
|
16787
|
+
Tm,
|
|
16789
16788
|
{
|
|
16790
16789
|
selectedColumn: n,
|
|
16791
16790
|
onColumnSelect: h,
|
|
@@ -16794,7 +16793,7 @@ function Em({ className: t }) {
|
|
|
16794
16793
|
}
|
|
16795
16794
|
) }),
|
|
16796
16795
|
/* @__PURE__ */ e(
|
|
16797
|
-
|
|
16796
|
+
Dm,
|
|
16798
16797
|
{
|
|
16799
16798
|
entityGroups: d,
|
|
16800
16799
|
isLoading: r
|
|
@@ -16803,12 +16802,12 @@ function Em({ className: t }) {
|
|
|
16803
16802
|
] })
|
|
16804
16803
|
] });
|
|
16805
16804
|
}
|
|
16806
|
-
function
|
|
16805
|
+
function Mm() {
|
|
16807
16806
|
var j, J;
|
|
16808
16807
|
const [t, s] = _(
|
|
16809
16808
|
"chart"
|
|
16810
16809
|
), [n, l] = _(!1), [o, c] = _(!1), [i, d] = _(!0), r = E(($) => $.showAIDialog), h = Se(($) => $.isVisualEditing), { setCardType: f } = de(), u = E(($) => $.card.type);
|
|
16811
|
-
be(() =>
|
|
16810
|
+
be(() => wm(), []);
|
|
16812
16811
|
const m = ($) => {
|
|
16813
16812
|
f($);
|
|
16814
16813
|
}, C = E(($) => $.frame), N = E(($) => $.card);
|
|
@@ -16829,7 +16828,7 @@ function Om() {
|
|
|
16829
16828
|
), g = N, {
|
|
16830
16829
|
getFieldsForContainer: F,
|
|
16831
16830
|
setFieldsForContainer: b
|
|
16832
|
-
} = El(g), { activeField: D, handleDragStart: O, handleDragEnd: z } =
|
|
16831
|
+
} = El(g), { activeField: D, handleDragStart: O, handleDragEnd: z } = pm({
|
|
16833
16832
|
activeCardId: C.activeCardId,
|
|
16834
16833
|
sourceFields: M,
|
|
16835
16834
|
getFieldsForContainer: F,
|
|
@@ -16867,9 +16866,9 @@ function Om() {
|
|
|
16867
16866
|
onToggleVisibility: () => d(!i)
|
|
16868
16867
|
}
|
|
16869
16868
|
),
|
|
16870
|
-
/* @__PURE__ */ e("div", { className: "flex flex-1 transition-all duration-300 ease-in-out", children: u === "tableBuilder" ? /* @__PURE__ */ e(
|
|
16869
|
+
/* @__PURE__ */ e("div", { className: "flex flex-1 transition-all duration-300 ease-in-out", children: u === "tableBuilder" ? /* @__PURE__ */ e(Om, { className: "flex-1" }) : /* @__PURE__ */ a(fe, { children: [
|
|
16871
16870
|
!r && /* @__PURE__ */ e(
|
|
16872
|
-
|
|
16871
|
+
Wu,
|
|
16873
16872
|
{
|
|
16874
16873
|
selectedChart: u,
|
|
16875
16874
|
onChartChange: m,
|
|
@@ -16882,7 +16881,7 @@ function Om() {
|
|
|
16882
16881
|
}
|
|
16883
16882
|
),
|
|
16884
16883
|
/* @__PURE__ */ e(
|
|
16885
|
-
|
|
16884
|
+
vm,
|
|
16886
16885
|
{
|
|
16887
16886
|
selectedChart: u,
|
|
16888
16887
|
activeView: t,
|
|
@@ -16917,7 +16916,7 @@ function Om() {
|
|
|
16917
16916
|
) })
|
|
16918
16917
|
] }),
|
|
16919
16918
|
g && /* @__PURE__ */ e(
|
|
16920
|
-
|
|
16919
|
+
hm,
|
|
16921
16920
|
{
|
|
16922
16921
|
cardId: g.id,
|
|
16923
16922
|
filters: ((J = g.config) == null ? void 0 : J.filters) || null,
|
|
@@ -16928,13 +16927,13 @@ function Om() {
|
|
|
16928
16927
|
onOpenChange: c
|
|
16929
16928
|
}
|
|
16930
16929
|
),
|
|
16931
|
-
/* @__PURE__ */ e(Fl, { dropAnimation: null, children: /* @__PURE__ */ e(
|
|
16930
|
+
/* @__PURE__ */ e(Fl, { dropAnimation: null, children: /* @__PURE__ */ e(Cm, { activeField: D || null }) })
|
|
16932
16931
|
]
|
|
16933
16932
|
}
|
|
16934
16933
|
);
|
|
16935
16934
|
}
|
|
16936
|
-
function
|
|
16937
|
-
const l = at(null), o = E((x) => x.showAIDialog), c = E((x) => x.isDevMode), i = cn((x) => x.setFullscreen), d = cn((x) => x.setPanelOpen), r = cn((x) => x.setContainer), h =
|
|
16935
|
+
function Fm({ authToken: t, onSave: s, onClose: n }) {
|
|
16936
|
+
const l = at(null), o = E((x) => x.showAIDialog), c = E((x) => x.isDevMode), i = cn((x) => x.setFullscreen), d = cn((x) => x.setPanelOpen), r = cn((x) => x.setContainer), h = nc("editor"), f = sc(), u = lc("editor"), m = f === "editor", C = Ke(
|
|
16938
16937
|
(x) => {
|
|
16939
16938
|
r("editor", x);
|
|
16940
16939
|
},
|
|
@@ -16973,7 +16972,7 @@ function Mm({ authToken: t, onSave: s, onClose: n }) {
|
|
|
16973
16972
|
),
|
|
16974
16973
|
direction: "horizontal",
|
|
16975
16974
|
children: [
|
|
16976
|
-
/* @__PURE__ */ e(We, { className: "min-w-[510px] rounded-none", children: /* @__PURE__ */ e(
|
|
16975
|
+
/* @__PURE__ */ e(We, { className: "min-w-[510px] rounded-none", children: /* @__PURE__ */ e(Fu, {}) }),
|
|
16977
16976
|
/* @__PURE__ */ e($t, { disabled: !o }),
|
|
16978
16977
|
/* @__PURE__ */ e(
|
|
16979
16978
|
We,
|
|
@@ -17021,7 +17020,7 @@ function Mm({ authToken: t, onSave: s, onClose: n }) {
|
|
|
17021
17020
|
),
|
|
17022
17021
|
direction: "horizontal",
|
|
17023
17022
|
children: [
|
|
17024
|
-
/* @__PURE__ */ e(We, { className: "min-w-[510px] grow rounded-none", children: /* @__PURE__ */ e(
|
|
17023
|
+
/* @__PURE__ */ e(We, { className: "min-w-[510px] grow rounded-none", children: /* @__PURE__ */ e(Mm, {}) }),
|
|
17025
17024
|
/* @__PURE__ */ e($t, { disabled: !o }),
|
|
17026
17025
|
/* @__PURE__ */ e(
|
|
17027
17026
|
We,
|
|
@@ -17056,7 +17055,7 @@ function Mm({ authToken: t, onSave: s, onClose: n }) {
|
|
|
17056
17055
|
)
|
|
17057
17056
|
] });
|
|
17058
17057
|
}
|
|
17059
|
-
return /* @__PURE__ */ e(Ka, { FallbackComponent:
|
|
17058
|
+
return /* @__PURE__ */ e(Ka, { FallbackComponent: rc, children: c ? /* @__PURE__ */ e(
|
|
17060
17059
|
"section",
|
|
17061
17060
|
{
|
|
17062
17061
|
className: "isolate flex h-full grow",
|
|
@@ -17065,7 +17064,7 @@ function Mm({ authToken: t, onSave: s, onClose: n }) {
|
|
|
17065
17064
|
}
|
|
17066
17065
|
) : M() });
|
|
17067
17066
|
}
|
|
17068
|
-
function
|
|
17067
|
+
function zm() {
|
|
17069
17068
|
Se((r) => r.selectedCardId);
|
|
17070
17069
|
const t = Se((r) => r.selectedSheetId), s = Se((r) => r.dashboard), { setIsVisualEditing: n, setSelectedSheetId: l } = Se(
|
|
17071
17070
|
(r) => r.actions
|
|
@@ -17095,10 +17094,10 @@ function Bm() {
|
|
|
17095
17094
|
className: ae("flex-1 grow basis-0 overflow-auto", {
|
|
17096
17095
|
"max-h-0 overflow-hidden": !o
|
|
17097
17096
|
}),
|
|
17098
|
-
children: /* @__PURE__ */ e(
|
|
17097
|
+
children: /* @__PURE__ */ e(Fm, { onSave: i, onClose: d })
|
|
17099
17098
|
}
|
|
17100
17099
|
);
|
|
17101
17100
|
}
|
|
17102
17101
|
export {
|
|
17103
|
-
|
|
17102
|
+
zm as default
|
|
17104
17103
|
};
|