react-semaphor 0.1.543 → 0.1.544
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/activity/index.js +73 -0
- package/dist/assistant-context/index.js +1 -1
- package/dist/briefings/index.js +51 -50
- package/dist/chunks/{apply-dashboard-operations-CG9S7MGt.js → apply-dashboard-operations-Bz4n1Lq6.js} +44 -44
- package/dist/chunks/{assistant-chat-BFMRUYoB.js → assistant-chat-BNLkCDml.js} +288 -288
- package/dist/chunks/{comparison-window-caption-Bv18samq.js → comparison-window-caption-BTkrN3W4.js} +467 -462
- package/dist/chunks/dashboard-briefing-launcher-DQ_8O_e2.js +3725 -0
- package/dist/chunks/{dashboard-controls-UGpjOM2k.js → dashboard-controls-8RyBTQUO.js} +530 -525
- package/dist/chunks/dashboard-g5a4DKWq.js +14 -0
- package/dist/chunks/{dashboard-json-DG8dz0eX.js → dashboard-json-7qT9jmfL.js} +1 -1
- package/dist/chunks/{document-dashboard-inputs-OwqCbrVp.js → document-dashboard-inputs-BC6p-ESg.js} +4 -4
- package/dist/chunks/{document-sheet-utils-BTb3VZxV.js → document-sheet-utils-Duo9uLoH.js} +11 -11
- package/dist/chunks/{edit-dashboard-visual-CDpA4y5e.js → edit-dashboard-visual-BfJwnRIZ.js} +249 -248
- package/dist/chunks/export-file-format-C-tJsxsf.js +111 -0
- package/dist/chunks/{index-l5LclZvs.js → index-DkAyQvC6.js} +59 -58
- package/dist/chunks/{matrix-formatter-BnsTX90d.js → matrix-formatter-CxJLkztA.js} +1 -1
- package/dist/chunks/{numeric-presentation-F_-H6VAw.js → numeric-presentation-DESvLiu9.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-DupbRk-R.js → pivot-result-lifecycle-DM4CyGKs.js} +285 -393
- package/dist/chunks/{raw-temporal-presentation-D-azM_98.js → raw-temporal-presentation-CLiVi90c.js} +2 -2
- package/dist/chunks/{report-preferences-dialog-CPwRwEJx.js → report-preferences-dialog-Df7VpRVW.js} +195 -195
- package/dist/chunks/{saved-dashboard-context-BKvMfRfC.js → saved-dashboard-context-B-mQ--nV.js} +3 -3
- package/dist/chunks/{semaphor-ready-indicator-CN2AHm2x.js → semaphor-ready-indicator-DDAxk8us.js} +39892 -39380
- package/dist/chunks/{shelf-drop-preview-context-BGl_rxcW.js → shelf-drop-preview-context-BSRPwaED.js} +414 -371
- package/dist/chunks/{table-export-sheet-BDRXLLdq.js → table-export-sheet-CPfGAQ9X.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BnclfB2k.js → use-create-flow-overlay-state-BxzFviM-.js} +67 -78
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +72 -72
- package/dist/data-app-sdk/index.js +1 -1
- package/dist/format-utils/index.js +226 -223
- package/dist/index.js +266 -271
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/activity.d.ts +2 -0
- package/dist/types/components/activity/activity-bell.d.ts +11 -0
- package/dist/types/components/activity/activity-instance.d.ts +50 -0
- package/dist/types/components/activity/activity-notices.d.ts +7 -0
- package/dist/types/components/activity/activity-provider.d.ts +21 -0
- package/dist/types/components/activity/activity-types.d.ts +177 -0
- package/dist/types/components/activity/index.d.ts +6 -0
- package/dist/types/components/activity/use-activity.d.ts +20 -0
- package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
- package/dist/types/components/briefings/briefing-author.d.ts +14 -12
- package/dist/types/components/briefings/dashboard-briefing-launcher.d.ts +5 -0
- package/dist/types/components/briefings/use-briefing-run-detail.d.ts +34 -0
- package/dist/types/components/index.d.ts +1 -4
- package/dist/types/lib/activity-identity.d.ts +21 -0
- package/dist/types/lib/api/exports-api.d.ts +4 -4
- package/dist/types/lib/hooks/index.d.ts +1 -3
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -0
- package/dist/types/shared/activity/activity-contract.d.ts +84 -0
- package/dist/types/shared/activity/index.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +6 -0
- package/dist/types/shared/format-utils/export-policy.d.ts +12 -0
- package/package.json +5 -1
- package/dist/chunks/dashboard-B9mKTJoy.js +0 -14
- package/dist/chunks/dashboard-briefing-launcher-Bdmry_oG.js +0 -4248
- package/dist/types/components/briefings/briefing-author/run-ui.d.ts +0 -81
- package/dist/types/components/briefings/use-briefing-run-polling.d.ts +0 -34
- package/dist/types/components/notifications/export-notification-item.d.ts +0 -24
- package/dist/types/components/notifications/export-notification-list.d.ts +0 -8
- package/dist/types/components/notifications/index.d.ts +0 -3
- package/dist/types/components/notifications/notification-bell.d.ts +0 -13
- package/dist/types/lib/exports/bounded-request.d.ts +0 -12
- package/dist/types/lib/hooks/use-export-polling.d.ts +0 -32
- package/dist/types/lib/hooks/use-export-recovery.d.ts +0 -11
- package/dist/types/lib/stores/export-store.d.ts +0 -62
package/dist/index.js
CHANGED
|
@@ -1,143 +1,143 @@
|
|
|
1
|
-
import { D as
|
|
2
|
-
import { C as
|
|
3
|
-
import { C as
|
|
4
|
-
import { g as
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { E as
|
|
7
|
-
import {
|
|
8
|
-
import * as
|
|
9
|
-
import
|
|
10
|
-
import { D as
|
|
11
|
-
import { C as
|
|
12
|
-
import {
|
|
13
|
-
import { u as
|
|
14
|
-
import { createRoot as
|
|
15
|
-
import "./chunks/shelf-drop-preview-context-
|
|
1
|
+
import { D as k } from "./chunks/dashboard-g5a4DKWq.js";
|
|
2
|
+
import { C as na, E as ia } from "./chunks/table-settings-CLZocegs.js";
|
|
3
|
+
import { C as I, b as M, c as O, d as U, e as V, f as z } from "./chunks/report-preferences-dialog-Df7VpRVW.js";
|
|
4
|
+
import { g as ca, A as ua, h as da, a as pa, R as fa, D as ma } from "./chunks/report-preferences-dialog-Df7VpRVW.js";
|
|
5
|
+
import { jsx as s, jsxs as C } from "react/jsx-runtime";
|
|
6
|
+
import { E as _, F as q, S as $, a as H, U as W, c as Q, A as K, C as G, u as F, V as Y, d as J, e as X, s as Z, R as ee } from "./chunks/semaphor-ready-indicator-DDAxk8us.js";
|
|
7
|
+
import { K as ga, ap as Ca, aq as ya, ar as ba, B as va, _ as Da, z as Ea, x as Aa, w as Sa, az as Ta, M as wa, h as xa, k as Ba, k as Pa, l as _a, y as Fa, ak as Na, am as Ra, an as ja, al as La, ab as ka, ae as Ia, ay as Ma, a2 as Oa, aj as Ua, X as Va, at as za, au as qa, a6 as $a, af as Ha, v as Wa, t as Qa, q as Ka, r as Ga, aC as Ya, a1 as Ja, ag as Xa, ah as Za, aa as et, ad as at, ax as tt, aw as rt, av as st, aB as ot, aA as nt, ac as it, a0 as lt, $ as ct, O as ut, a4 as dt, ai as pt, a8 as ft, a5 as mt, a7 as ht, a9 as gt, a3 as Ct, L as yt, J as bt, p as vt, as as Dt, o as Et, H as At, P as St, T as Tt, Q as wt, W as xt, n as Bt, g as Pt, G as _t, I as Ft, i as Nt, Z as Rt, N as jt, Y as Lt, f as kt, m as It, j as Mt, ao as Ot } from "./chunks/semaphor-ready-indicator-DDAxk8us.js";
|
|
8
|
+
import * as T from "react";
|
|
9
|
+
import N, { useMemo as ae, useEffect as R } from "react";
|
|
10
|
+
import { D as Vt } from "./chunks/token-types-DBbZVQsm.js";
|
|
11
|
+
import { C as qt, D as $t, L as Ht, P as Wt, e as Qt, g as Kt, j as Gt, h as Yt, k as Jt, d as Xt, b as Zt, i as er, c as ar, n as tr, f as rr } from "./chunks/validators-DMHTpf7a.js";
|
|
12
|
+
import { b as or, A as nr, f as ir, D as lr, d as cr, e as ur, c as dr, U as pr, a as fr, V as mr, W as hr, i as gr, u as Cr } from "./chunks/dashboard-briefing-launcher-DQ_8O_e2.js";
|
|
13
|
+
import { u as br } from "./chunks/use-debounced-dirty-check-BwAbnX_5.js";
|
|
14
|
+
import { createRoot as te } from "react-dom/client";
|
|
15
|
+
import "./chunks/shelf-drop-preview-context-BSRPwaED.js";
|
|
16
16
|
import "./chunks/index-CuHybtft.js";
|
|
17
17
|
import "./chunks/matrix-operation-contract-8OIO4gob.js";
|
|
18
18
|
import "./chunks/analytics-base-schemas-BFAoRlkU.js";
|
|
19
19
|
import "zod";
|
|
20
|
-
import { D as
|
|
20
|
+
import { D as Dr } from "./chunks/report-runtime-context-Dq8XyODK.js";
|
|
21
21
|
import { c as B } from "./chunks/class-utils-Df1OVOT1.js";
|
|
22
|
-
import { P as
|
|
23
|
-
import "./chunks/numeric-presentation-
|
|
24
|
-
import "./chunks/pivot-result-lifecycle-
|
|
22
|
+
import { P as re, a as se, B as oe, b as ne, c as ie } from "./chunks/switch-C3jLxlG0.js";
|
|
23
|
+
import "./chunks/numeric-presentation-DESvLiu9.js";
|
|
24
|
+
import "./chunks/pivot-result-lifecycle-DM4CyGKs.js";
|
|
25
25
|
import "./value-format-preferences/index.js";
|
|
26
|
-
import { r as
|
|
27
|
-
import { a as
|
|
26
|
+
import { r as Ar, a as Sr } from "./chunks/pivot-result-identity-DJhXXcns.js";
|
|
27
|
+
import { a as le } from "./chunks/document-sheet-utils-Duo9uLoH.js";
|
|
28
28
|
import "react-dom";
|
|
29
|
-
import "./chunks/index-
|
|
29
|
+
import "./chunks/index-DkAyQvC6.js";
|
|
30
30
|
import "./chunks/appearance-context-DEYtWinQ.js";
|
|
31
31
|
import "./chunks/color-CJvdlFM_.js";
|
|
32
32
|
import "./chunks/index-CLIro-EG.js";
|
|
33
|
-
import { v as
|
|
33
|
+
import { v as wr, n as xr, x as Br, w as Pr, A as _r, B as Fr, u as Nr, t as Rr, y as jr, s as Lr, q as kr, o as Ir, C as Mr, z as Or } from "./chunks/document-dashboard-inputs-BC6p-ESg.js";
|
|
34
34
|
import "./chunks/bookmark-state-CXw7lZ50.js";
|
|
35
|
-
import { I as
|
|
36
|
-
import { n as
|
|
37
|
-
import { C as
|
|
35
|
+
import { I as ce } from "./chunks/use-create-flow-overlay-state-BxzFviM-.js";
|
|
36
|
+
import { n as Vr, s as zr } from "./chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
|
|
37
|
+
import { C as ue } from "./chunks/x-4f5U2XwU.js";
|
|
38
38
|
import "./chunks/appearance-runtime-provider-B-M8gwlZ.js";
|
|
39
|
-
function
|
|
40
|
-
const { displayPreferences: a, cardId: t, ...
|
|
41
|
-
...
|
|
39
|
+
function Ze(e) {
|
|
40
|
+
const { displayPreferences: a, cardId: t, ...r } = e, o = {
|
|
41
|
+
...r,
|
|
42
42
|
id: e.dashboardId
|
|
43
43
|
// override the id to the dashboard id so that the dashboard is not loaded
|
|
44
44
|
};
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ s(_, { FallbackComponent: q, children: /* @__PURE__ */ C($, { dashboardProps: o, children: [
|
|
46
|
+
/* @__PURE__ */ s(H, { componentType: "visual", componentId: e.cardId }),
|
|
47
|
+
/* @__PURE__ */ s(W, { appearance: e.appearance, children: /* @__PURE__ */ s(Q, { displayPreferences: a, children: /* @__PURE__ */ s(K, { children: /* @__PURE__ */ s(G, { type: "visual", cardId: t, ...o, children: /* @__PURE__ */ s(de, { cardId: t }) }) }) }) })
|
|
48
48
|
] }) });
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
const a =
|
|
50
|
+
function de({ cardId: e }) {
|
|
51
|
+
const a = F((o) => {
|
|
52
52
|
var h;
|
|
53
|
-
return (h =
|
|
54
|
-
}), { card: t, frame:
|
|
55
|
-
const
|
|
56
|
-
(
|
|
53
|
+
return (h = o.dashboard) == null ? void 0 : h.sheets;
|
|
54
|
+
}), { card: t, frame: r } = ae(() => {
|
|
55
|
+
const o = a == null ? void 0 : a.flatMap((n) => n.frames), h = o == null ? void 0 : o.flatMap((n) => n == null ? void 0 : n.cards), y = h == null ? void 0 : h.find((n) => (n == null ? void 0 : n.id) === e), D = o == null ? void 0 : o.find(
|
|
56
|
+
(n) => {
|
|
57
57
|
var b;
|
|
58
|
-
return (b =
|
|
58
|
+
return (b = n == null ? void 0 : n.cards) == null ? void 0 : b.find((g) => (g == null ? void 0 : g.id) === e);
|
|
59
59
|
}
|
|
60
60
|
);
|
|
61
61
|
return { card: y, frame: D };
|
|
62
62
|
}, [a, e]);
|
|
63
|
-
return !t || !
|
|
64
|
-
|
|
63
|
+
return !t || !r ? /* @__PURE__ */ s(
|
|
64
|
+
Y,
|
|
65
65
|
{
|
|
66
66
|
description: `Couldn’t find a visual with ID ${e} on this dashboard.`,
|
|
67
67
|
role: "status"
|
|
68
68
|
}
|
|
69
|
-
) : /* @__PURE__ */
|
|
69
|
+
) : /* @__PURE__ */ s("main", { className: "flex h-full grow flex-col", children: /* @__PURE__ */ s(_, { FallbackComponent: J, children: /* @__PURE__ */ s(X, { card: t, frame: r }) }) });
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
const
|
|
71
|
+
var pe = Object.defineProperty, fe = (e, a, t) => a in e ? pe(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t, w = (e, a, t) => fe(e, typeof a != "symbol" ? a + "" : a, t);
|
|
72
|
+
const me = {
|
|
73
73
|
stringify: (e) => e ? "true" : "false",
|
|
74
74
|
parse: (e) => /^[ty1-9]/i.test(e)
|
|
75
|
-
},
|
|
75
|
+
}, he = {
|
|
76
76
|
stringify: (e) => e.name,
|
|
77
77
|
parse: (e, a, t) => {
|
|
78
|
-
const
|
|
78
|
+
const r = (() => {
|
|
79
79
|
if (typeof window < "u" && e in window)
|
|
80
80
|
return window[e];
|
|
81
81
|
if (typeof global < "u" && e in global)
|
|
82
82
|
return global[e];
|
|
83
83
|
})();
|
|
84
|
-
return typeof
|
|
84
|
+
return typeof r == "function" ? r.bind(t) : void 0;
|
|
85
85
|
}
|
|
86
|
-
},
|
|
86
|
+
}, ge = {
|
|
87
87
|
stringify: (e) => JSON.stringify(e),
|
|
88
88
|
parse: (e) => JSON.parse(e)
|
|
89
89
|
};
|
|
90
|
-
function
|
|
90
|
+
function Ce(e) {
|
|
91
91
|
return e.replace(
|
|
92
92
|
/([a-z0-9])([A-Z])/g,
|
|
93
|
-
(a, t,
|
|
93
|
+
(a, t, r) => `${t}-${r.toLowerCase()}`
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
96
|
function j(e) {
|
|
97
97
|
return e.replace(/[-:]([a-z])/g, (a, t) => `${t.toUpperCase()}`);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const ye = {
|
|
100
100
|
stringify: (e) => e.name,
|
|
101
101
|
parse: (e, a, t) => {
|
|
102
|
-
const
|
|
103
|
-
const
|
|
104
|
-
if (typeof t < "u" &&
|
|
105
|
-
return t.container[
|
|
102
|
+
const r = (() => {
|
|
103
|
+
const o = j(a);
|
|
104
|
+
if (typeof t < "u" && o in t.container)
|
|
105
|
+
return t.container[o];
|
|
106
106
|
})();
|
|
107
|
-
return typeof
|
|
107
|
+
return typeof r == "function" ? r.bind(t) : void 0;
|
|
108
108
|
}
|
|
109
|
-
},
|
|
109
|
+
}, be = {
|
|
110
110
|
stringify: (e) => `${e}`,
|
|
111
111
|
parse: (e) => parseFloat(e)
|
|
112
|
-
},
|
|
112
|
+
}, ve = {
|
|
113
113
|
stringify: (e) => e,
|
|
114
114
|
parse: (e) => e
|
|
115
115
|
}, P = {
|
|
116
|
-
string:
|
|
117
|
-
number:
|
|
118
|
-
boolean:
|
|
119
|
-
function:
|
|
120
|
-
method:
|
|
121
|
-
json:
|
|
122
|
-
},
|
|
123
|
-
function
|
|
124
|
-
var
|
|
116
|
+
string: ve,
|
|
117
|
+
number: be,
|
|
118
|
+
boolean: me,
|
|
119
|
+
function: he,
|
|
120
|
+
method: ye,
|
|
121
|
+
json: ge
|
|
122
|
+
}, S = Symbol.for("r2wc.render"), x = Symbol.for("r2wc.connected"), v = Symbol.for("r2wc.context"), m = Symbol.for("r2wc.props");
|
|
123
|
+
function De(e, a, t) {
|
|
124
|
+
var r, o, h;
|
|
125
125
|
a.props || (a.props = e.propTypes ? Object.keys(e.propTypes) : []), a.events || (a.events = []);
|
|
126
|
-
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),
|
|
126
|
+
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), n = {}, b = {}, g = {}, E = {};
|
|
127
127
|
for (const c of y) {
|
|
128
|
-
|
|
129
|
-
const l =
|
|
130
|
-
g[c] = l,
|
|
128
|
+
n[c] = Array.isArray(a.props) ? "string" : a.props[c];
|
|
129
|
+
const l = Ce(c);
|
|
130
|
+
g[c] = l, E[l] = c;
|
|
131
131
|
}
|
|
132
132
|
for (const c of D)
|
|
133
133
|
b[c] = Array.isArray(a.events) ? {} : a.events[c];
|
|
134
134
|
class A extends HTMLElement {
|
|
135
135
|
constructor() {
|
|
136
|
-
super(),
|
|
136
|
+
super(), w(this, h, !0), w(this, o), w(this, r, {}), w(this, "container"), a.shadow ? this.container = this.attachShadow({
|
|
137
137
|
mode: a.shadow
|
|
138
138
|
}) : this.container = this, this[m].container = this.container;
|
|
139
139
|
for (const l of y) {
|
|
140
|
-
const u = g[l], d = this.getAttribute(u), p =
|
|
140
|
+
const u = g[l], d = this.getAttribute(u), p = n[l], i = p ? P[p] : null;
|
|
141
141
|
if (p === "method") {
|
|
142
142
|
const f = j(u);
|
|
143
143
|
Object.defineProperty(this[m].container, f, {
|
|
@@ -147,7 +147,7 @@ function Ee(e, a, t) {
|
|
|
147
147
|
return this[m][f];
|
|
148
148
|
},
|
|
149
149
|
set(L) {
|
|
150
|
-
this[m][f] = L, this[
|
|
150
|
+
this[m][f] = L, this[S]();
|
|
151
151
|
}
|
|
152
152
|
}), this[m][l] = i.parse(d, u, this);
|
|
153
153
|
}
|
|
@@ -162,20 +162,20 @@ function Ee(e, a, t) {
|
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
static get observedAttributes() {
|
|
165
|
-
return Object.keys(
|
|
165
|
+
return Object.keys(E);
|
|
166
166
|
}
|
|
167
167
|
connectedCallback() {
|
|
168
|
-
this[
|
|
168
|
+
this[x] = !0, this[S]();
|
|
169
169
|
}
|
|
170
170
|
disconnectedCallback() {
|
|
171
|
-
this[
|
|
171
|
+
this[x] = !1, this[v] && t.unmount(this[v]), delete this[v];
|
|
172
172
|
}
|
|
173
173
|
attributeChangedCallback(l, u, d) {
|
|
174
|
-
const p =
|
|
175
|
-
p in
|
|
174
|
+
const p = E[l], i = n[p], f = i ? P[i] : null;
|
|
175
|
+
p in n && f != null && f.parse && d && (this[m][p] = f.parse(d, l, this), this[S]());
|
|
176
176
|
}
|
|
177
|
-
[(h =
|
|
178
|
-
this[
|
|
177
|
+
[(h = x, o = v, r = m, S)]() {
|
|
178
|
+
this[x] && (this[v] ? t.update(this[v], this[m]) : this[v] = t.mount(
|
|
179
179
|
this.container,
|
|
180
180
|
e,
|
|
181
181
|
this[m]
|
|
@@ -183,7 +183,7 @@ function Ee(e, a, t) {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
for (const c of y) {
|
|
186
|
-
const l = g[c], u =
|
|
186
|
+
const l = g[c], u = n[c];
|
|
187
187
|
Object.defineProperty(A.prototype, c, {
|
|
188
188
|
enumerable: !0,
|
|
189
189
|
configurable: !0,
|
|
@@ -197,30 +197,30 @@ function Ee(e, a, t) {
|
|
|
197
197
|
const i = p.stringify(d, l, this);
|
|
198
198
|
this.getAttribute(l) !== i && this.setAttribute(l, i);
|
|
199
199
|
} else
|
|
200
|
-
this[
|
|
200
|
+
this[S]();
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
return A;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
const
|
|
208
|
-
return
|
|
209
|
-
root:
|
|
206
|
+
function Ee(e, a, t) {
|
|
207
|
+
const r = te(e), o = N.createElement(a, t);
|
|
208
|
+
return r.render(o), {
|
|
209
|
+
root: r,
|
|
210
210
|
ReactComponent: a
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
const
|
|
215
|
-
e.render(
|
|
213
|
+
function Ae({ root: e, ReactComponent: a }, t) {
|
|
214
|
+
const r = N.createElement(a, t);
|
|
215
|
+
e.render(r);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Se({ root: e }) {
|
|
218
218
|
e.unmount();
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
return
|
|
220
|
+
function Te(e, a = {}) {
|
|
221
|
+
return De(e, a, { mount: Ee, update: Ae, unmount: Se });
|
|
222
222
|
}
|
|
223
|
-
const
|
|
223
|
+
const we = {
|
|
224
224
|
id: "string",
|
|
225
225
|
// deprecated
|
|
226
226
|
version: "string",
|
|
@@ -251,69 +251,69 @@ const Se = {
|
|
|
251
251
|
selectedSheetId: "string",
|
|
252
252
|
eventHandlers: "json",
|
|
253
253
|
preferences: "json"
|
|
254
|
-
},
|
|
255
|
-
props:
|
|
254
|
+
}, ea = Te(k, {
|
|
255
|
+
props: we
|
|
256
256
|
});
|
|
257
|
-
function
|
|
257
|
+
function aa(e, a, t, r) {
|
|
258
258
|
R(() => {
|
|
259
|
-
e && !t && a &&
|
|
260
|
-
}, [e, t, a,
|
|
259
|
+
e && !t && a && r(le(Z(F.getState()).dashboard));
|
|
260
|
+
}, [e, t, a, r]);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function ta({
|
|
263
263
|
name: e,
|
|
264
264
|
items: a,
|
|
265
265
|
value: t,
|
|
266
|
-
onChange:
|
|
267
|
-
isLoading:
|
|
266
|
+
onChange: r,
|
|
267
|
+
isLoading: o,
|
|
268
268
|
isError: h,
|
|
269
269
|
refetch: y,
|
|
270
270
|
className: D,
|
|
271
|
-
icon:
|
|
271
|
+
icon: n,
|
|
272
272
|
showNone: b = !1
|
|
273
273
|
}) {
|
|
274
|
-
const g =
|
|
275
|
-
|
|
274
|
+
const g = T.useRef(null), [E, A] = T.useState(!1), [c, l] = T.useState("100%"), u = b ? [...a || [], { id: "none", name: "None" }] : a;
|
|
275
|
+
T.useLayoutEffect(() => {
|
|
276
276
|
g.current && l(g.current.offsetWidth);
|
|
277
277
|
}, []);
|
|
278
278
|
function d() {
|
|
279
279
|
var i;
|
|
280
|
-
return
|
|
280
|
+
return o ? "Loading..." : h ? "Error" : t ? (i = a == null ? void 0 : a.find((f) => f.id === t)) == null ? void 0 : i.name : `Select ${e}`;
|
|
281
281
|
}
|
|
282
282
|
function p(i, f) {
|
|
283
|
-
|
|
283
|
+
r(f), A(!1);
|
|
284
284
|
}
|
|
285
|
-
return /* @__PURE__ */ C(
|
|
286
|
-
/* @__PURE__ */
|
|
287
|
-
|
|
285
|
+
return /* @__PURE__ */ C(re, { open: E, onOpenChange: A, children: [
|
|
286
|
+
/* @__PURE__ */ s(se, { asChild: !0, children: /* @__PURE__ */ C(
|
|
287
|
+
oe,
|
|
288
288
|
{
|
|
289
289
|
ref: g,
|
|
290
290
|
variant: "outline",
|
|
291
291
|
role: "combobox",
|
|
292
|
-
"aria-expanded":
|
|
292
|
+
"aria-expanded": E,
|
|
293
293
|
className: B("flex h-9 w-full justify-between", D),
|
|
294
294
|
children: [
|
|
295
295
|
/* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
|
|
296
|
-
|
|
297
|
-
/* @__PURE__ */
|
|
296
|
+
n && /* @__PURE__ */ s("div", { className: "mr-2", children: n }),
|
|
297
|
+
/* @__PURE__ */ s("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children: d() })
|
|
298
298
|
] }),
|
|
299
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ s(ue, { className: "size-4 opacity-50" })
|
|
300
300
|
]
|
|
301
301
|
}
|
|
302
302
|
) }),
|
|
303
|
-
/* @__PURE__ */
|
|
304
|
-
|
|
303
|
+
/* @__PURE__ */ s(
|
|
304
|
+
ne,
|
|
305
305
|
{
|
|
306
306
|
className: "w-full p-0",
|
|
307
307
|
style: { minWidth: c },
|
|
308
|
-
children: /* @__PURE__ */ C(
|
|
308
|
+
children: /* @__PURE__ */ C(I, { children: [
|
|
309
309
|
/* @__PURE__ */ C("div", { className: "flex h-9 items-center justify-between border-b pr-1", children: [
|
|
310
|
-
/* @__PURE__ */
|
|
311
|
-
/* @__PURE__ */
|
|
312
|
-
|
|
310
|
+
/* @__PURE__ */ s(M, { className: "h-9", placeholder: "Search..." }),
|
|
311
|
+
/* @__PURE__ */ s(ce, { className: "h-7", onClick: y, children: /* @__PURE__ */ s(
|
|
312
|
+
ee,
|
|
313
313
|
{
|
|
314
314
|
className: B(
|
|
315
315
|
"size-3.5 opacity-50",
|
|
316
|
-
|
|
316
|
+
o && "animate-spin"
|
|
317
317
|
)
|
|
318
318
|
}
|
|
319
319
|
) })
|
|
@@ -324,15 +324,15 @@ function aa({
|
|
|
324
324
|
e == null ? void 0 : e.toLowerCase(),
|
|
325
325
|
" found."
|
|
326
326
|
] }),
|
|
327
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ s(V, { children: u == null ? void 0 : u.map((i) => /* @__PURE__ */ s(
|
|
328
328
|
z,
|
|
329
329
|
{
|
|
330
330
|
className: "overflow-x-auto",
|
|
331
331
|
value: i.name,
|
|
332
332
|
onSelect: (f) => p(f, i.id),
|
|
333
333
|
children: /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
|
|
334
|
-
/* @__PURE__ */
|
|
335
|
-
|
|
334
|
+
/* @__PURE__ */ s(
|
|
335
|
+
ie,
|
|
336
336
|
{
|
|
337
337
|
className: B(
|
|
338
338
|
"size-4",
|
|
@@ -340,7 +340,7 @@ function aa({
|
|
|
340
340
|
)
|
|
341
341
|
}
|
|
342
342
|
),
|
|
343
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ s("div", { title: i.name, children: i.name })
|
|
344
344
|
] })
|
|
345
345
|
},
|
|
346
346
|
i.id
|
|
@@ -351,7 +351,7 @@ function aa({
|
|
|
351
351
|
)
|
|
352
352
|
] });
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function ra(e, a) {
|
|
355
355
|
R(() => (e && a && (window.__SEMAPHOR_PRINT_STATE__ = {
|
|
356
356
|
...a
|
|
357
357
|
}), () => {
|
|
@@ -359,155 +359,150 @@ function ta(e, a) {
|
|
|
359
359
|
}), [e, a]);
|
|
360
360
|
}
|
|
361
361
|
export {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
362
|
+
or as ActivityBell,
|
|
363
|
+
ga as ActivityProvider,
|
|
364
|
+
K as ActivityScope,
|
|
365
|
+
nr as AdvancedModeToggle,
|
|
366
|
+
ca as AssistantPanel,
|
|
367
|
+
ua as AssistantProvider,
|
|
368
|
+
da as AssistantToolbarButton,
|
|
369
|
+
Ca as BriefingAuthor,
|
|
370
|
+
ya as BriefingAuthorDialog,
|
|
371
|
+
ba as BriefingUiCapabilitiesBoundary,
|
|
372
|
+
va as BriefingUiCapabilitiesProvider,
|
|
373
|
+
Da as BriefingsApiError,
|
|
374
|
+
qt as CALCULATED_FIELD_ENTITY_MARKER,
|
|
375
|
+
na as CONTROL_CARD_DEFAULT_VALUE,
|
|
373
376
|
Ea as CardSummary,
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
Wt as
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
Qt as PivotMarkerEnum,
|
|
396
|
-
pa as ReportPreferencesDialog,
|
|
397
|
-
Sa as ResourceType,
|
|
377
|
+
ta as Combobox,
|
|
378
|
+
$t as DATE_FORMAT_VALUES,
|
|
379
|
+
Dr as DEFAULT_CALENDAR_CONTEXT,
|
|
380
|
+
Vt as DEFAULT_SEMANTIC_DOMAIN_ACCESS,
|
|
381
|
+
k as Dashboard,
|
|
382
|
+
ir as DashboardBriefingLauncher,
|
|
383
|
+
lr as DashboardControlsSettings,
|
|
384
|
+
Aa as DashboardCreateDialogBase,
|
|
385
|
+
Sa as DashboardExportDialog,
|
|
386
|
+
cr as DashboardFilterControlsButton,
|
|
387
|
+
ur as DashboardFilterControlsLauncher,
|
|
388
|
+
ea as DashboardWC,
|
|
389
|
+
pa as DisplayFormatPreferencesFields,
|
|
390
|
+
dr as DocumentControlsSettings,
|
|
391
|
+
ia as EMPTY_SELECTION,
|
|
392
|
+
Ta as ExportError,
|
|
393
|
+
Ht as LEGACY_CALCULATED_FIELD_ENTITY_MARKER,
|
|
394
|
+
wa as MatrixCardView,
|
|
395
|
+
Wt as PivotMarkerEnum,
|
|
396
|
+
fa as ReportPreferencesDialog,
|
|
397
|
+
xa as ResourceType,
|
|
398
398
|
$ as SemaphorContextProvider,
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
399
|
+
Ba as SemaphorDataProvider,
|
|
400
|
+
Pa as SemaphorQueryClient,
|
|
401
|
+
_a as ShareDialog,
|
|
402
|
+
Fa as SummaryCard,
|
|
403
|
+
ma as Surfboard,
|
|
404
|
+
pr as UnsavedChangesAlert,
|
|
405
|
+
Ze as Visual,
|
|
406
|
+
fr as VisualEditingControls,
|
|
407
|
+
mr as VisualsLibraryDialog,
|
|
408
|
+
hr as WatchDashboardButton,
|
|
409
409
|
Na as applyBriefingFormPatch,
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
410
|
+
Ra as briefingFormDraftToCreateRequest,
|
|
411
|
+
ja as briefingFormDraftToUpdateRequest,
|
|
412
|
+
La as briefingToFormDraft,
|
|
413
|
+
ka as cancelBriefingPreviewRun,
|
|
414
|
+
Ia as cancelBriefingRun,
|
|
415
|
+
Ma as cancelExport,
|
|
416
|
+
le as cloneDeep,
|
|
417
|
+
Oa as createBriefing,
|
|
418
|
+
Ua as createBriefingFormDraft,
|
|
419
|
+
Va as createEmptyKpiConfig,
|
|
420
|
+
za as createExport,
|
|
421
|
+
qa as createMatrixDirectExport,
|
|
422
|
+
wr as createSqlGenConfig,
|
|
423
|
+
$a as deleteBriefing,
|
|
424
|
+
Ha as deleteBriefingRun,
|
|
425
|
+
Wa as downloadDocumentPdf,
|
|
426
|
+
Qa as downloadPdf,
|
|
427
|
+
Ka as emitDashboardLoad,
|
|
428
|
+
Ga as emitDashboardUnload,
|
|
429
|
+
xr as fmt,
|
|
430
|
+
Ya as formatFileSize,
|
|
431
|
+
Ja as getBriefing,
|
|
432
|
+
Xa as getBriefingArtifact,
|
|
433
|
+
Za as getBriefingEvidence,
|
|
434
|
+
et as getBriefingPreviewRun,
|
|
435
|
+
at as getBriefingRun,
|
|
436
|
+
Qt as getCalculatedFieldComputeStage,
|
|
437
|
+
Br as getColumnDataType,
|
|
438
|
+
tt as getDownloadUrl,
|
|
439
|
+
rt as getExportStatus,
|
|
440
|
+
st as getExports,
|
|
441
|
+
Kt as getFieldRuntimeColumnName,
|
|
442
|
+
Pr as getFilterValueType,
|
|
443
|
+
_r as getFormattedTableNameForQuery,
|
|
444
|
+
Fr as getQualifiedTableName,
|
|
445
|
+
Nr as getSql,
|
|
446
|
+
Gt as hasCalculatedFieldMarker,
|
|
447
|
+
Yt as hasCalculatedFormulaInputs,
|
|
448
|
+
Jt as hasSyntheticCalculatedFieldOwner,
|
|
449
|
+
Xt as inspectCalculatedField,
|
|
450
|
+
gr as invalidateToken,
|
|
451
|
+
Rr as isBooleanDataType,
|
|
452
|
+
Zt as isCalculatedDimension,
|
|
453
|
+
er as isCalculatedMetric,
|
|
454
|
+
jr as isColumnInSqlGen,
|
|
455
|
+
Lr as isDateDataType,
|
|
456
|
+
ar as isDerivedField,
|
|
457
|
+
ot as isExportComplete,
|
|
458
|
+
nt as isExportInProgress,
|
|
459
|
+
kr as isNumberDataType,
|
|
460
|
+
Ir as isTextDataType,
|
|
461
|
+
it as listBriefingRuns,
|
|
462
|
+
lt as listBriefingTenantSummaries,
|
|
463
|
+
ct as listBriefings,
|
|
464
|
+
ut as mergeSemanticExecutionPayloadIntoTarget,
|
|
465
|
+
tr as normalizeCalculatedFieldRepresentation,
|
|
466
|
+
Vr as normalizeDashboardForDirtyCheck,
|
|
467
|
+
dt as pauseBriefing,
|
|
468
|
+
pt as polishBriefingText,
|
|
469
|
+
ft as previewBriefingPlan,
|
|
470
|
+
Mr as resolveDataType,
|
|
471
|
+
Or as resolveDatamodelName,
|
|
472
|
+
Ar as resolveQueryColumnKeyMapEntry,
|
|
473
|
+
Sr as resolveUniqueQueryColumnKeyMapEntry,
|
|
474
|
+
mt as resumeBriefing,
|
|
475
|
+
ht as runBriefingNow,
|
|
476
|
+
gt as runBriefingPreview,
|
|
477
|
+
Z as selectEditSessionStart,
|
|
478
|
+
zr as serializeDashboardForDirtyCheck,
|
|
479
|
+
rr as shouldDropInheritedCalculationAggregate,
|
|
480
|
+
Ct as updateBriefing,
|
|
481
|
+
yt as useActivity,
|
|
482
|
+
bt as useAddNewFrame,
|
|
483
|
+
vt as useAssistant,
|
|
484
|
+
Dt as useBriefingUiCapabilities,
|
|
485
485
|
Et as useCard,
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
486
|
+
At as useCardSummary,
|
|
487
|
+
St as useCurrentActiveCard,
|
|
488
|
+
Tt as useCurrentCardConfig,
|
|
489
|
+
wt as useCurrentSheetActiveCards,
|
|
490
|
+
xt as useDashboardActions,
|
|
491
|
+
Bt as useDashboardById,
|
|
492
|
+
Pt as useDashboardQuery,
|
|
493
|
+
F as useDashboardStore,
|
|
494
|
+
_t as useDashboardSummary,
|
|
495
|
+
Cr as useDashboardUnsavedChangesCheck,
|
|
496
|
+
Ft as useDataColumns,
|
|
497
497
|
Nt as useDateFilterHook,
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
Ds as useExportPolling,
|
|
504
|
-
vs as useExportRecovery,
|
|
505
|
-
Lt as useExportStore,
|
|
506
|
-
ta as useExposePrintState,
|
|
507
|
-
It as useInProgressExportsCount,
|
|
498
|
+
br as useDebouncedDirtyCheck,
|
|
499
|
+
Rt as useEditorActions,
|
|
500
|
+
jt as useEditorAside,
|
|
501
|
+
Lt as useEditorStore,
|
|
502
|
+
ra as useExposePrintState,
|
|
508
503
|
kt as useManagementStore,
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
504
|
+
aa as usePristineSnapshotInitializer,
|
|
505
|
+
It as useResourceManagement,
|
|
506
|
+
Mt as useTextFilterHook,
|
|
507
|
+
Ot as validateBriefingFormDraft
|
|
513
508
|
};
|