react-semaphor 0.1.600 → 0.1.601
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-protocol/index.js +9 -9
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +7 -7
- package/dist/briefings/index.js +48 -45
- package/dist/chunks/{assistant-chat-BULOkG9j.js → assistant-chat-BE0XXzZP.js} +12 -12
- package/dist/chunks/{bookmark-impact-kdvXke8n.js → bookmark-impact-DXDAN5AY.js} +3 -3
- package/dist/chunks/{bookmark-state-h1OLXVjE.js → bookmark-state-BMyB3Tb6.js} +4 -4
- package/dist/chunks/{card-filter-builder-CSCdSQQy.js → card-filter-builder-CE0-YVN5.js} +9 -9
- package/dist/chunks/comparison-window-caption-Dxj2CHOa.js +741 -0
- package/dist/chunks/{dashboard-briefing-launcher-9YwUclHA.js → dashboard-briefing-launcher-CntwKyiZ.js} +13 -13
- package/dist/chunks/{dashboard-controls-O6PNXMCp.js → dashboard-controls-XO089DMg.js} +15 -15
- package/dist/chunks/{dashboard-json-Bxf91TYq.js → dashboard-json-CQRiydUv.js} +4 -4
- package/dist/chunks/{dashboard-y9ON19ge.js → dashboard-mJKPFRbb.js} +1 -1
- package/dist/chunks/{dates-DPTbpNxK.js → dates-B-Urp5OD.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-CKwaW8H_.js → edit-dashboard-visual-f-Dm-BLR.js} +176 -176
- package/dist/chunks/filter-line-CKNMyNTQ.js +703 -0
- package/dist/chunks/{filter-reach-copy-ClzNcNhP.js → filter-reach-copy-B8GGyVuR.js} +1441 -1270
- package/dist/chunks/{filter-value-text-CXyuLW9Q.js → filter-value-text-CRtKecI5.js} +6 -6
- package/dist/chunks/{index-CRo5--Y6.js → index-DoPApnxg.js} +386 -360
- package/dist/chunks/{layout-grid-DSrBSfPM.js → layout-grid-CiSCZdIr.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-i9PQY066.js → matrix-analytical-definition-myf3D3Qx.js} +35 -35
- package/dist/chunks/{matrix-member-presentation-B_2beBc0.js → matrix-member-presentation-g0c_NpDW.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-DdK0J_KU.js → matrix-operation-contract-C1SuOHLZ.js} +35 -35
- package/dist/chunks/{metric-comparison-Bhz0V841.js → metric-comparison-Cm0G893W.js} +3 -3
- package/dist/chunks/{paintbrush-1UiU-uTz.js → paintbrush-DQIwqlck.js} +1 -1
- package/dist/chunks/{palette-DFIFf_-m.js → palette-Cun747Rg.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Dk7WFR_u.js → pivot-result-contract-expectations-C1Dyx8du.js} +17 -17
- package/dist/chunks/{pivot-result-identity-CzzrJpEm.js → pivot-result-identity-CBS-ssEp.js} +1 -1
- package/dist/chunks/{raw-temporal-value-BLvdaMng.js → raw-temporal-value-DN_l-Tss.js} +16 -16
- package/dist/chunks/{report-preferences-dialog-DiDsYpng.js → report-preferences-dialog-SDZEcG2x.js} +13 -13
- package/dist/chunks/{report-runtime-context-CEGluufW.js → report-runtime-context-BbedQdtc.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-BAv33KGg.js → resolve-dashboard-input-context-DRBS0eRa.js} +553 -553
- package/dist/chunks/{save-CWQ02kHo.js → save-Dj5bjm7P.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CvzYqADe.js → saved-dashboard-context-DWVlJcsa.js} +15 -15
- package/dist/chunks/{selection-filter-compiler-SwrBvyyJ.js → selection-filter-compiler-DmAr7yqC.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-1PRI9Yh2.js → semaphor-ready-indicator-OFOoAY-A.js} +16370 -16518
- package/dist/chunks/{shelf-drop-preview-context-BLk5Nc6K.js → shelf-drop-preview-context-2swWypXu.js} +5 -5
- package/dist/chunks/{stored-dashboard-xhYYKBsO.js → stored-dashboard-NtOuEX6a.js} +111 -111
- package/dist/chunks/{style-sheet-parts-BX7d7-2-.js → style-sheet-parts-Qv4UcLAo.js} +2 -2
- package/dist/chunks/{table-export-sheet-BWSVTclx.js → table-export-sheet-Do7ZB0_F.js} +1 -1
- package/dist/chunks/{token-types-CnlEiAdS.js → token-types-Dy_aXO-U.js} +1 -1
- package/dist/chunks/{upload-DsqUSS8l.js → upload-Bq-puSVy.js} +1 -1
- package/dist/chunks/{validators-D2Hm57lJ.js → validators-C7DFk3QK.js} +78 -78
- package/dist/chunks/{variable-draft-DcKj8T1b.js → variable-draft-Cy03qnEi.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +80 -75
- package/dist/format-utils/index.js +238 -237
- package/dist/index.js +18 -18
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/briefings/attachments.d.ts +45 -4
- package/dist/types/briefings/index.d.ts +1 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/export-utils.d.ts +72 -0
- package/dist/types/lib/formatters/dashboard-temporal-presentation.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/card-data-file.d.ts +31 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +3 -0
- package/package.json +1 -1
- package/dist/chunks/comparison-window-caption-DJDwP9XO.js +0 -1309
- package/dist/chunks/filter-line-Dkg3yuOX.js +0 -134
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { j as E, r as v, k as b, l as F } from "./validators-D2Hm57lJ.js";
|
|
2
|
-
import "./matrix-operation-contract-DdK0J_KU.js";
|
|
3
|
-
import "./analytics-base-schemas-DevrgqQb.js";
|
|
4
|
-
import { r as w } from "./metric-comparison-Bhz0V841.js";
|
|
5
|
-
import { d as R, c as _ } from "./raw-temporal-value-BLvdaMng.js";
|
|
6
|
-
import "../value-format-preferences/index.js";
|
|
7
|
-
import "./pivot-result-contract-expectations-Dk7WFR_u.js";
|
|
8
|
-
const A = /^\d{4}-\d{2}-\d{2}$/;
|
|
9
|
-
function L(n) {
|
|
10
|
-
const a = n.split(".");
|
|
11
|
-
return a[a.length - 1].replace(/_/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").split(" ").map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join(" ");
|
|
12
|
-
}
|
|
13
|
-
const y = 10;
|
|
14
|
-
function g(n, a) {
|
|
15
|
-
const i = n.slice(0, y).map(a).join(", "), r = n.length - y;
|
|
16
|
-
return r > 0 ? `${i}, and ${r} more` : i;
|
|
17
|
-
}
|
|
18
|
-
function I(n) {
|
|
19
|
-
if (n.valueType !== "date") return;
|
|
20
|
-
const a = v(n.relativeMeta);
|
|
21
|
-
return a && b(n.operation, a) && w(a).printsByName ? a : void 0;
|
|
22
|
-
}
|
|
23
|
-
function U(n, a) {
|
|
24
|
-
if (a !== "label") return I(n);
|
|
25
|
-
if (n.valueType !== "date") return;
|
|
26
|
-
const i = v(n.relativeMeta);
|
|
27
|
-
return i && b(n.operation, i) ? i : void 0;
|
|
28
|
-
}
|
|
29
|
-
function D(n, a = {}) {
|
|
30
|
-
const { name: i, operation: r, values: e, valueType: m } = n, t = a.label ?? L(i), d = U(n, a.relativeDates);
|
|
31
|
-
if (d) {
|
|
32
|
-
const o = R(r, d);
|
|
33
|
-
if (o) return `${t}: ${o}`;
|
|
34
|
-
const c = E(d).label;
|
|
35
|
-
if (c)
|
|
36
|
-
return r === "between" ? `${t}: ${c}` : `${t} not in ${c}`;
|
|
37
|
-
}
|
|
38
|
-
if (!e || e.length === 0)
|
|
39
|
-
return r === "is null" ? `${t} is empty` : r === "is not null" ? `${t} is not empty` : "";
|
|
40
|
-
const u = v(n.relativeMeta ?? n.materializedRelativeDate), $ = u ? F(r) : void 0, T = n.temporalPrecision === "minute" || !!(u && ($ ? w(u).bounds[$] === "instant" : w(u).subDay)), s = (o) => {
|
|
41
|
-
if (m === "date" && o) {
|
|
42
|
-
const c = {
|
|
43
|
-
year: "numeric",
|
|
44
|
-
month: "short",
|
|
45
|
-
day: "numeric",
|
|
46
|
-
...T ? {
|
|
47
|
-
hour: "numeric",
|
|
48
|
-
minute: "2-digit"
|
|
49
|
-
} : {}
|
|
50
|
-
};
|
|
51
|
-
if (typeof o == "string" && A.test(o)) {
|
|
52
|
-
const [p, f, h] = o.split("-").map(Number);
|
|
53
|
-
return new Intl.DateTimeFormat(void 0, {
|
|
54
|
-
year: "numeric",
|
|
55
|
-
month: "short",
|
|
56
|
-
day: "numeric",
|
|
57
|
-
timeZone: "UTC"
|
|
58
|
-
}).format(new Date(Date.UTC(p, f - 1, h)));
|
|
59
|
-
}
|
|
60
|
-
if (typeof o == "string" && _(o) === "wall_datetime") {
|
|
61
|
-
const [p, f, h, N, C] = o.split(/[-T :.]/).map(Number);
|
|
62
|
-
return new Intl.DateTimeFormat(void 0, {
|
|
63
|
-
...c,
|
|
64
|
-
timeZone: "UTC"
|
|
65
|
-
}).format(new Date(Date.UTC(p, f - 1, h, N, C)));
|
|
66
|
-
}
|
|
67
|
-
const l = new Date(o);
|
|
68
|
-
if (!isNaN(l.getTime()))
|
|
69
|
-
try {
|
|
70
|
-
return new Intl.DateTimeFormat(void 0, {
|
|
71
|
-
...c,
|
|
72
|
-
...a.timezone ? { timeZone: a.timezone } : {}
|
|
73
|
-
}).format(l);
|
|
74
|
-
} catch {
|
|
75
|
-
return T ? l.toLocaleString(void 0, c) : l.toLocaleDateString(void 0, c);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return String(o);
|
|
79
|
-
};
|
|
80
|
-
switch (r) {
|
|
81
|
-
case "=":
|
|
82
|
-
return `${t}: ${s(e[0])}`;
|
|
83
|
-
case "!=":
|
|
84
|
-
return `${t} ≠ ${s(e[0])}`;
|
|
85
|
-
case ">":
|
|
86
|
-
return `${t} > ${s(e[0])}`;
|
|
87
|
-
case "<":
|
|
88
|
-
return `${t} < ${s(e[0])}`;
|
|
89
|
-
case ">=":
|
|
90
|
-
return `${t} ≥ ${s(e[0])}`;
|
|
91
|
-
case "<=":
|
|
92
|
-
return `${t} ≤ ${s(e[0])}`;
|
|
93
|
-
case "between":
|
|
94
|
-
case "not between": {
|
|
95
|
-
const o = `${s(e[0])} - ${s(e[1])}`;
|
|
96
|
-
return r === "between" ? `${t}: ${o}` : `${t} not in ${o}`;
|
|
97
|
-
}
|
|
98
|
-
case "in":
|
|
99
|
-
return e.length === 1 ? `${t}: ${s(e[0])}` : `${t}: ${g(e, s)}`;
|
|
100
|
-
case "not in":
|
|
101
|
-
return `${t} not in (${g(e, s)})`;
|
|
102
|
-
case "like":
|
|
103
|
-
return `${t} contains "${e[0]}"`;
|
|
104
|
-
case "not like":
|
|
105
|
-
return `${t} doesn't contain "${e[0]}"`;
|
|
106
|
-
default:
|
|
107
|
-
return `${t}: ${g(e, s)}`;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function k(n, a = {}) {
|
|
111
|
-
if (!n || n.length === 0)
|
|
112
|
-
return "";
|
|
113
|
-
const i = /* @__PURE__ */ new Map();
|
|
114
|
-
n.forEach((e) => {
|
|
115
|
-
const m = i.get(e.name) || [];
|
|
116
|
-
m.push(e), i.set(e.name, m);
|
|
117
|
-
});
|
|
118
|
-
const r = [];
|
|
119
|
-
return i.forEach((e, m) => {
|
|
120
|
-
if (e.length === 1) {
|
|
121
|
-
const t = D(e[0], a);
|
|
122
|
-
t && r.push(t);
|
|
123
|
-
} else {
|
|
124
|
-
const t = L(m), d = e.map((u) => D(u, a).replace(`${t}: `, "").replace(`${t} `, "")).filter(Boolean);
|
|
125
|
-
d.length > 0 && r.push(`${t}: ${d.join(" and ")}`);
|
|
126
|
-
}
|
|
127
|
-
}), r.join(" | ");
|
|
128
|
-
}
|
|
129
|
-
export {
|
|
130
|
-
y as F,
|
|
131
|
-
k as a,
|
|
132
|
-
D as f,
|
|
133
|
-
I as r
|
|
134
|
-
};
|