react-semaphor 0.1.587 → 0.1.589

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 (94) hide show
  1. package/dist/analytics-protocol/index.js +341 -338
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +8 -8
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/{add-to-dashboard-DhP8wVtM.js → add-to-dashboard-C86FsM8D.js} +1 -1
  7. package/dist/chunks/{aggregate-measure-field-DsFXETpI.js → aggregate-measure-field-BrkXsSJp.js} +2 -2
  8. package/dist/chunks/{analytics-base-schemas-BaIQrEzX.js → analytics-base-schemas-8wz9vqn_.js} +173 -165
  9. package/dist/chunks/{assistant-chat-pfJK-T0b.js → assistant-chat-DBPa6sJU.js} +19 -18
  10. package/dist/chunks/{bookmark-impact-BSpGQL1M.js → bookmark-impact-B7pbMx2e.js} +2 -2
  11. package/dist/chunks/{bookmark-state-CL4WEpgB.js → bookmark-state-Bn7k3ttp.js} +5 -5
  12. package/dist/chunks/{card-filter-builder-C8PbhHjq.js → card-filter-builder-CGM7ROM0.js} +99 -99
  13. package/dist/chunks/{comparison-window-caption-CoART8BC.js → comparison-window-caption-fqijZdVd.js} +451 -395
  14. package/dist/chunks/{context-BTLBjQNh.js → context-CVXTFljo.js} +1 -1
  15. package/dist/chunks/{dashboard-CVj1oMoW.js → dashboard-UXH3E31V.js} +1 -1
  16. package/dist/chunks/{dashboard-briefing-launcher-TqA58rKz.js → dashboard-briefing-launcher-CTFuSWH_.js} +313 -329
  17. package/dist/chunks/{dashboard-controls-DQ8FsxAz.js → dashboard-controls-BcxWhOKw.js} +97 -97
  18. package/dist/chunks/{dashboard-json-DM88pmk2.js → dashboard-json-C-oBcKKC.js} +5 -5
  19. package/dist/chunks/dates-BunbHJH0.js +115 -0
  20. package/dist/chunks/{edit-dashboard-visual-BpRnU_6G.js → edit-dashboard-visual-COjKc_Du.js} +2796 -2783
  21. package/dist/chunks/{filter-line-Cu2u1K36.js → filter-line-Dza3ee4w.js} +5 -5
  22. package/dist/chunks/{filter-reach-copy-0Xp97cLk.js → filter-reach-copy-D5AmDHda.js} +944 -942
  23. package/dist/chunks/{filter-value-text-xefXzZlf.js → filter-value-text-DQw4v3nC.js} +6 -6
  24. package/dist/chunks/{index-D_QSeVKy.js → index-dGxJTaP1.js} +39 -39
  25. package/dist/chunks/{layout-grid-9nSS2SL-.js → layout-grid-BG__sPkb.js} +1 -1
  26. package/dist/chunks/{list-filter-CfMPI6v4.js → list-filter-Cb8i7N8f.js} +1 -1
  27. package/dist/chunks/{matrix-analytical-definition-DOVSFFuf.js → matrix-analytical-definition-SN0JUJVk.js} +3 -3
  28. package/dist/chunks/{matrix-member-presentation-BKDyxJho.js → matrix-member-presentation-DVBJR0MA.js} +1 -1
  29. package/dist/chunks/{matrix-operation-contract-BM5TveR3.js → matrix-operation-contract-JSmproo9.js} +15 -15
  30. package/dist/chunks/{metric-comparison-ZmurmEIs.js → metric-comparison-xE_J6hkg.js} +2 -2
  31. package/dist/chunks/{paintbrush-LzAje2ff.js → paintbrush-C310xSuR.js} +1 -1
  32. package/dist/chunks/{palette-DicJG0TC.js → palette-Ci5P91Zb.js} +1 -1
  33. package/dist/chunks/{pivot-header-presentation-CdeTU96P.js → pivot-header-presentation-D-DfPAjb.js} +1 -1
  34. package/dist/chunks/{pivot-result-contract-expectations-Bx_BCu-7.js → pivot-result-contract-expectations-DbBahmgc.js} +545 -536
  35. package/dist/chunks/{pivot-result-identity-Bvs6Uq3v.js → pivot-result-identity-CUsMt_4r.js} +1 -1
  36. package/dist/chunks/{raw-temporal-value-DH-feMc2.js → raw-temporal-value-BnGCWJAL.js} +1 -1
  37. package/dist/chunks/report-preferences-dialog-DtuOcejh.js +1637 -0
  38. package/dist/chunks/{report-runtime-context-NlOXwyRB.js → report-runtime-context-CrOgmuxO.js} +2 -2
  39. package/dist/chunks/{resolve-dashboard-input-context-zEXuitoF.js → resolve-dashboard-input-context-DFBIngUZ.js} +5617 -5485
  40. package/dist/chunks/{save-0wu1Z1U7.js → save-BhhXfp4s.js} +1 -1
  41. package/dist/chunks/{saved-dashboard-context-Cll5LipJ.js → saved-dashboard-context-DKMTP9ib.js} +17 -17
  42. package/dist/chunks/selection-filter-compiler-DkIjp1yH.js +131 -0
  43. package/dist/chunks/{semaphor-ready-indicator-Bnj3H0Dm.js → semaphor-ready-indicator-HGEnCavj.js} +50770 -49867
  44. package/dist/chunks/{shelf-drop-preview-context-B8rmn6BD.js → shelf-drop-preview-context-DaCXCdMA.js} +112 -112
  45. package/dist/chunks/{stored-dashboard-CURqJgoa.js → stored-dashboard-CksluF2S.js} +1539 -1404
  46. package/dist/chunks/{style-sheet-parts-_dGSFzDi.js → style-sheet-parts-CmXmKqGw.js} +33 -33
  47. package/dist/chunks/{table-export-sheet-Dmtqi5NV.js → table-export-sheet-ClSgERQC.js} +1 -1
  48. package/dist/chunks/{token-types-DEe_FP4l.js → token-types-DTocOcwt.js} +1 -1
  49. package/dist/chunks/{upload-CtyOkU_B.js → upload-DDYc1Qjj.js} +1 -1
  50. package/dist/chunks/{validators-CJ8Jh0E8.js → validators-CrYXNnNE.js} +51 -49
  51. package/dist/chunks/{variable-draft-DIv-9y6Q.js → variable-draft-rbtGPvmX.js} +16 -14
  52. package/dist/chunks/visual-choice-DDfHfHvY.js +172 -0
  53. package/dist/dashboard/index.js +2 -2
  54. package/dist/dashboard-authoring/index.js +821 -791
  55. package/dist/format-utils/index.js +162 -158
  56. package/dist/index.js +214 -215
  57. package/dist/report-runtime-context/index.js +2 -2
  58. package/dist/style.css +1 -1
  59. package/dist/surfboard/index.js +2 -2
  60. package/dist/types/index.js +5 -5
  61. package/dist/types/lib/dashboard-view-state/card-view-state.d.ts +39 -2
  62. package/dist/types/lib/dashboard-view-state/date-zoom.d.ts +65 -0
  63. package/dist/types/lib/dashboard-view-state/grain-pick.d.ts +38 -0
  64. package/dist/types/lib/dashboard-view-state/index.d.ts +2 -0
  65. package/dist/types/lib/formatters/grouped-temporal-presentation.d.ts +6 -2
  66. package/dist/types/lib/hooks/interactions/use-drill-actions.d.ts +1 -1
  67. package/dist/types/lib/interactions/get-click-context-from-table.d.ts +2 -2
  68. package/dist/types/lib/query-context/assemble-card-query.d.ts +2 -1
  69. package/dist/types/lib/query-context/build-card-query-context.d.ts +15 -1
  70. package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +3 -0
  71. package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +14 -1
  72. package/dist/types/lib/stores/dashboard-store.d.ts +7 -1
  73. package/dist/types/lib/types/explorer-types.d.ts +13 -0
  74. package/dist/types/lib/utils/card-config-utils.d.ts +1 -1
  75. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +32 -0
  76. package/dist/types/shared/analytics-protocol/contracts.d.ts +30 -0
  77. package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +13 -0
  78. package/dist/types/shared/dashboard-authoring/automatic-grain.d.ts +77 -0
  79. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
  80. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +13 -8
  81. package/dist/types/shared/dashboard-authoring/control-value-resolution.d.ts +24 -0
  82. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  83. package/dist/types/shared/dashboard-authoring/kpi-trend-rule.d.ts +6 -29
  84. package/dist/types/shared/dashboard-authoring/variable-draft.d.ts +1 -0
  85. package/dist/types/shared/format-utils/index.d.ts +1 -0
  86. package/dist/types/shared/format-utils/partial-period.d.ts +40 -0
  87. package/dist/types/shared/format-utils/temporal-bucket.d.ts +11 -0
  88. package/dist/types/shared/usage-events/details.d.ts +2 -2
  89. package/dist/usage-events/index.js +1 -1
  90. package/package.json +1 -1
  91. package/dist/chunks/dates-5z3b9Loo.js +0 -136
  92. package/dist/chunks/report-preferences-dialog-CXKmWyLm.js +0 -2028
  93. package/dist/chunks/selection-filter-compiler-BReJy-uv.js +0 -92
  94. package/dist/chunks/visual-choice-BBPizkRo.js +0 -206
