react-semaphor 0.1.601 → 0.1.603
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/analytics-protocol/index.js +415 -375
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +8 -8
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{add-to-dashboard-ClhEIFst.js → add-to-dashboard-CFF-wFU-.js} +1 -1
- package/dist/chunks/{analytics-base-schemas-DevrgqQb.js → analytics-base-schemas-DsUh5Q3C.js} +14 -12
- package/dist/chunks/{assistant-chat-BE0XXzZP.js → assistant-chat-B6hNQI1t.js} +146 -146
- package/dist/chunks/{bookmark-impact-DXDAN5AY.js → bookmark-impact-Ba2PLcGp.js} +3 -3
- package/dist/chunks/{bookmark-state-BMyB3Tb6.js → bookmark-state-n7AaNzR_.js} +517 -516
- package/dist/chunks/{card-filter-builder-CE0-YVN5.js → card-filter-builder-Y22HizVx.js} +474 -474
- package/dist/chunks/{comparison-window-caption-Dxj2CHOa.js → comparison-window-caption-Ck2TIbnR.js} +69 -69
- package/dist/chunks/{context-BJoEFgNl.js → context-UCQ7sere.js} +1 -1
- package/dist/chunks/{dashboard-mJKPFRbb.js → dashboard-BghI99oY.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CntwKyiZ.js → dashboard-briefing-launcher-DtBAnGiH.js} +725 -716
- package/dist/chunks/{dashboard-controls-XO089DMg.js → dashboard-controls-CtFXlyjV.js} +53 -53
- package/dist/chunks/{dashboard-json-CQRiydUv.js → dashboard-json-DfGBUtCd.js} +5 -5
- package/dist/chunks/dates-BnrXF4bb.js +185 -0
- package/dist/chunks/{edit-dashboard-visual-f-Dm-BLR.js → edit-dashboard-visual-oxt3x1wb.js} +8081 -8268
- package/dist/chunks/{filter-line-CKNMyNTQ.js → filter-line-Cy5YYqRL.js} +27 -27
- package/dist/chunks/{filter-reach-copy-B8GGyVuR.js → filter-reach-copy-CE_ZX147.js} +1786 -2214
- package/dist/chunks/{filter-value-text-CRtKecI5.js → filter-value-text-fWvSDwkl.js} +11 -11
- package/dist/chunks/{index-DoPApnxg.js → index-D5rxbtS4.js} +24 -24
- package/dist/chunks/{layout-grid-CiSCZdIr.js → layout-grid-9LndRoLa.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-myf3D3Qx.js → matrix-analytical-definition-CCp48UCw.js} +496 -425
- package/dist/chunks/matrix-member-presentation-zNehruXR.js +391 -0
- package/dist/chunks/{matrix-operation-contract-C1SuOHLZ.js → matrix-operation-contract-DPBj69D8.js} +518 -514
- package/dist/chunks/{metric-comparison-Cm0G893W.js → metric-comparison-B0FR-Q8I.js} +184 -125
- package/dist/chunks/{paintbrush-DQIwqlck.js → paintbrush-58FQYY-y.js} +1 -1
- package/dist/chunks/{palette-Cun747Rg.js → palette-Be62Tkoa.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-C1Dyx8du.js → pivot-result-contract-expectations-BYqAmG9n.js} +1236 -1190
- package/dist/chunks/{pivot-result-identity-CBS-ssEp.js → pivot-result-identity-CAP4--iq.js} +1 -1
- package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +3778 -0
- package/dist/chunks/{report-preferences-dialog-SDZEcG2x.js → report-preferences-dialog-uJp9GBTM.js} +219 -205
- package/dist/chunks/{report-runtime-context-BbedQdtc.js → report-runtime-context-c77_KF9v.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-DRBS0eRa.js → resolve-dashboard-input-context-Rtl1ffmE.js} +8808 -7291
- package/dist/chunks/{save-Dj5bjm7P.js → save-C5A0JnEV.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-DWVlJcsa.js → saved-dashboard-context-tcyTU8jm.js} +199 -213
- package/dist/chunks/selection-filter-compiler-DNijjI5y.js +150 -0
- package/dist/chunks/{semaphor-ready-indicator-OFOoAY-A.js → semaphor-ready-indicator-FBvunj6S.js} +37894 -35726
- package/dist/chunks/{shelf-drop-preview-context-2swWypXu.js → shelf-drop-preview-context-QKStrcK9.js} +54 -54
- package/dist/chunks/{stored-dashboard-NtOuEX6a.js → stored-dashboard-CHozcAY9.js} +770 -743
- package/dist/chunks/{style-sheet-parts-Qv4UcLAo.js → style-sheet-parts-CDCG-8Ej.js} +258 -251
- package/dist/chunks/{table-export-sheet-Do7ZB0_F.js → table-export-sheet-ZFIvs6Sj.js} +1 -1
- package/dist/chunks/{token-types-Dy_aXO-U.js → token-types-XbM6QByy.js} +1 -1
- package/dist/chunks/{upload-Bq-puSVy.js → upload-H15d7uHK.js} +1 -1
- package/dist/chunks/{validators-C7DFk3QK.js → validators-Baf3VIf5.js} +5 -5
- package/dist/chunks/{variable-draft-Cy03qnEi.js → variable-draft-C2y8Jp6Z.js} +27 -28
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +3392 -2761
- package/dist/format-utils/index.js +205 -204
- package/dist/index.js +73 -75
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/dashboard/dashboard-web-component.d.ts +7 -0
- package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -0
- package/dist/types/index.js +5 -5
- package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +1 -1
- package/dist/types/lib/document/document-edits.d.ts +0 -4
- package/dist/types/lib/query-context/assemble-card-query.d.ts +6 -1
- package/dist/types/lib/stores/dashboard-store.d.ts +30 -1
- package/dist/types/lib/types/common-types.d.ts +0 -2
- package/dist/types/lib/types/explorer-types.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +15 -0
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
- package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
- package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
- package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
- package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +52 -0
- package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +129 -0
- package/dist/types/shared/dashboard-authoring/calculations/resolve-dashboard-field-copies.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/calculations/tokens.d.ts +36 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
- package/dist/types/shared/dashboard-authoring/changes/calculation-change.d.ts +399 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +165 -360
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +23 -2
- package/dist/types/shared/dashboard-authoring/changes/domain-change.d.ts +143 -266
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
- package/dist/types/shared/dashboard-authoring/index.d.ts +7 -1
- package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
- package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +158 -0
- package/dist/types/shared/dashboard-authoring/operations/card-operations.d.ts +71 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +17 -6
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +21 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +3 -0
- package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
- package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
- package/dist/types/shared/temporal/index.d.ts +2 -0
- package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
- package/dist/types/shared/temporal/temporal.d.ts +27 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
- package/dist/types/shared/usage-events/details.d.ts +2 -2
- package/dist/types/shared/usage-events/envelope.d.ts +2 -2
- package/dist/usage-events/index.js +1 -1
- package/package.json +3 -2
- package/dist/chunks/dates-B-Urp5OD.js +0 -164
- package/dist/chunks/matrix-member-presentation-g0c_NpDW.js +0 -258
- package/dist/chunks/raw-temporal-value-DN_l-Tss.js +0 -454
- package/dist/chunks/selection-filter-compiler-DmAr7yqC.js +0 -131
package/dist/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { D as U } from "./chunks/dashboard-
|
|
2
|
-
import { C as ua, E as da } from "./chunks/bookmark-state-
|
|
3
|
-
import { b as fa, A as ha, c as ma, a as ga, R as
|
|
4
|
-
import { jsx as r, jsxs as
|
|
5
|
-
import { E as R, F as V, S as z, a as H, U as W, c as G, A as $, C as K, u as I, f as
|
|
6
|
-
import { a9 as Da, aP as va, aQ as Ea, aR as Aa, B as Sa, ao as Ta, a4 as wa, a2 as Fa, a1 as _a, aZ as xa, H as Ba, G as Ra, M as
|
|
1
|
+
import { D as U } from "./chunks/dashboard-BghI99oY.js";
|
|
2
|
+
import { C as ua, E as da } from "./chunks/bookmark-state-n7AaNzR_.js";
|
|
3
|
+
import { b as fa, A as ha, c as ma, a as ga, R as ba, D as Ca } from "./chunks/report-preferences-dialog-uJp9GBTM.js";
|
|
4
|
+
import { jsx as r, jsxs as C } from "react/jsx-runtime";
|
|
5
|
+
import { E as R, F as V, S as z, a as H, U as W, c as G, A as $, C as K, u as I, f as Q, d as q, V as Y, e as P, g as L, h as J, s as X, i as Z, j as ee, R as ae, k as se, l as te, m as re, n as oe } from "./chunks/semaphor-ready-indicator-FBvunj6S.js";
|
|
6
|
+
import { a9 as Da, aP as va, aQ as Ea, aR as Aa, B as Sa, ao as Ta, a4 as wa, a2 as Fa, a1 as _a, aZ as xa, H as Ba, G as Ra, M as Pa, ad as La, q as Na, v as Ia, v as Oa, w as Ma, a3 as ja, J as ka, K as Ua, T as Va, I as za, aK as Ha, aM as Wa, aN as Ga, aL as $a, aB as Ka, aE as Qa, aY as qa, as as Ya, aJ as Ja, al as Xa, aT as Za, aU as es, aw as as, aF as ss, a0 as ts, $ as rs, Z as os, _ as ns, L as is, b0 as ls, ar as cs, aG as us, aH as ds, aA as ps, aD as fs, aX as hs, aW as ms, aV as gs, a$ as bs, a_ as Cs, aC as ys, aq as Ds, ap as vs, ac as Es, au as As, aI as Ss, ay as Ts, av as ws, ax as Fs, az as _s, ae as xs, af as Bs, ag as Rs, N as Ps, at as Ls, aa as Ns, a8 as Is, Y as Os, aS as Ms, z as js, a6 as ks, ah as Us, aj as Vs, ai as zs, ak as Hs, y as Ws, X as Gs, p as $s, a5 as Ks, a7 as Qs, r as qs, an as Ys, ab as Js, am as Xs, o as Zs, O as et, x as at, t as st, P as tt, Q as rt, W as ot, aO as nt } from "./chunks/semaphor-ready-indicator-FBvunj6S.js";
|
|
7
7
|
import * as T from "react";
|
|
8
8
|
import O, { useMemo as w, useEffect as M } from "react";
|
|
9
|
-
import { C as lt, D as ct, L as ut, d as dt, g as pt, e as ft, h as ht, f as mt, c as gt, a as
|
|
10
|
-
import { c as
|
|
9
|
+
import { C as lt, D as ct, L as ut, d as dt, g as pt, e as ft, h as ht, f as mt, c as gt, a as bt, i as Ct, b as yt, n as Dt, s as vt } from "./chunks/validators-Baf3VIf5.js";
|
|
10
|
+
import { c as N } from "./chunks/rendered-file-D8xEuVVx.js";
|
|
11
11
|
import "zod";
|
|
12
|
-
import "./chunks/pivot-result-contract-expectations-
|
|
13
|
-
import "./chunks/matrix-operation-contract-
|
|
14
|
-
import "./chunks/analytics-base-schemas-
|
|
12
|
+
import "./chunks/pivot-result-contract-expectations-BYqAmG9n.js";
|
|
13
|
+
import "./chunks/matrix-operation-contract-DPBj69D8.js";
|
|
14
|
+
import "./chunks/analytics-base-schemas-DsUh5Q3C.js";
|
|
15
15
|
import "./value-format-preferences/index.js";
|
|
16
16
|
import { D as ne } from "./chunks/index-CV_Kzou0.js";
|
|
17
|
-
import { D as At } from "./chunks/token-types-
|
|
18
|
-
import { d as Tt, A as wt, b as Ft, m as _t, e as xt, D as Bt, g as Rt, h as
|
|
19
|
-
import { n as $t, s as Kt, u as
|
|
17
|
+
import { D as At } from "./chunks/token-types-XbM6QByy.js";
|
|
18
|
+
import { d as Tt, A as wt, b as Ft, m as _t, e as xt, D as Bt, g as Rt, h as Pt, j as Lt, f as Nt, S as It, U as Ot, l as Mt, a as jt, V as kt, W as Ut, i as Vt, u as zt, k as Ht, c as Wt } from "./chunks/dashboard-briefing-launcher-DtBAnGiH.js";
|
|
19
|
+
import { n as $t, s as Kt, u as Qt } from "./chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js";
|
|
20
20
|
import { createRoot as ie } from "react-dom/client";
|
|
21
|
-
import "./chunks/shelf-drop-preview-context-
|
|
21
|
+
import "./chunks/shelf-drop-preview-context-QKStrcK9.js";
|
|
22
22
|
import { c as x } from "./chunks/pickers-DkqmtnTL.js";
|
|
23
|
-
import { D as Yt } from "./chunks/report-runtime-context-
|
|
24
|
-
import { e as le, f as ce, B as ue, F as de, h as pe, j as fe } from "./chunks/style-sheet-parts-
|
|
25
|
-
import {
|
|
26
|
-
import { r as fr, a as hr } from "./chunks/pivot-result-identity-
|
|
27
|
-
import { g as he } from "./chunks/stored-dashboard-
|
|
23
|
+
import { D as Yt } from "./chunks/report-runtime-context-c77_KF9v.js";
|
|
24
|
+
import { e as le, f as ce, B as ue, F as de, h as pe, j as fe } from "./chunks/style-sheet-parts-CDCG-8Ej.js";
|
|
25
|
+
import { L as Xt, F as Zt, N as er, M as ar, Q as sr, R as tr, K as rr, J as or, O as nr, I as ir, H as lr, G as cr, S as ur, P as dr } from "./chunks/resolve-dashboard-input-context-Rtl1ffmE.js";
|
|
26
|
+
import { r as fr, a as hr } from "./chunks/pivot-result-identity-CAP4--iq.js";
|
|
27
|
+
import { g as he } from "./chunks/stored-dashboard-CHozcAY9.js";
|
|
28
28
|
import "./chunks/schema-C9NPiIru.js";
|
|
29
|
-
import "./chunks/context-
|
|
29
|
+
import "./chunks/context-UCQ7sere.js";
|
|
30
30
|
import "./chunks/attribution-BvoKvhcj.js";
|
|
31
31
|
import "react-dom";
|
|
32
|
-
import "./chunks/index-
|
|
32
|
+
import "./chunks/index-D5rxbtS4.js";
|
|
33
33
|
import "./chunks/appearance-context-BwBp25ZG.js";
|
|
34
|
-
import { I as me } from "./chunks/card-filter-builder-
|
|
34
|
+
import { I as me } from "./chunks/card-filter-builder-Y22HizVx.js";
|
|
35
35
|
import "./chunks/appearance-runtime-provider-BRHYELkC.js";
|
|
36
36
|
const ge = { cssWidth: 960, cssHeight: 540 };
|
|
37
37
|
function ta(e) {
|
|
@@ -40,12 +40,12 @@ function ta(e) {
|
|
|
40
40
|
id: e.dashboardId
|
|
41
41
|
// override the id to the dashboard id so that the dashboard is not loaded
|
|
42
42
|
};
|
|
43
|
-
return /* @__PURE__ */ r(R, { FallbackComponent: V, children: /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ r(R, { FallbackComponent: V, children: /* @__PURE__ */ C(z, { dashboardProps: l, children: [
|
|
44
44
|
/* @__PURE__ */ r(H, { componentType: "visual", componentId: e.cardId }),
|
|
45
|
-
/* @__PURE__ */ r(W, { appearance: e.appearance, children: /* @__PURE__ */ r(G, { displayPreferences: a, children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(K, { type: "visual", cardId: s, ...l, children: /* @__PURE__ */ r(
|
|
45
|
+
/* @__PURE__ */ r(W, { appearance: e.appearance, children: /* @__PURE__ */ r(G, { displayPreferences: a, children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(K, { type: "visual", cardId: s, ...l, children: /* @__PURE__ */ r(be, { cardId: s, imageLayout: a == null ? void 0 : a.imageLayout }) }) }) }) })
|
|
46
46
|
] }) });
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function be({
|
|
49
49
|
cardId: e,
|
|
50
50
|
imageLayout: a
|
|
51
51
|
}) {
|
|
@@ -69,12 +69,12 @@ function Ce({
|
|
|
69
69
|
}
|
|
70
70
|
);
|
|
71
71
|
return { card: (i = h == null ? void 0 : h.cards) == null ? void 0 : i.find((o) => (o == null ? void 0 : o.id) === e), frame: h, sheet: p };
|
|
72
|
-
}, [s, e]), g = w(() => l ?
|
|
72
|
+
}, [s, e]), g = w(() => l ? Q(D, l.id) : void 0, [l, D]), E = w(() => g ? [g] : [], [g]), b = q(E, ne.columns.lg), y = w(() => {
|
|
73
73
|
if (!a || !l) return;
|
|
74
|
-
if (!g) return
|
|
75
|
-
const p =
|
|
76
|
-
return
|
|
77
|
-
}, [a, l, g,
|
|
74
|
+
if (!g) return N(ge);
|
|
75
|
+
const p = b.cardSize(g, a.dashboardWidth);
|
|
76
|
+
return N({ cssWidth: p.width, cssHeight: p.height });
|
|
77
|
+
}, [a, l, g, b]);
|
|
78
78
|
return !t || !l ? /* @__PURE__ */ r(
|
|
79
79
|
Y,
|
|
80
80
|
{
|
|
@@ -87,14 +87,14 @@ function Ce({
|
|
|
87
87
|
className: "flex flex-col",
|
|
88
88
|
"data-image-capture": "",
|
|
89
89
|
style: { width: y.cssWidth, height: y.cssHeight },
|
|
90
|
-
children: /* @__PURE__ */ r(R, { FallbackComponent:
|
|
90
|
+
children: /* @__PURE__ */ r(R, { FallbackComponent: P, children: /* @__PURE__ */ r(L, { card: t, frame: l }) })
|
|
91
91
|
}
|
|
92
|
-
) : /* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */ r(R, { FallbackComponent:
|
|
92
|
+
) : /* @__PURE__ */ C("main", { className: "flex h-full grow flex-col", children: [
|
|
93
|
+
/* @__PURE__ */ r(R, { FallbackComponent: P, children: /* @__PURE__ */ r(L, { card: t, frame: l }) }),
|
|
94
94
|
/* @__PURE__ */ r(J, {})
|
|
95
95
|
] });
|
|
96
96
|
}
|
|
97
|
-
var
|
|
97
|
+
var Ce = Object.defineProperty, ye = (e, a, s) => a in e ? Ce(e, a, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[a] = s, F = (e, a, s) => ye(e, typeof a != "symbol" ? a + "" : a, s);
|
|
98
98
|
const De = {
|
|
99
99
|
stringify: (e) => e ? "true" : "false",
|
|
100
100
|
parse: (e) => /^[ty1-9]/i.test(e)
|
|
@@ -149,9 +149,9 @@ const Se = {
|
|
|
149
149
|
function Fe(e, a, s) {
|
|
150
150
|
var t, l, D;
|
|
151
151
|
a.props || (a.props = e.propTypes ? Object.keys(e.propTypes) : []), a.events || (a.events = []);
|
|
152
|
-
const g = Array.isArray(a.props) ? a.props.slice() : Object.keys(a.props), E = Array.isArray(a.events) ? a.events.slice() : Object.keys(a.events),
|
|
152
|
+
const g = Array.isArray(a.props) ? a.props.slice() : Object.keys(a.props), E = Array.isArray(a.events) ? a.events.slice() : Object.keys(a.events), b = {}, y = {}, p = {}, h = {};
|
|
153
153
|
for (const u of g) {
|
|
154
|
-
|
|
154
|
+
b[u] = Array.isArray(a.props) ? "string" : a.props[u];
|
|
155
155
|
const i = Ae(u);
|
|
156
156
|
p[u] = i, h[i] = u;
|
|
157
157
|
}
|
|
@@ -163,7 +163,7 @@ function Fe(e, a, s) {
|
|
|
163
163
|
mode: a.shadow
|
|
164
164
|
}) : this.container = this, this[m].container = this.container;
|
|
165
165
|
for (const i of g) {
|
|
166
|
-
const o = p[i], d = this.getAttribute(o), c =
|
|
166
|
+
const o = p[i], d = this.getAttribute(o), c = b[i], n = c ? B[c] : null;
|
|
167
167
|
if (c === "method") {
|
|
168
168
|
const f = j(o);
|
|
169
169
|
Object.defineProperty(this[m].container, f, {
|
|
@@ -197,8 +197,8 @@ function Fe(e, a, s) {
|
|
|
197
197
|
this[_] = !1, this[v] && s.unmount(this[v]), delete this[v];
|
|
198
198
|
}
|
|
199
199
|
attributeChangedCallback(i, o, d) {
|
|
200
|
-
const c = h[i], n =
|
|
201
|
-
c in
|
|
200
|
+
const c = h[i], n = b[c], f = n ? B[n] : null;
|
|
201
|
+
c in b && f != null && f.parse && d && (this[m][c] = f.parse(d, i, this), this[S]());
|
|
202
202
|
}
|
|
203
203
|
[(D = _, l = v, t = m, S)]() {
|
|
204
204
|
this[_] && (this[v] ? s.update(this[v], this[m]) : this[v] = s.mount(
|
|
@@ -209,7 +209,7 @@ function Fe(e, a, s) {
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
for (const u of g) {
|
|
212
|
-
const i = p[u], o =
|
|
212
|
+
const i = p[u], o = b[u];
|
|
213
213
|
Object.defineProperty(A.prototype, u, {
|
|
214
214
|
enumerable: !0,
|
|
215
215
|
configurable: !0,
|
|
@@ -246,7 +246,7 @@ function Be({ root: e }) {
|
|
|
246
246
|
function Re(e, a = {}) {
|
|
247
247
|
return Fe(e, a, { mount: _e, update: xe, unmount: Be });
|
|
248
248
|
}
|
|
249
|
-
const
|
|
249
|
+
const Pe = {
|
|
250
250
|
id: "string",
|
|
251
251
|
// deprecated
|
|
252
252
|
version: "string",
|
|
@@ -276,9 +276,7 @@ const Ne = {
|
|
|
276
276
|
selectedSheetId: "string",
|
|
277
277
|
eventHandlers: "json",
|
|
278
278
|
preferences: "json"
|
|
279
|
-
}, ra = Re(U, {
|
|
280
|
-
props: Ne
|
|
281
|
-
});
|
|
279
|
+
}, ra = typeof HTMLElement > "u" ? void 0 : Re(U, { props: Pe });
|
|
282
280
|
function oa(e, a, s, t) {
|
|
283
281
|
M(() => {
|
|
284
282
|
e && !s && a && t(he(X(I.getState()).dashboard));
|
|
@@ -293,7 +291,7 @@ function na({
|
|
|
293
291
|
isError: D,
|
|
294
292
|
refetch: g,
|
|
295
293
|
className: E,
|
|
296
|
-
icon:
|
|
294
|
+
icon: b,
|
|
297
295
|
showNone: y = !1
|
|
298
296
|
}) {
|
|
299
297
|
const p = T.useRef(null), [h, A] = T.useState(!1), [u, i] = T.useState("100%"), o = y ? [...a || [], { id: "none", name: "None" }] : a;
|
|
@@ -307,8 +305,8 @@ function na({
|
|
|
307
305
|
function c(n, f) {
|
|
308
306
|
t(f), A(!1);
|
|
309
307
|
}
|
|
310
|
-
return /* @__PURE__ */
|
|
311
|
-
/* @__PURE__ */ r(ce, { asChild: !0, children: /* @__PURE__ */
|
|
308
|
+
return /* @__PURE__ */ C(le, { open: h, onOpenChange: A, children: [
|
|
309
|
+
/* @__PURE__ */ r(ce, { asChild: !0, children: /* @__PURE__ */ C(
|
|
312
310
|
ue,
|
|
313
311
|
{
|
|
314
312
|
ref: p,
|
|
@@ -317,8 +315,8 @@ function na({
|
|
|
317
315
|
"aria-expanded": h,
|
|
318
316
|
className: x("flex h-9 w-full justify-between", E),
|
|
319
317
|
children: [
|
|
320
|
-
/* @__PURE__ */
|
|
321
|
-
|
|
318
|
+
/* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
|
|
319
|
+
b && /* @__PURE__ */ r("div", { className: "mr-2", children: b }),
|
|
322
320
|
/* @__PURE__ */ r("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children: d() })
|
|
323
321
|
] }),
|
|
324
322
|
/* @__PURE__ */ r(de, { className: "size-4 opacity-50" })
|
|
@@ -330,8 +328,8 @@ function na({
|
|
|
330
328
|
{
|
|
331
329
|
className: "w-full p-0",
|
|
332
330
|
style: { minWidth: u },
|
|
333
|
-
children: /* @__PURE__ */
|
|
334
|
-
/* @__PURE__ */
|
|
331
|
+
children: /* @__PURE__ */ C(Z, { children: [
|
|
332
|
+
/* @__PURE__ */ C("div", { className: "flex h-9 items-center justify-between border-b pr-1", children: [
|
|
335
333
|
/* @__PURE__ */ r(ee, { className: "h-9", placeholder: "Search..." }),
|
|
336
334
|
/* @__PURE__ */ r(me, { className: "h-7", onClick: g, children: /* @__PURE__ */ r(
|
|
337
335
|
ae,
|
|
@@ -343,8 +341,8 @@ function na({
|
|
|
343
341
|
}
|
|
344
342
|
) })
|
|
345
343
|
] }),
|
|
346
|
-
/* @__PURE__ */
|
|
347
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ C(se, { children: [
|
|
345
|
+
/* @__PURE__ */ C(te, { children: [
|
|
348
346
|
"No ",
|
|
349
347
|
e == null ? void 0 : e.toLowerCase(),
|
|
350
348
|
" found."
|
|
@@ -355,7 +353,7 @@ function na({
|
|
|
355
353
|
className: "overflow-x-auto",
|
|
356
354
|
value: n.name,
|
|
357
355
|
onSelect: (f) => c(f, n.id),
|
|
358
|
-
children: /* @__PURE__ */
|
|
356
|
+
children: /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
|
|
359
357
|
/* @__PURE__ */ r(
|
|
360
358
|
fe,
|
|
361
359
|
{
|
|
@@ -411,27 +409,27 @@ export {
|
|
|
411
409
|
_a as DashboardExportDialog,
|
|
412
410
|
Bt as DashboardFavoriteToggle,
|
|
413
411
|
Rt as DashboardFilterControlsButton,
|
|
414
|
-
|
|
412
|
+
Pt as DashboardFilterControlsLauncher,
|
|
415
413
|
ra as DashboardWC,
|
|
416
|
-
|
|
414
|
+
Lt as DataVariablesListHost,
|
|
417
415
|
ga as DisplayFormatPreferencesFields,
|
|
418
|
-
|
|
416
|
+
Nt as DocumentControlsSettings,
|
|
419
417
|
da as EMPTY_SELECTION,
|
|
420
418
|
xa as ExportError,
|
|
421
419
|
Ba as FAVORITES_READ_ONLY_MESSAGE,
|
|
422
420
|
Ra as FavoriteStarButton,
|
|
423
421
|
ut as LEGACY_CALCULATED_FIELD_ENTITY_MARKER,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
422
|
+
Pa as MatrixCardView,
|
|
423
|
+
La as PROPOSAL_REFUSALS,
|
|
424
|
+
ba as ReportPreferencesDialog,
|
|
425
|
+
Na as ResourceType,
|
|
428
426
|
It as ScreenSizePreviewButton,
|
|
429
427
|
z as SemaphorContextProvider,
|
|
430
428
|
Ia as SemaphorDataProvider,
|
|
431
429
|
Oa as SemaphorQueryClient,
|
|
432
430
|
Ma as ShareDialog,
|
|
433
431
|
ja as SummaryCard,
|
|
434
|
-
|
|
432
|
+
Ca as Surfboard,
|
|
435
433
|
ka as TOOLBAR_LG_MIN,
|
|
436
434
|
Ua as TOOLBAR_MD_MIN,
|
|
437
435
|
Va as ToolbarOverflowAnchorSlot,
|
|
@@ -447,8 +445,8 @@ export {
|
|
|
447
445
|
Ga as briefingFormDraftToUpdateRequest,
|
|
448
446
|
$a as briefingToFormDraft,
|
|
449
447
|
Ka as cancelBriefingPreviewRun,
|
|
450
|
-
|
|
451
|
-
|
|
448
|
+
Qa as cancelBriefingRun,
|
|
449
|
+
qa as cancelExport,
|
|
452
450
|
he as cloneDeep,
|
|
453
451
|
Ya as createBriefing,
|
|
454
452
|
Ja as createBriefingFormDraft,
|
|
@@ -486,13 +484,13 @@ export {
|
|
|
486
484
|
gt as inspectCalculatedField,
|
|
487
485
|
Vt as invalidateToken,
|
|
488
486
|
or as isBooleanDataType,
|
|
489
|
-
|
|
490
|
-
|
|
487
|
+
bt as isCalculatedDimension,
|
|
488
|
+
Ct as isCalculatedMetric,
|
|
491
489
|
nr as isColumnInSqlGen,
|
|
492
490
|
ir as isDateDataType,
|
|
493
491
|
yt as isDerivedField,
|
|
494
|
-
|
|
495
|
-
|
|
492
|
+
bs as isExportComplete,
|
|
493
|
+
Cs as isExportInProgress,
|
|
496
494
|
lr as isNumberDataType,
|
|
497
495
|
cr as isTextDataType,
|
|
498
496
|
ys as listBriefingRuns,
|
|
@@ -517,9 +515,9 @@ export {
|
|
|
517
515
|
Rs as selectProposalUndoable,
|
|
518
516
|
Kt as serializeDashboardForDirtyCheck,
|
|
519
517
|
vt as shouldDropInheritedCalculationAggregate,
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
518
|
+
Ps as toolbarWidthFor,
|
|
519
|
+
Ls as updateBriefing,
|
|
520
|
+
Ns as useActivity,
|
|
523
521
|
Is as useAddNewFrame,
|
|
524
522
|
Os as useAssistant,
|
|
525
523
|
Ms as useBriefingUiCapabilities,
|
|
@@ -535,10 +533,10 @@ export {
|
|
|
535
533
|
I as useDashboardStore,
|
|
536
534
|
Ks as useDashboardSummary,
|
|
537
535
|
zt as useDashboardUnsavedChangesCheck,
|
|
538
|
-
|
|
536
|
+
Qs as useDataColumns,
|
|
539
537
|
Ht as useDataVariablesMenuEntry,
|
|
540
|
-
|
|
541
|
-
|
|
538
|
+
qs as useDateFilterHook,
|
|
539
|
+
Qt as useDebouncedDirtyCheck,
|
|
542
540
|
Wt as useDefaultDashboardToggle,
|
|
543
541
|
Ys as useEditorActions,
|
|
544
542
|
Js as useEditorAside,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as r } from "../chunks/analytics-base-schemas-
|
|
2
|
-
import { D as n, p as o, a as p, b as t } from "../chunks/report-runtime-context-
|
|
1
|
+
import { i as r } from "../chunks/analytics-base-schemas-DsUh5Q3C.js";
|
|
2
|
+
import { D as n, p as o, a as p, b as t } from "../chunks/report-runtime-context-c77_KF9v.js";
|
|
3
3
|
export {
|
|
4
4
|
n as DEFAULT_CALENDAR_CONTEXT,
|
|
5
5
|
r as isValidIanaTimeZone,
|