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
@@ -2,7 +2,7 @@ import { j as w, l as I, r as k } from "./validators-BlEWWX9O.js";
2
2
  import { r as p } from "./metric-comparison-BeKnUD08.js";
3
3
  import { d as T, c as D } from "./raw-temporal-value-BzdgeDa7.js";
4
4
  import "../value-format-preferences/index.js";
5
- import { ak as O, ag as L } from "./pivot-result-contract-expectations-BkMRCjzf.js";
5
+ import { aj as O, af as L } from "./pivot-result-contract-expectations-CaS0y823.js";
6
6
  const f = { kind: "plain" }, y = { kind: "temporal" }, S = {
7
7
  "=": "=",
8
8
  "!=": "!=",
@@ -48,7 +48,7 @@ function A(t, n = {}) {
48
48
  $(i.length, n.maxListedValues)
49
49
  ) : d(`${s} ${o} ${u(i[0], r)}${l}`);
50
50
  }
51
- function _(t, n = {}) {
51
+ function W(t, n = {}) {
52
52
  return t == null ? { text: "no value", omittedValues: 0 } : Array.isArray(t) ? {
53
53
  text: N(t, f, n.maxListedValues),
54
54
  omittedValues: $(t.length, n.maxListedValues)
@@ -56,10 +56,10 @@ function _(t, n = {}) {
56
56
  }
57
57
  function u(t, n = f) {
58
58
  if (n.kind !== "plain") {
59
- const e = g(t, n);
59
+ const e = b(t, n);
60
60
  if (e !== void 0) return e;
61
61
  }
62
- return t instanceof Date ? g(t, y) ?? JSON.stringify(String(t)) : t === void 0 ? "null" : typeof t == "number" || typeof t == "boolean" || t === null ? String(t) : JSON.stringify(t) ?? String(t);
62
+ return t instanceof Date ? b(t, y) ?? JSON.stringify(String(t)) : t === void 0 ? "null" : typeof t == "number" || typeof t == "boolean" || t === null ? String(t) : JSON.stringify(t) ?? String(t);
63
63
  }
64
64
  function N(t, n = f, e = Number.POSITIVE_INFINITY) {
65
65
  const i = t.slice(0, Number.isFinite(e) ? e : void 0).map((s) => u(s, n)).join(", "), r = $(t.length, e);
@@ -75,7 +75,7 @@ function m(t) {
75
75
  const n = D(t);
76
76
  return n === "instant" ? { kind: n, instant: new Date(t) } : n ? { kind: n, text: t } : void 0;
77
77
  }
78
- function g(t, n) {
78
+ function b(t, n) {
79
79
  if (n.kind === "bucket")
80
80
  return typeof t == "string" && L(t, n.bucket).ok ? t : void 0;
81
81
  const e = m(t);
@@ -85,13 +85,13 @@ function g(t, n) {
85
85
  function v(t, n, e, i) {
86
86
  const r = e.kind === "temporal" ? m(t) : void 0, s = e.kind === "temporal" ? m(n) : void 0;
87
87
  if (i && (r == null ? void 0 : r.kind) === "instant" && (s == null ? void 0 : s.kind) === "instant") {
88
- const o = b(r.instant, i), l = b(s.instant, i);
88
+ const o = g(r.instant, i), l = g(s.instant, i);
89
89
  if (o && l && o.time === "00:00:00" && r.instant.getUTCMilliseconds() === 0 && l.time === "23:59:59" && [0, 999].includes(s.instant.getUTCMilliseconds()))
90
90
  return { from: o.date, to: l.date, wholeDaysIn: i };
91
91
  }
92
92
  return { from: u(t, e), to: u(n, e) };
93
93
  }
94
- function b(t, n) {
94
+ function g(t, n) {
95
95
  try {
96
96
  const e = Object.fromEntries(
97
97
  new Intl.DateTimeFormat("en-CA", {
@@ -133,7 +133,7 @@ const R = {
133
133
  "is null": "isNull",
134
134
  "is not null": "isNotNull"
135
135
  };
136
- function j(t, n, e = {}) {
136
+ function _(t, n, e = {}) {
137
137
  const i = t.valueType === "date";
138
138
  return A({
139
139
  subject: n,
@@ -147,7 +147,7 @@ export {
147
147
  f as P,
148
148
  y as T,
149
149
  A as a,
150
- _ as b,
151
- j as d,
150
+ W as b,
151
+ _ as d,
152
152
  $ as o
153
153
  };
@@ -1,7 +1,7 @@
1
1
  var De = Object.defineProperty;
2
2
  var Oe = (e, n, t) => n in e ? De(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var M = (e, n, t) => Oe(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { aE as Ne, a2 as Fe, ar as oe, V as se, k as Re, a1 as Me, Z as F } from "./pivot-result-contract-expectations-BkMRCjzf.js";
4
+ import { aG as Ne, a1 as Fe, ar as oe, U as se, j as Re, a0 as Me, Y as F } from "./pivot-result-contract-expectations-CaS0y823.js";
5
5
  import { V as X, a7 as Le, U as Be } from "./validators-BlEWWX9O.js";
6
6
  import { l as Ue, C as Pe } from "./export-file-format-C-tJsxsf.js";
7
7
  import { z as y } from "zod";
@@ -9,8 +9,8 @@ import { ai as Ve, ak as ze, X as je } from "./matrix-operation-contract-CAanJeC
9
9
  import "./analytics-base-schemas-8wz9vqn_.js";
10
10
  import "../value-format-preferences/index.js";
11
11
  import { r as qe } from "./rendered-file-D8xEuVVx.js";
12
- import { J as Ke, K as Ge, L as He, M as We, N as Xe, n as Ze, O as Ye, P as Je, Q as Qe, R as et, S as tt, T as nt, U as rt } from "./resolve-dashboard-input-context-BlyFX8He.js";
13
- import { H as ot, I as at } from "./bookmark-state-Bt_eQEqt.js";
12
+ import { M as Ke, N as Ge, O as He, P as We, Q as Xe, n as Ye, R as Ze, S as Je, T as Qe, U as et, V as tt, W as nt, X as rt } from "./resolve-dashboard-input-context-BcQHmMlw.js";
13
+ import { I as ot, J as at } from "./bookmark-state-Be2W3s6t.js";
14
14
  import "./pickers-DkqmtnTL.js";
15
15
  import "./schema-C9NPiIru.js";
16
16
  import "./index-CV_Kzou0.js";
@@ -63,7 +63,7 @@ function Xn(e) {
63
63
  })
64
64
  };
65
65
  }
66
- function Z(e) {
66
+ function Y(e) {
67
67
  return e === "table" || e === "detailTable";
68
68
  }
69
69
  function lt(e) {
@@ -78,10 +78,10 @@ function lt(e) {
78
78
  return n ? { kind: "matrix_pdf" } : { kind: "rendered", format: "pdf" };
79
79
  case "csv":
80
80
  case "xlsx":
81
- return n || Z((r = e.settings) == null ? void 0 : r.cardType) ? { kind: "export_job", format: e.format } : { kind: "rendered", format: "csv" };
81
+ return n || Y((r = e.settings) == null ? void 0 : r.cardType) ? { kind: "export_job", format: e.format } : { kind: "rendered", format: "csv" };
82
82
  }
83
83
  }
84
- function Zn(e) {
84
+ function Yn(e) {
85
85
  return lt(e).kind === "export_job";
86
86
  }
87
87
  function st(e) {
@@ -89,9 +89,9 @@ function st(e) {
89
89
  return { label: n, extension: t, contentType: r };
90
90
  }
91
91
  function dt(e) {
92
- return e.allowDownload === !1 ? ["pdf", "png"] : e.cardType === "matrixTable" || Z(e.cardType) ? ["pdf", "png", "csv", "xlsx"] : ["pdf", "png", "csv"];
92
+ return e.allowDownload === !1 ? ["pdf", "png"] : e.cardType === "matrixTable" || Y(e.cardType) ? ["pdf", "png", "csv", "xlsx"] : ["pdf", "png", "csv"];
93
93
  }
94
- function Yn(e) {
94
+ function Zn(e) {
95
95
  return st(e).label;
96
96
  }
97
97
  function mt(e) {
@@ -322,7 +322,7 @@ function rr(e) {
322
322
  },
323
323
  e.valueFormatPreferences.locale
324
324
  )
325
- })) : [], c = [], l = Xe(n, r), m = Ze(
325
+ })) : [], c = [], l = Xe(n, r), m = Ye(
326
326
  n.python || ""
327
327
  );
328
328
  if (n.type === "detailTable" && l === "config") {
@@ -342,7 +342,7 @@ function rr(e) {
342
342
  target: { kind: "column", columnKey: N },
343
343
  format: oe({
344
344
  // What the table draws: the stored format, or Automatic (ledger P7-07).
345
- format: Ye(v),
345
+ format: Ze(v),
346
346
  preferences: e.valueFormatPreferences,
347
347
  calendar: e.calendar
348
348
  })
@@ -406,7 +406,7 @@ function w(e, n, t, r, o = {}) {
406
406
  }
407
407
  return a;
408
408
  }
409
- function Y(e, n, t) {
409
+ function Z(e, n, t) {
410
410
  const r = w(e, n, 2e3, t);
411
411
  if (r)
412
412
  try {
@@ -558,7 +558,7 @@ function bt(e, n) {
558
558
  `${t}.brandName`,
559
559
  200,
560
560
  n
561
- ), a = Y(r.logoUrl, `${t}.logoUrl`, n), i = w(r.link, `${t}.link`, 120, n);
561
+ ), a = Z(r.logoUrl, `${t}.logoUrl`, n), i = w(r.link, `${t}.link`, 120, n);
562
562
  return {
563
563
  ...o !== void 0 ? { brandName: o } : {},
564
564
  ...a !== void 0 ? { logoUrl: a } : {},
@@ -577,7 +577,7 @@ function Et(e, n) {
577
577
  S(r, t, o, n);
578
578
  const a = {};
579
579
  return o.forEach((i) => {
580
- const c = i === "unsubscribeUrl" ? Y(r[i], `${t}.${i}`, n) : w(
580
+ const c = i === "unsubscribeUrl" ? Z(r[i], `${t}.${i}`, n) : w(
581
581
  r[i],
582
582
  `${t}.${i}`,
583
583
  i === "preHeaderText" ? 200 : 5e3,
@@ -590,7 +590,7 @@ function Et(e, n) {
590
590
  function It(e) {
591
591
  const n = [], t = {};
592
592
  if (e.appearance !== void 0 && (t.appearance = gt(e.appearance, n)), e.brandOverrides !== void 0 && (t.brandOverrides = bt(e.brandOverrides, n)), e.fragments !== void 0 && (t.fragments = Et(e.fragments, n)), e.viewUrl !== void 0) {
593
- const r = Y(e.viewUrl, "presentation.viewUrl", n);
593
+ const r = Z(e.viewUrl, "presentation.viewUrl", n);
594
594
  r !== void 0 && (t.viewUrl = r);
595
595
  }
596
596
  return { value: t, issues: n };
@@ -1105,10 +1105,10 @@ const Ee = ["pdf", "png", "csv", "xlsx"], Ie = new Set(Kt), Wt = /* @__PURE__ */
1105
1105
  "a4",
1106
1106
  "a3",
1107
1107
  "tabloid"
1108
- ]), Zt = /* @__PURE__ */ new Set([
1108
+ ]), Yt = /* @__PURE__ */ new Set([
1109
1109
  "portrait",
1110
1110
  "landscape"
1111
- ]), Yt = /* @__PURE__ */ new Set([",", ";", " "]), Jt = new Set(Pe), Qt = /* @__PURE__ */ new Set([
1111
+ ]), Zt = /* @__PURE__ */ new Set([",", ";", " "]), Jt = new Set(Pe), Qt = /* @__PURE__ */ new Set([
1112
1112
  "current",
1113
1113
  "all"
1114
1114
  ]), en = /* @__PURE__ */ new Set([
@@ -1962,13 +1962,13 @@ function In(e, n, t) {
1962
1962
  ), i = A(
1963
1963
  r.orientation,
1964
1964
  `${n}.orientation`,
1965
- Zt,
1965
+ Yt,
1966
1966
  "portrait or landscape",
1967
1967
  t
1968
1968
  ), c = A(
1969
1969
  r.delimiter,
1970
1970
  `${n}.delimiter`,
1971
- Yt,
1971
+ Zt,
1972
1972
  "comma, semicolon, or tab",
1973
1973
  t
1974
1974
  ), l = A(
@@ -2193,7 +2193,7 @@ function Se(e, n) {
2193
2193
  const t = e.slice(0, j).map((o, a) => vn(o, a, n)), r = /* @__PURE__ */ new Set();
2194
2194
  return t.forEach((o, a) => {
2195
2195
  var c, l, m, d;
2196
- (c = o.settings) != null && c.matrix && (o.type !== "card" || o.settings.cardType !== "matrixTable" || o.settings.matrix.content === "flat" && o.format === "pdf") && s(n, `attachments.${a}.settings.matrix`, "Matrix settings require a matrixTable card attachment; flat content requires CSV or Excel."), o.format === "png" && ((l = o.settings) != null && l.matrix) && o.settings.matrix.content !== "current" && s(n, `attachments.${a}.settings.matrix.content`, "A Matrix PNG image shows the current layout."), o.format === "xlsx" && !((m = o.settings) != null && m.matrix) && !Z((d = o.settings) == null ? void 0 : d.cardType) && s(n, `attachments.${a}.format`, "Excel attachments require a Table, Detail Table or Matrix card.");
2196
+ (c = o.settings) != null && c.matrix && (o.type !== "card" || o.settings.cardType !== "matrixTable" || o.settings.matrix.content === "flat" && o.format === "pdf") && s(n, `attachments.${a}.settings.matrix`, "Matrix settings require a matrixTable card attachment; flat content requires CSV or Excel."), o.format === "png" && ((l = o.settings) != null && l.matrix) && o.settings.matrix.content !== "current" && s(n, `attachments.${a}.settings.matrix.content`, "A Matrix PNG image shows the current layout."), o.format === "xlsx" && !((m = o.settings) != null && m.matrix) && !Y((d = o.settings) == null ? void 0 : d.cardType) && s(n, `attachments.${a}.format`, "Excel attachments require a Table, Detail Table or Matrix card.");
2197
2197
  const i = $n(o);
2198
2198
  r.has(i) && s(n, `attachments.${a}`, "Duplicate attachment."), r.add(i);
2199
2199
  }), t;
@@ -2732,10 +2732,10 @@ export {
2732
2732
  Qn as X,
2733
2733
  ut as Y,
2734
2734
  st as Z,
2735
- Zn as _,
2735
+ Yn as _,
2736
2736
  fr as a,
2737
2737
  mt as a0,
2738
- Z as a1,
2738
+ Y as a1,
2739
2739
  Ft as a2,
2740
2740
  Mt as a3,
2741
2741
  Bt as a4,
@@ -2748,7 +2748,7 @@ export {
2748
2748
  rr as f,
2749
2749
  pr as g,
2750
2750
  Xn as h,
2751
- Yn as i,
2751
+ Zn as i,
2752
2752
  vt as j,
2753
2753
  ar as k,
2754
2754
  O as l,