react-semaphor 0.1.555 → 0.1.557
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/DATA_APP_SDK.md +6 -29
- package/dist/analytics-protocol/index.js +20 -21
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +426 -444
- package/dist/briefings/index.js +56 -57
- package/dist/chunks/{analytics-base-schemas-BKs3flFS.js → analytics-base-schemas-BUFUoO6G.js} +2 -2
- package/dist/chunks/{assistant-chat-8NZP6m-u.js → assistant-chat-WMTpYirZ.js} +79 -81
- package/dist/chunks/{bookmark-state-BAeGKd3s.js → bookmark-state-PjQpxbG7.js} +3 -3
- package/dist/chunks/{braces-o9UiRQes.js → braces-BOErQVyi.js} +1 -1
- package/dist/chunks/comparison-window-caption-Dc7BaCMz.js +1218 -0
- package/dist/chunks/{context-BerEBuFR.js → context-DVy4HOU0.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-Gw-Ggg3O.js → custom-visual-inputs-CxYI-gFa.js} +31 -33
- package/dist/chunks/{dashboard-Ds68ckO3.js → dashboard-4D8Vy4pL.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DlTr-VGc.js → dashboard-briefing-launcher-C4EmOfxs.js} +149 -151
- package/dist/chunks/{dashboard-controls-oNXJZN6x.js → dashboard-controls-DBWykmvL.js} +171 -173
- package/dist/chunks/{dashboard-json-CW7Q_efH.js → dashboard-json-DiX-p0F7.js} +21 -22
- package/dist/chunks/{document-dashboard-inputs-C21mL3ib.js → document-dashboard-inputs-DP5hquBR.js} +32 -32
- package/dist/chunks/{edit-dashboard-visual-BnnT_oKR.js → edit-dashboard-visual-n1jLV_7V.js} +5842 -5955
- package/dist/chunks/{filter-reach-copy-DlNPHbE-.js → filter-reach-copy-BB9iakLA.js} +915 -986
- package/dist/chunks/{filter-value-text-DMrpj4h9.js → filter-value-text-CUBpotVN.js} +5 -5
- package/dist/chunks/{global-date-filter-utils-7OboTgrM.js → global-date-filter-utils-Cc5tqkoW.js} +2908 -3112
- package/dist/chunks/{index-B2k6KtUN.js → index-CgjhzkKM.js} +72 -80
- package/dist/chunks/{index-CtoK1Lgu.js → index-dIV-Gdsb.js} +159 -161
- package/dist/chunks/{layout-grid-Bgzth8vd.js → layout-grid-CcNklCwL.js} +1 -1
- package/dist/chunks/{list-filter-DsaTbM3J.js → list-filter-Ds_4UTpD.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-DPVGg1mU.js → matrix-analytical-definition-4GTUDheD.js} +22 -22
- package/dist/chunks/{matrix-card-D9bsdAye.js → matrix-card-fS_4O7zA.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-DRWcJ8Mi.js → matrix-member-presentation-Dj7HaAHC.js} +1 -1
- package/dist/chunks/{matrix-operation-contract--lMaLlpV.js → matrix-operation-contract-CpgLZ7E5.js} +52 -52
- package/dist/chunks/{metric-comparison-CYIt2F5X.js → metric-comparison-C8LY7GG5.js} +4 -4
- package/dist/chunks/{model-change-B0rAK-5w.js → model-change-CJEj3ZD6.js} +1 -1
- package/dist/chunks/{palette-D10o_yYX.js → palette-DMkIhagj.js} +1 -1
- package/dist/chunks/{matrix-formatter-K2OVPJQI.js → pivot-result-contract-expectations-DMk-mKhG.js} +451 -402
- package/dist/chunks/pivot-result-identity-CrQ54Xbj.js +77 -0
- package/dist/chunks/{raw-temporal-presentation-CivONfcO.js → raw-temporal-presentation-DdEpgPRB.js} +25 -26
- package/dist/chunks/report-preferences-dialog-CFg5VFLk.js +2109 -0
- package/dist/chunks/{report-runtime-context-BaIKSaja.js → report-runtime-context-CohdtiMg.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-CIm9A8_j.js → resolve-dashboard-input-context-Djl3kCFL.js} +1396 -1550
- package/dist/chunks/{save-CfJpQQ68.js → save-D1EpMcwT.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-akb9JfOL.js → saved-dashboard-context-umlQFevH.js} +9 -9
- package/dist/chunks/selection-reducer-_d6aKJnj.js +46 -0
- package/dist/chunks/{semaphor-ready-indicator-Ba7dwP5_.js → semaphor-ready-indicator-4cOp6sla.js} +54479 -63899
- package/dist/chunks/{shelf-drop-preview-context-5rg3pJHW.js → shelf-drop-preview-context-DAtRuvR7.js} +7 -7
- package/dist/chunks/{source-entity-resolution-CGymm5td.js → source-entity-resolution-DXW1HpKf.js} +1 -1
- package/dist/chunks/{switch-B-UTI6v-.js → switch-9CJt5EF_.js} +1431 -1342
- package/dist/chunks/{table-export-sheet-CgO6gaSM.js → table-export-sheet-CTCTA_bd.js} +1 -1
- package/dist/chunks/{table-settings-DOT_Bv1m.js → table-settings-DF1gdVQR.js} +3 -3
- package/dist/chunks/temporal-input-presentation-DoSniQj1.js +2939 -0
- package/dist/chunks/{token-types-DYECHYGH.js → token-types-DFyLflLY.js} +1 -1
- package/dist/chunks/{upload-BFX7apKV.js → upload-LSNKpt0w.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BHNs0wl7.js → use-create-flow-overlay-state-esyMT9vU.js} +125 -127
- package/dist/chunks/{validators-ClKLGDGZ.js → validators-hmfNNQz8.js} +305 -307
- package/dist/chunks/zoned-wall-clock-E35Frf9v.js +191 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +168 -169
- package/dist/data-app-sdk/index.js +789 -4154
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +6 -6
- package/dist/format-utils/index.js +234 -253
- package/dist/index.js +233 -235
- package/dist/layouts/index.js +1 -1
- package/dist/pdf-export-policy/index.js +9 -11
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/brand-studio/brand-studio-draft.d.ts +0 -3
- package/dist/types/brand-studio/index.d.ts +1 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -1
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -6
- package/dist/types/data-app-sdk/contracts.d.ts +0 -146
- package/dist/types/data-app-sdk/index.d.ts +0 -2
- package/dist/types/index.js +27 -28
- package/dist/types/lib/api/exports-api.d.ts +1 -1
- package/dist/types/lib/charts/table-chart-types.d.ts +1 -1
- package/dist/types/lib/charts/types.d.ts +2 -2
- package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +0 -3
- package/dist/types/lib/document/document-edits.d.ts +1 -1
- package/dist/types/lib/document/document-section-kinds.d.ts +2 -4
- package/dist/types/lib/document/document-table-data-policy.d.ts +1 -2
- package/dist/types/lib/formatters/grouped-temporal-activation.d.ts +3 -3
- package/dist/types/lib/formatters/grouped-temporal-presentation.d.ts +0 -6
- package/dist/types/lib/query-context/card-server-request.d.ts +0 -1
- package/dist/types/lib/table-formatting/table-formatting-types.d.ts +1 -1
- package/dist/types/lib/types/common-types.d.ts +0 -7
- package/dist/types/lib/types/explorer-types.d.ts +1 -14
- package/dist/types/lib/utils/card-config-utils.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +1 -2
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +1 -7
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +9 -4
- package/dist/types/shared/format-utils/grouped-table-presentation.d.ts +0 -14
- package/dist/types/shared/format-utils/index.d.ts +0 -2
- package/dist/types/shared/format-utils/pdf-export-policy.d.ts +1 -1
- package/dist/types/shared/format-utils/pivot-result-contract-expectations.d.ts +2 -20
- package/dist/types/shared/format-utils/pivot-result-identity.d.ts +0 -20
- package/dist/types/shared/format-utils/table-export/prepare-table-export.d.ts +0 -1
- package/dist/types/shared/format-utils/table-export/table-export-result.d.ts +0 -4
- package/package.json +2 -4
- package/src/data-app-sdk/README.md +7 -31
- package/dist/chunks/comparison-window-caption-C2WNTlxK.js +0 -1433
- package/dist/chunks/pivot-header-presentation-CX4fkRuG.js +0 -42
- package/dist/chunks/pivot-result-identity-BHJGZwIc.js +0 -94
- package/dist/chunks/pivot-result-lifecycle-BygCpOhk.js +0 -1238
- package/dist/chunks/raw-temporal-contract-WuXA8jBP.js +0 -64
- package/dist/chunks/report-preferences-dialog-D_KyuEFx.js +0 -2261
- package/dist/chunks/selection-reducer-yw_JgICP.js +0 -111
- package/dist/chunks/temporal-bucket-C4rqmwaQ.js +0 -2071
- package/dist/chunks/x-4f5U2XwU.js +0 -100
- package/dist/chunks/zoned-wall-clock-MulfA26h.js +0 -129
- package/dist/types/components/visual/pivot-table/types.d.ts +0 -80
- package/dist/types/data-app-sdk/devtools/index.d.ts +0 -49
- package/dist/types/data-app-sdk/devtools.d.ts +0 -1
- package/dist/types/shared/format-utils/aggregate-table-row-presentation.d.ts +0 -85
- package/dist/types/shared/format-utils/pivot-result-lifecycle.d.ts +0 -55
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var c = (i, t, e) => t in i ? y(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var a = (i, t, e) => c(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { v as u } from "./metric-comparison-C8LY7GG5.js";
|
|
5
|
+
class l extends Error {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
super(`missing_pivot_member_identity: ${e}`);
|
|
8
|
+
a(this, "deliveryBlocking", !0);
|
|
9
|
+
a(this, "code", "missing_pivot_member_identity");
|
|
10
|
+
this.name = "PivotResultIdentityError";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
function d(i) {
|
|
14
|
+
const { identity: t, columnKey: e, expectedPivotFieldIds: o } = i, s = ((o == null ? void 0 : o.length) || 0) === 0;
|
|
15
|
+
if (!t || typeof t != "object" || Array.isArray(t) || typeof t.metricId != "string" || !t.metricId || typeof t.metricAlias != "string" || !t.metricAlias || !Array.isArray(t.members))
|
|
16
|
+
throw new l(
|
|
17
|
+
`Physical pivot column "${e}" is missing stable metric or member identity.`
|
|
18
|
+
);
|
|
19
|
+
if (t.members.forEach((r, n) => {
|
|
20
|
+
if (!r || typeof r != "object" || Array.isArray(r) || typeof r.fieldId != "string" || !r.fieldId || r.value !== null && typeof r.value != "string" || r.temporalBucket !== void 0 && !u(r.temporalBucket).ok)
|
|
21
|
+
throw new l(
|
|
22
|
+
`Physical pivot column "${e}" has invalid identity for member ${n}.`
|
|
23
|
+
);
|
|
24
|
+
if (o && r.fieldId !== o[n])
|
|
25
|
+
throw new l(
|
|
26
|
+
`Physical pivot column "${e}" has member "${r.fieldId}" at tuple position ${n}; expected "${o[n] || "no member"}".`
|
|
27
|
+
);
|
|
28
|
+
}), t.members.length === 0) {
|
|
29
|
+
if (s) return t.members;
|
|
30
|
+
throw new l(
|
|
31
|
+
`Physical pivot column "${e}" is missing its required pivot tuple.`
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
if (o && t.members.length !== o.length)
|
|
35
|
+
throw new l(
|
|
36
|
+
`Physical pivot column "${e}" has ${t.members.length} members; expected ${o.length}.`
|
|
37
|
+
);
|
|
38
|
+
return t.members;
|
|
39
|
+
}
|
|
40
|
+
function m(i, t) {
|
|
41
|
+
i.forEach((e) => {
|
|
42
|
+
e.pivotIdentity !== void 0 && d({
|
|
43
|
+
identity: e.pivotIdentity,
|
|
44
|
+
columnKey: e.key,
|
|
45
|
+
expectedPivotFieldIds: t.expectedPivotFieldIds
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function p(i, t, e) {
|
|
50
|
+
var s;
|
|
51
|
+
const o = i == null ? void 0 : i.byRole;
|
|
52
|
+
if (!(!o || typeof o != "object" || Array.isArray(o)))
|
|
53
|
+
return (s = o[e]) == null ? void 0 : s[t];
|
|
54
|
+
}
|
|
55
|
+
function h(i, t) {
|
|
56
|
+
if (!i) return;
|
|
57
|
+
const e = i.byRole;
|
|
58
|
+
if (!e || typeof e != "object" || Array.isArray(e))
|
|
59
|
+
return;
|
|
60
|
+
const o = Object.values(e).flatMap((r) => {
|
|
61
|
+
const n = r == null ? void 0 : r[t];
|
|
62
|
+
return n ? [n] : [];
|
|
63
|
+
});
|
|
64
|
+
if (o.length !== 1) return;
|
|
65
|
+
const [s] = o;
|
|
66
|
+
if (!(s.role === "metric" && Object.values(i.byMetricAlias ?? {}).some(
|
|
67
|
+
(r) => r.role === s.role && r.rawKey === s.rawKey && r.outputKey === s.outputKey
|
|
68
|
+
)))
|
|
69
|
+
return s;
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
l as P,
|
|
73
|
+
h as a,
|
|
74
|
+
d as b,
|
|
75
|
+
m as c,
|
|
76
|
+
p as r
|
|
77
|
+
};
|
package/dist/chunks/{raw-temporal-presentation-CivONfcO.js → raw-temporal-presentation-DdEpgPRB.js}
RENAMED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import "./analytics-base-schemas-
|
|
2
|
-
import { r as P } from "./pivot-result-identity-
|
|
3
|
-
import { r as R, n as M } from "./global-date-filter-utils-
|
|
4
|
-
import "./validators-
|
|
5
|
-
import "./matrix-operation-contract
|
|
6
|
-
import { v as S } from "./
|
|
1
|
+
import "./analytics-base-schemas-BUFUoO6G.js";
|
|
2
|
+
import { r as P } from "./pivot-result-identity-CrQ54Xbj.js";
|
|
3
|
+
import { r as R, n as M } from "./global-date-filter-utils-Cc5tqkoW.js";
|
|
4
|
+
import "./validators-hmfNNQz8.js";
|
|
5
|
+
import "./matrix-operation-contract-CpgLZ7E5.js";
|
|
6
|
+
import { v as S } from "./zoned-wall-clock-E35Frf9v.js";
|
|
7
7
|
import "zod";
|
|
8
8
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as A } from "../value-format-preferences/index.js";
|
|
9
|
-
import { f as E, M as O } from "./
|
|
10
|
-
import { p as g, r as b, c as q, R as z, v as L } from "./temporal-bucket-C4rqmwaQ.js";
|
|
9
|
+
import { f as E, M as O, p as g, r as b, c as q, R as z, v as L } from "./temporal-input-presentation-DoSniQj1.js";
|
|
11
10
|
const $ = "SEMAPHOR_CALCULATED_FIELD";
|
|
12
11
|
function j(e, a, t) {
|
|
13
12
|
if (t && (a === "groupby" || a === "pivotby"))
|
|
@@ -29,10 +28,10 @@ function j(e, a, t) {
|
|
|
29
28
|
}
|
|
30
29
|
return r && r !== e.name ? `${r}_${e.name}` : e.name;
|
|
31
30
|
}
|
|
32
|
-
function
|
|
31
|
+
function ne(e) {
|
|
33
32
|
return j(e, "detail");
|
|
34
33
|
}
|
|
35
|
-
function
|
|
34
|
+
function se(e) {
|
|
36
35
|
const a = e.label;
|
|
37
36
|
return a && e.labelCount === 1 && (a === e.rawKey || !e.rawKeys.has(a)) ? a : e.rawKey;
|
|
38
37
|
}
|
|
@@ -122,10 +121,10 @@ function D(e) {
|
|
|
122
121
|
presentation: { mode: "auto" }
|
|
123
122
|
};
|
|
124
123
|
}
|
|
125
|
-
function
|
|
124
|
+
function le(e) {
|
|
126
125
|
return e === "instant" ? "yyyy-MM-dd'T'HH:mm:ssXXX" : e === "wall_datetime" ? "yyyy-MM-dd'T'HH:mm:ss" : "yyyy-MM-dd";
|
|
127
126
|
}
|
|
128
|
-
function
|
|
127
|
+
function ie(e) {
|
|
129
128
|
L({
|
|
130
129
|
dialect: "date_fns",
|
|
131
130
|
pattern: e.pattern,
|
|
@@ -157,7 +156,7 @@ function V(e) {
|
|
|
157
156
|
);
|
|
158
157
|
return n.text;
|
|
159
158
|
}
|
|
160
|
-
function
|
|
159
|
+
function me(e) {
|
|
161
160
|
try {
|
|
162
161
|
return { ok: !0, text: V(e) };
|
|
163
162
|
} catch (a) {
|
|
@@ -183,7 +182,7 @@ function Q(e) {
|
|
|
183
182
|
}
|
|
184
183
|
);
|
|
185
184
|
}
|
|
186
|
-
function
|
|
185
|
+
function ce(e) {
|
|
187
186
|
var t, r, o;
|
|
188
187
|
if (!Q(e)) return e;
|
|
189
188
|
const a = ((r = (t = e.preferences) == null ? void 0 : t.tablePrefs) == null ? void 0 : r.columnSettingsMap) || {};
|
|
@@ -366,7 +365,7 @@ function X(e) {
|
|
|
366
365
|
e
|
|
367
366
|
);
|
|
368
367
|
}
|
|
369
|
-
function
|
|
368
|
+
function de(e) {
|
|
370
369
|
var r, o, n;
|
|
371
370
|
const a = e.effectiveCardConfig ?? e.card.config, t = R(
|
|
372
371
|
e.card,
|
|
@@ -532,7 +531,7 @@ function G(e) {
|
|
|
532
531
|
);
|
|
533
532
|
}
|
|
534
533
|
}
|
|
535
|
-
function
|
|
534
|
+
function ue(e) {
|
|
536
535
|
if (e.value !== null && typeof e.value != "string")
|
|
537
536
|
return {
|
|
538
537
|
value: e.value,
|
|
@@ -549,7 +548,7 @@ function fe(e) {
|
|
|
549
548
|
const a = e.presentation.formatValue(e.value);
|
|
550
549
|
return { value: e.value, label: a.text, result: a };
|
|
551
550
|
}
|
|
552
|
-
function
|
|
551
|
+
function fe(e) {
|
|
553
552
|
if (!e.result || typeof e.result != "object") return !1;
|
|
554
553
|
const a = e.result;
|
|
555
554
|
if (e.expectedResultOwner !== void 0 && a.resultOwner !== e.expectedResultOwner || !Array.isArray(a.records)) return !1;
|
|
@@ -566,20 +565,20 @@ function pe(e) {
|
|
|
566
565
|
}
|
|
567
566
|
export {
|
|
568
567
|
m as R,
|
|
569
|
-
|
|
570
|
-
|
|
568
|
+
ne as a,
|
|
569
|
+
se as b,
|
|
571
570
|
U as c,
|
|
572
571
|
D as d,
|
|
573
572
|
H as e,
|
|
574
573
|
X as f,
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
574
|
+
de as g,
|
|
575
|
+
le as h,
|
|
576
|
+
fe as i,
|
|
577
|
+
me as j,
|
|
579
578
|
I as k,
|
|
580
|
-
|
|
579
|
+
ce as l,
|
|
581
580
|
Q as m,
|
|
582
|
-
|
|
581
|
+
ue as p,
|
|
583
582
|
j as r,
|
|
584
|
-
|
|
583
|
+
ie as v
|
|
585
584
|
};
|