react-semaphor 0.1.526 → 0.1.527

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/DATA_APP_SDK.md +5 -1
  2. package/dist/analytics-protocol/index.js +1179 -296
  3. package/dist/brand-studio/index.js +15 -15
  4. package/dist/briefings/index.js +50 -49
  5. package/dist/chunks/{calculated-field-identity-D1ofR4KJ.js → calculated-field-identity-DEhjPSr-.js} +66 -65
  6. package/dist/chunks/{card-config-utils-9sv4e-Vb.js → card-config-utils-BlIbwkuD.js} +68 -65
  7. package/dist/chunks/{constants-DeLIHVAW.js → constants-DNWVy8Y3.js} +4 -4
  8. package/dist/chunks/dashboard-JNHR0_cZ.js +14 -0
  9. package/dist/chunks/{dashboard-briefing-launcher-DXz1GhFZ.js → dashboard-briefing-launcher-D9pFByPh.js} +372 -359
  10. package/dist/chunks/{dashboard-controls-Df8qOSrs.js → dashboard-controls-CJI5ZWMq.js} +739 -686
  11. package/dist/chunks/{dashboard-json-Xldp0qww.js → dashboard-json-DLdrFry-.js} +10 -10
  12. package/dist/chunks/{edit-dashboard-visual-COHBqyic.js → edit-dashboard-visual-D5LjWle1.js} +6603 -6572
  13. package/dist/chunks/{editor-action-buttons-DahlP57T.js → editor-action-buttons-G91NQKxU.js} +266 -267
  14. package/dist/chunks/{field-aggregations-BQjogiI1.js → field-aggregations-DeVQLIsP.js} +19 -19
  15. package/dist/chunks/{field-dependencies-v-lJNzC7.js → field-dependencies-CGYic38w.js} +1 -1
  16. package/dist/chunks/{index-CbjuruKe.js → index-BvJOYbNv.js} +755 -745
  17. package/dist/chunks/{matrix-analytical-definition-BimC4XIV.js → matrix-analytical-definition-BJyH5-99.js} +1 -1
  18. package/dist/chunks/{matrix-card-CIlz0Dnp.js → matrix-card-DY45yiUM.js} +7 -6
  19. package/dist/chunks/{matrix-control-sources-2VAzGlt8.js → matrix-control-sources-BypfLZsK.js} +11 -11
  20. package/dist/chunks/{matrix-definition-E5gXXSTZ.js → matrix-definition-Cdn3LoxW.js} +3 -3
  21. package/dist/chunks/{semantic-format-Baqp8kD_.js → matrix-formatter-BoKU3MzZ.js} +655 -511
  22. package/dist/chunks/{matrix-member-presentation-Bw7-JCrr.js → matrix-member-presentation-BBW0n1iY.js} +1 -1
  23. package/dist/chunks/matrix-operation-contract-BV02rLhu.js +809 -0
  24. package/dist/chunks/{metric-comparison-BphoJ9bq.js → metric-comparison-Crljx_XY.js} +15 -10
  25. package/dist/chunks/{numeric-presentation-VhMUHfrJ.js → numeric-presentation-LvnNY5Ma.js} +68 -68
  26. package/dist/chunks/pivot-header-presentation-D5v8uyjj.js +618 -0
  27. package/dist/chunks/{pivot-result-identity-BzUQiCEV.js → pivot-result-identity-CY__BuwI.js} +1 -1
  28. package/dist/chunks/{pivot-result-lifecycle-BFO354lk.js → pivot-result-lifecycle-BWrPhlGT.js} +259 -204
  29. package/dist/chunks/{raw-temporal-7bFbXd2a.js → raw-temporal-CdnA_OXJ.js} +10 -10
  30. package/dist/chunks/{raw-temporal-contract-BQZIJ1fn.js → raw-temporal-contract-Bc9z83t-.js} +1 -1
  31. package/dist/chunks/relative-date-DAF9J7mt.js +456 -0
  32. package/dist/chunks/{report-preferences-dialog-BcH-0lR-.js → report-preferences-dialog-D3hxu4sE.js} +131 -132
  33. package/dist/chunks/{report-runtime-context-CxIoGyNM.js → report-runtime-context-CtaGGlit.js} +1 -1
  34. package/dist/chunks/{selection-reducer-NF5C07yM.js → selection-reducer-C7Um5XN-.js} +47 -26
  35. package/dist/chunks/semantic-format-BjBMOSoo.js +192 -0
  36. package/dist/chunks/{semaphor-ready-indicator-BLRDuLr4.js → semaphor-ready-indicator-D46I_4g7.js} +49895 -46141
  37. package/dist/chunks/{slider-BYIH4icg.js → slider-B6LELqx6.js} +81 -82
  38. package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js} +25 -25
  39. package/dist/chunks/switch-_7uBAbYx.js +24003 -0
  40. package/dist/chunks/{temporal-bucket-PcLFSYWX.js → temporal-bucket-DlFuhCnT.js} +6 -6
  41. package/dist/chunks/{temporal-bucket-contract-DTLDRzgV.js → temporal-bucket-contract-C6lUGPS3.js} +1 -1
  42. package/dist/chunks/temporal-input-presentation-DyMWCZYh.js +195 -0
  43. package/dist/chunks/{token-types-BC6RcUY8.js → token-types-UjyNz95-.js} +1 -1
  44. package/dist/chunks/{validators-CsdOtZI6.js → validators-CQcG0EPN.js} +852 -731
  45. package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
  46. package/dist/dashboard/index.js +1 -1
  47. package/dist/dashboard-authoring/index.js +138 -137
  48. package/dist/data-app-sdk/index.js +12 -12
  49. package/dist/data-app-sdk-adapters/index.js +23 -22
  50. package/dist/data-app-sdk-validation/index.js +27 -26
  51. package/dist/format-utils/index.js +247 -329
  52. package/dist/index.js +165 -168
  53. package/dist/report-runtime-context/index.js +2 -2
  54. package/dist/style.css +1 -1
  55. package/dist/surfboard/index.js +1 -1
  56. package/dist/types/briefings/index.d.ts +3 -0
  57. package/dist/types/components/explorer/filters/card-date-filter.d.ts +13 -5
  58. package/dist/types/components/explorer/filters/card-date-selection.d.ts +28 -0
  59. package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +1 -1
  60. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -1
  61. package/dist/types/components/surfboard/download-settings-dialog.d.ts +8 -0
  62. package/dist/types/components/surfboard/filter/types.d.ts +8 -29
  63. package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +5 -1
  64. package/dist/types/components/ui-custom/date-range-picker.d.ts +18 -2
  65. package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -21
  66. package/dist/types/components/ui-custom/report-calendar.d.ts +18 -0
  67. package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +3 -5
  68. package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +1 -1
  69. package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +3 -1
  70. package/dist/types/index.js +5 -5
  71. package/dist/types/lib/api/exports-api.d.ts +3 -0
  72. package/dist/types/lib/csv-download.d.ts +9 -0
  73. package/dist/types/lib/csv-encoding-options.d.ts +6 -0
  74. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +2 -1
  75. package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -1
  76. package/dist/types/lib/document/document-input-runtime.d.ts +2 -1
  77. package/dist/types/lib/export-utils.d.ts +17 -15
  78. package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +2 -2
  79. package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +7 -0
  80. package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +3 -2
  81. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
  82. package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +1 -1
  83. package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +47 -0
  84. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +7 -3
  85. package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +2 -0
  86. package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +4 -1
  87. package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +105 -4
  88. package/dist/types/lib/matrix-table/matrix-runtime.d.ts +43 -2
  89. package/dist/types/lib/matrix-table/use-matrix.d.ts +6 -0
  90. package/dist/types/lib/query-context/build-card-query-context.d.ts +5 -1
  91. package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -1
  92. package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +1 -2
  93. package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +1 -2
  94. package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +10 -0
  95. package/dist/types/lib/query-context/query-auth-scope.d.ts +5 -0
  96. package/dist/types/lib/stores/dashboard-store.d.ts +9 -4
  97. package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +9 -2
  98. package/dist/types/lib/types/common-types.d.ts +5 -0
  99. package/dist/types/lib/types/explorer-types.d.ts +14 -0
  100. package/dist/types/lib/types/token-types.d.ts +0 -1
  101. package/dist/types/lib/utils/card-definition.d.ts +1 -1
  102. package/dist/types/lib/utils/date-timezone-utils.d.ts +4 -46
  103. package/dist/types/lib/utils/filter-default-value-utils.d.ts +8 -2
  104. package/dist/types/lib/utils/inline-filter-utils.d.ts +3 -2
  105. package/dist/types/lib/utils/relative-date-description.d.ts +38 -0
  106. package/dist/types/shared/analytics-protocol/contracts.d.ts +10 -7
  107. package/dist/types/shared/analytics-protocol/index.d.ts +12 -1
  108. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +20 -20
  109. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
  110. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
  111. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +51 -5
  112. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +9 -3
  113. package/dist/types/shared/analytics-protocol/operation-temporal-state.d.ts +64 -0
  114. package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +61 -0
  115. package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +20 -0
  116. package/dist/types/shared/analytics-protocol/runtime-schemas.d.ts +0 -2
  117. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +314 -0
  118. package/dist/types/shared/analytics-protocol/time-window.d.ts +13 -0
  119. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
  120. package/dist/types/shared/format-utils/exporters/csv-utils.d.ts +46 -15
  121. package/dist/types/shared/format-utils/exporters/index.d.ts +2 -3
  122. package/dist/types/shared/format-utils/flat-table-export-totals.d.ts +2 -1
  123. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +2 -2
  124. package/dist/types/shared/format-utils/types/format-types.d.ts +0 -42
  125. package/dist/types/shared/temporal/calendar-periods.d.ts +56 -0
  126. package/dist/types/shared/temporal/index.d.ts +5 -0
  127. package/dist/types/shared/temporal/relative-date.d.ts +21 -0
  128. package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +73 -0
  129. package/dist/types/shared/temporal/time-window-periods.d.ts +21 -0
  130. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +23 -0
  131. package/package.json +1 -17
  132. package/src/data-app-sdk/README.md +6 -3
  133. package/dist/chunks/code-highlight-994tgM9v.js +0 -22265
  134. package/dist/chunks/dashboard-CsHvEtjN.js +0 -15
  135. package/dist/chunks/dashboard-date-comparison-definition-BqNhECUr.js +0 -183
  136. package/dist/chunks/matrix-formatter-WBgtebUT.js +0 -341
  137. package/dist/chunks/matrix-operation-contract-D32U2CSw.js +0 -1802
  138. package/dist/chunks/mouse-pointer-2-BZvGk45-.js +0 -19
  139. package/dist/chunks/pivot-header-presentation-CGtudHo7.js +0 -661
  140. package/dist/chunks/pre-block-Cq1RqhZX.js +0 -3987
  141. package/dist/chunks/search-CJz-QQ0Q.js +0 -24
  142. package/dist/chunks/switch-XaAACBrJ.js +0 -2234
  143. package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +0 -222
  144. package/dist/chunks/update-policy-DhAUtiC8.js +0 -913
  145. package/dist/data-app-builder/index.js +0 -3666
  146. package/dist/data-app-builder-browser-runtime/index.js +0 -8
  147. package/dist/data-app-codegen/index.js +0 -22
  148. package/dist/data-app-codegen-node/index.js +0 -1807
  149. package/dist/types/components/data-app-runtime/published-data-app-runtime.d.ts +0 -7
  150. package/dist/types/components/surfboard/json-to-csv.d.ts +0 -7
  151. package/dist/types/components/visual/data-table/utils/export-utils.d.ts +0 -31
  152. package/dist/types/data-app-builder/browser-runtime.d.ts +0 -174
  153. package/dist/types/data-app-builder/constants.d.ts +0 -14
  154. package/dist/types/data-app-builder/data-app-builder.d.ts +0 -14
  155. package/dist/types/data-app-builder/index.d.ts +0 -1
  156. package/dist/types/data-app-builder/lib/api.d.ts +0 -36
  157. package/dist/types/data-app-builder/lib/context-select.d.ts +0 -3
  158. package/dist/types/data-app-builder/lib/diagnostics.d.ts +0 -12
  159. package/dist/types/data-app-builder/lib/file-tree.d.ts +0 -2
  160. package/dist/types/data-app-builder/types.d.ts +0 -558
  161. package/dist/types/data-app-builder-browser-runtime.d.ts +0 -2
  162. package/dist/types/data-app-builder.d.ts +0 -2
  163. package/dist/types/data-app-codegen/generate-contract.d.ts +0 -26
  164. package/dist/types/data-app-codegen/generated-contract-files.d.ts +0 -7
  165. package/dist/types/data-app-codegen/generated-contract-validation.d.ts +0 -13
  166. package/dist/types/data-app-codegen/index.d.ts +0 -6
  167. package/dist/types/data-app-codegen/live-execution.d.ts +0 -42
  168. package/dist/types/data-app-codegen/node.d.ts +0 -2
  169. package/dist/types/data-app-codegen/update-policy.d.ts +0 -25
  170. package/dist/types/data-app-codegen/validation.d.ts +0 -8
  171. package/dist/types/data-app-codegen-node.d.ts +0 -2
  172. package/dist/types/data-app-codegen.d.ts +0 -2
  173. package/dist/types/shared/analytics-protocol/data-app-codegen-summary.d.ts +0 -418
  174. package/dist/types/shared/format-utils/exporters/pivot-exporter.d.ts +0 -13
  175. package/dist/types/shared/format-utils/exporters/table-exporter.d.ts +0 -10
