react-semaphor 0.1.537 → 0.1.539

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 (174) hide show
  1. package/dist/analytics-protocol/index.js +352 -341
  2. package/dist/assistant-context/index.js +10 -0
  3. package/dist/assistant-protocol/index.js +104 -0
  4. package/dist/brand-studio/index.js +35 -31
  5. package/dist/briefings/index.js +46 -45
  6. package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +28 -0
  7. package/dist/chunks/add-to-dashboard-CxtTfISD.js +56 -0
  8. package/dist/chunks/aggregate-table-row-presentation-BjK9YfMI.js +979 -0
  9. package/dist/chunks/analytics-base-schemas-BFAoRlkU.js +472 -0
  10. package/dist/chunks/apply-dashboard-operations-C-iahGka.js +402 -0
  11. package/dist/chunks/assistant-chat-DgiSuFT4.js +8083 -0
  12. package/dist/chunks/availability-Bp5Gfu1I.js +44 -0
  13. package/dist/chunks/{bookmark-state-B-I9BDD0.js → bookmark-state-k7y5SNGf.js} +9 -9
  14. package/dist/chunks/{braces-8TRlDwDw.js → braces-o9UiRQes.js} +1 -1
  15. package/dist/chunks/calculated-field-identity-DcBS2NPP.js +2161 -0
  16. package/dist/chunks/calendar-day-equality-Bpl15IBo.js +487 -0
  17. package/dist/chunks/class-utils-Df1OVOT1.js +2315 -0
  18. package/dist/chunks/{field-dependencies-CpRUwr9J.js → common-types-CUf03Htv.js} +65 -58
  19. package/dist/chunks/context-HD9usB1P.js +349 -0
  20. package/dist/chunks/conversation-sQiWYUOb.js +16 -0
  21. package/dist/chunks/csv-utils-GUfKyT1J.js +56 -0
  22. package/dist/chunks/custom-visual-inputs-BrUOIwln.js +3288 -0
  23. package/dist/chunks/{dashboard-briefing-launcher-A2uVpHCp.js → dashboard-briefing-launcher-Bl3gCeBR.js} +580 -556
  24. package/dist/chunks/{dashboard-controls-DxTuVis_.js → dashboard-controls-0EX0HiJt.js} +683 -686
  25. package/dist/chunks/{common-types-g7yS12Cg.js → dashboard-filter-value-compatibility-D95O4nd7.js} +18 -24
  26. package/dist/chunks/dashboard-json-6X_2BDiL.js +69 -0
  27. package/dist/chunks/{dashboard-BPJo-Fnd.js → dashboard-y5BwcvzT.js} +1 -1
  28. package/dist/chunks/document-dashboard-inputs-BrYYlRVo.js +10678 -0
  29. package/dist/chunks/document-sheet-utils-C1eEldxs.js +1076 -0
  30. package/dist/chunks/{edit-dashboard-visual-ByV0OwSp.js → edit-dashboard-visual-Bzchfgga.js} +4744 -4746
  31. package/dist/chunks/editor-draft-sync-BN5qYHPF.js +15 -0
  32. package/dist/chunks/filter-value-text-BhWugPWE.js +163 -0
  33. package/dist/chunks/index-CqMiAkay.js +3164 -0
  34. package/dist/chunks/index-CuHybtft.js +51 -0
  35. package/dist/chunks/layout-grid-Bgzth8vd.js +16 -0
  36. package/dist/chunks/{matrix-analytical-definition-CgBTD6H8.js → matrix-analytical-definition-bcprSe4u.js} +1 -1
  37. package/dist/chunks/{matrix-card-CAdizkUl.js → matrix-card-CJn1hB5V.js} +13 -12
  38. package/dist/chunks/matrix-definition-DQDI2okF.js +206 -0
  39. package/dist/chunks/{matrix-formatter-DJCk8Znf.js → matrix-formatter-DQ8avoIQ.js} +648 -457
  40. package/dist/chunks/matrix-member-presentation-BNPSDKBG.js +105 -0
  41. package/dist/chunks/{matrix-operation-contract-BKupLHXL.js → matrix-operation-contract-B8PBF1Gd.js} +134 -133
  42. package/dist/chunks/{metric-comparison-BKHyvnAy.js → metric-comparison-CojWeLqx.js} +1 -1
  43. package/dist/chunks/{palette-Cp1hqZtm.js → palette-D10o_yYX.js} +1 -1
  44. package/dist/chunks/pivot-header-presentation-MkcKnjn3.js +42 -0
  45. package/dist/chunks/{pivot-result-identity-Bs4tLtLo.js → pivot-result-identity-D6hhcRXi.js} +1 -1
  46. package/dist/chunks/pivot-result-lifecycle-8qCDmpKc.js +804 -0
  47. package/dist/chunks/raw-temporal-D61lr48Y.js +1464 -0
  48. package/dist/chunks/{raw-temporal-contract-mLFS-9wk.js → raw-temporal-contract-C51YG48G.js} +1 -1
  49. package/dist/chunks/report-preferences-dialog-CWhSbc5_.js +1808 -0
  50. package/dist/chunks/{report-runtime-context-CG_I0PPW.js → report-runtime-context-B984Nq1E.js} +8 -7
  51. package/dist/chunks/save-CfJpQQ68.js +21 -0
  52. package/dist/chunks/saved-dashboard-context-Dqve2jlB.js +566 -0
  53. package/dist/chunks/{selection-reducer-CiDEtmAq.js → selection-reducer-vKIb_jS6.js} +2 -2
  54. package/dist/chunks/{semaphor-ready-indicator-CHu1L-lo.js → semaphor-ready-indicator-ldcwmLoY.js} +65803 -62954
  55. package/dist/chunks/{shelf-drop-preview-context-i-H6DFyU.js → shelf-drop-preview-context-BWxunXTq.js} +199 -196
  56. package/dist/chunks/{source-entity-resolution-C-oNyYMp.js → source-entity-resolution-CVA1a85c.js} +8 -8
  57. package/dist/chunks/switch-CvItuC1Q.js +8199 -0
  58. package/dist/chunks/{temporal-bucket-DlFuhCnT.js → temporal-bucket-D8JF7zKz.js} +86 -71
  59. package/dist/chunks/{temporal-bucket-contract-D2OuaVZ7.js → temporal-bucket-contract-DaOajRC7.js} +1 -1
  60. package/dist/chunks/{token-types-DtSJOUjh.js → token-types-bxUxXDX2.js} +1 -1
  61. package/dist/chunks/{upload-CAIpsti1.js → upload-BFX7apKV.js} +1 -1
  62. package/dist/chunks/{use-create-flow-overlay-state-Bj63WwHc.js → use-create-flow-overlay-state-RHgzVfcz.js} +331 -339
  63. package/dist/chunks/{validators-DMSH81OM.js → validators-Ej1DdCXa.js} +1050 -1510
  64. package/dist/chunks/visual-choice-JiJ-_3bi.js +204 -0
  65. package/dist/chunks/x-4f5U2XwU.js +100 -0
  66. package/dist/chunks/{zoned-wall-clock-1qlWCE20.js → zoned-wall-clock-MulfA26h.js} +2 -2
  67. package/dist/dashboard/index.js +2 -2
  68. package/dist/dashboard-authoring/index.js +823 -661
  69. package/dist/data-app-sdk/index.js +32 -30
  70. package/dist/data-app-sdk-adapters/index.js +23 -22
  71. package/dist/data-app-sdk-validation/index.js +23 -22
  72. package/dist/format-utils/index.js +173 -168
  73. package/dist/index.js +267 -258
  74. package/dist/layouts/index.js +236 -24
  75. package/dist/report-runtime-context/index.js +2 -2
  76. package/dist/style.css +1 -1
  77. package/dist/surfboard/index.js +2 -2
  78. package/dist/types/assistant-context.d.ts +2 -0
  79. package/dist/types/assistant-protocol.d.ts +2 -0
  80. package/dist/types/components/assistant/assistant-entry-points.d.ts +18 -0
  81. package/dist/types/components/assistant/assistant-provider.d.ts +19 -0
  82. package/dist/types/components/assistant/assistant-store.d.ts +52 -0
  83. package/dist/types/components/assistant/use-assistant.d.ts +38 -0
  84. package/dist/types/components/index.d.ts +5 -1
  85. package/dist/types/components/surfboard/filter/types.d.ts +5 -2
  86. package/dist/types/index.js +50 -51
  87. package/dist/types/lib/api/invalidate-token.d.ts +7 -0
  88. package/dist/types/lib/charts/cartesian-fields.d.ts +64 -0
  89. package/dist/types/lib/charts/types.d.ts +7 -0
  90. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +14 -2
  91. package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +5 -6
  92. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +8 -3
  93. package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +11 -6
  94. package/dist/types/lib/dashboard-pagination/dashboard-card-pagination.d.ts +7 -0
  95. package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +79 -0
  96. package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +3 -2
  97. package/dist/types/lib/document/document-table-data-policy.d.ts +15 -0
  98. package/dist/types/lib/filter-values/filter-mode.d.ts +22 -0
  99. package/dist/types/lib/hooks/use-calendar-context.d.ts +5 -0
  100. package/dist/types/lib/hooks/use-filter-option-browse.d.ts +5 -0
  101. package/dist/types/lib/hooks/use-text-filter.d.ts +9 -0
  102. package/dist/types/lib/print/print-inputs.d.ts +4 -2
  103. package/dist/types/lib/query-context/build-card-query-context.d.ts +12 -4
  104. package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +93 -0
  105. package/dist/types/lib/query-context/card-server-request.d.ts +72 -0
  106. package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +7 -0
  107. package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +56 -0
  108. package/dist/types/lib/query-context/document-section-card-query.d.ts +45 -0
  109. package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +17 -2
  110. package/dist/types/lib/stores/dashboard-store.d.ts +34 -11
  111. package/dist/types/lib/stores/editor-store.d.ts +4 -2
  112. package/dist/types/lib/types/token-types.d.ts +11 -0
  113. package/dist/types/lib/utils/card-type-change.d.ts +30 -0
  114. package/dist/types/lib/utils/comparison-window-caption.d.ts +12 -0
  115. package/dist/types/lib/utils/filter-default-value-utils.d.ts +13 -2
  116. package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +74 -0
  117. package/dist/types/shared/analytics-protocol/contracts.d.ts +3 -0
  118. package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +43 -0
  119. package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
  120. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +1 -1
  121. package/dist/types/shared/analytics-protocol/visual-choice.d.ts +75 -0
  122. package/dist/types/shared/assistant-context/index.d.ts +9 -0
  123. package/dist/types/shared/assistant-context/project-context.d.ts +55 -0
  124. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +130 -0
  125. package/dist/types/shared/assistant-protocol/add-to-dashboard.d.ts +17 -0
  126. package/dist/types/shared/assistant-protocol/artifact.d.ts +63 -0
  127. package/dist/types/shared/assistant-protocol/availability.d.ts +39 -0
  128. package/dist/types/shared/assistant-protocol/context.d.ts +952 -0
  129. package/dist/types/shared/assistant-protocol/conversation.d.ts +38 -0
  130. package/dist/types/shared/assistant-protocol/index.d.ts +16 -0
  131. package/dist/types/shared/assistant-protocol/limits.d.ts +53 -0
  132. package/dist/types/shared/assistant-protocol/parts.d.ts +140 -0
  133. package/dist/types/shared/assistant-protocol/request.d.ts +77 -0
  134. package/dist/types/shared/assistant-protocol/sources.d.ts +27 -0
  135. package/dist/types/shared/assistant-protocol/token-config.d.ts +32 -0
  136. package/dist/types/shared/assistant-protocol/transcript.d.ts +40 -0
  137. package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +112 -0
  138. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +1794 -0
  139. package/dist/types/shared/dashboard-authoring/index.d.ts +5 -0
  140. package/dist/types/shared/dashboard-authoring/new-card.d.ts +10 -0
  141. package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +40 -0
  142. package/dist/types/shared/dashboard-authoring/resolved-primary-date-field-validation.d.ts +16 -0
  143. package/dist/types/shared/format-utils/filter-detail.d.ts +70 -0
  144. package/dist/types/shared/format-utils/filter-value-text.d.ts +15 -0
  145. package/dist/types/shared/format-utils/index.d.ts +3 -0
  146. package/dist/types/shared/format-utils/raw-temporal.d.ts +7 -0
  147. package/dist/types/shared/format-utils/temporal-bucket.d.ts +7 -0
  148. package/dist/types/shared/layouts/frame-layouts.d.ts +23 -0
  149. package/dist/types/shared/layouts/index.d.ts +1 -0
  150. package/package.json +12 -2
  151. package/dist/chunks/calculated-field-identity-BptYhyOP.js +0 -1326
  152. package/dist/chunks/calendar-day-equality-BRjN1S9h.js +0 -383
  153. package/dist/chunks/card-config-utils-BOM1dxCk.js +0 -1150
  154. package/dist/chunks/constants-DNWVy8Y3.js +0 -9
  155. package/dist/chunks/dashboard-json-B1dEQu98.js +0 -65
  156. package/dist/chunks/field-aggregations-CoLzYHeL.js +0 -1229
  157. package/dist/chunks/index-DTcTAGGM.js +0 -4101
  158. package/dist/chunks/matrix-continuation-C4sRcjZU.js +0 -72
  159. package/dist/chunks/matrix-control-sources-DTqcA2_L.js +0 -636
  160. package/dist/chunks/matrix-definition-D9iShKZI.js +0 -87
  161. package/dist/chunks/matrix-member-presentation-Ct8GuxHt.js +0 -209
  162. package/dist/chunks/numeric-presentation-CWu3gunq.js +0 -537
  163. package/dist/chunks/pivot-header-presentation-CHs2GFrM.js +0 -753
  164. package/dist/chunks/pivot-result-lifecycle-DQz_gjGu.js +0 -789
  165. package/dist/chunks/raw-temporal-iMXRK-Qz.js +0 -930
  166. package/dist/chunks/report-preferences-dialog-DXPjteCU.js +0 -1623
  167. package/dist/chunks/save-kO6cIaob.js +0 -34
  168. package/dist/chunks/semantic-format-DiqYeKwU.js +0 -192
  169. package/dist/chunks/switch-DO8a0EfJ.js +0 -25004
  170. package/dist/chunks/temporal-input-presentation-BD7YNUzu.js +0 -195
  171. package/dist/chunks/x-CXDkqdur.js +0 -149
  172. package/dist/types/lib/class-utils.d.ts +0 -2
  173. package/dist/types/lib/document/document-input-runtime.d.ts +0 -26
  174. package/dist/types/lib/utils.d.ts +0 -51
