react-semaphor 0.1.525 → 0.1.526

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.
Files changed (54) hide show
  1. package/dist/brand-studio/index.js +37 -37
  2. package/dist/briefings/index.js +3 -3
  3. package/dist/chunks/{calculated-field-identity-Dy_WpDdo.js → calculated-field-identity-D1ofR4KJ.js} +28 -28
  4. package/dist/chunks/{card-config-utils-CAyjC5Tp.js → card-config-utils-9sv4e-Vb.js} +15 -15
  5. package/dist/chunks/{switch-CWPcwAZ4.js → code-highlight-994tgM9v.js} +6309 -8642
  6. package/dist/chunks/dashboard-CsHvEtjN.js +15 -0
  7. package/dist/chunks/{dashboard-briefing-launcher-BilVIEyw.js → dashboard-briefing-launcher-DXz1GhFZ.js} +364 -370
  8. package/dist/chunks/{dashboard-controls-DyLPcvCK.js → dashboard-controls-Df8qOSrs.js} +163 -168
  9. package/dist/chunks/dashboard-json-Xldp0qww.js +65 -0
  10. package/dist/chunks/{edit-dashboard-visual-DtmKNNdE.js → edit-dashboard-visual-COHBqyic.js} +1108 -1107
  11. package/dist/chunks/editor-action-buttons-DahlP57T.js +2071 -0
  12. package/dist/chunks/{index-ON7Gpvcv.js → index-CbjuruKe.js} +40 -40
  13. package/dist/chunks/{matrix-control-sources-B1K7x0SL.js → matrix-control-sources-2VAzGlt8.js} +29 -29
  14. package/dist/chunks/pre-block-Cq1RqhZX.js +3987 -0
  15. package/dist/chunks/report-preferences-dialog-BcH-0lR-.js +1232 -0
  16. package/dist/chunks/search-CJz-QQ0Q.js +24 -0
  17. package/dist/chunks/{selection-reducer-CvCBQbl2.js → selection-reducer-NF5C07yM.js} +25 -46
  18. package/dist/chunks/{index-DYOaHuLS.js → semaphor-ready-indicator-BLRDuLr4.js} +142229 -147767
  19. package/dist/chunks/slider-BYIH4icg.js +877 -0
  20. package/dist/chunks/switch-XaAACBrJ.js +2234 -0
  21. package/dist/dashboard/index.js +1 -1
  22. package/dist/dashboard-authoring/index.js +4 -4
  23. package/dist/data-app-builder/index.js +67 -67
  24. package/dist/data-app-sdk/index.js +33 -32
  25. package/dist/index.js +435 -243
  26. package/dist/surfboard/index.js +4 -5
  27. package/dist/types/components/dashboard/dashboard-container.d.ts +1 -1
  28. package/dist/types/components/dashboard/sheet/layout-change-guard.d.ts +1 -1
  29. package/dist/types/components/dashboard/sheet/sheet-layout.d.ts +1 -1
  30. package/dist/types/components/editor/editor-main/text-card.d.ts +1 -1
  31. package/dist/types/components/editor/editor.d.ts +1 -1
  32. package/dist/types/components/providers/semaphor-context-provider.d.ts +1 -1
  33. package/dist/types/components/providers/theme-provider-context.d.ts +1 -1
  34. package/dist/types/components/providers/theme-provider.d.ts +1 -1
  35. package/dist/types/components/shared/unsaved-changes/use-pristine-snapshot-initializer.d.ts +1 -1
  36. package/dist/types/components/surfboard/dashboard-plus.d.ts +1 -1
  37. package/dist/types/components/visual/column-display-utils.d.ts +1 -1
  38. package/dist/types/components/visual/kpi-visual/kpi-utils.d.ts +1 -1
  39. package/dist/types/components/visual/settings/color-format.d.ts +1 -1
  40. package/dist/types/components/visual/visual-utils.d.ts +1 -1
  41. package/dist/types/lib/actions/data-point-click-action.d.ts +2 -1
  42. package/dist/types/lib/dashboard/normalize-dashboard-for-dirty-check.d.ts +1 -1
  43. package/dist/types/lib/hooks/explorer/use-schemas.d.ts +1 -1
  44. package/dist/types/lib/hooks/use-dashboard.d.ts +2 -2
  45. package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +1 -2
  46. package/dist/types/lib/stores/editor-store.d.ts +1 -2
  47. package/dist/types/lib/stores/table-actions.d.ts +2 -1
  48. package/dist/types/lib/types/token-types.d.ts +0 -12
  49. package/dist/types/lib/utils.d.ts +0 -2
  50. package/package.json +2 -1
  51. package/dist/chunks/dashboard-json-QEoU-mx4.js +0 -75
  52. package/dist/chunks/editor-action-buttons-B9VRW3Bh.js +0 -2019
  53. package/dist/chunks/report-preferences-dialog-BLaFmlE2.js +0 -723
  54. package/dist/types/lib/encrypt-utils.d.ts +0 -9