@@ -1,20 +1,19 @@
1
1
  import { jsxs as B, jsx as p, Fragment as fe } from "react/jsx-runtime";
2
2
  import * as C from "react";
3
3
  import Ue, { useState as pe, useRef as F, useCallback as W, useEffect as Q, forwardRef as ge, useMemo as T, memo as Qe, Suspense as Ye } from "react";
4
- import { au as Ge, av as oe, aw as $e, ax as je, ay as We, az as Xe, aA as Je, aB as Ze, aC as et, aD as tt, aE as nt, aF as rt, aG as ot, aH as st, aI as at } from "./semaphor-ready-indicator-BLRDuLr4.js";
5
- import { I as he, J as z, K as k, c as Se, M as it, G as A, H as ve, B as lt, N as ct, O as ut, u as Z, Q as dt, T as ft, U as H, V as mt, W as ye, X as pt, Y as gt } from "./code-highlight-994tgM9v.js";
4
+ import { ax as $e, ay as oe, az as he, aA as Ge, aB as je, aC as We, aD as Xe, aE as Je, aF as Ze, aG as et, aH as tt, aI as nt, aJ as rt, aK as ot, aL as st, aM as at } from "./semaphor-ready-indicator-D46I_4g7.js";
5
+ import { a4 as Se, a5 as z, a6 as k, c as ve, a7 as it, a2 as L, a3 as ye, C as be, B as lt, a8 as ct, a9 as ut, u as Z, aa as dt, ab as ft, ac as H, ad as mt, ae as Ce, af as pt, ag as gt } from "./switch-_7uBAbYx.js";
6
6
  import "./x-CXDkqdur.js";
