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
package/dist/chunks/{saved-dashboard-context-CvzYqADe.js → saved-dashboard-context-C1WlOx5z.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var Z = Object.defineProperty;
|
|
2
2
|
var Q = (e, t, a) => t in e ? Z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var F = (e, t, a) => Q(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
-
import { D as S, F as U, G as K, H as W } from "./bookmark-state-
|
|
5
|
-
import { s as X,
|
|
6
|
-
import { c as ue, e as L, b as me, d as fe, p as q, f as he, g as pe, r as
|
|
4
|
+
import { D as S, F as U, G as K, H as W } from "./bookmark-state-CBSTdW6q.js";
|
|
5
|
+
import { s as X, p as Y, q as ee, t as te, u as ae, v as re, w as ne, x as se, y as oe, z as ie, A as j, B as de, C as le, D as ce } from "./resolve-dashboard-input-context-CULCE_hM.js";
|
|
6
|
+
import { c as ue, e as L, b as me, d as fe, p as q, f as he, g as pe, r as D, i as O, j as be, m as ge, k as Ce } from "./stored-dashboard-BuM8vnWf.js";
|
|
7
7
|
import { f as g, A as P, c as Ie, d as ye, e as M } from "./context-BJoEFgNl.js";
|
|
8
|
-
import { a as ve, T as xe, P as Ve, o as I, d as B, b as
|
|
9
|
-
import {
|
|
10
|
-
import { b as ke } from "./metric-comparison-
|
|
11
|
-
import { i as qe } from "./matrix-analytical-definition-
|
|
12
|
-
function
|
|
8
|
+
import { a as ve, T as xe, P as Ve, o as I, d as B, b as _ } from "./filter-value-text-D3-bf3_b.js";
|
|
9
|
+
import { k as Se, a9 as $e } from "./validators-ClWHpYql.js";
|
|
10
|
+
import { b as ke } from "./metric-comparison-zMylnIkc.js";
|
|
11
|
+
import { i as qe } from "./matrix-analytical-definition-CgQgVeeI.js";
|
|
12
|
+
function De(e) {
|
|
13
13
|
const t = e.qualifiedFieldName || e.name;
|
|
14
14
|
return e.label && e.label !== t ? `${e.label} (field ${t})` : t;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function _e(e, t = {}) {
|
|
17
17
|
if (!e) return [];
|
|
18
18
|
const a = N(e, t);
|
|
19
19
|
return a.length === 0 ? [] : e.logicalOperator === "AND" && !e.negate ? a : [z(e, a)];
|
|
@@ -25,7 +25,7 @@ function N(e, t) {
|
|
|
25
25
|
const s = z(r, n);
|
|
26
26
|
return [n.length > 1 && !r.negate ? { ...s, text: `(${s.text})` } : s];
|
|
27
27
|
});
|
|
28
|
-
return [...e.conditions.map((r) =>
|
|
28
|
+
return [...e.conditions.map((r) => we(r, t)), ...a];
|
|
29
29
|
}
|
|
30
30
|
function z(e, t) {
|
|
31
31
|
const a = t.map((r) => r.text).join(e.logicalOperator === "OR" ? " or " : " and ");
|
|
@@ -34,10 +34,10 @@ function z(e, t) {
|
|
|
34
34
|
omittedValues: t.reduce((r, n) => r + n.omittedValues, 0)
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function we(e, t) {
|
|
38
38
|
const a = Array.isArray(e.value) ? e.value : [e.value];
|
|
39
39
|
return ve({
|
|
40
|
-
subject:
|
|
40
|
+
subject: De(e.field),
|
|
41
41
|
operator: e.operator,
|
|
42
42
|
values: a,
|
|
43
43
|
reading: Fe(e),
|
|
@@ -180,7 +180,7 @@ function Be(e, { calendar: t }) {
|
|
|
180
180
|
text: g(b.text, h.textChars),
|
|
181
181
|
...b.omittedValues ? { omittedValues: b.omittedValues } : {}
|
|
182
182
|
};
|
|
183
|
-
}), o = a.resolvedFilterParts, c = [["card", o.authored], ["drill", o.drill], ["selection", o.selections]].flatMap(([i, u]) =>
|
|
183
|
+
}), o = a.resolvedFilterParts, c = [["card", o.authored], ["drill", o.drill], ["selection", o.selections]].flatMap(([i, u]) => _e(u, r).map((d) => ({
|
|
184
184
|
origin: i,
|
|
185
185
|
text: g(d.text, h.textChars),
|
|
186
186
|
...d.omittedValues ? { omittedValues: d.omittedValues } : {}
|
|
@@ -214,7 +214,7 @@ function ze(e) {
|
|
|
214
214
|
return {
|
|
215
215
|
label: g(((o = a.get(r)) == null ? void 0 : o.label) || r, h.labelChars),
|
|
216
216
|
valueText: g(
|
|
217
|
-
`${
|
|
217
|
+
`${_(l, { maxListedValues: h.inputValues }).text}${m.size ? `; ${[...m].join("; ")}` : ""}`,
|
|
218
218
|
h.textChars
|
|
219
219
|
)
|
|
220
220
|
};
|
|
@@ -225,7 +225,7 @@ function He(e) {
|
|
|
225
225
|
return L({ sql: e.card.sql, controlBindings: t.controlBindings }).map((a) => ({
|
|
226
226
|
name: g(a.paramId, h.labelChars),
|
|
227
227
|
valueText: g(
|
|
228
|
-
|
|
228
|
+
_(t.controlValues[a.controlId], { maxListedValues: h.inputValues }).text,
|
|
229
229
|
h.textChars
|
|
230
230
|
)
|
|
231
231
|
}));
|
|
@@ -396,7 +396,7 @@ function Xe(e, t, a) {
|
|
|
396
396
|
if ((n == null ? void 0 : n.kind) === "filter" && n.filterValue)
|
|
397
397
|
o = B(n.filterValue, s, m);
|
|
398
398
|
else if ((n == null ? void 0 : n.kind) === "control") {
|
|
399
|
-
const i =
|
|
399
|
+
const i = _(n.controlValue, m);
|
|
400
400
|
o = { text: `${s} is set to ${i.text}`, omittedValues: i.omittedValues };
|
|
401
401
|
}
|
|
402
402
|
if (!o) return;
|
|
@@ -421,7 +421,7 @@ function ft(e) {
|
|
|
421
421
|
}
|
|
422
422
|
function Ye(e) {
|
|
423
423
|
const { place: t, calendar: a } = e, r = q(e.dashboard), n = be({ dashboard: r, host: {}, calendar: a, materializeInputs: !1 }), s = {
|
|
424
|
-
...
|
|
424
|
+
...D({ dashboard: r, capture: {}, calendar: a }).runtimeValues,
|
|
425
425
|
cardViewState: t.cardViewState ?? {}
|
|
426
426
|
}, l = t.cardId ? tt(r, t.cardId) : void 0, m = l ? G({
|
|
427
427
|
dashboard: r,
|
|
@@ -448,7 +448,7 @@ function Ye(e) {
|
|
|
448
448
|
};
|
|
449
449
|
}
|
|
450
450
|
function et(e) {
|
|
451
|
-
const t = e.dashboard ? S(e.dashboard).find((r) => r.cardId === e.cardId) : void 0, a =
|
|
451
|
+
const t = e.dashboard ? S(e.dashboard).find((r) => r.cardId === e.cardId) : void 0, a = w({
|
|
452
452
|
card: e.card ?? (t == null ? void 0 : t.card),
|
|
453
453
|
snapshot: e.snapshot,
|
|
454
454
|
documentSection: (t == null ? void 0 : t.kind) === "documentSectionCard"
|
|
@@ -488,7 +488,7 @@ function G(e) {
|
|
|
488
488
|
...e.withRequest ? { withRequest: !0 } : {}
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function w(e) {
|
|
492
492
|
var a;
|
|
493
493
|
const { snapshot: t } = e;
|
|
494
494
|
if (e.documentSection) return { status: "unavailable", reason: "document_section" };
|
|
@@ -518,7 +518,7 @@ function ht(e) {
|
|
|
518
518
|
), n = S(r).find((c) => c.cardId === e.cardId);
|
|
519
519
|
if (!n) return { status: "refused", reason: "card_not_found" };
|
|
520
520
|
if (n.kind === "documentSectionCard") return { status: "refused", reason: "document_section" };
|
|
521
|
-
const { runtimeValues: s, transientContexts: l } =
|
|
521
|
+
const { runtimeValues: s, transientContexts: l } = D({
|
|
522
522
|
dashboard: r,
|
|
523
523
|
capture: a,
|
|
524
524
|
calendar: t
|
|
@@ -532,7 +532,7 @@ function ht(e) {
|
|
|
532
532
|
withRequest: !0
|
|
533
533
|
});
|
|
534
534
|
if (!m) return { status: "refused", reason: "card_not_found" };
|
|
535
|
-
const o =
|
|
535
|
+
const o = w({ card: n.card, snapshot: m, documentSection: !1 });
|
|
536
536
|
return o.status === "ready" ? { ...o, renderConfig: m.queryContext.finalConfig } : o.reason === "pending" ? { status: "refused", reason: "blocked" } : {
|
|
537
537
|
status: "refused",
|
|
538
538
|
reason: o.reason,
|
|
@@ -571,7 +571,7 @@ function pt(e) {
|
|
|
571
571
|
if ((l == null ? void 0 : l.kind) !== "variable") return { status: "refused", reason: "broken", message: `${n.name} has no card to run.` };
|
|
572
572
|
const m = ie(s) && s.document ? s.document : void 0, o = rt(a, s.id, !!m, e.inputs ?? {}, t);
|
|
573
573
|
if (!o.ok) return { status: "refused", reason: "broken", message: o.message };
|
|
574
|
-
const { runtimeValues: c, transientContexts: i } =
|
|
574
|
+
const { runtimeValues: c, transientContexts: i } = D({ dashboard: a, capture: o.capture, calendar: t }), u = m ? { sheetId: s.id, sectionId: void 0, documentFilterValues: [], documentControlDefinitions: [], documentControlValues: {} } : void 0, d = O({
|
|
575
575
|
dashboard: a,
|
|
576
576
|
cardId: n.id,
|
|
577
577
|
cardOverride: l.card,
|
|
@@ -591,7 +591,7 @@ function pt(e) {
|
|
|
591
591
|
});
|
|
592
592
|
if ((d == null ? void 0 : d.status) === "blocked")
|
|
593
593
|
return d.reason === "requiredInput" ? { status: "refused", reason: "held", message: `${n.name} waits for ${d.missingRequiredLabels.join(", ")}.`, missingRequired: d.missingRequiredLabels } : { status: "refused", reason: "broken", message: d.message ?? `${n.name} can't run until its filter mapping is resolved.` };
|
|
594
|
-
const b =
|
|
594
|
+
const b = w({ card: l.card, snapshot: d, documentSection: !1 });
|
|
595
595
|
return b.status !== "ready" ? { status: "refused", reason: "broken", message: b.message ?? `${n.name} has no query to run.` } : { status: "ready", variable: n, place: m ? "document" : "sheet", request: b.request };
|
|
596
596
|
}
|
|
597
597
|
function rt(e, t, a, r, n) {
|
|
@@ -624,7 +624,7 @@ export {
|
|
|
624
624
|
et as a,
|
|
625
625
|
ht as b,
|
|
626
626
|
pt as c,
|
|
627
|
-
|
|
627
|
+
w as d,
|
|
628
628
|
ft as e,
|
|
629
629
|
Ye as f,
|
|
630
630
|
G as g,
|
package/dist/chunks/{selection-filter-compiler-SwrBvyyJ.js → selection-filter-compiler-ifT8JCXS.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as d } from "./matrix-analytical-definition-
|
|
1
|
+
import { i as d } from "./matrix-analytical-definition-CgQgVeeI.js";
|
|
2
2
|
function m(e, t) {
|
|
3
3
|
var a, l;
|
|
4
4
|
const n = e.name.split(".").pop(), r = (a = e.fieldMeta) == null ? void 0 : a.qualifiedFieldName, i = !!(t.qualifiedFieldName && (r || e.name) === t.qualifiedFieldName), o = !((l = t.qualifiedFieldName) != null && l.includes(".")) && n === t.name;
|