react-semaphor 0.1.587 → 0.1.589

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/analytics-protocol/index.js +341 -338
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +8 -8
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/{add-to-dashboard-DhP8wVtM.js → add-to-dashboard-C86FsM8D.js} +1 -1
  7. package/dist/chunks/{aggregate-measure-field-DsFXETpI.js → aggregate-measure-field-BrkXsSJp.js} +2 -2
  8. package/dist/chunks/{analytics-base-schemas-BaIQrEzX.js → analytics-base-schemas-8wz9vqn_.js} +173 -165
  9. package/dist/chunks/{assistant-chat-pfJK-T0b.js → assistant-chat-DBPa6sJU.js} +19 -18
  10. package/dist/chunks/{bookmark-impact-BSpGQL1M.js → bookmark-impact-B7pbMx2e.js} +2 -2
  11. package/dist/chunks/{bookmark-state-CL4WEpgB.js → bookmark-state-Bn7k3ttp.js} +5 -5
  12. package/dist/chunks/{card-filter-builder-C8PbhHjq.js → card-filter-builder-CGM7ROM0.js} +99 -99
  13. package/dist/chunks/{comparison-window-caption-CoART8BC.js → comparison-window-caption-fqijZdVd.js} +451 -395
  14. package/dist/chunks/{context-BTLBjQNh.js → context-CVXTFljo.js} +1 -1
  15. package/dist/chunks/{dashboard-CVj1oMoW.js → dashboard-UXH3E31V.js} +1 -1
  16. package/dist/chunks/{dashboard-briefing-launcher-TqA58rKz.js → dashboard-briefing-launcher-CTFuSWH_.js} +313 -329
  17. package/dist/chunks/{dashboard-controls-DQ8FsxAz.js → dashboard-controls-BcxWhOKw.js} +97 -97
  18. package/dist/chunks/{dashboard-json-DM88pmk2.js → dashboard-json-C-oBcKKC.js} +5 -5
  19. package/dist/chunks/dates-BunbHJH0.js +115 -0
  20. package/dist/chunks/{edit-dashboard-visual-BpRnU_6G.js → edit-dashboard-visual-COjKc_Du.js} +2796 -2783
  21. package/dist/chunks/{filter-line-Cu2u1K36.js → filter-line-Dza3ee4w.js} +5 -5
  22. package/dist/chunks/{filter-reach-copy-0Xp97cLk.js → filter-reach-copy-D5AmDHda.js} +944 -942
  23. package/dist/chunks/{filter-value-text-xefXzZlf.js → filter-value-text-DQw4v3nC.js} +6 -6
  24. package/dist/chunks/{index-D_QSeVKy.js → index-dGxJTaP1.js} +39 -39
  25. package/dist/chunks/{layout-grid-9nSS2SL-.js → layout-grid-BG__sPkb.js} +1 -1
  26. package/dist/chunks/{list-filter-CfMPI6v4.js → list-filter-Cb8i7N8f.js} +1 -1
  27. package/dist/chunks/{matrix-analytical-definition-DOVSFFuf.js → matrix-analytical-definition-SN0JUJVk.js} +3 -3
  28. package/dist/chunks/{matrix-member-presentation-BKDyxJho.js → matrix-member-presentation-DVBJR0MA.js} +1 -1
  29. package/dist/chunks/{matrix-operation-contract-BM5TveR3.js → matrix-operation-contract-JSmproo9.js} +15 -15
  30. package/dist/chunks/{metric-comparison-ZmurmEIs.js → metric-comparison-xE_J6hkg.js} +2 -2
  31. package/dist/chunks/{paintbrush-LzAje2ff.js → paintbrush-C310xSuR.js} +1 -1
  32. package/dist/chunks/{palette-DicJG0TC.js → palette-Ci5P91Zb.js} +1 -1
  33. package/dist/chunks/{pivot-header-presentation-CdeTU96P.js → pivot-header-presentation-D-DfPAjb.js} +1 -1
  34. package/dist/chunks/{pivot-result-contract-expectations-Bx_BCu-7.js → pivot-result-contract-expectations-DbBahmgc.js} +545 -536
  35. package/dist/chunks/{pivot-result-identity-Bvs6Uq3v.js → pivot-result-identity-CUsMt_4r.js} +1 -1
  36. package/dist/chunks/{raw-temporal-value-DH-feMc2.js → raw-temporal-value-BnGCWJAL.js} +1 -1
  37. package/dist/chunks/report-preferences-dialog-DtuOcejh.js +1637 -0
  38. package/dist/chunks/{report-runtime-context-NlOXwyRB.js → report-runtime-context-CrOgmuxO.js} +2 -2
  39. package/dist/chunks/{resolve-dashboard-input-context-zEXuitoF.js → resolve-dashboard-input-context-DFBIngUZ.js} +5617 -5485
  40. package/dist/chunks/{save-0wu1Z1U7.js → save-BhhXfp4s.js} +1 -1
  41. package/dist/chunks/{saved-dashboard-context-Cll5LipJ.js → saved-dashboard-context-DKMTP9ib.js} +17 -17
  42. package/dist/chunks/selection-filter-compiler-DkIjp1yH.js +131 -0
  43. package/dist/chunks/{semaphor-ready-indicator-Bnj3H0Dm.js → semaphor-ready-indicator-HGEnCavj.js} +50770 -49867
  44. package/dist/chunks/{shelf-drop-preview-context-B8rmn6BD.js → shelf-drop-preview-context-DaCXCdMA.js} +112 -112
  45. package/dist/chunks/{stored-dashboard-CURqJgoa.js → stored-dashboard-CksluF2S.js} +1539 -1404
  46. package/dist/chunks/{style-sheet-parts-_dGSFzDi.js → style-sheet-parts-CmXmKqGw.js} +33 -33
  47. package/dist/chunks/{table-export-sheet-Dmtqi5NV.js → table-export-sheet-ClSgERQC.js} +1 -1
  48. package/dist/chunks/{token-types-DEe_FP4l.js → token-types-DTocOcwt.js} +1 -1
  49. package/dist/chunks/{upload-CtyOkU_B.js → upload-DDYc1Qjj.js} +1 -1
  50. package/dist/chunks/{validators-CJ8Jh0E8.js → validators-CrYXNnNE.js} +51 -49
  51. package/dist/chunks/{variable-draft-DIv-9y6Q.js → variable-draft-rbtGPvmX.js} +16 -14
  52. package/dist/chunks/visual-choice-DDfHfHvY.js +172 -0
  53. package/dist/dashboard/index.js +2 -2
  54. package/dist/dashboard-authoring/index.js +821 -791
  55. package/dist/format-utils/index.js +162 -158
  56. package/dist/index.js +214 -215
  57. package/dist/report-runtime-context/index.js +2 -2
  58. package/dist/style.css +1 -1
  59. package/dist/surfboard/index.js +2 -2
  60. package/dist/types/index.js +5 -5
  61. package/dist/types/lib/dashboard-view-state/card-view-state.d.ts +39 -2
  62. package/dist/types/lib/dashboard-view-state/date-zoom.d.ts +65 -0
  63. package/dist/types/lib/dashboard-view-state/grain-pick.d.ts +38 -0
  64. package/dist/types/lib/dashboard-view-state/index.d.ts +2 -0
  65. package/dist/types/lib/formatters/grouped-temporal-presentation.d.ts +6 -2
  66. package/dist/types/lib/hooks/interactions/use-drill-actions.d.ts +1 -1
  67. package/dist/types/lib/interactions/get-click-context-from-table.d.ts +2 -2
  68. package/dist/types/lib/query-context/assemble-card-query.d.ts +2 -1
  69. package/dist/types/lib/query-context/build-card-query-context.d.ts +15 -1
  70. package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +3 -0
  71. package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +14 -1
  72. package/dist/types/lib/stores/dashboard-store.d.ts +7 -1
  73. package/dist/types/lib/types/explorer-types.d.ts +13 -0
  74. package/dist/types/lib/utils/card-config-utils.d.ts +1 -1
  75. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +32 -0
  76. package/dist/types/shared/analytics-protocol/contracts.d.ts +30 -0
  77. package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +13 -0
  78. package/dist/types/shared/dashboard-authoring/automatic-grain.d.ts +77 -0
  79. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
  80. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +13 -8
  81. package/dist/types/shared/dashboard-authoring/control-value-resolution.d.ts +24 -0
  82. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  83. package/dist/types/shared/dashboard-authoring/kpi-trend-rule.d.ts +6 -29
  84. package/dist/types/shared/dashboard-authoring/variable-draft.d.ts +1 -0
  85. package/dist/types/shared/format-utils/index.d.ts +1 -0
  86. package/dist/types/shared/format-utils/partial-period.d.ts +40 -0
  87. package/dist/types/shared/format-utils/temporal-bucket.d.ts +11 -0
  88. package/dist/types/shared/usage-events/details.d.ts +2 -2
  89. package/dist/usage-events/index.js +1 -1
  90. package/package.json +1 -1
  91. package/dist/chunks/dates-5z3b9Loo.js +0 -136
  92. package/dist/chunks/report-preferences-dialog-CXKmWyLm.js +0 -2028
  93. package/dist/chunks/selection-filter-compiler-BReJy-uv.js +0 -92
  94. package/dist/chunks/visual-choice-BBPizkRo.js +0 -206
