react-semaphor 0.1.526 → 0.1.527

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 (175) hide show
  1. package/DATA_APP_SDK.md +5 -1
  2. package/dist/analytics-protocol/index.js +1179 -296
  3. package/dist/brand-studio/index.js +15 -15
  4. package/dist/briefings/index.js +50 -49
  5. package/dist/chunks/{calculated-field-identity-D1ofR4KJ.js → calculated-field-identity-DEhjPSr-.js} +66 -65
  6. package/dist/chunks/{card-config-utils-9sv4e-Vb.js → card-config-utils-BlIbwkuD.js} +68 -65
  7. package/dist/chunks/{constants-DeLIHVAW.js → constants-DNWVy8Y3.js} +4 -4
  8. package/dist/chunks/dashboard-JNHR0_cZ.js +14 -0
  9. package/dist/chunks/{dashboard-briefing-launcher-DXz1GhFZ.js → dashboard-briefing-launcher-D9pFByPh.js} +372 -359
  10. package/dist/chunks/{dashboard-controls-Df8qOSrs.js → dashboard-controls-CJI5ZWMq.js} +739 -686
  11. package/dist/chunks/{dashboard-json-Xldp0qww.js → dashboard-json-DLdrFry-.js} +10 -10
  12. package/dist/chunks/{edit-dashboard-visual-COHBqyic.js → edit-dashboard-visual-D5LjWle1.js} +6603 -6572
  13. package/dist/chunks/{editor-action-buttons-DahlP57T.js → editor-action-buttons-G91NQKxU.js} +266 -267
  14. package/dist/chunks/{field-aggregations-BQjogiI1.js → field-aggregations-DeVQLIsP.js} +19 -19
  15. package/dist/chunks/{field-dependencies-v-lJNzC7.js → field-dependencies-CGYic38w.js} +1 -1
  16. package/dist/chunks/{index-CbjuruKe.js → index-BvJOYbNv.js} +755 -745
  17. package/dist/chunks/{matrix-analytical-definition-BimC4XIV.js → matrix-analytical-definition-BJyH5-99.js} +1 -1
  18. package/dist/chunks/{matrix-card-CIlz0Dnp.js → matrix-card-DY45yiUM.js} +7 -6
  19. package/dist/chunks/{matrix-control-sources-2VAzGlt8.js → matrix-control-sources-BypfLZsK.js} +11 -11
  20. package/dist/chunks/{matrix-definition-E5gXXSTZ.js → matrix-definition-Cdn3LoxW.js} +3 -3
  21. package/dist/chunks/{semantic-format-Baqp8kD_.js → matrix-formatter-BoKU3MzZ.js} +655 -511
  22. package/dist/chunks/{matrix-member-presentation-Bw7-JCrr.js → matrix-member-presentation-BBW0n1iY.js} +1 -1
  23. package/dist/chunks/matrix-operation-contract-BV02rLhu.js +809 -0
  24. package/dist/chunks/{metric-comparison-BphoJ9bq.js → metric-comparison-Crljx_XY.js} +15 -10
  25. package/dist/chunks/{numeric-presentation-VhMUHfrJ.js → numeric-presentation-LvnNY5Ma.js} +68 -68
  26. package/dist/chunks/pivot-header-presentation-D5v8uyjj.js +618 -0
  27. package/dist/chunks/{pivot-result-identity-BzUQiCEV.js → pivot-result-identity-CY__BuwI.js} +1 -1
  28. package/dist/chunks/{pivot-result-lifecycle-BFO354lk.js → pivot-result-lifecycle-BWrPhlGT.js} +259 -204
  29. package/dist/chunks/{raw-temporal-7bFbXd2a.js → raw-temporal-CdnA_OXJ.js} +10 -10
  30. package/dist/chunks/{raw-temporal-contract-BQZIJ1fn.js → raw-temporal-contract-Bc9z83t-.js} +1 -1
  31. package/dist/chunks/relative-date-DAF9J7mt.js +456 -0
  32. package/dist/chunks/{report-preferences-dialog-BcH-0lR-.js → report-preferences-dialog-D3hxu4sE.js} +131 -132
  33. package/dist/chunks/{report-runtime-context-CxIoGyNM.js → report-runtime-context-CtaGGlit.js} +1 -1
  34. package/dist/chunks/{selection-reducer-NF5C07yM.js → selection-reducer-C7Um5XN-.js} +47 -26
  35. package/dist/chunks/semantic-format-BjBMOSoo.js +192 -0
  36. package/dist/chunks/{semaphor-ready-indicator-BLRDuLr4.js → semaphor-ready-indicator-D46I_4g7.js} +49895 -46141
  37. package/dist/chunks/{slider-BYIH4icg.js → slider-B6LELqx6.js} +81 -82
  38. package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js} +25 -25
  39. package/dist/chunks/switch-_7uBAbYx.js +24003 -0
  40. package/dist/chunks/{temporal-bucket-PcLFSYWX.js → temporal-bucket-DlFuhCnT.js} +6 -6
  41. package/dist/chunks/{temporal-bucket-contract-DTLDRzgV.js → temporal-bucket-contract-C6lUGPS3.js} +1 -1
  42. package/dist/chunks/temporal-input-presentation-DyMWCZYh.js +195 -0
  43. package/dist/chunks/{token-types-BC6RcUY8.js → token-types-UjyNz95-.js} +1 -1
  44. package/dist/chunks/{validators-CsdOtZI6.js → validators-CQcG0EPN.js} +852 -731
  45. package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
  46. package/dist/dashboard/index.js +1 -1
  47. package/dist/dashboard-authoring/index.js +138 -137
  48. package/dist/data-app-sdk/index.js +12 -12
  49. package/dist/data-app-sdk-adapters/index.js +23 -22
  50. package/dist/data-app-sdk-validation/index.js +27 -26
  51. package/dist/format-utils/index.js +247 -329
  52. package/dist/index.js +165 -168
  53. package/dist/report-runtime-context/index.js +2 -2
  54. package/dist/style.css +1 -1
  55. package/dist/surfboard/index.js +1 -1
  56. package/dist/types/briefings/index.d.ts +3 -0
  57. package/dist/types/components/explorer/filters/card-date-filter.d.ts +13 -5
  58. package/dist/types/components/explorer/filters/card-date-selection.d.ts +28 -0
  59. package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +1 -1
  60. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -1
  61. package/dist/types/components/surfboard/download-settings-dialog.d.ts +8 -0
  62. package/dist/types/components/surfboard/filter/types.d.ts +8 -29
  63. package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +5 -1
  64. package/dist/types/components/ui-custom/date-range-picker.d.ts +18 -2
  65. package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -21
  66. package/dist/types/components/ui-custom/report-calendar.d.ts +18 -0
  67. package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +3 -5
  68. package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +1 -1
  69. package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +3 -1
  70. package/dist/types/index.js +5 -5
  71. package/dist/types/lib/api/exports-api.d.ts +3 -0
  72. package/dist/types/lib/csv-download.d.ts +9 -0
  73. package/dist/types/lib/csv-encoding-options.d.ts +6 -0
  74. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +2 -1
  75. package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -1
  76. package/dist/types/lib/document/document-input-runtime.d.ts +2 -1
  77. package/dist/types/lib/export-utils.d.ts +17 -15
  78. package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +2 -2
  79. package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +7 -0
  80. package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +3 -2
  81. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
  82. package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +1 -1
  83. package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +47 -0
  84. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +7 -3
  85. package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +2 -0
  86. package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +4 -1
  87. package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +105 -4
  88. package/dist/types/lib/matrix-table/matrix-runtime.d.ts +43 -2
  89. package/dist/types/lib/matrix-table/use-matrix.d.ts +6 -0
  90. package/dist/types/lib/query-context/build-card-query-context.d.ts +5 -1
  91. package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -1
  92. package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +1 -2
  93. package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +1 -2
  94. package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +10 -0
  95. package/dist/types/lib/query-context/query-auth-scope.d.ts +5 -0
  96. package/dist/types/lib/stores/dashboard-store.d.ts +9 -4
  97. package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +9 -2
  98. package/dist/types/lib/types/common-types.d.ts +5 -0
  99. package/dist/types/lib/types/explorer-types.d.ts +14 -0
  100. package/dist/types/lib/types/token-types.d.ts +0 -1
  101. package/dist/types/lib/utils/card-definition.d.ts +1 -1
  102. package/dist/types/lib/utils/date-timezone-utils.d.ts +4 -46
  103. package/dist/types/lib/utils/filter-default-value-utils.d.ts +8 -2
  104. package/dist/types/lib/utils/inline-filter-utils.d.ts +3 -2
  105. package/dist/types/lib/utils/relative-date-description.d.ts +38 -0
  106. package/dist/types/shared/analytics-protocol/contracts.d.ts +10 -7
  107. package/dist/types/shared/analytics-protocol/index.d.ts +12 -1
  108. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +20 -20
  109. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
  110. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
  111. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +51 -5
  112. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +9 -3
  113. package/dist/types/shared/analytics-protocol/operation-temporal-state.d.ts +64 -0
  114. package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +61 -0
  115. package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +20 -0
  116. package/dist/types/shared/analytics-protocol/runtime-schemas.d.ts +0 -2
  117. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +314 -0
  118. package/dist/types/shared/analytics-protocol/time-window.d.ts +13 -0
  119. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
  120. package/dist/types/shared/format-utils/exporters/csv-utils.d.ts +46 -15
  121. package/dist/types/shared/format-utils/exporters/index.d.ts +2 -3
  122. package/dist/types/shared/format-utils/flat-table-export-totals.d.ts +2 -1
  123. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +2 -2
  124. package/dist/types/shared/format-utils/types/format-types.d.ts +0 -42
  125. package/dist/types/shared/temporal/calendar-periods.d.ts +56 -0
  126. package/dist/types/shared/temporal/index.d.ts +5 -0
  127. package/dist/types/shared/temporal/relative-date.d.ts +21 -0
  128. package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +73 -0
  129. package/dist/types/shared/temporal/time-window-periods.d.ts +21 -0
  130. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +23 -0
  131. package/package.json +1 -17
  132. package/src/data-app-sdk/README.md +6 -3
  133. package/dist/chunks/code-highlight-994tgM9v.js +0 -22265
  134. package/dist/chunks/dashboard-CsHvEtjN.js +0 -15
  135. package/dist/chunks/dashboard-date-comparison-definition-BqNhECUr.js +0 -183
  136. package/dist/chunks/matrix-formatter-WBgtebUT.js +0 -341
  137. package/dist/chunks/matrix-operation-contract-D32U2CSw.js +0 -1802
  138. package/dist/chunks/mouse-pointer-2-BZvGk45-.js +0 -19
  139. package/dist/chunks/pivot-header-presentation-CGtudHo7.js +0 -661
  140. package/dist/chunks/pre-block-Cq1RqhZX.js +0 -3987
  141. package/dist/chunks/search-CJz-QQ0Q.js +0 -24
  142. package/dist/chunks/switch-XaAACBrJ.js +0 -2234
  143. package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +0 -222
  144. package/dist/chunks/update-policy-DhAUtiC8.js +0 -913
  145. package/dist/data-app-builder/index.js +0 -3666
  146. package/dist/data-app-builder-browser-runtime/index.js +0 -8
  147. package/dist/data-app-codegen/index.js +0 -22
  148. package/dist/data-app-codegen-node/index.js +0 -1807
  149. package/dist/types/components/data-app-runtime/published-data-app-runtime.d.ts +0 -7
  150. package/dist/types/components/surfboard/json-to-csv.d.ts +0 -7
  151. package/dist/types/components/visual/data-table/utils/export-utils.d.ts +0 -31
  152. package/dist/types/data-app-builder/browser-runtime.d.ts +0 -174
  153. package/dist/types/data-app-builder/constants.d.ts +0 -14
  154. package/dist/types/data-app-builder/data-app-builder.d.ts +0 -14
  155. package/dist/types/data-app-builder/index.d.ts +0 -1
  156. package/dist/types/data-app-builder/lib/api.d.ts +0 -36
  157. package/dist/types/data-app-builder/lib/context-select.d.ts +0 -3
  158. package/dist/types/data-app-builder/lib/diagnostics.d.ts +0 -12
  159. package/dist/types/data-app-builder/lib/file-tree.d.ts +0 -2
  160. package/dist/types/data-app-builder/types.d.ts +0 -558
  161. package/dist/types/data-app-builder-browser-runtime.d.ts +0 -2
  162. package/dist/types/data-app-builder.d.ts +0 -2
  163. package/dist/types/data-app-codegen/generate-contract.d.ts +0 -26
  164. package/dist/types/data-app-codegen/generated-contract-files.d.ts +0 -7
  165. package/dist/types/data-app-codegen/generated-contract-validation.d.ts +0 -13
  166. package/dist/types/data-app-codegen/index.d.ts +0 -6
  167. package/dist/types/data-app-codegen/live-execution.d.ts +0 -42
  168. package/dist/types/data-app-codegen/node.d.ts +0 -2
  169. package/dist/types/data-app-codegen/update-policy.d.ts +0 -25
  170. package/dist/types/data-app-codegen/validation.d.ts +0 -8
  171. package/dist/types/data-app-codegen-node.d.ts +0 -2
  172. package/dist/types/data-app-codegen.d.ts +0 -2
  173. package/dist/types/shared/analytics-protocol/data-app-codegen-summary.d.ts +0 -418
  174. package/dist/types/shared/format-utils/exporters/pivot-exporter.d.ts +0 -13
  175. package/dist/types/shared/format-utils/exporters/table-exporter.d.ts +0 -10
