react-semaphor 0.1.569 → 0.1.570
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appearance/index.js +6 -3
- package/dist/appearance-runtime/index.js +1 -1
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +570 -432
- package/dist/briefings/index.js +2 -2
- package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
- package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
- package/dist/chunks/assistant-chat-B-Ddyy8b.js +5940 -0
- package/dist/chunks/{bookmark-impact-Czg6FGt5.js → bookmark-impact-DCYD-6Fr.js} +1 -1
- package/dist/chunks/brand-B4BdpAB_.js +54 -0
- package/dist/chunks/{card-filter-builder-BS982X7x.js → card-filter-builder-0VvKmRst.js} +72 -72
- package/dist/chunks/{comparison-window-caption-lLTgzOkM.js → comparison-window-caption-PtcDWvkN.js} +2 -2
- package/dist/chunks/{dashboard-BiYSbxZv.js → dashboard-DxGIr1vZ.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-Bdj7luOr.js → dashboard-briefing-launcher-B-quOOOQ.js} +183 -182
- package/dist/chunks/{dashboard-controls-TViDsnb8.js → dashboard-controls-Caodx80b.js} +285 -280
- package/dist/chunks/{dashboard-json-Dg9dQd9U.js → dashboard-json-Ct-AGDHF.js} +3 -3
- package/dist/chunks/{dates-BsPrWZIP.js → dates-B9mL8BHE.js} +13 -12
- package/dist/chunks/edit-Bpdh_P_a.js +226 -0
- package/dist/chunks/{edit-dashboard-visual-C6hoIeEJ.js → edit-dashboard-visual-DeDTuYB5.js} +2256 -2268
- package/dist/chunks/{filter-reach-copy-hcQ4os0u.js → filter-reach-copy-BSY33ro5.js} +1425 -1282
- package/dist/chunks/{filter-value-text-CVxEEDVl.js → filter-value-text-DvvSNlho.js} +1 -1
- package/dist/chunks/index-BVKzKl5d.js +90 -0
- package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
- package/dist/chunks/{index-G4q89J6O.js → index-y3HUzRNk.js} +61 -60
- package/dist/chunks/{layout-grid-BIcoFfdS.js → layout-grid-8rR-LPTk.js} +1 -1
- package/dist/chunks/{list-filter-C6tYkHyv.js → list-filter-C1-uTgjR.js} +1 -1
- package/dist/chunks/paintbrush-aR17Z3C9.js +27 -0
- package/dist/chunks/{palette-NjHOE_6B.js → palette-a5FCZKFI.js} +1 -1
- package/dist/chunks/{_commonjsHelpers-Bid1ZNYj.js → pickers-DkqmtnTL.js} +179 -166
- package/dist/chunks/{pivot-result-contract-expectations-DkmueDTW.js → pivot-result-contract-expectations-C-HnUKYe.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-Xc8_GFju.js → report-preferences-dialog-Yvhv3WX2.js} +79 -79
- package/dist/chunks/{resolve-dashboard-input-context-KqvcLcTM.js → resolve-dashboard-input-context-Lkbwycwe.js} +5179 -5391
- package/dist/chunks/resolver-DG_tfEpt.js +156 -0
- package/dist/chunks/{save-C6VmEJTA.js → save-D985VvYp.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-BeXXyoD4.js → saved-dashboard-context-DC_TEd6y.js} +3 -3
- package/dist/chunks/schema-C9NPiIru.js +2568 -0
- package/dist/chunks/{semaphor-ready-indicator-BNkaANsG.js → semaphor-ready-indicator-ByFvqHEO.js} +33935 -34031
- package/dist/chunks/{shelf-drop-preview-context-C_issPBA.js → shelf-drop-preview-context-CjoVaK6J.js} +50 -50
- package/dist/chunks/{stored-dashboard-B6_StAty.js → stored-dashboard-C0hekXiI.js} +189 -188
- package/dist/chunks/{code-editor-BsxHzm9u.js → style-sheet-parts-C7qGZuH1.js} +2400 -2036
- package/dist/chunks/{table-export-sheet-BWP2joD1.js → table-export-sheet-CP8zSOhj.js} +1 -1
- package/dist/chunks/{temporal-input-presentation-scSWQXAB.js → temporal-input-presentation-CqbJjIuu.js} +14 -14
- package/dist/chunks/{upload-BRW4Mwrd.js → upload-CiGNKJ_0.js} +1 -1
- package/dist/chunks/{variable-draft-BQ3OMjvy.js → variable-draft-9-huI1h4.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +1911 -1859
- package/dist/format-utils/index.js +8 -8
- package/dist/index.js +332 -335
- package/dist/layouts/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/appearance/index.d.ts +1 -0
- package/dist/types/brand-studio/brand-studio-draft.d.ts +7 -0
- package/dist/types/brand-studio/index.d.ts +1 -1
- package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
- package/dist/types/components/providers/appearance-runtime-provider.d.ts +4 -1
- package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -2
- package/dist/types/components/sharing-and-management/utils/types.d.ts +0 -72
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -9
- package/dist/types/components/visual/data-table/utils/pagination-utils.d.ts +0 -19
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -1
- package/dist/types/lib/appearance/aliases.d.ts +42 -0
- package/dist/types/lib/appearance/compiler.d.ts +6 -0
- package/dist/types/lib/appearance/defaults.d.ts +6 -0
- package/dist/types/lib/appearance/index.d.ts +2 -0
- package/dist/types/lib/appearance/normalize-organization.d.ts +17 -0
- package/dist/types/lib/appearance/resolver.d.ts +2 -2
- package/dist/types/lib/appearance/types.d.ts +38 -1
- package/dist/types/lib/charts/types.d.ts +6 -2
- package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -1
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +0 -2
- package/dist/types/lib/dashboard-variables/types.d.ts +1 -6
- package/dist/types/lib/download-pdf.d.ts +0 -1
- package/dist/types/lib/hooks/use-dashboard.d.ts +3 -4
- package/dist/types/lib/stores/dashboard-store.d.ts +15 -6
- package/dist/types/lib/stores/editor-store.d.ts +0 -1
- package/dist/types/lib/stores/table-actions.d.ts +0 -1
- package/dist/types/lib/table-formatting/table-formatting-css.d.ts +0 -5
- package/dist/types/lib/types/common-types.d.ts +3 -2
- package/dist/types/lib/types/summary-types.d.ts +0 -5
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +4 -4
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +68 -68
- package/dist/types/shared/assistant-protocol/context.d.ts +18 -18
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +212 -42
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +30 -30
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +4 -4
- package/dist/types/shared/dashboard-authoring/dashboard-style/bounds.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/brand.d.ts +20 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/edit-words.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/edit.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/index.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/legacy.d.ts +21 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/parse.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/pickers.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/types.d.ts +122 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/view.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +20 -0
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +7 -7
- package/package.json +6 -3
- package/dist/chunks/appearance-context-DEYtWinQ.js +0 -126
- package/dist/chunks/appearance-runtime-provider-B-M8gwlZ.js +0 -81
- package/dist/chunks/assistant-chat-Dzf2Mbph.js +0 -8847
- package/dist/chunks/color-CJvdlFM_.js +0 -2162
- package/dist/chunks/index-CLIro-EG.js +0 -425
- package/dist/types/components/sharing-and-management/utils/group-types.d.ts +0 -105
|
@@ -1,15 +1,15 @@
|
|
|
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 {
|
|
5
|
-
import { C as It,
|
|
6
|
-
import { R as Wn, S as Nt, U as Mt, V as Je, W as Te, X as
|
|
7
|
-
import { c as we } from "./
|
|
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
8
|
import "./validators-B8fpdinG.js";
|
|
9
9
|
import "./matrix-operation-contract-DCVinw1o.js";
|
|
10
10
|
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
11
11
|
import "../value-format-preferences/index.js";
|
|
12
|
-
import { u as Jn } from "./appearance-context-
|
|
12
|
+
import { u as Jn } from "./appearance-context-BwBp25ZG.js";
|
|
13
13
|
const bo = zn.memo(function({
|
|
14
14
|
context: t = "editor"
|
|
15
15
|
} = {}) {
|
|
@@ -75,7 +75,7 @@ function Lt({
|
|
|
75
75
|
groupId: D,
|
|
76
76
|
isPanelCollapsed: L,
|
|
77
77
|
reevaluatePanelConstraints: C,
|
|
78
|
-
registerPanel:
|
|
78
|
+
registerPanel: X,
|
|
79
79
|
resizePanel: J,
|
|
80
80
|
unregisterPanel: K
|
|
81
81
|
} = y, M = st(s), _ = q({
|
|
@@ -107,10 +107,10 @@ function Lt({
|
|
|
107
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);
|
|
108
108
|
}), ge(() => {
|
|
109
109
|
const B = _.current;
|
|
110
|
-
return
|
|
110
|
+
return X(B), () => {
|
|
111
111
|
K(B);
|
|
112
112
|
};
|
|
113
|
-
}, [c, M,
|
|
113
|
+
}, [c, M, X, K]), zt(o, () => ({
|
|
114
114
|
collapse: () => {
|
|
115
115
|
h(_.current);
|
|
116
116
|
},
|
|
@@ -323,7 +323,7 @@ function fr(e) {
|
|
|
323
323
|
y: r
|
|
324
324
|
}), Ve(), se.length > 0 && ($e("down", e), e.preventDefault(), Bt(t) || e.stopImmediatePropagation());
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function Ye(e) {
|
|
327
327
|
const {
|
|
328
328
|
x: t,
|
|
329
329
|
y: n
|
|
@@ -340,7 +340,7 @@ function Xe(e) {
|
|
|
340
340
|
}
|
|
341
341
|
$e("move", e), lt(), se.length > 0 && e.preventDefault();
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Xe(e) {
|
|
344
344
|
const {
|
|
345
345
|
target: t
|
|
346
346
|
} = e, {
|
|
@@ -426,12 +426,12 @@ function Ve() {
|
|
|
426
426
|
const {
|
|
427
427
|
body: r
|
|
428
428
|
} = n;
|
|
429
|
-
t > 0 && (r.addEventListener("contextmenu",
|
|
430
|
-
}), window.addEventListener("pointerup",
|
|
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) => {
|
|
431
431
|
const {
|
|
432
432
|
body: r
|
|
433
433
|
} = n;
|
|
434
|
-
t > 0 && (r.addEventListener("pointerdown", fr, e), r.addEventListener("pointermove",
|
|
434
|
+
t > 0 && (r.addEventListener("pointerdown", fr, e), r.addEventListener("pointermove", Ye, e));
|
|
435
435
|
}));
|
|
436
436
|
}
|
|
437
437
|
function $e(e, t) {
|
|
@@ -718,7 +718,7 @@ function yr({
|
|
|
718
718
|
minSize: C = 0
|
|
719
719
|
} = x.constraints;
|
|
720
720
|
if (R != null && L) {
|
|
721
|
-
const
|
|
721
|
+
const X = De({
|
|
722
722
|
delta: ee(R, D) ? C - D : D - R,
|
|
723
723
|
initialLayout: r,
|
|
724
724
|
panelConstraints: l.map((J) => J.constraints),
|
|
@@ -726,7 +726,7 @@ function yr({
|
|
|
726
726
|
prevLayout: r,
|
|
727
727
|
trigger: "keyboard"
|
|
728
728
|
});
|
|
729
|
-
r !==
|
|
729
|
+
r !== X && s(X);
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
break;
|
|
@@ -902,7 +902,7 @@ function vt(e) {
|
|
|
902
902
|
function Wt(e) {
|
|
903
903
|
return `react-resizable-panels:${e}`;
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function Yt(e) {
|
|
906
906
|
return e.map((t) => {
|
|
907
907
|
const {
|
|
908
908
|
constraints: n,
|
|
@@ -913,7 +913,7 @@ function Xt(e) {
|
|
|
913
913
|
return i ? r : o ? `${o}:${JSON.stringify(n)}` : JSON.stringify(n);
|
|
914
914
|
}).sort((t, n) => t.localeCompare(n)).join(",");
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function Xt(e, t) {
|
|
917
917
|
try {
|
|
918
918
|
const n = Wt(e), r = t.getItem(n);
|
|
919
919
|
if (r) {
|
|
@@ -927,12 +927,12 @@ function Yt(e, t) {
|
|
|
927
927
|
}
|
|
928
928
|
function Pr(e, t, n) {
|
|
929
929
|
var r, i;
|
|
930
|
-
const o = (r =
|
|
930
|
+
const o = (r = Xt(e, n)) !== null && r !== void 0 ? r : {}, s = Yt(t);
|
|
931
931
|
return (i = o[s]) !== null && i !== void 0 ? i : null;
|
|
932
932
|
}
|
|
933
933
|
function wr(e, t, n, r, i) {
|
|
934
934
|
var o;
|
|
935
|
-
const s = Wt(e), a =
|
|
935
|
+
const s = Wt(e), a = Yt(t), l = (o = Xt(e, i)) !== null && o !== void 0 ? o : {};
|
|
936
936
|
l[a] = {
|
|
937
937
|
expandToSizes: Object.fromEntries(n.entries()),
|
|
938
938
|
layout: r
|
|
@@ -1063,7 +1063,7 @@ function jt({
|
|
|
1063
1063
|
}
|
|
1064
1064
|
}, [e, y, l]), ne(() => {
|
|
1065
1065
|
});
|
|
1066
|
-
const
|
|
1066
|
+
const X = G((v) => {
|
|
1067
1067
|
const {
|
|
1068
1068
|
onLayout: P
|
|
1069
1069
|
} = L.current, {
|
|
@@ -1263,7 +1263,7 @@ function jt({
|
|
|
1263
1263
|
panelSize: V
|
|
1264
1264
|
} = fe(z, v, E);
|
|
1265
1265
|
V != null && (w && b && le(V, S) ? le(S, k) || F(v, k) : V < Q ? F(v, Q) : V > H && F(v, H));
|
|
1266
|
-
}, [F]),
|
|
1266
|
+
}, [F]), Y = G((v, P) => {
|
|
1267
1267
|
const {
|
|
1268
1268
|
direction: E
|
|
1269
1269
|
} = L.current, {
|
|
@@ -1288,7 +1288,7 @@ function jt({
|
|
|
1288
1288
|
} = C.current, E = ve(P, v);
|
|
1289
1289
|
E >= 0 && (P.splice(E, 1), delete x.current[v.id], C.current.panelDataArrayChanged = !0, A());
|
|
1290
1290
|
}, [A]), ae = W(() => ({
|
|
1291
|
-
collapsePanel:
|
|
1291
|
+
collapsePanel: X,
|
|
1292
1292
|
direction: r,
|
|
1293
1293
|
dragState: p,
|
|
1294
1294
|
expandPanel: J,
|
|
@@ -1301,11 +1301,11 @@ function jt({
|
|
|
1301
1301
|
registerPanel: B,
|
|
1302
1302
|
registerResizeHandle: $,
|
|
1303
1303
|
resizePanel: F,
|
|
1304
|
-
startDragging:
|
|
1304
|
+
startDragging: Y,
|
|
1305
1305
|
stopDragging: te,
|
|
1306
1306
|
unregisterPanel: ce,
|
|
1307
1307
|
panelGroupElement: m.current
|
|
1308
|
-
}), [
|
|
1308
|
+
}), [X, p, r, J, K, M, c, _, U, j, B, $, F, Y, te, ce]), re = {
|
|
1309
1309
|
display: "flex",
|
|
1310
1310
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
1311
1311
|
height: "100%",
|
|
@@ -1423,7 +1423,7 @@ function Rr({
|
|
|
1423
1423
|
groupId: D,
|
|
1424
1424
|
registerResizeHandle: L,
|
|
1425
1425
|
startDragging: C,
|
|
1426
|
-
stopDragging:
|
|
1426
|
+
stopDragging: X,
|
|
1427
1427
|
panelGroupElement: J
|
|
1428
1428
|
} = x, K = st(i), [M, _] = de("inactive"), [U, B] = de(!1), [$, F] = de(null), j = q({
|
|
1429
1429
|
state: M
|
|
@@ -1438,7 +1438,7 @@ function Rr({
|
|
|
1438
1438
|
F(() => ae);
|
|
1439
1439
|
}
|
|
1440
1440
|
}, [n, K, L]);
|
|
1441
|
-
const
|
|
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;
|
|
1442
1442
|
return ne(() => {
|
|
1443
1443
|
if (n || $ == null)
|
|
1444
1444
|
return;
|
|
@@ -1446,7 +1446,7 @@ function Rr({
|
|
|
1446
1446
|
I(ae, "Element ref not attached");
|
|
1447
1447
|
let re = !1;
|
|
1448
1448
|
return dr(K, ae, R, {
|
|
1449
|
-
coarse:
|
|
1449
|
+
coarse: Y,
|
|
1450
1450
|
fine: te
|
|
1451
1451
|
}, (P, E, z) => {
|
|
1452
1452
|
if (!E) {
|
|
@@ -1471,7 +1471,7 @@ function Rr({
|
|
|
1471
1471
|
break;
|
|
1472
1472
|
}
|
|
1473
1473
|
case "up": {
|
|
1474
|
-
_("hover"),
|
|
1474
|
+
_("hover"), X();
|
|
1475
1475
|
const {
|
|
1476
1476
|
onClick: S,
|
|
1477
1477
|
onDragging: w,
|
|
@@ -1482,7 +1482,7 @@ function Rr({
|
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
1484
|
});
|
|
1485
|
-
}, [
|
|
1485
|
+
}, [Y, R, n, te, L, K, $, C, X]), Ir({
|
|
1486
1486
|
disabled: n,
|
|
1487
1487
|
handleId: K,
|
|
1488
1488
|
resizeHandler: $,
|
|
@@ -1622,7 +1622,7 @@ function Ar({ className: e }, t) {
|
|
|
1622
1622
|
});
|
|
1623
1623
|
ne(() => Et(h), [h]);
|
|
1624
1624
|
function A(x) {
|
|
1625
|
-
y(x),
|
|
1625
|
+
y(x), Yn(m.current) || a({});
|
|
1626
1626
|
}
|
|
1627
1627
|
return /* @__PURE__ */ N("div", { className: "relative h-full w-full", children: /* @__PURE__ */ N(
|
|
1628
1628
|
It,
|
|
@@ -1687,7 +1687,7 @@ function Lr({ className: e }, t) {
|
|
|
1687
1687
|
const zo = Fe(Lr);
|
|
1688
1688
|
function _r({ card: e }) {
|
|
1689
1689
|
var E, z, S, w, k;
|
|
1690
|
-
const t = Dn(), [n, r] = de({}), { authToken: i } = An(), o =
|
|
1690
|
+
const t = Dn(), [n, r] = de({}), { authToken: i } = An(), o = Xn(i == null ? void 0 : i.accessToken), { compiledAppearance: s } = Jn(), a = W(
|
|
1691
1691
|
() => Nn(s),
|
|
1692
1692
|
[s]
|
|
1693
1693
|
), l = ie((b) => b.frame), d = ie(
|
|
@@ -1727,7 +1727,7 @@ 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),
|
|
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
1731
|
(b) => b.dashboardInputValues
|
|
1732
1732
|
), M = Re(
|
|
1733
1733
|
(b) => b.adHocFilterValues
|
|
@@ -1762,7 +1762,7 @@ function _r({ card: e }) {
|
|
|
1762
1762
|
sheetId: U,
|
|
1763
1763
|
dashboardInputValues: K,
|
|
1764
1764
|
adHocFilterValues: M,
|
|
1765
|
-
transientContexts:
|
|
1765
|
+
transientContexts: X,
|
|
1766
1766
|
calendar: _
|
|
1767
1767
|
}),
|
|
1768
1768
|
[
|
|
@@ -1772,9 +1772,9 @@ function _r({ card: e }) {
|
|
|
1772
1772
|
_,
|
|
1773
1773
|
J,
|
|
1774
1774
|
U,
|
|
1775
|
-
|
|
1775
|
+
X
|
|
1776
1776
|
]
|
|
1777
|
-
),
|
|
1777
|
+
), Y = G(
|
|
1778
1778
|
(b, H) => {
|
|
1779
1779
|
const Q = jn(H);
|
|
1780
1780
|
r((V) => ({
|
|
@@ -1842,7 +1842,7 @@ function _r({ card: e }) {
|
|
|
1842
1842
|
card: C,
|
|
1843
1843
|
dataMetadata: D == null ? void 0 : D.metadata
|
|
1844
1844
|
}),
|
|
1845
|
-
onDataChange:
|
|
1845
|
+
onDataChange: Y,
|
|
1846
1846
|
data: (D == null ? void 0 : D.records) || [],
|
|
1847
1847
|
columns: (D == null ? void 0 : D.columns) || [],
|
|
1848
1848
|
formatTemporalBucketValue: P,
|
|
@@ -1866,7 +1866,7 @@ function _r({ card: e }) {
|
|
|
1866
1866
|
return /* @__PURE__ */ N(
|
|
1867
1867
|
$n,
|
|
1868
1868
|
{
|
|
1869
|
-
onDataChange:
|
|
1869
|
+
onDataChange: Y,
|
|
1870
1870
|
card: b,
|
|
1871
1871
|
effectiveCardType: V
|
|
1872
1872
|
},
|
|
@@ -1877,7 +1877,7 @@ function _r({ card: e }) {
|
|
|
1877
1877
|
ce,
|
|
1878
1878
|
{
|
|
1879
1879
|
editing: !0,
|
|
1880
|
-
onDataChange:
|
|
1880
|
+
onDataChange: Y,
|
|
1881
1881
|
...Fn({
|
|
1882
1882
|
configCard: c,
|
|
1883
1883
|
slotOrderedCards: re,
|
|
@@ -2035,7 +2035,7 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2035
2035
|
const _ = jr(R, M);
|
|
2036
2036
|
K(M, _);
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2038
|
+
function X(M) {
|
|
2039
2039
|
K(M, h.current);
|
|
2040
2040
|
}
|
|
2041
2041
|
function J() {
|
|
@@ -2045,11 +2045,11 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2045
2045
|
function K(M, _, { commit: U } = { commit: !1 }) {
|
|
2046
2046
|
const B = eo(o), $ = to(Math.round((M - r) / o) * o + r, B), F = At($, [r, i]);
|
|
2047
2047
|
D((j = []) => {
|
|
2048
|
-
const
|
|
2049
|
-
if (Zr(
|
|
2050
|
-
h.current =
|
|
2051
|
-
const te = String(
|
|
2052
|
-
return te && U && c(
|
|
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;
|
|
2053
2053
|
} else
|
|
2054
2054
|
return j;
|
|
2055
2055
|
});
|
|
@@ -2081,14 +2081,14 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2081
2081
|
max: i,
|
|
2082
2082
|
inverted: m,
|
|
2083
2083
|
onSlideStart: a ? void 0 : C,
|
|
2084
|
-
onSlideMove: a ? void 0 :
|
|
2084
|
+
onSlideMove: a ? void 0 : X,
|
|
2085
2085
|
onSlideEnd: a ? void 0 : J,
|
|
2086
2086
|
onHomeKeyDown: () => !a && K(r, 0, { commit: !0 }),
|
|
2087
2087
|
onEndKeyDown: () => !a && K(i, R.length - 1, { commit: !0 }),
|
|
2088
2088
|
onStepKeyDown: ({ event: M, direction: _ }) => {
|
|
2089
2089
|
if (!a) {
|
|
2090
|
-
const $ = rn.includes(M.key) || M.shiftKey && on.includes(M.key) ? 10 : 1, F = h.current, j = R[F],
|
|
2091
|
-
K(j +
|
|
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 });
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
2094
|
}
|
|
@@ -2294,7 +2294,7 @@ var nt = "SliderThumb", gn = T.forwardRef(
|
|
|
2294
2294
|
}
|
|
2295
2295
|
), Ur = T.forwardRef(
|
|
2296
2296
|
(e, t) => {
|
|
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 =
|
|
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;
|
|
2298
2298
|
return T.useEffect(() => {
|
|
2299
2299
|
if (l)
|
|
2300
2300
|
return s.thumbs.add(l), () => {
|
|
@@ -2367,7 +2367,7 @@ var Wr = "RadioBubbleInput", hn = T.forwardRef(
|
|
|
2367
2367
|
}
|
|
2368
2368
|
);
|
|
2369
2369
|
hn.displayName = Wr;
|
|
2370
|
-
function
|
|
2370
|
+
function Yr(e = [], t, n) {
|
|
2371
2371
|
const r = [...e];
|
|
2372
2372
|
return r[n] = t, r.sort((i, o) => i - o);
|
|
2373
2373
|
}
|
|
@@ -2375,7 +2375,7 @@ function yn(e, t, n) {
|
|
|
2375
2375
|
const o = 100 / (n - t) * (e - t);
|
|
2376
2376
|
return At(o, [0, 100]);
|
|
2377
2377
|
}
|
|
2378
|
-
function
|
|
2378
|
+
function Xr(e, t) {
|
|
2379
2379
|
return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
|
|
2380
2380
|
}
|
|
2381
2381
|
function jr(e, t) {
|