react-semaphor 0.1.596 → 0.1.598

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.
Files changed (69) hide show
  1. package/dist/analytics-protocol/index.js +329 -322
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +7 -7
  4. package/dist/briefings/index.js +4 -4
  5. package/dist/chunks/{aggregate-measure-field-DHlDj0Pc.js → aggregate-measure-field-DtKcEjG5.js} +2 -2
  6. package/dist/chunks/{assistant-chat-DodZKMI6.js → assistant-chat-DrI442Ld.js} +13 -13
  7. package/dist/chunks/{bookmark-impact-Dh-wiTs3.js → bookmark-impact-C6uWtNWF.js} +3 -3
  8. package/dist/chunks/{bookmark-state-Be2W3s6t.js → bookmark-state-BfeKmj5s.js} +4 -4
  9. package/dist/chunks/{card-filter-builder-BZIj-ib3.js → card-filter-builder-CSKCSpNo.js} +58 -58
  10. package/dist/chunks/{comparison-window-caption-DmMFtNP5.js → comparison-window-caption-3bum5j00.js} +5 -5
  11. package/dist/chunks/{dashboard-BCd8aKDN.js → dashboard-PYd63LbL.js} +1 -1
  12. package/dist/chunks/{dashboard-briefing-launcher-CE_z5Gh1.js → dashboard-briefing-launcher-C2AuKs10.js} +1157 -1152
  13. package/dist/chunks/{dashboard-controls-IG2KRX1y.js → dashboard-controls-BSbhyIkY.js} +15 -15
  14. package/dist/chunks/{dashboard-json-o-XrNqNW.js → dashboard-json-Bd1rxD3y.js} +4 -4
  15. package/dist/chunks/{dates-B-bKEsiu.js → dates-DHMCf-F7.js} +8 -8
  16. package/dist/chunks/{edit-dashboard-visual-HPTVtWGk.js → edit-dashboard-visual-D_0ZiWev.js} +498 -496
  17. package/dist/chunks/{filter-line-BpdPq1D2.js → filter-line-BdLyPYjH.js} +5 -5
  18. package/dist/chunks/{filter-reach-copy-DoXmRmk-.js → filter-reach-copy-Dxn-mTuG.js} +1301 -1222
  19. package/dist/chunks/{filter-value-text-CDQCIREQ.js → filter-value-text-C6g-nDUW.js} +4 -4
  20. package/dist/chunks/{index-C0jX5wlM.js → index-BHSDE54O.js} +5 -5
  21. package/dist/chunks/{layout-grid-DoFIfQGd.js → layout-grid-CYR-LVpl.js} +1 -1
  22. package/dist/chunks/{list-filter-BeTQxjNy.js → list-filter-B67GsjTw.js} +1 -1
  23. package/dist/chunks/{matrix-analytical-definition-CyWOwLmE.js → matrix-analytical-definition-C0IGLTZH.js} +21 -21
  24. package/dist/chunks/matrix-member-presentation-D5BIYuy5.js +258 -0
  25. package/dist/chunks/{matrix-operation-contract-CAanJeCj.js → matrix-operation-contract-RckfqkQm.js} +15 -15
  26. package/dist/chunks/{metric-comparison-BeKnUD08.js → metric-comparison-DsE8wdRh.js} +1 -1
  27. package/dist/chunks/{paintbrush-KeaU1L1a.js → paintbrush-xDDRjIyF.js} +1 -1
  28. package/dist/chunks/{palette-BcFJLeXB.js → palette-CbOgFCy2.js} +1 -1
  29. package/dist/chunks/{pivot-result-contract-expectations-Dt0E1Wou.js → pivot-result-contract-expectations-Cnq55Uno.js} +44 -44
  30. package/dist/chunks/{pivot-result-identity-BKUjYO1u.js → pivot-result-identity-b4-ugQhm.js} +1 -1
  31. package/dist/chunks/{raw-temporal-value-BzdgeDa7.js → raw-temporal-value-B9W38mi3.js} +1 -1
  32. package/dist/chunks/{report-preferences-dialog-CgskMwZJ.js → report-preferences-dialog-DTu3a7ce.js} +13 -13
  33. package/dist/chunks/{report-runtime-context-g4Zp_TU9.js → report-runtime-context-BvJkcbar.js} +1 -1
  34. package/dist/chunks/{resolve-dashboard-input-context-DfJshnw8.js → resolve-dashboard-input-context-Bw-DesV2.js} +4771 -4712
  35. package/dist/chunks/{save-C9CZAk6V.js → save-BgvAsp6X.js} +1 -1
  36. package/dist/chunks/{saved-dashboard-context-DdhPU2Kq.js → saved-dashboard-context-BFh0oOnF.js} +7 -7
  37. package/dist/chunks/{selection-filter-compiler-BclSpK3P.js → selection-filter-compiler-DHYsq3yM.js} +1 -1
  38. package/dist/chunks/{semaphor-ready-indicator-BuasVClR.js → semaphor-ready-indicator-WvgHMnj8.js} +33384 -32853
  39. package/dist/chunks/{shelf-drop-preview-context-DjOcz0mb.js → shelf-drop-preview-context-D6HgYFJp.js} +5 -5
  40. package/dist/chunks/{stored-dashboard-D6FtWx_3.js → stored-dashboard-vlG0Knxi.js} +94 -94
  41. package/dist/chunks/{style-sheet-parts-DM_Mw_sm.js → style-sheet-parts-ClmvtkSC.js} +2 -2
  42. package/dist/chunks/{table-export-sheet-DBlFMvE8.js → table-export-sheet-Bv6tVuMu.js} +1 -1
  43. package/dist/chunks/{token-types-BB2ImFx6.js → token-types-eMdcuB6j.js} +1 -1
  44. package/dist/chunks/{upload-CMTCg47S.js → upload-ClUeK8F0.js} +1 -1
  45. package/dist/chunks/{validators-BlEWWX9O.js → validators-DwhBEvnh.js} +1074 -1065
  46. package/dist/chunks/{variable-draft-CxdgKDCx.js → variable-draft-CauoSBN0.js} +4 -4
  47. package/dist/dashboard/index.js +2 -2
  48. package/dist/dashboard-authoring/index.js +1752 -1684
  49. package/dist/format-utils/index.js +13 -13
  50. package/dist/index.js +18 -18
  51. package/dist/report-runtime-context/index.js +1 -1
  52. package/dist/style.css +1 -1
  53. package/dist/surfboard/index.js +2 -2
  54. package/dist/types/components/shared/unsaved-changes/unsaved-changes-alert.d.ts +2 -1
  55. package/dist/types/components/sharing-and-management/hooks/paged-list.d.ts +22 -0
  56. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +17 -2
  57. package/dist/types/index.js +5 -5
  58. package/dist/types/lib/hooks/use-dashboard-unsaved-changes-check.d.ts +9 -1
  59. package/dist/types/lib/utils/filter-default-value-utils.d.ts +1 -1
  60. package/dist/types/shared/analytics-protocol/catalog-field-grounding.d.ts +7 -0
  61. package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
  62. package/dist/types/shared/analytics-protocol/numeric-range-options.d.ts +46 -0
  63. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +45 -0
  64. package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +2 -0
  65. package/dist/types/shared/dashboard-authoring/filter-model/number-condition-spec.d.ts +24 -0
  66. package/dist/types/shared/dashboard-authoring/filter-model/number-range-setting.d.ts +47 -0
  67. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +6 -2
  68. package/package.json +1 -1
  69. package/dist/chunks/matrix-member-presentation-Bj2YcHAP.js +0 -169