@@ -1,11 +1,11 @@
1
1
  import { jsxs as d, jsx as r, Fragment as le } from "react/jsx-runtime";
2
2
  import m from "react";
3
- import { c as K, P as ge, a as be, B as C, b as fe, R as me, L as se, C as De, S as he, d as ke, e as xe, f as ye, g as ve } from "../chunks/code-highlight-994tgM9v.js";
4
- import { U as je, C as Ie, S as ue, T as Je, a as Le, b as V, c as $e, d as M, e as _e, f as Ue, g as Ve, h as Me, L as E, i as Q, j as ee, k as re, I as Ce, l as oe, m as ae, n as Ge } from "../chunks/switch-XaAACBrJ.js";
3
+ import { c as K, P as ge, a as be, B as C, b as fe, U as De, C as je, R as me, L as se, S as ue, d as Ie, T as Je, e as Le, f as V, g as $e, h as M, i as _e, j as Ue, k as Ve, l as Me, m as E, n as Q, o as ee, p as re, I as he, q as oe, r as ae, s as ke, t as xe, v as ye, w as ve, x as Ce, y as Ge } from "../chunks/switch-_7uBAbYx.js";
5
4
  import { A as We, p as He } from "../chunks/color-CJvdlFM_.js";
6
5
  import { c as ne, X as Xe } from "../chunks/x-CXDkqdur.js";
