react-semaphor 0.1.526 → 0.1.528

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 (180) hide show
  1. package/DATA_APP_SDK.md +5 -1
  2. package/dist/analytics-protocol/index.js +1190 -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-DUu-tCQw.js} +66 -65
  6. package/dist/chunks/{card-config-utils-9sv4e-Vb.js → card-config-utils-BdPceiw8.js} +68 -65
  7. package/dist/chunks/{constants-DeLIHVAW.js → constants-DNWVy8Y3.js} +4 -4
  8. package/dist/chunks/dashboard-BkskKMck.js +14 -0
  9. package/dist/chunks/{dashboard-briefing-launcher-DXz1GhFZ.js → dashboard-briefing-launcher-Bb0RhGRC.js} +372 -359
  10. package/dist/chunks/{dashboard-controls-Df8qOSrs.js → dashboard-controls-loWTHPMi.js} +739 -686
  11. package/dist/chunks/{dashboard-json-Xldp0qww.js → dashboard-json-DUci_SOR.js} +10 -10
  12. package/dist/chunks/{edit-dashboard-visual-COHBqyic.js → edit-dashboard-visual-z9WN26w7.js} +6603 -6572
  13. package/dist/chunks/{editor-action-buttons-DahlP57T.js → editor-action-buttons-CGSFK9S-.js} +266 -267
  14. package/dist/chunks/{field-aggregations-BQjogiI1.js → field-aggregations-CdXSo1pb.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-CTYnXU85.js} +781 -780
  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-DhykwdZs.js} +7 -6
  19. package/dist/chunks/{matrix-control-sources-2VAzGlt8.js → matrix-control-sources-BV9ywFtJ.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-1Mm8x8w7.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-Dp7kFpVk.js +1383 -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-CZa3556D.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-Bqdtknud.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-VV0-Ro6F.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-IZjBSU6Z.js} +47 -26
  35. package/dist/chunks/semantic-format-BBLvfwua.js +192 -0
  36. package/dist/chunks/{semaphor-ready-indicator-BLRDuLr4.js → semaphor-ready-indicator-DbA4mVQL.js} +49909 -46207
  37. package/dist/chunks/{slider-BYIH4icg.js → slider-DpiJG8lv.js} +81 -82
  38. package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js} +25 -25
  39. package/dist/chunks/switch-C4YH-W1X.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/semantic-types.d.ts +4 -2
  101. package/dist/types/lib/types/token-types.d.ts +0 -1
  102. package/dist/types/lib/utils/aggregate-expression-utils.d.ts +0 -4
  103. package/dist/types/lib/utils/card-definition.d.ts +1 -1
  104. package/dist/types/lib/utils/date-timezone-utils.d.ts +4 -46
  105. package/dist/types/lib/utils/filter-default-value-utils.d.ts +8 -2
  106. package/dist/types/lib/utils/inline-filter-utils.d.ts +3 -2
  107. package/dist/types/lib/utils/relative-date-description.d.ts +38 -0
  108. package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +89 -0
  109. package/dist/types/shared/analytics-protocol/analytics-refusal.d.ts +32 -0
  110. package/dist/types/shared/analytics-protocol/contracts.d.ts +48 -7
  111. package/dist/types/shared/analytics-protocol/index.d.ts +15 -1
  112. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +20 -20
  113. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
  114. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
  115. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +61 -6
  116. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +63 -0
  117. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +9 -3
  118. package/dist/types/shared/analytics-protocol/operation-temporal-state.d.ts +64 -0
  119. package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +61 -0
  120. package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +20 -0
  121. package/dist/types/shared/analytics-protocol/runtime-schemas.d.ts +0 -2
  122. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +314 -0
  123. package/dist/types/shared/analytics-protocol/time-window.d.ts +13 -0
  124. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
  125. package/dist/types/shared/format-utils/exporters/csv-utils.d.ts +46 -15
  126. package/dist/types/shared/format-utils/exporters/index.d.ts +2 -3
  127. package/dist/types/shared/format-utils/flat-table-export-totals.d.ts +2 -1
  128. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +2 -2
  129. package/dist/types/shared/format-utils/types/format-types.d.ts +0 -42
  130. package/dist/types/shared/temporal/calendar-periods.d.ts +56 -0
  131. package/dist/types/shared/temporal/index.d.ts +5 -0
  132. package/dist/types/shared/temporal/relative-date.d.ts +21 -0
  133. package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +73 -0
  134. package/dist/types/shared/temporal/time-window-periods.d.ts +21 -0
  135. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +23 -0
  136. package/package.json +1 -17
  137. package/src/data-app-sdk/README.md +6 -3
  138. package/dist/chunks/code-highlight-994tgM9v.js +0 -22265
  139. package/dist/chunks/dashboard-CsHvEtjN.js +0 -15
  140. package/dist/chunks/dashboard-date-comparison-definition-BqNhECUr.js +0 -183
  141. package/dist/chunks/matrix-formatter-WBgtebUT.js +0 -341
  142. package/dist/chunks/matrix-operation-contract-D32U2CSw.js +0 -1802
  143. package/dist/chunks/mouse-pointer-2-BZvGk45-.js +0 -19
  144. package/dist/chunks/pivot-header-presentation-CGtudHo7.js +0 -661
  145. package/dist/chunks/pre-block-Cq1RqhZX.js +0 -3987
  146. package/dist/chunks/search-CJz-QQ0Q.js +0 -24
  147. package/dist/chunks/switch-XaAACBrJ.js +0 -2234
  148. package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +0 -222
  149. package/dist/chunks/update-policy-DhAUtiC8.js +0 -913
  150. package/dist/data-app-builder/index.js +0 -3666
  151. package/dist/data-app-builder-browser-runtime/index.js +0 -8
  152. package/dist/data-app-codegen/index.js +0 -22
  153. package/dist/data-app-codegen-node/index.js +0 -1807
  154. package/dist/types/components/data-app-runtime/published-data-app-runtime.d.ts +0 -7
  155. package/dist/types/components/surfboard/json-to-csv.d.ts +0 -7
  156. package/dist/types/components/visual/data-table/utils/export-utils.d.ts +0 -31
  157. package/dist/types/data-app-builder/browser-runtime.d.ts +0 -174
  158. package/dist/types/data-app-builder/constants.d.ts +0 -14
  159. package/dist/types/data-app-builder/data-app-builder.d.ts +0 -14
  160. package/dist/types/data-app-builder/index.d.ts +0 -1
  161. package/dist/types/data-app-builder/lib/api.d.ts +0 -36
  162. package/dist/types/data-app-builder/lib/context-select.d.ts +0 -3
  163. package/dist/types/data-app-builder/lib/diagnostics.d.ts +0 -12
  164. package/dist/types/data-app-builder/lib/file-tree.d.ts +0 -2
  165. package/dist/types/data-app-builder/types.d.ts +0 -558
  166. package/dist/types/data-app-builder-browser-runtime.d.ts +0 -2
  167. package/dist/types/data-app-builder.d.ts +0 -2
  168. package/dist/types/data-app-codegen/generate-contract.d.ts +0 -26
  169. package/dist/types/data-app-codegen/generated-contract-files.d.ts +0 -7
  170. package/dist/types/data-app-codegen/generated-contract-validation.d.ts +0 -13
  171. package/dist/types/data-app-codegen/index.d.ts +0 -6
  172. package/dist/types/data-app-codegen/live-execution.d.ts +0 -42
  173. package/dist/types/data-app-codegen/node.d.ts +0 -2
  174. package/dist/types/data-app-codegen/update-policy.d.ts +0 -25
  175. package/dist/types/data-app-codegen/validation.d.ts +0 -8
  176. package/dist/types/data-app-codegen-node.d.ts +0 -2
  177. package/dist/types/data-app-codegen.d.ts +0 -2
  178. package/dist/types/shared/analytics-protocol/data-app-codegen-summary.d.ts +0 -418
  179. package/dist/types/shared/format-utils/exporters/pivot-exporter.d.ts +0 -13
  180. package/dist/types/shared/format-utils/exporters/table-exporter.d.ts +0 -10
