react-semaphor 0.1.601 → 0.1.603
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/analytics-protocol/index.js +415 -375
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +8 -8
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{add-to-dashboard-ClhEIFst.js → add-to-dashboard-CFF-wFU-.js} +1 -1
- package/dist/chunks/{analytics-base-schemas-DevrgqQb.js → analytics-base-schemas-DsUh5Q3C.js} +14 -12
- package/dist/chunks/{assistant-chat-BE0XXzZP.js → assistant-chat-B6hNQI1t.js} +146 -146
- package/dist/chunks/{bookmark-impact-DXDAN5AY.js → bookmark-impact-Ba2PLcGp.js} +3 -3
- package/dist/chunks/{bookmark-state-BMyB3Tb6.js → bookmark-state-n7AaNzR_.js} +517 -516
- package/dist/chunks/{card-filter-builder-CE0-YVN5.js → card-filter-builder-Y22HizVx.js} +474 -474
- package/dist/chunks/{comparison-window-caption-Dxj2CHOa.js → comparison-window-caption-Ck2TIbnR.js} +69 -69
- package/dist/chunks/{context-BJoEFgNl.js → context-UCQ7sere.js} +1 -1
- package/dist/chunks/{dashboard-mJKPFRbb.js → dashboard-BghI99oY.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CntwKyiZ.js → dashboard-briefing-launcher-DtBAnGiH.js} +725 -716
- package/dist/chunks/{dashboard-controls-XO089DMg.js → dashboard-controls-CtFXlyjV.js} +53 -53
- package/dist/chunks/{dashboard-json-CQRiydUv.js → dashboard-json-DfGBUtCd.js} +5 -5
- package/dist/chunks/dates-BnrXF4bb.js +185 -0
- package/dist/chunks/{edit-dashboard-visual-f-Dm-BLR.js → edit-dashboard-visual-oxt3x1wb.js} +8081 -8268
- package/dist/chunks/{filter-line-CKNMyNTQ.js → filter-line-Cy5YYqRL.js} +27 -27
- package/dist/chunks/{filter-reach-copy-B8GGyVuR.js → filter-reach-copy-CE_ZX147.js} +1786 -2214
- package/dist/chunks/{filter-value-text-CRtKecI5.js → filter-value-text-fWvSDwkl.js} +11 -11
- package/dist/chunks/{index-DoPApnxg.js → index-D5rxbtS4.js} +24 -24
- package/dist/chunks/{layout-grid-CiSCZdIr.js → layout-grid-9LndRoLa.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-myf3D3Qx.js → matrix-analytical-definition-CCp48UCw.js} +496 -425
- package/dist/chunks/matrix-member-presentation-zNehruXR.js +391 -0
- package/dist/chunks/{matrix-operation-contract-C1SuOHLZ.js → matrix-operation-contract-DPBj69D8.js} +518 -514
- package/dist/chunks/{metric-comparison-Cm0G893W.js → metric-comparison-B0FR-Q8I.js} +184 -125
- package/dist/chunks/{paintbrush-DQIwqlck.js → paintbrush-58FQYY-y.js} +1 -1
- package/dist/chunks/{palette-Cun747Rg.js → palette-Be62Tkoa.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-C1Dyx8du.js → pivot-result-contract-expectations-BYqAmG9n.js} +1236 -1190
- package/dist/chunks/{pivot-result-identity-CBS-ssEp.js → pivot-result-identity-CAP4--iq.js} +1 -1
- package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +3778 -0
- package/dist/chunks/{report-preferences-dialog-SDZEcG2x.js → report-preferences-dialog-uJp9GBTM.js} +219 -205
- package/dist/chunks/{report-runtime-context-BbedQdtc.js → report-runtime-context-c77_KF9v.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-DRBS0eRa.js → resolve-dashboard-input-context-Rtl1ffmE.js} +8808 -7291
- package/dist/chunks/{save-Dj5bjm7P.js → save-C5A0JnEV.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-DWVlJcsa.js → saved-dashboard-context-tcyTU8jm.js} +199 -213
- package/dist/chunks/selection-filter-compiler-DNijjI5y.js +150 -0
- package/dist/chunks/{semaphor-ready-indicator-OFOoAY-A.js → semaphor-ready-indicator-FBvunj6S.js} +37894 -35726
- package/dist/chunks/{shelf-drop-preview-context-2swWypXu.js → shelf-drop-preview-context-QKStrcK9.js} +54 -54
- package/dist/chunks/{stored-dashboard-NtOuEX6a.js → stored-dashboard-CHozcAY9.js} +770 -743
- package/dist/chunks/{style-sheet-parts-Qv4UcLAo.js → style-sheet-parts-CDCG-8Ej.js} +258 -251
- package/dist/chunks/{table-export-sheet-Do7ZB0_F.js → table-export-sheet-ZFIvs6Sj.js} +1 -1
- package/dist/chunks/{token-types-Dy_aXO-U.js → token-types-XbM6QByy.js} +1 -1
- package/dist/chunks/{upload-Bq-puSVy.js → upload-H15d7uHK.js} +1 -1
- package/dist/chunks/{validators-C7DFk3QK.js → validators-Baf3VIf5.js} +5 -5
- package/dist/chunks/{variable-draft-Cy03qnEi.js → variable-draft-C2y8Jp6Z.js} +27 -28
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +3392 -2761
- package/dist/format-utils/index.js +205 -204
- package/dist/index.js +73 -75
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/dashboard/dashboard-web-component.d.ts +7 -0
- package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -0
- package/dist/types/index.js +5 -5
- package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +1 -1
- package/dist/types/lib/document/document-edits.d.ts +0 -4
- package/dist/types/lib/query-context/assemble-card-query.d.ts +6 -1
- package/dist/types/lib/stores/dashboard-store.d.ts +30 -1
- package/dist/types/lib/types/common-types.d.ts +0 -2
- package/dist/types/lib/types/explorer-types.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +15 -0
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
- package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
- package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
- package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
- package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +52 -0
- package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +129 -0
- package/dist/types/shared/dashboard-authoring/calculations/resolve-dashboard-field-copies.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/calculations/tokens.d.ts +36 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
- package/dist/types/shared/dashboard-authoring/changes/calculation-change.d.ts +399 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +165 -360
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +23 -2
- package/dist/types/shared/dashboard-authoring/changes/domain-change.d.ts +143 -266
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
- package/dist/types/shared/dashboard-authoring/index.d.ts +7 -1
- package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
- package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +158 -0
- package/dist/types/shared/dashboard-authoring/operations/card-operations.d.ts +71 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +17 -6
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +21 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +3 -0
- package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
- package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
- package/dist/types/shared/temporal/index.d.ts +2 -0
- package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
- package/dist/types/shared/temporal/temporal.d.ts +27 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
- package/dist/types/shared/usage-events/details.d.ts +2 -2
- package/dist/types/shared/usage-events/envelope.d.ts +2 -2
- package/dist/usage-events/index.js +1 -1
- package/package.json +3 -2
- package/dist/chunks/dates-B-Urp5OD.js +0 -164
- package/dist/chunks/matrix-member-presentation-g0c_NpDW.js +0 -258
- package/dist/chunks/raw-temporal-value-DN_l-Tss.js +0 -454
- package/dist/chunks/selection-filter-compiler-DmAr7yqC.js +0 -131
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as Ne, jsx as N, Fragment as ft } from "react/jsx-runtime";
|
|
2
2
|
import * as T from "react";
|
|
3
3
|
import zn, { forwardRef as Fe, createElement as xe, useContext as rt, createContext as xt, useRef as O, useLayoutEffect as Pn, useImperativeHandle as zt, useEffect as ne, useState as de, useCallback as G, useMemo as W, memo as wn, Suspense as Cn, useSyncExternalStore as En } from "react";
|
|
4
|
-
import { b1 as In, am as ie, b2 as Pt, b3 as Rn, an as wt, b4 as ot, b5 as Ct, b6 as Et, b7 as Dn, b8 as An, b9 as Nn, ba as Mn, u as Re, bb as Ln, bc as _n, bd as kn, be as Tn, bf as Hn, bg as Vn, bh as $n, bi as Fn, bj as Kn } from "./semaphor-ready-indicator-
|
|
5
|
-
import { C as It, G as Rt, H as ze, J as me, K as Dt, M as Bn, O as qn, Q as Pe, U as On, V as At, W as Gn, Y as Un } from "./style-sheet-parts-
|
|
6
|
-
import {
|
|
4
|
+
import { b1 as In, am as ie, b2 as Pt, b3 as Rn, an as wt, b4 as ot, b5 as Ct, b6 as Et, b7 as Dn, b8 as An, b9 as Nn, ba as Mn, u as Re, bb as Ln, bc as _n, bd as kn, be as Tn, bf as Hn, bg as Vn, bh as $n, bi as Fn, bj as Kn } from "./semaphor-ready-indicator-FBvunj6S.js";
|
|
5
|
+
import { C as It, G as Rt, H as ze, J as me, K as Dt, M as Bn, O as qn, Q as Pe, U as On, V as At, W as Gn, Y as Un } from "./style-sheet-parts-CDCG-8Ej.js";
|
|
6
|
+
import { $ as Wn, a0 as Nt, a2 as Mt, a3 as Je, a4 as Te, a5 as Yn, a6 as jn, a7 as Xn, a1 as Qn } from "./resolve-dashboard-input-context-Rtl1ffmE.js";
|
|
7
7
|
import { c as we } from "./pickers-DkqmtnTL.js";
|
|
8
|
-
import "./validators-
|
|
9
|
-
import "./matrix-operation-contract-
|
|
10
|
-
import "./analytics-base-schemas-
|
|
8
|
+
import "./validators-Baf3VIf5.js";
|
|
9
|
+
import "./matrix-operation-contract-DPBj69D8.js";
|
|
10
|
+
import "./analytics-base-schemas-DsUh5Q3C.js";
|
|
11
11
|
import "../value-format-preferences/index.js";
|
|
12
12
|
import { u as Jn } from "./appearance-context-BwBp25ZG.js";
|
|
13
13
|
const So = zn.memo(function({
|
|
@@ -75,7 +75,7 @@ function Lt({
|
|
|
75
75
|
groupId: D,
|
|
76
76
|
isPanelCollapsed: L,
|
|
77
77
|
reevaluatePanelConstraints: C,
|
|
78
|
-
registerPanel:
|
|
78
|
+
registerPanel: j,
|
|
79
79
|
resizePanel: J,
|
|
80
80
|
unregisterPanel: K
|
|
81
81
|
} = y, M = st(s), _ = O({
|
|
@@ -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 = l, $.minSize = a, (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 j(B), () => {
|
|
111
111
|
K(B);
|
|
112
112
|
};
|
|
113
|
-
}, [c, M,
|
|
113
|
+
}, [c, M, j, K]), zt(o, () => ({
|
|
114
114
|
collapse: () => {
|
|
115
115
|
h(_.current);
|
|
116
116
|
},
|
|
@@ -340,7 +340,7 @@ function Ye(e) {
|
|
|
340
340
|
}
|
|
341
341
|
$e("move", e), at(), se.length > 0 && e.preventDefault();
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function je(e) {
|
|
344
344
|
const {
|
|
345
345
|
target: t
|
|
346
346
|
} = e, {
|
|
@@ -399,7 +399,7 @@ function lt({
|
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function Xe(e, t) {
|
|
403
403
|
qe.set(e, t);
|
|
404
404
|
}
|
|
405
405
|
function at() {
|
|
@@ -426,8 +426,8 @@ 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", je, e), r.addEventListener("pointerleave", Ye, e), r.addEventListener("pointermove", Ye, e));
|
|
430
|
+
}), window.addEventListener("pointerup", je, e), window.addEventListener("pointercancel", je, e)) : pe.forEach((t, n) => {
|
|
431
431
|
const {
|
|
432
432
|
body: r
|
|
433
433
|
} = n;
|
|
@@ -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 j = De({
|
|
722
722
|
delta: ee(R, D) ? C - D : D - R,
|
|
723
723
|
initialLayout: r,
|
|
724
724
|
panelConstraints: a.map((J) => J.constraints),
|
|
@@ -726,7 +726,7 @@ function yr({
|
|
|
726
726
|
prevLayout: r,
|
|
727
727
|
trigger: "keyboard"
|
|
728
728
|
});
|
|
729
|
-
r !==
|
|
729
|
+
r !== j && s(j);
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
break;
|
|
@@ -913,7 +913,7 @@ function Yt(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 jt(e, t) {
|
|
917
917
|
try {
|
|
918
918
|
const n = Wt(e), r = t.getItem(n);
|
|
919
919
|
if (r) {
|
|
@@ -927,12 +927,12 @@ function Xt(e, t) {
|
|
|
927
927
|
}
|
|
928
928
|
function Pr(e, t, n) {
|
|
929
929
|
var r, i;
|
|
930
|
-
const o = (r =
|
|
930
|
+
const o = (r = jt(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), l = Yt(t), a = (o =
|
|
935
|
+
const s = Wt(e), l = Yt(t), a = (o = jt(e, i)) !== null && o !== void 0 ? o : {};
|
|
936
936
|
a[l] = {
|
|
937
937
|
expandToSizes: Object.fromEntries(n.entries()),
|
|
938
938
|
layout: r
|
|
@@ -988,7 +988,7 @@ const Cr = 100, Ae = {
|
|
|
988
988
|
vt(Ae), Ae.setItem(e, t);
|
|
989
989
|
}
|
|
990
990
|
}, St = {};
|
|
991
|
-
function
|
|
991
|
+
function Xt({
|
|
992
992
|
autoSaveId: e = null,
|
|
993
993
|
children: t,
|
|
994
994
|
className: n = "",
|
|
@@ -1063,7 +1063,7 @@ function jt({
|
|
|
1063
1063
|
}
|
|
1064
1064
|
}, [e, y, a]), ne(() => {
|
|
1065
1065
|
});
|
|
1066
|
-
const
|
|
1066
|
+
const j = G((v) => {
|
|
1067
1067
|
const {
|
|
1068
1068
|
onLayout: P
|
|
1069
1069
|
} = L.current, {
|
|
@@ -1225,7 +1225,7 @@ function jt({
|
|
|
1225
1225
|
prevLayout: oe,
|
|
1226
1226
|
trigger: _t(b) ? "keyboard" : "mouse-or-touch"
|
|
1227
1227
|
}), dt = !ke(oe, Ie);
|
|
1228
|
-
(kt(b) || Tt(b)) && D.current != Z && (D.current = Z, !dt && Z !== 0 ? ut ?
|
|
1228
|
+
(kt(b) || Tt(b)) && D.current != Z && (D.current = Z, !dt && Z !== 0 ? ut ? Xe(v, Z < 0 ? Vt : $t) : Xe(v, Z < 0 ? Ft : Kt) : Xe(v, 0)), dt && (h(Ie), C.current.layout = Ie, V && V(Ie), ye(Ee, Ie, x.current));
|
|
1229
1229
|
};
|
|
1230
1230
|
}, []), F = G((v, P) => {
|
|
1231
1231
|
const {
|
|
@@ -1247,7 +1247,7 @@ function jt({
|
|
|
1247
1247
|
trigger: "imperative-api"
|
|
1248
1248
|
});
|
|
1249
1249
|
ke(z, V) || (h(V), C.current.layout = V, E && E(V), ye(b, V, x.current));
|
|
1250
|
-
}, []),
|
|
1250
|
+
}, []), X = G((v, P) => {
|
|
1251
1251
|
const {
|
|
1252
1252
|
layout: E,
|
|
1253
1253
|
panelDataArray: z
|
|
@@ -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]), le = W(() => ({
|
|
1291
|
-
collapsePanel:
|
|
1291
|
+
collapsePanel: j,
|
|
1292
1292
|
direction: r,
|
|
1293
1293
|
dragState: p,
|
|
1294
1294
|
expandPanel: J,
|
|
@@ -1297,7 +1297,7 @@ function jt({
|
|
|
1297
1297
|
groupId: c,
|
|
1298
1298
|
isPanelCollapsed: _,
|
|
1299
1299
|
isPanelExpanded: U,
|
|
1300
|
-
reevaluatePanelConstraints:
|
|
1300
|
+
reevaluatePanelConstraints: X,
|
|
1301
1301
|
registerPanel: B,
|
|
1302
1302
|
registerResizeHandle: $,
|
|
1303
1303
|
resizePanel: F,
|
|
@@ -1305,7 +1305,7 @@ function jt({
|
|
|
1305
1305
|
stopDragging: te,
|
|
1306
1306
|
unregisterPanel: ce,
|
|
1307
1307
|
panelGroupElement: m.current
|
|
1308
|
-
}), [
|
|
1308
|
+
}), [j, p, r, J, K, M, c, _, U, X, B, $, F, Y, te, ce]), re = {
|
|
1309
1309
|
display: "flex",
|
|
1310
1310
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
1311
1311
|
height: "100%",
|
|
@@ -1330,11 +1330,11 @@ function jt({
|
|
|
1330
1330
|
[q.groupId]: c
|
|
1331
1331
|
}));
|
|
1332
1332
|
}
|
|
1333
|
-
const Er = Fe((e, t) => xe(
|
|
1333
|
+
const Er = Fe((e, t) => xe(Xt, {
|
|
1334
1334
|
...e,
|
|
1335
1335
|
forwardedRef: t
|
|
1336
1336
|
}));
|
|
1337
|
-
|
|
1337
|
+
Xt.displayName = "PanelGroup";
|
|
1338
1338
|
Er.displayName = "forwardRef(PanelGroup)";
|
|
1339
1339
|
function ve(e, t) {
|
|
1340
1340
|
return e.findIndex((n) => n === t || n.id === t.id);
|
|
@@ -1423,13 +1423,13 @@ function Rr({
|
|
|
1423
1423
|
groupId: D,
|
|
1424
1424
|
registerResizeHandle: L,
|
|
1425
1425
|
startDragging: C,
|
|
1426
|
-
stopDragging:
|
|
1426
|
+
stopDragging: j,
|
|
1427
1427
|
panelGroupElement: J
|
|
1428
|
-
} = x, K = st(i), [M, _] = de("inactive"), [U, B] = de(!1), [$, F] = de(null),
|
|
1428
|
+
} = x, K = st(i), [M, _] = de("inactive"), [U, B] = de(!1), [$, F] = de(null), X = O({
|
|
1429
1429
|
state: M
|
|
1430
1430
|
});
|
|
1431
1431
|
ge(() => {
|
|
1432
|
-
|
|
1432
|
+
X.current.state = M;
|
|
1433
1433
|
}), ne(() => {
|
|
1434
1434
|
if (n)
|
|
1435
1435
|
F(null);
|
|
@@ -1466,12 +1466,12 @@ function Rr({
|
|
|
1466
1466
|
case "move": {
|
|
1467
1467
|
const {
|
|
1468
1468
|
state: b
|
|
1469
|
-
} =
|
|
1469
|
+
} = X.current;
|
|
1470
1470
|
re = !0, b !== "drag" && _("hover"), I(z, 'Expected event to be defined for "move" action'), $(z);
|
|
1471
1471
|
break;
|
|
1472
1472
|
}
|
|
1473
1473
|
case "up": {
|
|
1474
|
-
_("hover"),
|
|
1474
|
+
_("hover"), j();
|
|
1475
1475
|
const {
|
|
1476
1476
|
onClick: b,
|
|
1477
1477
|
onDragging: w,
|
|
@@ -1482,7 +1482,7 @@ function Rr({
|
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
1484
|
});
|
|
1485
|
-
}, [Y, R, n, te, L, K, $, C,
|
|
1485
|
+
}, [Y, R, n, te, L, K, $, C, j]), Ir({
|
|
1486
1486
|
disabled: n,
|
|
1487
1487
|
handleId: K,
|
|
1488
1488
|
resizeHandler: $,
|
|
@@ -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, b, w, k;
|
|
1690
|
-
const t = Dn(), [n, r] = de({}), { authToken: i } = An(), o =
|
|
1690
|
+
const t = Dn(), [n, r] = de({}), { authToken: i } = An(), o = jn(i == null ? void 0 : i.accessToken), { compiledAppearance: s } = Jn(), l = W(
|
|
1691
1691
|
() => Nn(s),
|
|
1692
1692
|
[s]
|
|
1693
1693
|
), a = ie((S) => S.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), j = Mn(), J = Re((S) => S.dashboard), K = Re(
|
|
1731
1731
|
(S) => S.dashboardInputValues
|
|
1732
1732
|
), M = Re(
|
|
1733
1733
|
(S) => S.adHocFilterValues
|
|
@@ -1754,7 +1754,7 @@ function _r({ card: e }) {
|
|
|
1754
1754
|
), {
|
|
1755
1755
|
filterInputs: $,
|
|
1756
1756
|
filters: F,
|
|
1757
|
-
filterValues:
|
|
1757
|
+
filterValues: X
|
|
1758
1758
|
} = W(
|
|
1759
1759
|
() => _n({
|
|
1760
1760
|
dashboard: J,
|
|
@@ -1762,7 +1762,7 @@ function _r({ card: e }) {
|
|
|
1762
1762
|
sheetId: U,
|
|
1763
1763
|
dashboardInputValues: K,
|
|
1764
1764
|
adHocFilterValues: M,
|
|
1765
|
-
transientContexts:
|
|
1765
|
+
transientContexts: j,
|
|
1766
1766
|
calendar: _
|
|
1767
1767
|
}),
|
|
1768
1768
|
[
|
|
@@ -1772,11 +1772,11 @@ function _r({ card: e }) {
|
|
|
1772
1772
|
_,
|
|
1773
1773
|
J,
|
|
1774
1774
|
U,
|
|
1775
|
-
|
|
1775
|
+
j
|
|
1776
1776
|
]
|
|
1777
1777
|
), Y = G(
|
|
1778
1778
|
(S, H) => {
|
|
1779
|
-
const Q =
|
|
1779
|
+
const Q = Xn(H);
|
|
1780
1780
|
r((V) => ({
|
|
1781
1781
|
...V,
|
|
1782
1782
|
[S]: Q
|
|
@@ -1849,7 +1849,7 @@ function _r({ card: e }) {
|
|
|
1849
1849
|
filterInputs: $,
|
|
1850
1850
|
filters: F,
|
|
1851
1851
|
filterValues: [
|
|
1852
|
-
...
|
|
1852
|
+
...X || [],
|
|
1853
1853
|
...d || []
|
|
1854
1854
|
],
|
|
1855
1855
|
inlineFilters: B
|
|
@@ -1889,7 +1889,7 @@ function _r({ card: e }) {
|
|
|
1889
1889
|
filterInputs: $,
|
|
1890
1890
|
filters: F,
|
|
1891
1891
|
filterValues: [
|
|
1892
|
-
...
|
|
1892
|
+
...X || [],
|
|
1893
1893
|
...d || []
|
|
1894
1894
|
],
|
|
1895
1895
|
inlineFilters: B,
|
|
@@ -2032,10 +2032,10 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2032
2032
|
}
|
|
2033
2033
|
}), L = T.useRef(R);
|
|
2034
2034
|
function C(M) {
|
|
2035
|
-
const _ =
|
|
2035
|
+
const _ = Xr(R, M);
|
|
2036
2036
|
K(M, _);
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2038
|
+
function j(M) {
|
|
2039
2039
|
K(M, h.current);
|
|
2040
2040
|
}
|
|
2041
2041
|
function J() {
|
|
@@ -2044,14 +2044,14 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2044
2044
|
}
|
|
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
|
-
D((
|
|
2048
|
-
const Y = Yr(
|
|
2047
|
+
D((X = []) => {
|
|
2048
|
+
const Y = Yr(X, F, _);
|
|
2049
2049
|
if (Zr(Y, a * o)) {
|
|
2050
2050
|
h.current = Y.indexOf(F);
|
|
2051
|
-
const te = String(Y) !== String(
|
|
2052
|
-
return te && U && c(Y), te ? Y :
|
|
2051
|
+
const te = String(Y) !== String(X);
|
|
2052
|
+
return te && U && c(Y), te ? Y : X;
|
|
2053
2053
|
} else
|
|
2054
|
-
return
|
|
2054
|
+
return X;
|
|
2055
2055
|
});
|
|
2056
2056
|
}
|
|
2057
2057
|
return /* @__PURE__ */ N(
|
|
@@ -2081,14 +2081,14 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2081
2081
|
max: i,
|
|
2082
2082
|
inverted: m,
|
|
2083
2083
|
onSlideStart: l ? void 0 : C,
|
|
2084
|
-
onSlideMove: l ? void 0 :
|
|
2084
|
+
onSlideMove: l ? void 0 : j,
|
|
2085
2085
|
onSlideEnd: l ? void 0 : J,
|
|
2086
2086
|
onHomeKeyDown: () => !l && K(r, 0, { commit: !0 }),
|
|
2087
2087
|
onEndKeyDown: () => !l && K(i, R.length - 1, { commit: !0 }),
|
|
2088
2088
|
onStepKeyDown: ({ event: M, direction: _ }) => {
|
|
2089
2089
|
if (!l) {
|
|
2090
|
-
const $ = rn.includes(M.key) || M.shiftKey && on.includes(M.key) ? 10 : 1, F = h.current,
|
|
2091
|
-
K(
|
|
2090
|
+
const $ = rn.includes(M.key) || M.shiftKey && on.includes(M.key) ? 10 : 1, F = h.current, X = R[F], Y = o * $ * _;
|
|
2091
|
+
K(X + 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), l = un(nt, n), [a, d] = T.useState(null), f = Pe(t, (A) => d(A)), u = a ? s.form || !!a.closest("form") : !0, c = Gn(a), 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), l = un(nt, n), [a, d] = T.useState(null), f = Pe(t, (A) => d(A)), u = a ? s.form || !!a.closest("form") : !0, c = Gn(a), m = s.values[r], p = m === void 0 ? 0 : yn(m, s.min, s.max), g = jr(r, s.values.length), y = c == null ? void 0 : c[l.size], h = y ? Qr(y, p, l.direction) : 0;
|
|
2298
2298
|
return T.useEffect(() => {
|
|
2299
2299
|
if (a)
|
|
2300
2300
|
return s.thumbs.add(a), () => {
|
|
@@ -2375,10 +2375,10 @@ 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 jr(e, t) {
|
|
2379
2379
|
return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2381
|
+
function Xr(e, t) {
|
|
2382
2382
|
if (e.length === 1) return 0;
|
|
2383
2383
|
const n = e.map((i) => Math.abs(i - t)), r = Math.min(...n);
|
|
2384
2384
|
return n.indexOf(r);
|