@marimo-team/islands 0.26.1-dev20 → 0.26.1-dev25
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/{ConnectedDataExplorerComponent-CR9WyiEc.js → ConnectedDataExplorerComponent-jtTaDisw.js} +16 -16
- package/dist/{ErrorBoundary-Cx-CwafE.js → ErrorBoundary-Bs2ehxEI.js} +6 -6
- package/dist/{abnfDiagram-VCTEODGH-DGAbsdXT.js → abnfDiagram-VCTEODGH-cUj3Gnnh.js} +2 -2
- package/dist/{any-language-editor-DzGF1ll-.js → any-language-editor-BHgkY7jY.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-D4DnIo7R.js → architectureDiagram-5GKGNRK7-CIAZgn9d.js} +1 -1
- package/dist/{assertNever-CqwxSD_2.js → assertNever-BHnIohkX.js} +13 -13
- package/dist/{chat-ui-qZdDDrzU.js → chat-ui-DOvIzlMA.js} +46 -46
- package/dist/{check-D9vf6LYF.js → check-LtjuWmNn.js} +1 -1
- package/dist/{chunk-IMKFNOWR-Bc_i6jWx.js → chunk-IMKFNOWR-CB9N3qYR.js} +1 -1
- package/dist/{chunk-SHT3W25Y-CGML5pnF.js → chunk-SHT3W25Y-D9njV7TI.js} +1 -1
- package/dist/{chunk-SVP7TREG-ZpeFKfFT.js → chunk-SVP7TREG-CUCE0BFm.js} +1 -1
- package/dist/{chunk-TICWLB2K-C6cLmcg8.js → chunk-TICWLB2K-iQB6ttkI.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV--q40NTXr.js → classDiagram-ZZMXUADV-BI1VBNIo.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-Dt_Pp94L.js → classDiagram-v2-VYDZK3BY-BYL3asWh.js} +2 -2
- package/dist/{code-visibility-CVfXV6fG.js → code-visibility-BnMkbydx.js} +19 -19
- package/dist/{common-BXRJCkJO.js → common-CQur5dRA.js} +156 -156
- package/dist/{config-B8JCQMby.js → config-DL9e-OWE.js} +3 -3
- package/dist/{copy-icon-BLig0ZKb.js → copy-icon-rYV2znAe.js} +2 -2
- package/dist/{createReducer-BIUQ3TbG.js → createReducer-BdiSrxHu.js} +5 -5
- package/dist/{cynefinDiagram-5FMLGOSQ-2FtF_-cc.js → cynefinDiagram-5FMLGOSQ-DpGtYvnZ.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-Cymu2SPS.js → dagre-GXQ25YYZ-B5GDC2kN.js} +1 -1
- package/dist/{data-grid-overlay-editor-Mbtx3F9C.js → data-grid-overlay-editor-BXEY35Xl.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-OwDa8kAa.js → diagram-S7CK7UJ4-B2T25t1t.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CzRDwZwd.js → diagram-UQ7AKVKN-Dy3B5L_z.js} +1 -1
- package/dist/{diagram-VX7I27RA-XRIcgMDs.js → diagram-VX7I27RA-tOptWvNh.js} +1 -1
- package/dist/{diagram-Z3DM3KII-DdRDYAs6.js → diagram-Z3DM3KII-DsgZAokO.js} +1 -1
- package/dist/{dialog-DGh2HNAO.js → dialog-vs6x3On9.js} +19 -19
- package/dist/{dropdown-menu-ChH3oiqI.js → dropdown-menu-DYN2RV5d.js} +193 -193
- package/dist/{ebnfDiagram-PWID7BFC-CZMNMGNP.js → ebnfDiagram-PWID7BFC-CGWECzS1.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-ByxHAN4b.js → erDiagram-RLTQ6QDP-CZLi87y3.js} +1 -1
- package/dist/{error-banner-BvRaQnGH.js → error-banner-D-AC7pQx.js} +70 -70
- package/dist/{error-entries-DhI0hGvj.js → error-entries-CncQR572.js} +443 -436
- package/dist/{feedback-button-zx4NcNDn.js → feedback-button-BAOp7zqu.js} +120 -120
- package/dist/{flowDiagram-HODETNUW-BQpzWx5O.js → flowDiagram-HODETNUW-CS86WYbX.js} +2 -2
- package/dist/{formats-BxP8k8Un.js → formats-BUFLQJXY.js} +1 -1
- package/dist/{glide-data-editor-CvezoJKg.js → glide-data-editor-Ce94qTW7.js} +11 -11
- package/dist/{glide-utils-bKdvDwwo.js → glide-utils-CZ-O-CB_.js} +2 -2
- package/dist/{globals-CQuPaxzy.js → globals-Uqg4j5z5.js} +3 -3
- package/dist/{html-to-image-B803aaWE.js → html-to-image-BU7H-AM1.js} +4323 -4318
- package/dist/{infoDiagram-27XIBGKW-C9EWHkak.js → infoDiagram-27XIBGKW-C9JBFfpC.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-D67SGFvp.js → ishikawaDiagram-5VMMS53U-Eh3iuw2D.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CTMTiazR.js → kanban-definition-UXKFOSKX-DYtuVwYD.js} +1 -1
- package/dist/main.js +401 -400
- package/dist/{mermaid-DE_tvTGF.js → mermaid--k1o49nH.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX-LzNgDy8O.js → mindmap-definition-YA3MSWOX-Dn1Cnqys.js} +1 -1
- package/dist/{number-overlay-editor-DxM7vsCk.js → number-overlay-editor-Br_Vp3Ws.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-DFMS6feI.js → pegDiagram-XKGWAZYB-DiY7rITR.js} +2 -2
- package/dist/{pencil-CHkdsX07.js → pencil-AWgwbH4D.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-C0MSBop-.js → pieDiagram-E7YTZNPT-BL6InbDs.js} +1 -1
- package/dist/{process-output-CnCLfvnL.js → process-output-xJm8T5-E.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-mbdav2pV.js → railroadDiagram-O6MQD6OU-DterenMu.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-C1HNBBO6.js → requirementDiagram-BXWQKSXE-Vb5_9LHC.js} +1 -1
- package/dist/{reveal-component-BefmhjJF.js → reveal-component-B7TgfbYJ.js} +1008 -1008
- package/dist/{select-CvorIE3l.js → select-CKLRKIzB.js} +298 -298
- package/dist/{sequenceDiagram-WJ2MYXX4-D6gBHifq.js → sequenceDiagram-WJ2MYXX4-BWsq8hMt.js} +1 -1
- package/dist/{spec-ayzaXGVq.js → spec-C4uOz0Em.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-Bx-fTtRZ.js → stateDiagram-D77RDMKH-nfKKy6aQ.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-Cec8T2yO.js → stateDiagram-v2-MP3YSRHH-DMUHA_9A.js} +2 -2
- package/dist/{static-state-CqwW3B_X.js → static-state-DZ1nSa6e.js} +9 -9
- package/dist/{swimlanes-42K2YHIH-C2bAgnov.js → swimlanes-42K2YHIH-N4qHIMoc.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-CzeG-Mnb.js → swimlanesDiagram-VR7AAH4N-DQpDDjQb.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-DTJ0Rx8X.js → timeline-definition-24CTP7MA-Od8dY9F5.js} +1 -1
- package/dist/{toast-6V8Og7d5.js → toast-bhZHUEal.js} +187 -187
- package/dist/{tooltip-D0h-ZJ6j.js → tooltip-DSWC_Td_.js} +40 -40
- package/dist/{use-restore-focus-BFvwj2Hj.js → use-restore-focus-ocw7t85i.js} +1371 -1373
- package/dist/{useDateFormatter-D6o9PsWt.js → useDateFormatter-BiDS8uXQ.js} +2 -2
- package/dist/{useDeepCompareMemoize-D-Pbv7dN.js → useDeepCompareMemoize-BsaXfZ8C.js} +1 -1
- package/dist/{useLifecycle-CE0yGTMF.js → useLifecycle-CCV7yZ-v.js} +1 -1
- package/dist/{vega-component-DTf7GHQe.js → vega-component-DpTyTrz3.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-lIM3SAjl.js → vennDiagram-4TSXK5OY-Di3T2YMb.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-Bw_t7uvA.js → wardleyDiagram-VM6X3IG4-CKOF5DTi.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-BXwkLYKj.js → xychartDiagram-S5SC5T6Z-GYLPWSeb.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/executions.ts +27 -5
- package/src/__tests__/branded.ts +4 -0
- package/src/__tests__/notebook-analysis.ts +48 -0
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +28 -61
- package/src/components/editor/cell/__tests__/useRunCells.test.tsx +2 -2
- package/src/components/editor/navigation/__tests__/navigation.test.ts +0 -4
- package/src/components/tracing/tracing-keyboard.test.tsx +4 -3
- package/src/core/cells/__tests__/add-missing-import.test.ts +14 -9
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +4 -11
- package/src/core/cells/__tests__/runs.test.ts +11 -11
- package/src/core/cells/add-missing-import.ts +2 -3
- package/src/core/cells/runs.ts +6 -4
- package/src/core/cells/session.ts +4 -1
- package/src/core/codemirror/code-lens/__tests__/entities.test.ts +7 -11
- package/src/core/codemirror/code-lens/__tests__/extension.test.ts +8 -13
- package/src/core/codemirror/code-lens/__tests__/perf.test.ts +7 -9
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +9 -13
- package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +16 -35
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +2 -18
- package/src/core/codemirror/reactive-references/__tests__/extension.test.ts +8 -14
- package/src/core/datasets/__tests__/data-source.test.ts +15 -17
- package/src/core/datasets/data-source-connections.ts +8 -11
- package/src/core/datasets/state.ts +7 -12
- package/src/core/executions/__tests__/atoms.test.ts +2 -2
- package/src/core/executions/__tests__/freshness.test.ts +10 -5
- package/src/core/executions/__tests__/interrupt.test.ts +3 -1
- package/src/core/executions/__tests__/output-lifecycle.test.ts +3 -3
- package/src/core/executions/__tests__/output.test.ts +2 -2
- package/src/core/executions/__tests__/run.test.ts +2 -2
- package/src/core/executions/__tests__/select.test.ts +10 -10
- package/src/core/executions/atoms.ts +2 -1
- package/src/core/executions/freshness.ts +2 -2
- package/src/core/islands/bootstrap.ts +0 -2
- package/src/core/notebook/replica/__tests__/executions.test.ts +13 -9
- package/src/core/notebook/replica/__tests__/replica.test.ts +7 -2
- package/src/core/notebook/replica/replica.ts +11 -2
- package/src/core/notebook/replica/resources/executions.ts +29 -20
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +192 -1
- package/src/core/session/useNotebookSession.tsx +37 -37
- package/src/core/storage/__tests__/state.test.ts +6 -9
- package/src/core/storage/state.ts +5 -8
- package/src/core/transports/__tests__/static.test.ts +2 -1
- package/src/core/variables/state.ts +73 -68
- package/src/core/variables/types.ts +2 -2
- package/src/core/wasm/bridge.ts +5 -4
- package/src/core/variables/__tests__/state.test.ts +0 -148
|
@@ -2,14 +2,14 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
import { g as t, h as n, m as r, p as i, u as a } from "./button-Z2R2272J.js";
|
|
3
3
|
import { t as o } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as s } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
|
-
import { c, h as l, l as u, s as d, u as f } from "./tooltip-
|
|
6
|
-
import { t as p } from "./check-
|
|
7
|
-
import { A as m, C as h, E as g, M as _, S as v, _ as y, b, g as x, h as S, j as C, m as w, p as T, v as E, x as D, y as O } from "./select-
|
|
8
|
-
import { a as ee, s as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { _n as
|
|
5
|
+
import { c, h as l, l as u, s as d, u as f } from "./tooltip-DSWC_Td_.js";
|
|
6
|
+
import { t as p } from "./check-LtjuWmNn.js";
|
|
7
|
+
import { A as m, C as h, E as g, M as _, S as v, _ as y, b, g as x, h as S, j as C, m as w, p as T, v as E, x as D, y as O } from "./select-CKLRKIzB.js";
|
|
8
|
+
import { a as ee, s as te } from "./assertNever-BHnIohkX.js";
|
|
9
|
+
import { t as ne } from "./clsx-CoeGtWvn.js";
|
|
10
|
+
import { t as k } from "./react-dom-DdqGVp5N.js";
|
|
11
|
+
import { t as A } from "./jsx-runtime-D8btoEHk.js";
|
|
12
|
+
import { _n as j, an as M, bn as N, cn as re, fn as P, gn as F, hn as ie, in as ae, l as oe, ln as se, mn as ce, n as le, nn as ue, o as I, on as de, pn as fe, s as pe, sn as me, tn as he, un as ge, vn as _e, yn as ve } from "./use-restore-focus-ocw7t85i.js";
|
|
13
13
|
import { t as ye } from "./debounce-DrhhziJv.js";
|
|
14
14
|
import { t as be } from "./useEvent-BoN7U38T.js";
|
|
15
15
|
import { t as xe } from "./once-NnpX_HnX.js";
|
|
@@ -55,13 +55,13 @@ function Me() {
|
|
|
55
55
|
return Ae(je, () => !0, () => !1);
|
|
56
56
|
}
|
|
57
57
|
De(Me, "useIsHydratedModern");
|
|
58
|
-
var Ne = typeof Ae == "function" ? Me : ke, R =
|
|
58
|
+
var Ne = typeof Ae == "function" ? Me : ke, R = A(), Pe = Object.defineProperty, Fe = (e, t) => Pe(e, "name", {
|
|
59
59
|
value: t,
|
|
60
60
|
configurable: !0
|
|
61
61
|
}), Ie = "rovingFocusGroup.onEntryFocus", Le = {
|
|
62
62
|
bubbles: !1,
|
|
63
63
|
cancelable: !0
|
|
64
|
-
}, Re = "RovingFocusGroup", [ze, Be, Ve] = ee(Re), [He, Ue] =
|
|
64
|
+
}, Re = "RovingFocusGroup", [ze, Be, Ve] = ee(Re), [He, Ue] = _e(Re, [Ve]), We = {
|
|
65
65
|
Vertical: "vertical",
|
|
66
66
|
Horizontal: "horizontal"
|
|
67
67
|
}, Ge = {
|
|
@@ -79,12 +79,12 @@ var Ne = typeof Ae == "function" ? Me : ke, R = j(), Pe = Object.defineProperty,
|
|
|
79
79
|
})
|
|
80
80
|
});
|
|
81
81
|
}, "RovingFocusGroup")), Ye = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ Fe(function(e, t) {
|
|
82
|
-
let { __scopeRovingFocusGroup: n, orientation: r, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = !1, ...f } = e, p = L.useRef(null), h = i(t, p), g = m(o), [_, v] =
|
|
82
|
+
let { __scopeRovingFocusGroup: n, orientation: r, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = !1, ...f } = e, p = L.useRef(null), h = i(t, p), g = m(o), [_, v] = ie({
|
|
83
83
|
prop: s,
|
|
84
84
|
defaultProp: c ?? null,
|
|
85
85
|
onChange: l,
|
|
86
86
|
caller: Re
|
|
87
|
-
}), [y, b] = L.useState(!1), x =
|
|
87
|
+
}), [y, b] = L.useState(!1), x = P(u), S = Be(n), C = L.useRef(!1), [w, T] = L.useState(0);
|
|
88
88
|
return L.useEffect(() => {
|
|
89
89
|
let e = p.current;
|
|
90
90
|
if (e) return e.addEventListener(Ie, x), () => e.removeEventListener(Ie, x);
|
|
@@ -98,7 +98,7 @@ var Ne = typeof Ae == "function" ? Me : ke, R = j(), Pe = Object.defineProperty,
|
|
|
98
98
|
onItemShiftTab: L.useCallback(() => b(!0), []),
|
|
99
99
|
onFocusableItemAdd: L.useCallback(() => T((e) => e + 1), []),
|
|
100
100
|
onFocusableItemRemove: L.useCallback(() => T((e) => e - 1), []),
|
|
101
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
101
|
+
children: /* @__PURE__ */ (0, R.jsx)(ve.div, {
|
|
102
102
|
tabIndex: y || w === 0 ? -1 : 0,
|
|
103
103
|
"data-orientation": r,
|
|
104
104
|
...f,
|
|
@@ -107,10 +107,10 @@ var Ne = typeof Ae == "function" ? Me : ke, R = j(), Pe = Object.defineProperty,
|
|
|
107
107
|
outline: "none",
|
|
108
108
|
...e.style
|
|
109
109
|
},
|
|
110
|
-
onMouseDown:
|
|
110
|
+
onMouseDown: F(e.onMouseDown, () => {
|
|
111
111
|
C.current = !0;
|
|
112
112
|
}),
|
|
113
|
-
onFocus:
|
|
113
|
+
onFocus: F(e.onFocus, (e) => {
|
|
114
114
|
let t = !C.current;
|
|
115
115
|
if (e.target === e.currentTarget && t && !y) {
|
|
116
116
|
let t = new CustomEvent(Ie, Le);
|
|
@@ -125,12 +125,12 @@ var Ne = typeof Ae == "function" ? Me : ke, R = j(), Pe = Object.defineProperty,
|
|
|
125
125
|
}
|
|
126
126
|
C.current = !1;
|
|
127
127
|
}),
|
|
128
|
-
onBlur:
|
|
128
|
+
onBlur: F(e.onBlur, () => b(!1))
|
|
129
129
|
})
|
|
130
130
|
});
|
|
131
131
|
}, "RovingFocusGroupImpl")), Xe = "RovingFocusGroupItem", Ze = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ Fe(function(e, t) {
|
|
132
|
-
let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c =
|
|
133
|
-
return
|
|
132
|
+
let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c = fe(), l = a || c, u = qe(Xe, n), d = u.currentTabStopId === l, f = Be(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: h } = u, g = Ne();
|
|
133
|
+
return j(() => {
|
|
134
134
|
if (g && r) return p(), () => m();
|
|
135
135
|
}, [
|
|
136
136
|
g,
|
|
@@ -149,16 +149,16 @@ var Ne = typeof Ae == "function" ? Me : ke, R = j(), Pe = Object.defineProperty,
|
|
|
149
149
|
id: l,
|
|
150
150
|
focusable: r,
|
|
151
151
|
active: i,
|
|
152
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
152
|
+
children: /* @__PURE__ */ (0, R.jsx)(ve.span, {
|
|
153
153
|
tabIndex: d ? 0 : -1,
|
|
154
154
|
"data-orientation": u.orientation,
|
|
155
155
|
...s,
|
|
156
156
|
ref: t,
|
|
157
|
-
onMouseDown:
|
|
157
|
+
onMouseDown: F(e.onMouseDown, (e) => {
|
|
158
158
|
r ? u.onItemFocus(l) : e.preventDefault();
|
|
159
159
|
}),
|
|
160
|
-
onFocus:
|
|
161
|
-
onKeyDown:
|
|
160
|
+
onFocus: F(e.onFocus, () => u.onItemFocus(l)),
|
|
161
|
+
onKeyDown: F(e.onKeyDown, (e) => {
|
|
162
162
|
if (e.key === "Tab" && e.shiftKey) {
|
|
163
163
|
u.onItemShiftTab();
|
|
164
164
|
return;
|
|
@@ -234,12 +234,12 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
234
234
|
}, ut = {
|
|
235
235
|
ltr: ["ArrowLeft"],
|
|
236
236
|
rtl: ["ArrowRight"]
|
|
237
|
-
}, dt = "Menu", [ft, pt, mt] = ee(dt), [ht, gt] =
|
|
237
|
+
}, dt = "Menu", [ft, pt, mt] = ee(dt), [ht, gt] = _e(dt, [
|
|
238
238
|
mt,
|
|
239
239
|
f,
|
|
240
240
|
Ue
|
|
241
241
|
]), _t = f(), vt = Ue(), [yt, bt] = ht(dt), [xt, St] = ht(dt), Ct = /* @__PURE__ */ z((e) => {
|
|
242
|
-
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = _t(t), [c, l] = L.useState(null), u = L.useRef(!1), f =
|
|
242
|
+
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = _t(t), [c, l] = L.useState(null), u = L.useRef(!1), f = P(a), p = m(i);
|
|
243
243
|
return L.useEffect(() => {
|
|
244
244
|
let e = /* @__PURE__ */ z(() => {
|
|
245
245
|
u.current = !0, document.addEventListener("pointerdown", t, {
|
|
@@ -287,9 +287,9 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
287
287
|
return /* @__PURE__ */ (0, R.jsx)(Et, {
|
|
288
288
|
scope: t,
|
|
289
289
|
forceMount: n,
|
|
290
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
290
|
+
children: /* @__PURE__ */ (0, R.jsx)(ce, {
|
|
291
291
|
present: n || a.open,
|
|
292
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
292
|
+
children: /* @__PURE__ */ (0, R.jsx)(M, {
|
|
293
293
|
asChild: !0,
|
|
294
294
|
container: i,
|
|
295
295
|
children: r
|
|
@@ -300,7 +300,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
300
300
|
let n = Dt(B, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = bt(B, e.__scopeMenu), o = St(B, e.__scopeMenu);
|
|
301
301
|
return /* @__PURE__ */ (0, R.jsx)(ft.Provider, {
|
|
302
302
|
scope: e.__scopeMenu,
|
|
303
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
303
|
+
children: /* @__PURE__ */ (0, R.jsx)(ce, {
|
|
304
304
|
present: r || a.open,
|
|
305
305
|
children: /* @__PURE__ */ (0, R.jsx)(ft.Slot, {
|
|
306
306
|
scope: e.__scopeMenu,
|
|
@@ -318,14 +318,14 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
318
318
|
let n = bt(B, e.__scopeMenu), r = L.useRef(null), a = i(t, r);
|
|
319
319
|
return L.useEffect(() => {
|
|
320
320
|
let e = r.current;
|
|
321
|
-
if (e) return
|
|
321
|
+
if (e) return he(e);
|
|
322
322
|
}, []), /* @__PURE__ */ (0, R.jsx)(Ft, {
|
|
323
323
|
...e,
|
|
324
324
|
ref: a,
|
|
325
325
|
trapFocus: n.open,
|
|
326
326
|
disableOutsidePointerEvents: n.open,
|
|
327
327
|
disableOutsideScroll: !0,
|
|
328
|
-
onFocusOutside:
|
|
328
|
+
onFocusOutside: F(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
329
329
|
onDismiss: () => n.onOpenChange(!1)
|
|
330
330
|
});
|
|
331
331
|
}, "MenuRootContentModal")), Nt = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
@@ -340,53 +340,53 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
340
340
|
});
|
|
341
341
|
}, "MenuRootContentNonModal")), Pt = a("MenuContent.ScrollLock"), Ft = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
342
342
|
let { __scopeMenu: n, loop: r = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: d, onPointerDownOutside: f, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: g, ..._ } = e, v = bt(B, n), y = St(B, n), b = _t(n), x = vt(n), S = pt(n), [C, w] = L.useState(null), T = L.useRef(null), [E, D] = L.useState(null);
|
|
343
|
-
|
|
344
|
-
let { nodes: O, registry: ee } =
|
|
343
|
+
re(E);
|
|
344
|
+
let { nodes: O, registry: ee } = se(), te = !!(a || g), ne = i(t, T, v.onContentChange, D), k = L.useRef(0), A = L.useRef(""), j = L.useRef(0), M = L.useRef(null), N = L.useRef("right"), P = L.useRef(0), ie = L.useMemo(() => g ? [T, ...O.map((e) => ({ current: e }))] : [], [
|
|
345
345
|
T,
|
|
346
346
|
O,
|
|
347
347
|
g
|
|
348
|
-
]),
|
|
348
|
+
]), oe = g ? ue : L.Fragment, ce = g ? {
|
|
349
349
|
as: Pt,
|
|
350
350
|
allowPinchZoom: !0,
|
|
351
351
|
shards: ie
|
|
352
|
-
} : void 0,
|
|
353
|
-
let t =
|
|
352
|
+
} : void 0, le = /* @__PURE__ */ z((e) => {
|
|
353
|
+
let t = A.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = pn(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
354
354
|
function s(e) {
|
|
355
|
-
|
|
355
|
+
A.current = e, window.clearTimeout(k.current), e !== "" && (k.current = window.setTimeout(() => s(""), 1e3));
|
|
356
356
|
}
|
|
357
357
|
z(s, "updateSearch"), s(t), o && setTimeout(() => o.focus());
|
|
358
358
|
}, "handleTypeaheadSearch");
|
|
359
|
-
L.useEffect(() => () => window.clearTimeout(
|
|
360
|
-
let
|
|
359
|
+
L.useEffect(() => () => window.clearTimeout(k.current), []), ae();
|
|
360
|
+
let I = L.useCallback((e) => N.current === M.current?.side && hn(e, M.current?.area), []);
|
|
361
361
|
return /* @__PURE__ */ (0, R.jsx)(kt, {
|
|
362
362
|
scope: n,
|
|
363
|
-
searchRef:
|
|
363
|
+
searchRef: A,
|
|
364
364
|
onItemEnter: L.useCallback((e) => {
|
|
365
|
-
|
|
366
|
-
}, [
|
|
365
|
+
I(e) && e.preventDefault();
|
|
366
|
+
}, [I]),
|
|
367
367
|
onItemLeave: L.useCallback((e) => {
|
|
368
|
-
|
|
369
|
-
}, [
|
|
368
|
+
I(e) || (T.current?.focus(), w(null));
|
|
369
|
+
}, [I]),
|
|
370
370
|
onTriggerLeave: L.useCallback((e) => {
|
|
371
|
-
|
|
372
|
-
}, [
|
|
373
|
-
pointerGraceTimerRef:
|
|
371
|
+
I(e) && e.preventDefault();
|
|
372
|
+
}, [I]),
|
|
373
|
+
pointerGraceTimerRef: j,
|
|
374
374
|
onPointerGraceIntentChange: L.useCallback((e) => {
|
|
375
|
-
|
|
375
|
+
M.current = e;
|
|
376
376
|
}, []),
|
|
377
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
378
|
-
registry:
|
|
379
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
380
|
-
...
|
|
381
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
377
|
+
children: /* @__PURE__ */ (0, R.jsx)(me, {
|
|
378
|
+
registry: te ? ee : null,
|
|
379
|
+
children: /* @__PURE__ */ (0, R.jsx)(oe, {
|
|
380
|
+
...ce,
|
|
381
|
+
children: /* @__PURE__ */ (0, R.jsx)(de, {
|
|
382
382
|
asChild: !0,
|
|
383
383
|
trapped: a,
|
|
384
384
|
branches: O,
|
|
385
|
-
onMountAutoFocus:
|
|
385
|
+
onMountAutoFocus: F(o, (e) => {
|
|
386
386
|
e.preventDefault(), T.current?.focus({ preventScroll: !0 });
|
|
387
387
|
}),
|
|
388
388
|
onUnmountAutoFocus: s,
|
|
389
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
389
|
+
children: /* @__PURE__ */ (0, R.jsx)(ge, {
|
|
390
390
|
asChild: !0,
|
|
391
391
|
disableOutsidePointerEvents: c,
|
|
392
392
|
onEscapeKeyDown: d,
|
|
@@ -402,7 +402,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
402
402
|
loop: r,
|
|
403
403
|
currentTabStopId: C,
|
|
404
404
|
onCurrentTabStopIdChange: w,
|
|
405
|
-
onEntryFocus:
|
|
405
|
+
onEntryFocus: F(l, (e) => {
|
|
406
406
|
y.isUsingKeyboardRef.current || e.preventDefault();
|
|
407
407
|
}),
|
|
408
408
|
preventScrollOnEntryFocus: !0,
|
|
@@ -414,28 +414,28 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
414
414
|
dir: y.dir,
|
|
415
415
|
...b,
|
|
416
416
|
..._,
|
|
417
|
-
ref:
|
|
417
|
+
ref: ne,
|
|
418
418
|
style: {
|
|
419
419
|
outline: "none",
|
|
420
420
|
..._.style
|
|
421
421
|
},
|
|
422
|
-
onKeyDown:
|
|
422
|
+
onKeyDown: F(_.onKeyDown, (e) => {
|
|
423
423
|
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
424
|
-
t && (e.key === "Tab" && e.preventDefault(), !n && r &&
|
|
424
|
+
t && (e.key === "Tab" && e.preventDefault(), !n && r && le(e.key));
|
|
425
425
|
let i = T.current;
|
|
426
426
|
if (e.target !== i || !ct.includes(e.key)) return;
|
|
427
427
|
e.preventDefault();
|
|
428
428
|
let a = S().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
429
429
|
st.includes(e.key) && a.reverse(), dn(a);
|
|
430
430
|
}),
|
|
431
|
-
onBlur:
|
|
432
|
-
e.currentTarget.contains(e.target) || (window.clearTimeout(
|
|
431
|
+
onBlur: F(e.onBlur, (e) => {
|
|
432
|
+
e.currentTarget.contains(e.target) || (window.clearTimeout(k.current), A.current = "");
|
|
433
433
|
}),
|
|
434
|
-
onPointerMove:
|
|
435
|
-
let t = e.target, n =
|
|
434
|
+
onPointerMove: F(e.onPointerMove, gn((e) => {
|
|
435
|
+
let t = e.target, n = P.current !== e.clientX;
|
|
436
436
|
if (e.currentTarget.contains(t) && n) {
|
|
437
|
-
let t = e.clientX >
|
|
438
|
-
|
|
437
|
+
let t = e.clientX > P.current ? "right" : "left";
|
|
438
|
+
N.current = t, P.current = e.clientX;
|
|
439
439
|
}
|
|
440
440
|
}))
|
|
441
441
|
})
|
|
@@ -447,14 +447,14 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
447
447
|
});
|
|
448
448
|
}, "MenuContentImpl")), It = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
449
449
|
let { __scopeMenu: n, ...r } = e;
|
|
450
|
-
return /* @__PURE__ */ (0, R.jsx)(
|
|
450
|
+
return /* @__PURE__ */ (0, R.jsx)(ve.div, {
|
|
451
451
|
role: "group",
|
|
452
452
|
...r,
|
|
453
453
|
ref: t
|
|
454
454
|
});
|
|
455
455
|
}, "MenuGroup")), Lt = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
456
456
|
let { __scopeMenu: n, ...r } = e;
|
|
457
|
-
return /* @__PURE__ */ (0, R.jsx)(
|
|
457
|
+
return /* @__PURE__ */ (0, R.jsx)(ve.div, {
|
|
458
458
|
...r,
|
|
459
459
|
ref: t
|
|
460
460
|
});
|
|
@@ -466,21 +466,21 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
466
466
|
bubbles: !0,
|
|
467
467
|
cancelable: !0
|
|
468
468
|
});
|
|
469
|
-
e.addEventListener(zt, (e) => r?.(e), { once: !0 }),
|
|
469
|
+
e.addEventListener(zt, (e) => r?.(e), { once: !0 }), N(e, t), t.defaultPrevented ? u.current = !1 : s.onClose();
|
|
470
470
|
}
|
|
471
471
|
}, "handleSelect");
|
|
472
472
|
return /* @__PURE__ */ (0, R.jsx)(Vt, {
|
|
473
473
|
...a,
|
|
474
474
|
ref: l,
|
|
475
475
|
disabled: n,
|
|
476
|
-
onClick:
|
|
476
|
+
onClick: F(e.onClick, d),
|
|
477
477
|
onPointerDown: (t) => {
|
|
478
478
|
e.onPointerDown?.(t), u.current = !0;
|
|
479
479
|
},
|
|
480
|
-
onPointerUp:
|
|
480
|
+
onPointerUp: F(e.onPointerUp, (e) => {
|
|
481
481
|
u.current || e.currentTarget?.click();
|
|
482
482
|
}),
|
|
483
|
-
onKeyDown:
|
|
483
|
+
onKeyDown: F(e.onKeyDown, (e) => {
|
|
484
484
|
n || e.target !== e.currentTarget || (c.searchRef.current === "" || e.key !== " ") && at.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
485
485
|
})
|
|
486
486
|
});
|
|
@@ -497,19 +497,19 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
497
497
|
asChild: !0,
|
|
498
498
|
...c,
|
|
499
499
|
focusable: !r,
|
|
500
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
500
|
+
children: /* @__PURE__ */ (0, R.jsx)(ve.div, {
|
|
501
501
|
role: "menuitem",
|
|
502
502
|
"data-highlighted": d ? "" : void 0,
|
|
503
503
|
"aria-disabled": r || void 0,
|
|
504
504
|
"data-disabled": r ? "" : void 0,
|
|
505
505
|
...o,
|
|
506
506
|
ref: u,
|
|
507
|
-
onPointerMove:
|
|
507
|
+
onPointerMove: F(e.onPointerMove, gn((e) => {
|
|
508
508
|
r ? s.onItemLeave(e) : (s.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
|
|
509
509
|
})),
|
|
510
|
-
onPointerLeave:
|
|
511
|
-
onFocus:
|
|
512
|
-
onBlur:
|
|
510
|
+
onPointerLeave: F(e.onPointerLeave, gn((e) => s.onItemLeave(e))),
|
|
511
|
+
onFocus: F(e.onFocus, () => f(!0)),
|
|
512
|
+
onBlur: F(e.onBlur, () => f(!1))
|
|
513
513
|
})
|
|
514
514
|
})
|
|
515
515
|
});
|
|
@@ -524,14 +524,14 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
524
524
|
...i,
|
|
525
525
|
ref: t,
|
|
526
526
|
"data-state": un(n),
|
|
527
|
-
onSelect:
|
|
527
|
+
onSelect: F(i.onSelect, () => r?.(ln(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
|
|
528
528
|
})
|
|
529
529
|
});
|
|
530
530
|
}, "MenuCheckboxItem")), [Ut, Wt] = ht("MenuRadioGroup", {
|
|
531
531
|
value: void 0,
|
|
532
532
|
onValueChange: /* @__PURE__ */ z(() => {}, "onValueChange")
|
|
533
533
|
}), Gt = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
534
|
-
let { value: n, onValueChange: r, ...i } = e, a =
|
|
534
|
+
let { value: n, onValueChange: r, ...i } = e, a = P(r);
|
|
535
535
|
return /* @__PURE__ */ (0, R.jsx)(Ut, {
|
|
536
536
|
scope: e.__scopeMenu,
|
|
537
537
|
value: n,
|
|
@@ -552,14 +552,14 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
552
552
|
...r,
|
|
553
553
|
ref: t,
|
|
554
554
|
"data-state": un(a),
|
|
555
|
-
onSelect:
|
|
555
|
+
onSelect: F(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
|
|
556
556
|
})
|
|
557
557
|
});
|
|
558
558
|
}, "MenuRadioItem")), Jt = "MenuItemIndicator", [Yt, Xt] = ht(Jt, { checked: !1 }), Zt = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
559
559
|
let { __scopeMenu: n, forceMount: r, ...i } = e, a = Xt(Jt, n);
|
|
560
|
-
return /* @__PURE__ */ (0, R.jsx)(
|
|
560
|
+
return /* @__PURE__ */ (0, R.jsx)(ce, {
|
|
561
561
|
present: r || ln(a.checked) || a.checked === !0,
|
|
562
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
562
|
+
children: /* @__PURE__ */ (0, R.jsx)(ve.span, {
|
|
563
563
|
...i,
|
|
564
564
|
ref: t,
|
|
565
565
|
"data-state": un(a.checked)
|
|
@@ -567,14 +567,14 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
567
567
|
});
|
|
568
568
|
}, "MenuItemIndicator")), Qt = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
569
569
|
let { __scopeMenu: n, ...r } = e;
|
|
570
|
-
return /* @__PURE__ */ (0, R.jsx)(
|
|
570
|
+
return /* @__PURE__ */ (0, R.jsx)(ve.div, {
|
|
571
571
|
role: "separator",
|
|
572
572
|
"aria-orientation": "horizontal",
|
|
573
573
|
...r,
|
|
574
574
|
ref: t
|
|
575
575
|
});
|
|
576
576
|
}, "MenuSeparator")), $t = "MenuSub", [en, tn] = ht($t), nn = /* @__PURE__ */ z((e) => {
|
|
577
|
-
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = bt($t, t), o = _t(t), [s, c] = L.useState(null), [l, u] = L.useState(null), f =
|
|
577
|
+
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = bt($t, t), o = _t(t), [s, c] = L.useState(null), [l, u] = L.useState(null), f = P(i);
|
|
578
578
|
return L.useEffect(() => (a.open === !1 && f(!1), () => f(!1)), [a.open, f]), /* @__PURE__ */ (0, R.jsx)(d, {
|
|
579
579
|
...o,
|
|
580
580
|
children: /* @__PURE__ */ (0, R.jsx)(yt, {
|
|
@@ -585,8 +585,8 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
585
585
|
onContentChange: u,
|
|
586
586
|
children: /* @__PURE__ */ (0, R.jsx)(en, {
|
|
587
587
|
scope: t,
|
|
588
|
-
contentId:
|
|
589
|
-
triggerId:
|
|
588
|
+
contentId: fe(),
|
|
589
|
+
triggerId: fe(),
|
|
590
590
|
trigger: s,
|
|
591
591
|
onTriggerChange: c,
|
|
592
592
|
children: n
|
|
@@ -618,12 +618,12 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
618
618
|
onClick: (t) => {
|
|
619
619
|
e.onClick?.(t), !(e.disabled || t.defaultPrevented) && (t.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
620
620
|
},
|
|
621
|
-
onPointerMove:
|
|
621
|
+
onPointerMove: F(e.onPointerMove, gn((t) => {
|
|
622
622
|
o.onItemEnter(t), !t.defaultPrevented && !e.disabled && !n.open && !s.current && (o.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
|
|
623
623
|
n.onOpenChange(!0), d();
|
|
624
624
|
}, 100));
|
|
625
625
|
})),
|
|
626
|
-
onPointerLeave:
|
|
626
|
+
onPointerLeave: F(e.onPointerLeave, gn((e) => {
|
|
627
627
|
d();
|
|
628
628
|
let t = n.content?.getBoundingClientRect();
|
|
629
629
|
if (t) {
|
|
@@ -658,7 +658,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
658
658
|
o.onPointerGraceIntentChange(null);
|
|
659
659
|
}
|
|
660
660
|
})),
|
|
661
|
-
onKeyDown:
|
|
661
|
+
onKeyDown: F(e.onKeyDown, (t) => {
|
|
662
662
|
e.disabled || t.target !== t.currentTarget || (o.searchRef.current === "" || t.key !== " ") && lt[r.dir].includes(t.key) && (n.onOpenChange(!0), n.content?.focus(), t.preventDefault());
|
|
663
663
|
})
|
|
664
664
|
})
|
|
@@ -667,7 +667,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
667
667
|
let n = Dt(B, e.__scopeMenu), { forceMount: r = n.forceMount, align: a = "start", ...o } = e, s = bt(B, e.__scopeMenu), c = St(B, e.__scopeMenu), l = tn(on, e.__scopeMenu), u = L.useRef(null), d = i(t, u);
|
|
668
668
|
return /* @__PURE__ */ (0, R.jsx)(ft.Provider, {
|
|
669
669
|
scope: e.__scopeMenu,
|
|
670
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
670
|
+
children: /* @__PURE__ */ (0, R.jsx)(ce, {
|
|
671
671
|
present: r || s.open,
|
|
672
672
|
children: /* @__PURE__ */ (0, R.jsx)(ft.Slot, {
|
|
673
673
|
scope: e.__scopeMenu,
|
|
@@ -685,13 +685,13 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
685
685
|
c.isUsingKeyboardRef.current && u.current?.focus(), e.preventDefault();
|
|
686
686
|
},
|
|
687
687
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
688
|
-
onFocusOutside:
|
|
688
|
+
onFocusOutside: F(e.onFocusOutside, (e) => {
|
|
689
689
|
e.target !== l.trigger && s.onOpenChange(!1);
|
|
690
690
|
}),
|
|
691
|
-
onEscapeKeyDown:
|
|
691
|
+
onEscapeKeyDown: F(e.onEscapeKeyDown, (e) => {
|
|
692
692
|
c.onClose(), e.preventDefault();
|
|
693
693
|
}),
|
|
694
|
-
onKeyDown:
|
|
694
|
+
onKeyDown: F(e.onKeyDown, (e) => {
|
|
695
695
|
let t = e.currentTarget.contains(e.target), n = ut[c.dir].includes(e.key);
|
|
696
696
|
t && n && (s.onOpenChange(!1), l.trigger?.focus(), e.preventDefault());
|
|
697
697
|
})
|
|
@@ -753,8 +753,8 @@ z(gn, "whenMouse");
|
|
|
753
753
|
var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
|
|
754
754
|
value: t,
|
|
755
755
|
configurable: !0
|
|
756
|
-
}), vn = "DropdownMenu", [yn, bn] =
|
|
757
|
-
let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = H(t), l = L.useRef(null), [u, d] =
|
|
756
|
+
}), vn = "DropdownMenu", [yn, bn] = _e(vn, [gt]), H = gt(), [xn, Sn] = yn(vn), Cn = /* @__PURE__ */ V((e) => {
|
|
757
|
+
let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = H(t), l = L.useRef(null), [u, d] = ie({
|
|
758
758
|
prop: i,
|
|
759
759
|
defaultProp: a ?? !1,
|
|
760
760
|
onChange: o,
|
|
@@ -762,9 +762,9 @@ var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
|
|
|
762
762
|
});
|
|
763
763
|
return /* @__PURE__ */ (0, R.jsx)(xn, {
|
|
764
764
|
scope: t,
|
|
765
|
-
triggerId:
|
|
765
|
+
triggerId: fe(),
|
|
766
766
|
triggerRef: l,
|
|
767
|
-
contentId:
|
|
767
|
+
contentId: fe(),
|
|
768
768
|
open: u,
|
|
769
769
|
onOpenChange: d,
|
|
770
770
|
onOpenToggle: L.useCallback(() => d((e) => !e), [d]),
|
|
@@ -783,7 +783,7 @@ var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
|
|
|
783
783
|
return /* @__PURE__ */ (0, R.jsx)(wt, {
|
|
784
784
|
asChild: !0,
|
|
785
785
|
...s,
|
|
786
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
786
|
+
children: /* @__PURE__ */ (0, R.jsx)(ve.button, {
|
|
787
787
|
type: "button",
|
|
788
788
|
id: o.triggerId,
|
|
789
789
|
"aria-haspopup": "menu",
|
|
@@ -794,10 +794,10 @@ var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
|
|
|
794
794
|
disabled: r,
|
|
795
795
|
...a,
|
|
796
796
|
ref: c,
|
|
797
|
-
onPointerDown:
|
|
797
|
+
onPointerDown: F(e.onPointerDown, (e) => {
|
|
798
798
|
!r && e.button === 0 && e.ctrlKey === !1 && (o.onOpenToggle(), o.open || e.preventDefault());
|
|
799
799
|
}),
|
|
800
|
-
onKeyDown:
|
|
800
|
+
onKeyDown: F(e.onKeyDown, (e) => {
|
|
801
801
|
r || (["Enter", " "].includes(e.key) && o.onOpenToggle(), e.key === "ArrowDown" && o.onOpenChange(!0), [
|
|
802
802
|
"Enter",
|
|
803
803
|
" ",
|
|
@@ -820,10 +820,10 @@ var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
|
|
|
820
820
|
...a,
|
|
821
821
|
...r,
|
|
822
822
|
ref: t,
|
|
823
|
-
onCloseAutoFocus:
|
|
823
|
+
onCloseAutoFocus: F(e.onCloseAutoFocus, (e) => {
|
|
824
824
|
o.current || i.triggerRef.current?.focus(), o.current = !1, e.preventDefault();
|
|
825
825
|
}),
|
|
826
|
-
onInteractOutside:
|
|
826
|
+
onInteractOutside: F(e.onInteractOutside, (e) => {
|
|
827
827
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
828
828
|
(!i.modal || r) && (o.current = !0);
|
|
829
829
|
}),
|
|
@@ -886,7 +886,7 @@ var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
|
|
|
886
886
|
ref: t
|
|
887
887
|
});
|
|
888
888
|
}, "DropdownMenuSeparator")), In = /* @__PURE__ */ V((e) => {
|
|
889
|
-
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = H(t), [s, c] =
|
|
889
|
+
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = H(t), [s, c] = ie({
|
|
890
890
|
prop: r,
|
|
891
891
|
defaultProp: a ?? !1,
|
|
892
892
|
onChange: i,
|
|
@@ -1459,7 +1459,7 @@ function q(...e) {
|
|
|
1459
1459
|
let r = e[n];
|
|
1460
1460
|
for (let e in r) {
|
|
1461
1461
|
let n = t[e], i = r[e];
|
|
1462
|
-
typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = ai(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] =
|
|
1462
|
+
typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = ai(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = ne(n, i) : e === "id" && n && i ? t.id = fi(n, i) : e === "ref" && n && i ? t.ref = mi(n, i) : t[e] = i === void 0 ? n : i;
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
1465
|
return t;
|
|
@@ -1709,7 +1709,7 @@ function J(e) {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
//#endregion
|
|
1711
1711
|
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria/dist/private/utils/useEvent.mjs
|
|
1712
|
-
var Bi = /* @__PURE__ */ e(
|
|
1712
|
+
var Bi = /* @__PURE__ */ e(k(), 1);
|
|
1713
1713
|
function Vi(e, t, n, r) {
|
|
1714
1714
|
let i = J(n), a = n == null;
|
|
1715
1715
|
(0, L.useEffect)(() => {
|
|
@@ -3394,19 +3394,19 @@ function Gs(e) {
|
|
|
3394
3394
|
}), O = J((e) => {
|
|
3395
3395
|
v(), g.current = !0, t.current = window.setTimeout(D, e);
|
|
3396
3396
|
}), ee = J(() => {
|
|
3397
|
-
(i === void 0 || isNaN(i) || n === void 0 || isNaN(n) || n > i) && (E(),
|
|
3398
|
-
}),
|
|
3397
|
+
(i === void 0 || isNaN(i) || n === void 0 || isNaN(n) || n > i) && (E(), te(60));
|
|
3398
|
+
}), te = J((e) => {
|
|
3399
3399
|
v(), g.current = !0, t.current = window.setTimeout(ee, e);
|
|
3400
|
-
}),
|
|
3400
|
+
}), ne = (e) => {
|
|
3401
3401
|
e.preventDefault();
|
|
3402
|
-
}, { addGlobalListener:
|
|
3402
|
+
}, { addGlobalListener: k, removeAllGlobalListeners: A } = ya(), j = (0, L.useRef)(!1), [M, N] = (0, L.useState)(null);
|
|
3403
3403
|
(0, L.useEffect)(() => {
|
|
3404
|
-
|
|
3405
|
-
}, [
|
|
3406
|
-
let [
|
|
3404
|
+
M === "touch" ? O(600) : M ? O(400) : M || v();
|
|
3405
|
+
}, [M]);
|
|
3406
|
+
let [re, P] = (0, L.useState)(null);
|
|
3407
3407
|
return (0, L.useEffect)(() => {
|
|
3408
|
-
|
|
3409
|
-
}, [
|
|
3408
|
+
re === "touch" ? te(600) : re ? te(400) : re || v();
|
|
3409
|
+
}, [re]), {
|
|
3410
3410
|
spinButtonProps: {
|
|
3411
3411
|
role: "spinbutton",
|
|
3412
3412
|
"aria-valuenow": n !== void 0 && !isNaN(n) ? n : void 0,
|
|
@@ -3422,26 +3422,26 @@ function Gs(e) {
|
|
|
3422
3422
|
},
|
|
3423
3423
|
incrementButtonProps: {
|
|
3424
3424
|
onPressStart: (e) => {
|
|
3425
|
-
_(), e.pointerType === "touch" ? (
|
|
3425
|
+
_(), e.pointerType === "touch" ? (k(window, "pointercancel", w, { capture: !0 }), j.current = !1, N("touch")) : (l?.(), N("mouse")), k(window, "contextmenu", ne);
|
|
3426
3426
|
},
|
|
3427
3427
|
onPressUp: (e) => {
|
|
3428
|
-
_(), e.pointerType === "touch" && (
|
|
3428
|
+
_(), e.pointerType === "touch" && (j.current = !0), A(), N(null);
|
|
3429
3429
|
},
|
|
3430
3430
|
onPressEnd: (e) => {
|
|
3431
|
-
_(), e.pointerType === "touch" && !g.current &&
|
|
3431
|
+
_(), e.pointerType === "touch" && !g.current && j.current && l?.(), j.current = !1, N(null);
|
|
3432
3432
|
},
|
|
3433
3433
|
onFocus: x,
|
|
3434
3434
|
onBlur: S
|
|
3435
3435
|
},
|
|
3436
3436
|
decrementButtonProps: {
|
|
3437
3437
|
onPressStart: (e) => {
|
|
3438
|
-
_(), e.pointerType === "touch" ? (
|
|
3438
|
+
_(), e.pointerType === "touch" ? (k(window, "pointercancel", w, { capture: !0 }), j.current = !1, P("touch")) : (d?.(), P("mouse"));
|
|
3439
3439
|
},
|
|
3440
3440
|
onPressUp: (e) => {
|
|
3441
|
-
_(), e.pointerType === "touch" && (
|
|
3441
|
+
_(), e.pointerType === "touch" && (j.current = !0), A(), P(null);
|
|
3442
3442
|
},
|
|
3443
3443
|
onPressEnd: (e) => {
|
|
3444
|
-
_(), e.pointerType === "touch" && !g.current &&
|
|
3444
|
+
_(), e.pointerType === "touch" && !g.current && j.current && d?.(), j.current = !1, P(null);
|
|
3445
3445
|
},
|
|
3446
3446
|
onFocus: x,
|
|
3447
3447
|
onBlur: S
|
|
@@ -3454,17 +3454,17 @@ function Ks(e) {
|
|
|
3454
3454
|
return e && e.__esModule ? e.default : e;
|
|
3455
3455
|
}
|
|
3456
3456
|
function qs(e, t, n) {
|
|
3457
|
-
let { id: r, decrementAriaLabel: i, incrementAriaLabel: a, isDisabled: o, isReadOnly: s, isRequired: c, minValue: l, maxValue: u, autoFocus: d, label: f, formatOptions: p, onBlur: m = () => {}, onFocus: h, onFocusChange: g, onKeyDown: _, onKeyUp: v, description: y, errorMessage: b, isWheelDisabled: x, ...S } = e, { increment: C, incrementToMax: w, decrement: T, decrementToMin: E, numberValue: O, inputValue: ee, commit:
|
|
3457
|
+
let { id: r, decrementAriaLabel: i, incrementAriaLabel: a, isDisabled: o, isReadOnly: s, isRequired: c, minValue: l, maxValue: u, autoFocus: d, label: f, formatOptions: p, onBlur: m = () => {}, onFocus: h, onFocusChange: g, onKeyDown: _, onKeyUp: v, description: y, errorMessage: b, isWheelDisabled: x, ...S } = e, { increment: C, incrementToMax: w, decrement: T, decrementToMin: E, numberValue: O, inputValue: ee, commit: te, commitValidation: ne } = t, k = na(Ks(rs), "@react-aria/numberfield"), A = (0, L.useCallback)(() => {
|
|
3458
3458
|
let e = n.current?.value ?? "";
|
|
3459
3459
|
(0, Bi.flushSync)(() => {
|
|
3460
|
-
|
|
3460
|
+
te();
|
|
3461
3461
|
}), n.current?.value !== e && Ia(n.current?.value ?? "", "assertive");
|
|
3462
|
-
}, [
|
|
3463
|
-
|
|
3464
|
-
} }),
|
|
3462
|
+
}, [te, n]), j = di(r), { focusProps: M } = gi({ onBlur() {
|
|
3463
|
+
A();
|
|
3464
|
+
} }), N = D(p), re = (0, L.useMemo)(() => N.resolvedOptions(), [N]), P = D({
|
|
3465
3465
|
...p,
|
|
3466
3466
|
currencySign: void 0
|
|
3467
|
-
}), { spinButtonProps:
|
|
3467
|
+
}), { spinButtonProps: F, incrementButtonProps: ie, decrementButtonProps: ae } = Gs({
|
|
3468
3468
|
isDisabled: o,
|
|
3469
3469
|
isReadOnly: s,
|
|
3470
3470
|
isRequired: c,
|
|
@@ -3475,30 +3475,30 @@ function qs(e, t, n) {
|
|
|
3475
3475
|
onDecrement: T,
|
|
3476
3476
|
onDecrementToMin: E,
|
|
3477
3477
|
value: O,
|
|
3478
|
-
textValue: (0, L.useMemo)(() => isNaN(O) ? "" :
|
|
3479
|
-
}), [
|
|
3478
|
+
textValue: (0, L.useMemo)(() => isNaN(O) ? "" : P.format(O), [P, O])
|
|
3479
|
+
}), [oe, se] = (0, L.useState)(!1), { focusWithinProps: ce } = io({
|
|
3480
3480
|
isDisabled: o,
|
|
3481
|
-
onFocusWithinChange:
|
|
3481
|
+
onFocusWithinChange: se
|
|
3482
3482
|
});
|
|
3483
3483
|
ss({
|
|
3484
3484
|
onScroll: (0, L.useCallback)((e) => {
|
|
3485
3485
|
Math.abs(e.deltaY) <= Math.abs(e.deltaX) || (e.deltaY > 0 ? C() : e.deltaY < 0 && T());
|
|
3486
3486
|
}, [T, C]),
|
|
3487
|
-
isDisabled: x || o || s || !
|
|
3487
|
+
isDisabled: x || o || s || !oe
|
|
3488
3488
|
}, n);
|
|
3489
|
-
let
|
|
3490
|
-
xr() ?
|
|
3489
|
+
let le = (re.maximumFractionDigits ?? 0) > 0, ue = t.minValue === void 0 || isNaN(t.minValue) || t.minValue < 0, I = "numeric";
|
|
3490
|
+
xr() ? ue ? I = "text" : le && (I = "decimal") : Er() && (ue ? I = "numeric" : le && (I = "decimal"));
|
|
3491
3491
|
let de = (e) => {
|
|
3492
3492
|
t.validate(e) && t.setInputValue(e);
|
|
3493
3493
|
}, fe = (t) => {
|
|
3494
3494
|
e.onPaste?.(t);
|
|
3495
3495
|
let n = K(t);
|
|
3496
|
-
n && (n.selectionEnd ?? -1) - (n.selectionStart ?? 0) === n.value.length && (t.preventDefault(),
|
|
3496
|
+
n && (n.selectionEnd ?? -1) - (n.selectionStart ?? 0) === n.value.length && (t.preventDefault(), te(t.clipboardData?.getData?.("text/plain")?.trim() ?? ""));
|
|
3497
3497
|
}, pe = la(e), { keyboardProps: me } = Ai({
|
|
3498
3498
|
isDisabled: o || s,
|
|
3499
3499
|
shortcuts: { Enter: () => ((0, Bi.flushSync)(() => {
|
|
3500
|
-
|
|
3501
|
-
}),
|
|
3500
|
+
te();
|
|
3501
|
+
}), ne(), { shouldPreventDefault: !1 }) },
|
|
3502
3502
|
onKeyDown: _,
|
|
3503
3503
|
onKeyUp: v
|
|
3504
3504
|
}), { isInvalid: he, validationErrors: ge, validationDetails: _e } = t.displayValidation, { labelProps: ve, inputProps: ye, descriptionProps: be, errorMessageProps: xe } = os({
|
|
@@ -3518,9 +3518,9 @@ function qs(e, t, n) {
|
|
|
3518
3518
|
autoComplete: "off",
|
|
3519
3519
|
"aria-label": e["aria-label"] || void 0,
|
|
3520
3520
|
"aria-labelledby": e["aria-labelledby"] || void 0,
|
|
3521
|
-
id:
|
|
3521
|
+
id: j,
|
|
3522
3522
|
type: "text",
|
|
3523
|
-
inputMode:
|
|
3523
|
+
inputMode: I,
|
|
3524
3524
|
onChange: de,
|
|
3525
3525
|
onBlur: m,
|
|
3526
3526
|
onFocus: h,
|
|
@@ -3530,9 +3530,9 @@ function qs(e, t, n) {
|
|
|
3530
3530
|
errorMessage: b
|
|
3531
3531
|
}, t, n), Se = q(me, ye);
|
|
3532
3532
|
za(n, t.defaultNumberValue, t.setNumberValue), Js(t, e.validationBehavior, e.commitBehavior, n, t.minValue, t.maxValue, e.step, t.numberValue);
|
|
3533
|
-
let Ce = q(
|
|
3533
|
+
let Ce = q(F, M, Se, {
|
|
3534
3534
|
role: null,
|
|
3535
|
-
"aria-roledescription": Cr() ? null :
|
|
3535
|
+
"aria-roledescription": Cr() ? null : k.format("numberField"),
|
|
3536
3536
|
"aria-valuemax": null,
|
|
3537
3537
|
"aria-valuemin": null,
|
|
3538
3538
|
"aria-valuenow": null,
|
|
@@ -3546,20 +3546,20 @@ function qs(e, t, n) {
|
|
|
3546
3546
|
}, Te = e["aria-label"] || (typeof e.label == "string" ? e.label : ""), Ee;
|
|
3547
3547
|
Te || (Ee = e.label == null ? e["aria-labelledby"] : ve.id);
|
|
3548
3548
|
let De = di(), Oe = di(), ke = q(ie, {
|
|
3549
|
-
"aria-label": a ||
|
|
3549
|
+
"aria-label": a || k.format("increase", { fieldLabel: Te }).trim(),
|
|
3550
3550
|
id: Ee && !a ? De : null,
|
|
3551
3551
|
"aria-labelledby": Ee && !a ? `${De} ${Ee}` : null,
|
|
3552
|
-
"aria-controls":
|
|
3552
|
+
"aria-controls": j,
|
|
3553
3553
|
excludeFromTabOrder: !0,
|
|
3554
3554
|
preventFocusOnPress: !0,
|
|
3555
3555
|
allowFocusWhenDisabled: !0,
|
|
3556
3556
|
isDisabled: !t.canIncrement,
|
|
3557
3557
|
onPressStart: we
|
|
3558
|
-
}), Ae = q(
|
|
3559
|
-
"aria-label": i ||
|
|
3558
|
+
}), Ae = q(ae, {
|
|
3559
|
+
"aria-label": i || k.format("decrease", { fieldLabel: Te }).trim(),
|
|
3560
3560
|
id: Ee && !i ? Oe : null,
|
|
3561
3561
|
"aria-labelledby": Ee && !i ? `${Oe} ${Ee}` : null,
|
|
3562
|
-
"aria-controls":
|
|
3562
|
+
"aria-controls": j,
|
|
3563
3563
|
excludeFromTabOrder: !0,
|
|
3564
3564
|
preventFocusOnPress: !0,
|
|
3565
3565
|
allowFocusWhenDisabled: !0,
|
|
@@ -3568,7 +3568,7 @@ function qs(e, t, n) {
|
|
|
3568
3568
|
});
|
|
3569
3569
|
return {
|
|
3570
3570
|
groupProps: {
|
|
3571
|
-
...
|
|
3571
|
+
...ce,
|
|
3572
3572
|
role: "group",
|
|
3573
3573
|
"aria-disabled": o,
|
|
3574
3574
|
"aria-invalid": he ? "true" : void 0
|
|
@@ -5340,10 +5340,10 @@ function ru(e) {
|
|
|
5340
5340
|
value: p
|
|
5341
5341
|
}), T = r !== void 0 && !isNaN(r) ? r : 1;
|
|
5342
5342
|
S.style === "percent" && (r === void 0 || isNaN(r)) && (T = .01);
|
|
5343
|
-
let [E, D] = (0, L.useState)(p), [O, ee] = (0, L.useState)(c), [
|
|
5344
|
-
(!Object.is(p, E) || c !== O || !iu(i,
|
|
5345
|
-
let
|
|
5346
|
-
let t = e === void 0 ? g : e, n =
|
|
5343
|
+
let [E, D] = (0, L.useState)(p), [O, ee] = (0, L.useState)(c), [te, ne] = (0, L.useState)(i);
|
|
5344
|
+
(!Object.is(p, E) || c !== O || !iu(i, te)) && (_(C(p)), D(p), ee(c), ne(i));
|
|
5345
|
+
let k = (0, L.useMemo)(() => y.parse(g), [y, g]), A = (e) => {
|
|
5346
|
+
let t = e === void 0 ? g : e, n = k;
|
|
5347
5347
|
if (e !== void 0 && (n = y.parse(t)), !t.length) {
|
|
5348
5348
|
m(NaN), _(a === void 0 ? "" : C(p));
|
|
5349
5349
|
return;
|
|
@@ -5356,55 +5356,55 @@ function ru(e) {
|
|
|
5356
5356
|
r = y.parse(C(r));
|
|
5357
5357
|
let i = r !== p;
|
|
5358
5358
|
m(r), _(C(a === void 0 ? r : p)), i && w.commitValidation();
|
|
5359
|
-
},
|
|
5360
|
-
let i =
|
|
5359
|
+
}, j = (e, r = 0) => {
|
|
5360
|
+
let i = k;
|
|
5361
5361
|
if (isNaN(i)) return lo(isNaN(r) ? 0 : r, t, n, T);
|
|
5362
5362
|
{
|
|
5363
5363
|
let r = lo(i, t, n, T);
|
|
5364
5364
|
return e === "+" && r > i || e === "-" && r < i ? r : lo(au(e, i, T), t, n, T);
|
|
5365
5365
|
}
|
|
5366
|
-
},
|
|
5367
|
-
let e =
|
|
5366
|
+
}, M = () => {
|
|
5367
|
+
let e = j("+", t);
|
|
5368
5368
|
e === p && _(C(e)), m(e), w.commitValidation();
|
|
5369
|
-
},
|
|
5370
|
-
let e =
|
|
5369
|
+
}, N = () => {
|
|
5370
|
+
let e = j("-", n);
|
|
5371
5371
|
e === p && _(C(e)), m(e), w.commitValidation();
|
|
5372
|
-
},
|
|
5372
|
+
}, re = () => {
|
|
5373
5373
|
n != null && (m(lo(n, t, n, T)), w.commitValidation());
|
|
5374
|
-
},
|
|
5374
|
+
}, P = () => {
|
|
5375
5375
|
t != null && (m(t), w.commitValidation());
|
|
5376
|
-
},
|
|
5376
|
+
}, F = (0, L.useMemo)(() => !l && !u && (isNaN(k) || n === void 0 || isNaN(n) || lo(k, t, n, T) > k || au("+", k, T) <= n), [
|
|
5377
5377
|
l,
|
|
5378
5378
|
u,
|
|
5379
5379
|
t,
|
|
5380
5380
|
n,
|
|
5381
5381
|
T,
|
|
5382
|
-
|
|
5383
|
-
]), ie = (0, L.useMemo)(() => !l && !u && (isNaN(
|
|
5382
|
+
k
|
|
5383
|
+
]), ie = (0, L.useMemo)(() => !l && !u && (isNaN(k) || t === void 0 || isNaN(t) || lo(k, t, n, T) < k || au("-", k, T) >= t), [
|
|
5384
5384
|
l,
|
|
5385
5385
|
u,
|
|
5386
5386
|
t,
|
|
5387
5387
|
n,
|
|
5388
5388
|
T,
|
|
5389
|
-
|
|
5390
|
-
]),
|
|
5389
|
+
k
|
|
5390
|
+
]), ae = (e) => y.isValidPartialNumber(e, t, n);
|
|
5391
5391
|
return {
|
|
5392
5392
|
...w,
|
|
5393
|
-
validate:
|
|
5394
|
-
increment:
|
|
5395
|
-
incrementToMax:
|
|
5396
|
-
decrement:
|
|
5397
|
-
decrementToMin:
|
|
5398
|
-
canIncrement:
|
|
5393
|
+
validate: ae,
|
|
5394
|
+
increment: M,
|
|
5395
|
+
incrementToMax: re,
|
|
5396
|
+
decrement: N,
|
|
5397
|
+
decrementToMin: P,
|
|
5398
|
+
canIncrement: F,
|
|
5399
5399
|
canDecrement: ie,
|
|
5400
5400
|
minValue: t,
|
|
5401
5401
|
maxValue: n,
|
|
5402
|
-
numberValue:
|
|
5402
|
+
numberValue: k,
|
|
5403
5403
|
defaultNumberValue: isNaN(o) ? h : o,
|
|
5404
5404
|
setNumberValue: m,
|
|
5405
5405
|
setInputValue: _,
|
|
5406
5406
|
inputValue: g,
|
|
5407
|
-
commit:
|
|
5407
|
+
commit: A
|
|
5408
5408
|
};
|
|
5409
5409
|
}
|
|
5410
5410
|
function iu(e, t) {
|
|
@@ -5626,41 +5626,41 @@ var Su = L.forwardRef((e, t) => {
|
|
|
5626
5626
|
}), r[29] = s.isDisabled, r[30] = D, r[31] = l, r[32] = O) : O = r[32];
|
|
5627
5627
|
let ee;
|
|
5628
5628
|
r[33] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ (0, R.jsx)("div", { className: "h-px shrink-0 divider bg-border z-10" }), r[33] = ee) : ee = r[33];
|
|
5629
|
-
let
|
|
5630
|
-
r[34] ===
|
|
5631
|
-
let
|
|
5632
|
-
r[36] ===
|
|
5629
|
+
let te = s.isDisabled, ne = l === "xs" && "w-2 h-2", k;
|
|
5630
|
+
r[34] === ne ? k = r[35] : (k = n("w-3 h-3 -mt-px", ne), r[34] = ne, r[35] = k);
|
|
5631
|
+
let A;
|
|
5632
|
+
r[36] === k ? A = r[37] : (A = /* @__PURE__ */ (0, R.jsx)(_, {
|
|
5633
5633
|
"aria-hidden": !0,
|
|
5634
|
-
className:
|
|
5635
|
-
}), r[36] =
|
|
5636
|
-
let
|
|
5637
|
-
r[38] !== s.isDisabled || r[39] !==
|
|
5634
|
+
className: k
|
|
5635
|
+
}), r[36] = k, r[37] = A);
|
|
5636
|
+
let j;
|
|
5637
|
+
r[38] !== s.isDisabled || r[39] !== A || r[40] !== l ? (j = /* @__PURE__ */ (0, R.jsx)(Cu, {
|
|
5638
5638
|
slot: "decrement",
|
|
5639
|
-
isDisabled:
|
|
5639
|
+
isDisabled: te,
|
|
5640
5640
|
variant: l,
|
|
5641
5641
|
excludeFromTabOrder: !0,
|
|
5642
|
-
children:
|
|
5643
|
-
}), r[38] = s.isDisabled, r[39] =
|
|
5644
|
-
let
|
|
5645
|
-
r[42] !== O || r[43] !==
|
|
5642
|
+
children: A
|
|
5643
|
+
}), r[38] = s.isDisabled, r[39] = A, r[40] = l, r[41] = j) : j = r[41];
|
|
5644
|
+
let M;
|
|
5645
|
+
r[42] !== O || r[43] !== j ? (M = /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
5646
5646
|
className: "flex flex-col border-s-2",
|
|
5647
5647
|
children: [
|
|
5648
5648
|
O,
|
|
5649
5649
|
ee,
|
|
5650
|
-
|
|
5650
|
+
j
|
|
5651
5651
|
]
|
|
5652
|
-
}), r[42] = O, r[43] =
|
|
5653
|
-
let
|
|
5654
|
-
r[45] !== S || r[46] !==
|
|
5652
|
+
}), r[42] = O, r[43] = j, r[44] = M) : M = r[44];
|
|
5653
|
+
let N;
|
|
5654
|
+
r[45] !== S || r[46] !== M || r[47] !== g ? (N = /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
5655
5655
|
className: g,
|
|
5656
|
-
children: [S,
|
|
5657
|
-
}), r[45] = S, r[46] =
|
|
5658
|
-
let
|
|
5659
|
-
return r[49] !== s || r[50] !==
|
|
5656
|
+
children: [S, M]
|
|
5657
|
+
}), r[45] = S, r[46] = M, r[47] = g, r[48] = N) : N = r[48];
|
|
5658
|
+
let re;
|
|
5659
|
+
return r[49] !== s || r[50] !== N || r[51] !== f ? (re = /* @__PURE__ */ (0, R.jsx)(cu, {
|
|
5660
5660
|
...s,
|
|
5661
5661
|
formatOptions: f,
|
|
5662
|
-
children:
|
|
5663
|
-
}), r[49] = s, r[50] =
|
|
5662
|
+
children: N
|
|
5663
|
+
}), r[49] = s, r[50] = N, r[51] = f, r[52] = re) : re = r[52], re;
|
|
5664
5664
|
});
|
|
5665
5665
|
Su.displayName = "NumberField";
|
|
5666
5666
|
var Cu = (e) => {
|
|
@@ -5790,7 +5790,7 @@ var ku = L.forwardRef((e, t) => {
|
|
|
5790
5790
|
type: "change"
|
|
5791
5791
|
}));
|
|
5792
5792
|
},
|
|
5793
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
5793
|
+
children: /* @__PURE__ */ (0, R.jsx)(te, { className: "h-4 w-4 opacity-50 hover:opacity-90 cursor-pointer" })
|
|
5794
5794
|
}), r[15] = u, r[16] = f, r[17] = a, r[18] = g) : g = r[18];
|
|
5795
5795
|
let _;
|
|
5796
5796
|
return r[19] !== l || r[20] !== p || r[21] !== h || r[22] !== g ? (_ = /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
@@ -5812,7 +5812,7 @@ var Au = L.forwardRef((e, t) => {
|
|
|
5812
5812
|
defaultProp: o,
|
|
5813
5813
|
onChange: i
|
|
5814
5814
|
}, n[4] = o, n[5] = i, n[6] = a.value, n[7] = c) : c = n[7];
|
|
5815
|
-
let [l, u] =
|
|
5815
|
+
let [l, u] = ie(c), d, f;
|
|
5816
5816
|
n[8] === l ? (d = n[9], f = n[10]) : (d = () => {
|
|
5817
5817
|
s(l || "");
|
|
5818
5818
|
}, f = [l], n[8] = l, n[9] = d, n[10] = f), L.useEffect(d, f);
|
|
@@ -5836,7 +5836,7 @@ var Au = L.forwardRef((e, t) => {
|
|
|
5836
5836
|
Au.displayName = "OnBlurredInput";
|
|
5837
5837
|
//#endregion
|
|
5838
5838
|
//#region src/components/ui/dropdown-menu.tsx
|
|
5839
|
-
var ju = Cn, Mu = Tn, Nu = kn, Pu =
|
|
5839
|
+
var ju = Cn, Mu = Tn, Nu = kn, Pu = I(En), Fu = pe(On), Iu = pe(Rn), Lu = In, Ru = L.forwardRef((e, t) => {
|
|
5840
5840
|
let n = (0, X.c)(17), r, i, a, o, s;
|
|
5841
5841
|
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({className: i, inset: a, showChevron: s, children: r, ...o} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
|
|
5842
5842
|
let c = s === void 0 || s, l;
|