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.
- package/dist/brand-studio/index.js +37 -37
- package/dist/briefings/index.js +3 -3
- package/dist/chunks/{calculated-field-identity-Dy_WpDdo.js → calculated-field-identity-D1ofR4KJ.js} +28 -28
- package/dist/chunks/{card-config-utils-CAyjC5Tp.js → card-config-utils-9sv4e-Vb.js} +15 -15
- package/dist/chunks/{switch-CWPcwAZ4.js → code-highlight-994tgM9v.js} +6309 -8642
- package/dist/chunks/dashboard-CsHvEtjN.js +15 -0
- package/dist/chunks/{dashboard-briefing-launcher-BilVIEyw.js → dashboard-briefing-launcher-DXz1GhFZ.js} +364 -370
- package/dist/chunks/{dashboard-controls-DyLPcvCK.js → dashboard-controls-Df8qOSrs.js} +163 -168
- package/dist/chunks/dashboard-json-Xldp0qww.js +65 -0
- package/dist/chunks/{edit-dashboard-visual-DtmKNNdE.js → edit-dashboard-visual-COHBqyic.js} +1108 -1107
- package/dist/chunks/editor-action-buttons-DahlP57T.js +2071 -0
- package/dist/chunks/{index-ON7Gpvcv.js → index-CbjuruKe.js} +40 -40
- package/dist/chunks/{matrix-control-sources-B1K7x0SL.js → matrix-control-sources-2VAzGlt8.js} +29 -29
- package/dist/chunks/pre-block-Cq1RqhZX.js +3987 -0
- package/dist/chunks/report-preferences-dialog-BcH-0lR-.js +1232 -0
- package/dist/chunks/search-CJz-QQ0Q.js +24 -0
- package/dist/chunks/{selection-reducer-CvCBQbl2.js → selection-reducer-NF5C07yM.js} +25 -46
- package/dist/chunks/{index-DYOaHuLS.js → semaphor-ready-indicator-BLRDuLr4.js} +142229 -147767
- package/dist/chunks/slider-BYIH4icg.js +877 -0
- package/dist/chunks/switch-XaAACBrJ.js +2234 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +4 -4
- package/dist/data-app-builder/index.js +67 -67
- package/dist/data-app-sdk/index.js +33 -32
- package/dist/index.js +435 -243
- package/dist/surfboard/index.js +4 -5
- package/dist/types/components/dashboard/dashboard-container.d.ts +1 -1
- package/dist/types/components/dashboard/sheet/layout-change-guard.d.ts +1 -1
- package/dist/types/components/dashboard/sheet/sheet-layout.d.ts +1 -1
- package/dist/types/components/editor/editor-main/text-card.d.ts +1 -1
- package/dist/types/components/editor/editor.d.ts +1 -1
- package/dist/types/components/providers/semaphor-context-provider.d.ts +1 -1
- package/dist/types/components/providers/theme-provider-context.d.ts +1 -1
- package/dist/types/components/providers/theme-provider.d.ts +1 -1
- package/dist/types/components/shared/unsaved-changes/use-pristine-snapshot-initializer.d.ts +1 -1
- package/dist/types/components/surfboard/dashboard-plus.d.ts +1 -1
- package/dist/types/components/visual/column-display-utils.d.ts +1 -1
- package/dist/types/components/visual/kpi-visual/kpi-utils.d.ts +1 -1
- package/dist/types/components/visual/settings/color-format.d.ts +1 -1
- package/dist/types/components/visual/visual-utils.d.ts +1 -1
- package/dist/types/lib/actions/data-point-click-action.d.ts +2 -1
- package/dist/types/lib/dashboard/normalize-dashboard-for-dirty-check.d.ts +1 -1
- package/dist/types/lib/hooks/explorer/use-schemas.d.ts +1 -1
- package/dist/types/lib/hooks/use-dashboard.d.ts +2 -2
- package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +1 -2
- package/dist/types/lib/stores/editor-store.d.ts +1 -2
- package/dist/types/lib/stores/table-actions.d.ts +2 -1
- package/dist/types/lib/types/token-types.d.ts +0 -12
- package/dist/types/lib/utils.d.ts +0 -2
- package/package.json +2 -1
- package/dist/chunks/dashboard-json-QEoU-mx4.js +0 -75
- package/dist/chunks/editor-action-buttons-B9VRW3Bh.js +0 -2019
- package/dist/chunks/report-preferences-dialog-BLaFmlE2.js +0 -723
- package/dist/types/lib/encrypt-utils.d.ts +0 -9
package/dist/index.js
CHANGED
|
@@ -1,155 +1,347 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import { D as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
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
|
|
18
|
-
import { r as
|
|
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 {
|
|
26
|
+
import { K as ie } from "./chunks/calculated-field-identity-D1ofR4KJ.js";
|
|
21
27
|
import "zod";
|
|
22
|
-
import "./chunks/card-config-utils-
|
|
28
|
+
import "./chunks/card-config-utils-9sv4e-Vb.js";
|
|
23
29
|
import "react-dom";
|
|
24
|
-
import "./chunks/index-
|
|
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
|
|
29
|
-
import { C as
|
|
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
|
|
32
|
-
const { displayPreferences:
|
|
33
|
-
...
|
|
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__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
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
|
|
43
|
-
const
|
|
44
|
-
var
|
|
45
|
-
return (
|
|
46
|
-
}), { card:
|
|
47
|
-
const
|
|
48
|
-
(
|
|
49
|
-
var
|
|
50
|
-
return (
|
|
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:
|
|
54
|
-
}, [
|
|
55
|
-
return !
|
|
56
|
-
|
|
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__ */
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
|
260
|
+
function Je({
|
|
69
261
|
name: e,
|
|
70
|
-
items:
|
|
71
|
-
value:
|
|
72
|
-
onChange:
|
|
73
|
-
isLoading:
|
|
74
|
-
isError:
|
|
75
|
-
refetch:
|
|
76
|
-
className:
|
|
77
|
-
icon:
|
|
78
|
-
showNone:
|
|
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
|
|
81
|
-
|
|
82
|
-
|
|
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
|
|
85
|
-
var
|
|
86
|
-
return
|
|
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
|
|
89
|
-
|
|
280
|
+
function p(i, f) {
|
|
281
|
+
r(f), A(!1);
|
|
90
282
|
}
|
|
91
|
-
return /* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
|
|
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:
|
|
287
|
+
ref: g,
|
|
96
288
|
variant: "outline",
|
|
97
289
|
role: "combobox",
|
|
98
|
-
"aria-expanded":
|
|
99
|
-
className:
|
|
290
|
+
"aria-expanded": v,
|
|
291
|
+
className: B("flex h-9 w-full justify-between", D),
|
|
100
292
|
children: [
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
|
|
103
|
-
/* @__PURE__ */
|
|
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__ */
|
|
297
|
+
/* @__PURE__ */ n(le, { className: "size-4 opacity-50" })
|
|
106
298
|
]
|
|
107
299
|
}
|
|
108
300
|
) }),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
|
|
301
|
+
/* @__PURE__ */ n(
|
|
302
|
+
re,
|
|
111
303
|
{
|
|
112
304
|
className: "w-full p-0",
|
|
113
|
-
style: { minWidth:
|
|
114
|
-
children: /* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
-
|
|
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:
|
|
312
|
+
className: B(
|
|
121
313
|
"size-3.5 opacity-50",
|
|
122
|
-
|
|
314
|
+
s && "animate-spin"
|
|
123
315
|
)
|
|
124
316
|
}
|
|
125
317
|
) })
|
|
126
318
|
] }),
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
/* @__PURE__ */
|
|
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__ */
|
|
134
|
-
|
|
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:
|
|
138
|
-
onSelect: (
|
|
139
|
-
children: /* @__PURE__ */
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
|
|
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:
|
|
335
|
+
className: B(
|
|
144
336
|
"size-4",
|
|
145
|
-
|
|
337
|
+
t === i.id ? "opacity-100" : "opacity-0"
|
|
146
338
|
)
|
|
147
339
|
}
|
|
148
340
|
),
|
|
149
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ n("div", { title: i.name, children: i.name })
|
|
150
342
|
] })
|
|
151
343
|
},
|
|
152
|
-
|
|
344
|
+
i.id
|
|
153
345
|
)) })
|
|
154
346
|
] })
|
|
155
347
|
] })
|
|
@@ -157,156 +349,156 @@ function Ea({
|
|
|
157
349
|
)
|
|
158
350
|
] });
|
|
159
351
|
}
|
|
160
|
-
function
|
|
161
|
-
|
|
162
|
-
...
|
|
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,
|
|
357
|
+
}), [e, a]);
|
|
166
358
|
}
|
|
167
359
|
export {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
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
|
};
|