@databrainhq/plugin 0.17.9-beta.28 → 0.17.9-beta.29
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-CoAgGDkG.mjs → Accordion-D3BY1Djk.mjs} +1 -1
- package/dist/{Chart-B6nbhgDm.mjs → Chart-DLywnJ2G.mjs} +9 -9
- package/dist/{CreateGlobalFilter-1OZ1kL-z.mjs → CreateGlobalFilter-CKJUC6E4.mjs} +2 -2
- package/dist/{CreateMetricV2-D7kMpr31.mjs → CreateMetricV2-BeDnNiyh.mjs} +10 -10
- package/dist/{DraggableItem-BEBgDONn.mjs → DraggableItem-AjMo7BEC.mjs} +2 -2
- package/dist/{HorizontalStackTable-O26xCqBR.mjs → HorizontalStackTable-D5DDMofF.mjs} +381 -386
- package/dist/{ManageMetricsV2-DbMJiFK3.mjs → ManageMetricsV2-RqhT8yIO.mjs} +3 -3
- package/dist/{MetricCardV2-hjda1ixx.mjs → MetricCardV2-BodL4dtm.mjs} +9 -9
- package/dist/{NoDataFound-DJYH2DNP.mjs → NoDataFound-A2hcHX54.mjs} +1 -1
- package/dist/{NoDataState-BUMZvXw-.mjs → NoDataState-CpFDQEjI.mjs} +2 -2
- package/dist/{Panel-QxSddHIW.mjs → Panel-CIL3Ae0q.mjs} +1 -1
- package/dist/{PivotTableV2-C1jIDVRX.mjs → PivotTableV2-BZvASV78.mjs} +2 -2
- package/dist/{PivotTableV3-y5FljVbH.mjs → PivotTableV3-BWOZPBVd.mjs} +4 -4
- package/dist/{Portal-B5o7VSn8.mjs → Portal-DkdLrxy7.mjs} +2 -2
- package/dist/{RadioButton-BZj8m2vu.mjs → RadioButton-D0OLlFxB.mjs} +1 -1
- package/dist/{ScheduleEmail-vTm2PKQq.mjs → ScheduleEmail-LQzRpPv0.mjs} +6 -6
- package/dist/{SearchMetricData-CcIx9ZwW.mjs → SearchMetricData-BAbje0HZ.mjs} +13 -13
- package/dist/{SortPanel-Biddyc88.mjs → SortPanel-ciAQt9No.mjs} +8 -8
- package/dist/{Table-KdC_txBI.mjs → Table-DbkfNJG3.mjs} +4 -4
- package/dist/{TagInputField-C4ltWaCV.mjs → TagInputField-DYPbzxrF.mjs} +4 -4
- package/dist/{TextAreaField-CVKUKTQE.mjs → TextAreaField-BcN1mn4D.mjs} +8 -8
- package/dist/{TimeSeriesSettings-BaqWBJJw.mjs → TimeSeriesSettings-C6DdMDpI.mjs} +2 -2
- package/dist/{cardQueryError-Cwh8RMiE.mjs → cardQueryError-3wv1ee_K.mjs} +9 -9
- package/dist/{chevron-down-CS2ZaIil.mjs → chevron-down-DHz2FYSJ.mjs} +0 -0
- package/dist/{conditionalFormatting-xInTbzte.mjs → conditionalFormatting-DlCrspOY.mjs} +1 -1
- package/dist/{createGlobalFilter.module-TklPViH2.mjs → createGlobalFilter.module-SYkXdRSV.mjs} +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/{echarts-DJ0QfQ-s.mjs → echarts-BZv8Geij.mjs} +2 -2
- package/dist/{metric.mutation-BDZXgluN.mjs → metric.mutation-DDoeXJD9.mjs} +1 -1
- package/dist/{permissions-CQc4iRX0.mjs → permissions-DjS08z-t.mjs} +5 -5
- package/dist/{pluginV3Request-DirMUrBw.mjs → pluginV3Request-BJZYMKP0.mjs} +1 -1
- package/dist/{renderer-8aV0aYX7.mjs → renderer-Tm8NhFTX.mjs} +1 -1
- package/dist/{timeseries-C7MAXWW6.mjs → timeseries-BR4nCSdl.mjs} +1 -1
- package/dist/{toTasteAppearance-CYVcaga2.mjs → toTasteAppearance-BbKNt3E_.mjs} +1 -1
- package/dist/{useGuesTokenUsageLog-CK7T5G6y.mjs → useGuesTokenUsageLog-DyImZJ3i.mjs} +1 -1
- package/dist/{usePublishArchivedMetrics-BirmW2YK.mjs → usePublishArchivedMetrics-DP4ny6m6.mjs} +2 -2
- package/dist/{useQuery-CiUdqNDY.mjs → useQuery-R1MpJfWH.mjs} +1 -1
- package/dist/webcomponents.css +2 -2
- package/dist/webcomponents.es.js +341 -332
- package/dist/webcomponents.umd.js +41 -41
- package/package.json +1 -1
package/dist/webcomponents.es.js
CHANGED
|
@@ -100,40 +100,40 @@ import "react-dom";
|
|
|
100
100
|
import "react-dom/client";
|
|
101
101
|
import { o as e } from "./rolldown-runtime-C1JUX4Ur.mjs";
|
|
102
102
|
import { a as t, c as n, i as r, l as i, n as a, r as o, t as s } from "./cardStates-DaujMtO5.mjs";
|
|
103
|
-
import { Dt as c, Et as l, Lt as u, Mt as d, Nt as f, Q as p, Qt as m, Wt as h, bt as g, dn as _, dt as v, ft as y, ln as b, m as x, mt as S, nn as C, o as w, on as T, ot as E, p as D, pt as O, r as k, ut as A } from "./pluginV3Request-
|
|
104
|
-
import { $ as j, H as M, J as N, K as P, U as F, at as I, c as ee, et as L, nt as R, o as te, ot as z, rt as ne, s as re, st as B, t as ie } from "./metric.mutation-
|
|
105
|
-
import { $r as ae, An as oe, Ar as se, B as ce, Bn as le, C as ue, Cr as de, Dn as fe, Dr as pe, Dt as me, Ei as he, En as V, Er as ge, Et as _e, F as ve, Fa as ye, Fn as be, Fr as xe, G as Se, Ga as Ce, H as we, Ha as Te, Hr as Ee, Ht as De, Ia as Oe, Ii as ke, It as Ae, J as je, Ji as Me, Jn as Ne, Jt as Pe, Kn as Fe, Kt as Ie, L as Le, Lr as Re, Lt as ze, Ma as Be, Mn as Ve, Mr as He, N as Ue, Na as We, Ni as Ge, Nt as Ke, Oa as qe, On as Je, Or as Ye, P as Xe, Pa as H, Q as Ze, Qi as Qe, Qr as $e, R as et, Ra as tt, Ri as nt, Rr as rt, S as it, Sa as U, Si as at, T as ot, Ti as st, Tn as ct, Tr as lt, U as ut, Ua as dt, Un as ft, Ut as pt, V as mt, Va as W, Vt as ht, W as gt, Wa as _t, Wt as vt, X as yt, Xi as bt, Xt as xt, Yi as St, Yn as Ct, Yr as wt, Yt as Tt, _ as Et, _i as Dt, _n as Ot, _t as kt, a as At, ai as jt, ar as Mt, at as Nt, b as G, bn as Pt, bt as Ft, ci as It, d as Lt, dr as Rt, ei as zt, en as Bt, f as Vt, gi as Ht, gr as Ut, gt as Wt, h as Gt, hi as Kt, hr as qt, ht as Jt, i as K, ii as Yt, ji as Xt, jn as Zt, jr as Qt, jt as $t, kr as en, l as tn, la as nn, li as rn, ln as an, m as on, mi as sn, mt as cn, n as ln, ni as un, nt as dn, o as fn, on as pn, or as mn, ot as hn, p as gn, pa as _n, pt as vn, q as yn, qr as bn, r as xn, ra as Sn, rn as Cn, rt as wn, st as Tn, t as En, ti as Dn, tn as On, tt as kn, u as An, ua as jn, ur as q, ut as Mn, v as Nn, vn as Pn, vr as Fn, w as In, wa as Ln, wi as Rn, wn as zn, wt as Bn, x as Vn, xa as Hn, xi as Un, xn as Wn, xr as Gn, y as Kn, yn as qn, z as Jn, za as Yn, zi as Xn } from "./Portal-
|
|
103
|
+
import { Dt as c, Et as l, Lt as u, Mt as d, Nt as f, Q as p, Qt as m, Wt as h, bt as g, dn as _, dt as v, ft as y, ln as b, m as x, mt as S, nn as C, o as w, on as T, ot as E, p as D, pt as O, r as k, ut as A } from "./pluginV3Request-BJZYMKP0.mjs";
|
|
104
|
+
import { $ as j, H as M, J as N, K as P, U as F, at as I, c as ee, et as L, nt as R, o as te, ot as z, rt as ne, s as re, st as B, t as ie } from "./metric.mutation-DDoeXJD9.mjs";
|
|
105
|
+
import { $r as ae, An as oe, Ar as se, B as ce, Bn as le, C as ue, Cr as de, Dn as fe, Dr as pe, Dt as me, Ei as he, En as V, Er as ge, Et as _e, F as ve, Fa as ye, Fn as be, Fr as xe, G as Se, Ga as Ce, H as we, Ha as Te, Hr as Ee, Ht as De, Ia as Oe, Ii as ke, It as Ae, J as je, Ji as Me, Jn as Ne, Jt as Pe, Kn as Fe, Kt as Ie, L as Le, Lr as Re, Lt as ze, Ma as Be, Mn as Ve, Mr as He, N as Ue, Na as We, Ni as Ge, Nt as Ke, Oa as qe, On as Je, Or as Ye, P as Xe, Pa as H, Q as Ze, Qi as Qe, Qr as $e, R as et, Ra as tt, Ri as nt, Rr as rt, S as it, Sa as U, Si as at, T as ot, Ti as st, Tn as ct, Tr as lt, U as ut, Ua as dt, Un as ft, Ut as pt, V as mt, Va as W, Vt as ht, W as gt, Wa as _t, Wt as vt, X as yt, Xi as bt, Xt as xt, Yi as St, Yn as Ct, Yr as wt, Yt as Tt, _ as Et, _i as Dt, _n as Ot, _t as kt, a as At, ai as jt, ar as Mt, at as Nt, b as G, bn as Pt, bt as Ft, ci as It, d as Lt, dr as Rt, ei as zt, en as Bt, f as Vt, gi as Ht, gr as Ut, gt as Wt, h as Gt, hi as Kt, hr as qt, ht as Jt, i as K, ii as Yt, ji as Xt, jn as Zt, jr as Qt, jt as $t, kr as en, l as tn, la as nn, li as rn, ln as an, m as on, mi as sn, mt as cn, n as ln, ni as un, nt as dn, o as fn, on as pn, or as mn, ot as hn, p as gn, pa as _n, pt as vn, q as yn, qr as bn, r as xn, ra as Sn, rn as Cn, rt as wn, st as Tn, t as En, ti as Dn, tn as On, tt as kn, u as An, ua as jn, ur as q, ut as Mn, v as Nn, vn as Pn, vr as Fn, w as In, wa as Ln, wi as Rn, wn as zn, wt as Bn, x as Vn, xa as Hn, xi as Un, xn as Wn, xr as Gn, y as Kn, yn as qn, z as Jn, za as Yn, zi as Xn } from "./Portal-DkdLrxy7.mjs";
|
|
106
106
|
import { t as Zn } from "./jsx-runtime-B0EUnyJj.mjs";
|
|
107
107
|
import { t as Qn } from "./guestAuth-DALo3ysE.mjs";
|
|
108
|
-
import { _ as $n, f as er, h as tr, m as nr, n as rr, p as ir, r as ar, t as or, v as sr, y as cr } from "./TagInputField-
|
|
109
|
-
import { i as lr } from "./toTasteAppearance-
|
|
108
|
+
import { _ as $n, f as er, h as tr, m as nr, n as rr, p as ir, r as ar, t as or, v as sr, y as cr } from "./TagInputField-DYPbzxrF.mjs";
|
|
109
|
+
import { i as lr } from "./toTasteAppearance-BbKNt3E_.mjs";
|
|
110
110
|
import { q as ur } from "./option-DX8yNc39.mjs";
|
|
111
111
|
import { i as dr, o as fr, r as pr, s as mr, t as hr } from "./contrast-BSnRBmgG.mjs";
|
|
112
|
-
import { a as gr } from "./chevron-down-
|
|
113
|
-
import { i as _r, l as vr, t as yr } from "./timeseries-
|
|
114
|
-
import { C as br, E as xr, S as Sr, _ as Cr, b as wr, g as Tr, t as Er, w as Dr, x as Or } from "./TextAreaField-
|
|
112
|
+
import { a as gr } from "./chevron-down-DHz2FYSJ.mjs";
|
|
113
|
+
import { i as _r, l as vr, t as yr } from "./timeseries-BR4nCSdl.mjs";
|
|
114
|
+
import { C as br, E as xr, S as Sr, _ as Cr, b as wr, g as Tr, t as Er, w as Dr, x as Or } from "./TextAreaField-BcN1mn4D.mjs";
|
|
115
115
|
import { t as kr } from "./arrayToCsvString-Cb1t-QbR.mjs";
|
|
116
116
|
import { l as Ar, m as jr, p as Mr, r as Nr, s as Pr } from "./text-CtrvkDIo.mjs";
|
|
117
|
-
import { a as Fr, i as Ir, n as Lr, o as Rr, s as zr, t as Br } from "./permissions-
|
|
118
|
-
import { C as Vr, _ as Hr, d as Ur, f as Wr, g as Gr, h as Kr, n as qr, r as Jr, t as Yr, v as Xr } from "./DraggableItem-
|
|
119
|
-
import { r as Zr, t as Qr } from "./Chart-
|
|
117
|
+
import { a as Fr, i as Ir, n as Lr, o as Rr, s as zr, t as Br } from "./permissions-DjS08z-t.mjs";
|
|
118
|
+
import { C as Vr, _ as Hr, d as Ur, f as Wr, g as Gr, h as Kr, n as qr, r as Jr, t as Yr, v as Xr } from "./DraggableItem-AjMo7BEC.mjs";
|
|
119
|
+
import { r as Zr, t as Qr } from "./Chart-DLywnJ2G.mjs";
|
|
120
120
|
import { a as $r, t as ei } from "./transformData-ow-ma1SZ.mjs";
|
|
121
|
-
import { a as ti, c as ni, i as ri, l as ii, n as ai, o as oi } from "./RadioButton-
|
|
122
|
-
import { $ as si, F as ci, G as li, I as ui, J as di, K as fi, L as pi, M as mi, N as hi, P as gi, Q as _i, R as vi, U as yi, W as bi, X as xi, Y as Si, Z as Ci, a as wi, c as Ti, et as Ei, f as Di, i as Oi, l as ki, m as Ai, n as ji, p as Mi, q as Ni, r as Pi, s as Fi, t as Ii, w as Li, z as Ri } from "./cardQueryError-
|
|
121
|
+
import { a as ti, c as ni, i as ri, l as ii, n as ai, o as oi } from "./RadioButton-D0OLlFxB.mjs";
|
|
122
|
+
import { $ as si, F as ci, G as li, I as ui, J as di, K as fi, L as pi, M as mi, N as hi, P as gi, Q as _i, R as vi, U as yi, W as bi, X as xi, Y as Si, Z as Ci, a as wi, c as Ti, et as Ei, f as Di, i as Oi, l as ki, m as Ai, n as ji, p as Mi, q as Ni, r as Pi, s as Fi, t as Ii, w as Li, z as Ri } from "./cardQueryError-3wv1ee_K.mjs";
|
|
123
123
|
import { n as zi, t as Bi } from "./cardActions-BLBLsjcd.mjs";
|
|
124
124
|
import { t as Vi } from "./loading-state-CF_6fTCn.mjs";
|
|
125
|
-
import { t as Hi } from "./useGuesTokenUsageLog-
|
|
126
|
-
import { c as Ui, i as Wi, l as Gi, n as Ki, o as qi, r as Ji, s as Yi, t as Xi } from "./SortPanel-
|
|
127
|
-
import { a as Zi, i as Qi, o as $i, r as ea, s as ta, t as na } from "./Table-
|
|
128
|
-
import { t as ra } from "./NoDataFound-
|
|
125
|
+
import { t as Hi } from "./useGuesTokenUsageLog-DyImZJ3i.mjs";
|
|
126
|
+
import { c as Ui, i as Wi, l as Gi, n as Ki, o as qi, r as Ji, s as Yi, t as Xi } from "./SortPanel-ciAQt9No.mjs";
|
|
127
|
+
import { a as Zi, i as Qi, o as $i, r as ea, s as ta, t as na } from "./Table-DbkfNJG3.mjs";
|
|
128
|
+
import { t as ra } from "./NoDataFound-A2hcHX54.mjs";
|
|
129
129
|
import "./No_data-BIO-IPxg.mjs";
|
|
130
|
-
import { t as ia } from "./Panel-
|
|
130
|
+
import { t as ia } from "./Panel-CIL3Ae0q.mjs";
|
|
131
131
|
import { t as aa } from "./Switch-Bjta4jTW.mjs";
|
|
132
132
|
import { t as oa } from "./shadowContainer-tvn4jmxo.mjs";
|
|
133
133
|
import { t as sa } from "./Loader-BOT4ofJi.mjs";
|
|
134
134
|
import { t as ca } from "./dist-C0uxSp1k.mjs";
|
|
135
|
-
import { n as la, r as ua, t as da } from "./createGlobalFilter.module-
|
|
136
|
-
import { n as fa, r as pa, t as ma } from "./usePublishArchivedMetrics-
|
|
135
|
+
import { n as la, r as ua, t as da } from "./createGlobalFilter.module-SYkXdRSV.mjs";
|
|
136
|
+
import { n as fa, r as pa, t as ma } from "./usePublishArchivedMetrics-DP4ny6m6.mjs";
|
|
137
137
|
import * as ha from "react";
|
|
138
138
|
import ga, { Suspense as _a, createContext as va, createElement as ya, lazy as ba, useCallback as xa, useContext as Sa, useEffect as J, useId as Ca, useLayoutEffect as wa, useMemo as Y, useRef as X, useState as Z } from "react";
|
|
139
139
|
import { createRoot as Ta } from "react-dom/client";
|
|
@@ -8406,56 +8406,58 @@ ga.memo(yu);
|
|
|
8406
8406
|
//#endregion
|
|
8407
8407
|
//#region src/components/Svg/dashboardNoData.svg
|
|
8408
8408
|
var bu = "data:image/svg+xml,%3csvg%20width='56'%20height='59'%20viewBox='0%200%2056%2059'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20opacity='.9'%20d='m38.76%202.09-36.7%203.2c-.85.09-1.46.83-1.4%201.66L4.87%2055c.08.84.82%201.45%201.65%201.38l36.7-3.2c.84-.08%201.46-.82%201.39-1.66L40.4%203.47c-.08-.84-.82-1.46-1.65-1.38'%20fill='%23F1F2F7'/%3e%3cpath%20d='M48.42%209.6v40.73c0%20.84-.68%201.52-1.52%201.52H10.06c-.84%200-1.52-.68-1.52-1.52V2.09c0-.84.68-1.52%201.52-1.52h29.82z'%20fill='white'%20stroke='%23D0D4DA'%20strokeWidth='1.14'%20strokeLinejoin='round'/%3e%3cpath%20d='M39.88%208.07V.57l8.54%209.02H41.4c-.84%200-1.52-.68-1.52-1.52Z'%20fill='%23F1F2F7'%20stroke='%23D0D4DA'%20strokeWidth='.76'%20strokeLinejoin='round'/%3e%3cpath%20d='M15.22%2024.6H42.1c1.64%200%202.96%201.2%202.96%202.69v17.78c0%201.49-1.32%202.7-2.96%202.7H15.22c-1.64%200-2.96-1.21-2.96-2.7V27.3c0-1.5%201.32-2.7%202.96-2.7'%20fill='white'/%3e%3cpath%20d='M14.07%2028.62h29.17c.54%200%20.98-.73.98-1.64%200-.9-.44-1.64-.98-1.64H14.07c-.54%200-.98.74-.98%201.64%200%20.9.44%201.64.98%201.64'%20fill='%23F1F2F7'/%3e%3cpath%20d='M42.52%2024.62H14.8c-1.4%200-2.53%201.02-2.53%202.29v18.55c0%201.26%201.14%202.29%202.53%202.29h27.73c1.4%200%202.54-1.03%202.54-2.3V26.92c0-1.26-1.14-2.3-2.54-2.3M23.5%2043.17v-2.84h10.34v2.84zm10.33.86v2.84H23.5v-2.84zM44.1%2029.2v2.84h-9.3V29.2zm-10.27%203.7v2.85H23.5V32.9zm-11.3%202.85h-9.3V32.9h9.3zm0%20.86v2.85h-9.3V36.6zm.97%200h10.34v2.85H23.49zm11.3%200h9.3v2.85h-9.3zm0-.86V32.9h9.3v2.84zm-.97-3.71h-20.6V29.2h20.6zm-20.6%208.29h9.3v2.84h-9.3zm21.57%200h9.3v2.84h-9.3zm-20-14.84h27.73c.87%200%201.57.64%201.57%201.42v1.42H13.22v-1.42c0-.78.7-1.42%201.57-1.42m-1.57%2019.96v-1.42h9.3v2.84H14.8c-.86%200-1.57-.63-1.57-1.42m29.3%201.42H34.8v-2.84h9.3v1.42c0%20.79-.7%201.42-1.57%201.42'%20fill='%23D0D4DA'/%3e%3cpath%20d='M13.26%2012.71h13.86c.34%200%20.62-.27.62-.6%200-.35-.28-.62-.62-.62H13.26c-.34%200-.62.27-.62.61%200%20.34.28.61.62.61'%20fill='%23F1F2F7'/%3e%3cpath%20d='M28.56%2043.5c0%206.81%205.53%2012.34%2012.35%2012.34%206.82%200%2012.34-5.53%2012.34-12.35%200-6.82-5.52-12.34-12.34-12.34-6.82%200-12.35%205.52-12.35%2012.34'%20fill='white'/%3e%3cpath%20d='M13.26%2015.17h7.92c.34%200%20.62-.27.62-.6%200-.35-.28-.62-.62-.62h-7.92c-.34%200-.62.27-.62.61%200%20.34.28.61.62.61'%20fill='%23F1F2F7'/%3e%3cpath%20d='M13.26%2010.15h7.92c.34%200%20.62-.27.62-.61%200-.34-.28-.61-.62-.61h-7.92c-.34%200-.62.27-.62.6%200%20.35.28.62.62.62'%20fill='%23F1F2F7'/%3e%3cpath%20d='M32.07%2043.56c0%204.86%203.94%208.8%208.8%208.8%204.87%200%208.81-3.94%208.81-8.8%200-4.87-3.94-8.8-8.8-8.8-4.87%200-8.8%203.93-8.8%208.8Z'%20fill='white'%20stroke='%23D0D4DA'%20strokeWidth='1.52'%20strokeLinecap='round'%20strokeLinejoin='round'/%3e%3cpath%20d='M52.45%2056.64c.44.45%201.16.45%201.6%200%20.45-.44.45-1.17%200-1.61zm-4.09-7.3-.8-.81-1.62%201.6.8.81zm5.7%205.69-5.7-5.7-1.61%201.61%205.7%205.7z'%20fill='%23D0D4DA'/%3e%3cg%20clipPath='url(%23clip0_4001_15075)'%3e%3cpath%20d='M40.7%2046.7'%20stroke='%23D0D4DA'%20strokeWidth='1.15'%20strokeLinecap='round'%20strokeLinejoin='round'/%3e%3cpath%20d='M40.7%2044.92V40.5'%20stroke='%23D0D4DA'%20strokeWidth='1.15'%20strokeLinecap='round'%20strokeLinejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_4001_15075'%3e%3crect%20width='10.64'%20height='10.64'%20fill='white'%20transform='translate(35.3875%2038.2764)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", xu = "data:image/svg+xml,%3csvg%20width='69'%20height='66'%20viewBox='0%200%2069%2066'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20opacity='.6'%20d='M29.18.85c7.95%200%2015.11.93%2020.26%202.4%202.58.75%204.6%201.61%205.97%202.54%201.39.94%201.9%201.82%201.9%202.54%200%20.72-.51%201.6-1.9%202.54-1.36.92-3.4%201.8-5.97%202.53-5.15%201.48-12.31%202.41-20.26%202.41-7.94%200-15.1-.93-20.26-2.4-2.58-.75-4.6-1.62-5.97-2.54-1.39-.95-1.9-1.82-1.9-2.54%200-.72.51-1.6%201.9-2.54%201.37-.93%203.4-1.8%205.97-2.54C14.07%201.78%2021.23.85%2029.18.85Z'%20stroke='%23B3B7BD'%20stroke-width='1.7'/%3e%3cpath%20d='M57.31%2024.1c0%20.73-.51%201.6-1.9%202.55-1.36.93-3.4%201.8-5.97%202.53-5.15%201.48-12.31%202.41-20.26%202.41-7.94%200-15.1-.93-20.26-2.4-2.58-.75-4.6-1.61-5.97-2.54-1.39-.94-1.9-1.82-1.9-2.54V10.25q.43.38.95.74c1.57%201.07%203.79%202%206.45%202.76%205.34%201.53%2012.67%202.47%2020.73%202.47%208.06%200%2015.39-.94%2020.73-2.47%202.66-.77%204.88-1.7%206.45-2.76q.51-.35.95-.74z'%20fill='%23F1F2F7'%20stroke='%23D0D4DA'%20stroke-width='1.7'/%3e%3cpath%20d='M57.31%2039.9c0%20.71-.51%201.59-1.9%202.53-1.36.93-3.4%201.8-5.97%202.54-5.15%201.48-12.31%202.4-20.26%202.4-7.94%200-15.1-.92-20.26-2.4-2.58-.75-4.6-1.61-5.97-2.54-1.39-.94-1.9-1.82-1.9-2.54V26.03q.43.38.95.74c1.57%201.07%203.79%202%206.45%202.76%205.34%201.54%2012.67%202.48%2020.73%202.48%208.06%200%2015.39-.94%2020.73-2.48%202.66-.76%204.88-1.7%206.45-2.76q.51-.35.95-.74z'%20fill='%23E3E5EC'%20stroke='%23D0D4DA'%20stroke-width='1.7'/%3e%3cpath%20d='M57.31%2055.67c0%20.72-.51%201.6-1.9%202.54-1.36.93-3.4%201.8-5.97%202.54-5.15%201.47-12.31%202.4-20.26%202.4-7.94%200-15.1-.93-20.26-2.4-2.58-.75-4.6-1.61-5.97-2.54-1.39-.94-1.9-1.82-1.9-2.54V41.81q.43.38.95.74c1.57%201.07%203.79%202%206.45%202.76%205.34%201.54%2012.67%202.48%2020.73%202.48%208.06%200%2015.39-.94%2020.73-2.48%202.66-.76%204.88-1.7%206.45-2.76q.51-.35.95-.74z'%20fill='%23D0D4DA'%20stroke='%23D0D4DA'%20stroke-width='1.7'/%3e%3crect%20x='36.79'%20y='33.39'%20width='30.01'%20height='30.01'%20rx='15'%20stroke='white'%20stroke-width='4'/%3e%3crect%20x='40.79'%20y='37.39'%20width='22.01'%20height='22.01'%20rx='11'%20fill='white'/%3e%3cpath%20d='M51.8%2035.4c-2.58%200-5.09.76-7.23%202.18-2.14%201.43-3.8%203.46-4.79%205.84-.98%202.38-1.24%205-.74%207.51.5%202.53%201.74%204.84%203.56%206.66%201.82%201.82%204.14%203.06%206.66%203.56%202.52.5%205.14.25%207.51-.74%202.38-.98%204.41-2.65%205.84-4.79%201.43-2.14%202.19-4.65%202.19-7.22%200-3.45-1.37-6.76-3.81-9.2-2.44-2.43-5.75-3.8-9.2-3.8m-1%207q0-.42.29-.71.3-.3.7-.3.42%200%20.71.3.3.3.3.7v7q0%20.42-.3.71-.29.3-.7.3-.41%200-.71-.3-.3-.29-.3-.7zm1%2013q-.46%200-.84-.25-.37-.26-.55-.68-.16-.42-.09-.86.09-.45.42-.77.31-.32.76-.41.46-.09.87.08.41.18.67.55.26.38.26.84c0%20.4-.16.78-.44%201.06-.28.28-.67.44-1.06.44'%20fill='%23DC2626'/%3e%3c/svg%3e", $ = {
|
|
8409
|
-
cardContainer: "
|
|
8410
|
-
cardProperties: "
|
|
8411
|
-
enableBorder: "
|
|
8412
|
-
features: "
|
|
8413
|
-
listHeader: "
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8409
|
+
cardContainer: "_cardContainer_78y2d_23",
|
|
8410
|
+
cardProperties: "_cardProperties_78y2d_10",
|
|
8411
|
+
enableBorder: "_enableBorder_78y2d_10",
|
|
8412
|
+
features: "_features_78y2d_41",
|
|
8413
|
+
listHeader: "_listHeader_78y2d_45",
|
|
8414
|
+
compactTableHeader: "_compactTableHeader_78y2d_49",
|
|
8415
|
+
tableHeaderSearch: "_tableHeaderSearch_78y2d_59",
|
|
8416
|
+
metricName: "_metricName_78y2d_65",
|
|
8417
|
+
metricTitle: "_metricTitle_78y2d_69",
|
|
8418
|
+
truncate: "_truncate_78y2d_73",
|
|
8419
|
+
textWrap: "_textWrap_78y2d_77",
|
|
8420
|
+
metricDescription: "_metricDescription_78y2d_81",
|
|
8421
|
+
summaryHeader: "_summaryHeader_78y2d_88",
|
|
8422
|
+
popup: "_popup_78y2d_96",
|
|
8423
|
+
metricFilter: "_metricFilter_78y2d_100",
|
|
8424
|
+
popupIcon: "_popupIcon_78y2d_104",
|
|
8425
|
+
popupMenu: "_popupMenu_78y2d_108",
|
|
8426
|
+
popupItem: "_popupItem_78y2d_112",
|
|
8427
|
+
popupItemIcon: "_popupItemIcon_78y2d_116",
|
|
8428
|
+
csvBtn: "_csvBtn_78y2d_120",
|
|
8429
|
+
deleteBtn: "_deleteBtn_78y2d_124",
|
|
8430
|
+
metricData: "_metricData_78y2d_128",
|
|
8431
|
+
chartHeight: "_chartHeight_78y2d_131",
|
|
8432
|
+
chartWithDescHeight: "_chartWithDescHeight_78y2d_134",
|
|
8433
|
+
metricTable: "_metricTable_78y2d_137",
|
|
8434
|
+
noHeight: "_noHeight_78y2d_141",
|
|
8435
|
+
chart: "_chart_78y2d_131",
|
|
8436
|
+
singleValueData: "_singleValueData_78y2d_181",
|
|
8437
|
+
singleValue: "_singleValue_78y2d_181",
|
|
8438
|
+
noData: "_noData_78y2d_191",
|
|
8439
|
+
noDataContent: "_noDataContent_78y2d_214",
|
|
8440
|
+
noDataText: "_noDataText_78y2d_229",
|
|
8441
|
+
connectionErrorText: "_connectionErrorText_78y2d_233",
|
|
8442
|
+
singleChartText: "_singleChartText_78y2d_236",
|
|
8443
|
+
loading: "_loading_78y2d_191",
|
|
8444
|
+
fullscreenIcon: "_fullscreenIcon_78y2d_207",
|
|
8445
|
+
mergeIcon: "_mergeIcon_78y2d_281",
|
|
8446
|
+
dynamicGroupFormat: "_dynamicGroupFormat_78y2d_286",
|
|
8447
|
+
dynamicGroupContainer: "_dynamicGroupContainer_78y2d_290",
|
|
8448
|
+
topLeft: "_topLeft_78y2d_293",
|
|
8449
|
+
topRight: "_topRight_78y2d_296",
|
|
8450
|
+
filterTopLeft: "_filterTopLeft_78y2d_299",
|
|
8451
|
+
filterToRight: "_filterToRight_78y2d_303",
|
|
8452
|
+
padding: "_padding_78y2d_306",
|
|
8453
|
+
metricFilterDropDowns: "_metricFilterDropDowns_78y2d_310",
|
|
8454
|
+
metricFilters: "_metricFilters_78y2d_314",
|
|
8455
|
+
tableMetricFilters: "_tableMetricFilters_78y2d_317",
|
|
8456
|
+
disable: "_disable_78y2d_321",
|
|
8457
|
+
isShowShadow: "_isShowShadow_78y2d_325",
|
|
8458
|
+
noBorder: "_noBorder_78y2d_329",
|
|
8459
|
+
noShadow: "_noShadow_78y2d_333",
|
|
8460
|
+
addedLink: "_addedLink_78y2d_341"
|
|
8459
8461
|
}, { title: Su, hint: Cu } = s, wu = "The query couldn't run. Reload to try again.", Tu = (e) => !!e && typeof e == "object" && typeof e.message == "string" && typeof e.retryable == "boolean", Eu = ga.memo(({ isDataLength: e, isLoading: t, isSingleValue: r, dataDb: i, chartType: s, noDataImg: c, error: l, errorMessage: u, onReload: d, hasActiveFilters: f, onClearFilters: p, emptyTitle: m, emptyHint: h, emptyMessage: g }) => {
|
|
8460
8462
|
let _ = s === U.singleValue, [v, y] = Z(""), b = X(null), [x, S] = Z(!1), C = Y(() => l && !u ? Tu(l) ? l : n(l, { fallback: wu }) : void 0, [l, u]), w = a(C), T = o(C), E = !u && (C?.retryable ?? !0);
|
|
8461
8463
|
J(() => {
|
|
@@ -12358,7 +12360,13 @@ var hf = (e) => s, gf = () => {
|
|
|
12358
12360
|
K?.pivotTableSettings3?.isDynamicHeaders,
|
|
12359
12361
|
K?.chartType,
|
|
12360
12362
|
K?.customSettings?.isEnableSwitchMeasure
|
|
12361
|
-
]), fr = (
|
|
12363
|
+
]), fr = $n && ur && !dr && !Ut.length && !z && !K?.metricCardSettings?.isDisableTitle, pr = ur && !fr, mr = ur ? /* @__PURE__ */ (0, Q.jsx)(Qi, {
|
|
12364
|
+
value: typeof mt?.[0] == "string" ? mt[0] : "",
|
|
12365
|
+
onChange: (e) => ht(() => [String(e)]),
|
|
12366
|
+
placeholder: "Search",
|
|
12367
|
+
className: gt?.length && !at ? "" : "dbn:invisible",
|
|
12368
|
+
style: { maxWidth: "249px" }
|
|
12369
|
+
}) : null, hr = (e, t) => Fi({
|
|
12362
12370
|
chart: K,
|
|
12363
12371
|
valueColumn: i?.clickActions?.chart?.valueColumn,
|
|
12364
12372
|
isDrillEnabled: i?.drillDownSettings?.isEnableGroupBy,
|
|
@@ -12366,37 +12374,37 @@ var hf = (e) => s, gf = () => {
|
|
|
12366
12374
|
dimensionCount: G?.length,
|
|
12367
12375
|
params: e,
|
|
12368
12376
|
passAllData: t
|
|
12369
|
-
}),
|
|
12377
|
+
}), gr = wi(), _r = Y(() => xr(s || [], K?.chartColors || []), [s, K?.chartColors]), vr = Y(() => !!K?.isCustomColorApplied || !!s?.length && c !== !1, [
|
|
12370
12378
|
K?.isCustomColorApplied,
|
|
12371
12379
|
s?.length,
|
|
12372
12380
|
c
|
|
12373
|
-
]),
|
|
12381
|
+
]), yr = Y(() => [U.row, U.horizontalStack].includes(K?.chartType) ? "y-axis" : "x-axis", [K?.chartType]), br = Y(() => [U.row, U.horizontalStack].includes(K?.chartType) ? "x-axis" : "y-axis", [K?.chartType]), Sr = Y(() => !i?.isMetric && qn === "metricSummary" && i?.elementSettings?.summary?.summaryBgColor ? i?.elementSettings?.summary?.summaryBgColor : "", [
|
|
12374
12382
|
i?.elementSettings?.summary?.summaryBgColor,
|
|
12375
12383
|
qn,
|
|
12376
12384
|
i?.isMetric
|
|
12377
|
-
]),
|
|
12385
|
+
]), Cr = Y(() => Df(Sr, de), [de, Sr]), wr = Sr ? Cr : void 0, Tr = Sr || (i?.elementSettings?.isDisableCardAppearance ? "" : de ?? ""), Er = !!(P && (d || Je)), Dr = Y(() => i?.isMetric && !w && !h && Zn, [
|
|
12378
12386
|
gt.length,
|
|
12379
12387
|
!w,
|
|
12380
12388
|
!h,
|
|
12381
12389
|
Zn
|
|
12382
|
-
]),
|
|
12390
|
+
]), Or = (e) => {
|
|
12383
12391
|
let t = e?.value;
|
|
12384
12392
|
return Array.isArray(t) ? t.length > 0 : typeof t == "string" ? t.trim() !== "" : t != null;
|
|
12385
|
-
},
|
|
12393
|
+
}, kr = (Ut ?? []).filter((e) => e && !e.isHiddenInUi && Or(e)), Ar = kr.length > 0 || !!ut?.filters?.length || !!y?.length || (sn ?? []).some((e) => e.isAppFilter && e.isAddOnMetrics && Or({ value: g?.values?.[e.name] ?? e.value })), jr = Ti({
|
|
12386
12394
|
isCustomSqlMetric: !!i?.datasetMetricSettings?.isUseRawSQL,
|
|
12387
12395
|
query: i?.query,
|
|
12388
12396
|
metricId: i?.id,
|
|
12389
|
-
filters: [...
|
|
12390
|
-
}),
|
|
12391
|
-
Dt &&
|
|
12397
|
+
filters: [...kr, ...ut?.filters || []]
|
|
12398
|
+
}), Mr = !!Dt && kr.length > 0 || !!Re, Nr = Mt(), Pr = hf(i), Fr = xa(() => {
|
|
12399
|
+
Dt && kr.forEach((e) => {
|
|
12392
12400
|
Array.isArray(e.value) ? Dt(e.name, "", void 0, void 0, []) : Dt(e.name, "");
|
|
12393
12401
|
}), Re?.(), Hn();
|
|
12394
12402
|
}, [
|
|
12395
12403
|
Dt,
|
|
12396
|
-
|
|
12404
|
+
kr,
|
|
12397
12405
|
Re,
|
|
12398
12406
|
Hn
|
|
12399
|
-
]),
|
|
12407
|
+
]), Ir = {
|
|
12400
12408
|
data: [],
|
|
12401
12409
|
fileName: jn,
|
|
12402
12410
|
companyIntegrationId: i?.companyIntegrationId,
|
|
@@ -12422,7 +12430,7 @@ var hf = (e) => s, gf = () => {
|
|
|
12422
12430
|
},
|
|
12423
12431
|
updateDownloadProgress: () => {},
|
|
12424
12432
|
children: /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: /* @__PURE__ */ (0, Q.jsx)(q, { name: "download" }) })
|
|
12425
|
-
},
|
|
12433
|
+
}, Lr = {
|
|
12426
12434
|
data: [],
|
|
12427
12435
|
fileName: jn,
|
|
12428
12436
|
companyIntegrationId: i?.companyIntegrationId,
|
|
@@ -12499,232 +12507,239 @@ var hf = (e) => s, gf = () => {
|
|
|
12499
12507
|
ref: Jt,
|
|
12500
12508
|
"data-dbn-card-host": "",
|
|
12501
12509
|
"data-has-controls": (!Ct || vn) && !w && Ye && Xe ? "" : void 0,
|
|
12502
|
-
"data-has-kebab": (!Ct || vn) && !w &&
|
|
12510
|
+
"data-has-kebab": (!Ct || vn) && !w && Dr ? "" : void 0,
|
|
12503
12511
|
className: `${$.cardContainer} ${!i?.isMetric && !i?.elementSettings?.isDisableCardAppearance || i?.isMetric ? V ? `dbn-metric-card ${$.cardProperties}` : `dbn-metric-card dbn-metric-card-container ${$.cardProperties}` : ""} ${K?.chartType === U.singleValue ? "dbn-single-value-card" : ""} ${se || K?.metricCardSettings?.disableCardShadow ? "" : $.isShowShadow} ${re && !i?.isMetric && i?.elementSettings?.isDisableCardAppearance ? $.enableBorder : ""} ${K?.metricCardSettings?.disableCardStroke ? $.noBorder : ""} ${V || be ? `${$.noBorder} ${$.noShadow}` : ""} ${Ne || T === "outside" && Ut.length && !V ? "dbn:h-[90%]" : ""}`,
|
|
12504
12512
|
onContextMenu: (e) => {
|
|
12505
12513
|
e.preventDefault();
|
|
12506
12514
|
},
|
|
12507
|
-
style: { background:
|
|
12515
|
+
style: { background: Sr || (i?.isMetric && !de ? "var(--dbn-color-background, #ffffff)" : !i?.elementSettings?.isDisableCardAppearance || i?.isMetric && de ? de : "") },
|
|
12508
12516
|
children: [
|
|
12509
12517
|
!Ct || Ct && vn ? /* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
12510
|
-
className: `${$.listHeader} ${
|
|
12518
|
+
className: `${$.listHeader} ${fr ? $.compactTableHeader : ""} ${wr ? $.summaryHeader : ""}`,
|
|
12511
12519
|
style: {
|
|
12512
|
-
"--dbn-summary-header-ink":
|
|
12513
|
-
background:
|
|
12520
|
+
"--dbn-summary-header-ink": wr,
|
|
12521
|
+
background: Tr,
|
|
12514
12522
|
pointerEvents: Be ? "none" : void 0,
|
|
12515
12523
|
justifyContent: z ? "end" : ""
|
|
12516
12524
|
},
|
|
12517
|
-
children: [
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12532
|
-
Mn && /* @__PURE__ */ (0, Q.jsx)(ve, {
|
|
12533
|
-
title: jn,
|
|
12534
|
-
html: Mn,
|
|
12535
|
-
setHoverLongDesc: De
|
|
12536
|
-
}),
|
|
12537
|
-
i?.clickActions?.card?.isEnable && i?.isMetric ? /* @__PURE__ */ (0, Q.jsx)(H, {
|
|
12538
|
-
variant: "popover",
|
|
12539
|
-
onClick: () => {
|
|
12540
|
-
Bi(i?.clickActions, i?.metricId, i?.id);
|
|
12541
|
-
},
|
|
12542
|
-
leftIcon: /* @__PURE__ */ (0, Q.jsx)(q, {
|
|
12543
|
-
name: "new-window",
|
|
12544
|
-
size: "sm"
|
|
12525
|
+
children: [
|
|
12526
|
+
z ? null : /* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
12527
|
+
className: `${Dr ? "dbn:w-[calc(100%-36px)]" : "dbn:w-full"} dbn:flex dbn:items-center dbn:justify-between`,
|
|
12528
|
+
children: [/* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
12529
|
+
className: $.metricName,
|
|
12530
|
+
style: Je && i?.isMetric ? { width: "90%" } : {},
|
|
12531
|
+
children: [P && (d || Je) ? /* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
12532
|
+
className: "dbn:flex dbn:items-center dbn:gap-1",
|
|
12533
|
+
children: [
|
|
12534
|
+
/* @__PURE__ */ (0, Q.jsx)("h2", {
|
|
12535
|
+
className: `${$.metricTitle} ${K?.metricCardSettings?.isEnableTitleWrap ? "dbn:block" : "dbn:truncate"} dbn-metric-card-title ${i?.isMetric ? "" : "dbn:w-full dbn-metric-element-title"}`,
|
|
12536
|
+
children: K?.metricCardSettings?.isDisableTitle ? /* @__PURE__ */ (0, Q.jsx)("span", {
|
|
12537
|
+
className: ea.hoverHint,
|
|
12538
|
+
children: d ? d(jn) : jn
|
|
12539
|
+
}) : d ? d(jn) : jn
|
|
12545
12540
|
}),
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
/* @__PURE__ */ (0, Q.jsx)("h2", {
|
|
12554
|
-
className: `${$.metricTitle} dbn-metric-card-title ${!a && !i?.clickActions?.card?.isEnable && Fe ? "dbn:cursor-auto" : a && !Fe && Ie ? "dbn:cursor-pointer" : ""} ${K?.metricCardSettings?.isEnableTitleWrap ? $.textWrap : $.truncate} ${i?.isMetric ? "" : "dbn:w-full dbn-metric-element-title"}`,
|
|
12555
|
-
style: {
|
|
12556
|
-
textAlign: i?.elementSettings?.titleAlignment || "left",
|
|
12557
|
-
pointerEvents: f ? "none" : void 0
|
|
12558
|
-
},
|
|
12559
|
-
children: i?.isMetric && Ie && a ? /* @__PURE__ */ (0, Q.jsx)("button", {
|
|
12560
|
-
type: "button",
|
|
12561
|
-
className: "dbn:w-full dbn:border-0 dbn:bg-transparent dbn:p-0 dbn-font-inherit dbn:text-inherit",
|
|
12562
|
-
style: { textAlign: "inherit" },
|
|
12541
|
+
Mn && /* @__PURE__ */ (0, Q.jsx)(ve, {
|
|
12542
|
+
title: jn,
|
|
12543
|
+
html: Mn,
|
|
12544
|
+
setHoverLongDesc: De
|
|
12545
|
+
}),
|
|
12546
|
+
i?.clickActions?.card?.isEnable && i?.isMetric ? /* @__PURE__ */ (0, Q.jsx)(H, {
|
|
12547
|
+
variant: "popover",
|
|
12563
12548
|
onClick: () => {
|
|
12564
|
-
|
|
12565
|
-
metric: i,
|
|
12566
|
-
rlsFilters: l,
|
|
12567
|
-
appFilters: g,
|
|
12568
|
-
appliedMetricFilters: ln
|
|
12569
|
-
});
|
|
12549
|
+
Bi(i?.clickActions, i?.metricId, i?.id);
|
|
12570
12550
|
},
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
|
|
12551
|
+
leftIcon: /* @__PURE__ */ (0, Q.jsx)(q, {
|
|
12552
|
+
name: "new-window",
|
|
12553
|
+
size: "sm"
|
|
12554
|
+
}),
|
|
12555
|
+
containerClass: "dbn-interactive-element",
|
|
12556
|
+
title: "Open linked page"
|
|
12557
|
+
}) : null
|
|
12558
|
+
]
|
|
12559
|
+
}) : /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: z ?? K?.metricCardSettings?.isDisableTitle ? null : /* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
12560
|
+
className: "dbn:flex dbn:items-center dbn:gap-1",
|
|
12561
|
+
children: [
|
|
12562
|
+
/* @__PURE__ */ (0, Q.jsx)("h2", {
|
|
12563
|
+
className: `${$.metricTitle} dbn-metric-card-title ${!a && !i?.clickActions?.card?.isEnable && Fe ? "dbn:cursor-auto" : a && !Fe && Ie ? "dbn:cursor-pointer" : ""} ${K?.metricCardSettings?.isEnableTitleWrap ? $.textWrap : $.truncate} ${i?.isMetric ? "" : "dbn:w-full dbn-metric-element-title"}`,
|
|
12564
|
+
style: {
|
|
12565
|
+
textAlign: i?.elementSettings?.titleAlignment || "left",
|
|
12566
|
+
pointerEvents: f ? "none" : void 0
|
|
12567
|
+
},
|
|
12568
|
+
children: i?.isMetric && Ie && a ? /* @__PURE__ */ (0, Q.jsx)("button", {
|
|
12569
|
+
type: "button",
|
|
12570
|
+
className: "dbn:w-full dbn:border-0 dbn:bg-transparent dbn:p-0 dbn-font-inherit dbn:text-inherit",
|
|
12571
|
+
style: { textAlign: "inherit" },
|
|
12572
|
+
onClick: () => {
|
|
12573
|
+
Gn({
|
|
12574
|
+
metric: i,
|
|
12575
|
+
rlsFilters: l,
|
|
12576
|
+
appFilters: g,
|
|
12577
|
+
appliedMetricFilters: ln
|
|
12578
|
+
});
|
|
12579
|
+
},
|
|
12580
|
+
children: jn
|
|
12581
|
+
}) : jn
|
|
12585
12582
|
}),
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
12592
|
-
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
|
|
12598
|
-
|
|
12599
|
-
|
|
12600
|
-
|
|
12601
|
-
|
|
12602
|
-
|
|
12603
|
-
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
|
|
12607
|
-
})
|
|
12608
|
-
|
|
12609
|
-
|
|
12610
|
-
|
|
12611
|
-
|
|
12612
|
-
|
|
12613
|
-
|
|
12614
|
-
|
|
12615
|
-
type: "button",
|
|
12616
|
-
variant: "popover",
|
|
12617
|
-
"data-testid": "metric-card-edit-btn",
|
|
12618
|
-
containerClass: `dbn-interactive-element dbn-metric-card-edit ${ea.cardControl}`,
|
|
12619
|
-
onClick: (e) => {
|
|
12620
|
-
e.stopPropagation(), Xe(i);
|
|
12583
|
+
Mn && /* @__PURE__ */ (0, Q.jsx)(ve, {
|
|
12584
|
+
title: jn,
|
|
12585
|
+
html: Mn,
|
|
12586
|
+
setHoverLongDesc: De
|
|
12587
|
+
}),
|
|
12588
|
+
i?.clickActions?.card?.isEnable ? /* @__PURE__ */ (0, Q.jsx)(H, {
|
|
12589
|
+
variant: "popover",
|
|
12590
|
+
onClick: () => Bi(i?.clickActions, i?.metricId, i?.id),
|
|
12591
|
+
leftIcon: /* @__PURE__ */ (0, Q.jsx)(q, {
|
|
12592
|
+
name: "new-window",
|
|
12593
|
+
size: "sm"
|
|
12594
|
+
}),
|
|
12595
|
+
containerClass: "dbn-interactive-element",
|
|
12596
|
+
title: "Open linked page"
|
|
12597
|
+
}) : null
|
|
12598
|
+
]
|
|
12599
|
+
}) }), i?.description && !K?.metricCardSettings?.isDisableDesc && /* @__PURE__ */ (0, Q.jsx)("span", {
|
|
12600
|
+
className: `${$.metricDescription} ${i?.isMetric && !K?.metricCardSettings?.isEnableDescWrap ? "dbn:truncate" : "dbn:block"} dbn-metric-card-description ${i?.isMetric ? "" : "dbn-metric-element-description"}`,
|
|
12601
|
+
style: { textAlign: i?.elementSettings?.descAlignment || "left" },
|
|
12602
|
+
children: Pn
|
|
12603
|
+
})]
|
|
12604
|
+
}), /* @__PURE__ */ (0, Q.jsx)("span", {
|
|
12605
|
+
className: `${Je && i?.isMetric ? "dbn:h-[30px] dbn:w-[30px]" : ""}`,
|
|
12606
|
+
style: i?.isMetric ? {} : {
|
|
12607
|
+
position: "absolute",
|
|
12608
|
+
top: "1rem",
|
|
12609
|
+
right: "1rem",
|
|
12610
|
+
backgroundColor: Sr || "white",
|
|
12611
|
+
borderRadius: 6
|
|
12621
12612
|
},
|
|
12622
|
-
|
|
12623
|
-
|
|
12624
|
-
|
|
12625
|
-
})
|
|
12626
|
-
})
|
|
12627
|
-
})
|
|
12628
|
-
|
|
12629
|
-
|
|
12630
|
-
|
|
12631
|
-
|
|
12632
|
-
|
|
12633
|
-
|
|
12634
|
-
|
|
12635
|
-
|
|
12636
|
-
|
|
12637
|
-
|
|
12613
|
+
children: Je && (P || i?.isMetric && !Zn) ? /* @__PURE__ */ (0, Q.jsx)("span", {
|
|
12614
|
+
className: ea.cardControl,
|
|
12615
|
+
children: Je(P ? jn : i)
|
|
12616
|
+
}) : null
|
|
12617
|
+
})]
|
|
12618
|
+
}),
|
|
12619
|
+
fr ? /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
12620
|
+
className: $.tableHeaderSearch,
|
|
12621
|
+
children: mr
|
|
12622
|
+
}) : null,
|
|
12623
|
+
w ? null : /* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
12624
|
+
className: Ye && Xe ? `${$.features} dbn-metric-card-controls` : $.features,
|
|
12625
|
+
children: [Ye && Xe ? /* @__PURE__ */ (0, Q.jsx)(Le, {
|
|
12626
|
+
text: i?.isMetric ? "Edit metric" : "Edit element",
|
|
12627
|
+
position: "left",
|
|
12628
|
+
children: /* @__PURE__ */ (0, Q.jsx)(H, {
|
|
12629
|
+
type: "button",
|
|
12630
|
+
variant: "popover",
|
|
12631
|
+
"data-testid": "metric-card-edit-btn",
|
|
12632
|
+
containerClass: `dbn-interactive-element dbn-metric-card-edit ${ea.cardControl}`,
|
|
12633
|
+
onClick: (e) => {
|
|
12634
|
+
e.stopPropagation(), Xe(i);
|
|
12635
|
+
},
|
|
12636
|
+
leftIcon: /* @__PURE__ */ (0, Q.jsx)(q, {
|
|
12637
|
+
name: "pencil-simple-line",
|
|
12638
|
+
size: "xs"
|
|
12638
12639
|
})
|
|
12639
|
-
})
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
...gt.length && S ? [{
|
|
12652
|
-
name: Ee?.RAW_DATA,
|
|
12653
|
-
content: /* @__PURE__ */ (0, Q.jsxs)(tu, {
|
|
12654
|
-
updateDownloadProgress: (e) => M(i?.id, e),
|
|
12655
|
-
timeseriesSettings: hn || K?.chartType !== U.timeSeries ? void 0 : {
|
|
12656
|
-
format: K?.timeSeriesSettings?.groupBySettings?.value || "monthly",
|
|
12657
|
-
seriesField: K?.seriesField || "",
|
|
12658
|
-
isFiscal: ze === "ind"
|
|
12659
|
-
},
|
|
12660
|
-
fileName: jn,
|
|
12661
|
-
onServerEvent: ye,
|
|
12662
|
-
companyIntegrationId: i?.companyIntegrationId,
|
|
12663
|
-
integrationName: i?.integrationName,
|
|
12664
|
-
className: $.popupItem,
|
|
12665
|
-
isPythonMode: hn,
|
|
12666
|
-
data: on || [],
|
|
12667
|
-
drillFilters: an,
|
|
12668
|
-
metricData: {
|
|
12669
|
-
dashboardId: r,
|
|
12670
|
-
options: {
|
|
12671
|
-
clientId: P ? ee || "" : o,
|
|
12672
|
-
isFrontend: P,
|
|
12673
|
-
token: F
|
|
12674
|
-
},
|
|
12675
|
-
globalFilters: ut,
|
|
12676
|
-
rlsConditions: ln,
|
|
12677
|
-
tenancyLevel: u,
|
|
12678
|
-
id: i?.id,
|
|
12679
|
-
dataSecuritySettings: { csvColumns: [] },
|
|
12680
|
-
filterValues: Wt,
|
|
12681
|
-
isAllClient: E
|
|
12682
|
-
},
|
|
12683
|
-
children: [/* @__PURE__ */ (0, Q.jsx)(q, { name: "download" }), "Download"]
|
|
12640
|
+
})
|
|
12641
|
+
}) : null, /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
12642
|
+
className: Zn ? "dbn:h-9 dbn:w-9" : "",
|
|
12643
|
+
children: Dr && /* @__PURE__ */ (0, Q.jsx)(om, {
|
|
12644
|
+
menuWidth: "260px",
|
|
12645
|
+
buttonVariant: "icon",
|
|
12646
|
+
buttonIcon: /* @__PURE__ */ (0, Q.jsx)("span", {
|
|
12647
|
+
className: `${$.morePopup} ${ea.cardControl}`,
|
|
12648
|
+
"data-testid": "metric-card-more-options-kebab",
|
|
12649
|
+
children: /* @__PURE__ */ (0, Q.jsx)(q, {
|
|
12650
|
+
name: k,
|
|
12651
|
+
size: "lg"
|
|
12684
12652
|
})
|
|
12685
|
-
},
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
|
|
12693
|
-
|
|
12694
|
-
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
|
|
12653
|
+
}),
|
|
12654
|
+
position: "bottom-end",
|
|
12655
|
+
items: [
|
|
12656
|
+
...Xn ? [{
|
|
12657
|
+
name: "View underlying data",
|
|
12658
|
+
leftIcon: /* @__PURE__ */ (0, Q.jsx)(q, { name: "table" }),
|
|
12659
|
+
onClick: () => Yn(!0)
|
|
12660
|
+
}] : [],
|
|
12661
|
+
...!P && Je ? [{
|
|
12662
|
+
name: "Edit Metric",
|
|
12663
|
+
content: Je(i)
|
|
12664
|
+
}] : [],
|
|
12665
|
+
...gt.length && S ? [{
|
|
12666
|
+
name: Ee?.RAW_DATA,
|
|
12667
|
+
content: /* @__PURE__ */ (0, Q.jsxs)(tu, {
|
|
12668
|
+
updateDownloadProgress: (e) => M(i?.id, e),
|
|
12669
|
+
timeseriesSettings: hn || K?.chartType !== U.timeSeries ? void 0 : {
|
|
12670
|
+
format: K?.timeSeriesSettings?.groupBySettings?.value || "monthly",
|
|
12671
|
+
seriesField: K?.seriesField || "",
|
|
12672
|
+
isFiscal: ze === "ind"
|
|
12705
12673
|
},
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12674
|
+
fileName: jn,
|
|
12675
|
+
onServerEvent: ye,
|
|
12676
|
+
companyIntegrationId: i?.companyIntegrationId,
|
|
12677
|
+
integrationName: i?.integrationName,
|
|
12678
|
+
className: $.popupItem,
|
|
12679
|
+
isPythonMode: hn,
|
|
12680
|
+
data: on || [],
|
|
12681
|
+
drillFilters: an,
|
|
12682
|
+
metricData: {
|
|
12683
|
+
dashboardId: r,
|
|
12684
|
+
options: {
|
|
12685
|
+
clientId: P ? ee || "" : o,
|
|
12686
|
+
isFrontend: P,
|
|
12687
|
+
token: F
|
|
12688
|
+
},
|
|
12689
|
+
globalFilters: ut,
|
|
12690
|
+
rlsConditions: ln,
|
|
12691
|
+
tenancyLevel: u,
|
|
12692
|
+
id: i?.id,
|
|
12693
|
+
dataSecuritySettings: { csvColumns: [] },
|
|
12694
|
+
filterValues: Wt,
|
|
12695
|
+
isAllClient: E
|
|
12709
12696
|
},
|
|
12710
|
-
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
12725
|
-
|
|
12726
|
-
|
|
12727
|
-
|
|
12697
|
+
children: [/* @__PURE__ */ (0, Q.jsx)(q, { name: "download" }), "Download"]
|
|
12698
|
+
})
|
|
12699
|
+
}, ...!hn && !Ke ? [{
|
|
12700
|
+
name: Ee?.DOWNLOAD_WITHOUT_FILTERS,
|
|
12701
|
+
content: /* @__PURE__ */ (0, Q.jsxs)(tu, {
|
|
12702
|
+
updateDownloadProgress: (e) => M(i?.id, e),
|
|
12703
|
+
timeseriesSettings: hn || K?.chartType !== U.timeSeries ? void 0 : {
|
|
12704
|
+
format: K?.timeSeriesSettings?.groupBySettings?.value || "monthly",
|
|
12705
|
+
seriesField: K?.seriesField || "",
|
|
12706
|
+
isFiscal: ze === "ind"
|
|
12707
|
+
},
|
|
12708
|
+
fileName: jn,
|
|
12709
|
+
onServerEvent: ye,
|
|
12710
|
+
isDownloadWithoutFilters: !0,
|
|
12711
|
+
companyIntegrationId: i?.companyIntegrationId,
|
|
12712
|
+
integrationName: i?.integrationName,
|
|
12713
|
+
metricData: {
|
|
12714
|
+
dashboardId: r,
|
|
12715
|
+
options: {
|
|
12716
|
+
clientId: o,
|
|
12717
|
+
isFrontend: P,
|
|
12718
|
+
token: F
|
|
12719
|
+
},
|
|
12720
|
+
globalFilters: {
|
|
12721
|
+
...ut,
|
|
12722
|
+
filters: ut?.filters?.filter((e) => e.isVariableFilter) || []
|
|
12723
|
+
},
|
|
12724
|
+
rlsConditions: ln?.filter((e) => e.isVariableFilter),
|
|
12725
|
+
tenancyLevel: u,
|
|
12726
|
+
id: i?.id,
|
|
12727
|
+
dataSecuritySettings: { csvColumns: [] },
|
|
12728
|
+
filterValues: Wt,
|
|
12729
|
+
isAllClient: E
|
|
12730
|
+
},
|
|
12731
|
+
className: $.popupItem,
|
|
12732
|
+
isPythonMode: hn,
|
|
12733
|
+
data: on || [],
|
|
12734
|
+
children: [/* @__PURE__ */ (0, Q.jsx)(q, { name: "download" }), "Download Without Filters"]
|
|
12735
|
+
})
|
|
12736
|
+
}] : []] : []
|
|
12737
|
+
],
|
|
12738
|
+
disableAutoClose: !0
|
|
12739
|
+
})
|
|
12740
|
+
})]
|
|
12741
|
+
})
|
|
12742
|
+
]
|
|
12728
12743
|
}) : null,
|
|
12729
12744
|
K?.chartType && /* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
12730
12745
|
className: `${$.metricData} ${Ct && !vn ? $.noHeight : i?.description.length ? $.chartWithDescHeight : $.chartHeight} dbn-chart ${[
|
|
@@ -12748,15 +12763,15 @@ var hf = (e) => s, gf = () => {
|
|
|
12748
12763
|
ref: dt,
|
|
12749
12764
|
style: Be ? { pointerEvents: "none" } : {},
|
|
12750
12765
|
children: [
|
|
12751
|
-
/* @__PURE__ */ (0, Q.jsx)(ki, { text:
|
|
12766
|
+
/* @__PURE__ */ (0, Q.jsx)(ki, { text: jr }),
|
|
12752
12767
|
/* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
12753
12768
|
className: "dbn:w-full dbn:h-auto dbn:flex dbn:items-start",
|
|
12754
12769
|
style: {
|
|
12755
12770
|
background: de || "",
|
|
12756
|
-
marginBottom: Ut.length || dr ||
|
|
12771
|
+
marginBottom: Ut.length || dr || pr ? "0.75rem" : ""
|
|
12757
12772
|
},
|
|
12758
12773
|
children: [Ut.length && (T === "inside" || V) ? /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
12759
|
-
className: `${dr ||
|
|
12774
|
+
className: `${dr || pr ? !dr && pr ? "dbn:w-[70%]" : "dbn:w-[60%]" : "dbn:w-full"} dbn:h-auto dbn:flex dbn:gap-1 dbn:flex-wrap`,
|
|
12760
12775
|
children: /* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
12761
12776
|
className: `${$.metricFilters} ${w ? $.disable : ""} `,
|
|
12762
12777
|
children: [/* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
@@ -12848,8 +12863,8 @@ var hf = (e) => s, gf = () => {
|
|
|
12848
12863
|
})]
|
|
12849
12864
|
}))]
|
|
12850
12865
|
})
|
|
12851
|
-
}) : null, dr ||
|
|
12852
|
-
className: `dbn:h-full ${Ut.length && T === "inside" ? !dr &&
|
|
12866
|
+
}) : null, dr || pr ? /* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
12867
|
+
className: `dbn:h-full ${Ut.length && T === "inside" ? !dr && pr ? "dbn:w-[30%]" : "dbn:w-[40%]" : "dbn:w-full "} dbn:flex dbn:gap-1 dbn:flex-wrap dbn:items-end dbn:justify-end`,
|
|
12853
12868
|
children: [
|
|
12854
12869
|
K?.dynamicXAxis?.isEnabled ? /* @__PURE__ */ (0, Q.jsx)(Ue, {
|
|
12855
12870
|
buttonWidth: D?.width || "180px",
|
|
@@ -12869,7 +12884,7 @@ var hf = (e) => s, gf = () => {
|
|
|
12869
12884
|
value: "",
|
|
12870
12885
|
label: ""
|
|
12871
12886
|
},
|
|
12872
|
-
label:
|
|
12887
|
+
label: yr,
|
|
12873
12888
|
labelVariant: D?.variant || "floating"
|
|
12874
12889
|
}) : null,
|
|
12875
12890
|
K?.dynamicYAxis?.isEnabled ? K?.dynamicYAxis?.isEnabledMultiselect ? /* @__PURE__ */ (0, Q.jsx)(ot, {
|
|
@@ -12893,7 +12908,7 @@ var hf = (e) => s, gf = () => {
|
|
|
12893
12908
|
value: "",
|
|
12894
12909
|
label: ""
|
|
12895
12910
|
}],
|
|
12896
|
-
label:
|
|
12911
|
+
label: br,
|
|
12897
12912
|
labelVariant: D?.variant || "floating"
|
|
12898
12913
|
}) : /* @__PURE__ */ (0, Q.jsx)(Ue, {
|
|
12899
12914
|
buttonWidth: D?.width || "180px",
|
|
@@ -12913,7 +12928,7 @@ var hf = (e) => s, gf = () => {
|
|
|
12913
12928
|
value: "",
|
|
12914
12929
|
label: ""
|
|
12915
12930
|
},
|
|
12916
|
-
label:
|
|
12931
|
+
label: br,
|
|
12917
12932
|
labelVariant: D?.variant || "floating"
|
|
12918
12933
|
}) : null,
|
|
12919
12934
|
K?.customSettings?.isEnableSwitchMeasure ? /* @__PURE__ */ (0, Q.jsx)(Ue, {
|
|
@@ -13017,13 +13032,7 @@ var hf = (e) => s, gf = () => {
|
|
|
13017
13032
|
buttonWidth: "300px",
|
|
13018
13033
|
minButtonWidth: "260px"
|
|
13019
13034
|
}) : null,
|
|
13020
|
-
|
|
13021
|
-
value: typeof mt?.[0] == "string" ? mt?.[0] : "",
|
|
13022
|
-
onChange: (e) => ht(() => [String(e)]),
|
|
13023
|
-
placeholder: "Search",
|
|
13024
|
-
className: gt?.length && !at ? "" : "dbn:invisible",
|
|
13025
|
-
style: { maxWidth: "249px" }
|
|
13026
|
-
})
|
|
13035
|
+
pr ? mr : null
|
|
13027
13036
|
]
|
|
13028
13037
|
}) : null]
|
|
13029
13038
|
}),
|
|
@@ -13057,7 +13066,7 @@ var hf = (e) => s, gf = () => {
|
|
|
13057
13066
|
}) : null,
|
|
13058
13067
|
Ct ? null : /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [
|
|
13059
13068
|
!(tr?.tableSettings?.isEnableColumnFilter && tr?.tableSettings?.isServerSidePagination) && ($n ? nr ? /* @__PURE__ */ (0, Q.jsx)($c, {
|
|
13060
|
-
hasActiveFilters:
|
|
13069
|
+
hasActiveFilters: Ar,
|
|
13061
13070
|
state: An ? "permission-denied" : at || Vn ? "error" : "empty",
|
|
13062
13071
|
widgetName: jn,
|
|
13063
13072
|
chartType: K?.chartType,
|
|
@@ -13070,11 +13079,11 @@ var hf = (e) => s, gf = () => {
|
|
|
13070
13079
|
onRetry: An || Kn || ir?.retryable === !1 ? void 0 : () => {
|
|
13071
13080
|
at || Hn();
|
|
13072
13081
|
},
|
|
13073
|
-
answerLine:
|
|
13074
|
-
hint:
|
|
13082
|
+
answerLine: Nr && Ar ? Pr.title : or,
|
|
13083
|
+
hint: Nr && Ar ? Pr.hint : void 0,
|
|
13075
13084
|
actionLabel: "Clear all filters",
|
|
13076
13085
|
actionTestId: "card-clear-filters",
|
|
13077
|
-
onWidenRange:
|
|
13086
|
+
onWidenRange: Nr && Ar && Mr ? Fr : void 0
|
|
13078
13087
|
}) : null : /* @__PURE__ */ (0, Q.jsx)(Eu, {
|
|
13079
13088
|
isLoading: !at && Ct,
|
|
13080
13089
|
isDataLength: !at && !!gt?.length,
|
|
@@ -13087,10 +13096,10 @@ var hf = (e) => s, gf = () => {
|
|
|
13087
13096
|
onReload: () => {
|
|
13088
13097
|
at || Hn();
|
|
13089
13098
|
},
|
|
13090
|
-
hasActiveFilters:
|
|
13091
|
-
onClearFilters:
|
|
13092
|
-
emptyTitle:
|
|
13093
|
-
emptyHint:
|
|
13099
|
+
hasActiveFilters: Nr && Ar,
|
|
13100
|
+
onClearFilters: Nr && Mr ? Fr : void 0,
|
|
13101
|
+
emptyTitle: Pr.title,
|
|
13102
|
+
emptyHint: Pr.hint,
|
|
13094
13103
|
emptyMessage: or
|
|
13095
13104
|
})),
|
|
13096
13105
|
(![
|
|
@@ -13132,8 +13141,8 @@ var hf = (e) => s, gf = () => {
|
|
|
13132
13141
|
].includes(K?.chartType),
|
|
13133
13142
|
isEnableSort: K?.customSettings?.isEnableSort,
|
|
13134
13143
|
setSortOrder: _n,
|
|
13135
|
-
rawCsvDownloadButtonProps:
|
|
13136
|
-
filteredRawCsvDownloadButtonProps:
|
|
13144
|
+
rawCsvDownloadButtonProps: Ir,
|
|
13145
|
+
filteredRawCsvDownloadButtonProps: Lr
|
|
13137
13146
|
}) : null,
|
|
13138
13147
|
Xn && Jn ? /* @__PURE__ */ (0, Q.jsx)(bf, {
|
|
13139
13148
|
metricTitle: jn,
|
|
@@ -13145,8 +13154,8 @@ var hf = (e) => s, gf = () => {
|
|
|
13145
13154
|
getUnderlyingData: vt,
|
|
13146
13155
|
drillFilters: an,
|
|
13147
13156
|
clientColumnType: te,
|
|
13148
|
-
rawCsvDownloadButtonProps:
|
|
13149
|
-
filteredRawCsvDownloadButtonProps:
|
|
13157
|
+
rawCsvDownloadButtonProps: Ir,
|
|
13158
|
+
filteredRawCsvDownloadButtonProps: Lr,
|
|
13150
13159
|
disableDownloadUnderlyingDataNoFilters: qe,
|
|
13151
13160
|
isDownloadEnabled: !!S,
|
|
13152
13161
|
language: je,
|
|
@@ -13193,7 +13202,7 @@ var hf = (e) => s, gf = () => {
|
|
|
13193
13202
|
columnName: K?.singleValue,
|
|
13194
13203
|
value: gt?.[0]?.[K?.singleValue || ""]
|
|
13195
13204
|
}] : t, r = K?.chartType !== U.singleValue && Object.keys(e)?.length ? e : n;
|
|
13196
|
-
if (
|
|
13205
|
+
if (gr?.(i, {
|
|
13197
13206
|
params: e && Object.keys(e).length ? e : void 0,
|
|
13198
13207
|
rowFilters: n
|
|
13199
13208
|
})) return;
|
|
@@ -13239,7 +13248,7 @@ var hf = (e) => s, gf = () => {
|
|
|
13239
13248
|
dimensions: G,
|
|
13240
13249
|
drilledLevel: At,
|
|
13241
13250
|
isLastConfiguredDrillLevel: a
|
|
13242
|
-
}), (K?.chartType === U.table && (ft || K?.tableSettings?.chartAction?.isEnableColumnRedirection && i?.clickActions?.chart?.isEnable) || K?.chartType !== U.table) && (i?.clickActions?.chart?.routeType === "user" ? ct?.(
|
|
13251
|
+
}), (K?.chartType === U.table && (ft || K?.tableSettings?.chartAction?.isEnableColumnRedirection && i?.clickActions?.chart?.isEnable) || K?.chartType !== U.table) && (i?.clickActions?.chart?.routeType === "user" ? ct?.(hr(r, i?.clickActions?.chart?.isPassAllData) || void 0) : zi(i?.clickActions.chart, hr(r) || void 0))), (!i?.drillDownSettings?.isEnableGroupBy || i?.drillDownSettings?.isEnableGroupBy && G?.length === At) && i?.clickActions?.chartWithMetric?.isEnable && Gn({
|
|
13243
13252
|
metric: i,
|
|
13244
13253
|
rlsFilters: l,
|
|
13245
13254
|
appFilters: g,
|
|
@@ -13252,8 +13261,8 @@ var hf = (e) => s, gf = () => {
|
|
|
13252
13261
|
t && (n && !(ft || r) || !n) && (yt(e), xt(!0));
|
|
13253
13262
|
}
|
|
13254
13263
|
},
|
|
13255
|
-
colors:
|
|
13256
|
-
areChartColorsExplicit:
|
|
13264
|
+
colors: _r || K?.isCustomColorApplied ? K?.chartColors : s || K?.chartColors,
|
|
13265
|
+
areChartColorsExplicit: vr,
|
|
13257
13266
|
config: {
|
|
13258
13267
|
hideBorder: !0,
|
|
13259
13268
|
chartClickConfig: i?.clickActions.chart,
|
|
@@ -13295,7 +13304,7 @@ var hf = (e) => s, gf = () => {
|
|
|
13295
13304
|
className: "dbn:w-full dbn:h-[95%] dbn-chart dbn:overflow-auto",
|
|
13296
13305
|
children: $n && qn === "metricSummary" && !Tn && (Dn || En) ? /* @__PURE__ */ (0, Q.jsx)(Mf, {
|
|
13297
13306
|
empty: Dn,
|
|
13298
|
-
textColor:
|
|
13307
|
+
textColor: Cr
|
|
13299
13308
|
}) : /* @__PURE__ */ (0, Q.jsx)(kf, {
|
|
13300
13309
|
elementSettings: i?.elementSettings?.textBox,
|
|
13301
13310
|
elementSummary: Tn,
|
|
@@ -13309,9 +13318,9 @@ var hf = (e) => s, gf = () => {
|
|
|
13309
13318
|
!On && !Ct && !i?.isMetric && i?.elementSettings?.summary?.metricList?.length && !(i?.elementSettings?.textBox?.text || Tn || En) ? $n ? /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
13310
13319
|
className: "dbn:w-full dbn:h-full",
|
|
13311
13320
|
children: /* @__PURE__ */ (0, Q.jsx)($c, {
|
|
13312
|
-
hasActiveFilters:
|
|
13321
|
+
hasActiveFilters: Ar,
|
|
13313
13322
|
state: "no-data",
|
|
13314
|
-
textColor:
|
|
13323
|
+
textColor: Cr,
|
|
13315
13324
|
widgetName: i?.name,
|
|
13316
13325
|
hint: "Summaries are generated from this element's linked metrics. Once those have data, refresh to generate one."
|
|
13317
13326
|
})
|
|
@@ -13399,13 +13408,13 @@ var hf = (e) => s, gf = () => {
|
|
|
13399
13408
|
}) : null,
|
|
13400
13409
|
Ct && !vn && !oe ? /* @__PURE__ */ (0, Q.jsx)(jf, {
|
|
13401
13410
|
metricName: jn,
|
|
13402
|
-
isTitleHidden:
|
|
13411
|
+
isTitleHidden: Er ? !!(z || K?.metricCardSettings?.isDisableTitle) : !!(z ?? K?.metricCardSettings?.isDisableTitle),
|
|
13403
13412
|
isTitleWrapped: !!K?.metricCardSettings?.isEnableTitleWrap,
|
|
13404
|
-
isFrontendHeader:
|
|
13413
|
+
isFrontendHeader: Er,
|
|
13405
13414
|
renderHeaderName: d,
|
|
13406
13415
|
isElement: !i?.isMetric,
|
|
13407
13416
|
titleAlignment: i?.elementSettings?.titleAlignment,
|
|
13408
|
-
headerBackground:
|
|
13417
|
+
headerBackground: Tr
|
|
13409
13418
|
}) : null,
|
|
13410
13419
|
re && ge && !Pe ? /* @__PURE__ */ (0, Q.jsx)(Le, {
|
|
13411
13420
|
text: "Merge Metrics",
|
|
@@ -13524,7 +13533,7 @@ var Ff = "100% 0px", If = "[data-dbn-card-window=\"managed\"]", Lf = (e) => {
|
|
|
13524
13533
|
className: ca("h-full w-full", r),
|
|
13525
13534
|
"aria-hidden": "true"
|
|
13526
13535
|
});
|
|
13527
|
-
}, ep = () => import("./MetricCardV2-
|
|
13536
|
+
}, ep = () => import("./MetricCardV2-BodL4dtm.mjs"), tp = ha.lazy(ep), np = () => {
|
|
13528
13537
|
ep().catch(() => {});
|
|
13529
13538
|
}, rp = (e) => {
|
|
13530
13539
|
let { isSectionActive: t } = ff();
|
|
@@ -18316,7 +18325,7 @@ var pp = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
|
|
|
18316
18325
|
})]
|
|
18317
18326
|
})
|
|
18318
18327
|
})] });
|
|
18319
|
-
}, fm = ba(() => import("./SearchMetricData-
|
|
18328
|
+
}, fm = ba(() => import("./SearchMetricData-BAbje0HZ.mjs").then((e) => ({ default: e.SearchMetricData }))), pm = (e) => /* @__PURE__ */ (0, Q.jsx)(_a, {
|
|
18320
18329
|
fallback: null,
|
|
18321
18330
|
children: /* @__PURE__ */ (0, Q.jsx)(fm, { ...e })
|
|
18322
18331
|
}), mm = {
|
|
@@ -20132,7 +20141,7 @@ var pp = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
|
|
|
20132
20141
|
RETURN_TRUSTED_TYPE: !1
|
|
20133
20142
|
}), qm = "localStorageValueSet", Jm = "dbn:embed-config", Ym = (e) => {
|
|
20134
20143
|
document.dispatchEvent(new CustomEvent(qm, { detail: e })), document.dispatchEvent(new CustomEvent(Jm, { detail: e }));
|
|
20135
|
-
}, Xm = ha.lazy(() => import("./CreateMetricV2-
|
|
20144
|
+
}, Xm = ha.lazy(() => import("./CreateMetricV2-BeDnNiyh.mjs")), Zm = ({ shouldFitFullScreen: e }) => /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
20136
20145
|
"data-dbn-ui": "v2",
|
|
20137
20146
|
"data-dbn-embed-v2": "create-metric-loading",
|
|
20138
20147
|
style: { display: "contents" },
|
|
@@ -20331,7 +20340,7 @@ var pp = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
|
|
|
20331
20340
|
children: "Save"
|
|
20332
20341
|
})] })]
|
|
20333
20342
|
}) });
|
|
20334
|
-
}, eh = ha.lazy(() => import("./ManageMetricsV2-
|
|
20343
|
+
}, eh = ha.lazy(() => import("./ManageMetricsV2-RqhT8yIO.mjs")), th = ({ props: e }) => {
|
|
20335
20344
|
let { isSectionActive: t } = ff();
|
|
20336
20345
|
return t("embed_ui_v2_metric_cards") ? /* @__PURE__ */ (0, Q.jsx)(ha.Suspense, {
|
|
20337
20346
|
fallback: null,
|
|
@@ -20925,7 +20934,7 @@ var pp = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
|
|
|
20925
20934
|
filters: n,
|
|
20926
20935
|
globalFilterOptions: r
|
|
20927
20936
|
};
|
|
20928
|
-
}, lh = ({ isDashboardReady: e, hasLayoutAction: t, hasDownloadAction: n, hasPdfAction: r, hasManageMetricsAction: i, hasGalleryAction: a }) => e && (t || n || r || i || a), uh = ba(async () => ({ default: (await import("./Portal-
|
|
20937
|
+
}, lh = ({ isDashboardReady: e, hasLayoutAction: t, hasDownloadAction: n, hasPdfAction: r, hasManageMetricsAction: i, hasGalleryAction: a }) => e && (t || n || r || i || a), uh = ba(async () => ({ default: (await import("./Portal-DkdLrxy7.mjs").then((e) => e.g)).GlobalFilters })), dh = ba(async () => ({ default: (await import("./CreateGlobalFilter-CKJUC6E4.mjs")).CreateGlobalFilter })), fh = ({ children: e, surface: t }) => /* @__PURE__ */ (0, Q.jsx)(tn, {
|
|
20929
20938
|
surface: t,
|
|
20930
20939
|
fallback: /* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
20931
20940
|
className: "dbn:flex dbn:min-h-12 dbn:w-full dbn:items-center dbn:justify-center",
|
|
@@ -20944,7 +20953,7 @@ var pp = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
|
|
|
20944
20953
|
}), mh = (e) => /* @__PURE__ */ (0, Q.jsx)(fh, {
|
|
20945
20954
|
surface: "filter editor",
|
|
20946
20955
|
children: /* @__PURE__ */ (0, Q.jsx)(dh, { ...e })
|
|
20947
|
-
}), hh = ba(() => import("./ScheduleEmail-
|
|
20956
|
+
}), hh = ba(() => import("./ScheduleEmail-LQzRpPv0.mjs")), gh = ({ props: e }) => /* @__PURE__ */ (0, Q.jsx)(tn, {
|
|
20948
20957
|
surface: "schedule-email",
|
|
20949
20958
|
fallback: /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
20950
20959
|
className: "dbn:flex dbn:min-h-32 dbn:items-center dbn:justify-center dbn:p-4",
|