react-semaphor 0.1.591 → 0.1.593

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 (46) hide show
  1. package/dist/assistant-context/index.js +1 -1
  2. package/dist/briefings/index.js +2 -2
  3. package/dist/chunks/{assistant-chat-Cazikwyh.js → assistant-chat-D05uNAeO.js} +7 -7
  4. package/dist/chunks/bookmark-impact-B0k90wq8.js +76 -0
  5. package/dist/chunks/{bookmark-state-Bt_eQEqt.js → bookmark-state-Be2W3s6t.js} +174 -166
  6. package/dist/chunks/{card-filter-builder-DFR-6Jpm.js → card-filter-builder-CiafWE26.js} +73 -73
  7. package/dist/chunks/{comparison-window-caption-CFaw-kIV.js → comparison-window-caption-h8w3ySL6.js} +88 -89
  8. package/dist/chunks/{dashboard-DCh9hKnJ.js → dashboard-T-gYKGTF.js} +1 -1
  9. package/dist/chunks/{dashboard-briefing-launcher-ob8G1b58.js → dashboard-briefing-launcher-CPh2B3Rf.js} +84 -84
  10. package/dist/chunks/{dashboard-controls-Nszg0k1A.js → dashboard-controls-Cijc9c3G.js} +9 -9
  11. package/dist/chunks/{dashboard-json-BpwnG23b.js → dashboard-json-D3m7h4VL.js} +1 -1
  12. package/dist/chunks/{dates-BOLBSBpn.js → dates-Bb0sn54j.js} +6 -6
  13. package/dist/chunks/{edit-dashboard-visual-BvM7br5P.js → edit-dashboard-visual-C0iSuX9t.js} +374 -374
  14. package/dist/chunks/{filter-reach-copy-By3r7O3G.js → filter-reach-copy-CifrEFxj.js} +221 -221
  15. package/dist/chunks/{filter-value-text-CFiIZWJP.js → filter-value-text-CHBm4IU7.js} +10 -10
  16. package/dist/chunks/{index-CsQYlwhU.js → index-CzM2w1kY.js} +22 -22
  17. package/dist/chunks/{pivot-result-contract-expectations-BkMRCjzf.js → pivot-result-contract-expectations-CaS0y823.js} +588 -552
  18. package/dist/chunks/{report-preferences-dialog-ChXt8wCt.js → report-preferences-dialog-GHvai50w.js} +9 -9
  19. package/dist/chunks/{resolve-dashboard-input-context-BlyFX8He.js → resolve-dashboard-input-context-BcQHmMlw.js} +7585 -6490
  20. package/dist/chunks/{saved-dashboard-context-BPSdH2jW.js → saved-dashboard-context-BHHEzmwM.js} +16 -16
  21. package/dist/chunks/{semaphor-ready-indicator-BZUMCHRU.js → semaphor-ready-indicator-AOUJrUAJ.js} +21334 -21330
  22. package/dist/chunks/{shelf-drop-preview-context-yJheoeTC.js → shelf-drop-preview-context-Cs62lWI1.js} +2 -2
  23. package/dist/chunks/stored-dashboard-Cmtl_Obh.js +4029 -0
  24. package/dist/chunks/{table-export-sheet-h7wm5TwP.js → table-export-sheet-Cd6z7SsG.js} +1 -1
  25. package/dist/chunks/{variable-draft-OpYyaVCW.js → variable-draft-CSK9Ps1o.js} +2 -2
  26. package/dist/dashboard/index.js +2 -2
  27. package/dist/dashboard-authoring/index.js +1097 -1105
  28. package/dist/format-utils/index.js +215 -216
  29. package/dist/index.js +56 -56
  30. package/dist/surfboard/index.js +2 -2
  31. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +3 -3
  32. package/dist/types/components/visual/data-table/types/data-table.d.ts +24 -2
  33. package/dist/types/index.js +30 -29
  34. package/dist/types/lib/dashboard-viewer/table-view-edit.d.ts +27 -0
  35. package/dist/types/lib/dashboard-viewer/table-view.d.ts +37 -1
  36. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  37. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +3 -0
  38. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +6 -0
  39. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +11 -0
  40. package/dist/types/shared/dashboard-viewer/table-column-move.d.ts +56 -0
  41. package/dist/types/shared/dashboard-viewer/table-settings.d.ts +7 -0
  42. package/package.json +1 -1
  43. package/dist/chunks/bookmark-impact-rWjQgk8h.js +0 -75
  44. package/dist/chunks/pivot-header-presentation-gUxhdIdr.js +0 -42
  45. package/dist/chunks/stored-dashboard-CxQl9g0l.js +0 -4994
  46. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -53
@@ -1,11 +1,11 @@
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-Bt_eQEqt.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-BlyFX8He.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-CxQl9g0l.js";
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-BcQHmMlw.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-Cmtl_Obh.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 D } from "./filter-value-text-CFiIZWJP.js";
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
9
  import { r as Ve, a9 as Se } from "./validators-BlEWWX9O.js";
10
10
  import { b as $e } from "./metric-comparison-BeKnUD08.js";
11
11
  import { i as ke } from "./matrix-analytical-definition-CyWOwLmE.js";
@@ -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) => De(r, t)), ...a];
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 De(e, t) {
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: we(e),
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 we(e) {
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
- `${D(l, { maxListedValues: h.inputValues }).text}${m.size ? `; ${[...m].join("; ")}` : ""}`,
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
- D(t.controlValues[a.controlId], { maxListedValues: h.inputValues }).text,
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 = D(n.controlValue, m);
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 = w({
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 w(e) {
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 = w({ card: n.card, snapshot: m, documentSection: !1 });
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 = w({ card: l.card, snapshot: d, documentSection: !1 });
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
- w as d,
627
+ D as d,
628
628
  mt as e,
629
629
  Xe as f,
630
630
  G as g,