@@ -2,9 +2,9 @@ import { jsx as v, jsxs as re, Fragment as xt } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import ke, { forwardRef as jn, createElement as In, useLayoutEffect as cs, useState as ro, useRef as vn, useMemo as us, useId as ds, useImperativeHandle as fs } from "react";
4
4
  import { b as ps, c as ee, d as me, g as hs } from "./pickers-DkqmtnTL.js";
5
- import "./validators-CJ8Jh0E8.js";
6
- import "./matrix-operation-contract-BM5TveR3.js";
7
- import "./analytics-base-schemas-BaIQrEzX.js";
5
+ import "./validators-CrYXNnNE.js";
6
+ import "./matrix-operation-contract-JSmproo9.js";
7
+ import "./analytics-base-schemas-8wz9vqn_.js";
8
8
  import "../value-format-preferences/index.js";
9
9
  import * as Gt from "react-dom";
10
10
  import gs from "react-dom";
@@ -8596,13 +8596,13 @@ export {
8596
8596
  hc as a0,
8597
8597
  gc as a1,
8598
8598
  Ql as a2,
8599
- Xe as a3,
8600
- it as a4,
8601
- Kn as a5,
8602
- ue as a6,
8603
- le as a7,
8604
- Pa as a8,
8605
- Xp as a9,
8599
+ Kn as a3,
8600
+ ue as a4,
8601
+ le as a5,
8602
+ Pa as a6,
8603
+ Xp as a7,
8604
+ Bp as a8,
8605
+ jd as a9,
8606
8606
  Hu as aA,
8607
8607
  ca as aB,
8608
8608
  Is as aC,
@@ -8617,29 +8617,29 @@ export {
8617
8617
  Hf as aL,
8618
8618
  Qi as aM,
8619
8619
  Vf as aN,
8620
- Bp as aa,
8621
- jd as ab,
8622
- Rs as ac,
8623
- qp as ad,
8624
- Vp as ae,
8625
- Vd as af,
8626
- Hi as ag,
8627
- Ee as ah,
8628
- en as ai,
8629
- ct as aj,
8630
- tn as ak,
8631
- Jt as al,
8632
- Ho as am,
8633
- po as an,
8634
- ir as ao,
8635
- Gn as ap,
8636
- Yt as aq,
8637
- Uo as ar,
8638
- or as as,
8639
- zo as at,
8640
- Vs as au,
8641
- rr as av,
8642
- ar as aw,
8620
+ Rs as aa,
8621
+ qp as ab,
8622
+ Vp as ac,
8623
+ Vd as ad,
8624
+ Hi as ae,
8625
+ it as af,
8626
+ Ee as ag,
8627
+ en as ah,
8628
+ ct as ai,
8629
+ tn as aj,
8630
+ Jt as ak,
8631
+ Ho as al,
8632
+ po as am,
8633
+ ir as an,
8634
+ Gn as ao,
8635
+ Yt as ap,
8636
+ Uo as aq,
8637
+ or as ar,
8638
+ zo as as,
8639
+ Vs as at,
8640
+ rr as au,
8641
+ ar as av,
8642
+ Xe as aw,
8643
8643
  rn as ax,
8644
8644
  Mp as ay,
8645
8645
  Wu as az,
@@ -2,7 +2,7 @@ var ft = Object.defineProperty;
2
2
  var ht = (e, t, r) => t in e ? ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var ne = (e, t, r) => ht(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import { z as S } from "zod";
5
- import { e as ct } from "./comparison-window-caption-CoART8BC.js";
5
+ import { e as ct } from "./comparison-window-caption-fqijZdVd.js";
6
6
  var E = Uint8Array, I = Uint16Array, pe = Int32Array, xe = new E([
7
7
  0,
8
8
  0,
@@ -1,5 +1,5 @@
1
1
  import "../value-format-preferences/index.js";
2
- import "./validators-CJ8Jh0E8.js";
2
+ import "./validators-CrYXNnNE.js";
3
3
  const A = {
4
4
  mode: "all"
5
5
  };
@@ -1,4 +1,4 @@
1
- import { c as o } from "./style-sheet-parts-_dGSFzDi.js";
1
+ import { c as o } from "./style-sheet-parts-CmXmKqGw.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *
@@ -1,4 +1,4 @@
1
- import { M as Oe, y as K, x as qt, C as Bt, D as Wt, F as Ut, H as Vt, w as Ht, h as tt, j as pe, k as zt, m as Gt, b as Qt, d as Xt } from "./analytics-base-schemas-BaIQrEzX.js";
1
+ import { M as Oe, z as K, y as qt, E as Bt, F as Wt, H as Ut, J as Vt, x as Ht, h as tt, j as pe, k as zt, o as Gt, b as Qt, d as Xt } from "./analytics-base-schemas-8wz9vqn_.js";
2
2
  import { z as a } from "zod";
3
3
  function Kt(e) {
4
4
  return typeof e == "string" || typeof e == "number" && Number.isFinite(e) || typeof e == "boolean";
@@ -52,7 +52,7 @@ const ii = {
52
52
  month: 120,
53
53
  quarter: 40,
54
54
  year: 10
55
- }, E = a.enum(["day", "week", "month", "quarter", "year"]), ni = a.enum(["minute", "hour"]), ai = a.enum(["minute", "hour", "day", "week", "month", "quarter", "year"]), fe = a.number().int().positive(), Z = a.number().int(), $ = {
55
+ }, E = a.enum(["day", "week", "month", "quarter", "year"]), ni = a.enum(["minute", "hour"]), ai = a.enum(["minute", "hour", "day", "week", "month", "quarter", "year"]), fe = a.number().int().positive(), Z = a.number().int(), D = {
56
56
  lastSubDay: a.object({
57
57
  mode: a.literal("last"),
58
58
  n: fe,
@@ -126,20 +126,20 @@ function ri(e) {
126
126
  }
127
127
  return;
128
128
  }
129
- const t = $.lastSubDay.safeParse(e), i = t.success ? t : $.last.safeParse(e);
129
+ const t = D.lastSubDay.safeParse(e), i = t.success ? t : D.last.safeParse(e);
130
130
  if (i.success) {
131
131
  const { n: r, unit: l, complete: c, relativeTo: m } = i.data, u = m ?? "now";
132
132
  return c ? { kind: "periods", unit: l, from: -r, to: -1, anchor: u } : { kind: "rolling", unit: l, n: r, anchor: u };
133
133
  }
134
- const n = $.this.safeParse(e);
134
+ const n = D.this.safeParse(e);
135
135
  if (n.success) {
136
136
  const { unit: r, toDate: l, boundary: c } = n.data;
137
137
  return he.check(n.data) ? c ? { kind: "monthDay", day: c === "first_day" ? "first" : "last" } : { kind: "periods", unit: r, from: 0, to: 0, ...l ? { toDate: !0 } : {}, anchor: "now" } : void 0;
138
138
  }
139
- const o = $.previous.safeParse(e);
139
+ const o = D.previous.safeParse(e);
140
140
  if (o.success)
141
141
  return { kind: "periods", unit: o.data.unit, from: -1, to: -1, anchor: "now" };
142
- const s = $.between.safeParse(e);
142
+ const s = D.between.safeParse(e);
143
143
  if (s.success) {
144
144
  const { unit: r, from: l, to: c } = s.data;
145
145
  return { kind: "periods", unit: r, from: l, to: c, anchor: "now" };
@@ -305,14 +305,14 @@ function dt(e) {
305
305
  }
306
306
  }
307
307
  const lt = "Not a relative date window", pi = a.union([
308
- $.lastSubDay.strict(),
309
- $.last.strict(),
310
- $.this.strict().refine(he.check, {
308
+ D.lastSubDay.strict(),
309
+ D.last.strict(),
310
+ D.this.strict().refine(he.check, {
311
311
  message: he.message,
312
312
  path: ["boundary"]
313
313
  }),
314
- $.previous.strict(),
315
- $.between.strict(),
314
+ D.previous.strict(),
315
+ D.between.strict(),
316
316
  at,
317
317
  B.rolling.strict(),
318
318
  B.monthDay.strict()
@@ -560,11 +560,11 @@ function d(e, t, i) {
560
560
  function h(e) {
561
561
  return typeof e == "string" && e.trim().length > 0;
562
562
  }
563
- function Di(e) {
563
+ function $i(e) {
564
564
  const t = /* @__PURE__ */ new Set();
565
- return $i(e, (i) => (t.add(i), `{${i}}`)), Array.from(t);
565
+ return Di(e, (i) => (t.add(i), `{${i}}`)), Array.from(t);
566
566
  }
567
- function $i(e, t) {
567
+ function Di(e, t) {
568
568
  let i = "", n = 0, o = 0;
569
569
  for (; o < e.length; ) {
570
570
  const s = e[o];
@@ -883,7 +883,7 @@ function Ae(e) {
883
883
  t
884
884
  );
885
885
  }), h(e.expression) && g(e.inputs)) {
886
- const n = Di(
886
+ const n = $i(
887
887
  e.expression
888
888
  ), o = new Set(n), s = Object.keys(e.inputs).filter(
889
889
  (r) => h(r)
@@ -921,13 +921,13 @@ function Ae(e) {
921
921
  )
922
922
  ), { ok: t.length === 0, errors: t, warnings: [] };
923
923
  }
924
- const Y = a.string().min(1).refine((e) => e.trim().length > 0, "Must not be blank."), De = a.union([
924
+ const Y = a.string().min(1).refine((e) => e.trim().length > 0, "Must not be blank."), $e = a.union([
925
925
  Bt.extend({ domainId: Y, datasetName: Y }).strict(),
926
926
  Wt.extend({ connectionId: Y, tableName: Y }).strict()
927
927
  ]), mt = Ut.extend({
928
928
  name: Y,
929
- source: De.optional()
930
- }).strict(), $e = Vt.extend({
929
+ source: $e.optional()
930
+ }).strict(), De = Vt.extend({
931
931
  format: Ht.optional(),
932
932
  inputs: a.record(
933
933
  a.object({
@@ -945,7 +945,7 @@ const Y = a.string().min(1).refine((e) => e.trim().length > 0, "Must not be blan
945
945
  message: n.message
946
946
  });
947
947
  }), Yi = mt.extend({
948
- derivedField: $e.optional()
948
+ derivedField: De.optional()
949
949
  }).strict();
950
950
  function xe(e) {
951
951
  return typeof e == "string" ? e.trim().toLowerCase() : "";
@@ -1316,10 +1316,10 @@ function Aa(e) {
1316
1316
  const { representation: t } = It(e);
1317
1317
  return t === "physical" ? e : { ...e, calculationRepresentation: t };
1318
1318
  }
1319
- function Da(e) {
1319
+ function $a(e) {
1320
1320
  return It(e).computeStage;
1321
1321
  }
1322
- function $a(e, t) {
1322
+ function Da(e, t) {
1323
1323
  return e === "aggregate" && t === "default";
1324
1324
  }
1325
1325
  function xa(e) {
@@ -1614,7 +1614,7 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1614
1614
  entityType: kt,
1615
1615
  alias: a.string().optional(),
1616
1616
  sourceField: a.string().optional(),
1617
- source: De.optional(),
1617
+ source: $e.optional(),
1618
1618
  nativeDataType: a.string().optional(),
1619
1619
  description: a.string().optional(),
1620
1620
  qualifiedEntityName: a.string().optional(),
@@ -1628,13 +1628,15 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1628
1628
  labelOrigin: a.enum(["semantic", "override"]).optional(),
1629
1629
  formatOrigin: a.enum(["semantic", "override"]).optional(),
1630
1630
  expression: a.string().optional(),
1631
- derivedField: $e.optional(),
1631
+ derivedField: De.optional(),
1632
1632
  format: K.optional(),
1633
1633
  semanticTemporalPresentation: a.object({
1634
1634
  granularity: pe,
1635
1635
  format: zt
1636
1636
  }).strict().optional(),
1637
1637
  aggregate: tt.optional(),
1638
+ /** DG-D1: Automatic grain on a Group by date. */
1639
+ grainMode: a.literal("automatic").optional(),
1638
1640
  fieldScope: a.enum(["card", "sheet", "dashboard", "domain"]).optional(),
1639
1641
  calculatedFormula: a.object({
1640
1642
  operation: a.enum([
@@ -1756,22 +1758,22 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1756
1758
  "MIN",
1757
1759
  "MAX",
1758
1760
  "MEDIAN"
1759
- ]), Dt = Yi.omit({
1761
+ ]), $t = Yi.omit({
1760
1762
  aggregate: !0
1761
1763
  }), hn = {
1762
1764
  id: S,
1763
- field: Dt,
1765
+ field: $t,
1764
1766
  grain: pe.optional()
1765
1767
  }, be = a.object(hn).strict(), gn = a.object({
1766
1768
  id: S,
1767
1769
  kind: a.literal("aggregate"),
1768
- field: Dt,
1770
+ field: $t,
1769
1771
  aggregate: fn
1770
1772
  }).strict(), yn = a.object({
1771
1773
  id: S,
1772
1774
  kind: a.literal("calculated"),
1773
- definition: $e
1774
- }).strict(), $t = a.discriminatedUnion("kind", [gn, yn]), _n = a.discriminatedUnion("kind", [
1775
+ definition: De
1776
+ }).strict(), Dt = a.discriminatedUnion("kind", [gn, yn]), _n = a.discriminatedUnion("kind", [
1775
1777
  a.object({ kind: a.literal("member") }).strict(),
1776
1778
  a.object({
1777
1779
  kind: a.literal("measure"),
@@ -1811,10 +1813,10 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1811
1813
  const i = e.operator === "between" || e.operator === "not between";
1812
1814
  i !== Array.isArray(e.value) ? _(t, ["value"], i ? "A range condition needs a low and a high bound." : "A comparison needs one number.") : i && e.value[0] > e.value[1] && _(t, ["value"], "The low bound must not exceed the high bound.");
1813
1815
  }), Ft = a.object({
1814
- source: De,
1816
+ source: $e,
1815
1817
  rows: a.array(be).min(1).readonly(),
1816
1818
  columns: a.array(be).readonly(),
1817
- measures: a.array($t).min(1).readonly(),
1819
+ measures: a.array(Dt).min(1).readonly(),
1818
1820
  filters: At.optional(),
1819
1821
  joinPlan: cn.optional(),
1820
1822
  relationshipHint: a.object({ relationshipIds: a.array(mn).optional() }).strict().optional(),
@@ -1985,11 +1987,11 @@ function Nt(e, t) {
1985
1987
  }
1986
1988
  const H = Ft.superRefine(Nt), Sn = Ft.extend({
1987
1989
  rows: a.array(be).readonly(),
1988
- measures: a.array($t).readonly()
1990
+ measures: a.array(Dt).readonly()
1989
1991
  }), wn = Sn.superRefine(Nt), kn = H.innerType().extend({ kind: a.literal("matrix") }), An = kn.superRefine(({ kind: e, ...t }, i) => {
1990
1992
  const n = H.safeParse(t);
1991
1993
  n.success || n.error.issues.forEach((o) => i.addIssue(o));
1992
- }), Dn = "{member}", Ve = a.object({
1994
+ }), $n = "{member}", Ve = a.object({
1993
1995
  visible: a.boolean(),
1994
1996
  position: a.enum(["before", "after"]),
1995
1997
  /** As written; a subtotal's `{member}` becomes its member's name. */
@@ -2002,7 +2004,7 @@ const H = Ft.superRefine(Nt), Sn = Ft.extend({
2002
2004
  * exactly one child shows no subtotal. Off when absent.
2003
2005
  */
2004
2006
  skipRedundant: a.boolean().optional()
2005
- }).strict(), $n = {
2007
+ }).strict(), Dn = {
2006
2008
  layout: a.discriminatedUnion("kind", [
2007
2009
  a.object({ kind: a.literal("compact") }).strict(),
2008
2010
  a.object({ kind: a.literal("tabular"), repeatLabels: a.boolean() }).strict()
@@ -2013,7 +2015,7 @@ const H = Ft.superRefine(Nt), Sn = Ft.extend({
2013
2015
  levelFormats: a.record(S, K).readonly(),
2014
2016
  measureFormats: a.record(S, K).readonly(),
2015
2017
  totals: a.object({ rows: He, columns: He }).strict()
2016
- }, Te = a.object($n).strict(), xn = a.object({
2018
+ }, Te = a.object(Dn).strict(), xn = a.object({
2017
2019
  depth: a.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
2018
2020
  overrides: a.array(
2019
2021
  a.object({ path: N, expanded: a.boolean() }).strict()
@@ -2058,7 +2060,7 @@ function re(e, t) {
2058
2060
  );
2059
2061
  for (const u of ["rows", "columns"]) {
2060
2062
  (m = n.totals[u].grand.label) != null && m.includes(
2061
- Dn
2063
+ $n
2062
2064
  ) && _(
2063
2065
  t,
2064
2066
  ["presentation", "totals", u, "grand", "label"],
@@ -2127,21 +2129,21 @@ function Wa(e) {
2127
2129
  return e && "id" in e ? e.id : void 0;
2128
2130
  }
2129
2131
  const Yn = "SUM";
2130
- function D(e) {
2132
+ function $(e) {
2131
2133
  return typeof e == "string" && e.trim().length > 0;
2132
2134
  }
2133
2135
  function P(e) {
2134
- return D(e) ? e.trim().toLowerCase() : "";
2136
+ return $(e) ? e.trim().toLowerCase() : "";
2135
2137
  }
2136
2138
  function Ua(e) {
2137
- const t = D(e.id) ? e.id.trim() : void 0;
2139
+ const t = $(e.id) ? e.id.trim() : void 0;
2138
2140
  if (!t) return;
2139
- const i = P(t), n = D(e.table) ? e.table.trim() : void 0;
2141
+ const i = P(t), n = $(e.table) ? e.table.trim() : void 0;
2140
2142
  if (!(i === P(e.name) || n && i === P(n)))
2141
2143
  return t;
2142
2144
  }
2143
2145
  function R(e) {
2144
- const t = D(e.datasetId) ? e.datasetId.trim() : void 0;
2146
+ const t = $(e.datasetId) ? e.datasetId.trim() : void 0;
2145
2147
  if (t)
2146
2148
  return P(t) === P(e.datasetName) ? void 0 : t;
2147
2149
  }
@@ -2154,7 +2156,7 @@ function Tt(e) {
2154
2156
  };
2155
2157
  }
2156
2158
  function Va(e) {
2157
- return e ? e.kind === "semantic" ? !!(D(e.domainId) && (D(e.datasetId) || D(e.datasetName))) : e.kind === "physical" ? D(e.connectionId) && D(e.tableName) : D(e.connectionId) : !1;
2159
+ return e ? e.kind === "semantic" ? !!($(e.domainId) && ($(e.datasetId) || $(e.datasetName))) : e.kind === "physical" ? $(e.connectionId) && $(e.tableName) : $(e.connectionId) : !1;
2158
2160
  }
2159
2161
  function ve(e) {
2160
2162
  if (!e)
@@ -3535,7 +3537,7 @@ export {
3535
3537
  H as J,
3536
3538
  Ve as K,
3537
3539
  Xi as L,
3538
- Dn as M,
3540
+ $n as M,
3539
3541
  Te as N,
3540
3542
  ze as O,
3541
3543
  se as P,
@@ -3543,7 +3545,7 @@ export {
3543
3545
  Pa as R,
3544
3546
  Rn as S,
3545
3547
  Ba as T,
3546
- De as U,
3548
+ $e as U,
3547
3549
  Kt as V,
3548
3550
  Zt as W,
3549
3551
  ne as X,
@@ -3619,13 +3621,13 @@ export {
3619
3621
  ya as b0,
3620
3622
  wn as b1,
3621
3623
  qa as b2,
3622
- $e as b3,
3623
- $i as b4,
3624
+ De as b3,
3625
+ Di as b4,
3624
3626
  Ue as b5,
3625
3627
  ga as b6,
3626
3628
  Jt as b7,
3627
3629
  It as c,
3628
- Da as d,
3630
+ $a as d,
3629
3631
  xa as e,
3630
3632
  _e as f,
3631
3633
  Ki as g,
@@ -3640,12 +3642,12 @@ export {
3640
3642
  Qa as p,
3641
3643
  At as q,
3642
3644
  F as r,
3643
- $a as s,
3645
+ Da as s,
3644
3646
  Ia as t,
3645
3647
  Ee as u,
3646
3648
  fn as v,
3647
- Dt as w,
3649
+ $t as w,
3648
3650
  be as x,
3649
- $t as y,
3651
+ Dt as y,
3650
3652
  Qi as z
3651
3653
  };
@@ -1,7 +1,7 @@
1
- import { c as v, g as N, a as y, b as D } from "./resolve-dashboard-input-context-zEXuitoF.js";
2
- import { d as M } from "./validators-CJ8Jh0E8.js";
3
- import { g as A, a as q, b as w, c as E } from "./filter-reach-copy-0Xp97cLk.js";
4
- import { g as L, m as x } from "./matrix-analytical-definition-DOVSFFuf.js";
1
+ import { c as v, g as M, a as y, b as N } from "./resolve-dashboard-input-context-DFBIngUZ.js";
2
+ import { d as D } from "./validators-CrYXNnNE.js";
3
+ import { g as A, a as q, b as w, c as E } from "./filter-reach-copy-D5AmDHda.js";
4
+ import { g as L, m as x } from "./matrix-analytical-definition-SN0JUJVk.js";
5
5
  const O = [
6
6
  {
7
7
  value: "only",
@@ -20,7 +20,7 @@ const O = [
20
20
  DISTINCT: { number: "Count distinct", date: "Count distinct", other: "Count distinct" }
21
21
  };
22
22
  function h(e) {
23
- return M(e) === "aggregate";
23
+ return D(e) === "aggregate";
24
24
  }
25
25
  function H(e) {
26
26
  const t = e == null ? void 0 : e.dataType;
@@ -28,7 +28,7 @@ function H(e) {
28
28
  return [
29
29
  { value: "calculation", label: "The calculation’s value", hint: "Shows the calculation over the rows the filters keep; it aggregates itself." }
30
30
  ];
31
- const a = y(t), i = a === "number" ? "number" : a === "date" ? "date" : "other", o = [...D(t)];
31
+ const a = y(t), i = a === "number" ? "number" : a === "date" ? "date" : "other", o = [...N(t)];
32
32
  return i === "date" && o.push({ value: "MIN", label: "Min" }, { value: "MAX", label: "Max" }), [
33
33
  ...O,
34
34
  ...o.map(({ value: l }) => {
@@ -103,7 +103,9 @@ const _ = {
103
103
  comparisonPolarity: "shelf",
104
104
  semanticComparisonPolarity: "shelf",
105
105
  parameters: "shelf",
106
- direction: "shelf"
106
+ direction: "shelf",
107
+ grainMode: "shelf"
108
+ // chart-date-grain DG-D1: a Group by's setting, never the catalog field's
107
109
  };
108
110
  function T(e) {
109
111
  return Object.fromEntries(
@@ -138,7 +140,7 @@ function P(e, t) {
138
140
  const a = t.name.trim();
139
141
  if (a) return a;
140
142
  const i = (n = t.label) != null && n.trim() ? v(t.label) : t.field ? v(t.field.name || t.field.label) : t.mode === "sql" ? "sql_value" : "variable", o = new Set(
141
- N(
143
+ M(
142
144
  e,
143
145
  { source: "dataVariable", variableId: t.id },
144
146
  { cardInputs: "taken" }
@@ -149,7 +151,7 @@ function P(e, t) {
149
151
  return l;
150
152
  }
151
153
  function Y(e, t) {
152
- var g, u, m, d, p, f, F, I;
154
+ var g, u, m, d, p, C, F, I;
153
155
  const a = P(t, e), i = {
154
156
  id: e.id,
155
157
  name: a,
@@ -167,7 +169,7 @@ function Y(e, t) {
167
169
  },
168
170
  get: e.get === "first" ? { kind: "first" } : { kind: "only" }
169
171
  };
170
- const o = ((m = e.dataSource) == null ? void 0 : m.connectionId) || ((f = (p = (d = e.dataSource) == null ? void 0 : d.selectedEntities) == null ? void 0 : p[0]) == null ? void 0 : f.connectionId), l = {
172
+ const o = ((m = e.dataSource) == null ? void 0 : m.connectionId) || ((C = (p = (d = e.dataSource) == null ? void 0 : d.selectedEntities) == null ? void 0 : p[0]) == null ? void 0 : C.connectionId), l = {
171
173
  ...o ? { connectionId: o } : {},
172
174
  ...e.dataSource ? { dataSource: e.dataSource } : {},
173
175
  ...(F = e.calculatedFields) != null && F.length ? { calculatedFields: e.calculatedFields } : {},
@@ -179,12 +181,12 @@ function Y(e, t) {
179
181
  if (!r)
180
182
  s = b(e.get) ? { kind: "aggregate" } : { kind: e.get };
181
183
  else if (b(e.get)) {
182
- const { comparison: S, ...c } = C(r, e.get);
184
+ const { comparison: S, ...c } = f(r, e.get);
183
185
  n.metricColumns = [
184
186
  ((I = e.comparison) == null ? void 0 : I.mode) === "explicit" && e.comparison.spec.kind !== "target" && B(e) ? { ...c, comparison: e.comparison } : c
185
187
  ], s = { kind: "aggregate" };
186
188
  } else if (h(r))
187
- n.metricColumns = [C(r, "calculation")], s = { kind: "aggregate" };
189
+ n.metricColumns = [f(r, "calculation")], s = { kind: "aggregate" };
188
190
  else if (n.groupByColumns = [U(r)], e.get === "list" ? s = {
189
191
  kind: "list",
190
192
  ...e.listLimit ? { limit: e.listLimit } : {},
@@ -195,13 +197,13 @@ function Y(e, t) {
195
197
  const c = n.groupByColumns[0];
196
198
  n.sortByColumns = [{ ...c, role: "sortby", direction: e.sortDirection }];
197
199
  } else {
198
- const c = C(S, e.sortDirection === "desc" ? "MAX" : "MIN");
200
+ const c = f(S, e.sortDirection === "desc" ? "MAX" : "MIN");
199
201
  n.metricColumns = [c], n.sortByColumns = [{ ...c, role: "sortby", direction: e.sortDirection }];
200
202
  }
201
203
  }
202
204
  return { ...i, query: l, get: s };
203
205
  }
204
- function C(e, t) {
206
+ function f(e, t) {
205
207
  const a = A(e, "metrics", [], q("metrics", e));
206
208
  return h(e) || t === "calculation" || !b(t) ? a : {
207
209
  ...a,