react-semaphor 0.1.124 → 0.1.126
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-BktHa763.js +1473 -0
- package/dist/chunks/dashboard-controls-DucLNOji.js +26 -0
- package/dist/chunks/dashboard-export-dialog-BNjL5KSw.js +600 -0
- package/dist/chunks/dashboard-export-dialog-M318NGd7.js +6 -0
- package/dist/chunks/{dashboard-json-QdBRgDPb.js → dashboard-json-B7_R2nwz.js} +1 -1
- package/dist/chunks/{dashboard-json-BCOS2K2w.js → dashboard-json-DpgglXTM.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-E4AXmvCQ.js → edit-dashboard-visual-BaNXGTU-.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-C-EPVOe8.js → edit-dashboard-visual-Dfdl-K74.js} +165 -165
- package/dist/chunks/{editor-action-buttons-Derg0Fka.js → editor-action-buttons-CMKMrnww.js} +2 -2
- package/dist/chunks/{editor-action-buttons-C_UBbFu6.js → editor-action-buttons-CsV8nUOI.js} +1 -1
- package/dist/chunks/{index-C_K3WRIV.js → index-BdiWSBWd.js} +322 -322
- package/dist/chunks/{index-3qBZw0dE.js → index-GG6fcfuj.js} +97 -97
- package/dist/chunks/{resource-management-panel-C4CDYpm_.js → resource-management-panel-3Q8phtkW.js} +1 -1
- package/dist/chunks/{resource-management-panel-y71osNXf.js → resource-management-panel-CdC7mFhx.js} +88 -88
- package/dist/chunks/{use-visual-utils-zPL0RdVw.js → use-visual-utils-BE_5Rl3X.js} +1 -1
- package/dist/chunks/{use-visual-utils-BBZxgwfD.js → use-visual-utils-CxVLCLOf.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +25 -24
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/main.d.ts +8 -1
- package/package.json +1 -1
- package/dist/chunks/dashboard-controls-C_kxUkyD.js +0 -26
- package/dist/chunks/dashboard-controls-j6VncHyG.js +0 -1561
- package/dist/chunks/schedule-dashboard-B-z6gEwK.js +0 -6
- package/dist/chunks/schedule-dashboard-C79ka7qZ.js +0 -415
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
-
import { b as fe, l as nt, e as se, f as D,
|
|
2
|
+
import { b as fe, l as nt, e as se, f as D, c5 as ma, av as P, c6 as Q, c7 as Y, c8 as W, c9 as X, ca as K, cb as ve, B as q, aZ as qe, cc as ha, cd as ms, ce as hs, cf as ps, cg as fs, ch as _t, r as lt, X as Me, ci as Za, b2 as gs, aq as xt, ar as vt, as as bt, at as yt, au as Ft, k as Oe, bp as Ie, bl as je, bm as Ae, bn as Te, cj as Pn, ck as en, u as ke, az as ra, aQ as st, b8 as Ht, c as Z, ay as Ge, cl as xs, aX as vs, cm as Ml, cn as Il, co as Ol, cp as jt, cq as Rl, cr as bs, bK as ys, cs as He, ct as Ln, cu as Fl, cv as Pl, cw as Ll, cx as tn, cy as Ns, cz as Cs, cA as St, cB as ws, cC as Vl, bA as zl, cD as jl, cE as Ss, cF as Bl, cG as an, cH as Kl, h as $l, cI as ql, cJ as qa, cK as Nt, cL as Fe, cM as Ct, L as pa, cN as Gl, cO as ks, c2 as Ga, aD as fa, aO as ga, cP as Qt, cQ as Ul, b9 as xa, aP as wt, aC as Jl, cR as Ua, b6 as _l, aJ as nn, g as As, cS as sn, cT as Hl, cU as Ts, cV as Es, cW as ia, c0 as Ia, cX as Ql, cY as Ds, cZ as Yl, c_ as Wl, c$ as Xl, d0 as va, d1 as Zl, d2 as er, d3 as Vn, d4 as tr, E as ba, o as ln, d5 as ar, d6 as rn, bC as nr, I as Ee, d7 as sr, d8 as lr, bO as ya, bP as Na, bQ as We, bR as sa, d9 as rr, al as Yt, da as on, db as ir, dc as or, dd as cr, de as Ms, df as dr, dg as cn, dh as dn, di as un, dj as mn, dk as Wt, dl as Ca, dm as Is, dn as Ja, dp as hn, dq as pn, dr as Os, ds as fn, dt as Rs, du as gn, aY as wa, dv as Sa, dw as ur, P as rt, q as it, s as ot, bw as xn, aw as Le, aE as Fs, aF as Ps, aH as Ls, bD as Vs, b1 as zs, dx as ft, dy as mr, dz as hr, dA as pr, dB as fr, dC as gr, aU as xr, aB as Bt, dD as vr, dE as js, dF as vn, dG as Pt, dH as $t, dI as Bs, dJ as Be, dK as de, dL as ue, dM as me, aS as ye, dN as at, c3 as Ks, dO as br, dP as yr, dQ as Nr, dR as Cr, dS as wr, dT as Sr, af as $s, dU as kr, dV as Ar, dW as Tr, t as ka, v as Aa, w as Ta, x as Ea, y as Rt, z as Xt, dX as Er, dY as ze, dZ as ta, d_ as zn, d$ as Dr, e0 as jn, e1 as Mr, C as Zt, e2 as De, e3 as Ir, e4 as Bn, e5 as Kn, e6 as Or, e7 as Rr, e8 as Fr, e9 as Pr, ea as Oa, eb as qs, ec as Lr, ed as $n, ee as qn, bX as Vr, ef as zr, eg as jr, eh as Br, ei as Kr, ej as $r, ab as Gn, ek as Un, el as qr, em as Gr, en as Gs, eo as Ur, ep as Us, eq as Jr, er as _r, es as Hr, et as Qr, eu as Yr, ev as Wr, ew as Xr, ex as Zr, ey as ei, ez as ti, eA as Js, eB as ai, eC as ni, eD as si, eE as li, eF as ri, eG as ii, eH as oi, eI as _s, aG as ci, eJ as Ra, eK as Fa, eL as bn, W as di, eM as ui, eN as mi, bJ as Hs, eO as Ke, ax as hi, Z as oa, eP as pi, eQ as fi, eR as yn, eS as Qs, eT as Nn, eU as gi, bx as xi, eV as Jn, eW as vi, eX as bi, eY as yi, eZ as la, e_ as qt, e$ as Gt, f0 as Ni, f1 as Ci, f2 as wi, f3 as Ys, f4 as Si, f5 as _a, f6 as ki, f7 as Ai, f8 as ca, f9 as gt, fa as Ha, fb as Qa, fc as da, fd as Ws, fe as Ut, ff as Jt, fg as Cn, fh as Ti, fi as Pa, fj as La, fk as Ei, fl as Va, fm as Di, fn as _n, fo as Mi, fp as Ii, fq as Oi, fr as Ri, fs as Fi, ft as za, fu as Pi, fv as Li, fw as Vi, F as zi } from "./index-BdiWSBWd.js";
|
|
3
3
|
import * as Ya from "react";
|
|
4
4
|
import Wa, { useState as $, useEffect as he, useRef as Xe, useCallback as $e, useContext as wn, useMemo as Ce, Suspense as ji } from "react";
|
|
5
|
-
import { d as Sn } from "./editor-action-buttons-
|
|
5
|
+
import { d as Sn } from "./editor-action-buttons-CMKMrnww.js";
|
|
6
6
|
import { createPortal as Bi } from "react-dom";
|
|
7
|
-
import { u as Ki } from "./use-visual-utils-
|
|
7
|
+
import { u as Ki } from "./use-visual-utils-CxVLCLOf.js";
|
|
8
8
|
import { u as $i } from "./use-click-outside-CMeO_QFI.js";
|
|
9
9
|
/**
|
|
10
10
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -69,7 +69,7 @@ const Xs = fe("CircleX", [
|
|
|
69
69
|
* This source code is licensed under the ISC license.
|
|
70
70
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
71
|
*/
|
|
72
|
-
const
|
|
72
|
+
const Ji = fe("Columns3", [
|
|
73
73
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
74
74
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
75
75
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
@@ -80,7 +80,7 @@ const _i = fe("Columns3", [
|
|
|
80
80
|
* This source code is licensed under the ISC license.
|
|
81
81
|
* See the LICENSE file in the root directory of this source tree.
|
|
82
82
|
*/
|
|
83
|
-
const
|
|
83
|
+
const _i = fe("Component", [
|
|
84
84
|
[
|
|
85
85
|
"path",
|
|
86
86
|
{
|
|
@@ -498,7 +498,7 @@ function mo({
|
|
|
498
498
|
var H;
|
|
499
499
|
return V.name === ((H = w.target) == null ? void 0 : H.name);
|
|
500
500
|
}
|
|
501
|
-
),
|
|
501
|
+
), J = {
|
|
502
502
|
id: `key-${Date.now()}`,
|
|
503
503
|
source: {
|
|
504
504
|
id: `source-${Date.now()}`,
|
|
@@ -524,7 +524,7 @@ function mo({
|
|
|
524
524
|
}, U = [...w.joinKeyGroups];
|
|
525
525
|
U[0] = {
|
|
526
526
|
...U[0],
|
|
527
|
-
keys: [
|
|
527
|
+
keys: [J]
|
|
528
528
|
}, w.joinKeyGroups = U, y[y.findIndex((V) => V.id === T)] = w;
|
|
529
529
|
}
|
|
530
530
|
l({
|
|
@@ -694,8 +694,8 @@ FROM ${f.name}`;
|
|
|
694
694
|
const y = w.joinKeyGroups.filter((I) => I.keys && I.keys.length > 0).map((I) => {
|
|
695
695
|
const L = I.keys.filter(
|
|
696
696
|
(A) => {
|
|
697
|
-
var R, S, j,
|
|
698
|
-
return ((R = A.source) == null ? void 0 : R.name) && ((S = A.target) == null ? void 0 : S.name) && ((j = A.source) == null ? void 0 : j.entityName) && ((
|
|
697
|
+
var R, S, j, J;
|
|
698
|
+
return ((R = A.source) == null ? void 0 : R.name) && ((S = A.target) == null ? void 0 : S.name) && ((j = A.source) == null ? void 0 : j.entityName) && ((J = A.target) == null ? void 0 : J.entityName);
|
|
699
699
|
}
|
|
700
700
|
).map(
|
|
701
701
|
(A) => `${A.source.entityName}.${A.source.name} ${A.operator} ${A.target.entityName}.${A.target.name}`
|
|
@@ -864,7 +864,7 @@ function ho({
|
|
|
864
864
|
variant: "ghost",
|
|
865
865
|
size: "sm",
|
|
866
866
|
onClick: () => b(y.id),
|
|
867
|
-
children: L ? /* @__PURE__ */ e(
|
|
867
|
+
children: L ? /* @__PURE__ */ e(_t, { className: "h-4 w-4" }) : /* @__PURE__ */ e(lt, { className: "h-4 w-4" })
|
|
868
868
|
}
|
|
869
869
|
),
|
|
870
870
|
/* @__PURE__ */ e(
|
|
@@ -1120,35 +1120,35 @@ function ho({
|
|
|
1120
1120
|
Q,
|
|
1121
1121
|
{
|
|
1122
1122
|
value: S.source.name,
|
|
1123
|
-
onValueChange: (
|
|
1123
|
+
onValueChange: (J) => T(
|
|
1124
1124
|
y.id,
|
|
1125
1125
|
R,
|
|
1126
1126
|
j,
|
|
1127
1127
|
"sourceColumnName",
|
|
1128
|
-
|
|
1128
|
+
J
|
|
1129
1129
|
),
|
|
1130
1130
|
children: [
|
|
1131
1131
|
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(W, { placeholder: "Source column" }) }),
|
|
1132
1132
|
/* @__PURE__ */ e(X, { children: O(
|
|
1133
1133
|
y.source.name
|
|
1134
|
-
).map((
|
|
1134
|
+
).map((J) => /* @__PURE__ */ e(
|
|
1135
1135
|
K,
|
|
1136
1136
|
{
|
|
1137
1137
|
className: "hover:bg-muted",
|
|
1138
|
-
value:
|
|
1138
|
+
value: J.name,
|
|
1139
1139
|
children: /* @__PURE__ */ a("div", { className: "flex w-full items-center justify-between", children: [
|
|
1140
|
-
/* @__PURE__ */ e("span", { children:
|
|
1140
|
+
/* @__PURE__ */ e("span", { children: J.name }),
|
|
1141
1141
|
/* @__PURE__ */ e(
|
|
1142
1142
|
ve,
|
|
1143
1143
|
{
|
|
1144
1144
|
variant: "outline",
|
|
1145
1145
|
className: "ml-2 text-xs",
|
|
1146
|
-
children:
|
|
1146
|
+
children: J.dataType
|
|
1147
1147
|
}
|
|
1148
1148
|
)
|
|
1149
1149
|
] })
|
|
1150
1150
|
},
|
|
1151
|
-
|
|
1151
|
+
J.name
|
|
1152
1152
|
)) })
|
|
1153
1153
|
]
|
|
1154
1154
|
}
|
|
@@ -1157,12 +1157,12 @@ function ho({
|
|
|
1157
1157
|
Q,
|
|
1158
1158
|
{
|
|
1159
1159
|
value: S.operator,
|
|
1160
|
-
onValueChange: (
|
|
1160
|
+
onValueChange: (J) => T(
|
|
1161
1161
|
y.id,
|
|
1162
1162
|
R,
|
|
1163
1163
|
j,
|
|
1164
1164
|
"operator",
|
|
1165
|
-
|
|
1165
|
+
J
|
|
1166
1166
|
),
|
|
1167
1167
|
children: [
|
|
1168
1168
|
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(W, {}) }),
|
|
@@ -1215,35 +1215,35 @@ function ho({
|
|
|
1215
1215
|
Q,
|
|
1216
1216
|
{
|
|
1217
1217
|
value: S.target.name,
|
|
1218
|
-
onValueChange: (
|
|
1218
|
+
onValueChange: (J) => T(
|
|
1219
1219
|
y.id,
|
|
1220
1220
|
R,
|
|
1221
1221
|
j,
|
|
1222
1222
|
"targetColumnName",
|
|
1223
|
-
|
|
1223
|
+
J
|
|
1224
1224
|
),
|
|
1225
1225
|
children: [
|
|
1226
1226
|
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(W, { placeholder: "Target column" }) }),
|
|
1227
1227
|
/* @__PURE__ */ e(X, { children: O(
|
|
1228
1228
|
y.target.name
|
|
1229
|
-
).map((
|
|
1229
|
+
).map((J) => /* @__PURE__ */ e(
|
|
1230
1230
|
K,
|
|
1231
1231
|
{
|
|
1232
1232
|
className: "hover:bg-muted",
|
|
1233
|
-
value:
|
|
1233
|
+
value: J.name,
|
|
1234
1234
|
children: /* @__PURE__ */ a("div", { className: "flex w-full items-center justify-between hover:bg-muted", children: [
|
|
1235
|
-
/* @__PURE__ */ e("span", { children:
|
|
1235
|
+
/* @__PURE__ */ e("span", { children: J.name }),
|
|
1236
1236
|
/* @__PURE__ */ e(
|
|
1237
1237
|
ve,
|
|
1238
1238
|
{
|
|
1239
1239
|
variant: "outline",
|
|
1240
1240
|
className: "ml-2 text-xs",
|
|
1241
|
-
children:
|
|
1241
|
+
children: J.dataType
|
|
1242
1242
|
}
|
|
1243
1243
|
)
|
|
1244
1244
|
] })
|
|
1245
1245
|
},
|
|
1246
|
-
|
|
1246
|
+
J.name
|
|
1247
1247
|
)) })
|
|
1248
1248
|
]
|
|
1249
1249
|
}
|
|
@@ -1832,7 +1832,7 @@ function al({
|
|
|
1832
1832
|
onClick: (k) => {
|
|
1833
1833
|
k.stopPropagation(), o(!d);
|
|
1834
1834
|
},
|
|
1835
|
-
children: d ? /* @__PURE__ */ e(lt, { className: "h-4 w-4" }) : /* @__PURE__ */ e(
|
|
1835
|
+
children: d ? /* @__PURE__ */ e(lt, { className: "h-4 w-4" }) : /* @__PURE__ */ e(_t, { className: "h-4 w-4" })
|
|
1836
1836
|
}
|
|
1837
1837
|
)
|
|
1838
1838
|
]
|
|
@@ -1941,7 +1941,7 @@ function kn({
|
|
|
1941
1941
|
size: "sm",
|
|
1942
1942
|
className: "h-8",
|
|
1943
1943
|
children: o ? /* @__PURE__ */ a(ne, { children: [
|
|
1944
|
-
/* @__PURE__ */ e(
|
|
1944
|
+
/* @__PURE__ */ e(_t, { className: "mr-1.5 h-3.5 w-3.5" }),
|
|
1945
1945
|
"Hide Details"
|
|
1946
1946
|
] }) : /* @__PURE__ */ a(ne, { children: [
|
|
1947
1947
|
/* @__PURE__ */ e(lt, { className: "mr-1.5 h-3.5 w-3.5" }),
|
|
@@ -2347,7 +2347,7 @@ ${o}` : ""}
|
|
|
2347
2347
|
`;
|
|
2348
2348
|
k(V);
|
|
2349
2349
|
}
|
|
2350
|
-
function
|
|
2350
|
+
function J() {
|
|
2351
2351
|
return /* @__PURE__ */ a(
|
|
2352
2352
|
Nt,
|
|
2353
2353
|
{
|
|
@@ -2550,7 +2550,7 @@ ${o}` : ""}
|
|
|
2550
2550
|
role: "editor-section",
|
|
2551
2551
|
className: "flex grow flex-col justify-end",
|
|
2552
2552
|
children: [
|
|
2553
|
-
/* @__PURE__ */ e("div", { className: "relative flex grow overflow-y-scroll", children:
|
|
2553
|
+
/* @__PURE__ */ e("div", { className: "relative flex grow overflow-y-scroll", children: J() }),
|
|
2554
2554
|
U()
|
|
2555
2555
|
]
|
|
2556
2556
|
}
|
|
@@ -2624,7 +2624,7 @@ function Co({ className: t }) {
|
|
|
2624
2624
|
) });
|
|
2625
2625
|
}
|
|
2626
2626
|
function wo({ type: t, isLinked: n, className: s }) {
|
|
2627
|
-
const l = ke((x) => x.selectedFrameId), i =
|
|
2627
|
+
const l = ke((x) => x.selectedFrameId), i = Jl((x) => x.selectedVisual), c = D((x) => x.frame);
|
|
2628
2628
|
let d;
|
|
2629
2629
|
if (t)
|
|
2630
2630
|
d = t;
|
|
@@ -2690,8 +2690,8 @@ function ll({
|
|
|
2690
2690
|
className: t,
|
|
2691
2691
|
...n
|
|
2692
2692
|
}) {
|
|
2693
|
-
var
|
|
2694
|
-
const s = D((U) => U.card), l = ((
|
|
2693
|
+
var J;
|
|
2694
|
+
const s = D((U) => U.card), l = ((J = s.customCardPreferences) == null ? void 0 : J.showCardHeader) ?? !0, i = D((U) => U.frame), c = ke((U) => U.dashboard.filters), [d, o] = $(!1), { currentUser: r } = _l(), { tokenProps: u } = wn(nn), m = D((U) => U.actions.setRunSql), { updateFilter: h } = As(), x = c == null ? void 0 : c.find((U) => U.id === i.filterId), { data: v, isLoading: p, isFetching: b, errorMessage: N, errorSql: k, pagination: E } = Oe(s), z = Ce(() => (v == null ? void 0 : v.records) || [], [v == null ? void 0 : v.records]), { setCard: F, updateCardInFrame: M, setIsDevMode: T, setCardSql: f } = se(), { data: g } = sn(s), w = Ce(() => {
|
|
2695
2695
|
var U;
|
|
2696
2696
|
return s.type !== "pivotTable" || !((U = v == null ? void 0 : v.records) != null && U.length) ? null : {
|
|
2697
2697
|
records: v.records,
|
|
@@ -3270,7 +3270,7 @@ function Mo({
|
|
|
3270
3270
|
{ type: "bar", name: "Bar Chart", icon: Sa },
|
|
3271
3271
|
{ type: "line", name: "Line Chart", icon: wa },
|
|
3272
3272
|
{ type: "stackedBar", name: "Stacked Bar", icon: hn },
|
|
3273
|
-
{ type: "stackedLine", name: "Stacked Line", icon:
|
|
3273
|
+
{ type: "stackedLine", name: "Stacked Line", icon: Ja },
|
|
3274
3274
|
{ type: "scatter", name: "Scatter", icon: fn },
|
|
3275
3275
|
{ type: "bubble", name: "Bubble", icon: Os },
|
|
3276
3276
|
{ type: "pie", name: "Pie Chart", icon: gn },
|
|
@@ -3297,7 +3297,7 @@ function Mo({
|
|
|
3297
3297
|
onClick: () => u(x.type),
|
|
3298
3298
|
className: "flex flex-col items-center gap-2 rounded-lg border border-border bg-background p-3 transition-all hover:border-primary/50 hover:bg-muted/50 hover:shadow-sm",
|
|
3299
3299
|
children: [
|
|
3300
|
-
/* @__PURE__ */ e(v, { className: Z("h-6 w-6", n), strokeWidth: x.icon ===
|
|
3300
|
+
/* @__PURE__ */ e(v, { className: Z("h-6 w-6", n), strokeWidth: x.icon === Ja ? 0 : void 0 }),
|
|
3301
3301
|
/* @__PURE__ */ e("span", { className: "text-xs font-medium text-foreground", children: x.name })
|
|
3302
3302
|
]
|
|
3303
3303
|
},
|
|
@@ -3330,7 +3330,7 @@ function Io({
|
|
|
3330
3330
|
case "stackedBar":
|
|
3331
3331
|
return /* @__PURE__ */ e(hn, { className: n });
|
|
3332
3332
|
case "stackedLine":
|
|
3333
|
-
return /* @__PURE__ */ e(
|
|
3333
|
+
return /* @__PURE__ */ e(Ja, { className: n });
|
|
3334
3334
|
case "polarArea":
|
|
3335
3335
|
return /* @__PURE__ */ e(Is, { className: n });
|
|
3336
3336
|
case "treemap":
|
|
@@ -3652,7 +3652,7 @@ function cl() {
|
|
|
3652
3652
|
"map"
|
|
3653
3653
|
].includes(t.type) && /* @__PURE__ */ a(Ee, { tooltip: "Grid Style", onClick: i, children: [
|
|
3654
3654
|
(s === "xy" || !s) && /* @__PURE__ */ e(xa, { className: "size-4" }),
|
|
3655
|
-
s === "x" && /* @__PURE__ */ e(
|
|
3655
|
+
s === "x" && /* @__PURE__ */ e(Ji, { className: "size-4" }),
|
|
3656
3656
|
s === "y" && /* @__PURE__ */ e(ro, { className: "size-4" }),
|
|
3657
3657
|
s === "none" && /* @__PURE__ */ e(oo, { className: "size-4" })
|
|
3658
3658
|
] }),
|
|
@@ -3881,7 +3881,7 @@ function Wn({
|
|
|
3881
3881
|
r(A), s.sql && ((S = (R = s.preferences) == null ? void 0 : R.tablePrefs) != null && S.enableDevModePagination) && o(!0);
|
|
3882
3882
|
}
|
|
3883
3883
|
function g(C) {
|
|
3884
|
-
var R, S, j,
|
|
3884
|
+
var R, S, j, J;
|
|
3885
3885
|
const I = rn(
|
|
3886
3886
|
C,
|
|
3887
3887
|
(R = s.config) == null ? void 0 : R.metricColumns,
|
|
@@ -3898,7 +3898,7 @@ function Wn({
|
|
|
3898
3898
|
...n,
|
|
3899
3899
|
cards: n.cards.map((U) => U.id === s.id ? L : U)
|
|
3900
3900
|
};
|
|
3901
|
-
r(A), s.sql && ((
|
|
3901
|
+
r(A), s.sql && ((J = (j = s.preferences) == null ? void 0 : j.tablePrefs) != null && J.enableDevModePagination) && o(!0);
|
|
3902
3902
|
}
|
|
3903
3903
|
function w() {
|
|
3904
3904
|
const C = JSON.stringify(p == null ? void 0 : p.records, null, 2), I = new Blob([C], { type: "application/json" }), L = URL.createObjectURL(I), A = document.createElement("a");
|
|
@@ -4262,7 +4262,7 @@ function zo() {
|
|
|
4262
4262
|
((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && /* @__PURE__ */ e(ne, { children: o && /* @__PURE__ */ e(
|
|
4263
4263
|
Qe,
|
|
4264
4264
|
{
|
|
4265
|
-
icon: /* @__PURE__ */ e(
|
|
4265
|
+
icon: /* @__PURE__ */ e(_i, { className: "h-3.5 w-3.5" }),
|
|
4266
4266
|
className: "h-9 w-full",
|
|
4267
4267
|
label: "Select Component",
|
|
4268
4268
|
options: (o == null ? void 0 : o.filter((k) => k.type === c).map((k) => ({
|
|
@@ -4918,7 +4918,7 @@ const Go = {
|
|
|
4918
4918
|
}
|
|
4919
4919
|
]
|
|
4920
4920
|
};
|
|
4921
|
-
function
|
|
4921
|
+
function Jo() {
|
|
4922
4922
|
const t = D((n) => n.card.type);
|
|
4923
4923
|
return /* @__PURE__ */ a("div", { className: "space-y-6 p-6", children: [
|
|
4924
4924
|
/* @__PURE__ */ e(
|
|
@@ -4927,7 +4927,7 @@ function _o() {
|
|
|
4927
4927
|
className: " ",
|
|
4928
4928
|
type: "single",
|
|
4929
4929
|
collapsible: !0,
|
|
4930
|
-
children:
|
|
4930
|
+
children: _o(t)
|
|
4931
4931
|
}
|
|
4932
4932
|
),
|
|
4933
4933
|
!["kpi"].includes(t) && /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
@@ -4937,7 +4937,7 @@ function _o() {
|
|
|
4937
4937
|
] })
|
|
4938
4938
|
] });
|
|
4939
4939
|
}
|
|
4940
|
-
function
|
|
4940
|
+
function _o(t) {
|
|
4941
4941
|
if (["line", "bar"].includes(t))
|
|
4942
4942
|
return /* @__PURE__ */ a(ne, { children: [
|
|
4943
4943
|
/* @__PURE__ */ a(de, { value: "item-1", children: [
|
|
@@ -5327,7 +5327,7 @@ function $a({
|
|
|
5327
5327
|
children: [
|
|
5328
5328
|
/* @__PURE__ */ a("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
|
|
5329
5329
|
/* @__PURE__ */ e(P, { children: n }),
|
|
5330
|
-
/* @__PURE__ */ e(
|
|
5330
|
+
/* @__PURE__ */ e(_t, { className: "h-4 w-4" })
|
|
5331
5331
|
] }),
|
|
5332
5332
|
/* @__PURE__ */ e("div", { className: "transition-all ease-in-out", children: t })
|
|
5333
5333
|
]
|
|
@@ -6048,7 +6048,7 @@ function fl() {
|
|
|
6048
6048
|
}), { setCardPreferences: s, updateCardInFrame: l } = se(), { data: i } = Oe(t), [c, d] = $({}), [o, r] = $(
|
|
6049
6049
|
null
|
|
6050
6050
|
), [u, m] = $(null), h = Ce(() => {
|
|
6051
|
-
var R, S, j,
|
|
6051
|
+
var R, S, j, J, U, V, H;
|
|
6052
6052
|
if (!(i != null && i.records) || i.records.length === 0) return [];
|
|
6053
6053
|
const I = (t == null ? void 0 : t.type) === "stackedBar" || (t == null ? void 0 : t.type) === "stackedLine", L = (t == null ? void 0 : t.type) === "bar" || (t == null ? void 0 : t.type) === "line" || (t == null ? void 0 : t.type) === "horizontalBar" || (t == null ? void 0 : t.type) === "bullet", A = ((R = t == null ? void 0 : t.config) == null ? void 0 : R.pivotByColumns) && t.config.pivotByColumns.length > 0;
|
|
6054
6054
|
if ((I || L) && A) {
|
|
@@ -6074,7 +6074,7 @@ function fl() {
|
|
|
6074
6074
|
);
|
|
6075
6075
|
}
|
|
6076
6076
|
}
|
|
6077
|
-
if ((L || I) && !A && ((U = (
|
|
6077
|
+
if ((L || I) && !A && ((U = (J = t == null ? void 0 : t.config) == null ? void 0 : J.metricColumns) != null && U.length))
|
|
6078
6078
|
return t.config.metricColumns.map(
|
|
6079
6079
|
(ee) => ee.alias || ee.label || ee.name
|
|
6080
6080
|
);
|
|
@@ -6130,11 +6130,11 @@ function fl() {
|
|
|
6130
6130
|
}
|
|
6131
6131
|
};
|
|
6132
6132
|
s(j);
|
|
6133
|
-
const
|
|
6133
|
+
const J = {
|
|
6134
6134
|
...t,
|
|
6135
6135
|
preferences: j
|
|
6136
6136
|
};
|
|
6137
|
-
l(
|
|
6137
|
+
l(J), d((V) => ({
|
|
6138
6138
|
...V,
|
|
6139
6139
|
[I]: A
|
|
6140
6140
|
}));
|
|
@@ -6889,7 +6889,7 @@ function xl() {
|
|
|
6889
6889
|
] });
|
|
6890
6890
|
}
|
|
6891
6891
|
function vl() {
|
|
6892
|
-
var A, R, S, j,
|
|
6892
|
+
var A, R, S, j, J, U, V, H, ee, re, ge;
|
|
6893
6893
|
const t = D((B) => B.card), n = D(
|
|
6894
6894
|
(B) => {
|
|
6895
6895
|
var ce, oe;
|
|
@@ -6901,7 +6901,7 @@ function vl() {
|
|
|
6901
6901
|
}), { setCardPreferences: l, updateCardInFrame: i } = se();
|
|
6902
6902
|
if (!t || !Fr(t.type))
|
|
6903
6903
|
return null;
|
|
6904
|
-
const c = t.type === "bullet" ? ((A = s == null ? void 0 : s.bulletConfig) == null ? void 0 : A.orientation) ?? (((R = s == null ? void 0 : s.chartOptions) == null ? void 0 : R.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, d = c != null ? c === "horizontal" : ((S = s == null ? void 0 : s.chartOptions) == null ? void 0 : S.indexAxis) === "y", o = t.type === "stackedBar" || t.type === "stackedLine", r = t.type === "pie" || t.type === "doughnut" || t.type === "polarArea" || t.type === "funnel", u = !r, m = t.type === "bubble" || t.type === "scatter", h = (
|
|
6904
|
+
const c = t.type === "bullet" ? ((A = s == null ? void 0 : s.bulletConfig) == null ? void 0 : A.orientation) ?? (((R = s == null ? void 0 : s.chartOptions) == null ? void 0 : R.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, d = c != null ? c === "horizontal" : ((S = s == null ? void 0 : s.chartOptions) == null ? void 0 : S.indexAxis) === "y", o = t.type === "stackedBar" || t.type === "stackedLine", r = t.type === "pie" || t.type === "doughnut" || t.type === "polarArea" || t.type === "funnel", u = !r, m = t.type === "bubble" || t.type === "scatter", h = (J = (j = s == null ? void 0 : s.chartOptions) == null ? void 0 : j.plugins) == null ? void 0 : J.datalabels, x = (h == null ? void 0 : h.display) !== !1 && ((h == null ? void 0 : h.anchor) || (h == null ? void 0 : h.align)), v = Pr(
|
|
6905
6905
|
t.type,
|
|
6906
6906
|
t.preferences
|
|
6907
6907
|
), p = n ?? v, b = (v == null ? void 0 : v.enabled) ?? x ?? !1, N = (n == null ? void 0 : n.enabled) !== void 0 ? n.enabled : b, k = (B, ce) => {
|
|
@@ -7291,12 +7291,12 @@ function bl() {
|
|
|
7291
7291
|
!c.targetMetricKey && S && (A.targetMetricKey = S, R = !0);
|
|
7292
7292
|
const j = (ee = N[2]) == null ? void 0 : ee.value;
|
|
7293
7293
|
!c.comparativeMetricKey && !c.disableAutoComparative && j && (A.comparativeMetricKey = j, R = !0);
|
|
7294
|
-
const
|
|
7294
|
+
const J = N.slice(3), U = {
|
|
7295
7295
|
...c.rangeKeys || {}
|
|
7296
7296
|
};
|
|
7297
7297
|
let V = !1;
|
|
7298
7298
|
if (ts.forEach((re, ge) => {
|
|
7299
|
-
!U[re] &&
|
|
7299
|
+
!U[re] && J[ge] && (U[re] = J[ge].value, V = !0);
|
|
7300
7300
|
}), V && (A.rangeKeys = U, R = !0, c.showRanges === void 0 && (A.showRanges = !0)), R) {
|
|
7301
7301
|
const re = as({
|
|
7302
7302
|
...c,
|
|
@@ -7526,7 +7526,7 @@ function bl() {
|
|
|
7526
7526
|
] })
|
|
7527
7527
|
] }),
|
|
7528
7528
|
r && /* @__PURE__ */ e("div", { className: "space-y-3", children: ts.map((A) => {
|
|
7529
|
-
var R, S, j,
|
|
7529
|
+
var R, S, j, J, U;
|
|
7530
7530
|
return /* @__PURE__ */ a(
|
|
7531
7531
|
"div",
|
|
7532
7532
|
{
|
|
@@ -7598,7 +7598,7 @@ function bl() {
|
|
|
7598
7598
|
{
|
|
7599
7599
|
type: "number",
|
|
7600
7600
|
placeholder: m ? "0.80" : "Static value",
|
|
7601
|
-
value: ((
|
|
7601
|
+
value: ((J = c.ranges) == null ? void 0 : J[A]) === void 0 ? "" : String((U = c.ranges) == null ? void 0 : U[A]),
|
|
7602
7602
|
onCommit: (V) => z(A, V),
|
|
7603
7603
|
className: "h-8 text-xs"
|
|
7604
7604
|
}
|
|
@@ -7840,14 +7840,14 @@ function Nl() {
|
|
|
7840
7840
|
[t == null ? void 0 : t.bubbleScatterConfig]
|
|
7841
7841
|
), m = fa(n == null ? void 0 : n.config) && !l, h = Ce(() => {
|
|
7842
7842
|
var S, j;
|
|
7843
|
-
return ((j = (S = n == null ? void 0 : n.config) == null ? void 0 : S.metricColumns) == null ? void 0 : j.map((
|
|
7844
|
-
const U =
|
|
7843
|
+
return ((j = (S = n == null ? void 0 : n.config) == null ? void 0 : S.metricColumns) == null ? void 0 : j.map((J) => {
|
|
7844
|
+
const U = J.label || J.name || J.alias || "";
|
|
7845
7845
|
return { value: U, label: U };
|
|
7846
7846
|
})) || [];
|
|
7847
7847
|
}, [(M = n == null ? void 0 : n.config) == null ? void 0 : M.metricColumns]), x = Ce(() => {
|
|
7848
7848
|
var S, j;
|
|
7849
|
-
return ((j = (S = n == null ? void 0 : n.config) == null ? void 0 : S.groupByColumns) == null ? void 0 : j.map((
|
|
7850
|
-
const U =
|
|
7849
|
+
return ((j = (S = n == null ? void 0 : n.config) == null ? void 0 : S.groupByColumns) == null ? void 0 : j.map((J) => {
|
|
7850
|
+
const U = J.label || J.name || J.alias || "";
|
|
7851
7851
|
return { value: U, label: U };
|
|
7852
7852
|
})) || [];
|
|
7853
7853
|
}, [(T = n == null ? void 0 : n.config) == null ? void 0 : T.groupByColumns]), v = Ce(() => r.enableGrouping !== void 0 ? r.enableGrouping : !l && x.length >= 2, [r.enableGrouping, l, x.length]), [p, b] = $(v);
|
|
@@ -7874,11 +7874,11 @@ function Nl() {
|
|
|
7874
7874
|
const S = {};
|
|
7875
7875
|
let j = !1;
|
|
7876
7876
|
if (!r.xMetricKey && h[0] && (S.xMetricKey = h[0].value, j = !0), !r.yMetricKey && h[1] && (S.yMetricKey = h[1].value, j = !0), d && !r.radiusMetricKey && h[2] && (S.radiusMetricKey = h[2].value, j = !0), !r.labelKey && x[0] && (S.labelKey = x[0].value, j = !0), v && !r.groupKey && x[1] && (S.groupKey = x[1].value, S.enableGrouping = !0, j = !0), j) {
|
|
7877
|
-
const
|
|
7877
|
+
const J = ss({
|
|
7878
7878
|
...r,
|
|
7879
7879
|
...S
|
|
7880
7880
|
});
|
|
7881
|
-
N(
|
|
7881
|
+
N(J);
|
|
7882
7882
|
}
|
|
7883
7883
|
}, [
|
|
7884
7884
|
h,
|
|
@@ -8137,7 +8137,7 @@ function Nl() {
|
|
|
8137
8137
|
checked: ((O = (w = t == null ? void 0 : t.xAxisConfig) == null ? void 0 : w.name) == null ? void 0 : O.enabled) ?? !1,
|
|
8138
8138
|
onCheckedChange: (S) => {
|
|
8139
8139
|
var U, V, H, ee;
|
|
8140
|
-
const j = r.xMetricKey || "X Axis",
|
|
8140
|
+
const j = r.xMetricKey || "X Axis", J = r.yMetricKey || "Y Axis";
|
|
8141
8141
|
k({
|
|
8142
8142
|
...t ?? {},
|
|
8143
8143
|
xAxisConfig: {
|
|
@@ -8151,7 +8151,7 @@ function Nl() {
|
|
|
8151
8151
|
...t == null ? void 0 : t.yAxisConfig,
|
|
8152
8152
|
name: {
|
|
8153
8153
|
enabled: S,
|
|
8154
|
-
text: ((ee = (H = t == null ? void 0 : t.yAxisConfig) == null ? void 0 : H.name) == null ? void 0 : ee.text) ||
|
|
8154
|
+
text: ((ee = (H = t == null ? void 0 : t.yAxisConfig) == null ? void 0 : H.name) == null ? void 0 : ee.text) || J
|
|
8155
8155
|
}
|
|
8156
8156
|
}
|
|
8157
8157
|
});
|
|
@@ -8343,7 +8343,7 @@ function xc() {
|
|
|
8343
8343
|
case "custom":
|
|
8344
8344
|
return /* @__PURE__ */ e(zo, {});
|
|
8345
8345
|
default:
|
|
8346
|
-
return i(/* @__PURE__ */ e(
|
|
8346
|
+
return i(/* @__PURE__ */ e(Jo, {}));
|
|
8347
8347
|
}
|
|
8348
8348
|
}
|
|
8349
8349
|
return /* @__PURE__ */ a(Ht, { className: "h-full w-full text-sm", children: [
|
|
@@ -8431,7 +8431,7 @@ function bc(t) {
|
|
|
8431
8431
|
data: O
|
|
8432
8432
|
} = Oe(E), { setTriggerAIRun: y, setCurrentAssitantScope: C, setCardConfig: I } = se(), { selectedDatamodelName: L, connectionType: A, selectedDatamodelId: R } = $s(), S = (At = Vr().data) == null ? void 0 : At.assistantProfileId, {
|
|
8433
8433
|
messages: j,
|
|
8434
|
-
setMessages:
|
|
8434
|
+
setMessages: J,
|
|
8435
8435
|
regenerate: U,
|
|
8436
8436
|
error: V,
|
|
8437
8437
|
sendMessage: H,
|
|
@@ -8487,9 +8487,9 @@ function bc(t) {
|
|
|
8487
8487
|
}), y(!1));
|
|
8488
8488
|
}, [k, N, H, y]);
|
|
8489
8489
|
async function ce({ toolCall: G }) {
|
|
8490
|
-
var pe, Ve, Ue, Tt,
|
|
8490
|
+
var pe, Ve, Ue, Tt, Je, ct, _e, dt, Et, et, Dt, Mt, It, Ot, ut, mt;
|
|
8491
8491
|
if (["createChartFromSql", "createForecast"].includes(G.toolName)) {
|
|
8492
|
-
const ae = ((pe = G.input) == null ? void 0 : pe.sql) ?? ((Ve = G.args) == null ? void 0 : Ve.sql), Ne = ((Ue = G.input) == null ? void 0 : Ue.python) ?? ((Tt = G.args) == null ? void 0 : Tt.python), Se = ((
|
|
8492
|
+
const ae = ((pe = G.input) == null ? void 0 : pe.sql) ?? ((Ve = G.args) == null ? void 0 : Ve.sql), Ne = ((Ue = G.input) == null ? void 0 : Ue.python) ?? ((Tt = G.args) == null ? void 0 : Tt.python), Se = ((Je = G.input) == null ? void 0 : Je.chartType) ?? ((ct = G.args) == null ? void 0 : ct.chartType);
|
|
8493
8493
|
v(Se), h(ae), m(Ne), x(!0), re({
|
|
8494
8494
|
tool: G.toolName,
|
|
8495
8495
|
toolCallId: G.toolCallId,
|
|
@@ -8521,7 +8521,7 @@ function bc(t) {
|
|
|
8521
8521
|
});
|
|
8522
8522
|
} else if (G.toolName === "generateQueryConfig") {
|
|
8523
8523
|
s("Generating query config...");
|
|
8524
|
-
const ae = ((
|
|
8524
|
+
const ae = ((_e = G.input) == null ? void 0 : _e.chartType) ?? ((dt = G.args) == null ? void 0 : dt.chartType), Ne = ((Et = G.input) == null ? void 0 : Et.queryConfig) ?? ((et = G.args) == null ? void 0 : et.queryConfig);
|
|
8525
8525
|
((Dt = G.input) == null ? void 0 : Dt.cardConfig) ?? ((Mt = G.args) == null || Mt.cardConfig), v(ae), I(Ne), h(void 0), m(void 0);
|
|
8526
8526
|
const Se = await w();
|
|
8527
8527
|
if ((It = Se == null ? void 0 : Se.data) != null && It.error) {
|
|
@@ -8567,7 +8567,7 @@ function bc(t) {
|
|
|
8567
8567
|
}
|
|
8568
8568
|
function xe(G) {
|
|
8569
8569
|
const pe = Gr(G);
|
|
8570
|
-
C(pe),
|
|
8570
|
+
C(pe), J((Ve) => [
|
|
8571
8571
|
...Ve,
|
|
8572
8572
|
{
|
|
8573
8573
|
id: crypto.randomUUID(),
|
|
@@ -8622,7 +8622,7 @@ function bc(t) {
|
|
|
8622
8622
|
const we = !["ready", "error"].includes(ee), Ze = Kr(V);
|
|
8623
8623
|
return {
|
|
8624
8624
|
messages: j,
|
|
8625
|
-
setMessages:
|
|
8625
|
+
setMessages: J,
|
|
8626
8626
|
sendMessage: H,
|
|
8627
8627
|
regenerate: U,
|
|
8628
8628
|
isLoading: we,
|
|
@@ -8655,7 +8655,7 @@ function ls({
|
|
|
8655
8655
|
onFullscreenChange: n,
|
|
8656
8656
|
fullscreenContainer: s
|
|
8657
8657
|
}) {
|
|
8658
|
-
const l = Xe(null), [i, c] = $(!1), [d, o] = $(Gs), [r, u] = $(!1), [m, h] = $(!1), [x, v] = $(!1), p = t ?? x, b = Ur(), { setCurrentAIContext: N } = Us(), { clearQueue: k } =
|
|
8658
|
+
const l = Xe(null), [i, c] = $(!1), [d, o] = $(Gs), [r, u] = $(!1), [m, h] = $(!1), [x, v] = $(!1), p = t ?? x, b = Ur(), { setCurrentAIContext: N } = Us(), { clearQueue: k } = Jr(), { clearFileAttachments: E } = _r(), z = Hr("editor"), F = ke((ae) => ae.dashboard.aiContext), M = D((ae) => ae.card.dataSource), T = D((ae) => ae.actions.setCardSql), f = D((ae) => ae.actions.setRunSql), g = D((ae) => ae.showAIDialog), w = ke(
|
|
8659
8659
|
(ae) => ae.handleOpenAssistantProfile
|
|
8660
8660
|
), { setShowAIDialog: O, setCardPython: y } = se(), { setDataSource: C } = se(), { assistantProfile: I } = Qr(), {
|
|
8661
8661
|
messages: L,
|
|
@@ -8663,7 +8663,7 @@ function ls({
|
|
|
8663
8663
|
sendMessage: R,
|
|
8664
8664
|
isLoading: S,
|
|
8665
8665
|
stop: j,
|
|
8666
|
-
status:
|
|
8666
|
+
status: J,
|
|
8667
8667
|
llmUsage: U,
|
|
8668
8668
|
errorMessage: V,
|
|
8669
8669
|
clearError: H
|
|
@@ -8718,11 +8718,11 @@ function ls({
|
|
|
8718
8718
|
}));
|
|
8719
8719
|
}, [g, M, N]), Xr({
|
|
8720
8720
|
assistantType: "editor",
|
|
8721
|
-
status:
|
|
8721
|
+
status: J,
|
|
8722
8722
|
isLoading: S,
|
|
8723
8723
|
sendMessage: R
|
|
8724
8724
|
});
|
|
8725
|
-
const { hasActiveTools: Tt } = Zr(L),
|
|
8725
|
+
const { hasActiveTools: Tt } = Zr(L), Je = $e(
|
|
8726
8726
|
(ae) => {
|
|
8727
8727
|
n == null || n(ae), t === void 0 && v(ae);
|
|
8728
8728
|
},
|
|
@@ -8731,12 +8731,12 @@ function ls({
|
|
|
8731
8731
|
he(() => {
|
|
8732
8732
|
if (!p) return;
|
|
8733
8733
|
function ae(Ne) {
|
|
8734
|
-
Ne.key === "Escape" &&
|
|
8734
|
+
Ne.key === "Escape" && Je(!1);
|
|
8735
8735
|
}
|
|
8736
8736
|
return window.addEventListener("keydown", ae), () => {
|
|
8737
8737
|
window.removeEventListener("keydown", ae);
|
|
8738
8738
|
};
|
|
8739
|
-
}, [p,
|
|
8739
|
+
}, [p, Je]);
|
|
8740
8740
|
const ct = $e(
|
|
8741
8741
|
(ae) => {
|
|
8742
8742
|
R({
|
|
@@ -8745,7 +8745,7 @@ function ls({
|
|
|
8745
8745
|
}), pe({ force: !0 });
|
|
8746
8746
|
},
|
|
8747
8747
|
[R, pe]
|
|
8748
|
-
),
|
|
8748
|
+
), _e = $e(async () => {
|
|
8749
8749
|
const ae = JSON.stringify(L ?? [], null, 2);
|
|
8750
8750
|
try {
|
|
8751
8751
|
if (typeof navigator > "u" || !navigator.clipboard)
|
|
@@ -8755,8 +8755,8 @@ function ls({
|
|
|
8755
8755
|
console.error("Failed to copy conversation", Ne), nt.error("Unable to copy conversation");
|
|
8756
8756
|
}
|
|
8757
8757
|
}, [L]), dt = $e(() => {
|
|
8758
|
-
|
|
8759
|
-
}, [p,
|
|
8758
|
+
Je(!p);
|
|
8759
|
+
}, [p, Je]);
|
|
8760
8760
|
function Et(ae, Ne) {
|
|
8761
8761
|
Ne === "sql" ? (T(ae), f(!0)) : Ne === "python" && (y(ae), f(!0));
|
|
8762
8762
|
}
|
|
@@ -8859,7 +8859,7 @@ function ls({
|
|
|
8859
8859
|
variant: "ghost",
|
|
8860
8860
|
size: "sm",
|
|
8861
8861
|
className: "ml-2 h-7 px-2 text-muted-foreground hover:text-foreground",
|
|
8862
|
-
onClick:
|
|
8862
|
+
onClick: _e,
|
|
8863
8863
|
children: "Copy Conversation"
|
|
8864
8864
|
}
|
|
8865
8865
|
),
|
|
@@ -8880,7 +8880,7 @@ function ls({
|
|
|
8880
8880
|
onClick: () => {
|
|
8881
8881
|
A([]), k("editor"), H(), te();
|
|
8882
8882
|
},
|
|
8883
|
-
children: /* @__PURE__ */ e(
|
|
8883
|
+
children: /* @__PURE__ */ e(Js, { className: "size-4" })
|
|
8884
8884
|
}
|
|
8885
8885
|
),
|
|
8886
8886
|
/* @__PURE__ */ e(
|
|
@@ -8935,7 +8935,7 @@ function ls({
|
|
|
8935
8935
|
disableQuickReplies: S
|
|
8936
8936
|
}
|
|
8937
8937
|
),
|
|
8938
|
-
!Tt && /* @__PURE__ */ e(si, { status:
|
|
8938
|
+
!Tt && /* @__PURE__ */ e(si, { status: J, errorMessage: V })
|
|
8939
8939
|
] })
|
|
8940
8940
|
}
|
|
8941
8941
|
),
|
|
@@ -8985,7 +8985,7 @@ function ls({
|
|
|
8985
8985
|
et(), B(ae), pe({ force: !0 });
|
|
8986
8986
|
},
|
|
8987
8987
|
isLoading: S,
|
|
8988
|
-
status:
|
|
8988
|
+
status: J,
|
|
8989
8989
|
assistantType: "editor",
|
|
8990
8990
|
onFocus: () => {
|
|
8991
8991
|
}
|
|
@@ -9008,7 +9008,7 @@ function ls({
|
|
|
9008
9008
|
incomingSelectedEntities: (M == null ? void 0 : M.selectedEntities) || [],
|
|
9009
9009
|
open: m,
|
|
9010
9010
|
onOpenChange: h,
|
|
9011
|
-
dataSource: M ||
|
|
9011
|
+
dataSource: M || _s,
|
|
9012
9012
|
dialogMode: "aiContext"
|
|
9013
9013
|
}
|
|
9014
9014
|
)
|
|
@@ -9357,7 +9357,7 @@ function Ac({
|
|
|
9357
9357
|
onClick: l,
|
|
9358
9358
|
className: "h-8 w-8 p-0",
|
|
9359
9359
|
"aria-label": s ? "Hide all charts" : "Show all charts",
|
|
9360
|
-
children: s ? /* @__PURE__ */ e(
|
|
9360
|
+
children: s ? /* @__PURE__ */ e(_t, { className: "h-4 w-4" }) : /* @__PURE__ */ e(lt, { className: "h-4 w-4" })
|
|
9361
9361
|
}
|
|
9362
9362
|
) }),
|
|
9363
9363
|
/* @__PURE__ */ a(
|
|
@@ -10306,7 +10306,7 @@ function Pc({
|
|
|
10306
10306
|
transform: m,
|
|
10307
10307
|
transition: h,
|
|
10308
10308
|
isDragging: x
|
|
10309
|
-
} = yn({ id: t.id }), v = D((
|
|
10309
|
+
} = yn({ id: t.id }), v = D((_) => _.card), {
|
|
10310
10310
|
updateLabel: p,
|
|
10311
10311
|
handleAggregationChange: b,
|
|
10312
10312
|
handleDateFormatChange: N,
|
|
@@ -10319,7 +10319,7 @@ function Pc({
|
|
|
10319
10319
|
handleKpiTrendlineWindowChange: f,
|
|
10320
10320
|
handleKpiTrendlineGranularityChange: g,
|
|
10321
10321
|
handleKpiTargetValueChange: w
|
|
10322
|
-
} = Qs(v), [O, y] = $(!1), [C, I] = $(!1), [L, A] = $(!1), [R, S] = $(null), [j,
|
|
10322
|
+
} = Qs(v), [O, y] = $(!1), [C, I] = $(!1), [L, A] = $(!1), [R, S] = $(null), [j, J] = $(
|
|
10323
10323
|
t.dateFormat || "YYYY-MM-DD"
|
|
10324
10324
|
), [U, V] = $(t.customFormat || ""), [H, ee] = $(!!t.customFormat), [re, ge] = $(
|
|
10325
10325
|
t.granularity || "day"
|
|
@@ -10327,29 +10327,29 @@ function Pc({
|
|
|
10327
10327
|
t.aliasTemplate || ""
|
|
10328
10328
|
), [oe, xe] = $(
|
|
10329
10329
|
t.valueAliases || {}
|
|
10330
|
-
), [le, te] = $((Mn = t.parameters) == null ? void 0 : Mn.filters), we = (
|
|
10331
|
-
|
|
10332
|
-
}, Ze = (
|
|
10333
|
-
V(
|
|
10334
|
-
}, At = (
|
|
10330
|
+
), [le, te] = $((Mn = t.parameters) == null ? void 0 : Mn.filters), we = (_) => {
|
|
10331
|
+
_ === "custom" ? ee(!0) : (ee(!1), J(_), n === "groupBy" && N(s, _, ""));
|
|
10332
|
+
}, Ze = (_) => {
|
|
10333
|
+
V(_), n === "groupBy" && N(s, "custom", _);
|
|
10334
|
+
}, At = (_) => {
|
|
10335
10335
|
var Re;
|
|
10336
|
-
ge(
|
|
10337
|
-
const ie = (Re =
|
|
10338
|
-
ie && !H && (
|
|
10339
|
-
}, G = (
|
|
10340
|
-
ce(
|
|
10341
|
-
}, pe = (
|
|
10342
|
-
xe(
|
|
10343
|
-
}, Ve = (
|
|
10344
|
-
p(n, s,
|
|
10345
|
-
}, Ue = (
|
|
10336
|
+
ge(_);
|
|
10337
|
+
const ie = (Re = Jn(_)[0]) == null ? void 0 : Re.value;
|
|
10338
|
+
ie && !H && (J(ie), n === "groupBy" && N(s, ie, "")), n === "groupBy" && k(s, _);
|
|
10339
|
+
}, G = (_) => {
|
|
10340
|
+
ce(_), n === "metrics" && E(s, _);
|
|
10341
|
+
}, pe = (_) => {
|
|
10342
|
+
xe(_), n === "metrics" && z(s, _);
|
|
10343
|
+
}, Ve = (_) => {
|
|
10344
|
+
p(n, s, _);
|
|
10345
|
+
}, Ue = (_) => {
|
|
10346
10346
|
var be;
|
|
10347
|
-
if (te(
|
|
10347
|
+
if (te(_), n === "metrics") {
|
|
10348
10348
|
const ie = {
|
|
10349
10349
|
...t,
|
|
10350
10350
|
parameters: {
|
|
10351
10351
|
...t.parameters,
|
|
10352
|
-
filters:
|
|
10352
|
+
filters: _
|
|
10353
10353
|
}
|
|
10354
10354
|
}, Re = [...((be = v.config) == null ? void 0 : be.metricColumns) || []];
|
|
10355
10355
|
Re[s] = ie, D.getState().actions.updateCardConfig(v.id, {
|
|
@@ -10359,11 +10359,11 @@ function Pc({
|
|
|
10359
10359
|
I(!1);
|
|
10360
10360
|
}, Tt = () => {
|
|
10361
10361
|
F(n, s);
|
|
10362
|
-
},
|
|
10362
|
+
}, Je = {
|
|
10363
10363
|
transform: Nn.Transform.toString(m),
|
|
10364
10364
|
transition: h
|
|
10365
|
-
}, ct = Ke(t.dataType),
|
|
10366
|
-
const
|
|
10365
|
+
}, ct = Ke(t.dataType), _e = ct === "date", dt = d === "kpi", Et = Jn(re), et = n !== "pivotBy", Dt = _e && n === "groupBy" && (!dt || ((In = v.config) == null ? void 0 : In.comparisonType) === "start_vs_end"), Mt = !dt && _e && n === "groupBy", It = d && vi.includes(d) && _e && n === "groupBy", Ot = d === "kpi" && _e && n === "groupBy", ut = d && d !== "pivotTable" && n === "metrics" && ((On = v.config) == null ? void 0 : On.comparisonType) === "target", mt = n === "metrics", ae = () => {
|
|
10366
|
+
const _ = t, be = n === "metrics" && oa(_);
|
|
10367
10367
|
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
10368
10368
|
!be && /* @__PURE__ */ e(
|
|
10369
10369
|
"div",
|
|
@@ -10376,17 +10376,17 @@ function Pc({
|
|
|
10376
10376
|
children: `${t.entityName}.${t.name}`
|
|
10377
10377
|
}
|
|
10378
10378
|
),
|
|
10379
|
-
be &&
|
|
10379
|
+
be && _.calculatedFormula && /* @__PURE__ */ a(
|
|
10380
10380
|
"div",
|
|
10381
10381
|
{
|
|
10382
|
-
title: os(
|
|
10382
|
+
title: os(_.calculatedFormula),
|
|
10383
10383
|
onPointerDown: (ie) => {
|
|
10384
10384
|
ie.stopPropagation();
|
|
10385
10385
|
},
|
|
10386
10386
|
className: "max-w-[270px] cursor-default overflow-hidden text-ellipsis whitespace-nowrap rounded bg-muted/50 px-1.5 py-0.5 font-mono text-xs text-primary",
|
|
10387
10387
|
children: [
|
|
10388
10388
|
"= ",
|
|
10389
|
-
os(
|
|
10389
|
+
os(_.calculatedFormula)
|
|
10390
10390
|
]
|
|
10391
10391
|
}
|
|
10392
10392
|
)
|
|
@@ -10411,7 +10411,7 @@ function Pc({
|
|
|
10411
10411
|
onValueChange: At,
|
|
10412
10412
|
children: [
|
|
10413
10413
|
/* @__PURE__ */ e(Y, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(W, { placeholder: "Select granularity..." }) }),
|
|
10414
|
-
/* @__PURE__ */ e(X, { children: ["day", "week", "month", "quarter", "year"].map((
|
|
10414
|
+
/* @__PURE__ */ e(X, { children: ["day", "week", "month", "quarter", "year"].map((_) => /* @__PURE__ */ e(K, { className: "text-xs", value: _, children: xi(_) }, _)) })
|
|
10415
10415
|
]
|
|
10416
10416
|
}
|
|
10417
10417
|
)
|
|
@@ -10426,14 +10426,14 @@ function Pc({
|
|
|
10426
10426
|
onValueChange: we,
|
|
10427
10427
|
children: [
|
|
10428
10428
|
/* @__PURE__ */ e(Y, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(W, { placeholder: "Select date format..." }) }),
|
|
10429
|
-
/* @__PURE__ */ e(X, { children: Et.map((
|
|
10429
|
+
/* @__PURE__ */ e(X, { children: Et.map((_) => /* @__PURE__ */ e(
|
|
10430
10430
|
K,
|
|
10431
10431
|
{
|
|
10432
10432
|
className: "text-xs",
|
|
10433
|
-
value:
|
|
10434
|
-
children:
|
|
10433
|
+
value: _.value,
|
|
10434
|
+
children: _.label
|
|
10435
10435
|
},
|
|
10436
|
-
|
|
10436
|
+
_.value
|
|
10437
10437
|
)) })
|
|
10438
10438
|
]
|
|
10439
10439
|
}
|
|
@@ -10444,10 +10444,10 @@ function Pc({
|
|
|
10444
10444
|
{
|
|
10445
10445
|
placeholder: "Enter custom format (e.g., YYYY-MM-DD HH:mm)",
|
|
10446
10446
|
value: U,
|
|
10447
|
-
onChange: (
|
|
10448
|
-
|
|
10447
|
+
onChange: (_) => {
|
|
10448
|
+
_.stopPropagation(), Ze(_.target.value);
|
|
10449
10449
|
},
|
|
10450
|
-
onClick: (
|
|
10450
|
+
onClick: (_) => _.stopPropagation(),
|
|
10451
10451
|
className: "h-8 text-xs"
|
|
10452
10452
|
}
|
|
10453
10453
|
),
|
|
@@ -10456,9 +10456,9 @@ function Pc({
|
|
|
10456
10456
|
] })
|
|
10457
10457
|
] }) : null, Sl = () => {
|
|
10458
10458
|
var ie, Re, pt, zt, tt;
|
|
10459
|
-
const
|
|
10460
|
-
return !
|
|
10461
|
-
|
|
10459
|
+
const _ = It, be = Ot;
|
|
10460
|
+
return !_ && !be ? null : /* @__PURE__ */ a(ne, { children: [
|
|
10461
|
+
_ && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
10462
10462
|
/* @__PURE__ */ e(P, { className: "text-xs font-medium text-muted-foreground", children: "Comparison Type" }),
|
|
10463
10463
|
/* @__PURE__ */ a(
|
|
10464
10464
|
Q,
|
|
@@ -10529,13 +10529,13 @@ function Pc({
|
|
|
10529
10529
|
] })
|
|
10530
10530
|
] });
|
|
10531
10531
|
}, kl = () => {
|
|
10532
|
-
var
|
|
10532
|
+
var _, be;
|
|
10533
10533
|
return ut ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
10534
10534
|
/* @__PURE__ */ e(P, { className: "text-xs font-medium text-muted-foreground", children: "Target Value" }),
|
|
10535
10535
|
/* @__PURE__ */ e(
|
|
10536
10536
|
Ye,
|
|
10537
10537
|
{
|
|
10538
|
-
value: ((
|
|
10538
|
+
value: ((_ = v.config) == null ? void 0 : _.targetValue) !== void 0 && ((be = v.config) == null ? void 0 : be.targetValue) !== null ? String(v.config.targetValue) : "",
|
|
10539
10539
|
onSave: (ie) => {
|
|
10540
10540
|
!isNaN(Number(ie)) && ie !== null ? w(Number(ie)) : w(0);
|
|
10541
10541
|
},
|
|
@@ -10703,7 +10703,7 @@ function Pc({
|
|
|
10703
10703
|
"div",
|
|
10704
10704
|
{
|
|
10705
10705
|
ref: u,
|
|
10706
|
-
style:
|
|
10706
|
+
style: Je,
|
|
10707
10707
|
...o,
|
|
10708
10708
|
...r,
|
|
10709
10709
|
className: `group mx-auto flex w-full flex-col gap-2 rounded border border-border bg-background p-2 transition-all hover:shadow-sm dark:border-gray-800 ${x ? "z-50 scale-95 opacity-50" : "border-slate-200"} ${n === "filters" ? "cursor-default" : "cursor-move"}`,
|
|
@@ -10725,12 +10725,12 @@ function Pc({
|
|
|
10725
10725
|
/* @__PURE__ */ e(Ga, { className: "h-3 w-3" }),
|
|
10726
10726
|
/* @__PURE__ */ e("span", { children: le.conditions.length })
|
|
10727
10727
|
] }) }),
|
|
10728
|
-
/* @__PURE__ */ e(Ie, { side: "top", children: /* @__PURE__ */ e("div", { className: "text-xs", children: le.conditions.map((
|
|
10729
|
-
|
|
10728
|
+
/* @__PURE__ */ e(Ie, { side: "top", children: /* @__PURE__ */ e("div", { className: "text-xs", children: le.conditions.map((_) => /* @__PURE__ */ a("div", { children: [
|
|
10729
|
+
_.field.label,
|
|
10730
10730
|
":",
|
|
10731
10731
|
" ",
|
|
10732
|
-
Array.isArray(
|
|
10733
|
-
] },
|
|
10732
|
+
Array.isArray(_.value) ? `${_.value.length} values` : String(_.value)
|
|
10733
|
+
] }, _.id)) }) })
|
|
10734
10734
|
] }) }),
|
|
10735
10735
|
n !== "sortBy" && /* @__PURE__ */ e(
|
|
10736
10736
|
q,
|
|
@@ -10738,8 +10738,8 @@ function Pc({
|
|
|
10738
10738
|
variant: "ghost",
|
|
10739
10739
|
size: "sm",
|
|
10740
10740
|
className: "h-6 w-6 p-0",
|
|
10741
|
-
onClick: (
|
|
10742
|
-
|
|
10741
|
+
onClick: (_) => {
|
|
10742
|
+
_.stopPropagation(), y(!O);
|
|
10743
10743
|
},
|
|
10744
10744
|
children: /* @__PURE__ */ e(
|
|
10745
10745
|
lt,
|
|
@@ -10755,8 +10755,8 @@ function Pc({
|
|
|
10755
10755
|
variant: "ghost",
|
|
10756
10756
|
size: "sm",
|
|
10757
10757
|
className: "h-6 w-6 p-0",
|
|
10758
|
-
onClick: (
|
|
10759
|
-
|
|
10758
|
+
onClick: (_) => {
|
|
10759
|
+
_.stopPropagation(), console.log(
|
|
10760
10760
|
"DraggableField - Current sortDirection:",
|
|
10761
10761
|
l
|
|
10762
10762
|
);
|
|
@@ -10775,8 +10775,8 @@ function Pc({
|
|
|
10775
10775
|
variant: "ghost",
|
|
10776
10776
|
size: "sm",
|
|
10777
10777
|
className: "h-6 w-6 p-0",
|
|
10778
|
-
onClick: (
|
|
10779
|
-
|
|
10778
|
+
onClick: (_) => {
|
|
10779
|
+
_.stopPropagation(), Tt();
|
|
10780
10780
|
},
|
|
10781
10781
|
children: /* @__PURE__ */ e(Me, { className: "h-2.5 w-2.5" })
|
|
10782
10782
|
}
|
|
@@ -10798,16 +10798,16 @@ function Pc({
|
|
|
10798
10798
|
Rc,
|
|
10799
10799
|
{
|
|
10800
10800
|
open: C,
|
|
10801
|
-
onOpenChange: (
|
|
10802
|
-
I(
|
|
10801
|
+
onOpenChange: (_) => {
|
|
10802
|
+
I(_), _ || S(null);
|
|
10803
10803
|
},
|
|
10804
10804
|
availableFields: Tl,
|
|
10805
10805
|
existingFilters: le,
|
|
10806
10806
|
editingCondition: R,
|
|
10807
|
-
onSave: (
|
|
10807
|
+
onSave: (_) => {
|
|
10808
10808
|
var be;
|
|
10809
|
-
if (
|
|
10810
|
-
Ue(
|
|
10809
|
+
if (_)
|
|
10810
|
+
Ue(_);
|
|
10811
10811
|
else if (te(void 0), n === "metrics") {
|
|
10812
10812
|
const ie = {
|
|
10813
10813
|
...t,
|
|
@@ -10831,10 +10831,10 @@ function Pc({
|
|
|
10831
10831
|
onOpenChange: A,
|
|
10832
10832
|
availableMetrics: ((Fn = v.config) == null ? void 0 : Fn.metricColumns) || [],
|
|
10833
10833
|
existingField: t,
|
|
10834
|
-
onSave: (
|
|
10834
|
+
onSave: (_) => {
|
|
10835
10835
|
var ie;
|
|
10836
10836
|
const be = [...((ie = v.config) == null ? void 0 : ie.metricColumns) || []];
|
|
10837
|
-
be[s] =
|
|
10837
|
+
be[s] = _, D.getState().actions.updateCardConfig(v.id, {
|
|
10838
10838
|
metricColumns: be
|
|
10839
10839
|
});
|
|
10840
10840
|
},
|
|
@@ -11717,7 +11717,7 @@ function Kc({ onEditJoins: t }) {
|
|
|
11717
11717
|
size: "sm",
|
|
11718
11718
|
onClick: t,
|
|
11719
11719
|
className: "h-7 gap-1 p-2 text-xs text-blue-700 hover:text-blue-900 dark:text-blue-300 dark:hover:text-blue-100",
|
|
11720
|
-
children: /* @__PURE__ */ e(
|
|
11720
|
+
children: /* @__PURE__ */ e(Js, { className: "size-3.5" })
|
|
11721
11721
|
}
|
|
11722
11722
|
)
|
|
11723
11723
|
] }) });
|
|
@@ -12016,7 +12016,7 @@ function qc({
|
|
|
12016
12016
|
}, k = (M, T, f) => {
|
|
12017
12017
|
const g = (w) => w.id === M ? {
|
|
12018
12018
|
...w,
|
|
12019
|
-
conditions:
|
|
12019
|
+
conditions: _a(w.conditions, T, f)
|
|
12020
12020
|
} : {
|
|
12021
12021
|
...w,
|
|
12022
12022
|
groups: w.groups.map(g)
|
|
@@ -12025,7 +12025,7 @@ function qc({
|
|
|
12025
12025
|
}, E = (M, T, f) => {
|
|
12026
12026
|
const g = (w) => w.id === M ? {
|
|
12027
12027
|
...w,
|
|
12028
|
-
groups:
|
|
12028
|
+
groups: _a(w.groups, T, f)
|
|
12029
12029
|
} : {
|
|
12030
12030
|
...w,
|
|
12031
12031
|
groups: w.groups.map(g)
|
|
@@ -12127,7 +12127,7 @@ const Uc = (t) => {
|
|
|
12127
12127
|
}
|
|
12128
12128
|
return "default";
|
|
12129
12129
|
};
|
|
12130
|
-
function
|
|
12130
|
+
function Jc({
|
|
12131
12131
|
value: t,
|
|
12132
12132
|
onValueChange: n,
|
|
12133
12133
|
availableFields: s,
|
|
@@ -12268,7 +12268,7 @@ function Dn(t) {
|
|
|
12268
12268
|
})
|
|
12269
12269
|
), isPending: x, error: v };
|
|
12270
12270
|
}
|
|
12271
|
-
function
|
|
12271
|
+
function _c({
|
|
12272
12272
|
field: t,
|
|
12273
12273
|
selected: n,
|
|
12274
12274
|
onChange: s,
|
|
@@ -12567,7 +12567,7 @@ function wl({
|
|
|
12567
12567
|
),
|
|
12568
12568
|
n === 0 && /* @__PURE__ */ e("div", { className: "w-24" }),
|
|
12569
12569
|
/* @__PURE__ */ e(
|
|
12570
|
-
|
|
12570
|
+
Jc,
|
|
12571
12571
|
{
|
|
12572
12572
|
value: t.field,
|
|
12573
12573
|
onValueChange: (E) => {
|
|
@@ -12612,7 +12612,7 @@ function wl({
|
|
|
12612
12612
|
/* @__PURE__ */ e(pa, { className: "mr-2 size-3.5 animate-spin" }),
|
|
12613
12613
|
" Loading values..."
|
|
12614
12614
|
] }) : N ? /* @__PURE__ */ e("div", { className: "flex-1 p-2 text-xs text-red-500", children: "Error loading values" }) : /* @__PURE__ */ e(
|
|
12615
|
-
|
|
12615
|
+
_c,
|
|
12616
12616
|
{
|
|
12617
12617
|
field: t.field,
|
|
12618
12618
|
selected: Array.isArray(t.value) && t.value.every((E) => typeof E == "string") ? t.value : [],
|
|
@@ -12805,7 +12805,7 @@ function nd({
|
|
|
12805
12805
|
coordinateGetter: Ha
|
|
12806
12806
|
})
|
|
12807
12807
|
),
|
|
12808
|
-
collisionDetection:
|
|
12808
|
+
collisionDetection: Jt,
|
|
12809
12809
|
onDragEnd: f,
|
|
12810
12810
|
children: /* @__PURE__ */ e(
|
|
12811
12811
|
qt,
|
|
@@ -12841,7 +12841,7 @@ function nd({
|
|
|
12841
12841
|
coordinateGetter: Ha
|
|
12842
12842
|
})
|
|
12843
12843
|
),
|
|
12844
|
-
collisionDetection:
|
|
12844
|
+
collisionDetection: Jt,
|
|
12845
12845
|
onDragEnd: g,
|
|
12846
12846
|
children: /* @__PURE__ */ e(
|
|
12847
12847
|
qt,
|
|
@@ -12938,14 +12938,14 @@ function sd({
|
|
|
12938
12938
|
Ut,
|
|
12939
12939
|
{
|
|
12940
12940
|
sensors: M,
|
|
12941
|
-
collisionDetection:
|
|
12941
|
+
collisionDetection: Jt,
|
|
12942
12942
|
onDragEnd: (L) => {
|
|
12943
12943
|
const { active: A, over: R } = L;
|
|
12944
12944
|
if (R && A.id !== R.id) {
|
|
12945
12945
|
const S = y.conditions.findIndex(
|
|
12946
|
-
(
|
|
12946
|
+
(J) => J.id === A.id
|
|
12947
12947
|
), j = y.conditions.findIndex(
|
|
12948
|
-
(
|
|
12948
|
+
(J) => J.id === R.id
|
|
12949
12949
|
);
|
|
12950
12950
|
S !== -1 && j !== -1 && N(y.id, S, j);
|
|
12951
12951
|
}
|
|
@@ -12979,14 +12979,14 @@ function sd({
|
|
|
12979
12979
|
Ut,
|
|
12980
12980
|
{
|
|
12981
12981
|
sensors: M,
|
|
12982
|
-
collisionDetection:
|
|
12982
|
+
collisionDetection: Jt,
|
|
12983
12983
|
onDragEnd: (L) => {
|
|
12984
12984
|
const { active: A, over: R } = L;
|
|
12985
12985
|
if (R && A.id !== R.id) {
|
|
12986
12986
|
const S = y.groups.findIndex(
|
|
12987
|
-
(
|
|
12987
|
+
(J) => J.id === A.id
|
|
12988
12988
|
), j = y.groups.findIndex(
|
|
12989
|
-
(
|
|
12989
|
+
(J) => J.id === R.id
|
|
12990
12990
|
);
|
|
12991
12991
|
S !== -1 && j !== -1 && k(y.id, S, j);
|
|
12992
12992
|
}
|
|
@@ -13289,7 +13289,7 @@ function rd({
|
|
|
13289
13289
|
g,
|
|
13290
13290
|
C
|
|
13291
13291
|
), A = [...C, L];
|
|
13292
|
-
c(null), l(g, A), g === "metrics" && t &&
|
|
13292
|
+
c(null), l(g, A), g === "metrics" && t && _n(
|
|
13293
13293
|
d.type,
|
|
13294
13294
|
d.config,
|
|
13295
13295
|
o,
|
|
@@ -13330,7 +13330,7 @@ function rd({
|
|
|
13330
13330
|
const A = O.filter(
|
|
13331
13331
|
(S) => S.id !== M
|
|
13332
13332
|
), R = [...y, L];
|
|
13333
|
-
l(f, A), l(g, R), g === "metrics" && t &&
|
|
13333
|
+
l(f, A), l(g, R), g === "metrics" && t && _n(
|
|
13334
13334
|
d.type,
|
|
13335
13335
|
d.config,
|
|
13336
13336
|
o,
|
|
@@ -13343,7 +13343,7 @@ function rd({
|
|
|
13343
13343
|
if (f && g && f === g && f !== "source") {
|
|
13344
13344
|
const O = s(f), y = O.findIndex((I) => I.id === M), C = O.findIndex((I) => I.id === T);
|
|
13345
13345
|
if (y !== C) {
|
|
13346
|
-
const I =
|
|
13346
|
+
const I = _a(O, y, C);
|
|
13347
13347
|
l(f, I);
|
|
13348
13348
|
}
|
|
13349
13349
|
}
|
|
@@ -13600,7 +13600,7 @@ function pd({
|
|
|
13600
13600
|
errorSql: R,
|
|
13601
13601
|
pagination: S,
|
|
13602
13602
|
refetch: j,
|
|
13603
|
-
comparisonMetadata:
|
|
13603
|
+
comparisonMetadata: J
|
|
13604
13604
|
} = Oe(c), U = Ce(() => (C == null ? void 0 : C.records) || [], [C == null ? void 0 : C.records]), [V, H] = $(!1);
|
|
13605
13605
|
he(() => {
|
|
13606
13606
|
A || H(!1);
|
|
@@ -13700,10 +13700,10 @@ function pd({
|
|
|
13700
13700
|
onFiltersClick: i
|
|
13701
13701
|
}
|
|
13702
13702
|
),
|
|
13703
|
-
|
|
13703
|
+
J && /* @__PURE__ */ e(
|
|
13704
13704
|
Oi,
|
|
13705
13705
|
{
|
|
13706
|
-
metadata:
|
|
13706
|
+
metadata: J,
|
|
13707
13707
|
variant: "compact"
|
|
13708
13708
|
}
|
|
13709
13709
|
),
|
|
@@ -13902,7 +13902,7 @@ const gd = () => {
|
|
|
13902
13902
|
};
|
|
13903
13903
|
};
|
|
13904
13904
|
function xd() {
|
|
13905
|
-
var
|
|
13905
|
+
var J, U;
|
|
13906
13906
|
const [t, n] = $(
|
|
13907
13907
|
"chart"
|
|
13908
13908
|
), [s, l] = $(!1), [i, c] = $(!1), [d, o] = $(!0), r = D((V) => V.showAIDialog), u = ke((V) => V.isVisualEditing), { setCardType: m } = se(), h = D((V) => V.card.type);
|
|
@@ -13947,12 +13947,12 @@ function xd() {
|
|
|
13947
13947
|
return V.groups.forEach((ee) => {
|
|
13948
13948
|
H += S(ee);
|
|
13949
13949
|
}), H;
|
|
13950
|
-
}, j = S(((
|
|
13950
|
+
}, j = S(((J = g == null ? void 0 : g.config) == null ? void 0 : J.filters) || null);
|
|
13951
13951
|
return /* @__PURE__ */ a(
|
|
13952
13952
|
Ut,
|
|
13953
13953
|
{
|
|
13954
13954
|
sensors: f,
|
|
13955
|
-
collisionDetection:
|
|
13955
|
+
collisionDetection: Jt,
|
|
13956
13956
|
onDragStart: C,
|
|
13957
13957
|
onDragEnd: I,
|
|
13958
13958
|
children: [
|
|
@@ -13988,7 +13988,7 @@ function xd() {
|
|
|
13988
13988
|
onFiltersClick: () => c(!0),
|
|
13989
13989
|
filterCount: j,
|
|
13990
13990
|
activeCard: g,
|
|
13991
|
-
dataSourceState: p.dataSource ||
|
|
13991
|
+
dataSourceState: p.dataSource || _s,
|
|
13992
13992
|
columns: F,
|
|
13993
13993
|
columnsLoading: M,
|
|
13994
13994
|
columnsError: T,
|