@databrainhq/plugin 0.12.4 → 0.12.5
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/webcomponents.es.js +35 -29
- package/dist/webcomponents.umd.js +115 -115
- package/package.json +1 -1
package/dist/webcomponents.es.js
CHANGED
|
@@ -25008,7 +25008,7 @@ function SS(n, t, e) {
|
|
|
25008
25008
|
var r = wI(n, t, e);
|
|
25009
25009
|
return fye(r, nye);
|
|
25010
25010
|
}
|
|
25011
|
-
const wf = "/dashboard", lg = "/metric", dye = "dashboardData", hye = `${wf}/embeddedMetric`, pye = "embeddedMetric", vye = `${lg}/layout`, gye = "dashboardLayout", mye = `${wf}/scheduledReport`, yye = "dashboardScheduledReport", bye = `${lg}/saveLayout`, wye = "saveLayout", Sye = `${wf}/saveScheduleReport`, _ye = "saveScheduleReport", xye = `${wf}/deleteScheduleReport`, Mye = "deleteScheduleReport", Cye = `${wf}/createMetric`, Tye = "createMetric", Dye = `${wf}/updateMetric`, Eye = "updateMetric", Aye = `${wf}/updateAdminMetric`, Iye = "updateAdminMetric", Nye = `${wf}/generateMetric`, Lye = "generateMetric", kye = `${wf}/previewTable`, Rye = "previewTable", Oye = `${lg}/query`, Pye = "query", $ye = `${lg}/rawDownloadSettings`, jye = "rawDownloadSettings", zye = `${lg}/column`, Fye = "column", Bye = `${lg}/underlyingData`, Vye = "underlyingData", Hye = `${lg}/invokeShareCsv`, Wye = "invokeShareCsv", Uye = `${lg}/markArchived`, Gye = "markArchived", Yye = "https://
|
|
25011
|
+
const wf = "/dashboard", lg = "/metric", dye = "dashboardData", hye = `${wf}/embeddedMetric`, pye = "embeddedMetric", vye = `${lg}/layout`, gye = "dashboardLayout", mye = `${wf}/scheduledReport`, yye = "dashboardScheduledReport", bye = `${lg}/saveLayout`, wye = "saveLayout", Sye = `${wf}/saveScheduleReport`, _ye = "saveScheduleReport", xye = `${wf}/deleteScheduleReport`, Mye = "deleteScheduleReport", Cye = `${wf}/createMetric`, Tye = "createMetric", Dye = `${wf}/updateMetric`, Eye = "updateMetric", Aye = `${wf}/updateAdminMetric`, Iye = "updateAdminMetric", Nye = `${wf}/generateMetric`, Lye = "generateMetric", kye = `${wf}/previewTable`, Rye = "previewTable", Oye = `${lg}/query`, Pye = "query", $ye = `${lg}/rawDownloadSettings`, jye = "rawDownloadSettings", zye = `${lg}/column`, Fye = "column", Bye = `${lg}/underlyingData`, Vye = "underlyingData", Hye = `${lg}/invokeShareCsv`, Wye = "invokeShareCsv", Uye = `${lg}/markArchived`, Gye = "markArchived", Yye = "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", No = async (n, t = { method: "GET" }) => {
|
|
25012
25012
|
const e = {
|
|
25013
25013
|
method: t.method,
|
|
25014
25014
|
headers: {
|
|
@@ -26288,7 +26288,8 @@ const wf = "/dashboard", lg = "/metric", dye = "dashboardData", hye = `${wf}/emb
|
|
|
26288
26288
|
});
|
|
26289
26289
|
}, A0e = (n) => SS(
|
|
26290
26290
|
[Pye, n],
|
|
26291
|
-
() => No(Oye, { method: "POST", data: n })
|
|
26291
|
+
() => No(Oye, { method: "POST", data: n }),
|
|
26292
|
+
{ enabled: !!(n != null && n.id) }
|
|
26292
26293
|
), I0e = (n) => SS(
|
|
26293
26294
|
[jye, n],
|
|
26294
26295
|
() => No(`${$ye}?id=${n}`, {
|
|
@@ -79909,20 +79910,7 @@ const gGe = async () => {
|
|
|
79909
79910
|
defaultOptions: { queries: { refetchOnWindowFocus: !1 } }
|
|
79910
79911
|
}), mse = ({ children: n, theme: t }) => (se.useEffect(() => {
|
|
79911
79912
|
!t || !Object.keys(t).length || JWe(t);
|
|
79912
|
-
}, [t]),
|
|
79913
|
-
const e = document.querySelector("#dbn-styles"), r = document.querySelectorAll("dbn-dashboard"), i = document.querySelectorAll("dbn-metric");
|
|
79914
|
-
r.forEach((a, o) => {
|
|
79915
|
-
if (a != null && a.shadowRoot && e && !a.shadowRoot.getElementById(`dbn-dashboard-${o}-style`)) {
|
|
79916
|
-
const s = document.createElement("style");
|
|
79917
|
-
s.innerHTML = e.innerHTML, s.setAttribute("id", `dbn-dashboard-${o}-style`), a.shadowRoot.appendChild(s);
|
|
79918
|
-
}
|
|
79919
|
-
}), i.forEach((a, o) => {
|
|
79920
|
-
if (a.shadowRoot && e && !a.shadowRoot.getElementById(`dbn-metric-${o}-style`)) {
|
|
79921
|
-
const s = document.createElement("style");
|
|
79922
|
-
s.innerHTML = e.innerHTML, s.setAttribute("id", `dbn-metric-${o}-style`), a.shadowRoot.appendChild(s);
|
|
79923
|
-
}
|
|
79924
|
-
});
|
|
79925
|
-
}, []), /* @__PURE__ */ P.jsx(vGe, { FallbackComponent: mbe, children: /* @__PURE__ */ P.jsxs(sye, { client: xGe, children: [
|
|
79913
|
+
}, [t]), /* @__PURE__ */ P.jsx(vGe, { FallbackComponent: mbe, children: /* @__PURE__ */ P.jsxs(sye, { client: xGe, children: [
|
|
79926
79914
|
/* @__PURE__ */ P.jsx(_Ge, {}),
|
|
79927
79915
|
n
|
|
79928
79916
|
] }) })), MGe = "_metric_1pdqp_1", CGe = "_loader_1pdqp_7", yse = {
|
|
@@ -79998,18 +79986,27 @@ const gGe = async () => {
|
|
|
79998
79986
|
style: r,
|
|
79999
79987
|
className: i = "",
|
|
80000
79988
|
...a
|
|
80001
|
-
}) =>
|
|
80002
|
-
"
|
|
80003
|
-
{
|
|
80004
|
-
|
|
80005
|
-
|
|
80006
|
-
|
|
80007
|
-
|
|
80008
|
-
|
|
80009
|
-
|
|
80010
|
-
|
|
80011
|
-
|
|
80012
|
-
|
|
79989
|
+
}) => {
|
|
79990
|
+
const o = se.useId(), [s, l] = se.useState("");
|
|
79991
|
+
return se.useEffect(() => {
|
|
79992
|
+
const u = document.querySelector("#dbn-styles");
|
|
79993
|
+
u && l(u.innerHTML);
|
|
79994
|
+
}, []), /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
|
|
79995
|
+
/* @__PURE__ */ P.jsx("style", { id: `dbn-metric-${o}-style`, children: s }),
|
|
79996
|
+
/* @__PURE__ */ P.jsx(
|
|
79997
|
+
"div",
|
|
79998
|
+
{
|
|
79999
|
+
style: {
|
|
80000
|
+
...r,
|
|
80001
|
+
width: t ? `${t}px` : void 0,
|
|
80002
|
+
height: e ? `${e}px` : void 0
|
|
80003
|
+
},
|
|
80004
|
+
className: `${yse.metric} ${i} dbn-metric`,
|
|
80005
|
+
children: /* @__PURE__ */ P.jsx(mse, { theme: n, children: /* @__PURE__ */ P.jsx(TGe, { ...a }) })
|
|
80006
|
+
}
|
|
80007
|
+
)
|
|
80008
|
+
] });
|
|
80009
|
+
}
|
|
80013
80010
|
), EGe = ({
|
|
80014
80011
|
timeGrainValue: n,
|
|
80015
80012
|
isTimeStamp: t,
|
|
@@ -114969,7 +114966,16 @@ const pit = ({
|
|
|
114969
114966
|
options: t,
|
|
114970
114967
|
theme: e,
|
|
114971
114968
|
dashboardId: r
|
|
114972
|
-
}) =>
|
|
114969
|
+
}) => {
|
|
114970
|
+
const i = se.useId(), [a, o] = se.useState("");
|
|
114971
|
+
return se.useEffect(() => {
|
|
114972
|
+
const s = document.querySelector("#dbn-styles");
|
|
114973
|
+
s && o(s.innerHTML);
|
|
114974
|
+
}, []), /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
|
|
114975
|
+
/* @__PURE__ */ P.jsx("style", { id: `dbn-dashboard-${i}-style`, children: a }),
|
|
114976
|
+
/* @__PURE__ */ P.jsx(mse, { theme: e, children: /* @__PURE__ */ P.jsx(hit, { token: n, dashboardId: r, children: /* @__PURE__ */ P.jsx(fit, { options: t, theme: e }) }) })
|
|
114977
|
+
] });
|
|
114978
|
+
}, vit = G3(pit, {
|
|
114973
114979
|
props: {
|
|
114974
114980
|
token: "string",
|
|
114975
114981
|
dashboardId: "string",
|