@databrainhq/plugin 0.17.9-beta.87 → 0.17.9-beta.88
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/{Accordion-BchG2sqH.mjs → Accordion-KS0wm76w.mjs} +1 -1
- package/dist/{CardChartSlot-BJI1-6Fi.mjs → CardChartSlot-f36Se2zp.mjs} +1037 -1136
- package/dist/{Chart-BPRIOdLy.mjs → Chart-Rc4bVXrP.mjs} +7 -7
- package/dist/{ChartTypePanel-C2dzGV9H.mjs → ChartTypePanel-DRtj1nYv.mjs} +8 -8
- package/dist/{CreateGlobalFilter-BW71NQ4I.mjs → CreateGlobalFilter-De08sbdM.mjs} +2 -2
- package/dist/{CreateMetricV2-zuJNx7dP.mjs → CreateMetricV2-JfzDCkrS.mjs} +114 -114
- package/dist/{HorizontalStackTable-KXmRc_vp.mjs → HorizontalStackTable-H35irNPp.mjs} +3 -3
- package/dist/{ManageMetricsV2-BFMvfYql.mjs → ManageMetricsV2-CW_ECoXq.mjs} +3 -3
- package/dist/{MetricCardV2-D3x8ndnd.mjs → MetricCardV2-Cc4BRMDI.mjs} +9 -9
- package/dist/{NoDataFound-CLh9t6Js.mjs → NoDataFound-ChRnPe__.mjs} +1 -1
- package/dist/{Panel-Boz3oznI.mjs → Panel-CPSFzQky.mjs} +1 -1
- package/dist/{PivotTableV2-Mv7SFrij.mjs → PivotTableV2-Dmju8J9j.mjs} +2 -2
- package/dist/{PivotTableV3-CKhiTUTm.mjs → PivotTableV3-BqxRB0lY.mjs} +4 -4
- package/dist/{Portal-BMZrD27q.mjs → Portal-CxaQIVhn.mjs} +16 -9
- package/dist/{RadioButton-BBuNPcbg.mjs → RadioButton-CEWeXTaM.mjs} +1 -1
- package/dist/{ScheduleEmail-BRQ_GGMS.mjs → ScheduleEmail-BUOR5Ndf.mjs} +6 -6
- package/dist/{SearchMetricData-Bp7RKjl3.mjs → SearchMetricData-QMT2fQYp.mjs} +13 -13
- package/dist/{SortPanel-DtAP__1J.mjs → SortPanel-g3-c65fe.mjs} +8 -8
- package/dist/{Table-Crhhoyf_.mjs → Table-Ug97LMpx.mjs} +508 -507
- package/dist/{TagInputField-SMeh_vdJ.mjs → TagInputField-dF1i5J37.mjs} +4 -4
- package/dist/{TextAreaField-osj4rqjy.mjs → TextAreaField-BGzFYxSp.mjs} +2 -2
- package/dist/{TimeSeriesSettings-B1vlydJ7.mjs → TimeSeriesSettings-C_aQh55Q.mjs} +2 -2
- package/dist/{clickActions-CYOdHxbd.mjs → clickActions-CXvfV7tl.mjs} +20 -20
- package/dist/{conditionalFormatting-9rsy1Jg2.mjs → conditionalFormatting-Di6YiWwV.mjs} +1 -1
- package/dist/{createGlobalFilter.module-5pE0s-Qa.mjs → createGlobalFilter.module-D0_y_Apc.mjs} +1 -1
- package/dist/{crossPointer-Ct4DXJEx.mjs → crossPointer-C8z2bN7w.mjs} +3 -3
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/{metric.mutation-ZNTU8Fds.mjs → metric.mutation-7Ng2k216.mjs} +1 -1
- package/dist/{pluginV3Request-B0e7_2OA.mjs → pluginV3Request-CobM2ThT.mjs} +1 -1
- package/dist/{renderer-CqawuMjq.mjs → renderer-BCjoR_9v.mjs} +1 -1
- package/dist/{timeseries-D7495x32.mjs → timeseries-DI-9AaNe.mjs} +1 -1
- package/dist/{useGuesTokenUsageLog-zvPUY22Q.mjs → useGuesTokenUsageLog-D2Uirt1W.mjs} +1 -1
- package/dist/{useLoadingDeadline-BZ90HIjy.mjs → useLoadingDeadline-CUtZ9eIH.mjs} +569 -458
- package/dist/{usePublishArchivedMetrics-CnxDtwAz.mjs → usePublishArchivedMetrics-DpS4nzrY.mjs} +2 -2
- package/dist/{useQuery-BCy3fWon.mjs → useQuery-BEqCyDgw.mjs} +1 -1
- package/dist/webcomponents-styles.es.js +1 -1
- package/dist/webcomponents.es.js +1592 -1578
- package/dist/webcomponents.umd.js +28 -28
- package/package.json +1 -1
|
@@ -2,19 +2,19 @@ import * as e from "react";
|
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
4
|
import { r as t } from "./cardStates-C6q56mQy.mjs";
|
|
5
|
-
import { dn as n, g as r, on as i } from "./pluginV3Request-
|
|
6
|
-
import { K as a } from "./metric.mutation-
|
|
7
|
-
import { Fr as o, Ga as s, Ji as c, Pi as l, Rr as u, Ua as d, Yt as f, _ as p, _i as m, _r as h, ea as g, g as _, gi as v, h as y, hi as b, io as x, ji as S, la as C, m as w, nn as T, u as E, vi as D, yi as O } from "./Portal-
|
|
5
|
+
import { dn as n, g as r, on as i } from "./pluginV3Request-CobM2ThT.mjs";
|
|
6
|
+
import { K as a } from "./metric.mutation-7Ng2k216.mjs";
|
|
7
|
+
import { Fr as o, Ga as s, Ji as c, Pi as l, Rr as u, Ua as d, Yt as f, _ as p, _i as m, _r as h, ea as g, g as _, gi as v, h as y, hi as b, io as x, ji as S, la as C, m as w, nn as T, u as E, vi as D, yi as O } from "./Portal-CxaQIVhn.mjs";
|
|
8
8
|
import { n as k } from "./charts-BCsWRROL.mjs";
|
|
9
|
-
import { T as ee, a as
|
|
10
|
-
import { E as
|
|
11
|
-
import {
|
|
12
|
-
import { a as L } from "./RadioButton-
|
|
9
|
+
import { T as ee, a as te, k as ne, s as re, t as A } from "./crossPointer-C8z2bN7w.mjs";
|
|
10
|
+
import { E as j, t as M, v as N, y as P } from "./ChartTypePanel-DRtj1nYv.mjs";
|
|
11
|
+
import { C as F, f as ie, h as I, p as ae, r as oe } from "./useLoadingDeadline-CUtZ9eIH.mjs";
|
|
12
|
+
import { a as L } from "./RadioButton-CEWeXTaM.mjs";
|
|
13
13
|
import { t as se } from "./shadowContainer-CigTOXz8.mjs";
|
|
14
|
-
import { a as R, c as z, i as ce, l as B, n as le, o as ue, r as de, t as fe } from "./SortPanel-
|
|
15
|
-
import { n as pe } from "./Accordion-
|
|
14
|
+
import { a as R, c as z, i as ce, l as B, n as le, o as ue, r as de, t as fe } from "./SortPanel-g3-c65fe.mjs";
|
|
15
|
+
import { n as pe } from "./Accordion-KS0wm76w.mjs";
|
|
16
16
|
import { t as V } from "./createLucideIcon-B89xLYvS.mjs";
|
|
17
|
-
import { B as me, C as he, F as ge, H as _e, I as ve, N as ye, R as be, S as xe, T as Se, U as Ce, V as H, _ as we, b as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, j as je, l as Me, m as Ne, o as Pe, p as U, r as Fe, s as W, u as G, v as Ie, w as Le, x as Re, y as ze, z as Be } from "./CardChartSlot-
|
|
17
|
+
import { B as me, C as he, F as ge, H as _e, I as ve, N as ye, R as be, S as xe, T as Se, U as Ce, V as H, _ as we, b as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, j as je, l as Me, m as Ne, o as Pe, p as U, r as Fe, s as W, u as G, v as Ie, w as Le, x as Re, y as ze, z as Be } from "./CardChartSlot-f36Se2zp.mjs";
|
|
18
18
|
import { _ as Ve, a as He, c as K, d as Ue, f as We, g as Ge, h as Ke, i as qe, m as Je, n as Ye, o as Xe, p as Ze, r as q, s as Qe, t as J, u as $e } from "./qaSelectors-OdHjlXAo.mjs";
|
|
19
19
|
import { A as et, E as tt, O as nt, T as rt, V as it, k as at, t as ot, w as st } from "./dist-BN9zta-l.mjs";
|
|
20
20
|
import { n as ct, t as lt } from "./x-aT15zz1n.mjs";
|
|
@@ -1094,7 +1094,7 @@ var Yr = Br, Xr = Hr, Zr = Wr, Qr = Kr, $r = () => /* @__PURE__ */ X("h1", {
|
|
|
1094
1094
|
config: w,
|
|
1095
1095
|
metricConfig: T,
|
|
1096
1096
|
datasetConfig: E,
|
|
1097
|
-
dataset:
|
|
1097
|
+
dataset: I(E)
|
|
1098
1098
|
};
|
|
1099
1099
|
}, ti = ({ className: e, orientation: t = "horizontal", ...n }) => /* @__PURE__ */ X(Yr, {
|
|
1100
1100
|
"data-slot": "tabs",
|
|
@@ -1274,7 +1274,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
1274
1274
|
}),
|
|
1275
1275
|
/* @__PURE__ */ X(le, { filtersPanelProps: h }),
|
|
1276
1276
|
/* @__PURE__ */ X(fe, { SortPanelProps: g }),
|
|
1277
|
-
/* @__PURE__ */ X(
|
|
1277
|
+
/* @__PURE__ */ X(M, { chartTypePanelProps: _ }),
|
|
1278
1278
|
/* @__PURE__ */ X(de, { ChartAppearancePanelProps: v })
|
|
1279
1279
|
] });
|
|
1280
1280
|
}, vi = qe("create-metric-header", "save", "reason"), yi = "Untitled metric", bi = ({ metricName: t, isSaved: n = !1, statusLabel: r = "Draft", title: i = "Create metric", onBack: a, backAriaPrefix: o = "Back to", onSave: s, saveLabel: c = "Save to dashboard", isLoading: l = !1, chartSettings: u, dimensions: d, metrics: f, isCustomTable: p, rows: m, className: h }) => {
|
|
@@ -1422,7 +1422,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
1422
1422
|
...n,
|
|
1423
1423
|
alias: n.dataMartColumnAlias || n.name
|
|
1424
1424
|
}
|
|
1425
|
-
}), [t, n]), i = Ei(n), { DragNodeRef: a } =
|
|
1425
|
+
}), [t, n]), i = Ei(n), { DragNodeRef: a } = N({
|
|
1426
1426
|
identifier: {
|
|
1427
1427
|
id: n.name,
|
|
1428
1428
|
type: "column"
|
|
@@ -1462,7 +1462,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
1462
1462
|
"data-slot": "data-rail-preview-column",
|
|
1463
1463
|
...i,
|
|
1464
1464
|
className: Y(Pi, "text-(--muted-foreground)"),
|
|
1465
|
-
title: [`${r} - select ${
|
|
1465
|
+
title: [`${r} - select ${F(e)} to use it`, t.description].filter(Boolean).join(": "),
|
|
1466
1466
|
onClick: () => n(e),
|
|
1467
1467
|
children: [/* @__PURE__ */ X(Ti, { kind: xi(t.dataType) }), /* @__PURE__ */ X("span", {
|
|
1468
1468
|
className: "truncate",
|
|
@@ -1479,7 +1479,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
1479
1479
|
className: "h-px flex-1 bg-(--border)"
|
|
1480
1480
|
})]
|
|
1481
1481
|
}), Ri = ({ node: e, isSelected: t, isExpanded: n, onToggleExpand: r, onSelectTable: i }) => {
|
|
1482
|
-
let { table: a, key: o, visibleColumns: s } = e, c =
|
|
1482
|
+
let { table: a, key: o, visibleColumns: s } = e, c = F(a), l = qe("data-rail-table-columns", o), u = ji(a);
|
|
1483
1483
|
return /* @__PURE__ */ Z("div", {
|
|
1484
1484
|
"data-slot": "data-rail-table-node",
|
|
1485
1485
|
className: "flex shrink-0 flex-col",
|
|
@@ -1560,7 +1560,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
1560
1560
|
let e = !y;
|
|
1561
1561
|
l === void 0 && v(e), u?.(e);
|
|
1562
1562
|
}, x = r ? ki(r) : "", S = p.trim().toLowerCase(), C = e.useMemo(() => n.map((e) => {
|
|
1563
|
-
let t = Mi(Ai(e)), n = !S ||
|
|
1563
|
+
let t = Mi(Ai(e)), n = !S || F(e).toLowerCase().includes(S) || e.tableName.toLowerCase().includes(S), r = S ? t.filter((e) => Di(e, S)) : t;
|
|
1564
1564
|
return {
|
|
1565
1565
|
table: e,
|
|
1566
1566
|
key: ki(e),
|
|
@@ -1582,7 +1582,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
1582
1582
|
...t,
|
|
1583
1583
|
[e]: !t[e]
|
|
1584
1584
|
}));
|
|
1585
|
-
}, O = n.length, k = n.reduce((e, t) => e + ji(t), 0), ee = C.reduce((e, t) => e + t.visibleColumns.length, 0),
|
|
1585
|
+
}, O = n.length, k = n.reduce((e, t) => e + ji(t), 0), ee = C.reduce((e, t) => e + t.visibleColumns.length, 0), te = S ? `${C.length} of ${O} tables, ${ee} of ${k} columns` : `${Oi(O, "table")}, ${Oi(k, "column")}`, ne = /* @__PURE__ */ X("button", {
|
|
1586
1586
|
type: "button",
|
|
1587
1587
|
...J("data-rail-collapse"),
|
|
1588
1588
|
"aria-expanded": !y,
|
|
@@ -1601,7 +1601,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
1601
1601
|
...J("data-rail"),
|
|
1602
1602
|
className: Y("flex h-full w-11 shrink-0 flex-col items-center gap-2 border-r border-(--border) bg-(--background) py-2", f),
|
|
1603
1603
|
children: [
|
|
1604
|
-
|
|
1604
|
+
ne,
|
|
1605
1605
|
/* @__PURE__ */ X("span", {
|
|
1606
1606
|
"aria-hidden": "true",
|
|
1607
1607
|
className: "h-px w-6 shrink-0 bg-(--border)"
|
|
@@ -1612,11 +1612,11 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
1612
1612
|
}),
|
|
1613
1613
|
/* @__PURE__ */ Z("span", {
|
|
1614
1614
|
...J("data-rail-count"),
|
|
1615
|
-
title:
|
|
1615
|
+
title: te,
|
|
1616
1616
|
className: "mt-auto text-caption tabular-nums text-(--muted-foreground)",
|
|
1617
1617
|
children: [O, /* @__PURE__ */ Z("span", {
|
|
1618
1618
|
className: "sr-only",
|
|
1619
|
-
children: [" ",
|
|
1619
|
+
children: [" ", te]
|
|
1620
1620
|
})]
|
|
1621
1621
|
})
|
|
1622
1622
|
]
|
|
@@ -1631,7 +1631,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
1631
1631
|
children: [/* @__PURE__ */ X("span", {
|
|
1632
1632
|
className: "truncate text-xs font-semibold tracking-tight text-(--foreground)",
|
|
1633
1633
|
children: "Data"
|
|
1634
|
-
}),
|
|
1634
|
+
}), ne]
|
|
1635
1635
|
}),
|
|
1636
1636
|
o ? /* @__PURE__ */ Z("div", {
|
|
1637
1637
|
...J("data-rail-datasource"),
|
|
@@ -1708,7 +1708,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
1708
1708
|
children: /* @__PURE__ */ X("span", {
|
|
1709
1709
|
...J("data-rail-count"),
|
|
1710
1710
|
className: "truncate text-caption tabular-nums text-(--muted-foreground)",
|
|
1711
|
-
children:
|
|
1711
|
+
children: te
|
|
1712
1712
|
})
|
|
1713
1713
|
})
|
|
1714
1714
|
]
|
|
@@ -1842,7 +1842,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
1842
1842
|
...t.draggableItemData.column,
|
|
1843
1843
|
alias: t.alias
|
|
1844
1844
|
}
|
|
1845
|
-
}), [t]), { DragNodeRef: E, isDragging: D } =
|
|
1845
|
+
}), [t]), { DragNodeRef: E, isDragging: D } = N({
|
|
1846
1846
|
identifier: {
|
|
1847
1847
|
id: t.alias,
|
|
1848
1848
|
type: C
|
|
@@ -1850,22 +1850,22 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
1850
1850
|
data: w,
|
|
1851
1851
|
modifiers: { highlightDrop: { onDrag: !0 } },
|
|
1852
1852
|
CustomDragPreview: /* @__PURE__ */ X(Zi, { label: g })
|
|
1853
|
-
}), k = xi(t.datatype), ee = Si[k], [
|
|
1854
|
-
|
|
1853
|
+
}), k = xi(t.datatype), ee = Si[k], [te, ne] = e.useState(!1), [re, A] = e.useState("list"), j = e.useRef(null), [M, P] = e.useState(t.percentileValue ?? .5), [F, ie] = e.useState([]), [I, ae] = e.useState(t.functionConfiguration?.dateFormat ?? ""), oe = (e) => {
|
|
1854
|
+
ne(e), e || (A("list"), j.current = null);
|
|
1855
1855
|
}, L = (e, r) => {
|
|
1856
|
-
Yi.has(e.value) ? (r.preventDefault(),
|
|
1856
|
+
Yi.has(e.value) ? (r.preventDefault(), j.current = e, P(t.percentileValue ?? .5), l && f.length && F.length === 0 && ie(d.filter((e) => f.some((t) => t.name === e.dimension?.columnName))), A("percentile")) : n === "DIMENSION" && e.value === "date format" ? (r.preventDefault(), j.current = e, ae(t.functionConfiguration?.dateFormat ?? ""), A("dateFormat")) : o({
|
|
1857
1857
|
column: t,
|
|
1858
1858
|
helperFunction: e,
|
|
1859
1859
|
type: n
|
|
1860
1860
|
});
|
|
1861
1861
|
}, se = () => {
|
|
1862
|
-
let e =
|
|
1862
|
+
let e = j.current;
|
|
1863
1863
|
e && (o({
|
|
1864
1864
|
column: t,
|
|
1865
1865
|
helperFunction: e,
|
|
1866
1866
|
type: "METRIC",
|
|
1867
|
-
percentileValue:
|
|
1868
|
-
partitionByColumns:
|
|
1867
|
+
percentileValue: M,
|
|
1868
|
+
partitionByColumns: F.map((e) => {
|
|
1869
1869
|
if (!e.dimension) return;
|
|
1870
1870
|
let t = f.find((t) => t.name === e.dimension?.columnName);
|
|
1871
1871
|
return {
|
|
@@ -1875,12 +1875,12 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
1875
1875
|
}).filter((e) => !!e)
|
|
1876
1876
|
}), oe(!1));
|
|
1877
1877
|
}, R = () => {
|
|
1878
|
-
let e =
|
|
1878
|
+
let e = j.current;
|
|
1879
1879
|
e && (o({
|
|
1880
1880
|
column: t,
|
|
1881
1881
|
helperFunction: e,
|
|
1882
1882
|
type: "DIMENSION",
|
|
1883
|
-
functionConfiguration: { dateFormat:
|
|
1883
|
+
functionConfiguration: { dateFormat: I }
|
|
1884
1884
|
}), oe(!1));
|
|
1885
1885
|
}, z = !["ARITHMETIC", "CUSTOM"].includes(t.type), [ce, B] = e.useState(!1), [le, ue] = e.useState(t.alias), [de, fe] = e.useState(t.cast ?? u[u.length - 1]), pe = e.useRef(!1), V = e.useId(), me = `${V}-rename-input`, ge = `${V}-partition`, _e = `${V}-percentile-value`, ye = `${V}-date-format-value`, be = (e) => {
|
|
1886
1886
|
B(e), e && (ue(t.alias), fe(t.cast ?? u[u.length - 1]), pe.current = !1);
|
|
@@ -2024,7 +2024,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
2024
2024
|
})
|
|
2025
2025
|
}), /* @__PURE__ */ X(De, { children: S.tooltip })] }) }) : null]
|
|
2026
2026
|
}) : b.length > 0 ? /* @__PURE__ */ Z(xe, {
|
|
2027
|
-
open:
|
|
2027
|
+
open: te,
|
|
2028
2028
|
onOpenChange: oe,
|
|
2029
2029
|
children: [/* @__PURE__ */ X(je, {
|
|
2030
2030
|
asChild: !0,
|
|
@@ -2044,7 +2044,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
2044
2044
|
})
|
|
2045
2045
|
}), /* @__PURE__ */ X(he, {
|
|
2046
2046
|
align: "start",
|
|
2047
|
-
children:
|
|
2047
|
+
children: re === "list" ? b.map((e) => {
|
|
2048
2048
|
let t = e.value === "distinct" ? e.tooltip : void 0;
|
|
2049
2049
|
return /* @__PURE__ */ X(Se, {
|
|
2050
2050
|
...J(...H, "function", e.value),
|
|
@@ -2059,7 +2059,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
2059
2059
|
}) : null]
|
|
2060
2060
|
})
|
|
2061
2061
|
}, e.value);
|
|
2062
|
-
}) :
|
|
2062
|
+
}) : re === "percentile" ? /* @__PURE__ */ Z("div", {
|
|
2063
2063
|
className: "flex w-56 flex-col gap-2 p-1",
|
|
2064
2064
|
children: [
|
|
2065
2065
|
l ? /* @__PURE__ */ Z("div", {
|
|
@@ -2073,13 +2073,13 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
2073
2073
|
className: "px-1 py-1 text-xs text-(--muted-foreground)",
|
|
2074
2074
|
children: "No dimensions available"
|
|
2075
2075
|
}) : d.map((e) => {
|
|
2076
|
-
let t =
|
|
2076
|
+
let t = F.some((t) => t.value === e.value), n = `${ge}-${e.value}`;
|
|
2077
2077
|
return /* @__PURE__ */ Z("label", {
|
|
2078
2078
|
htmlFor: n,
|
|
2079
2079
|
className: "flex cursor-pointer items-center gap-2 rounded-(--radius-xs) px-1 py-1 text-xs hover:bg-(--accent)",
|
|
2080
2080
|
children: [/* @__PURE__ */ X(Qe, {
|
|
2081
2081
|
checked: t,
|
|
2082
|
-
onCheckedChange: (t) =>
|
|
2082
|
+
onCheckedChange: (t) => ie((n) => t ? [...n, e] : n.filter((t) => t.value !== e.value)),
|
|
2083
2083
|
...J(...H, "partition", e.value),
|
|
2084
2084
|
id: n
|
|
2085
2085
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -2101,10 +2101,10 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
2101
2101
|
min: 0,
|
|
2102
2102
|
max: 1,
|
|
2103
2103
|
step: .01,
|
|
2104
|
-
value:
|
|
2104
|
+
value: M,
|
|
2105
2105
|
onChange: (e) => {
|
|
2106
2106
|
let t = Number(e.target.value);
|
|
2107
|
-
Number.isNaN(t) && (t = 0), t < 0 && (t = 0), t > 1 && (t = 1),
|
|
2107
|
+
Number.isNaN(t) && (t = 0), t < 0 && (t = 0), t > 1 && (t = 1), P(t);
|
|
2108
2108
|
},
|
|
2109
2109
|
...J(...H, "percentile-value"),
|
|
2110
2110
|
id: _e,
|
|
@@ -2119,14 +2119,14 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
2119
2119
|
size: "sm",
|
|
2120
2120
|
className: "cta-secondary",
|
|
2121
2121
|
...J(...H, "percentile-cancel"),
|
|
2122
|
-
onClick: () =>
|
|
2122
|
+
onClick: () => A("list"),
|
|
2123
2123
|
children: "Cancel"
|
|
2124
2124
|
}), /* @__PURE__ */ X(K, {
|
|
2125
2125
|
type: "button",
|
|
2126
2126
|
variant: "secondary",
|
|
2127
2127
|
size: "sm",
|
|
2128
2128
|
className: "cta-primary",
|
|
2129
|
-
disabled: l &&
|
|
2129
|
+
disabled: l && F.length === 0,
|
|
2130
2130
|
...J(...H, "percentile-save"),
|
|
2131
2131
|
onClick: se,
|
|
2132
2132
|
children: "Save"
|
|
@@ -2143,7 +2143,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
2143
2143
|
children: "Date format"
|
|
2144
2144
|
}), /* @__PURE__ */ X(He, {
|
|
2145
2145
|
type: "text",
|
|
2146
|
-
value:
|
|
2146
|
+
value: I,
|
|
2147
2147
|
onChange: (e) => ae(e.target.value),
|
|
2148
2148
|
placeholder: "%Y-%m-%d, yyyy-mm-dd",
|
|
2149
2149
|
...J(...H, "date-format-value"),
|
|
@@ -2158,7 +2158,7 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
2158
2158
|
size: "sm",
|
|
2159
2159
|
className: "cta-secondary",
|
|
2160
2160
|
...J(...H, "date-format-cancel"),
|
|
2161
|
-
onClick: () =>
|
|
2161
|
+
onClick: () => A("list"),
|
|
2162
2162
|
children: "Cancel"
|
|
2163
2163
|
}), /* @__PURE__ */ X(K, {
|
|
2164
2164
|
type: "button",
|
|
@@ -2262,29 +2262,29 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
2262
2262
|
a,
|
|
2263
2263
|
r,
|
|
2264
2264
|
i
|
|
2265
|
-
]), { setDropNodeRef:
|
|
2265
|
+
]), { setDropNodeRef: te, dragStatus: ne } = B({
|
|
2266
2266
|
identifier: ha,
|
|
2267
2267
|
events: { onDrop: ee("METRIC") },
|
|
2268
2268
|
modifiers: p
|
|
2269
|
-
}), { setDropNodeRef:
|
|
2269
|
+
}), { setDropNodeRef: re, dragStatus: A } = B({
|
|
2270
2270
|
identifier: ma,
|
|
2271
2271
|
events: { onDrop: ee("DIMENSION") },
|
|
2272
2272
|
modifiers: f
|
|
2273
|
-
}), { dndState:
|
|
2274
|
-
if (!
|
|
2275
|
-
if (e === "DIMENSION" ? ["dimensions", "aggregate_dimensions"].includes(
|
|
2273
|
+
}), { dndState: j } = P(), M = !!j.active, N = j.active?.identifier?.type, F = (e, t) => {
|
|
2274
|
+
if (!M) return { state: "idle" };
|
|
2275
|
+
if (e === "DIMENSION" ? ["dimensions", "aggregate_dimensions"].includes(N || "") : ["metrics", "aggregate_metrics"].includes(N || "")) return { state: t ? "over" : "armed" };
|
|
2276
2276
|
let n = ce({
|
|
2277
2277
|
chartType: m.chartType,
|
|
2278
2278
|
target: e,
|
|
2279
2279
|
selectedDims: r,
|
|
2280
2280
|
selectedMetrics: i,
|
|
2281
|
-
sourceType:
|
|
2281
|
+
sourceType: N
|
|
2282
2282
|
});
|
|
2283
2283
|
return n.canDrop ? { state: t ? "over" : "armed" } : t ? {
|
|
2284
2284
|
state: "rejected",
|
|
2285
2285
|
refusal: n.warning
|
|
2286
2286
|
} : { state: "idle" };
|
|
2287
|
-
},
|
|
2287
|
+
}, ie = F("METRIC", ne.isDragOver), I = F("DIMENSION", A.isDragOver), ae = ie.state === "rejected" ? ie.refusal : void 0, oe = I.state === "rejected" ? I.refusal : void 0, L = ce({
|
|
2288
2288
|
chartType: m.chartType,
|
|
2289
2289
|
target: "DIMENSION",
|
|
2290
2290
|
selectedDims: r,
|
|
@@ -2330,9 +2330,9 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
2330
2330
|
}), "Measures"]
|
|
2331
2331
|
}),
|
|
2332
2332
|
/* @__PURE__ */ Z("div", {
|
|
2333
|
-
ref:
|
|
2333
|
+
ref: te,
|
|
2334
2334
|
...q("field-zone", "measures"),
|
|
2335
|
-
className: Y(sa, ca[
|
|
2335
|
+
className: Y(sa, ca[ie.state]),
|
|
2336
2336
|
children: [
|
|
2337
2337
|
ae ? /* @__PURE__ */ Z("span", {
|
|
2338
2338
|
...q("field-zone", "measures", "refused"),
|
|
@@ -2429,9 +2429,9 @@ var hi = ({ field: e }) => /* @__PURE__ */ Z("span", {
|
|
|
2429
2429
|
}), "Dimensions"]
|
|
2430
2430
|
}),
|
|
2431
2431
|
/* @__PURE__ */ Z("div", {
|
|
2432
|
-
ref:
|
|
2432
|
+
ref: re,
|
|
2433
2433
|
...q("field-zone", "dimensions"),
|
|
2434
|
-
className: Y(sa, ca[
|
|
2434
|
+
className: Y(sa, ca[I.state]),
|
|
2435
2435
|
children: [
|
|
2436
2436
|
oe ? /* @__PURE__ */ Z("span", {
|
|
2437
2437
|
...q("field-zone", "dimensions", "refused"),
|
|
@@ -2741,7 +2741,7 @@ var Ta = ({ rows: t, qaEntity: n }) => {
|
|
|
2741
2741
|
}) : null
|
|
2742
2742
|
]
|
|
2743
2743
|
});
|
|
2744
|
-
}, Ea = e.lazy(async () => ({ default: (await import("./charts-BCsWRROL.mjs").then((e) => e.t)).DbnChart })), Da = e.lazy(async () => ({ default: (await import("./Chart-
|
|
2744
|
+
}, Ea = e.lazy(async () => ({ default: (await import("./charts-BCsWRROL.mjs").then((e) => e.t)).DbnChart })), Da = e.lazy(async () => ({ default: (await import("./Chart-Rc4bVXrP.mjs").then((e) => e.n)).Chart })), Oa = Object.freeze({
|
|
2745
2745
|
isLoading: !1,
|
|
2746
2746
|
error: "",
|
|
2747
2747
|
data: [],
|
|
@@ -2788,30 +2788,30 @@ var Ma = ({ data: t, isLoading: n, error: r, errorView: i, chartSettings: a, dim
|
|
|
2788
2788
|
D,
|
|
2789
2789
|
n
|
|
2790
2790
|
]);
|
|
2791
|
-
let k = D ? t : O.current?.rows,
|
|
2792
|
-
...
|
|
2793
|
-
chartColors: p ??
|
|
2794
|
-
}), [
|
|
2795
|
-
|
|
2791
|
+
let k = D ? t : O.current?.rows, j = D ? a : O.current?.settings ?? a, M = !!k && k.length > 0, N = e.useMemo(() => ({
|
|
2792
|
+
...j,
|
|
2793
|
+
chartColors: p ?? j?.chartColors
|
|
2794
|
+
}), [j, p]), P = e.useMemo(() => !M || ja(a.chartType) ? null : ne(N, k), [
|
|
2795
|
+
M,
|
|
2796
2796
|
a.chartType,
|
|
2797
|
-
|
|
2797
|
+
N,
|
|
2798
2798
|
k
|
|
2799
|
-
]),
|
|
2800
|
-
...
|
|
2801
|
-
tooltipSettings:
|
|
2802
|
-
categoryField:
|
|
2803
|
-
chartZoom:
|
|
2804
|
-
percentageSize:
|
|
2805
|
-
repulsion:
|
|
2806
|
-
isUseAsDifference:
|
|
2807
|
-
axisPointerStyle:
|
|
2808
|
-
crossPointer:
|
|
2809
|
-
axisVisibility:
|
|
2799
|
+
]), F = e.useMemo(() => te(m, {
|
|
2800
|
+
...re(N?.customSettings),
|
|
2801
|
+
tooltipSettings: N?.tooltipSettings,
|
|
2802
|
+
categoryField: P?.type === "gaugeV2" ? null : N?.xAxis,
|
|
2803
|
+
chartZoom: N?.customSettings?.chartZoom,
|
|
2804
|
+
percentageSize: N?.percentageSize,
|
|
2805
|
+
repulsion: N?.customSettings?.repulsion,
|
|
2806
|
+
isUseAsDifference: N?.waterfallSettings?.isUseAsDifference,
|
|
2807
|
+
axisPointerStyle: N?.customSettings?.axisPointerStyle,
|
|
2808
|
+
crossPointer: A(N?.customSettings, N?.chartType),
|
|
2809
|
+
axisVisibility: N?.customSettings
|
|
2810
2810
|
}), [
|
|
2811
2811
|
m,
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
]),
|
|
2812
|
+
N,
|
|
2813
|
+
P?.type
|
|
2814
|
+
]), I = e.useMemo(() => ja(a.chartType) ? void 0 : ee(N), [a.chartType, N]), [ae, oe] = e.useState(null), L = ie(ae), se = o.map((e) => e.label || e.alias || e.name), R = M && l && se.length > 0 && !Aa.has(a.chartType), z = {
|
|
2815
2815
|
customMessages: _,
|
|
2816
2816
|
translationDictionary: v,
|
|
2817
2817
|
selectedLanguage: y
|
|
@@ -2826,7 +2826,7 @@ var Ma = ({ data: t, isLoading: n, error: r, errorView: i, chartSettings: a, dim
|
|
|
2826
2826
|
...z
|
|
2827
2827
|
})
|
|
2828
2828
|
}) });
|
|
2829
|
-
else if (
|
|
2829
|
+
else if (M) {
|
|
2830
2830
|
let t = k;
|
|
2831
2831
|
B = /* @__PURE__ */ Z(mt, { children: [R ? /* @__PURE__ */ X(Na, {
|
|
2832
2832
|
dimensionLabels: se,
|
|
@@ -2839,16 +2839,16 @@ var Ma = ({ data: t, isLoading: n, error: r, errorView: i, chartSettings: a, dim
|
|
|
2839
2839
|
children: [ja(a.chartType) ? /* @__PURE__ */ X(Ta, {
|
|
2840
2840
|
rows: t,
|
|
2841
2841
|
qaEntity: "preview-pane"
|
|
2842
|
-
}) :
|
|
2842
|
+
}) : P ? /* @__PURE__ */ X(e.Suspense, {
|
|
2843
2843
|
fallback: /* @__PURE__ */ X($, { children: /* @__PURE__ */ X(W, {}) }),
|
|
2844
2844
|
children: /* @__PURE__ */ X(Ea, {
|
|
2845
|
-
type:
|
|
2846
|
-
data:
|
|
2847
|
-
appearance:
|
|
2845
|
+
type: P.type,
|
|
2846
|
+
data: P.data,
|
|
2847
|
+
appearance: F,
|
|
2848
2848
|
applyDensity: h(),
|
|
2849
|
-
colorBy:
|
|
2850
|
-
valueFormatter:
|
|
2851
|
-
chartColors:
|
|
2849
|
+
colorBy: P.colorBy,
|
|
2850
|
+
valueFormatter: I,
|
|
2851
|
+
chartColors: N.chartColors,
|
|
2852
2852
|
className: "h-full w-full"
|
|
2853
2853
|
})
|
|
2854
2854
|
}) : Fe(a.chartType) ? /* @__PURE__ */ X(e.Suspense, {
|
|
@@ -2858,10 +2858,10 @@ var Ma = ({ data: t, isLoading: n, error: r, errorView: i, chartSettings: a, dim
|
|
|
2858
2858
|
...q("preview-pane", "legacy-chart"),
|
|
2859
2859
|
className: "h-full w-full",
|
|
2860
2860
|
children: /* @__PURE__ */ X(Da, {
|
|
2861
|
-
chartOptions:
|
|
2861
|
+
chartOptions: N,
|
|
2862
2862
|
data: t,
|
|
2863
2863
|
chartAppearance: m,
|
|
2864
|
-
colors:
|
|
2864
|
+
colors: N.chartColors,
|
|
2865
2865
|
metricCardColor: "transparent",
|
|
2866
2866
|
chartFontSettings: L,
|
|
2867
2867
|
pivotDrillState: Oa,
|
|
@@ -2983,9 +2983,9 @@ var Fa = (t) => {
|
|
|
2983
2983
|
noDataImg: p,
|
|
2984
2984
|
...D
|
|
2985
2985
|
}), /* @__PURE__ */ X(ba, { qaEntity: "preview-table" })] });
|
|
2986
|
-
let ee = E ? Object.keys(T[0] ?? {}).length : 0,
|
|
2987
|
-
|
|
2988
|
-
let
|
|
2986
|
+
let ee = E ? Object.keys(T[0] ?? {}).length : 0, te;
|
|
2987
|
+
te = i ? "" : r && !E ? "Running query..." : E ? `${T.length.toLocaleString()} rows` : "No results yet";
|
|
2988
|
+
let ne = E ? `${T.length.toLocaleString()} ${T.length === 1 ? "row" : "rows"} \u00D7 ${ee} ${ee === 1 ? "column" : "columns"}` : "No rows to display", re = !i && !(S === "table" && E);
|
|
2989
2989
|
return /* @__PURE__ */ Z(ti, {
|
|
2990
2990
|
value: S,
|
|
2991
2991
|
onValueChange: (e) => C(e),
|
|
@@ -3021,7 +3021,7 @@ var Fa = (t) => {
|
|
|
3021
3021
|
...q("preview-table", "row-count"),
|
|
3022
3022
|
"aria-live": "polite",
|
|
3023
3023
|
className: "min-w-0 flex-1 truncate text-center text-caption tabular-nums text-(--muted-foreground)",
|
|
3024
|
-
children:
|
|
3024
|
+
children: te
|
|
3025
3025
|
}),
|
|
3026
3026
|
/* @__PURE__ */ Z("div", {
|
|
3027
3027
|
className: "flex shrink-0 items-center gap-1",
|
|
@@ -3074,12 +3074,12 @@ var Fa = (t) => {
|
|
|
3074
3074
|
children: k
|
|
3075
3075
|
})
|
|
3076
3076
|
}),
|
|
3077
|
-
|
|
3077
|
+
re ? /* @__PURE__ */ X("div", {
|
|
3078
3078
|
...q("preview-table", "footer"),
|
|
3079
3079
|
className: "flex h-7 shrink-0 items-center border-t border-(--border) px-3 text-caption tabular-nums text-(--muted-foreground)",
|
|
3080
3080
|
children: /* @__PURE__ */ X("span", {
|
|
3081
3081
|
className: "truncate",
|
|
3082
|
-
children:
|
|
3082
|
+
children: ne
|
|
3083
3083
|
})
|
|
3084
3084
|
}) : null
|
|
3085
3085
|
]
|
|
@@ -3187,16 +3187,16 @@ function Va(e, t) {
|
|
|
3187
3187
|
return e ? t ? "configure-fields" : "ready-to-save" : "select-table";
|
|
3188
3188
|
}
|
|
3189
3189
|
var Ha = (t) => {
|
|
3190
|
-
let { clientId: a, companyId: o, isLiveMode: s, externalDashboardId: c, userProvidedDashboardId: l, chartColors: u, colorPalettes: f, setShowMetricCreateModal: p, isShowMetricCreateModal: m, metric: h, metricData: g, workspaceId: _, token: v, clientColumnType: y, tenancyType: b, datasourceId: S, setEditMetric: C, shouldFitFullScreen: w, onServerEvent: T, refetchDashboardData: E, saveDashLayout: D, isIncrementalJoin: O, customChartSettings: k, showAllChartSettings: ee, showChartClickSettings:
|
|
3191
|
-
if (e === !1 &&
|
|
3192
|
-
let e =
|
|
3190
|
+
let { clientId: a, companyId: o, isLiveMode: s, externalDashboardId: c, userProvidedDashboardId: l, chartColors: u, colorPalettes: f, setShowMetricCreateModal: p, isShowMetricCreateModal: m, metric: h, metricData: g, workspaceId: _, token: v, clientColumnType: y, tenancyType: b, datasourceId: S, setEditMetric: C, shouldFitFullScreen: w, onServerEvent: T, refetchDashboardData: E, saveDashLayout: D, isIncrementalJoin: O, customChartSettings: k, showAllChartSettings: ee, showChartClickSettings: te, allowedChartTypes: ne, filters: re } = t, A = e.useRef(!1), M = e.useRef(null), N = e.useCallback((e) => {
|
|
3191
|
+
if (e === !1 && A.current) {
|
|
3192
|
+
let e = M.current == null ? 0 : Math.round(performance.now() - M.current);
|
|
3193
3193
|
gt(za, ht.CREATE_METRIC_SAVED, {
|
|
3194
3194
|
success: !0,
|
|
3195
3195
|
latencyMs: e
|
|
3196
|
-
}),
|
|
3196
|
+
}), A.current = !1, M.current = null;
|
|
3197
3197
|
}
|
|
3198
3198
|
p(e);
|
|
3199
|
-
}, [p]), { metricConfig:
|
|
3199
|
+
}, [p]), { metricConfig: P, dataset: ie } = ei({
|
|
3200
3200
|
clientId: a,
|
|
3201
3201
|
companyId: o,
|
|
3202
3202
|
isLiveMode: s,
|
|
@@ -3205,7 +3205,7 @@ var Ha = (t) => {
|
|
|
3205
3205
|
chartColors: u,
|
|
3206
3206
|
colorPalettes: f,
|
|
3207
3207
|
isShowMetricCreateModal: m,
|
|
3208
|
-
setShowMetricCreateModal:
|
|
3208
|
+
setShowMetricCreateModal: N,
|
|
3209
3209
|
metric: h,
|
|
3210
3210
|
metricData: g,
|
|
3211
3211
|
workspaceId: _,
|
|
@@ -3221,9 +3221,9 @@ var Ha = (t) => {
|
|
|
3221
3221
|
isIncrementalJoin: O,
|
|
3222
3222
|
customChartSettings: k,
|
|
3223
3223
|
showAllChartSettings: ee,
|
|
3224
|
-
allowedChartTypes:
|
|
3225
|
-
filters:
|
|
3226
|
-
}), { isLoading:
|
|
3224
|
+
allowedChartTypes: ne,
|
|
3225
|
+
filters: re
|
|
3226
|
+
}), { isLoading: I, chartSettings: L, setShowSaveMetricModal: R, data: z, error: ce, setShowChartCustomProperties: B, isShowChartType: le, setShowChartType: ue, isShowSaveMetricModal: de, updateExternalMetric: fe, createExternalMetric: pe, saveError: V, setChartSettings: me, isShowChartCustomProperties: he, setBarRadius: ge, isShowSortPanel: _e, setShowSortPanel: ve, isShowFilters: ye, setShowFilters: be, isCreatingMetric: xe, enabledCharts: Se, setResetPallete: Ce, dbName: H, drillDownSettings: we, limit: Te, setLimit: Ee, clickBehaviourConfigs: De, setClickBehaviourConfigs: Oe } = P, { currentSelectedTable: ke, joinTableOption: Ae, setCurrentSelectedTable: je, configuration: Me, functionOptions: Ne, companySubsetTableList: Pe, selectedMainTable: U, setSelectedMainTable: Fe, selectedDims: W, selectedMetrics: G, onDropColumn: Ie, dimModifiers: Le, metricModifiers: Re, onChangeAlias: ze, onChangeHelperFunction: Be, onRemoveColumn: Ve, selectedTable: He, createdSorts: K, setCreatedSorts: Ue, filterColumnOptions: We, onApplyFilter: Ge, onApplySort: Ke, sortColumnOptions: qe, setCreatedFilters: Je, createdFilters: Ye, editorRef: Xe, getFilterDropDownType: Ze, setChartFields: q, resetCharSettings: Qe, onSelectPivotTable: J, onChangeDrillDown: $e, drillFilters: et, selectedJoinColumnOptions: tt, onChangeLimit: nt, onChangeChartType: rt, arithmeticColumnOptions: it, onSaveArithMetricOption: at, builderError: ot } = ie, st = e.useMemo(() => f ? f.some((e) => j(e.colors, u)) ? f : [{
|
|
3227
3227
|
name: "Default",
|
|
3228
3228
|
colors: u ?? []
|
|
3229
3229
|
}, ...f] : [{
|
|
@@ -3279,34 +3279,34 @@ var Ha = (t) => {
|
|
|
3279
3279
|
ue,
|
|
3280
3280
|
T
|
|
3281
3281
|
]), dt = e.useCallback((e) => {
|
|
3282
|
-
Fe(e), T?.(n,
|
|
3282
|
+
Fe(e), T?.(n, F(e));
|
|
3283
3283
|
}, [Fe, T]), ft = e.useCallback(() => {
|
|
3284
3284
|
T?.(i);
|
|
3285
3285
|
}, [T]), pt = e.useCallback((e, t) => {
|
|
3286
|
-
|
|
3286
|
+
A.current = !0, M.current = performance.now(), h ? fe(e, t) : pe(e);
|
|
3287
3287
|
}, [
|
|
3288
3288
|
h,
|
|
3289
3289
|
fe,
|
|
3290
3290
|
pe
|
|
3291
3291
|
]);
|
|
3292
3292
|
e.useEffect(() => {
|
|
3293
|
-
if (
|
|
3294
|
-
let e =
|
|
3293
|
+
if (A.current && V) {
|
|
3294
|
+
let e = M.current == null ? 0 : Math.round(performance.now() - M.current);
|
|
3295
3295
|
gt(za, ht.CREATE_METRIC_SAVED, {
|
|
3296
3296
|
success: !1,
|
|
3297
3297
|
latencyMs: e
|
|
3298
|
-
}),
|
|
3298
|
+
}), A.current = !1, M.current = null;
|
|
3299
3299
|
}
|
|
3300
3300
|
}, [V]);
|
|
3301
3301
|
let _t = e.useCallback(() => {
|
|
3302
3302
|
let e = Va(U, lt);
|
|
3303
|
-
gt(za, ht.CREATE_METRIC_ABANDONED, { step: e }),
|
|
3303
|
+
gt(za, ht.CREATE_METRIC_ABANDONED, { step: e }), N(!1), C?.(void 0);
|
|
3304
3304
|
}, [
|
|
3305
3305
|
U,
|
|
3306
3306
|
lt,
|
|
3307
|
-
|
|
3307
|
+
N,
|
|
3308
3308
|
C
|
|
3309
|
-
]), vt = x(), yt = e.useMemo(() =>
|
|
3309
|
+
]), vt = x(), yt = e.useMemo(() => oe(vt.data), [vt.data]), bt = vt.data ? h ? yt.canEditMetric : yt.canCreateMetric : !0;
|
|
3310
3310
|
if (!m || !bt) return null;
|
|
3311
3311
|
let xt = !!z, St = !!(W.length || G.length), Ct = L.chartColors?.length ? L.chartColors : u;
|
|
3312
3312
|
return /* @__PURE__ */ X(mt, { children: /* @__PURE__ */ Z("div", {
|
|
@@ -3321,7 +3321,7 @@ var Ha = (t) => {
|
|
|
3321
3321
|
title: h ? "Update Metric" : "Create Metric",
|
|
3322
3322
|
onBack: _t,
|
|
3323
3323
|
onSave: () => R(!0),
|
|
3324
|
-
isLoading:
|
|
3324
|
+
isLoading: I,
|
|
3325
3325
|
chartSettings: L,
|
|
3326
3326
|
dimensions: W,
|
|
3327
3327
|
metrics: G,
|
|
@@ -3363,7 +3363,7 @@ var Ha = (t) => {
|
|
|
3363
3363
|
chartSettings: L,
|
|
3364
3364
|
hasData: xt,
|
|
3365
3365
|
hasSelectedFields: St,
|
|
3366
|
-
isLoading:
|
|
3366
|
+
isLoading: I,
|
|
3367
3367
|
limit: Te,
|
|
3368
3368
|
setLimit: Ee,
|
|
3369
3369
|
onChangeLimit: nt,
|
|
@@ -3377,7 +3377,7 @@ var Ha = (t) => {
|
|
|
3377
3377
|
filtersPanelProps: {
|
|
3378
3378
|
token: v,
|
|
3379
3379
|
tenancyType: b,
|
|
3380
|
-
globalFilters:
|
|
3380
|
+
globalFilters: re,
|
|
3381
3381
|
clientColumnType: y,
|
|
3382
3382
|
clientId: a,
|
|
3383
3383
|
joinTableOption: Ae,
|
|
@@ -3419,7 +3419,7 @@ var Ha = (t) => {
|
|
|
3419
3419
|
resultData: z,
|
|
3420
3420
|
onChartChange: ut,
|
|
3421
3421
|
selectedChart: L.chartType,
|
|
3422
|
-
allowedChartTypes:
|
|
3422
|
+
allowedChartTypes: ne
|
|
3423
3423
|
},
|
|
3424
3424
|
chartAppearancePanelProps: {
|
|
3425
3425
|
setChartSettings: me,
|
|
@@ -3438,7 +3438,7 @@ var Ha = (t) => {
|
|
|
3438
3438
|
},
|
|
3439
3439
|
customChartSettings: k,
|
|
3440
3440
|
showAllChartSettings: ee,
|
|
3441
|
-
showChartClickSettings:
|
|
3441
|
+
showChartClickSettings: te
|
|
3442
3442
|
}
|
|
3443
3443
|
}),
|
|
3444
3444
|
/* @__PURE__ */ X(Fa, {
|
|
@@ -3446,9 +3446,9 @@ var Ha = (t) => {
|
|
|
3446
3446
|
onOpenChartType: () => ue(!0),
|
|
3447
3447
|
isChartTypePanelOpen: le,
|
|
3448
3448
|
data: z,
|
|
3449
|
-
isLoading:
|
|
3449
|
+
isLoading: I,
|
|
3450
3450
|
error: ce,
|
|
3451
|
-
errorView:
|
|
3451
|
+
errorView: ae(ce, ot),
|
|
3452
3452
|
chartSettings: L,
|
|
3453
3453
|
dimensions: W,
|
|
3454
3454
|
metrics: G,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { memo as e, useEffect as t, useMemo as n, useState as r } from "react";
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
|
-
import { Ct as i, Di as a, L as o, Q as s, Qr as c, Sr as l, St as u, oo as d, po as f, qi as p } from "./Portal-
|
|
5
|
-
import { h as m, p as h } from "./timeseries-
|
|
4
|
+
import { Ct as i, Di as a, L as o, Q as s, Qr as c, Sr as l, St as u, oo as d, po as f, qi as p } from "./Portal-CxaQIVhn.mjs";
|
|
5
|
+
import { h as m, p as h } from "./timeseries-DI-9AaNe.mjs";
|
|
6
6
|
import "./No_data-CdjBgHVn.mjs";
|
|
7
7
|
import { a as ee, i as g, n as _, o as te, r as ne, s as re, t as ie } from "./dist-AOZRb92r.mjs";
|
|
8
|
-
import { t as v } from "./conditionalFormatting-
|
|
8
|
+
import { t as v } from "./conditionalFormatting-Di6YiWwV.mjs";
|
|
9
9
|
import { t as ae } from "./tableAriaRowModel-CVEaIc2a.mjs";
|
|
10
10
|
import { t as oe } from "./Loader-DoUwkcO5.mjs";
|
|
11
11
|
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|