react-semaphor 0.1.600 → 0.1.602
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-BWF3GYip.js} +12 -12
- package/dist/chunks/{bookmark-impact-kdvXke8n.js → bookmark-impact-BF3iRx5a.js} +3 -3
- package/dist/chunks/{bookmark-state-h1OLXVjE.js → bookmark-state-CBSTdW6q.js} +4 -4
- package/dist/chunks/{card-filter-builder-CSCdSQQy.js → card-filter-builder-B8XHwMY6.js} +394 -394
- package/dist/chunks/comparison-window-caption-W83qB4V5.js +741 -0
- package/dist/chunks/{dashboard-y9ON19ge.js → dashboard-DG5EIYYB.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-9YwUclHA.js → dashboard-briefing-launcher-CBSrhyWZ.js} +727 -718
- package/dist/chunks/{dashboard-controls-O6PNXMCp.js → dashboard-controls-D6ECO4N1.js} +15 -15
- package/dist/chunks/{dashboard-json-Bxf91TYq.js → dashboard-json-DrJftBSL.js} +4 -4
- package/dist/chunks/{dates-DPTbpNxK.js → dates-Bz-qM5px.js} +10 -10
- package/dist/chunks/{edit-dashboard-visual-CKwaW8H_.js → edit-dashboard-visual-BDYAJIbb.js} +1569 -1548
- package/dist/chunks/filter-line-BXT6y303.js +703 -0
- package/dist/chunks/{filter-reach-copy-ClzNcNhP.js → filter-reach-copy-BukhZmzm.js} +1688 -1806
- package/dist/chunks/{filter-value-text-CXyuLW9Q.js → filter-value-text-D3-bf3_b.js} +6 -6
- package/dist/chunks/{index-CRo5--Y6.js → index-BW0yozjs.js} +386 -360
- package/dist/chunks/{layout-grid-DSrBSfPM.js → layout-grid-Ds0diMeY.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-i9PQY066.js → matrix-analytical-definition-CgQgVeeI.js} +35 -35
- package/dist/chunks/{matrix-member-presentation-B_2beBc0.js → matrix-member-presentation-DSBIIudt.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-DdK0J_KU.js → matrix-operation-contract--DkNCOzd.js} +517 -514
- package/dist/chunks/{metric-comparison-Bhz0V841.js → metric-comparison-zMylnIkc.js} +3 -3
- package/dist/chunks/{paintbrush-1UiU-uTz.js → paintbrush-CX8pao1j.js} +1 -1
- package/dist/chunks/{palette-DFIFf_-m.js → palette-CuA0HlzF.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Dk7WFR_u.js → pivot-result-contract-expectations-C8KL7hPx.js} +14 -14
- package/dist/chunks/{pivot-result-identity-CzzrJpEm.js → pivot-result-identity-C1AOH1PS.js} +1 -1
- package/dist/chunks/{raw-temporal-value-BLvdaMng.js → raw-temporal-value-E416F-0L.js} +16 -16
- package/dist/chunks/{report-preferences-dialog-DiDsYpng.js → report-preferences-dialog-CbuVNDGi.js} +13 -13
- package/dist/chunks/{report-runtime-context-CEGluufW.js → report-runtime-context-E7USjN7E.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-BAv33KGg.js → resolve-dashboard-input-context-CULCE_hM.js} +8419 -7054
- package/dist/chunks/{save-CWQ02kHo.js → save-BKHlDONy.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CvzYqADe.js → saved-dashboard-context-C1WlOx5z.js} +24 -24
- package/dist/chunks/{selection-filter-compiler-SwrBvyyJ.js → selection-filter-compiler-ifT8JCXS.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-1PRI9Yh2.js → semaphor-ready-indicator-CBIRcDWs.js} +33810 -32067
- package/dist/chunks/{shelf-drop-preview-context-BLk5Nc6K.js → shelf-drop-preview-context-xR69SMA8.js} +53 -53
- package/dist/chunks/{stored-dashboard-xhYYKBsO.js → stored-dashboard-BuM8vnWf.js} +679 -657
- package/dist/chunks/{style-sheet-parts-BX7d7-2-.js → style-sheet-parts-Bt9ZNre8.js} +2 -2
- package/dist/chunks/{table-export-sheet-BWSVTclx.js → table-export-sheet-DVljtHkG.js} +1 -1
- package/dist/chunks/{token-types-CnlEiAdS.js → token-types-D_xKgyVS.js} +1 -1
- package/dist/chunks/{upload-DsqUSS8l.js → upload-Dll_M7XQ.js} +1 -1
- package/dist/chunks/{validators-D2Hm57lJ.js → validators-ClWHpYql.js} +80 -80
- package/dist/chunks/{variable-draft-DcKj8T1b.js → variable-draft-CDGGl53R.js} +27 -28
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +3086 -2573
- package/dist/format-utils/index.js +238 -237
- package/dist/index.js +71 -73
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +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/components/dashboard/dashboard-web-component.d.ts +7 -0
- package/dist/types/index.js +5 -5
- package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +1 -1
- 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/lib/query-context/assemble-card-query.d.ts +6 -1
- package/dist/types/lib/stores/dashboard-store.d.ts +30 -0
- package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +52 -0
- package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +129 -0
- package/dist/types/shared/dashboard-authoring/calculations/resolve-dashboard-field-copies.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/calculations/tokens.d.ts +36 -0
- package/dist/types/shared/dashboard-authoring/card-data-file.d.ts +31 -0
- package/dist/types/shared/dashboard-authoring/changes/calculation-change.d.ts +399 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +144 -2
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +21 -2
- package/dist/types/shared/dashboard-authoring/changes/domain-change.d.ts +143 -266
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +10 -1
- package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +133 -0
- package/dist/types/shared/dashboard-authoring/operations/card-operations.d.ts +71 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +18 -5
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +21 -0
- package/dist/types/shared/usage-events/details.d.ts +2 -2
- package/dist/types/shared/usage-events/envelope.d.ts +2 -2
- 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
|
-
};
|