package/dist/index.js CHANGED
@@ -1,155 +1,347 @@
1
- import { E as x, F as B, S, c as N, U as _, d as P, C as w, V as F, e as R, f as L, g as I, h as M, I as k, R as U, i as O, j as V, k as q, l as z } from "./chunks/index-DYOaHuLS.js";
2
- import { al as Ta, am as va, an as Aa, ao as Ba, W as Sa, G as Na, D as _a, A as Pa, z as wa, w as Fa, b as Ra, av as La, M as Ia, n as Ma, q as ka, q as Ua, r as Oa, B as Va, a as qa, ag as za, ai as ja, aj as Wa, ah as Qa, a7 as Ha, aa as Ka, au as Ga, _ as Ya, af as Xa, aq as $a, a2 as Ja, ab as Za, y as ae, x as ee, ay as se, Z as re, ac as oe, ad as ie, a6 as te, a9 as ne, at as le, as as de, ar as ue, ax as ce, aw as pe, a8 as fe, Y as me, X as he, a0 as Ce, ae as ge, a4 as De, a1 as Ee, a3 as xe, a5 as be, $ as ye, P as Te, L as ve, ap as Ae, v as Be, J as Se, t as Ne, m as _e, H as Pe, K as we, o as Fe, T as Re, O as Le, N as Ie, Q as Me, u as ke, s as Ue, p as Oe, ak as Ve } from "./chunks/index-DYOaHuLS.js";
3
- import { C as ze, E as je } from "./chunks/common-types-C6cAQgyh.js";
4
- import { R as Qe } from "./chunks/report-preferences-dialog-BLaFmlE2.js";
5
- import { jsx as a, jsxs as l } from "react/jsx-runtime";
6
- import { u as j, P as W, a as Q, B as H, c as g, b as K, d as G } from "./chunks/switch-CWPcwAZ4.js";
7
- import { A as Ke, n as Ge, e as Ye, f as Xe, g as $e, p as Je, o as Ze, s as as, t as es, m as ss, i as rs, l as os, q as is, k as ts, j as ns, h as ls, v as ds, r as us, w as cs, y as ps, x as fs, z as ms, E as hs, D as Cs } from "./chunks/switch-CWPcwAZ4.js";
8
- import * as f from "react";
9
- import { useMemo as Y, useEffect as b } from "react";
10
- import { D as Ds } from "./chunks/token-types-BC6RcUY8.js";
11
- import { C as xs, D as bs, L as ys, P as Ts, f as vs, g as As, k as Bs, j as Ss, l as Ns, e as _s, c as Ps, b as ws, d as Fs, n as Rs, h as Ls } from "./chunks/validators-CsdOtZI6.js";
12
- import { A as Ms, h as ks, D as Us, f as Os, g as Vs, e as qs, b as zs, E as js, N as Ws, U as Qs, a as Hs, V as Ks, W as Gs, u as Ys, c as Xs, d as $s } from "./chunks/dashboard-briefing-launcher-BilVIEyw.js";
13
- import { u as Zs } from "./chunks/use-debounced-dirty-check-BwAbnX_5.js";
1
+ import { D as L } from "./chunks/dashboard-CsHvEtjN.js";
2
+ import { C as aa, E as ta } from "./chunks/common-types-C6cAQgyh.js";
3
+ import { a as sa, R as oa, D as na } from "./chunks/report-preferences-dialog-BcH-0lR-.js";
4
+ import { jsx as n, jsxs as C } from "react/jsx-runtime";
5
+ import { E as _, F as k, S as I, U as M, b as O, C as U, V, c as z, d as q, e as H, f as $, I as W, g as K, h as Q, i as G, j as Y } from "./chunks/semaphor-ready-indicator-BLRDuLr4.js";
6
+ import { ah as la, ai as ca, aj as ua, B as da, O as pa, x as fa, v as ma, t as ha, aq as ga, M as Ca, R as ya, n as ba, w as Ea, ac as Da, ae as va, af as Aa, ad as xa, a3 as Sa, a6 as wa, ap as Ta, W as Ba, ab as Na, al as _a, _ as Fa, a7 as Pa, s as Ra, r as ja, at as La, T as ka, a8 as Ia, a9 as Ma, a2 as Oa, a5 as Ua, ao as Va, an as za, am as qa, as as Ha, ar as $a, a4 as Wa, Q as Ka, P as Qa, Y as Ga, aa as Ya, a0 as Ja, Z as Xa, $ as Za, a1 as et, X as at, K as tt, G as rt, ak as st, q as ot, z as nt, p as it, k as lt, y as ct, A as ut, l as dt, N as pt, J as ft, H as mt, L as ht, u as gt, o as Ct, m as yt, ag as bt } from "./chunks/semaphor-ready-indicator-BLRDuLr4.js";
7
+ import { S as J, R as X } from "./chunks/pre-block-Cq1RqhZX.js";
8
+ import { a as Dt, a as vt } from "./chunks/pre-block-Cq1RqhZX.js";
9
+ import { u as Z, P as ee, a as ae, B as te, c as B, b as re, C as se } from "./chunks/code-highlight-994tgM9v.js";
10
+ import { F as xt, q as St, h as wt, i as Tt, k as Bt, s as Nt, r as _t, w as Ft, x as Pt, p as Rt, j as jt, o as Lt, t as kt, n as It, m as Mt, l as Ot, y as Ut, v as Vt, z as zt, D as qt, A as Ht, E as $t, H as Wt, G as Kt } from "./chunks/code-highlight-994tgM9v.js";
11
+ import * as S from "react";
12
+ import F, { useMemo as oe, useEffect as P } from "react";
13
+ import { D as Gt } from "./chunks/token-types-BC6RcUY8.js";
14
+ import { C as Jt, D as Xt, L as Zt, P as er, f as ar, g as tr, k as rr, j as sr, l as or, e as nr, c as ir, b as lr, d as cr, n as ur, h as dr } from "./chunks/validators-CsdOtZI6.js";
15
+ import { A as fr, h as mr, D as hr, f as gr, g as Cr, e as yr, b as br, E as Er, N as Dr, U as vr, a as Ar, V as xr, W as Sr, u as wr, c as Tr, d as Br } from "./chunks/dashboard-briefing-launcher-DXz1GhFZ.js";
16
+ import { u as _r } from "./chunks/use-debounced-dirty-check-BwAbnX_5.js";
17
+ import { createRoot as ne } from "react-dom/client";
18
+ import "./chunks/slider-BYIH4icg.js";
19
+ import "./chunks/switch-XaAACBrJ.js";
14
20
  import "./chunks/matrix-operation-contract-D32U2CSw.js";
