react-semaphor 0.1.569 → 0.1.570

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 (112) hide show
  1. package/dist/appearance/index.js +6 -3
  2. package/dist/appearance-runtime/index.js +1 -1
  3. package/dist/assistant-context/index.js +1 -1
  4. package/dist/brand-studio/index.js +570 -432
  5. package/dist/briefings/index.js +2 -2
  6. package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
  7. package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
  8. package/dist/chunks/assistant-chat-B-Ddyy8b.js +5940 -0
  9. package/dist/chunks/{bookmark-impact-Czg6FGt5.js → bookmark-impact-DCYD-6Fr.js} +1 -1
  10. package/dist/chunks/brand-B4BdpAB_.js +54 -0
  11. package/dist/chunks/{card-filter-builder-BS982X7x.js → card-filter-builder-0VvKmRst.js} +72 -72
  12. package/dist/chunks/{comparison-window-caption-lLTgzOkM.js → comparison-window-caption-PtcDWvkN.js} +2 -2
  13. package/dist/chunks/{dashboard-BiYSbxZv.js → dashboard-DxGIr1vZ.js} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-Bdj7luOr.js → dashboard-briefing-launcher-B-quOOOQ.js} +183 -182
  15. package/dist/chunks/{dashboard-controls-TViDsnb8.js → dashboard-controls-Caodx80b.js} +285 -280
  16. package/dist/chunks/{dashboard-json-Dg9dQd9U.js → dashboard-json-Ct-AGDHF.js} +3 -3
  17. package/dist/chunks/{dates-BsPrWZIP.js → dates-B9mL8BHE.js} +13 -12
  18. package/dist/chunks/edit-Bpdh_P_a.js +226 -0
  19. package/dist/chunks/{edit-dashboard-visual-C6hoIeEJ.js → edit-dashboard-visual-DeDTuYB5.js} +2256 -2268
  20. package/dist/chunks/{filter-reach-copy-hcQ4os0u.js → filter-reach-copy-BSY33ro5.js} +1425 -1282
  21. package/dist/chunks/{filter-value-text-CVxEEDVl.js → filter-value-text-DvvSNlho.js} +1 -1
  22. package/dist/chunks/index-BVKzKl5d.js +90 -0
  23. package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
  24. package/dist/chunks/{index-G4q89J6O.js → index-y3HUzRNk.js} +61 -60
  25. package/dist/chunks/{layout-grid-BIcoFfdS.js → layout-grid-8rR-LPTk.js} +1 -1
  26. package/dist/chunks/{list-filter-C6tYkHyv.js → list-filter-C1-uTgjR.js} +1 -1
  27. package/dist/chunks/paintbrush-aR17Z3C9.js +27 -0
  28. package/dist/chunks/{palette-NjHOE_6B.js → palette-a5FCZKFI.js} +1 -1
  29. package/dist/chunks/{_commonjsHelpers-Bid1ZNYj.js → pickers-DkqmtnTL.js} +179 -166
  30. package/dist/chunks/{pivot-result-contract-expectations-DkmueDTW.js → pivot-result-contract-expectations-C-HnUKYe.js} +1 -1
  31. package/dist/chunks/{report-preferences-dialog-Xc8_GFju.js → report-preferences-dialog-Yvhv3WX2.js} +79 -79
  32. package/dist/chunks/{resolve-dashboard-input-context-KqvcLcTM.js → resolve-dashboard-input-context-Lkbwycwe.js} +5179 -5391
  33. package/dist/chunks/resolver-DG_tfEpt.js +156 -0
  34. package/dist/chunks/{save-C6VmEJTA.js → save-D985VvYp.js} +1 -1
  35. package/dist/chunks/{saved-dashboard-context-BeXXyoD4.js → saved-dashboard-context-DC_TEd6y.js} +3 -3
  36. package/dist/chunks/schema-C9NPiIru.js +2568 -0
  37. package/dist/chunks/{semaphor-ready-indicator-BNkaANsG.js → semaphor-ready-indicator-ByFvqHEO.js} +33935 -34031
  38. package/dist/chunks/{shelf-drop-preview-context-C_issPBA.js → shelf-drop-preview-context-CjoVaK6J.js} +50 -50
  39. package/dist/chunks/{stored-dashboard-B6_StAty.js → stored-dashboard-C0hekXiI.js} +189 -188
  40. package/dist/chunks/{code-editor-BsxHzm9u.js → style-sheet-parts-C7qGZuH1.js} +2400 -2036
  41. package/dist/chunks/{table-export-sheet-BWP2joD1.js → table-export-sheet-CP8zSOhj.js} +1 -1
  42. package/dist/chunks/{temporal-input-presentation-scSWQXAB.js → temporal-input-presentation-CqbJjIuu.js} +14 -14
  43. package/dist/chunks/{upload-BRW4Mwrd.js → upload-CiGNKJ_0.js} +1 -1
  44. package/dist/chunks/{variable-draft-BQ3OMjvy.js → variable-draft-9-huI1h4.js} +2 -2
  45. package/dist/dashboard/index.js +1 -1
  46. package/dist/dashboard-authoring/index.js +1911 -1859
  47. package/dist/format-utils/index.js +8 -8
  48. package/dist/index.js +332 -335
  49. package/dist/layouts/index.js +1 -1
  50. package/dist/style.css +1 -1
  51. package/dist/surfboard/index.js +1 -1
  52. package/dist/types/appearance/index.d.ts +1 -0
  53. package/dist/types/brand-studio/brand-studio-draft.d.ts +7 -0
  54. package/dist/types/brand-studio/index.d.ts +1 -1
  55. package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
  56. package/dist/types/components/providers/appearance-runtime-provider.d.ts +4 -1
  57. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -2
  58. package/dist/types/components/sharing-and-management/utils/types.d.ts +0 -72
  59. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -1
  60. package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -9
  61. package/dist/types/components/visual/data-table/utils/pagination-utils.d.ts +0 -19
  62. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -1
  63. package/dist/types/lib/appearance/aliases.d.ts +42 -0
  64. package/dist/types/lib/appearance/compiler.d.ts +6 -0
  65. package/dist/types/lib/appearance/defaults.d.ts +6 -0
  66. package/dist/types/lib/appearance/index.d.ts +2 -0
  67. package/dist/types/lib/appearance/normalize-organization.d.ts +17 -0
  68. package/dist/types/lib/appearance/resolver.d.ts +2 -2
  69. package/dist/types/lib/appearance/types.d.ts +38 -1
  70. package/dist/types/lib/charts/types.d.ts +6 -2
  71. package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -1
  72. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +0 -2
  73. package/dist/types/lib/dashboard-variables/types.d.ts +1 -6
  74. package/dist/types/lib/download-pdf.d.ts +0 -1
  75. package/dist/types/lib/hooks/use-dashboard.d.ts +3 -4
  76. package/dist/types/lib/stores/dashboard-store.d.ts +15 -6
  77. package/dist/types/lib/stores/editor-store.d.ts +0 -1
  78. package/dist/types/lib/stores/table-actions.d.ts +0 -1
  79. package/dist/types/lib/table-formatting/table-formatting-css.d.ts +0 -5
  80. package/dist/types/lib/types/common-types.d.ts +3 -2
  81. package/dist/types/lib/types/summary-types.d.ts +0 -5
  82. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +4 -4
  83. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
  84. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +68 -68
  85. package/dist/types/shared/assistant-protocol/context.d.ts +18 -18
  86. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +212 -42
  87. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
  88. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +9 -0
  89. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +30 -30
  90. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +4 -4
  91. package/dist/types/shared/dashboard-authoring/dashboard-style/bounds.d.ts +17 -0
  92. package/dist/types/shared/dashboard-authoring/dashboard-style/brand.d.ts +20 -0
  93. package/dist/types/shared/dashboard-authoring/dashboard-style/edit-words.d.ts +7 -0
  94. package/dist/types/shared/dashboard-authoring/dashboard-style/edit.d.ts +19 -0
  95. package/dist/types/shared/dashboard-authoring/dashboard-style/index.d.ts +15 -0
  96. package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +19 -0
  97. package/dist/types/shared/dashboard-authoring/dashboard-style/legacy.d.ts +21 -0
  98. package/dist/types/shared/dashboard-authoring/dashboard-style/parse.d.ts +18 -0
  99. package/dist/types/shared/dashboard-authoring/dashboard-style/pickers.d.ts +12 -0
  100. package/dist/types/shared/dashboard-authoring/dashboard-style/types.d.ts +122 -0
  101. package/dist/types/shared/dashboard-authoring/dashboard-style/view.d.ts +10 -0
  102. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  103. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
  104. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +20 -0
  105. package/dist/types/shared/format-utils/matrix-continuation.d.ts +7 -7
  106. package/package.json +6 -3
  107. package/dist/chunks/appearance-context-DEYtWinQ.js +0 -126
  108. package/dist/chunks/appearance-runtime-provider-B-M8gwlZ.js +0 -81
  109. package/dist/chunks/assistant-chat-Dzf2Mbph.js +0 -8847
  110. package/dist/chunks/color-CJvdlFM_.js +0 -2162
  111. package/dist/chunks/index-CLIro-EG.js +0 -425
  112. package/dist/types/components/sharing-and-management/utils/group-types.d.ts +0 -105
