react-semaphor 0.1.582 → 0.1.584
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 +183 -178
- 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-DsFXETpI.js +22 -0
- package/dist/chunks/{assistant-chat-CVtxjVEH.js → assistant-chat-nmycV1Se.js} +12 -12
- package/dist/chunks/{bookmark-impact-BDSeeRy7.js → bookmark-impact-CI3gmxi0.js} +2 -2
- package/dist/chunks/{bookmark-state-BEl_G9vr.js → bookmark-state-D9-RFkDg.js} +22 -22
- package/dist/chunks/{card-filter-builder-CMZ5nwdC.js → card-filter-builder-C7QyPqRy.js} +145 -145
- package/dist/chunks/{comparison-window-caption-sRFtnX1q.js → comparison-window-caption-BAnsTI8y.js} +291 -305
- package/dist/chunks/{dashboard-briefing-launcher-C9wf8KhD.js → dashboard-briefing-launcher-DXs0XA1O.js} +13 -13
- package/dist/chunks/{dashboard-controls-PDb9Gap5.js → dashboard-controls-6Zoo8d8Y.js} +84 -84
- package/dist/chunks/{dashboard-BNn7fpDY.js → dashboard-inJy_V78.js} +1 -1
- package/dist/chunks/{dashboard-json-CvtVy2UH.js → dashboard-json-D5eJhVA9.js} +4 -4
- package/dist/chunks/{dates-B42fboJU.js → dates-B3_GWc_Y.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-Cat0RWPp.js → edit-dashboard-visual-DR03SYeW.js} +17 -17
- package/dist/chunks/{filter-reach-copy-C-RH1rVx.js → filter-reach-copy-CZwzrxBp.js} +1403 -1240
- package/dist/chunks/{filter-value-text-DXGYypEd.js → filter-value-text-DtOvqcjn.js} +8 -8
- package/dist/chunks/{index-JWLo4R_t.js → index-BgT1L0p5.js} +5 -5
- package/dist/chunks/{layout-grid-8rR-LPTk.js → layout-grid-9nSS2SL-.js} +1 -1
- package/dist/chunks/{list-filter-C1-uTgjR.js → list-filter-CfMPI6v4.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-dkS8szLM.js → matrix-analytical-definition-Cs2v43FM.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-DRa-9e6Q.js → matrix-member-presentation-BKDyxJho.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-DCVinw1o.js → matrix-operation-contract-BM5TveR3.js} +153 -147
- package/dist/chunks/{metric-comparison-n9NsIa-2.js → metric-comparison-Be4uS3Ql.js} +1 -1
- package/dist/chunks/{paintbrush-aR17Z3C9.js → paintbrush-LzAje2ff.js} +1 -1
- package/dist/chunks/{palette-a5FCZKFI.js → palette-DicJG0TC.js} +1 -1
- package/dist/chunks/{pivot-header-presentation-MvvlxtIB.js → pivot-header-presentation-uH06jiZD.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-8tuNjRvG.js → pivot-result-contract-expectations-DvZY4eJM.js} +779 -765
- package/dist/chunks/{pivot-result-identity-B89X5xjb.js → pivot-result-identity-BZexMfmL.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-CwbsD6t6.js → report-preferences-dialog-DWeVe2so.js} +171 -170
- package/dist/chunks/{report-runtime-context-BhPzLTbS.js → report-runtime-context-NlOXwyRB.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-6FP1-7aU.js → resolve-dashboard-input-context-uATCuOP7.js} +5083 -4973
- package/dist/chunks/{save-D985VvYp.js → save-0wu1Z1U7.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-D2G0uLji.js → saved-dashboard-context-DSVV9iqW.js} +6 -6
- package/dist/chunks/selection-filter-compiler-BReJy-uv.js +92 -0
- package/dist/chunks/{semaphor-ready-indicator-UhNS27Gy.js → semaphor-ready-indicator-B9vvRMnJ.js} +46773 -45614
- package/dist/chunks/{shelf-drop-preview-context-DPksW68k.js → shelf-drop-preview-context-BHOnp5Bo.js} +5 -5
- package/dist/chunks/{stored-dashboard-KpTy4umJ.js → stored-dashboard-xc5iidHL.js} +210 -221
- package/dist/chunks/{style-sheet-parts-C7qGZuH1.js → style-sheet-parts-_dGSFzDi.js} +2 -2
- package/dist/chunks/{table-export-sheet-wBkk17aa.js → table-export-sheet-Cv_94obr.js} +1 -1
- package/dist/chunks/{token-types-iKMplaBL.js → token-types-DEe_FP4l.js} +1 -1
- package/dist/chunks/{upload-CiGNKJ_0.js → upload-CtyOkU_B.js} +1 -1
- package/dist/chunks/{validators-B8fpdinG.js → validators-CJ8Jh0E8.js} +2 -2
- package/dist/chunks/{variable-draft-CP5I66_J.js → variable-draft-C3CjhsJQ.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1391 -1364
- package/dist/format-utils/index.js +140 -140
- package/dist/index.js +234 -231
- 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/ui-custom/date-range-presets.d.ts +7 -0
- package/dist/types/components/visual/data-table/types/data-table.d.ts +3 -0
- package/dist/types/components/visual/matrix-table/matrix-interaction-actions.d.ts +24 -3
- package/dist/types/index.js +5 -5
- package/dist/types/lib/hooks/interactions/use-drill-actions.d.ts +1 -1
- package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +9 -0
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +8 -3
- package/dist/types/lib/query-context/compile-selection-filters.d.ts +1 -5
- package/dist/types/lib/see-records/click.d.ts +79 -0
- package/dist/types/lib/see-records/see-records-offer.d.ts +25 -0
- package/dist/types/lib/see-records/use-see-records-offer.d.ts +16 -0
- package/dist/types/lib/types/common-types.d.ts +6 -0
- package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/aggregate-measure-field.d.ts +13 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/selection-filter-compiler.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/see-records/availability.d.ts +30 -0
- package/dist/types/shared/dashboard-authoring/see-records/click.d.ts +37 -0
- package/dist/types/shared/dashboard-authoring/see-records/index.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/see-records/limits.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/see-records/measure-kind.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/see-records/request.d.ts +28 -0
- package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +61 -0
- package/dist/types/shared/usage-events/envelope.d.ts +4 -4
- package/package.json +1 -1
- package/dist/chunks/selection-filter-compiler-CUDRnUxc.js +0 -80
package/dist/chunks/{saved-dashboard-context-D2G0uLji.js → saved-dashboard-context-DSVV9iqW.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
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 { A as S, D as U, F as K, G as W } from "./bookmark-state-
|
|
5
|
-
import { s as X, i as Y, n as ee, f as te, j as ae, l as re, k as ne, m as se, o as oe, p as j, q as ie, t as de, u as le } from "./resolve-dashboard-input-context-
|
|
6
|
-
import { c as ce, e as L, d as ue, g as me, p as q, j as fe, k as he, r as _, m as O, n as pe, o as be, q as ge } from "./stored-dashboard-
|
|
4
|
+
import { A as S, D as U, F as K, G as W } from "./bookmark-state-D9-RFkDg.js";
|
|
5
|
+
import { s as X, i as Y, n as ee, f as te, j as ae, l as re, k as ne, m as se, o as oe, p as j, q as ie, t as de, u as le } from "./resolve-dashboard-input-context-uATCuOP7.js";
|
|
6
|
+
import { c as ce, e as L, d as ue, g as me, p as q, j as fe, k as he, r as _, m as O, n as pe, o as be, q as ge } from "./stored-dashboard-xc5iidHL.js";
|
|
7
7
|
import { f as g, A as P, c as Ce, d as Ie, e as A } from "./context-BTLBjQNh.js";
|
|
8
|
-
import { a as ye, T as ve, P as xe, o as I, d as B, b as D } from "./filter-value-text-
|
|
9
|
-
import { r as Ve, a7 as Se } from "./validators-
|
|
10
|
-
import { b as $e } from "./metric-comparison-
|
|
8
|
+
import { a as ye, T as ve, P as xe, o as I, d as B, b as D } from "./filter-value-text-DtOvqcjn.js";
|
|
9
|
+
import { r as Ve, a7 as Se } from "./validators-CJ8Jh0E8.js";
|
|
10
|
+
import { b as $e } from "./metric-comparison-Be4uS3Ql.js";
|
|
11
11
|
function ke(e) {
|
|
12
12
|
const t = e.qualifiedFieldName || e.name;
|
|
13
13
|
return e.label && e.label !== t ? `${e.label} (field ${t})` : t;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
function f(e, r) {
|
|
2
|
+
return {
|
|
3
|
+
id: r,
|
|
4
|
+
field: e.field,
|
|
5
|
+
operator: e.operator,
|
|
6
|
+
value: e.value,
|
|
7
|
+
label: e.label,
|
|
8
|
+
temporalBucket: e.temporalBucket,
|
|
9
|
+
...e.rawTemporal ? { rawTemporal: e.rawTemporal } : {}
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function p(e) {
|
|
13
|
+
var r;
|
|
14
|
+
return JSON.stringify([
|
|
15
|
+
((r = e.field) == null ? void 0 : r.id) ?? "",
|
|
16
|
+
e.operator,
|
|
17
|
+
e.value ?? null,
|
|
18
|
+
e.temporalBucket ?? null,
|
|
19
|
+
e.rawTemporal ?? null
|
|
20
|
+
]);
|
|
21
|
+
}
|
|
22
|
+
function c(e) {
|
|
23
|
+
return JSON.stringify(e.map(p).sort());
|
|
24
|
+
}
|
|
25
|
+
function i(e) {
|
|
26
|
+
const r = /* @__PURE__ */ new Map();
|
|
27
|
+
for (const t of e)
|
|
28
|
+
for (const o of t.tuples) {
|
|
29
|
+
const l = o.conditions.filter(
|
|
30
|
+
(u) => {
|
|
31
|
+
var n;
|
|
32
|
+
return (n = u.field) == null ? void 0 : n.id;
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
if (l.length === 0) continue;
|
|
36
|
+
let a = r.get(t.sourceCardId);
|
|
37
|
+
a || (a = /* @__PURE__ */ new Map(), r.set(t.sourceCardId, a));
|
|
38
|
+
const s = [...l].sort(
|
|
39
|
+
(u, n) => p(u).localeCompare(p(n))
|
|
40
|
+
);
|
|
41
|
+
a.set(c(s), s);
|
|
42
|
+
}
|
|
43
|
+
return [...r.entries()].sort(([t], [o]) => t.localeCompare(o)).map(([t, o]) => ({
|
|
44
|
+
sourceCardId: t,
|
|
45
|
+
tuples: [...o.entries()].sort(([l], [a]) => l.localeCompare(a)).map(([, l]) => ({ conditions: l }))
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
function d(e) {
|
|
49
|
+
const r = i(e);
|
|
50
|
+
if (r.length !== 0)
|
|
51
|
+
return {
|
|
52
|
+
id: "selection",
|
|
53
|
+
logicalOperator: "AND",
|
|
54
|
+
negate: !1,
|
|
55
|
+
conditions: [],
|
|
56
|
+
groups: r.map((t) => {
|
|
57
|
+
const o = `selection:${t.sourceCardId}`;
|
|
58
|
+
return {
|
|
59
|
+
id: o,
|
|
60
|
+
logicalOperator: "OR",
|
|
61
|
+
negate: !1,
|
|
62
|
+
conditions: [],
|
|
63
|
+
groups: t.tuples.map((l, a) => {
|
|
64
|
+
const s = `${o}:${a}`;
|
|
65
|
+
return {
|
|
66
|
+
id: s,
|
|
67
|
+
logicalOperator: "AND",
|
|
68
|
+
negate: !1,
|
|
69
|
+
conditions: l.conditions.map((u, n) => ({
|
|
70
|
+
...u,
|
|
71
|
+
id: `${s}:${n}`
|
|
72
|
+
})),
|
|
73
|
+
groups: []
|
|
74
|
+
};
|
|
75
|
+
})
|
|
76
|
+
};
|
|
77
|
+
})
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function m(e) {
|
|
81
|
+
return JSON.stringify(
|
|
82
|
+
i(e).map((r) => [
|
|
83
|
+
r.sourceCardId,
|
|
84
|
+
r.tuples.map((t) => t.conditions.map(p))
|
|
85
|
+
])
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
d as c,
|
|
90
|
+
m as s,
|
|
91
|
+
f as t
|
|
92
|
+
};
|