15
21
  import "./chunks/matrix-continuation-C4sRcjZU.js";
16
22
  import "./value-format-preferences/index.js";
17
- import { D as er } from "./chunks/report-runtime-context-CxIoGyNM.js";
18
- import { r as rr, a as or } from "./chunks/pivot-result-identity-BzUQiCEV.js";
23
+ import { D as Pr } from "./chunks/report-runtime-context-CxIoGyNM.js";
24
+ import { r as jr, a as Lr } from "./chunks/pivot-result-identity-BzUQiCEV.js";
19
25
  import "./chunks/field-aggregations-BQjogiI1.js";
20
- import { c as X } from "./chunks/calculated-field-identity-Dy_WpDdo.js";
26
+ import { K as ie } from "./chunks/calculated-field-identity-D1ofR4KJ.js";
21
27
  import "zod";
22
- import "./chunks/card-config-utils-CAyjC5Tp.js";
28
+ import "./chunks/card-config-utils-9sv4e-Vb.js";
23
29
  import "react-dom";
24
- import "./chunks/index-ON7Gpvcv.js";
30
+ import "./chunks/index-CbjuruKe.js";
25
31
  import "./chunks/appearance-context-DEYtWinQ.js";
26
32
  import "./chunks/color-CJvdlFM_.js";
27
33
  import "./chunks/index-CLIro-EG.js";
28
- import { n as tr, s as nr } from "./chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
29
- import { C as $ } from "./chunks/x-CXDkqdur.js";
34
+ import { n as Ir, s as Mr } from "./chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
35
+ import { C as le } from "./chunks/x-CXDkqdur.js";
30
36
  import "./chunks/appearance-runtime-provider-B-M8gwlZ.js";