@@ -1,20 +1,20 @@
1
- import { i4 as hn, d3 as vn, cn as Fn, b1 as Dn, bp as Sn, k as Tn, cf as Vn, i5 as Te, eN as lt, eQ as Mn, bY as kn, i6 as xn, aD as Pn, h5 as ct, h7 as wn, bJ as Ve, i7 as dt, S as On, h9 as _n, dA as de, s as _, g_ as ue, n as Me, i8 as An, he as Bn, ds as ut, du as ft, dc as En, dz as Rn, dx as Le, dy as qn, b as Nn, de as jn, dr as zn, dp as Ln, bM as pt, bk as Kn, a7 as A, cr as Gn, hI as Hn, i9 as fe, ia as mt, ib as Un, ic as ke, hX as pe, id as Qn, ie as xe, ig as $n, ih as Wn, ii as Zn, ij as Jn, ik as Yn, o as Pe, il as Xn, p as U, r as er, h as tr, im as L, gR as we, io as te, ip as gt, iq as nr, M as rr, ir, is as or, gK as yt, it as ar, iu as sr, e as lr, iv as cr, iw as bt, ix as dr, iy as ur, a3 as It, iz as fr, iA as pr, iB as Ct, m as Oe, iC as mr, cT as gr, a8 as yr, t as ht, cS as br, hU as Ir, v as Cr, w as Ke, F as hr, iD as vr, iE as Fr, cU as Dr, iF as Sr } from "./resolve-dashboard-input-context-DfJshnw8.js";
2
- import { am as Tr, a7 as W, M as Vr, x as Mr, ay as Ce, y as kr, a9 as ne, aA as vt, W as xr, b as Pr, r as wr, k as Or, aE as _r } from "./validators-BlEWWX9O.js";
3
- import { r as Ft } from "./matrix-operation-contract-CAanJeCj.js";
1
+ import { ic as hn, db as vn, cp as Fn, b2 as Dn, br as Sn, k as Tn, ch as Vn, id as Te, eV as lt, eY as Mn, b_ as kn, ie as xn, aE as Pn, hd as ct, hf as wn, bL as Ve, ig as dt, S as On, hh as _n, dI as de, s as _, h6 as ue, n as Me, ih as Bn, hm as An, dA as ut, dC as ft, dk as En, dH as Rn, dF as Le, dG as qn, b as Nn, dm as zn, dz as jn, dx as Ln, bO as pt, bm as Kn, a8 as B, ct as Gn, hQ as Hn, ii as fe, ij as mt, ik as Un, il as ke, i3 as pe, im as Qn, io as xe, ip as $n, iq as Wn, ir as Zn, is as Jn, it as Yn, o as Pe, iu as Xn, p as U, r as er, h as tr, iv as L, gZ as we, iw as te, ix as gt, iy as nr, M as rr, iz as ir, iA as or, gS as yt, iB as ar, iC as sr, e as lr, iD as cr, iE as bt, iF as dr, iG as ur, a3 as It, iH as fr, iI as pr, iJ as Ct, m as Oe, iK as mr, cV as gr, a9 as yr, t as ht, cU as br, i0 as Ir, v as Cr, w as Ke, F as hr, iL as vr, iM as Fr, cW as Dr, iN as Sr } from "./resolve-dashboard-input-context-Bw-DesV2.js";
2
+ import { an as Tr, a7 as W, M as Vr, x as Mr, az as Ce, y as kr, aa as ne, aB as vt, W as xr, b as Pr, r as wr, k as Or, aF as _r } from "./validators-DwhBEvnh.js";
3
+ import { r as Ft } from "./matrix-operation-contract-RckfqkQm.js";
4
4
  import "./analytics-base-schemas-8wz9vqn_.js";
5
5
  import "./pickers-DkqmtnTL.js";
6
6
  import { canonicalizeSupportedCurrencyCode as Dt } from "../value-format-preferences/index.js";
