react-semaphor 0.1.309 → 0.1.310
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/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/chunks/{braces-BHDm9arh.js → braces-B_1DhXjs.js} +1 -1
- package/dist/chunks/{braces-DEq8EJtw.js → braces-BataYVhi.js} +1 -1
- package/dist/chunks/{chevrons-up-down-DDEY9beZ.js → chevrons-up-down-2PuJgXa0.js} +1 -1
- package/dist/chunks/{chevrons-up-down-Cbtggnqv.js → chevrons-up-down-CfMX77Ug.js} +1 -1
- package/dist/chunks/common-types-4bjoIgvm.js +75 -0
- package/dist/chunks/common-types-C73-Ud1-.js +1 -0
- package/dist/chunks/{dashboard-controls-C_vjMmt2.js → dashboard-controls-CZH2CHE6.js} +1 -1
- package/dist/chunks/{dashboard-controls-Cp41403T.js → dashboard-controls-DKNSTyu3.js} +83 -83
- package/dist/chunks/{dashboard-filter-controls-button-DFKZjkD4.js → dashboard-filter-controls-button-C5FGXiyJ.js} +4 -4
- package/dist/chunks/{dashboard-filter-controls-button-tfjDO4D4.js → dashboard-filter-controls-button-CRYFNfgr.js} +1 -1
- package/dist/chunks/{dashboard-json-Cc8S_uIr.js → dashboard-json-A9m16zgO.js} +2 -2
- package/dist/chunks/{dashboard-json-QR7WNDuO.js → dashboard-json-CUYxXIbj.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-qH6FOt7O.js → dashboard-summary-settings-dialog-BFldiulJ.js} +3 -3
- package/dist/chunks/{dashboard-summary-settings-dialog-CxXxzyRP.js → dashboard-summary-settings-dialog-Dl80Vf3Y.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-J7cHkCD6.js → edit-dashboard-visual-Bt6wP1pc.js} +32 -32
- package/dist/chunks/{edit-dashboard-visual-_BZQa5yI.js → edit-dashboard-visual-C013lDvS.js} +1251 -1261
- package/dist/chunks/{index-AerZtbg0.js → index-C_mYCH5V.js} +206 -206
- package/dist/chunks/{index-CSgoL0P9.js → index-scc12bkM.js} +71 -69
- package/dist/chunks/{palette-CteErylX.js → palette-CuxyTPBF.js} +1 -1
- package/dist/chunks/{palette-CNKSAIrt.js → palette-DIqG9FgB.js} +1 -1
- package/dist/chunks/{resource-management-panel-DbYkAk1I.js → resource-management-panel-CkS-1IEw.js} +1 -1
- package/dist/chunks/{resource-management-panel-CcFT7lpL.js → resource-management-panel-xJtqTzS8.js} +3 -3
- package/dist/chunks/{save-B1-nDZwS.js → save-CP9_rxYk.js} +1 -1
- package/dist/chunks/{save-BVVnWGeb.js → save-CPHrveZg.js} +1 -1
- package/dist/chunks/{switch-BG4RWnrq.js → switch-BFPV36rd.js} +31 -31
- package/dist/chunks/{switch-BZn7R_Cp.js → switch-DXHYEa_J.js} +1586 -1637
- package/dist/chunks/{use-create-flow-overlay-state-CczjbVZY.js → use-create-flow-overlay-state-C77yBFiq.js} +4 -4
- package/dist/chunks/{use-create-flow-overlay-state-DImkf832.js → use-create-flow-overlay-state-nhcTzyJQ.js} +1 -1
- package/dist/chunks/{use-visual-utils-DczvWVbd.js → use-visual-utils-BqljNzWn.js} +2 -2
- package/dist/chunks/{use-visual-utils-BdHwrbtr.js → use-visual-utils-Cm2IkP1c.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +107 -104
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +3 -3
- package/dist/types/dashboard.d.ts +17 -5
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +16 -7
- package/dist/types/main.d.ts +39 -5
- package/dist/types/shared.d.ts +17 -5
- package/dist/types/surfboard.d.ts +17 -5
- package/dist/types/types.d.ts +310 -57
- package/package.json +6 -1
- package/dist/chunks/common-types-C6cAQgyh.js +0 -9
- package/dist/chunks/common-types-nBuCd3u2.js +0 -1
|
@@ -19,21 +19,21 @@ import * as ee from "react";
|
|
|
19
19
|
import le, { createContext as hr, useContext as En, useState as J, useMemo as Z, useEffect as ve, useCallback as ue, useRef as De, forwardRef as ni, isValidElement as Tp, memo as rl, useLayoutEffect as ys, cloneElement as yF, createElement as Eo, Fragment as bx, useId as gu, useSyncExternalStore as zC, useTransition as Phe, Component as eW, Suspense as Ls, useImperativeHandle as vF, useReducer as tW, Children as Fhe, startTransition as nW, lazy as yx } from "react";
|
|
20
20
|
import * as DM from "react-dom";
|
|
21
21
|
import vx, { flushSync as Lc, createPortal as mm, unstable_batchedUpdates as Hw } from "react-dom";
|
|
22
|
-
import {
|
|
23
|
-
import { c as kx, d as
|
|
24
|
-
import { createRoot as
|
|
25
|
-
import { g as
|
|
26
|
-
import { DEFAULT_SEMANTIC_DOMAIN_ACCESS as
|
|
27
|
-
import { t as YF, c as
|
|
28
|
-
import { a as La, b as
|
|
29
|
-
import { C as xd } from "./common-types-
|
|
22
|
+
import { bw as $c, bx as xx, by as MM, m as fn, bz as Ohe, bA as wx, bB as xF, u as te, bC as Lhe, bg as $n, b1 as qa, bD as q4, bE as $he, bF as zhe, bG as Vhe, aJ as rW, bH as Bhe, Z as is, a as Q, c as Xe, bI as au, bJ as ol, bK as Zt, bL as Kr, bM as wF, bN as vs, bO as CF, bP as Mn, bQ as j_, bR as H_, bS as oW, bT as iW, bU as aW, bV as sW, bW as SF, bX as NF, bY as lW, bZ as cW, b_ as uW, b$ as jhe, aH as _F, c0 as U_, c1 as kF, c2 as Zi, c3 as dW, c4 as il, c5 as Kl, e as zr, B as me, f as no, z as to, A as tr, D as nr, F as wr, a8 as fW, c6 as IF, ay as bu, c7 as Cx, aE as q_, aF as hi, c8 as Yr, c9 as Hhe, X as rn, ca as Sx, L as qe, I as Rt, cb as ES, G as Ri, P as ur, b as Cr, d as Sr, cc as hW, cd as Uhe, ce as mW, cf as qhe, cg as EF, ch as pW, ci as Whe, cj as AM, ck as Yhe, cl as Ghe, cm as gW, cn as W4, co as Khe, cp as Zhe, cq as bW, cr as Xhe, cs as Qhe, ct as Jhe, cu as eme, aT as Zl, aA as Nx, bo as TF, n as at, b2 as Yn, aC as yW, aD as Lh, cv as RM, bf as vW, bm as Oa, bn as $s, cw as tme, cx as nme, l as Hr, cy as rme, cz as TS, cA as xW, cB as DF, aK as W_, cC as Y_, cD as MF, cE as AF, bq as yu, cF as wW, bp as sc, cG as ome, cH as RF, br as PF, cI as ime, bc as $E, aM as fa, cJ as yp, cK as su, a3 as ame, y as Ma, g as Ft, h as Ot, i as Vt, j as Lt, k as Ve, cL as CW, cM as sme, aS as pm, cN as lme, cO as wi, bb as zo, b9 as SW, ba as NW, cP as FF, cQ as _W, cR as kW, cS as IW, cT as DS, E as Wr, cU as cme, T as vu, q as xu, r as Xi, t as Zc, s as Xl, bu as sd, bv as zc, cV as i0, cW as VC, cX as BC, cY as a0, cZ as Df, c_ as Mf, c$ as Ds, d0 as jC, d1 as HC, d2 as s0, d3 as PM, d4 as FM, d5 as OM, d6 as EW, Q as Ql, O as Ad, d7 as ume, d8 as Iy, d9 as dme, da as TW, db as zE, dc as VE, dd as fme, de as hme, df as mme, dg as pme, dh as gme, di as bme, dj as OF, dk as G_, dl as yme, dm as vme, dn as DW, dp as MW, C as AW, aU as RW, dq as xme, az as Uo, dr as wme, b0 as PW, ds as Cme, aI as Sme, dt as Nme, du as FW, b3 as OW, dv as _me, b6 as ld, dw as q0, b7 as LF, x as cs, aN as LW, be as LM, S as Zs, dx as $W, dy as $b, dz as kme, dA as Ime, dB as Y4, dC as zW, dD as Gu, dE as VW, dF as BW, dG as $F, dH as Eme, bi as K_, aL as l0, aP as zF, v as VF, a5 as Tme, dI as Dme, dJ as Mme, w as jW, dK as Ame, dL as G4, dM as K4, dN as HW, dO as Rme, dP as Pme, dQ as Fme, dR as Ome, dS as Lme, dT as $me, dU as zme, dV as Vme, dW as Bme, a1 as $M, Y as UW, W as qW, N as jme, M as Z4, dX as Hme, dY as Ume, dZ as qme, d_ as Wme, d$ as Yme, e0 as Gme, bs as c0, e1 as WW, e2 as vp, e3 as Kme, e4 as YW, e5 as Zme, am as BF, e6 as jF, ah as Z_, ai as Xme, ak as GW, e7 as Qme, al as BE, e8 as Jme, e9 as epe, ea as tpe, aX as npe, aY as rpe, as as ope, p as KW, aa as ZW, eb as pl, ad as ipe, af as XW, ae as jE, ar as QW, an as JW, at as zM, aw as X4, av as ape, ag as eY, ec as VM, ed as cd, R as Q4, ee as tY, ef as Uw, eg as spe, eh as HF, ei as BM, ej as UF, ek as qF, aG as lpe, bh as nY, bj as _x, b4 as cpe, el as upe, em as dpe, en as W0, aQ as fpe, eo as hpe, U as WF, ep as mpe, bk as rY, bl as oY, eq as iY, er as ppe, es as gpe, et as bpe, eu as ype, ev as aY } from "./switch-DXHYEa_J.js";
|
|
23
|
+
import { c as kx, d as vpe, A as xpe, r as sY } from "./index-CJdxSyQq.js";
|
|
24
|
+
import { createRoot as wpe } from "react-dom/client";
|
|
25
|
+
import { g as Cpe, c as jM, d as Spe, f as Zd, a as Ix, b as gm, i as Dp } from "./date-formatter-DyIOb6uC.js";
|
|
26
|
+
import { DEFAULT_SEMANTIC_DOMAIN_ACCESS as Npe } from "../types/index.js";
|
|
27
|
+
import { t as YF, c as _pe, j as GF, k as lY, f as Ar, i as kpe, h as J4, d as lu } from "./index-DFOb_6HB.js";
|
|
28
|
+
import { a as La, b as ez } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
29
|
+
import { a as Va, c as tz, C as xd, i as X_, b as Ipe } from "./common-types-4bjoIgvm.js";
|
|
30
30
|
const cY = `import pandas as pd
|
|
31
31
|
df = pd.DataFrame(data) # 'data' contains the query result
|
|
32
32
|
result = df.to_dict('records') # must return 'result' as [dict] type
|
|
33
33
|
`;
|
|
34
34
|
function Epe(e, t) {
|
|
35
35
|
const n = +YF(e);
|
|
36
|
-
return
|
|
36
|
+
return _pe(e, n + t);
|
|
37
37
|
}
|
|
38
38
|
function MS(e, t) {
|
|
39
39
|
return Epe(e, t * GF);
|
|
@@ -10036,7 +10036,7 @@ function _z(e, t = {}) {
|
|
|
10036
10036
|
return n;
|
|
10037
10037
|
}
|
|
10038
10038
|
function Vb(e) {
|
|
10039
|
-
return e ?
|
|
10039
|
+
return e ? vpe(e) : void 0;
|
|
10040
10040
|
}
|
|
10041
10041
|
function Jxe(e) {
|
|
10042
10042
|
return `${Number((e / 16).toFixed(4))}rem`;
|
|
@@ -20971,7 +20971,7 @@ function fQ(e, t = {}) {
|
|
|
20971
20971
|
);
|
|
20972
20972
|
}
|
|
20973
20973
|
function hQ(e, t = {}) {
|
|
20974
|
-
return
|
|
20974
|
+
return Spe(e, {
|
|
20975
20975
|
...XS(t, {
|
|
20976
20976
|
min: 2,
|
|
20977
20977
|
max: 2
|
|
@@ -21005,7 +21005,7 @@ function dke(e, t = {}) {
|
|
|
21005
21005
|
}
|
|
21006
21006
|
}
|
|
21007
21007
|
function fke(e, t = {}) {
|
|
21008
|
-
return
|
|
21008
|
+
return Cpe(
|
|
21009
21009
|
e,
|
|
21010
21010
|
XS(t, { min: 2, max: 2 })
|
|
21011
21011
|
);
|
|
@@ -39474,10 +39474,10 @@ function Fee(e, t) {
|
|
|
39474
39474
|
);
|
|
39475
39475
|
if (!n)
|
|
39476
39476
|
return { state: "draggable", isSelected: s };
|
|
39477
|
-
if (e.entityName === Va ||
|
|
39477
|
+
if (e.entityName === Va || tz(e))
|
|
39478
39478
|
return { state: "draggable", isSelected: s };
|
|
39479
39479
|
const l = r.filter(
|
|
39480
|
-
(N) => N.entityName !== Va && !
|
|
39480
|
+
(N) => N.entityName !== Va && !tz(N)
|
|
39481
39481
|
);
|
|
39482
39482
|
if (l.length === 0)
|
|
39483
39483
|
return {
|
|
@@ -59823,7 +59823,7 @@ function Jne({
|
|
|
59823
59823
|
};
|
|
59824
59824
|
if (I === "months") {
|
|
59825
59825
|
const W = _ != null && _.from ? (() => {
|
|
59826
|
-
const R =
|
|
59826
|
+
const R = kpe(_.from, r);
|
|
59827
59827
|
return {
|
|
59828
59828
|
year: Dpe(R),
|
|
59829
59829
|
month: Tpe(R)
|
|
@@ -59831,8 +59831,8 @@ function Jne({
|
|
|
59831
59831
|
})() : void 0, U = (R) => `${R}`.padStart(2, "0"), H = (R, L) => {
|
|
59832
59832
|
const K = `${R}-${U(L + 1)}-01T00:00:00`, X = L === 11 ? R + 1 : R, ie = (L + 1) % 12, fe = `${X}-${U(ie + 1)}-01T00:00:00`;
|
|
59833
59833
|
return {
|
|
59834
|
-
from:
|
|
59835
|
-
to:
|
|
59834
|
+
from: J4(K, r),
|
|
59835
|
+
to: J4(fe, r)
|
|
59836
59836
|
};
|
|
59837
59837
|
};
|
|
59838
59838
|
return /* @__PURE__ */ d(
|
|
@@ -63814,7 +63814,7 @@ function CI(e) {
|
|
|
63814
63814
|
colors: [...e.chartPalette],
|
|
63815
63815
|
mode: e.mode,
|
|
63816
63816
|
appearance: {
|
|
63817
|
-
version:
|
|
63817
|
+
version: xpe,
|
|
63818
63818
|
mode: e.mode,
|
|
63819
63819
|
colors: Aa(e.colorValues),
|
|
63820
63820
|
typography: Aa(t == null ? void 0 : t.typography),
|
|
@@ -78032,6 +78032,8 @@ function u7({
|
|
|
78032
78032
|
contains: "contains",
|
|
78033
78033
|
startsWith: "starts with",
|
|
78034
78034
|
endsWith: "ends with",
|
|
78035
|
+
like: "like",
|
|
78036
|
+
"not like": "not like",
|
|
78035
78037
|
in: "in",
|
|
78036
78038
|
"not in": "not in",
|
|
78037
78039
|
between: "between",
|
|
@@ -78692,9 +78694,9 @@ function gYe({
|
|
|
78692
78694
|
function bYe(e) {
|
|
78693
78695
|
const t = De([]), n = De(null), r = De(null), i = FF(e.interactionConfig).some(
|
|
78694
78696
|
(h) => h.mode === "clickFilter" && h.trigger !== void 0
|
|
78695
|
-
), a =
|
|
78697
|
+
), a = Y4(
|
|
78696
78698
|
(h) => h.registerClearBlurCallback
|
|
78697
|
-
), s =
|
|
78699
|
+
), s = Y4((h) => h.unregisterCard);
|
|
78698
78700
|
ve(() => {
|
|
78699
78701
|
const h = () => {
|
|
78700
78702
|
r.current && f(r.current);
|
|
@@ -88170,7 +88172,7 @@ function oae(e) {
|
|
|
88170
88172
|
[s]
|
|
88171
88173
|
), c = Z(
|
|
88172
88174
|
() => (s == null ? void 0 : s.filter(
|
|
88173
|
-
(S) =>
|
|
88175
|
+
(S) => G4.includes(S.type)
|
|
88174
88176
|
)) || GZe,
|
|
88175
88177
|
[s]
|
|
88176
88178
|
), u = Z(
|
|
@@ -88185,7 +88187,7 @@ function oae(e) {
|
|
|
88185
88187
|
return !!i && !!S.domainId && !!S.name;
|
|
88186
88188
|
if (S.type === "model")
|
|
88187
88189
|
return !!i && !!S.id;
|
|
88188
|
-
if (
|
|
88190
|
+
if (G4.includes(S.type)) {
|
|
88189
88191
|
const I = ((N = r == null ? void 0 : r.capabilities) == null ? void 0 : N.path) || [], _ = I.includes("database"), T = I.includes("schema") || o;
|
|
88190
88192
|
return !(!i || !S.name || _ && !S.database || T && !S.schema);
|
|
88191
88193
|
}
|
|
@@ -88285,7 +88287,7 @@ function oae(e) {
|
|
|
88285
88287
|
return ((N = S.data) == null ? void 0 : N.calculatedFields) || [];
|
|
88286
88288
|
}).map((S) => ({
|
|
88287
88289
|
...S,
|
|
88288
|
-
id:
|
|
88290
|
+
id: K4({
|
|
88289
88291
|
...S
|
|
88290
88292
|
}),
|
|
88291
88293
|
fieldScope: "domain"
|
|
@@ -88293,7 +88295,7 @@ function oae(e) {
|
|
|
88293
88295
|
if (v.length > 0) {
|
|
88294
88296
|
const S = /* @__PURE__ */ new Map();
|
|
88295
88297
|
v.forEach((N) => {
|
|
88296
|
-
const I =
|
|
88298
|
+
const I = K4(N);
|
|
88297
88299
|
S.has(I) || S.set(I, N);
|
|
88298
88300
|
}), y.unshift({
|
|
88299
88301
|
entityId: HW,
|
|
@@ -88665,7 +88667,7 @@ function QZe() {
|
|
|
88665
88667
|
);
|
|
88666
88668
|
}
|
|
88667
88669
|
function sP(e, t) {
|
|
88668
|
-
return
|
|
88670
|
+
return ez(e) !== ez(t);
|
|
88669
88671
|
}
|
|
88670
88672
|
function JZe(e, t) {
|
|
88671
88673
|
return t && sP(e, t) ? t : null;
|
|
@@ -88838,7 +88840,7 @@ function lp(e) {
|
|
|
88838
88840
|
}), Array.from(t.values());
|
|
88839
88841
|
}
|
|
88840
88842
|
function YL(e) {
|
|
88841
|
-
return !
|
|
88843
|
+
return !X_(e);
|
|
88842
88844
|
}
|
|
88843
88845
|
function vD(e, t) {
|
|
88844
88846
|
return lp(
|
|
@@ -90434,7 +90436,7 @@ function fae() {
|
|
|
90434
90436
|
};
|
|
90435
90437
|
}
|
|
90436
90438
|
function hae(e) {
|
|
90437
|
-
const t = e.qualifiedFieldName, r = (e.qualifiedEntityName || e.qualifiedFieldName.split(".").slice(0, -1).join(".")).split(".").map((i) =>
|
|
90439
|
+
const t = e.qualifiedFieldName, r = (e.qualifiedEntityName || e.qualifiedFieldName.split(".").slice(0, -1).join(".")).split(".").map((i) => Z4(i)).join("."), o = Z4(e.name);
|
|
90438
90440
|
return {
|
|
90439
90441
|
qualifiedColumnName: t,
|
|
90440
90442
|
qualifiedTableName: r,
|
|
@@ -92296,7 +92298,7 @@ function vQe({
|
|
|
92296
92298
|
() => mQe(e, t, r),
|
|
92297
92299
|
[e, t, r]
|
|
92298
92300
|
), s = Z(() => pQe(a), [a]), l = Z(() => a.map((m) => {
|
|
92299
|
-
const p = m.label || m.name, g = m.role === "metric" &&
|
|
92301
|
+
const p = m.label || m.name, g = m.role === "metric" && X_(m) || m.role === "groupby" && Ipe(m);
|
|
92300
92302
|
return {
|
|
92301
92303
|
...m,
|
|
92302
92304
|
baseLabel: p,
|
|
@@ -92528,7 +92530,7 @@ function NQe({
|
|
|
92528
92530
|
return !1;
|
|
92529
92531
|
const s = tm(a);
|
|
92530
92532
|
if (r === "inline") {
|
|
92531
|
-
const l =
|
|
92533
|
+
const l = Yme(a), c = i || o;
|
|
92532
92534
|
return s === "inline_expression" && !!c && l === c;
|
|
92533
92535
|
}
|
|
92534
92536
|
return s === "domain_calculated";
|
|
@@ -92550,7 +92552,7 @@ const Z7 = [
|
|
|
92550
92552
|
function SD(e, t) {
|
|
92551
92553
|
if (e.role === "metric") {
|
|
92552
92554
|
const n = e;
|
|
92553
|
-
return
|
|
92555
|
+
return X_(n) ? n : {
|
|
92554
92556
|
...n,
|
|
92555
92557
|
aggregate: t
|
|
92556
92558
|
};
|
|
@@ -92567,7 +92569,7 @@ function SD(e, t) {
|
|
|
92567
92569
|
};
|
|
92568
92570
|
}
|
|
92569
92571
|
function Ym(e, t) {
|
|
92570
|
-
const n = e.role === "metric" &&
|
|
92572
|
+
const n = e.role === "metric" && X_(e);
|
|
92571
92573
|
return {
|
|
92572
92574
|
field: e,
|
|
92573
92575
|
aggregate: n && e.aggregate || t,
|
|
@@ -93400,7 +93402,7 @@ function Oae(e, t) {
|
|
|
93400
93402
|
function Lae(e, t, n, r) {
|
|
93401
93403
|
if (!n)
|
|
93402
93404
|
return null;
|
|
93403
|
-
const i =
|
|
93405
|
+
const i = Gme(e, n || t, r);
|
|
93404
93406
|
if (n && i < 0)
|
|
93405
93407
|
return null;
|
|
93406
93408
|
if (i >= 0) {
|
|
@@ -94358,7 +94360,7 @@ function zQe(e, t) {
|
|
|
94358
94360
|
return e.key === "generatedAt" ? qae(
|
|
94359
94361
|
t.meta.generatedAt,
|
|
94360
94362
|
t.timezone,
|
|
94361
|
-
t.generatedAtFormat ||
|
|
94363
|
+
t.generatedAtFormat || Kme
|
|
94362
94364
|
) : String(t.meta[e.key]);
|
|
94363
94365
|
const n = t.resolvedInputsById[e.inputId], r = (o = n == null ? void 0 : n.exports) == null ? void 0 : o[e.export];
|
|
94364
94366
|
return r == null ? "" : String(r);
|
|
@@ -94493,7 +94495,7 @@ function KQe(e) {
|
|
|
94493
94495
|
return e === "text" ? {
|
|
94494
94496
|
id: t,
|
|
94495
94497
|
type: "text",
|
|
94496
|
-
content:
|
|
94498
|
+
content: Zme("New text section")
|
|
94497
94499
|
} : e === "table" ? {
|
|
94498
94500
|
id: t,
|
|
94499
94501
|
type: "table",
|
|
@@ -95036,7 +95038,7 @@ function CJe(e) {
|
|
|
95036
95038
|
);
|
|
95037
95039
|
}
|
|
95038
95040
|
function ej(e) {
|
|
95039
|
-
const { control: t, onChange: n } = e, r =
|
|
95041
|
+
const { control: t, onChange: n } = e, r = Z_(t), o = r.source.kind === "manual" ? r.source.options : [], a = !!jF(t.type), s = (h) => {
|
|
95040
95042
|
n({
|
|
95041
95043
|
...r,
|
|
95042
95044
|
source: {
|
|
@@ -95156,7 +95158,7 @@ function kJe(e, t) {
|
|
|
95156
95158
|
}
|
|
95157
95159
|
function IJe(e) {
|
|
95158
95160
|
var S, N;
|
|
95159
|
-
const { control: t, choices: n, choiceLabel: r, emptyMessage: o, onChange: i } = e, a =
|
|
95161
|
+
const { control: t, choices: n, choiceLabel: r, emptyMessage: o, onChange: i } = e, a = Z_(t), s = a.source.kind === "manual" ? a.source.options : [], l = new Map(
|
|
95160
95162
|
s.map((I) => [I.value, I])
|
|
95161
95163
|
), c = new Set(
|
|
95162
95164
|
s.map((I) => I.value)
|
|
@@ -95795,7 +95797,7 @@ function PJe(e) {
|
|
|
95795
95797
|
] });
|
|
95796
95798
|
}
|
|
95797
95799
|
function FJe(e) {
|
|
95798
|
-
const t = jF(e.control.type), n = e.control.source.kind === "sql_query" ? e.control :
|
|
95800
|
+
const t = jF(e.control.type), n = e.control.source.kind === "sql_query" ? e.control : Z_(e.control), r = e.control.type === "field_selector" ? e.availableFieldChoices || [] : e.control.type === "metric_selector" ? e.availableMetricChoices || [] : [];
|
|
95799
95801
|
if (t)
|
|
95800
95802
|
return /* @__PURE__ */ d(SJe, { options: t });
|
|
95801
95803
|
if (n.type === "field_selector" || n.type === "metric_selector") {
|
|
@@ -95811,7 +95813,7 @@ function FJe(e) {
|
|
|
95811
95813
|
}
|
|
95812
95814
|
);
|
|
95813
95815
|
}
|
|
95814
|
-
return
|
|
95816
|
+
return Xme(n) ? DJe(n) ? /* @__PURE__ */ C("div", { className: "space-y-3", children: [
|
|
95815
95817
|
/* @__PURE__ */ d(
|
|
95816
95818
|
PJe,
|
|
95817
95819
|
{
|
|
@@ -95862,7 +95864,7 @@ function OJe(e) {
|
|
|
95862
95864
|
activeFiltersOverride: e.activeFiltersOverride
|
|
95863
95865
|
}
|
|
95864
95866
|
);
|
|
95865
|
-
const s =
|
|
95867
|
+
const s = Z_(t), l = GW(t, n), u = jF(t.type) ?? (s.source.kind === "manual" ? s.source.options : []), f = t.type === "enum" || t.type === "field_selector" || t.type === "metric_selector" || t.type === "aggregation_selector" || t.type === "grain_selector";
|
|
95866
95868
|
return /* @__PURE__ */ C("div", { className: "space-y-1.5", children: [
|
|
95867
95869
|
/* @__PURE__ */ d(qe, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Default" }),
|
|
95868
95870
|
t.type === "boolean" ? /* @__PURE__ */ d(TJe, { value: l, onChange: r }) : f && u.length > 0 ? /* @__PURE__ */ d(
|
|
@@ -95891,7 +95893,7 @@ function OJe(e) {
|
|
|
95891
95893
|
value: Array.isArray(l) ? l.join(", ") : String(l ?? ""),
|
|
95892
95894
|
placeholder: t.type === "multi_enum" ? "value_one, value_two" : "Default value",
|
|
95893
95895
|
onChange: (h) => r(
|
|
95894
|
-
|
|
95896
|
+
Qme(s, h.target.value)
|
|
95895
95897
|
)
|
|
95896
95898
|
}
|
|
95897
95899
|
),
|
|
@@ -95906,7 +95908,7 @@ function ise(e) {
|
|
|
95906
95908
|
onChange: o,
|
|
95907
95909
|
allowNoDefault: i = !1,
|
|
95908
95910
|
allowCardDefault: a = !1
|
|
95909
|
-
} = e, s = a &&
|
|
95911
|
+
} = e, s = a && Jme(t), l = r === void 0 && i ? Gu.noDefault : r === xd && s ? Gu.cardDefault : typeof r == "string" ? zW(n, r) : void 0;
|
|
95910
95912
|
return /* @__PURE__ */ C(
|
|
95911
95913
|
Ft,
|
|
95912
95914
|
{
|
|
@@ -96322,10 +96324,10 @@ function YJe(e) {
|
|
|
96322
96324
|
participants: Z(
|
|
96323
96325
|
() => e.map((l) => {
|
|
96324
96326
|
var g, b, y, v, x;
|
|
96325
|
-
const c = a.get(l.id) || [], u = ((y = (b = (g = l.config) == null ? void 0 : g.metricColumns) == null ? void 0 : b[0]) == null ? void 0 : y.aggregate) || "SUM", f =
|
|
96327
|
+
const c = a.get(l.id) || [], u = ((y = (b = (g = l.config) == null ? void 0 : g.metricColumns) == null ? void 0 : b[0]) == null ? void 0 : y.aggregate) || "SUM", f = epe(c), h = tpe(
|
|
96326
96328
|
c,
|
|
96327
96329
|
u
|
|
96328
|
-
), m =
|
|
96330
|
+
), m = npe(l), p = rpe(l);
|
|
96329
96331
|
return {
|
|
96330
96332
|
cardId: l.id,
|
|
96331
96333
|
title: l.title || l.id,
|
|
@@ -96450,7 +96452,7 @@ function sse({
|
|
|
96450
96452
|
})),
|
|
96451
96453
|
children: [
|
|
96452
96454
|
/* @__PURE__ */ d(Ot, { size: "xs", children: /* @__PURE__ */ d(Vt, {}) }),
|
|
96453
|
-
/* @__PURE__ */ d(Lt, { children:
|
|
96455
|
+
/* @__PURE__ */ d(Lt, { children: ope.map((w) => /* @__PURE__ */ d(Ve, { value: w.value, children: w.label }, w.value)) })
|
|
96454
96456
|
]
|
|
96455
96457
|
}
|
|
96456
96458
|
)
|
|
@@ -96596,7 +96598,7 @@ function KJe({
|
|
|
96596
96598
|
), u = VJe(t), f = Z(
|
|
96597
96599
|
() => u[e.id] || [],
|
|
96598
96600
|
[u, e.id]
|
|
96599
|
-
), h = pl(e.type) ?
|
|
96601
|
+
), h = pl(e.type) ? ipe(c, e.type) : [], m = XW({
|
|
96600
96602
|
control: e,
|
|
96601
96603
|
defaultValues: t.defaultControlValues || {}
|
|
96602
96604
|
}), p = ue(
|
|
@@ -96714,7 +96716,7 @@ function KJe({
|
|
|
96714
96716
|
controlType: x.type,
|
|
96715
96717
|
participants: c,
|
|
96716
96718
|
selectedCardIds: H
|
|
96717
|
-
}), L =
|
|
96719
|
+
}), L = X4({
|
|
96718
96720
|
control: x,
|
|
96719
96721
|
choices: R.choices
|
|
96720
96722
|
});
|
|
@@ -96756,14 +96758,14 @@ function KJe({
|
|
|
96756
96758
|
participants: c,
|
|
96757
96759
|
selectedCardIds: b.selectedCardIds
|
|
96758
96760
|
});
|
|
96759
|
-
R =
|
|
96761
|
+
R = X4({
|
|
96760
96762
|
control: R,
|
|
96761
96763
|
choices: ie.choices
|
|
96762
96764
|
}), L = Object.fromEntries(
|
|
96763
96765
|
f.filter((fe) => !b.selectedCardIds.includes(fe)).map((fe) => [fe, void 0])
|
|
96764
96766
|
), b.selectedCardIds.length > 0 && R.source.kind === "manual" && R.source.options.length > 0 && Object.assign(
|
|
96765
96767
|
L,
|
|
96766
|
-
|
|
96768
|
+
ape({
|
|
96767
96769
|
control: R,
|
|
96768
96770
|
participants: c,
|
|
96769
96771
|
selectedCardIds: b.selectedCardIds
|
|
@@ -108343,7 +108345,7 @@ function Ps({
|
|
|
108343
108345
|
onClick: () => S(n),
|
|
108344
108346
|
className: "inline-flex items-center gap-1 text-[11px] text-muted-foreground transition-colors hover:text-foreground",
|
|
108345
108347
|
children: [
|
|
108346
|
-
/* @__PURE__ */ d(
|
|
108348
|
+
/* @__PURE__ */ d(Q4, { className: "size-3" }),
|
|
108347
108349
|
"Reset to default"
|
|
108348
108350
|
]
|
|
108349
108351
|
}
|
|
@@ -108391,7 +108393,7 @@ function Ps({
|
|
|
108391
108393
|
onClick: () => S(n),
|
|
108392
108394
|
"aria-label": "Reset color",
|
|
108393
108395
|
className: "inline-flex size-6 shrink-0 items-center justify-center rounded-[4px] text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",
|
|
108394
|
-
children: /* @__PURE__ */ d(
|
|
108396
|
+
children: /* @__PURE__ */ d(Q4, { className: "size-3" })
|
|
108395
108397
|
}
|
|
108396
108398
|
)
|
|
108397
108399
|
] });
|
|
@@ -112228,7 +112230,7 @@ function cat({
|
|
|
112228
112230
|
return {
|
|
112229
112231
|
...f,
|
|
112230
112232
|
enabled: !0,
|
|
112231
|
-
blocks:
|
|
112233
|
+
blocks: spe(f.blocks, {
|
|
112232
112234
|
id: "header_logo",
|
|
112233
112235
|
type: "image",
|
|
112234
112236
|
role: "logo",
|
|
@@ -126975,7 +126977,7 @@ var fpt = [
|
|
|
126975
126977
|
"svg",
|
|
126976
126978
|
"ul"
|
|
126977
126979
|
], Nde = fpt.reduce((e, t) => {
|
|
126978
|
-
const n =
|
|
126980
|
+
const n = lpe(`Primitive.${t}`), r = ee.forwardRef((o, i) => {
|
|
126979
126981
|
const { asChild: a, ...s } = o, l = a ? n : t;
|
|
126980
126982
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d(l, { ...s, ref: i });
|
|
126981
126983
|
});
|
|
@@ -127501,7 +127503,7 @@ function Mpt({
|
|
|
127501
127503
|
), _e = Wf(Te), Ne = OW(
|
|
127502
127504
|
R == null ? void 0 : R.rendererCode
|
|
127503
127505
|
), pe = Z(
|
|
127504
|
-
() =>
|
|
127506
|
+
() => cpe(Ne),
|
|
127505
127507
|
[Ne]
|
|
127506
127508
|
), Ce = !!(L && pe.valid), ge = L && ((fe == null ? void 0 : fe.length) || 0) > 0 || xe !== "table" && xe !== "pivotTable" && xe !== "detailTable", ke = L && (R == null ? void 0 : R.status) === "fallback" ? `Dynamic fallback: ${((we = R.error) == null ? void 0 : we.stage) === "html_validation" ? "HTML validation failed" : ((Ye = R.error) == null ? void 0 : Ye.stage) === "html_generation" ? "HTML generation failed" : ((Me = R.error) == null ? void 0 : Me.stage) === "row_cap" ? "row cap exceeded" : (($e = R.error) == null ? void 0 : $e.stage) === "query" ? "query fallback" : ((Et = R.fallback) == null ? void 0 : Et.reason) || "fallback used"}` : null, re = Z(() => xe ? {
|
|
127507
127509
|
id: N,
|
|
@@ -127893,7 +127895,7 @@ function Mpt({
|
|
|
127893
127895
|
provenance: R == null ? void 0 : R.provenance,
|
|
127894
127896
|
visualIntent: R == null ? void 0 : R.visualIntent,
|
|
127895
127897
|
assistantNote: R == null ? void 0 : R.assistantNote,
|
|
127896
|
-
fallback: (R == null ? void 0 : R.fallback) ||
|
|
127898
|
+
fallback: (R == null ? void 0 : R.fallback) || upe(
|
|
127897
127899
|
xe || "bar"
|
|
127898
127900
|
),
|
|
127899
127901
|
error: R == null ? void 0 : R.error
|
|
@@ -134447,7 +134449,7 @@ function Hxt({
|
|
|
134447
134449
|
var l;
|
|
134448
134450
|
if (!t)
|
|
134449
134451
|
return [];
|
|
134450
|
-
const r =
|
|
134452
|
+
const r = dpe(e.id, t), o = t[W0], a = (o == null ? void 0 : o.targetDashboardId) === n && (o == null ? void 0 : o.contextMode) !== "none" ? (o == null ? void 0 : o.appliedClickFilters) || [] : [], s = ((l = t[e.id]) == null ? void 0 : l.breadcrumbs) ?? [];
|
|
134451
134453
|
return [
|
|
134452
134454
|
...r.flatMap(
|
|
134453
134455
|
(c, u) => kM(
|
|
@@ -134788,7 +134790,7 @@ function Xxt({
|
|
|
134788
134790
|
dashboardId: $.dashboard.id,
|
|
134789
134791
|
draftScopeKey: $.dashboardAssistantDraftScopeKey
|
|
134790
134792
|
});
|
|
134791
|
-
return
|
|
134793
|
+
return hpe(
|
|
134792
134794
|
ZYe({
|
|
134793
134795
|
currentAIContext: z.currentAIContext,
|
|
134794
134796
|
manualSelectedEntities: Y.selectedEntities,
|
|
@@ -134851,7 +134853,7 @@ function Xxt({
|
|
|
134851
134853
|
prepareSendMessagesRequest: ({ messages: z, body: $ }) => ({
|
|
134852
134854
|
body: {
|
|
134853
134855
|
...$,
|
|
134854
|
-
messages:
|
|
134856
|
+
messages: fpe(z)
|
|
134855
134857
|
}
|
|
134856
134858
|
})
|
|
134857
134859
|
}),
|
|
@@ -136001,7 +136003,7 @@ function Yfe({
|
|
|
136001
136003
|
saveAsDashboardDefault: a = !1
|
|
136002
136004
|
}) {
|
|
136003
136005
|
var se, Te;
|
|
136004
|
-
const { tokenProps: s } = wt(), l = s.config, c = s.semanticDomainAccess ||
|
|
136006
|
+
const { tokenProps: s } = wt(), l = s.config, c = s.semanticDomainAccess || Npe, [u, f] = J([]), [h, m] = J(void 0), [p, g] = J(""), [b, y] = J("all"), [v, x] = J(
|
|
136005
136007
|
void 0
|
|
136006
136008
|
), w = De(!1), { updateDataSource: S } = Hr(), N = te((_e) => _e.isVisualEditing), I = te((_e) => _e.dashboard.aiContext), { setAiContext: _ } = fn(), T = c.mode, k = (l == null ? void 0 : l.showDirectSource) !== !1, E = T === "include" || T === "exclude" || !k, D = T !== "all", M = k && !E, F = E ? "semanticDomain" : n.mode, P = r === "dataSource" && !k, z = T === "include" && (((se = c.domainIds) == null ? void 0 : se.length) || 0) === 1 ? (Te = c.domainIds) == null ? void 0 : Te[0] : void 0, $ = ue(
|
|
136007
136009
|
(_e) => {
|
|
@@ -136163,7 +136165,7 @@ function Yfe({
|
|
|
136163
136165
|
showCloseButton: !1,
|
|
136164
136166
|
className: "flex h-[560px] w-[620px] max-w-[620px] flex-col gap-0 overflow-hidden rounded-[6px] border border-border bg-popover p-0",
|
|
136165
136167
|
children: [
|
|
136166
|
-
/* @__PURE__ */ d(
|
|
136168
|
+
/* @__PURE__ */ d(mpe, { children: /* @__PURE__ */ d(Do, { children: oe }) }),
|
|
136167
136169
|
/* @__PURE__ */ C("div", { className: "flex items-start justify-between border-b border-border px-4 py-2.5", children: [
|
|
136168
136170
|
/* @__PURE__ */ C("div", { children: [
|
|
136169
136171
|
/* @__PURE__ */ d("p", { className: "text-[14px] font-semibold text-foreground", children: oe }),
|
|
@@ -136524,7 +136526,7 @@ function gwt({
|
|
|
136524
136526
|
}) {
|
|
136525
136527
|
const { tokenProps: u } = wt(), f = (u == null ? void 0 : u.type) === "dashboard", [h, m] = J(""), [p, g] = J(""), b = o.filter((N) => {
|
|
136526
136528
|
if (!h) return !0;
|
|
136527
|
-
const I = FC(N).toLowerCase(), _ = Pq(N).toLowerCase(), T = h.toLowerCase();
|
|
136529
|
+
const I = FC(N).toLowerCase(), _ = (Pq(N) || "").toLowerCase(), T = h.toLowerCase();
|
|
136528
136530
|
return I.includes(T) || _.includes(T);
|
|
136529
136531
|
});
|
|
136530
136532
|
ve(() => {
|
|
@@ -139487,16 +139489,16 @@ const Xfe = ni(
|
|
|
139487
139489
|
n
|
|
139488
139490
|
]
|
|
139489
139491
|
), g = Z(
|
|
139490
|
-
() =>
|
|
139492
|
+
() => ppe({
|
|
139491
139493
|
spec: p,
|
|
139492
139494
|
systemMode: m
|
|
139493
139495
|
}),
|
|
139494
139496
|
[p, m]
|
|
139495
139497
|
), b = Z(
|
|
139496
|
-
() =>
|
|
139498
|
+
() => gpe(f, g),
|
|
139497
139499
|
[g, f]
|
|
139498
139500
|
);
|
|
139499
|
-
return /* @__PURE__ */ d(
|
|
139501
|
+
return /* @__PURE__ */ d(bpe.Provider, { value: b, children: /* @__PURE__ */ d(
|
|
139500
139502
|
mw,
|
|
139501
139503
|
{
|
|
139502
139504
|
...l,
|
|
@@ -140092,10 +140094,10 @@ function m1t() {
|
|
|
140092
140094
|
}
|
|
140093
140095
|
);
|
|
140094
140096
|
}
|
|
140095
|
-
const p1t = yx(() => import("./dashboard-controls-
|
|
140096
|
-
() => import("./edit-dashboard-visual-
|
|
140097
|
-
), b1t = yx(() => import("./dashboard-json-
|
|
140098
|
-
() => import("./resource-management-panel-
|
|
140097
|
+
const p1t = yx(() => import("./dashboard-controls-DKNSTyu3.js")), g1t = yx(
|
|
140098
|
+
() => import("./edit-dashboard-visual-C013lDvS.js")
|
|
140099
|
+
), b1t = yx(() => import("./dashboard-json-A9m16zgO.js")), y1t = yx(
|
|
140100
|
+
() => import("./resource-management-panel-xJtqTzS8.js").then(
|
|
140099
140101
|
(e) => ({ default: e.ResourceManagementPanel })
|
|
140100
140102
|
)
|
|
140101
140103
|
);
|
|
@@ -140284,7 +140286,7 @@ function E1t(e, t, n) {
|
|
|
140284
140286
|
return h;
|
|
140285
140287
|
}
|
|
140286
140288
|
function T1t(e, t, n) {
|
|
140287
|
-
const r =
|
|
140289
|
+
const r = wpe(e), o = le.createElement(t, n);
|
|
140288
140290
|
return r.render(o), {
|
|
140289
140291
|
root: r,
|
|
140290
140292
|
ReactComponent: t
|
|
@@ -140548,7 +140550,7 @@ const ZSt = rl(
|
|
|
140548
140550
|
return e.card.id === t.card.id && e.card.inlineFilters === t.card.inlineFilters && ((n = e.card.customCardPreferences) == null ? void 0 : n.settings) === ((r = t.card.customCardPreferences) == null ? void 0 : r.settings) && ((o = e.card.customCardPreferences) == null ? void 0 : o.slotSettings) === ((i = t.card.customCardPreferences) == null ? void 0 : i.slotSettings) && ((a = e.card.customCardPreferences) == null ? void 0 : a.url) === ((s = t.card.customCardPreferences) == null ? void 0 : s.url) && ((l = e.card.customCardPreferences) == null ? void 0 : l.componentName) === ((c = t.card.customCardPreferences) == null ? void 0 : c.componentName);
|
|
140549
140551
|
}
|
|
140550
140552
|
), XSt = wx()(
|
|
140551
|
-
|
|
140553
|
+
ype(
|
|
140552
140554
|
(e, t) => ({
|
|
140553
140555
|
starredCharts: [],
|
|
140554
140556
|
isStarred: (n, r) => t().starredCharts.some((o) => o.type === n && o.id === r),
|
package/dist/chunks/{resource-management-panel-DbYkAk1I.js → resource-management-panel-CkS-1IEw.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./switch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./switch-BFPV36rd.js"),x=require("react"),t=require("./index-C_mYCH5V.js"),oe=require("./use-visual-utils-Cm2IkP1c.js");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
package/dist/chunks/{resource-management-panel-CcFT7lpL.js → resource-management-panel-xJtqTzS8.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as le } from "react/jsx-runtime";
|
|
2
|
-
import { c as Fe, u as ne, n as je, a as W, B as I, f as se, s as be, w as ze, L as fe, I as ge, X as Be, z as He, A as Ke, D as _e, F as Ge,
|
|
2
|
+
import { c as Fe, u as ne, n as je, a as W, B as I, f as se, s as be, w as ze, L as fe, I as ge, X as Be, z as He, A as Ke, D as _e, F as Ge, ay as Xe } from "./switch-DXHYEa_J.js";
|
|
3
3
|
import $e, { useState as b, useEffect as ae, useRef as qe } from "react";
|
|
4
|
-
import { t as de, bn as Je, bo as Qe, bk as ie, bp as We, bq as Ye, br as Ze, bs as ke, bt as Q, bu as et, bv as tt, bw as nt, bx as xe, bb as ce, by as at, bz as st, bA as we, bB as Ne, bC as ot, $ as ye, X as Ce, bD as ve, bE as Se, bF as Ee, bG as Ve, bH as Le, bI as Ae, bJ as Oe, bK as Re, bL as Te, bM as rt, bN as ue, bO as it, V as te, u as lt, bP as Ue, b as dt, c as ct, d as ut, e as ht, f as pt, n as mt, bQ as ft, bR as De, bS as gt, bT as xt } from "./index-
|
|
5
|
-
import { u as Ie } from "./use-visual-utils-
|
|
4
|
+
import { t as de, bn as Je, bo as Qe, bk as ie, bp as We, bq as Ye, br as Ze, bs as ke, bt as Q, bu as et, bv as tt, bw as nt, bx as xe, bb as ce, by as at, bz as st, bA as we, bB as Ne, bC as ot, $ as ye, X as Ce, bD as ve, bE as Se, bF as Ee, bG as Ve, bH as Le, bI as Ae, bJ as Oe, bK as Re, bL as Te, bM as rt, bN as ue, bO as it, V as te, u as lt, bP as Ue, b as dt, c as ct, d as ut, e as ht, f as pt, n as mt, bQ as ft, bR as De, bS as gt, bT as xt } from "./index-scc12bkM.js";
|
|
5
|
+
import { u as Ie } from "./use-visual-utils-BqljNzWn.js";
|
|
6
6
|
/**
|
|
7
7
|
* @license lucide-react v0.453.0 - ISC
|
|
8
8
|
*
|