@@ -1,13 +1,15 @@
1
1
  import { toSemaphorInputSnapshots as rt, toSemaphorInputBinding as tt, toSemaphorSelectionSnapshots as nt, toSemaphorActiveInputSnapshots as X, toSemaphorMatrixIntent as it, toSemaphorSqlIntent as ot, toSemaphorInputOptionsIntent as st, toSemaphorRecordsIntent as at, toSemaphorAnalysisQueryOptions as lt, toSemaphorAnalysisIntent as dt, toSemaphorMetricIntent as ut, hasSemaphorInputValue as fe, normalizeSemaphorInputOptions as qr, toSemaphorInputSpec as Ar } from "../data-app-sdk-adapters/index.js";
2
2
  import { jsxs as p, Fragment as Tr, jsx as l } from "react/jsx-runtime";
3
3
  import { createContext as Ae, useContext as Q, useState as _, useRef as T, useEffect as B, useMemo as x, Fragment as ct, useId as kr, useCallback as L, useReducer as ft } from "react";
4
- import { q as pt, u as gt, H as mt, I as xe, s as yt } from "../chunks/validators-DMSH81OM.js";
5
- import { a as Co, b9 as Eo } from "../chunks/validators-DMSH81OM.js";
6
- import { m as ht, am as bt, al as vt, A as sr, r as ar, H as St } from "../chunks/matrix-operation-contract-BKupLHXL.js";
4
+ import { q as pt, u as gt, F as mt, G as xe, s as yt } from "../chunks/validators-Ej1DdCXa.js";
5
+ import { a as Ro, aw as Lo } from "../chunks/validators-Ej1DdCXa.js";
6
+ import { m as ht, am as bt, al as vt, A as sr, r as ar, H as St } from "../chunks/matrix-operation-contract-B8PBF1Gd.js";
7
+ import "../chunks/analytics-base-schemas-BFAoRlkU.js";
7
8
  import "zod";
