semaphor 0.0.72 → 0.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{dashboard-plus--r2Tb_gT.js → dashboard-plus-Y0SaVfMR.js} +254 -253
- package/dist/chunks/dashboard-plus-aiBcmf0f.js +240 -0
- package/dist/chunks/{index-hTb91YWh.js → index-FWArdRk4.js} +9944 -9848
- package/dist/chunks/{index-_csobcn7.js → index-Vo7AS1qw.js} +98 -98
- package/dist/chunks/{lucide-react-J8RovW8Z.js → lucide-react-aeDoVIV4.js} +1 -1
- package/dist/chunks/{lucide-react-oWoMIQn8.js → lucide-react-ywxrrj3b.js} +3 -3
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/dashboard.d.ts +11 -1
- package/dist/types/main.d.ts +19 -1
- package/dist/types/surfboard.d.ts +11 -1
- package/dist/types/types.d.ts +11 -1
- package/package.json +1 -1
- package/dist/chunks/dashboard-plus-xkBOLeNV.js +0 -240
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as A, L as Ge, b as z, c as Cs, u as je, j as e, M as Ns, O as Ss, P as F, Q as ws, R as ks, U as zs, V as Fs, W as Is, X as H, Y as Se, Z as ta, _ as na, $ as la, a0 as ra, a1 as Za, a2 as et, a3 as st, a4 as Bs, f as X, a5 as He, a6 as at, a7 as ia, a8 as $e, a9 as Pe, T as Ts, e as oa, g as Ds, aa as he, ab as me, ac as xe, ad as pe, ae as we, af as fe, ag as W, ah as Ls, G as o, ai as Ms, aj as Os, ak as As, w as ca, v as da, t as ue, al as tt, r as nt, N as ua, s as lt, am as rt, B as it, an as ha, ao as ot, S as Es, z as ct, n as Us, A as ma, ap as fs, aq as ie, ar as Ne, as as Ie, at as ls, au as xa, av as dt, aw as ut, ax as pa, ay as ht, az as mt, aA as xt, aB as pt, aC as ft, aD as gs, aE as gt, aF as jt, aG as _e, aH as js, aI as Me, aJ as bs, aK as Gs, aL as bt, aM as yt, aN as vt, aO as Ct, aP as Nt, aQ as
|
|
1
|
+
import { J as A, L as Ge, b as z, c as Cs, u as je, j as e, M as Ns, O as Ss, P as F, Q as ws, R as ks, U as zs, V as Fs, W as Is, X as H, Y as Se, Z as ta, _ as na, $ as la, a0 as ra, a1 as Za, a2 as et, a3 as st, a4 as Bs, f as X, a5 as He, a6 as at, a7 as ia, a8 as $e, a9 as Pe, T as Ts, e as oa, g as Ds, aa as he, ab as me, ac as xe, ad as pe, ae as we, af as fe, ag as W, ah as Ls, G as o, ai as Ms, aj as Os, ak as As, w as ca, v as da, t as ue, al as tt, r as nt, N as ua, s as lt, am as rt, B as it, an as ha, ao as ot, S as Es, z as ct, n as Us, A as ma, ap as fs, aq as ie, ar as Ne, as as Ie, at as ls, au as xa, av as dt, aw as ut, ax as pa, ay as ht, az as mt, aA as xt, aB as pt, aC as ft, aD as gs, aE as gt, aF as jt, aG as _e, aH as js, aI as Me, aJ as bs, aK as Gs, aL as bt, aM as yt, aN as vt, aO as Ct, aP as Nt, aQ as St, aR as ps, aS as wt, aT as Ks, aU as kt, aV as Qs, aW as zt, aX as Ft, aY as It, aZ as fa, H as be, a_ as ga, l as Tt, C as Dt, E as Ze, d as Lt, h as Mt, a$ as Ot, i as At, o as Et, b0 as Vt, m as qt, b1 as Rt, b2 as ja, b3 as ba, b4 as es, b5 as ya, b6 as ss, b7 as Ws, b8 as _t, b9 as Ht, ba as rs, bb as is, bc as os, bd as $t, be as Pt, bf as va, K as Bt, bg as Ut, bh as Gt, bi as cs, bj as Te, bk as Kt, bl as Qt, bm as Ca, bn as Wt, bo as Jt, bp as as, bq as Yt, br as Xt, bs as Zt, bt as Js, bu as en, bv as sn, bw as an, bx as tn, by as nn, bz as ln, bA as rn, bB as on, bC as De, bD as B, bE as U, bF as Vs, bG as G, bH as cn, bI as Na, bJ as Sa, bK as dn, bL as un, bM as hn, bN as mn, bO as xn, bP as pn, bQ as fn, bR as gn, bS as jn } from "./index-FWArdRk4.js";
|
|
2
2
|
import * as Ys from "react";
|
|
3
|
-
import ge, { useState as E, useMemo as ys, useEffect as Y, useRef as Be, Suspense as
|
|
3
|
+
import ge, { useState as E, useMemo as ys, useEffect as Y, useRef as Be, Suspense as bn } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -8,7 +8,7 @@ import "react-dom";
|
|
|
8
8
|
* This source code is licensed under the ISC license.
|
|
9
9
|
* See the LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
const
|
|
11
|
+
const yn = A("Box", [
|
|
12
12
|
[
|
|
13
13
|
"path",
|
|
14
14
|
{
|
|
@@ -25,7 +25,7 @@ const bn = A("Box", [
|
|
|
25
25
|
* This source code is licensed under the ISC license.
|
|
26
26
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
27
|
*/
|
|
28
|
-
const
|
|
28
|
+
const vn = A("ChartArea", [
|
|
29
29
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
30
30
|
[
|
|
31
31
|
"path",
|
|
@@ -104,7 +104,7 @@ const za = A("ChartScatter", [
|
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
106
|
*/
|
|
107
|
-
const
|
|
107
|
+
const Cn = A("CircleX", [
|
|
108
108
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
109
109
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
110
110
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -115,7 +115,7 @@ const vn = A("CircleX", [
|
|
|
115
115
|
* This source code is licensed under the ISC license.
|
|
116
116
|
* See the LICENSE file in the root directory of this source tree.
|
|
117
117
|
*/
|
|
118
|
-
const
|
|
118
|
+
const Nn = A("CopyPlus", [
|
|
119
119
|
["line", { x1: "15", x2: "15", y1: "12", y2: "18", key: "1p7wdc" }],
|
|
120
120
|
["line", { x1: "12", x2: "18", y1: "15", y2: "15", key: "1nscbv" }],
|
|
121
121
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
@@ -127,7 +127,7 @@ const Cn = A("CopyPlus", [
|
|
|
127
127
|
* This source code is licensed under the ISC license.
|
|
128
128
|
* See the LICENSE file in the root directory of this source tree.
|
|
129
129
|
*/
|
|
130
|
-
const
|
|
130
|
+
const Sn = A("Database", [
|
|
131
131
|
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
132
132
|
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
133
133
|
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
@@ -149,7 +149,7 @@ const Fa = A("EllipsisVertical", [
|
|
|
149
149
|
* This source code is licensed under the ISC license.
|
|
150
150
|
* See the LICENSE file in the root directory of this source tree.
|
|
151
151
|
*/
|
|
152
|
-
const
|
|
152
|
+
const wn = A("Eraser", [
|
|
153
153
|
[
|
|
154
154
|
"path",
|
|
155
155
|
{
|
|
@@ -166,7 +166,7 @@ const Sn = A("Eraser", [
|
|
|
166
166
|
* This source code is licensed under the ISC license.
|
|
167
167
|
* See the LICENSE file in the root directory of this source tree.
|
|
168
168
|
*/
|
|
169
|
-
const
|
|
169
|
+
const kn = A("EyeClosed", [
|
|
170
170
|
["path", { d: "m15 18-.722-3.25", key: "1j64jw" }],
|
|
171
171
|
["path", { d: "M2 8a10.645 10.645 0 0 0 20 0", key: "1e7gxb" }],
|
|
172
172
|
["path", { d: "m20 15-1.726-2.05", key: "1cnuld" }],
|
|
@@ -179,7 +179,7 @@ const wn = A("EyeClosed", [
|
|
|
179
179
|
* This source code is licensed under the ISC license.
|
|
180
180
|
* See the LICENSE file in the root directory of this source tree.
|
|
181
181
|
*/
|
|
182
|
-
const
|
|
182
|
+
const zn = A("Eye", [
|
|
183
183
|
[
|
|
184
184
|
"path",
|
|
185
185
|
{
|
|
@@ -195,7 +195,7 @@ const kn = A("Eye", [
|
|
|
195
195
|
* This source code is licensed under the ISC license.
|
|
196
196
|
* See the LICENSE file in the root directory of this source tree.
|
|
197
197
|
*/
|
|
198
|
-
const
|
|
198
|
+
const Fn = A("Glasses", [
|
|
199
199
|
["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
|
|
200
200
|
["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
|
|
201
201
|
["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
|
|
@@ -208,7 +208,7 @@ const zn = A("Glasses", [
|
|
|
208
208
|
* This source code is licensed under the ISC license.
|
|
209
209
|
* See the LICENSE file in the root directory of this source tree.
|
|
210
210
|
*/
|
|
211
|
-
const
|
|
211
|
+
const In = A("Hammer", [
|
|
212
212
|
["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
|
|
213
213
|
["path", { d: "m18 15 4-4", key: "16gjal" }],
|
|
214
214
|
[
|
|
@@ -225,7 +225,7 @@ const Fn = A("Hammer", [
|
|
|
225
225
|
* This source code is licensed under the ISC license.
|
|
226
226
|
* See the LICENSE file in the root directory of this source tree.
|
|
227
227
|
*/
|
|
228
|
-
const
|
|
228
|
+
const Tn = A("Hash", [
|
|
229
229
|
["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
|
|
230
230
|
["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
|
|
231
231
|
["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
|
|
@@ -237,7 +237,7 @@ const In = A("Hash", [
|
|
|
237
237
|
* This source code is licensed under the ISC license.
|
|
238
238
|
* See the LICENSE file in the root directory of this source tree.
|
|
239
239
|
*/
|
|
240
|
-
const
|
|
240
|
+
const Dn = A("House", [
|
|
241
241
|
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
242
242
|
[
|
|
243
243
|
"path",
|
|
@@ -264,7 +264,7 @@ const Ia = A("Key", [
|
|
|
264
264
|
* This source code is licensed under the ISC license.
|
|
265
265
|
* See the LICENSE file in the root directory of this source tree.
|
|
266
266
|
*/
|
|
267
|
-
const
|
|
267
|
+
const Ln = A("ListEnd", [
|
|
268
268
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
269
269
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
270
270
|
["path", { d: "M10 18H3", key: "13769t" }],
|
|
@@ -277,7 +277,7 @@ const Dn = A("ListEnd", [
|
|
|
277
277
|
* This source code is licensed under the ISC license.
|
|
278
278
|
* See the LICENSE file in the root directory of this source tree.
|
|
279
279
|
*/
|
|
280
|
-
const
|
|
280
|
+
const Mn = A("ListStart", [
|
|
281
281
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
282
282
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
283
283
|
["path", { d: "M10 6H3", key: "lf8lx7" }],
|
|
@@ -290,7 +290,7 @@ const Ln = A("ListStart", [
|
|
|
290
290
|
* This source code is licensed under the ISC license.
|
|
291
291
|
* See the LICENSE file in the root directory of this source tree.
|
|
292
292
|
*/
|
|
293
|
-
const
|
|
293
|
+
const On = A("ListX", [
|
|
294
294
|
["path", { d: "M11 12H3", key: "51ecnj" }],
|
|
295
295
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
296
296
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
@@ -312,7 +312,7 @@ const Ue = A("LoaderCircle", [
|
|
|
312
312
|
* This source code is licensed under the ISC license.
|
|
313
313
|
* See the LICENSE file in the root directory of this source tree.
|
|
314
314
|
*/
|
|
315
|
-
const
|
|
315
|
+
const An = A("MessageSquareMore", [
|
|
316
316
|
["path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z", key: "1lielz" }],
|
|
317
317
|
["path", { d: "M8 10h.01", key: "19clt8" }],
|
|
318
318
|
["path", { d: "M12 10h.01", key: "1nrarc" }],
|
|
@@ -324,7 +324,7 @@ const On = A("MessageSquareMore", [
|
|
|
324
324
|
* This source code is licensed under the ISC license.
|
|
325
325
|
* See the LICENSE file in the root directory of this source tree.
|
|
326
326
|
*/
|
|
327
|
-
const
|
|
327
|
+
const En = A("Network", [
|
|
328
328
|
["rect", { x: "16", y: "16", width: "6", height: "6", rx: "1", key: "4q2zg0" }],
|
|
329
329
|
["rect", { x: "2", y: "16", width: "6", height: "6", rx: "1", key: "8cvhb9" }],
|
|
330
330
|
["rect", { x: "9", y: "2", width: "6", height: "6", rx: "1", key: "1egb70" }],
|
|
@@ -353,7 +353,7 @@ const Ta = A("Pencil", [
|
|
|
353
353
|
* This source code is licensed under the ISC license.
|
|
354
354
|
* See the LICENSE file in the root directory of this source tree.
|
|
355
355
|
*/
|
|
356
|
-
const
|
|
356
|
+
const Vn = A("Play", [
|
|
357
357
|
["polygon", { points: "6 3 20 12 6 21 6 3", key: "1oa8hb" }]
|
|
358
358
|
]);
|
|
359
359
|
/**
|
|
@@ -362,7 +362,7 @@ const En = A("Play", [
|
|
|
362
362
|
* This source code is licensed under the ISC license.
|
|
363
363
|
* See the LICENSE file in the root directory of this source tree.
|
|
364
364
|
*/
|
|
365
|
-
const
|
|
365
|
+
const qn = A("Plug2", [
|
|
366
366
|
["path", { d: "M9 2v6", key: "17ngun" }],
|
|
367
367
|
["path", { d: "M15 2v6", key: "s7yy2p" }],
|
|
368
368
|
["path", { d: "M12 17v5", key: "bb1du9" }],
|
|
@@ -375,7 +375,7 @@ const Vn = A("Plug2", [
|
|
|
375
375
|
* This source code is licensed under the ISC license.
|
|
376
376
|
* See the LICENSE file in the root directory of this source tree.
|
|
377
377
|
*/
|
|
378
|
-
const
|
|
378
|
+
const Rn = A("Save", [
|
|
379
379
|
[
|
|
380
380
|
"path",
|
|
381
381
|
{
|
|
@@ -409,7 +409,7 @@ const Da = A("Shapes", [
|
|
|
409
409
|
* This source code is licensed under the ISC license.
|
|
410
410
|
* See the LICENSE file in the root directory of this source tree.
|
|
411
411
|
*/
|
|
412
|
-
const
|
|
412
|
+
const _n = A("ShieldQuestion", [
|
|
413
413
|
[
|
|
414
414
|
"path",
|
|
415
415
|
{
|
|
@@ -426,7 +426,7 @@ const Rn = A("ShieldQuestion", [
|
|
|
426
426
|
* This source code is licensed under the ISC license.
|
|
427
427
|
* See the LICENSE file in the root directory of this source tree.
|
|
428
428
|
*/
|
|
429
|
-
const
|
|
429
|
+
const Hn = A("Sigma", [
|
|
430
430
|
[
|
|
431
431
|
"path",
|
|
432
432
|
{
|
|
@@ -441,7 +441,7 @@ const _n = A("Sigma", [
|
|
|
441
441
|
* This source code is licensed under the ISC license.
|
|
442
442
|
* See the LICENSE file in the root directory of this source tree.
|
|
443
443
|
*/
|
|
444
|
-
const
|
|
444
|
+
const $n = A("SwatchBook", [
|
|
445
445
|
["path", { d: "M11 17a4 4 0 0 1-8 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2Z", key: "1ldrpk" }],
|
|
446
446
|
["path", { d: "M16.7 13H19a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H7", key: "11i5po" }],
|
|
447
447
|
["path", { d: "M 7 17h.01", key: "1euzgo" }],
|
|
@@ -459,7 +459,7 @@ const Hn = A("SwatchBook", [
|
|
|
459
459
|
* This source code is licensed under the ISC license.
|
|
460
460
|
* See the LICENSE file in the root directory of this source tree.
|
|
461
461
|
*/
|
|
462
|
-
const
|
|
462
|
+
const Pn = A("Tag", [
|
|
463
463
|
[
|
|
464
464
|
"path",
|
|
465
465
|
{
|
|
@@ -475,7 +475,7 @@ const $n = A("Tag", [
|
|
|
475
475
|
* This source code is licensed under the ISC license.
|
|
476
476
|
* See the LICENSE file in the root directory of this source tree.
|
|
477
477
|
*/
|
|
478
|
-
const
|
|
478
|
+
const Bn = A("ToggleLeft", [
|
|
479
479
|
["rect", { width: "20", height: "12", x: "2", y: "6", rx: "6", ry: "6", key: "f2vt7d" }],
|
|
480
480
|
["circle", { cx: "8", cy: "12", r: "2", key: "1nvbw3" }]
|
|
481
481
|
]);
|
|
@@ -496,7 +496,7 @@ const _s = A("Type", [
|
|
|
496
496
|
* This source code is licensed under the ISC license.
|
|
497
497
|
* See the LICENSE file in the root directory of this source tree.
|
|
498
498
|
*/
|
|
499
|
-
const
|
|
499
|
+
const Un = A("User", [
|
|
500
500
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
501
501
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
502
502
|
]);
|
|
@@ -512,14 +512,14 @@ function La(s) {
|
|
|
512
512
|
var i;
|
|
513
513
|
return {
|
|
514
514
|
...l,
|
|
515
|
-
cards: (i = l.cards) == null ? void 0 : i.map((r) =>
|
|
515
|
+
cards: (i = l.cards) == null ? void 0 : i.map((r) => Gn(r))
|
|
516
516
|
};
|
|
517
517
|
})
|
|
518
518
|
};
|
|
519
519
|
})
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Gn(s) {
|
|
523
523
|
var n, a, t, l;
|
|
524
524
|
return {
|
|
525
525
|
...s,
|
|
@@ -534,12 +534,12 @@ function Un(s) {
|
|
|
534
534
|
}))
|
|
535
535
|
}
|
|
536
536
|
},
|
|
537
|
-
customCfg:
|
|
537
|
+
customCfg: Kn(s.customCfg),
|
|
538
538
|
// if customCfg is present, clean it, otherwise return null{
|
|
539
539
|
data: []
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Kn(s) {
|
|
543
543
|
var n, a;
|
|
544
544
|
return s ? {
|
|
545
545
|
...s,
|
|
@@ -553,7 +553,7 @@ function Gn(s) {
|
|
|
553
553
|
}
|
|
554
554
|
} : null;
|
|
555
555
|
}
|
|
556
|
-
async function
|
|
556
|
+
async function Qn(s, n, a, t) {
|
|
557
557
|
if (!t)
|
|
558
558
|
return null;
|
|
559
559
|
const l = JSON.stringify(n);
|
|
@@ -577,19 +577,19 @@ async function vs(s, n) {
|
|
|
577
577
|
operation: "update"
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
|
-
async function
|
|
580
|
+
async function Wn(s, n) {
|
|
581
581
|
return n ? await Ge("https://semaphor.cloud/api/v1/lens", n, {
|
|
582
582
|
operation: "delete",
|
|
583
583
|
lensId: s
|
|
584
584
|
}) : null;
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function Jn() {
|
|
587
587
|
const [s, n] = E(""), [a, t] = E(!1), l = z((C) => C.lenses), { setLenses: i, setSelectedLensId: r } = Cs(), [d, c] = E(!1), [u, m] = E(!1), y = z((C) => C.dashboard), g = z((C) => C.filterValues), { authToken: h } = je();
|
|
588
588
|
async function x() {
|
|
589
589
|
c(!0);
|
|
590
590
|
const C = La(
|
|
591
591
|
y
|
|
592
|
-
), I = await
|
|
592
|
+
), I = await Qn(
|
|
593
593
|
s,
|
|
594
594
|
C,
|
|
595
595
|
g,
|
|
@@ -644,13 +644,13 @@ function Wn() {
|
|
|
644
644
|
] })
|
|
645
645
|
] });
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function Yn() {
|
|
648
648
|
const [s, n] = E(!1), a = z((m) => m.lenses), t = z((m) => m.selectedLensId), { setLenses: l, setSelectedLensId: i } = Cs(), { authToken: r } = je();
|
|
649
649
|
async function d(m) {
|
|
650
650
|
i(m);
|
|
651
651
|
}
|
|
652
652
|
async function c(m) {
|
|
653
|
-
if (await
|
|
653
|
+
if (await Wn(m, r == null ? void 0 : r.accessToken)) {
|
|
654
654
|
const g = a == null ? void 0 : a.filter((h) => h.id !== m);
|
|
655
655
|
l(g || []), i("original");
|
|
656
656
|
}
|
|
@@ -679,7 +679,7 @@ function Jn() {
|
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
return /* @__PURE__ */ e.jsxs(na, { open: s, onOpenChange: n, children: [
|
|
682
|
-
/* @__PURE__ */ e.jsx(la, { asChild: !0, children: /* @__PURE__ */ e.jsx(F, { variant: "ghost", className: "h-7 p-2", children: /* @__PURE__ */ e.jsx(
|
|
682
|
+
/* @__PURE__ */ e.jsx(la, { asChild: !0, children: /* @__PURE__ */ e.jsx(F, { variant: "ghost", className: "h-7 p-2", children: /* @__PURE__ */ e.jsx(Fn, { className: "h-4 w-4", strokeWidth: 1.5 }) }) }),
|
|
683
683
|
/* @__PURE__ */ e.jsxs(ra, { align: "end", className: "w-60", children: [
|
|
684
684
|
/* @__PURE__ */ e.jsx(Za, { className: "px-3", children: "Lenses" }),
|
|
685
685
|
/* @__PURE__ */ e.jsx(et, {}),
|
|
@@ -699,7 +699,7 @@ function Jn() {
|
|
|
699
699
|
/* @__PURE__ */ e.jsx("p", { children: m.name }),
|
|
700
700
|
/* @__PURE__ */ e.jsxs("span", { className: "flex items-center gap-3", children: [
|
|
701
701
|
/* @__PURE__ */ e.jsx(
|
|
702
|
-
|
|
702
|
+
Dn,
|
|
703
703
|
{
|
|
704
704
|
onClick: (y) => {
|
|
705
705
|
y.preventDefault(), u(m);
|
|
@@ -735,7 +735,7 @@ function Jn() {
|
|
|
735
735
|
] })
|
|
736
736
|
] });
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function Xn() {
|
|
739
739
|
const { authToken: s } = je(), n = z((f) => f.lenses), a = z((f) => f.selectedLensId), t = n == null ? void 0 : n.find((f) => f.id === a), l = z((f) => f.dashboard);
|
|
740
740
|
z((f) => f.selectedSheetId);
|
|
741
741
|
const i = z(
|
|
@@ -798,8 +798,8 @@ function Yn() {
|
|
|
798
798
|
children: [
|
|
799
799
|
!u && /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ e.jsx(H, { children: t == null ? void 0 : t.name }) }),
|
|
800
800
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
|
|
801
|
-
i && !u && D && /* @__PURE__ */ e.jsx(
|
|
802
|
-
!u && D && /* @__PURE__ */ e.jsx(
|
|
801
|
+
i && !u && D && /* @__PURE__ */ e.jsx(Jn, {}),
|
|
802
|
+
!u && D && /* @__PURE__ */ e.jsx(Yn, {}),
|
|
803
803
|
i && !u && /* @__PURE__ */ e.jsxs(
|
|
804
804
|
F,
|
|
805
805
|
{
|
|
@@ -845,7 +845,7 @@ function Yn() {
|
|
|
845
845
|
disabled: r,
|
|
846
846
|
onClick: b,
|
|
847
847
|
size: "sm",
|
|
848
|
-
children: /* @__PURE__ */ e.jsx(
|
|
848
|
+
children: /* @__PURE__ */ e.jsx(Rn, { className: "h-4 w-4", strokeWidth: 1.5 })
|
|
849
849
|
}
|
|
850
850
|
),
|
|
851
851
|
!m && !u && i && /* @__PURE__ */ e.jsx(
|
|
@@ -881,15 +881,15 @@ function qe({
|
|
|
881
881
|
const y = t ? "Loading..." : l ? "Error" : a;
|
|
882
882
|
function g() {
|
|
883
883
|
if (s === "Connection")
|
|
884
|
-
return /* @__PURE__ */ e.jsx(
|
|
884
|
+
return /* @__PURE__ */ e.jsx(qn, { className: "size-4 rotate-90" });
|
|
885
885
|
if (s === "Database")
|
|
886
|
-
return /* @__PURE__ */ e.jsx(
|
|
886
|
+
return /* @__PURE__ */ e.jsx(Sn, { className: "size-4" });
|
|
887
887
|
if (s === "Schema")
|
|
888
|
-
return /* @__PURE__ */ e.jsx(
|
|
888
|
+
return /* @__PURE__ */ e.jsx(En, { className: "size-4" });
|
|
889
889
|
if (s === "Table")
|
|
890
890
|
return /* @__PURE__ */ e.jsx(Ls, { className: "size-4" });
|
|
891
891
|
if (s === "Model")
|
|
892
|
-
return /* @__PURE__ */ e.jsx(
|
|
892
|
+
return /* @__PURE__ */ e.jsx(yn, { className: "size-4" });
|
|
893
893
|
}
|
|
894
894
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
895
895
|
u && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: i ? /* @__PURE__ */ e.jsxs(Ts, { children: [
|
|
@@ -923,7 +923,7 @@ function qe({
|
|
|
923
923
|
] })
|
|
924
924
|
] });
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function Zn({ column: s }) {
|
|
927
927
|
const [n, a] = E(!1), t = o((h) => h.selectedTableName), l = o(
|
|
928
928
|
(h) => h.selectedSchemaName
|
|
929
929
|
), i = o(
|
|
@@ -1006,12 +1006,12 @@ function Ma({ column: s }) {
|
|
|
1006
1006
|
/* @__PURE__ */ e.jsx(_s, { className: "size-3" })
|
|
1007
1007
|
) : ua.includes(s.data_type.toLowerCase()) ? (
|
|
1008
1008
|
//
|
|
1009
|
-
/* @__PURE__ */ e.jsx(
|
|
1010
|
-
) : lt.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(rt, { className: "size-3" }) : it.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(
|
|
1009
|
+
/* @__PURE__ */ e.jsx(Tn, { className: "size-3" })
|
|
1010
|
+
) : lt.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(rt, { className: "size-3" }) : it.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(Bn, { className: "size-3" }) : /* @__PURE__ */ e.jsx(_n, { className: "size-3" }) }),
|
|
1011
1011
|
/* @__PURE__ */ e.jsx(Ds, { children: /* @__PURE__ */ e.jsx("p", { className: "font-mono text-xs", children: s.data_type }) })
|
|
1012
1012
|
] });
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function el({
|
|
1015
1015
|
schemaName: s,
|
|
1016
1016
|
tableName: n,
|
|
1017
1017
|
columns: a,
|
|
@@ -1123,7 +1123,7 @@ function Zn({
|
|
|
1123
1123
|
variant: "secondary",
|
|
1124
1124
|
className: "flex",
|
|
1125
1125
|
children: [
|
|
1126
|
-
t !== "Success" ? /* @__PURE__ */ e.jsx(Ue, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(
|
|
1126
|
+
t !== "Success" ? /* @__PURE__ */ e.jsx(Ue, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx($n, { className: "mr-2 size-4" }),
|
|
1127
1127
|
"Top 10"
|
|
1128
1128
|
]
|
|
1129
1129
|
}
|
|
@@ -1137,7 +1137,7 @@ function Zn({
|
|
|
1137
1137
|
variant: "secondary",
|
|
1138
1138
|
className: "flex",
|
|
1139
1139
|
children: [
|
|
1140
|
-
t !== "Success" ? /* @__PURE__ */ e.jsx(Ue, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(
|
|
1140
|
+
t !== "Success" ? /* @__PURE__ */ e.jsx(Ue, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Hn, { className: "mr-2 size-4" }),
|
|
1141
1141
|
"Count"
|
|
1142
1142
|
]
|
|
1143
1143
|
}
|
|
@@ -1168,7 +1168,7 @@ function Zn({
|
|
|
1168
1168
|
{
|
|
1169
1169
|
onClick: (f) => f.stopPropagation(),
|
|
1170
1170
|
className: "flex items-center justify-end",
|
|
1171
|
-
children: ua.includes(b.data_type) && /* @__PURE__ */ e.jsx(
|
|
1171
|
+
children: ua.includes(b.data_type) && /* @__PURE__ */ e.jsx(Zn, { column: b })
|
|
1172
1172
|
}
|
|
1173
1173
|
)
|
|
1174
1174
|
]
|
|
@@ -1457,7 +1457,7 @@ function Oa({
|
|
|
1457
1457
|
} = Oe();
|
|
1458
1458
|
function K() {
|
|
1459
1459
|
return s ? s(le, Q, g) : /* @__PURE__ */ e.jsx(
|
|
1460
|
-
|
|
1460
|
+
el,
|
|
1461
1461
|
{
|
|
1462
1462
|
schemaName: le,
|
|
1463
1463
|
tableName: Q,
|
|
@@ -1572,14 +1572,14 @@ function Oa({
|
|
|
1572
1572
|
variant: "secondary",
|
|
1573
1573
|
className: "w-full",
|
|
1574
1574
|
children: [
|
|
1575
|
-
/* @__PURE__ */ e.jsx(
|
|
1575
|
+
/* @__PURE__ */ e.jsx(An, { className: "mr-2 size-4" }),
|
|
1576
1576
|
"Help"
|
|
1577
1577
|
]
|
|
1578
1578
|
}
|
|
1579
1579
|
) })
|
|
1580
1580
|
] });
|
|
1581
1581
|
}
|
|
1582
|
-
function
|
|
1582
|
+
function sl(s) {
|
|
1583
1583
|
const n = s.toUpperCase().indexOf("WHERE"), a = s.toUpperCase().indexOf("GROUP BY"), t = s.toUpperCase().indexOf("LIMIT"), l = s.toUpperCase().indexOf("ORDER BY");
|
|
1584
1584
|
let i = s.length;
|
|
1585
1585
|
if (l !== -1 && (i = l), t !== -1 && t < i && (i = t), n !== -1) {
|
|
@@ -1595,14 +1595,14 @@ function el(s) {
|
|
|
1595
1595
|
return `${r} {{ filters | where }} ${d}`;
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function al({
|
|
1599
1599
|
error: s,
|
|
1600
1600
|
setShowAIDialog: n,
|
|
1601
1601
|
setUserInputforAI: a,
|
|
1602
1602
|
setTriggerAIRun: t
|
|
1603
1603
|
}) {
|
|
1604
1604
|
return /* @__PURE__ */ e.jsxs(Ms, { openDelay: 0, children: [
|
|
1605
|
-
/* @__PURE__ */ e.jsx(Os, { asChild: !0, children: /* @__PURE__ */ e.jsx(F, { variant: "link", className: "h-5 p-0", children: /* @__PURE__ */ e.jsx(
|
|
1605
|
+
/* @__PURE__ */ e.jsx(Os, { asChild: !0, children: /* @__PURE__ */ e.jsx(F, { variant: "link", className: "h-5 p-0", children: /* @__PURE__ */ e.jsx(Cn, { className: "h-4 w-4 text-red-500" }) }) }),
|
|
1606
1606
|
/* @__PURE__ */ e.jsx(As, { align: "start", className: "min-w-fit max-w-[500px]", children: /* @__PURE__ */ e.jsx("div", { className: "flex justify-between space-x-4", children: /* @__PURE__ */ e.jsxs("div", { className: "flex grow flex-col space-y-2", children: [
|
|
1607
1607
|
/* @__PURE__ */ e.jsx(Es, { className: "max-h-[250px] min-h-0 overflow-scroll", children: /* @__PURE__ */ e.jsx("p", { className: "overflow-auto rounded-md bg-muted p-2 text-xs leading-relaxed", children: s }) }),
|
|
1608
1608
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -1614,7 +1614,7 @@ function sl({
|
|
|
1614
1614
|
size: "sm",
|
|
1615
1615
|
variant: "outline",
|
|
1616
1616
|
children: [
|
|
1617
|
-
/* @__PURE__ */ e.jsx(
|
|
1617
|
+
/* @__PURE__ */ e.jsx(In, { className: "mr-2 h-4 w-4" }),
|
|
1618
1618
|
"Debug with AI"
|
|
1619
1619
|
]
|
|
1620
1620
|
}
|
|
@@ -1622,7 +1622,7 @@ function sl({
|
|
|
1622
1622
|
] }) }) })
|
|
1623
1623
|
] });
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1625
|
+
function tl({
|
|
1626
1626
|
text: s,
|
|
1627
1627
|
onCheckedChange: n,
|
|
1628
1628
|
checked: a
|
|
@@ -1632,7 +1632,7 @@ function al({
|
|
|
1632
1632
|
/* @__PURE__ */ e.jsx("label", { className: "text-xs leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", children: s })
|
|
1633
1633
|
] });
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1635
|
+
function nl() {
|
|
1636
1636
|
const { authToken: s } = je(), n = o(
|
|
1637
1637
|
(i) => i.selectedConnectionId
|
|
1638
1638
|
), { data: a } = ie({
|
|
@@ -1648,8 +1648,8 @@ function tl() {
|
|
|
1648
1648
|
);
|
|
1649
1649
|
return t == null ? void 0 : t.type;
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1652
|
-
const { authToken: s } = je(), n = Be(null), a = o((c) => c.applyFilters), [t, l] = E(""), i = o((c) => c.filterValues), r = o((c) => c.card.sql), d =
|
|
1651
|
+
function ll() {
|
|
1652
|
+
const { authToken: s } = je(), n = Be(null), a = o((c) => c.applyFilters), [t, l] = E(""), i = o((c) => c.filterValues), r = o((c) => c.card.sql), d = nl();
|
|
1653
1653
|
return /* @__PURE__ */ e.jsxs(
|
|
1654
1654
|
Ms,
|
|
1655
1655
|
{
|
|
@@ -1691,7 +1691,7 @@ function nl() {
|
|
|
1691
1691
|
}
|
|
1692
1692
|
);
|
|
1693
1693
|
}
|
|
1694
|
-
const
|
|
1694
|
+
const rl = `
|
|
1695
1695
|
|
|
1696
1696
|
Use the following syntax to create a chart query. Please replace the x-axis, y-axis, stack-by, label, and measure with the actual column names of the table.
|
|
1697
1697
|
|
|
@@ -1738,7 +1738,7 @@ SELECT label, measure FROM table
|
|
|
1738
1738
|
- Label - Category
|
|
1739
1739
|
- Measure - Number
|
|
1740
1740
|
`;
|
|
1741
|
-
function
|
|
1741
|
+
function il({
|
|
1742
1742
|
open: s,
|
|
1743
1743
|
setOpen: n,
|
|
1744
1744
|
userInput: a,
|
|
@@ -1754,7 +1754,7 @@ function rl({
|
|
|
1754
1754
|
Table Columns: ${w == null ? void 0 : w.map((k) => `${k.column_name} | ${k.data_type}`).join(", ")}
|
|
1755
1755
|
User SQL: ${O}
|
|
1756
1756
|
${g && `Base Queries: ${JSON.stringify(g)} `}`, D = ` When the user asks for a specific chart please use the following query structure to generate the chart query. Do not make up the column names. Use only the table columns provided above for the query. Replace x-axis, y-axis, and lables with the appropriate column names.
|
|
1757
|
-
Visual Query Syntax: ${
|
|
1757
|
+
Visual Query Syntax: ${rl}`, { data: p, isLoading: S, isFetching: b, isError: f, refetch: q } = ie({
|
|
1758
1758
|
queryKey: ["ai-query"],
|
|
1759
1759
|
queryFn: () => Ne(
|
|
1760
1760
|
"https://semaphor.cloud/api/v1/ai",
|
|
@@ -1868,7 +1868,7 @@ function rl({
|
|
|
1868
1868
|
{
|
|
1869
1869
|
className: "flex items-start rounded-md bg-muted p-3 text-sm",
|
|
1870
1870
|
children: [
|
|
1871
|
-
/* @__PURE__ */ e.jsx(
|
|
1871
|
+
/* @__PURE__ */ e.jsx(Un, { className: "mr-2 h-5 w-5" }),
|
|
1872
1872
|
/* @__PURE__ */ e.jsx("div", { children: k.content })
|
|
1873
1873
|
]
|
|
1874
1874
|
},
|
|
@@ -1960,11 +1960,11 @@ var Aa = {
|
|
|
1960
1960
|
className: void 0,
|
|
1961
1961
|
style: void 0,
|
|
1962
1962
|
attr: void 0
|
|
1963
|
-
}, Xs = ge.createContext && /* @__PURE__ */ ge.createContext(Aa),
|
|
1964
|
-
function
|
|
1963
|
+
}, Xs = ge.createContext && /* @__PURE__ */ ge.createContext(Aa), ol = ["attr", "size", "title"];
|
|
1964
|
+
function cl(s, n) {
|
|
1965
1965
|
if (s == null)
|
|
1966
1966
|
return {};
|
|
1967
|
-
var a =
|
|
1967
|
+
var a = dl(s, n), t, l;
|
|
1968
1968
|
if (Object.getOwnPropertySymbols) {
|
|
1969
1969
|
var i = Object.getOwnPropertySymbols(s);
|
|
1970
1970
|
for (l = 0; l < i.length; l++)
|
|
@@ -1972,7 +1972,7 @@ function ol(s, n) {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
return a;
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1975
|
+
function dl(s, n) {
|
|
1976
1976
|
if (s == null)
|
|
1977
1977
|
return {};
|
|
1978
1978
|
var a = {}, t = Object.keys(s), l, i;
|
|
@@ -2004,21 +2004,21 @@ function ns(s) {
|
|
|
2004
2004
|
for (var n = 1; n < arguments.length; n++) {
|
|
2005
2005
|
var a = arguments[n] != null ? arguments[n] : {};
|
|
2006
2006
|
n % 2 ? Zs(Object(a), !0).forEach(function(t) {
|
|
2007
|
-
|
|
2007
|
+
ul(s, t, a[t]);
|
|
2008
2008
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(a)) : Zs(Object(a)).forEach(function(t) {
|
|
2009
2009
|
Object.defineProperty(s, t, Object.getOwnPropertyDescriptor(a, t));
|
|
2010
2010
|
});
|
|
2011
2011
|
}
|
|
2012
2012
|
return s;
|
|
2013
2013
|
}
|
|
2014
|
-
function
|
|
2015
|
-
return n =
|
|
2014
|
+
function ul(s, n, a) {
|
|
2015
|
+
return n = hl(n), n in s ? Object.defineProperty(s, n, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : s[n] = a, s;
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2018
|
-
var n =
|
|
2017
|
+
function hl(s) {
|
|
2018
|
+
var n = ml(s, "string");
|
|
2019
2019
|
return typeof n == "symbol" ? n : String(n);
|
|
2020
2020
|
}
|
|
2021
|
-
function
|
|
2021
|
+
function ml(s, n) {
|
|
2022
2022
|
if (typeof s != "object" || s === null)
|
|
2023
2023
|
return s;
|
|
2024
2024
|
var a = s[Symbol.toPrimitive];
|
|
@@ -2036,17 +2036,17 @@ function Ea(s) {
|
|
|
2036
2036
|
}, n.attr), Ea(n.child)));
|
|
2037
2037
|
}
|
|
2038
2038
|
function ye(s) {
|
|
2039
|
-
return (n) => /* @__PURE__ */ ge.createElement(
|
|
2039
|
+
return (n) => /* @__PURE__ */ ge.createElement(xl, ts({
|
|
2040
2040
|
attr: ns({}, s.attr)
|
|
2041
2041
|
}, n), Ea(s.child));
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2043
|
+
function xl(s) {
|
|
2044
2044
|
var n = (a) => {
|
|
2045
2045
|
var {
|
|
2046
2046
|
attr: t,
|
|
2047
2047
|
size: l,
|
|
2048
2048
|
title: i
|
|
2049
|
-
} = s, r =
|
|
2049
|
+
} = s, r = cl(s, ol), d = l || a.size || "1em", c;
|
|
2050
2050
|
return a.className && (c = a.className), s.className && (c = (c ? c + " " : "") + s.className), /* @__PURE__ */ ge.createElement("svg", ts({
|
|
2051
2051
|
stroke: "currentColor",
|
|
2052
2052
|
fill: "currentColor",
|
|
@@ -2063,10 +2063,10 @@ function ml(s) {
|
|
|
2063
2063
|
};
|
|
2064
2064
|
return Xs !== void 0 ? /* @__PURE__ */ ge.createElement(Xs.Consumer, null, (a) => n(a)) : n(Aa);
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2066
|
+
function pl(s) {
|
|
2067
2067
|
return ye({ tag: "svg", 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: [] }] })(s);
|
|
2068
2068
|
}
|
|
2069
|
-
function
|
|
2069
|
+
function fl() {
|
|
2070
2070
|
const { theme: s } = pt(), n = Be(), a = Be(), [t, l] = E(!1), [i, r] = E(!1), [d, c] = E(!1), [u, m] = E(""), [y, g] = E(!1), { authToken: h } = je();
|
|
2071
2071
|
z((j) => j.selectedSheetId);
|
|
2072
2072
|
const x = z((j) => j.dashboard.baseQueries), C = o((j) => j.card), I = z((j) => j.theme), w = o((j) => j.isShowingVisual);
|
|
@@ -2114,7 +2114,8 @@ function pl() {
|
|
|
2114
2114
|
connection_id: q,
|
|
2115
2115
|
sql: f,
|
|
2116
2116
|
python: b === Gs ? "" : b,
|
|
2117
|
-
active_filters: P ? R : []
|
|
2117
|
+
active_filters: P ? R : [],
|
|
2118
|
+
cache_config: bt()
|
|
2118
2119
|
}
|
|
2119
2120
|
),
|
|
2120
2121
|
enabled: !1,
|
|
@@ -2173,7 +2174,7 @@ function pl() {
|
|
|
2173
2174
|
}
|
|
2174
2175
|
function ms() {
|
|
2175
2176
|
let j = S;
|
|
2176
|
-
S && !S.includes("{{") && (j =
|
|
2177
|
+
S && !S.includes("{{") && (j = sl(S), K(j));
|
|
2177
2178
|
const N = {
|
|
2178
2179
|
...C,
|
|
2179
2180
|
lastSelectedSchema: D,
|
|
@@ -2232,14 +2233,14 @@ function pl() {
|
|
|
2232
2233
|
children: /* @__PURE__ */ e.jsxs("div", { className: "w-[99%]", children: [
|
|
2233
2234
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 pt-3", children: [
|
|
2234
2235
|
/* @__PURE__ */ e.jsx(
|
|
2235
|
-
|
|
2236
|
+
tl,
|
|
2236
2237
|
{
|
|
2237
2238
|
checked: P,
|
|
2238
2239
|
onCheckedChange: () => T(!P),
|
|
2239
2240
|
text: "Apply Filters"
|
|
2240
2241
|
}
|
|
2241
2242
|
),
|
|
2242
|
-
/* @__PURE__ */ e.jsx(
|
|
2243
|
+
/* @__PURE__ */ e.jsx(ll, {}),
|
|
2243
2244
|
R && i && /* @__PURE__ */ e.jsx(
|
|
2244
2245
|
He,
|
|
2245
2246
|
{
|
|
@@ -2439,13 +2440,13 @@ function pl() {
|
|
|
2439
2440
|
size: "sm",
|
|
2440
2441
|
variant: "outline",
|
|
2441
2442
|
children: [
|
|
2442
|
-
oe || ce ? /* @__PURE__ */ e.jsx(Ue, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(
|
|
2443
|
+
oe || ce ? /* @__PURE__ */ e.jsx(Ue, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Vn, { className: "mr-2 h-4 w-4" }),
|
|
2443
2444
|
"Run"
|
|
2444
2445
|
]
|
|
2445
2446
|
}
|
|
2446
2447
|
),
|
|
2447
2448
|
de && /* @__PURE__ */ e.jsx(
|
|
2448
|
-
|
|
2449
|
+
al,
|
|
2449
2450
|
{
|
|
2450
2451
|
error: Ce.message,
|
|
2451
2452
|
setShowAIDialog: c,
|
|
@@ -2461,7 +2462,7 @@ function pl() {
|
|
|
2461
2462
|
size: "sm",
|
|
2462
2463
|
variant: "outline",
|
|
2463
2464
|
children: [
|
|
2464
|
-
/* @__PURE__ */ e.jsx(
|
|
2465
|
+
/* @__PURE__ */ e.jsx(wn, { className: "mr-2 size-4" }),
|
|
2465
2466
|
"Clear"
|
|
2466
2467
|
]
|
|
2467
2468
|
}
|
|
@@ -2474,11 +2475,11 @@ function pl() {
|
|
|
2474
2475
|
className: "",
|
|
2475
2476
|
size: "sm",
|
|
2476
2477
|
variant: "outline",
|
|
2477
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2478
|
+
children: /* @__PURE__ */ e.jsx(pl, { className: "size-4 text-foreground/70" })
|
|
2478
2479
|
}
|
|
2479
2480
|
),
|
|
2480
2481
|
/* @__PURE__ */ e.jsx(
|
|
2481
|
-
|
|
2482
|
+
il,
|
|
2482
2483
|
{
|
|
2483
2484
|
open: d,
|
|
2484
2485
|
setOpen: c,
|
|
@@ -2524,7 +2525,7 @@ function pl() {
|
|
|
2524
2525
|
)
|
|
2525
2526
|
);
|
|
2526
2527
|
}
|
|
2527
|
-
function
|
|
2528
|
+
function gl({ data: s }) {
|
|
2528
2529
|
var r;
|
|
2529
2530
|
const [n, a] = ge.useState([]), l = Object.keys(s[0]).map((d) => ({
|
|
2530
2531
|
// header: key,
|
|
@@ -2538,29 +2539,29 @@ function fl({ data: s }) {
|
|
|
2538
2539
|
onClick: () => c.toggleSorting(c.getIsSorted() === "asc"),
|
|
2539
2540
|
children: [
|
|
2540
2541
|
d,
|
|
2541
|
-
u === "asc" ? /* @__PURE__ */ e.jsx(
|
|
2542
|
+
u === "asc" ? /* @__PURE__ */ e.jsx(yt, { className: "ml-2 h-5 w-5" }) : u === "desc" ? /* @__PURE__ */ e.jsx(vt, { className: "ml-2 h-5 w-5" }) : null
|
|
2542
2543
|
]
|
|
2543
2544
|
}
|
|
2544
2545
|
) });
|
|
2545
2546
|
}
|
|
2546
|
-
})), i =
|
|
2547
|
+
})), i = Ct({
|
|
2547
2548
|
data: s,
|
|
2548
2549
|
columns: l,
|
|
2549
|
-
getCoreRowModel:
|
|
2550
|
-
getPaginationRowModel:
|
|
2550
|
+
getCoreRowModel: zt(),
|
|
2551
|
+
getPaginationRowModel: Ft(),
|
|
2551
2552
|
onSortingChange: a,
|
|
2552
|
-
getSortedRowModel:
|
|
2553
|
+
getSortedRowModel: It(),
|
|
2553
2554
|
manualPagination: !0,
|
|
2554
2555
|
state: {
|
|
2555
2556
|
sorting: n
|
|
2556
2557
|
}
|
|
2557
2558
|
});
|
|
2558
|
-
return /* @__PURE__ */ e.jsxs(
|
|
2559
|
-
/* @__PURE__ */ e.jsx(
|
|
2559
|
+
return /* @__PURE__ */ e.jsxs(Nt, { children: [
|
|
2560
|
+
/* @__PURE__ */ e.jsx(St, { children: i.getHeaderGroups().map((d) => /* @__PURE__ */ e.jsx(ps, { children: d.headers.map((c) => /* @__PURE__ */ e.jsx(wt, { className: "sticky top-0 bg-muted", children: c.isPlaceholder ? null : Ks(
|
|
2560
2561
|
c.column.columnDef.header,
|
|
2561
2562
|
c.getContext()
|
|
2562
2563
|
) }, c.id)) }, d.id)) }),
|
|
2563
|
-
/* @__PURE__ */ e.jsx(
|
|
2564
|
+
/* @__PURE__ */ e.jsx(kt, { children: (r = i.getRowModel().rows) != null && r.length ? i.getRowModel().rows.map((d) => /* @__PURE__ */ e.jsx(
|
|
2564
2565
|
ps,
|
|
2565
2566
|
{
|
|
2566
2567
|
className: "whitespace-nowrap py-2",
|
|
@@ -2571,7 +2572,7 @@ function fl({ data: s }) {
|
|
|
2571
2572
|
)) : /* @__PURE__ */ e.jsx(ps, { children: /* @__PURE__ */ e.jsx(Qs, { colSpan: l.length, className: "h-24 text-center", children: "No results." }) }) })
|
|
2572
2573
|
] });
|
|
2573
2574
|
}
|
|
2574
|
-
function
|
|
2575
|
+
function jl({ card: s }) {
|
|
2575
2576
|
var u, m, y, g, h, x, C, I, w, O;
|
|
2576
2577
|
const n = z((v) => v.themeStyle), a = {
|
|
2577
2578
|
colors: ((m = (u = n == null ? void 0 : n.chart) == null ? void 0 : u.dataset) == null ? void 0 : m.backgroundColor) || []
|
|
@@ -2592,7 +2593,7 @@ function gl({ card: s }) {
|
|
|
2592
2593
|
return D || null;
|
|
2593
2594
|
});
|
|
2594
2595
|
return /* @__PURE__ */ e.jsx("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ e.jsxs(
|
|
2595
|
-
|
|
2596
|
+
bn,
|
|
2596
2597
|
{
|
|
2597
2598
|
fallback: /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
2598
2599
|
children: [
|
|
@@ -2654,23 +2655,23 @@ function Va({
|
|
|
2654
2655
|
preferences: t.preferences
|
|
2655
2656
|
}));
|
|
2656
2657
|
function y(x) {
|
|
2657
|
-
return /* @__PURE__ */ e.jsx(
|
|
2658
|
+
return /* @__PURE__ */ e.jsx(jl, { card: x });
|
|
2658
2659
|
}
|
|
2659
2660
|
return /* @__PURE__ */ e.jsxs(
|
|
2660
|
-
|
|
2661
|
+
Tt,
|
|
2661
2662
|
{
|
|
2662
2663
|
role: "editor-visual-card",
|
|
2663
2664
|
className: X("relative flex h-full flex-col rounded-none", s),
|
|
2664
2665
|
...n,
|
|
2665
2666
|
children: [
|
|
2666
|
-
l && /* @__PURE__ */ e.jsxs(
|
|
2667
|
+
l && /* @__PURE__ */ e.jsxs(Dt, { className: "flex flex-row items-start justify-between py-4", children: [
|
|
2667
2668
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
2668
2669
|
/* @__PURE__ */ e.jsx(
|
|
2669
2670
|
Ze,
|
|
2670
2671
|
{
|
|
2671
2672
|
text: t.title,
|
|
2672
2673
|
onSave: (x) => u({ ...t, title: x }),
|
|
2673
|
-
children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-5", children: /* @__PURE__ */ e.jsx(
|
|
2674
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-5", children: /* @__PURE__ */ e.jsx(Lt, { className: "text-base", children: t.title }) })
|
|
2674
2675
|
},
|
|
2675
2676
|
t.title
|
|
2676
2677
|
),
|
|
@@ -2679,7 +2680,7 @@ function Va({
|
|
|
2679
2680
|
{
|
|
2680
2681
|
text: t.description || "",
|
|
2681
2682
|
onSave: (x) => u({ ...t, description: x }),
|
|
2682
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
2683
|
+
children: /* @__PURE__ */ e.jsxs(Mt, { children: [
|
|
2683
2684
|
" ",
|
|
2684
2685
|
t.description
|
|
2685
2686
|
] })
|
|
@@ -2697,27 +2698,27 @@ function Va({
|
|
|
2697
2698
|
children: /* @__PURE__ */ e.jsx(H, { children: c.title })
|
|
2698
2699
|
}
|
|
2699
2700
|
),
|
|
2700
|
-
|
|
2701
|
+
Ot(c)
|
|
2701
2702
|
] })
|
|
2702
2703
|
] }),
|
|
2703
|
-
/* @__PURE__ */ e.jsxs(
|
|
2704
|
+
/* @__PURE__ */ e.jsxs(At, { className: "flex grow flex-col", children: [
|
|
2704
2705
|
t.type === "custom" && y(t),
|
|
2705
2706
|
!["table", "custom"].includes(t.type) && m && // <ChartJsVisual key={visualKey} cfg={cfg} />
|
|
2706
2707
|
/* @__PURE__ */ e.jsx(
|
|
2707
|
-
|
|
2708
|
+
Et,
|
|
2708
2709
|
{
|
|
2709
2710
|
cfg: m
|
|
2710
2711
|
},
|
|
2711
2712
|
JSON.stringify(m) + JSON.stringify(t.preferences) + ((h = t == null ? void 0 : t.preferences) == null ? void 0 : h.customVisualCode)
|
|
2712
2713
|
),
|
|
2713
2714
|
t.type === "table" && t.data && t.data.length > 0 && // All of the below css classes are #IMPORTANT for the table to scroll properly
|
|
2714
|
-
/* @__PURE__ */ e.jsx(
|
|
2715
|
+
/* @__PURE__ */ e.jsx(Vt, { className: "flex min-h-0 flex-1 grow basis-0", children: /* @__PURE__ */ e.jsx(qt, { card: t, data: t == null ? void 0 : t.data }) })
|
|
2715
2716
|
] })
|
|
2716
2717
|
]
|
|
2717
2718
|
}
|
|
2718
2719
|
);
|
|
2719
2720
|
}
|
|
2720
|
-
function
|
|
2721
|
+
function bl() {
|
|
2721
2722
|
const [s, n] = E(!1), [a, t] = E(""), [l, i] = E(""), [r, d] = E(""), [c, u] = E(""), m = o((v) => v.card), y = o(
|
|
2722
2723
|
(v) => v.card.customCfg
|
|
2723
2724
|
), { setCardCustomCfg: g, setCustomVisualCode: h } = be();
|
|
@@ -2775,7 +2776,7 @@ function jl() {
|
|
|
2775
2776
|
className: ` ${y && "border-foreground/50 dark:border-foreground/70"}`,
|
|
2776
2777
|
size: "sm",
|
|
2777
2778
|
variant: "outline",
|
|
2778
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2779
|
+
children: /* @__PURE__ */ e.jsx(Rt, { className: "h-4 w-4" })
|
|
2779
2780
|
}
|
|
2780
2781
|
) }),
|
|
2781
2782
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -2945,7 +2946,7 @@ function Ga(s) {
|
|
|
2945
2946
|
const [n, a] = E(null);
|
|
2946
2947
|
return Y(() => {
|
|
2947
2948
|
s && (async () => {
|
|
2948
|
-
const i = (await import("./lucide-react-
|
|
2949
|
+
const i = (await import("./lucide-react-ywxrrj3b.js"))[s];
|
|
2949
2950
|
a(i);
|
|
2950
2951
|
})();
|
|
2951
2952
|
}, [s]), n;
|
|
@@ -2953,12 +2954,12 @@ function Ga(s) {
|
|
|
2953
2954
|
function Ka() {
|
|
2954
2955
|
const { authToken: s } = je(), { data: n, isLoading: a, isFetching: t, isError: l } = ie({
|
|
2955
2956
|
queryKey: ["plugins", s == null ? void 0 : s.accessToken],
|
|
2956
|
-
queryFn: () =>
|
|
2957
|
+
queryFn: () => _t(s == null ? void 0 : s.accessToken)
|
|
2957
2958
|
// staleTime: Infinity,
|
|
2958
2959
|
});
|
|
2959
2960
|
return { data: n, isLoading: a, isFetching: t, isError: l };
|
|
2960
2961
|
}
|
|
2961
|
-
function
|
|
2962
|
+
function yl({
|
|
2962
2963
|
onChartTypeChange: s
|
|
2963
2964
|
}) {
|
|
2964
2965
|
const [n, a] = E([]), { data: t } = Ka();
|
|
@@ -2967,7 +2968,7 @@ function bl({
|
|
|
2967
2968
|
var i;
|
|
2968
2969
|
if (t) {
|
|
2969
2970
|
const d = (await Promise.all(
|
|
2970
|
-
(i = t == null ? void 0 : t.plugins) == null ? void 0 : i.map(async (c) => (await
|
|
2971
|
+
(i = t == null ? void 0 : t.plugins) == null ? void 0 : i.map(async (c) => (await Ht(c.value)).visuals.map((y) => ({
|
|
2971
2972
|
name: y.name,
|
|
2972
2973
|
icon: y.icon,
|
|
2973
2974
|
url: c.value
|
|
@@ -2979,7 +2980,7 @@ function bl({
|
|
|
2979
2980
|
}, [t]), n.length === 0 ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2980
2981
|
/* @__PURE__ */ e.jsx(Ie, { className: "my-2" }),
|
|
2981
2982
|
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-4 place-items-center", children: n.map((l, i) => /* @__PURE__ */ e.jsx(
|
|
2982
|
-
|
|
2983
|
+
vl,
|
|
2983
2984
|
{
|
|
2984
2985
|
text: l.name,
|
|
2985
2986
|
onClick: () => s("custom", l),
|
|
@@ -2989,7 +2990,7 @@ function bl({
|
|
|
2989
2990
|
)) })
|
|
2990
2991
|
] });
|
|
2991
2992
|
}
|
|
2992
|
-
const
|
|
2993
|
+
const vl = ({
|
|
2993
2994
|
text: s,
|
|
2994
2995
|
icon: n,
|
|
2995
2996
|
onClick: a
|
|
@@ -2997,7 +2998,7 @@ const yl = ({
|
|
|
2997
2998
|
const t = Ga(n || ""), l = s.charAt(0).toUpperCase();
|
|
2998
2999
|
return /* @__PURE__ */ e.jsx(F, { onClick: a, title: s, variant: "ghost", children: t ? /* @__PURE__ */ e.jsx(t, { className: "h-4 w-4" }) : l });
|
|
2999
3000
|
};
|
|
3000
|
-
function
|
|
3001
|
+
function Cl() {
|
|
3001
3002
|
var m, y;
|
|
3002
3003
|
const [s, n] = E(!1), a = o((g) => g.card), t = a.type, { setCardType: l, setCardPreferences: i, setChartOrientation: r } = o((g) => g.actions), { setCardCustomCfg: d, setCustomCardPreferences: c } = be();
|
|
3003
3004
|
function u(g, h) {
|
|
@@ -3011,7 +3012,7 @@ function vl() {
|
|
|
3011
3012
|
}
|
|
3012
3013
|
return /* @__PURE__ */ e.jsxs(rs, { open: s, onOpenChange: n, children: [
|
|
3013
3014
|
/* @__PURE__ */ e.jsx(is, { asChild: !0, children: /* @__PURE__ */ e.jsx(F, { size: "sm", variant: "outline", children: /* @__PURE__ */ e.jsx(
|
|
3014
|
-
|
|
3015
|
+
Nl,
|
|
3015
3016
|
{
|
|
3016
3017
|
className: "h-4 w-4",
|
|
3017
3018
|
chartType: t,
|
|
@@ -3157,11 +3158,11 @@ function vl() {
|
|
|
3157
3158
|
}
|
|
3158
3159
|
)
|
|
3159
3160
|
] }),
|
|
3160
|
-
/* @__PURE__ */ e.jsx(
|
|
3161
|
+
/* @__PURE__ */ e.jsx(yl, { onChartTypeChange: u })
|
|
3161
3162
|
] })
|
|
3162
3163
|
] });
|
|
3163
3164
|
}
|
|
3164
|
-
function
|
|
3165
|
+
function Nl({
|
|
3165
3166
|
chartType: s,
|
|
3166
3167
|
className: n,
|
|
3167
3168
|
customIcon: a,
|
|
@@ -3203,7 +3204,7 @@ function Cl({
|
|
|
3203
3204
|
return /* @__PURE__ */ e.jsx(Ls, { className: n });
|
|
3204
3205
|
}
|
|
3205
3206
|
}
|
|
3206
|
-
function
|
|
3207
|
+
function Sl() {
|
|
3207
3208
|
var l;
|
|
3208
3209
|
const s = o((i) => i.card), n = ((l = s.customCardPreferences) == null ? void 0 : l.showCardHeader) ?? !0, { setCustomCardPreferences: a } = be(), t = (i) => {
|
|
3209
3210
|
s.customCardPreferences && a({
|
|
@@ -3215,7 +3216,7 @@ function Nl() {
|
|
|
3215
3216
|
/* @__PURE__ */ e.jsx(la, { asChild: !0, children: /* @__PURE__ */ e.jsx(Fa, { className: "size-4 cursor-pointer text-muted-foreground/70 transition-colors hover:text-muted-foreground" }) }),
|
|
3216
3217
|
/* @__PURE__ */ e.jsxs(ra, { align: "start", className: "w-40 text-muted-foreground", children: [
|
|
3217
3218
|
/* @__PURE__ */ e.jsx(
|
|
3218
|
-
|
|
3219
|
+
$t,
|
|
3219
3220
|
{
|
|
3220
3221
|
checked: n,
|
|
3221
3222
|
onCheckedChange: t,
|
|
@@ -3223,7 +3224,7 @@ function Nl() {
|
|
|
3223
3224
|
}
|
|
3224
3225
|
),
|
|
3225
3226
|
/* @__PURE__ */ e.jsxs(
|
|
3226
|
-
|
|
3227
|
+
Pt,
|
|
3227
3228
|
{
|
|
3228
3229
|
onClick: () => {
|
|
3229
3230
|
navigator.clipboard.writeText(s.id), Pe.success("Card ID copied to clipboard");
|
|
@@ -3321,7 +3322,7 @@ function ea() {
|
|
|
3321
3322
|
displayTab: b
|
|
3322
3323
|
});
|
|
3323
3324
|
},
|
|
3324
|
-
children: S.displayTab === !0 || S.displayTab === void 0 ? /* @__PURE__ */ e.jsx(
|
|
3325
|
+
children: S.displayTab === !0 || S.displayTab === void 0 ? /* @__PURE__ */ e.jsx(zn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e.jsx(kn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
|
|
3325
3326
|
}
|
|
3326
3327
|
);
|
|
3327
3328
|
}
|
|
@@ -3382,7 +3383,7 @@ function ea() {
|
|
|
3382
3383
|
className: "invisible ml-1 h-8 px-2 hover:bg-muted-foreground/50 group-hover:visible",
|
|
3383
3384
|
variant: "outline",
|
|
3384
3385
|
onClick: h,
|
|
3385
|
-
children: /* @__PURE__ */ e.jsx(
|
|
3386
|
+
children: /* @__PURE__ */ e.jsx(Nn, { className: "h-4 w-4" })
|
|
3386
3387
|
}
|
|
3387
3388
|
)
|
|
3388
3389
|
] }) })
|
|
@@ -3391,26 +3392,26 @@ function ea() {
|
|
|
3391
3392
|
);
|
|
3392
3393
|
}
|
|
3393
3394
|
function D() {
|
|
3394
|
-
return n.type === "kpi" ? /* @__PURE__ */ e.jsx("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e.jsx(
|
|
3395
|
+
return n.type === "kpi" ? /* @__PURE__ */ e.jsx("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e.jsx(Bt, { isLoading: l, card: n }) }) }) : n.type === "text" ? /* @__PURE__ */ e.jsx("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e.jsx(Ut, { isLoading: l, card: n }) }) }) : /* @__PURE__ */ e.jsx(Va, { className: "grow border-none shadow-none" });
|
|
3395
3396
|
}
|
|
3396
3397
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex h-full flex-col py-3", children: [
|
|
3397
3398
|
l && /* @__PURE__ */ e.jsx(Ue, { className: "absolute bottom-0 left-0 right-0 top-0 z-10 m-auto h-10 w-10 animate-spin text-foreground/10" }),
|
|
3398
3399
|
/* @__PURE__ */ e.jsxs("div", { className: "mb-0 flex min-h-10 items-center justify-end gap-2 px-6", children: [
|
|
3399
3400
|
t && /* @__PURE__ */ e.jsxs("div", { className: "flex grow items-center gap-2", children: [
|
|
3400
|
-
/* @__PURE__ */ e.jsx(
|
|
3401
|
-
!["table", "custom"].includes(n.type) && /* @__PURE__ */ e.jsx(
|
|
3402
|
-
/* @__PURE__ */ e.jsx(
|
|
3401
|
+
/* @__PURE__ */ e.jsx(Cl, {}),
|
|
3402
|
+
!["table", "custom"].includes(n.type) && /* @__PURE__ */ e.jsx(bl, {}),
|
|
3403
|
+
/* @__PURE__ */ e.jsx(Sl, {})
|
|
3403
3404
|
] }),
|
|
3404
|
-
/* @__PURE__ */ e.jsx(
|
|
3405
|
+
/* @__PURE__ */ e.jsx(kl, {})
|
|
3405
3406
|
] }),
|
|
3406
3407
|
t ? M() : /* @__PURE__ */ e.jsxs("div", { className: "flex min-h-0 w-full flex-1 grow basis-0 px-6", children: [
|
|
3407
|
-
r && /* @__PURE__ */ e.jsx(
|
|
3408
|
-
n.data && n.data.length > 0 && /* @__PURE__ */ e.jsx(
|
|
3408
|
+
r && /* @__PURE__ */ e.jsx(wl, {}),
|
|
3409
|
+
n.data && n.data.length > 0 && /* @__PURE__ */ e.jsx(gl, { data: a || [] }),
|
|
3409
3410
|
i && /* @__PURE__ */ e.jsx("span", { className: "font-mono text-sm", children: i })
|
|
3410
3411
|
] })
|
|
3411
3412
|
] });
|
|
3412
3413
|
}
|
|
3413
|
-
function
|
|
3414
|
+
function wl() {
|
|
3414
3415
|
const s = o((a) => a.pythonStdOut);
|
|
3415
3416
|
if (!s)
|
|
3416
3417
|
return null;
|
|
@@ -3427,14 +3428,14 @@ function Sl() {
|
|
|
3427
3428
|
/* @__PURE__ */ e.jsx(Ie, { className: "mb-2" })
|
|
3428
3429
|
] });
|
|
3429
3430
|
}
|
|
3430
|
-
function
|
|
3431
|
+
function kl() {
|
|
3431
3432
|
const s = o((a) => a.isShowingVisual), n = o(
|
|
3432
3433
|
(a) => a.actions.setIsShowingVisual
|
|
3433
3434
|
);
|
|
3434
3435
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
3435
3436
|
/* @__PURE__ */ e.jsx(H, { htmlFor: "visualize", children: "Chart" }),
|
|
3436
3437
|
/* @__PURE__ */ e.jsx(
|
|
3437
|
-
|
|
3438
|
+
Gt,
|
|
3438
3439
|
{
|
|
3439
3440
|
checked: s,
|
|
3440
3441
|
onCheckedChange: () => n(!s),
|
|
@@ -3444,7 +3445,7 @@ function wl() {
|
|
|
3444
3445
|
)
|
|
3445
3446
|
] });
|
|
3446
3447
|
}
|
|
3447
|
-
function
|
|
3448
|
+
function zl({
|
|
3448
3449
|
options: s,
|
|
3449
3450
|
value: n,
|
|
3450
3451
|
onValueChange: a
|
|
@@ -3495,14 +3496,14 @@ function sa({
|
|
|
3495
3496
|
children: [
|
|
3496
3497
|
/* @__PURE__ */ e.jsxs("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
|
|
3497
3498
|
/* @__PURE__ */ e.jsx(H, { children: n }),
|
|
3498
|
-
/* @__PURE__ */ e.jsx(
|
|
3499
|
+
/* @__PURE__ */ e.jsx(Kt, { className: "h-4 w-4" })
|
|
3499
3500
|
] }),
|
|
3500
3501
|
/* @__PURE__ */ e.jsx("div", { className: "transition-all ease-in-out", children: s })
|
|
3501
3502
|
]
|
|
3502
3503
|
}
|
|
3503
3504
|
);
|
|
3504
3505
|
}
|
|
3505
|
-
function
|
|
3506
|
+
function Fl() {
|
|
3506
3507
|
var C, I;
|
|
3507
3508
|
const s = o(
|
|
3508
3509
|
(w) => w.card.customCardPreferences
|
|
@@ -3564,7 +3565,7 @@ function zl() {
|
|
|
3564
3565
|
return s ? w === "input" ? /* @__PURE__ */ e.jsx(
|
|
3565
3566
|
Se,
|
|
3566
3567
|
{
|
|
3567
|
-
className: `h-8 w-full ${
|
|
3568
|
+
className: `h-8 w-full ${Qt}`,
|
|
3568
3569
|
value: ((M = s == null ? void 0 : s.settings) == null ? void 0 : M[O]) || "",
|
|
3569
3570
|
onChange: (p) => {
|
|
3570
3571
|
r({
|
|
@@ -3634,7 +3635,7 @@ function zl() {
|
|
|
3634
3635
|
}
|
|
3635
3636
|
) }) }),
|
|
3636
3637
|
((s == null ? void 0 : s.type) === "component" || (s == null ? void 0 : s.type) === void 0) && /* @__PURE__ */ e.jsx(
|
|
3637
|
-
|
|
3638
|
+
zl,
|
|
3638
3639
|
{
|
|
3639
3640
|
options: [
|
|
3640
3641
|
{ value: "single", label: "Single Visual" },
|
|
@@ -4004,7 +4005,7 @@ function Qa() {
|
|
|
4004
4005
|
b(se);
|
|
4005
4006
|
}
|
|
4006
4007
|
return /* @__PURE__ */ e.jsxs(rs, { onOpenChange: (L) => n(L), children: [
|
|
4007
|
-
/* @__PURE__ */ e.jsx(is, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
4008
|
+
/* @__PURE__ */ e.jsx(is, { asChild: !0, children: /* @__PURE__ */ e.jsx(Wt, { className: "size-4 cursor-pointer text-muted-foreground hover:text-foreground" }) }),
|
|
4008
4009
|
/* @__PURE__ */ e.jsx(os, { align: "center", className: "max-w-65", children: /* @__PURE__ */ e.jsxs("div", { className: "grid gap-4", children: [
|
|
4009
4010
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
4010
4011
|
/* @__PURE__ */ e.jsx("h4", { className: "font-medium leading-none", children: "Scale Options" }),
|
|
@@ -4056,7 +4057,7 @@ function Qa() {
|
|
|
4056
4057
|
] }),
|
|
4057
4058
|
y === "custom" && i == "linear" && ee(),
|
|
4058
4059
|
P(),
|
|
4059
|
-
/* @__PURE__ */ e.jsx(
|
|
4060
|
+
/* @__PURE__ */ e.jsx(Jt, {}),
|
|
4060
4061
|
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-3", children: /* @__PURE__ */ e.jsx(
|
|
4061
4062
|
F,
|
|
4062
4063
|
{
|
|
@@ -4070,7 +4071,7 @@ function Qa() {
|
|
|
4070
4071
|
] }) })
|
|
4071
4072
|
] });
|
|
4072
4073
|
}
|
|
4073
|
-
function
|
|
4074
|
+
function Il({ idx: s }) {
|
|
4074
4075
|
var d;
|
|
4075
4076
|
const n = o((c) => {
|
|
4076
4077
|
var u;
|
|
@@ -4084,7 +4085,7 @@ function Fl({ idx: s }) {
|
|
|
4084
4085
|
(c) => c.actions.setCardPreferences
|
|
4085
4086
|
), l = (d = n == null ? void 0 : n.chartOptions) == null ? void 0 : d.indexAxis, i = a == null ? void 0 : a.find((c) => c.idx === s);
|
|
4086
4087
|
function r(c, u) {
|
|
4087
|
-
(c === "end" || c === "start") &&
|
|
4088
|
+
(c === "end" || c === "start") && Yt(Xt());
|
|
4088
4089
|
const m = {
|
|
4089
4090
|
display: c !== "none",
|
|
4090
4091
|
align: c,
|
|
@@ -4115,7 +4116,7 @@ function Fl({ idx: s }) {
|
|
|
4115
4116
|
}
|
|
4116
4117
|
}
|
|
4117
4118
|
return /* @__PURE__ */ e.jsxs(rs, { children: [
|
|
4118
|
-
/* @__PURE__ */ e.jsx(is, { children: /* @__PURE__ */ e.jsx(
|
|
4119
|
+
/* @__PURE__ */ e.jsx(is, { children: /* @__PURE__ */ e.jsx(Pn, { className: "invisible size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible" }) }),
|
|
4119
4120
|
/* @__PURE__ */ e.jsx(os, { className: "w-fit p-1", children: /* @__PURE__ */ e.jsxs("div", { className: "flex gap-1", children: [
|
|
4120
4121
|
/* @__PURE__ */ e.jsx(
|
|
4121
4122
|
F,
|
|
@@ -4135,7 +4136,7 @@ function Fl({ idx: s }) {
|
|
|
4135
4136
|
variant: "secondary",
|
|
4136
4137
|
className: "h-7 p-1 text-xs font-normal",
|
|
4137
4138
|
children: /* @__PURE__ */ e.jsx(
|
|
4138
|
-
|
|
4139
|
+
Ln,
|
|
4139
4140
|
{
|
|
4140
4141
|
className: X("h-4 w-4", {
|
|
4141
4142
|
"rotate-90": l === "y"
|
|
@@ -4152,7 +4153,7 @@ function Fl({ idx: s }) {
|
|
|
4152
4153
|
variant: "secondary",
|
|
4153
4154
|
className: "h-7 p-1 text-xs font-normal",
|
|
4154
4155
|
children: /* @__PURE__ */ e.jsx(
|
|
4155
|
-
|
|
4156
|
+
On,
|
|
4156
4157
|
{
|
|
4157
4158
|
className: X("h-4 w-4", {
|
|
4158
4159
|
"rotate-90": l === "y"
|
|
@@ -4169,7 +4170,7 @@ function Fl({ idx: s }) {
|
|
|
4169
4170
|
variant: "secondary",
|
|
4170
4171
|
className: "h-7 p-1 text-xs font-normal",
|
|
4171
4172
|
children: /* @__PURE__ */ e.jsx(
|
|
4172
|
-
|
|
4173
|
+
Mn,
|
|
4173
4174
|
{
|
|
4174
4175
|
className: X("h-4 w-4", {
|
|
4175
4176
|
"rotate-90": l === "y"
|
|
@@ -4194,7 +4195,7 @@ function Wa() {
|
|
|
4194
4195
|
} = gs(s.data || []);
|
|
4195
4196
|
let d = i;
|
|
4196
4197
|
if (["stackedBar", "stackedLine"].includes(s.type)) {
|
|
4197
|
-
const c =
|
|
4198
|
+
const c = Zt({
|
|
4198
4199
|
dataArray: s.data || [],
|
|
4199
4200
|
groupKey: r[0],
|
|
4200
4201
|
pivotKey: r[1],
|
|
@@ -4212,11 +4213,11 @@ function Wa() {
|
|
|
4212
4213
|
/* @__PURE__ */ e.jsx(H, { children: t }),
|
|
4213
4214
|
/* @__PURE__ */ e.jsx(Qa, {})
|
|
4214
4215
|
] }),
|
|
4215
|
-
/* @__PURE__ */ e.jsx("div", { className: "my-1 space-y-1", children: d.map((c, u) => /* @__PURE__ */ e.jsx(
|
|
4216
|
+
/* @__PURE__ */ e.jsx("div", { className: "my-1 space-y-1", children: d.map((c, u) => /* @__PURE__ */ e.jsx(Tl, { col: c, idx: u }, c)) })
|
|
4216
4217
|
] })
|
|
4217
4218
|
] });
|
|
4218
4219
|
}
|
|
4219
|
-
function
|
|
4220
|
+
function Tl({ col: s, idx: n }) {
|
|
4220
4221
|
const a = o((d) => {
|
|
4221
4222
|
var c;
|
|
4222
4223
|
return (c = d.card) == null ? void 0 : c.preferences;
|
|
@@ -4269,7 +4270,7 @@ function Il({ col: s, idx: n }) {
|
|
|
4269
4270
|
}
|
|
4270
4271
|
),
|
|
4271
4272
|
/* @__PURE__ */ e.jsx(
|
|
4272
|
-
|
|
4273
|
+
vn,
|
|
4273
4274
|
{
|
|
4274
4275
|
onClick: () => r("area"),
|
|
4275
4276
|
className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
|
|
@@ -4282,7 +4283,7 @@ function Il({ col: s, idx: n }) {
|
|
|
4282
4283
|
className: "invisible size-4 cursor-pointer py-2 text-muted-foreground hover:text-foreground group-hover:visible"
|
|
4283
4284
|
}
|
|
4284
4285
|
),
|
|
4285
|
-
/* @__PURE__ */ e.jsx(
|
|
4286
|
+
/* @__PURE__ */ e.jsx(Il, { idx: n })
|
|
4286
4287
|
] })
|
|
4287
4288
|
] });
|
|
4288
4289
|
}
|
|
@@ -4360,11 +4361,11 @@ function Ee() {
|
|
|
4360
4361
|
const r = s == null ? void 0 : s.find((d) => d.id === n.filterId);
|
|
4361
4362
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-3", children: [
|
|
4362
4363
|
/* @__PURE__ */ e.jsx(H, { children: "Card Filter" }),
|
|
4363
|
-
/* @__PURE__ */ e.jsx(
|
|
4364
|
-
r && /* @__PURE__ */ e.jsx(
|
|
4364
|
+
/* @__PURE__ */ e.jsx(Dl, { onSelect: i, columns: t }),
|
|
4365
|
+
r && /* @__PURE__ */ e.jsx(en, { filter: r })
|
|
4365
4366
|
] });
|
|
4366
4367
|
}
|
|
4367
|
-
function
|
|
4368
|
+
function Dl({
|
|
4368
4369
|
columns: s,
|
|
4369
4370
|
onSelect: n
|
|
4370
4371
|
}) {
|
|
@@ -4381,16 +4382,16 @@ function Tl({
|
|
|
4381
4382
|
className: "w-full justify-between font-normal",
|
|
4382
4383
|
children: [
|
|
4383
4384
|
l ? (r = s.find((d) => d.column_name === l)) == null ? void 0 : r.column_name : "Select Column...",
|
|
4384
|
-
/* @__PURE__ */ e.jsx(
|
|
4385
|
+
/* @__PURE__ */ e.jsx(sn, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
4385
4386
|
]
|
|
4386
4387
|
}
|
|
4387
4388
|
) }),
|
|
4388
|
-
/* @__PURE__ */ e.jsx(os, { className: "w-[200px] p-0", children: /* @__PURE__ */ e.jsxs(
|
|
4389
|
-
/* @__PURE__ */ e.jsx(
|
|
4390
|
-
/* @__PURE__ */ e.jsxs(
|
|
4391
|
-
/* @__PURE__ */ e.jsx(
|
|
4392
|
-
/* @__PURE__ */ e.jsx(
|
|
4393
|
-
|
|
4389
|
+
/* @__PURE__ */ e.jsx(os, { className: "w-[200px] p-0", children: /* @__PURE__ */ e.jsxs(an, { children: [
|
|
4390
|
+
/* @__PURE__ */ e.jsx(tn, { placeholder: "Search column", className: "h-9" }),
|
|
4391
|
+
/* @__PURE__ */ e.jsxs(nn, { children: [
|
|
4392
|
+
/* @__PURE__ */ e.jsx(ln, { children: "No framework found." }),
|
|
4393
|
+
/* @__PURE__ */ e.jsx(rn, { children: s.map((d) => /* @__PURE__ */ e.jsxs(
|
|
4394
|
+
on,
|
|
4394
4395
|
{
|
|
4395
4396
|
value: d.column_name,
|
|
4396
4397
|
onSelect: (c) => {
|
|
@@ -4416,7 +4417,7 @@ function Tl({
|
|
|
4416
4417
|
] }) })
|
|
4417
4418
|
] });
|
|
4418
4419
|
}
|
|
4419
|
-
function
|
|
4420
|
+
function Ll({
|
|
4420
4421
|
cardType: s
|
|
4421
4422
|
}) {
|
|
4422
4423
|
return /* @__PURE__ */ e.jsx("div", { className: "space-y-6 px-6 py-2", children: /* @__PURE__ */ e.jsxs(De, { defaultValue: ["item-2"], type: "multiple", children: [
|
|
@@ -4512,7 +4513,7 @@ function Hs() {
|
|
|
4512
4513
|
)
|
|
4513
4514
|
] });
|
|
4514
4515
|
}
|
|
4515
|
-
function
|
|
4516
|
+
function Ml({
|
|
4516
4517
|
cardType: s
|
|
4517
4518
|
}) {
|
|
4518
4519
|
function n(a) {
|
|
@@ -4560,7 +4561,7 @@ function Ll({
|
|
|
4560
4561
|
] })
|
|
4561
4562
|
] }) });
|
|
4562
4563
|
}
|
|
4563
|
-
const
|
|
4564
|
+
const Ol = {
|
|
4564
4565
|
datasets: [
|
|
4565
4566
|
{
|
|
4566
4567
|
type: "line",
|
|
@@ -4573,7 +4574,7 @@ const Ml = {
|
|
|
4573
4574
|
data: []
|
|
4574
4575
|
}
|
|
4575
4576
|
]
|
|
4576
|
-
},
|
|
4577
|
+
}, Al = {
|
|
4577
4578
|
datasets: [
|
|
4578
4579
|
{
|
|
4579
4580
|
fill: "origin",
|
|
@@ -4583,7 +4584,7 @@ const Ml = {
|
|
|
4583
4584
|
}
|
|
4584
4585
|
]
|
|
4585
4586
|
};
|
|
4586
|
-
function
|
|
4587
|
+
function El() {
|
|
4587
4588
|
const s = o((n) => n.card.type);
|
|
4588
4589
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-6 p-6", children: [
|
|
4589
4590
|
/* @__PURE__ */ e.jsx(
|
|
@@ -4592,7 +4593,7 @@ function Al() {
|
|
|
4592
4593
|
className: " ",
|
|
4593
4594
|
type: "single",
|
|
4594
4595
|
collapsible: !0,
|
|
4595
|
-
children:
|
|
4596
|
+
children: Vl(s)
|
|
4596
4597
|
}
|
|
4597
4598
|
),
|
|
4598
4599
|
/* @__PURE__ */ e.jsx("section", { className: "", children: ["line", "bar"].includes(s) && /* @__PURE__ */ e.jsx(ds, {}) }),
|
|
@@ -4603,7 +4604,7 @@ function Al() {
|
|
|
4603
4604
|
] })
|
|
4604
4605
|
] });
|
|
4605
4606
|
}
|
|
4606
|
-
function
|
|
4607
|
+
function Vl(s) {
|
|
4607
4608
|
if (["line", "bar"].includes(s))
|
|
4608
4609
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4609
4610
|
/* @__PURE__ */ e.jsxs(B, { value: "item-1", children: [
|
|
@@ -4624,7 +4625,7 @@ function El(s) {
|
|
|
4624
4625
|
/* @__PURE__ */ e.jsx("b", { children: "Customize" }),
|
|
4625
4626
|
" and change the `type` property in the dataset."
|
|
4626
4627
|
] }),
|
|
4627
|
-
/* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(
|
|
4628
|
+
/* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(Ol, null, 2) })
|
|
4628
4629
|
] })
|
|
4629
4630
|
] }),
|
|
4630
4631
|
/* @__PURE__ */ e.jsxs(B, { value: "item-3", children: [
|
|
@@ -4645,7 +4646,7 @@ function El(s) {
|
|
|
4645
4646
|
),
|
|
4646
4647
|
"for more options."
|
|
4647
4648
|
] }),
|
|
4648
|
-
/* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(
|
|
4649
|
+
/* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(Al, null, 2) })
|
|
4649
4650
|
] })
|
|
4650
4651
|
] })
|
|
4651
4652
|
] });
|
|
@@ -4700,7 +4701,7 @@ function El(s) {
|
|
|
4700
4701
|
] })
|
|
4701
4702
|
] }) });
|
|
4702
4703
|
}
|
|
4703
|
-
function
|
|
4704
|
+
function ql() {
|
|
4704
4705
|
var c, u, m, y, g;
|
|
4705
4706
|
const s = o((h) => h.card.preferences), n = o(
|
|
4706
4707
|
(h) => h.actions.setCardPreferences
|
|
@@ -4856,7 +4857,7 @@ function Vl() {
|
|
|
4856
4857
|
] }) }),
|
|
4857
4858
|
/* @__PURE__ */ e.jsx(Ie, { className: "my-3" }),
|
|
4858
4859
|
/* @__PURE__ */ e.jsx(
|
|
4859
|
-
|
|
4860
|
+
cn,
|
|
4860
4861
|
{
|
|
4861
4862
|
colorRanges: i,
|
|
4862
4863
|
setColorRanges: r
|
|
@@ -4865,7 +4866,7 @@ function Vl() {
|
|
|
4865
4866
|
] })
|
|
4866
4867
|
] });
|
|
4867
4868
|
}
|
|
4868
|
-
function
|
|
4869
|
+
function Rl() {
|
|
4869
4870
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-6 px-6 py-2", children: [
|
|
4870
4871
|
/* @__PURE__ */ e.jsx(De, { type: "single", collapsible: !0, children: /* @__PURE__ */ e.jsxs(B, { value: "item-1", children: [
|
|
4871
4872
|
/* @__PURE__ */ e.jsx(U, { className: "", children: "KPI Query" }),
|
|
@@ -4891,12 +4892,12 @@ function ql() {
|
|
|
4891
4892
|
] })
|
|
4892
4893
|
] })
|
|
4893
4894
|
] }) }),
|
|
4894
|
-
/* @__PURE__ */ e.jsx("section", { className: "", children: /* @__PURE__ */ e.jsx(
|
|
4895
|
+
/* @__PURE__ */ e.jsx("section", { className: "", children: /* @__PURE__ */ e.jsx(ql, {}) }),
|
|
4895
4896
|
/* @__PURE__ */ e.jsx("div", {}),
|
|
4896
4897
|
/* @__PURE__ */ e.jsx("div", {})
|
|
4897
4898
|
] });
|
|
4898
4899
|
}
|
|
4899
|
-
function
|
|
4900
|
+
function _l() {
|
|
4900
4901
|
var t;
|
|
4901
4902
|
const s = o((l) => l.card.preferences), { setCardPreferences: n } = o((l) => l.actions);
|
|
4902
4903
|
function a(l) {
|
|
@@ -4963,7 +4964,7 @@ function Xe({
|
|
|
4963
4964
|
/* @__PURE__ */ e.jsxs(G, { className: "space-y-4 px-2", children: [
|
|
4964
4965
|
s === "range" && /* @__PURE__ */ e.jsx(ds, {}),
|
|
4965
4966
|
s !== "text" && /* @__PURE__ */ e.jsx(Hs, {}),
|
|
4966
|
-
s === "text" && /* @__PURE__ */ e.jsx(
|
|
4967
|
+
s === "text" && /* @__PURE__ */ e.jsx(_l, {})
|
|
4967
4968
|
] })
|
|
4968
4969
|
] }),
|
|
4969
4970
|
!["range", "text"].includes(s) && /* @__PURE__ */ e.jsxs(B, { value: "item-3", children: [
|
|
@@ -4975,7 +4976,7 @@ function Xe({
|
|
|
4975
4976
|
] })
|
|
4976
4977
|
] }) });
|
|
4977
4978
|
}
|
|
4978
|
-
function
|
|
4979
|
+
function Hl() {
|
|
4979
4980
|
const s = o(
|
|
4980
4981
|
(t) => {
|
|
4981
4982
|
var l, i;
|
|
@@ -5055,7 +5056,7 @@ function _l() {
|
|
|
5055
5056
|
] })
|
|
5056
5057
|
] }) });
|
|
5057
5058
|
}
|
|
5058
|
-
function
|
|
5059
|
+
function $l({}) {
|
|
5059
5060
|
const s = o((t) => {
|
|
5060
5061
|
var l;
|
|
5061
5062
|
return (l = t.card) == null ? void 0 : l.preferences;
|
|
@@ -5088,7 +5089,7 @@ function Hl({}) {
|
|
|
5088
5089
|
] })
|
|
5089
5090
|
] });
|
|
5090
5091
|
}
|
|
5091
|
-
const
|
|
5092
|
+
const Pl = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
|
|
5092
5093
|
/* @__PURE__ */ e.jsx("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT dimension, cohort, metric FROM table" }),
|
|
5093
5094
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
5094
5095
|
"See ",
|
|
@@ -5104,7 +5105,7 @@ const $l = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
|
|
|
5104
5105
|
),
|
|
5105
5106
|
" in the docs."
|
|
5106
5107
|
] })
|
|
5107
|
-
] }),
|
|
5108
|
+
] }), Bl = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
|
|
5108
5109
|
/* @__PURE__ */ e.jsx("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT y-axis, label, range-from, range-to, range-value FROM table" }),
|
|
5109
5110
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
5110
5111
|
"See ",
|
|
@@ -5120,7 +5121,7 @@ const $l = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
|
|
|
5120
5121
|
),
|
|
5121
5122
|
" in the docs."
|
|
5122
5123
|
] })
|
|
5123
|
-
] }),
|
|
5124
|
+
] }), Ul = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
|
|
5124
5125
|
/* @__PURE__ */ e.jsx("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT text FROM table limit 1" }),
|
|
5125
5126
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
5126
5127
|
"See ",
|
|
@@ -5137,22 +5138,22 @@ const $l = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
|
|
|
5137
5138
|
" in the docs."
|
|
5138
5139
|
] })
|
|
5139
5140
|
] });
|
|
5140
|
-
function
|
|
5141
|
+
function Gl() {
|
|
5141
5142
|
const s = o((a) => a.card.type);
|
|
5142
5143
|
function n(a) {
|
|
5143
5144
|
switch (a) {
|
|
5144
5145
|
case "stackedBar":
|
|
5145
5146
|
case "stackedLine":
|
|
5146
|
-
return /* @__PURE__ */ e.jsx(
|
|
5147
|
+
return /* @__PURE__ */ e.jsx(Hl, {});
|
|
5147
5148
|
case "pyramid":
|
|
5148
|
-
return /* @__PURE__ */ e.jsx(Xe, { docContent:
|
|
5149
|
+
return /* @__PURE__ */ e.jsx(Xe, { docContent: Pl, cardType: a });
|
|
5149
5150
|
case "kpi":
|
|
5150
|
-
return /* @__PURE__ */ e.jsx(
|
|
5151
|
+
return /* @__PURE__ */ e.jsx(Rl, {});
|
|
5151
5152
|
case "line":
|
|
5152
5153
|
case "bar":
|
|
5153
|
-
return /* @__PURE__ */ e.jsx(
|
|
5154
|
+
return /* @__PURE__ */ e.jsx(Ll, { cardType: a });
|
|
5154
5155
|
case "range":
|
|
5155
|
-
return /* @__PURE__ */ e.jsx(Xe, { docContent:
|
|
5156
|
+
return /* @__PURE__ */ e.jsx(Xe, { docContent: Bl, cardType: a });
|
|
5156
5157
|
case "pie":
|
|
5157
5158
|
case "doughnut":
|
|
5158
5159
|
case "polarArea":
|
|
@@ -5160,27 +5161,27 @@ function Ul() {
|
|
|
5160
5161
|
return /* @__PURE__ */ e.jsx(Xe, { cardType: a });
|
|
5161
5162
|
case "bubble":
|
|
5162
5163
|
case "scatter":
|
|
5163
|
-
return /* @__PURE__ */ e.jsx(
|
|
5164
|
+
return /* @__PURE__ */ e.jsx(Ml, { cardType: a });
|
|
5164
5165
|
case "table":
|
|
5165
|
-
return /* @__PURE__ */ e.jsx(
|
|
5166
|
+
return /* @__PURE__ */ e.jsx($l, { cardType: a });
|
|
5166
5167
|
case "text":
|
|
5167
5168
|
return /* @__PURE__ */ e.jsx(
|
|
5168
5169
|
Xe,
|
|
5169
5170
|
{
|
|
5170
|
-
docContent:
|
|
5171
|
+
docContent: Ul,
|
|
5171
5172
|
cardType: a,
|
|
5172
5173
|
suffix: "Visual"
|
|
5173
5174
|
}
|
|
5174
5175
|
);
|
|
5175
5176
|
case "custom":
|
|
5176
|
-
return /* @__PURE__ */ e.jsx(
|
|
5177
|
+
return /* @__PURE__ */ e.jsx(Fl, {});
|
|
5177
5178
|
default:
|
|
5178
|
-
return /* @__PURE__ */ e.jsx(
|
|
5179
|
+
return /* @__PURE__ */ e.jsx(El, {});
|
|
5179
5180
|
}
|
|
5180
5181
|
}
|
|
5181
5182
|
return /* @__PURE__ */ e.jsx(Es, { className: "h-full w-full text-sm", children: n(s) });
|
|
5182
5183
|
}
|
|
5183
|
-
function
|
|
5184
|
+
function Kl() {
|
|
5184
5185
|
const s = o((n) => n.isShowingVisual);
|
|
5185
5186
|
return /* @__PURE__ */ e.jsxs(
|
|
5186
5187
|
js,
|
|
@@ -5195,7 +5196,7 @@ function Gl() {
|
|
|
5195
5196
|
className: "flex",
|
|
5196
5197
|
minSize: 20,
|
|
5197
5198
|
defaultSize: 40,
|
|
5198
|
-
children: /* @__PURE__ */ e.jsx(
|
|
5199
|
+
children: /* @__PURE__ */ e.jsx(fl, {})
|
|
5199
5200
|
}
|
|
5200
5201
|
),
|
|
5201
5202
|
/* @__PURE__ */ e.jsx(bs, { withHandle: !0, className: "border" }),
|
|
@@ -5214,7 +5215,7 @@ function Gl() {
|
|
|
5214
5215
|
minSize: 20,
|
|
5215
5216
|
defaultSize: 25,
|
|
5216
5217
|
maxSize: 30,
|
|
5217
|
-
children: /* @__PURE__ */ e.jsx(
|
|
5218
|
+
children: /* @__PURE__ */ e.jsx(Gl, {})
|
|
5218
5219
|
}
|
|
5219
5220
|
) }),
|
|
5220
5221
|
/* @__PURE__ */ e.jsx(bs, { className: "border" }),
|
|
@@ -5226,7 +5227,7 @@ function Gl() {
|
|
|
5226
5227
|
}
|
|
5227
5228
|
);
|
|
5228
5229
|
}
|
|
5229
|
-
function
|
|
5230
|
+
function Ql({ authToken: s, onSave: n, onClose: a }) {
|
|
5230
5231
|
z((r) => r.themeStyle);
|
|
5231
5232
|
const t = o((r) => r.actions.setOnSave), l = o((r) => r.actions.setOnClose), i = z((r) => r.actions.setAuthToken);
|
|
5232
5233
|
return Y(() => {
|
|
@@ -5234,7 +5235,7 @@ function Kl({ authToken: s, onSave: n, onClose: a }) {
|
|
|
5234
5235
|
}, [n, t, a, l]), Y(() => {
|
|
5235
5236
|
s && s.accessToken && i(s);
|
|
5236
5237
|
}, [s, i]), /* @__PURE__ */ e.jsx(Na, { FallbackComponent: Sa, children: /* @__PURE__ */ e.jsxs(
|
|
5237
|
-
|
|
5238
|
+
dn,
|
|
5238
5239
|
{
|
|
5239
5240
|
style: {
|
|
5240
5241
|
// borderRadius: currentStyle?.chart?.options?.borderRadius,
|
|
@@ -5243,13 +5244,13 @@ function Kl({ authToken: s, onSave: n, onClose: a }) {
|
|
|
5243
5244
|
className: "rounded-none",
|
|
5244
5245
|
role: "editor-panel",
|
|
5245
5246
|
children: [
|
|
5246
|
-
/* @__PURE__ */ e.jsx(
|
|
5247
|
-
/* @__PURE__ */ e.jsx(
|
|
5247
|
+
/* @__PURE__ */ e.jsx(un, { className: "rounded-none border-r-[1.5px]", children: /* @__PURE__ */ e.jsx(Oa, {}) }),
|
|
5248
|
+
/* @__PURE__ */ e.jsx(hn, { children: /* @__PURE__ */ e.jsx(Kl, {}) })
|
|
5248
5249
|
]
|
|
5249
5250
|
}
|
|
5250
5251
|
) });
|
|
5251
5252
|
}
|
|
5252
|
-
function
|
|
5253
|
+
function Wl() {
|
|
5253
5254
|
z((r) => r.selectedCardId);
|
|
5254
5255
|
const s = z((r) => r.selectedSheetId), { setIsVisualEditing: n } = z((r) => r.actions), a = z((r) => r.isVisualEditing), t = z((r) => r.actions.updateFrame);
|
|
5255
5256
|
function l(r) {
|
|
@@ -5266,11 +5267,11 @@ function Ql() {
|
|
|
5266
5267
|
block: a,
|
|
5267
5268
|
hidden: !a
|
|
5268
5269
|
}),
|
|
5269
|
-
children: /* @__PURE__ */ e.jsx(
|
|
5270
|
+
children: /* @__PURE__ */ e.jsx(Ql, { onSave: l, onClose: i })
|
|
5270
5271
|
}
|
|
5271
5272
|
);
|
|
5272
5273
|
}
|
|
5273
|
-
function
|
|
5274
|
+
function Jl() {
|
|
5274
5275
|
o((r) => r.selectedConnectionId), o((r) => r.selectedDatamodelId);
|
|
5275
5276
|
const s = o((r) => r.selectedDatabaseName);
|
|
5276
5277
|
o((r) => r.selectedSchemaName);
|
|
@@ -5302,7 +5303,7 @@ function Wl() {
|
|
|
5302
5303
|
);
|
|
5303
5304
|
}) });
|
|
5304
5305
|
}
|
|
5305
|
-
function
|
|
5306
|
+
function Yl() {
|
|
5306
5307
|
z((n) => n.showFilters);
|
|
5307
5308
|
const s = z(
|
|
5308
5309
|
(n) => n.actions.setShowFilters
|
|
@@ -5326,7 +5327,7 @@ function Jl() {
|
|
|
5326
5327
|
ColumnsComponent: () => (
|
|
5327
5328
|
// schemaName, tableName, columns
|
|
5328
5329
|
/* @__PURE__ */ e.jsx(
|
|
5329
|
-
|
|
5330
|
+
Jl,
|
|
5330
5331
|
{}
|
|
5331
5332
|
)
|
|
5332
5333
|
)
|
|
@@ -5334,7 +5335,7 @@ function Jl() {
|
|
|
5334
5335
|
) })
|
|
5335
5336
|
] });
|
|
5336
5337
|
}
|
|
5337
|
-
function
|
|
5338
|
+
function Xl() {
|
|
5338
5339
|
const s = z((a) => a.showFilters), n = z((a) => a.isVisualEditing);
|
|
5339
5340
|
return /* @__PURE__ */ e.jsxs(
|
|
5340
5341
|
"div",
|
|
@@ -5345,13 +5346,13 @@ function Yl() {
|
|
|
5345
5346
|
flex: !n
|
|
5346
5347
|
}),
|
|
5347
5348
|
children: [
|
|
5348
|
-
/* @__PURE__ */ e.jsx(
|
|
5349
|
-
s && /* @__PURE__ */ e.jsx("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e.jsx(
|
|
5349
|
+
/* @__PURE__ */ e.jsx(mn, {}),
|
|
5350
|
+
s && /* @__PURE__ */ e.jsx("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e.jsx(Yl, {}) })
|
|
5350
5351
|
]
|
|
5351
5352
|
}
|
|
5352
5353
|
);
|
|
5353
5354
|
}
|
|
5354
|
-
function
|
|
5355
|
+
function Zl() {
|
|
5355
5356
|
const s = z((t) => t.dashboard), n = z((t) => t.actions.setDashboard), a = z(
|
|
5356
5357
|
(t) => t.showDashboardJSON
|
|
5357
5358
|
);
|
|
@@ -5364,7 +5365,7 @@ function Xl() {
|
|
|
5364
5365
|
hidden: !a
|
|
5365
5366
|
}),
|
|
5366
5367
|
children: /* @__PURE__ */ e.jsx(
|
|
5367
|
-
|
|
5368
|
+
xn,
|
|
5368
5369
|
{
|
|
5369
5370
|
onChange: (t) => {
|
|
5370
5371
|
if (t)
|
|
@@ -5395,64 +5396,64 @@ function Xl() {
|
|
|
5395
5396
|
}
|
|
5396
5397
|
);
|
|
5397
5398
|
}
|
|
5398
|
-
function
|
|
5399
|
+
function tr({
|
|
5399
5400
|
showControls: s = !1,
|
|
5400
5401
|
showFooter: n = !0,
|
|
5401
5402
|
...a
|
|
5402
5403
|
}) {
|
|
5403
|
-
return /* @__PURE__ */ e.jsx(Na, { FallbackComponent: Sa, children: /* @__PURE__ */ e.jsxs(
|
|
5404
|
-
/* @__PURE__ */ e.jsx(
|
|
5405
|
-
/* @__PURE__ */ e.jsxs(
|
|
5406
|
-
/* @__PURE__ */ e.jsx(
|
|
5407
|
-
/* @__PURE__ */ e.jsxs(
|
|
5408
|
-
s && /* @__PURE__ */ e.jsx(
|
|
5409
|
-
/* @__PURE__ */ e.jsx(
|
|
5410
|
-
/* @__PURE__ */ e.jsx(
|
|
5404
|
+
return /* @__PURE__ */ e.jsx(Na, { FallbackComponent: Sa, children: /* @__PURE__ */ e.jsxs(pn, { dashboardProps: a, children: [
|
|
5405
|
+
/* @__PURE__ */ e.jsx(fn, {}),
|
|
5406
|
+
/* @__PURE__ */ e.jsxs(gn, { children: [
|
|
5407
|
+
/* @__PURE__ */ e.jsx(Zl, {}),
|
|
5408
|
+
/* @__PURE__ */ e.jsxs(jn, { ...a, children: [
|
|
5409
|
+
s && /* @__PURE__ */ e.jsx(Xn, {}),
|
|
5410
|
+
/* @__PURE__ */ e.jsx(Wl, {}),
|
|
5411
|
+
/* @__PURE__ */ e.jsx(Xl, {})
|
|
5411
5412
|
] })
|
|
5412
5413
|
] })
|
|
5413
5414
|
] }) });
|
|
5414
5415
|
}
|
|
5415
5416
|
export {
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5417
|
+
Bn as A,
|
|
5418
|
+
yn as B,
|
|
5419
|
+
vn as C,
|
|
5420
|
+
tr as D,
|
|
5420
5421
|
Fa as E,
|
|
5421
5422
|
_s as F,
|
|
5422
|
-
|
|
5423
|
-
|
|
5423
|
+
Fn as G,
|
|
5424
|
+
In as H,
|
|
5424
5425
|
Ia as K,
|
|
5425
5426
|
Ue as L,
|
|
5426
|
-
|
|
5427
|
-
|
|
5427
|
+
An as M,
|
|
5428
|
+
En as N,
|
|
5428
5429
|
Ta as P,
|
|
5429
5430
|
qe as S,
|
|
5430
|
-
|
|
5431
|
-
|
|
5431
|
+
Pn as T,
|
|
5432
|
+
Un as U,
|
|
5432
5433
|
qs as a,
|
|
5433
5434
|
Rs as b,
|
|
5434
|
-
|
|
5435
|
+
Gn as c,
|
|
5435
5436
|
wa as d,
|
|
5436
5437
|
ka as e,
|
|
5437
5438
|
za as f,
|
|
5438
5439
|
La as g,
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5440
|
+
Cn as h,
|
|
5441
|
+
Nn as i,
|
|
5442
|
+
Sn as j,
|
|
5443
|
+
wn as k,
|
|
5444
|
+
zn as l,
|
|
5445
|
+
kn as m,
|
|
5446
|
+
Tn as n,
|
|
5447
|
+
Dn as o,
|
|
5448
|
+
Ln as p,
|
|
5449
|
+
Mn as q,
|
|
5450
|
+
On as r,
|
|
5451
|
+
Vn as s,
|
|
5452
|
+
qn as t,
|
|
5452
5453
|
Oe as u,
|
|
5453
|
-
|
|
5454
|
+
Rn as v,
|
|
5454
5455
|
Da as w,
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5456
|
+
_n as x,
|
|
5457
|
+
Hn as y,
|
|
5458
|
+
$n as z
|
|
5458
5459
|
};
|