react-semaphor 0.1.590 → 0.1.591

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 (75) hide show
  1. package/dist/analytics-protocol/index.js +254 -236
  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-BrkXsSJp.js → aggregate-measure-field-DHlDj0Pc.js} +2 -2
  6. package/dist/chunks/{assistant-chat-C_6dBLUk.js → assistant-chat-Cazikwyh.js} +13 -13
  7. package/dist/chunks/{bookmark-impact-DkZABEd3.js → bookmark-impact-rWjQgk8h.js} +2 -2
  8. package/dist/chunks/{bookmark-state-Bn7k3ttp.js → bookmark-state-Bt_eQEqt.js} +569 -537
  9. package/dist/chunks/{card-filter-builder-6vflbF9O.js → card-filter-builder-DFR-6Jpm.js} +929 -910
  10. package/dist/chunks/{comparison-window-caption-fqijZdVd.js → comparison-window-caption-CFaw-kIV.js} +6 -6
  11. package/dist/chunks/{dashboard-DpgRl65K.js → dashboard-DCh9hKnJ.js} +1 -1
  12. package/dist/chunks/{dashboard-briefing-launcher-BLbhONJz.js → dashboard-briefing-launcher-ob8G1b58.js} +91 -91
  13. package/dist/chunks/{dashboard-controls-kCTYEEsq.js → dashboard-controls-Nszg0k1A.js} +64 -64
  14. package/dist/chunks/{dashboard-json-CNIFresY.js → dashboard-json-BpwnG23b.js} +4 -4
  15. package/dist/chunks/{dates-BoeweqEo.js → dates-BOLBSBpn.js} +8 -8
  16. package/dist/chunks/{edit-dashboard-visual-D0eWTlPL.js → edit-dashboard-visual-BvM7br5P.js} +5501 -5475
  17. package/dist/chunks/filter-line-CYT7KIXb.js +133 -0
  18. package/dist/chunks/{filter-reach-copy-eMhDPTYH.js → filter-reach-copy-By3r7O3G.js} +11 -11
  19. package/dist/chunks/filter-value-text-CFiIZWJP.js +153 -0
  20. package/dist/chunks/{index-D8LFjI8j.js → index-CsQYlwhU.js} +5 -5
  21. package/dist/chunks/{layout-grid-BG__sPkb.js → layout-grid-DoFIfQGd.js} +1 -1
  22. package/dist/chunks/{list-filter-Cb8i7N8f.js → list-filter-BeTQxjNy.js} +1 -1
  23. package/dist/chunks/{matrix-analytical-definition-D9Ll_9R-.js → matrix-analytical-definition-CyWOwLmE.js} +17 -17
  24. package/dist/chunks/{matrix-member-presentation-DVBJR0MA.js → matrix-member-presentation-Bj2YcHAP.js} +1 -1
  25. package/dist/chunks/{matrix-operation-contract-JSmproo9.js → matrix-operation-contract-CAanJeCj.js} +60 -60
  26. package/dist/chunks/{metric-comparison-xE_J6hkg.js → metric-comparison-BeKnUD08.js} +27 -31
  27. package/dist/chunks/{paintbrush-C310xSuR.js → paintbrush-KeaU1L1a.js} +1 -1
  28. package/dist/chunks/{palette-Ci5P91Zb.js → palette-BcFJLeXB.js} +1 -1
  29. package/dist/chunks/{pivot-header-presentation-D-DfPAjb.js → pivot-header-presentation-gUxhdIdr.js} +1 -1
  30. package/dist/chunks/{pivot-result-contract-expectations-DbBahmgc.js → pivot-result-contract-expectations-BkMRCjzf.js} +111 -111
  31. package/dist/chunks/{pivot-result-identity-CUsMt_4r.js → pivot-result-identity-BKUjYO1u.js} +1 -1
  32. package/dist/chunks/raw-temporal-value-BzdgeDa7.js +454 -0
  33. package/dist/chunks/{report-preferences-dialog-dUlVLgEk.js → report-preferences-dialog-ChXt8wCt.js} +13 -13
  34. package/dist/chunks/{report-runtime-context-CrOgmuxO.js → report-runtime-context-g4Zp_TU9.js} +1 -1
  35. package/dist/chunks/{resolve-dashboard-input-context-NurwNg4I.js → resolve-dashboard-input-context-BlyFX8He.js} +5053 -4955
  36. package/dist/chunks/{save-BhhXfp4s.js → save-C9CZAk6V.js} +1 -1
  37. package/dist/chunks/{saved-dashboard-context-CPp--vXU.js → saved-dashboard-context-BPSdH2jW.js} +7 -7
  38. package/dist/chunks/{selection-filter-compiler-CHG-8xnW.js → selection-filter-compiler-BclSpK3P.js} +1 -1
  39. package/dist/chunks/{semaphor-ready-indicator-CXojR95M.js → semaphor-ready-indicator-BZUMCHRU.js} +28962 -28917
  40. package/dist/chunks/{shelf-drop-preview-context-BDScAUdq.js → shelf-drop-preview-context-yJheoeTC.js} +5 -5
  41. package/dist/chunks/{stored-dashboard-KkH4zOhq.js → stored-dashboard-CxQl9g0l.js} +653 -657
  42. package/dist/chunks/{style-sheet-parts-CmXmKqGw.js → style-sheet-parts-DM_Mw_sm.js} +45 -42
  43. package/dist/chunks/{table-export-sheet-ClSgERQC.js → table-export-sheet-h7wm5TwP.js} +1 -1
  44. package/dist/chunks/{token-types-DTocOcwt.js → token-types-BB2ImFx6.js} +1 -1
  45. package/dist/chunks/{upload-DDYc1Qjj.js → upload-CMTCg47S.js} +1 -1
  46. package/dist/chunks/{validators-CrYXNnNE.js → validators-BlEWWX9O.js} +576 -562
  47. package/dist/chunks/{variable-draft-Bi3RlULA.js → variable-draft-OpYyaVCW.js} +4 -4
  48. package/dist/dashboard/index.js +2 -2
  49. package/dist/dashboard-authoring/index.js +1602 -1555
  50. package/dist/format-utils/index.js +14 -14
  51. package/dist/index.js +18 -18
  52. package/dist/report-runtime-context/index.js +1 -1
  53. package/dist/style.css +1 -1
  54. package/dist/surfboard/index.js +2 -2
  55. package/dist/types/components/surfboard/filter/types.d.ts +7 -5
  56. package/dist/types/index.js +5 -5
  57. package/dist/types/lib/dashboard-inputs/dashboard-date-comparison-plan.d.ts +0 -1
  58. package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
  59. package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +1 -1
  60. package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +2 -1
  61. package/dist/types/shared/analytics-protocol/relative-date/sentence.d.ts +81 -0
  62. package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +0 -9
  63. package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +23 -2
  64. package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +20 -0
  65. package/dist/types/shared/dashboard-authoring/card-formats/detail-date-display.d.ts +84 -0
  66. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +2 -0
  67. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +36 -36
  68. package/dist/types/shared/dashboard-authoring/filter-model/date-filter-default.d.ts +37 -0
  69. package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +1 -0
  70. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  71. package/dist/types/shared/format-utils/filter-line.d.ts +2 -0
  72. package/package.json +1 -1
  73. package/dist/chunks/filter-line-Dza3ee4w.js +0 -131
  74. package/dist/chunks/filter-value-text-DQw4v3nC.js +0 -146
  75. package/dist/chunks/raw-temporal-value-BnGCWJAL.js +0 -322
