react-semaphor 0.1.537 → 0.1.539
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 +352 -341
- package/dist/assistant-context/index.js +10 -0
- package/dist/assistant-protocol/index.js +104 -0
- package/dist/brand-studio/index.js +35 -31
- package/dist/briefings/index.js +46 -45
- package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/chunks/add-to-dashboard-CxtTfISD.js +56 -0
- package/dist/chunks/aggregate-table-row-presentation-BjK9YfMI.js +979 -0
- package/dist/chunks/analytics-base-schemas-BFAoRlkU.js +472 -0
- package/dist/chunks/apply-dashboard-operations-C-iahGka.js +402 -0
- package/dist/chunks/assistant-chat-DgiSuFT4.js +8083 -0
- package/dist/chunks/availability-Bp5Gfu1I.js +44 -0
- package/dist/chunks/{bookmark-state-B-I9BDD0.js → bookmark-state-k7y5SNGf.js} +9 -9
- package/dist/chunks/{braces-8TRlDwDw.js → braces-o9UiRQes.js} +1 -1
- package/dist/chunks/calculated-field-identity-DcBS2NPP.js +2161 -0
- package/dist/chunks/calendar-day-equality-Bpl15IBo.js +487 -0
- package/dist/chunks/class-utils-Df1OVOT1.js +2315 -0
- package/dist/chunks/{field-dependencies-CpRUwr9J.js → common-types-CUf03Htv.js} +65 -58
- package/dist/chunks/context-HD9usB1P.js +349 -0
- package/dist/chunks/conversation-sQiWYUOb.js +16 -0
- package/dist/chunks/csv-utils-GUfKyT1J.js +56 -0
- package/dist/chunks/custom-visual-inputs-BrUOIwln.js +3288 -0
- package/dist/chunks/{dashboard-briefing-launcher-A2uVpHCp.js → dashboard-briefing-launcher-Bl3gCeBR.js} +580 -556
- package/dist/chunks/{dashboard-controls-DxTuVis_.js → dashboard-controls-0EX0HiJt.js} +683 -686
- package/dist/chunks/{common-types-g7yS12Cg.js → dashboard-filter-value-compatibility-D95O4nd7.js} +18 -24
- package/dist/chunks/dashboard-json-6X_2BDiL.js +69 -0
- package/dist/chunks/{dashboard-BPJo-Fnd.js → dashboard-y5BwcvzT.js} +1 -1
- package/dist/chunks/document-dashboard-inputs-BrYYlRVo.js +10678 -0
- package/dist/chunks/document-sheet-utils-C1eEldxs.js +1076 -0
- package/dist/chunks/{edit-dashboard-visual-ByV0OwSp.js → edit-dashboard-visual-Bzchfgga.js} +4744 -4746
- package/dist/chunks/editor-draft-sync-BN5qYHPF.js +15 -0
- package/dist/chunks/filter-value-text-BhWugPWE.js +163 -0
- package/dist/chunks/index-CqMiAkay.js +3164 -0
- package/dist/chunks/index-CuHybtft.js +51 -0
- package/dist/chunks/layout-grid-Bgzth8vd.js +16 -0
- package/dist/chunks/{matrix-analytical-definition-CgBTD6H8.js → matrix-analytical-definition-bcprSe4u.js} +1 -1
- package/dist/chunks/{matrix-card-CAdizkUl.js → matrix-card-CJn1hB5V.js} +13 -12
- package/dist/chunks/matrix-definition-DQDI2okF.js +206 -0
- package/dist/chunks/{matrix-formatter-DJCk8Znf.js → matrix-formatter-DQ8avoIQ.js} +648 -457
- package/dist/chunks/matrix-member-presentation-BNPSDKBG.js +105 -0
- package/dist/chunks/{matrix-operation-contract-BKupLHXL.js → matrix-operation-contract-B8PBF1Gd.js} +134 -133
- package/dist/chunks/{metric-comparison-BKHyvnAy.js → metric-comparison-CojWeLqx.js} +1 -1
- package/dist/chunks/{palette-Cp1hqZtm.js → palette-D10o_yYX.js} +1 -1
- package/dist/chunks/pivot-header-presentation-MkcKnjn3.js +42 -0
- package/dist/chunks/{pivot-result-identity-Bs4tLtLo.js → pivot-result-identity-D6hhcRXi.js} +1 -1
- package/dist/chunks/pivot-result-lifecycle-8qCDmpKc.js +804 -0
- package/dist/chunks/raw-temporal-D61lr48Y.js +1464 -0
- package/dist/chunks/{raw-temporal-contract-mLFS-9wk.js → raw-temporal-contract-C51YG48G.js} +1 -1
- package/dist/chunks/report-preferences-dialog-CWhSbc5_.js +1808 -0
- package/dist/chunks/{report-runtime-context-CG_I0PPW.js → report-runtime-context-B984Nq1E.js} +8 -7
- package/dist/chunks/save-CfJpQQ68.js +21 -0
- package/dist/chunks/saved-dashboard-context-Dqve2jlB.js +566 -0
- package/dist/chunks/{selection-reducer-CiDEtmAq.js → selection-reducer-vKIb_jS6.js} +2 -2
- package/dist/chunks/{semaphor-ready-indicator-CHu1L-lo.js → semaphor-ready-indicator-ldcwmLoY.js} +65803 -62954
- package/dist/chunks/{shelf-drop-preview-context-i-H6DFyU.js → shelf-drop-preview-context-BWxunXTq.js} +199 -196
- package/dist/chunks/{source-entity-resolution-C-oNyYMp.js → source-entity-resolution-CVA1a85c.js} +8 -8
- package/dist/chunks/switch-CvItuC1Q.js +8199 -0
- package/dist/chunks/{temporal-bucket-DlFuhCnT.js → temporal-bucket-D8JF7zKz.js} +86 -71
- package/dist/chunks/{temporal-bucket-contract-D2OuaVZ7.js → temporal-bucket-contract-DaOajRC7.js} +1 -1
- package/dist/chunks/{token-types-DtSJOUjh.js → token-types-bxUxXDX2.js} +1 -1
- package/dist/chunks/{upload-CAIpsti1.js → upload-BFX7apKV.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Bj63WwHc.js → use-create-flow-overlay-state-RHgzVfcz.js} +331 -339
- package/dist/chunks/{validators-DMSH81OM.js → validators-Ej1DdCXa.js} +1050 -1510
- package/dist/chunks/visual-choice-JiJ-_3bi.js +204 -0
- package/dist/chunks/x-4f5U2XwU.js +100 -0
- package/dist/chunks/{zoned-wall-clock-1qlWCE20.js → zoned-wall-clock-MulfA26h.js} +2 -2
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +823 -661
- package/dist/data-app-sdk/index.js +32 -30
- package/dist/data-app-sdk-adapters/index.js +23 -22
- package/dist/data-app-sdk-validation/index.js +23 -22
- package/dist/format-utils/index.js +173 -168
- package/dist/index.js +267 -258
- package/dist/layouts/index.js +236 -24
- 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/assistant-context.d.ts +2 -0
- package/dist/types/assistant-protocol.d.ts +2 -0
- package/dist/types/components/assistant/assistant-entry-points.d.ts +18 -0
- package/dist/types/components/assistant/assistant-provider.d.ts +19 -0
- package/dist/types/components/assistant/assistant-store.d.ts +52 -0
- package/dist/types/components/assistant/use-assistant.d.ts +38 -0
- package/dist/types/components/index.d.ts +5 -1
- package/dist/types/components/surfboard/filter/types.d.ts +5 -2
- package/dist/types/index.js +50 -51
- package/dist/types/lib/api/invalidate-token.d.ts +7 -0
- package/dist/types/lib/charts/cartesian-fields.d.ts +64 -0
- package/dist/types/lib/charts/types.d.ts +7 -0
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +14 -2
- package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +5 -6
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +8 -3
- package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +11 -6
- package/dist/types/lib/dashboard-pagination/dashboard-card-pagination.d.ts +7 -0
- package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +79 -0
- package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +3 -2
- package/dist/types/lib/document/document-table-data-policy.d.ts +15 -0
- package/dist/types/lib/filter-values/filter-mode.d.ts +22 -0
- package/dist/types/lib/hooks/use-calendar-context.d.ts +5 -0
- package/dist/types/lib/hooks/use-filter-option-browse.d.ts +5 -0
- package/dist/types/lib/hooks/use-text-filter.d.ts +9 -0
- package/dist/types/lib/print/print-inputs.d.ts +4 -2
- package/dist/types/lib/query-context/build-card-query-context.d.ts +12 -4
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +93 -0
- package/dist/types/lib/query-context/card-server-request.d.ts +72 -0
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +7 -0
- package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +56 -0
- package/dist/types/lib/query-context/document-section-card-query.d.ts +45 -0
- package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +17 -2
- package/dist/types/lib/stores/dashboard-store.d.ts +34 -11
- package/dist/types/lib/stores/editor-store.d.ts +4 -2
- package/dist/types/lib/types/token-types.d.ts +11 -0
- package/dist/types/lib/utils/card-type-change.d.ts +30 -0
- package/dist/types/lib/utils/comparison-window-caption.d.ts +12 -0
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +13 -2
- package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +74 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +43 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/visual-choice.d.ts +75 -0
- package/dist/types/shared/assistant-context/index.d.ts +9 -0
- package/dist/types/shared/assistant-context/project-context.d.ts +55 -0
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +130 -0
- package/dist/types/shared/assistant-protocol/add-to-dashboard.d.ts +17 -0
- package/dist/types/shared/assistant-protocol/artifact.d.ts +63 -0
- package/dist/types/shared/assistant-protocol/availability.d.ts +39 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +952 -0
- package/dist/types/shared/assistant-protocol/conversation.d.ts +38 -0
- package/dist/types/shared/assistant-protocol/index.d.ts +16 -0
- package/dist/types/shared/assistant-protocol/limits.d.ts +53 -0
- package/dist/types/shared/assistant-protocol/parts.d.ts +140 -0
- package/dist/types/shared/assistant-protocol/request.d.ts +77 -0
- package/dist/types/shared/assistant-protocol/sources.d.ts +27 -0
- package/dist/types/shared/assistant-protocol/token-config.d.ts +32 -0
- package/dist/types/shared/assistant-protocol/transcript.d.ts +40 -0
- package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +112 -0
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +1794 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/new-card.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +40 -0
- package/dist/types/shared/dashboard-authoring/resolved-primary-date-field-validation.d.ts +16 -0
- package/dist/types/shared/format-utils/filter-detail.d.ts +70 -0
- package/dist/types/shared/format-utils/filter-value-text.d.ts +15 -0
- package/dist/types/shared/format-utils/index.d.ts +3 -0
- package/dist/types/shared/format-utils/raw-temporal.d.ts +7 -0
- package/dist/types/shared/format-utils/temporal-bucket.d.ts +7 -0
- package/dist/types/shared/layouts/frame-layouts.d.ts +23 -0
- package/dist/types/shared/layouts/index.d.ts +1 -0
- package/package.json +12 -2
- package/dist/chunks/calculated-field-identity-BptYhyOP.js +0 -1326
- package/dist/chunks/calendar-day-equality-BRjN1S9h.js +0 -383
- package/dist/chunks/card-config-utils-BOM1dxCk.js +0 -1150
- package/dist/chunks/constants-DNWVy8Y3.js +0 -9
- package/dist/chunks/dashboard-json-B1dEQu98.js +0 -65
- package/dist/chunks/field-aggregations-CoLzYHeL.js +0 -1229
- package/dist/chunks/index-DTcTAGGM.js +0 -4101
- package/dist/chunks/matrix-continuation-C4sRcjZU.js +0 -72
- package/dist/chunks/matrix-control-sources-DTqcA2_L.js +0 -636
- package/dist/chunks/matrix-definition-D9iShKZI.js +0 -87
- package/dist/chunks/matrix-member-presentation-Ct8GuxHt.js +0 -209
- package/dist/chunks/numeric-presentation-CWu3gunq.js +0 -537
- package/dist/chunks/pivot-header-presentation-CHs2GFrM.js +0 -753
- package/dist/chunks/pivot-result-lifecycle-DQz_gjGu.js +0 -789
- package/dist/chunks/raw-temporal-iMXRK-Qz.js +0 -930
- package/dist/chunks/report-preferences-dialog-DXPjteCU.js +0 -1623
- package/dist/chunks/save-kO6cIaob.js +0 -34
- package/dist/chunks/semantic-format-DiqYeKwU.js +0 -192
- package/dist/chunks/switch-DO8a0EfJ.js +0 -25004
- package/dist/chunks/temporal-input-presentation-BD7YNUzu.js +0 -195
- package/dist/chunks/x-CXDkqdur.js +0 -149
- package/dist/types/lib/class-utils.d.ts +0 -2
- package/dist/types/lib/document/document-input-runtime.d.ts +0 -26
- package/dist/types/lib/utils.d.ts +0 -51
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { jsxs as De, jsx as _, Fragment as ft } from "react/jsx-runtime";
|
|
2
2
|
import * as k from "react";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { f as
|
|
7
|
-
import {
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
3
|
+
import xn, { forwardRef as $e, createElement as xe, useContext as nt, createContext as xt, useRef as B, useLayoutEffect as zn, useImperativeHandle as zt, useEffect as Z, useState as ue, useCallback as O, useMemo as U, memo as Pn, Suspense as wn, useSyncExternalStore as Cn } from "react";
|
|
4
|
+
import { aS as En, Z as te, aT as Pt, _ as wt, aU as rt, aV as Ct, aW as In, aX as Rn, aY as Dn, aZ as An, u as Ge, a_ as Mn, a$ as Nn, b0 as Ln, b1 as _n, b2 as kn, b3 as Tn, b4 as Hn, b5 as $n } from "./semaphor-ready-indicator-ldcwmLoY.js";
|
|
5
|
+
import { C as Et, y as It, z as ze, A as pe, D as Vn, E as Fn, F as Kn, G as Pe, H as Bn, J as Rt, K as qn, M as On } from "./switch-CvItuC1Q.js";
|
|
6
|
+
import { f as Gn, r as Dt } from "./editor-draft-sync-BN5qYHPF.js";
|
|
7
|
+
import { a2 as Un, a3 as Wn, a4 as Xn } from "./document-dashboard-inputs-BrYYlRVo.js";
|
|
8
|
+
import { f as Yn, d as At, h as Mt, j as Qe, k as _e, l as jn, e as Qn } from "./custom-visual-inputs-BrUOIwln.js";
|
|
9
|
+
import "./index-CuHybtft.js";
|
|
10
|
+
import "./validators-Ej1DdCXa.js";
|
|
11
|
+
import "./matrix-operation-contract-B8PBF1Gd.js";
|
|
12
|
+
import "./analytics-base-schemas-BFAoRlkU.js";
|
|
11
13
|
import "zod";
|
|
12
14
|
import "../value-format-preferences/index.js";
|
|
15
|
+
import { c as ot } from "./class-utils-Df1OVOT1.js";
|
|
13
16
|
import { u as Jn } from "./appearance-context-DEYtWinQ.js";
|
|
14
|
-
const
|
|
17
|
+
const bo = xn.memo(function({
|
|
15
18
|
context: t = "editor"
|
|
16
19
|
} = {}) {
|
|
17
20
|
return /* @__PURE__ */ De(
|
|
@@ -26,8 +29,8 @@ const yo = bn.memo(function({
|
|
|
26
29
|
]
|
|
27
30
|
}
|
|
28
31
|
);
|
|
29
|
-
}),
|
|
30
|
-
|
|
32
|
+
}), Ve = xt(null);
|
|
33
|
+
Ve.displayName = "PanelGroupContext";
|
|
31
34
|
const K = {
|
|
32
35
|
group: "data-panel-group",
|
|
33
36
|
groupDirection: "data-panel-group-direction",
|
|
@@ -65,20 +68,20 @@ function Nt({
|
|
|
65
68
|
tagName: m = "div",
|
|
66
69
|
...y
|
|
67
70
|
}) {
|
|
68
|
-
const S = nt(
|
|
71
|
+
const S = nt(Ve);
|
|
69
72
|
if (S === null)
|
|
70
73
|
throw Error("Panel components must be rendered within a PanelGroup container");
|
|
71
74
|
const {
|
|
72
75
|
collapsePanel: v,
|
|
73
76
|
expandPanel: D,
|
|
74
|
-
getPanelSize:
|
|
77
|
+
getPanelSize: x,
|
|
75
78
|
getPanelStyle: I,
|
|
76
79
|
groupId: R,
|
|
77
80
|
isPanelCollapsed: M,
|
|
78
81
|
reevaluatePanelConstraints: w,
|
|
79
82
|
registerPanel: X,
|
|
80
83
|
resizePanel: j,
|
|
81
|
-
unregisterPanel:
|
|
84
|
+
unregisterPanel: $
|
|
82
85
|
} = S, A = st(s), N = B({
|
|
83
86
|
callbacks: {
|
|
84
87
|
onCollapse: f,
|
|
@@ -100,29 +103,29 @@ function Nt({
|
|
|
100
103
|
didLogMissingDefaultSizeWarning: !1
|
|
101
104
|
}), me(() => {
|
|
102
105
|
const {
|
|
103
|
-
callbacks:
|
|
106
|
+
callbacks: V,
|
|
104
107
|
constraints: T
|
|
105
108
|
} = N.current, H = {
|
|
106
109
|
...T
|
|
107
110
|
};
|
|
108
|
-
N.current.id = A, N.current.idIsFromProps = s !== void 0, N.current.order = c,
|
|
111
|
+
N.current.id = A, N.current.idIsFromProps = s !== void 0, N.current.order = c, V.onCollapse = f, V.onExpand = p, V.onResize = u, T.collapsedSize = n, T.collapsible = r, T.defaultSize = i, T.maxSize = l, T.minSize = a, (H.collapsedSize !== T.collapsedSize || H.collapsible !== T.collapsible || H.maxSize !== T.maxSize || H.minSize !== T.minSize) && w(N.current, H);
|
|
109
112
|
}), me(() => {
|
|
110
|
-
const
|
|
111
|
-
return X(
|
|
112
|
-
V
|
|
113
|
+
const V = N.current;
|
|
114
|
+
return X(V), () => {
|
|
115
|
+
$(V);
|
|
113
116
|
};
|
|
114
|
-
}, [c, A, X,
|
|
117
|
+
}, [c, A, X, $]), zt(o, () => ({
|
|
115
118
|
collapse: () => {
|
|
116
119
|
v(N.current);
|
|
117
120
|
},
|
|
118
|
-
expand: (
|
|
119
|
-
D(N.current,
|
|
121
|
+
expand: (V) => {
|
|
122
|
+
D(N.current, V);
|
|
120
123
|
},
|
|
121
124
|
getId() {
|
|
122
125
|
return A;
|
|
123
126
|
},
|
|
124
127
|
getSize() {
|
|
125
|
-
return
|
|
128
|
+
return x(N.current);
|
|
126
129
|
},
|
|
127
130
|
isCollapsed() {
|
|
128
131
|
return M(N.current);
|
|
@@ -130,12 +133,12 @@ function Nt({
|
|
|
130
133
|
isExpanded() {
|
|
131
134
|
return !M(N.current);
|
|
132
135
|
},
|
|
133
|
-
resize: (
|
|
134
|
-
j(N.current,
|
|
136
|
+
resize: (V) => {
|
|
137
|
+
j(N.current, V);
|
|
135
138
|
}
|
|
136
|
-
}), [v, D,
|
|
139
|
+
}), [v, D, x, M, A, j]);
|
|
137
140
|
const W = I(N.current, i);
|
|
138
|
-
return
|
|
141
|
+
return xe(m, {
|
|
139
142
|
...y,
|
|
140
143
|
children: e,
|
|
141
144
|
className: t,
|
|
@@ -152,7 +155,7 @@ function Nt({
|
|
|
152
155
|
[K.panelSize]: parseFloat("" + W.flexGrow).toFixed(1)
|
|
153
156
|
});
|
|
154
157
|
}
|
|
155
|
-
const tr =
|
|
158
|
+
const tr = $e((e, t) => xe(Nt, {
|
|
156
159
|
...e,
|
|
157
160
|
forwardedRef: t
|
|
158
161
|
}));
|
|
@@ -161,7 +164,7 @@ tr.displayName = "forwardRef(Panel)";
|
|
|
161
164
|
let Je = null, ke = -1, ce = null;
|
|
162
165
|
function nr(e, t) {
|
|
163
166
|
if (t) {
|
|
164
|
-
const n = (t & Ht) !== 0, r = (t &
|
|
167
|
+
const n = (t & Ht) !== 0, r = (t & $t) !== 0, i = (t & Vt) !== 0, o = (t & Ft) !== 0;
|
|
165
168
|
if (n)
|
|
166
169
|
return i ? "se-resize" : o ? "ne-resize" : "e-resize";
|
|
167
170
|
if (r)
|
|
@@ -288,8 +291,8 @@ function Tt(e) {
|
|
|
288
291
|
} = e;
|
|
289
292
|
return t && t instanceof ShadowRoot ? t.host : t;
|
|
290
293
|
}
|
|
291
|
-
const Ht = 1,
|
|
292
|
-
let ne = [],
|
|
294
|
+
const Ht = 1, $t = 2, Vt = 4, Ft = 8, ur = or() === "coarse";
|
|
295
|
+
let ne = [], be = !1, fe = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ new Map();
|
|
293
296
|
const Ae = /* @__PURE__ */ new Set();
|
|
294
297
|
function dr(e, t, n, r, i) {
|
|
295
298
|
var o;
|
|
@@ -318,7 +321,7 @@ function fr(e) {
|
|
|
318
321
|
x: n,
|
|
319
322
|
y: r
|
|
320
323
|
} = Fe(e);
|
|
321
|
-
|
|
324
|
+
be = !0, lt({
|
|
322
325
|
target: t,
|
|
323
326
|
x: n,
|
|
324
327
|
y: r
|
|
@@ -329,7 +332,7 @@ function We(e) {
|
|
|
329
332
|
x: t,
|
|
330
333
|
y: n
|
|
331
334
|
} = Fe(e);
|
|
332
|
-
if (
|
|
335
|
+
if (be && e.buttons === 0 && (be = !1, He("up", e)), !be) {
|
|
333
336
|
const {
|
|
334
337
|
target: r
|
|
335
338
|
} = e;
|
|
@@ -348,7 +351,7 @@ function Xe(e) {
|
|
|
348
351
|
x: n,
|
|
349
352
|
y: r
|
|
350
353
|
} = Fe(e);
|
|
351
|
-
Ke.clear(),
|
|
354
|
+
Ke.clear(), be = !1, ne.length > 0 && (e.preventDefault(), Kt(t) || e.stopImmediatePropagation()), He("up", e), lt({
|
|
352
355
|
target: t,
|
|
353
356
|
x: n,
|
|
354
357
|
y: r
|
|
@@ -423,7 +426,7 @@ function Te() {
|
|
|
423
426
|
capture: !0,
|
|
424
427
|
signal: je.signal
|
|
425
428
|
};
|
|
426
|
-
Ae.size && (
|
|
429
|
+
Ae.size && (be ? (ne.length > 0 && fe.forEach((t, n) => {
|
|
427
430
|
const {
|
|
428
431
|
body: r
|
|
429
432
|
} = n;
|
|
@@ -587,10 +590,10 @@ function Ie({
|
|
|
587
590
|
for (; v >= 0 && v < n.length; ) {
|
|
588
591
|
const D = s[v];
|
|
589
592
|
E(D != null, `Previous layout not found for panel index ${v}`);
|
|
590
|
-
const
|
|
593
|
+
const x = D + y, I = Se({
|
|
591
594
|
panelConstraints: n,
|
|
592
595
|
panelIndex: v,
|
|
593
|
-
size:
|
|
596
|
+
size: x
|
|
594
597
|
});
|
|
595
598
|
if (J(D, I) || (y -= I - D, s[v] = I), J(y, 0))
|
|
596
599
|
break;
|
|
@@ -709,15 +712,15 @@ function yr({
|
|
|
709
712
|
switch (v.key) {
|
|
710
713
|
case "Enter": {
|
|
711
714
|
v.preventDefault();
|
|
712
|
-
const D = a.findIndex((
|
|
715
|
+
const D = a.findIndex((x) => x.id === m);
|
|
713
716
|
if (D >= 0) {
|
|
714
|
-
const
|
|
715
|
-
E(
|
|
717
|
+
const x = a[D];
|
|
718
|
+
E(x, `No panel data found for index ${D}`);
|
|
716
719
|
const I = r[D], {
|
|
717
720
|
collapsedSize: R = 0,
|
|
718
721
|
collapsible: M,
|
|
719
722
|
minSize: w = 0
|
|
720
|
-
} =
|
|
723
|
+
} = x.constraints;
|
|
721
724
|
if (I != null && M) {
|
|
722
725
|
const X = Ie({
|
|
723
726
|
delta: J(I, R) ? w - R : R - I,
|
|
@@ -801,7 +804,7 @@ function Sr(e, t, n, r, i, o) {
|
|
|
801
804
|
} else
|
|
802
805
|
return r == null ? 0 : vr(e, t, n, r, o);
|
|
803
806
|
}
|
|
804
|
-
function
|
|
807
|
+
function br({
|
|
805
808
|
panelDataArray: e
|
|
806
809
|
}) {
|
|
807
810
|
const t = Array(e.length), n = e.map((o) => o.constraints);
|
|
@@ -858,7 +861,7 @@ function Le(e, t) {
|
|
|
858
861
|
return !1;
|
|
859
862
|
return !0;
|
|
860
863
|
}
|
|
861
|
-
function
|
|
864
|
+
function xr({
|
|
862
865
|
defaultSize: e,
|
|
863
866
|
dragState: t,
|
|
864
867
|
layout: n,
|
|
@@ -988,7 +991,7 @@ const Cr = 100, Re = {
|
|
|
988
991
|
setItem: (e, t) => {
|
|
989
992
|
vt(Re), Re.setItem(e, t);
|
|
990
993
|
}
|
|
991
|
-
},
|
|
994
|
+
}, bt = {};
|
|
992
995
|
function Yt({
|
|
993
996
|
autoSaveId: e = null,
|
|
994
997
|
children: t,
|
|
@@ -1003,7 +1006,7 @@ function Yt({
|
|
|
1003
1006
|
tagName: p = "div",
|
|
1004
1007
|
...u
|
|
1005
1008
|
}) {
|
|
1006
|
-
const c = st(o), h = B(null), [m, y] = ue(null), [S, v] = ue([]), D = pr(),
|
|
1009
|
+
const c = st(o), h = B(null), [m, y] = ue(null), [S, v] = ue([]), D = pr(), x = B({}), I = B(/* @__PURE__ */ new Map()), R = B(0), M = B({
|
|
1007
1010
|
autoSaveId: e,
|
|
1008
1011
|
direction: r,
|
|
1009
1012
|
dragState: m,
|
|
@@ -1024,21 +1027,21 @@ function Yt({
|
|
|
1024
1027
|
getId: () => M.current.id,
|
|
1025
1028
|
getLayout: () => {
|
|
1026
1029
|
const {
|
|
1027
|
-
layout:
|
|
1030
|
+
layout: b
|
|
1028
1031
|
} = w.current;
|
|
1029
|
-
return
|
|
1032
|
+
return b;
|
|
1030
1033
|
},
|
|
1031
|
-
setLayout: (
|
|
1034
|
+
setLayout: (b) => {
|
|
1032
1035
|
const {
|
|
1033
1036
|
onLayout: z
|
|
1034
1037
|
} = M.current, {
|
|
1035
1038
|
layout: C,
|
|
1036
1039
|
panelDataArray: d
|
|
1037
1040
|
} = w.current, g = St({
|
|
1038
|
-
layout:
|
|
1041
|
+
layout: b,
|
|
1039
1042
|
panelConstraints: d.map((P) => P.constraints)
|
|
1040
1043
|
});
|
|
1041
|
-
yt(C, g) || (v(g), w.current.layout = g, z && z(g), ye(d, g,
|
|
1044
|
+
yt(C, g) || (v(g), w.current.layout = g, z && z(g), ye(d, g, x.current));
|
|
1042
1045
|
}
|
|
1043
1046
|
}), []), me(() => {
|
|
1044
1047
|
M.current.autoSaveId = e, M.current.direction = r, M.current.dragState = m, M.current.id = c, M.current.onLayout = s, M.current.storage = a;
|
|
@@ -1052,34 +1055,34 @@ function Yt({
|
|
|
1052
1055
|
panelGroupElement: h.current
|
|
1053
1056
|
}), Z(() => {
|
|
1054
1057
|
const {
|
|
1055
|
-
panelDataArray:
|
|
1058
|
+
panelDataArray: b
|
|
1056
1059
|
} = w.current;
|
|
1057
1060
|
if (e) {
|
|
1058
|
-
if (S.length === 0 || S.length !==
|
|
1061
|
+
if (S.length === 0 || S.length !== b.length)
|
|
1059
1062
|
return;
|
|
1060
|
-
let z =
|
|
1061
|
-
z == null && (z = zr(wr, Cr),
|
|
1062
|
-
const C = [...
|
|
1063
|
+
let z = bt[e];
|
|
1064
|
+
z == null && (z = zr(wr, Cr), bt[e] = z);
|
|
1065
|
+
const C = [...b], d = new Map(I.current);
|
|
1063
1066
|
z(e, C, d, S, a);
|
|
1064
1067
|
}
|
|
1065
1068
|
}, [e, S, a]), Z(() => {
|
|
1066
1069
|
});
|
|
1067
|
-
const X = O((
|
|
1070
|
+
const X = O((b) => {
|
|
1068
1071
|
const {
|
|
1069
1072
|
onLayout: z
|
|
1070
1073
|
} = M.current, {
|
|
1071
1074
|
layout: C,
|
|
1072
1075
|
panelDataArray: d
|
|
1073
1076
|
} = w.current;
|
|
1074
|
-
if (
|
|
1077
|
+
if (b.constraints.collapsible) {
|
|
1075
1078
|
const g = d.map((oe) => oe.constraints), {
|
|
1076
1079
|
collapsedSize: P = 0,
|
|
1077
1080
|
panelSize: L,
|
|
1078
1081
|
pivotIndices: q
|
|
1079
|
-
} = de(d,
|
|
1080
|
-
if (E(L != null, `Panel size not found for panel "${
|
|
1081
|
-
I.current.set(
|
|
1082
|
-
const ie = ve(d,
|
|
1082
|
+
} = de(d, b, C);
|
|
1083
|
+
if (E(L != null, `Panel size not found for panel "${b.id}"`), !le(L, P)) {
|
|
1084
|
+
I.current.set(b.id, L);
|
|
1085
|
+
const ie = ve(d, b) === d.length - 1 ? L - P : P - L, F = Ie({
|
|
1083
1086
|
delta: ie,
|
|
1084
1087
|
initialLayout: C,
|
|
1085
1088
|
panelConstraints: g,
|
|
@@ -1087,25 +1090,25 @@ function Yt({
|
|
|
1087
1090
|
prevLayout: C,
|
|
1088
1091
|
trigger: "imperative-api"
|
|
1089
1092
|
});
|
|
1090
|
-
Le(C, F) || (v(F), w.current.layout = F, z && z(F), ye(d, F,
|
|
1093
|
+
Le(C, F) || (v(F), w.current.layout = F, z && z(F), ye(d, F, x.current));
|
|
1091
1094
|
}
|
|
1092
1095
|
}
|
|
1093
|
-
}, []), j = O((
|
|
1096
|
+
}, []), j = O((b, z) => {
|
|
1094
1097
|
const {
|
|
1095
1098
|
onLayout: C
|
|
1096
1099
|
} = M.current, {
|
|
1097
1100
|
layout: d,
|
|
1098
1101
|
panelDataArray: g
|
|
1099
1102
|
} = w.current;
|
|
1100
|
-
if (
|
|
1103
|
+
if (b.constraints.collapsible) {
|
|
1101
1104
|
const P = g.map((ee) => ee.constraints), {
|
|
1102
1105
|
collapsedSize: L = 0,
|
|
1103
1106
|
panelSize: q = 0,
|
|
1104
1107
|
minSize: oe = 0,
|
|
1105
1108
|
pivotIndices: ie
|
|
1106
|
-
} = de(g,
|
|
1109
|
+
} = de(g, b, d), F = z ?? oe;
|
|
1107
1110
|
if (le(q, L)) {
|
|
1108
|
-
const ee = I.current.get(
|
|
1111
|
+
const ee = I.current.get(b.id), Ce = ee != null && ee >= F ? ee : F, Oe = ve(g, b) === g.length - 1 ? q - Ce : Ce - q, Q = Ie({
|
|
1109
1112
|
delta: Oe,
|
|
1110
1113
|
initialLayout: d,
|
|
1111
1114
|
panelConstraints: P,
|
|
@@ -1113,29 +1116,29 @@ function Yt({
|
|
|
1113
1116
|
prevLayout: d,
|
|
1114
1117
|
trigger: "imperative-api"
|
|
1115
1118
|
});
|
|
1116
|
-
Le(d, Q) || (v(Q), w.current.layout = Q, C && C(Q), ye(g, Q,
|
|
1119
|
+
Le(d, Q) || (v(Q), w.current.layout = Q, C && C(Q), ye(g, Q, x.current));
|
|
1117
1120
|
}
|
|
1118
1121
|
}
|
|
1119
|
-
}, []),
|
|
1122
|
+
}, []), $ = O((b) => {
|
|
1120
1123
|
const {
|
|
1121
1124
|
layout: z,
|
|
1122
1125
|
panelDataArray: C
|
|
1123
1126
|
} = w.current, {
|
|
1124
1127
|
panelSize: d
|
|
1125
|
-
} = de(C,
|
|
1126
|
-
return E(d != null, `Panel size not found for panel "${
|
|
1127
|
-
}, []), A = O((
|
|
1128
|
+
} = de(C, b, z);
|
|
1129
|
+
return E(d != null, `Panel size not found for panel "${b.id}"`), d;
|
|
1130
|
+
}, []), A = O((b, z) => {
|
|
1128
1131
|
const {
|
|
1129
1132
|
panelDataArray: C
|
|
1130
|
-
} = w.current, d = ve(C,
|
|
1131
|
-
return
|
|
1133
|
+
} = w.current, d = ve(C, b);
|
|
1134
|
+
return xr({
|
|
1132
1135
|
defaultSize: z,
|
|
1133
1136
|
dragState: m,
|
|
1134
1137
|
layout: S,
|
|
1135
1138
|
panelData: C,
|
|
1136
1139
|
panelIndex: d
|
|
1137
1140
|
});
|
|
1138
|
-
}, [m, S]), N = O((
|
|
1141
|
+
}, [m, S]), N = O((b) => {
|
|
1139
1142
|
const {
|
|
1140
1143
|
layout: z,
|
|
1141
1144
|
panelDataArray: C
|
|
@@ -1143,9 +1146,9 @@ function Yt({
|
|
|
1143
1146
|
collapsedSize: d = 0,
|
|
1144
1147
|
collapsible: g,
|
|
1145
1148
|
panelSize: P
|
|
1146
|
-
} = de(C,
|
|
1147
|
-
return E(P != null, `Panel size not found for panel "${
|
|
1148
|
-
}, []), W = O((
|
|
1149
|
+
} = de(C, b, z);
|
|
1150
|
+
return E(P != null, `Panel size not found for panel "${b.id}"`), g === !0 && le(P, d);
|
|
1151
|
+
}, []), W = O((b) => {
|
|
1149
1152
|
const {
|
|
1150
1153
|
layout: z,
|
|
1151
1154
|
panelDataArray: C
|
|
@@ -1153,13 +1156,13 @@ function Yt({
|
|
|
1153
1156
|
collapsedSize: d = 0,
|
|
1154
1157
|
collapsible: g,
|
|
1155
1158
|
panelSize: P
|
|
1156
|
-
} = de(C,
|
|
1157
|
-
return E(P != null, `Panel size not found for panel "${
|
|
1158
|
-
}, []),
|
|
1159
|
+
} = de(C, b, z);
|
|
1160
|
+
return E(P != null, `Panel size not found for panel "${b.id}"`), !g || ge(P, d) > 0;
|
|
1161
|
+
}, []), V = O((b) => {
|
|
1159
1162
|
const {
|
|
1160
1163
|
panelDataArray: z
|
|
1161
1164
|
} = w.current;
|
|
1162
|
-
z.push(
|
|
1165
|
+
z.push(b), z.sort((C, d) => {
|
|
1163
1166
|
const g = C.order, P = d.order;
|
|
1164
1167
|
return g == null && P == null ? 0 : g == null ? -1 : P == null ? 1 : g - P;
|
|
1165
1168
|
}), w.current.panelDataArrayChanged = !0, D();
|
|
@@ -1168,7 +1171,7 @@ function Yt({
|
|
|
1168
1171
|
if (w.current.panelDataArrayChanged) {
|
|
1169
1172
|
w.current.panelDataArrayChanged = !1;
|
|
1170
1173
|
const {
|
|
1171
|
-
autoSaveId:
|
|
1174
|
+
autoSaveId: b,
|
|
1172
1175
|
onLayout: z,
|
|
1173
1176
|
storage: C
|
|
1174
1177
|
} = M.current, {
|
|
@@ -1176,26 +1179,26 @@ function Yt({
|
|
|
1176
1179
|
panelDataArray: g
|
|
1177
1180
|
} = w.current;
|
|
1178
1181
|
let P = null;
|
|
1179
|
-
if (
|
|
1180
|
-
const q = Pr(
|
|
1182
|
+
if (b) {
|
|
1183
|
+
const q = Pr(b, g, C);
|
|
1181
1184
|
q && (I.current = new Map(Object.entries(q.expandToSizes)), P = q.layout);
|
|
1182
1185
|
}
|
|
1183
|
-
P == null && (P =
|
|
1186
|
+
P == null && (P = br({
|
|
1184
1187
|
panelDataArray: g
|
|
1185
1188
|
}));
|
|
1186
1189
|
const L = St({
|
|
1187
1190
|
layout: P,
|
|
1188
1191
|
panelConstraints: g.map((q) => q.constraints)
|
|
1189
1192
|
});
|
|
1190
|
-
yt(d, L) || (v(L), w.current.layout = L, z && z(L), ye(g, L,
|
|
1193
|
+
yt(d, L) || (v(L), w.current.layout = L, z && z(L), ye(g, L, x.current));
|
|
1191
1194
|
}
|
|
1192
1195
|
}), me(() => {
|
|
1193
|
-
const
|
|
1196
|
+
const b = w.current;
|
|
1194
1197
|
return () => {
|
|
1195
|
-
|
|
1198
|
+
b.layout = [];
|
|
1196
1199
|
};
|
|
1197
1200
|
}, []);
|
|
1198
|
-
const T = O((
|
|
1201
|
+
const T = O((b) => {
|
|
1199
1202
|
let z = !1;
|
|
1200
1203
|
const C = h.current;
|
|
1201
1204
|
return C && window.getComputedStyle(C, null).getPropertyValue("direction") === "rtl" && (z = !0), function(g) {
|
|
@@ -1214,11 +1217,11 @@ function Yt({
|
|
|
1214
1217
|
panelDataArray: Ce
|
|
1215
1218
|
} = w.current, {
|
|
1216
1219
|
initialLayout: Ne
|
|
1217
|
-
} = q ?? {}, Oe = qt(oe,
|
|
1218
|
-
let Q = Sr(g,
|
|
1220
|
+
} = q ?? {}, Oe = qt(oe, b, P);
|
|
1221
|
+
let Q = Sr(g, b, L, q, ie, P);
|
|
1219
1222
|
const ut = L === "horizontal";
|
|
1220
1223
|
ut && z && (Q = -Q);
|
|
1221
|
-
const Sn = Ce.map((
|
|
1224
|
+
const Sn = Ce.map((bn) => bn.constraints), Ee = Ie({
|
|
1222
1225
|
delta: Q,
|
|
1223
1226
|
initialLayout: Ne ?? ee,
|
|
1224
1227
|
panelConstraints: Sn,
|
|
@@ -1226,9 +1229,9 @@ function Yt({
|
|
|
1226
1229
|
prevLayout: ee,
|
|
1227
1230
|
trigger: Lt(g) ? "keyboard" : "mouse-or-touch"
|
|
1228
1231
|
}), dt = !Le(ee, Ee);
|
|
1229
|
-
(_t(g) || kt(g)) && R.current != Q && (R.current = Q, !dt && Q !== 0 ? ut ? Ye(
|
|
1232
|
+
(_t(g) || kt(g)) && R.current != Q && (R.current = Q, !dt && Q !== 0 ? ut ? Ye(b, Q < 0 ? Ht : $t) : Ye(b, Q < 0 ? Vt : Ft) : Ye(b, 0)), dt && (v(Ee), w.current.layout = Ee, F && F(Ee), ye(Ce, Ee, x.current));
|
|
1230
1233
|
};
|
|
1231
|
-
}, []), H = O((
|
|
1234
|
+
}, []), H = O((b, z) => {
|
|
1232
1235
|
const {
|
|
1233
1236
|
onLayout: C
|
|
1234
1237
|
} = M.current, {
|
|
@@ -1237,9 +1240,9 @@ function Yt({
|
|
|
1237
1240
|
} = w.current, P = g.map((ee) => ee.constraints), {
|
|
1238
1241
|
panelSize: L,
|
|
1239
1242
|
pivotIndices: q
|
|
1240
|
-
} = de(g,
|
|
1241
|
-
E(L != null, `Panel size not found for panel "${
|
|
1242
|
-
const ie = ve(g,
|
|
1243
|
+
} = de(g, b, d);
|
|
1244
|
+
E(L != null, `Panel size not found for panel "${b.id}"`);
|
|
1245
|
+
const ie = ve(g, b) === g.length - 1 ? L - z : z - L, F = Ie({
|
|
1243
1246
|
delta: ie,
|
|
1244
1247
|
initialLayout: d,
|
|
1245
1248
|
panelConstraints: P,
|
|
@@ -1247,8 +1250,8 @@ function Yt({
|
|
|
1247
1250
|
prevLayout: d,
|
|
1248
1251
|
trigger: "imperative-api"
|
|
1249
1252
|
});
|
|
1250
|
-
Le(d, F) || (v(F), w.current.layout = F, C && C(F), ye(g, F,
|
|
1251
|
-
}, []), Y = O((
|
|
1253
|
+
Le(d, F) || (v(F), w.current.layout = F, C && C(F), ye(g, F, x.current));
|
|
1254
|
+
}, []), Y = O((b, z) => {
|
|
1252
1255
|
const {
|
|
1253
1256
|
layout: C,
|
|
1254
1257
|
panelDataArray: d
|
|
@@ -1260,11 +1263,11 @@ function Yt({
|
|
|
1260
1263
|
collapsible: q,
|
|
1261
1264
|
maxSize: oe = 100,
|
|
1262
1265
|
minSize: ie = 0
|
|
1263
|
-
} =
|
|
1266
|
+
} = b.constraints, {
|
|
1264
1267
|
panelSize: F
|
|
1265
|
-
} = de(d,
|
|
1266
|
-
F != null && (P && q && le(F, g) ? le(g, L) || H(
|
|
1267
|
-
}, [H]), G = O((
|
|
1268
|
+
} = de(d, b, C);
|
|
1269
|
+
F != null && (P && q && le(F, g) ? le(g, L) || H(b, L) : F < ie ? H(b, ie) : F > oe && H(b, oe));
|
|
1270
|
+
}, [H]), G = O((b, z) => {
|
|
1268
1271
|
const {
|
|
1269
1272
|
direction: C
|
|
1270
1273
|
} = M.current, {
|
|
@@ -1272,50 +1275,50 @@ function Yt({
|
|
|
1272
1275
|
} = w.current;
|
|
1273
1276
|
if (!h.current)
|
|
1274
1277
|
return;
|
|
1275
|
-
const g = Be(
|
|
1276
|
-
E(g, `Drag handle element not found for id "${
|
|
1278
|
+
const g = Be(b, h.current);
|
|
1279
|
+
E(g, `Drag handle element not found for id "${b}"`);
|
|
1277
1280
|
const P = Gt(C, z);
|
|
1278
1281
|
y({
|
|
1279
|
-
dragHandleId:
|
|
1282
|
+
dragHandleId: b,
|
|
1280
1283
|
dragHandleRect: g.getBoundingClientRect(),
|
|
1281
1284
|
initialCursorPosition: P,
|
|
1282
1285
|
initialLayout: d
|
|
1283
1286
|
});
|
|
1284
1287
|
}, []), re = O(() => {
|
|
1285
1288
|
y(null);
|
|
1286
|
-
}, []), he = O((
|
|
1289
|
+
}, []), he = O((b) => {
|
|
1287
1290
|
const {
|
|
1288
1291
|
panelDataArray: z
|
|
1289
|
-
} = w.current, C = ve(z,
|
|
1290
|
-
C >= 0 && (z.splice(C, 1), delete
|
|
1292
|
+
} = w.current, C = ve(z, b);
|
|
1293
|
+
C >= 0 && (z.splice(C, 1), delete x.current[b.id], w.current.panelDataArrayChanged = !0, D());
|
|
1291
1294
|
}, [D]), se = U(() => ({
|
|
1292
1295
|
collapsePanel: X,
|
|
1293
1296
|
direction: r,
|
|
1294
1297
|
dragState: m,
|
|
1295
1298
|
expandPanel: j,
|
|
1296
|
-
getPanelSize:
|
|
1299
|
+
getPanelSize: $,
|
|
1297
1300
|
getPanelStyle: A,
|
|
1298
1301
|
groupId: c,
|
|
1299
1302
|
isPanelCollapsed: N,
|
|
1300
1303
|
isPanelExpanded: W,
|
|
1301
1304
|
reevaluatePanelConstraints: Y,
|
|
1302
|
-
registerPanel:
|
|
1305
|
+
registerPanel: V,
|
|
1303
1306
|
registerResizeHandle: T,
|
|
1304
1307
|
resizePanel: H,
|
|
1305
1308
|
startDragging: G,
|
|
1306
1309
|
stopDragging: re,
|
|
1307
1310
|
unregisterPanel: he,
|
|
1308
1311
|
panelGroupElement: h.current
|
|
1309
|
-
}), [X, m, r, j,
|
|
1312
|
+
}), [X, m, r, j, $, A, c, N, W, Y, V, T, H, G, re, he]), ae = {
|
|
1310
1313
|
display: "flex",
|
|
1311
1314
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
1312
1315
|
height: "100%",
|
|
1313
1316
|
overflow: "hidden",
|
|
1314
1317
|
width: "100%"
|
|
1315
1318
|
};
|
|
1316
|
-
return
|
|
1319
|
+
return xe(Ve.Provider, {
|
|
1317
1320
|
value: se
|
|
1318
|
-
},
|
|
1321
|
+
}, xe(p, {
|
|
1319
1322
|
...u,
|
|
1320
1323
|
children: t,
|
|
1321
1324
|
className: n,
|
|
@@ -1331,7 +1334,7 @@ function Yt({
|
|
|
1331
1334
|
[K.groupId]: c
|
|
1332
1335
|
}));
|
|
1333
1336
|
}
|
|
1334
|
-
const Er =
|
|
1337
|
+
const Er = $e((e, t) => xe(Yt, {
|
|
1335
1338
|
...e,
|
|
1336
1339
|
forwardedRef: t
|
|
1337
1340
|
}));
|
|
@@ -1416,8 +1419,8 @@ function Rr({
|
|
|
1416
1419
|
Z(() => {
|
|
1417
1420
|
D.current.onClick = s, D.current.onDragging = l, D.current.onPointerDown = f, D.current.onPointerUp = p;
|
|
1418
1421
|
});
|
|
1419
|
-
const
|
|
1420
|
-
if (
|
|
1422
|
+
const x = nt(Ve);
|
|
1423
|
+
if (x === null)
|
|
1421
1424
|
throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
1422
1425
|
const {
|
|
1423
1426
|
direction: I,
|
|
@@ -1426,7 +1429,7 @@ function Rr({
|
|
|
1426
1429
|
startDragging: w,
|
|
1427
1430
|
stopDragging: X,
|
|
1428
1431
|
panelGroupElement: j
|
|
1429
|
-
} =
|
|
1432
|
+
} = x, $ = st(i), [A, N] = ue("inactive"), [W, V] = ue(!1), [T, H] = ue(null), Y = B({
|
|
1430
1433
|
state: A
|
|
1431
1434
|
});
|
|
1432
1435
|
me(() => {
|
|
@@ -1435,10 +1438,10 @@ function Rr({
|
|
|
1435
1438
|
if (n)
|
|
1436
1439
|
H(null);
|
|
1437
1440
|
else {
|
|
1438
|
-
const se = M(
|
|
1441
|
+
const se = M($);
|
|
1439
1442
|
H(() => se);
|
|
1440
1443
|
}
|
|
1441
|
-
}, [n,
|
|
1444
|
+
}, [n, $, M]);
|
|
1442
1445
|
const G = (y = r == null ? void 0 : r.coarse) !== null && y !== void 0 ? y : 15, re = (S = r == null ? void 0 : r.fine) !== null && S !== void 0 ? S : 5;
|
|
1443
1446
|
return Z(() => {
|
|
1444
1447
|
if (n || T == null)
|
|
@@ -1446,7 +1449,7 @@ function Rr({
|
|
|
1446
1449
|
const se = v.current;
|
|
1447
1450
|
E(se, "Element ref not attached");
|
|
1448
1451
|
let ae = !1;
|
|
1449
|
-
return dr(
|
|
1452
|
+
return dr($, se, I, {
|
|
1450
1453
|
coarse: G,
|
|
1451
1454
|
fine: re
|
|
1452
1455
|
}, (z, C, d) => {
|
|
@@ -1456,7 +1459,7 @@ function Rr({
|
|
|
1456
1459
|
}
|
|
1457
1460
|
switch (z) {
|
|
1458
1461
|
case "down": {
|
|
1459
|
-
N("drag"), ae = !1, E(d, 'Expected event to be defined for "down" action'), w(
|
|
1462
|
+
N("drag"), ae = !1, E(d, 'Expected event to be defined for "down" action'), w($, d);
|
|
1460
1463
|
const {
|
|
1461
1464
|
onDragging: g,
|
|
1462
1465
|
onPointerDown: P
|
|
@@ -1483,21 +1486,21 @@ function Rr({
|
|
|
1483
1486
|
}
|
|
1484
1487
|
}
|
|
1485
1488
|
});
|
|
1486
|
-
}, [G, I, n, re, M,
|
|
1489
|
+
}, [G, I, n, re, M, $, T, w, X]), Ir({
|
|
1487
1490
|
disabled: n,
|
|
1488
|
-
handleId:
|
|
1491
|
+
handleId: $,
|
|
1489
1492
|
resizeHandler: T,
|
|
1490
1493
|
panelGroupElement: j
|
|
1491
|
-
}),
|
|
1494
|
+
}), xe(h, {
|
|
1492
1495
|
...m,
|
|
1493
1496
|
children: e,
|
|
1494
1497
|
className: t,
|
|
1495
1498
|
id: i,
|
|
1496
1499
|
onBlur: () => {
|
|
1497
|
-
|
|
1500
|
+
V(!1), o == null || o();
|
|
1498
1501
|
},
|
|
1499
1502
|
onFocus: () => {
|
|
1500
|
-
|
|
1503
|
+
V(!0), a == null || a();
|
|
1501
1504
|
},
|
|
1502
1505
|
ref: v,
|
|
1503
1506
|
role: "separator",
|
|
@@ -1515,7 +1518,7 @@ function Rr({
|
|
|
1515
1518
|
[K.resizeHandle]: "",
|
|
1516
1519
|
[K.resizeHandleActive]: A === "drag" ? "pointer" : W ? "keyboard" : void 0,
|
|
1517
1520
|
[K.resizeHandleEnabled]: !n,
|
|
1518
|
-
[K.resizeHandleId]:
|
|
1521
|
+
[K.resizeHandleId]: $,
|
|
1519
1522
|
[K.resizeHandleState]: A
|
|
1520
1523
|
});
|
|
1521
1524
|
}
|
|
@@ -1596,19 +1599,19 @@ function Jt({
|
|
|
1596
1599
|
readQueryKey: t,
|
|
1597
1600
|
setRunSql: n
|
|
1598
1601
|
}) {
|
|
1599
|
-
|
|
1602
|
+
Gn(), setTimeout(() => {
|
|
1600
1603
|
e.resetQueries({ queryKey: t(), exact: !0 }), n(!0);
|
|
1601
1604
|
}, 0);
|
|
1602
1605
|
}
|
|
1603
1606
|
const Dr = 300;
|
|
1604
1607
|
function Ar({ className: e }, t) {
|
|
1605
|
-
const n = te((
|
|
1608
|
+
const n = te((x) => x.card.sql), r = te((x) => x.sqlGen), i = te((x) => x.card), o = jt(), { setCardSql: s, setSqlGen: l, setRunSql: a } = wt(), f = U(() => o !== i.type ? { ...i, type: o } : i, [i, o]), { queryKey: p } = rt(f), u = Ct(), c = B(p);
|
|
1606
1609
|
c.current = p;
|
|
1607
1610
|
const h = B(r);
|
|
1608
1611
|
h.current = r;
|
|
1609
1612
|
const m = O(
|
|
1610
|
-
(
|
|
1611
|
-
s(
|
|
1613
|
+
(x) => {
|
|
1614
|
+
s(x);
|
|
1612
1615
|
},
|
|
1613
1616
|
[s]
|
|
1614
1617
|
), {
|
|
@@ -1622,8 +1625,8 @@ function Ar({ className: e }, t) {
|
|
|
1622
1625
|
delay: Dr
|
|
1623
1626
|
});
|
|
1624
1627
|
Z(() => Dt(v), [v]);
|
|
1625
|
-
function D(
|
|
1626
|
-
S(
|
|
1628
|
+
function D(x) {
|
|
1629
|
+
S(x), Un(h.current) || l({});
|
|
1627
1630
|
}
|
|
1628
1631
|
return /* @__PURE__ */ _("div", { className: "relative h-full w-full", children: /* @__PURE__ */ _(
|
|
1629
1632
|
Et,
|
|
@@ -1637,8 +1640,8 @@ function Ar({ className: e }, t) {
|
|
|
1637
1640
|
wrapLines: !0,
|
|
1638
1641
|
placeholder: "Write your SQL here",
|
|
1639
1642
|
className: e,
|
|
1640
|
-
onKeyDown: (
|
|
1641
|
-
|
|
1643
|
+
onKeyDown: (x) => {
|
|
1644
|
+
x.key === "Enter" && x.shiftKey && (x.preventDefault(), Jt({
|
|
1642
1645
|
queryClient: u,
|
|
1643
1646
|
readQueryKey: () => c.current,
|
|
1644
1647
|
setRunSql: a
|
|
@@ -1647,12 +1650,12 @@ function Ar({ className: e }, t) {
|
|
|
1647
1650
|
}
|
|
1648
1651
|
) });
|
|
1649
1652
|
}
|
|
1650
|
-
const
|
|
1653
|
+
const xo = $e(Ar), Mr = 300, Nr = `# 'data' holds the SQL result.
|
|
1651
1654
|
# Set 'result' to a list of dicts to replace it, for example:
|
|
1652
1655
|
# import pandas as pd
|
|
1653
1656
|
# result = pd.DataFrame(data).to_dict('records')`;
|
|
1654
1657
|
function Lr({ className: e }, t) {
|
|
1655
|
-
const n = te((m) => m.card.python), r = te((m) => m.card), i = jt(), { setCardPython: o, setRunSql: s } =
|
|
1658
|
+
const n = te((m) => m.card.python), r = te((m) => m.card), i = jt(), { setCardPython: o, setRunSql: s } = wt(), l = U(() => i !== r.type ? { ...r, type: i } : r, [r, i]), { queryKey: a } = rt(l), f = Ct(), p = B(a);
|
|
1656
1659
|
p.current = a;
|
|
1657
1660
|
const { value: u, onChange: c, flush: h } = Qt({
|
|
1658
1661
|
storeValue: n,
|
|
@@ -1685,10 +1688,10 @@ function Lr({ className: e }, t) {
|
|
|
1685
1688
|
}
|
|
1686
1689
|
);
|
|
1687
1690
|
}
|
|
1688
|
-
const
|
|
1691
|
+
const zo = $e(Lr);
|
|
1689
1692
|
function _r({ card: e }) {
|
|
1690
|
-
var se, ae,
|
|
1691
|
-
const t = In(), [n, r] = ue({}), { authToken: i } = Rn(), o =
|
|
1693
|
+
var se, ae, b, z, C;
|
|
1694
|
+
const t = In(), [n, r] = ue({}), { authToken: i } = Rn(), o = Wn(i == null ? void 0 : i.accessToken), { compiledAppearance: s } = Jn(), l = U(
|
|
1692
1695
|
() => Dn(s),
|
|
1693
1696
|
[s]
|
|
1694
1697
|
), a = te((d) => d.frame), f = te(
|
|
@@ -1716,7 +1719,7 @@ function _r({ card: e }) {
|
|
|
1716
1719
|
(g) => (g == null ? void 0 : g.id) === e.id
|
|
1717
1720
|
);
|
|
1718
1721
|
return d < 0 ? -1 : Qe(e, d);
|
|
1719
|
-
}, [v, e]),
|
|
1722
|
+
}, [v, e]), x = U(() => S !== "multiple" || D < 0 ? e.type : _e(
|
|
1720
1723
|
e,
|
|
1721
1724
|
D,
|
|
1722
1725
|
y == null ? void 0 : y.slots
|
|
@@ -1728,37 +1731,37 @@ function _r({ card: e }) {
|
|
|
1728
1731
|
python: "",
|
|
1729
1732
|
config: void 0,
|
|
1730
1733
|
queryConfig: void 0
|
|
1731
|
-
} :
|
|
1734
|
+
} : x !== e.type ? { ...e, type: x } : e, [e, x, S]), { data: R, effectiveCardConfig: M } = rt(I), w = An(), X = Ge((d) => d.dashboard.filters), j = Ge((d) => d.filterValues), $ = Ge((d) => d.selectedSheetId), A = U(
|
|
1732
1735
|
() => Mn({
|
|
1733
1736
|
card: e,
|
|
1734
|
-
sheetId:
|
|
1737
|
+
sheetId: $ || "",
|
|
1735
1738
|
inlineFilterValues: f,
|
|
1736
1739
|
setInlineFilterValue: (d) => p(e.id, d),
|
|
1737
1740
|
removeInlineFilterValue: (d) => u(e.id, d)
|
|
1738
1741
|
}),
|
|
1739
1742
|
[
|
|
1740
1743
|
e,
|
|
1741
|
-
|
|
1744
|
+
$,
|
|
1742
1745
|
f,
|
|
1743
1746
|
p,
|
|
1744
1747
|
u
|
|
1745
1748
|
]
|
|
1746
1749
|
), { cardFilters: N, cardFilterValues: W } = U(
|
|
1747
|
-
() =>
|
|
1750
|
+
() => Xn({
|
|
1748
1751
|
card: e,
|
|
1749
1752
|
transientContexts: w,
|
|
1750
1753
|
filters: X,
|
|
1751
1754
|
filterValues: j,
|
|
1752
|
-
selectedSheetId:
|
|
1755
|
+
selectedSheetId: $
|
|
1753
1756
|
}),
|
|
1754
1757
|
[
|
|
1755
1758
|
e,
|
|
1756
1759
|
w,
|
|
1757
1760
|
X,
|
|
1758
1761
|
j,
|
|
1759
|
-
|
|
1762
|
+
$
|
|
1760
1763
|
]
|
|
1761
|
-
),
|
|
1764
|
+
), V = O(
|
|
1762
1765
|
(d, g) => {
|
|
1763
1766
|
const P = jn(g);
|
|
1764
1767
|
r((L) => ({
|
|
@@ -1767,7 +1770,7 @@ function _r({ card: e }) {
|
|
|
1767
1770
|
}));
|
|
1768
1771
|
},
|
|
1769
1772
|
[]
|
|
1770
|
-
), T = (
|
|
1773
|
+
), T = (b = c.customCardPreferences) == null ? void 0 : b.componentName, H = T ? h(T) : null, Y = Nn(
|
|
1771
1774
|
(z = c.customCardPreferences) == null ? void 0 : z.settings,
|
|
1772
1775
|
c
|
|
1773
1776
|
), G = U(
|
|
@@ -1783,8 +1786,8 @@ function _r({ card: e }) {
|
|
|
1783
1786
|
),
|
|
1784
1787
|
[G, y == null ? void 0 : y.slots]
|
|
1785
1788
|
), he = U(
|
|
1786
|
-
() =>
|
|
1787
|
-
S === "multiple" ?
|
|
1789
|
+
() => Ln(
|
|
1790
|
+
S === "multiple" ? _n({
|
|
1788
1791
|
slotOrderedCards: G,
|
|
1789
1792
|
multiInputData: n,
|
|
1790
1793
|
valueFormatPreferences: t
|
|
@@ -1821,11 +1824,11 @@ function _r({ card: e }) {
|
|
|
1821
1824
|
params: o,
|
|
1822
1825
|
theme: l,
|
|
1823
1826
|
settings: Y,
|
|
1824
|
-
cardMetadata:
|
|
1827
|
+
cardMetadata: kn({
|
|
1825
1828
|
card: e,
|
|
1826
1829
|
dataMetadata: R == null ? void 0 : R.metadata
|
|
1827
1830
|
}),
|
|
1828
|
-
onDataChange:
|
|
1831
|
+
onDataChange: V,
|
|
1829
1832
|
data: (R == null ? void 0 : R.records) || [],
|
|
1830
1833
|
columns: (R == null ? void 0 : R.columns) || [],
|
|
1831
1834
|
formatTemporalBucketValue: he,
|
|
@@ -1846,9 +1849,9 @@ function _r({ card: e }) {
|
|
|
1846
1849
|
y == null ? void 0 : y.slots
|
|
1847
1850
|
);
|
|
1848
1851
|
return /* @__PURE__ */ _(
|
|
1849
|
-
|
|
1852
|
+
Tn,
|
|
1850
1853
|
{
|
|
1851
|
-
onDataChange:
|
|
1854
|
+
onDataChange: V,
|
|
1852
1855
|
card: d,
|
|
1853
1856
|
effectiveCardType: L
|
|
1854
1857
|
},
|
|
@@ -1859,8 +1862,8 @@ function _r({ card: e }) {
|
|
|
1859
1862
|
H,
|
|
1860
1863
|
{
|
|
1861
1864
|
editing: !0,
|
|
1862
|
-
onDataChange:
|
|
1863
|
-
...
|
|
1865
|
+
onDataChange: V,
|
|
1866
|
+
...Hn({
|
|
1864
1867
|
configCard: c,
|
|
1865
1868
|
slotOrderedCards: G,
|
|
1866
1869
|
slotTypes: re,
|
|
@@ -1884,7 +1887,7 @@ function _r({ card: e }) {
|
|
|
1884
1887
|
(C = c.customCardPreferences) == null ? void 0 : C.componentName
|
|
1885
1888
|
) }) : null;
|
|
1886
1889
|
}
|
|
1887
|
-
const
|
|
1890
|
+
const Po = Pn(_r);
|
|
1888
1891
|
var Zt = "Toggle", en = k.forwardRef((e, t) => {
|
|
1889
1892
|
const { pressed: n, defaultPressed: r, onPressedChange: i, ...o } = e, [s, l] = It({
|
|
1890
1893
|
prop: n,
|
|
@@ -1909,7 +1912,7 @@ var Zt = "Toggle", en = k.forwardRef((e, t) => {
|
|
|
1909
1912
|
});
|
|
1910
1913
|
en.displayName = Zt;
|
|
1911
1914
|
var tn = en;
|
|
1912
|
-
const kr =
|
|
1915
|
+
const kr = Vn(
|
|
1913
1916
|
"inline-flex items-center justify-center rounded-control text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
1914
1917
|
{
|
|
1915
1918
|
variants: {
|
|
@@ -1942,9 +1945,9 @@ var nn = ["PageUp", "PageDown"], rn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
1942
1945
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
1943
1946
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
1944
1947
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
1945
|
-
}, we = "Slider", [Ze, Hr,
|
|
1946
|
-
|
|
1947
|
-
]), [
|
|
1948
|
+
}, we = "Slider", [Ze, Hr, $r] = Kn(we), [sn] = Fn(we, [
|
|
1949
|
+
$r
|
|
1950
|
+
]), [Vr, qe] = sn(we), ln = k.forwardRef(
|
|
1948
1951
|
(e, t) => {
|
|
1949
1952
|
const {
|
|
1950
1953
|
name: n,
|
|
@@ -1963,7 +1966,7 @@ var nn = ["PageUp", "PageDown"], rn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
1963
1966
|
inverted: h = !1,
|
|
1964
1967
|
form: m,
|
|
1965
1968
|
...y
|
|
1966
|
-
} = e, S = k.useRef(/* @__PURE__ */ new Set()), v = k.useRef(0),
|
|
1969
|
+
} = e, S = k.useRef(/* @__PURE__ */ new Set()), v = k.useRef(0), x = s === "horizontal" ? Fr : Kr, [I = [], R] = It({
|
|
1967
1970
|
prop: p,
|
|
1968
1971
|
defaultProp: f,
|
|
1969
1972
|
onChange: (A) => {
|
|
@@ -1973,17 +1976,17 @@ var nn = ["PageUp", "PageDown"], rn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
1973
1976
|
}), M = k.useRef(I);
|
|
1974
1977
|
function w(A) {
|
|
1975
1978
|
const N = Ur(I, A);
|
|
1976
|
-
|
|
1979
|
+
$(A, N);
|
|
1977
1980
|
}
|
|
1978
1981
|
function X(A) {
|
|
1979
|
-
|
|
1982
|
+
$(A, v.current);
|
|
1980
1983
|
}
|
|
1981
1984
|
function j() {
|
|
1982
1985
|
const A = M.current[v.current];
|
|
1983
1986
|
I[v.current] !== A && c(I);
|
|
1984
1987
|
}
|
|
1985
|
-
function
|
|
1986
|
-
const
|
|
1988
|
+
function $(A, N, { commit: W } = { commit: !1 }) {
|
|
1989
|
+
const V = jr(o), T = Qr(Math.round((A - r) / o) * o + r, V), H = Rt(T, [r, i]);
|
|
1987
1990
|
R((Y = []) => {
|
|
1988
1991
|
const G = Or(Y, H, N);
|
|
1989
1992
|
if (Yr(G, a * o)) {
|
|
@@ -1995,7 +1998,7 @@ var nn = ["PageUp", "PageDown"], rn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
1995
1998
|
});
|
|
1996
1999
|
}
|
|
1997
2000
|
return /* @__PURE__ */ _(
|
|
1998
|
-
|
|
2001
|
+
Vr,
|
|
1999
2002
|
{
|
|
2000
2003
|
scope: e.__scopeSlider,
|
|
2001
2004
|
name: n,
|
|
@@ -2008,7 +2011,7 @@ var nn = ["PageUp", "PageDown"], rn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2008
2011
|
orientation: s,
|
|
2009
2012
|
form: m,
|
|
2010
2013
|
children: /* @__PURE__ */ _(Ze.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ _(Ze.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ _(
|
|
2011
|
-
|
|
2014
|
+
x,
|
|
2012
2015
|
{
|
|
2013
2016
|
"aria-disabled": l,
|
|
2014
2017
|
"data-disabled": l ? "" : void 0,
|
|
@@ -2023,12 +2026,12 @@ var nn = ["PageUp", "PageDown"], rn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2023
2026
|
onSlideStart: l ? void 0 : w,
|
|
2024
2027
|
onSlideMove: l ? void 0 : X,
|
|
2025
2028
|
onSlideEnd: l ? void 0 : j,
|
|
2026
|
-
onHomeKeyDown: () => !l &&
|
|
2027
|
-
onEndKeyDown: () => !l &&
|
|
2029
|
+
onHomeKeyDown: () => !l && $(r, 0, { commit: !0 }),
|
|
2030
|
+
onEndKeyDown: () => !l && $(i, I.length - 1, { commit: !0 }),
|
|
2028
2031
|
onStepKeyDown: ({ event: A, direction: N }) => {
|
|
2029
2032
|
if (!l) {
|
|
2030
2033
|
const T = nn.includes(A.key) || A.shiftKey && rn.includes(A.key) ? 10 : 1, H = v.current, Y = I[H], G = o * T * N;
|
|
2031
|
-
|
|
2034
|
+
$(Y + G, H, { commit: !0 });
|
|
2032
2035
|
}
|
|
2033
2036
|
}
|
|
2034
2037
|
}
|
|
@@ -2055,10 +2058,10 @@ var [an, cn] = sn(we, {
|
|
|
2055
2058
|
onSlideEnd: a,
|
|
2056
2059
|
onStepKeyDown: f,
|
|
2057
2060
|
...p
|
|
2058
|
-
} = e, [u, c] = k.useState(null), h = Pe(t, (
|
|
2059
|
-
function D(
|
|
2061
|
+
} = e, [u, c] = k.useState(null), h = Pe(t, (x) => c(x)), m = k.useRef(void 0), y = Bn(i), S = y === "ltr", v = S && !o || !S && o;
|
|
2062
|
+
function D(x) {
|
|
2060
2063
|
const I = m.current || u.getBoundingClientRect(), R = [0, I.width], w = ct(R, v ? [n, r] : [r, n]);
|
|
2061
|
-
return m.current = I, w(
|
|
2064
|
+
return m.current = I, w(x - I.left);
|
|
2062
2065
|
}
|
|
2063
2066
|
return /* @__PURE__ */ _(
|
|
2064
2067
|
an,
|
|
@@ -2079,20 +2082,20 @@ var [an, cn] = sn(we, {
|
|
|
2079
2082
|
...p.style,
|
|
2080
2083
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
2081
2084
|
},
|
|
2082
|
-
onSlideStart: (
|
|
2083
|
-
const I = D(
|
|
2085
|
+
onSlideStart: (x) => {
|
|
2086
|
+
const I = D(x.clientX);
|
|
2084
2087
|
s == null || s(I);
|
|
2085
2088
|
},
|
|
2086
|
-
onSlideMove: (
|
|
2087
|
-
const I = D(
|
|
2089
|
+
onSlideMove: (x) => {
|
|
2090
|
+
const I = D(x.clientX);
|
|
2088
2091
|
l == null || l(I);
|
|
2089
2092
|
},
|
|
2090
2093
|
onSlideEnd: () => {
|
|
2091
2094
|
m.current = void 0, a == null || a();
|
|
2092
2095
|
},
|
|
2093
|
-
onStepKeyDown: (
|
|
2094
|
-
const R = on[v ? "from-left" : "from-right"].includes(
|
|
2095
|
-
f == null || f({ event:
|
|
2096
|
+
onStepKeyDown: (x) => {
|
|
2097
|
+
const R = on[v ? "from-left" : "from-right"].includes(x.key);
|
|
2098
|
+
f == null || f({ event: x, direction: R ? -1 : 1 });
|
|
2096
2099
|
}
|
|
2097
2100
|
}
|
|
2098
2101
|
)
|
|
@@ -2112,8 +2115,8 @@ var [an, cn] = sn(we, {
|
|
|
2112
2115
|
...f
|
|
2113
2116
|
} = e, p = k.useRef(null), u = Pe(t, p), c = k.useRef(void 0), h = !i;
|
|
2114
2117
|
function m(y) {
|
|
2115
|
-
const S = c.current || p.current.getBoundingClientRect(), v = [0, S.height],
|
|
2116
|
-
return c.current = S,
|
|
2118
|
+
const S = c.current || p.current.getBoundingClientRect(), v = [0, S.height], x = ct(v, h ? [r, n] : [n, r]);
|
|
2119
|
+
return c.current = S, x(y - S.top);
|
|
2117
2120
|
}
|
|
2118
2121
|
return /* @__PURE__ */ _(
|
|
2119
2122
|
an,
|
|
@@ -2234,7 +2237,7 @@ var tt = "SliderThumb", mn = k.forwardRef(
|
|
|
2234
2237
|
}
|
|
2235
2238
|
), Br = k.forwardRef(
|
|
2236
2239
|
(e, t) => {
|
|
2237
|
-
const { __scopeSlider: n, index: r, name: i, ...o } = e, s = qe(tt, n), l = cn(tt, n), [a, f] = k.useState(null), p = Pe(t, (D) => f(D)), u = a ? s.form || !!a.closest("form") : !0, c =
|
|
2240
|
+
const { __scopeSlider: n, index: r, name: i, ...o } = e, s = qe(tt, n), l = cn(tt, n), [a, f] = k.useState(null), p = Pe(t, (D) => f(D)), u = a ? s.form || !!a.closest("form") : !0, c = qn(a), h = s.values[r], m = h === void 0 ? 0 : hn(h, s.min, s.max), y = Gr(r, s.values.length), S = c == null ? void 0 : c[l.size], v = S ? Wr(S, m, l.direction) : 0;
|
|
2238
2241
|
return k.useEffect(() => {
|
|
2239
2242
|
if (a)
|
|
2240
2243
|
return s.thumbs.add(a), () => {
|
|
@@ -2286,7 +2289,7 @@ var tt = "SliderThumb", mn = k.forwardRef(
|
|
|
2286
2289
|
mn.displayName = tt;
|
|
2287
2290
|
var qr = "RadioBubbleInput", gn = k.forwardRef(
|
|
2288
2291
|
({ __scopeSlider: e, value: t, ...n }, r) => {
|
|
2289
|
-
const i = k.useRef(null), o = Pe(i, r), s =
|
|
2292
|
+
const i = k.useRef(null), o = Pe(i, r), s = On(t);
|
|
2290
2293
|
return k.useEffect(() => {
|
|
2291
2294
|
const l = i.current;
|
|
2292
2295
|
if (!l) return;
|
|
@@ -2368,17 +2371,17 @@ const to = k.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ De(
|
|
|
2368
2371
|
}
|
|
2369
2372
|
));
|
|
2370
2373
|
to.displayName = yn.displayName;
|
|
2371
|
-
const no =
|
|
2374
|
+
const no = xt(null), ro = $n();
|
|
2372
2375
|
function vn(e) {
|
|
2373
2376
|
const t = nt(no) ?? ro;
|
|
2374
2377
|
return Cn(t.subscribe, () => e(t.get()), () => e(null));
|
|
2375
2378
|
}
|
|
2376
|
-
function
|
|
2379
|
+
function wo(e) {
|
|
2377
2380
|
return vn(
|
|
2378
2381
|
O((t) => (t == null ? void 0 : t.slot.zone) === e ? t.outcome : null, [e])
|
|
2379
2382
|
);
|
|
2380
2383
|
}
|
|
2381
|
-
function
|
|
2384
|
+
function Co(e, t, n) {
|
|
2382
2385
|
return vn(
|
|
2383
2386
|
O(
|
|
2384
2387
|
(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,
|
|
@@ -2387,17 +2390,17 @@ function zo(e, t, n) {
|
|
|
2387
2390
|
);
|
|
2388
2391
|
}
|
|
2389
2392
|
export {
|
|
2390
|
-
|
|
2391
|
-
|
|
2393
|
+
Po as E,
|
|
2394
|
+
bo as F,
|
|
2392
2395
|
tr as P,
|
|
2393
|
-
|
|
2396
|
+
xo as S,
|
|
2394
2397
|
Tr as T,
|
|
2395
2398
|
Er as a,
|
|
2396
2399
|
Rr as b,
|
|
2397
|
-
|
|
2400
|
+
zo as c,
|
|
2398
2401
|
to as d,
|
|
2399
|
-
|
|
2400
|
-
|
|
2402
|
+
wo as e,
|
|
2403
|
+
Co as f,
|
|
2401
2404
|
no as g,
|
|
2402
2405
|
Jt as r,
|
|
2403
2406
|
jt as u
|