7
- import { ZodError as Ar } from "zod";
8
- import { b as re, r as Br, b7 as Er, i as Rr, aQ as qr, aj as Ge, aO as He } from "./pivot-result-contract-expectations-Dt0E1Wou.js";
9
- import { aE as St, aF as Tt, aG as be, a3 as Nr, aD as Vt, C as he, aH as j, A as Z, i as Mt, w as jr, q as zr, v as Lr, B as _e, aI as Kr, al as Gr, G as kt, F as Hr, K as Ue, P as xt, Q as Pt, J as wt } from "./bookmark-state-Be2W3s6t.js";
7
+ import { ZodError as Br } from "zod";
8
+ import { b as re, r as Ar, b7 as Er, i as Rr, aQ as qr, aj as Ge, aO as He } from "./pivot-result-contract-expectations-Cnq55Uno.js";
9
+ import { aE as St, aF as Tt, aG as be, a3 as Nr, aD as Vt, C as he, aH as z, A as Z, i as Mt, w as zr, q as jr, v as Lr, B as _e, aI as Kr, al as Gr, G as kt, F as Hr, K as Ue, P as xt, Q as Pt, J as wt } from "./bookmark-state-BfeKmj5s.js";
10
10
  import "./schema-C9NPiIru.js";
11
11
  import "./index-CV_Kzou0.js";
12
12
  import "./context-CVXTFljo.js";
13
- import { a as Ur, i as Qr } from "./matrix-analytical-definition-CyWOwLmE.js";
14
- import { D as $r } from "./report-runtime-context-g4Zp_TU9.js";
13
+ import { a as Ur, i as Qr } from "./matrix-analytical-definition-C0IGLTZH.js";
14
+ import { D as $r } from "./report-runtime-context-BvJkcbar.js";
15
15
  import { isPdfTableCardType as Wr, PDF_CAPACITY as Zr } from "../pdf-export-policy/index.js";
16
- import { K as Qe } from "./raw-temporal-value-BzdgeDa7.js";
17
- import { t as Jr, n as Yr, c as Xr } from "./selection-filter-compiler-BclSpK3P.js";
16
+ import { K as Qe } from "./raw-temporal-value-B9W38mi3.js";
17
+ import { t as Jr, n as Yr, c as Xr } from "./selection-filter-compiler-DHYsq3yM.js";
18
18
  const ei = (e, t) => {
19
19
  const n = {};
20
20
  if (e === null || t === null)
@@ -183,7 +183,7 @@ function Ot(e) {
183
183
  }
184
184
  return Array.from(t);
185
185
  }