7
- import "./validators-CsdOtZI6.js";
8
- import "./matrix-operation-contract-D32U2CSw.js";
7
+ import "./validators-CQcG0EPN.js";
8
+ import "./matrix-operation-contract-BV02rLhu.js";
9
+ import "zod";
9
10
  import "../value-format-preferences/index.js";
10
- import { C as be } from "./switch-XaAACBrJ.js";
11
- import { u as Ce } from "./pre-block-Cq1RqhZX.js";
12
- import { u as Ee, r as we, f as Re } from "./editor-action-buttons-DahlP57T.js";
13
- import { M as ht } from "./selection-reducer-NF5C07yM.js";
14
- import "./card-config-utils-9sv4e-Vb.js";
15
- import { P as St, r as vt, g as yt, a as me, b as ee, n as bt, c as Ct } from "./index-CbjuruKe.js";
11
+ import { u as Ee, r as we, f as Re } from "./editor-action-buttons-G91NQKxU.js";
12
+ import { M as ht } from "./selection-reducer-C7Um5XN-.js";
13
+ import "./card-config-utils-BlIbwkuD.js";
14
+ import { P as St, r as vt, g as yt, a as me, b as ee, n as bt, c as Ct } from "./index-BvJOYbNv.js";
16
15
  import { u as Et } from "./appearance-context-DEYtWinQ.js";