@@ -1,5 +1,5 @@
1
1
  import { x as g, z as $ } from "./bookmark-state-CflS88gq.js";
2
- import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-B6_StAty.js";
2
+ import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-C0hekXiI.js";
3
3
  function D(e) {
4
4
  var d, c, f;
5
5
  const { saved: s, draft: a, usage: l } = e, b = [], j = F(s);
@@ -0,0 +1,54 @@
1
+ import { A as P } from "./schema-C9NPiIru.js";
2
+ import { D as A, d as S, a as f, s as v, w as D, A as _, r as b, b as g } from "./resolver-DG_tfEpt.js";
3
+ import { n as h } from "./index-BVKzKl5d.js";
4
+ import { c as y, a as R, d as k, r as E } from "./edit-Bpdh_P_a.js";
5
+ const p = ["light", "dark"], O = /* @__PURE__ */ new Set(["canvas", "chartColors"]);
6
+ function H(o) {
7
+ const s = y(o.edit);
8
+ if (s) return { ok: !1, refusal: s };
9
+ const r = o.spec ? h(o.spec).spec : null, e = r ?? { version: P }, i = R(C(e), o.edit, o.mode);
10
+ let a = { ...e.schemes ?? {} };
11
+ for (const c of p) {
12
+ let t = a[c] ?? {};
13
+ for (const d of A) {
14
+ t = S(t, f[d]);
15
+ const l = v(i, d, c);
16
+ l !== void 0 && (t = D(t, f[d], l));
17
+ }
18
+ for (const { alias: d, canonical: l } of _)
19
+ A.some((u) => B(f[u], l)) && (t = S(t, d));
20
+ a = { ...a, [c]: t };
21
+ }
22
+ const n = h({ ...e, schemes: a }).spec, m = (c) => {
23
+ const t = g({ organizationAppearance: c });
24
+ return { light: E(t, "light"), dark: E(t, "dark") };
25
+ };
26
+ return {
27
+ ok: !0,
28
+ spec: n,
29
+ sentences: k({
30
+ edit: o.edit,
31
+ before: m(r),
32
+ after: m(n),
33
+ resetAll: "Resets the brand's dashboard style to the defaults"
34
+ })
35
+ };
36
+ }
37
+ function C(o) {
38
+ var r;
39
+ const s = {};
40
+ for (const e of A)
41
+ for (const i of p) {
42
+ const a = b((r = o.schemes) == null ? void 0 : r[i], f[e]);
43
+ if (a === void 0) continue;
44
+ const n = e === "cardBorder" ? a === 0 ? "off" : "on" : a;
45
+ O.has(e) ? s[e] = { ...s[e], [i]: n } : s[e] ?? (s[e] = n);
46
+ }
47
+ return s;
48
+ }
49
+ function B(o, s) {
50
+ return o.join(".") === s.join(".");
51
+ }
52
+ export {
53
+ H as e
54
+ };
@@ -1,25 +1,25 @@
1
- import { c as Ue, B as G, X as ce, s as Ne, l as mn, a3 as pn, o as at, p as rt, q as st, r as ot, a4 as Ot, z as Oe, n as le, t as xe, u as ge, v as be, w as ve, x as re, P as it, a as lt, d as dt, L as fn, y as hn } from "./code-editor-BsxHzm9u.js";
1
+ import { c as Ge, B as U, X as ce, x as Ne, q as mn, a8 as pn, t as at, u as rt, v as st, w as ot, a9 as Ot, F as Oe, s as le, y as xe, z as ge, A as be, D as ve, E as re, e as it, f as lt, h as dt, L as fn, d as hn } from "./style-sheet-parts-C7qGZuH1.js";
2
2
  import { jsx as t, jsxs as l, Fragment as fe } from "react/jsx-runtime";
3
3
  import * as _e from "react";
4
4
  import vt, { useMemo as Q, useState as H, useRef as Ae, useCallback as ne, useEffect as de, forwardRef as xn, Fragment as gn } from "react";
5
- import { aU as ct, u as ut, a6 as se, bX as _t, cs as X, ct as bn, bT as Ie, cu as Ge, cv as Vt, cw as vn, bN as Ve, cx as yn, a7 as Rt, bu as Nn, bv as Cn, bx as wn, bn as kn, cy as Sn, i as Dn, cz as In, cA as yt, bM as Et, cB as Tn, cC as Mt, cD as zt, cE as Ln, cF as An, cG as $n, cH as Fn, cI as On, cJ as _n, cK as Vn, bo as Rn, cL as Nt, cM as qt, cN as En, br as Mn, cO as zn, cP as qn, cQ as jn, cR as ye, cS as jt, cT as Un, cU as Gn, cV as Bn, cW as Wn, cX as Kn, cY as Ze, cZ as he, c_ as et, c$ as tt, d0 as nt, d1 as Qn, d2 as Re, d3 as Ee, d4 as Me, d5 as ze, d6 as Ut, d7 as Gt, d8 as Bt } from "./semaphor-ready-indicator-BNkaANsG.js";
5
+ import { aT as ct, u as ut, a5 as se, bW as _t, cr as X, cs as bn, bS as Ie, ct as Ue, cu as Vt, cv as vn, bM as Ve, cw as yn, a6 as Rt, bt as Nn, bu as Cn, bw as wn, bm as kn, cx as Sn, h as Dn, cy as In, cz as yt, bL as Et, cA as Tn, cB as Mt, cC as zt, cD as Ln, cE as An, cF as $n, cG as Fn, cH as On, cI as _n, cJ as Vn, bn as Rn, cK as Nt, cL as qt, cM as En, bq as Mn, cN as zn, cO as qn, cP as jn, cQ as ye, cR as jt, cS as Gn, cT as Un, cU as Bn, cV as Wn, cW as Kn, cX as Ze, cY as he, cZ as et, c_ as tt, c$ as nt, d0 as Qn, d1 as Re, d2 as Ee, d3 as Me, d4 as ze, d5 as Gt, d6 as Ut, d7 as Bt } from "./semaphor-ready-indicator-ByFvqHEO.js";
6
6
  import { D as Hn } from "./token-types-iKMplaBL.js";
7
- import { f4 as Wt, f5 as Pn, f6 as Yn, f7 as Xn, f8 as Jn, f9 as Zn, fa as $e, fb as Ct, fc as wt, fd as Qe, fe as He, ff as ea, fg as ta, fh as kt, fi as na, fj as aa, fk as Fe, fl as ra, fm as St, fn as Kt, fo as Qt, fp as Ht, fq as Pt, fr as sa, fs as oa, ft as Dt, fu as ia, fv as It, fw as la, fx as da, fy as ca, fz as ua, fA as Pe, a as qe, fB as Ye, b9 as ma, fC as pa, fD as fa, fE as ha, fF as xa } from "./resolve-dashboard-input-context-KqvcLcTM.js";
8
- import { c as z } from "./_commonjsHelpers-Bid1ZNYj.js";
7
+ import { f5 as Wt, f6 as Pn, f7 as Yn, f8 as Xn, f9 as Jn, fa as Zn, fb as $e, fc as Ct, fd as wt, fe as Qe, ff as He, fg as ea, fh as ta, fi as kt, fj as na, fk as aa, fl as Fe, fm as ra, fn as St, fo as Kt, fp as Qt, fq as Ht, fr as Pt, fs as sa, ft as oa, fu as Dt, fv as ia, fw as It, fx as la, fy as da, fz as ca, fA as ua, fB as Pe, a as qe, fC as Ye, b9 as ma, fD as pa, fE as fa, fF as ha, fG as xa } from "./resolve-dashboard-input-context-Lkbwycwe.js";
8
+ import { c as z } from "./pickers-DkqmtnTL.js";
9
9
  import { r as Yt } from "./validators-B8fpdinG.js";
10
10
  import "./matrix-operation-contract-DCVinw1o.js";
11
11
  import "./analytics-base-schemas-BaIQrEzX.js";
12
12
  import "../value-format-preferences/index.js";
13
- import { U as ga } from "./upload-BRW4Mwrd.js";
13
+ import { U as ga } from "./upload-CiGNKJ_0.js";
14
14
  import { a as Xt } from "./metric-comparison-n9NsIa-2.js";
15
- import { P as Jt } from "./filter-reach-copy-hcQ4os0u.js";
15
+ import { T as Jt } from "./filter-reach-copy-BSY33ro5.js";
16
16
  /**
17
17
  * @license lucide-react v0.453.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
21
  */
22
- const ba = Ue("Boxes", [
22
+ const ba = Ge("Boxes", [
23
23
  [
24
24
  "path",
25
25
  {
@@ -57,7 +57,7 @@ const ba = Ue("Boxes", [
57
57
  * This source code is licensed under the ISC license.
58
58
  * See the LICENSE file in the root directory of this source tree.
59
59
  */
60
- const Nr = Ue("FilterX", [
60
+ const Nr = Ge("FilterX", [
61
61
  ["path", { d: "M13.013 3H2l8 9.46V19l4 2v-8.54l.9-1.055", key: "1fi1da" }],
62
62
  ["path", { d: "m22 3-5 5", key: "12jva0" }],
63
63
  ["path", { d: "m17 3 5 5", key: "k36vhe" }]
@@ -68,7 +68,7 @@ const Nr = Ue("FilterX", [
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
70
  */
71
- const va = Ue("Library", [
71
+ const va = Ge("Library", [
72
72
  ["path", { d: "m16 6 4 14", key: "ji33uf" }],
73
73
  ["path", { d: "M12 6v14", key: "1n7gus" }],
74
74
  ["path", { d: "M8 8v12", key: "1gg7y9" }],
@@ -80,7 +80,7 @@ const va = Ue("Library", [
80
80
  * This source code is licensed under the ISC license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
82
  */
83
- const ya = Ue("Link2", [
83
+ const ya = Ge("Link2", [
84
84
  ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
85
85
  ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
86
86
  ["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
@@ -303,7 +303,7 @@ function Da({
303
303
  );
304
304
  return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l("label", { className: "flex cursor-pointer items-start gap-2 rounded-[4px] px-9 py-1.5 transition-colors hover:bg-muted/40", children: [
305
305
  /* @__PURE__ */ t(
306
- Ge,
306
+ Ue,
307
307
  {
308
308
  checked: P,
309
309
  onCheckedChange: () => j(O),
@@ -514,7 +514,7 @@ function Aa({
514
514
  }
515
515
  ),
516
516
  /* @__PURE__ */ t(
517
- G,
517
+ U,
518
518
  {
519
519
  type: "button",
520
520
  variant: "outline",
@@ -616,7 +616,7 @@ function $a({
616
616
  }
617
617
  ),
618
618
  /* @__PURE__ */ l(
619
- G,
619
+ U,
620
620
  {
621
621
  type: "button",
622
622
  size: "sm",
@@ -830,7 +830,7 @@ function pt({
830
830
  );
831
831
  return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l("label", { className: "flex cursor-pointer items-center gap-2.5 py-1.5 pl-12 pr-4 transition-colors hover:bg-muted/40", children: [
832
832
  /* @__PURE__ */ t(
833
- Ge,
833
+ Ue,
834
834
  {
835
835
  checked: k,
836
836
  onCheckedChange: () => w(h.table_name, h.table_type),
@@ -909,7 +909,7 @@ function Oa({
909
909
  );
910
910
  return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l("label", { className: "flex cursor-pointer items-start gap-2.5 py-1.5 pl-12 pr-4 transition-colors hover:bg-muted/40", children: [
911
911
  /* @__PURE__ */ t(
912
- Ge,
912
+ Ue,
913
913
  {
914
914
  checked: m,
915
915
  onCheckedChange: () => c(i),
@@ -1174,7 +1174,7 @@ function Cr({
1174
1174
  ])
1175
1175
  ),
1176
1176
  [V]
1177
- ), U = ($) => {
1177
+ ), G = ($) => {
1178
1178
  h($), $ === "semantic" || $.startsWith("domain:") ? a.mode !== "semanticDomain" && v("semanticDomain") : ($ === "direct" || $.startsWith("conn:")) && a.mode === "semanticDomain" && v("database");
1179
1179
  }, ee = y.startsWith("domain:"), te = y.startsWith("conn:"), We = ee ? y.slice(7) : void 0, Ke = te ? y.slice(5) : void 0, oe = !p || y === "all" || y === "semantic" || ee, Te = T && !P && (y === "all" || y === "direct" || te), ue = ((o == null ? void 0 : o.length) ?? 0) > 0, Ce = s.length === 0 && !ue, we = s.length === 0 && ue ? "Clear" : "Add", ke = A ? "Select dataset" : "Add data";
1180
1180
  return /* @__PURE__ */ t(Nn, { open: e, onOpenChange: n, children: /* @__PURE__ */ l(
@@ -1233,7 +1233,7 @@ function Cr({
1233
1233
  {
1234
1234
  label: "All",
1235
1235
  active: y === "all",
1236
- onClick: () => U("all")
1236
+ onClick: () => G("all")
1237
1237
  }
1238
1238
  ),
1239
1239
  (V.length > 0 || M.length > 0) && /* @__PURE__ */ l(fe, { children: [
@@ -1242,7 +1242,7 @@ function Cr({
1242
1242
  {
1243
1243
  label: "Semantic",
1244
1244
  active: y === "semantic",
1245
- onClick: () => U("semantic")
1245
+ onClick: () => G("semantic")
1246
1246
  }
1247
1247
  ),
1248
1248
  /* @__PURE__ */ t(
@@ -1250,7 +1250,7 @@ function Cr({
1250
1250
  {
1251
1251
  label: "Direct",
1252
1252
  active: y === "direct",
1253
- onClick: () => U("direct")
1253
+ onClick: () => G("direct")
1254
1254
  }
1255
1255
  ),
1256
1256
  /* @__PURE__ */ t("span", { className: "shrink-0 px-0.5 text-muted-foreground/50", children: "·" })
@@ -1260,7 +1260,7 @@ function Cr({
1260
1260
  {
1261
1261
  label: $.label || $.name,
1262
1262
  active: y === `domain:${$.id}`,
1263
- onClick: () => U(`domain:${$.id}`)
1263
+ onClick: () => G(`domain:${$.id}`)
1264
1264
  },
1265
1265
  `domain:${$.id}`
1266
1266
  )),
@@ -1269,7 +1269,7 @@ function Cr({
1269
1269
  {
1270
1270
  label: $.name,
1271
1271
  active: y === `conn:${$.id}`,
1272
- onClick: () => U(`conn:${$.id}`)
1272
+ onClick: () => G(`conn:${$.id}`)
1273
1273
  },
1274
1274
  `conn:${$.id}`
1275
1275
  ))
@@ -1482,7 +1482,7 @@ const Ma = xn(
1482
1482
  ...s
1483
1483
  }, m) => /* @__PURE__ */ t(at, { children: /* @__PURE__ */ l(rt, { delayDuration: d, children: [
1484
1484
  /* @__PURE__ */ t(st, { asChild: !0, children: /* @__PURE__ */ t(
1485
- G,
1485
+ U,
1486
1486
  {
1487
1487
  disabled: i,
1488
1488
  ref: m,
@@ -1661,9 +1661,9 @@ function Tt(e) {
1661
1661
  /* @__PURE__ */ t(
1662
1662
  je,
1663
1663
  {
1664
- secondary: /* @__PURE__ */ t(G, { type: "button", variant: "outline", size: "xs", onClick: f, children: "Back" }),
1664
+ secondary: /* @__PURE__ */ t(U, { type: "button", variant: "outline", size: "xs", onClick: f, children: "Back" }),
1665
1665
  primary: /* @__PURE__ */ t(
1666
- G,
1666
+ U,
1667
1667
  {
1668
1668
  type: "button",
1669
1669
  size: "xs",
@@ -1676,7 +1676,7 @@ function Tt(e) {
1676
1676
  )
1677
1677
  ] });
1678
1678
  }
1679
- const Ua = /* @__PURE__ */ new Set([
1679
+ const Ga = /* @__PURE__ */ new Set([
1680
1680
  "grain_selector",
1681
1681
  "aggregation_selector",
1682
1682
  "field_selector",
@@ -1715,7 +1715,7 @@ function At(e) {
1715
1715
  onBack: i,
1716
1716
  onCancel: s,
1717
1717
  onDone: m
1718
- } = e, f = Ua.has(n.type), w = o.match(/\[\[param\.(.+?)\]\]/), y = w ? `{{ param('${w[1]}') }}` : "";
1718
+ } = e, f = Ga.has(n.type), w = o.match(/\[\[param\.(.+?)\]\]/), y = w ? `{{ param('${w[1]}') }}` : "";
1719
1719
  return /* @__PURE__ */ l("div", { className: "space-y-4", children: [
1720
1720
  /* @__PURE__ */ t(
1721
1721
  ja,
@@ -1769,14 +1769,14 @@ function At(e) {
1769
1769
  /* @__PURE__ */ t(
1770
1770
  je,
1771
1771
  {
1772
- secondary: /* @__PURE__ */ t(G, { type: "button", variant: "outline", size: "xs", onClick: i, children: "Back" }),
1773
- tertiary: /* @__PURE__ */ t(G, { type: "button", variant: "outline", size: "xs", onClick: s, children: "Cancel" }),
1774
- primary: /* @__PURE__ */ t(G, { type: "button", size: "xs", onClick: m, children: "Done" })
1772
+ secondary: /* @__PURE__ */ t(U, { type: "button", variant: "outline", size: "xs", onClick: i, children: "Back" }),
1773
+ tertiary: /* @__PURE__ */ t(U, { type: "button", variant: "outline", size: "xs", onClick: s, children: "Cancel" }),
1774
+ primary: /* @__PURE__ */ t(U, { type: "button", size: "xs", onClick: m, children: "Done" })
1775
1775
  }
1776
1776
  )
1777
1777
  ] });
1778
1778
  }
1779
- function Ga(e) {
1779
+ function Ua(e) {
1780
1780
  const n = $e(
1781
1781
  e.scope,
1782
1782
  e.existingControls,
@@ -1958,7 +1958,7 @@ function Sr({
1958
1958
  nextControl: L,
1959
1959
  cardBindingsById: R
1960
1960
  };
1961
- }, U = ne(
1961
+ }, G = ne(
1962
1962
  (r, g = o, b = { type: "update" }) => {
1963
1963
  const L = r.map((R) => (He({
1964
1964
  control: R,
@@ -2011,7 +2011,7 @@ function Sr({
2011
2011
  (bt) => bt.id === r ? { ...B, defaultValue: ie } : bt
2012
2012
  );
2013
2013
  }
2014
- U(L, Y, {
2014
+ G(L, Y, {
2015
2015
  type: "update",
2016
2016
  cardBindingsById: E,
2017
2017
  affectedBindingControlIds: F
@@ -2028,7 +2028,7 @@ function Sr({
2028
2028
  (E) => E.id === r ? { ...E, id: b } : E
2029
2029
  );
2030
2030
  if (!o) {
2031
- U(L, void 0, {
2031
+ G(L, void 0, {
2032
2032
  type: "rename",
2033
2033
  oldId: r,
2034
2034
  newId: b
@@ -2036,7 +2036,7 @@ function Sr({
2036
2036
  return;
2037
2037
  }
2038
2038
  const R = { ...o };
2039
- Object.prototype.hasOwnProperty.call(R, r) && (R[b] = R[r], delete R[r]), U(L, R, {
2039
+ Object.prototype.hasOwnProperty.call(R, r) && (R[b] = R[r], delete R[r]), G(L, R, {
2040
2040
  type: "rename",
2041
2041
  oldId: r,
2042
2042
  newId: b
@@ -2044,11 +2044,11 @@ function Sr({
2044
2044
  }, We = (r) => {
2045
2045
  const g = n.filter((L) => L.id !== r);
2046
2046
  if (!o) {
2047
- U(g, void 0, { type: "remove", controlId: r });
2047
+ G(g, void 0, { type: "remove", controlId: r });
2048
2048
  return;
2049
2049
  }
2050
2050
  const b = { ...o };
2051
- delete b[r], U(g, b, { type: "remove", controlId: r });
2051
+ delete b[r], G(g, b, { type: "remove", controlId: r });
2052
2052
  }, Ke = ne(() => {
2053
2053
  S.current = void 0, I({
2054
2054
  step: 1,
@@ -2145,7 +2145,7 @@ function Sr({
2145
2145
  );
2146
2146
  if (o) {
2147
2147
  const L = { ...o };
2148
- b === void 0 ? delete L[g] : L[g] = b, U(
2148
+ b === void 0 ? delete L[g] : L[g] = b, G(
2149
2149
  [
2150
2150
  ...n,
2151
2151
  {
@@ -2160,7 +2160,7 @@ function Sr({
2160
2160
  }
2161
2161
  );
2162
2162
  } else
2163
- U(
2163
+ G(
2164
2164
  [
2165
2165
  ...n,
2166
2166
  {
@@ -2175,7 +2175,7 @@ function Sr({
2175
2175
  }
2176
2176
  );
2177
2177
  J(g), I(null), k == null || k();
2178
- }, [n, p, o, U, k]), gt = p ? C(p.control.type) ? ["Choose type", "Select cards", "Configure", "Finish"] : ["Choose type", "Configure", "Finish"] : [], Se = p != null && p.createdControlId ? `[[param.${p.createdControlId}]]` : p ? `[[param.${ra(p.control.label) || p.control.id}]]` : "", me = St({
2178
+ }, [n, p, o, G, k]), gt = p ? C(p.control.type) ? ["Choose type", "Select cards", "Configure", "Finish"] : ["Choose type", "Configure", "Finish"] : [], Se = p != null && p.createdControlId ? `[[param.${p.createdControlId}]]` : p ? `[[param.${ra(p.control.label) || p.control.id}]]` : "", me = St({
2179
2179
  controls: n,
2180
2180
  defaultValues: o
2181
2181
  }), $ = p ? [...n, p.control] : n, ae = p ? St({
@@ -2218,7 +2218,7 @@ function Sr({
2218
2218
  type: "button",
2219
2219
  className: "rounded-control border border-border/60 bg-background px-3 py-2.5 text-left transition-colors hover:bg-muted/40 focus-visible:bg-muted/40 focus-visible:outline-none",
2220
2220
  onClick: () => I(
2221
- Ga({
2221
+ Ua({
2222
2222
  scope: e,
2223
2223
  existingControls: n,
2224
2224
  reservedIds: Array.from(_),
@@ -2246,7 +2246,7 @@ function Sr({
2246
2246
  je,
2247
2247
  {
2248
2248
  secondary: /* @__PURE__ */ t(
2249
- G,
2249
+ U,
2250
2250
  {
2251
2251
  type: "button",
2252
2252
  variant: "outline",
@@ -2281,7 +2281,7 @@ function Sr({
2281
2281
  className: "flex items-start gap-2 rounded-control px-1.5 py-1 text-[13px] hover:bg-muted/40",
2282
2282
  children: [
2283
2283
  /* @__PURE__ */ t(
2284
- Ge,
2284
+ Ue,
2285
2285
  {
2286
2286
  checked: g,
2287
2287
  onCheckedChange: (b) => I(
@@ -2320,7 +2320,7 @@ function Sr({
2320
2320
  je,
2321
2321
  {
2322
2322
  secondary: /* @__PURE__ */ t(
2323
- G,
2323
+ U,
2324
2324
  {
2325
2325
  type: "button",
2326
2326
  variant: "outline",
@@ -2336,7 +2336,7 @@ function Sr({
2336
2336
  }
2337
2337
  ),
2338
2338
  primary: /* @__PURE__ */ t(
2339
- G,
2339
+ U,
2340
2340
  {
2341
2341
  type: "button",
2342
2342
  size: "xs",
@@ -2489,7 +2489,7 @@ function Sr({
2489
2489
  }
2490
2490
  ),
2491
2491
  /* @__PURE__ */ t(
2492
- G,
2492
+ U,
2493
2493
  {
2494
2494
  type: "button",
2495
2495
  size: "xs",
@@ -2531,7 +2531,7 @@ function Sr({
2531
2531
  nextType: F,
2532
2532
  defaultValues: o
2533
2533
  });
2534
- U(B.controls, B.defaultValues);
2534
+ G(B.controls, B.defaultValues);
2535
2535
  },
2536
2536
  children: [
2537
2537
  /* @__PURE__ */ t(ge, { size: "xs", children: /* @__PURE__ */ t(be, {}) }),
@@ -2588,7 +2588,7 @@ function Sr({
2588
2588
  }), Y = n.map(
2589
2589
  (W) => W.id === r.id ? B.nextControl : W
2590
2590
  );
2591
- U(Y, o, {
2591
+ G(Y, o, {
2592
2592
  type: "update",
2593
2593
  cardBindingsById: B.cardBindingsById
2594
2594
  });
@@ -2607,7 +2607,7 @@ function Sr({
2607
2607
  nextSelectedCardIds: (w == null ? void 0 : w[r.id]) || [],
2608
2608
  matrixTargetIds: { [F]: B }
2609
2609
  });
2610
- U(
2610
+ G(
2611
2611
  n.map((W) => W.id === r.id ? Y.nextControl : W),
2612
2612
  o,
2613
2613
  { type: "update", cardBindingsById: Y.cardBindingsById }
@@ -2643,10 +2643,10 @@ function Sr({
2643
2643
  );
2644
2644
  if (r.source.kind === "manual" && (A.current[r.id] = F), o) {
2645
2645
  const Y = { ...o };
2646
- F === void 0 ? delete Y[r.id] : Y[r.id] = F, U(B, Y);
2646
+ F === void 0 ? delete Y[r.id] : Y[r.id] = F, G(B, Y);
2647
2647
  return;
2648
2648
  }
2649
- U(B, void 0);
2649
+ G(B, void 0);
2650
2650
  }
2651
2651
  }
2652
2652
  ),
@@ -2657,7 +2657,7 @@ function Sr({
2657
2657
  onOpenChange: (F) => T(F ? r.id : null),
2658
2658
  children: [
2659
2659
  /* @__PURE__ */ t(An, { asChild: !0, children: /* @__PURE__ */ l(
2660
- G,
2660
+ U,
2661
2661
  {
2662
2662
  type: "button",
2663
2663
  variant: "ghost",
@@ -2725,7 +2725,7 @@ function Sr({
2725
2725
  );
2726
2726
  }),
2727
2727
  !p && /* @__PURE__ */ l(
2728
- G,
2728
+ U,
2729
2729
  {
2730
2730
  type: "button",
2731
2731
  variant: "outline",
@@ -3057,7 +3057,7 @@ function Ha({
3057
3057
  ), s = e ? Jt(e) : null;
3058
3058
  return /* @__PURE__ */ l(it, { modal: !0, open: d, onOpenChange: c, children: [
3059
3059
  /* @__PURE__ */ t(lt, { asChild: !0, children: /* @__PURE__ */ l(
3060
- G,
3060
+ U,
3061
3061
  {
3062
3062
  variant: "outline",
3063
3063
  size: "xs",
@@ -3143,7 +3143,7 @@ function Pa({
3143
3143
  };
3144
3144
  return /* @__PURE__ */ t("div", { className: z("w-full", d), children: /* @__PURE__ */ l(it, { open: c, onOpenChange: y, modal: !0, children: [
3145
3145
  /* @__PURE__ */ t(lt, { asChild: !0, children: /* @__PURE__ */ l(
3146
- G,
3146
+ U,
3147
3147
  {
3148
3148
  variant: "outline",
3149
3149
  size: "xs",
@@ -3239,7 +3239,7 @@ function Ya({
3239
3239
  };
3240
3240
  return /* @__PURE__ */ l(it, { open: c, onOpenChange: w, modal: !0, children: [
3241
3241
  /* @__PURE__ */ t(lt, { asChild: !0, children: /* @__PURE__ */ l(
3242
- G,
3242
+ U,
3243
3243
  {
3244
3244
  variant: "outline",
3245
3245
  size: "xs",
@@ -3298,7 +3298,7 @@ function Xa({
3298
3298
  onChange: d,
3299
3299
  className: c
3300
3300
  }) {
3301
- const i = Un(), s = Gn(), m = n === "between" || n === "not between", f = Q(() => {
3301
+ const i = Gn(), s = Un(), m = n === "between" || n === "not between", f = Q(() => {
3302
3302
  if (!m || !a) return;
3303
3303
  const D = s(a);
3304
3304
  return {
@@ -3501,8 +3501,8 @@ function cn({
3501
3501
  transform: h,
3502
3502
  transition: N,
3503
3503
  isDragging: k
3504
- } = Ut({ id: e.id }), _ = {
3505
- transform: Gt.Transform.toString(h),
3504
+ } = Gt({ id: e.id }), _ = {
3505
+ transform: Ut.Transform.toString(h),
3506
3506
  transition: N
3507
3507
  }, D = qe(e.field.dataType), j = e.operator === "isNull" || e.operator === "isNotNull", O = e.operator === "in" || e.operator === "not in";
3508
3508
  return /* @__PURE__ */ l(
@@ -3655,7 +3655,7 @@ function cn({
3655
3655
  }
3656
3656
  ),
3657
3657
  /* @__PURE__ */ t(
3658
- G,
3658
+ U,
3659
3659
  {
3660
3660
  variant: "ghost",
3661
3661
  size: "xs",
@@ -3676,7 +3676,7 @@ function un({
3676
3676
  }) {
3677
3677
  return /* @__PURE__ */ l("div", { className: "mt-2 flex items-center gap-1.5 group-data-[inline]/filters:mt-1 group-data-[inline]/filters:gap-3", children: [
3678
3678
  /* @__PURE__ */ l(
3679
- G,
3679
+ U,
3680
3680
  {
3681
3681
  type: "button",
3682
3682
  size: "xs",
@@ -3690,7 +3690,7 @@ function un({
3690
3690
  }
3691
3691
  ),
3692
3692
  n && /* @__PURE__ */ l(
3693
- G,
3693
+ U,
3694
3694
  {
3695
3695
  type: "button",
3696
3696
  size: "xs",
@@ -3730,8 +3730,8 @@ function or({
3730
3730
  transform: O,
3731
3731
  transition: T,
3732
3732
  isDragging: P
3733
- } = Ut({ id: e.id }), J = {
3734
- transform: Gt.Transform.toString(O),
3733
+ } = Gt({ id: e.id }), J = {
3734
+ transform: Ut.Transform.toString(O),
3735
3735
  transition: T
3736
3736
  }, p = (A) => {
3737
3737
  const { active: S, over: v } = A;
@@ -3774,7 +3774,7 @@ function or({
3774
3774
  }
3775
3775
  ),
3776
3776
  /* @__PURE__ */ t(
3777
- G,
3777
+ U,
3778
3778
  {
3779
3779
  type: "button",
3780
3780
  variant: e.negate ? "default" : "outline",
@@ -3796,7 +3796,7 @@ function or({
3796
3796
  /* @__PURE__ */ t("span", { className: xt, children: "Group" })
3797
3797
  ] }),
3798
3798
  /* @__PURE__ */ t(
3799
- G,
3799
+ U,
3800
3800
  {
3801
3801
  type: "button",
3802
3802
  variant: "ghost",
@@ -3929,12 +3929,12 @@ function Ir({
3929
3929
  onDragEnd: (V) => {
3930
3930
  const { active: M, over: K } = V;
3931
3931
  if (K && M.id !== K.id) {
3932
- const U = x.conditions.findIndex(
3932
+ const G = x.conditions.findIndex(
3933
3933
  (te) => te.id === M.id
3934
3934
  ), ee = x.conditions.findIndex(
3935
3935
  (te) => te.id === K.id
3936
3936
  );
3937
- U !== -1 && ee !== -1 && O(x.id, U, ee);
3937
+ G !== -1 && ee !== -1 && O(x.id, G, ee);
3938
3938
  }
3939
3939
  },
3940
3940
  children: /* @__PURE__ */ t(
@@ -3970,12 +3970,12 @@ function Ir({
3970
3970
  onDragEnd: (V) => {
3971
3971
  const { active: M, over: K } = V;
3972
3972
  if (K && M.id !== K.id) {
3973
- const U = x.groups.findIndex(
3973
+ const G = x.groups.findIndex(
3974
3974
  (te) => te.id === M.id
3975
3975
  ), ee = x.groups.findIndex(
3976
3976
  (te) => te.id === K.id
3977
3977
  );
3978
- U !== -1 && ee !== -1 && T(x.id, U, ee);
3978
+ G !== -1 && ee !== -1 && T(x.id, G, ee);
3979
3979
  }
3980
3980
  },
3981
3981
  children: /* @__PURE__ */ t(
@@ -4060,7 +4060,7 @@ function Ir({
4060
4060
  ] }),
4061
4061
  i ? null : /* @__PURE__ */ l("div", { className: "flex shrink-0 items-center justify-between gap-2 border-t border-border px-3 py-2.5", children: [
4062
4062
  /* @__PURE__ */ t("div", { children: v > 0 && /* @__PURE__ */ t(
4063
- G,
4063
+ U,
4064
4064
  {
4065
4065
  size: "xs",
4066
4066
  variant: "ghost",
@@ -4070,9 +4070,9 @@ function Ir({
4070
4070
  }
4071
4071
  ) }),
4072
4072
  /* @__PURE__ */ l("div", { className: "flex items-center gap-1.5", children: [
4073
- /* @__PURE__ */ t(G, { size: "xs", variant: "ghost", onClick: () => d == null ? void 0 : d(), children: "Cancel" }),
4073
+ /* @__PURE__ */ t(U, { size: "xs", variant: "ghost", onClick: () => d == null ? void 0 : d(), children: "Cancel" }),
4074
4074
  /* @__PURE__ */ t(
4075
- G,
4075
+ U,
4076
4076
  {
4077
4077
  size: "xs",
4078
4078
  onClick: () => o == null ? void 0 : o(J ? s : null),
@@ -1,10 +1,10 @@
1
- import { au as We, i as Ye, j, m as Ze, K as Me, av as ie, aw as De, ax as Je, ay as Ae, az as ke, ai as Qe, an as et, aj as tt, f as rt, a as B, $ as pe, ab as nt, Z as ot, ac as at, ad as st, o as he, s as it, R as be, T as ct, V as lt, a0 as ut, aA as A, aB as U } from "./temporal-input-presentation-scSWQXAB.js";
1
+ import { au as We, i as Ye, j, m as Ze, K as Me, av as ie, aw as De, ax as Je, ay as Ae, az as ke, ai as Qe, an as et, aj as tt, f as rt, a as B, $ as pe, ab as nt, Z as ot, ac as at, ad as st, o as he, s as it, R as be, T as ct, V as lt, a0 as ut, aA as A, aB as U } from "./temporal-input-presentation-CqbJjIuu.js";
2
2
  import { h as W, e as mt, p as dt, k as ft } from "./export-file-format-C-tJsxsf.js";
3
3
  import { aU as K, a5 as pt, m as G, aT as ht, j as bt, r as Y } from "./validators-B8fpdinG.js";
4
4
  import "./matrix-operation-contract-DCVinw1o.js";
5
5
  import "./analytics-base-schemas-BaIQrEzX.js";
6
6
  import { readPdfCapacityFacts as yt, PDF_SAFETY_LIMIT_EXCEEDED as ce, PDF_CAPACITY as D, PDF_NUMBER_COLUMN_TOO_WIDE as Re, getUtf8ByteLength as gt, FAST_PDF_POLICY as wt, isPdfCapacityRefusalCode as Ct } from "../pdf-export-policy/index.js";
7
- import { p as vt } from "./pivot-result-contract-expectations-DkmueDTW.js";
7
+ import { p as vt } from "./pivot-result-contract-expectations-C-HnUKYe.js";
8
8
  import { c as _t, b as ye } from "./pivot-result-identity-B89X5xjb.js";
9
9
  import { v as xt, c as Tt } from "./raw-temporal-value-DdT0s47W.js";
10
10
  import { a as Ne } from "./metric-comparison-n9NsIa-2.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
- import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-BNkaANsG.js";
2
+ import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-ByFvqHEO.js";
3
3
  function u(e) {
4
4
  if (typeof window > "u")
5
5
  return null;