186
- function Ae(e) {
186
+ function Be(e) {
187
187
  const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
188
188
  for (const r of e.controlBindings || [])
189
189
  t.add(r.controlId), r.target === "sql_param" && n.set(r.paramId, r.controlId);
@@ -311,7 +311,7 @@ function hi(e) {
311
311
  const r = Array.isArray(t.selectedEntities) ? t.selectedEntities.map((o) => o && typeof o == "object" && "connectionType" in o && !String(o.connectionType ?? "").trim() ? { ...o, connectionType: n } : o) : t.selectedEntities;
312
312
  return { ...e, dataSource: { ...t, connectionType: n, selectedEntities: r } };
313
313
  }
314
- function At(e) {
314
+ function Bt(e) {
315
315
  var a, s;
316
316
  const t = e;
317
317
  if (!Fn(t)) return { status: "not_legacy", card: e };
@@ -330,13 +330,13 @@ function At(e) {
330
330
  }
331
331
  function Ga(e) {
332
332
  if (!e.cards) return e;
333
- const t = e.cards.map((n) => At(n).card);
333
+ const t = e.cards.map((n) => Bt(n).card);
334
334
  return t.every((n, r) => n === e.cards[r]) ? e : { ...e, cards: t };
335
335
  }
336
336
  function vi(e) {
337
337
  const t = [];
338
338
  return { dashboard: Nr(e, (r, i) => {
339
- const o = At(r);
339
+ const o = Bt(r);
340
340
  return o.status === "routed" && o.gaps.length && t.push({ location: i, gaps: o.gaps }), o.card;
341
341
  }), routedWithGaps: t };
342
342
  }
@@ -391,7 +391,7 @@ function ae(e) {
391
391
  } = e;
392
392
  return Q(i);
393
393
  }
394
- function Bt(e, t) {
394
+ function At(e, t) {
395
395
  return e == null ? void 0 : e.map(
396
396
  (n) => lt(Q(oe([n])[0]), n.format, t)
397
397
  );
@@ -430,7 +430,7 @@ function Q(e) {
430
430
  }), t;
431
431
  }
432
432
  function Vi(e, t) {
433
- return t.cardType === "detailTable" || !kn(t.cardType) || t.temporalResultOwner !== "config" ? Bt(e, "grouped") : e == null ? void 0 : e.map((n) => {
433
+ return t.cardType === "detailTable" || !kn(t.cardType) || t.temporalResultOwner !== "config" ? At(e, "grouped") : e == null ? void 0 : e.map((n) => {
434
434
  const r = xn(n), i = ae(r ?? n);
435
435
  if (!r)
436
436
  return i;
@@ -455,7 +455,7 @@ function Mi(e, t = {}) {
455
455
  metricColumns: (o = oe(n.metricColumns)) == null ? void 0 : o.map(
456
456
  Q
457
457
  ),
458
- pivotByColumns: Bt(n.pivotByColumns, "grouped"),
458
+ pivotByColumns: At(n.pivotByColumns, "grouped"),
459
459
  sortByColumns: (a = oe(n.sortByColumns)) == null ? void 0 : a.map(
460
460
  Q
461
461
  ),
@@ -508,7 +508,7 @@ function Fe(e, t = {}) {
508
508
  kind: "column",
509
509
  columnKey: t.resultColumnKey
510
510
  } : void 0, f = re(
511
- Br({ card: e, column: { kind: "sqlKpiValue" }, surface: "kpiValue" }).format,
511
+ Ar({ card: e, column: { kind: "sqlKpiValue" }, surface: "kpiValue" }).format,
512
512
  { preserveOmittedProperties: !0 }
513
513
  );
514
514
  return {
@@ -563,7 +563,7 @@ function Oi(e) {
563
563
  var t, n;
564
564
  return e.type === "detailTable" ? ((t = e.config) == null ? void 0 : t.detailColumns) || [] : ((n = e.config) == null ? void 0 : n.metricColumns) || [];
565
565
  }
566
- function jt(e) {
566
+ function zt(e) {
567
567
  return new Set(
568
568
  Vt(e).flatMap(
569
569
  (t) => (t.controlBindings || []).filter(de).map((n) => n.controlId)
@@ -592,13 +592,13 @@ function Je(e) {
592
592
  return [
593
593
  ...new Map(
594
594
  e.map((t) => [
595
- z(t),
595
+ j(t),
596
596
  t
597
597
  ])
598
598
  ).values()
599
599
  ];
600
600
  }
601
- function Ai(e, t = [], n) {
601
+ function Bi(e, t = [], n) {
602
602
  var D;
603
603
  const r = !!((D = e.sql) != null && D.trim()), i = ct(e.type), o = r && i && e.type !== "kpi" && e.type !== "matrixTable", a = Oi(e), s = On(e), l = !r && e.type === "kpi" ? a.map(
604
604
  (g) => Fe(e, {
@@ -680,10 +680,10 @@ function Qa(e) {
680
680
  var t;
681
681
  return (t = e.card.sql) != null && t.trim() ? { kind: "column", columnKey: e.columnKey } : e.metricId ? { kind: "metric", metricId: e.metricId } : void 0;
682
682
  }
683
- function z(e) {
683
+ function j(e) {
684
684
  return e.kind === "metric" ? `metric:${e.metricId}` : e.kind === "column" ? `column:${e.columnKey}` : `matrix_measure:${e.measureId}`;
685
685
  }
686
- function Bi(e) {
686
+ function Ai(e) {
687
687
  if (!e || typeof e != "object" || Array.isArray(e))
688
688
  return;
689
689
  const t = e;
@@ -698,7 +698,7 @@ function Ye(e) {
698
698
  const t = Dt(e);
699
699
  return typeof e == "string" && e === t ? t : void 0;
700
700
  }
701
- function zt(e) {
701
+ function jt(e) {
702
702
  if (e.type !== "enum" || e.source.kind !== "manual")
703
703
  return { diagnostic: "invalid_control_type" };
704
704
  const t = e.source.options.map(
@@ -717,10 +717,10 @@ function zt(e) {
717
717
  };
718
718
  }
719
719
  function $a(e) {
720
- return "control" in zt(e);
720
+ return "control" in jt(e);
721
721
  }
722
722
  function Lt(e) {
723
- const t = jt(e.dashboard);
723
+ const t = zt(e.dashboard);
724
724
  if (t.size === 0)
725
725
  return {
726
726
  definitions: e.definitions || [],
@@ -746,7 +746,7 @@ function Wa(e) {
746
746
  return Lt({
747
747
  ...e,
748
748
  referencedControlIds: new Set(
749
- Ae({
749
+ Be({
750
750
  sql: e.filterSql,
751
751
  controlBindings: []
752
752
  })
@@ -758,7 +758,7 @@ function Za(e) {
758
758
  return Lt({
759
759
  ...e,
760
760
  referencedControlIds: new Set(
761
- Ae({
761
+ Be({
762
762
  sql: (t = e.source) == null ? void 0 : t.sql,
763
763
  controlBindings: []
764
764
  })
@@ -768,10 +768,10 @@ function Za(e) {
768
768
  function Kt(e) {
769
769
  return {
770
770
  knownKeys: new Set(
771
- e.knownTargets.map(z)
771
+ e.knownTargets.map(j)
772
772
  ),
773
773
  eligibleKeys: new Set(
774
- e.eligibleTargets.map(z)
774
+ e.eligibleTargets.map(j)
775
775
  ),
776
776
  controlsById: new Map(
777
777
  (e.controls || []).map((t) => [t.id, t])
@@ -784,14 +784,14 @@ function Gt(e, t) {
784
784
  const n = e, r = typeof n.controlId == "string" && n.controlId.trim() ? n.controlId : void 0;
785
785
  if (!r)
786
786
  return { diagnostic: { code: "invalid_binding_shape" } };
787
- const i = Bi(
787
+ const i = Ai(
788
788
  n.presentationTarget
789
789
  );
790
790
  if (!i)
791
791
  return {
792
792
  diagnostic: { code: "missing_target", controlId: r }
793
793
  };
794
- const o = z(i);
794
+ const o = j(i);
795
795
  if (!t.knownKeys.has(o))
796
796
  return {
797
797
  diagnostic: { code: "stale_target", controlId: r }
@@ -805,7 +805,7 @@ function Gt(e, t) {
805
805
  return {
806
806
  diagnostic: { code: "missing_control", controlId: r }
807
807
  };
808
- const s = zt(a);
808
+ const s = jt(a);
809
809
  return "diagnostic" in s ? {
810
810
  diagnostic: { code: s.diagnostic, controlId: r }
811
811
  } : {
@@ -826,7 +826,7 @@ function Ja(e) {
826
826
  }
827
827
  function Ei(e) {
828
828
  var i;
829
- const t = [], n = z(e.target), r = Kt(e);
829
+ const t = [], n = j(e.target), r = Kt(e);
830
830
  for (const o of e.bindings || []) {
831
831
  const a = Gt(o, r);
832
832
  if ("diagnostic" in a) {
@@ -834,7 +834,7 @@ function Ei(e) {
834
834
  continue;
835
835
  }
836
836
  const s = a.binding;
837
- if (!s || z(
837
+ if (!s || j(
838
838
  s.presentationTarget
839
839
  ) !== n) continue;
840
840
  const c = Dt(
@@ -846,7 +846,7 @@ function Ei(e) {
846
846
  return { diagnostics: t };
847
847
  }
848
848
  function Ri(e, t, n, r) {
849
- const i = { ...e, config: { ...e.config, matrix: t } }, o = Ai(i, [], r), a = Nt(i, r), s = { ...t.presentation.measureFormats };
849
+ const i = { ...e, config: { ...e.config, matrix: t } }, o = Bi(i, [], r), a = Nt(i, r), s = { ...t.presentation.measureFormats };
850
850
  for (const l of a) {
851
851
  const c = { kind: "matrix_measure", measureId: l.measureId }, { currency: d } = Ei({
852
852
  ...n,
@@ -925,7 +925,7 @@ function Ni(e, t) {
925
925
  } : {}
926
926
  };
927
927
  }
928
- function ji(e, t) {
928
+ function zi(e, t) {
929
929
  return e.target === "sql_param" || e.target === "presentation_currency" ? e : e.target === "config_field_selector" && !(t != null && t.includePresentation) ? {
930
930
  ...e,
931
931
  mapping: Object.fromEntries(
@@ -954,10 +954,10 @@ function Xe(e = [], t) {
954
954
  (n, r) => n.id.localeCompare(r.id) || n.scope.localeCompare(r.scope) || n.type.localeCompare(r.type)
955
955
  );
956
956
  }
957
- function zi(e = [], t) {
957
+ function ji(e = [], t) {
958
958
  return e.filter(
959
959
  (n) => (t == null ? void 0 : t.includePresentation) || !de(n)
960
- ).map((n) => ji(n, t)).sort(
960
+ ).map((n) => zi(n, t)).sort(
961
961
  (n, r) => _(n).localeCompare(_(r))
962
962
  );
963
963
  }
@@ -968,7 +968,7 @@ function Li(e, t) {
968
968
  e.cardControlDefinitions,
969
969
  t
970
970
  ),
971
- controlBindings: zi(e.controlBindings, t)
971
+ controlBindings: ji(e.controlBindings, t)
972
972
  }) : "__none__";
973
973
  }
974
974
  const Ki = ["table", "detailTable"], et = (e) => Ki.includes(e.type), Gi = "calendar-context";
@@ -976,7 +976,7 @@ function Hi(e) {
976
976
  const { id: t, label: n, field: r, ...i } = e;
977
977
  return {
978
978
  ...i,
979
- field: Be(
979
+ field: Ae(
980
980
  r
981
981
  )
982
982
  };
@@ -991,7 +991,7 @@ function ge(e) {
991
991
  groups: r.map((o) => ge(o))
992
992
  };
993
993
  }
994
- function Be(e) {
994
+ function Ae(e) {
995
995
  var r, i;
996
996
  const { label: t, ...n } = e;
997
997
  return {
@@ -1000,7 +1000,7 @@ function Be(e) {
1000
1000
  calculatedFormula: {
1001
1001
  ...e.calculatedFormula,
1002
1002
  inputFields: e.calculatedFormula.inputFields.map(
1003
- Be
1003
+ Ae
1004
1004
  )
1005
1005
  }
1006
1006
  } : {},
@@ -1015,7 +1015,7 @@ function Be(e) {
1015
1015
  };
1016
1016
  }
1017
1017
  function Ui(e) {
1018
- const t = (n) => n == null ? void 0 : n.map(Be);
1018
+ const t = (n) => n == null ? void 0 : n.map(Ae);
1019
1019
  return {
1020
1020
  ...e,
1021
1021
  groupByColumns: t(e.groupByColumns),
@@ -1077,7 +1077,7 @@ function Zi(e, {
1077
1077
  }
1078
1078
  ), y = (e == null ? void 0 : e.sql) || "", p = Me((e == null ? void 0 : e.python) || ""), b = ["table", "detailTable", "matrixTable"].includes(
1079
1079
  e.type
1080
- ) ? "table" : e.type === "kpi" ? "kpi" : "chart", I = s || Et(e.config, { cardType: e.type, dataSource: e.dataSource }), C = An.includes(
1080
+ ) ? "table" : e.type === "kpi" ? "kpi" : "chart", I = s || Et(e.config, { cardType: e.type, dataSource: e.dataSource }), C = Bn.includes(
1081
1081
  e.type
1082
1082
  );
1083
1083
  return [
@@ -1201,7 +1201,7 @@ function oo(e) {
1201
1201
  isTablePrintMode: ((a = e.display) == null ? void 0 : a.isTablePrintMode) ?? !1,
1202
1202
  isDocumentSectionRuntime: !!e.documentSection,
1203
1203
  documentTableDataPolicy: (s = e.documentSection) == null ? void 0 : s.documentTableDataPolicy
1204
- }), { page: r } = e, i = e.documentSection && !e.documentSection.totalsRow ? void 0 : Bn(t, e.finalConfig), o = !!((l = e.display) != null && l.deliveryStrict && e.display.isTablePrintMode && !e.documentSection && Wr(t.type));
1204
+ }), { page: r } = e, i = e.documentSection && !e.documentSection.totalsRow ? void 0 : An(t, e.finalConfig), o = !!((l = e.display) != null && l.deliveryStrict && e.display.isTablePrintMode && !e.documentSection && Wr(t.type));
1205
1205
  return {
1206
1206
  ...i ? { tableTotalsRequest: i } : {},
1207
1207
  ...o ? { sourceRowProbe: { limit: Zr.maxTableRows } } : {},
@@ -1274,7 +1274,7 @@ function co(e) {
1274
1274
  }
1275
1275
  return l = { refs: p, byId: b }, l;
1276
1276
  }, d = (p, b) => {
1277
- throw new zn(p, {
1277
+ throw new jn(p, {
1278
1278
  code: Ln,
1279
1279
  ...b ? { controlId: b } : {}
1280
1280
  });
@@ -1351,9 +1351,9 @@ function co(e) {
1351
1351
  Nn(C).some((h) => h.value === I.aggregate) || d(`Aggregation '${I.aggregate}' is not eligible for this Matrix field datatype.`, b);
1352
1352
  }
1353
1353
  try {
1354
- return jn(m.data, t);
1354
+ return zn(m.data, t);
1355
1355
  } catch (p) {
1356
- if (p instanceof Ar) return d(p.message);
1356
+ if (p instanceof Br) return d(p.message);
1357
1357
  throw p;
1358
1358
  }
1359
1359
  }
@@ -1580,7 +1580,7 @@ function To(e) {
1580
1580
  return Ee(e.operation) ? [Re(e.operation)] : [];
1581
1581
  }
1582
1582
  function cs(e) {
1583
- const t = St(e), r = A(t).issues.length ? t : Ta(t);
1583
+ const t = St(e), r = B(t).issues.length ? t : Ta(t);
1584
1584
  return vi(
1585
1585
  Gn(Fo(r))
1586
1586
  ).dashboard;
@@ -1732,7 +1732,7 @@ function Mo(e, t) {
1732
1732
  }
1733
1733
  function ko(e, t, n) {
1734
1734
  const r = new Map(
1735
- j(e).map(({ card: a }) => [
1735
+ z(e).map(({ card: a }) => [
1736
1736
  a.id,
1737
1737
  new Map((a.inlineFilters ?? []).map((s) => [s.id, s]))
1738
1738
  ])
@@ -1789,7 +1789,7 @@ function fs(e, t) {
1789
1789
  }
1790
1790
  const xo = ["bySheetId", "byCardId", "byDocumentSectionId"];
1791
1791
  function Po(e, t) {
1792
- const n = A(e);
1792
+ const n = B(e);
1793
1793
  let r = !1;
1794
1794
  const i = (a) => {
1795
1795
  if (!a) return a;
@@ -1861,8 +1861,8 @@ function ms(e, t) {
1861
1861
  function Xt(e, t, n, r) {
1862
1862
  if (!n) return {};
1863
1863
  const i = new Set((e.sheets ?? []).map((c) => c.id)), o = new Set(
1864
- j(e).map(({ card: c }) => c.id)
1865
- ), a = A(e), s = (c) => {
1864
+ z(e).map(({ card: c }) => c.id)
1865
+ ), a = B(e), s = (c) => {
1866
1866
  var u;
1867
1867
  if (!c) return;
1868
1868
  const d = {};
@@ -1933,12 +1933,12 @@ function Xt(e, t, n, r) {
1933
1933
  }
1934
1934
  function O(e, t, n, r = {}) {
1935
1935
  const i = new Map(
1936
- j(e).map(({ card: a }) => [a.id, a])
1936
+ z(e).map(({ card: a }) => [a.id, a])
1937
1937
  ), o = {};
1938
1938
  for (const [a, s] of Object.entries(t ?? {})) {
1939
1939
  const l = i.get(a);
1940
- if (l && jr(l)) {
1941
- zr(s) || (o[a] = s);
1940
+ if (l && zr(l)) {
1941
+ jr(s) || (o[a] = s);
1942
1942
  continue;
1943
1943
  }
1944
1944
  if (l && r.sessionSorts && Lr(l)) {
@@ -1965,7 +1965,7 @@ function Oo(e, t, n) {
1965
1965
  });
1966
1966
  }
1967
1967
  }
1968
- const je = (e, t) => pe(e ?? null, t ?? null);
1968
+ const ze = (e, t) => pe(e ?? null, t ?? null);
1969
1969
  function en(e) {
1970
1970
  return {
1971
1971
  adHocFilterValues: e.adHocFilterValues,
@@ -2047,7 +2047,7 @@ function nt(e, t, n, r) {
2047
2047
  { ...f, ...m }
2048
2048
  ),
2049
2049
  rememberedWrites: r.writeRemembered ? Object.entries(f).filter(
2050
- ([y, p]) => !je(m[y], p)
2050
+ ([y, p]) => !ze(m[y], p)
2051
2051
  ).map(([y, p]) => ({
2052
2052
  kind: "set",
2053
2053
  cardId: y,
@@ -2073,7 +2073,7 @@ function rt(e, t, n) {
2073
2073
  // A reload in place keeps ad-hoc values, as today (P4a-02 f), unless the
2074
2074
  // template now defines a filter with that id.
2075
2075
  adHocFilterValues: t.adHocFilterValues.filter(
2076
- (o) => !A(r).findFilterInput({ filterId: o.filterId })
2076
+ (o) => !B(r).findFilterInput({ filterId: o.filterId })
2077
2077
  ),
2078
2078
  // A host's new control defaults are the baseline's, not the viewer's.
2079
2079
  controlOverrides: n.controlsChanged ? i.controlOverrides : t.controlOverrides,
@@ -2173,7 +2173,7 @@ function gs(e) {
2173
2173
  ...Object.keys(l),
2174
2174
  ...Object.keys(s)
2175
2175
  ])) {
2176
- if (je(l[d], s[d])) continue;
2176
+ if (ze(l[d], s[d])) continue;
2177
2177
  const u = s[d];
2178
2178
  c.push(
2179
2179
  u ? { kind: "set", cardId: d, settings: u } : { kind: "clear", cardId: d }
@@ -2281,13 +2281,13 @@ function Is(e) {
2281
2281
  ...Object.keys(o).length ? { tableSettings: o } : {}
2282
2282
  };
2283
2283
  }
2284
- function Ao(e) {
2284
+ function Bo(e) {
2285
2285
  const t = /* @__PURE__ */ new Map();
2286
2286
  for (const n of Pe(e))
2287
2287
  n.label && t.set(n.id, n.label);
2288
2288
  return t;
2289
2289
  }
2290
- function Bo(e, t, n) {
2290
+ function Ao(e, t, n) {
2291
2291
  var i, o;
2292
2292
  const r = Ft(n);
2293
2293
  if (r) {
@@ -2298,14 +2298,14 @@ function Bo(e, t, n) {
2298
2298
  }
2299
2299
  function Cs(e) {
2300
2300
  var c, d;
2301
- const { dashboard: t, opened: n, current: r } = e, i = [], o = Ao(t), a = /* @__PURE__ */ new Set();
2301
+ const { dashboard: t, opened: n, current: r } = e, i = [], o = Bo(t), a = /* @__PURE__ */ new Set();
2302
2302
  for (const u of $(
2303
2303
  rn(n.inputs, r.inputs)
2304
2304
  ))
2305
2305
  a.has(u.inputId) || (a.add(u.inputId), i.push({
2306
2306
  target: "input",
2307
2307
  inputId: u.inputId,
2308
- label: Bo(t, o, u.inputId)
2308
+ label: Ao(t, o, u.inputId)
2309
2309
  }));
2310
2310
  (n.selectedSheetId ?? null) !== (r.selectedSheetId ?? null) && i.push({ target: "sheet" });
2311
2311
  const s = O(
@@ -2321,7 +2321,7 @@ function Cs(e) {
2321
2321
  ...Object.keys(s),
2322
2322
  ...Object.keys(l)
2323
2323
  ]))
2324
- je(s[u], l[u]) || i.push({
2324
+ ze(s[u], l[u]) || i.push({
2325
2325
  target: "table",
2326
2326
  cardId: u,
2327
2327
  cardTitle: ((d = (c = Z(t, u)) == null ? void 0 : c.title) == null ? void 0 : d.trim()) || "Table"
@@ -2426,10 +2426,10 @@ const Ro = /* @__PURE__ */ new Set([
2426
2426
  "is null",
2427
2427
  "is not null"
2428
2428
  ]), qo = /^(\d{4}-\d{2}-\d{2})T/, No = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:\d{2})$/;
2429
- function ze(e) {
2429
+ function je(e) {
2430
2430
  return Ro.has(e);
2431
2431
  }
2432
- function jo(e, t) {
2432
+ function zo(e, t) {
2433
2433
  if (e instanceof Date)
2434
2434
  return Number.isNaN(e.getTime()) ? e : t ? He(e, t, "yyyy-MM-dd") : e.toISOString().slice(0, 10);
2435
2435
  if (typeof e != "string")
@@ -2445,7 +2445,7 @@ function jo(e, t) {
2445
2445
  }
2446
2446
  function on(e, t) {
2447
2447
  return Array.isArray(e) ? e.map(
2448
- (n) => jo(n, t)
2448
+ (n) => zo(n, t)
2449
2449
  ) : e;
2450
2450
  }
2451
2451
  function an(e) {
@@ -2463,7 +2463,7 @@ function sn(e) {
2463
2463
  } = e;
2464
2464
  if (!t || !n)
2465
2465
  return;
2466
- if (!ze(n.operation))
2466
+ if (!je(n.operation))
2467
2467
  return {
2468
2468
  ...n,
2469
2469
  filterId: t.id
@@ -2482,7 +2482,7 @@ function sn(e) {
2482
2482
  ...d ? { temporalPrecision: d } : {}
2483
2483
  };
2484
2484
  }
2485
- function zo(e) {
2485
+ function jo(e) {
2486
2486
  const t = L(e.filters);
2487
2487
  if (!t)
2488
2488
  return e.filterValues;
@@ -2503,7 +2503,7 @@ function ln(e) {
2503
2503
  timezone: o,
2504
2504
  allowMinutePrecision: a = !1
2505
2505
  } = e;
2506
- if (!t || !n || !r || !ze(n.operation))
2506
+ if (!t || !n || !r || !je(n.operation))
2507
2507
  return null;
2508
2508
  const s = n, l = nr(
2509
2509
  r.dataType
@@ -2539,7 +2539,7 @@ function ln(e) {
2539
2539
  ...u ? { temporalPrecision: u } : {}
2540
2540
  };
2541
2541
  }
2542
- function B(e) {
2542
+ function A(e) {
2543
2543
  return typeof e == "string" ? e.trim() : "";
2544
2544
  }
2545
2545
  function Lo(e) {
@@ -2547,9 +2547,9 @@ function Lo(e) {
2547
2547
  return (((t = e.semanticContext) == null ? void 0 : t.selectedEntities) || []).filter((n) => typeof n == "object" && n !== null).filter((n) => n.type === "dataset").map((n) => {
2548
2548
  var r;
2549
2549
  return {
2550
- domainId: B(n.domainId) || B((r = e.semanticContext) == null ? void 0 : r.semanticDomainId),
2551
- datasetName: B(n.name),
2552
- selectedEntityId: B(n.id)
2550
+ domainId: A(n.domainId) || A((r = e.semanticContext) == null ? void 0 : r.semanticDomainId),
2551
+ datasetName: A(n.name),
2552
+ selectedEntityId: A(n.id)
2553
2553
  };
2554
2554
  }).filter((n) => n.domainId && n.datasetName);
2555
2555
  }
@@ -2557,7 +2557,7 @@ function Ko(e) {
2557
2557
  var l, c, d, u, f;
2558
2558
  if (U(e) || (l = e.sql) != null && l.trim())
2559
2559
  return null;
2560
- const t = Lo(e), n = B((c = e.semanticContext) == null ? void 0 : c.semanticDomainId), r = B((d = e.fieldMeta) == null ? void 0 : d.entityId), i = B((u = e.fieldMeta) == null ? void 0 : u.entityName), o = B((f = e.fieldMeta) == null ? void 0 : f.entityType) === "dataset", a = t.find(
2560
+ const t = Lo(e), n = A((c = e.semanticContext) == null ? void 0 : c.semanticDomainId), r = A((d = e.fieldMeta) == null ? void 0 : d.entityId), i = A((u = e.fieldMeta) == null ? void 0 : u.entityName), o = A((f = e.fieldMeta) == null ? void 0 : f.entityType) === "dataset", a = t.find(
2561
2561
  (m) => r && m.selectedEntityId === r
2562
2562
  );
2563
2563
  if (a)
@@ -2653,7 +2653,7 @@ function Fs(e) {
2653
2653
  const t = L(e.filters), n = an(e), r = t ? e.filterValues.find(
2654
2654
  (a) => a.filterId === t.id
2655
2655
  ) : void 0, i = cn(e);
2656
- return !t || !r || !ze(r.operation) ? i : [
2656
+ return !t || !r || !je(r.operation) ? i : [
2657
2657
  {
2658
2658
  ...sn({
2659
2659
  globalDateFilter: t,
@@ -2670,7 +2670,7 @@ function Fs(e) {
2670
2670
  class Uo extends Error {
2671
2671
  }
2672
2672
  function Ds(e, t) {
2673
- const n = new Map((e ? j(e) : []).map(({ card: r }) => [r.id, r]));
2673
+ const n = new Map((e ? z(e) : []).map(({ card: r }) => [r.id, r]));
2674
2674
  return t && n.set(t.id, t), [...n.values()].flatMap((r) => {
2675
2675
  const i = Ve(r);
2676
2676
  return i.status === "ready" ? uo(i.config.spec, r.controlBindings) : [];
@@ -2830,7 +2830,7 @@ function fn(e, t, n) {
2830
2830
  const i = t.controlBindings.filter(
2831
2831
  (f) => !de(f)
2832
2832
  ), o = new Set(
2833
- Ae({
2833
+ Be({
2834
2834
  sql: e.sql,
2835
2835
  controlBindings: i
2836
2836
  })
@@ -3060,7 +3060,7 @@ function sa({
3060
3060
  includeAuthoredFilters: f
3061
3061
  }) {
3062
3062
  var R, K, Y;
3063
- const m = jt(t);
3063
+ const m = zt(t);
3064
3064
  for (const q of e.controlBindings || [])
3065
3065
  de(q) && m.add(q.controlId);
3066
3066
  const { shouldApplyDashboardFilters: y } = Yo(n), p = u != null && u.inputs.length ? u : void 0, b = ((u == null ? void 0 : u.selections) ?? []).filter(
@@ -3650,7 +3650,7 @@ function ks({
3650
3650
  ).values()
3651
3651
  ) : f(u), y = {
3652
3652
  ...a || {}
3653
- }, p = o === "all" ? j({ sheets: (e == null ? void 0 : e.sheets) || [] }) : u ? j({ sheets: (e == null ? void 0 : e.sheets) || [] }).filter(
3653
+ }, p = o === "all" ? z({ sheets: (e == null ? void 0 : e.sheets) || [] }) : u ? z({ sheets: (e == null ? void 0 : e.sheets) || [] }).filter(
3654
3654
  (C) => C.sheet.id === u
3655
3655
  ) : [];
3656
3656
  for (const C of p)
@@ -3658,7 +3658,7 @@ function ks({
3658
3658
  const b = Ir({
3659
3659
  filterDefinitions: d,
3660
3660
  filterValues: m
3661
- }), I = zo({
3661
+ }), I = jo({
3662
3662
  filters: d,
3663
3663
  filterValues: b,
3664
3664
  dashboard: e,
@@ -3761,7 +3761,7 @@ function Ca(e, t, n) {
3761
3761
  });
3762
3762
  }
3763
3763
  function Cn(e, t, n) {
3764
- const r = A(e);
3764
+ const r = B(e);
3765
3765
  let i = {};
3766
3766
  const o = [], a = [];
3767
3767
  for (const s of t ?? []) {
@@ -3815,7 +3815,7 @@ function Ps(e, t) {
3815
3815
  case "perSheet":
3816
3816
  return [...xt(e).values()].filter((n) => Pt(t, n)).map((n) => ({ sheetId: n.sheetId }));
3817
3817
  case "perCard": {
3818
- const n = A(e);
3818
+ const n = B(e);
3819
3819
  return [
3820
3820
  ...n.reachedCards({ inputId: t.id }).map((r) => ({ sheetId: r.sheetId, cardId: r.cardId })),
3821
3821
  // A variable holds a value at each place it is used (DV-D35).
@@ -3826,7 +3826,7 @@ function Ps(e, t) {
3826
3826
  }
3827
3827
  case "perDocumentSection": {
3828
3828
  const n = /* @__PURE__ */ new Map();
3829
- for (const r of A(e).reachedCards({ inputId: t.id }))
3829
+ for (const r of B(e).reachedCards({ inputId: t.id }))
3830
3830
  r.kind === "documentSectionCard" && n.set(r.sectionId, { sheetId: r.sheetId, sectionId: r.sectionId });
3831
3831
  return [...n.values()];
3832
3832
  }
@@ -3918,8 +3918,8 @@ function Sa(e) {
3918
3918
  return t && t.some((r, i) => r !== e.sheets[i]) ? { ...e, sheets: t } : e;
3919
3919
  }
3920
3920
  function Ta(e) {
3921
- const t = A(e);
3922
- return t.issues.length === 0 && !t.needsUpgrade ? e : t.issues.length ? t.toStoredDashboard() : A(
3921
+ const t = B(e);
3922
+ return t.issues.length === 0 && !t.needsUpgrade ? e : t.issues.length ? t.toStoredDashboard() : B(
3923
3923
  Sa(e)
3924
3924
  ).toStoredDashboard();
3925
3925
  }
@@ -3939,8 +3939,8 @@ export {
3939
3939
  gi as L,
3940
3940
  Nt as M,
3941
3941
  Fe as N,
3942
- Ai as O,
3943
- z as P,
3942
+ Bi as O,
3943
+ j as P,
3944
3944
  Ei as Q,
3945
3945
  Re as R,
3946
3946
  Ee as S,
@@ -3952,7 +3952,7 @@ export {
3952
3952
  Ms as Y,
3953
3953
  pa as Z,
3954
3954
  st as _,
3955
- Bo as a,
3955
+ Ao as a,
3956
3956
  Fa as a0,
3957
3957
  Da as a1,
3958
3958
  bs as a2,
@@ -3969,7 +3969,7 @@ export {
3969
3969
  Ua as aD,
3970
3970
  Uo as aE,
3971
3971
  ln as aF,
3972
- Ae as aG,
3972
+ Be as aG,
3973
3973
  Za as aH,
3974
3974
  Ya as aI,
3975
3975
  eo as aJ,
@@ -4013,7 +4013,7 @@ export {
4013
4013
  xs as i,
4014
4014
  ps as j,
4015
4015
  Ca as k,
4016
- Ao as l,
4016
+ Bo as l,
4017
4017
  Ne as m,
4018
4018
  uo as n,
4019
4019
  fo as o,
@@ -4021,7 +4021,7 @@ export {
4021
4021
  yi as q,
4022
4022
  us as r,
4023
4023
  Ci as s,
4024
- At as t,
4024
+ Bt as t,
4025
4025
  Ga as u,
4026
4026
  vi as v,
4027
4027
  Ta as w,