7
- import "../chunks/validators-CsdOtZI6.js";
8
- import "../chunks/matrix-operation-contract-D32U2CSw.js";
6
+ import "../chunks/validators-CQcG0EPN.js";
7
+ import "../chunks/matrix-operation-contract-BV02rLhu.js";
8
+ import "zod";
9
9
  import "../value-format-preferences/index.js";
10
10
  import { r as Ye, v as qe, A as Ze } from "../chunks/index-CLIro-EG.js";
11
11
  import { P as G } from "../chunks/palette-Cp1hqZtm.js";
@@ -665,7 +665,7 @@ function Br({
665
665
  return (o = de.current) == null ? void 0 : o.click();
666
666
  },
667
667
  children: [
668
- /* @__PURE__ */ r(je, { className: "h-3.5 w-3.5" }),
668
+ /* @__PURE__ */ r(De, { className: "h-3.5 w-3.5" }),
669
669
  "Upload"
670
670
  ]
671
671
  }
@@ -674,7 +674,7 @@ function Br({
674
674
  ] })
675
675
  ] }),
676
676
  /* @__PURE__ */ r("div", { className: "h-[320px] overflow-hidden rounded-control border border-input", children: /* @__PURE__ */ r(
677
- Ie,
677
+ je,
678
678
  {
679
679
  ariaLabel: "Brand spec",
680
680
  value: D,
@@ -761,7 +761,7 @@ function Br({
761
761
  /* @__PURE__ */ r(ue, { className: "h-3.5 w-3.5 text-destructive" }),
762
762
  "Preview keeps the last valid draft"
763
763
  ] }) : /* @__PURE__ */ d(le, { children: [
764
- /* @__PURE__ */ r(De, { className: "h-3.5 w-3.5 text-emerald-500" }),
764
+ /* @__PURE__ */ r(Ie, { className: "h-3.5 w-3.5 text-emerald-500" }),
765
765
  "Draft is applied to the live dashboard preview"
766
766
  ] }) }),
767
767
  /* @__PURE__ */ r("div", { className: "inline-flex h-7 items-center overflow-hidden rounded-control border border-border/70", children: ["light", "dark"].map((o) => /* @__PURE__ */ r(
@@ -1227,7 +1227,7 @@ function sr({
1227
1227
  /* @__PURE__ */ r(E, { className: "mb-1 block text-[11px] font-normal text-muted-foreground", children: "Font family" }),
1228
1228
  /* @__PURE__ */ d("div", { className: "grid grid-cols-[minmax(0,1fr)_150px] gap-2", children: [
1229
1229
  /* @__PURE__ */ d(
1230
- he,
1230
+ ke,
1231
1231
  {
1232
1232
  value: t,
1233
1233
  onValueChange: (l) => {
@@ -1237,8 +1237,8 @@ function sr({
1237
1237
  s && n(s.value);
1238
1238
  },
1239
1239
  children: [
1240
- /* @__PURE__ */ r(ke, { size: "xs", "aria-label": "Font family preset", children: /* @__PURE__ */ r(xe, { placeholder: "Select font" }) }),
1241
- /* @__PURE__ */ r(ye, { children: X.map((l) => /* @__PURE__ */ r(ve, { value: l.id, children: l.label }, l.id)) })
1240
+ /* @__PURE__ */ r(xe, { size: "xs", "aria-label": "Font family preset", children: /* @__PURE__ */ r(ye, { placeholder: "Select font" }) }),
1241
+ /* @__PURE__ */ r(ve, { children: X.map((l) => /* @__PURE__ */ r(Ce, { value: l.id, children: l.label }, l.id)) })
1242
1242
  ]
1243
1243
  }
1244
1244
  ),
@@ -1272,7 +1272,7 @@ function y({
1272
1272
  type: "button",
1273
1273
  "aria-label": `${e} details`,
1274
1274
  className: "inline-flex h-3.5 w-3.5 items-center justify-center rounded-control text-muted-foreground/70 transition-colors hover:bg-muted hover:text-foreground",
1275
- children: /* @__PURE__ */ r(Ce, { className: "h-3 w-3" })
1275
+ children: /* @__PURE__ */ r(he, { className: "h-3 w-3" })
1276
1276
  }
1277
1277
  ) }),
1278
1278
  /* @__PURE__ */ r(oe, { side: "top", className: "max-w-64", children: n })
@@ -1412,7 +1412,7 @@ function w({
1412
1412
  type: "button",
1413
1413
  "aria-label": `${e} details`,
1414
1414
  className: "inline-flex h-3.5 w-3.5 items-center justify-center rounded-control text-muted-foreground/70 transition-colors hover:bg-muted hover:text-foreground",
1415
- children: /* @__PURE__ */ r(Ce, { className: "h-3 w-3" })
1415
+ children: /* @__PURE__ */ r(he, { className: "h-3 w-3" })
1416
1416
  }
1417
1417
  ) }),
1418
1418
  /* @__PURE__ */ r(oe, { side: "top", className: "max-w-56", children: n })
@@ -1443,9 +1443,9 @@ function q({
1443
1443
  }) {
1444
1444
  return /* @__PURE__ */ d("div", { children: [
1445
1445
  /* @__PURE__ */ r(E, { className: "mb-1 block text-[11px] font-normal text-muted-foreground", children: e }),
1446
- /* @__PURE__ */ d(he, { value: n, onValueChange: c, children: [
1447
- /* @__PURE__ */ r(ke, { size: "xs", children: /* @__PURE__ */ r(xe, {}) }),
1448
- /* @__PURE__ */ r(ye, { children: t.map(([l, s]) => /* @__PURE__ */ r(ve, { value: l, children: s }, l)) })
1446
+ /* @__PURE__ */ d(ke, { value: n, onValueChange: c, children: [
1447
+ /* @__PURE__ */ r(xe, { size: "xs", children: /* @__PURE__ */ r(ye, {}) }),
1448
+ /* @__PURE__ */ r(ve, { children: t.map(([l, s]) => /* @__PURE__ */ r(Ce, { value: l, children: s }, l)) })
1449
1449
  ] })
1450
1450
  ] });
1451
1451
  }
@@ -1,53 +1,54 @@
1
- import "../chunks/numeric-presentation-VhMUHfrJ.js";
2
- import "../chunks/validators-CsdOtZI6.js";
1
+ import "../chunks/numeric-presentation-LvnNY5Ma.js";
2
+ import "../chunks/validators-CQcG0EPN.js";
3
+ import "../chunks/pivot-result-lifecycle-BWrPhlGT.js";
3
4
  import "../chunks/matrix-continuation-C4sRcjZU.js";
4
- import "../chunks/matrix-operation-contract-D32U2CSw.js";
5
+ import "../chunks/matrix-operation-contract-BV02rLhu.js";
6
+ import "zod";
5
7
  import "../value-format-preferences/index.js";
6
- import "../chunks/pivot-result-lifecycle-BFO354lk.js";
7
- import { ag as f, ak as g, af as l, aj as B, ao as m, ah as u, a7 as d, ai as c, a4 as p, a2 as C, a3 as D, as as E, a1 as I, au as h, B as T, E as F, av as S, a9 as b, a6 as A, D as y, e as _, an as R, am as N, _ as M, C as v, h as x, aD as G, d as L, aC as z, ay as O, az as U, al as V, a8 as q, $ as J, aA as H, aB as P, a5 as X, ap as j, at as k, ar as w, a0 as K, aq as Q, aw as $, ax as W } from "../chunks/index-CbjuruKe.js";
8
+ import { ag as g, ak as l, af as B, aj as m, ao as u, ah as d, a7 as c, ai as p, a4 as C, a2 as D, a3 as E, as as I, a1 as h, au as T, B as F, E as S, av as b, a9 as A, a6 as y, D as _, e as R, an as N, am as M, _ as v, C as x, h as G, aD as L, d as z, aC as O, ay as U, az as V, al as q, a8 as J, $ as H, aA as P, aB as X, a5 as j, ap as k, at as w, ar as K, a0 as Q, aq as $, aw as W, ax as Y } from "../chunks/index-BvJOYbNv.js";
8
9
  export {
9
- f as BRIEFING_ARTIFACT_FORMATS,
10
- g as BRIEFING_CONTENT_LIMITS,
11
- l as BRIEFING_KIND,
12
- B as BRIEFING_TEXT_LIMITS,
13
- m as BriefingContractError,
14
- u as DEFAULT_BRIEFING_ARTIFACT_FORMATS,
15
- d as DEFAULT_BRIEFING_SCHEDULE,
16
- c as MAX_BRIEFING_ATTACHMENTS,
17
- p as briefingScheduleDayOccurs,
18
- C as briefingScheduleMonths,
19
- D as briefingScheduleShortMonths,
20
- E as buildBriefingJobConfig,
21
- I as buildBriefingScheduleExpr,
22
- h as buildCreateBriefingRequest,
23
- T as buildDashboardTemporalSnapshotEntries,
24
- F as buildMatrixDeliveryEnvelope,
25
- S as buildUpdateBriefingRequest,
26
- b as canCreateBriefingForUser,
27
- A as canonicalBriefingMonthDays,
28
- y as captureMatrixExport,
29
- _ as describeBriefingSchedule,
30
- R as formatBriefingComparisonValues,
31
- N as formatBriefingDisplayValue,
32
- M as getBriefingCardAttachmentCapability,
33
- v as getBriefingCardAttachmentFormats,
34
- x as getBriefingCreationIntents,
35
- G as getBriefingDisplayTypeLabel,
36
- L as getBriefingPresentation,
37
- z as getDefaultBriefingCardAttachmentFormat,
38
- O as isBriefingArtifactFormat,
39
- U as isBriefingDeliveryChannel,
40
- V as isBriefingNumericValue,
41
- q as isEmailOnlyBriefingDelivery,
42
- J as isValidBriefingTimezone,
43
- H as matrixDeliveryPayloadSchema,
44
- P as matrixDeliveryQuerySchema,
45
- X as nextBriefingScheduleDates,
46
- j as normalizeBriefingContentDocument,
47
- k as normalizeBriefingDraft,
48
- w as normalizeBriefingJobConfig,
49
- K as parseBriefingScheduleExpr,
50
- Q as validateBriefingContentDocument,
51
- $ as validateBriefingDraft,
52
- W as validateBriefingJobConfig
10
+ g as BRIEFING_ARTIFACT_FORMATS,
11
+ l as BRIEFING_CONTENT_LIMITS,
12
+ B as BRIEFING_KIND,
13
+ m as BRIEFING_TEXT_LIMITS,
14
+ u as BriefingContractError,
15
+ d as DEFAULT_BRIEFING_ARTIFACT_FORMATS,
16
+ c as DEFAULT_BRIEFING_SCHEDULE,
17
+ p as MAX_BRIEFING_ATTACHMENTS,
18
+ C as briefingScheduleDayOccurs,
19
+ D as briefingScheduleMonths,
20
+ E as briefingScheduleShortMonths,
21
+ I as buildBriefingJobConfig,
22
+ h as buildBriefingScheduleExpr,
23
+ T as buildCreateBriefingRequest,
24
+ F as buildDashboardTemporalSnapshotEntries,
25
+ S as buildMatrixDeliveryEnvelope,
26
+ b as buildUpdateBriefingRequest,
27
+ A as canCreateBriefingForUser,
28
+ y as canonicalBriefingMonthDays,
29
+ _ as captureMatrixExport,
30
+ R as describeBriefingSchedule,
31
+ N as formatBriefingComparisonValues,
32
+ M as formatBriefingDisplayValue,
33
+ v as getBriefingCardAttachmentCapability,
34
+ x as getBriefingCardAttachmentFormats,
35
+ G as getBriefingCreationIntents,
36
+ L as getBriefingDisplayTypeLabel,
37
+ z as getBriefingPresentation,
38
+ O as getDefaultBriefingCardAttachmentFormat,
39
+ U as isBriefingArtifactFormat,
40
+ V as isBriefingDeliveryChannel,
41
+ q as isBriefingNumericValue,
42
+ J as isEmailOnlyBriefingDelivery,
43
+ H as isValidBriefingTimezone,
44
+ P as matrixDeliveryPayloadSchema,
45
+ X as matrixDeliveryQuerySchema,
46
+ j as nextBriefingScheduleDates,
47
+ k as normalizeBriefingContentDocument,
48
+ w as normalizeBriefingDraft,
49
+ K as normalizeBriefingJobConfig,
50
+ Q as parseBriefingScheduleExpr,
51
+ $ as validateBriefingContentDocument,
52
+ W as validateBriefingDraft,
53
+ Y as validateBriefingJobConfig
53
54
  };
@@ -1,10 +1,11 @@
1
1
  var de = Object.defineProperty;
2
2
  var ce = (e, t, n) => t in e ? de(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var q = (e, t, n) => ce(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ai as D, al as M, a$ as A, ab as le, A as P, an as ue, x as fe, U as pe, r as H, t as W, bd as me, C as U } from "./validators-CsdOtZI6.js";
5
- import "./matrix-operation-contract-D32U2CSw.js";
6
- import { m as he, h as ge, j as Ie } from "./field-aggregations-BQjogiI1.js";
7
- import { g as G } from "./matrix-analytical-definition-BimC4XIV.js";
4
+ import { E as D, F as M, G as A, aq as le, N as P, az as ue, y as fe, aa as pe, r as H, t as W, bn as me, C as G } from "./validators-CQcG0EPN.js";
5
+ import "./matrix-operation-contract-BV02rLhu.js";
6
+ import "zod";
7
+ import { m as he, h as ge, j as Ie } from "./field-aggregations-DeVQLIsP.js";
8
+ import { g as J } from "./matrix-analytical-definition-BJyH5-99.js";
8
9
  import { s as $ } from "./stable-serialize-CfqXeiBP.js";
9
10
  const ye = (e, t) => {
10
11
  const n = {};
@@ -24,7 +25,7 @@ const ye = (e, t) => {
24
25
  if (!E(o, s))
25
26
  if (Array.isArray(o) && Array.isArray(s))
26
27
  n[i] = s;
27
- else if (J(o) && J(s)) {
28
+ else if (K(o) && K(s)) {
28
29
  const a = ye(o, s);
29
30
  Object.keys(a).length > 0 && (n[i] = a);
30
31
  } else
@@ -40,7 +41,7 @@ const ye = (e, t) => {
40
41
  return n.length !== r.length ? !1 : n.every((i) => E(e[i], t[i]));
41
42
  }
42
43
  return !1;
43
- }, J = (e) => e !== null && typeof e == "object" && !Array.isArray(e), C = (e) => {
44
+ }, K = (e) => e !== null && typeof e == "object" && !Array.isArray(e), C = (e) => {
44
45
  if (e === null || typeof e != "object")
45
46
  return e;
46
47
  if (e instanceof Date)
@@ -86,7 +87,7 @@ function be(e, t) {
86
87
  }))
87
88
  };
88
89
  }
89
- function ot(e, t) {
90
+ function at(e, t) {
90
91
  return {
91
92
  ...e.targets !== void 0 ? { targets: e.targets && re(e.targets, t) } : {},
92
93
  ...e.cardMappings !== void 0 ? {
@@ -97,7 +98,7 @@ function ot(e, t) {
97
98
  } : {}
98
99
  };
99
100
  }
100
- function at(e, t) {
101
+ function st(e, t) {
101
102
  return t ? {
102
103
  ...e,
103
104
  targets: t.targets === void 0 ? e.targets : t.targets ?? j,
@@ -105,18 +106,18 @@ function at(e, t) {
105
106
  } : e;
106
107
  }
107
108
  const O = (e, t) => JSON.stringify(e) === JSON.stringify(t);
108
- function st(e, t) {
109
+ function dt(e, t) {
109
110
  const n = {};
110
111
  return O(e.targets, t.targets) || (n.targets = O(e.targets, j) ? null : e.targets), O(e.cardMappings, t.cardMappings) || (n.cardMappings = e.cardMappings.length ? e.cardMappings : null), Object.keys(n).length ? n : void 0;
111
112
  }
112
- function dt(e, t) {
113
+ function ct(e, t) {
113
114
  return {
114
115
  ...e,
115
116
  targets: (t == null ? void 0 : t.targets) ?? j,
116
117
  cardMappings: (t == null ? void 0 : t.cardMappings) ?? []
117
118
  };
118
119
  }
119
- function ct(e) {
120
+ function lt(e) {
120
121
  const t = Object.values(e.linkedInteractionTargetOverrides ?? {});
121
122
  if (!t.length) return;
122
123
  const n = {};
@@ -144,7 +145,7 @@ function ct(e) {
144
145
  }
145
146
  return Object.keys(n).length ? n : void 0;
146
147
  }
147
- const K = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, Y = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
148
+ const U = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, Y = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
148
149
  function ve(e) {
149
150
  const t = [];
150
151
  let n = 0;
@@ -168,7 +169,7 @@ function ie(e) {
168
169
  return [];
169
170
  const t = /* @__PURE__ */ new Set();
170
171
  let n;
171
- for (K.lastIndex = 0; (n = K.exec(e)) !== null; ) {
172
+ for (U.lastIndex = 0; (n = U.exec(e)) !== null; ) {
172
173
  const o = (r = n[1]) == null ? void 0 : r.trim();
173
174
  o && t.add(o);
174
175
  }
@@ -179,7 +180,7 @@ function ie(e) {
179
180
  }
180
181
  return Array.from(t);
181
182
  }
182
- function lt(e) {
183
+ function ut(e) {
183
184
  const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
184
185
  for (const r of e.controlBindings || [])
185
186
  t.add(r.controlId), r.target === "sql_param" && n.set(r.paramId, r.controlId);
@@ -222,7 +223,7 @@ function oe(e, t) {
222
223
  inputId: ((o = t.inputIds) == null ? void 0 : o[r.inputId]) ?? r.inputId
223
224
  } : r;
224
225
  }
225
- function ut(e, t) {
226
+ function ft(e, t) {
226
227
  var i;
227
228
  const n = {};
228
229
  for (const o of [
@@ -242,7 +243,7 @@ function ut(e, t) {
242
243
  r[o] = oe(s, t);
243
244
  return Object.keys(r).length && (n.inputAliases = r), n;
244
245
  }
245
- function ft(e, t) {
246
+ function pt(e, t) {
246
247
  var i, o, s, a;
247
248
  const n = C(e);
248
249
  n.controlBindings = _e(
@@ -384,7 +385,7 @@ function De({
384
385
  )
385
386
  });
386
387
  }
387
- function pt({
388
+ function mt({
388
389
  filterDefinitions: e,
389
390
  filterValues: t
390
391
  }) {
@@ -408,7 +409,7 @@ function pt({
408
409
  });
409
410
  return r ? i : t;
410
411
  }
411
- function mt(e) {
412
+ function ht(e) {
412
413
  const t = Te({
413
414
  fieldName: e.column,
414
415
  definition: e
@@ -480,7 +481,7 @@ function $e(e, t) {
480
481
  const n = ee(t), r = ee(e.field);
481
482
  return se(t.dataType, e.field.dataType) && [...r].some((i) => n.has(i));
482
483
  }
483
- function ht(e) {
484
+ function gt(e) {
484
485
  const t = e.candidates.filter(
485
486
  (n) => $e(
486
487
  n,
@@ -489,7 +490,7 @@ function ht(e) {
489
490
  );
490
491
  return t.length === 1 ? { status: "matched", target: t[0] } : t.length > 1 ? { status: "ambiguous" } : { status: "notApplicable" };
491
492
  }
492
- function gt(e) {
493
+ function It(e) {
493
494
  const t = [];
494
495
  for (const n of e.acceptedTargets)
495
496
  !se(
@@ -504,7 +505,7 @@ const xe = /\{\{-?\s*filters\s*\|\s*where\s*-?\}\}/i, Ae = /\{\{-?\s*filters\s*\
504
505
  function Se(e) {
505
506
  return e != null && e.trim() ? xe.test(e) || Ae.test(e) : !1;
506
507
  }
507
- function It(e) {
508
+ function yt(e) {
508
509
  return !(e != null && e.trim()) || Se(e) ? null : Ne.test(e) ? {
509
510
  helper: "{{ filters | and }}",
510
511
  description: "For queries with an existing WHERE clause."
@@ -516,7 +517,7 @@ function It(e) {
516
517
  function Oe(e) {
517
518
  return (e.field.sourceField || e.field.name).trim() || void 0;
518
519
  }
519
- function yt(e) {
520
+ function bt(e) {
520
521
  if (e.inventory.kind !== "sql" || e.target.kind !== "field")
521
522
  return { status: "ineligible" };
522
523
  const t = he(
@@ -616,7 +617,7 @@ function Ee(e) {
616
617
  }
617
618
  };
618
619
  }
619
- function bt(e) {
620
+ function vt(e) {
620
621
  const { dependencies: t } = e, n = /* @__PURE__ */ new Set([
621
622
  e.targetInputId,
622
623
  ...t.excludeInputIds || []
@@ -625,7 +626,7 @@ function bt(e) {
625
626
  (r) => !n.has(r)
626
627
  ) : e.peerInputIds.filter((r) => !n.has(r));
627
628
  }
628
- function vt(e, t, n) {
629
+ function kt(e, t, n) {
629
630
  if (t === n) return e;
630
631
  let r = !1;
631
632
  const i = (s) => s != null && s.includes(t) ? (r = !0, Array.from(
@@ -645,7 +646,7 @@ function vt(e, t, n) {
645
646
  });
646
647
  return r ? o : e;
647
648
  }
648
- function kt(e, t) {
649
+ function _t(e, t) {
649
650
  const n = Ce(
650
651
  e.dependencies,
651
652
  t
@@ -795,7 +796,7 @@ function He(e, t, n) {
795
796
  function We(e) {
796
797
  return h(e) && h(e.source) && e.source.kind === "semantic";
797
798
  }
798
- function Ue(e, t, n, r, i, o) {
799
+ function Ge(e, t, n, r, i, o) {
799
800
  var d;
800
801
  if (v(t.bindingId) || i.push({
801
802
  code: "invalid_binding_id",
@@ -866,7 +867,7 @@ function Ue(e, t, n, r, i, o) {
866
867
  bindingId: t.bindingId
867
868
  });
868
869
  }
869
- function Ge(e, t, n, r, i, o) {
870
+ function Je(e, t, n, r, i, o) {
870
871
  if (t === void 0) return;
871
872
  if (!h(t) || t.kind !== "cardMappings" || !Array.isArray(t.cards)) {
872
873
  i.push({
@@ -909,7 +910,7 @@ function Ge(e, t, n, r, i, o) {
909
910
  });
910
911
  return;
911
912
  }
912
- a.kind === "bound" ? Ue(
913
+ a.kind === "bound" ? Ge(
913
914
  e,
914
915
  a,
915
916
  d,
@@ -925,7 +926,7 @@ function Ge(e, t, n, r, i, o) {
925
926
  });
926
927
  });
927
928
  }
928
- function Je({
929
+ function Ke({
929
930
  inputs: e,
930
931
  dashboardFilters: t,
931
932
  cards: n = [],
@@ -1062,7 +1063,7 @@ function Je({
1062
1063
  path: `${f}.scope`,
1063
1064
  message: `${f}.scope must be allSheets or sheets when cardMappings are present.`,
1064
1065
  inputId: u.id
1065
- }), Ge(
1066
+ }), Je(
1066
1067
  u.id,
1067
1068
  u.application,
1068
1069
  `${f}.application`,
@@ -1092,15 +1093,15 @@ function Je({
1092
1093
  });
1093
1094
  }), i.length ? { ok: !1, inputs: a, issues: i } : { ok: !0, inputs: a });
1094
1095
  }
1095
- function _t(e) {
1096
- const t = Je(e);
1096
+ function Ft(e) {
1097
+ const t = Ke(e);
1097
1098
  if (!t.ok) throw new Pe(t.issues);
1098
1099
  return t.inputs;
1099
1100
  }
1100
- function Ft(e = () => globalThis.crypto.randomUUID()) {
1101
+ function Tt(e = () => globalThis.crypto.randomUUID()) {
1101
1102
  return e();
1102
1103
  }
1103
- const Ke = {
1104
+ const Ue = {
1104
1105
  date: /* @__PURE__ */ new Set([
1105
1106
  "between",
1106
1107
  "not between",
@@ -1143,8 +1144,8 @@ function Ye(e) {
1143
1144
  const t = M(e);
1144
1145
  return t === "number" || t === "boolean" ? t : t === "date" || t === "datetime" ? "date" : "string";
1145
1146
  }
1146
- function Tt(e, t) {
1147
- return typeof t != "string" ? !1 : Ke[Ye(e)].has(t);
1147
+ function Dt(e, t) {
1148
+ return typeof t != "string" ? !1 : Ue[Ye(e)].has(t);
1148
1149
  }
1149
1150
  function te(e, t, n = (r) => {
1150
1151
  var i;
@@ -1152,7 +1153,7 @@ function te(e, t, n = (r) => {
1152
1153
  }) {
1153
1154
  return t === "sql_param" || t === "presentation_currency" ? [] : t === "config_metric_selector" || t === "config_aggregation" ? e.measures.flatMap((r) => r.kind === "aggregate" ? [{ id: r.id, kind: "measure", measure: r }] : []) : ["rows", "columns"].flatMap((r) => e[r].filter((i) => t !== "config_grain" || ue(n(i.field))).map((i) => ({ id: i.id, kind: "level", axis: r, level: i })));
1154
1155
  }
1155
- function Dt(e, t, n, r) {
1156
+ function wt(e, t, n, r) {
1156
1157
  const i = [...e.rows, ...e.columns].find((d) => d.id === t);
1157
1158
  if (!i) throw new Error("Matrix level is no longer present.");
1158
1159
  if (r === t) return { kind: "structure", rows: e.rows, columns: e.columns };
@@ -1160,7 +1161,7 @@ function Dt(e, t, n, r) {
1160
1161
  return a.splice(c < 0 ? a.length : c, 0, i), { kind: "structure", rows: o, columns: s };
1161
1162
  }
1162
1163
  function B(e, t) {
1163
- const n = G(e), r = G(t), i = (a, c) => $(n[a][c]) === $(r[a][c]), o = (a) => {
1164
+ const n = J(e), r = J(t), i = (a, c) => $(n[a][c]) === $(r[a][c]), o = (a) => {
1164
1165
  const c = n.rankings.find((p) => p.id === a), d = r.rankings.find((p) => p.id === a);
1165
1166
  return !!c && !!d && $(c) === $(d);
1166
1167
  };
@@ -1205,7 +1206,7 @@ function Ve(e, t, n = !1) {
1205
1206
  ), d;
1206
1207
  }), { spec: (n ? fe : pe).parse(r), notices: i };
1207
1208
  }
1208
- function wt(e, t, n = [], r, i = !1) {
1209
+ function $t(e, t, n = [], r, i = !1) {
1209
1210
  const o = [];
1210
1211
  if (t.kind !== "structure") {
1211
1212
  const l = t.kind === "presentation" ? { ...e, presentation: t.presentation } : t.kind === "defaults" ? { ...e, defaultView: t.defaultView } : t.kind === "sorts" ? { ...e, spec: { ...e.spec, sorts: t.sorts } } : {
@@ -1312,12 +1313,12 @@ function wt(e, t, n = [], r, i = !1) {
1312
1313
  };
1313
1314
  }
1314
1315
  function Qe(e) {
1315
- return !e.entityName || e.entityName === U || e.entityName === "calculated_fields" || e.qualifiedEntityName === U || e.qualifiedEntityName === "calculated_fields" ? "root" : e.qualifiedEntityName || e.entityName;
1316
+ return !e.entityName || e.entityName === G || e.entityName === "calculated_fields" || e.qualifiedEntityName === G || e.qualifiedEntityName === "calculated_fields" ? "root" : e.qualifiedEntityName || e.entityName;
1316
1317
  }
1317
1318
  function Xe(e) {
1318
1319
  return ["domain", e.role || "field", Qe(e), e.name].join("::");
1319
1320
  }
1320
- function $t(e) {
1321
+ function xt(e) {
1321
1322
  var i, o;
1322
1323
  if (e.fieldScope !== "domain") return;
1323
1324
  const t = e.calculatedFieldOrigin;
@@ -1328,46 +1329,46 @@ function $t(e) {
1328
1329
  }
1329
1330
  export {
1330
1331
  Xe as A,
1331
- $t as B,
1332
+ xt as B,
1332
1333
  Re as C,
1333
1334
  Pe as D,
1334
1335
  Me as E,
1335
1336
  Ee as F,
1336
- bt as G,
1337
- vt as H,
1338
- kt as I,
1337
+ vt as G,
1338
+ kt as H,
1339
+ _t as I,
1339
1340
  Ce as J,
1340
1341
  C as K,
1341
1342
  ye as L,
1342
1343
  ke as M,
1343
- mt as N,
1344
- lt as O,
1345
- pt as P,
1344
+ ht as N,
1345
+ ut as O,
1346
+ mt as P,
1346
1347
  ie as Q,
1347
- ht as a,
1348
- gt as b,
1349
- yt as c,
1348
+ gt as a,
1349
+ It as b,
1350
+ bt as c,
1350
1351
  $e as d,
1351
- _t as e,
1352
- Ft as f,
1353
- It as g,
1352
+ Ft as e,
1353
+ Tt as f,
1354
+ yt as g,
1354
1355
  Se as h,
1355
1356
  Ye as i,
1356
- Tt as j,
1357
- ut as k,
1358
- ft as l,
1357
+ Dt as j,
1358
+ ft as k,
1359
+ pt as l,
1359
1360
  De as m,
1360
- Je as n,
1361
- ot as o,
1362
- at as p,
1363
- st as q,
1361
+ Ke as n,
1362
+ at as o,
1363
+ st as p,
1364
+ dt as q,
1364
1365
  be as r,
1365
- dt as s,
1366
- ct as t,
1366
+ ct as s,
1367
+ lt as t,
1367
1368
  te as u,
1368
- Dt as v,
1369
+ wt as v,
1369
1370
  ne as w,
1370
1371
  Ve as x,
1371
- wt as y,
1372
+ $t as y,
1372
1373
  Qe as z
1373
1374
  };