react-semaphor 0.1.466 → 0.1.468
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +152 -282
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{analyze-result-contract-CMZDRRwo.js → analyze-result-contract-kaCNxjA7.js} +1 -1
- package/dist/chunks/{common-types-Co766x6t.js → common-types-BgI-ymBp.js} +30 -23
- package/dist/chunks/common-types-tRK8fhXV.cjs +1 -0
- package/dist/chunks/{dashboard-briefing-launcher-DbLc4VV9.cjs → dashboard-briefing-launcher-Bo4GmnB7.cjs} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-C_Iy9yvg.js → dashboard-briefing-launcher-DjBmkS6v.js} +9 -9
- package/dist/chunks/{dashboard-controls-Rotbld-z.cjs → dashboard-controls-CstKugeB.cjs} +1 -1
- package/dist/chunks/{dashboard-controls-C25Pk_CY.js → dashboard-controls-CvrCyVPZ.js} +9 -9
- package/dist/chunks/{dashboard-filter-value-compatibility-B8ynE_O1.js → dashboard-filter-value-compatibility-o-kufPZB.js} +7 -7
- package/dist/chunks/{dashboard-input-contract-Px64VWBL.js → dashboard-input-contract-Ciboc347.js} +6 -6
- package/dist/chunks/{dashboard-json-DjMbADzW.js → dashboard-json-D9r_xere.js} +7 -7
- package/dist/chunks/{dashboard-json-LeJ0JD4L.cjs → dashboard-json-ZGqzmExU.cjs} +1 -1
- package/dist/chunks/{edit-dashboard-visual-ryv-jOUA.cjs → edit-dashboard-visual-BzVDWVyZ.cjs} +11 -11
- package/dist/chunks/{edit-dashboard-visual-BDNcPoBS.js → edit-dashboard-visual-D64tmqA4.js} +1720 -1720
- package/dist/chunks/{editor-action-buttons-lBwd5Stw.cjs → editor-action-buttons-BXJlZl7z.cjs} +1 -1
- package/dist/chunks/{editor-action-buttons-CFDC0po3.js → editor-action-buttons-C2msc_en.js} +6 -6
- package/dist/chunks/{index-Bs9OvwM2.js → index-B6cfDHwn.js} +28534 -28321
- package/dist/chunks/{index-BlCnNcaB.js → index-DO4BESNy.js} +9 -9
- package/dist/chunks/{index-UKhl24L_.cjs → index-DZdmd5AL.cjs} +223 -223
- package/dist/chunks/matrix-result-contract-C3cGHj_y.js +598 -0
- package/dist/chunks/matrix-result-contract-CkRVx693.cjs +1 -0
- package/dist/chunks/{pivot-header-presentation-CSf6CyOt.js → pivot-header-presentation-OpY8xzdT.js} +2 -2
- package/dist/chunks/{pivot-result-identity-BvT51Nog.js → pivot-result-identity-CCMpd8ZA.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle--NNNPUtG.js → pivot-result-lifecycle-B38AZx4a.js} +19 -19
- package/dist/chunks/{raw-temporal-contract-BqVMduCs.js → raw-temporal-contract-r_EMdR85.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-DzUi-b9O.cjs → report-preferences-dialog-B89ypIJ-.cjs} +1 -1
- package/dist/chunks/{report-preferences-dialog-JCUuGAtd.js → report-preferences-dialog-Dvy818KV.js} +6 -6
- package/dist/chunks/{report-runtime-context-CrTzKt0C.js → report-runtime-context-CcXUjpb-.js} +7 -7
- package/dist/chunks/{saved-temporal-bucket-format-DfqnCGCz.js → saved-temporal-bucket-format-hylaofsQ.js} +29 -29
- package/dist/chunks/{switch-B6rFVSdw.js → switch-8PklEEN1.js} +9 -9
- package/dist/chunks/{switch-BghC7eOM.cjs → switch-DykyqM66.cjs} +1 -1
- package/dist/chunks/{temporal-bucket-DFYIkexB.js → temporal-bucket-Cc9fmx8s.js} +12 -12
- package/dist/chunks/{temporal-bucket-authoring-ZxFzhTmL.js → temporal-bucket-authoring-DjPFtRSF.js} +3 -3
- package/dist/chunks/{temporal-bucket-contract-COPPwwbi.js → temporal-bucket-contract-DT4kU0VY.js} +1 -1
- package/dist/chunks/{token-types-p1M3SA2G.js → token-types-Z889rD6g.js} +1 -1
- package/dist/chunks/{update-policy-BKOA5S76.js → update-policy-Bu5Tw43R.js} +1 -1
- package/dist/chunks/{validators-CCpBY1e0.js → validators-DhTaCK1O.js} +50 -50
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +4 -4
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +2 -2
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.js +3 -3
- package/dist/data-app-sdk/index.js +3 -3
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +9 -9
- package/dist/format-utils/index.js +10 -10
- package/dist/index.cjs +1 -1
- package/dist/index.js +117 -115
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +3 -3
- package/dist/types/analytics-protocol.d.ts +18 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +18 -16
- package/dist/types/main.d.ts +9 -0
- package/dist/types/types.d.ts +9 -0
- package/package.json +1 -1
- package/dist/chunks/common-types-o3LJcrpg.cjs +0 -1
- package/dist/chunks/matrix-result-contract-DQ9_UadF.js +0 -421
- package/dist/chunks/matrix-result-contract-DiHDIyQk.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
2
|
var Y = (e, r, t) => r in e ? j(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
3
|
var T = (e, r, t) => Y(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
-
import {
|
|
4
|
+
import { g as L, an as O, am as R, al as U } from "./validators-DhTaCK1O.js";
|
|
5
5
|
import { canonicalizeSupportedLocale as I } from "../value-format-preferences/index.js";
|
|
6
6
|
const q = "higher_is_better", fe = {
|
|
7
7
|
displayMode: "difference",
|
|
@@ -26,7 +26,7 @@ function pe(e) {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function ge(e) {
|
|
30
30
|
if (e.alias) return e.alias;
|
|
31
31
|
const r = e.entityName && e.entityName !== "SEMAPHOR_CALCULATED_FIELD" ? e.entityName : void 0, t = r && r !== e.name ? `${r}_` : "";
|
|
32
32
|
if (e.role !== "metric") return `${t}${e.name}`;
|
|
@@ -117,7 +117,7 @@ function P(e, r = "comparison") {
|
|
|
117
117
|
warnings: []
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function be(e, r = "comparison") {
|
|
121
121
|
if (!d(e))
|
|
122
122
|
return {
|
|
123
123
|
ok: !1,
|
|
@@ -376,7 +376,7 @@ function we(e) {
|
|
|
376
376
|
sentiment: H(c, o)
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function b(e) {
|
|
380
380
|
if (e === null || typeof e != "object" || Array.isArray(e))
|
|
381
381
|
return !1;
|
|
382
382
|
const r = Object.getPrototypeOf(e);
|
|
@@ -489,7 +489,7 @@ function re(e, r) {
|
|
|
489
489
|
);
|
|
490
490
|
}
|
|
491
491
|
function te(e) {
|
|
492
|
-
if (!
|
|
492
|
+
if (!b(e))
|
|
493
493
|
return {
|
|
494
494
|
ok: !1,
|
|
495
495
|
issues: [{ path: "$", message: "Resolved temporal bucket format must be an object." }]
|
|
@@ -499,7 +499,7 @@ function te(e) {
|
|
|
499
499
|
t.has(s) || r.push({ path: s, message: `Unknown property "${s}".` });
|
|
500
500
|
e.type !== "temporal_bucket" && r.push({ path: "type", message: "Expected temporal_bucket." });
|
|
501
501
|
const o = e.presentation;
|
|
502
|
-
if (!
|
|
502
|
+
if (!b(o))
|
|
503
503
|
r.push({ path: "presentation", message: "Expected a presentation object." });
|
|
504
504
|
else {
|
|
505
505
|
const s = o.mode, l = s === "preset" ? /* @__PURE__ */ new Set(["mode", "preset"]) : s === "pattern" ? /* @__PURE__ */ new Set(["mode", "pattern"]) : s === "auto" ? /* @__PURE__ */ new Set(["mode", "styles"]) : /* @__PURE__ */ new Set(["mode"]);
|
|
@@ -522,7 +522,7 @@ function te(e) {
|
|
|
522
522
|
}
|
|
523
523
|
else if (s === "auto") {
|
|
524
524
|
const c = o.styles;
|
|
525
|
-
(!
|
|
525
|
+
(!b(c) || !["short", "medium", "long"].includes(String(c.dateStyle)) || !b(c.dateTime) || !["short", "medium", "long"].includes(
|
|
526
526
|
String(c.dateTime.dateStyle)
|
|
527
527
|
) || !["short", "medium", "long"].includes(
|
|
528
528
|
String(c.dateTime.timeStyle)
|
|
@@ -538,7 +538,7 @@ function te(e) {
|
|
|
538
538
|
r.push({ path: "presentation.mode", message: "Expected auto, preset, or pattern." });
|
|
539
539
|
}
|
|
540
540
|
const n = I(e.locale);
|
|
541
|
-
if (n || r.push({ path: "locale", message: "Expected a supported base BCP 47 locale." }), r.length > 0 || !n || !
|
|
541
|
+
if (n || r.push({ path: "locale", message: "Expected a supported base BCP 47 locale." }), r.length > 0 || !n || !b(o))
|
|
542
542
|
return { ok: !1, issues: r };
|
|
543
543
|
if (o.mode === "auto") {
|
|
544
544
|
const s = o.styles;
|
|
@@ -691,7 +691,7 @@ function ie(e, r, t) {
|
|
|
691
691
|
if (l >= 0 && c >= 0 && u) {
|
|
692
692
|
const f = Math.min(l, c), x = Math.max(l, c);
|
|
693
693
|
let C = !1;
|
|
694
|
-
return s.slice(f, x + 1).filter((
|
|
694
|
+
return s.slice(f, x + 1).filter((g) => g.type === "day" ? (C = !0, !1) : C && g.type === "literal" ? (C = !1, !1) : !0).map((g) => g.type === "year" ? u : g.value).join("");
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
return y(r, {
|
|
@@ -792,8 +792,8 @@ export {
|
|
|
792
792
|
fe as C,
|
|
793
793
|
q as D,
|
|
794
794
|
_ as T,
|
|
795
|
-
|
|
796
|
-
|
|
795
|
+
ge as a,
|
|
796
|
+
be as b,
|
|
797
797
|
V as c,
|
|
798
798
|
ye as d,
|
|
799
799
|
_e as e,
|
|
@@ -803,7 +803,7 @@ export {
|
|
|
803
803
|
J as i,
|
|
804
804
|
te as j,
|
|
805
805
|
Ce as k,
|
|
806
|
-
|
|
806
|
+
b as l,
|
|
807
807
|
re as p,
|
|
808
808
|
pe as r,
|
|
809
809
|
P as v
|
package/dist/chunks/{temporal-bucket-authoring-ZxFzhTmL.js → temporal-bucket-authoring-DjPFtRSF.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { al as O, am as N } from "./validators-
|
|
2
|
-
import "./analyze-result-contract-
|
|
3
|
-
import { f as R, C as j, h as x } from "./temporal-bucket-
|
|
1
|
+
import { al as O, am as N } from "./validators-DhTaCK1O.js";
|
|
2
|
+
import "./analyze-result-contract-kaCNxjA7.js";
|
|
3
|
+
import { f as R, C as j, h as x } from "./temporal-bucket-Cc9fmx8s.js";
|
|
4
4
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as B } from "../value-format-preferences/index.js";
|
|
5
5
|
const M = /* @__PURE__ */ new Set([
|
|
6
6
|
"previous_period",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as W, a as X, v as Z } from "./validators-
|
|
1
|
+
import { S as W, a as X, v as Z } from "./validators-DhTaCK1O.js";
|
|
2
2
|
import { toSemaphorInputOptionsIntent as ee, toSemaphorAnalysisQueryOptions as te, toSemaphorAnalysisIntent as re, toSemaphorMetricIntent as ne, toSemaphorRecordsIntent as ae, toSemaphorMatrixIntent as se, toSemaphorSqlIntent as ie } from "../data-app-sdk-adapters/index.js";
|
|
3
3
|
const Je = W, x = X, G = "semaphor-generated-data-app-contract/v1", T = "semaphor-generated-data-app-contract-manifest/v1";
|
|
4
4
|
function P(e) {
|
|
@@ -5023,42 +5023,42 @@ function Qn(e) {
|
|
|
5023
5023
|
return { ok: i.length === 0, errors: i, warnings: t };
|
|
5024
5024
|
}
|
|
5025
5025
|
export {
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5026
|
+
Pn as $,
|
|
5027
|
+
Qn as A,
|
|
5028
|
+
$e as B,
|
|
5029
|
+
ka as C,
|
|
5030
|
+
Ia as D,
|
|
5031
|
+
Se as E,
|
|
5032
|
+
Ta as F,
|
|
5033
|
+
pi as G,
|
|
5034
|
+
mi as H,
|
|
5035
|
+
De as I,
|
|
5036
|
+
gi as J,
|
|
5037
|
+
Vn as K,
|
|
5038
|
+
Ln as L,
|
|
5039
|
+
jt as M,
|
|
5040
|
+
re as N,
|
|
5041
|
+
Dt as O,
|
|
5042
|
+
ai as P,
|
|
5043
|
+
qt as Q,
|
|
5044
5044
|
Tn as R,
|
|
5045
5045
|
se as S,
|
|
5046
5046
|
jn as T,
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5047
|
+
Ot as U,
|
|
5048
|
+
D as V,
|
|
5049
|
+
T as W,
|
|
5050
|
+
ni as X,
|
|
5051
|
+
_e as Y,
|
|
5052
|
+
q as Z,
|
|
5053
|
+
On as _,
|
|
5054
5054
|
Nn as a,
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5055
|
+
de as a0,
|
|
5056
|
+
oi as a1,
|
|
5057
|
+
Gt as a2,
|
|
5058
|
+
zt as a3,
|
|
5059
|
+
Yt as a4,
|
|
5060
|
+
Qt as a5,
|
|
5061
|
+
fa as a6,
|
|
5062
5062
|
ga as a7,
|
|
5063
5063
|
ha as a8,
|
|
5064
5064
|
ri as a9,
|
|
@@ -5080,27 +5080,27 @@ export {
|
|
|
5080
5080
|
Un as ap,
|
|
5081
5081
|
Ei as b,
|
|
5082
5082
|
ye as c,
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5083
|
+
ji as d,
|
|
5084
|
+
Ci as e,
|
|
5085
|
+
Bn as f,
|
|
5086
|
+
Gn as g,
|
|
5087
|
+
Cn as h,
|
|
5088
5088
|
qn as i,
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5089
|
+
ne as j,
|
|
5090
|
+
P as k,
|
|
5091
|
+
Ri as l,
|
|
5092
|
+
ge as m,
|
|
5093
|
+
Mi as n,
|
|
5094
|
+
Ti as o,
|
|
5095
5095
|
Dn as p,
|
|
5096
|
-
|
|
5097
|
-
|
|
5096
|
+
En as q,
|
|
5097
|
+
ce as r,
|
|
5098
5098
|
Di as s,
|
|
5099
5099
|
le as t,
|
|
5100
|
-
|
|
5100
|
+
kn as u,
|
|
5101
5101
|
Ye as v,
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5102
|
+
zn as w,
|
|
5103
|
+
xi as x,
|
|
5104
|
+
xn as y,
|
|
5105
|
+
Yn as z
|
|
5106
5106
|
};
|
package/dist/dashboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../chunks/index-DZdmd5AL.cjs"),e=require("../chunks/common-types-tRK8fhXV.cjs");exports.Dashboard=o.Dashboard;exports.CONTROL_CARD_DEFAULT_VALUE=e.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=e.EMPTY_SELECTION;
|
package/dist/dashboard/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as o } from "../chunks/index-
|
|
2
|
-
import { C as s, E as C } from "../chunks/common-types-
|
|
1
|
+
import { D as o } from "../chunks/index-B6cfDHwn.js";
|
|
2
|
+
import { C as s, E as C } from "../chunks/common-types-BgI-ymBp.js";
|
|
3
3
|
export {
|
|
4
4
|
s as CONTROL_CARD_DEFAULT_VALUE,
|
|
5
5
|
o as Dashboard,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { D as R, a as Ie } from "../chunks/contracts-CoCOpd_i.js";
|
|
2
|
-
import { A as Mt, S as Nt, g as Bt, a as Rt, i as Pt, p as Ot, c as zt, b as qt, r as Vt, s as Lt, t as jt } from "../chunks/temporal-bucket-authoring-
|
|
3
|
-
import {
|
|
4
|
-
import "../chunks/analyze-result-contract-
|
|
2
|
+
import { A as Mt, S as Nt, g as Bt, a as Rt, i as Pt, p as Ot, c as zt, b as qt, r as Vt, s as Lt, t as jt } from "../chunks/temporal-bucket-authoring-DjPFtRSF.js";
|
|
3
|
+
import { j as ye, ah as H, ai as _e, x as ae, E as we, A as ve } from "../chunks/validators-DhTaCK1O.js";
|
|
4
|
+
import "../chunks/analyze-result-contract-kaCNxjA7.js";
|
|
5
5
|
import "../value-format-preferences/index.js";
|
|
6
6
|
import { n as Se } from "../chunks/operators-C8TxpM4C.js";
|
|
7
7
|
import { a as Ht, b as Wt, r as Kt } from "../chunks/canonical-result-keys-CEQefvdO.js";
|
|
8
|
-
import { D as Ut, b as Qt, l as Yt, d as Jt, e as Xt, m as Zt, f as er, a as tr, c as rr, i as nr, h as ar, o as ir, n as or, k as sr, r as dr, g as cr, j as lr } from "../chunks/dashboard-filter-value-compatibility-
|
|
8
|
+
import { D as Ut, b as Qt, l as Yt, d as Jt, e as Xt, m as Zt, f as er, a as tr, c as rr, i as nr, h as ar, o as ir, n as or, k as sr, r as dr, g as cr, j as lr } from "../chunks/dashboard-filter-value-compatibility-o-kufPZB.js";
|
|
9
9
|
function _(e) {
|
|
10
10
|
return e && typeof e == "object" ? e : null;
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("react"),An=require("react-dom/client"),k=require("../chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("react"),An=require("react-dom/client"),k=require("../chunks/index-DZdmd5AL.cjs"),w=require("../chunks/switch-DykyqM66.cjs"),Ze=require("../data-app-builder-browser-runtime/index.cjs"),te=require("../chunks/x-B6ghREd2.cjs"),Cn=require("../chunks/save-3dYRmehL.cjs"),Rn=require("../chunks/mouse-pointer-2-DX4A_XZw.cjs"),tt=require("../chunks/search-BqqhaMx9.cjs");function Tr(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const d=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(s,a,d.get?d:{enumerable:!0,get:()=>t[a]})}}return s.default=t,Object.freeze(s)}const Bn=Tr(p),Dn=Tr(An);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -2,8 +2,8 @@ import { jsx as r, jsxs as c, Fragment as re } from "react/jsx-runtime";
|
|
|
2
2
|
import * as Zn from "react";
|
|
3
3
|
import { useContext as qn, useState as x, useRef as oe, useMemo as je, useEffect as W, useCallback as Ot } from "react";
|
|
4
4
|
import * as Xn from "react-dom/client";
|
|
5
|
-
import { aM as ea, aN as ta, aO as Ir, aP as jr, aQ as zr, aR as ra, aS as Wr, aT as Hr, aU as Jr, aV as Vr, aW as _r, aX as Ur, aY as Gr, aZ as na, a_ as aa, a$ as oa, b0 as Ht, b1 as on, R as Kr, b2 as sa, b3 as Vt, b4 as sn, b5 as ia, b6 as la } from "../chunks/index-
|
|
6
|
-
import { B as H, P as it, a as lt, b as dt, _ as da, $ as ca, a0 as ua, a1 as pa, a2 as ha, L as me, R as ma, d as _t } from "../chunks/switch-
|
|
5
|
+
import { aM as ea, aN as ta, aO as Ir, aP as jr, aQ as zr, aR as ra, aS as Wr, aT as Hr, aU as Jr, aV as Vr, aW as _r, aX as Ur, aY as Gr, aZ as na, a_ as aa, a$ as oa, b0 as Ht, b1 as on, R as Kr, b2 as sa, b3 as Vt, b4 as sn, b5 as ia, b6 as la } from "../chunks/index-B6cfDHwn.js";
|
|
6
|
+
import { B as H, P as it, a as lt, b as dt, _ as da, $ as ca, a0 as ua, a1 as pa, a2 as ha, L as me, R as ma, d as _t } from "../chunks/switch-8PklEEN1.js";
|
|
7
7
|
import { loadSemaphorBrowserRuntime as ot } from "../data-app-builder-browser-runtime/index.js";
|
|
8
8
|
import { c as Ve, X as He } from "../chunks/x-CXDkqdur.js";
|
|
9
9
|
import { S as fa } from "../chunks/save-DgMfP0j8.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as E, a as S, i as A, v as t } from "../chunks/validators-
|
|
2
|
-
import { C as R, a as r, b as s, G as C, e as o, R as p, c as d, f as O, g as i, h as m, i as n, j as N, v as T, d as I } from "../chunks/update-policy-
|
|
1
|
+
import { S as E, a as S, i as A, v as t } from "../chunks/validators-DhTaCK1O.js";
|
|
2
|
+
import { C as R, a as r, b as s, G as C, e as o, R as p, c as d, f as O, g as i, h as m, i as n, j as N, v as T, d as I } from "../chunks/update-policy-Bu5Tw43R.js";
|
|
3
3
|
export {
|
|
4
4
|
R as CODEGEN_SUMMARY_SCHEMA_VERSION,
|
|
5
5
|
r as CODEGEN_SUMMARY_VALIDATOR_VERSION,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as Vn, a as Fn, i as bn, v as kn } from "../chunks/validators-
|
|
2
|
-
import { c as ke, G as fe, a as Re, b as Me } from "../chunks/update-policy-
|
|
3
|
-
import { C as Mn, e as Cn, R as On, f as xn, g as Gn, h as Nn, i as En, j as An, v as jn, d as vn } from "../chunks/update-policy-
|
|
1
|
+
import { S as Vn, a as Fn, i as bn, v as kn } from "../chunks/validators-DhTaCK1O.js";
|
|
2
|
+
import { c as ke, G as fe, a as Re, b as Me } from "../chunks/update-policy-Bu5Tw43R.js";
|
|
3
|
+
import { C as Mn, e as Cn, R as On, f as xn, g as Gn, h as Nn, i as En, j as An, v as jn, d as vn } from "../chunks/update-policy-Bu5Tw43R.js";
|
|
4
4
|
import { createHash as ye } from "node:crypto";
|
|
5
5
|
const wn = "src/semaphor/generated", v = `// Generated by Semaphor Agent Plugin. Do not hand-edit analytics wiring here.
|
|
6
6
|
// Regenerate from the accepted semaphor_plan_data_app codegenSummary when the plan changes.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { toSemaphorInputSnapshots as jr, toSemaphorInputBinding as Hr, toSemaphorActiveInputSnapshots as X, toSemaphorMatrixIntent as Pr, toSemaphorSqlIntent as Vr, toSemaphorInputOptionsIntent as Qr, toSemaphorRecordsIntent as Ur, toSemaphorAnalysisQueryOptions as Gr, toSemaphorAnalysisIntent as Jr, toSemaphorMetricIntent as Yr, hasSemaphorInputValue as ue, normalizeSemaphorInputOptions as hr, toSemaphorInputSpec as br } from "../data-app-sdk-adapters/index.js";
|
|
2
2
|
import { jsxs as p, Fragment as vr, jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import { createContext as Ie, useContext as Q, useState as z, useRef as E, useEffect as B, useMemo as I, Fragment as Xr, useId as Sr, useCallback as D, useReducer as Zr } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { c as lo, ak as uo } from "../chunks/validators-
|
|
6
|
-
import "../chunks/analyze-result-contract-
|
|
4
|
+
import { j as et, aj as rt, x as tt } from "../chunks/validators-DhTaCK1O.js";
|
|
5
|
+
import { c as lo, ak as uo } from "../chunks/validators-DhTaCK1O.js";
|
|
6
|
+
import "../chunks/analyze-result-contract-kaCNxjA7.js";
|
|
7
7
|
import "../value-format-preferences/index.js";
|
|
8
8
|
import { M as nt, a as it, S as ot, E as st, C as at } from "../chunks/search-BHsQIWBV.js";
|
|
9
9
|
import { X as lt, C as dt, j as ut } from "../chunks/x-CXDkqdur.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as m, p as I, c as p } from "../chunks/validators-
|
|
1
|
+
import { s as m, p as I, c as p } from "../chunks/validators-DhTaCK1O.js";
|
|
2
2
|
import { n as c } from "../chunks/operators-C8TxpM4C.js";
|
|
3
|
-
import "../chunks/analyze-result-contract-
|
|
3
|
+
import "../chunks/analyze-result-contract-kaCNxjA7.js";
|
|
4
4
|
import "../value-format-preferences/index.js";
|
|
5
5
|
function F(i) {
|
|
6
6
|
var n, e, a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../chunks/analyze-result-contract-
|
|
1
|
+
import { B as H, E as O, s as K, ah as q, x as Q } from "../chunks/validators-DhTaCK1O.js";
|
|
2
|
+
import "../chunks/analyze-result-contract-kaCNxjA7.js";
|
|
3
3
|
import "../value-format-preferences/index.js";
|
|
4
|
-
import { p as E } from "../chunks/report-runtime-context-
|
|
4
|
+
import { p as E } from "../chunks/report-runtime-context-CcXUjpb-.js";
|
|
5
5
|
import { toSemaphorMetricIntent as J, toSemaphorAnalysisIntent as U, toSemaphorRecordsIntent as W, toSemaphorSqlIntent as L, toSemaphorMatrixIntent as V, toSemaphorInputOptionsIntent as G } from "../data-app-sdk-adapters/index.js";
|
|
6
6
|
function X({
|
|
7
7
|
intent: e,
|
|
@@ -58,7 +58,7 @@ function m(e, r) {
|
|
|
58
58
|
}
|
|
59
59
|
function u(e, r) {
|
|
60
60
|
return e.find(
|
|
61
|
-
(o) =>
|
|
61
|
+
(o) => j(o, r)
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
64
|
function k(e) {
|
|
@@ -256,17 +256,17 @@ function $(e) {
|
|
|
256
256
|
function M(e) {
|
|
257
257
|
const r = [...e.fields];
|
|
258
258
|
return e.dateField && !r.some(
|
|
259
|
-
(o) =>
|
|
259
|
+
(o) => B(o, e.dateField)
|
|
260
260
|
) && r.push({ ...e.dateField, role: "date" }), r;
|
|
261
261
|
}
|
|
262
262
|
function se(e, r) {
|
|
263
|
-
return
|
|
263
|
+
return j(e.field, r.field) && e.allowedRelatedRoles.join("|") === r.allowedRelatedRoles.join("|") && (e.unsupportedRelatedRoleMessage || "") === (r.unsupportedRelatedRoleMessage || "") && (e.recommendedNextStep || "") === (r.recommendedNextStep || "");
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function B(e, r) {
|
|
266
266
|
return K(e, r);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
return
|
|
268
|
+
function j(e, r) {
|
|
269
|
+
return B(e, r) && ne(
|
|
270
270
|
f(e),
|
|
271
271
|
f(r)
|
|
272
272
|
);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { i as _ } from "../chunks/format-types-CFHQoIuk.js";
|
|
2
|
-
import { f as w, a as y, b as R } from "../chunks/pivot-result-lifecycle
|
|
3
|
-
import { M as L, E as G, P as H, R as K, z as U, w as W, G as Q, n as F, x as Y, C as J, D as X, o as Z, q as ee, d as re, c as oe, h as te, e as se, B as ne, g as le, F as ae, p as ie, m as ue, k as me, y as ce, i as fe, l as pe, t as be, A as Te, r as we, j as he, u as Ee, v as ye, s as Re } from "../chunks/pivot-result-lifecycle
|
|
4
|
-
import { f as C, a as v, b as p, e as h } from "../chunks/pivot-header-presentation-
|
|
5
|
-
import { A as ve, P as Ae, i as Se, m as Pe, q as de, s as ge, l as $e, c as Ve, d as ke, g as xe, h as Me, j as Be, o as Ie, p as Ne, n as je, t as ze, k as
|
|
6
|
-
import {
|
|
7
|
-
import { i as Qe, T as Fe, h as Ye, j as Je, p as Xe, a as Ze, k as er } from "../chunks/temporal-bucket-
|
|
8
|
-
import { P as or, b as tr, i as sr, c as nr, d as lr, r as ar, a as ir } from "../chunks/pivot-result-identity-
|
|
9
|
-
import { p as mr, v as cr } from "../chunks/raw-temporal-contract-
|
|
2
|
+
import { f as w, a as y, b as R } from "../chunks/pivot-result-lifecycle-B38AZx4a.js";
|
|
3
|
+
import { M as L, E as G, P as H, R as K, z as U, w as W, G as Q, n as F, x as Y, C as J, D as X, o as Z, q as ee, d as re, c as oe, h as te, e as se, B as ne, g as le, F as ae, p as ie, m as ue, k as me, y as ce, i as fe, l as pe, t as be, A as Te, r as we, j as he, u as Ee, v as ye, s as Re } from "../chunks/pivot-result-lifecycle-B38AZx4a.js";
|
|
4
|
+
import { f as C, a as v, b as p, e as h } from "../chunks/pivot-header-presentation-OpY8xzdT.js";
|
|
5
|
+
import { A as ve, P as Ae, i as Se, m as Pe, q as de, s as ge, l as $e, c as Ve, d as ke, g as xe, h as Me, j as Be, o as Ie, p as Ne, n as je, t as ze, k as qe, r as Oe } from "../chunks/pivot-header-presentation-OpY8xzdT.js";
|
|
6
|
+
import { q as De, ao as Le, am as Ge, ap as He, an as Ke, al as Ue } from "../chunks/validators-DhTaCK1O.js";
|
|
7
|
+
import { i as Qe, T as Fe, h as Ye, j as Je, p as Xe, a as Ze, k as er } from "../chunks/temporal-bucket-Cc9fmx8s.js";
|
|
8
|
+
import { P as or, b as tr, i as sr, c as nr, d as lr, r as ar, a as ir } from "../chunks/pivot-result-identity-CCMpd8ZA.js";
|
|
9
|
+
import { p as mr, v as cr } from "../chunks/raw-temporal-contract-r_EMdR85.js";
|
|
10
10
|
function A(r, e, t, o) {
|
|
11
11
|
const s = r instanceof Date ? r.toISOString() : String(r), l = (o == null ? void 0 : o.browserTimezone) || t, n = (o == null ? void 0 : o.isSqlCard) ?? !1;
|
|
12
12
|
if (e != null && e.useRelativeTime)
|
|
@@ -347,7 +347,7 @@ export {
|
|
|
347
347
|
ze as presentPivotHeader,
|
|
348
348
|
nr as requirePivotHeaderMembers,
|
|
349
349
|
lr as requirePivotResultColumnIdentities,
|
|
350
|
-
|
|
350
|
+
qe as resolveAggregateTablePresentationContext,
|
|
351
351
|
He as resolveApplicableTemporalBucketFormat,
|
|
352
352
|
we as resolveCurrencyFractionDigits,
|
|
353
353
|
Ze as resolveMetricResultAlias,
|
|
@@ -355,7 +355,7 @@ export {
|
|
|
355
355
|
ar as resolveQueryColumnKeyMapEntry,
|
|
356
356
|
Ee as resolveRawTemporalFormat,
|
|
357
357
|
er as resolveTemporalBucketPresentation,
|
|
358
|
-
|
|
358
|
+
Oe as resolveTimezone,
|
|
359
359
|
ir as resolveUniqueQueryColumnKeyMapEntry,
|
|
360
360
|
Ke as tokenizeTemporalBucketPattern,
|
|
361
361
|
ye as validateCardExportNumericPresentationSnapshot,
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-UKhl24L_.cjs"),d=require("./chunks/common-types-o3LJcrpg.cjs"),P=require("./chunks/report-preferences-dialog-DzUi-b9O.cjs"),i=require("react/jsx-runtime"),r=require("./chunks/switch-BghC7eOM.cjs"),h=require("react"),N=require("./chunks/token-types-DALtlgbG.cjs"),u=require("./chunks/dashboard-briefing-launcher-DbLc4VV9.cjs"),R=require("./chunks/use-debounced-dirty-check-XHSwAefL.cjs");require("./value-format-preferences/index.cjs");require("./chunks/validators-DO-YuzgO.cjs");const _=require("./chunks/report-runtime-context-CLtzrZdC.cjs"),T=require("./chunks/pivot-result-identity-gsOwOjHi.cjs");require("./chunks/analyze-result-contract-CMwVg9w2.cjs");require("./chunks/temporal-bucket-authoring-C6sZAVqS.cjs");require("./chunks/saved-temporal-bucket-format-Ca4hUfTo.cjs");require("react-dom");require("./chunks/appearance-context-DhyjbQk1.cjs");require("./chunks/color-CyB5o13F.cjs");require("./chunks/index-ByFbacH7.cjs");const B=require("./chunks/normalize-dashboard-for-dirty-check-BXRUMVb2.cjs"),w=require("./chunks/x-B6ghREd2.cjs");require("./chunks/appearance-runtime-provider-BgNYdUYH.cjs");function j(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const o in a)if(o!=="default"){const l=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(t,o,l.get?l:{enumerable:!0,get:()=>a[o]})}}return t.default=a,Object.freeze(t)}const C=j(h);function M(a){const{displayPreferences:t,cardId:o,...l}=a,n={...l,id:a.dashboardId};return i.jsx(e.ErrorBoundary,{FallbackComponent:e.Fallback,children:i.jsxs(e.SemaphorContextProvider,{dashboardProps:n,children:[i.jsx(e.SemaphorReadyIndicator,{componentType:"visual",componentId:a.cardId}),i.jsx(e.UXProvider,{appearance:a.appearance,children:i.jsx(e.DisplayPreferencesProvider,{displayPreferences:t,children:i.jsx(e.Container,{type:"visual",cardId:o,...n,children:i.jsx(L,{cardId:o})})})})]})})}function L({cardId:a}){const t=r.useDashboardStore(n=>{var c;return(c=n.dashboard)==null?void 0:c.sheets}),{card:o,frame:l}=h.useMemo(()=>{const n=t==null?void 0:t.flatMap(s=>s.frames),c=n==null?void 0:n.flatMap(s=>s==null?void 0:s.cards),D=c==null?void 0:c.find(s=>(s==null?void 0:s.id)===a),E=n==null?void 0:n.find(s=>{var m;return(m=s==null?void 0:s.cards)==null?void 0:m.find(g=>(g==null?void 0:g.id)===a)});return{card:D,frame:E}},[t,a]);return!o||!l?i.jsx(e.FallbackVisual,{error:new Error("Card not found"),resetErrorBoundary:()=>{},customerFacingMessage:`Card not found with ID: ${a}`}):i.jsx("main",{className:"flex h-full grow flex-col",children:i.jsx(e.ErrorBoundary,{FallbackComponent:({error:n,resetErrorBoundary:c})=>i.jsx(e.FallbackVisual,{error:n,resetErrorBoundary:c,customerFacingMessage:"Error creating visual. Please try again."}),children:i.jsx(e.DashboardCard,{card:o,frame:l})})})}function q(a,t,o,l){h.useEffect(()=>{a&&!o&&t&&l(e.cloneDeep(t))},[a,o,t,l])}function I({name:a,items:t,value:o,onChange:l,isLoading:n,isError:c,refetch:D,className:E,icon:s,showNone:m=!1}){const g=C.useRef(null),[y,b]=C.useState(!1),[S,A]=C.useState("100%"),x=m?[...t||[],{id:"none",name:"None"}]:t;C.useLayoutEffect(()=>{g.current&&A(g.current.offsetWidth)},[]);function v(){var f;return n?"Loading...":c?"Error":o?(f=t==null?void 0:t.find(p=>p.id===o))==null?void 0:f.name:`Select ${a}`}function F(f,p){l(p),b(!1)}return i.jsxs(r.Popover,{open:y,onOpenChange:b,children:[i.jsx(r.PopoverTrigger,{asChild:!0,children:i.jsxs(r.Button,{ref:g,variant:"outline",role:"combobox","aria-expanded":y,className:r.cn("flex h-9 w-full justify-between",E),children:[i.jsxs("div",{className:"flex items-center gap-2",children:[s&&i.jsx("div",{className:"mr-2",children:s}),i.jsx("span",{className:"max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap",children:v()})]}),i.jsx(w.ChevronDown,{className:"size-4 opacity-50"})]})}),i.jsx(r.PopoverContent,{className:"w-full p-0",style:{minWidth:S},children:i.jsxs(e.Command,{children:[i.jsxs("div",{className:"flex h-9 items-center justify-between border-b pr-1",children:[i.jsx(e.CommandInput,{className:"h-9",placeholder:"Search..."}),i.jsx(e.IconButton,{className:"h-7",onClick:D,children:i.jsx(e.RefreshCw,{className:r.cn("size-3.5 opacity-50",n&&"animate-spin")})})]}),i.jsxs(e.CommandList,{children:[i.jsxs(e.CommandEmpty,{children:["No ",a==null?void 0:a.toLowerCase()," found."]}),i.jsx(e.CommandGroup,{children:x==null?void 0:x.map(f=>i.jsx(e.CommandItem,{className:"overflow-x-auto",value:f.name,onSelect:p=>F(p,f.id),children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(r.Check,{className:r.cn("size-4",o===f.id?"opacity-100":"opacity-0")}),i.jsx("div",{title:f.name,children:f.name})]})},f.id))})]})]})})]})}function U(a,t){h.useEffect(()=>(a&&t&&(window.__SEMAPHOR_PRINT_STATE__={...t}),()=>{a&&window.__SEMAPHOR_PRINT_STATE__&&delete window.__SEMAPHOR_PRINT_STATE__}),[a,t])}exports.BriefingAuthor=e.BriefingAuthor;exports.BriefingAuthorDialog=e.BriefingAuthorDialog;exports.BriefingUiCapabilitiesBoundary=e.BriefingUiCapabilitiesBoundary;exports.BriefingUiCapabilitiesProvider=e.BriefingUiCapabilitiesProvider;exports.BriefingsApiError=e.BriefingsApiError;exports.CardSummary=e.CardSummary;exports.Dashboard=e.Dashboard;exports.DashboardCreateDialogBase=e.DashboardCreateDialogBase;exports.DashboardExportDialog=e.DashboardExportDialog;exports.DashboardWC=e.DashboardWC;exports.DisplayFormatPreferencesFields=e.DisplayFormatPreferencesFields;exports.ExportError=e.ExportError;exports.MatrixTableVisual=e.MatrixTableVisual;exports.ResourceType=e.ResourceType;exports.SemaphorContextProvider=e.SemaphorContextProvider;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.ShareDialog=e.ShareDialog;exports.SummaryCard=e.SummaryCard;exports.Surfboard=e.DashboardPlus;exports.applyBriefingFormPatch=e.applyBriefingFormPatch;exports.briefingFormDraftToCreateRequest=e.briefingFormDraftToCreateRequest;exports.briefingFormDraftToUpdateRequest=e.briefingFormDraftToUpdateRequest;exports.briefingToFormDraft=e.briefingToFormDraft;exports.cancelBriefingPreviewRun=e.cancelBriefingPreviewRun;exports.cancelBriefingRun=e.cancelBriefingRun;exports.cancelExport=e.cancelExport;exports.cloneDeep=e.cloneDeep;exports.createBriefing=e.createBriefing;exports.createBriefingFormDraft=e.createBriefingFormDraft;exports.createExport=e.createExport;exports.deleteBriefing=e.deleteBriefing;exports.deleteBriefingRun=e.deleteBriefingRun;exports.downloadDocumentPdf=e.downloadDocumentPdf;exports.downloadPdf=e.downloadPdf;exports.formatFileSize=e.formatFileSize;exports.getBriefing=e.getBriefing;exports.getBriefingArtifact=e.getBriefingArtifact;exports.getBriefingEvidence=e.getBriefingEvidence;exports.getBriefingPreviewRun=e.getBriefingPreviewRun;exports.getBriefingRun=e.getBriefingRun;exports.getDownloadUrl=e.getDownloadUrl;exports.getExportStatus=e.getExportStatus;exports.getExports=e.getExports;exports.isExportComplete=e.isExportComplete;exports.isExportInProgress=e.isExportInProgress;exports.listBriefingRuns=e.listBriefingRuns;exports.listBriefingTenantSummaries=e.listBriefingTenantSummaries;exports.listBriefings=e.listBriefings;exports.pauseBriefing=e.pauseBriefing;exports.polishBriefingText=e.polishBriefingText;exports.previewBriefingPlan=e.previewBriefingPlan;exports.resumeBriefing=e.resumeBriefing;exports.runBriefingNow=e.runBriefingNow;exports.runBriefingPreview=e.runBriefingPreview;exports.updateBriefing=e.updateBriefing;exports.useActiveExports=e.useActiveExports;exports.useAddNewFrame=e.useAddNewFrame;exports.useBriefingUiCapabilities=e.useBriefingUiCapabilities;exports.useCard=e.useCard;exports.useCardSummary=e.useCardSummary;exports.useDashboardById=e.useDashboardById;exports.useDashboardQuery=e.useDashboardQuery;exports.useDashboardSummary=e.useDashboardSummary;exports.useDataColumns=e.useDataColumns;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorAside=e.useEditorAside;exports.useExportActions=e.useExportActions;exports.useExportStore=e.useExportStore;exports.useInProgressExportsCount=e.useInProgressExportsCount;exports.useManagementStore=e.useManagementStore;exports.useResourceManagement=e.useResourceManagement;exports.useTextFilterHook=e.useTextFilterHook;exports.validateBriefingFormDraft=e.validateBriefingFormDraft;exports.CALCULATED_FIELD_ENTITY_MARKER=d.CALCULATED_FIELD_ENTITY_MARKER;exports.CONTROL_CARD_DEFAULT_VALUE=d.CONTROL_CARD_DEFAULT_VALUE;exports.DATE_FORMAT_VALUES=d.DATE_FORMAT_VALUES;exports.EMPTY_SELECTION=d.EMPTY_SELECTION;exports.PivotMarkerEnum=d.PivotMarkerEnum;exports.getFieldRuntimeColumnName=d.getFieldRuntimeColumnName;exports.hasCalculatedFieldMarker=d.hasCalculatedFieldMarker;exports.hasCalculatedFormulaInputs=d.hasCalculatedFormulaInputs;exports.isCalculatedDimension=d.isCalculatedDimension;exports.isCalculatedField=d.isCalculatedField;exports.isCalculatedMetric=d.isCalculatedMetric;exports.ReportPreferencesDialog=P.ReportPreferencesDialog;exports.createEmptyKpiConfig=r.createEmptyKpiConfig;exports.createSqlGenConfig=r.createSqlGenConfig;exports.emitDashboardLoad=r.emitDashboardLoad;exports.emitDashboardUnload=r.emitDashboardUnload;exports.fmt=r.fmt;exports.getColumnDataType=r.getColumnDataType;exports.getFilterValueType=r.getFilterValueType;exports.getFormattedTableNameForQuery=r.getFormattedTableNameForQuery;exports.getQualifiedTableName=r.getQualifiedTableName;exports.getSql=r.getSql;exports.invalidateToken=r.invalidateToken;exports.isBooleanDataType=r.isBooleanDataType;exports.isColumnInSqlGen=r.isColumnInSqlGen;exports.isDateDataType=r.isDateDataType;exports.isNumberDataType=r.isNumberDataType;exports.isTextDataType=r.isTextDataType;exports.resolveDataType=r.resolveDataType;exports.resolveDatamodelName=r.resolveDatamodelName;exports.useCurrentActiveCard=r.useCurrentActiveCard;exports.useCurrentCardConfig=r.useCurrentCardConfig;exports.useCurrentSheetActiveCards=r.useCurrentSheetActiveCards;exports.useDashboardActions=r.useDashboardActions;exports.useDashboardStore=r.useDashboardStore;exports.useEditorActions=r.useEditorActions;exports.useEditorStore=r.useEditorStore;exports.DEFAULT_SEMANTIC_DOMAIN_ACCESS=N.DEFAULT_SEMANTIC_DOMAIN_ACCESS;exports.AdvancedModeToggle=u.AdvancedModeToggle;exports.DashboardBriefingLauncher=u.DashboardBriefingLauncher;exports.DashboardControlsSettings=u.DashboardControlsSettings;exports.DashboardFilterControlsButton=u.DashboardFilterControlsButton;exports.DashboardFilterControlsLauncher=u.DashboardFilterControlsLauncher;exports.DocumentControlsSettings=u.DocumentControlsSettings;exports.ExportNotificationItem=u.ExportNotificationItem;exports.ExportNotificationList=u.ExportNotificationList;exports.NotificationBell=u.NotificationBell;exports.UnsavedChangesAlert=u.UnsavedChangesAlert;exports.VisualEditingControls=u.VisualEditingControls;exports.VisualsLibraryDialog=u.VisualsLibraryDialog;exports.WatchDashboardButton=u.WatchDashboardButton;exports.useExportPolling=u.useExportPolling;exports.useExportRecovery=u.useExportRecovery;exports.useDebouncedDirtyCheck=R.useDebouncedDirtyCheck;exports.DEFAULT_CALENDAR_CONTEXT=_.DEFAULT_CALENDAR_CONTEXT;exports.resolveQueryColumnKeyMapEntry=T.resolveQueryColumnKeyMapEntry;exports.resolveUniqueQueryColumnKeyMapEntry=T.resolveUniqueQueryColumnKeyMapEntry;exports.normalizeDashboardForDirtyCheck=B.normalizeDashboardForDirtyCheck;exports.serializeDashboardForDirtyCheck=B.serializeDashboardForDirtyCheck;exports.Combobox=I;exports.Visual=M;exports.useExposePrintState=U;exports.usePristineSnapshotInitializer=q;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-DZdmd5AL.cjs"),u=require("./chunks/common-types-tRK8fhXV.cjs"),_=require("./chunks/report-preferences-dialog-B89ypIJ-.cjs"),i=require("react/jsx-runtime"),r=require("./chunks/switch-DykyqM66.cjs"),h=require("react"),P=require("./chunks/token-types-DALtlgbG.cjs"),l=require("./chunks/dashboard-briefing-launcher-Bo4GmnB7.cjs"),N=require("./chunks/use-debounced-dirty-check-XHSwAefL.cjs");require("./value-format-preferences/index.cjs");require("./chunks/validators-DO-YuzgO.cjs");const R=require("./chunks/report-runtime-context-CLtzrZdC.cjs"),T=require("./chunks/pivot-result-identity-gsOwOjHi.cjs");require("./chunks/analyze-result-contract-CMwVg9w2.cjs");require("./chunks/temporal-bucket-authoring-C6sZAVqS.cjs");require("./chunks/saved-temporal-bucket-format-Ca4hUfTo.cjs");require("react-dom");require("./chunks/appearance-context-DhyjbQk1.cjs");require("./chunks/color-CyB5o13F.cjs");require("./chunks/index-ByFbacH7.cjs");const B=require("./chunks/normalize-dashboard-for-dirty-check-BXRUMVb2.cjs"),w=require("./chunks/x-B6ghREd2.cjs");require("./chunks/appearance-runtime-provider-BgNYdUYH.cjs");function L(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const o in a)if(o!=="default"){const d=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(t,o,d.get?d:{enumerable:!0,get:()=>a[o]})}}return t.default=a,Object.freeze(t)}const m=L(h);function M(a){const{displayPreferences:t,cardId:o,...d}=a,n={...d,id:a.dashboardId};return i.jsx(e.ErrorBoundary,{FallbackComponent:e.Fallback,children:i.jsxs(e.SemaphorContextProvider,{dashboardProps:n,children:[i.jsx(e.SemaphorReadyIndicator,{componentType:"visual",componentId:a.cardId}),i.jsx(e.UXProvider,{appearance:a.appearance,children:i.jsx(e.DisplayPreferencesProvider,{displayPreferences:t,children:i.jsx(e.Container,{type:"visual",cardId:o,...n,children:i.jsx(j,{cardId:o})})})})]})})}function j({cardId:a}){const t=r.useDashboardStore(n=>{var c;return(c=n.dashboard)==null?void 0:c.sheets}),{card:o,frame:d}=h.useMemo(()=>{const n=t==null?void 0:t.flatMap(s=>s.frames),c=n==null?void 0:n.flatMap(s=>s==null?void 0:s.cards),D=c==null?void 0:c.find(s=>(s==null?void 0:s.id)===a),E=n==null?void 0:n.find(s=>{var C;return(C=s==null?void 0:s.cards)==null?void 0:C.find(g=>(g==null?void 0:g.id)===a)});return{card:D,frame:E}},[t,a]);return!o||!d?i.jsx(e.FallbackVisual,{error:new Error("Card not found"),resetErrorBoundary:()=>{},customerFacingMessage:`Card not found with ID: ${a}`}):i.jsx("main",{className:"flex h-full grow flex-col",children:i.jsx(e.ErrorBoundary,{FallbackComponent:({error:n,resetErrorBoundary:c})=>i.jsx(e.FallbackVisual,{error:n,resetErrorBoundary:c,customerFacingMessage:"Error creating visual. Please try again."}),children:i.jsx(e.DashboardCard,{card:o,frame:d})})})}function I(a,t,o,d){h.useEffect(()=>{a&&!o&&t&&d(e.cloneDeep(t))},[a,o,t,d])}function q({name:a,items:t,value:o,onChange:d,isLoading:n,isError:c,refetch:D,className:E,icon:s,showNone:C=!1}){const g=m.useRef(null),[y,b]=m.useState(!1),[A,S]=m.useState("100%"),x=C?[...t||[],{id:"none",name:"None"}]:t;m.useLayoutEffect(()=>{g.current&&S(g.current.offsetWidth)},[]);function F(){var f;return n?"Loading...":c?"Error":o?(f=t==null?void 0:t.find(p=>p.id===o))==null?void 0:f.name:`Select ${a}`}function v(f,p){d(p),b(!1)}return i.jsxs(r.Popover,{open:y,onOpenChange:b,children:[i.jsx(r.PopoverTrigger,{asChild:!0,children:i.jsxs(r.Button,{ref:g,variant:"outline",role:"combobox","aria-expanded":y,className:r.cn("flex h-9 w-full justify-between",E),children:[i.jsxs("div",{className:"flex items-center gap-2",children:[s&&i.jsx("div",{className:"mr-2",children:s}),i.jsx("span",{className:"max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap",children:F()})]}),i.jsx(w.ChevronDown,{className:"size-4 opacity-50"})]})}),i.jsx(r.PopoverContent,{className:"w-full p-0",style:{minWidth:A},children:i.jsxs(e.Command,{children:[i.jsxs("div",{className:"flex h-9 items-center justify-between border-b pr-1",children:[i.jsx(e.CommandInput,{className:"h-9",placeholder:"Search..."}),i.jsx(e.IconButton,{className:"h-7",onClick:D,children:i.jsx(e.RefreshCw,{className:r.cn("size-3.5 opacity-50",n&&"animate-spin")})})]}),i.jsxs(e.CommandList,{children:[i.jsxs(e.CommandEmpty,{children:["No ",a==null?void 0:a.toLowerCase()," found."]}),i.jsx(e.CommandGroup,{children:x==null?void 0:x.map(f=>i.jsx(e.CommandItem,{className:"overflow-x-auto",value:f.name,onSelect:p=>v(p,f.id),children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(r.Check,{className:r.cn("size-4",o===f.id?"opacity-100":"opacity-0")}),i.jsx("div",{title:f.name,children:f.name})]})},f.id))})]})]})})]})}function U(a,t){h.useEffect(()=>(a&&t&&(window.__SEMAPHOR_PRINT_STATE__={...t}),()=>{a&&window.__SEMAPHOR_PRINT_STATE__&&delete window.__SEMAPHOR_PRINT_STATE__}),[a,t])}exports.BriefingAuthor=e.BriefingAuthor;exports.BriefingAuthorDialog=e.BriefingAuthorDialog;exports.BriefingUiCapabilitiesBoundary=e.BriefingUiCapabilitiesBoundary;exports.BriefingUiCapabilitiesProvider=e.BriefingUiCapabilitiesProvider;exports.BriefingsApiError=e.BriefingsApiError;exports.CardSummary=e.CardSummary;exports.Dashboard=e.Dashboard;exports.DashboardCreateDialogBase=e.DashboardCreateDialogBase;exports.DashboardExportDialog=e.DashboardExportDialog;exports.DashboardWC=e.DashboardWC;exports.DisplayFormatPreferencesFields=e.DisplayFormatPreferencesFields;exports.ExportError=e.ExportError;exports.MatrixTableVisual=e.MatrixTableVisual;exports.ResourceType=e.ResourceType;exports.SemaphorContextProvider=e.SemaphorContextProvider;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.ShareDialog=e.ShareDialog;exports.SummaryCard=e.SummaryCard;exports.Surfboard=e.DashboardPlus;exports.applyBriefingFormPatch=e.applyBriefingFormPatch;exports.briefingFormDraftToCreateRequest=e.briefingFormDraftToCreateRequest;exports.briefingFormDraftToUpdateRequest=e.briefingFormDraftToUpdateRequest;exports.briefingToFormDraft=e.briefingToFormDraft;exports.cancelBriefingPreviewRun=e.cancelBriefingPreviewRun;exports.cancelBriefingRun=e.cancelBriefingRun;exports.cancelExport=e.cancelExport;exports.cloneDeep=e.cloneDeep;exports.createBriefing=e.createBriefing;exports.createBriefingFormDraft=e.createBriefingFormDraft;exports.createExport=e.createExport;exports.deleteBriefing=e.deleteBriefing;exports.deleteBriefingRun=e.deleteBriefingRun;exports.downloadDocumentPdf=e.downloadDocumentPdf;exports.downloadPdf=e.downloadPdf;exports.formatFileSize=e.formatFileSize;exports.getBriefing=e.getBriefing;exports.getBriefingArtifact=e.getBriefingArtifact;exports.getBriefingEvidence=e.getBriefingEvidence;exports.getBriefingPreviewRun=e.getBriefingPreviewRun;exports.getBriefingRun=e.getBriefingRun;exports.getDownloadUrl=e.getDownloadUrl;exports.getExportStatus=e.getExportStatus;exports.getExports=e.getExports;exports.isExportComplete=e.isExportComplete;exports.isExportInProgress=e.isExportInProgress;exports.listBriefingRuns=e.listBriefingRuns;exports.listBriefingTenantSummaries=e.listBriefingTenantSummaries;exports.listBriefings=e.listBriefings;exports.pauseBriefing=e.pauseBriefing;exports.polishBriefingText=e.polishBriefingText;exports.previewBriefingPlan=e.previewBriefingPlan;exports.resumeBriefing=e.resumeBriefing;exports.runBriefingNow=e.runBriefingNow;exports.runBriefingPreview=e.runBriefingPreview;exports.updateBriefing=e.updateBriefing;exports.useActiveExports=e.useActiveExports;exports.useAddNewFrame=e.useAddNewFrame;exports.useBriefingUiCapabilities=e.useBriefingUiCapabilities;exports.useCard=e.useCard;exports.useCardSummary=e.useCardSummary;exports.useDashboardById=e.useDashboardById;exports.useDashboardQuery=e.useDashboardQuery;exports.useDashboardSummary=e.useDashboardSummary;exports.useDataColumns=e.useDataColumns;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorAside=e.useEditorAside;exports.useExportActions=e.useExportActions;exports.useExportStore=e.useExportStore;exports.useInProgressExportsCount=e.useInProgressExportsCount;exports.useManagementStore=e.useManagementStore;exports.useResourceManagement=e.useResourceManagement;exports.useTextFilterHook=e.useTextFilterHook;exports.validateBriefingFormDraft=e.validateBriefingFormDraft;exports.CALCULATED_FIELD_ENTITY_MARKER=u.CALCULATED_FIELD_ENTITY_MARKER;exports.CONTROL_CARD_DEFAULT_VALUE=u.CONTROL_CARD_DEFAULT_VALUE;exports.DATE_FORMAT_VALUES=u.DATE_FORMAT_VALUES;exports.EMPTY_SELECTION=u.EMPTY_SELECTION;exports.LEGACY_CALCULATED_FIELD_ENTITY_MARKER=u.LEGACY_CALCULATED_FIELD_ENTITY_MARKER;exports.PivotMarkerEnum=u.PivotMarkerEnum;exports.getFieldRuntimeColumnName=u.getFieldRuntimeColumnName;exports.hasCalculatedFieldMarker=u.hasCalculatedFieldMarker;exports.hasCalculatedFormulaInputs=u.hasCalculatedFormulaInputs;exports.hasSyntheticCalculatedFieldOwner=u.hasSyntheticCalculatedFieldOwner;exports.isCalculatedDimension=u.isCalculatedDimension;exports.isCalculatedField=u.isCalculatedField;exports.isCalculatedMetric=u.isCalculatedMetric;exports.ReportPreferencesDialog=_.ReportPreferencesDialog;exports.createEmptyKpiConfig=r.createEmptyKpiConfig;exports.createSqlGenConfig=r.createSqlGenConfig;exports.emitDashboardLoad=r.emitDashboardLoad;exports.emitDashboardUnload=r.emitDashboardUnload;exports.fmt=r.fmt;exports.getColumnDataType=r.getColumnDataType;exports.getFilterValueType=r.getFilterValueType;exports.getFormattedTableNameForQuery=r.getFormattedTableNameForQuery;exports.getQualifiedTableName=r.getQualifiedTableName;exports.getSql=r.getSql;exports.invalidateToken=r.invalidateToken;exports.isBooleanDataType=r.isBooleanDataType;exports.isColumnInSqlGen=r.isColumnInSqlGen;exports.isDateDataType=r.isDateDataType;exports.isNumberDataType=r.isNumberDataType;exports.isTextDataType=r.isTextDataType;exports.resolveDataType=r.resolveDataType;exports.resolveDatamodelName=r.resolveDatamodelName;exports.useCurrentActiveCard=r.useCurrentActiveCard;exports.useCurrentCardConfig=r.useCurrentCardConfig;exports.useCurrentSheetActiveCards=r.useCurrentSheetActiveCards;exports.useDashboardActions=r.useDashboardActions;exports.useDashboardStore=r.useDashboardStore;exports.useEditorActions=r.useEditorActions;exports.useEditorStore=r.useEditorStore;exports.DEFAULT_SEMANTIC_DOMAIN_ACCESS=P.DEFAULT_SEMANTIC_DOMAIN_ACCESS;exports.AdvancedModeToggle=l.AdvancedModeToggle;exports.DashboardBriefingLauncher=l.DashboardBriefingLauncher;exports.DashboardControlsSettings=l.DashboardControlsSettings;exports.DashboardFilterControlsButton=l.DashboardFilterControlsButton;exports.DashboardFilterControlsLauncher=l.DashboardFilterControlsLauncher;exports.DocumentControlsSettings=l.DocumentControlsSettings;exports.ExportNotificationItem=l.ExportNotificationItem;exports.ExportNotificationList=l.ExportNotificationList;exports.NotificationBell=l.NotificationBell;exports.UnsavedChangesAlert=l.UnsavedChangesAlert;exports.VisualEditingControls=l.VisualEditingControls;exports.VisualsLibraryDialog=l.VisualsLibraryDialog;exports.WatchDashboardButton=l.WatchDashboardButton;exports.useExportPolling=l.useExportPolling;exports.useExportRecovery=l.useExportRecovery;exports.useDebouncedDirtyCheck=N.useDebouncedDirtyCheck;exports.DEFAULT_CALENDAR_CONTEXT=R.DEFAULT_CALENDAR_CONTEXT;exports.resolveQueryColumnKeyMapEntry=T.resolveQueryColumnKeyMapEntry;exports.resolveUniqueQueryColumnKeyMapEntry=T.resolveUniqueQueryColumnKeyMapEntry;exports.normalizeDashboardForDirtyCheck=B.normalizeDashboardForDirtyCheck;exports.serializeDashboardForDirtyCheck=B.serializeDashboardForDirtyCheck;exports.Combobox=q;exports.Visual=M;exports.useExposePrintState=U;exports.usePristineSnapshotInitializer=I;
|