react-semaphor 0.0.213 → 0.0.215
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-3lAlCfBG.js → dashboard-plus-6cxhQU7b.js} +163 -163
- package/dist/chunks/{dashboard-plus-Azf5X9Lv.js → dashboard-plus-8ek7Ti6E.js} +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
|
@@ -405,9 +405,9 @@ const yn = L("User", [
|
|
|
405
405
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
406
406
|
]);
|
|
407
407
|
function vn() {
|
|
408
|
-
const [s, n] = T(""), [a, t] = T(!1), [l, h] = T(!1),
|
|
408
|
+
const [s, n] = T(""), [a, t] = T(!1), [l, h] = T(!1), c = w((o) => o.dashboard);
|
|
409
409
|
function r() {
|
|
410
|
-
const o = ea(
|
|
410
|
+
const o = ea(c), f = Le(c.id), m = JSON.parse(localStorage.getItem(f) || "[]");
|
|
411
411
|
if (m.some(
|
|
412
412
|
(S) => S.name === s
|
|
413
413
|
)) {
|
|
@@ -466,28 +466,28 @@ function vn() {
|
|
|
466
466
|
] });
|
|
467
467
|
}
|
|
468
468
|
function Nn() {
|
|
469
|
-
const [s, n] = T(!1), [a, t] = T(""), l = w((
|
|
470
|
-
(
|
|
469
|
+
const [s, n] = T(!1), [a, t] = T(""), l = w((d) => d.dashboard), h = w((d) => d.bookmarkKey), [c, r] = T([]), o = w((d) => d.actions.setDashboard), f = w(
|
|
470
|
+
(d) => d.actions.setFilterValues
|
|
471
471
|
), m = w(
|
|
472
|
-
(
|
|
472
|
+
(d) => d.actions.setBookmarkKey
|
|
473
473
|
);
|
|
474
474
|
G(() => {
|
|
475
|
-
const
|
|
475
|
+
const d = Le(l.id), x = JSON.parse(localStorage.getItem(d) || "[]");
|
|
476
476
|
r(x);
|
|
477
477
|
const j = x.find(
|
|
478
478
|
(z) => z.default
|
|
479
479
|
);
|
|
480
480
|
j && j.name === h && t(j.name);
|
|
481
481
|
}, [s, l, h]);
|
|
482
|
-
function u(
|
|
483
|
-
if (
|
|
482
|
+
function u(d) {
|
|
483
|
+
if (d === a)
|
|
484
484
|
return;
|
|
485
|
-
const x =
|
|
486
|
-
j && (o(j), f(x.filterValues || []), m(
|
|
485
|
+
const x = c.find((z) => z.name === d), j = x == null ? void 0 : x.template;
|
|
486
|
+
j && (o(j), f(x.filterValues || []), m(d === "Original" ? "" : d)), t(d);
|
|
487
487
|
}
|
|
488
|
-
function S(
|
|
488
|
+
function S(d) {
|
|
489
489
|
const x = Le(l.id), z = JSON.parse(localStorage.getItem(x) || "[]").filter(
|
|
490
|
-
(C) => C.name !==
|
|
490
|
+
(C) => C.name !== d
|
|
491
491
|
);
|
|
492
492
|
localStorage.setItem(x, JSON.stringify(z)), r(z);
|
|
493
493
|
}
|
|
@@ -503,19 +503,19 @@ function Nn() {
|
|
|
503
503
|
onValueChange: u,
|
|
504
504
|
children: [
|
|
505
505
|
/* @__PURE__ */ e.jsx(Rs, { value: "Original", children: "Original" }),
|
|
506
|
-
|
|
506
|
+
c.filter((d) => d.name != "Original").map((d, x) => /* @__PURE__ */ e.jsxs(
|
|
507
507
|
Rs,
|
|
508
508
|
{
|
|
509
509
|
className: "xbg-red-100 flex justify-between",
|
|
510
|
-
value:
|
|
511
|
-
defaultChecked:
|
|
510
|
+
value: d.name,
|
|
511
|
+
defaultChecked: d.name === h,
|
|
512
512
|
children: [
|
|
513
|
-
/* @__PURE__ */ e.jsx("p", { children:
|
|
513
|
+
/* @__PURE__ */ e.jsx("p", { children: d.name }),
|
|
514
514
|
/* @__PURE__ */ e.jsx(
|
|
515
515
|
_e,
|
|
516
516
|
{
|
|
517
517
|
onClick: (j) => {
|
|
518
|
-
j.preventDefault(), S(
|
|
518
|
+
j.preventDefault(), S(d.name);
|
|
519
519
|
},
|
|
520
520
|
className: "h-3 w-3 hover:cursor-pointer",
|
|
521
521
|
strokeWidth: 1.5
|
|
@@ -548,10 +548,10 @@ function Cn() {
|
|
|
548
548
|
function l(h) {
|
|
549
549
|
if (n(h), !t)
|
|
550
550
|
return;
|
|
551
|
-
const
|
|
552
|
-
localStorage.getItem(
|
|
551
|
+
const c = Le(a.id), o = JSON.parse(
|
|
552
|
+
localStorage.getItem(c) || "[]"
|
|
553
553
|
).map((f) => (f.name === t ? f.default = h : f.default = !1, f));
|
|
554
|
-
console.log(o), localStorage.setItem(
|
|
554
|
+
console.log(o), localStorage.setItem(c, JSON.stringify(o));
|
|
555
555
|
}
|
|
556
556
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
557
557
|
/* @__PURE__ */ e.jsx(
|
|
@@ -581,12 +581,12 @@ function Sn() {
|
|
|
581
581
|
w(
|
|
582
582
|
(C) => C.showDashboardJSON
|
|
583
583
|
);
|
|
584
|
-
const
|
|
584
|
+
const c = w((C) => C.onSaveFunction), r = w(
|
|
585
585
|
(C) => C.actions.setShowFilters
|
|
586
586
|
), { addFrame: o, setSelectedFrameId: f } = w(
|
|
587
587
|
(C) => C.actions
|
|
588
|
-
), { getSelectedSheet: m, setIsDashboardEditing: u, setShowDashboardJSON: S } = w((C) => C.actions),
|
|
589
|
-
if (!a || !
|
|
588
|
+
), { getSelectedSheet: m, setIsDashboardEditing: u, setShowDashboardJSON: S } = w((C) => C.actions), d = m(), x = () => {
|
|
589
|
+
if (!a || !d)
|
|
590
590
|
return;
|
|
591
591
|
const C = {
|
|
592
592
|
id: es(),
|
|
@@ -608,7 +608,7 @@ function Sn() {
|
|
|
608
608
|
cards: [C],
|
|
609
609
|
activeCardId: C.id
|
|
610
610
|
};
|
|
611
|
-
o(
|
|
611
|
+
o(d.id, E), f(E.id);
|
|
612
612
|
}, j = () => {
|
|
613
613
|
u(!0);
|
|
614
614
|
};
|
|
@@ -627,7 +627,7 @@ function Sn() {
|
|
|
627
627
|
name: s,
|
|
628
628
|
template: C,
|
|
629
629
|
filterValues: t
|
|
630
|
-
}), localStorage.setItem(E, JSON.stringify(v)),
|
|
630
|
+
}), localStorage.setItem(E, JSON.stringify(v)), c == null || c(C);
|
|
631
631
|
}
|
|
632
632
|
return l ? null : /* @__PURE__ */ e.jsxs(
|
|
633
633
|
"div",
|
|
@@ -716,7 +716,7 @@ function Xe({
|
|
|
716
716
|
isLoading: t,
|
|
717
717
|
isError: l,
|
|
718
718
|
connectionTooltip: h,
|
|
719
|
-
onChange:
|
|
719
|
+
onChange: c,
|
|
720
720
|
showNone: r = !1,
|
|
721
721
|
className: o,
|
|
722
722
|
showIcon: f = !0,
|
|
@@ -740,7 +740,7 @@ function Xe({
|
|
|
740
740
|
/* @__PURE__ */ e.jsx(sa, { children: S() }),
|
|
741
741
|
/* @__PURE__ */ e.jsx(zs, { className: "text-xs", align: "start", children: h })
|
|
742
742
|
] }) : S() }),
|
|
743
|
-
/* @__PURE__ */ e.jsxs(Fe, { disabled: m, value: u, onValueChange:
|
|
743
|
+
/* @__PURE__ */ e.jsxs(Fe, { disabled: m, value: u, onValueChange: c, children: [
|
|
744
744
|
/* @__PURE__ */ e.jsx(
|
|
745
745
|
Oe,
|
|
746
746
|
{
|
|
@@ -760,7 +760,7 @@ function Xe({
|
|
|
760
760
|
t ? /* @__PURE__ */ e.jsx(Ae, { children: "Loading..." }) : /* @__PURE__ */ e.jsx(Ae, { children: s }),
|
|
761
761
|
/* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
762
762
|
r && /* @__PURE__ */ e.jsx(W, { value: "none", children: "None" }, "none"),
|
|
763
|
-
n && n.map((
|
|
763
|
+
n && n.map((d, x) => /* @__PURE__ */ e.jsx(W, { value: d.id, children: d.name }, x))
|
|
764
764
|
] }),
|
|
765
765
|
(t || l) && /* @__PURE__ */ e.jsx(W, { value: u, children: u })
|
|
766
766
|
] }) })
|
|
@@ -770,16 +770,16 @@ function Xe({
|
|
|
770
770
|
function kn({ column: s }) {
|
|
771
771
|
const [n, a] = T(!1), t = i((m) => m.selectedTableName), l = i(
|
|
772
772
|
(m) => m.selectedSchemaName
|
|
773
|
-
), h = i((m) => m.sqlGen),
|
|
773
|
+
), h = i((m) => m.sqlGen), c = i((m) => m.actions.setSqlGen), r = i((m) => m.actions.setCardSql), o = i((m) => m.actions.setRunSql);
|
|
774
774
|
function f(m, u) {
|
|
775
775
|
const S = aa(m, h, u);
|
|
776
|
-
|
|
777
|
-
const
|
|
776
|
+
c(S);
|
|
777
|
+
const d = ta(
|
|
778
778
|
S,
|
|
779
779
|
me(l || ""),
|
|
780
780
|
me(t)
|
|
781
781
|
);
|
|
782
|
-
|
|
782
|
+
d && (r(d), o(!0)), a(!1);
|
|
783
783
|
}
|
|
784
784
|
return /* @__PURE__ */ e.jsxs(Ke, { open: n, onOpenChange: a, children: [
|
|
785
785
|
/* @__PURE__ */ e.jsx(Ue, { asChild: !0, children: /* @__PURE__ */ e.jsx(Ka, { className: "h-4 w-4 cursor-pointer text-foreground/40" }) }),
|
|
@@ -854,13 +854,13 @@ function wn({
|
|
|
854
854
|
}) {
|
|
855
855
|
const l = i((N) => N.sqlGen), h = i(
|
|
856
856
|
(N) => N.selectedConnectionId
|
|
857
|
-
),
|
|
857
|
+
), c = i(
|
|
858
858
|
(N) => N.selectedDatabaseName
|
|
859
859
|
), r = i(
|
|
860
860
|
(N) => N.selectedSchemaName
|
|
861
861
|
), o = i((N) => N.selectedTableName), f = w(
|
|
862
862
|
(N) => N.dashboard.aiScopeTables
|
|
863
|
-
), { setAIScopeTables: m } = w((N) => N.actions), u = i((N) => N.actions.setRunSql), S = i((N) => N.actions.setSqlGen),
|
|
863
|
+
), { setAIScopeTables: m } = w((N) => N.actions), u = i((N) => N.actions.setRunSql), S = i((N) => N.actions.setSqlGen), d = i(
|
|
864
864
|
(N) => N.actions.setIsShowingVisual
|
|
865
865
|
), x = i((N) => N.actions.setCardSql), { connectionType: j } = ya();
|
|
866
866
|
function z(N) {
|
|
@@ -879,7 +879,7 @@ function wn({
|
|
|
879
879
|
const F = {
|
|
880
880
|
connectinonId: h,
|
|
881
881
|
connectionType: j,
|
|
882
|
-
databaseName:
|
|
882
|
+
databaseName: c,
|
|
883
883
|
schemaName: r,
|
|
884
884
|
tableName: o
|
|
885
885
|
}, q = [...f || [], F].filter(
|
|
@@ -905,13 +905,13 @@ function wn({
|
|
|
905
905
|
}
|
|
906
906
|
function v() {
|
|
907
907
|
let F = fs(s, n);
|
|
908
|
-
((M) => M.charAt(0) === M.charAt(0).toUpperCase())(n) && (F = `"${n}"`),
|
|
908
|
+
((M) => M.charAt(0) === M.charAt(0).toUpperCase())(n) && (F = `"${n}"`), d(!1);
|
|
909
909
|
const q = j === "MSSQL" ? `SELECT top 10 * FROM ${F}` : `SELECT * FROM ${F} LIMIT 10`;
|
|
910
910
|
x(q), u(!0);
|
|
911
911
|
}
|
|
912
912
|
function D() {
|
|
913
913
|
let F = fs(s, n);
|
|
914
|
-
((q) => q.charAt(0) === q.charAt(0).toUpperCase())(n) && (F = `"${n}"`),
|
|
914
|
+
((q) => q.charAt(0) === q.charAt(0).toUpperCase())(n) && (F = `"${n}"`), d(!1), x(`SELECT COUNT(*) as count FROM ${F}`), u(!0);
|
|
915
915
|
}
|
|
916
916
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex grow flex-col space-y-4 px-4", children: [
|
|
917
917
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-center gap-1", children: [
|
|
@@ -1009,7 +1009,7 @@ function ya(s, n) {
|
|
|
1009
1009
|
(g) => g.selectedConnectionId
|
|
1010
1010
|
), h = i(
|
|
1011
1011
|
(g) => g.selectedDatamodelId
|
|
1012
|
-
),
|
|
1012
|
+
), c = i(
|
|
1013
1013
|
(g) => g.selectedDatabaseName
|
|
1014
1014
|
), r = i(
|
|
1015
1015
|
(g) => g.selectedSchemaName
|
|
@@ -1021,16 +1021,16 @@ function ya(s, n) {
|
|
|
1021
1021
|
(g) => g.actions.setSelectedDatamodelId
|
|
1022
1022
|
), S = i(
|
|
1023
1023
|
(g) => g.actions.setSelectedDatabaseName
|
|
1024
|
-
),
|
|
1024
|
+
), d = i(
|
|
1025
1025
|
(g) => g.actions.setSelectedSchemaName
|
|
1026
1026
|
), x = i(
|
|
1027
1027
|
(g) => g.actions.setSelectedTableName
|
|
1028
1028
|
), j = i((g) => g.actions.setCardSql);
|
|
1029
1029
|
function z(g) {
|
|
1030
|
-
return l &&
|
|
1030
|
+
return l && c && r && c !== "NA" ? !0 : l && g === "API" ? !1 : !!(l && g === "S3");
|
|
1031
1031
|
}
|
|
1032
1032
|
function C(g) {
|
|
1033
|
-
return !!(l &&
|
|
1033
|
+
return !!(l && c && c !== "NA" && r && o || l && (g === "S3" || g === "API") || h && h);
|
|
1034
1034
|
}
|
|
1035
1035
|
function E(g) {
|
|
1036
1036
|
return l && g ? !(g === "API" || g === "S3") : !1;
|
|
@@ -1088,16 +1088,16 @@ function ya(s, n) {
|
|
|
1088
1088
|
isError: y,
|
|
1089
1089
|
refetch: O
|
|
1090
1090
|
} = ge({
|
|
1091
|
-
queryKey: ["schemas", l,
|
|
1091
|
+
queryKey: ["schemas", l, c],
|
|
1092
1092
|
queryFn: () => ye(
|
|
1093
1093
|
"https://semaphor.cloud/api/v1/schemas",
|
|
1094
1094
|
(t == null ? void 0 : t.accessToken) || "",
|
|
1095
1095
|
{
|
|
1096
1096
|
connection_id: l,
|
|
1097
|
-
database_name:
|
|
1097
|
+
database_name: c
|
|
1098
1098
|
}
|
|
1099
1099
|
),
|
|
1100
|
-
enabled: !!l && !!
|
|
1100
|
+
enabled: !!l && !!c && !P && c !== "NA"
|
|
1101
1101
|
//currentConnection?.type !== 'API', // Only fetch if connectionId and database is present
|
|
1102
1102
|
}), {
|
|
1103
1103
|
data: B,
|
|
@@ -1109,7 +1109,7 @@ function ya(s, n) {
|
|
|
1109
1109
|
queryKey: [
|
|
1110
1110
|
"tables",
|
|
1111
1111
|
l,
|
|
1112
|
-
|
|
1112
|
+
c,
|
|
1113
1113
|
r
|
|
1114
1114
|
],
|
|
1115
1115
|
queryFn: () => ye(
|
|
@@ -1117,7 +1117,7 @@ function ya(s, n) {
|
|
|
1117
1117
|
(t == null ? void 0 : t.accessToken) || "",
|
|
1118
1118
|
{
|
|
1119
1119
|
connection_id: l,
|
|
1120
|
-
database_name:
|
|
1120
|
+
database_name: c,
|
|
1121
1121
|
schema_name: r
|
|
1122
1122
|
}
|
|
1123
1123
|
),
|
|
@@ -1131,7 +1131,7 @@ function ya(s, n) {
|
|
|
1131
1131
|
queryKey: [
|
|
1132
1132
|
"columns",
|
|
1133
1133
|
l,
|
|
1134
|
-
|
|
1134
|
+
c,
|
|
1135
1135
|
r,
|
|
1136
1136
|
o
|
|
1137
1137
|
],
|
|
@@ -1142,7 +1142,7 @@ function ya(s, n) {
|
|
|
1142
1142
|
connection_id: l,
|
|
1143
1143
|
datamodel_id: h || "",
|
|
1144
1144
|
// don't pass undefined. Pass empty string
|
|
1145
|
-
database_name:
|
|
1145
|
+
database_name: c,
|
|
1146
1146
|
schema_name: r,
|
|
1147
1147
|
table_name: o
|
|
1148
1148
|
}
|
|
@@ -1163,19 +1163,19 @@ function ya(s, n) {
|
|
|
1163
1163
|
P,
|
|
1164
1164
|
j,
|
|
1165
1165
|
x,
|
|
1166
|
-
|
|
1166
|
+
d,
|
|
1167
1167
|
S,
|
|
1168
1168
|
M
|
|
1169
1169
|
]);
|
|
1170
1170
|
const ie = (M == null ? void 0 : M.type) === "API" ? (Qe = M == null ? void 0 : M.type) == null ? void 0 : Qe.toLowerCase() : o || "", je = P ? "" : r || "";
|
|
1171
1171
|
function oe(g) {
|
|
1172
|
-
|
|
1172
|
+
d(g), x("");
|
|
1173
1173
|
}
|
|
1174
1174
|
function Ie(g) {
|
|
1175
|
-
S(g === "none" ? "" : g),
|
|
1175
|
+
S(g === "none" ? "" : g), d(""), x(""), g !== "none" && g !== "" && u("");
|
|
1176
1176
|
}
|
|
1177
1177
|
function Vs(g) {
|
|
1178
|
-
m(g)
|
|
1178
|
+
m(g);
|
|
1179
1179
|
}
|
|
1180
1180
|
function Se(g) {
|
|
1181
1181
|
u(g === "none" ? "" : g), g !== "none" && g !== "" && S("");
|
|
@@ -1244,7 +1244,7 @@ function va({
|
|
|
1244
1244
|
(V) => V.selectedDatabaseName
|
|
1245
1245
|
), l = i(
|
|
1246
1246
|
(V) => V.selectedSchemaName
|
|
1247
|
-
), h = i((V) => V.selectedTableName),
|
|
1247
|
+
), h = i((V) => V.selectedTableName), c = i(
|
|
1248
1248
|
(V) => V.actions.setSelectedTableName
|
|
1249
1249
|
), {
|
|
1250
1250
|
connectionItems: r,
|
|
@@ -1253,7 +1253,7 @@ function va({
|
|
|
1253
1253
|
databaseItems: m,
|
|
1254
1254
|
tableItems: u,
|
|
1255
1255
|
columns: S,
|
|
1256
|
-
isConnectionsLoading:
|
|
1256
|
+
isConnectionsLoading: d,
|
|
1257
1257
|
isModelsLoading: x,
|
|
1258
1258
|
isConnectionsError: j,
|
|
1259
1259
|
isModelsError: z,
|
|
@@ -1319,7 +1319,7 @@ function va({
|
|
|
1319
1319
|
return M === "API" || !l || l === "none" || n === "none" || t === "none" ? null : /* @__PURE__ */ e.jsx(
|
|
1320
1320
|
Xe,
|
|
1321
1321
|
{
|
|
1322
|
-
onChange:
|
|
1322
|
+
onChange: c,
|
|
1323
1323
|
isError: q,
|
|
1324
1324
|
items: u,
|
|
1325
1325
|
isLoading: A,
|
|
@@ -1337,7 +1337,7 @@ function va({
|
|
|
1337
1337
|
title: "Connection",
|
|
1338
1338
|
value: n || "",
|
|
1339
1339
|
onChange: P,
|
|
1340
|
-
isLoading:
|
|
1340
|
+
isLoading: d,
|
|
1341
1341
|
isError: j,
|
|
1342
1342
|
connectionTooltip: ((B = r == null ? void 0 : r.find(
|
|
1343
1343
|
(V) => V.id === n
|
|
@@ -1368,16 +1368,16 @@ function zn(s) {
|
|
|
1368
1368
|
const n = s.toUpperCase().indexOf("WHERE"), a = s.toUpperCase().indexOf("GROUP BY"), t = s.toUpperCase().indexOf("LIMIT"), l = s.toUpperCase().indexOf("ORDER BY");
|
|
1369
1369
|
let h = s.length;
|
|
1370
1370
|
if (l !== -1 && (h = l), t !== -1 && t < h && (h = t), n !== -1) {
|
|
1371
|
-
const
|
|
1372
|
-
return `${
|
|
1371
|
+
const c = s.substring(0, n), r = s.substring(n);
|
|
1372
|
+
return `${c} {{ filters | where }} AND ${r.substring(
|
|
1373
1373
|
6
|
|
1374
1374
|
)}`;
|
|
1375
1375
|
} else if (a !== -1) {
|
|
1376
|
-
const
|
|
1377
|
-
return `${
|
|
1376
|
+
const c = s.substring(0, a), r = s.substring(a);
|
|
1377
|
+
return `${c} {{ filters | where }} ${r}`;
|
|
1378
1378
|
} else {
|
|
1379
|
-
const
|
|
1380
|
-
return `${
|
|
1379
|
+
const c = s.substring(0, h), r = s.substring(h);
|
|
1380
|
+
return `${c} {{ filters | where }} ${r}`;
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
1383
|
function Fn({
|
|
@@ -1418,7 +1418,7 @@ function On({
|
|
|
1418
1418
|
] });
|
|
1419
1419
|
}
|
|
1420
1420
|
function Mn() {
|
|
1421
|
-
const { authToken: s } = ts(), n = $e(null), a = i((r) => r.applyFilters), [t, l] = T(""), h = i((r) => r.filterValues),
|
|
1421
|
+
const { authToken: s } = ts(), n = $e(null), a = i((r) => r.applyFilters), [t, l] = T(""), h = i((r) => r.filterValues), c = i((r) => r.card.sql);
|
|
1422
1422
|
return /* @__PURE__ */ e.jsxs(
|
|
1423
1423
|
la,
|
|
1424
1424
|
{
|
|
@@ -1431,7 +1431,7 @@ function Mn() {
|
|
|
1431
1431
|
"https://semaphor.cloud/api/v1/filter-sql",
|
|
1432
1432
|
(s == null ? void 0 : s.accessToken) || "",
|
|
1433
1433
|
{
|
|
1434
|
-
sql:
|
|
1434
|
+
sql: c,
|
|
1435
1435
|
active_filters: h
|
|
1436
1436
|
}
|
|
1437
1437
|
);
|
|
@@ -1514,7 +1514,7 @@ function Ln({
|
|
|
1514
1514
|
triggerAIRun: l,
|
|
1515
1515
|
setTriggerAIRun: h
|
|
1516
1516
|
}) {
|
|
1517
|
-
const
|
|
1517
|
+
const c = $e(null), r = $e(null), { authToken: o } = ts(), [f, m] = T(!1), u = i((b) => b.actions.setCardSql), S = w((b) => b.dashboard.baseQueries), d = i((b) => b.actions.setRunSql), x = i((b) => b.actions.setCardType), [j, z] = T([]), C = i((b) => b.currentColumns), E = i((b) => b.card.sql), v = i((b) => b.selectedTableName), D = `
|
|
1518
1518
|
${a}
|
|
1519
1519
|
|
|
1520
1520
|
Database Query Dialect: ${v === "api" || v === "s3" ? "DuckDb" : ""}
|
|
@@ -1563,7 +1563,7 @@ function Ln({
|
|
|
1563
1563
|
r.current && (r.current.scroll({
|
|
1564
1564
|
top: r.current.scrollHeight,
|
|
1565
1565
|
behavior: "smooth"
|
|
1566
|
-
}), (y =
|
|
1566
|
+
}), (y = c.current) == null || y.focus());
|
|
1567
1567
|
}, 100);
|
|
1568
1568
|
return () => clearTimeout(b);
|
|
1569
1569
|
}, [j]);
|
|
@@ -1611,7 +1611,7 @@ function Ln({
|
|
|
1611
1611
|
{
|
|
1612
1612
|
onClick: (O) => {
|
|
1613
1613
|
const B = K(O);
|
|
1614
|
-
B && (n(!1), u(B),
|
|
1614
|
+
B && (n(!1), u(B), d(!0));
|
|
1615
1615
|
},
|
|
1616
1616
|
size: "sm",
|
|
1617
1617
|
variant: "outline",
|
|
@@ -1686,7 +1686,7 @@ function Ln({
|
|
|
1686
1686
|
ha,
|
|
1687
1687
|
{
|
|
1688
1688
|
autoFocus: !0,
|
|
1689
|
-
ref:
|
|
1689
|
+
ref: c,
|
|
1690
1690
|
onKeyDown: (b) => {
|
|
1691
1691
|
b.key === "Enter" && !b.shiftKey && (b.preventDefault(), t(""), I());
|
|
1692
1692
|
},
|
|
@@ -1814,12 +1814,12 @@ function Rn(s) {
|
|
|
1814
1814
|
attr: t,
|
|
1815
1815
|
size: l,
|
|
1816
1816
|
title: h
|
|
1817
|
-
} = s,
|
|
1817
|
+
} = s, c = En(s, An), r = l || a.size || "1em", o;
|
|
1818
1818
|
return a.className && (o = a.className), s.className && (o = (o ? o + " " : "") + s.className), /* @__PURE__ */ ue.createElement("svg", ss({
|
|
1819
1819
|
stroke: "currentColor",
|
|
1820
1820
|
fill: "currentColor",
|
|
1821
1821
|
strokeWidth: "0"
|
|
1822
|
-
}, a.attr, t,
|
|
1822
|
+
}, a.attr, t, c, {
|
|
1823
1823
|
className: o,
|
|
1824
1824
|
style: as(as({
|
|
1825
1825
|
color: s.color || a.color
|
|
@@ -1835,7 +1835,7 @@ function _n(s) {
|
|
|
1835
1835
|
return xe({ 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);
|
|
1836
1836
|
}
|
|
1837
1837
|
function Hn() {
|
|
1838
|
-
const { theme: s } = nt(), n = $e(), a = $e(), [t, l] = T(!1), [h,
|
|
1838
|
+
const { theme: s } = nt(), n = $e(), a = $e(), [t, l] = T(!1), [h, c] = T(!1), [r, o] = T(!1), [f, m] = T(""), [u, S] = T(!1), { authToken: d } = ts();
|
|
1839
1839
|
w((p) => p.selectedSheetId);
|
|
1840
1840
|
const x = w((p) => p.dashboard.baseQueries), j = i((p) => p.card), z = w((p) => p.theme), C = i((p) => p.isShowingVisual), E = i(
|
|
1841
1841
|
(p) => p.selectedConnectionId
|
|
@@ -1873,7 +1873,7 @@ function Hn() {
|
|
|
1873
1873
|
queryKey: [q, A],
|
|
1874
1874
|
queryFn: () => ca(
|
|
1875
1875
|
"https://semaphor.cloud/api/v1/query",
|
|
1876
|
-
(
|
|
1876
|
+
(d == null ? void 0 : d.accessToken) || "",
|
|
1877
1877
|
{
|
|
1878
1878
|
connection_id: M,
|
|
1879
1879
|
sql: q,
|
|
@@ -2001,7 +2001,7 @@ function Hn() {
|
|
|
2001
2001
|
P && h && /* @__PURE__ */ e.jsx(
|
|
2002
2002
|
_e,
|
|
2003
2003
|
{
|
|
2004
|
-
onClick: () =>
|
|
2004
|
+
onClick: () => c(!1),
|
|
2005
2005
|
className: "bg-background/50 text-foreground/50 hover:cursor-pointer hover:text-foreground"
|
|
2006
2006
|
}
|
|
2007
2007
|
)
|
|
@@ -2043,7 +2043,7 @@ function Hn() {
|
|
|
2043
2043
|
P && !h && /* @__PURE__ */ e.jsx(
|
|
2044
2044
|
xa,
|
|
2045
2045
|
{
|
|
2046
|
-
onClick: () =>
|
|
2046
|
+
onClick: () => c(!0),
|
|
2047
2047
|
className: Y(
|
|
2048
2048
|
"absolute bottom-4 right-6 h-3 w-3 text-foreground/50 hover:cursor-pointer hover:text-foreground",
|
|
2049
2049
|
{
|
|
@@ -2284,7 +2284,7 @@ function Hn() {
|
|
|
2284
2284
|
);
|
|
2285
2285
|
}
|
|
2286
2286
|
function Bn({ data: s }) {
|
|
2287
|
-
var
|
|
2287
|
+
var c;
|
|
2288
2288
|
const [n, a] = ue.useState([]), l = Object.keys(s[0]).map((r) => ({
|
|
2289
2289
|
// header: key,
|
|
2290
2290
|
accessorKey: r,
|
|
@@ -2319,7 +2319,7 @@ function Bn({ data: s }) {
|
|
|
2319
2319
|
o.column.columnDef.header,
|
|
2320
2320
|
o.getContext()
|
|
2321
2321
|
) }, o.id)) }, r.id)) }),
|
|
2322
|
-
/* @__PURE__ */ e.jsx(ut, { children: (
|
|
2322
|
+
/* @__PURE__ */ e.jsx(ut, { children: (c = h.getRowModel().rows) != null && c.length ? h.getRowModel().rows.map((r) => /* @__PURE__ */ e.jsx(
|
|
2323
2323
|
ms,
|
|
2324
2324
|
{
|
|
2325
2325
|
className: "whitespace-nowrap py-2",
|
|
@@ -2335,7 +2335,7 @@ function Sa({
|
|
|
2335
2335
|
className: s,
|
|
2336
2336
|
...n
|
|
2337
2337
|
}) {
|
|
2338
|
-
var
|
|
2338
|
+
var c;
|
|
2339
2339
|
ue.useState(0);
|
|
2340
2340
|
const a = w((r) => r.themeStyle), t = i((r) => r.card), l = i((r) => r.actions.setCard);
|
|
2341
2341
|
if (G(() => {
|
|
@@ -2392,7 +2392,7 @@ function Sa({
|
|
|
2392
2392
|
{
|
|
2393
2393
|
cfg: h
|
|
2394
2394
|
},
|
|
2395
|
-
JSON.stringify(h) + JSON.stringify(t.preferences) + ((
|
|
2395
|
+
JSON.stringify(h) + JSON.stringify(t.preferences) + ((c = t == null ? void 0 : t.preferences) == null ? void 0 : c.customVisualCode)
|
|
2396
2396
|
),
|
|
2397
2397
|
t.type === "table" && t.data && t.data.length > 0 && // All of the below css classes are #IMPORTANT for the table to scroll properly
|
|
2398
2398
|
/* @__PURE__ */ e.jsx(Ct, { className: "flex min-h-0 flex-1 grow basis-0", children: /* @__PURE__ */ e.jsx(St, { card: t, data: t == null ? void 0 : t.data }) })
|
|
@@ -2402,9 +2402,9 @@ function Sa({
|
|
|
2402
2402
|
);
|
|
2403
2403
|
}
|
|
2404
2404
|
function $n() {
|
|
2405
|
-
const [s, n] = T(!1), [a, t] = T(""), [l, h] = T(""), [
|
|
2405
|
+
const [s, n] = T(!1), [a, t] = T(""), [l, h] = T(""), [c, r] = T(""), [o, f] = T(""), m = i((v) => v.card), u = i(
|
|
2406
2406
|
(v) => v.card.customCfg
|
|
2407
|
-
), { setCardCustomCfg: S, setCustomVisualCode:
|
|
2407
|
+
), { setCardCustomCfg: S, setCustomVisualCode: d } = kt();
|
|
2408
2408
|
function x(v) {
|
|
2409
2409
|
var F, A;
|
|
2410
2410
|
const D = {
|
|
@@ -2432,7 +2432,7 @@ function $n() {
|
|
|
2432
2432
|
v && (t(JSON.stringify(v, null, 1)), (D = m == null ? void 0 : m.preferences) != null && D.customVisualCode && r((N = m == null ? void 0 : m.preferences) == null ? void 0 : N.customVisualCode), u && h(JSON.stringify(u, null, 1)));
|
|
2433
2433
|
}
|
|
2434
2434
|
function z() {
|
|
2435
|
-
if (
|
|
2435
|
+
if (c && d(c), !!l)
|
|
2436
2436
|
try {
|
|
2437
2437
|
const v = JSON.parse(l);
|
|
2438
2438
|
return v ? (S(v), f(""), h(""), v) : void 0;
|
|
@@ -2574,7 +2574,7 @@ function $n() {
|
|
|
2574
2574
|
renderLineHighlight: "none"
|
|
2575
2575
|
},
|
|
2576
2576
|
defaultLanguage: "javascript",
|
|
2577
|
-
value:
|
|
2577
|
+
value: c,
|
|
2578
2578
|
onChange: (v) => r(v || "")
|
|
2579
2579
|
}
|
|
2580
2580
|
)
|
|
@@ -2626,11 +2626,11 @@ function La(s) {
|
|
|
2626
2626
|
return xe({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M217 25v14h78V25h-78zm0 32v46h14V71h50v32h14V57h-78zm32 32v14h14V89h-14zm-64 32v46h30v-46h-30zm48 0v14h46v-14h-46zm64 0v46h30v-46h-30zm-64 32v14h46v-14h-46zm-80 32v46h62v-46h-62zm80 0v14h46v-14h-46zm64 0v46h62v-46h-62zm-64 32v14h46v-14h-46zm-112 32v46h94v-46h-94zm112 0v14h46v-14h-46zm64 0v46h94v-46h-94zm-64 32v14h46v-14h-46zM89 313v46h126v-46H89zm144 0v14h46v-14h-46zm64 0v46h126v-46H297zm-64 32v14h46v-14h-46zM57 377v46h158v-46H57zm176 0v14h46v-14h-46zm64 0v46h158v-46H297zm-64 32v14h46v-14h-46zM25 441v46h190v-46H25zm208 0v14h46v-14h-46zm64 0v46h190v-46H297zm-64 32v14h46v-14h-46z" }, child: [] }] })(s);
|
|
2627
2627
|
}
|
|
2628
2628
|
function Pn() {
|
|
2629
|
-
const [s, n] = T(!1), a = i((o) => o.card.type), { setCardType: t, setCardPreferences: l, setChartOrientation: h } = i((o) => o.actions),
|
|
2629
|
+
const [s, n] = T(!1), a = i((o) => o.card.type), { setCardType: t, setCardPreferences: l, setChartOrientation: h } = i((o) => o.actions), c = i(
|
|
2630
2630
|
(o) => o.actions.setCardCustomCfg
|
|
2631
2631
|
);
|
|
2632
2632
|
function r(o) {
|
|
2633
|
-
|
|
2633
|
+
c(null), l({}), t(o), n(!1);
|
|
2634
2634
|
}
|
|
2635
2635
|
return /* @__PURE__ */ e.jsxs(Ke, { open: s, onOpenChange: n, children: [
|
|
2636
2636
|
/* @__PURE__ */ e.jsx(Ue, { asChild: !0, children: /* @__PURE__ */ e.jsx(k, { size: "sm", variant: "outline", children: /* @__PURE__ */ e.jsx(Kn, { className: "h-4 w-4", chartType: a }) }) }),
|
|
@@ -2827,7 +2827,7 @@ function Ws() {
|
|
|
2827
2827
|
const s = i((r) => r.card), n = i((r) => r.card.data), a = i((r) => r.isShowingVisual), t = i((r) => r.isSqlRunning), l = i((r) => r.queryError), h = i((r) => r.pythonStdOut);
|
|
2828
2828
|
if (i((r) => r.onSave), i((r) => r.onClose), i((r) => r.actions.setCardSql), i((r) => r.actions.setCardType), i((r) => r.actions.setSqlGen), !s)
|
|
2829
2829
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: "No Active Card" });
|
|
2830
|
-
function
|
|
2830
|
+
function c() {
|
|
2831
2831
|
return s.type === "kpi" ? /* @__PURE__ */ e.jsx("div", { className: "flex grow items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e.jsx(Mt, { isLoading: t, card: s }) }) }) : s.type === "text" ? /* @__PURE__ */ e.jsx("div", { className: "flex grow items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e.jsx(Tt, { isLoading: t, card: s }) }) }) : /* @__PURE__ */ e.jsx(Sa, { className: "grow border-none shadow-none" });
|
|
2832
2832
|
}
|
|
2833
2833
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex h-full flex-col pt-3", children: [
|
|
@@ -2840,7 +2840,7 @@ function Ws() {
|
|
|
2840
2840
|
] }),
|
|
2841
2841
|
/* @__PURE__ */ e.jsx(Jn, {})
|
|
2842
2842
|
] }),
|
|
2843
|
-
a ?
|
|
2843
|
+
a ? c() : (
|
|
2844
2844
|
// card.type === 'kpi' ? (
|
|
2845
2845
|
// <div className="flex grow items-center justify-center">
|
|
2846
2846
|
// <div className="w-1/2 rounded-md border">
|
|
@@ -2897,7 +2897,7 @@ function De() {
|
|
|
2897
2897
|
i(
|
|
2898
2898
|
(m) => m.card.cfg
|
|
2899
2899
|
);
|
|
2900
|
-
const a = i((m) => m.card.preferences), { setCardCfg: t, setFilterOnClickColumnIndex: l, setCardPreferences: h } = i((m) => m.actions),
|
|
2900
|
+
const a = i((m) => m.card.preferences), { setCardCfg: t, setFilterOnClickColumnIndex: l, setCardPreferences: h } = i((m) => m.actions), c = i(
|
|
2901
2901
|
(m) => m.queryResultColumns
|
|
2902
2902
|
);
|
|
2903
2903
|
i(
|
|
@@ -2906,10 +2906,10 @@ function De() {
|
|
|
2906
2906
|
return (u = m.card.preferences) == null ? void 0 : u.filterOnClickColumnIndex;
|
|
2907
2907
|
}
|
|
2908
2908
|
), G(() => {
|
|
2909
|
-
|
|
2910
|
-
}, [
|
|
2909
|
+
c && n(new Array(c.length).fill(!1));
|
|
2910
|
+
}, [c]);
|
|
2911
2911
|
function r(m, u) {
|
|
2912
|
-
var S,
|
|
2912
|
+
var S, d;
|
|
2913
2913
|
u ? a != null && a.onClickFilter && ((S = a == null ? void 0 : a.onClickFilter) == null ? void 0 : S.length) > 0 ? h({
|
|
2914
2914
|
...a,
|
|
2915
2915
|
onClickFilter: [
|
|
@@ -2929,7 +2929,7 @@ function De() {
|
|
|
2929
2929
|
]
|
|
2930
2930
|
}) : (h({
|
|
2931
2931
|
...a,
|
|
2932
|
-
onClickFilter: (
|
|
2932
|
+
onClickFilter: (d = a == null ? void 0 : a.onClickFilter) == null ? void 0 : d.filter(
|
|
2933
2933
|
(x) => x.columnIndex !== m
|
|
2934
2934
|
)
|
|
2935
2935
|
}), n((x) => {
|
|
@@ -2938,8 +2938,8 @@ function De() {
|
|
|
2938
2938
|
}));
|
|
2939
2939
|
}
|
|
2940
2940
|
function o(m, u) {
|
|
2941
|
-
var
|
|
2942
|
-
const S = (
|
|
2941
|
+
var d;
|
|
2942
|
+
const S = (d = a == null ? void 0 : a.onClickFilter) == null ? void 0 : d.map((x) => x.columnIndex === m ? {
|
|
2943
2943
|
...x,
|
|
2944
2944
|
expression: u.target.value
|
|
2945
2945
|
} : x);
|
|
@@ -2949,12 +2949,12 @@ function De() {
|
|
|
2949
2949
|
});
|
|
2950
2950
|
}
|
|
2951
2951
|
function f(m) {
|
|
2952
|
-
var u, S,
|
|
2952
|
+
var u, S, d, x;
|
|
2953
2953
|
if (s != null && s[m] || (S = (u = a == null ? void 0 : a.onClickFilter) == null ? void 0 : u.find((j) => j.columnIndex === m)) != null && S.expression)
|
|
2954
2954
|
return /* @__PURE__ */ e.jsx(
|
|
2955
2955
|
re,
|
|
2956
2956
|
{
|
|
2957
|
-
value: (x = (
|
|
2957
|
+
value: (x = (d = a == null ? void 0 : a.onClickFilter) == null ? void 0 : d.find((j) => j.columnIndex === m)) == null ? void 0 : x.expression,
|
|
2958
2958
|
onChange: (j) => o(m, j),
|
|
2959
2959
|
type: "text",
|
|
2960
2960
|
className: " h-9 w-full focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0 font-mono text-xs",
|
|
@@ -2962,8 +2962,8 @@ function De() {
|
|
|
2962
2962
|
}
|
|
2963
2963
|
);
|
|
2964
2964
|
}
|
|
2965
|
-
return /* @__PURE__ */ e.jsx(e.Fragment, { children:
|
|
2966
|
-
var S,
|
|
2965
|
+
return /* @__PURE__ */ e.jsx(e.Fragment, { children: c == null ? void 0 : c.map((m, u) => {
|
|
2966
|
+
var S, d;
|
|
2967
2967
|
return /* @__PURE__ */ e.jsx(
|
|
2968
2968
|
"div",
|
|
2969
2969
|
{
|
|
@@ -2986,7 +2986,7 @@ function De() {
|
|
|
2986
2986
|
children: m
|
|
2987
2987
|
}
|
|
2988
2988
|
),
|
|
2989
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex gap-2 items-center ", children: ((
|
|
2989
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex gap-2 items-center ", children: ((d = a == null ? void 0 : a.onClickFilter) == null ? void 0 : d.find(
|
|
2990
2990
|
(x) => x.columnIndex === u
|
|
2991
2991
|
)) && /* @__PURE__ */ e.jsx(
|
|
2992
2992
|
fa,
|
|
@@ -3009,11 +3009,11 @@ function De() {
|
|
|
3009
3009
|
}) });
|
|
3010
3010
|
}
|
|
3011
3011
|
function ns() {
|
|
3012
|
-
var
|
|
3012
|
+
var c, r, o;
|
|
3013
3013
|
const s = i((f) => f.card.preferences), n = i(
|
|
3014
3014
|
(f) => f.card.cfg
|
|
3015
3015
|
), { setCardCfg: a, setCardPreferences: t, setChartOrientation: l } = i((f) => f.actions);
|
|
3016
|
-
(
|
|
3016
|
+
(c = n == null ? void 0 : n.options) != null && c.indexAxis;
|
|
3017
3017
|
function h(f) {
|
|
3018
3018
|
l(f);
|
|
3019
3019
|
}
|
|
@@ -3051,13 +3051,13 @@ function Aa() {
|
|
|
3051
3051
|
}), t = i((y) => {
|
|
3052
3052
|
var O;
|
|
3053
3053
|
return (O = y.card) == null ? void 0 : O.cfg;
|
|
3054
|
-
}), l = ua(a, t), [h,
|
|
3054
|
+
}), l = ua(a, t), [h, c] = T(
|
|
3055
3055
|
Ys(a)
|
|
3056
3056
|
), [r, o] = T(
|
|
3057
3057
|
((ee = (Z = (X = a == null ? void 0 : a.chartOptions) == null ? void 0 : X.scales) == null ? void 0 : Z[l]) == null ? void 0 : ee.min) || ""
|
|
3058
3058
|
), [f, m] = T(
|
|
3059
3059
|
((b = (se = (K = a == null ? void 0 : a.chartOptions) == null ? void 0 : K.scales) == null ? void 0 : se[l]) == null ? void 0 : b.max) || ""
|
|
3060
|
-
), [u, S] = T(r || f ? "custom" : "auto"), [
|
|
3060
|
+
), [u, S] = T(r || f ? "custom" : "auto"), [d, x] = T(""), [j, z] = T(0), [C, E] = T(""), [v, D] = T(""), [N, F] = T(""), A = i(
|
|
3061
3061
|
(y) => y.actions.setCardPreferences
|
|
3062
3062
|
), q = i((y) => {
|
|
3063
3063
|
var O;
|
|
@@ -3065,7 +3065,7 @@ function Aa() {
|
|
|
3065
3065
|
}), M = ["pie", "doughnut", "polarArea"].includes(q);
|
|
3066
3066
|
G(() => {
|
|
3067
3067
|
var y, O, B, V, te, Ne, Ce, ae, pe, J, ne, ie, je, oe;
|
|
3068
|
-
|
|
3068
|
+
c(Ys(a)), o(
|
|
3069
3069
|
((B = (O = (y = a == null ? void 0 : a.chartOptions) == null ? void 0 : y.scales) == null ? void 0 : O[l]) == null ? void 0 : B.min) === 0 ? 0 : ""
|
|
3070
3070
|
), m(((Ne = (te = (V = a == null ? void 0 : a.chartOptions) == null ? void 0 : V.scales) == null ? void 0 : te[l]) == null ? void 0 : Ne.max) || ""), x(
|
|
3071
3071
|
((J = (pe = (ae = (Ce = a == null ? void 0 : a.chartOptions) == null ? void 0 : Ce.scales) == null ? void 0 : ae[l]) == null ? void 0 : pe.ticks) == null ? void 0 : J.stepSize) || ""
|
|
@@ -3155,7 +3155,7 @@ function Aa() {
|
|
|
3155
3155
|
/* @__PURE__ */ e.jsx(
|
|
3156
3156
|
re,
|
|
3157
3157
|
{
|
|
3158
|
-
value:
|
|
3158
|
+
value: d,
|
|
3159
3159
|
onChange: (y) => x((O) => U(O, y.target.value)),
|
|
3160
3160
|
id: "step-size",
|
|
3161
3161
|
className: `col-span-1 h-8 w-full ${we}`
|
|
@@ -3171,7 +3171,7 @@ function Aa() {
|
|
|
3171
3171
|
min: r,
|
|
3172
3172
|
max: f,
|
|
3173
3173
|
ticks: {
|
|
3174
|
-
stepSize:
|
|
3174
|
+
stepSize: d
|
|
3175
3175
|
}
|
|
3176
3176
|
});
|
|
3177
3177
|
const O = {
|
|
@@ -3211,7 +3211,7 @@ function Aa() {
|
|
|
3211
3211
|
{
|
|
3212
3212
|
disabled: M,
|
|
3213
3213
|
value: h,
|
|
3214
|
-
onValueChange: (y) =>
|
|
3214
|
+
onValueChange: (y) => c(y),
|
|
3215
3215
|
children: [
|
|
3216
3216
|
/* @__PURE__ */ e.jsx(Oe, { className: "col-span-2 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e.jsx(Me, {}) }),
|
|
3217
3217
|
/* @__PURE__ */ e.jsx(Te, { id: "type", children: /* @__PURE__ */ e.jsxs(He, { children: [
|
|
@@ -3276,7 +3276,7 @@ function Qn({ idx: s }) {
|
|
|
3276
3276
|
), t = i(
|
|
3277
3277
|
(o) => o.actions.setCardPreferences
|
|
3278
3278
|
), l = (r = n == null ? void 0 : n.chartOptions) == null ? void 0 : r.indexAxis, h = a == null ? void 0 : a.find((o) => o.idx === s);
|
|
3279
|
-
function
|
|
3279
|
+
function c(o, f) {
|
|
3280
3280
|
(o === "end" || o === "start") && It(Vt());
|
|
3281
3281
|
const m = {
|
|
3282
3282
|
display: o !== "none",
|
|
@@ -3299,7 +3299,7 @@ function Qn({ idx: s }) {
|
|
|
3299
3299
|
const u = { ...h };
|
|
3300
3300
|
u.datalabels = m;
|
|
3301
3301
|
const S = a == null ? void 0 : a.map(
|
|
3302
|
-
(
|
|
3302
|
+
(d) => d.idx === f ? u : d
|
|
3303
3303
|
);
|
|
3304
3304
|
t({
|
|
3305
3305
|
...n,
|
|
@@ -3313,7 +3313,7 @@ function Qn({ idx: s }) {
|
|
|
3313
3313
|
/* @__PURE__ */ e.jsx(
|
|
3314
3314
|
k,
|
|
3315
3315
|
{
|
|
3316
|
-
onClick: () =>
|
|
3316
|
+
onClick: () => c("none", s),
|
|
3317
3317
|
size: "sm",
|
|
3318
3318
|
variant: "secondary",
|
|
3319
3319
|
className: "h-7 p-1 text-xs font-normal",
|
|
@@ -3323,7 +3323,7 @@ function Qn({ idx: s }) {
|
|
|
3323
3323
|
/* @__PURE__ */ e.jsx(
|
|
3324
3324
|
k,
|
|
3325
3325
|
{
|
|
3326
|
-
onClick: () =>
|
|
3326
|
+
onClick: () => c("start", s),
|
|
3327
3327
|
size: "sm",
|
|
3328
3328
|
variant: "secondary",
|
|
3329
3329
|
className: "h-7 p-1 text-xs font-normal",
|
|
@@ -3340,7 +3340,7 @@ function Qn({ idx: s }) {
|
|
|
3340
3340
|
/* @__PURE__ */ e.jsx(
|
|
3341
3341
|
k,
|
|
3342
3342
|
{
|
|
3343
|
-
onClick: () =>
|
|
3343
|
+
onClick: () => c("center", s),
|
|
3344
3344
|
size: "sm",
|
|
3345
3345
|
variant: "secondary",
|
|
3346
3346
|
className: "h-7 p-1 text-xs font-normal",
|
|
@@ -3357,7 +3357,7 @@ function Qn({ idx: s }) {
|
|
|
3357
3357
|
/* @__PURE__ */ e.jsx(
|
|
3358
3358
|
k,
|
|
3359
3359
|
{
|
|
3360
|
-
onClick: () =>
|
|
3360
|
+
onClick: () => c("end", s),
|
|
3361
3361
|
size: "sm",
|
|
3362
3362
|
variant: "secondary",
|
|
3363
3363
|
className: "h-7 p-1 text-xs font-normal",
|
|
@@ -3383,14 +3383,14 @@ function Ea() {
|
|
|
3383
3383
|
), a = n === "y" ? "Y axis" : "X axis", t = n === "y" ? "X axis" : "Y axis", {
|
|
3384
3384
|
keys: l,
|
|
3385
3385
|
metricKeys: h,
|
|
3386
|
-
dimensionKeys:
|
|
3386
|
+
dimensionKeys: c
|
|
3387
3387
|
} = gs(s.data || []);
|
|
3388
3388
|
let r = h;
|
|
3389
3389
|
if (["stackedBar", "stackedLine"].includes(s.type)) {
|
|
3390
3390
|
const o = qt({
|
|
3391
3391
|
dataArray: s.data || [],
|
|
3392
|
-
groupKey:
|
|
3393
|
-
pivotKey:
|
|
3392
|
+
groupKey: c[0],
|
|
3393
|
+
pivotKey: c[1],
|
|
3394
3394
|
valueKey: r[0]
|
|
3395
3395
|
}), { metricKeys: f } = gs(o);
|
|
3396
3396
|
r = f;
|
|
@@ -3398,7 +3398,7 @@ function Ea() {
|
|
|
3398
3398
|
return l.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
3399
3399
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
3400
3400
|
/* @__PURE__ */ e.jsx($, { children: a }),
|
|
3401
|
-
/* @__PURE__ */ e.jsx("div", { className: "my-1 space-y-1", children: /* @__PURE__ */ e.jsx("div", { className: "rounded-md bg-muted/70 px-2 py-1 hover:bg-muted", children: /* @__PURE__ */ e.jsx("p", { children:
|
|
3401
|
+
/* @__PURE__ */ e.jsx("div", { className: "my-1 space-y-1", children: /* @__PURE__ */ e.jsx("div", { className: "rounded-md bg-muted/70 px-2 py-1 hover:bg-muted", children: /* @__PURE__ */ e.jsx("p", { children: c[0] }) }) })
|
|
3402
3402
|
] }),
|
|
3403
3403
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
3404
3404
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-5", children: [
|
|
@@ -3419,7 +3419,7 @@ function Wn({ col: s, idx: n }) {
|
|
|
3419
3419
|
return (o = r.card.preferences) == null ? void 0 : o.datasetOptions;
|
|
3420
3420
|
}
|
|
3421
3421
|
), l = t == null ? void 0 : t.find((r) => r.idx === n), { setCardPreferences: h } = i((r) => r.actions);
|
|
3422
|
-
function
|
|
3422
|
+
function c(r) {
|
|
3423
3423
|
if (!l)
|
|
3424
3424
|
h({
|
|
3425
3425
|
...a,
|
|
@@ -3450,21 +3450,21 @@ function Wn({ col: s, idx: n }) {
|
|
|
3450
3450
|
/* @__PURE__ */ e.jsx(
|
|
3451
3451
|
As,
|
|
3452
3452
|
{
|
|
3453
|
-
onClick: () =>
|
|
3453
|
+
onClick: () => c("bar"),
|
|
3454
3454
|
className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
|
|
3455
3455
|
}
|
|
3456
3456
|
),
|
|
3457
3457
|
/* @__PURE__ */ e.jsx(
|
|
3458
3458
|
Es,
|
|
3459
3459
|
{
|
|
3460
|
-
onClick: () =>
|
|
3460
|
+
onClick: () => c("line"),
|
|
3461
3461
|
className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
|
|
3462
3462
|
}
|
|
3463
3463
|
),
|
|
3464
3464
|
/* @__PURE__ */ e.jsx(
|
|
3465
3465
|
Yt,
|
|
3466
3466
|
{
|
|
3467
|
-
onClick: () =>
|
|
3467
|
+
onClick: () => c("area"),
|
|
3468
3468
|
className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
|
|
3469
3469
|
}
|
|
3470
3470
|
),
|
|
@@ -3522,7 +3522,7 @@ function Yn({
|
|
|
3522
3522
|
] }) });
|
|
3523
3523
|
}
|
|
3524
3524
|
function Is() {
|
|
3525
|
-
var l, h,
|
|
3525
|
+
var l, h, c;
|
|
3526
3526
|
const s = i(
|
|
3527
3527
|
(r) => r.card.cfg
|
|
3528
3528
|
), n = i((r) => r.actions.setCardCfg), a = i((r) => r.card.type);
|
|
@@ -3555,7 +3555,7 @@ function Is() {
|
|
|
3555
3555
|
/* @__PURE__ */ e.jsxs(
|
|
3556
3556
|
Fe,
|
|
3557
3557
|
{
|
|
3558
|
-
value: (
|
|
3558
|
+
value: (c = (h = (l = s == null ? void 0 : s.options) == null ? void 0 : l.plugins) == null ? void 0 : h.datalabels) == null ? void 0 : c.anchor,
|
|
3559
3559
|
onValueChange: t,
|
|
3560
3560
|
defaultValue: "none",
|
|
3561
3561
|
children: [
|
|
@@ -3756,51 +3756,51 @@ function ar(s) {
|
|
|
3756
3756
|
}
|
|
3757
3757
|
function tr() {
|
|
3758
3758
|
var o, f, m, u, S;
|
|
3759
|
-
const s = i((
|
|
3760
|
-
(
|
|
3759
|
+
const s = i((d) => d.card.preferences), n = i(
|
|
3760
|
+
(d) => d.actions.setCardPreferences
|
|
3761
3761
|
), a = i(
|
|
3762
|
-
(
|
|
3762
|
+
(d) => d.actions.setNumberFormat
|
|
3763
3763
|
);
|
|
3764
3764
|
i(
|
|
3765
|
-
(
|
|
3765
|
+
(d) => {
|
|
3766
3766
|
var x, j;
|
|
3767
|
-
return (j = (x =
|
|
3767
|
+
return (j = (x = d.card.preferences) == null ? void 0 : x.formatNumber) == null ? void 0 : j.decimalPlaces;
|
|
3768
3768
|
}
|
|
3769
3769
|
);
|
|
3770
3770
|
const t = i(
|
|
3771
|
-
(
|
|
3771
|
+
(d) => {
|
|
3772
3772
|
var x, j;
|
|
3773
|
-
return (j = (x =
|
|
3773
|
+
return (j = (x = d.card.preferences) == null ? void 0 : x.formatNumber) == null ? void 0 : j.locale;
|
|
3774
3774
|
}
|
|
3775
3775
|
), l = i(
|
|
3776
|
-
(
|
|
3776
|
+
(d) => {
|
|
3777
3777
|
var x, j;
|
|
3778
|
-
return (j = (x =
|
|
3778
|
+
return (j = (x = d.card.preferences) == null ? void 0 : x.formatNumber) == null ? void 0 : j.currency;
|
|
3779
3779
|
}
|
|
3780
3780
|
);
|
|
3781
3781
|
i(
|
|
3782
|
-
(
|
|
3782
|
+
(d) => d.actions.setFilterOnClickField
|
|
3783
3783
|
);
|
|
3784
3784
|
const h = i(
|
|
3785
|
-
(
|
|
3785
|
+
(d) => {
|
|
3786
3786
|
var x, j;
|
|
3787
|
-
return (j = (x =
|
|
3787
|
+
return (j = (x = d.card.preferences) == null ? void 0 : x.formatNumber) == null ? void 0 : j.colorRanges;
|
|
3788
3788
|
}
|
|
3789
|
-
) || [],
|
|
3790
|
-
(
|
|
3791
|
-
), r = [...new Set(Us.map((
|
|
3789
|
+
) || [], c = i(
|
|
3790
|
+
(d) => d.actions.setColorRanges
|
|
3791
|
+
), r = [...new Set(Us.map((d) => d.currency))];
|
|
3792
3792
|
return /* @__PURE__ */ e.jsxs("div", { children: [
|
|
3793
3793
|
/* @__PURE__ */ e.jsxs("div", { className: "mb-3 flex items-center gap-2", children: [
|
|
3794
3794
|
/* @__PURE__ */ e.jsx(
|
|
3795
3795
|
Pe,
|
|
3796
3796
|
{
|
|
3797
3797
|
checked: !!((o = s == null ? void 0 : s.formatNumber) != null && o.enabled),
|
|
3798
|
-
onCheckedChange: (
|
|
3798
|
+
onCheckedChange: (d) => {
|
|
3799
3799
|
n({
|
|
3800
3800
|
...s,
|
|
3801
3801
|
formatNumber: {
|
|
3802
3802
|
...s == null ? void 0 : s.formatNumber,
|
|
3803
|
-
enabled:
|
|
3803
|
+
enabled: d
|
|
3804
3804
|
}
|
|
3805
3805
|
});
|
|
3806
3806
|
}
|
|
@@ -3817,12 +3817,12 @@ function tr() {
|
|
|
3817
3817
|
Fe,
|
|
3818
3818
|
{
|
|
3819
3819
|
value: t || "en-US",
|
|
3820
|
-
onValueChange: (
|
|
3820
|
+
onValueChange: (d) => {
|
|
3821
3821
|
var x, j, z;
|
|
3822
3822
|
return a(
|
|
3823
3823
|
((x = s == null ? void 0 : s.formatNumber) == null ? void 0 : x.decimalPlaces) || 0,
|
|
3824
3824
|
((j = s == null ? void 0 : s.formatNumber) == null ? void 0 : j.currency) || "",
|
|
3825
|
-
|
|
3825
|
+
d || "en-US",
|
|
3826
3826
|
((z = s == null ? void 0 : s.formatNumber) == null ? void 0 : z.suffix) || ""
|
|
3827
3827
|
);
|
|
3828
3828
|
},
|
|
@@ -3830,7 +3830,7 @@ function tr() {
|
|
|
3830
3830
|
/* @__PURE__ */ e.jsx(Oe, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e.jsx(Me, {}) }),
|
|
3831
3831
|
/* @__PURE__ */ e.jsx(Te, { children: /* @__PURE__ */ e.jsxs(He, { children: [
|
|
3832
3832
|
/* @__PURE__ */ e.jsx(Ae, { children: "Format" }),
|
|
3833
|
-
Us.map((
|
|
3833
|
+
Us.map((d) => /* @__PURE__ */ e.jsx(W, { value: d.locale, children: d.locale }, d.locale))
|
|
3834
3834
|
] }) })
|
|
3835
3835
|
]
|
|
3836
3836
|
}
|
|
@@ -3842,11 +3842,11 @@ function tr() {
|
|
|
3842
3842
|
Fe,
|
|
3843
3843
|
{
|
|
3844
3844
|
value: l || "none",
|
|
3845
|
-
onValueChange: (
|
|
3845
|
+
onValueChange: (d) => {
|
|
3846
3846
|
var x, j, z;
|
|
3847
3847
|
return a(
|
|
3848
3848
|
((x = s == null ? void 0 : s.formatNumber) == null ? void 0 : x.decimalPlaces) || 0,
|
|
3849
|
-
|
|
3849
|
+
d === "none" ? "" : d,
|
|
3850
3850
|
((j = s == null ? void 0 : s.formatNumber) == null ? void 0 : j.locale) || "",
|
|
3851
3851
|
((z = s == null ? void 0 : s.formatNumber) == null ? void 0 : z.suffix) || ""
|
|
3852
3852
|
);
|
|
@@ -3856,7 +3856,7 @@ function tr() {
|
|
|
3856
3856
|
/* @__PURE__ */ e.jsx(Te, { children: /* @__PURE__ */ e.jsxs(He, { children: [
|
|
3857
3857
|
/* @__PURE__ */ e.jsx(Ae, { children: "Currency" }),
|
|
3858
3858
|
/* @__PURE__ */ e.jsx(W, { value: "none", children: "None" }, "none"),
|
|
3859
|
-
r.map((
|
|
3859
|
+
r.map((d) => /* @__PURE__ */ e.jsx(W, { value: d, children: d }, d))
|
|
3860
3860
|
] }) })
|
|
3861
3861
|
]
|
|
3862
3862
|
}
|
|
@@ -3870,10 +3870,10 @@ function tr() {
|
|
|
3870
3870
|
Fe,
|
|
3871
3871
|
{
|
|
3872
3872
|
value: ((u = (m = s == null ? void 0 : s.formatNumber) == null ? void 0 : m.decimalPlaces) == null ? void 0 : u.toString()) || "0",
|
|
3873
|
-
onValueChange: (
|
|
3873
|
+
onValueChange: (d) => {
|
|
3874
3874
|
var x, j, z;
|
|
3875
3875
|
return a(
|
|
3876
|
-
Number(
|
|
3876
|
+
Number(d),
|
|
3877
3877
|
((x = s == null ? void 0 : s.formatNumber) == null ? void 0 : x.currency) || "",
|
|
3878
3878
|
((j = s == null ? void 0 : s.formatNumber) == null ? void 0 : j.locale) || "",
|
|
3879
3879
|
((z = s == null ? void 0 : s.formatNumber) == null ? void 0 : z.suffix) || ""
|
|
@@ -3881,7 +3881,7 @@ function tr() {
|
|
|
3881
3881
|
},
|
|
3882
3882
|
children: [
|
|
3883
3883
|
/* @__PURE__ */ e.jsx(Oe, { className: "col-span-3 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e.jsx(Me, {}) }),
|
|
3884
|
-
/* @__PURE__ */ e.jsx(Te, { children: ["0", "1", "2", "3", "4"].map((
|
|
3884
|
+
/* @__PURE__ */ e.jsx(Te, { children: ["0", "1", "2", "3", "4"].map((d) => /* @__PURE__ */ e.jsx(W, { value: d, children: d }, d)) })
|
|
3885
3885
|
]
|
|
3886
3886
|
}
|
|
3887
3887
|
)
|
|
@@ -3894,13 +3894,13 @@ function tr() {
|
|
|
3894
3894
|
value: ((S = s == null ? void 0 : s.formatNumber) == null ? void 0 : S.suffix) || "",
|
|
3895
3895
|
className: "h-8 font-mono text-xs focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0",
|
|
3896
3896
|
placeholder: "K, M, B, %",
|
|
3897
|
-
onChange: (
|
|
3897
|
+
onChange: (d) => {
|
|
3898
3898
|
var x, j, z;
|
|
3899
3899
|
return a(
|
|
3900
3900
|
((x = s == null ? void 0 : s.formatNumber) == null ? void 0 : x.decimalPlaces) || 0,
|
|
3901
3901
|
((j = s == null ? void 0 : s.formatNumber) == null ? void 0 : j.currency) || "",
|
|
3902
3902
|
((z = s == null ? void 0 : s.formatNumber) == null ? void 0 : z.locale) || "",
|
|
3903
|
-
|
|
3903
|
+
d.target.value
|
|
3904
3904
|
);
|
|
3905
3905
|
}
|
|
3906
3906
|
}
|
|
@@ -3913,7 +3913,7 @@ function tr() {
|
|
|
3913
3913
|
Rt,
|
|
3914
3914
|
{
|
|
3915
3915
|
colorRanges: h,
|
|
3916
|
-
setColorRanges:
|
|
3916
|
+
setColorRanges: c
|
|
3917
3917
|
}
|
|
3918
3918
|
)
|
|
3919
3919
|
] })
|
|
@@ -4233,7 +4233,7 @@ function mr() {
|
|
|
4233
4233
|
);
|
|
4234
4234
|
}
|
|
4235
4235
|
function ur({ authToken: s, onSave: n, onClose: a }) {
|
|
4236
|
-
const t = i((
|
|
4236
|
+
const t = i((c) => c.actions.setOnSave), l = i((c) => c.actions.setOnClose), h = w((c) => c.actions.setAuthToken);
|
|
4237
4237
|
return G(() => {
|
|
4238
4238
|
n && t(n), a && l(a);
|
|
4239
4239
|
}, [n, t, a, l]), G(() => {
|
|
@@ -4244,10 +4244,10 @@ function ur({ authToken: s, onSave: n, onClose: a }) {
|
|
|
4244
4244
|
] });
|
|
4245
4245
|
}
|
|
4246
4246
|
function xr() {
|
|
4247
|
-
w((
|
|
4248
|
-
const s = w((
|
|
4249
|
-
function l(
|
|
4250
|
-
s && (t(s,
|
|
4247
|
+
w((c) => c.selectedCardId);
|
|
4248
|
+
const s = w((c) => c.selectedSheetId), { setIsVisualEditing: n } = w((c) => c.actions), a = w((c) => c.isVisualEditing), t = w((c) => c.actions.updateFrame);
|
|
4249
|
+
function l(c) {
|
|
4250
|
+
s && (t(s, c), n(!1));
|
|
4251
4251
|
}
|
|
4252
4252
|
function h() {
|
|
4253
4253
|
n(!1);
|
|
@@ -4268,11 +4268,11 @@ function pr({
|
|
|
4268
4268
|
columns: s,
|
|
4269
4269
|
tableName: n
|
|
4270
4270
|
}) {
|
|
4271
|
-
const a = i((u) => u.selectedConnectionId), t = i((u) => u.selectedDatabaseName), l = i((u) => u.selectedSchemaName), h = i((u) => u.selectedTableName),
|
|
4271
|
+
const a = i((u) => u.selectedConnectionId), t = i((u) => u.selectedDatabaseName), l = i((u) => u.selectedSchemaName), h = i((u) => u.selectedTableName), c = w((u) => u.dashboard.filters) || [], r = w((u) => u.actions.addFilter), o = w((u) => u.actions.removeFilter), f = w(
|
|
4272
4272
|
(u) => u.actions.removeFilterValue
|
|
4273
4273
|
);
|
|
4274
4274
|
function m(u) {
|
|
4275
|
-
const S = me(u.column_name),
|
|
4275
|
+
const S = me(u.column_name), d = me(t || ""), x = me(l || ""), j = me(n), z = fs(
|
|
4276
4276
|
x,
|
|
4277
4277
|
j
|
|
4278
4278
|
), C = `${z}.${S}`;
|
|
@@ -4280,10 +4280,10 @@ function pr({
|
|
|
4280
4280
|
"find",
|
|
4281
4281
|
C,
|
|
4282
4282
|
j,
|
|
4283
|
-
|
|
4283
|
+
d
|
|
4284
4284
|
);
|
|
4285
|
-
const E =
|
|
4286
|
-
(v) => v.column === C && v.table === j && (v.database ===
|
|
4285
|
+
const E = c == null ? void 0 : c.find(
|
|
4286
|
+
(v) => v.column === C && v.table === j && (v.database === d || v.database === t)
|
|
4287
4287
|
);
|
|
4288
4288
|
if (E)
|
|
4289
4289
|
f(E.id), o(E.id);
|
|
@@ -4327,8 +4327,8 @@ function pr({
|
|
|
4327
4327
|
}
|
|
4328
4328
|
}
|
|
4329
4329
|
return /* @__PURE__ */ e.jsx("div", { className: "xbg-red-100 flex-1 basis-0 flex-col overflow-scroll px-3", children: s == null ? void 0 : s.map((u) => {
|
|
4330
|
-
const S =
|
|
4331
|
-
(
|
|
4330
|
+
const S = c == null ? void 0 : c.find(
|
|
4331
|
+
(d) => d.column === me(u.column_name) && d.table === h && d.database === t
|
|
4332
4332
|
);
|
|
4333
4333
|
return /* @__PURE__ */ e.jsx(
|
|
4334
4334
|
"div",
|