@@ -1,6 +1,6 @@
1
1
  import { z as t } from "zod";
2
- import { z as Le, P as De, X as Ue, Y as qe, $ as Me, a0 as Be, s as D, L as Z, n as Ge, V as ze, W as ce, g as Ve, r as We, N as Xe, E as Ke, F as Ze, o as le, b as ue, I as $e } from "./analytics-base-schemas-8wz9vqn_.js";
3
- import { A as k, u as de, J as G, aZ as ee, m as A, B as Ye, aS as $, v as He, l as Je, o as me, a2 as Qe, p as et, a5 as tt, aY as nt } from "./validators-CrYXNnNE.js";
2
+ import { z as Le, P as Ue, X as De, Y as qe, $ as Me, a0 as Be, s as U, L as $, n as Ge, V as ze, W as ce, g as Ve, r as We, N as Xe, E as Ke, F as $e, o as le, b as ue, I as Ze } from "./analytics-base-schemas-8wz9vqn_.js";
3
+ import { E as k, w as de, M as G, a$ as ee, m as A, F as Ye, aU as Z, x as He, q as Qe, t as me, a4 as Je, p as et, a7 as tt, a_ as nt } from "./validators-BlEWWX9O.js";
4
4
  const Y = {
5
5
  answerSummary: "string",
6
6
  responseDetail: "responseDetail",
@@ -233,7 +233,7 @@ const pt = t.object({
233
233
  requestId: y,
234
234
  coverage: fe,
235
235
  cells: t.array(
236
- Ye.extend({ value: $ }).strict()
236
+ Ye.extend({ value: Z }).strict()
237
237
  ).readonly()
238
238
  }).strict().superRefine((e, n) => {
239
239
  const { rows: a, columns: r } = ge(e.coverage, n), s = new Set(a), c = new Set(r), i = new Set(e.coverage.measureIds);
@@ -250,11 +250,11 @@ const pt = t.object({
250
250
  );
251
251
  for (const l of e.cells)
252
252
  (!s.has(A(l.rowPath)) || !c.has(A(l.columnPath)) || !i.has(l.measureId)) && f(n, ["cells"], "Cell is outside certified coverage.");
253
- }), U = t.number().int().nonnegative(), ht = t.object({
253
+ }), D = t.number().int().nonnegative(), ht = t.object({
254
254
  requestId: y,
255
255
  coverage: fe,
256
256
  values: t.array(
257
- t.tuple([U, U, U, $]).readonly()
257
+ t.tuple([D, D, D, Z]).readonly()
258
258
  ).readonly()
259
259
  }).strict().superRefine((e, n) => {
260
260
  ge(e.coverage, n);
@@ -269,7 +269,7 @@ const pt = t.object({
269
269
  }
270
270
  }), ne = t.object({
271
271
  id: O,
272
- column: De,
272
+ column: Ue,
273
273
  nativeDataType: y,
274
274
  semanticFormat: Le.optional()
275
275
  }).strict(), ye = t.object({
@@ -437,7 +437,7 @@ const Ie = t.object({
437
437
  }).strict(), ae = t.union([
438
438
  t.object({
439
439
  kind: t.literal("value"),
440
- value: $.refine(
440
+ value: Z.refine(
441
441
  (e) => e !== null
442
442
  )
443
443
  }).strict(),
@@ -467,7 +467,7 @@ const Ie = t.object({
467
467
  next: y.nullable()
468
468
  }).strict()
469
469
  ]), wt = t.union([
470
- Ue,
470
+ De,
471
471
  qe,
472
472
  Me,
473
473
  Be,
@@ -481,15 +481,15 @@ const Ie = t.object({
481
481
  "fanout_risk",
482
482
  "unknown"
483
483
  ]),
484
- requiredSources: t.array(D).optional(),
484
+ requiredSources: t.array(U).optional(),
485
485
  relationshipsUsed: t.array(t.string()).optional(),
486
486
  missingSources: t.array(t.string()).optional(),
487
487
  warnings: t.array(t.string()).optional(),
488
488
  message: t.string().optional(),
489
489
  recommendedNextStep: t.string().optional(),
490
490
  joinPlanSummary: t.object({
491
- baseSource: D.optional(),
492
- joinedSources: t.array(D).optional(),
491
+ baseSource: U.optional(),
492
+ joinedSources: t.array(U).optional(),
493
493
  joinCount: t.number().optional()
494
494
  }).passthrough().optional(),
495
495
  fanoutRisk: t.object({
@@ -516,7 +516,7 @@ const Ie = t.object({
516
516
  queryId: t.string().optional(),
517
517
  summary: t.string(),
518
518
  evidenceIds: t.array(t.string()).optional(),
519
- fieldsUsed: t.array(Z).optional()
519
+ fieldsUsed: t.array($).optional()
520
520
  }).passthrough()
521
521
  ),
522
522
  blocked: t.array(
@@ -563,7 +563,7 @@ const Ie = t.object({
563
563
  ]).optional(),
564
564
  intent: t.unknown().optional(),
565
565
  compiledQuery: t.unknown().optional(),
566
- fieldsUsed: t.array(Z).optional(),
566
+ fieldsUsed: t.array($).optional(),
567
567
  result: wt.optional(),
568
568
  validation: ce,
569
569
  coverage: Te.optional(),
@@ -585,7 +585,7 @@ function vt(e) {
585
585
  case "diagnosticFeedback":
586
586
  return we.optional();
587
587
  case "executionFieldArray":
588
- return t.array(Z).optional();
588
+ return t.array($).optional();
589
589
  case "executionResult":
590
590
  return Tt.optional();
591
591
  case "number":
@@ -637,22 +637,22 @@ function An(e) {
637
637
  );
638
638
  return Rt.parse(e);
639
639
  }
640
- const Ee = 100, F = "selection:";
640
+ const Ee = 100, j = "selection:";
641
641
  function Re(e) {
642
642
  return [
643
643
  me(e.source),
644
- Qe(e.name),
644
+ Je(e.name),
645
645
  e.sourceField ?? ""
646
646
  ].join("::");
647
647
  }
648
648
  function In(e) {
649
- return `${F}${e}`;
649
+ return `${j}${e}`;
650
650
  }
651
651
  function Ot(e) {
652
- return e.startsWith(F) && e.length > F.length;
652
+ return e.startsWith(j) && e.length > j.length;
653
653
  }
654
654
  function _n(e) {
655
- return Ot(e) ? e.slice(F.length) : void 0;
655
+ return Ot(e) ? e.slice(j.length) : void 0;
656
656
  }
657
657
  function Ce(e) {
658
658
  if (!e) return "";
@@ -726,17 +726,17 @@ const Pt = "(Blank)";
726
726
  function Tn(e) {
727
727
  return e.conditions.map((n) => n.label ? n.label : n.operator === "isNull" || n.value === null ? Pt : String(n.value)).join(" · ");
728
728
  }
729
- const jt = t.union([
729
+ const Ft = t.union([
730
730
  Ke,
731
- Ze
732
- ]), Ft = t.object({
731
+ $e
732
+ ]), jt = t.object({
733
733
  name: t.string().min(1),
734
- source: jt,
734
+ source: Ft,
735
735
  dataType: t.enum(["string", "number", "boolean", "date", "datetime"]),
736
736
  sourceField: t.string().min(1).optional(),
737
737
  nativeDataType: t.string().min(1).optional()
738
738
  }).strict(), Lt = t.object({
739
- field: Ft,
739
+ field: jt,
740
740
  operator: t.enum(["=", "isNull"]),
741
741
  value: t.union([t.string(), t.number().finite(), t.null()]),
742
742
  label: t.string().optional(),
@@ -748,7 +748,7 @@ const jt = t.union([
748
748
  message: "isNull carries a null value, and only isNull does.",
749
749
  path: ["value"]
750
750
  });
751
- }), Dt = t.object({
751
+ }), Ut = t.object({
752
752
  conditions: t.array(Lt).min(1)
753
753
  }).strict().superRefine((e, n) => {
754
754
  const a = e.conditions.map((r) => Re(r.field));
@@ -760,9 +760,9 @@ const jt = t.union([
760
760
  }), vn = t.object({
761
761
  kind: t.literal("selection"),
762
762
  sourceCardId: t.string().min(1),
763
- tuples: t.array(Dt).min(1).max(Ee)
764
- }).strict(), Ut = t.object({
765
- field: $e,
763
+ tuples: t.array(Ut).min(1).max(Ee)
764
+ }).strict(), Dt = t.object({
765
+ field: Ze,
766
766
  operator: t.enum(["=", "isNull"]),
767
767
  value: t.union([t.string(), t.number().finite(), t.null()]),
768
768
  temporalBucket: ue.optional(),
@@ -774,12 +774,12 @@ const jt = t.union([
774
774
  path: ["value"]
775
775
  });
776
776
  }), qt = t.object({
777
- conditions: t.array(Ut).min(1)
777
+ conditions: t.array(Dt).min(1)
778
778
  }).strict().superRefine((e, n) => {
779
779
  for (let a = 0; a < e.conditions.length; a += 1) {
780
780
  const r = e.conditions[a];
781
781
  e.conditions.findIndex(
782
- (c, i) => i < a && Je(c.field, r.field)
782
+ (c, i) => i < a && Qe(c.field, r.field)
783
783
  ) !== -1 && n.addIssue({
784
784
  code: t.ZodIssueCode.custom,
785
785
  message: "A selection tuple can contain only one condition per field.",
@@ -907,7 +907,7 @@ function P(e, n) {
907
907
  }
908
908
  return e.length;
909
909
  }
910
- function j(e, n) {
910
+ function F(e, n) {
911
911
  let a = n;
912
912
  for (; a < e.length && /\s/.test(e[a]); ) a += 1;
913
913
  return a;
@@ -940,7 +940,7 @@ function W(e, n = /* @__PURE__ */ new Set()) {
940
940
  }
941
941
  }
942
942
  if (ie.test(m)) {
943
- const o = M(e, l), d = e.slice(l, o), p = j(e, o);
943
+ const o = M(e, l), d = e.slice(l, o), p = F(e, o);
944
944
  if (e[p] === "(" && Bt(d)) {
945
945
  let g = P(e, p);
946
946
  const I = g - 1;
@@ -953,11 +953,11 @@ function W(e, n = /* @__PURE__ */ new Set()) {
953
953
  W(C ? v.replace(/^\s*DISTINCT\b/i, "") : v).calls.length > 0 && (s = !0);
954
954
  let b = !1, _ = !1;
955
955
  for (; ; ) {
956
- const h = j(e, g);
956
+ const h = F(e, g);
957
957
  if (!ie.test(e[h] || "")) break;
958
- const N = M(e, h), E = e.slice(h, N).toUpperCase(), u = j(e, N);
958
+ const N = M(e, h), E = e.slice(h, N).toUpperCase(), u = F(e, N);
959
959
  if (E === "WITHIN") {
960
- const S = M(e, u), w = j(e, S);
960
+ const S = M(e, u), w = F(e, S);
961
961
  if (e.slice(u, S).toUpperCase() === "GROUP" && e[w] === "(") {
962
962
  g = P(e, w), R = g;
963
963
  continue;
@@ -1045,7 +1045,7 @@ function Rn(e, n) {
1045
1045
  const a = e.slice(n.span.argumentStart, n.span.argumentEnd).trim();
1046
1046
  return n.distinct ? a.replace(/^DISTINCT\s*/i, "") : a;
1047
1047
  }
1048
- function Zt(e) {
1048
+ function $t(e) {
1049
1049
  const n = [];
1050
1050
  let a = 0;
1051
1051
  for (; a < e.length; ) {
@@ -1089,8 +1089,8 @@ function Zt(e) {
1089
1089
  }
1090
1090
  return n;
1091
1091
  }
1092
- function $t(e) {
1093
- const n = Zt(e), a = n.some((o) => o.type === "op" && o.value === "/");
1092
+ function Zt(e) {
1093
+ const n = $t(e), a = n.some((o) => o.type === "op" && o.value === "/");
1094
1094
  if (n.some((o) => o.type === "other"))
1095
1095
  return { kind: "other", hasDivision: a };
1096
1096
  let r = 0, s = !0;
@@ -1162,7 +1162,7 @@ function X(e) {
1162
1162
  if (!(!e || !e.trim()))
1163
1163
  return xe(e);
1164
1164
  }
1165
- function je(e) {
1165
+ function Fe(e) {
1166
1166
  switch (e) {
1167
1167
  case "count":
1168
1168
  case "sum":
@@ -1180,11 +1180,11 @@ function je(e) {
1180
1180
  return { kind: "none", reason: "other" };
1181
1181
  }
1182
1182
  }
1183
- function Jt(e) {
1183
+ function Qt(e) {
1184
1184
  var n, a;
1185
1185
  return ((n = e.derivedField) == null ? void 0 : n.computeStage) || ((a = e.calculatedFormula) == null ? void 0 : a.computeStage);
1186
1186
  }
1187
- const J = {
1187
+ const Q = {
1188
1188
  stage: "aggregate",
1189
1189
  calls: [],
1190
1190
  windowed: !1,
@@ -1193,7 +1193,7 @@ const J = {
1193
1193
  outputType: "numeric",
1194
1194
  identity: "unresolved",
1195
1195
  unresolved: !0
1196
- }, Fe = { ...J, stage: "row" };
1196
+ }, je = { ...Q, stage: "row" };
1197
1197
  function K(e) {
1198
1198
  return {
1199
1199
  stage: "row",
@@ -1201,7 +1201,7 @@ function K(e) {
1201
1201
  calls: [{ kind: e, distinct: e === "count_distinct" }],
1202
1202
  windowed: !1,
1203
1203
  repeatSafe: Pe.has(e),
1204
- reaggregation: je(e),
1204
+ reaggregation: Fe(e),
1205
1205
  outputType: e === "min" || e === "max" ? "input" : "numeric",
1206
1206
  identity: e,
1207
1207
  unresolved: !1
@@ -1212,19 +1212,19 @@ function B(e, n) {
1212
1212
  const a = (r = n.derivedField) == null ? void 0 : r.aggregationBehavior;
1213
1213
  return !a || e.unresolved ? e : a === "additive" ? e.reaggregation.kind === "additive" ? e : { ...e, reaggregation: { kind: "additive" } } : { ...e, reaggregation: { kind: "none", reason: "declared" } };
1214
1214
  }
1215
- function Qt(e, n) {
1216
- if (!e) return J;
1215
+ function Jt(e, n) {
1216
+ if (!e) return Q;
1217
1217
  if (typeof e.expression == "string" && e.expression.trim()) {
1218
- const r = Q(e, n + 1);
1218
+ const r = J(e, n + 1);
1219
1219
  return r === "row_input" ? "raw" : r.unresolved || r.stage === "aggregate" || r.outer ? r : "raw";
1220
1220
  }
1221
1221
  const a = X(e.aggregate);
1222
1222
  return a ? K(a) : "raw";
1223
1223
  }
1224
1224
  const en = 12;
1225
- function Q(e, n) {
1225
+ function J(e, n) {
1226
1226
  var E;
1227
- if (n > en) return J;
1227
+ if (n > en) return Q;
1228
1228
  const a = typeof e.expression == "string" ? e.expression.trim() : "";
1229
1229
  if (!a)
1230
1230
  return B(
@@ -1236,23 +1236,23 @@ function Q(e, n) {
1236
1236
  return S ? s[Number(S[1])] : void 0;
1237
1237
  }, i = /* @__PURE__ */ new Map();
1238
1238
  for (const u of r.tokensOutsideAggregates)
1239
- i.has(u) || i.set(u, Qt(c(u), n));
1239
+ i.has(u) || i.set(u, Jt(c(u), n));
1240
1240
  const l = r.calls.some(
1241
1241
  (u) => u.tokens.some((S) => {
1242
1242
  const w = c(S);
1243
1243
  if (!(w != null && w.expression)) return !1;
1244
- const L = Q(w, n + 1);
1244
+ const L = J(w, n + 1);
1245
1245
  return L !== "row_input" && (L.unresolved || L.stage === "aggregate");
1246
1246
  })
1247
1247
  ), m = Array.from(i.values()).filter(
1248
1248
  (u) => u !== "raw"
1249
- ), o = Array.from(i.values()).some((u) => u === "raw"), d = r.calls.length > 0 || m.length > 0 || Jt(e) === "aggregate" || !!e.isPreAggregated, p = new Set(
1249
+ ), o = Array.from(i.values()).some((u) => u === "raw"), d = r.calls.length > 0 || m.length > 0 || Qt(e) === "aggregate" || !!e.isPreAggregated, p = new Set(
1250
1250
  [...i].filter(
1251
1251
  ([u, S]) => S === "raw" ? !d && !!c(u) : !S.unresolved
1252
1252
  ).map(([u]) => u)
1253
1253
  ), g = W(a, p).aggregateInputsComplete;
1254
1254
  if (!d) {
1255
- if (!g) return Fe;
1255
+ if (!g) return je;
1256
1256
  const u = X(e.aggregate);
1257
1257
  return u ? B(K(u), e) : "row_input";
1258
1258
  }
@@ -1262,11 +1262,11 @@ function Q(e, n) {
1262
1262
  ], v = r.windowed || m.some((u) => u.windowed), x = !I && !v && R.every((u) => Pe.has(u.kind)), C = (u) => {
1263
1263
  if (u.kind === "call") {
1264
1264
  const w = r.calls[u.index];
1265
- return w ? je(w.kind) : { kind: "none", reason: "unresolved" };
1265
+ return w ? Fe(w.kind) : { kind: "none", reason: "unresolved" };
1266
1266
  }
1267
1267
  const S = i.get(u.token);
1268
1268
  return S && S !== "raw" ? S.reaggregation : { kind: "none", reason: "unresolved" };
1269
- }, b = $t(r.skeleton);
1269
+ }, b = Zt(r.skeleton);
1270
1270
  let _, h, N = "numeric";
1271
1271
  if (I)
1272
1272
  _ = { kind: "none", reason: "unresolved" }, h = "unresolved";
@@ -1296,8 +1296,8 @@ function Q(e, n) {
1296
1296
  );
1297
1297
  }
1298
1298
  function tn(e) {
1299
- const n = Q(e, 0);
1300
- return n === "row_input" ? Fe : n;
1299
+ const n = J(e, 0);
1300
+ return n === "row_input" ? je : n;
1301
1301
  }
1302
1302
  function Nn(e) {
1303
1303
  const n = tt((e == null ? void 0 : e.dataType) || "number");
@@ -1329,11 +1329,11 @@ export {
1329
1329
  dt as $,
1330
1330
  kn as A,
1331
1331
  Tn as B,
1332
- Ft as C,
1332
+ jt as C,
1333
1333
  Lt as D,
1334
- Dt as E,
1334
+ Ut as E,
1335
1335
  vn as F,
1336
- Ut as G,
1336
+ Dt as G,
1337
1337
  qt as H,
1338
1338
  En as I,
1339
1339
  Ht as J,
@@ -1341,7 +1341,7 @@ export {
1341
1341
  Bt as L,
1342
1342
  xe as M,
1343
1343
  Rn as N,
1344
- $t as O,
1344
+ Zt as O,
1345
1345
  tn as P,
1346
1346
  Nn as Q,
1347
1347
  pe as R,
@@ -1,5 +1,5 @@
1
- import { T as d, a as g, b as k } from "./analytics-base-schemas-8wz9vqn_.js";
2
- import { p as C } from "./validators-CrYXNnNE.js";
1
+ import { T as p, a as g, b as k } from "./analytics-base-schemas-8wz9vqn_.js";
2
+ import { p as C } from "./validators-BlEWWX9O.js";
3
3
  function N(e) {
4
4
  switch (e.kind) {
5
5
  case "monthDay":
@@ -9,7 +9,6 @@ function N(e) {
9
9
  bounds: { start: "day", end: "day" },
10
10
  comparesBySpan: !1,
11
11
  printsByName: !1,
12
- pickerCategory: "day",
13
12
  dayPickerDefault: !0,
14
13
  monthPickerDefault: !1
15
14
  };
@@ -21,7 +20,6 @@ function N(e) {
21
20
  bounds: { start: "instant", end: "instant" },
22
21
  comparesBySpan: !1,
23
22
  printsByName: o || e.unit === "quarter" || e.unit === "year",
24
- pickerCategory: r ? "time" : e.unit,
25
23
  dayPickerDefault: !1,
26
24
  monthPickerDefault: !1,
27
25
  span: { unit: e.unit, n: e.n, complete: !1 }
@@ -37,8 +35,6 @@ function N(e) {
37
35
  bounds: { start: "day", end: l ? "instant" : "day" },
38
36
  comparesBySpan: typeof e.anchor == "object",
39
37
  printsByName: a || r === "quarter" || r === "year",
40
- pickerCategory: r,
41
- ...s && !t ? { periodOffsets: { unit: r, from: o, to: n } } : {},
42
38
  dayPickerDefault: r === "day" && m && s,
43
39
  monthPickerDefault: r === "month" && m && (o === 0 || o === -1) && s && !t,
44
40
  span: { unit: r, n: n - o + 1, complete: n < 0 }
@@ -46,12 +42,12 @@ function N(e) {
46
42
  }
47
43
  }
48
44
  }
49
- function y(e) {
45
+ function h(e) {
50
46
  const r = k.safeParse(e);
51
47
  return r.success ? { ok: !0, value: r.data } : {
52
48
  ok: !1,
53
49
  error: {
54
- code: d.invalidMetadata,
50
+ code: p.invalidMetadata,
55
51
  message: "Temporal bucket metadata is invalid.",
56
52
  path: "temporalBucket"
57
53
  }
@@ -62,12 +58,12 @@ function f(e, r) {
62
58
  return r.metadataRequired ? {
63
59
  ok: !1,
64
60
  error: {
65
- code: d.missingMetadata,
61
+ code: p.missingMetadata,
66
62
  message: "Activated temporal bucket result is missing metadata.",
67
63
  path: "temporalBucket"
68
64
  }
69
65
  } : { ok: !0 };
70
- const o = y(
66
+ const o = h(
71
67
  e.temporalBucket
72
68
  );
73
69
  if (!o.ok || !o.value)
@@ -78,13 +74,13 @@ function f(e, r) {
78
74
  return e.dataType !== n ? {
79
75
  ok: !1,
80
76
  error: {
81
- code: d.invalidMetadata,
77
+ code: p.invalidMetadata,
82
78
  message: `${o.value.granularity} temporal buckets require dataType ${n}.`,
83
79
  path: "dataType"
84
80
  }
85
81
  } : o;
86
82
  }
87
- function h(e, r) {
83
+ function y(e, r) {
88
84
  var o, n, t, a;
89
85
  return e.granularity === r.granularity && e.calendar.tz === r.calendar.tz && e.calendar.weekStart === r.calendar.weekStart && ((o = e.calendar.fiscalCalendar) == null ? void 0 : o.kind) === ((n = r.calendar.fiscalCalendar) == null ? void 0 : n.kind) && ((t = e.calendar.fiscalCalendar) == null ? void 0 : t.yearStartMonth) === ((a = r.calendar.fiscalCalendar) == null ? void 0 : a.yearStartMonth);
90
86
  }
@@ -95,7 +91,7 @@ function A(e, r) {
95
91
  return {
96
92
  ok: !1,
97
93
  error: {
98
- code: d.invalidMetadata,
94
+ code: p.invalidMetadata,
99
95
  message: `Canonical result contains duplicate column key "${n.key}".`,
100
96
  path: "columns"
101
97
  }
@@ -120,7 +116,7 @@ function A(e, r) {
120
116
  return {
121
117
  ok: !1,
122
118
  error: {
123
- code: d.missingMetadata,
119
+ code: p.missingMetadata,
124
120
  message: `Activated temporal bucket result is missing column "${n.key}".`,
125
121
  path: `columns.${n.key}`
126
122
  }
@@ -136,11 +132,11 @@ function A(e, r) {
136
132
  path: `columns.${n.key}.${a.error.path || "temporalBucket"}`
137
133
  }
138
134
  };
139
- if (!a.value || !h(a.value, n.metadata))
135
+ if (!a.value || !y(a.value, n.metadata))
140
136
  return {
141
137
  ok: !1,
142
138
  error: {
143
- code: d.invalidMetadata,
139
+ code: p.invalidMetadata,
144
140
  message: `Temporal bucket metadata for column "${n.key}" contradicts the governed query context.`,
145
141
  path: `columns.${n.key}.temporalBucket`
146
142
  }
@@ -155,7 +151,7 @@ const $ = "higher_is_better", I = {
155
151
  showColor: !0,
156
152
  conditionalLabel: !1
157
153
  };
158
- function D(e) {
154
+ function w(e) {
159
155
  return C(e) !== null;
160
156
  }
161
157
  function B(e) {
@@ -188,7 +184,7 @@ function P(e) {
188
184
  function i(e, r, o) {
189
185
  return o ? { code: e, message: r, path: o } : { code: e, message: r };
190
186
  }
191
- function p(e) {
187
+ function d(e) {
192
188
  return !!e && typeof e == "object" && !Array.isArray(e);
193
189
  }
194
190
  function c(e, r, o, n) {
@@ -228,7 +224,7 @@ function b(e, r, o) {
228
224
  }
229
225
  function _(e, r = "comparison") {
230
226
  const o = [];
231
- return p(e) ? (e.kind === "previous_period" ? (c(
227
+ return d(e) ? (e.kind === "previous_period" ? (c(
232
228
  e,
233
229
  ["kind", "offsetPeriods", "alignment", "toDate"],
234
230
  r,
@@ -263,7 +259,7 @@ function _(e, r = "comparison") {
263
259
  };
264
260
  }
265
261
  function R(e, r = "comparison") {
266
- if (!p(e))
262
+ if (!d(e))
267
263
  return {
268
264
  ok: !1,
269
265
  errors: [
@@ -284,8 +280,8 @@ function R(e, r = "comparison") {
284
280
  )
285
281
  ), { ok: o.length === 0, errors: o, warnings: [] };
286
282
  }
287
- function w(e, r = "comparisonSelection") {
288
- if (!p(e))
283
+ function D(e, r = "comparisonSelection") {
284
+ if (!d(e))
289
285
  return {
290
286
  ok: !1,
291
287
  errors: [
@@ -303,7 +299,7 @@ function w(e, r = "comparisonSelection") {
303
299
  else if (e.mode === "period") {
304
300
  c(e, ["mode", "spec"], r, o);
305
301
  const n = _(e.spec, `${r}.spec`);
306
- o.push(...n.errors), p(e.spec) && e.spec.kind === "target" && o.push(
302
+ o.push(...n.errors), d(e.spec) && e.spec.kind === "target" && o.push(
307
303
  i(
308
304
  "invalid_global_date_comparison",
309
305
  "Global Date comparison supports previous_period or previous_year, not target.",
@@ -321,7 +317,7 @@ function w(e, r = "comparisonSelection") {
321
317
  return { ok: o.length === 0, errors: o, warnings: [] };
322
318
  }
323
319
  function E(e, r = "globalDateComparison") {
324
- if (!p(e))
320
+ if (!d(e))
325
321
  return {
326
322
  ok: !1,
327
323
  errors: [
@@ -340,7 +336,7 @@ function E(e, r = "globalDateComparison") {
340
336
  r,
341
337
  o
342
338
  ), o.push(
343
- ...w(
339
+ ...D(
344
340
  e.selection,
345
341
  `${r}.selection`
346
342
  ).errors
@@ -350,7 +346,7 @@ function E(e, r = "globalDateComparison") {
350
346
  "inheritGlobalComparison may only be false when present.",
351
347
  `${r}.inheritGlobalComparison`
352
348
  )
353
- ), e.owner !== void 0 && (p(e.owner) ? e.owner.kind === "global_date" ? c(e.owner, ["kind"], `${r}.owner`, o) : e.owner.kind === "field_date" ? (c(
349
+ ), e.owner !== void 0 && (d(e.owner) ? e.owner.kind === "global_date" ? c(e.owner, ["kind"], `${r}.owner`, o) : e.owner.kind === "field_date" ? (c(
354
350
  e.owner,
355
351
  ["kind", "filterId", "label"],
356
352
  `${r}.owner`,
@@ -379,7 +375,7 @@ function E(e, r = "globalDateComparison") {
379
375
  "Comparison owner must be an object.",
380
376
  `${r}.owner`
381
377
  )
382
- )), e.referenceTime !== void 0 && (typeof e.referenceTime != "string" || !D(e.referenceTime)) && o.push(
378
+ )), e.referenceTime !== void 0 && (typeof e.referenceTime != "string" || !w(e.referenceTime)) && o.push(
383
379
  i(
384
380
  "invalid_global_date_comparison",
385
381
  "referenceTime must be a valid ISO date-time string when present.",
@@ -405,7 +401,7 @@ function G(e, r = "comparisonPolarity") {
405
401
  };
406
402
  }
407
403
  function L(e, r = "comparisonPresentation") {
408
- if (!p(e))
404
+ if (!d(e))
409
405
  return {
410
406
  ok: !1,
411
407
  errors: [
@@ -472,7 +468,7 @@ function L(e, r = "comparisonPresentation") {
472
468
  ), ["conditionalLabels", "colors"].forEach((a) => {
473
469
  const s = e[a];
474
470
  if (s !== void 0) {
475
- if (!p(s)) {
471
+ if (!d(s)) {
476
472
  o.push(
477
473
  i(
478
474
  "invalid_comparison_presentation",
@@ -532,7 +528,7 @@ export {
532
528
  B as b,
533
529
  _ as c,
534
530
  R as d,
535
- w as e,
531
+ D as e,
536
532
  E as f,
537
533
  G as g,
538
534
  L as h,
@@ -540,6 +536,6 @@ export {
540
536
  f as j,
541
537
  A as k,
542
538
  N as r,
543
- y as v,
539
+ h as v,
544
540
  O as w
545
541
  };
@@ -1,4 +1,4 @@
1
- import { c as a } from "./style-sheet-parts-CmXmKqGw.js";
1
+ import { c as a } from "./style-sheet-parts-DM_Mw_sm.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *
@@ -1,4 +1,4 @@
1
- import { c } from "./style-sheet-parts-CmXmKqGw.js";
1
+ import { c } from "./style-sheet-parts-DM_Mw_sm.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *
@@ -1,7 +1,7 @@
1
1
  var d = Object.defineProperty;
2
2
  var c = (e, r, t) => r in e ? d(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
3
  var i = (e, r, t) => c(e, typeof r != "symbol" ? r + "" : r, t);
4
- import { f } from "./pivot-result-contract-expectations-DbBahmgc.js";
4
+ import { f } from "./pivot-result-contract-expectations-BkMRCjzf.js";
5
5
  class v extends Error {
6
6
  constructor(t, a) {
7
7
  super(`${t}: ${a}`);