@@ -1,16 +1,16 @@
1
1
  import { jsxs as Ne, jsx as N, Fragment as ft } from "react/jsx-runtime";
2
2
  import * as T from "react";
3
3
  import zn, { forwardRef as Fe, createElement as xe, useContext as rt, createContext as xt, useRef as O, useLayoutEffect as Pn, useImperativeHandle as zt, useEffect as ne, useState as de, useCallback as G, useMemo as W, memo as wn, Suspense as Cn, useSyncExternalStore as En } from "react";
4
- import { aX as In, ag as ie, aY as Pt, aZ as Rn, ah as wt, a_ as ot, a$ as Ct, b0 as Et, b1 as Dn, b2 as An, b3 as Nn, b4 as Mn, u as Re, b5 as Ln, b6 as _n, b7 as kn, b8 as Tn, b9 as Hn, ba as Vn, bb as $n, bc as Fn, bd as Kn } from "./semaphor-ready-indicator-Bnj3H0Dm.js";
5
- import { C as It, G as Rt, H as ze, J as me, K as Dt, M as Bn, O as qn, Q as Pe, U as On, V as At, W as Gn, Y as Un } from "./style-sheet-parts-_dGSFzDi.js";
6
- import { R as Wn, S as Nt, U as Mt, V as Je, W as Te, X as Yn, Y as Xn, Z as jn, T as Qn } from "./resolve-dashboard-input-context-zEXuitoF.js";
4
+ import { b1 as In, am as ie, b2 as Pt, b3 as Rn, an as wt, b4 as ot, b5 as Ct, b6 as Et, b7 as Dn, b8 as An, b9 as Nn, ba as Mn, u as Re, bb as Ln, bc as _n, bd as kn, be as Tn, bf as Hn, bg as Vn, bh as $n, bi as Fn, bj as Kn } from "./semaphor-ready-indicator-HGEnCavj.js";
5
+ import { C as It, G as Rt, H as ze, J as me, K as Dt, M as Bn, O as qn, Q as Pe, U as On, V as At, W as Gn, Y as Un } from "./style-sheet-parts-CmXmKqGw.js";
6
+ import { R as Wn, S as Nt, U as Mt, V as Je, W as Te, X as Yn, Y as Xn, Z as jn, T as Qn } from "./resolve-dashboard-input-context-DFBIngUZ.js";
7
7
  import { c as we } from "./pickers-DkqmtnTL.js";
