react-semaphor 0.1.590 → 0.1.592
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 +254 -236
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +7 -7
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{aggregate-measure-field-BrkXsSJp.js → aggregate-measure-field-DHlDj0Pc.js} +2 -2
- package/dist/chunks/{assistant-chat-C_6dBLUk.js → assistant-chat-BusR-5uT.js} +13 -13
- package/dist/chunks/bookmark-impact-DozXJZDS.js +76 -0
- package/dist/chunks/{bookmark-state-Bn7k3ttp.js → bookmark-state-Be2W3s6t.js} +632 -592
- package/dist/chunks/{card-filter-builder-6vflbF9O.js → card-filter-builder-DBTJ74yy.js} +916 -897
- package/dist/chunks/{comparison-window-caption-fqijZdVd.js → comparison-window-caption-h8w3ySL6.js} +90 -91
- package/dist/chunks/{dashboard-DpgRl65K.js → dashboard-CmzJzmph.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BLbhONJz.js → dashboard-briefing-launcher-BOQGpYr2.js} +160 -160
- package/dist/chunks/{dashboard-controls-kCTYEEsq.js → dashboard-controls-BxI3e2_o.js} +64 -64
- package/dist/chunks/{dashboard-json-CNIFresY.js → dashboard-json-BMqXV2Rx.js} +4 -4
- package/dist/chunks/{dates-BoeweqEo.js → dates-DBsscxL_.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-D0eWTlPL.js → edit-dashboard-visual-Dvc_Pkfg.js} +5443 -5417
- package/dist/chunks/filter-line-CYT7KIXb.js +133 -0
- package/dist/chunks/{filter-reach-copy-eMhDPTYH.js → filter-reach-copy-hEzlpBu7.js} +224 -224
- package/dist/chunks/filter-value-text-CHBm4IU7.js +153 -0
- package/dist/chunks/{index-D8LFjI8j.js → index-BoYJqc3F.js} +24 -24
- package/dist/chunks/{layout-grid-BG__sPkb.js → layout-grid-DoFIfQGd.js} +1 -1
- package/dist/chunks/{list-filter-Cb8i7N8f.js → list-filter-BeTQxjNy.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-D9Ll_9R-.js → matrix-analytical-definition-CyWOwLmE.js} +17 -17
- package/dist/chunks/{matrix-member-presentation-DVBJR0MA.js → matrix-member-presentation-Bj2YcHAP.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-JSmproo9.js → matrix-operation-contract-CAanJeCj.js} +60 -60
- package/dist/chunks/{metric-comparison-xE_J6hkg.js → metric-comparison-BeKnUD08.js} +27 -31
- package/dist/chunks/{paintbrush-C310xSuR.js → paintbrush-KeaU1L1a.js} +1 -1
- package/dist/chunks/{palette-Ci5P91Zb.js → palette-BcFJLeXB.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-DbBahmgc.js → pivot-result-contract-expectations-CaS0y823.js} +522 -486
- package/dist/chunks/{pivot-result-identity-CUsMt_4r.js → pivot-result-identity-BKUjYO1u.js} +1 -1
- package/dist/chunks/raw-temporal-value-BzdgeDa7.js +454 -0
- package/dist/chunks/{report-preferences-dialog-dUlVLgEk.js → report-preferences-dialog-Cu_f-8Kw.js} +13 -13
- package/dist/chunks/{report-runtime-context-CrOgmuxO.js → report-runtime-context-g4Zp_TU9.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-NurwNg4I.js → resolve-dashboard-input-context-CkMk1RW6.js} +7600 -6398
- package/dist/chunks/{save-BhhXfp4s.js → save-C9CZAk6V.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CPp--vXU.js → saved-dashboard-context-RgBS_PIj.js} +19 -19
- package/dist/chunks/{selection-filter-compiler-CHG-8xnW.js → selection-filter-compiler-BclSpK3P.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-CXojR95M.js → semaphor-ready-indicator-DXpTZJ7R.js} +31502 -31453
- package/dist/chunks/{shelf-drop-preview-context-BDScAUdq.js → shelf-drop-preview-context-qdlJKaH7.js} +5 -5
- package/dist/chunks/stored-dashboard-Baw6Bp2A.js +4029 -0
- package/dist/chunks/{style-sheet-parts-CmXmKqGw.js → style-sheet-parts-DM_Mw_sm.js} +45 -42
- package/dist/chunks/{table-export-sheet-ClSgERQC.js → table-export-sheet-Cd6z7SsG.js} +1 -1
- package/dist/chunks/{token-types-DTocOcwt.js → token-types-BB2ImFx6.js} +1 -1
- package/dist/chunks/{upload-DDYc1Qjj.js → upload-CMTCg47S.js} +1 -1
- package/dist/chunks/{validators-CrYXNnNE.js → validators-BlEWWX9O.js} +576 -562
- package/dist/chunks/{variable-draft-Bi3RlULA.js → variable-draft-BxtN6YcG.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1672 -1633
- package/dist/format-utils/index.js +217 -218
- package/dist/index.js +62 -62
- 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/components/surfboard/filter/types.d.ts +7 -5
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +3 -3
- package/dist/types/components/visual/data-table/types/data-table.d.ts +24 -2
- package/dist/types/index.js +30 -29
- package/dist/types/lib/dashboard-inputs/dashboard-date-comparison-plan.d.ts +0 -1
- package/dist/types/lib/dashboard-viewer/table-view-edit.d.ts +27 -0
- package/dist/types/lib/dashboard-viewer/table-view.d.ts +37 -1
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +2 -1
- package/dist/types/shared/analytics-protocol/relative-date/sentence.d.ts +81 -0
- package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +0 -9
- package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +23 -2
- package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +20 -0
- package/dist/types/shared/dashboard-authoring/card-formats/detail-date-display.d.ts +84 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +36 -36
- package/dist/types/shared/dashboard-authoring/filter-model/date-filter-default.d.ts +37 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-viewer/table-column-move.d.ts +56 -0
- package/dist/types/shared/dashboard-viewer/table-settings.d.ts +7 -0
- package/dist/types/shared/format-utils/filter-line.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunks/bookmark-impact-DkZABEd3.js +0 -75
- package/dist/chunks/filter-line-Dza3ee4w.js +0 -131
- package/dist/chunks/filter-value-text-DQw4v3nC.js +0 -146
- package/dist/chunks/pivot-header-presentation-D-DfPAjb.js +0 -42
- package/dist/chunks/raw-temporal-value-BnGCWJAL.js +0 -322
- package/dist/chunks/stored-dashboard-KkH4zOhq.js +0 -4998
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -53
package/dist/chunks/{saved-dashboard-context-CPp--vXU.js → saved-dashboard-context-RgBS_PIj.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
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 {
|
|
5
|
-
import { s as X,
|
|
6
|
-
import { c as ce, e as L,
|
|
4
|
+
import { D as S, F as U, G as K, H as W } from "./bookmark-state-Be2W3s6t.js";
|
|
5
|
+
import { s as X, j as Y, n as ee, k as te, m as ae, o as re, p as ne, q as se, t as oe, u as j, v as ie, w as de, x as le } from "./resolve-dashboard-input-context-CkMk1RW6.js";
|
|
6
|
+
import { c as ce, e as L, b as ue, d as me, p as q, f as fe, g as he, r as _, i as O, j as pe, m as be, k as ge } from "./stored-dashboard-Baw6Bp2A.js";
|
|
7
7
|
import { f as g, A as P, c as Ce, d as Ie, e as M } from "./context-CVXTFljo.js";
|
|
8
|
-
import { a as ye, T as ve, P as xe, o as I, d as B, b as
|
|
9
|
-
import { r as Ve,
|
|
10
|
-
import { b as $e } from "./metric-comparison-
|
|
11
|
-
import { i as ke } from "./matrix-analytical-definition-
|
|
8
|
+
import { a as ye, T as ve, P as xe, o as I, d as B, b as w } from "./filter-value-text-CHBm4IU7.js";
|
|
9
|
+
import { r as Ve, a9 as Se } from "./validators-BlEWWX9O.js";
|
|
10
|
+
import { b as $e } from "./metric-comparison-BeKnUD08.js";
|
|
11
|
+
import { i as ke } from "./matrix-analytical-definition-CyWOwLmE.js";
|
|
12
12
|
function qe(e) {
|
|
13
13
|
const t = e.qualifiedFieldName || e.name;
|
|
14
14
|
return e.label && e.label !== t ? `${e.label} (field ${t})` : t;
|
|
@@ -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,19 +34,19 @@ 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 ye({
|
|
40
40
|
subject: qe(e.field),
|
|
41
41
|
operator: e.operator,
|
|
42
42
|
values: a,
|
|
43
|
-
reading:
|
|
43
|
+
reading: De(e),
|
|
44
44
|
relative: Ve(e.relativeMeta),
|
|
45
45
|
latestValue: e.latestValue,
|
|
46
46
|
shownAs: e.label
|
|
47
47
|
}, t);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function De(e) {
|
|
50
50
|
return e.temporalBucket ? { kind: "bucket", bucket: e.temporalBucket } : Se(e.field.dataType) ? ve : xe;
|
|
51
51
|
}
|
|
52
52
|
function H(e) {
|
|
@@ -214,7 +214,7 @@ function Ne(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
|
+
`${w(l, { maxListedValues: h.inputValues }).text}${m.size ? `; ${[...m].join("; ")}` : ""}`,
|
|
218
218
|
h.textChars
|
|
219
219
|
)
|
|
220
220
|
};
|
|
@@ -225,7 +225,7 @@ function ze(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
|
+
w(t.controlValues[a.controlId], { maxListedValues: h.inputValues }).text,
|
|
229
229
|
h.textChars
|
|
230
230
|
)
|
|
231
231
|
}));
|
|
@@ -396,7 +396,7 @@ function We(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 = w(n.controlValue, m);
|
|
400
400
|
o = { text: `${s} is set to ${i.text}`, omittedValues: i.omittedValues };
|
|
401
401
|
}
|
|
402
402
|
if (!o) return;
|
|
@@ -448,7 +448,7 @@ function Xe(e) {
|
|
|
448
448
|
};
|
|
449
449
|
}
|
|
450
450
|
function Ye(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 = D({
|
|
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 D(e) {
|
|
492
492
|
var a;
|
|
493
493
|
const { snapshot: t } = e;
|
|
494
494
|
if (e.documentSection) return { status: "unavailable", reason: "document_section" };
|
|
@@ -532,7 +532,7 @@ function ft(e) {
|
|
|
532
532
|
withRequest: !0
|
|
533
533
|
});
|
|
534
534
|
if (!m) return { status: "refused", reason: "card_not_found" };
|
|
535
|
-
const o =
|
|
535
|
+
const o = D({ 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,
|
|
@@ -591,7 +591,7 @@ function ht(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 = D({ 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 at(e, t, a, r, n) {
|
|
@@ -624,7 +624,7 @@ export {
|
|
|
624
624
|
Ye as a,
|
|
625
625
|
ft as b,
|
|
626
626
|
ht as c,
|
|
627
|
-
|
|
627
|
+
D as d,
|
|
628
628
|
mt as e,
|
|
629
629
|
Xe as f,
|
|
630
630
|
G as g,
|
package/dist/chunks/{selection-filter-compiler-CHG-8xnW.js → selection-filter-compiler-BclSpK3P.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as d } from "./matrix-analytical-definition-
|
|
1
|
+
import { i as d } from "./matrix-analytical-definition-CyWOwLmE.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;
|