8
- import { m as lr } from "../chunks/matrix-formatter-DJCk8Znf.js";
9
- import { M as wt, a as It, S as xt, E as qt, C as At, r as dr } from "../chunks/selection-reducer-CiDEtmAq.js";
10
- import { X as Tt, C as kt, j as Ct } from "../chunks/x-CXDkqdur.js";
9
+ import { m as lr } from "../chunks/matrix-formatter-DQ8avoIQ.js";
10
+ import { M as wt, a as It, S as xt, E as qt, C as At, r as dr } from "../chunks/selection-reducer-vKIb_jS6.js";
11
+ import { X as Tt, C as kt } from "../chunks/x-4f5U2XwU.js";
12
+ import { j as Ct } from "../chunks/index-CuHybtft.js";
11
13
  function he(e, r, t) {
12
14
  return {
13
15
  ...t,
@@ -15,13 +17,13 @@ function he(e, r, t) {
15
17
  role: r
16
18
  };
17
19
  }
18
- function mo(e) {
20
+ function ho(e) {
19
21
  return e;
20
22
  }
21
- function yo(e) {
23
+ function bo(e) {
22
24
  return e;
23
25
  }
24
- const ho = {
26
+ const vo = {
25
27
  source: {
26
28
  semantic(e) {
27
29
  return {
@@ -1657,7 +1659,7 @@ function Or() {
1657
1659
  const e = V[V.length - 1];
1658
1660
  e ? window.__SEMAPHOR_DEVTOOLS__ = e.bridge : delete window.__SEMAPHOR_DEVTOOLS__;
1659
1661
  }
1660
- function bo({
1662
+ function So({
1661
1663
  id: e,
1662
1664
  title: r,
1663
1665
  children: t
@@ -1905,7 +1907,7 @@ function tn({
1905
1907
  ) : null
1906
1908
  ] });
1907
1909
  }
1908
- function vo({
1910
+ function wo({
1909
1911
  queryId: e,
1910
1912
  viewId: r,
1911
1913
  label: t,
@@ -4118,7 +4120,7 @@ function Ui() {
4118
4120
  function Gi() {
4119
4121
  return Q(Yr);
4120
4122
  }
4121
- function So(e) {
4123
+ function Io(e) {
4122
4124
  const [r, t] = _(e.defaultValue), n = Object.prototype.hasOwnProperty.call(e, "value"), i = n ? e.value : r, o = x(
4123
4125
  () => qr(e.options),
4124
4126
  [e.options]
@@ -4159,7 +4161,7 @@ function So(e) {
4159
4161
  };
4160
4162
  }, [f, o, s, e, i]);
4161
4163
  }
4162
- function wo(e) {
4164
+ function xo(e) {
4163
4165
  const [r, t] = _(() => no(e));
4164
4166
  return B(() => {
4165
4167
  t((n) => {
@@ -4209,7 +4211,7 @@ function wo(e) {
4209
4211
  [e, r]
4210
4212
  );
4211
4213
  }
4212
- function Io(e, r) {
4214
+ function qo(e, r) {
4213
4215
  const t = (r == null ? void 0 : r.status) === "success" ? r.options : void 0, n = x(() => Yi(t), [t]);
4214
4216
  B(() => {
4215
4217
  Ji(e.value, t) || e.clear();
@@ -4231,7 +4233,7 @@ function Yi(e) {
4231
4233
  function wr(e) {
4232
4234
  return `${typeof e}:${String(e)}`;
4233
4235
  }
4234
- function xo(e, r = {}) {
4236
+ function Ao(e, r = {}) {
4235
4237
  const t = x(
4236
4238
  () => r.inputs ? {
4237
4239
  ...e,
@@ -4654,7 +4656,7 @@ function no(e) {
4654
4656
  function Ie(e) {
4655
4657
  throw new Error(`Unsupported Semaphor query kind: ${JSON.stringify(e)}`);
4656
4658
  }
4657
- function qo(e) {
4659
+ function To(e) {
4658
4660
  const [r, t] = _(() => xr(e, e.defaultTuples || [])), n = Object.prototype.hasOwnProperty.call(e, "tuples"), i = xr(
4659
4661
  e,
4660
4662
  n ? e.tuples || [] : r
@@ -4732,7 +4734,7 @@ function Zr(e, r) {
4732
4734
  function io(e) {
4733
4735
  return !e || typeof e == "boolean" || e.enabled === !1 ? null : e.autoRenderDevtools === !0 ? {} : e.autoRenderDevtools ? e.autoRenderDevtools : null;
4734
4736
  }
4735
- function Ao({
4737
+ function ko({
4736
4738
  token: e,
4737
4739
  apiBaseUrl: r,
4738
4740
  executor: t,
@@ -4755,21 +4757,21 @@ function Ao({
4755
4757
  ] }) });
4756
4758
  }
4757
4759
  export {
4758
- Ao as SemaphorDataAppProvider,
4760
+ ko as SemaphorDataAppProvider,
4759
4761
  tn as SemaphorDevtools,
4760
- vo as SemaphorDevtoolsInspectButton,
4761
- bo as SemaphorViewBoundary,
4762
+ wo as SemaphorDevtoolsInspectButton,
4763
+ So as SemaphorViewBoundary,
4762
4764
  _i as createSemaphorQueryExecutor,
4763
- mo as defineSemaphorDataApp,
4764
- yo as defineSemaphorInput,
4765
+ ho as defineSemaphorDataApp,
4766
+ bo as defineSemaphorInput,
4765
4767
  Ji as isSemaphorInputValueValidForOptions,
4766
- ho as semaphor,
4767
- Co as semaphorMetricAggregate,
4768
- Eo as semaphorMetricMeasureBindingKey,
4769
- Io as useClearInvalidSemaphorInputValue,
4768
+ vo as semaphor,
4769
+ Ro as semaphorMetricAggregate,
4770
+ Lo as semaphorMetricMeasureBindingKey,
4771
+ qo as useClearInvalidSemaphorInputValue,
4770
4772
  Dr as useSemaphorDevtools,
4771
- So as useSemaphorInput,
4772
- wo as useSemaphorInputs,
4773
- xo as useSemaphorQuery,
4774
- qo as useSemaphorSelection
4773
+ Io as useSemaphorInput,
4774
+ xo as useSemaphorInputs,
4775
+ Ao as useSemaphorQuery,
4776
+ To as useSemaphorSelection
4775
4777
  };
@@ -1,6 +1,7 @@
1
1
  import { n as y } from "../chunks/operators-B3zZoskU.js";
2
- import { m as v, s as m, p as I, a as S } from "../chunks/validators-DMSH81OM.js";
3
- import { a as F, c as b } from "../chunks/matrix-operation-contract-BKupLHXL.js";
2
+ import { m as v, s as m, p as I, a as S } from "../chunks/validators-Ej1DdCXa.js";
3
+ import { a as F, c as b } from "../chunks/matrix-operation-contract-B8PBF1Gd.js";
4
+ import "../chunks/analytics-base-schemas-BFAoRlkU.js";
4
5
  import "zod";
5
6
  function w(i) {
6
7
  var n, r, o;
@@ -28,14 +29,14 @@ function w(i) {
28
29
  ...(o = i.derivedFields) != null && o.length ? { derivedFields: i.derivedFields } : {}
29
30
  };
30
31
  }
31
- function G(i) {
32
+ function j(i) {
32
33
  return {
33
34
  ...w(i),
34
35
  ...i.timeWindow ? { timeWindow: i.timeWindow } : {},
35
36
  ...i.analysis ? { analysis: i.analysis } : {}
36
37
  };
37
38
  }
38
- function j(i) {
39
+ function K(i) {
39
40
  return {
40
41
  ...i.chartTitle ? { chartTitle: i.chartTitle } : {},
41
42
  ...i.chartType ? { chartType: i.chartType } : {},
@@ -99,7 +100,7 @@ function f(i, t) {
99
100
  aggregate: i.aggregate || t.aggregate
100
101
  };
101
102
  }
102
- function K(i) {
103
+ function V(i) {
103
104
  var n, r;
104
105
  if ("sort" in i)
105
106
  throw new Error(
@@ -148,7 +149,7 @@ function O(i) {
148
149
  return n;
149
150
  });
150
151
  }
151
- function V(i) {
152
+ function Q(i) {
152
153
  var n, r, o;
153
154
  const t = s(i);
154
155
  if (t.kind === "sql")
@@ -178,7 +179,7 @@ function V(i) {
178
179
  ...(o = i.derivedFields) != null && o.length ? { derivedFields: i.derivedFields } : {}
179
180
  };
180
181
  }
181
- function Q(i) {
182
+ function D(i) {
182
183
  var t;
183
184
  return {
184
185
  version: 1,
@@ -196,7 +197,7 @@ function Q(i) {
196
197
  rationale: i.rationale
197
198
  };
198
199
  }
199
- function D(i) {
200
+ function J(i) {
200
201
  const { id: t, label: n, inputs: r, matrixWindowRequest: o, ...e } = i, { queryKind: T, ...p } = e;
201
202
  return v.parse({ ...p, kind: "matrix" });
202
203
  }
@@ -236,17 +237,17 @@ function h(i) {
236
237
  function z(i) {
237
238
  return i === "grain" || i === "measure" || i === "dimension" || i === "aggregation" || i === "sqlParam";
238
239
  }
239
- function J(i) {
240
+ function L(i) {
240
241
  const t = d(i);
241
242
  return t.length > 0 ? t : void 0;
242
243
  }
243
244
  function C(i) {
244
245
  return (i || []).map(P);
245
246
  }
246
- function L(i) {
247
+ function N(i) {
247
248
  return C(i).filter((t) => t.isActive);
248
249
  }
249
- function N(i) {
250
+ function U(i) {
250
251
  const t = (i || []).flatMap((n) => {
251
252
  const r = "toAnalyticsSelection" in n ? n.toAnalyticsSelection() : n;
252
253
  return r ? [F.parse(r)] : [];
@@ -272,7 +273,7 @@ function g(i) {
272
273
  controlRole: i.role
273
274
  };
274
275
  }
275
- function U(i = []) {
276
+ function X(i = []) {
276
277
  return i.map(
277
278
  (t) => typeof t == "object" ? t : {
278
279
  label: String(t),
@@ -343,18 +344,18 @@ function c(i, t) {
343
344
  }
344
345
  export {
345
346
  u as hasSemaphorInputValue,
346
- U as normalizeSemaphorInputOptions,
347
- L as toSemaphorActiveInputSnapshots,
348
- G as toSemaphorAnalysisIntent,
349
- j as toSemaphorAnalysisQueryOptions,
347
+ X as normalizeSemaphorInputOptions,
348
+ N as toSemaphorActiveInputSnapshots,
349
+ j as toSemaphorAnalysisIntent,
350
+ K as toSemaphorAnalysisQueryOptions,
350
351
  h as toSemaphorInputBinding,
351
- J as toSemaphorInputBindings,
352
- V as toSemaphorInputOptionsIntent,
352
+ L as toSemaphorInputBindings,
353
+ Q as toSemaphorInputOptionsIntent,
353
354
  C as toSemaphorInputSnapshots,
354
355
  g as toSemaphorInputSpec,
355
- D as toSemaphorMatrixIntent,
356
+ J as toSemaphorMatrixIntent,
356
357
  w as toSemaphorMetricIntent,
357
- K as toSemaphorRecordsIntent,
358
- N as toSemaphorSelectionSnapshots,
359
- Q as toSemaphorSqlIntent
358
+ V as toSemaphorRecordsIntent,
359
+ U as toSemaphorSelectionSnapshots,
360
+ D as toSemaphorSqlIntent
360
361
  };
@@ -1,10 +1,11 @@
1
- import { F as b, B as N, s as O, G as v, u as E, H as K, I as l } from "../chunks/validators-DMSH81OM.js";
2
- import { m as Q } from "../chunks/matrix-operation-contract-BKupLHXL.js";
1
+ import { B as b, l as N, s as E, E as v, u as O, F as K, G as l } from "../chunks/validators-Ej1DdCXa.js";
2
+ import { m as Q } from "../chunks/matrix-operation-contract-B8PBF1Gd.js";
3
+ import "../chunks/analytics-base-schemas-BFAoRlkU.js";
3
4
  import "zod";
4
- import { p as W } from "../chunks/report-runtime-context-CG_I0PPW.js";
5
- import { r as U } from "../chunks/source-entity-resolution-C-oNyYMp.js";
5
+ import { p as W } from "../chunks/report-runtime-context-B984Nq1E.js";
6
+ import { r as U } from "../chunks/source-entity-resolution-CVA1a85c.js";
6
7
  import { toSemaphorMetricIntent as G, toSemaphorAnalysisIntent as J, toSemaphorRecordsIntent as V, toSemaphorSqlIntent as L, toSemaphorMatrixIntent as X, toSemaphorInputOptionsIntent as Y } from "../data-app-sdk-adapters/index.js";
7
- import { m as Z } from "../chunks/matrix-card-CAdizkUl.js";
8
+ import { m as Z } from "../chunks/matrix-card-CJn1hB5V.js";
8
9
  function ee({
9
10
  intent: e,
10
11
  field: r,
@@ -21,16 +22,16 @@ function ee({
21
22
  const n = q(
22
23
  r,
23
24
  i.selectedField
24
- ), s = H(t), c = y(n);
25
+ ), s = P(t), c = y(n);
25
26
  return re(
26
27
  s,
27
28
  i.allowedRelatedRoles
28
29
  ) ? c === s : !1;
29
30
  }
30
- function ze(e) {
31
+ function Ne(e) {
31
32
  return e.kind === "records" ? ae(e) : e.kind === "metric" ? ne(e) : [];
32
33
  }
33
- function H(e) {
34
+ function P(e) {
34
35
  const r = b(e.role);
35
36
  if (r === "measure")
36
37
  return "measure";
@@ -106,7 +107,7 @@ function ie(e, r, t) {
106
107
  function ae(e) {
107
108
  var o, i;
108
109
  const r = w(e), t = (o = e.orderBy) != null && o.field ? I(r, e.orderBy.field) : void 0;
109
- return P([
110
+ return H([
110
111
  ...r.map(
111
112
  (n) => p(
112
113
  n,
@@ -134,7 +135,7 @@ function ne(e) {
134
135
  e.dimensions || [],
135
136
  e.orderBy.field
136
137
  ) : void 0;
137
- return P([
138
+ return H([
138
139
  ...e.measures.map((i) => p(i, [])),
139
140
  ...e.primaryMeasure ? [p(e.primaryMeasure, [])] : [],
140
141
  ...(e.dimensions || []).map(
@@ -167,7 +168,7 @@ function p(e, r, t = {}) {
167
168
  ...t
168
169
  };
169
170
  }
170
- function P(e) {
171
+ function H(e) {
171
172
  const r = [];
172
173
  return e.forEach((t) => {
173
174
  r.some(
@@ -185,7 +186,7 @@ function se(e, r) {
185
186
  return T(e.field, r.field) && e.allowedRelatedRoles.join("|") === r.allowedRelatedRoles.join("|") && (e.unsupportedRelatedRoleMessage || "") === (r.unsupportedRelatedRoleMessage || "") && (e.recommendedNextStep || "") === (r.recommendedNextStep || "");
186
187
  }
187
188
  function A(e, r) {
188
- return O(e, r);
189
+ return E(e, r);
189
190
  }
190
191
  function T(e, r) {
191
192
  return A(e, r) && de(
@@ -197,7 +198,7 @@ function de(e, r) {
197
198
  return !!(e && (!r || e === r));
198
199
  }
199
200
  function y(e) {
200
- return H(e);
201
+ return P(e);
201
202
  }
202
203
  function j({
203
204
  intent: e,
@@ -297,7 +298,7 @@ function ue(e, r) {
297
298
  function fe(e) {
298
299
  const r = [];
299
300
  if (!e.intent.filters) return r;
300
- const t = e.intent.source, i = E(
301
+ const t = e.intent.source, i = O(
301
302
  e.fieldCatalogs.flatMap((a) => [
302
303
  a.source,
303
304
  ...a.sourceAliases ?? []
@@ -428,7 +429,7 @@ function me(e, r = {}) {
428
429
  }
429
430
  return { ok: !0, analysisOptions: i };
430
431
  }
431
- function Ne(e) {
432
+ function Ee(e) {
432
433
  const r = e.queries.map(
433
434
  (i, n) => pe(i, n, {
434
435
  fieldCatalogs: e.fieldCatalogs || [],
@@ -449,7 +450,7 @@ function Ne(e) {
449
450
  function pe(e, r, t) {
450
451
  const o = `queries.${r}`;
451
452
  try {
452
- const i = ge(e), n = Pe(e, i), s = K(i), c = [
453
+ const i = ge(e), n = He(e, i), s = K(i), c = [
453
454
  ...Re({
454
455
  querySpec: e,
455
456
  queryId: n,
@@ -489,7 +490,7 @@ function pe(e, r, t) {
489
490
  pathPrefix: o,
490
491
  validateTimezone: t.validateTimezone
491
492
  })
492
- ], a = He(s, c);
493
+ ], a = Pe(s, c);
493
494
  return {
494
495
  queryHook: e.queryHook,
495
496
  queryId: n,
@@ -923,7 +924,7 @@ function _(e, r) {
923
924
  source: r.intent.source
924
925
  };
925
926
  }
926
- function He(e, r) {
927
+ function Pe(e, r) {
927
928
  const t = D(r);
928
929
  return {
929
930
  ok: t.ok && e.ok,
@@ -1010,7 +1011,7 @@ function x(e) {
1010
1011
  }
1011
1012
  };
1012
1013
  }
1013
- function Pe(e, r) {
1014
+ function He(e, r) {
1014
1015
  return l(r) || z(e.spec);
1015
1016
  }
1016
1017
  function z(e) {
@@ -1024,7 +1025,7 @@ export {
1024
1025
  I as findMatchingRelatedProjectionField,
1025
1026
  re as isAllowedRelatedProjectionRole,
1026
1027
  me as normalizeSemaphorAnalysisQueryOptions,
1027
- H as normalizeSemaphorFieldRole,
1028
- ze as relatedProjectionFieldCandidatesForIntent,
1029
- Ne as validateSemaphorDataAppQuerySpecs
1028
+ P as normalizeSemaphorFieldRole,
1029
+ Ne as relatedProjectionFieldCandidatesForIntent,
1030
+ Ee as validateSemaphorDataAppQuerySpecs
1030
1031
  };