@@ -1,18 +1,19 @@
1
- import { az as U, a5 as G, al as L, a$ as T, t as j } from "./validators-CsdOtZI6.js";
2
- import { a4 as N } from "./matrix-operation-contract-D32U2CSw.js";
1
+ import { v as U, am as G, F as L, G as S, t as j } from "./validators-CQcG0EPN.js";
2
+ import { ak as N } from "./matrix-operation-contract-Dp7kFpVk.js";
3
+ import "zod";
3
4
  import "./matrix-continuation-C4sRcjZU.js";
4
5
  import "../value-format-preferences/index.js";
5
- import { v as A } from "./temporal-bucket-PcLFSYWX.js";
6
- import { A as b, f as E } from "./field-aggregations-BQjogiI1.js";
6
+ import { v as A } from "./temporal-bucket-DlFuhCnT.js";
7
+ import { A as b, f as T } from "./field-aggregations-CdXSo1pb.js";
7
8
  import { S as W, a as k } from "./color-CJvdlFM_.js";
8
- import { b as V, g as Q, a as $ } from "./matrix-definition-E5gXXSTZ.js";
9
- import { i as z } from "./matrix-card-CIlz0Dnp.js";
9
+ import { b as V, g as Q, a as H } from "./matrix-definition-Cdn3LoxW.js";
10
+ import { i as K } from "./matrix-card-DhykwdZs.js";
10
11
  let v;
