react-semaphor 0.1.603 → 0.1.604
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 +1 -73
- package/dist/analytics-protocol/index.js +1 -1491
- package/dist/appearance/index.js +1 -12
- package/dist/appearance-runtime/index.js +1 -5
- package/dist/assistant-context/index.js +1 -11
- package/dist/assistant-protocol/index.js +1 -152
- package/dist/brand-studio/index.js +4 -1594
- package/dist/briefings/index.js +1 -70
- package/dist/chunks/add-to-dashboard-DeHEBEqG.js +12 -0
- package/dist/chunks/analytics-base-schemas-BREc5WGv.js +1 -0
- package/dist/chunks/appearance-context-BqBZrijL.js +1 -0
- package/dist/chunks/appearance-runtime-provider-DmbCrOOG.js +1 -0
- package/dist/chunks/applied-constraints-CinevlKD.js +1 -0
- package/dist/chunks/assistant-chat-CjYrwVDa.js +56 -0
- package/dist/chunks/attribution-BEFSsbNn.js +1 -0
- package/dist/chunks/availability-3AIOf6Z-.js +1 -0
- package/dist/chunks/bookmark-impact-C89zBLq3.js +1 -0
- package/dist/chunks/bookmark-state-69YYnRql.js +1 -0
- package/dist/chunks/brand-DCaZyRt6.js +1 -0
- package/dist/chunks/card-filter-builder-CTp6RAz1.js +17 -0
- package/dist/chunks/column-bands-DwxbZ6UI.js +1 -0
- package/dist/chunks/comparison-window-caption-C312mn3s.js +1 -0
- package/dist/chunks/context-ALdccLHw.js +2 -0
- package/dist/chunks/conversation-JMK2kyTK.js +1 -0
- package/dist/chunks/dashboard-BX28ld6s.js +1 -0
- package/dist/chunks/dashboard-briefing-launcher-qo7GH4EO.js +37 -0
- package/dist/chunks/dashboard-controls-DhRjB7MA.js +42 -0
- package/dist/chunks/dashboard-json-9cHzhSjC.js +1 -0
- package/dist/chunks/dates-D-KP8G-z.js +1 -0
- package/dist/chunks/edit-DEAK0UZo.js +1 -0
- package/dist/chunks/edit-dashboard-visual-Duq_QkB_.js +93 -0
- package/dist/chunks/export-file-format-B-wQNHIn.js +4 -0
- package/dist/chunks/filter-line-CwQrqORc.js +1 -0
- package/dist/chunks/filter-reach-preview-gixPFlZj.js +1 -0
- package/dist/chunks/filter-value-text-B3tXakhd.js +1 -0
- package/dist/chunks/index-B-VF1ogs.js +1 -0
- package/dist/chunks/index-BE1DfxNs.js +1 -0
- package/dist/chunks/index-DViPGDFj.js +1 -0
- package/dist/chunks/layout-grid-BWtlgw0T.js +6 -0
- package/dist/chunks/matrix-analytical-definition-CtFqWyCK.js +1 -0
- package/dist/chunks/matrix-member-presentation-Q0MCJ-YK.js +1 -0
- package/dist/chunks/matrix-operation-contract-D1RC1bfi.js +1 -0
- package/dist/chunks/metric-comparison-DEZYXROZ.js +1 -0
- package/dist/chunks/normalize-dashboard-for-dirty-check-ILKfqgL3.js +1 -0
- package/dist/chunks/paintbrush-BjS3SbrH.js +6 -0
- package/dist/chunks/palette-BzC-CGOc.js +6 -0
- package/dist/chunks/pickers-DuBrUht0.js +1 -0
- package/dist/chunks/pivot-result-contract-expectations-DTQAgr4n.js +1 -0
- package/dist/chunks/pivot-result-identity-DTNCB--h.js +1 -0
- package/dist/chunks/raw-temporal-value-DeyEhL0S.js +1 -0
- package/dist/chunks/rendered-file-BbvwaU6z.js +1 -0
- package/dist/chunks/report-preferences-dialog-B_gUmCzG.js +1 -0
- package/dist/chunks/report-runtime-context-BWzIHCKK.js +1 -0
- package/dist/chunks/resolve-dashboard-input-context-B-TtRqxu.js +8 -0
- package/dist/chunks/resolver-AN9ChBfZ.js +1 -0
- package/dist/chunks/save-DdFUZcbi.js +6 -0
- package/dist/chunks/saved-dashboard-context-BAJ5tWiq.js +1 -0
- package/dist/chunks/schema-MC0cQSAb.js +4 -0
- package/dist/chunks/selection-filter-compiler-CCoCD25M.js +1 -0
- package/dist/chunks/semaphor-ready-indicator-DzjorP3t.js +999 -0
- package/dist/chunks/set-DuJfGkbY.js +1 -0
- package/dist/chunks/shelf-drop-preview-context-BlLJ5RsT.js +6 -0
- package/dist/chunks/stored-dashboard-Ctcpkllg.js +1 -0
- package/dist/chunks/style-sheet-parts-BRGt9O05.js +178 -0
- package/dist/chunks/table-export-sheet-rC5pKmXg.js +2 -0
- package/dist/chunks/token-types-Bj9iMy0w.js +1 -0
- package/dist/chunks/validators-CqV3Yka1.js +1 -0
- package/dist/chunks/variable-draft-DJrfUyhv.js +1 -0
- package/dist/chunks/visual-choice-DgEFfkE-.js +1 -0
- package/dist/dashboard/index.js +1 -7
- package/dist/dashboard-authoring/index.js +1 -4614
- package/dist/format-utils/index.js +1 -425
- package/dist/index.js +1 -554
- package/dist/layouts/index.js +1 -7
- package/dist/live-channel/index.js +1 -124
- package/dist/pdf-export-policy/index.js +1 -92
- package/dist/pdf-table-layout/index.js +1 -993
- package/dist/report-runtime-context/index.js +1 -9
- package/dist/shared/index.js +1 -6
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -9
- package/dist/types/index.js +1 -88
- package/dist/types/lib/filter-values/build-card-filter-definition.d.ts +32 -0
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +9 -0
- package/dist/types/lib/stores/explorer-actions.d.ts +7 -6
- package/dist/types/lib/types/semantic-types.d.ts +6 -10
- package/dist/types/lib/utils/field-state-calculator.d.ts +7 -19
- package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-base.d.ts +125 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-field-folders.d.ts +55 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-joins.d.ts +114 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-prune.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/filter-field-catalog.d.ts +60 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/filter-field-folders.d.ts +132 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/index.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/join-reach.d.ts +42 -0
- package/dist/types/shared/dashboard-authoring/card-field-places.d.ts +28 -0
- package/dist/types/shared/dashboard-authoring/field-folders/field-folders.d.ts +115 -0
- package/dist/types/shared/dashboard-authoring/field-folders/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/filter-reach-decision.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +6 -1
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +7 -22
- package/dist/usage-events/index.js +1 -285
- package/dist/value-format-preferences/index.js +1 -635
- package/package.json +4 -1
- package/dist/chunks/add-to-dashboard-CFF-wFU-.js +0 -291
- package/dist/chunks/analytics-base-schemas-DsUh5Q3C.js +0 -680
- package/dist/chunks/appearance-context-BwBp25ZG.js +0 -162
- package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +0 -80
- package/dist/chunks/applied-constraints-DU-wndZ7.js +0 -47
- package/dist/chunks/assistant-chat-B6hNQI1t.js +0 -6115
- package/dist/chunks/attribution-BvoKvhcj.js +0 -32
- package/dist/chunks/availability-Bp5Gfu1I.js +0 -44
- package/dist/chunks/bookmark-impact-Ba2PLcGp.js +0 -76
- package/dist/chunks/bookmark-state-n7AaNzR_.js +0 -1667
- package/dist/chunks/brand-BoUV0iHF.js +0 -54
- package/dist/chunks/card-filter-builder-Y22HizVx.js +0 -4069
- package/dist/chunks/column-bands-RdM-kjDe.js +0 -47
- package/dist/chunks/comparison-window-caption-Ck2TIbnR.js +0 -741
- package/dist/chunks/context-UCQ7sere.js +0 -369
- package/dist/chunks/conversation-sQiWYUOb.js +0 -16
- package/dist/chunks/dashboard-BghI99oY.js +0 -14
- package/dist/chunks/dashboard-briefing-launcher-DtBAnGiH.js +0 -4875
- package/dist/chunks/dashboard-controls-CtFXlyjV.js +0 -2290
- package/dist/chunks/dashboard-json-DfGBUtCd.js +0 -66
- package/dist/chunks/dates-BnrXF4bb.js +0 -185
- package/dist/chunks/edit-9df1zOWe.js +0 -226
- package/dist/chunks/edit-dashboard-visual-oxt3x1wb.js +0 -18397
- package/dist/chunks/export-file-format-C-tJsxsf.js +0 -111
- package/dist/chunks/filter-line-Cy5YYqRL.js +0 -703
- package/dist/chunks/filter-reach-copy-CE_ZX147.js +0 -5111
- package/dist/chunks/filter-value-text-fWvSDwkl.js +0 -153
- package/dist/chunks/index-BVKzKl5d.js +0 -90
- package/dist/chunks/index-CV_Kzou0.js +0 -595
- package/dist/chunks/index-D5rxbtS4.js +0 -2795
- package/dist/chunks/layout-grid-9LndRoLa.js +0 -16
- package/dist/chunks/matrix-analytical-definition-CCp48UCw.js +0 -1233
- package/dist/chunks/matrix-member-presentation-zNehruXR.js +0 -391
- package/dist/chunks/matrix-operation-contract-DPBj69D8.js +0 -1413
- package/dist/chunks/metric-comparison-B0FR-Q8I.js +0 -600
- package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +0 -119
- package/dist/chunks/paintbrush-58FQYY-y.js +0 -27
- package/dist/chunks/palette-Be62Tkoa.js +0 -23
- package/dist/chunks/pickers-DkqmtnTL.js +0 -2403
- package/dist/chunks/pivot-result-contract-expectations-BYqAmG9n.js +0 -5092
- package/dist/chunks/pivot-result-identity-CAP4--iq.js +0 -77
- package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +0 -3778
- package/dist/chunks/rendered-file-D8xEuVVx.js +0 -108
- package/dist/chunks/report-preferences-dialog-uJp9GBTM.js +0 -1651
- package/dist/chunks/report-runtime-context-c77_KF9v.js +0 -388
- package/dist/chunks/resolve-dashboard-input-context-Rtl1ffmE.js +0 -25324
- package/dist/chunks/resolver-DG_tfEpt.js +0 -156
- package/dist/chunks/save-C5A0JnEV.js +0 -21
- package/dist/chunks/saved-dashboard-context-tcyTU8jm.js +0 -618
- package/dist/chunks/schema-C9NPiIru.js +0 -2568
- package/dist/chunks/selection-filter-compiler-DNijjI5y.js +0 -150
- package/dist/chunks/semaphor-ready-indicator-FBvunj6S.js +0 -145603
- package/dist/chunks/shelf-drop-preview-context-QKStrcK9.js +0 -2466
- package/dist/chunks/stored-dashboard-CHozcAY9.js +0 -4075
- package/dist/chunks/style-sheet-parts-CDCG-8Ej.js +0 -8681
- package/dist/chunks/table-export-sheet-ZFIvs6Sj.js +0 -949
- package/dist/chunks/token-types-XbM6QByy.js +0 -8
- package/dist/chunks/upload-H15d7uHK.js +0 -15
- package/dist/chunks/validators-Baf3VIf5.js +0 -3686
- package/dist/chunks/variable-draft-C2y8Jp6Z.js +0 -242
- package/dist/chunks/visual-choice-DDfHfHvY.js +0 -172
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { i as m } from "./matrix-analytical-definition-CCp48UCw.js";
|
|
2
|
-
function d(e, t) {
|
|
3
|
-
var o, l;
|
|
4
|
-
const r = e.name.split(".").pop(), n = (o = e.fieldMeta) == null ? void 0 : o.qualifiedFieldName, i = !!(t.qualifiedFieldName && (n || e.name) === t.qualifiedFieldName), a = !((l = t.qualifiedFieldName) != null && l.includes(".")) && r === t.name;
|
|
5
|
-
return i || a;
|
|
6
|
-
}
|
|
7
|
-
const g = /* @__PURE__ */ new Set(["between", ">=", ">", "<=", "<", "="]);
|
|
8
|
-
function N(e) {
|
|
9
|
-
return e.dateOwner === "global_date";
|
|
10
|
-
}
|
|
11
|
-
function y(e, t, r = {}) {
|
|
12
|
-
const n = e.filters;
|
|
13
|
-
if (!n || !Array.isArray(n.conditions) || !f(n)) return e;
|
|
14
|
-
const i = t.filter(N);
|
|
15
|
-
if (!i.length) return e;
|
|
16
|
-
const a = (l) => {
|
|
17
|
-
var s;
|
|
18
|
-
return g.has(l.operator) && l.latestValue !== !0 && l.viewerZoom !== !0 && !((s = r.resolvedAtRun) != null && s.call(r, l)) && i.some(
|
|
19
|
-
(u) => d(u, { name: l.field.name, qualifiedFieldName: l.field.qualifiedFieldName })
|
|
20
|
-
);
|
|
21
|
-
}, o = n.conditions.filter((l) => !a(l));
|
|
22
|
-
return o.length === n.conditions.length ? e : { ...e, filters: { ...n, conditions: o } };
|
|
23
|
-
}
|
|
24
|
-
function f(e) {
|
|
25
|
-
var t;
|
|
26
|
-
return !e.negate && (e.logicalOperator === "AND" || e.conditions.length + (((t = e.groups) == null ? void 0 : t.length) ?? 0) <= 1);
|
|
27
|
-
}
|
|
28
|
-
function F(e, t, r) {
|
|
29
|
-
const n = t.filter((i) => !!i);
|
|
30
|
-
return e ? n.length ? Array.isArray(e.conditions) && f(e) ? { ...e, logicalOperator: "AND", groups: [...e.groups ?? [], ...n] } : { id: r, logicalOperator: "AND", negate: !1, conditions: [], groups: [e, ...n] } : e : n.length ? { id: r, logicalOperator: "AND", negate: !1, conditions: [], groups: n } : void 0;
|
|
31
|
-
}
|
|
32
|
-
function w(e) {
|
|
33
|
-
return !e || !Array.isArray(e.conditions) ? [] : f(e) ? [
|
|
34
|
-
...e.conditions,
|
|
35
|
-
...(e.groups ?? []).flatMap((t) => w(t))
|
|
36
|
-
] : [];
|
|
37
|
-
}
|
|
38
|
-
function O(e, t) {
|
|
39
|
-
const r = e.filters;
|
|
40
|
-
if (!r || !Array.isArray(r.conditions) || !f(r) || !t.length)
|
|
41
|
-
return e;
|
|
42
|
-
const n = (a, o) => {
|
|
43
|
-
var u;
|
|
44
|
-
if (m(a.filterId)) return !1;
|
|
45
|
-
const l = { name: o.field.name, qualifiedFieldName: o.field.qualifiedFieldName }, s = !((u = a.fieldMeta) != null && u.qualifiedFieldName);
|
|
46
|
-
return d(a, l) || s && a.name === l.name;
|
|
47
|
-
}, i = r.conditions.filter(
|
|
48
|
-
(a) => !t.some((o) => n(o, a))
|
|
49
|
-
);
|
|
50
|
-
return i.length === r.conditions.length ? e : { ...e, filters: { ...r, conditions: i } };
|
|
51
|
-
}
|
|
52
|
-
function q(e, t) {
|
|
53
|
-
return {
|
|
54
|
-
id: t,
|
|
55
|
-
field: e.field,
|
|
56
|
-
operator: e.operator,
|
|
57
|
-
value: e.value,
|
|
58
|
-
label: e.label,
|
|
59
|
-
temporalBucket: e.temporalBucket,
|
|
60
|
-
...e.rawTemporal ? { rawTemporal: e.rawTemporal } : {}
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
function c(e) {
|
|
64
|
-
var t;
|
|
65
|
-
return JSON.stringify([
|
|
66
|
-
((t = e.field) == null ? void 0 : t.id) ?? "",
|
|
67
|
-
e.operator,
|
|
68
|
-
e.value ?? null,
|
|
69
|
-
e.temporalBucket ?? null,
|
|
70
|
-
e.rawTemporal ?? null
|
|
71
|
-
]);
|
|
72
|
-
}
|
|
73
|
-
function A(e) {
|
|
74
|
-
return JSON.stringify(e.map(c).sort());
|
|
75
|
-
}
|
|
76
|
-
function p(e) {
|
|
77
|
-
const t = /* @__PURE__ */ new Map();
|
|
78
|
-
for (const r of e)
|
|
79
|
-
for (const n of r.tuples) {
|
|
80
|
-
const i = n.conditions.filter(
|
|
81
|
-
(l) => {
|
|
82
|
-
var s;
|
|
83
|
-
return (s = l.field) == null ? void 0 : s.id;
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
if (i.length === 0) continue;
|
|
87
|
-
let a = t.get(r.sourceCardId);
|
|
88
|
-
a || (a = /* @__PURE__ */ new Map(), t.set(r.sourceCardId, a));
|
|
89
|
-
const o = [...i].sort(
|
|
90
|
-
(l, s) => c(l).localeCompare(c(s))
|
|
91
|
-
);
|
|
92
|
-
a.set(A(o), o);
|
|
93
|
-
}
|
|
94
|
-
return [...t.entries()].sort(([r], [n]) => r.localeCompare(n)).map(([r, n]) => ({
|
|
95
|
-
sourceCardId: r,
|
|
96
|
-
tuples: [...n.entries()].sort(([i], [a]) => i.localeCompare(a)).map(([, i]) => ({ conditions: i }))
|
|
97
|
-
}));
|
|
98
|
-
}
|
|
99
|
-
function b(e) {
|
|
100
|
-
const t = p(e);
|
|
101
|
-
if (t.length !== 0)
|
|
102
|
-
return {
|
|
103
|
-
id: "selection",
|
|
104
|
-
logicalOperator: "AND",
|
|
105
|
-
negate: !1,
|
|
106
|
-
conditions: [],
|
|
107
|
-
groups: t.map((r) => {
|
|
108
|
-
const n = `selection:${r.sourceCardId}`;
|
|
109
|
-
return {
|
|
110
|
-
id: n,
|
|
111
|
-
logicalOperator: "OR",
|
|
112
|
-
negate: !1,
|
|
113
|
-
conditions: [],
|
|
114
|
-
groups: r.tuples.map((i, a) => {
|
|
115
|
-
const o = `${n}:${a}`;
|
|
116
|
-
return {
|
|
117
|
-
id: o,
|
|
118
|
-
logicalOperator: "AND",
|
|
119
|
-
negate: !1,
|
|
120
|
-
conditions: i.conditions.map((l, s) => ({
|
|
121
|
-
...l,
|
|
122
|
-
id: `${o}:${s}`
|
|
123
|
-
})),
|
|
124
|
-
groups: []
|
|
125
|
-
};
|
|
126
|
-
})
|
|
127
|
-
};
|
|
128
|
-
})
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
function D(e) {
|
|
132
|
-
return JSON.stringify(
|
|
133
|
-
p(e).map((t) => [
|
|
134
|
-
t.sourceCardId,
|
|
135
|
-
t.tuples.map((r) => r.conditions.map(c))
|
|
136
|
-
])
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
export {
|
|
140
|
-
f as a,
|
|
141
|
-
O as b,
|
|
142
|
-
b as c,
|
|
143
|
-
d as f,
|
|
144
|
-
N as i,
|
|
145
|
-
F as n,
|
|
146
|
-
D as s,
|
|
147
|
-
q as t,
|
|
148
|
-
w as u,
|
|
149
|
-
y as w
|
|
150
|
-
};
|