react-semaphor 0.1.568 → 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 (191) hide show
  1. package/README.md +0 -7
  2. package/dist/analytics-protocol/index.js +434 -454
  3. package/dist/appearance/index.js +6 -3
  4. package/dist/appearance-runtime/index.js +1 -1
  5. package/dist/assistant-context/index.js +1 -1
  6. package/dist/brand-studio/index.js +572 -436
  7. package/dist/briefings/index.js +4 -4
  8. package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
  9. package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
  10. package/dist/chunks/assistant-chat-B-Ddyy8b.js +5940 -0
  11. package/dist/chunks/{bookmark-impact-CJ-65omV.js → bookmark-impact-DCYD-6Fr.js} +2 -2
  12. package/dist/chunks/{bookmark-state-Du3s13_V.js → bookmark-state-CflS88gq.js} +251 -250
  13. package/dist/chunks/brand-B4BdpAB_.js +54 -0
  14. package/dist/chunks/{card-filter-builder-BBuB99GZ.js → card-filter-builder-0VvKmRst.js} +992 -991
  15. package/dist/chunks/{comparison-window-caption-CMLb3mut.js → comparison-window-caption-PtcDWvkN.js} +252 -253
  16. package/dist/chunks/{dashboard-YnWZC4dK.js → dashboard-DxGIr1vZ.js} +1 -1
  17. package/dist/chunks/{dashboard-briefing-launcher-BF89TU2h.js → dashboard-briefing-launcher-B-quOOOQ.js} +253 -253
  18. package/dist/chunks/{dashboard-controls-atHc1EjP.js → dashboard-controls-Caodx80b.js} +288 -285
  19. package/dist/chunks/dashboard-json-Ct-AGDHF.js +66 -0
  20. package/dist/chunks/{dates-CKO05ino.js → dates-B9mL8BHE.js} +16 -15
  21. package/dist/chunks/edit-Bpdh_P_a.js +226 -0
  22. package/dist/chunks/{edit-dashboard-visual-DdmTfn-J.js → edit-dashboard-visual-DeDTuYB5.js} +2257 -2270
  23. package/dist/chunks/{filter-reach-copy-jZGzK_IH.js → filter-reach-copy-BSY33ro5.js} +1440 -1301
  24. package/dist/chunks/filter-value-text-DvvSNlho.js +146 -0
  25. package/dist/chunks/index-BVKzKl5d.js +90 -0
  26. package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
  27. package/dist/chunks/{index-CPNZW0mu.js → index-y3HUzRNk.js} +76 -77
  28. package/dist/chunks/{layout-grid-0hIlqEtk.js → layout-grid-8rR-LPTk.js} +1 -1
  29. package/dist/chunks/{list-filter-DkgoCeBm.js → list-filter-C1-uTgjR.js} +1 -1
  30. package/dist/chunks/matrix-analytical-definition-dkS8szLM.js +1253 -0
  31. package/dist/chunks/matrix-member-presentation-DRa-9e6Q.js +169 -0
  32. package/dist/chunks/{matrix-operation-contract-Eb6elidS.js → matrix-operation-contract-DCVinw1o.js} +122 -122
  33. package/dist/chunks/{metric-comparison-ChXUFaZu.js → metric-comparison-n9NsIa-2.js} +175 -128
  34. package/dist/chunks/paintbrush-aR17Z3C9.js +27 -0
  35. package/dist/chunks/{palette-4vf2BEEg.js → palette-a5FCZKFI.js} +1 -1
  36. package/dist/chunks/{_commonjsHelpers-DimLPMtv.js → pickers-DkqmtnTL.js} +352 -290
  37. package/dist/chunks/pivot-result-contract-expectations-C-HnUKYe.js +55 -0
  38. package/dist/chunks/{pivot-result-identity-BlbLrqaC.js → pivot-result-identity-B89X5xjb.js} +1 -1
  39. package/dist/chunks/raw-temporal-value-DdT0s47W.js +159 -0
  40. package/dist/chunks/{report-preferences-dialog-Mbd-I0wV.js → report-preferences-dialog-Yvhv3WX2.js} +95 -97
  41. package/dist/chunks/{report-runtime-context-DnA_PiKo.js → report-runtime-context-BhPzLTbS.js} +1 -1
  42. package/dist/chunks/{resolve-dashboard-input-context-Du0fjN3h.js → resolve-dashboard-input-context-Lkbwycwe.js} +5491 -5683
  43. package/dist/chunks/resolver-DG_tfEpt.js +156 -0
  44. package/dist/chunks/{save-D6pHmSSP.js → save-D985VvYp.js} +1 -1
  45. package/dist/chunks/{saved-dashboard-context-y8N6RvjS.js → saved-dashboard-context-DC_TEd6y.js} +6 -6
  46. package/dist/chunks/schema-C9NPiIru.js +2568 -0
  47. package/dist/chunks/{semaphor-ready-indicator-BSEdUq40.js → semaphor-ready-indicator-ByFvqHEO.js} +35916 -36001
  48. package/dist/chunks/{shelf-drop-preview-context-D7QqPl36.js → shelf-drop-preview-context-CjoVaK6J.js} +64 -66
  49. package/dist/chunks/{stored-dashboard-d3xQYxBD.js → stored-dashboard-C0hekXiI.js} +332 -333
  50. package/dist/chunks/{code-editor-DJNOsgJH.js → style-sheet-parts-C7qGZuH1.js} +2402 -2040
  51. package/dist/chunks/{table-export-sheet--DUKWk6o.js → table-export-sheet-CP8zSOhj.js} +1 -1
  52. package/dist/chunks/{temporal-input-presentation--2r9BLr0.js → temporal-input-presentation-CqbJjIuu.js} +18 -18
  53. package/dist/chunks/{token-types-C8JymO8s.js → token-types-iKMplaBL.js} +1 -1
  54. package/dist/chunks/{upload-Cf3wXZT8.js → upload-CiGNKJ_0.js} +1 -1
  55. package/dist/chunks/validators-B8fpdinG.js +3651 -0
  56. package/dist/chunks/{variable-draft-DOX03R4A.js → variable-draft-9-huI1h4.js} +4 -4
  57. package/dist/dashboard/index.js +2 -2
  58. package/dist/dashboard-authoring/index.js +1888 -1826
  59. package/dist/format-utils/index.js +230 -231
  60. package/dist/index.js +349 -353
  61. package/dist/layouts/index.js +1 -1
  62. package/dist/report-runtime-context/index.js +1 -1
  63. package/dist/style.css +1 -1
  64. package/dist/surfboard/index.js +2 -2
  65. package/dist/types/appearance/index.d.ts +1 -0
  66. package/dist/types/brand-studio/brand-studio-draft.d.ts +7 -0
  67. package/dist/types/brand-studio/index.d.ts +1 -1
  68. package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
  69. package/dist/types/components/providers/appearance-runtime-provider.d.ts +4 -1
  70. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -2
  71. package/dist/types/components/sharing-and-management/utils/types.d.ts +0 -72
  72. package/dist/types/components/surfboard/filter/types.d.ts +5 -4
  73. package/dist/types/components/ui-custom/date-range-presets.d.ts +1 -17
  74. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -1
  75. package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -9
  76. package/dist/types/components/visual/data-table/utils/pagination-utils.d.ts +0 -19
  77. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -1
  78. package/dist/types/index.js +9 -9
  79. package/dist/types/lib/appearance/aliases.d.ts +42 -0
  80. package/dist/types/lib/appearance/compiler.d.ts +6 -0
  81. package/dist/types/lib/appearance/defaults.d.ts +6 -0
  82. package/dist/types/lib/appearance/index.d.ts +2 -0
  83. package/dist/types/lib/appearance/normalize-organization.d.ts +17 -0
  84. package/dist/types/lib/appearance/resolver.d.ts +2 -2
  85. package/dist/types/lib/appearance/types.d.ts +38 -1
  86. package/dist/types/lib/charts/types.d.ts +6 -2
  87. package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -1
  88. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +0 -2
  89. package/dist/types/lib/dashboard-variables/types.d.ts +1 -6
  90. package/dist/types/lib/download-pdf.d.ts +0 -1
  91. package/dist/types/lib/hooks/use-dashboard.d.ts +3 -4
  92. package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
  93. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
  94. package/dist/types/lib/stores/dashboard-store.d.ts +15 -6
  95. package/dist/types/lib/stores/editor-store.d.ts +0 -1
  96. package/dist/types/lib/stores/table-actions.d.ts +0 -1
  97. package/dist/types/lib/table-formatting/table-formatting-css.d.ts +0 -5
  98. package/dist/types/lib/types/common-types.d.ts +3 -2
  99. package/dist/types/lib/types/explorer-types.d.ts +2 -2
  100. package/dist/types/lib/types/index.d.ts +1 -1
  101. package/dist/types/lib/types/summary-types.d.ts +0 -5
  102. package/dist/types/lib/utils/card-definition.d.ts +7 -7
  103. package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +84 -0
  104. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +4 -4
  105. package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +2 -2
  106. package/dist/types/shared/analytics-protocol/contracts.d.ts +8 -17
  107. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
  108. package/dist/types/shared/analytics-protocol/fixtures.d.ts +3 -2
  109. package/dist/types/shared/analytics-protocol/index.d.ts +2 -4
  110. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +72 -72
  111. package/dist/types/shared/analytics-protocol/relative-date/describe.d.ts +18 -0
  112. package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +7 -0
  113. package/dist/types/shared/analytics-protocol/relative-date/limits.d.ts +3 -0
  114. package/dist/types/shared/analytics-protocol/relative-date/presets.d.ts +11 -0
  115. package/dist/types/shared/analytics-protocol/relative-date/resolve.d.ts +49 -0
  116. package/dist/types/shared/analytics-protocol/relative-date/schemas.d.ts +76 -0
  117. package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +51 -0
  118. package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +111 -0
  119. package/dist/types/shared/analytics-protocol/selection-contract.d.ts +1 -1
  120. package/dist/types/shared/assistant-protocol/context.d.ts +30 -30
  121. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +0 -2
  122. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +344 -1772
  123. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
  124. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -4
  125. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +9 -0
  126. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +104 -104
  127. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +20 -20
  128. package/dist/types/shared/dashboard-authoring/dashboard-style/bounds.d.ts +17 -0
  129. package/dist/types/shared/dashboard-authoring/dashboard-style/brand.d.ts +20 -0
  130. package/dist/types/shared/dashboard-authoring/dashboard-style/edit-words.d.ts +7 -0
  131. package/dist/types/shared/dashboard-authoring/dashboard-style/edit.d.ts +19 -0
  132. package/dist/types/shared/dashboard-authoring/dashboard-style/index.d.ts +15 -0
  133. package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +19 -0
  134. package/dist/types/shared/dashboard-authoring/dashboard-style/legacy.d.ts +21 -0
  135. package/dist/types/shared/dashboard-authoring/dashboard-style/parse.d.ts +18 -0
  136. package/dist/types/shared/dashboard-authoring/dashboard-style/pickers.d.ts +12 -0
  137. package/dist/types/shared/dashboard-authoring/dashboard-style/types.d.ts +122 -0
  138. package/dist/types/shared/dashboard-authoring/dashboard-style/view.d.ts +10 -0
  139. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  140. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
  141. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +23 -0
  142. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +10 -2
  143. package/dist/types/shared/format-utils/filter-detail.d.ts +2 -8
  144. package/dist/types/shared/format-utils/filter-line.d.ts +2 -2
  145. package/dist/types/shared/format-utils/matrix-continuation.d.ts +10 -10
  146. package/dist/types/shared/temporal/index.d.ts +0 -2
  147. package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +2 -2
  148. package/package.json +7 -26
  149. package/DATA_APP_SDK.md +0 -339
  150. package/dist/chunks/appearance-context-DEYtWinQ.js +0 -126
  151. package/dist/chunks/appearance-runtime-provider-B-M8gwlZ.js +0 -81
  152. package/dist/chunks/assistant-chat-BN5I8KuN.js +0 -8849
  153. package/dist/chunks/color-CJvdlFM_.js +0 -2162
  154. package/dist/chunks/dashboard-json-Cxp3inxd.js +0 -68
  155. package/dist/chunks/filter-value-text-7zhmth1S.js +0 -163
  156. package/dist/chunks/index-CLIro-EG.js +0 -425
  157. package/dist/chunks/index-CuHybtft.js +0 -51
  158. package/dist/chunks/matrix-analytical-definition-C9xB_T84.js +0 -717
  159. package/dist/chunks/matrix-card-BSUeSXpD.js +0 -42
  160. package/dist/chunks/matrix-member-presentation-DZNgQpUq.js +0 -105
  161. package/dist/chunks/operators-B3zZoskU.js +0 -66
  162. package/dist/chunks/pivot-result-contract-expectations-Ddh1rNz5.js +0 -56
  163. package/dist/chunks/raw-temporal-value-Bqz8wc7L.js +0 -242
  164. package/dist/chunks/selection-reducer-OaJ-N5uN.js +0 -46
  165. package/dist/chunks/source-entity-resolution-DF6GulDn.js +0 -607
  166. package/dist/chunks/validators-wtjw0aw6.js +0 -3332
  167. package/dist/data-app-sdk/index.js +0 -1412
  168. package/dist/data-app-sdk-adapters/index.js +0 -361
  169. package/dist/data-app-sdk-validation/index.js +0 -1031
  170. package/dist/types/components/sharing-and-management/utils/group-types.d.ts +0 -105
  171. package/dist/types/data-app-sdk/adapters.d.ts +0 -35
  172. package/dist/types/data-app-sdk/builders.d.ts +0 -62
  173. package/dist/types/data-app-sdk/contracts.d.ts +0 -419
  174. package/dist/types/data-app-sdk/executor.d.ts +0 -5
  175. package/dist/types/data-app-sdk/field-catalog-validation.d.ts +0 -29
  176. package/dist/types/data-app-sdk/hooks.d.ts +0 -11
  177. package/dist/types/data-app-sdk/index.d.ts +0 -9
  178. package/dist/types/data-app-sdk/provider.d.ts +0 -8
  179. package/dist/types/data-app-sdk/relationship-aware-field-policy.d.ts +0 -21
  180. package/dist/types/data-app-sdk/selection.d.ts +0 -2
  181. package/dist/types/data-app-sdk/validation.d.ts +0 -58
  182. package/dist/types/data-app-sdk-adapters.d.ts +0 -2
  183. package/dist/types/data-app-sdk-validation.d.ts +0 -2
  184. package/dist/types/data-app-sdk.d.ts +0 -2
  185. package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +0 -68
  186. package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +0 -20
  187. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +0 -314
  188. package/dist/types/shared/analytics-protocol/time-window.d.ts +0 -52
  189. package/dist/types/shared/temporal/relative-date.d.ts +0 -21
  190. package/dist/types/shared/temporal/time-window-periods.d.ts +0 -21
  191. package/src/data-app-sdk/README.md +0 -402