11
- const H = new Uint8Array(16);
12
- function K() {
12
+ const $ = new Uint8Array(16);
13
+ function z() {
13
14
  if (!v && (v = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !v))
14
15
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
15
- return v(H);
16
+ return v($);
16
17
  }
17
18
  const g = [];
18
19
  for (let e = 0; e < 256; ++e)
@@ -27,7 +28,7 @@ function Te(e, t, a) {
27
28
  if (M.randomUUID && !e)
28
29
  return M.randomUUID();
29
30
  e = e || {};
30
- const r = e.random || (e.rng || K)();
31
+ const r = e.random || (e.rng || z)();
31
32
  return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, J(r);
32
33
  }
33
34
  function Ee(e) {
@@ -112,7 +113,7 @@ function te(e) {
112
113
  if (!(e.granularity !== void 0 && e.granularity !== null))
113
114
  return L(e.dataType) === "date" ? { granularity: "day", assumedDay: !0 } : void 0;
114
115
  }
115
- function Se(e) {
116
+ function ke(e) {
116
117
  const t = te(e);
117
118
  if (!t)
118
119
  return {
@@ -150,11 +151,11 @@ function Se(e) {
150
151
  } : {}
151
152
  };
152
153
  }
153
- var ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
154
+ var Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
154
155
  function re(e) {
155
156
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
156
157
  }
157
- function Me(e) {
158
+ function Be(e) {
158
159
  if (e.__esModule) return e;
159
160
  var t = e.default;
160
161
  if (typeof t == "function") {
@@ -173,12 +174,12 @@ function Me(e) {
173
174
  });
174
175
  }), a;
175
176
  }
176
- var R = {}, P = {}, S = { exports: {} }, s = String, x = function() {
177
+ var R = {}, P = {}, E = { exports: {} }, s = String, x = function() {
177
178
  return { isColorSupported: !1, reset: s, bold: s, dim: s, italic: s, underline: s, inverse: s, hidden: s, strikethrough: s, black: s, red: s, green: s, yellow: s, blue: s, magenta: s, cyan: s, white: s, gray: s, bgBlack: s, bgRed: s, bgGreen: s, bgYellow: s, bgBlue: s, bgMagenta: s, bgCyan: s, bgWhite: s, blackBright: s, redBright: s, greenBright: s, yellowBright: s, blueBright: s, magentaBright: s, cyanBright: s, whiteBright: s, bgBlackBright: s, bgRedBright: s, bgGreenBright: s, bgYellowBright: s, bgBlueBright: s, bgMagentaBright: s, bgCyanBright: s, bgWhiteBright: s };
178
179
  };
179
- S.exports = x();
180
- S.exports.createColors = x;
181
- var ae = S.exports;
180
+ E.exports = x();
181
+ E.exports.createColors = x;
182
+ var ae = E.exports;
182
183
  (function(e) {
183
184
  Object.defineProperty(e, "__esModule", {
184
185
  value: !0
@@ -598,11 +599,11 @@ function se(e) {
598
599
  const t = e.dataset.semaphorTheme;
599
600
  return t === "dark" || t === "light" ? t : e.classList.contains("dark") ? "dark" : "light";
600
601
  }
601
- const Be = !1, Ye = [
602
+ const Ye = !1, Re = [
602
603
  "table",
603
604
  "view",
604
605
  "materialized view"
605
- ], Re = ["_forecast"], Pe = "dm", xe = "semaphor_calculated_fields", De = "calculated_fields", Ie = ["lg", "md", "sm", "xs", "xxs"], Oe = {
606
+ ], Pe = ["_forecast"], xe = "dm", De = "semaphor_calculated_fields", Ie = "calculated_fields", Oe = ["lg", "md", "sm", "xs", "xxs"], qe = {
606
607
  // dashboardHeader: ' font-mono border-b-2 border-red-700',
607
608
  default: {
608
609
  dashboardPanel: "",
@@ -893,11 +894,11 @@ const de = {
893
894
  function I(e, t) {
894
895
  var n, i;
895
896
  if ((n = e.config) != null && n.matrix) return e.config.matrix;
896
- const a = ((i = e.dataSource) == null ? void 0 : i.selectedEntities) ?? [], r = t ?? (a.length === 1 ? E(a[0], e.dataSource) : void 0);
897
+ const a = ((i = e.dataSource) == null ? void 0 : i.selectedEntities) ?? [], r = t ?? (a.length === 1 ? T(a[0], e.dataSource) : void 0);
897
898
  if (!r) throw new Error("Select a base dataset before configuring Matrix fields or filters.");
898
899
  return V({ source: r, rows: [], columns: [], measures: [], sorts: [], rankings: [] });
899
900
  }
900
- function qe(e) {
901
+ function Ue(e) {
901
902
  const { spec: t, window: a, queryContext: r, reportContext: n } = e;
902
903
  if (!e.cardId) throw new Error("Matrix query requires its card identity.");
903
904
  return {
@@ -911,12 +912,14 @@ function qe(e) {
911
912
  controlDefinitions: r.controlDefinitions,
912
913
  cardControlDefinitions: r.cardControlDefinitions,
913
914
  controlBindings: r.controlBindings,
914
- controlValues: r.controlValues
915
+ controlValues: r.controlValues,
916
+ // Every request after the acquisition's first carries its state (K14).
917
+ ...e.temporalState ? { temporalState: e.temporalState } : {}
915
918
  };
916
919
  }
917
920
  function le(e) {
918
921
  return (t, a) => {
919
- const r = e.filter((n) => n.field.name === t.name && !!n.field.source && T(n.field.source, t.source ?? a));
922
+ const r = e.filter((n) => n.field.name === t.name && !!n.field.source && S(n.field.source, t.source ?? a));
920
923
  return r.length === 1 ? r[0] : void 0;
921
924
  };
922
925
  }
@@ -927,13 +930,13 @@ function O(e) {
927
930
  return (n = t(a, r)) == null ? void 0 : n.resolvedField;
928
931
  };
929
932
  }
930
- function Ue(e) {
933
+ function Ge(e) {
931
934
  const t = O(e);
932
935
  return (a, r) => a.derivedField ? void 0 : t(a, r);
933
936
  }
934
937
  function ce(e, t, a) {
935
938
  if (e.derivedField) return e.derivedField.dataType;
936
- const r = a.filter((i) => !i.derivedField && i.name === e.name && T(i.source ?? t, e.source ?? t));
939
+ const r = a.filter((i) => !i.derivedField && i.name === e.name && S(i.source ?? t, e.source ?? t));
937
940
  return r.length ? new Set(r.map((i) => i.dataType)).size === 1 ? r[0].dataType ?? e.dataType : void 0 : e.dataType;
938
941
  }
939
942
  function F(e, t, a) {
@@ -975,14 +978,14 @@ function F(e, t, a) {
975
978
  derivedField: o.definition
976
979
  },
977
980
  o.id,
978
- $(o, r.presentation)
981
+ H(o, r.presentation)
979
982
  ),
980
983
  role: "metric",
981
984
  ...o.kind === "aggregate" ? { aggregate: o.aggregate } : {}
982
985
  }));
983
986
  }
984
987
  function ue(e) {
985
- return z(e, { authoringDraft: !0 });
988
+ return K(e, { authoringDraft: !0 });
986
989
  }
987
990
  function pe(e) {
988
991
  return e.type !== "matrixTable";
@@ -1037,27 +1040,27 @@ function _(e, t = []) {
1037
1040
  function ge(e) {
1038
1041
  return e ? Object.values(q({ config: e })).some((t) => t.length > 0) : !1;
1039
1042
  }
1040
- function Ge(e) {
1043
+ function Le(e) {
1041
1044
  return _({ type: e }).supportsSql;
1042
1045
  }
1043
- function Le(e, t) {
1046
+ function je(e, t) {
1044
1047
  return e.type !== t && (e.type === "matrixTable" || t === "matrixTable") ? { config: {}, controlBindings: [], sql: "", python: "" } : {};
1045
1048
  }
1046
- function je(e, t) {
1049
+ function Ne(e, t) {
1047
1050
  var n, i;
1048
1051
  const a = e.type === "matrixTable" ? (i = (n = e.config) == null ? void 0 : n.matrix) == null ? void 0 : i.spec.source : void 0;
1049
1052
  return !a || (t.selectedEntities ?? []).some((f) => {
1050
- const d = E(f, t);
1051
- return d && T(a, d);
1053
+ const d = T(f, t);
1054
+ return d && S(a, d);
1052
1055
  }) ? { dataSource: t } : { dataSource: t, config: {}, controlBindings: [] };
1053
1056
  }
1054
- function Ne(e) {
1057
+ function We(e) {
1055
1058
  return _(e).joinPlan;
1056
1059
  }
1057
- function We(e, t) {
1060
+ function Ve(e, t) {
1058
1061
  var i;
1059
1062
  if (e.type !== "matrixTable") return { ...e.config, joinPlan: t };
1060
- const a = (i = e.config) == null ? void 0 : i.matrix, r = t ? E(t.baseEntity, e.dataSource) : a == null ? void 0 : a.spec.source;
1063
+ const a = (i = e.config) == null ? void 0 : i.matrix, r = t ? T(t.baseEntity, e.dataSource) : a == null ? void 0 : a.spec.source;
1061
1064
  if (!r) {
1062
1065
  if (!t) return e.config ?? {};
1063
1066
  throw new Error("Matrix joins require a configured base source.");
@@ -1065,10 +1068,10 @@ function We(e, t) {
1065
1068
  const n = I(e, r);
1066
1069
  return { matrix: { ...n, spec: { ...n.spec, source: r, joinPlan: t } } };
1067
1070
  }
1068
- function Ve(e) {
1071
+ function Qe(e) {
1069
1072
  return e ? _(e).filters : void 0;
1070
1073
  }
1071
- function Qe(e, t) {
1074
+ function He(e, t) {
1072
1075
  var r;
1073
1076
  if (e.type !== "matrixTable") return { ...e.config, filters: t };
1074
1077
  if (!t && !((r = e.config) != null && r.matrix)) return e.config ?? {};
@@ -1078,7 +1081,7 @@ function Qe(e, t) {
1078
1081
  function me(e, t) {
1079
1082
  return e ? t ? _({ type: t, config: e }).configured : ge(e) : !1;
1080
1083
  }
1081
- function $e(e, t) {
1084
+ function Ke(e, t) {
1082
1085
  var f, d, o;
1083
1086
  if (t != null && t.skipSetupCheck || e.type === "text")
1084
1087
  return !1;
@@ -1090,42 +1093,42 @@ function $e(e, t) {
1090
1093
  return !r || !i && !n;
1091
1094
  }
1092
1095
  export {
1093
- Me as A,
1094
- Ie as B,
1095
- De as C,
1096
- Pe as D,
1097
- Ue as E,
1096
+ Be as A,
1097
+ Oe as B,
1098
+ Ie as C,
1099
+ xe as D,
1100
+ Ge as E,
1098
1101
  O as F,
1099
1102
  Y as G,
1100
1103
  q as H,
1101
1104
  I,
1102
- xe as J,
1105
+ De as J,
1103
1106
  F as K,
1104
- Re as M,
1107
+ Pe as M,
1105
1108
  Ee as a,
1106
- $e as b,
1107
- ke as c,
1108
- qe as d,
1109
- l as e,
1110
- ue as f,
1111
- Ne as g,
1109
+ Ke as b,
1110
+ l as c,
1111
+ ue as d,
1112
+ Ye as e,
1113
+ fe as f,
1114
+ We as g,
1112
1115
  me as h,
1113
1116
  pe as i,
1114
- Be as j,
1115
- fe as k,
1116
- w as l,
1117
+ w as j,
1118
+ Qe as k,
1119
+ re as l,
1117
1120
  ce as m,
1118
- Ve as n,
1119
- re as o,
1120
- _ as p,
1121
- Ye as q,
1122
- Se as r,
1123
- Ge as s,
1124
- Qe as t,
1125
- je as u,
1121
+ _ as n,
1122
+ Re as o,
1123
+ He as p,
1124
+ Ne as q,
1125
+ ke as r,
1126
+ Le as s,
1127
+ je as t,
1128
+ qe as u,
1126
1129
  Te as v,
1127
- We as w,
1128
- Le as x,
1129
- Oe as y,
1130
+ Ve as w,
1131
+ Me as x,
1132
+ Ue as y,
1130
1133
  le as z
1131
1134
  };
@@ -1,9 +1,9 @@
1
1
  const s = 6048e5, n = 864e5, o = 6e4, c = 36e5, e = 43200, i = 1440;
2
2
  export {
3
3
  o as a,
4
- i as b,
5
- e as c,
6
- n as d,
7
- s as e,
4
+ n as b,
5
+ s as c,
6
+ i as d,
7
+ e,
8
8
  c as m
9
9
  };
@@ -0,0 +1,14 @@
1
+ import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
+ import { E as o, F as d, S as i, B as s, a as c, U as l, D as t, C as h, b as f } from "./semaphor-ready-indicator-DbA4mVQL.js";
3
+ function p(e) {
4
+ if (typeof window > "u")
5
+ return null;
6
+ const { preferences: r } = e;
7
+ return /* @__PURE__ */ a(o, { FallbackComponent: d, children: /* @__PURE__ */ a(i, { dashboardProps: e, children: /* @__PURE__ */ n(s, { children: [
8
+ /* @__PURE__ */ a(c, { componentType: "dashboard", componentId: e.id }),
9
+ /* @__PURE__ */ a(l, { appearance: e.appearance, children: /* @__PURE__ */ a(t, { preferences: r, children: /* @__PURE__ */ a("main", { className: "flex h-full flex-col", children: /* @__PURE__ */ a(h, { ...e, type: "dashboard", children: /* @__PURE__ */ a(f, {}) }) }) }) })
10
+ ] }) }) });
11
+ }
12
+ export {
13
+ p as D
14
+ };