@databrainhq/plugin 0.17.9-beta.30 → 0.17.9-beta.31
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-D3DbH3Cx.mjs → Accordion-BhLebRAm.mjs} +32 -25
- package/dist/{Chart-7AGA9h2g.mjs → Chart-BLXiGOie.mjs} +361 -361
- package/dist/{CreateGlobalFilter-oHjA0P9O.mjs → CreateGlobalFilter-DJ75cI8r.mjs} +200 -200
- package/dist/{CreateMetricV2-BGDt9B3L.mjs → CreateMetricV2-DNSbMIqg.mjs} +20 -20
- package/dist/{DraggableItem-7fQUo0x4.mjs → DraggableItem-HJ4Wt8qx.mjs} +11 -11
- package/dist/{HorizontalStackTable-CH68bWy3.mjs → HorizontalStackTable-DadBH16u.mjs} +17 -17
- package/dist/{ManageMetricsV2-tyQYXoAT.mjs → ManageMetricsV2-DQ0F-Sxo.mjs} +3 -3
- package/dist/{MetricCardV2-C2n6LzkA.mjs → MetricCardV2-ndXX9kcc.mjs} +1251 -1170
- package/dist/{NoDataFound-N3gF0Pse.mjs → NoDataFound-C6lIIOZF.mjs} +1 -1
- package/dist/{NoDataState-C6hX-CHr.mjs → NoDataState-Dx5ksEt-.mjs} +2 -2
- package/dist/{Panel-BeWefwKs.mjs → Panel-oW--_1YF.mjs} +1 -1
- package/dist/{PivotTableV2-De4TXsMc.mjs → PivotTableV2-BufQEGso.mjs} +2 -2
- package/dist/{PivotTableV3-2nzDp4Nc.mjs → PivotTableV3-DwleqfW7.mjs} +4 -4
- package/dist/{Portal-C4N01WKg.mjs → Portal-CuJ3yA9x.mjs} +1222 -1200
- package/dist/{RadioButton-DvzkXfzO.mjs → RadioButton-BagXnWOk.mjs} +1 -1
- package/dist/{ScheduleEmail-PEzbadHC.mjs → ScheduleEmail-C_H0_DNM.mjs} +220 -220
- package/dist/{SearchMetricData-CxmDM20t.mjs → SearchMetricData-DPWkvX0c.mjs} +237 -237
- package/dist/{SortPanel-DQjM_vyk.mjs → SortPanel-DctP-Eyd.mjs} +110 -110
- package/dist/{Table-CvDTChaZ.mjs → Table-BSKvdU4q.mjs} +4 -4
- package/dist/{TagInputField-C9M_Ip9e.mjs → TagInputField-B09tGuSM.mjs} +6 -6
- package/dist/{TextAreaField-Q78INHKO.mjs → TextAreaField-CLmioFXe.mjs} +113 -113
- package/dist/{TimeSeriesSettings-C8lvzgja.mjs → TimeSeriesSettings-BS9LodDk.mjs} +2 -2
- package/dist/{cardQueryError-3MGl4pbM.mjs → cardQueryError-Jo2LkSBF.mjs} +810 -790
- package/dist/{chevron-down-Dxhk-Tao.mjs → chevron-down-CTH4bR6n.mjs} +107 -106
- package/dist/{conditionalFormatting-BuG_4wOq.mjs → conditionalFormatting-BU6BaaPb.mjs} +1 -1
- package/dist/{createGlobalFilter.module-DisUwLsO.mjs → createGlobalFilter.module-Cw_A7yeo.mjs} +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/{echarts-BE7AhqVy.mjs → echarts-Dw5Z2Ho-.mjs} +2 -2
- package/dist/{metric.mutation-BRWn1UMi.mjs → metric.mutation-cOoqy5Bi.mjs} +1 -1
- package/dist/{permissions-B5UHxn_4.mjs → permissions-CxZW60Bd.mjs} +289 -261
- package/dist/{pluginV3Request-Dfy8fkbS.mjs → pluginV3Request-CQzo3G0-.mjs} +1 -1
- package/dist/{renderer-qB-6Euan.mjs → renderer-D1fTygev.mjs} +1 -1
- package/dist/{timeseries-Clp-TrGQ.mjs → timeseries-D_nzmvUF.mjs} +1347 -1304
- package/dist/{toTasteAppearance-cIHX7fPm.mjs → toTasteAppearance-C4jy9fG3.mjs} +1 -1
- package/dist/{useGuesTokenUsageLog-BtooXte_.mjs → useGuesTokenUsageLog-BgjAaf3E.mjs} +1 -1
- package/dist/{usePublishArchivedMetrics-CM4KQARj.mjs → usePublishArchivedMetrics-CM7fUNzL.mjs} +2 -2
- package/dist/{useQuery-D3fpbSfw.mjs → useQuery-DhtsBbBi.mjs} +1 -1
- package/dist/webcomponents.css +2 -2
- package/dist/webcomponents.es.js +483 -459
- package/dist/webcomponents.umd.js +153 -153
- package/package.json +1 -1
|
@@ -3,14 +3,14 @@ import "react-dom";
|
|
|
3
3
|
import "react-dom/client";
|
|
4
4
|
import { o as e } from "./rolldown-runtime-C1JUX4Ur.mjs";
|
|
5
5
|
import { s as t } from "./cardStates-DiUMQ7_o.mjs";
|
|
6
|
-
import { fn as n, rn as r } from "./pluginV3Request-
|
|
7
|
-
import { K as i, W as a, ct as o, et as s, ot as c } from "./metric.mutation-
|
|
8
|
-
import { A as l, Aa as u, B as d, D as f, E as p, Fa as m, H as h, I as g, Ia as _, Jr as v, K as y, L as b, La as x, M as S, Ma as C, N as w, O as T, Rn as E, Rt as D, T as O, Ta as k, Ua as A, Z as j, Zi as ee, bn as
|
|
9
|
-
import { r as
|
|
10
|
-
import { c as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as Se } from "./Panel-
|
|
6
|
+
import { fn as n, rn as r } from "./pluginV3Request-CQzo3G0-.mjs";
|
|
7
|
+
import { K as i, W as a, ct as o, et as s, ot as c } from "./metric.mutation-cOoqy5Bi.mjs";
|
|
8
|
+
import { A as l, Aa as u, B as d, D as f, E as p, Fa as m, H as h, I as g, Ia as _, Jr as v, K as y, L as b, La as x, M as S, Ma as C, N as w, O as T, Rn as E, Rt as D, T as O, Ta as k, Ua as A, Z as j, Zi as ee, bn as M, d as N, et as te, f as P, gt as ne, h as F, ir as re, it as ie, j as I, k as L, ka as R, la as z, m as ae, mt as B, n as oe, p as se, pt as ce, qi as le, sr as V, u as ue, wa as H, zi as de, zn as U } from "./Portal-CuJ3yA9x.mjs";
|
|
9
|
+
import { r as fe } from "./timeseries-D_nzmvUF.mjs";
|
|
10
|
+
import { c as pe, d as me, l as he, n as ge, p as _e, r as ve, t as ye } from "./RadioButton-BagXnWOk.mjs";
|
|
11
|
+
import { t as be } from "./useGuesTokenUsageLog-BgjAaf3E.mjs";
|
|
12
|
+
import { t as xe } from "./NoDataFound-C6lIIOZF.mjs";
|
|
13
|
+
import { t as Se } from "./Panel-oW--_1YF.mjs";
|
|
14
14
|
import { t as W } from "./Switch-CqsadJBs.mjs";
|
|
15
15
|
import { t as Ce } from "./Loader-CHJMbWv0.mjs";
|
|
16
16
|
import we, { useCallback as G, useEffect as K, useMemo as q, useRef as Te, useState as J } from "react";
|
|
@@ -99,7 +99,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
99
99
|
})) return a || "Metric query is still generating. Please run or preview the metric before saving.";
|
|
100
100
|
let s = n?.trim() || "", c = r ? o(s, r).trim() : s.startsWith("U2FsdGVk") ? "" : s;
|
|
101
101
|
if (c) try {
|
|
102
|
-
|
|
102
|
+
U(c, "metric.query", i);
|
|
103
103
|
} catch (e) {
|
|
104
104
|
if (e instanceof E) return e.message;
|
|
105
105
|
throw e;
|
|
@@ -111,7 +111,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
111
111
|
}, it = ({ companyId: e, decrypt: t, previousQuery: n }) => {
|
|
112
112
|
let r = n?.trim() || "";
|
|
113
113
|
return r ? !r.startsWith("U2FsdGVk") || !e || !!t(r, e).trim() : !1;
|
|
114
|
-
}, at = ({ rawQuery: e, previousQuery: t, limit: n, dbName: r, companyId: i, isUpdate: a, getLimitedQuery: o =
|
|
114
|
+
}, at = ({ rawQuery: e, previousQuery: t, limit: n, dbName: r, companyId: i, isUpdate: a, getLimitedQuery: o = me, encrypt: s = C, decrypt: c = u }) => {
|
|
115
115
|
let l = e?.trim() || "", d = l && o({
|
|
116
116
|
query: l,
|
|
117
117
|
limit: n,
|
|
@@ -163,7 +163,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
163
163
|
cancel: "_cancel_1kcj9_24",
|
|
164
164
|
error: "_error_1kcj9_28"
|
|
165
165
|
}, st = ({ onSubmit: e, defaultValues: t, onCancel: n, error: r, isCreatingMetric: i }) => {
|
|
166
|
-
let { register: a, handleSubmit: o, setValue: s, formState: { errors: c }, watch: l } =
|
|
166
|
+
let { register: a, handleSubmit: o, setValue: s, formState: { errors: c }, watch: l } = ne(), u = l("name"), f = l("metricId");
|
|
167
167
|
return K(() => {
|
|
168
168
|
t && !i && (s("name", t.name), s("description", t.description), s("metricId", t.metricId));
|
|
169
169
|
}, [t]), K(() => {
|
|
@@ -270,18 +270,18 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
270
270
|
}, pt = (e, t = []) => {
|
|
271
271
|
let n = e?.configuration?.rlsConditions, r = e?.newDatasetSettings?.configuration?.rlsConditions;
|
|
272
272
|
return n?.length ? n : r?.length ? r : n || r ? [] : t;
|
|
273
|
-
}, mt = ({ onSuccess: e, companyIntegrationId: a, selectedColumns: l, query: u, metricQuery: d, integrationName: f, outputColumns: p, chartSettings: h, clientId: g, companyId: _, isLiveMode: v, timeGrain: b, dashboardIds: x, isEnableGroupBy: S, groupBy: C, selectedGroupBy: w, metric: T, datasetMetricSettings: E, drillDownSettings: D, onServerEvent: O, limit: k, isMetricQuerySaveBlocked: A, metricQuerySaveBlockReason:
|
|
274
|
-
let { token:
|
|
273
|
+
}, mt = ({ onSuccess: e, companyIntegrationId: a, selectedColumns: l, query: u, metricQuery: d, integrationName: f, outputColumns: p, chartSettings: h, clientId: g, companyId: _, isLiveMode: v, timeGrain: b, dashboardIds: x, isEnableGroupBy: S, groupBy: C, selectedGroupBy: w, metric: T, datasetMetricSettings: E, drillDownSettings: D, onServerEvent: O, limit: k, isMetricQuerySaveBlocked: A, metricQuerySaveBlockReason: M, clickBehaviourConfigs: N }) => {
|
|
274
|
+
let { token: P, data: F } = m(), [re, I] = J(""), L = G((e) => {
|
|
275
275
|
let n = t(e);
|
|
276
276
|
i("metric_update_failed", { error_code: n?.code || "UNKNOWN" }), I(ft(e, "Something went wrong! Please try again later."));
|
|
277
|
-
}, []), { mutate: R, isPending:
|
|
277
|
+
}, []), { mutate: R, isPending: z } = y(), { mutate: ae } = j(), { saveLogsAsync: B } = be(), { register: oe, setValue: se, watch: ce, handleSubmit: le, control: V, reset: ue } = ne(), U = q(() => de(h), [h]), fe = (t) => {
|
|
278
278
|
I("");
|
|
279
279
|
let n = nt({
|
|
280
280
|
isBlocked: A,
|
|
281
281
|
query: u,
|
|
282
282
|
companyId: _,
|
|
283
283
|
dbName: f,
|
|
284
|
-
message:
|
|
284
|
+
message: M
|
|
285
285
|
});
|
|
286
286
|
if (n) {
|
|
287
287
|
s("create-metric-blocked", {
|
|
@@ -292,11 +292,11 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
292
292
|
}), I(n);
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
let m = h?.chartType ===
|
|
295
|
+
let m = h?.chartType === H.singleValue, y = pt(E), T = _e(E), j = Date.now();
|
|
296
296
|
s("create-metric-start", {
|
|
297
297
|
isSingleChartMetric: m,
|
|
298
|
-
hasToken: !!
|
|
299
|
-
tokenLength:
|
|
298
|
+
hasToken: !!P,
|
|
299
|
+
tokenLength: P?.length || 0,
|
|
300
300
|
...o({
|
|
301
301
|
companyIntegrationId: a,
|
|
302
302
|
metricId: t.metricId,
|
|
@@ -329,7 +329,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
329
329
|
outputColumns: p,
|
|
330
330
|
createdBy: g || "external user",
|
|
331
331
|
isLive: v || !1,
|
|
332
|
-
chartOptions:
|
|
332
|
+
chartOptions: U,
|
|
333
333
|
datasetMetricSettings: T,
|
|
334
334
|
clientId: g || null,
|
|
335
335
|
isCreatedByClient: !!g,
|
|
@@ -342,15 +342,15 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
342
342
|
rlsConditions: y,
|
|
343
343
|
drillDownSettings: D,
|
|
344
344
|
limit: k,
|
|
345
|
-
clickActions:
|
|
345
|
+
clickActions: N
|
|
346
346
|
},
|
|
347
|
-
token:
|
|
347
|
+
token: P
|
|
348
348
|
}, {
|
|
349
349
|
onSuccess: async (t) => {
|
|
350
350
|
!t?.error && !t?.errorDetail && t?.insert_externalMetrics_one?.id ? (s("create-metric-success", {
|
|
351
351
|
durationMs: Date.now() - j,
|
|
352
352
|
metricRowId: t?.insert_externalMetrics_one?.id
|
|
353
|
-
}), await
|
|
353
|
+
}), await B({
|
|
354
354
|
clientId: g,
|
|
355
355
|
data: {
|
|
356
356
|
companyId: _,
|
|
@@ -358,7 +358,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
358
358
|
metricId: t?.insert_externalMetrics_one?.metricId
|
|
359
359
|
},
|
|
360
360
|
isFrontendApp: !1,
|
|
361
|
-
token:
|
|
361
|
+
token: P
|
|
362
362
|
}), await e?.(t?.insert_externalMetrics_one?.id), O?.(r)) : (s("create-metric-rejected", {
|
|
363
363
|
durationMs: Date.now() - j,
|
|
364
364
|
reason: "NO_ID_IN_RESPONSE",
|
|
@@ -377,7 +377,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
377
377
|
}), I && I(ft(e));
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
}, { mutateAsync:
|
|
380
|
+
}, { mutateAsync: me, isPending: ye } = te(), { mutateAsync: xe, isPending: Se } = ie(), W = G((t, r) => {
|
|
381
381
|
I("");
|
|
382
382
|
let i = nt({
|
|
383
383
|
isElement: r,
|
|
@@ -385,7 +385,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
385
385
|
query: u,
|
|
386
386
|
companyId: _,
|
|
387
387
|
dbName: f,
|
|
388
|
-
message:
|
|
388
|
+
message: M
|
|
389
389
|
});
|
|
390
390
|
if (i) {
|
|
391
391
|
s("update-metric-blocked", {
|
|
@@ -397,9 +397,9 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
397
397
|
}), I(i);
|
|
398
398
|
return;
|
|
399
399
|
}
|
|
400
|
-
let m = E?.configuration || E?.newDatasetSettings?.configuration || T?.datasetMetricSettings?.configuration || T?.datasetMetricSettings?.newDatasetSettings?.configuration, y =
|
|
400
|
+
let m = E?.configuration || E?.newDatasetSettings?.configuration || T?.datasetMetricSettings?.configuration || T?.datasetMetricSettings?.newDatasetSettings?.configuration, y = _e(E), b = F?.clientSubsetData?.relationships, S = F?.clientSubsetData?.tableList, C = F?.companyTenancyType || "TABLE";
|
|
401
401
|
if (T?.isAutomaticClientScopeEnabled === !0 && T?.isCreatedByClient === !0 && m) {
|
|
402
|
-
let e =
|
|
402
|
+
let e = he(m?.table?.joins || [], b, T?.isCreatedByClient, C, T?.integrationName, m?.table), t = pe(m, S, T?.isCreatedByClient, C, T?.integrationName);
|
|
403
403
|
if (!e || !t) {
|
|
404
404
|
s("update-metric-blocked", {
|
|
405
405
|
reason: "STALE_SCHEMA",
|
|
@@ -434,8 +434,8 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
434
434
|
path: T?.isCreatedByClient ? "client" : "admin",
|
|
435
435
|
isElement: !!r,
|
|
436
436
|
metricRowId: T?.id,
|
|
437
|
-
hasToken: !!
|
|
438
|
-
tokenLength:
|
|
437
|
+
hasToken: !!P,
|
|
438
|
+
tokenLength: P?.length || 0,
|
|
439
439
|
companyTenancyType: C,
|
|
440
440
|
...o({
|
|
441
441
|
companyIntegrationId: a,
|
|
@@ -455,10 +455,10 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
455
455
|
})
|
|
456
456
|
}), T?.isCreatedByClient) {
|
|
457
457
|
let i = pt(E, T?.rlsConditions || []), a = pt(T?.datasetMetricSettings, T?.rlsConditions || []), o = {
|
|
458
|
-
chartOptions:
|
|
459
|
-
clickActions:
|
|
458
|
+
chartOptions: U,
|
|
459
|
+
clickActions: N,
|
|
460
460
|
datasetMetricSettings: y,
|
|
461
|
-
...
|
|
461
|
+
...ve({
|
|
462
462
|
opened: a,
|
|
463
463
|
next: i
|
|
464
464
|
}),
|
|
@@ -470,12 +470,12 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
470
470
|
elementSettings: w,
|
|
471
471
|
isMetric: !r
|
|
472
472
|
};
|
|
473
|
-
t.description && (o.description = t.description), t.metricId && (o.metricId = t.metricId), t.name && !r && (o.name = t.name), t.elementTitle && r && (o.name = t?.elementTitle), Object.keys(w)?.length && (o.elementSettings = w),
|
|
473
|
+
t.description && (o.description = t.description), t.metricId && (o.metricId = t.metricId), t.name && !r && (o.name = t.name), t.elementTitle && r && (o.name = t?.elementTitle), Object.keys(w)?.length && (o.elementSettings = w), xe({
|
|
474
474
|
data: {
|
|
475
475
|
externalMetricId: T?.id,
|
|
476
476
|
set: o
|
|
477
477
|
},
|
|
478
|
-
token:
|
|
478
|
+
token: P
|
|
479
479
|
}, {
|
|
480
480
|
onSuccess: async (t) => {
|
|
481
481
|
if (t?.error || t?.errorDetail || !t?.update_externalMetrics_by_pk?.id) {
|
|
@@ -491,7 +491,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
491
491
|
path: "client",
|
|
492
492
|
durationMs: Date.now() - j,
|
|
493
493
|
metricRowId: t?.update_externalMetrics_by_pk?.id
|
|
494
|
-
}), I(""), await
|
|
494
|
+
}), I(""), await B({
|
|
495
495
|
clientId: g,
|
|
496
496
|
data: {
|
|
497
497
|
companyId: _,
|
|
@@ -499,7 +499,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
499
499
|
metricId: t?.update_externalMetrics_by_pk?.metricId
|
|
500
500
|
},
|
|
501
501
|
isFrontendApp: !1,
|
|
502
|
-
token:
|
|
502
|
+
token: P
|
|
503
503
|
}), await e?.(), O?.(n);
|
|
504
504
|
},
|
|
505
505
|
onError: (e) => {
|
|
@@ -520,7 +520,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
520
520
|
return;
|
|
521
521
|
}
|
|
522
522
|
let o = pt(E, T?.rlsConditions || []), m = ct(T?.resizeAttributes, !!r);
|
|
523
|
-
|
|
523
|
+
me({
|
|
524
524
|
data: {
|
|
525
525
|
externalMetricId: i,
|
|
526
526
|
clientId: g,
|
|
@@ -542,8 +542,8 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
542
542
|
isCreatedByClient: !!g,
|
|
543
543
|
isAutomaticClientScopeEnabled: !!g,
|
|
544
544
|
isLive: v || t.isLive,
|
|
545
|
-
chartOptions:
|
|
546
|
-
clickActions:
|
|
545
|
+
chartOptions: U,
|
|
546
|
+
clickActions: N,
|
|
547
547
|
limit: k,
|
|
548
548
|
drillDownSettings: D,
|
|
549
549
|
elementSettings: w,
|
|
@@ -552,7 +552,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
552
552
|
externalDashboardMetrics: { data: x?.map((e) => ({ externalDashboardId: e })) }
|
|
553
553
|
}
|
|
554
554
|
},
|
|
555
|
-
token:
|
|
555
|
+
token: P
|
|
556
556
|
}, {
|
|
557
557
|
onSuccess: async (t) => {
|
|
558
558
|
if (t?.error || t?.errorDetail || !t?.insert_clientDeletedMetrics_one || !t?.insert_externalMetrics_one) {
|
|
@@ -570,7 +570,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
570
570
|
path: "admin",
|
|
571
571
|
durationMs: Date.now() - j,
|
|
572
572
|
metricRowId: t?.insert_externalMetrics_one?.id
|
|
573
|
-
}), I(""), await
|
|
573
|
+
}), I(""), await B({
|
|
574
574
|
clientId: g,
|
|
575
575
|
data: {
|
|
576
576
|
companyId: _,
|
|
@@ -578,7 +578,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
578
578
|
metricId: t?.insert_externalMetrics_one?.metricId
|
|
579
579
|
},
|
|
580
580
|
isFrontendApp: !1,
|
|
581
|
-
token:
|
|
581
|
+
token: P
|
|
582
582
|
}), await e?.(t.insert_externalMetrics_one.id, {
|
|
583
583
|
replacedMetricId: i,
|
|
584
584
|
resizeAttributes: m
|
|
@@ -595,11 +595,11 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
595
595
|
}
|
|
596
596
|
}, [
|
|
597
597
|
h,
|
|
598
|
-
V,
|
|
599
|
-
M,
|
|
600
|
-
T,
|
|
601
598
|
U,
|
|
602
|
-
|
|
599
|
+
N,
|
|
600
|
+
T,
|
|
601
|
+
xe,
|
|
602
|
+
me,
|
|
603
603
|
L,
|
|
604
604
|
g,
|
|
605
605
|
_,
|
|
@@ -614,23 +614,23 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
614
614
|
E,
|
|
615
615
|
k,
|
|
616
616
|
A,
|
|
617
|
-
|
|
617
|
+
M
|
|
618
618
|
]), Ce = G((t) => {
|
|
619
619
|
I("");
|
|
620
620
|
let n = { isPublished: !t?.isPublished };
|
|
621
|
-
|
|
621
|
+
xe({
|
|
622
622
|
data: {
|
|
623
623
|
externalMetricId: t?.id,
|
|
624
624
|
set: n
|
|
625
625
|
},
|
|
626
|
-
token:
|
|
626
|
+
token: P
|
|
627
627
|
}, {
|
|
628
628
|
onSuccess: async (t) => {
|
|
629
629
|
if (t?.error || t?.errorDetail || !t?.update_externalMetrics_by_pk?.id) {
|
|
630
630
|
L(t);
|
|
631
631
|
return;
|
|
632
632
|
}
|
|
633
|
-
I(""), await
|
|
633
|
+
I(""), await B({
|
|
634
634
|
clientId: g,
|
|
635
635
|
data: {
|
|
636
636
|
companyId: _,
|
|
@@ -638,7 +638,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
638
638
|
metricId: t?.update_externalMetrics_by_pk?.metricId
|
|
639
639
|
},
|
|
640
640
|
isFrontendApp: !1,
|
|
641
|
-
token:
|
|
641
|
+
token: P
|
|
642
642
|
}), e?.();
|
|
643
643
|
},
|
|
644
644
|
onError: (e) => {
|
|
@@ -647,36 +647,36 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
647
647
|
});
|
|
648
648
|
}, [T, L]);
|
|
649
649
|
return {
|
|
650
|
-
createExternalMetric:
|
|
650
|
+
createExternalMetric: fe,
|
|
651
651
|
updateExternalMetric: W,
|
|
652
|
-
error:
|
|
653
|
-
isLoading:
|
|
654
|
-
clientSubsetData:
|
|
655
|
-
previewTable:
|
|
656
|
-
token:
|
|
657
|
-
workspaceId:
|
|
652
|
+
error: re,
|
|
653
|
+
isLoading: z || ye || Se,
|
|
654
|
+
clientSubsetData: F?.clientSubsetData,
|
|
655
|
+
previewTable: ae,
|
|
656
|
+
token: P,
|
|
657
|
+
workspaceId: F?.workspace?.id,
|
|
658
658
|
dashboardOptions: [{
|
|
659
|
-
value:
|
|
660
|
-
label:
|
|
659
|
+
value: F?.externalDashboard?.id,
|
|
660
|
+
label: F?.externalDashboard?.name || "Dashboard"
|
|
661
661
|
}],
|
|
662
|
-
isDatabaseTenancy:
|
|
663
|
-
isClientDatabaseScoped:
|
|
664
|
-
register:
|
|
665
|
-
setValue:
|
|
666
|
-
watch:
|
|
667
|
-
handleSubmit:
|
|
668
|
-
control:
|
|
669
|
-
reset:
|
|
662
|
+
isDatabaseTenancy: F?.companyTenancyType === ee,
|
|
663
|
+
isClientDatabaseScoped: ge(F?.companyTenancyType),
|
|
664
|
+
register: oe,
|
|
665
|
+
setValue: se,
|
|
666
|
+
watch: ce,
|
|
667
|
+
handleSubmit: le,
|
|
668
|
+
control: V,
|
|
669
|
+
reset: ue,
|
|
670
670
|
onPublishMetric: Ce
|
|
671
671
|
};
|
|
672
|
-
}, ht =
|
|
672
|
+
}, ht = ce({
|
|
673
673
|
active: null,
|
|
674
674
|
over: null,
|
|
675
675
|
DragPreviewCreateRoot: null,
|
|
676
676
|
draggables: [],
|
|
677
677
|
droppables: []
|
|
678
678
|
}), gt = () => {
|
|
679
|
-
let [e, t] =
|
|
679
|
+
let [e, t] = B(ht);
|
|
680
680
|
return {
|
|
681
681
|
dndState: e,
|
|
682
682
|
setActive: (e) => {
|
|
@@ -888,7 +888,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
888
888
|
field: "_field_1aig0_16",
|
|
889
889
|
textField: "_textField_1aig0_20"
|
|
890
890
|
}, xt = ({ name: e, value: t, onChange: n, defaultValue: r, placeholder: i, label: a, className: o = "", isDisabled: s, zIndex: c = 10 }) => {
|
|
891
|
-
let [l, u] = J(t || r || ""), d =
|
|
891
|
+
let [l, u] = J(t || r || ""), d = N(l, 300);
|
|
892
892
|
return K(() => {
|
|
893
893
|
t !== void 0 && t !== l && u(t);
|
|
894
894
|
}, [t]), K(() => {
|
|
@@ -1060,7 +1060,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1060
1060
|
})
|
|
1061
1061
|
]
|
|
1062
1062
|
}), c = q(() => n?.find((t) => t.colors.length === e?.chartColors?.length && De(t.colors || [], e?.chartColors || [])), [e?.chartColors, n]);
|
|
1063
|
-
return /* @__PURE__ */ X(
|
|
1063
|
+
return /* @__PURE__ */ X(ae, {
|
|
1064
1064
|
buttonContent: /* @__PURE__ */ Z("div", {
|
|
1065
1065
|
className: Ct.paletteButton,
|
|
1066
1066
|
children: [
|
|
@@ -1077,7 +1077,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1077
1077
|
label: `${n?.length} palettes`,
|
|
1078
1078
|
varaint: "gray",
|
|
1079
1079
|
size: "xs"
|
|
1080
|
-
}), /* @__PURE__ */ X(
|
|
1080
|
+
}), /* @__PURE__ */ X(V, { name: "chevron-down" })]
|
|
1081
1081
|
})
|
|
1082
1082
|
]
|
|
1083
1083
|
}),
|
|
@@ -1085,7 +1085,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1085
1085
|
menuWidth: "100%",
|
|
1086
1086
|
position: "bottom",
|
|
1087
1087
|
getIsOpen: (e) => a(e),
|
|
1088
|
-
children: /* @__PURE__ */ X(
|
|
1088
|
+
children: /* @__PURE__ */ X(se, {
|
|
1089
1089
|
direction: "col",
|
|
1090
1090
|
className: "dbn:gap-3 dbn:max-h-[350px] dbn:overflow-y-auto dbn:p-3",
|
|
1091
1091
|
children: n.length ? n?.map((e) => /* @__PURE__ */ X("div", {
|
|
@@ -1102,7 +1102,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1102
1102
|
},
|
|
1103
1103
|
children: [s(e, !0), /* @__PURE__ */ X("div", {
|
|
1104
1104
|
style: { width: "40px" },
|
|
1105
|
-
children: /* @__PURE__ */ X(
|
|
1105
|
+
children: /* @__PURE__ */ X(ye, {
|
|
1106
1106
|
id: `${e?.name}-radio`,
|
|
1107
1107
|
name: `${e?.name}-radio`,
|
|
1108
1108
|
checked: e?.name === c?.name,
|
|
@@ -1300,7 +1300,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1300
1300
|
n?.isEnableStackBar,
|
|
1301
1301
|
S
|
|
1302
1302
|
]);
|
|
1303
|
-
let C = q(() => e?.chartType ===
|
|
1303
|
+
let C = q(() => e?.chartType === H.horizontalCombo ? Ot : Dt, [e?.chartType]);
|
|
1304
1304
|
return /* @__PURE__ */ Z(Y, { children: [c ? null : /* @__PURE__ */ Z("div", {
|
|
1305
1305
|
className: "dbn:w-full dbn:px-3 dbn:py-3 dbn:border dbn:border-secondary dbn:rounded-md dbn:flex dbn:flex-col dbn:gap-0",
|
|
1306
1306
|
"data-testid": `combo-axis-${n?.axis?.toLowerCase().replaceAll(" ", "-")}`,
|
|
@@ -1313,7 +1313,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1313
1313
|
children: [
|
|
1314
1314
|
/* @__PURE__ */ X("span", {
|
|
1315
1315
|
className: `${o ? "" : "dbn:-rotate-90 dbn:block"}`,
|
|
1316
|
-
children: /* @__PURE__ */ X(
|
|
1316
|
+
children: /* @__PURE__ */ X(V, { name: "caret-down-fill" })
|
|
1317
1317
|
}),
|
|
1318
1318
|
/* @__PURE__ */ X("span", {
|
|
1319
1319
|
className: "dbn:w-[cal(100%-80px)] dbn:block dbn:text-sm dbn:font-medium dbn:truncate",
|
|
@@ -1334,7 +1334,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1334
1334
|
onClick: (e) => {
|
|
1335
1335
|
e.stopPropagation(), l(!0), r(n.axis);
|
|
1336
1336
|
},
|
|
1337
|
-
children: /* @__PURE__ */ X(
|
|
1337
|
+
children: /* @__PURE__ */ X(V, {
|
|
1338
1338
|
name: "merge-2",
|
|
1339
1339
|
size: "xs"
|
|
1340
1340
|
})
|
|
@@ -1347,7 +1347,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1347
1347
|
onClick: (e) => {
|
|
1348
1348
|
e.stopPropagation(), v();
|
|
1349
1349
|
},
|
|
1350
|
-
children: /* @__PURE__ */ X(
|
|
1350
|
+
children: /* @__PURE__ */ X(V, {
|
|
1351
1351
|
name: "unmerge",
|
|
1352
1352
|
size: "xs"
|
|
1353
1353
|
})
|
|
@@ -1482,7 +1482,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1482
1482
|
}
|
|
1483
1483
|
})
|
|
1484
1484
|
}) : null,
|
|
1485
|
-
n?.chartTypes?.some((e) => e?.type ===
|
|
1485
|
+
n?.chartTypes?.some((e) => e?.type === H.bar) ? /* @__PURE__ */ X(W, {
|
|
1486
1486
|
name: `${n.axis} barBg`,
|
|
1487
1487
|
placeholder: "Bar Background",
|
|
1488
1488
|
enabled: n.isEnableBarBg,
|
|
@@ -1516,7 +1516,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1516
1516
|
value: n?.numberFormatter || "original",
|
|
1517
1517
|
label: n?.numberFormatter || "original"
|
|
1518
1518
|
},
|
|
1519
|
-
options:
|
|
1519
|
+
options: z,
|
|
1520
1520
|
onChange: (e) => {
|
|
1521
1521
|
let r = {
|
|
1522
1522
|
...n,
|
|
@@ -1656,7 +1656,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1656
1656
|
variant: "tertiary",
|
|
1657
1657
|
onClick: () => a(!0),
|
|
1658
1658
|
size: "small",
|
|
1659
|
-
leftIcon: /* @__PURE__ */ X(
|
|
1659
|
+
leftIcon: /* @__PURE__ */ X(V, {
|
|
1660
1660
|
name: "plus",
|
|
1661
1661
|
size: "sm"
|
|
1662
1662
|
}),
|
|
@@ -1727,7 +1727,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1727
1727
|
className: "dbn:w-full dbn:px-4 dbn:py-3 dbn:rounded-md dbn:flex dbn:gap-3 dbn:items-center dbn:justify-between dbn:border dbn:border-secondary",
|
|
1728
1728
|
children: [/* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(A, {
|
|
1729
1729
|
variant: "body-text-2",
|
|
1730
|
-
children:
|
|
1730
|
+
children: fe(e.label, 22)
|
|
1731
1731
|
}), /* @__PURE__ */ X(A, {
|
|
1732
1732
|
variant: "body-text-3",
|
|
1733
1733
|
children: `(${e.lowerLimit} - ${e.upperLimit})`
|
|
@@ -1735,7 +1735,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1735
1735
|
className: "dbn:flex dbn:gap-4 dbn:mx-3",
|
|
1736
1736
|
children: [/* @__PURE__ */ X(_, {
|
|
1737
1737
|
variant: "popover",
|
|
1738
|
-
leftIcon: /* @__PURE__ */ X(
|
|
1738
|
+
leftIcon: /* @__PURE__ */ X(V, {
|
|
1739
1739
|
name: "pencil-simple",
|
|
1740
1740
|
size: "sm"
|
|
1741
1741
|
}),
|
|
@@ -1749,7 +1749,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1749
1749
|
isDisabled: i
|
|
1750
1750
|
}), /* @__PURE__ */ X(_, {
|
|
1751
1751
|
variant: "popover",
|
|
1752
|
-
leftIcon: /* @__PURE__ */ X(
|
|
1752
|
+
leftIcon: /* @__PURE__ */ X(V, {
|
|
1753
1753
|
name: "delete",
|
|
1754
1754
|
color: "alert"
|
|
1755
1755
|
}),
|
|
@@ -1772,7 +1772,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1772
1772
|
}),
|
|
1773
1773
|
/* @__PURE__ */ Z("div", {
|
|
1774
1774
|
className: "dbn:w-full dbn:px-3 dbn:py-3 dbn:border dbn:border-secondary dbn:rounded-md dbn:flex dbn:gap-2",
|
|
1775
|
-
children: [/* @__PURE__ */ X(
|
|
1775
|
+
children: [/* @__PURE__ */ X(ue, {
|
|
1776
1776
|
isDisabled: !0,
|
|
1777
1777
|
checked: !0
|
|
1778
1778
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -1782,7 +1782,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1782
1782
|
}),
|
|
1783
1783
|
y?.map((e) => /* @__PURE__ */ Z("div", {
|
|
1784
1784
|
className: "dbn:w-full dbn:px-3 dbn:py-3 dbn:border dbn:border-secondary dbn:rounded-md dbn:flex dbn:gap-2",
|
|
1785
|
-
children: [/* @__PURE__ */ X(
|
|
1785
|
+
children: [/* @__PURE__ */ X(ue, { onClick: () => {
|
|
1786
1786
|
u?.find((t) => t.axis === e.axis) ? d(u.filter((t) => t.axis !== e.axis)) : d((t) => [...t, e]);
|
|
1787
1787
|
} }), /* @__PURE__ */ X("span", {
|
|
1788
1788
|
className: "dbn:w-[cal(100%-80px)] dbn:block dbn:text-sm dbn:font-medium dbn:truncate",
|
|
@@ -1818,7 +1818,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1818
1818
|
className: "dbn:flex dbn:gap-2 dbn:items-center dbn:w-[80%]",
|
|
1819
1819
|
children: [/* @__PURE__ */ X("span", {
|
|
1820
1820
|
className: `${r ? "" : "dbn:-rotate-90 dbn:block"}`,
|
|
1821
|
-
children: /* @__PURE__ */ X(
|
|
1821
|
+
children: /* @__PURE__ */ X(V, { name: "caret-down-fill" })
|
|
1822
1822
|
}), /* @__PURE__ */ X("span", {
|
|
1823
1823
|
className: "dbn:w-[cal(100%-80px)] dbn:block dbn:text-sm dbn:font-medium dbn:truncate",
|
|
1824
1824
|
children: n?.axis
|
|
@@ -1834,7 +1834,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
1834
1834
|
value: n?.numberFormatter || "original",
|
|
1835
1835
|
label: n?.numberFormatter || "original"
|
|
1836
1836
|
},
|
|
1837
|
-
options:
|
|
1837
|
+
options: z,
|
|
1838
1838
|
onChange: (e) => {
|
|
1839
1839
|
let r = {
|
|
1840
1840
|
...n,
|
|
@@ -2015,7 +2015,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2015
2015
|
value: n.value
|
|
2016
2016
|
})
|
|
2017
2017
|
}),
|
|
2018
|
-
![
|
|
2018
|
+
![H.trendAnalyzer].includes(e?.chartType) && e?.tableSettings?.isEnableNumberFormatting && e?.tableSettings?.tableNumberFormatter?.find((e) => n?.columns?.some((t) => e.columns?.includes(t))) ? /* @__PURE__ */ X("div", {
|
|
2019
2019
|
className: "dbn:col-span-4",
|
|
2020
2020
|
children: /* @__PURE__ */ X(F, {
|
|
2021
2021
|
label: "Compare Value with",
|
|
@@ -2041,10 +2041,10 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2041
2041
|
}) : null,
|
|
2042
2042
|
/* @__PURE__ */ X("div", {
|
|
2043
2043
|
className: "dbn:col-span-4 dbn:flex dbn:items-end",
|
|
2044
|
-
children: /* @__PURE__ */ Z(
|
|
2044
|
+
children: /* @__PURE__ */ Z(se, {
|
|
2045
2045
|
direction: "row",
|
|
2046
2046
|
className: "dbn:gap-2 dbn:items-end",
|
|
2047
|
-
children: [/* @__PURE__ */ X(
|
|
2047
|
+
children: [/* @__PURE__ */ X(ye, {
|
|
2048
2048
|
"data-testid": "bg-color",
|
|
2049
2049
|
id: "bg-color",
|
|
2050
2050
|
name: "bgColor",
|
|
@@ -2059,7 +2059,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2059
2059
|
},
|
|
2060
2060
|
defaultChecked: !!n?.isApplyBgColor,
|
|
2061
2061
|
checked: !!n?.isApplyBgColor
|
|
2062
|
-
}), /* @__PURE__ */ X(
|
|
2062
|
+
}), /* @__PURE__ */ X(ye, {
|
|
2063
2063
|
"data-testid": "badge-color",
|
|
2064
2064
|
id: "badge-color",
|
|
2065
2065
|
name: "badgeColor",
|
|
@@ -2138,7 +2138,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2138
2138
|
}))
|
|
2139
2139
|
})]
|
|
2140
2140
|
}),
|
|
2141
|
-
s && /* @__PURE__ */ X(
|
|
2141
|
+
s && /* @__PURE__ */ X(P, {
|
|
2142
2142
|
text: s,
|
|
2143
2143
|
variant: "error",
|
|
2144
2144
|
className: "dbn:col-span-4"
|
|
@@ -2161,7 +2161,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2161
2161
|
})]
|
|
2162
2162
|
})
|
|
2163
2163
|
]
|
|
2164
|
-
}) }), Nt = (e) => [
|
|
2164
|
+
}) }), Nt = (e) => [H.horizontalStackTable].includes(e) ? [
|
|
2165
2165
|
{
|
|
2166
2166
|
label: "",
|
|
2167
2167
|
value: "right",
|
|
@@ -2178,10 +2178,10 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2178
2178
|
icon: "align-bottom"
|
|
2179
2179
|
}
|
|
2180
2180
|
] : [
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2181
|
+
H.pie,
|
|
2182
|
+
H.doughnut,
|
|
2183
|
+
H.rose,
|
|
2184
|
+
H.funnel
|
|
2185
2185
|
].includes(e) ? [
|
|
2186
2186
|
{
|
|
2187
2187
|
label: "Outside",
|
|
@@ -2198,7 +2198,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2198
2198
|
value: "hidden",
|
|
2199
2199
|
icon: ""
|
|
2200
2200
|
}
|
|
2201
|
-
] : [
|
|
2201
|
+
] : [H.linearGauge].includes(e) ? [
|
|
2202
2202
|
{
|
|
2203
2203
|
label: "",
|
|
2204
2204
|
value: "hidden",
|
|
@@ -2372,9 +2372,9 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2372
2372
|
}));
|
|
2373
2373
|
}, s = G((t, n) => {
|
|
2374
2374
|
let i = r?.map((e) => e.value) || [], a = n.filter((e) => e && e !== "NONE" && i.includes(e)) || [], s = n.filter((e) => e && e !== "NONE") || [], c = [
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2375
|
+
H.pivotV2,
|
|
2376
|
+
H.horizontalStackTable,
|
|
2377
|
+
H.pivotV3
|
|
2378
2378
|
].includes(e?.chartType) ? s : a;
|
|
2379
2379
|
o("columns", t, c);
|
|
2380
2380
|
}, [
|
|
@@ -2400,7 +2400,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2400
2400
|
children: [
|
|
2401
2401
|
/* @__PURE__ */ X(_, {
|
|
2402
2402
|
variant: "popover",
|
|
2403
|
-
leftIcon: /* @__PURE__ */ X(
|
|
2403
|
+
leftIcon: /* @__PURE__ */ X(V, {
|
|
2404
2404
|
name: "delete",
|
|
2405
2405
|
size: "xs"
|
|
2406
2406
|
}),
|
|
@@ -2430,7 +2430,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2430
2430
|
value: t.formatter || "original",
|
|
2431
2431
|
label: t.formatter || "original"
|
|
2432
2432
|
},
|
|
2433
|
-
options:
|
|
2433
|
+
options: z,
|
|
2434
2434
|
isDisabled: !e?.tableSettings?.isEnableNumberFormatting,
|
|
2435
2435
|
onChange: (e) => o("formatter", n, e.value),
|
|
2436
2436
|
buttonWidth: "100%",
|
|
@@ -2469,7 +2469,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2469
2469
|
}
|
|
2470
2470
|
})),
|
|
2471
2471
|
size: "small",
|
|
2472
|
-
leftIcon: /* @__PURE__ */ X(
|
|
2472
|
+
leftIcon: /* @__PURE__ */ X(V, {
|
|
2473
2473
|
name: "plus",
|
|
2474
2474
|
size: "sm"
|
|
2475
2475
|
}),
|
|
@@ -2563,12 +2563,12 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2563
2563
|
chartOptionBtnSelected: "_chartOptionBtnSelected_1qmry_32",
|
|
2564
2564
|
"chart-option": "_chart-option_1qmry_36",
|
|
2565
2565
|
overlay: "_overlay_1qmry_41"
|
|
2566
|
-
}, Wt = (e) =>
|
|
2566
|
+
}, Wt = (e) => M(e || []).numberKeys.map((e) => ({
|
|
2567
2567
|
name: e,
|
|
2568
2568
|
dataType: "number"
|
|
2569
2569
|
})), Gt = (e, t) => {
|
|
2570
2570
|
let n = e || [];
|
|
2571
|
-
return
|
|
2571
|
+
return re(n, Wt(n), t);
|
|
2572
2572
|
}, Kt = (e) => {
|
|
2573
2573
|
let t = R(e);
|
|
2574
2574
|
return !t || t.engines.v1 || t.engines.v2;
|
|
@@ -2632,9 +2632,9 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2632
2632
|
}
|
|
2633
2633
|
].filter((e) => e.options.length > 0);
|
|
2634
2634
|
}, Yt = ({ chartTypePanelProps: { onChartChange: e, enabledCharts: t, allowedChartTypes: n, selectedChart: r, isOpen: i, onClose: a, zIndex: o, inline: s, onClickSettings: c, resultData: l } }) => {
|
|
2635
|
-
let [u, d] = J(""), [f, p] = J(
|
|
2635
|
+
let [u, d] = J(""), [f, p] = J(le || []), [m, h] = J("");
|
|
2636
2636
|
K(() => {
|
|
2637
|
-
let e = n?.length ? n.map((e) => k[e]) : Object.values(k), t =
|
|
2637
|
+
let e = n?.length ? n.map((e) => k[e]) : Object.values(k), t = le.map((t) => {
|
|
2638
2638
|
let n = t?.value?.filter((t) => e?.includes(t?.name?.toLowerCase()));
|
|
2639
2639
|
return n?.length > 0 ? {
|
|
2640
2640
|
...t,
|
|
@@ -2663,12 +2663,12 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2663
2663
|
className: Ut.chartTypePanel,
|
|
2664
2664
|
id: "chart-types",
|
|
2665
2665
|
children: [
|
|
2666
|
-
/* @__PURE__ */ X(
|
|
2666
|
+
/* @__PURE__ */ X(P, {
|
|
2667
2667
|
variant: "warning",
|
|
2668
2668
|
text: "Dimensions and Measures will be trimmed for unsupported cases.",
|
|
2669
2669
|
contentClassName: "dbn:p-0"
|
|
2670
2670
|
}),
|
|
2671
|
-
/* @__PURE__ */ X(
|
|
2671
|
+
/* @__PURE__ */ X(oe, { setSearchKeyword: d }),
|
|
2672
2672
|
y?.length ? y.map((t, n) => /* @__PURE__ */ Z("div", {
|
|
2673
2673
|
className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-3",
|
|
2674
2674
|
"data-testid": `chart-tier-${t.tier}`,
|
|
@@ -2729,7 +2729,7 @@ var De = (e, t) => e?.length === t?.length && e?.every((e) => t?.includes(e)), O
|
|
|
2729
2729
|
}, t.name);
|
|
2730
2730
|
})
|
|
2731
2731
|
})]
|
|
2732
|
-
}, t.tier)) : /* @__PURE__ */ X(
|
|
2732
|
+
}, t.tier)) : /* @__PURE__ */ X(xe, {
|
|
2733
2733
|
message: "No Charts Available.",
|
|
2734
2734
|
subText: "Try adjusting your search.",
|
|
2735
2735
|
msgGap: "4px",
|