@@ -1,18 +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 q, 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 { aN as In, a6 as ie, aO as Pt, aP as Rn, a7 as wt, aQ as ot, aR as Ct, aS as Et, aT as Dn, aU as An, aV as Nn, aW as Mn, u as Re, aX as Ln, aY as _n, aZ as kn, a_ as Tn, a$ as Hn, b0 as Vn, b1 as $n, b2 as Fn, b3 as Kn } from "./semaphor-ready-indicator-BSEdUq40.js";
5
- import { C as It, A as Rt, D as ze, E as me, F as Dt, G as Bn, H as On, J as Pe, K as qn, M as At, N as Gn, O as Un } from "./code-editor-DJNOsgJH.js";
6
- import { Q as Wn, R as Nt, T as Mt, U as Je, V as Te, W as Xn, X as Yn, Y as jn, S as Qn } from "./resolve-dashboard-input-context-Du0fjN3h.js";
7
- import "./index-CuHybtft.js";
8
- import "./validators-wtjw0aw6.js";
9
- import "./matrix-operation-contract-Eb6elidS.js";
4
+ import { aM as In, a5 as ie, aN as Pt, aO as Rn, a6 as wt, aP as ot, aQ as Ct, aR as Et, aS as Dn, aT as An, aU as Nn, aV as Mn, u as Re, aW as Ln, aX as _n, aY as kn, aZ as Tn, a_ as Hn, a$ as Vn, b0 as $n, b1 as Fn, b2 as Kn } from "./semaphor-ready-indicator-ByFvqHEO.js";
5
+ import { C as It, G as Rt, H as ze, J as me, K as Dt, M as Bn, O as On, Q as Pe, U as qn, V as At, W as Gn, Y as Un } from "./style-sheet-parts-C7qGZuH1.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-Lkbwycwe.js";
7
+ import { c as we } from "./pickers-DkqmtnTL.js";
8
+ import "./validators-B8fpdinG.js";
9
+ import "./matrix-operation-contract-DCVinw1o.js";
10
10
  import "./analytics-base-schemas-BaIQrEzX.js";