31
- function ga(e) {
32
- const { displayPreferences: s, cardId: i, ...n } = e, o = {
33
- ...n,
37
+ function Qe(e) {
38
+ const { displayPreferences: a, cardId: t, ...r } = e, s = {
39
+ ...r,
34
40
  id: e.dashboardId
35
41
  // override the id to the dashboard id so that the dashboard is not loaded
36
42
  };
37
- return /* @__PURE__ */ a(x, { FallbackComponent: B, children: /* @__PURE__ */ l(S, { dashboardProps: o, children: [
38
- /* @__PURE__ */ a(N, { componentType: "visual", componentId: e.cardId }),
39
- /* @__PURE__ */ a(_, { appearance: e.appearance, children: /* @__PURE__ */ a(P, { displayPreferences: s, children: /* @__PURE__ */ a(w, { type: "visual", cardId: i, ...o, children: /* @__PURE__ */ a(J, { cardId: i }) }) }) })
43
+ return /* @__PURE__ */ n(_, { FallbackComponent: k, children: /* @__PURE__ */ C(J, { dashboardProps: s, children: [
44
+ /* @__PURE__ */ n(I, { componentType: "visual", componentId: e.cardId }),
45
+ /* @__PURE__ */ n(M, { appearance: e.appearance, children: /* @__PURE__ */ n(O, { displayPreferences: a, children: /* @__PURE__ */ n(U, { type: "visual", cardId: t, ...s, children: /* @__PURE__ */ n(ce, { cardId: t }) }) }) })
40
46
  ] }) });
41
47
  }
42
- function J({ cardId: e }) {
43
- const s = j((o) => {
44
- var d;
45
- return (d = o.dashboard) == null ? void 0 : d.sheets;
46
- }), { card: i, frame: n } = Y(() => {
47
- const o = s == null ? void 0 : s.flatMap((r) => r.frames), d = o == null ? void 0 : o.flatMap((r) => r == null ? void 0 : r.cards), m = d == null ? void 0 : d.find((r) => (r == null ? void 0 : r.id) === e), h = o == null ? void 0 : o.find(
48
- (r) => {
49
- var p;
50
- return (p = r == null ? void 0 : r.cards) == null ? void 0 : p.find((u) => (u == null ? void 0 : u.id) === e);
48
+ function ce({ cardId: e }) {
49
+ const a = Z((s) => {
50
+ var h;
51
+ return (h = s.dashboard) == null ? void 0 : h.sheets;
52
+ }), { card: t, frame: r } = oe(() => {
53
+ const s = a == null ? void 0 : a.flatMap((o) => o.frames), h = s == null ? void 0 : s.flatMap((o) => o == null ? void 0 : o.cards), y = h == null ? void 0 : h.find((o) => (o == null ? void 0 : o.id) === e), D = s == null ? void 0 : s.find(
54
+ (o) => {
55
+ var b;
56
+ return (b = o == null ? void 0 : o.cards) == null ? void 0 : b.find((g) => (g == null ? void 0 : g.id) === e);
51
57
  }
52
58
  );
53
- return { card: m, frame: h };
54
- }, [s, e]);
55
- return !i || !n ? /* @__PURE__ */ a(
56
- F,
59
+ return { card: y, frame: D };
60
+ }, [a, e]);
61
+ return !t || !r ? /* @__PURE__ */ n(
62
+ V,
57
63
  {
58
64
  description: `Couldn’t find a visual with ID ${e} on this dashboard.`,
59
65
  role: "status"
60
66
  }
61
- ) : /* @__PURE__ */ a("main", { className: "flex h-full grow flex-col", children: /* @__PURE__ */ a(x, { FallbackComponent: R, children: /* @__PURE__ */ a(L, { card: i, frame: n }) }) });
67
+ ) : /* @__PURE__ */ n("main", { className: "flex h-full grow flex-col", children: /* @__PURE__ */ n(_, { FallbackComponent: z, children: /* @__PURE__ */ n(q, { card: t, frame: r }) }) });
62
68
  }
63
- function Da(e, s, i, n) {
64
- b(() => {
65
- e && !i && s && n(X(s));
66
- }, [e, i, s, n]);
69
+ var ue = Object.defineProperty, de = (e, a, t) => a in e ? ue(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t, w = (e, a, t) => de(e, typeof a != "symbol" ? a + "" : a, t);
70
+ const pe = {
71
+ stringify: (e) => e ? "true" : "false",
72
+ parse: (e) => /^[ty1-9]/i.test(e)
73
+ }, fe = {
74
+ stringify: (e) => e.name,
75
+ parse: (e, a, t) => {
76
+ const r = (() => {
77
+ if (typeof window < "u" && e in window)
78
+ return window[e];
79
+ if (typeof global < "u" && e in global)
80
+ return global[e];
81
+ })();
82
+ return typeof r == "function" ? r.bind(t) : void 0;
83
+ }
84
+ }, me = {
85
+ stringify: (e) => JSON.stringify(e),
86
+ parse: (e) => JSON.parse(e)
87
+ };
88
+ function he(e) {
89
+ return e.replace(
90
+ /([a-z0-9])([A-Z])/g,
91
+ (a, t, r) => `${t}-${r.toLowerCase()}`
92
+ );
93
+ }
94
+ function R(e) {
95
+ return e.replace(/[-:]([a-z])/g, (a, t) => `${t.toUpperCase()}`);
96
+ }
97
+ const ge = {
98
+ stringify: (e) => e.name,
99
+ parse: (e, a, t) => {
100
+ const r = (() => {
101
+ const s = R(a);
102
+ if (typeof t < "u" && s in t.container)
103
+ return t.container[s];
104
+ })();
105
+ return typeof r == "function" ? r.bind(t) : void 0;
106
+ }
107
+ }, Ce = {
108
+ stringify: (e) => `${e}`,
109
+ parse: (e) => parseFloat(e)
110
+ }, ye = {
111
+ stringify: (e) => e,
112
+ parse: (e) => e
113
+ }, N = {
114
+ string: ye,
115
+ number: Ce,
116
+ boolean: pe,
117
+ function: fe,
118
+ method: ge,
119
+ json: me
120
+ }, x = Symbol.for("r2wc.render"), T = Symbol.for("r2wc.connected"), E = Symbol.for("r2wc.context"), m = Symbol.for("r2wc.props");
121
+ function be(e, a, t) {
122
+ var r, s, h;
123
+ a.props || (a.props = e.propTypes ? Object.keys(e.propTypes) : []), a.events || (a.events = []);
124
+ const y = Array.isArray(a.props) ? a.props.slice() : Object.keys(a.props), D = Array.isArray(a.events) ? a.events.slice() : Object.keys(a.events), o = {}, b = {}, g = {}, v = {};
125
+ for (const c of y) {
126
+ o[c] = Array.isArray(a.props) ? "string" : a.props[c];
127
+ const l = he(c);
128
+ g[c] = l, v[l] = c;
129
+ }
130
+ for (const c of D)
131
+ b[c] = Array.isArray(a.events) ? {} : a.events[c];
132
+ class A extends HTMLElement {
133
+ constructor() {
134
+ super(), w(this, h, !0), w(this, s), w(this, r, {}), w(this, "container"), a.shadow ? this.container = this.attachShadow({
135
+ mode: a.shadow
136
+ }) : this.container = this, this[m].container = this.container;
137
+ for (const l of y) {
138
+ const u = g[l], d = this.getAttribute(u), p = o[l], i = p ? N[p] : null;
139
+ if (p === "method") {
140
+ const f = R(u);
141
+ Object.defineProperty(this[m].container, f, {
142
+ enumerable: !0,
143
+ configurable: !0,
144
+ get() {
145
+ return this[m][f];
146
+ },
147
+ set(j) {
148
+ this[m][f] = j, this[x]();
149
+ }
150
+ }), this[m][l] = i.parse(d, u, this);
151
+ }
152
+ i != null && i.parse && d && (this[m][l] = i.parse(d, u, this));
153
+ }
154
+ for (const l of D)
155
+ this[m][l] = (u) => {
156
+ const d = l.replace(/^on/, "").toLowerCase();
157
+ this.dispatchEvent(
158
+ new CustomEvent(d, { detail: u, ...b[l] })
159
+ );
160
+ };
161
+ }
162
+ static get observedAttributes() {
163
+ return Object.keys(v);
164
+ }
165
+ connectedCallback() {
166
+ this[T] = !0, this[x]();
167
+ }
168
+ disconnectedCallback() {
169
+ this[T] = !1, this[E] && t.unmount(this[E]), delete this[E];
170
+ }
171
+ attributeChangedCallback(l, u, d) {
172
+ const p = v[l], i = o[p], f = i ? N[i] : null;
173
+ p in o && f != null && f.parse && d && (this[m][p] = f.parse(d, l, this), this[x]());
174
+ }
175
+ [(h = T, s = E, r = m, x)]() {
176
+ this[T] && (this[E] ? t.update(this[E], this[m]) : this[E] = t.mount(
177
+ this.container,
178
+ e,
179
+ this[m]
180
+ ));
181
+ }
182
+ }
183
+ for (const c of y) {
184
+ const l = g[c], u = o[c];
185
+ Object.defineProperty(A.prototype, c, {
186
+ enumerable: !0,
187
+ configurable: !0,
188
+ get() {
189
+ return this[m][c];
190
+ },
191
+ set(d) {
192
+ this[m][c] = d;
193
+ const p = u ? N[u] : null;
194
+ if (p != null && p.stringify) {
195
+ const i = p.stringify(d, l, this);
196
+ this.getAttribute(l) !== i && this.setAttribute(l, i);
197
+ } else
198
+ this[x]();
199
+ }
200
+ });
201
+ }
202
+ return A;
203
+ }
204
+ function Ee(e, a, t) {
205
+ const r = ne(e), s = F.createElement(a, t);
206
+ return r.render(s), {
207
+ root: r,
208
+ ReactComponent: a
209
+ };
210
+ }
211
+ function De({ root: e, ReactComponent: a }, t) {
212
+ const r = F.createElement(a, t);
213
+ e.render(r);
214
+ }
215
+ function ve({ root: e }) {
216
+ e.unmount();
217
+ }
218
+ function Ae(e, a = {}) {
219
+ return be(e, a, { mount: Ee, update: De, unmount: ve });
220
+ }
221
+ const xe = {
222
+ id: "string",
223
+ // deprecated
224
+ version: "string",
225
+ //deprecated
226
+ authToken: "json",
227
+ placeholders: "json",
228
+ defaultFilterValues: "json",
229
+ defaultControlValues: "json",
230
+ controlContractOverrides: "json",
231
+ documentInputValues: "json",
232
+ dashboardInputExecutionSnapshot: "json",
233
+ printInputCapture: "json",
234
+ presentationExecutionSnapshot: "json",
235
+ renderMode: "string",
236
+ currentTheme: "string",
237
+ customCards: "json",
238
+ customStyle: "json",
239
+ appearance: "json",
240
+ onChartElementClicked: "function",
241
+ onFilterValuesChange: "function",
242
+ onEvent: "function",
243
+ onDashboardLifecycleEvent: "function",
244
+ onSave: "function",
245
+ LoadingComponent: "function",
246
+ ErrorComponent: "function",
247
+ showAssistant: "boolean",
248
+ showBriefings: "boolean",
249
+ selectedSheetId: "string",
250
+ eventHandlers: "json",
251
+ preferences: "json"
252
+ }, Ge = Ae(L, {
253
+ props: xe
254
+ });
255
+ function Ye(e, a, t, r) {
256
+ P(() => {
257
+ e && !t && a && r(ie(a));
258
+ }, [e, t, a, r]);
67
259
  }
68
- function Ea({
260
+ function Je({
69
261
  name: e,
70
- items: s,
71
- value: i,
72
- onChange: n,
73
- isLoading: o,
74
- isError: d,
75
- refetch: m,
76
- className: h,
77
- icon: r,
78
- showNone: p = !1
262
+ items: a,
263
+ value: t,
264
+ onChange: r,
265
+ isLoading: s,
266
+ isError: h,
267
+ refetch: y,
268
+ className: D,
269
+ icon: o,
270
+ showNone: b = !1
79
271
  }) {
80
- const u = f.useRef(null), [D, E] = f.useState(!1), [y, T] = f.useState("100%"), C = p ? [...s || [], { id: "none", name: "None" }] : s;
81
- f.useLayoutEffect(() => {
82
- u.current && T(u.current.offsetWidth);
272
+ const g = S.useRef(null), [v, A] = S.useState(!1), [c, l] = S.useState("100%"), u = b ? [...a || [], { id: "none", name: "None" }] : a;
273
+ S.useLayoutEffect(() => {
274
+ g.current && l(g.current.offsetWidth);
83
275
  }, []);
84
- function v() {
85
- var t;
86
- return o ? "Loading..." : d ? "Error" : i ? (t = s == null ? void 0 : s.find((c) => c.id === i)) == null ? void 0 : t.name : `Select ${e}`;
276
+ function d() {
277
+ var i;
278
+ return s ? "Loading..." : h ? "Error" : t ? (i = a == null ? void 0 : a.find((f) => f.id === t)) == null ? void 0 : i.name : `Select ${e}`;
87
279
  }
88
- function A(t, c) {
89
- n(c), E(!1);
280
+ function p(i, f) {
281
+ r(f), A(!1);
90
282
  }
91
- return /* @__PURE__ */ l(W, { open: D, onOpenChange: E, children: [
92
- /* @__PURE__ */ a(Q, { asChild: !0, children: /* @__PURE__ */ l(
93
- H,
283
+ return /* @__PURE__ */ C(ee, { open: v, onOpenChange: A, children: [
284
+ /* @__PURE__ */ n(ae, { asChild: !0, children: /* @__PURE__ */ C(
285
+ te,
94
286
  {
95
- ref: u,
287
+ ref: g,
96
288
  variant: "outline",
97
289
  role: "combobox",
98
- "aria-expanded": D,
99
- className: g("flex h-9 w-full justify-between", h),
290
+ "aria-expanded": v,
291
+ className: B("flex h-9 w-full justify-between", D),
100
292
  children: [
101
- /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
102
- r && /* @__PURE__ */ a("div", { className: "mr-2", children: r }),
103
- /* @__PURE__ */ a("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children: v() })
293
+ /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
294
+ o && /* @__PURE__ */ n("div", { className: "mr-2", children: o }),
295
+ /* @__PURE__ */ n("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children: d() })
104
296
  ] }),
105
- /* @__PURE__ */ a($, { className: "size-4 opacity-50" })
297
+ /* @__PURE__ */ n(le, { className: "size-4 opacity-50" })
106
298
  ]
107
299
  }
108
300
  ) }),
109
- /* @__PURE__ */ a(
110
- K,
301
+ /* @__PURE__ */ n(
302
+ re,
111
303
  {
112
304
  className: "w-full p-0",
113
- style: { minWidth: y },
114
- children: /* @__PURE__ */ l(I, { children: [
115
- /* @__PURE__ */ l("div", { className: "flex h-9 items-center justify-between border-b pr-1", children: [
116
- /* @__PURE__ */ a(M, { className: "h-9", placeholder: "Search..." }),
117
- /* @__PURE__ */ a(k, { className: "h-7", onClick: m, children: /* @__PURE__ */ a(
118
- U,
305
+ style: { minWidth: c },
306
+ children: /* @__PURE__ */ C(H, { children: [
307
+ /* @__PURE__ */ C("div", { className: "flex h-9 items-center justify-between border-b pr-1", children: [
308
+ /* @__PURE__ */ n($, { className: "h-9", placeholder: "Search..." }),
309
+ /* @__PURE__ */ n(W, { className: "h-7", onClick: y, children: /* @__PURE__ */ n(
310
+ X,
119
311
  {
120
- className: g(
312
+ className: B(
121
313
  "size-3.5 opacity-50",
122
- o && "animate-spin"
314
+ s && "animate-spin"
123
315
  )
124
316
  }
125
317
  ) })
126
318
  ] }),
127
- /* @__PURE__ */ l(O, { children: [
128
- /* @__PURE__ */ l(V, { children: [
319
+ /* @__PURE__ */ C(K, { children: [
320
+ /* @__PURE__ */ C(Q, { children: [
129
321
  "No ",
130
322
  e == null ? void 0 : e.toLowerCase(),
131
323
  " found."
132
324
  ] }),
133
- /* @__PURE__ */ a(q, { children: C == null ? void 0 : C.map((t) => /* @__PURE__ */ a(
134
- z,
325
+ /* @__PURE__ */ n(G, { children: u == null ? void 0 : u.map((i) => /* @__PURE__ */ n(
326
+ Y,
135
327
  {
136
328
  className: "overflow-x-auto",
137
- value: t.name,
138
- onSelect: (c) => A(c, t.id),
139
- children: /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
140
- /* @__PURE__ */ a(
141
- G,
329
+ value: i.name,
330
+ onSelect: (f) => p(f, i.id),
331
+ children: /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
332
+ /* @__PURE__ */ n(
333
+ se,
142
334
  {
143
- className: g(
335
+ className: B(
144
336
  "size-4",
145
- i === t.id ? "opacity-100" : "opacity-0"
337
+ t === i.id ? "opacity-100" : "opacity-0"
146
338
  )
147
339
  }
148
340
  ),
149
- /* @__PURE__ */ a("div", { title: t.name, children: t.name })
341
+ /* @__PURE__ */ n("div", { title: i.name, children: i.name })
150
342
  ] })
151
343
  },
152
- t.id
344
+ i.id
153
345
  )) })
154
346
  ] })
155
347
  ] })
@@ -157,156 +349,156 @@ function Ea({
157
349
  )
158
350
  ] });
159
351
  }
160
- function xa(e, s) {
161
- b(() => (e && s && (window.__SEMAPHOR_PRINT_STATE__ = {
162
- ...s
352
+ function Xe(e, a) {
353
+ P(() => (e && a && (window.__SEMAPHOR_PRINT_STATE__ = {
354
+ ...a
163
355
  }), () => {
164
356
  e && window.__SEMAPHOR_PRINT_STATE__ && delete window.__SEMAPHOR_PRINT_STATE__;
165
- }), [e, s]);
357
+ }), [e, a]);
166
358
  }
167
359
  export {
168
- Ms as AdvancedModeToggle,
169
- Ta as BriefingAuthor,
170
- va as BriefingAuthorDialog,
171
- Aa as BriefingUiCapabilitiesBoundary,
172
- Ba as BriefingUiCapabilitiesProvider,
173
- Sa as BriefingsApiError,
174
- xs as CALCULATED_FIELD_ENTITY_MARKER,
175
- ze as CONTROL_CARD_DEFAULT_VALUE,
176
- Na as CardSummary,
177
- Ea as Combobox,
178
- bs as DATE_FORMAT_VALUES,
179
- er as DEFAULT_CALENDAR_CONTEXT,
180
- Ds as DEFAULT_SEMANTIC_DOMAIN_ACCESS,
181
- _a as Dashboard,
182
- ks as DashboardBriefingLauncher,
183
- Us as DashboardControlsSettings,
184
- Pa as DashboardCreateDialogBase,
185
- wa as DashboardExportDialog,
186
- Os as DashboardFilterControlsButton,
187
- Vs as DashboardFilterControlsLauncher,
188
- Fa as DashboardWC,
189
- Ra as DisplayFormatPreferencesFields,
190
- qs as DocumentControlsSettings,
191
- je as EMPTY_SELECTION,
192
- La as ExportError,
193
- zs as ExportNotificationItem,
194
- js as ExportNotificationList,
195
- ys as LEGACY_CALCULATED_FIELD_ENTITY_MARKER,
196
- Ia as MatrixCardView,
197
- Ws as NotificationBell,
198
- Ts as PivotMarkerEnum,
199
- Qe as ReportPreferencesDialog,
200
- Ma as ResourceType,
201
- S as SemaphorContextProvider,
202
- ka as SemaphorDataProvider,
203
- Ua as SemaphorQueryClient,
204
- Oa as ShareDialog,
205
- Va as SummaryCard,
206
- qa as Surfboard,
207
- Qs as UnsavedChangesAlert,
208
- ga as Visual,
209
- Hs as VisualEditingControls,
210
- Ks as VisualsLibraryDialog,
211
- Gs as WatchDashboardButton,
212
- za as applyBriefingFormPatch,
213
- ja as briefingFormDraftToCreateRequest,
214
- Wa as briefingFormDraftToUpdateRequest,
215
- Qa as briefingToFormDraft,
216
- Ha as cancelBriefingPreviewRun,
217
- Ka as cancelBriefingRun,
218
- Ga as cancelExport,
219
- X as cloneDeep,
220
- Ya as createBriefing,
221
- Xa as createBriefingFormDraft,
222
- Ke as createEmptyKpiConfig,
223
- $a as createExport,
224
- Ge as createSqlGenConfig,
225
- Ja as deleteBriefing,
226
- Za as deleteBriefingRun,
227
- ae as downloadDocumentPdf,
228
- ee as downloadPdf,
229
- Ye as emitDashboardLoad,
230
- Xe as emitDashboardUnload,
231
- $e as fmt,
232
- se as formatFileSize,
233
- re as getBriefing,
234
- oe as getBriefingArtifact,
235
- ie as getBriefingEvidence,
236
- te as getBriefingPreviewRun,
237
- ne as getBriefingRun,
238
- vs as getCalculatedFieldComputeStage,
239
- Je as getColumnDataType,
240
- le as getDownloadUrl,
241
- de as getExportStatus,
242
- ue as getExports,
243
- As as getFieldRuntimeColumnName,
244
- Ze as getFilterValueType,
245
- as as getFormattedTableNameForQuery,
246
- es as getQualifiedTableName,
247
- ss as getSql,
248
- Bs as hasCalculatedFieldMarker,
249
- Ss as hasCalculatedFormulaInputs,
250
- Ns as hasSyntheticCalculatedFieldOwner,
251
- _s as inspectCalculatedField,
252
- rs as invalidateToken,
253
- os as isBooleanDataType,
254
- Ps as isCalculatedDimension,
255
- ws as isCalculatedMetric,
256
- is as isColumnInSqlGen,
257
- ts as isDateDataType,
258
- Fs as isDerivedField,
259
- ce as isExportComplete,
260
- pe as isExportInProgress,
261
- ns as isNumberDataType,
262
- ls as isTextDataType,
263
- fe as listBriefingRuns,
264
- me as listBriefingTenantSummaries,
265
- he as listBriefings,
266
- Rs as normalizeCalculatedFieldRepresentation,
267
- tr as normalizeDashboardForDirtyCheck,
268
- Ce as pauseBriefing,
269
- ge as polishBriefingText,
270
- De as previewBriefingPlan,
271
- ds as resolveDataType,
272
- us as resolveDatamodelName,
273
- rr as resolveQueryColumnKeyMapEntry,
274
- or as resolveUniqueQueryColumnKeyMapEntry,
275
- Ee as resumeBriefing,
276
- xe as runBriefingNow,
277
- be as runBriefingPreview,
278
- nr as serializeDashboardForDirtyCheck,
279
- Ls as shouldDropInheritedCalculationAggregate,
280
- ye as updateBriefing,
281
- Te as useActiveExports,
282
- ve as useAddNewFrame,
283
- Ae as useBriefingUiCapabilities,
284
- Be as useCard,
285
- Se as useCardSummary,
286
- cs as useCurrentActiveCard,
287
- ps as useCurrentCardConfig,
288
- fs as useCurrentSheetActiveCards,
289
- ms as useDashboardActions,
290
- Ne as useDashboardById,
291
- _e as useDashboardQuery,
292
- j as useDashboardStore,
293
- Pe as useDashboardSummary,
294
- Ys as useDashboardUnsavedChangesCheck,
295
- we as useDataColumns,
296
- Fe as useDateFilterHook,
297
- Zs as useDebouncedDirtyCheck,
298
- hs as useEditorActions,
299
- Re as useEditorAside,
300
- Cs as useEditorStore,
301
- Le as useExportActions,
302
- Xs as useExportPolling,
303
- $s as useExportRecovery,
304
- Ie as useExportStore,
305
- xa as useExposePrintState,
306
- Me as useInProgressExportsCount,
307
- ke as useManagementStore,
308
- Da as usePristineSnapshotInitializer,
309
- Ue as useResourceManagement,
310
- Oe as useTextFilterHook,
311
- Ve as validateBriefingFormDraft
360
+ fr as AdvancedModeToggle,
361
+ la as BriefingAuthor,
362
+ ca as BriefingAuthorDialog,
363
+ ua as BriefingUiCapabilitiesBoundary,
364
+ da as BriefingUiCapabilitiesProvider,
365
+ pa as BriefingsApiError,
366
+ Jt as CALCULATED_FIELD_ENTITY_MARKER,
367
+ aa as CONTROL_CARD_DEFAULT_VALUE,
368
+ fa as CardSummary,
369
+ Je as Combobox,
370
+ Xt as DATE_FORMAT_VALUES,
371
+ Pr as DEFAULT_CALENDAR_CONTEXT,
372
+ Gt as DEFAULT_SEMANTIC_DOMAIN_ACCESS,
373
+ L as Dashboard,
374
+ mr as DashboardBriefingLauncher,
375
+ hr as DashboardControlsSettings,
376
+ ma as DashboardCreateDialogBase,
377
+ ha as DashboardExportDialog,
378
+ gr as DashboardFilterControlsButton,
379
+ Cr as DashboardFilterControlsLauncher,
380
+ Ge as DashboardWC,
381
+ sa as DisplayFormatPreferencesFields,
382
+ yr as DocumentControlsSettings,
383
+ ta as EMPTY_SELECTION,
384
+ ga as ExportError,
385
+ br as ExportNotificationItem,
386
+ Er as ExportNotificationList,
387
+ Zt as LEGACY_CALCULATED_FIELD_ENTITY_MARKER,
388
+ Ca as MatrixCardView,
389
+ Dr as NotificationBell,
390
+ er as PivotMarkerEnum,
391
+ oa as ReportPreferencesDialog,
392
+ ya as ResourceType,
393
+ J as SemaphorContextProvider,
394
+ Dt as SemaphorDataProvider,
395
+ vt as SemaphorQueryClient,
396
+ ba as ShareDialog,
397
+ Ea as SummaryCard,
398
+ na as Surfboard,
399
+ vr as UnsavedChangesAlert,
400
+ Qe as Visual,
401
+ Ar as VisualEditingControls,
402
+ xr as VisualsLibraryDialog,
403
+ Sr as WatchDashboardButton,
404
+ Da as applyBriefingFormPatch,
405
+ va as briefingFormDraftToCreateRequest,
406
+ Aa as briefingFormDraftToUpdateRequest,
407
+ xa as briefingToFormDraft,
408
+ Sa as cancelBriefingPreviewRun,
409
+ wa as cancelBriefingRun,
410
+ Ta as cancelExport,
411
+ ie as cloneDeep,
412
+ Ba as createBriefing,
413
+ Na as createBriefingFormDraft,
414
+ xt as createEmptyKpiConfig,
415
+ _a as createExport,
416
+ St as createSqlGenConfig,
417
+ Fa as deleteBriefing,
418
+ Pa as deleteBriefingRun,
419
+ Ra as downloadDocumentPdf,
420
+ ja as downloadPdf,
421
+ wt as emitDashboardLoad,
422
+ Tt as emitDashboardUnload,
423
+ Bt as fmt,
424
+ La as formatFileSize,
425
+ ka as getBriefing,
426
+ Ia as getBriefingArtifact,
427
+ Ma as getBriefingEvidence,
428
+ Oa as getBriefingPreviewRun,
429
+ Ua as getBriefingRun,
430
+ ar as getCalculatedFieldComputeStage,
431
+ Nt as getColumnDataType,
432
+ Va as getDownloadUrl,
433
+ za as getExportStatus,
434
+ qa as getExports,
435
+ tr as getFieldRuntimeColumnName,
436
+ _t as getFilterValueType,
437
+ Ft as getFormattedTableNameForQuery,
438
+ Pt as getQualifiedTableName,
439
+ Rt as getSql,
440
+ rr as hasCalculatedFieldMarker,
441
+ sr as hasCalculatedFormulaInputs,
442
+ or as hasSyntheticCalculatedFieldOwner,
443
+ nr as inspectCalculatedField,
444
+ jt as invalidateToken,
445
+ Lt as isBooleanDataType,
446
+ ir as isCalculatedDimension,
447
+ lr as isCalculatedMetric,
448
+ kt as isColumnInSqlGen,
449
+ It as isDateDataType,
450
+ cr as isDerivedField,
451
+ Ha as isExportComplete,
452
+ $a as isExportInProgress,
453
+ Mt as isNumberDataType,
454
+ Ot as isTextDataType,
455
+ Wa as listBriefingRuns,
456
+ Ka as listBriefingTenantSummaries,
457
+ Qa as listBriefings,
458
+ ur as normalizeCalculatedFieldRepresentation,
459
+ Ir as normalizeDashboardForDirtyCheck,
460
+ Ga as pauseBriefing,
461
+ Ya as polishBriefingText,
462
+ Ja as previewBriefingPlan,
463
+ Ut as resolveDataType,
464
+ Vt as resolveDatamodelName,
465
+ jr as resolveQueryColumnKeyMapEntry,
466
+ Lr as resolveUniqueQueryColumnKeyMapEntry,
467
+ Xa as resumeBriefing,
468
+ Za as runBriefingNow,
469
+ et as runBriefingPreview,
470
+ Mr as serializeDashboardForDirtyCheck,
471
+ dr as shouldDropInheritedCalculationAggregate,
472
+ at as updateBriefing,
473
+ tt as useActiveExports,
474
+ rt as useAddNewFrame,
475
+ st as useBriefingUiCapabilities,
476
+ ot as useCard,
477
+ nt as useCardSummary,
478
+ zt as useCurrentActiveCard,
479
+ qt as useCurrentCardConfig,
480
+ Ht as useCurrentSheetActiveCards,
481
+ $t as useDashboardActions,
482
+ it as useDashboardById,
483
+ lt as useDashboardQuery,
484
+ Z as useDashboardStore,
485
+ ct as useDashboardSummary,
486
+ wr as useDashboardUnsavedChangesCheck,
487
+ ut as useDataColumns,
488
+ dt as useDateFilterHook,
489
+ _r as useDebouncedDirtyCheck,
490
+ Wt as useEditorActions,
491
+ pt as useEditorAside,
492
+ Kt as useEditorStore,
493
+ ft as useExportActions,
494
+ Tr as useExportPolling,
495
+ Br as useExportRecovery,
496
+ mt as useExportStore,
497
+ Xe as useExposePrintState,
498
+ ht as useInProgressExportsCount,
499
+ gt as useManagementStore,
500
+ Ye as usePristineSnapshotInitializer,
501
+ Ct as useResourceManagement,
502
+ yt as useTextFilterHook,
503
+ bt as validateBriefingFormDraft
312
504
  };