17
- const fn = Ue.memo(function({
16
+ const dn = Ue.memo(function({
18
17
  context: t = "editor"
19
18
  } = {}) {
20
19
  return /* @__PURE__ */ B(
@@ -24,14 +23,14 @@ const fn = Ue.memo(function({
24
23
  className: "flex h-full grow flex-col items-center overflow-hidden",
25
24
  children: [
26
25
  " ",
27
- /* @__PURE__ */ p(Ge, { context: t }),
26
+ /* @__PURE__ */ p($e, { context: t }),
28
27
  " "
29
28
  ]
30
29
  }
31
30
  );
32
31
  });
33
32
  var xe = "Toggle", Pe = C.forwardRef((e, t) => {
34
- const { pressed: o, defaultPressed: r, onPressedChange: s, ...l } = e, [n, a] = he({
33
+ const { pressed: o, defaultPressed: r, onPressedChange: s, ...l } = e, [n, a] = Se({
35
34
  prop: o,
36
35
  onChange: s,
37
36
  defaultProp: r ?? !1,
@@ -77,7 +76,7 @@ const wt = it(
77
76
  De,
78
77
  {
79
78
  ref: s,
80
- className: Se(wt({ variant: t, size: o, className: e })),
79
+ className: ve(wt({ variant: t, size: o, className: e })),
81
80
  ...r
82
81
  }
83
82
  ));
@@ -118,7 +117,7 @@ function Te({
118
117
  }
119
118
  const xt = 300;
120
119
  function Pt({ onExpand: e }, t) {
121
- const o = A((f) => f.card.sql), r = A((f) => f.sqlGen), s = A((f) => f.card), l = Ee(), { setCardSql: n, setSqlGen: a, setRunSql: u } = ve(), g = T(() => l !== s.type ? { ...s, type: l } : s, [s, l]), { queryKey: S } = oe(g), i = Ce(), c = F(S);
120
+ const o = L((f) => f.card.sql), r = L((f) => f.sqlGen), s = L((f) => f.card), l = Ee(), { setCardSql: n, setSqlGen: a, setRunSql: u } = ye(), g = T(() => l !== s.type ? { ...s, type: l } : s, [s, l]), { queryKey: S } = oe(g), i = he(), c = F(S);
122
121
  c.current = S;
123
122
  const b = F(r);
124
123
  b.current = r;
@@ -178,9 +177,9 @@ function Pt({ onExpand: e }, t) {
178
177
  ) : null
179
178
  ] });
180
179
  }
181
- const mn = ge(Pt), Dt = 300;
180
+ const fn = ge(Pt), Dt = 300;
182
181
  function Tt(e, t) {
183
- const o = A((E) => E.card.python), r = A((E) => E.card), s = Ee(), { setCardPython: l, setRunSql: n } = ve(), a = T(() => s !== r.type ? { ...r, type: s } : r, [r, s]), { queryKey: u } = oe(a), g = Ce(), S = F(u);
182
+ const o = L((E) => E.card.python), r = L((E) => E.card), s = Ee(), { setCardPython: l, setRunSql: n } = ye(), a = T(() => s !== r.type ? { ...r, type: s } : r, [r, s]), { queryKey: u } = oe(a), g = he(), S = F(u);
184
183
  S.current = u;
185
184
  const { value: i, onChange: c, flush: b } = Te({
186
185
  storeValue: o,
@@ -210,7 +209,7 @@ function Tt(e, t) {
210
209
  }
211
210
  );
212
211
  }
213
- const pn = ge(Tt), It = /* @__PURE__ */ new Set([
212
+ const mn = ge(Tt), _t = /* @__PURE__ */ new Set([
214
213
  "askForMoreInfo",
215
214
  "getAvailableChartTypes",
216
215
  "getChartSQLSyntax",
@@ -218,29 +217,29 @@ const pn = ge(Tt), It = /* @__PURE__ */ new Set([
218
217
  "getTableColumns",
219
218
  "getUserSql",
220
219
  "validateCardConfigFormat"
221
- ]), gn = /* @__PURE__ */ new Set([
220
+ ]), pn = /* @__PURE__ */ new Set([
222
221
  "createChartFromSql",
223
222
  "createForecast",
224
223
  "generateQueryConfig",
225
224
  "getChartDataFromCardConfig",
226
225
  "getChartDataFromSqlAndPython",
227
226
  "getForecastDataFromSqlAndPython"
228
- ]), hn = Array.from(
229
- It
230
- ).join(", "), Sn = 3, vn = "Self-heal", yn = /* @__PURE__ */ new Set([
227
+ ]), gn = Array.from(
228
+ _t
229
+ ).join(", "), hn = 3, Sn = "Self-heal", vn = /* @__PURE__ */ new Set([
231
230
  "SQL_PARSE_ERROR",
232
231
  "SQL_EXPLAIN_ERROR"
233
232
  ]);
234
- function _t({ card: e }) {
233
+ function It({ card: e }) {
235
234
  var ie, le, ce, ue, de;
236
- const t = $e(), [o, r] = pe({}), { authToken: s } = je(), l = ut(s == null ? void 0 : s.accessToken), { compiledAppearance: n } = Et(), a = T(
235
+ const t = Ge(), [o, r] = pe({}), { authToken: s } = je(), l = ut(s == null ? void 0 : s.accessToken), { compiledAppearance: n } = Et(), a = T(
237
236
  () => We(n),
238
237
  [n]
239
- ), u = A((m) => m.frame), g = A(
238
+ ), u = L((m) => m.frame), g = L(
240
239
  (m) => m.inlineFilterValuesMap[e.id]
241
- ), S = A(
240
+ ), S = L(
242
241
  (m) => m.actions.setCardInlineFilterValue
243
- ), i = A(
242
+ ), i = L(
244
243
  (m) => m.actions.removeCardInlineFilterValue
245
244
  ), c = e, { getCard: b, manifest: E } = Xe(
246
245
  ((ie = c.customCardPreferences) == null ? void 0 : ie.url) || ""
@@ -273,35 +272,35 @@ function _t({ card: e }) {
273
272
  python: "",
274
273
  config: void 0,
275
274
  queryConfig: void 0
276
- } : f !== e.type ? { ...e, type: f } : e, [e, f, h]), { data: y, effectiveCardConfig: K } = oe(w), O = Je(), Y = Z((m) => m.dashboard.filters), G = Z((m) => m.filterValues), I = Z((m) => m.selectedSheetId), R = T(
275
+ } : f !== e.type ? { ...e, type: f } : e, [e, f, h]), { data: y, effectiveCardConfig: K } = oe(w), O = Je(), Y = Z((m) => m.dashboard.filters), $ = Z((m) => m.filterValues), _ = Z((m) => m.selectedSheetId), R = T(
277
276
  () => Ze({
278
277
  card: e,
279
- sheetId: I || "",
278
+ sheetId: _ || "",
280
279
  inlineFilterValues: g,
281
280
  setInlineFilterValue: (m) => S(e.id, m),
282
281
  removeInlineFilterValue: (m) => i(e.id, m)
283
282
  }),
284
283
  [
285
284
  e,
286
- I,
285
+ _,
287
286
  g,
288
287
  S,
289
288
  i
290
289
  ]
291
- ), { cardFilters: _, cardFilterValues: M } = T(
290
+ ), { cardFilters: I, cardFilterValues: M } = T(
292
291
  () => et({
293
292
  card: e,
294
293
  transientContexts: O,
295
294
  filters: Y,
296
- filterValues: G,
297
- selectedSheetId: I
295
+ filterValues: $,
296
+ selectedSheetId: _
298
297
  }),
299
298
  [
300
299
  e,
301
300
  O,
302
301
  Y,
303
- G,
304
- I
302
+ $,
303
+ _
305
304
  ]
306
305
  ), q = W(
307
306
  (m, D) => {
@@ -312,13 +311,13 @@ function _t({ card: e }) {
312
311
  }));
313
312
  },
314
313
  []
315
- ), L = (ce = c.customCardPreferences) == null ? void 0 : ce.componentName, N = L ? b(L) : null, V = tt(
314
+ ), A = (ce = c.customCardPreferences) == null ? void 0 : ce.componentName, N = A ? b(A) : null, V = tt(
316
315
  (ue = c.customCardPreferences) == null ? void 0 : ue.settings,
317
316
  c
318
317
  ), x = T(
319
318
  () => Ct(v),
320
319
  [v]
321
- ), $ = T(
320
+ ), G = T(
322
321
  () => x.map(
323
322
  (m, D) => ee(
324
323
  m,
@@ -354,7 +353,7 @@ function _t({ card: e }) {
354
353
  t
355
354
  ]
356
355
  );
357
- return L ? /* @__PURE__ */ p("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ B(
356
+ return A ? /* @__PURE__ */ p("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ B(
358
357
  Ye,
359
358
  {
360
359
  fallback: /* @__PURE__ */ p(fe, {}),
@@ -374,7 +373,7 @@ function _t({ card: e }) {
374
373
  data: (y == null ? void 0 : y.records) || [],
375
374
  columns: (y == null ? void 0 : y.columns) || [],
376
375
  formatTemporalBucketValue: ae,
377
- filters: _,
376
+ filters: I,
378
377
  filterValues: [
379
378
  ...M || [],
380
379
  ...g || []
@@ -408,12 +407,12 @@ function _t({ card: e }) {
408
407
  ...at({
409
408
  configCard: c,
410
409
  slotOrderedCards: x,
411
- slotTypes: $,
410
+ slotTypes: G,
412
411
  multiInputData: o,
413
412
  params: l,
414
413
  theme: a,
415
414
  chartSettings: V,
416
- filters: _,
415
+ filters: I,
417
416
  filterValues: [
418
417
  ...M || [],
419
418
  ...g || []
@@ -429,8 +428,8 @@ function _t({ card: e }) {
429
428
  (de = c.customCardPreferences) == null ? void 0 : de.componentName
430
429
  ) }) : null;
431
430
  }
432
- const bn = Qe(_t);
433
- var Ie = ["PageUp", "PageDown"], _e = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Ne = {
431
+ const yn = Qe(It);
432
+ var _e = ["PageUp", "PageDown"], Ie = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Ne = {
434
433
  "from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
435
434
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
436
435
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
@@ -456,7 +455,7 @@ var Ie = ["PageUp", "PageDown"], _e = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
456
455
  inverted: b = !1,
457
456
  form: E,
458
457
  ...d
459
- } = e, h = C.useRef(/* @__PURE__ */ new Set()), v = C.useRef(0), f = n === "horizontal" ? At : Lt, [w = [], y] = he({
458
+ } = e, h = C.useRef(/* @__PURE__ */ new Set()), v = C.useRef(0), f = n === "horizontal" ? Lt : At, [w = [], y] = Se({
460
459
  prop: S,
461
460
  defaultProp: g,
462
461
  onChange: (R) => {
@@ -465,24 +464,24 @@ var Ie = ["PageUp", "PageDown"], _e = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
465
464
  }
466
465
  }), K = C.useRef(w);
467
466
  function O(R) {
468
- const _ = qt(w, R);
469
- I(R, _);
467
+ const I = qt(w, R);
468
+ _(R, I);
470
469
  }
471
470
  function Y(R) {
472
- I(R, v.current);
471
+ _(R, v.current);
473
472
  }
474
- function G() {
473
+ function $() {
475
474
  const R = K.current[v.current];
476
475
  w[v.current] !== R && c(w);
477
476
  }
478
- function I(R, _, { commit: M } = { commit: !1 }) {
479
- const q = Ut(l), L = Qt(Math.round((R - r) / l) * l + r, q), N = ye(L, [r, s]);
477
+ function _(R, I, { commit: M } = { commit: !1 }) {
478
+ const q = Ut(l), A = Qt(Math.round((R - r) / l) * l + r, q), N = Ce(A, [r, s]);
480
479
  y((V = []) => {
481
- const x = Kt(V, N, _);
480
+ const x = Kt(V, N, I);
482
481
  if (Ht(x, u * l)) {
483
482
  v.current = x.indexOf(N);
484
- const $ = String(x) !== String(V);
485
- return $ && M && c(x), $ ? x : V;
483
+ const G = String(x) !== String(V);
484
+ return G && M && c(x), G ? x : V;
486
485
  } else
487
486
  return V;
488
487
  });
@@ -515,13 +514,13 @@ var Ie = ["PageUp", "PageDown"], _e = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
515
514
  inverted: b,
516
515
  onSlideStart: a ? void 0 : O,
517
516
  onSlideMove: a ? void 0 : Y,
518
- onSlideEnd: a ? void 0 : G,
519
- onHomeKeyDown: () => !a && I(r, 0, { commit: !0 }),
520
- onEndKeyDown: () => !a && I(s, w.length - 1, { commit: !0 }),
521
- onStepKeyDown: ({ event: R, direction: _ }) => {
517
+ onSlideEnd: a ? void 0 : $,
518
+ onHomeKeyDown: () => !a && _(r, 0, { commit: !0 }),
519
+ onEndKeyDown: () => !a && _(s, w.length - 1, { commit: !0 }),
520
+ onStepKeyDown: ({ event: R, direction: I }) => {
522
521
  if (!a) {
523
- const L = Ie.includes(R.key) || R.shiftKey && _e.includes(R.key) ? 10 : 1, N = v.current, V = w[N], x = l * L * _;
524
- I(V + x, N, { commit: !0 });
522
+ const A = _e.includes(R.key) || R.shiftKey && Ie.includes(R.key) ? 10 : 1, N = v.current, V = w[N], x = l * A * I;
523
+ _(V + x, N, { commit: !0 });
525
524
  }
526
525
  }
527
526
  }
@@ -531,12 +530,12 @@ var Ie = ["PageUp", "PageDown"], _e = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
531
530
  }
532
531
  );
533
532
  Ve.displayName = U;
534
- var [Ae, Le] = Me(U, {
533
+ var [Le, Ae] = Me(U, {
535
534
  startEdge: "left",
536
535
  endEdge: "right",
537
536
  size: "width",
538
537
  direction: 1
539
- }), At = C.forwardRef(
538
+ }), Lt = C.forwardRef(
540
539
  (e, t) => {
541
540
  const {
542
541
  min: o,
@@ -554,7 +553,7 @@ var [Ae, Le] = Me(U, {
554
553
  return E.current = w, O(f - w.left);
555
554
  }
556
555
  return /* @__PURE__ */ p(
557
- Ae,
556
+ Le,
558
557
  {
559
558
  scope: e.__scopeSlider,
560
559
  startEdge: v ? "left" : "right",
@@ -592,7 +591,7 @@ var [Ae, Le] = Me(U, {
592
591
  }
593
592
  );
594
593
  }
595
- ), Lt = C.forwardRef(
594
+ ), At = C.forwardRef(
596
595
  (e, t) => {
597
596
  const {
598
597
  min: o,
@@ -609,7 +608,7 @@ var [Ae, Le] = Me(U, {
609
608
  return c.current = h, f(d - h.top);
610
609
  }
611
610
  return /* @__PURE__ */ p(
612
- Ae,
611
+ Le,
613
612
  {
614
613
  scope: e.__scopeSlider,
615
614
  startEdge: b ? "bottom" : "top",
@@ -664,7 +663,7 @@ var [Ae, Le] = Me(U, {
664
663
  ...g,
665
664
  ref: t,
666
665
  onKeyDown: k(e.onKeyDown, (i) => {
667
- i.key === "Home" ? (n(i), i.preventDefault()) : i.key === "End" ? (a(i), i.preventDefault()) : Ie.concat(_e).includes(i.key) && (u(i), i.preventDefault());
666
+ i.key === "Home" ? (n(i), i.preventDefault()) : i.key === "End" ? (a(i), i.preventDefault()) : _e.concat(Ie).includes(i.key) && (u(i), i.preventDefault());
668
667
  }),
669
668
  onPointerDown: k(e.onPointerDown, (i) => {
670
669
  const c = i.target;
@@ -697,7 +696,7 @@ var [Ae, Le] = Me(U, {
697
696
  Ke.displayName = ke;
698
697
  var ne = "SliderRange", Oe = C.forwardRef(
699
698
  (e, t) => {
700
- const { __scopeSlider: o, ...r } = e, s = X(ne, o), l = Le(ne, o), n = C.useRef(null), a = H(t, n), u = s.values.length, g = s.values.map(
699
+ const { __scopeSlider: o, ...r } = e, s = X(ne, o), l = Ae(ne, o), n = C.useRef(null), a = H(t, n), u = s.values.length, g = s.values.map(
701
700
  (c) => ze(c, s.min, s.max)
702
701
  ), S = u > 1 ? Math.min(...g) : 0, i = 100 - Math.max(...g);
703
702
  return /* @__PURE__ */ p(
@@ -727,7 +726,7 @@ var re = "SliderThumb", qe = C.forwardRef(
727
726
  }
728
727
  ), Ft = C.forwardRef(
729
728
  (e, t) => {
730
- const { __scopeSlider: o, index: r, name: s, ...l } = e, n = X(re, o), a = Le(re, o), [u, g] = C.useState(null), S = H(t, (P) => g(P)), i = u ? n.form || !!u.closest("form") : !0, c = pt(u), b = n.values[r], E = b === void 0 ? 0 : ze(b, n.min, n.max), d = Ot(r, n.values.length), h = c == null ? void 0 : c[a.size], v = h ? Bt(h, E, a.direction) : 0;
729
+ const { __scopeSlider: o, index: r, name: s, ...l } = e, n = X(re, o), a = Ae(re, o), [u, g] = C.useState(null), S = H(t, (P) => g(P)), i = u ? n.form || !!u.closest("form") : !0, c = pt(u), b = n.values[r], E = b === void 0 ? 0 : ze(b, n.min, n.max), d = Ot(r, n.values.length), h = c == null ? void 0 : c[a.size], v = h ? Bt(h, E, a.direction) : 0;
731
730
  return C.useEffect(() => {
732
731
  if (u)
733
732
  return n.thumbs.add(u), () => {
@@ -806,7 +805,7 @@ function Kt(e = [], t, o) {
806
805
  }
807
806
  function ze(e, t, o) {
808
807
  const l = 100 / (o - t) * (e - t);
809
- return ye(l, [0, 100]);
808
+ return Ce(l, [0, 100]);
810
809
  }
811
810
  function Ot(e, t) {
812
811
  return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
@@ -844,34 +843,34 @@ function Qt(e, t) {
844
843
  const o = Math.pow(10, t);
845
844
  return Math.round(e * o) / o;
846
845
  }
847
- var He = Ve, Yt = Ke, Gt = Oe, $t = qe;
846
+ var He = Ve, Yt = Ke, $t = Oe, Gt = qe;
848
847
  const jt = C.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ B(
849
848
  He,
850
849
  {
851
850
  ref: o,
852
- className: Se(
851
+ className: ve(
853
852
  "relative flex w-full touch-none select-none items-center",
854
853
  e
855
854
  ),
856
855
  ...t,
857
856
  children: [
858
- /* @__PURE__ */ p(Yt, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ p(Gt, { className: "absolute h-full bg-primary" }) }),
859
- /* @__PURE__ */ p($t, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
857
+ /* @__PURE__ */ p(Yt, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ p($t, { className: "absolute h-full bg-primary" }) }),
858
+ /* @__PURE__ */ p(Gt, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
860
859
  ]
861
860
  }
862
861
  ));
863
862
  jt.displayName = He.displayName;
864
863
  export {
865
- bn as E,
866
- fn as F,
867
- hn as I,
868
- Sn as M,
869
- pn as P,
870
- yn as R,
871
- vn as S,
864
+ yn as E,
865
+ dn as F,
866
+ gn as I,
867
+ hn as M,
868
+ mn as P,
869
+ vn as R,
870
+ Sn as S,
872
871
  Rt as T,
873
- gn as a,
874
- It as b,
875
- mn as c,
872
+ pn as a,
873
+ _t as b,
874
+ fn as c,
876
875
  jt as d
877
876
  };
@@ -1,4 +1,4 @@
1
- import { aY as J } from "./validators-CsdOtZI6.js";
1
+ import { J as K } from "./validators-CQcG0EPN.js";
2
2
  function p(e) {
3
3
  const i = V(e);
4
4
  return i.length > 0 ? i.join(".") : void 0;
@@ -11,7 +11,7 @@ function Q(e) {
11
11
  const a = {};
12
12
  let s = t.length - 1;
13
13
  for (let r = e.capabilities.prefixLevels.length - 1; r >= 0 && s >= 0; r -= 1, s -= 1)
14
- X(
14
+ Y(
15
15
  a,
16
16
  e.capabilities.prefixLevels[r],
17
17
  t[s]
@@ -30,7 +30,7 @@ function pe(e) {
30
30
  return t ? I(e.allowed, i) === t : !0;
31
31
  });
32
32
  }
33
- function K(e, i = {}) {
33
+ function X(e, i = {}) {
34
34
  const t = j(e), a = {
35
35
  connectionId: i.connectionId,
36
36
  connectionType: e,
@@ -118,7 +118,7 @@ function K(e, i = {}) {
118
118
  function v(e, i = {}) {
119
119
  return M(
120
120
  e
121
- ) ? K(e, i) : void 0;
121
+ ) ? X(e, i) : void 0;
122
122
  }
123
123
  function M(e) {
124
124
  const i = j(e);
@@ -165,7 +165,7 @@ function ke(e) {
165
165
  function I(e, i) {
166
166
  return i === "database" ? e.databaseName : i === "schema" ? e.schemaName : e.tableName;
167
167
  }
168
- function X(e, i, t) {
168
+ function Y(e, i, t) {
169
169
  i === "database" ? e.databaseName = t : i === "schema" ? e.schemaName = t : e.tableName = t;
170
170
  }
171
171
  const Z = [
@@ -299,7 +299,7 @@ function ae(e) {
299
299
  capabilityAuthority: u
300
300
  };
301
301
  }
302
- const d = U([
302
+ const d = J([
303
303
  ...e.bareHints || [],
304
304
  ...r.bareHints,
305
305
  o == null ? void 0 : o.tableName
@@ -523,14 +523,14 @@ function de(e, i) {
523
523
  )
524
524
  );
525
525
  }
526
- function U(e) {
526
+ function J(e) {
527
527
  return new Set(
528
528
  e.map(f).map(p).filter((i) => !!i)
529
529
  );
530
530
  }
531
531
  function ue(e) {
532
532
  const i = w(e);
533
- return i ? U([
533
+ return i ? J([
534
534
  f(i.name),
535
535
  f(i.table),
536
536
  f(i.id)
@@ -563,7 +563,7 @@ function me(e) {
563
563
  const i = C(e);
564
564
  return !!(i && i.type === "dataset" && l(i.name));
565
565
  }
566
- function Y(e) {
566
+ function U(e) {
567
567
  const i = C(e);
568
568
  return !!(i && i.type === "dataset" && i.datasetType !== "physical" && l(i.name));
569
569
  }
@@ -589,7 +589,7 @@ function $(e) {
589
589
  function D(e, i) {
590
590
  const t = C(i), a = l(t == null ? void 0 : t.domainId) || l(e.semanticDomainId), s = l(t == null ? void 0 : t.name);
591
591
  if (!a || !s) return;
592
- const r = (t == null ? void 0 : t.datasetType) === "physical" ? void 0 : J(t || {}), o = l(t == null ? void 0 : t.connectionId) || l(e.connectionId);
592
+ const r = (t == null ? void 0 : t.datasetType) === "physical" ? void 0 : K(t || {}), o = l(t == null ? void 0 : t.connectionId) || l(e.connectionId);
593
593
  return {
594
594
  kind: "semantic",
595
595
  domainId: a,
@@ -603,7 +603,7 @@ function be(e, i = {}) {
603
603
  if (t && t !== "dataset")
604
604
  return { kind: "unqualified" };
605
605
  const a = e.entities.filter(
606
- (o) => i.includePhysicalDatasets ? me(o) : Y(o)
606
+ (o) => i.includePhysicalDatasets ? me(o) : U(o)
607
607
  ), s = l(e.entityId);
608
608
  if (s) {
609
609
  const o = $(s), n = a.filter((d) => {
@@ -692,7 +692,7 @@ function Ie(e) {
692
692
  const i = e.entities.filter(
693
693
  W
694
694
  ), t = e.entities.filter(
695
- Y
695
+ U
696
696
  ), a = i.length > 0 || t.length > 0, s = be(e), r = e.qualifiedHints || [], o = r.some(
697
697
  (c) => {
698
698
  var u;
@@ -775,21 +775,21 @@ function Ie(e) {
775
775
  }
776
776
  export {
777
777
  pe as a,
778
- M as b,
778
+ v as b,
779
779
  p as c,
780
- ve as d,
781
- ke as e,
782
- ge as f,
783
- K as g,
784
- O as h,
785
- Ne as i,
786
- W as j,
787
- ae as k,
788
- Y as l,
789
- be as m,
780
+ M as d,
781
+ ve as e,
782
+ ke as f,
783
+ X as g,
784
+ ge as h,
785
+ O as i,
786
+ Ne as j,
787
+ W as k,
788
+ ae as l,
789
+ U as m,
790
790
  z as n,
791
- Ie as o,
791
+ be as o,
792
792
  Q as p,
793
- v as r,
793
+ Ie as r,
794
794
  P as s
795
795
  };