11
- import "zod";
12
11
  import "../value-format-preferences/index.js";
13
- import { c as we } from "./_commonjsHelpers-DimLPMtv.js";
14
- import { u as Jn } from "./appearance-context-DEYtWinQ.js";
15
- const zo = zn.memo(function({
12
+ import { u as Jn } from "./appearance-context-BwBp25ZG.js";
13
+ const bo = zn.memo(function({
16
14
  context: t = "editor"
17
15
  } = {}) {
18
16
  return /* @__PURE__ */ Ne(
@@ -77,7 +75,7 @@ function Lt({
77
75
  groupId: D,
78
76
  isPanelCollapsed: L,
79
77
  reevaluatePanelConstraints: C,
80
- registerPanel: Y,
78
+ registerPanel: X,
81
79
  resizePanel: J,
82
80
  unregisterPanel: K
83
81
  } = y, M = st(s), _ = q({
@@ -109,10 +107,10 @@ function Lt({
109
107
  _.current.id = M, _.current.idIsFromProps = s !== void 0, _.current.order = c, B.onCollapse = d, B.onExpand = f, B.onResize = u, $.collapsedSize = n, $.collapsible = r, $.defaultSize = i, $.maxSize = a, $.minSize = l, (F.collapsedSize !== $.collapsedSize || F.collapsible !== $.collapsible || F.maxSize !== $.maxSize || F.minSize !== $.minSize) && C(_.current, F);
110
108
  }), ge(() => {
111
109
  const B = _.current;
112
- return Y(B), () => {
110
+ return X(B), () => {
113
111
  K(B);
114
112
  };
115
- }, [c, M, Y, K]), zt(o, () => ({
113
+ }, [c, M, X, K]), zt(o, () => ({
116
114
  collapse: () => {
117
115
  h(_.current);
118
116
  },
@@ -325,7 +323,7 @@ function fr(e) {
325
323
  y: r
326
324
  }), Ve(), se.length > 0 && ($e("down", e), e.preventDefault(), Bt(t) || e.stopImmediatePropagation());
327
325
  }
328
- function Xe(e) {
326
+ function Ye(e) {
329
327
  const {
330
328
  x: t,
331
329
  y: n
@@ -342,7 +340,7 @@ function Xe(e) {
342
340
  }
343
341
  $e("move", e), lt(), se.length > 0 && e.preventDefault();
344
342
  }
345
- function Ye(e) {
343
+ function Xe(e) {
346
344
  const {
347
345
  target: t
348
346
  } = e, {
@@ -428,12 +426,12 @@ function Ve() {
428
426
  const {
429
427
  body: r
430
428
  } = n;
431
- t > 0 && (r.addEventListener("contextmenu", Ye, e), r.addEventListener("pointerleave", Xe, e), r.addEventListener("pointermove", Xe, e));
432
- }), window.addEventListener("pointerup", Ye, e), window.addEventListener("pointercancel", Ye, e)) : pe.forEach((t, n) => {
429
+ t > 0 && (r.addEventListener("contextmenu", Xe, e), r.addEventListener("pointerleave", Ye, e), r.addEventListener("pointermove", Ye, e));
430
+ }), window.addEventListener("pointerup", Xe, e), window.addEventListener("pointercancel", Xe, e)) : pe.forEach((t, n) => {
433
431
  const {
434
432
  body: r
435
433
  } = n;
436
- t > 0 && (r.addEventListener("pointerdown", fr, e), r.addEventListener("pointermove", Xe, e));
434
+ t > 0 && (r.addEventListener("pointerdown", fr, e), r.addEventListener("pointermove", Ye, e));
437
435
  }));
438
436
  }
439
437
  function $e(e, t) {
@@ -720,7 +718,7 @@ function yr({
720
718
  minSize: C = 0
721
719
  } = x.constraints;
722
720
  if (R != null && L) {
723
- const Y = De({
721
+ const X = De({
724
722
  delta: ee(R, D) ? C - D : D - R,
725
723
  initialLayout: r,
726
724
  panelConstraints: l.map((J) => J.constraints),
@@ -728,7 +726,7 @@ function yr({
728
726
  prevLayout: r,
729
727
  trigger: "keyboard"
730
728
  });
731
- r !== Y && s(Y);
729
+ r !== X && s(X);
732
730
  }
733
731
  }
734
732
  break;
@@ -904,7 +902,7 @@ function vt(e) {
904
902
  function Wt(e) {
905
903
  return `react-resizable-panels:${e}`;
906
904
  }
907
- function Xt(e) {
905
+ function Yt(e) {
908
906
  return e.map((t) => {
909
907
  const {
910
908
  constraints: n,
@@ -915,7 +913,7 @@ function Xt(e) {
915
913
  return i ? r : o ? `${o}:${JSON.stringify(n)}` : JSON.stringify(n);
916
914
  }).sort((t, n) => t.localeCompare(n)).join(",");
917
915
  }
918
- function Yt(e, t) {
916
+ function Xt(e, t) {
919
917
  try {
920
918
  const n = Wt(e), r = t.getItem(n);
921
919
  if (r) {
@@ -929,12 +927,12 @@ function Yt(e, t) {
929
927
  }
930
928
  function Pr(e, t, n) {
931
929
  var r, i;
932
- const o = (r = Yt(e, n)) !== null && r !== void 0 ? r : {}, s = Xt(t);
930
+ const o = (r = Xt(e, n)) !== null && r !== void 0 ? r : {}, s = Yt(t);
933
931
  return (i = o[s]) !== null && i !== void 0 ? i : null;
934
932
  }
935
933
  function wr(e, t, n, r, i) {
936
934
  var o;
937
- const s = Wt(e), a = Xt(t), l = (o = Yt(e, i)) !== null && o !== void 0 ? o : {};
935
+ const s = Wt(e), a = Yt(t), l = (o = Xt(e, i)) !== null && o !== void 0 ? o : {};
938
936
  l[a] = {
939
937
  expandToSizes: Object.fromEntries(n.entries()),
940
938
  layout: r
@@ -1065,7 +1063,7 @@ function jt({
1065
1063
  }
1066
1064
  }, [e, y, l]), ne(() => {
1067
1065
  });
1068
- const Y = G((v) => {
1066
+ const X = G((v) => {
1069
1067
  const {
1070
1068
  onLayout: P
1071
1069
  } = L.current, {
@@ -1265,7 +1263,7 @@ function jt({
1265
1263
  panelSize: V
1266
1264
  } = fe(z, v, E);
1267
1265
  V != null && (w && b && le(V, S) ? le(S, k) || F(v, k) : V < Q ? F(v, Q) : V > H && F(v, H));
1268
- }, [F]), X = G((v, P) => {
1266
+ }, [F]), Y = G((v, P) => {
1269
1267
  const {
1270
1268
  direction: E
1271
1269
  } = L.current, {
@@ -1290,7 +1288,7 @@ function jt({
1290
1288
  } = C.current, E = ve(P, v);
1291
1289
  E >= 0 && (P.splice(E, 1), delete x.current[v.id], C.current.panelDataArrayChanged = !0, A());
1292
1290
  }, [A]), ae = W(() => ({
1293
- collapsePanel: Y,
1291
+ collapsePanel: X,
1294
1292
  direction: r,
1295
1293
  dragState: p,
1296
1294
  expandPanel: J,
@@ -1303,11 +1301,11 @@ function jt({
1303
1301
  registerPanel: B,
1304
1302
  registerResizeHandle: $,
1305
1303
  resizePanel: F,
1306
- startDragging: X,
1304
+ startDragging: Y,
1307
1305
  stopDragging: te,
1308
1306
  unregisterPanel: ce,
1309
1307
  panelGroupElement: m.current
1310
- }), [Y, p, r, J, K, M, c, _, U, j, B, $, F, X, te, ce]), re = {
1308
+ }), [X, p, r, J, K, M, c, _, U, j, B, $, F, Y, te, ce]), re = {
1311
1309
  display: "flex",
1312
1310
  flexDirection: r === "horizontal" ? "row" : "column",
1313
1311
  height: "100%",
@@ -1425,7 +1423,7 @@ function Rr({
1425
1423
  groupId: D,
1426
1424
  registerResizeHandle: L,
1427
1425
  startDragging: C,
1428
- stopDragging: Y,
1426
+ stopDragging: X,
1429
1427
  panelGroupElement: J
1430
1428
  } = x, K = st(i), [M, _] = de("inactive"), [U, B] = de(!1), [$, F] = de(null), j = q({
1431
1429
  state: M
@@ -1440,7 +1438,7 @@ function Rr({
1440
1438
  F(() => ae);
1441
1439
  }
1442
1440
  }, [n, K, L]);
1443
- const X = (g = r == null ? void 0 : r.coarse) !== null && g !== void 0 ? g : 15, te = (y = r == null ? void 0 : r.fine) !== null && y !== void 0 ? y : 5;
1441
+ const Y = (g = r == null ? void 0 : r.coarse) !== null && g !== void 0 ? g : 15, te = (y = r == null ? void 0 : r.fine) !== null && y !== void 0 ? y : 5;
1444
1442
  return ne(() => {
1445
1443
  if (n || $ == null)
1446
1444
  return;
@@ -1448,7 +1446,7 @@ function Rr({
1448
1446
  I(ae, "Element ref not attached");
1449
1447
  let re = !1;
1450
1448
  return dr(K, ae, R, {
1451
- coarse: X,
1449
+ coarse: Y,
1452
1450
  fine: te
1453
1451
  }, (P, E, z) => {
1454
1452
  if (!E) {
@@ -1473,7 +1471,7 @@ function Rr({
1473
1471
  break;
1474
1472
  }
1475
1473
  case "up": {
1476
- _("hover"), Y();
1474
+ _("hover"), X();
1477
1475
  const {
1478
1476
  onClick: S,
1479
1477
  onDragging: w,
@@ -1484,7 +1482,7 @@ function Rr({
1484
1482
  }
1485
1483
  }
1486
1484
  });
1487
- }, [X, R, n, te, L, K, $, C, Y]), Ir({
1485
+ }, [Y, R, n, te, L, K, $, C, X]), Ir({
1488
1486
  disabled: n,
1489
1487
  handleId: K,
1490
1488
  resizeHandler: $,
@@ -1624,7 +1622,7 @@ function Ar({ className: e }, t) {
1624
1622
  });
1625
1623
  ne(() => Et(h), [h]);
1626
1624
  function A(x) {
1627
- y(x), Xn(m.current) || a({});
1625
+ y(x), Yn(m.current) || a({});
1628
1626
  }
1629
1627
  return /* @__PURE__ */ N("div", { className: "relative h-full w-full", children: /* @__PURE__ */ N(
1630
1628
  It,
@@ -1648,7 +1646,7 @@ function Ar({ className: e }, t) {
1648
1646
  }
1649
1647
  ) });
1650
1648
  }
1651
- const Po = Fe(Ar), Nr = 300, Mr = `# 'data' holds the SQL result.
1649
+ const xo = Fe(Ar), Nr = 300, Mr = `# 'data' holds the SQL result.
1652
1650
  # Set 'result' to a list of dicts to replace it, for example:
1653
1651
  # import pandas as pd
1654
1652
  # result = pd.DataFrame(data).to_dict('records')`;
@@ -1686,10 +1684,10 @@ function Lr({ className: e }, t) {
1686
1684
  }
1687
1685
  );
1688
1686
  }
1689
- const wo = Fe(Lr);
1687
+ const zo = Fe(Lr);
1690
1688
  function _r({ card: e }) {
1691
1689
  var E, z, S, w, k;
1692
- const t = Dn(), [n, r] = de({}), { authToken: i } = An(), o = Yn(i == null ? void 0 : i.accessToken), { compiledAppearance: s } = Jn(), a = W(
1690
+ const t = Dn(), [n, r] = de({}), { authToken: i } = An(), o = Xn(i == null ? void 0 : i.accessToken), { compiledAppearance: s } = Jn(), a = W(
1693
1691
  () => Nn(s),
1694
1692
  [s]
1695
1693
  ), l = ie((b) => b.frame), d = ie(
@@ -1729,7 +1727,7 @@ function _r({ card: e }) {
1729
1727
  python: "",
1730
1728
  config: void 0,
1731
1729
  queryConfig: void 0
1732
- } : x !== e.type ? { ...e, type: x } : e, [e, x, y]), { data: D, effectiveCardConfig: L, renderCard: C } = ot(R), Y = Mn(), J = Re((b) => b.dashboard), K = Re(
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(
1733
1731
  (b) => b.dashboardInputValues
1734
1732
  ), M = Re(
1735
1733
  (b) => b.adHocFilterValues
@@ -1764,7 +1762,7 @@ function _r({ card: e }) {
1764
1762
  sheetId: U,
1765
1763
  dashboardInputValues: K,
1766
1764
  adHocFilterValues: M,
1767
- transientContexts: Y,
1765
+ transientContexts: X,
1768
1766
  calendar: _
1769
1767
  }),
1770
1768
  [
@@ -1774,9 +1772,9 @@ function _r({ card: e }) {
1774
1772
  _,
1775
1773
  J,
1776
1774
  U,
1777
- Y
1775
+ X
1778
1776
  ]
1779
- ), X = G(
1777
+ ), Y = G(
1780
1778
  (b, H) => {
1781
1779
  const Q = jn(H);
1782
1780
  r((V) => ({
@@ -1844,7 +1842,7 @@ function _r({ card: e }) {
1844
1842
  card: C,
1845
1843
  dataMetadata: D == null ? void 0 : D.metadata
1846
1844
  }),
1847
- onDataChange: X,
1845
+ onDataChange: Y,
1848
1846
  data: (D == null ? void 0 : D.records) || [],
1849
1847
  columns: (D == null ? void 0 : D.columns) || [],
1850
1848
  formatTemporalBucketValue: P,
@@ -1868,7 +1866,7 @@ function _r({ card: e }) {
1868
1866
  return /* @__PURE__ */ N(
1869
1867
  $n,
1870
1868
  {
1871
- onDataChange: X,
1869
+ onDataChange: Y,
1872
1870
  card: b,
1873
1871
  effectiveCardType: V
1874
1872
  },
@@ -1879,7 +1877,7 @@ function _r({ card: e }) {
1879
1877
  ce,
1880
1878
  {
1881
1879
  editing: !0,
1882
- onDataChange: X,
1880
+ onDataChange: Y,
1883
1881
  ...Fn({
1884
1882
  configCard: c,
1885
1883
  slotOrderedCards: re,
@@ -1905,7 +1903,7 @@ function _r({ card: e }) {
1905
1903
  (k = c.customCardPreferences) == null ? void 0 : k.componentName
1906
1904
  ) }) : null;
1907
1905
  }
1908
- const Co = wn(_r);
1906
+ const Po = wn(_r);
1909
1907
  var en = "Toggle", tn = T.forwardRef((e, t) => {
1910
1908
  const { pressed: n, defaultPressed: r, onPressedChange: i, ...o } = e, [s, a] = Rt({
1911
1909
  prop: n,
@@ -2037,7 +2035,7 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2037
2035
  const _ = jr(R, M);
2038
2036
  K(M, _);
2039
2037
  }
2040
- function Y(M) {
2038
+ function X(M) {
2041
2039
  K(M, h.current);
2042
2040
  }
2043
2041
  function J() {
@@ -2047,11 +2045,11 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2047
2045
  function K(M, _, { commit: U } = { commit: !1 }) {
2048
2046
  const B = eo(o), $ = to(Math.round((M - r) / o) * o + r, B), F = At($, [r, i]);
2049
2047
  D((j = []) => {
2050
- const X = Xr(j, F, _);
2051
- if (Zr(X, l * o)) {
2052
- h.current = X.indexOf(F);
2053
- const te = String(X) !== String(j);
2054
- return te && U && c(X), te ? X : j;
2048
+ const Y = Yr(j, F, _);
2049
+ if (Zr(Y, l * o)) {
2050
+ h.current = Y.indexOf(F);
2051
+ const te = String(Y) !== String(j);
2052
+ return te && U && c(Y), te ? Y : j;
2055
2053
  } else
2056
2054
  return j;
2057
2055
  });
@@ -2083,14 +2081,14 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2083
2081
  max: i,
2084
2082
  inverted: m,
2085
2083
  onSlideStart: a ? void 0 : C,
2086
- onSlideMove: a ? void 0 : Y,
2084
+ onSlideMove: a ? void 0 : X,
2087
2085
  onSlideEnd: a ? void 0 : J,
2088
2086
  onHomeKeyDown: () => !a && K(r, 0, { commit: !0 }),
2089
2087
  onEndKeyDown: () => !a && K(i, R.length - 1, { commit: !0 }),
2090
2088
  onStepKeyDown: ({ event: M, direction: _ }) => {
2091
2089
  if (!a) {
2092
- const $ = rn.includes(M.key) || M.shiftKey && on.includes(M.key) ? 10 : 1, F = h.current, j = R[F], X = o * $ * _;
2093
- K(j + X, F, { commit: !0 });
2090
+ const $ = rn.includes(M.key) || M.shiftKey && on.includes(M.key) ? 10 : 1, F = h.current, j = R[F], Y = o * $ * _;
2091
+ K(j + Y, F, { commit: !0 });
2094
2092
  }
2095
2093
  }
2096
2094
  }
@@ -2296,7 +2294,7 @@ var nt = "SliderThumb", gn = T.forwardRef(
2296
2294
  }
2297
2295
  ), Ur = T.forwardRef(
2298
2296
  (e, t) => {
2299
- const { __scopeSlider: n, index: r, name: i, ...o } = e, s = Ge(nt, n), a = un(nt, n), [l, d] = T.useState(null), f = Pe(t, (A) => d(A)), u = l ? s.form || !!l.closest("form") : !0, c = Gn(l), m = s.values[r], p = m === void 0 ? 0 : yn(m, s.min, s.max), g = Yr(r, s.values.length), y = c == null ? void 0 : c[a.size], h = y ? Qr(y, p, a.direction) : 0;
2297
+ const { __scopeSlider: n, index: r, name: i, ...o } = e, s = Ge(nt, n), a = un(nt, n), [l, d] = T.useState(null), f = Pe(t, (A) => d(A)), u = l ? s.form || !!l.closest("form") : !0, c = Gn(l), m = s.values[r], p = m === void 0 ? 0 : yn(m, s.min, s.max), g = Xr(r, s.values.length), y = c == null ? void 0 : c[a.size], h = y ? Qr(y, p, a.direction) : 0;
2300
2298
  return T.useEffect(() => {
2301
2299
  if (l)
2302
2300
  return s.thumbs.add(l), () => {
@@ -2369,7 +2367,7 @@ var Wr = "RadioBubbleInput", hn = T.forwardRef(
2369
2367
  }
2370
2368
  );
2371
2369
  hn.displayName = Wr;
2372
- function Xr(e = [], t, n) {
2370
+ function Yr(e = [], t, n) {
2373
2371
  const r = [...e];
2374
2372
  return r[n] = t, r.sort((i, o) => i - o);
2375
2373
  }
@@ -2377,7 +2375,7 @@ function yn(e, t, n) {
2377
2375
  const o = 100 / (n - t) * (e - t);
2378
2376
  return At(o, [0, 100]);
2379
2377
  }
2380
- function Yr(e, t) {
2378
+ function Xr(e, t) {
2381
2379
  return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
2382
2380
  }
2383
2381
  function jr(e, t) {
@@ -2435,12 +2433,12 @@ function Sn(e) {
2435
2433
  const t = rt(so) ?? ao;
2436
2434
  return En(t.subscribe, () => e(t.get()), () => e(null));
2437
2435
  }
2438
- function Eo(e) {
2436
+ function wo(e) {
2439
2437
  return Sn(
2440
2438
  G((t) => (t == null ? void 0 : t.slot.zone) === e ? t.outcome : null, [e])
2441
2439
  );
2442
2440
  }
2443
- function Io(e, t, n) {
2441
+ function Co(e, t, n) {
2444
2442
  return Sn(
2445
2443
  G(
2446
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,
@@ -2450,18 +2448,18 @@ function Io(e, t, n) {
2450
2448
  }
2451
2449
  export {
2452
2450
  Vr as A,
2453
- Co as E,
2454
- zo as F,
2451
+ Po as E,
2452
+ bo as F,
2455
2453
  tr as P,
2456
- Po as S,
2454
+ xo as S,
2457
2455
  Tr as T,
2458
2456
  Er as a,
2459
2457
  Rr as b,
2460
- wo as c,
2458
+ zo as c,
2461
2459
  Fr as d,
2462
2460
  io as e,
2463
- Eo as f,
2464
- Io as g,
2461
+ wo as f,
2462
+ Co as g,
2465
2463
  so as h,
2466
2464
  Zt as r,
2467
2465
  Qt as u