8
- import "./validators-CJ8Jh0E8.js";
9
- import "./matrix-operation-contract-BM5TveR3.js";
10
- import "./analytics-base-schemas-BaIQrEzX.js";
8
+ import "./validators-CrYXNnNE.js";
9
+ import "./matrix-operation-contract-JSmproo9.js";
10
+ import "./analytics-base-schemas-8wz9vqn_.js";
11
11
  import "../value-format-preferences/index.js";
12
12
  import { u as Jn } from "./appearance-context-BwBp25ZG.js";
13
- const bo = zn.memo(function({
13
+ const So = zn.memo(function({
14
14
  context: t = "editor"
15
15
  } = {}) {
16
16
  return /* @__PURE__ */ Ne(
@@ -288,7 +288,7 @@ function Ht(e) {
288
288
  return t && t instanceof ShadowRoot ? t.host : t;
289
289
  }
290
290
  const Vt = 1, $t = 2, Ft = 4, Kt = 8, ur = or() === "coarse";
291
- let se = [], be = !1, pe = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new Map();
291
+ let se = [], Se = !1, pe = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new Map();
292
292
  const Me = /* @__PURE__ */ new Set();
293
293
  function dr(e, t, n, r, i) {
294
294
  var o;
@@ -317,7 +317,7 @@ function fr(e) {
317
317
  x: n,
318
318
  y: r
319
319
  } = Be(e);
320
- be = !0, lt({
320
+ Se = !0, lt({
321
321
  target: t,
322
322
  x: n,
323
323
  y: r
@@ -328,7 +328,7 @@ function Ye(e) {
328
328
  x: t,
329
329
  y: n
330
330
  } = Be(e);
331
- if (be && e.buttons === 0 && (be = !1, $e("up", e)), !be) {
331
+ if (Se && e.buttons === 0 && (Se = !1, $e("up", e)), !Se) {
332
332
  const {
333
333
  target: r
334
334
  } = e;
@@ -347,7 +347,7 @@ function Xe(e) {
347
347
  x: n,
348
348
  y: r
349
349
  } = Be(e);
350
- qe.clear(), be = !1, se.length > 0 && (e.preventDefault(), Bt(t) || e.stopImmediatePropagation()), $e("up", e), lt({
350
+ qe.clear(), Se = !1, se.length > 0 && (e.preventDefault(), Bt(t) || e.stopImmediatePropagation()), $e("up", e), lt({
351
351
  target: t,
352
352
  x: n,
353
353
  y: r
@@ -422,7 +422,7 @@ function Ve() {
422
422
  capture: !0,
423
423
  signal: Qe.signal
424
424
  };
425
- Me.size && (be ? (se.length > 0 && pe.forEach((t, n) => {
425
+ Me.size && (Se ? (se.length > 0 && pe.forEach((t, n) => {
426
426
  const {
427
427
  body: r
428
428
  } = n;
@@ -469,7 +469,7 @@ function mr(e, t, n) {
469
469
  }
470
470
  return !0;
471
471
  }
472
- function Se({
472
+ function be({
473
473
  panelConstraints: e,
474
474
  panelIndex: t,
475
475
  size: n
@@ -543,7 +543,7 @@ function De({
543
543
  for (; ; ) {
544
544
  const g = t[c];
545
545
  I(g != null, `Previous layout not found for panel index ${c}`);
546
- const h = Se({
546
+ const h = be({
547
547
  panelConstraints: n,
548
548
  panelIndex: c,
549
549
  size: 100
@@ -559,7 +559,7 @@ function De({
559
559
  for (; c >= 0 && c < n.length; ) {
560
560
  const m = Math.abs(e) - Math.abs(d), p = t[c];
561
561
  I(p != null, `Previous layout not found for panel index ${c}`);
562
- const g = p - m, y = Se({
562
+ const g = p - m, y = be({
563
563
  panelConstraints: n,
564
564
  panelIndex: c,
565
565
  size: g
@@ -576,7 +576,7 @@ function De({
576
576
  {
577
577
  const u = e < 0 ? a : l, c = t[u];
578
578
  I(c != null, `Previous layout not found for panel index ${u}`);
579
- const m = c + d, p = Se({
579
+ const m = c + d, p = be({
580
580
  panelConstraints: n,
581
581
  panelIndex: u,
582
582
  size: m
@@ -586,7 +586,7 @@ function De({
586
586
  for (; h >= 0 && h < n.length; ) {
587
587
  const A = s[h];
588
588
  I(A != null, `Previous layout not found for panel index ${h}`);
589
- const x = A + g, R = Se({
589
+ const x = A + g, R = be({
590
590
  panelConstraints: n,
591
591
  panelIndex: h,
592
592
  size: x
@@ -770,7 +770,7 @@ function vr(e, t, n, r, i) {
770
770
  const u = f.getBoundingClientRect(), c = o ? u.width : u.height;
771
771
  return (d - a) / c * 100;
772
772
  }
773
- function Sr(e, t, n, r, i, o) {
773
+ function br(e, t, n, r, i, o) {
774
774
  if (_t(e)) {
775
775
  const s = n === "horizontal";
776
776
  let l = 0;
@@ -800,7 +800,7 @@ function Sr(e, t, n, r, i, o) {
800
800
  } else
801
801
  return r == null ? 0 : vr(e, t, n, r, o);
802
802
  }
803
- function br({
803
+ function Sr({
804
804
  panelDataArray: e
805
805
  }) {
806
806
  const t = Array(e.length), n = e.map((o) => o.constraints);
@@ -943,7 +943,7 @@ function wr(e, t, n, r, i) {
943
943
  console.error(d);
944
944
  }
945
945
  }
946
- function St({
946
+ function bt({
947
947
  layout: e,
948
948
  panelConstraints: t
949
949
  }) {
@@ -961,7 +961,7 @@ function St({
961
961
  for (let o = 0; o < t.length; o++) {
962
962
  const s = n[o];
963
963
  I(s != null, `No layout data found for index ${o}`);
964
- const l = Se({
964
+ const l = be({
965
965
  panelConstraints: t,
966
966
  panelIndex: o,
967
967
  size: s
@@ -972,7 +972,7 @@ function St({
972
972
  for (let o = 0; o < t.length; o++) {
973
973
  const s = n[o];
974
974
  I(s != null, `No layout data found for index ${o}`);
975
- const l = s + i, a = Se({
975
+ const l = s + i, a = be({
976
976
  panelConstraints: t,
977
977
  panelIndex: o,
978
978
  size: l
@@ -987,7 +987,7 @@ const Cr = 100, Ae = {
987
987
  setItem: (e, t) => {
988
988
  vt(Ae), Ae.setItem(e, t);
989
989
  }
990
- }, bt = {};
990
+ }, St = {};
991
991
  function jt({
992
992
  autoSaveId: e = null,
993
993
  children: t,
@@ -1033,11 +1033,11 @@ function jt({
1033
1033
  } = L.current, {
1034
1034
  layout: E,
1035
1035
  panelDataArray: z
1036
- } = C.current, S = St({
1036
+ } = C.current, b = bt({
1037
1037
  layout: v,
1038
1038
  panelConstraints: z.map((w) => w.constraints)
1039
1039
  });
1040
- yt(E, S) || (h(S), C.current.layout = S, P && P(S), ye(z, S, x.current));
1040
+ yt(E, b) || (h(b), C.current.layout = b, P && P(b), ye(z, b, x.current));
1041
1041
  }
1042
1042
  }), []), ge(() => {
1043
1043
  L.current.autoSaveId = e, L.current.direction = r, L.current.dragState = p, L.current.id = c, L.current.onLayout = s, L.current.storage = a;
@@ -1056,8 +1056,8 @@ function jt({
1056
1056
  if (e) {
1057
1057
  if (y.length === 0 || y.length !== v.length)
1058
1058
  return;
1059
- let P = bt[e];
1060
- P == null && (P = zr(wr, Cr), bt[e] = P);
1059
+ let P = St[e];
1060
+ P == null && (P = zr(wr, Cr), St[e] = P);
1061
1061
  const E = [...v], z = new Map(R.current);
1062
1062
  P(e, E, z, y, a);
1063
1063
  }
@@ -1071,18 +1071,18 @@ function jt({
1071
1071
  panelDataArray: z
1072
1072
  } = C.current;
1073
1073
  if (v.constraints.collapsible) {
1074
- const S = z.map((H) => H.constraints), {
1074
+ const b = z.map((H) => H.constraints), {
1075
1075
  collapsedSize: w = 0,
1076
1076
  panelSize: k,
1077
- pivotIndices: b
1077
+ pivotIndices: S
1078
1078
  } = fe(z, v, E);
1079
1079
  if (I(k != null, `Panel size not found for panel "${v.id}"`), !ae(k, w)) {
1080
1080
  R.current.set(v.id, k);
1081
1081
  const Q = ve(z, v) === z.length - 1 ? k - w : w - k, V = De({
1082
1082
  delta: Q,
1083
1083
  initialLayout: E,
1084
- panelConstraints: S,
1085
- pivotIndices: b,
1084
+ panelConstraints: b,
1085
+ pivotIndices: S,
1086
1086
  prevLayout: E,
1087
1087
  trigger: "imperative-api"
1088
1088
  });
@@ -1094,17 +1094,17 @@ function jt({
1094
1094
  onLayout: E
1095
1095
  } = L.current, {
1096
1096
  layout: z,
1097
- panelDataArray: S
1097
+ panelDataArray: b
1098
1098
  } = C.current;
1099
1099
  if (v.constraints.collapsible) {
1100
- const w = S.map((oe) => oe.constraints), {
1100
+ const w = b.map((oe) => oe.constraints), {
1101
1101
  collapsedSize: k = 0,
1102
- panelSize: b = 0,
1102
+ panelSize: S = 0,
1103
1103
  minSize: H = 0,
1104
1104
  pivotIndices: Q
1105
- } = fe(S, v, z), V = P ?? H;
1106
- if (ae(b, k)) {
1107
- const oe = R.current.get(v.id), Ee = oe != null && oe >= V ? oe : V, Ue = ve(S, v) === S.length - 1 ? b - Ee : Ee - b, Z = De({
1105
+ } = fe(b, v, z), V = P ?? H;
1106
+ if (ae(S, k)) {
1107
+ const oe = R.current.get(v.id), Ee = oe != null && oe >= V ? oe : V, Ue = ve(b, v) === b.length - 1 ? S - Ee : Ee - S, Z = De({
1108
1108
  delta: Ue,
1109
1109
  initialLayout: z,
1110
1110
  panelConstraints: w,
@@ -1112,7 +1112,7 @@ function jt({
1112
1112
  prevLayout: z,
1113
1113
  trigger: "imperative-api"
1114
1114
  });
1115
- ke(z, Z) || (h(Z), C.current.layout = Z, E && E(Z), ye(S, Z, x.current));
1115
+ ke(z, Z) || (h(Z), C.current.layout = Z, E && E(Z), ye(b, Z, x.current));
1116
1116
  }
1117
1117
  }
1118
1118
  }, []), K = G((v) => {
@@ -1140,27 +1140,27 @@ function jt({
1140
1140
  panelDataArray: E
1141
1141
  } = C.current, {
1142
1142
  collapsedSize: z = 0,
1143
- collapsible: S,
1143
+ collapsible: b,
1144
1144
  panelSize: w
1145
1145
  } = fe(E, v, P);
1146
- return I(w != null, `Panel size not found for panel "${v.id}"`), S === !0 && ae(w, z);
1146
+ return I(w != null, `Panel size not found for panel "${v.id}"`), b === !0 && ae(w, z);
1147
1147
  }, []), U = G((v) => {
1148
1148
  const {
1149
1149
  layout: P,
1150
1150
  panelDataArray: E
1151
1151
  } = C.current, {
1152
1152
  collapsedSize: z = 0,
1153
- collapsible: S,
1153
+ collapsible: b,
1154
1154
  panelSize: w
1155
1155
  } = fe(E, v, P);
1156
- return I(w != null, `Panel size not found for panel "${v.id}"`), !S || he(w, z) > 0;
1156
+ return I(w != null, `Panel size not found for panel "${v.id}"`), !b || he(w, z) > 0;
1157
1157
  }, []), B = G((v) => {
1158
1158
  const {
1159
1159
  panelDataArray: P
1160
1160
  } = C.current;
1161
1161
  P.push(v), P.sort((E, z) => {
1162
- const S = E.order, w = z.order;
1163
- return S == null && w == null ? 0 : S == null ? -1 : w == null ? 1 : S - w;
1162
+ const b = E.order, w = z.order;
1163
+ return b == null && w == null ? 0 : b == null ? -1 : w == null ? 1 : b - w;
1164
1164
  }), C.current.panelDataArrayChanged = !0, A();
1165
1165
  }, [A]);
1166
1166
  ge(() => {
@@ -1172,21 +1172,21 @@ function jt({
1172
1172
  storage: E
1173
1173
  } = L.current, {
1174
1174
  layout: z,
1175
- panelDataArray: S
1175
+ panelDataArray: b
1176
1176
  } = C.current;
1177
1177
  let w = null;
1178
1178
  if (v) {
1179
- const b = Pr(v, S, E);
1180
- b && (R.current = new Map(Object.entries(b.expandToSizes)), w = b.layout);
1179
+ const S = Pr(v, b, E);
1180
+ S && (R.current = new Map(Object.entries(S.expandToSizes)), w = S.layout);
1181
1181
  }
1182
- w == null && (w = br({
1183
- panelDataArray: S
1182
+ w == null && (w = Sr({
1183
+ panelDataArray: b
1184
1184
  }));
1185
- const k = St({
1185
+ const k = bt({
1186
1186
  layout: w,
1187
- panelConstraints: S.map((b) => b.constraints)
1187
+ panelConstraints: b.map((S) => S.constraints)
1188
1188
  });
1189
- yt(z, k) || (h(k), C.current.layout = k, P && P(k), ye(S, k, x.current));
1189
+ yt(z, k) || (h(k), C.current.layout = k, P && P(k), ye(b, k, x.current));
1190
1190
  }
1191
1191
  }), ge(() => {
1192
1192
  const v = C.current;
@@ -1197,14 +1197,14 @@ function jt({
1197
1197
  const $ = G((v) => {
1198
1198
  let P = !1;
1199
1199
  const E = m.current;
1200
- return E && window.getComputedStyle(E, null).getPropertyValue("direction") === "rtl" && (P = !0), function(S) {
1201
- S.preventDefault();
1200
+ return E && window.getComputedStyle(E, null).getPropertyValue("direction") === "rtl" && (P = !0), function(b) {
1201
+ b.preventDefault();
1202
1202
  const w = m.current;
1203
1203
  if (!w)
1204
1204
  return () => null;
1205
1205
  const {
1206
1206
  direction: k,
1207
- dragState: b,
1207
+ dragState: S,
1208
1208
  id: H,
1209
1209
  keyboardResizeBy: Q,
1210
1210
  onLayout: V
@@ -1213,56 +1213,56 @@ function jt({
1213
1213
  panelDataArray: Ee
1214
1214
  } = C.current, {
1215
1215
  initialLayout: _e
1216
- } = b ?? {}, Ue = Ot(H, v, w);
1217
- let Z = Sr(S, v, k, b, Q, w);
1216
+ } = S ?? {}, Ue = Ot(H, v, w);
1217
+ let Z = br(b, v, k, S, Q, w);
1218
1218
  const ut = k === "horizontal";
1219
1219
  ut && P && (Z = -Z);
1220
- const bn = Ee.map((xn) => xn.constraints), Ie = De({
1220
+ const Sn = Ee.map((xn) => xn.constraints), Ie = De({
1221
1221
  delta: Z,
1222
1222
  initialLayout: _e ?? oe,
1223
- panelConstraints: bn,
1223
+ panelConstraints: Sn,
1224
1224
  pivotIndices: Ue,
1225
1225
  prevLayout: oe,
1226
- trigger: _t(S) ? "keyboard" : "mouse-or-touch"
1226
+ trigger: _t(b) ? "keyboard" : "mouse-or-touch"
1227
1227
  }), dt = !ke(oe, Ie);
1228
- (kt(S) || Tt(S)) && D.current != Z && (D.current = Z, !dt && Z !== 0 ? ut ? je(v, Z < 0 ? Vt : $t) : je(v, Z < 0 ? Ft : Kt) : je(v, 0)), dt && (h(Ie), C.current.layout = Ie, V && V(Ie), ye(Ee, Ie, x.current));
1228
+ (kt(b) || Tt(b)) && D.current != Z && (D.current = Z, !dt && Z !== 0 ? ut ? je(v, Z < 0 ? Vt : $t) : je(v, Z < 0 ? Ft : Kt) : je(v, 0)), dt && (h(Ie), C.current.layout = Ie, V && V(Ie), ye(Ee, Ie, x.current));
1229
1229
  };
1230
1230
  }, []), F = G((v, P) => {
1231
1231
  const {
1232
1232
  onLayout: E
1233
1233
  } = L.current, {
1234
1234
  layout: z,
1235
- panelDataArray: S
1236
- } = C.current, w = S.map((oe) => oe.constraints), {
1235
+ panelDataArray: b
1236
+ } = C.current, w = b.map((oe) => oe.constraints), {
1237
1237
  panelSize: k,
1238
- pivotIndices: b
1239
- } = fe(S, v, z);
1238
+ pivotIndices: S
1239
+ } = fe(b, v, z);
1240
1240
  I(k != null, `Panel size not found for panel "${v.id}"`);
1241
- const Q = ve(S, v) === S.length - 1 ? k - P : P - k, V = De({
1241
+ const Q = ve(b, v) === b.length - 1 ? k - P : P - k, V = De({
1242
1242
  delta: Q,
1243
1243
  initialLayout: z,
1244
1244
  panelConstraints: w,
1245
- pivotIndices: b,
1245
+ pivotIndices: S,
1246
1246
  prevLayout: z,
1247
1247
  trigger: "imperative-api"
1248
1248
  });
1249
- ke(z, V) || (h(V), C.current.layout = V, E && E(V), ye(S, V, x.current));
1249
+ ke(z, V) || (h(V), C.current.layout = V, E && E(V), ye(b, V, x.current));
1250
1250
  }, []), j = G((v, P) => {
1251
1251
  const {
1252
1252
  layout: E,
1253
1253
  panelDataArray: z
1254
1254
  } = C.current, {
1255
- collapsedSize: S = 0,
1255
+ collapsedSize: b = 0,
1256
1256
  collapsible: w
1257
1257
  } = P, {
1258
1258
  collapsedSize: k = 0,
1259
- collapsible: b,
1259
+ collapsible: S,
1260
1260
  maxSize: H = 100,
1261
1261
  minSize: Q = 0
1262
1262
  } = v.constraints, {
1263
1263
  panelSize: V
1264
1264
  } = fe(z, v, E);
1265
- V != null && (w && b && ae(V, S) ? ae(S, k) || F(v, k) : V < Q ? F(v, Q) : V > H && F(v, H));
1265
+ V != null && (w && S && ae(V, b) ? ae(b, k) || F(v, k) : V < Q ? F(v, Q) : V > H && F(v, H));
1266
1266
  }, [F]), Y = G((v, P) => {
1267
1267
  const {
1268
1268
  direction: E
@@ -1271,12 +1271,12 @@ function jt({
1271
1271
  } = C.current;
1272
1272
  if (!m.current)
1273
1273
  return;
1274
- const S = Oe(v, m.current);
1275
- I(S, `Drag handle element not found for id "${v}"`);
1274
+ const b = Oe(v, m.current);
1275
+ I(b, `Drag handle element not found for id "${v}"`);
1276
1276
  const w = Ut(E, P);
1277
1277
  g({
1278
1278
  dragHandleId: v,
1279
- dragHandleRect: S.getBoundingClientRect(),
1279
+ dragHandleRect: b.getBoundingClientRect(),
1280
1280
  initialCursorPosition: w,
1281
1281
  initialLayout: z
1282
1282
  });
@@ -1457,27 +1457,27 @@ function Rr({
1457
1457
  case "down": {
1458
1458
  _("drag"), re = !1, I(z, 'Expected event to be defined for "down" action'), C(K, z);
1459
1459
  const {
1460
- onDragging: S,
1460
+ onDragging: b,
1461
1461
  onPointerDown: w
1462
1462
  } = A.current;
1463
- S == null || S(!0), w == null || w();
1463
+ b == null || b(!0), w == null || w();
1464
1464
  break;
1465
1465
  }
1466
1466
  case "move": {
1467
1467
  const {
1468
- state: S
1468
+ state: b
1469
1469
  } = j.current;
1470
- re = !0, S !== "drag" && _("hover"), I(z, 'Expected event to be defined for "move" action'), $(z);
1470
+ re = !0, b !== "drag" && _("hover"), I(z, 'Expected event to be defined for "move" action'), $(z);
1471
1471
  break;
1472
1472
  }
1473
1473
  case "up": {
1474
1474
  _("hover"), X();
1475
1475
  const {
1476
- onClick: S,
1476
+ onClick: b,
1477
1477
  onDragging: w,
1478
1478
  onPointerUp: k
1479
1479
  } = A.current;
1480
- w == null || w(!1), k == null || k(), re || S == null || S();
1480
+ w == null || w(!1), k == null || k(), re || b == null || b();
1481
1481
  break;
1482
1482
  }
1483
1483
  }
@@ -1686,22 +1686,22 @@ function Lr({ className: e }, t) {
1686
1686
  }
1687
1687
  const zo = Fe(Lr);
1688
1688
  function _r({ card: e }) {
1689
- var E, z, S, w, k;
1689
+ var E, z, b, w, k;
1690
1690
  const t = Dn(), [n, r] = de({}), { authToken: i } = An(), o = Xn(i == null ? void 0 : i.accessToken), { compiledAppearance: s } = Jn(), l = W(
1691
1691
  () => Nn(s),
1692
1692
  [s]
1693
- ), a = ie((b) => b.frame), d = ie(
1694
- (b) => b.inlineFilterValuesMap[e.id]
1693
+ ), a = ie((S) => S.frame), d = ie(
1694
+ (S) => S.inlineFilterValuesMap[e.id]
1695
1695
  ), f = ie(
1696
- (b) => b.actions.setCardInlineFilterValue
1696
+ (S) => S.actions.setCardInlineFilterValue
1697
1697
  ), u = ie(
1698
- (b) => b.actions.removeCardInlineFilterValue
1698
+ (S) => S.actions.removeCardInlineFilterValue
1699
1699
  ), c = e, { getCard: m, manifest: p } = Pt(
1700
1700
  ((E = c.customCardPreferences) == null ? void 0 : E.url) || ""
1701
1701
  ), g = (z = p == null ? void 0 : p.visuals) == null ? void 0 : z.find(
1702
- (b) => {
1702
+ (S) => {
1703
1703
  var H;
1704
- return b.name === ((H = c.customCardPreferences) == null ? void 0 : H.componentName);
1704
+ return S.name === ((H = c.customCardPreferences) == null ? void 0 : H.componentName);
1705
1705
  }
1706
1706
  ), y = Nt(c, g) ?? "single", h = W(
1707
1707
  () => Mt({
@@ -1711,10 +1711,10 @@ function _r({ card: e }) {
1711
1711
  }),
1712
1712
  [a, c, y]
1713
1713
  ), A = W(() => {
1714
- const b = h.findIndex(
1714
+ const S = h.findIndex(
1715
1715
  (H) => (H == null ? void 0 : H.id) === e.id
1716
1716
  );
1717
- return b < 0 ? -1 : Je(e, b);
1717
+ return S < 0 ? -1 : Je(e, S);
1718
1718
  }, [h, e]), x = W(() => y !== "multiple" || A < 0 ? e.type : Te(
1719
1719
  e,
1720
1720
  A,
@@ -1727,22 +1727,22 @@ function _r({ card: e }) {
1727
1727
  python: "",
1728
1728
  config: void 0,
1729
1729
  queryConfig: void 0
1730
- } : x !== e.type ? { ...e, type: x } : e, [e, x, y]), { data: D, effectiveCardConfig: L, renderCard: C } = ot(R), X = Mn(), J = Re((b) => b.dashboard), K = Re(
1731
- (b) => b.dashboardInputValues
1730
+ } : x !== e.type ? { ...e, type: x } : e, [e, x, y]), { data: D, effectiveCardConfig: L, renderCard: C } = ot(R), X = Mn(), J = Re((S) => S.dashboard), K = Re(
1731
+ (S) => S.dashboardInputValues
1732
1732
  ), M = Re(
1733
- (b) => b.adHocFilterValues
1733
+ (S) => S.adHocFilterValues
1734
1734
  ), _ = Re(
1735
- (b) => {
1735
+ (S) => {
1736
1736
  var H;
1737
- return ((H = b.reportContext) == null ? void 0 : H.calendar) ?? null;
1737
+ return ((H = S.reportContext) == null ? void 0 : H.calendar) ?? null;
1738
1738
  }
1739
- ), U = Re((b) => b.selectedSheetId), B = W(
1739
+ ), U = Re((S) => S.selectedSheetId), B = W(
1740
1740
  () => Ln({
1741
1741
  card: e,
1742
1742
  sheetId: U || "",
1743
1743
  inlineFilterValues: d,
1744
- setInlineFilterValue: (b) => f(e.id, b),
1745
- removeInlineFilterValue: (b) => u(e.id, b)
1744
+ setInlineFilterValue: (S) => f(e.id, S),
1745
+ removeInlineFilterValue: (S) => u(e.id, S)
1746
1746
  }),
1747
1747
  [
1748
1748
  e,
@@ -1775,15 +1775,15 @@ function _r({ card: e }) {
1775
1775
  X
1776
1776
  ]
1777
1777
  ), Y = G(
1778
- (b, H) => {
1778
+ (S, H) => {
1779
1779
  const Q = jn(H);
1780
1780
  r((V) => ({
1781
1781
  ...V,
1782
- [b]: Q
1782
+ [S]: Q
1783
1783
  }));
1784
1784
  },
1785
1785
  []
1786
- ), te = (S = c.customCardPreferences) == null ? void 0 : S.componentName, ce = te ? m(te) : null, le = kn(
1786
+ ), te = (b = c.customCardPreferences) == null ? void 0 : b.componentName, ce = te ? m(te) : null, le = kn(
1787
1787
  (w = c.customCardPreferences) == null ? void 0 : w.settings,
1788
1788
  c
1789
1789
  ), re = W(
@@ -1791,8 +1791,8 @@ function _r({ card: e }) {
1791
1791
  [h]
1792
1792
  ), v = W(
1793
1793
  () => re.map(
1794
- (b, H) => Te(
1795
- b,
1794
+ (S, H) => Te(
1795
+ S,
1796
1796
  H,
1797
1797
  g == null ? void 0 : g.slots
1798
1798
  )
@@ -1856,10 +1856,10 @@ function _r({ card: e }) {
1856
1856
  }
1857
1857
  ),
1858
1858
  ce && y === "multiple" && /* @__PURE__ */ Ne(ft, { children: [
1859
- h.map((b, H) => {
1860
- if (!b) return null;
1861
- const Q = Je(b, H), V = Te(
1862
- b,
1859
+ h.map((S, H) => {
1860
+ if (!S) return null;
1861
+ const Q = Je(S, H), V = Te(
1862
+ S,
1863
1863
  Q,
1864
1864
  g == null ? void 0 : g.slots
1865
1865
  );
@@ -1867,10 +1867,10 @@ function _r({ card: e }) {
1867
1867
  $n,
1868
1868
  {
1869
1869
  onDataChange: Y,
1870
- card: b,
1870
+ card: S,
1871
1871
  effectiveCardType: V
1872
1872
  },
1873
- `${b.id}-${Q}`
1873
+ `${S.id}-${Q}`
1874
1874
  );
1875
1875
  }),
1876
1876
  /* @__PURE__ */ N("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ N(
@@ -2429,17 +2429,17 @@ const io = T.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ Ne(
2429
2429
  ));
2430
2430
  io.displayName = vn.displayName;
2431
2431
  const so = xt(null), lo = Kn();
2432
- function Sn(e) {
2432
+ function bn(e) {
2433
2433
  const t = rt(so) ?? lo;
2434
2434
  return En(t.subscribe, () => e(t.get()), () => e(null));
2435
2435
  }
2436
2436
  function wo(e) {
2437
- return Sn(
2437
+ return bn(
2438
2438
  G((t) => (t == null ? void 0 : t.slot.zone) === e ? t.outcome : null, [e])
2439
2439
  );
2440
2440
  }
2441
2441
  function Co(e, t, n) {
2442
- return Sn(
2442
+ return bn(
2443
2443
  G(
2444
2444
  (r) => (r == null ? void 0 : r.slot.zone) !== e || r.outcome.kind === "refused" ? null : r.slot.beforeId === t ? "top" : !r.slot.beforeId && n ? "bottom" : null,
2445
2445
  [e, t, n]
@@ -2449,7 +2449,7 @@ function Co(e, t, n) {
2449
2449
  export {
2450
2450
  Vr as A,
2451
2451
  Po as E,
2452
- bo as F,
2452
+ So as F,
2453
2453
  tr as P,
2454
2454
  xo as S,
2455
2455
  Tr as T,