react-semaphor 0.1.551 → 0.1.552
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/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +64 -57
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{assistant-chat-B8kslmny.js → assistant-chat-sWQaBT61.js} +3197 -2841
- package/dist/chunks/{comparison-window-caption-C2xF-eWw.js → comparison-window-caption-CF90-I0i.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-CwAcigQS.js → custom-visual-inputs-ByQUyWf4.js} +1 -1
- package/dist/chunks/{dashboard-BcAQSgm-.js → dashboard-BjoJI7NN.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DnnvLeAs.js → dashboard-briefing-launcher-DUJQv719.js} +7 -7
- package/dist/chunks/{dashboard-controls-BYDt0QZL.js → dashboard-controls-BjnvfcQp.js} +8 -8
- package/dist/chunks/{dashboard-json-BligXqcU.js → dashboard-json-BqcLekhd.js} +1 -1
- package/dist/chunks/{document-dashboard-inputs-DPQ_wUGD.js → document-dashboard-inputs-PoQihHLu.js} +3 -3
- package/dist/chunks/{edit-dashboard-visual-8-Fd4EcE.js → edit-dashboard-visual-KNJQr60W.js} +9 -9
- package/dist/chunks/{filter-reach-copy-8vnDYToV.js → filter-reach-copy-zdhUFn6t.js} +4 -4
- package/dist/chunks/{global-date-filter-utils-CnumW4j2.js → global-date-filter-utils-C1jCNWdV.js} +8 -1
- package/dist/chunks/{index-DzsdV1o4.js → index-Dp0ta6KB.js} +3 -3
- package/dist/chunks/{matrix-formatter-DWEeC0_c.js → matrix-formatter-C_EpDP6o.js} +12 -12
- package/dist/chunks/model-change-B0rAK-5w.js +230 -0
- package/dist/chunks/{raw-temporal-presentation-CBKeEPYA.js → raw-temporal-presentation-D3i0mnUe.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-DAQEooIW.js → report-preferences-dialog-C0uGI0v7.js} +7 -7
- package/dist/chunks/{resolve-dashboard-input-context-DVWF7p5C.js → resolve-dashboard-input-context-Cm0b7s-d.js} +64 -64
- package/dist/chunks/{saved-dashboard-context-BMqMzNAo.js → saved-dashboard-context-DCtGmAWe.js} +4 -4
- package/dist/chunks/{semaphor-ready-indicator-Dq1ElALH.js → semaphor-ready-indicator-ChyotaWB.js} +10386 -10388
- package/dist/chunks/{shelf-drop-preview-context-CHm8lqfo.js → shelf-drop-preview-context-D09ATIXv.js} +3 -3
- package/dist/chunks/{table-export-sheet-4X9mAG3V.js → table-export-sheet-DUS_s8Cj.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-b_fGSj_5.js → use-create-flow-overlay-state-t7JLE_LV.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +7 -7
- package/dist/data-app-sdk/index.js +1 -1
- package/dist/format-utils/index.js +5 -5
- package/dist/index.js +12 -12
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/shared/assistant-protocol/answer-text.d.ts +23 -0
- package/dist/types/shared/assistant-protocol/conversation-text.d.ts +29 -0
- package/dist/types/shared/assistant-protocol/conversation.d.ts +24 -3
- package/dist/types/shared/assistant-protocol/index.d.ts +2 -0
- package/dist/types/shared/assistant-protocol/model-change.d.ts +19 -0
- package/dist/types/shared/assistant-protocol/parts.d.ts +45 -1
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +8 -3
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +7 -1
- package/package.json +1 -1
- package/dist/chunks/add-to-dashboard-BQRAAnc3.js +0 -102
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { canonicalizeSupportedCurrencyCode as qt } from "../value-format-preferences/index.js";
|
|
2
|
-
import { P as ui, e5 as U, e6 as ke, b2 as di, r as le, e7 as fi, cW as pi, e8 as Rt, aS as mi, du as Vt, e9 as yi, dv as gi, bY as Lt, s as
|
|
2
|
+
import { P as ui, e5 as U, e6 as ke, b2 as di, r as le, e7 as fi, cW as pi, e8 as Rt, aS as mi, du as Vt, e9 as yi, dv as gi, bY as Lt, s as P, dm as jt, n as bi, ea as hi, bS as zt, bU as $t, bC as Ii, bX as Ci, bV as pt, bW as vi, bF as Ti, bE as Fi, bR as Si, bP as Di, v as ki, b as Oe, cN as Ut, eb as xi, b4 as Qt, b5 as Mi, b0 as qe, b3 as Gt, ec as Ai, ed as Ei, cO as Ni, a as wi, Y as K, a2 as Wt, a3 as Ht, c_ as Yt, cY as mt, O as Jt, ee as _i, bq as Pi, dI as Xt, dq as xe, dH as Bi, ef as Ki, i as Re, b9 as Ve, M as Oi, b6 as qi, ba as Ri, bv as Vi, d as Zt, eg as Li, d2 as Le, d1 as Me, eh as ji, cU as en, cZ as zi, ei as yt, ej as $i, ek as Ui, d5 as Qi, el as Gi } from "./global-date-filter-utils-C1jCNWdV.js";
|
|
3
3
|
import { I as Wi, n as Hi, q as Yi, t as j, p as tn, C as Ae, e as Ji, c as nn, G as Xi, z as on, J as Zi, L as rn } from "./table-settings-WysCBj62.js";
|
|
4
4
|
import { a8 as G, ao as re, ab as J, Q as eo, B as to, E as no, ad as gt, q as an, Z as io, c as W, C as oo, v as ro } from "./validators-C-aOQlTB.js";
|
|
5
5
|
import { s as ve, t as je, u as ao, b as so, r as Ee } from "./matrix-operation-contract-D6vYkZK4.js";
|
|
6
6
|
import { S as ze } from "./analytics-base-schemas-BKs3flFS.js";
|
|
7
7
|
import { ZodError as lo } from "zod";
|
|
8
|
-
import {
|
|
8
|
+
import { s as co, t as sn, u as Te, f as X, D as uo, v as ae, w as fo } from "./matrix-formatter-C_EpDP6o.js";
|
|
9
9
|
import { i as ce } from "./temporal-bucket-CQOSbv9-.js";
|
|
10
10
|
import { i as po, a as ln } from "./matrix-card-LiMEipvq.js";
|
|
11
11
|
import { E as mo, y as yo } from "./pivot-result-lifecycle-pwq3b7LC.js";
|
|
@@ -119,7 +119,7 @@ function _o(e) {
|
|
|
119
119
|
});
|
|
120
120
|
return Array.from(t.values());
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Po(e, t) {
|
|
123
123
|
var o;
|
|
124
124
|
const n = (o = e.controlBindings) == null ? void 0 : o.map((r) => ({
|
|
125
125
|
...r,
|
|
@@ -143,7 +143,7 @@ function dn(e, t) {
|
|
|
143
143
|
inputId: ((r = t.inputIds) == null ? void 0 : r[i.inputId]) ?? i.inputId
|
|
144
144
|
} : i;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Bo(e, t) {
|
|
147
147
|
var o;
|
|
148
148
|
const n = {};
|
|
149
149
|
for (const r of [
|
|
@@ -166,7 +166,7 @@ function Po(e, t) {
|
|
|
166
166
|
function dl(e, t) {
|
|
167
167
|
var o, r, a, s;
|
|
168
168
|
const n = ge(e);
|
|
169
|
-
n.controlBindings =
|
|
169
|
+
n.controlBindings = Po(
|
|
170
170
|
e,
|
|
171
171
|
new Map(Object.entries(t.controlIds ?? {}))
|
|
172
172
|
);
|
|
@@ -1223,7 +1223,7 @@ function _l(e) {
|
|
|
1223
1223
|
maximumFractionDigits: t.minimumFractionDigits === void 0 && t.maximumFractionDigits === void 0 ? 2 : t.maximumFractionDigits
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function Pl(e, t) {
|
|
1227
1227
|
const n = X(e, t);
|
|
1228
1228
|
if (n) {
|
|
1229
1229
|
if (n.type === "date")
|
|
@@ -1270,7 +1270,7 @@ function Bl(e, t) {
|
|
|
1270
1270
|
};
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function Bl(e, t) {
|
|
1274
1274
|
const n = X(e, t);
|
|
1275
1275
|
return (n == null ? void 0 : n.type) === "duration" ? {
|
|
1276
1276
|
style: "duration",
|
|
@@ -1806,11 +1806,11 @@ function Mr(e = [], t) {
|
|
|
1806
1806
|
return e.filter(
|
|
1807
1807
|
(n) => (t == null ? void 0 : t.includePresentation) || !Lt(n)
|
|
1808
1808
|
).map((n) => xr(n, t)).sort(
|
|
1809
|
-
(n, i) =>
|
|
1809
|
+
(n, i) => P(n).localeCompare(P(i))
|
|
1810
1810
|
);
|
|
1811
1811
|
}
|
|
1812
1812
|
function Ar(e, t) {
|
|
1813
|
-
return e ?
|
|
1813
|
+
return e ? P({
|
|
1814
1814
|
controlDefinitions: kt(e.controlDefinitions, t),
|
|
1815
1815
|
cardControlDefinitions: kt(
|
|
1816
1816
|
e.cardControlDefinitions,
|
|
@@ -1874,17 +1874,17 @@ function _r(e) {
|
|
|
1874
1874
|
filters: e.filters ? Se(e.filters) : void 0
|
|
1875
1875
|
};
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function Pr(e, t, n) {
|
|
1878
1878
|
if (!e)
|
|
1879
1879
|
return JSON.stringify(e);
|
|
1880
|
-
if (n === "matrixTable" && e.matrix) return
|
|
1880
|
+
if (n === "matrixTable" && e.matrix) return P(go(e.matrix.spec));
|
|
1881
1881
|
const { matrix: i, ...o } = e, r = t ? _r(o) : o;
|
|
1882
1882
|
return JSON.stringify({
|
|
1883
1883
|
...r,
|
|
1884
1884
|
filters: Se(r.filters)
|
|
1885
1885
|
});
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1887
|
+
function Br(e) {
|
|
1888
1888
|
if (!e)
|
|
1889
1889
|
return null;
|
|
1890
1890
|
const { format: t, ...n } = e;
|
|
@@ -1900,11 +1900,11 @@ function Kr(e, t) {
|
|
|
1900
1900
|
Object.entries(e || {}).map(([o, r]) => n.get(o) === "multi_enum" && Array.isArray(r) ? [
|
|
1901
1901
|
o,
|
|
1902
1902
|
[...r].sort(
|
|
1903
|
-
(a, s) =>
|
|
1903
|
+
(a, s) => P(a).localeCompare(P(s))
|
|
1904
1904
|
)
|
|
1905
1905
|
] : [o, r])
|
|
1906
1906
|
);
|
|
1907
|
-
return
|
|
1907
|
+
return P(i);
|
|
1908
1908
|
}
|
|
1909
1909
|
function Or(e, {
|
|
1910
1910
|
finalFiltersKey: t,
|
|
@@ -1944,15 +1944,15 @@ function Or(e, {
|
|
|
1944
1944
|
cardControlDefinitions: r,
|
|
1945
1945
|
controlBindings: a
|
|
1946
1946
|
}),
|
|
1947
|
-
|
|
1948
|
-
|
|
1947
|
+
P(
|
|
1948
|
+
Br(l)
|
|
1949
1949
|
),
|
|
1950
|
-
|
|
1950
|
+
P(u ?? null),
|
|
1951
1951
|
Nr,
|
|
1952
|
-
|
|
1952
|
+
P(c),
|
|
1953
1953
|
JSON.stringify(y),
|
|
1954
1954
|
JSON.stringify(m),
|
|
1955
|
-
|
|
1955
|
+
Pr(
|
|
1956
1956
|
h,
|
|
1957
1957
|
C,
|
|
1958
1958
|
e.type
|
|
@@ -1962,7 +1962,7 @@ function Or(e, {
|
|
|
1962
1962
|
}
|
|
1963
1963
|
function qr(e, t, n) {
|
|
1964
1964
|
var s, l, u;
|
|
1965
|
-
const i = Or(e, t), o =
|
|
1965
|
+
const i = Or(e, t), o = P(i), r = ((s = n == null ? void 0 : n.resolvePaginationConfig) == null ? void 0 : s.call(n, o)) ?? e.paginationConfig, a = xt(e) && jt(e.config) || xt(e) && e.sql && ((u = (l = e.preferences) == null ? void 0 : l.tablePrefs) == null ? void 0 : u.enableDevModePagination);
|
|
1966
1966
|
return {
|
|
1967
1967
|
queryKey: [
|
|
1968
1968
|
...i,
|
|
@@ -2706,12 +2706,12 @@ function ic(e) {
|
|
|
2706
2706
|
};
|
|
2707
2707
|
}
|
|
2708
2708
|
const oc = 1e4, Zr = 500, ea = 250;
|
|
2709
|
-
function
|
|
2709
|
+
function Pe(e) {
|
|
2710
2710
|
return e.type === "table" || e.type === "detailTable";
|
|
2711
2711
|
}
|
|
2712
2712
|
function ta(e) {
|
|
2713
2713
|
var t, n, i;
|
|
2714
|
-
return !!((t = e.sql) != null && t.trim() &&
|
|
2714
|
+
return !!((t = e.sql) != null && t.trim() && Pe(e) && ((i = (n = e.preferences) == null ? void 0 : n.tablePrefs) != null && i.enableDevModePagination));
|
|
2715
2715
|
}
|
|
2716
2716
|
function rc(e) {
|
|
2717
2717
|
return e === "export-full-with-cap" ? Zr : ea;
|
|
@@ -2724,7 +2724,7 @@ function na({
|
|
|
2724
2724
|
documentTableDataPolicy: o
|
|
2725
2725
|
}) {
|
|
2726
2726
|
var u, c;
|
|
2727
|
-
const r = i && o !== void 0 &&
|
|
2727
|
+
const r = i && o !== void 0 && Pe(e), a = t && !r || e.type === "pivotTable" && n, s = jt(e.config) && Pe(e) && !e.sql, l = r ? ta(e) : !!(e.sql && ((c = (u = e.preferences) == null ? void 0 : u.tablePrefs) != null && c.enableDevModePagination));
|
|
2728
2728
|
return !a && (s || l);
|
|
2729
2729
|
}
|
|
2730
2730
|
function ia(e) {
|
|
@@ -2922,7 +2922,7 @@ function fc(e) {
|
|
|
2922
2922
|
throw d;
|
|
2923
2923
|
}
|
|
2924
2924
|
}
|
|
2925
|
-
function
|
|
2925
|
+
function Pn(e, t) {
|
|
2926
2926
|
const n = [], i = (o) => {
|
|
2927
2927
|
if (o.source) {
|
|
2928
2928
|
const r = io.safeParse(o.source);
|
|
@@ -2940,11 +2940,11 @@ function Bn(e, t) {
|
|
|
2940
2940
|
return n;
|
|
2941
2941
|
}
|
|
2942
2942
|
function pc(e, t = [], n = []) {
|
|
2943
|
-
return an([...ln(e), ...
|
|
2943
|
+
return an([...ln(e), ...Pn(t), ...n]);
|
|
2944
2944
|
}
|
|
2945
2945
|
function mc(e, t = {}) {
|
|
2946
2946
|
const n = t.controlBindings ?? [], i = zt(t.controlDefinitions ?? [], t.cardControlDefinitions ?? []), o = new Map(n.filter((r) => r.target === "config_field_selector" || r.target === "config_metric_selector").map((r) => [r, $t({ binding: r, definitions: i, controlValues: t.controlValues })]));
|
|
2947
|
-
return an([...ln(e), ...
|
|
2947
|
+
return an([...ln(e), ...Pn(n, o)]);
|
|
2948
2948
|
}
|
|
2949
2949
|
function sa(e) {
|
|
2950
2950
|
const t = Mo({
|
|
@@ -3093,12 +3093,12 @@ function ya(e) {
|
|
|
3093
3093
|
function Ic(e) {
|
|
3094
3094
|
return e.map((t) => `Skipped filter ${t.filterId || t.name || "unknown"}: ${t.reason}`);
|
|
3095
3095
|
}
|
|
3096
|
-
function
|
|
3096
|
+
function Bn(e) {
|
|
3097
3097
|
return e.replace(/[`"[\]]/g, "").trim().toLowerCase();
|
|
3098
3098
|
}
|
|
3099
3099
|
function oe(e) {
|
|
3100
3100
|
if (!e) return [];
|
|
3101
|
-
const t =
|
|
3101
|
+
const t = Bn(e);
|
|
3102
3102
|
if (!t) return [];
|
|
3103
3103
|
const n = t.split(".").filter(Boolean);
|
|
3104
3104
|
if (n.length === 0) return [];
|
|
@@ -3179,14 +3179,14 @@ function nt(e) {
|
|
|
3179
3179
|
}), oe(e.targetQualifiedTableName).forEach(
|
|
3180
3180
|
(o) => t.add(o)
|
|
3181
3181
|
), e.targetQualifiedTableName) {
|
|
3182
|
-
const o =
|
|
3182
|
+
const o = Bn(e.targetQualifiedTableName).split(".").filter(Boolean), r = o[o.length - 1];
|
|
3183
3183
|
r && t.add(r);
|
|
3184
3184
|
}
|
|
3185
3185
|
return (e.additionalAllowedIdentifiers || []).forEach((o) => {
|
|
3186
3186
|
oe(o).forEach((r) => t.add(r));
|
|
3187
3187
|
}), t;
|
|
3188
3188
|
}
|
|
3189
|
-
function
|
|
3189
|
+
function Be(e) {
|
|
3190
3190
|
const t = e.fieldMeta, n = /* @__PURE__ */ new Set(), i = oo.toLowerCase(), o = /* @__PURE__ */ new Set([
|
|
3191
3191
|
i,
|
|
3192
3192
|
"calculated_fields"
|
|
@@ -3228,10 +3228,10 @@ function Cc(e, t) {
|
|
|
3228
3228
|
var u;
|
|
3229
3229
|
if (!s) return !1;
|
|
3230
3230
|
const l = (u = s.calculatedFormula) == null ? void 0 : u.inputFields;
|
|
3231
|
-
return l != null && l.length ? l.every((c) => r(c)) :
|
|
3231
|
+
return l != null && l.length ? l.every((c) => r(c)) : Be({ fieldMeta: s }).length > 0;
|
|
3232
3232
|
};
|
|
3233
3233
|
for (const s of e) {
|
|
3234
|
-
const l =
|
|
3234
|
+
const l = Be(s);
|
|
3235
3235
|
if (!On(s) || !r(s.fieldMeta) || !n.size || !l.length || l.some((c) => n.has(c))) {
|
|
3236
3236
|
i.push(s);
|
|
3237
3237
|
continue;
|
|
@@ -3249,7 +3249,7 @@ function qn(e, t, n) {
|
|
|
3249
3249
|
if (u !== void 0)
|
|
3250
3250
|
return u ? { kind: "apply", proven: !0 } : { kind: "skip", reason: "dataset_not_reachable" };
|
|
3251
3251
|
if (!i) return { kind: "apply", proven: !1 };
|
|
3252
|
-
const c =
|
|
3252
|
+
const c = Be(e);
|
|
3253
3253
|
return c.length ? (a ? c.every((y) => n.has(y)) : c.some((y) => n.has(y))) ? { kind: "apply", proven: !0 } : {
|
|
3254
3254
|
kind: "skip",
|
|
3255
3255
|
reason: "dataset_not_reachable",
|
|
@@ -3865,12 +3865,12 @@ function Fc(e) {
|
|
|
3865
3865
|
const t = (n = e.liveValue) == null ? void 0 : n.operation;
|
|
3866
3866
|
return ot(t) ? rt(t) : e.pendingMode ?? e.authoredMode;
|
|
3867
3867
|
}
|
|
3868
|
-
function
|
|
3868
|
+
function Pa(e) {
|
|
3869
3869
|
var i;
|
|
3870
3870
|
let t = !1;
|
|
3871
3871
|
const n = (i = e.inputs) == null ? void 0 : i.map((o) => {
|
|
3872
3872
|
if (o.kind !== "filter" || !o.filter) return o;
|
|
3873
|
-
const r =
|
|
3873
|
+
const r = Ba(
|
|
3874
3874
|
o.filter,
|
|
3875
3875
|
new Set(Ka(e.defaultInputValues, o))
|
|
3876
3876
|
);
|
|
@@ -3878,7 +3878,7 @@ function Ba(e) {
|
|
|
3878
3878
|
});
|
|
3879
3879
|
return t ? { ...e, inputs: n } : e;
|
|
3880
3880
|
}
|
|
3881
|
-
function
|
|
3881
|
+
function Ba(e, t) {
|
|
3882
3882
|
if (t.size !== 1 || !ot(e.operation))
|
|
3883
3883
|
return e;
|
|
3884
3884
|
const [n] = t;
|
|
@@ -3896,7 +3896,7 @@ function Oa(e) {
|
|
|
3896
3896
|
}
|
|
3897
3897
|
function Sc(e) {
|
|
3898
3898
|
const n = K(e).issues.length ? e : Qa(e);
|
|
3899
|
-
return
|
|
3899
|
+
return Pa(n);
|
|
3900
3900
|
}
|
|
3901
3901
|
function qa(e, t) {
|
|
3902
3902
|
return !!t && e.endsWith(t);
|
|
@@ -3965,7 +3965,7 @@ function Dc(e, t, n) {
|
|
|
3965
3965
|
function kc(e) {
|
|
3966
3966
|
const { dashboard: t, sheetId: n } = e, i = [];
|
|
3967
3967
|
if (n)
|
|
3968
|
-
for (const { input: o } of
|
|
3968
|
+
for (const { input: o } of Pi(t, n, e.sheetKind)) {
|
|
3969
3969
|
const r = ri({
|
|
3970
3970
|
dashboard: t,
|
|
3971
3971
|
input: o,
|
|
@@ -4064,7 +4064,7 @@ function $a(e, t) {
|
|
|
4064
4064
|
);
|
|
4065
4065
|
(r = e.frames) != null && r.some(
|
|
4066
4066
|
(l) => l.visualId && l.cards.some((u) => u.id === o[a].id)
|
|
4067
|
-
) && (o[a].linkedReferenceOverrides =
|
|
4067
|
+
) && (o[a].linkedReferenceOverrides = Bo(
|
|
4068
4068
|
o[a].linkedReferenceOverrides,
|
|
4069
4069
|
{ inputAliases: s }
|
|
4070
4070
|
));
|
|
@@ -4114,7 +4114,7 @@ function Yn(e, t = {}) {
|
|
|
4114
4114
|
variableName: o.variableName ? xe(
|
|
4115
4115
|
o.variableName,
|
|
4116
4116
|
i
|
|
4117
|
-
) :
|
|
4117
|
+
) : Bi(r, i),
|
|
4118
4118
|
scope: { kind: "cards", cardIds: [e.id] },
|
|
4119
4119
|
runtimeScope: "perCard",
|
|
4120
4120
|
presentation: { placement: "card_header" },
|
|
@@ -4442,7 +4442,7 @@ const os = [
|
|
|
4442
4442
|
"full",
|
|
4443
4443
|
"none"
|
|
4444
4444
|
];
|
|
4445
|
-
function
|
|
4445
|
+
function B(e) {
|
|
4446
4446
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
4447
4447
|
}
|
|
4448
4448
|
const rs = /* @__PURE__ */ new Set([
|
|
@@ -4462,7 +4462,7 @@ const rs = /* @__PURE__ */ new Set([
|
|
|
4462
4462
|
"is not null"
|
|
4463
4463
|
]), as = /* @__PURE__ */ new Set(["string", "number", "date", "boolean"]);
|
|
4464
4464
|
function ss(e, t) {
|
|
4465
|
-
if (!
|
|
4465
|
+
if (!B(e) || e.kind !== "selection" || typeof e.id != "string" || !e.id.startsWith(`${t}:`) || typeof e.label != "string" || typeof e.variableName != "string" || typeof e.sourceCardId != "string" || !e.sourceCardId.startsWith(`${t}:`))
|
|
4466
4466
|
return;
|
|
4467
4467
|
const n = Oi.safeParse(e.settings);
|
|
4468
4468
|
if (n.success)
|
|
@@ -4479,16 +4479,16 @@ function ss(e, t) {
|
|
|
4479
4479
|
};
|
|
4480
4480
|
}
|
|
4481
4481
|
function ls(e, t) {
|
|
4482
|
-
if (!
|
|
4482
|
+
if (!B(e) || e.status !== "set" || !B(e.value))
|
|
4483
4483
|
return;
|
|
4484
4484
|
const n = e.value.filterValue;
|
|
4485
|
-
if (!(e.value.kind !== "filter" || !
|
|
4485
|
+
if (!(e.value.kind !== "filter" || !B(n) || n.filterId !== t || typeof n.name != "string" || !as.has(String(n.valueType)) || !rs.has(String(n.operation)) || !Array.isArray(n.values) || !n.values.every(
|
|
4486
4486
|
(i) => typeof i == "string" || typeof i == "number" || typeof i == "boolean"
|
|
4487
4487
|
)))
|
|
4488
4488
|
return e;
|
|
4489
4489
|
}
|
|
4490
4490
|
function cs(e, t) {
|
|
4491
|
-
if (!
|
|
4491
|
+
if (!B(e) || e.status !== "set" || !B(e.value) || e.value.kind !== "selection")
|
|
4492
4492
|
return;
|
|
4493
4493
|
const n = ve.safeParse(e.value.selection);
|
|
4494
4494
|
if (!(!n.success || n.data.sourceCardId !== t))
|
|
@@ -4500,14 +4500,14 @@ function cs(e, t) {
|
|
|
4500
4500
|
function Ec(e) {
|
|
4501
4501
|
if (!Array.isArray(e)) return;
|
|
4502
4502
|
const t = e.flatMap((n) => {
|
|
4503
|
-
if (!
|
|
4503
|
+
if (!B(n) || typeof n.namespace != "string" || !n.namespace || !os.includes(n.contextMode))
|
|
4504
4504
|
return [];
|
|
4505
4505
|
const i = n.namespace;
|
|
4506
4506
|
if (n.contextMode === "none")
|
|
4507
4507
|
return [Xn(i, "none")];
|
|
4508
|
-
if (!Array.isArray(n.definitions) || !Array.isArray(n.selectionDefinitions) || !
|
|
4508
|
+
if (!Array.isArray(n.definitions) || !Array.isArray(n.selectionDefinitions) || !B(n.values))
|
|
4509
4509
|
return [];
|
|
4510
|
-
const o = (f) =>
|
|
4510
|
+
const o = (f) => B(f) && typeof f.id == "string" && f.id.startsWith(`${i}:`), r = Ve({
|
|
4511
4511
|
inputs: n.definitions.filter(
|
|
4512
4512
|
(f) => o(f) && f.kind === "filter"
|
|
4513
4513
|
),
|
|
@@ -4523,7 +4523,7 @@ function Ec(e) {
|
|
|
4523
4523
|
const y = ss(f, i);
|
|
4524
4524
|
return y ? [y] : [];
|
|
4525
4525
|
}
|
|
4526
|
-
), u =
|
|
4526
|
+
), u = B(n.values.shared) ? n.values.shared : {}, c = {};
|
|
4527
4527
|
for (const f of s) {
|
|
4528
4528
|
const y = ls(
|
|
4529
4529
|
u[f.id],
|
|
@@ -4632,13 +4632,13 @@ function ni(e, t, n) {
|
|
|
4632
4632
|
...n.toolbarFilterVariableNames.map((o) => ({ variableName: o }))
|
|
4633
4633
|
];
|
|
4634
4634
|
}
|
|
4635
|
-
const
|
|
4636
|
-
function
|
|
4635
|
+
const Pt = /* @__PURE__ */ new WeakMap();
|
|
4636
|
+
function Bt({
|
|
4637
4637
|
dashboard: e,
|
|
4638
4638
|
card: t
|
|
4639
4639
|
}) {
|
|
4640
|
-
let n =
|
|
4641
|
-
if (n || (n = ds(e),
|
|
4640
|
+
let n = Pt.get(e);
|
|
4641
|
+
if (n || (n = ds(e), Pt.set(e, n)), !t) return n;
|
|
4642
4642
|
const i = Yn(t, {
|
|
4643
4643
|
existingInputs: n.inputs
|
|
4644
4644
|
}), o = ii(
|
|
@@ -4662,13 +4662,13 @@ function wc(e) {
|
|
|
4662
4662
|
const t = Kt.get(e);
|
|
4663
4663
|
if (t) return t;
|
|
4664
4664
|
const n = /* @__PURE__ */ new Map();
|
|
4665
|
-
for (const o of
|
|
4665
|
+
for (const o of Bt({
|
|
4666
4666
|
dashboard: e,
|
|
4667
4667
|
card: void 0
|
|
4668
4668
|
}).inputs)
|
|
4669
4669
|
n.set(o.id, o);
|
|
4670
4670
|
for (const { card: o } of Zi(e))
|
|
4671
|
-
for (const r of
|
|
4671
|
+
for (const r of Bt({
|
|
4672
4672
|
dashboard: e,
|
|
4673
4673
|
card: o
|
|
4674
4674
|
}).inputs)
|
|
@@ -5155,7 +5155,7 @@ function ri(e) {
|
|
|
5155
5155
|
throw new Error(((y = m.errors[0]) == null ? void 0 : y.message) || "Invalid comparison selection.");
|
|
5156
5156
|
}
|
|
5157
5157
|
if (e.input.kind === "filter") {
|
|
5158
|
-
const m = (l == null ? void 0 : l.kind) === "filter", p = m ? ai(e.input, l.filterValue) : void 0, d =
|
|
5158
|
+
const m = (l == null ? void 0 : l.kind) === "filter", p = m ? ai(e.input, l.filterValue) : void 0, d = Bs({
|
|
5159
5159
|
input: e.input,
|
|
5160
5160
|
filterValue: p
|
|
5161
5161
|
});
|
|
@@ -5324,15 +5324,15 @@ function ai(e, t) {
|
|
|
5324
5324
|
// for the new field or clears both stale projections.
|
|
5325
5325
|
sourceValue: n
|
|
5326
5326
|
});
|
|
5327
|
-
return
|
|
5327
|
+
return Ps(
|
|
5328
5328
|
e.filter,
|
|
5329
5329
|
Gi(e, s)
|
|
5330
5330
|
);
|
|
5331
5331
|
}
|
|
5332
|
-
function
|
|
5332
|
+
function Ps(e, t) {
|
|
5333
5333
|
return !(t != null && t.fieldMeta) || !e.title || t.fieldMeta.label === e.title ? t : { ...t, fieldMeta: { ...t.fieldMeta, label: e.title } };
|
|
5334
5334
|
}
|
|
5335
|
-
function
|
|
5335
|
+
function Bs({
|
|
5336
5336
|
input: e,
|
|
5337
5337
|
filterValue: t
|
|
5338
5338
|
}) {
|
|
@@ -5411,7 +5411,7 @@ export {
|
|
|
5411
5411
|
xc as F,
|
|
5412
5412
|
qa as G,
|
|
5413
5413
|
Ra as H,
|
|
5414
|
-
|
|
5414
|
+
Bo as I,
|
|
5415
5415
|
dl as J,
|
|
5416
5416
|
hl as K,
|
|
5417
5417
|
fc as L,
|
|
@@ -5466,7 +5466,7 @@ export {
|
|
|
5466
5466
|
ja as aV,
|
|
5467
5467
|
za as aW,
|
|
5468
5468
|
$a as aX,
|
|
5469
|
-
|
|
5469
|
+
Bt as aY,
|
|
5470
5470
|
ks as aZ,
|
|
5471
5471
|
qs as a_,
|
|
5472
5472
|
bc as aa,
|
|
@@ -5479,13 +5479,13 @@ export {
|
|
|
5479
5479
|
Gl as ah,
|
|
5480
5480
|
hr as ai,
|
|
5481
5481
|
br as aj,
|
|
5482
|
-
|
|
5482
|
+
Pl as ak,
|
|
5483
5483
|
dr as al,
|
|
5484
5484
|
yr as am,
|
|
5485
5485
|
mr as an,
|
|
5486
5486
|
Tn as ao,
|
|
5487
5487
|
_l as ap,
|
|
5488
|
-
|
|
5488
|
+
Bl as aq,
|
|
5489
5489
|
pr as ar,
|
|
5490
5490
|
vn as as,
|
|
5491
5491
|
Il as at,
|
|
@@ -5524,7 +5524,7 @@ export {
|
|
|
5524
5524
|
oc as bP,
|
|
5525
5525
|
ea as bQ,
|
|
5526
5526
|
sc as ba,
|
|
5527
|
-
|
|
5527
|
+
Pe as bb,
|
|
5528
5528
|
ta as bc,
|
|
5529
5529
|
oa as bd,
|
|
5530
5530
|
lc as be,
|
package/dist/chunks/{saved-dashboard-context-BMqMzNAo.js → saved-dashboard-context-DCtGmAWe.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var Z = Object.defineProperty;
|
|
2
2
|
var G = (e, t, r) => t in e ? Z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var k = (e, t, r) => G(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { c as Q, e as M, r as U, l as H, b as K, p as E, a as W } from "./resolve-dashboard-input-context-
|
|
5
|
-
import { r as X, a as Y, b as L, c as ee, d as te, g as re } from "./document-dashboard-inputs-
|
|
4
|
+
import { c as Q, e as M, r as U, l as H, b as K, p as E, a as W } from "./resolve-dashboard-input-context-Cm0b7s-d.js";
|
|
5
|
+
import { r as X, a as Y, b as L, c as ee, d as te, g as re } from "./document-dashboard-inputs-PoQihHLu.js";
|
|
6
6
|
import { w as v } from "./table-settings-WysCBj62.js";
|
|
7
|
-
import { s as ae, n as ne, g as se, d as oe, a as ie, i as de, b as le } from "./global-date-filter-utils-
|
|
7
|
+
import { s as ae, n as ne, g as se, d as oe, a as ie, i as de, b as le } from "./global-date-filter-utils-C1jCNWdV.js";
|
|
8
8
|
import { f as g, A as P, c as ce, d as ue, e as D } from "./context-BerEBuFR.js";
|
|
9
9
|
import { a as me, T as fe, P as pe, o as I, d as O, b as _ } from "./filter-value-text-Ddf55Ku1.js";
|
|
10
10
|
import { v as he, ad as ge } from "./validators-C-aOQlTB.js";
|
|
11
11
|
import { b as be } from "./metric-comparison-zpGw4lD6.js";
|
|
12
|
-
import { i as Ce } from "./custom-visual-inputs-
|
|
12
|
+
import { i as Ce } from "./custom-visual-inputs-ByQUyWf4.js";
|
|
13
13
|
function Ie(e) {
|
|
14
14
|
const t = e.qualifiedFieldName || e.name;
|
|
15
15
|
return e.label && e.label !== t ? `${e.label} (field ${t})` : t;
|