@dataesr/dsfr-plus 0.0.9 → 0.0.11
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/components/Autocomplete/autocomplete.d.ts +28 -0
- package/dist/components/Autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/components/Autocomplete/index.d.ts +1 -27
- package/dist/components/Autocomplete/index.d.ts.map +1 -1
- package/dist/components/Listbox/index.d.ts +1 -36
- package/dist/components/Listbox/index.d.ts.map +1 -1
- package/dist/components/Listbox/listbox-wrapper.d.ts +23 -0
- package/dist/components/Listbox/listbox-wrapper.d.ts.map +1 -0
- package/dist/components/Listbox/listbox.d.ts +24 -10
- package/dist/components/Listbox/listbox.d.ts.map +1 -1
- package/dist/components/Menu/index.d.ts +1 -36
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/menu-button.d.ts +37 -0
- package/dist/components/Menu/menu-button.d.ts.map +1 -0
- package/dist/components/SearchBar/SearchBar.d.ts +1 -0
- package/dist/components/SearchBar/SearchBar.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts +1 -16
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/select.d.ts +17 -0
- package/dist/components/Select/select.d.ts.map +1 -0
- package/dist/dsfr-plus.js +293 -291
- package/package.json +1 -1
package/dist/dsfr-plus.js
CHANGED
|
@@ -14,17 +14,17 @@ const eo = In({}), Jc = ({
|
|
|
14
14
|
}) => {
|
|
15
15
|
const [l, s] = J(window.localStorage.getItem("locale") || o), [u, a] = J(!1);
|
|
16
16
|
G(() => {
|
|
17
|
-
const
|
|
17
|
+
const b = async () => {
|
|
18
18
|
var x;
|
|
19
19
|
(x = window == null ? void 0 : window.dsfr) != null && x.isStarted || (window.dsfr = {
|
|
20
20
|
verbose: i,
|
|
21
21
|
mode: "manual"
|
|
22
22
|
}, await import("./dsfr.module.min-23ae5258.js"), await import("./utility-251e9615.js"), await import("./dsfr-4e49221c.js"), window.dsfr.start(), a(!0));
|
|
23
23
|
}, d = window.matchMedia("(prefers-color-scheme: dark)"), v = d != null && d.matches ? "dark" : "light", h = window.localStorage.getItem("theme");
|
|
24
|
-
document.documentElement.setAttribute("data-fr-scheme", h || v),
|
|
24
|
+
document.documentElement.setAttribute("data-fr-scheme", h || v), b();
|
|
25
25
|
}, []);
|
|
26
|
-
const c = oe((
|
|
27
|
-
window.localStorage.setItem("locale",
|
|
26
|
+
const c = oe((b) => {
|
|
27
|
+
window.localStorage.setItem("locale", b), document.documentElement.setAttribute("lang", b), s(b);
|
|
28
28
|
}, []), f = re(() => ({
|
|
29
29
|
setLocale: c,
|
|
30
30
|
routerComponent: e,
|
|
@@ -124,7 +124,7 @@ const as = me, st = as(
|
|
|
124
124
|
...s
|
|
125
125
|
}) => {
|
|
126
126
|
var d;
|
|
127
|
-
const u = ie(), a = (v, h) => v || ge(h) && h.props.icon && h.props.children, c = de(e, st).reduce(a, !1), f = (d = de(e, st).map((v) => ge(v) && v.props.iconPosition)) == null ? void 0 : d[0],
|
|
127
|
+
const u = ie(), a = (v, h) => v || ge(h) && h.props.icon && h.props.children, c = de(e, st).reduce(a, !1), f = (d = de(e, st).map((v) => ge(v) && v.props.iconPosition)) == null ? void 0 : d[0], b = y("fr-btns-group", {
|
|
128
128
|
[`fr-btns-group--${l}`]: l !== "md",
|
|
129
129
|
[`fr-btns-group--${t}`]: t !== "left",
|
|
130
130
|
[`fr-btns-group--icon-${f}`]: c,
|
|
@@ -133,7 +133,7 @@ const as = me, st = as(
|
|
|
133
133
|
"fr-btns-group--inline-reverse": i,
|
|
134
134
|
"fr-btns-group--equisized": r
|
|
135
135
|
}, n);
|
|
136
|
-
return /* @__PURE__ */ m("ul", { className:
|
|
136
|
+
return /* @__PURE__ */ m("ul", { className: b, ...s, children: de(e, st).map((v, h) => /* @__PURE__ */ m("li", { children: v }, `${u}-${h}`)) });
|
|
137
137
|
}, cs = me, td = cs(({
|
|
138
138
|
as: t = "div",
|
|
139
139
|
className: e,
|
|
@@ -181,7 +181,7 @@ const as = me, st = as(
|
|
|
181
181
|
className: c,
|
|
182
182
|
...f
|
|
183
183
|
}) => {
|
|
184
|
-
const
|
|
184
|
+
const b = y("fr-col", {
|
|
185
185
|
[`fr-col-${t}`]: t,
|
|
186
186
|
[`fr-col-sm-${e}`]: e,
|
|
187
187
|
[`fr-col-md-${n}`]: n,
|
|
@@ -193,7 +193,7 @@ const as = me, st = as(
|
|
|
193
193
|
[`fr-col-offset-lg-${u}`]: u,
|
|
194
194
|
[`fr-col-offset-xl-${a}`]: a
|
|
195
195
|
}, c);
|
|
196
|
-
return /* @__PURE__ */ m("div", { className:
|
|
196
|
+
return /* @__PURE__ */ m("div", { className: b, ...f });
|
|
197
197
|
}, ds = ({ href: t = "/", name: e, tagline: n, className: r, css: o = {}, ...i }) => /* @__PURE__ */ R("div", { className: y("fr-header__service", r), children: [
|
|
198
198
|
/* @__PURE__ */ m("p", { className: y("fr-header__service-title", o["fr-header__service-title"]), children: /* @__PURE__ */ m($e, { href: t, ...i, children: e }) }),
|
|
199
199
|
n && /* @__PURE__ */ m("p", { className: y("fr-header__service-tagline", o["fr-header__service-tagline"]), children: n })
|
|
@@ -223,11 +223,12 @@ const bs = me(({
|
|
|
223
223
|
isLarge: r,
|
|
224
224
|
label: o,
|
|
225
225
|
onSearch: i,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
226
|
+
placeholder: l,
|
|
227
|
+
...s
|
|
228
|
+
}, u) => {
|
|
229
|
+
const a = B(null), c = ie(), f = s.id || c, b = (d) => {
|
|
230
|
+
var v;
|
|
231
|
+
return d.key === "Enter" && i((v = a.current) == null ? void 0 : v.value);
|
|
231
232
|
};
|
|
232
233
|
return /* @__PURE__ */ R(
|
|
233
234
|
"div",
|
|
@@ -235,16 +236,17 @@ const bs = me(({
|
|
|
235
236
|
role: "search",
|
|
236
237
|
className: y("fr-search-bar", { "fr-search-bar--lg": r }, t),
|
|
237
238
|
children: [
|
|
238
|
-
o && /* @__PURE__ */ m("label", { className: y("fr-label", e["fr-label"]), htmlFor:
|
|
239
|
+
o && /* @__PURE__ */ m("label", { className: y("fr-label", e["fr-label"]), htmlFor: f, children: o }),
|
|
239
240
|
/* @__PURE__ */ m(
|
|
240
241
|
"input",
|
|
241
242
|
{
|
|
242
|
-
ref: (
|
|
243
|
+
ref: (d) => bt(d, [u, a]),
|
|
243
244
|
className: y("fr-input", e["fr-input"]),
|
|
244
245
|
type: "search",
|
|
245
|
-
id:
|
|
246
|
-
onKeyDown:
|
|
247
|
-
|
|
246
|
+
id: f,
|
|
247
|
+
onKeyDown: b,
|
|
248
|
+
placeholder: l,
|
|
249
|
+
...ze(s)
|
|
248
250
|
}
|
|
249
251
|
),
|
|
250
252
|
/* @__PURE__ */ m(
|
|
@@ -252,8 +254,8 @@ const bs = me(({
|
|
|
252
254
|
{
|
|
253
255
|
type: "button",
|
|
254
256
|
onClick: () => {
|
|
255
|
-
var
|
|
256
|
-
return i((
|
|
257
|
+
var d;
|
|
258
|
+
return i((d = a.current) == null ? void 0 : d.value);
|
|
257
259
|
},
|
|
258
260
|
className: y("fr-btn", { "fr-btn--lg": r }, e["fr-btn"]),
|
|
259
261
|
title: n,
|
|
@@ -299,12 +301,12 @@ const bs = me(({
|
|
|
299
301
|
return /* @__PURE__ */ m("div", { className: "fr-header__logo", children: /* @__PURE__ */ m("p", { className: "fr-logo", children: r }) });
|
|
300
302
|
}, od = ({ children: t, className: e, css: n = {}, ...r }) => {
|
|
301
303
|
var h, x, _, w;
|
|
302
|
-
const o = ie(), i = ie(), l = ie(), s = ie(), u = (h = de(t, ds)) == null ? void 0 : h[0], a = (x = de(t, fs)) == null ? void 0 : x[0], c = (_ = de(t, bs)) == null ? void 0 : _[0], f = (w = de(t, ms)) == null ? void 0 : w[0],
|
|
304
|
+
const o = ie(), i = ie(), l = ie(), s = ie(), u = (h = de(t, ds)) == null ? void 0 : h[0], a = (x = de(t, fs)) == null ? void 0 : x[0], c = (_ = de(t, bs)) == null ? void 0 : _[0], f = (w = de(t, ms)) == null ? void 0 : w[0], b = de(t, vs), d = de(t, ps), v = ge(c) ? c.props.title : "Rechercher";
|
|
303
305
|
return /* @__PURE__ */ R("header", { role: "banner", className: y("fr-header", e), ...r, children: [
|
|
304
306
|
/* @__PURE__ */ m("div", { className: y("fr-header__body", n["fr-header__body"]), children: /* @__PURE__ */ m("div", { className: "fr-container", children: /* @__PURE__ */ R("div", { className: y("fr-header__body-row", n["fr-header__body-row"]), children: [
|
|
305
307
|
/* @__PURE__ */ R("div", { className: y("fr-header__brand fr-enlarge-link", n["fr-header__brand"]), children: [
|
|
306
308
|
/* @__PURE__ */ R("div", { className: y("fr-header__brand-top", n["fr-header__brand-top"]), children: [
|
|
307
|
-
|
|
309
|
+
b && b,
|
|
308
310
|
d && d,
|
|
309
311
|
(a || c) && /* @__PURE__ */ R("div", { className: y("fr-header__navbar", n["fr-header__navbar"]), children: [
|
|
310
312
|
c && /* @__PURE__ */ m("button", { className: y("fr-btn--search fr-btn", n["fr-btn--search"]), "data-fr-opened": "false", "aria-controls": i, id: o, title: v, children: v }),
|
|
@@ -423,7 +425,7 @@ const Cs = me(({
|
|
|
423
425
|
defaultExpanded: i = !1,
|
|
424
426
|
...l
|
|
425
427
|
}, s) => {
|
|
426
|
-
const u = ie(), a = B(null), [c, f] = J(!!i),
|
|
428
|
+
const u = ie(), a = B(null), [c, f] = J(!!i), b = oe(
|
|
427
429
|
(d) => {
|
|
428
430
|
var h;
|
|
429
431
|
if (d.find((x) => x.attributeName === "aria-expanded") && ((h = a == null ? void 0 : a.current) != null && h.attributes)) {
|
|
@@ -433,7 +435,7 @@ const Cs = me(({
|
|
|
433
435
|
},
|
|
434
436
|
[a]
|
|
435
437
|
);
|
|
436
|
-
return xs(a == null ? void 0 : a.current,
|
|
438
|
+
return xs(a == null ? void 0 : a.current, b), /* @__PURE__ */ R("section", { className: y("fr-accordion", r), children: [
|
|
437
439
|
/* @__PURE__ */ m(
|
|
438
440
|
e,
|
|
439
441
|
{
|
|
@@ -468,7 +470,7 @@ const Cs = me(({
|
|
|
468
470
|
variant: u = "info",
|
|
469
471
|
...a
|
|
470
472
|
}, c) => {
|
|
471
|
-
const f = B(null),
|
|
473
|
+
const f = B(null), b = (d) => {
|
|
472
474
|
var v;
|
|
473
475
|
d.preventDefault(), (v = f.current) == null || v.remove(), o && o(d);
|
|
474
476
|
};
|
|
@@ -481,7 +483,7 @@ const Cs = me(({
|
|
|
481
483
|
children: [
|
|
482
484
|
i && /* @__PURE__ */ m(s, { className: y("fr-alert__title", l.title), children: i }),
|
|
483
485
|
n && /* @__PURE__ */ m("p", { className: y(l.description), children: n }),
|
|
484
|
-
e === "uncontrolled" && /* @__PURE__ */ m("button", { onClick:
|
|
486
|
+
e === "uncontrolled" && /* @__PURE__ */ m("button", { onClick: b, className: y("fr-btn--close fr-btn", l.button), children: "Masquer le message" }),
|
|
485
487
|
e === "controlled" && /* @__PURE__ */ m("button", { onClick: o, className: y("fr-link--close fr-link", l.button), children: "Masquer le message" })
|
|
486
488
|
]
|
|
487
489
|
}
|
|
@@ -631,7 +633,7 @@ const cd = ({
|
|
|
631
633
|
children: /* @__PURE__ */ m("span", { className: l && `react-dsfr-sidemenu-title--icon fr-icon-${l} fr-icon--sm`, children: s })
|
|
632
634
|
}
|
|
633
635
|
),
|
|
634
|
-
/* @__PURE__ */ m("div", { className: "fr-collapse", id: a, children: /* @__PURE__ */ m("ul", { className: y("fr-sidemenu__list", n["fr-sidemenu__list"]), children: c.map((f,
|
|
636
|
+
/* @__PURE__ */ m("div", { className: "fr-collapse", id: a, children: /* @__PURE__ */ m("ul", { className: y("fr-sidemenu__list", n["fr-sidemenu__list"]), children: c.map((f, b) => /* @__PURE__ */ m("li", { className: y("fr-sidemenu__item", n["fr-sidemenu__item"]), children: ge(f) && f.type === $e ? Te(f, { className: y("fr-sidemenu__link", f.props.className) }) : f }, `navitem-${a}-${b}`)) }) })
|
|
635
637
|
] });
|
|
636
638
|
}, dd = ({
|
|
637
639
|
children: t,
|
|
@@ -661,7 +663,7 @@ const cd = ({
|
|
|
661
663
|
onBlur: a,
|
|
662
664
|
onChange: c,
|
|
663
665
|
disabled: f,
|
|
664
|
-
required:
|
|
666
|
+
required: b,
|
|
665
667
|
...d
|
|
666
668
|
}, v) => {
|
|
667
669
|
var P;
|
|
@@ -672,7 +674,7 @@ const cd = ({
|
|
|
672
674
|
"fr-input-group--error": g ? u === "error" : _ === "error",
|
|
673
675
|
"fr-input-group--valid": g ? u === "valid" : _ === "valid",
|
|
674
676
|
"fr-input-group--disabled": f
|
|
675
|
-
}, t),
|
|
677
|
+
}, t), p = (I) => {
|
|
676
678
|
const C = K.current;
|
|
677
679
|
!n && !g && C && w(C.checkValidity() ? "valid" : "error"), a && a(I);
|
|
678
680
|
}, A = (I) => {
|
|
@@ -682,7 +684,7 @@ const cd = ({
|
|
|
682
684
|
return /* @__PURE__ */ R("div", { className: O, children: [
|
|
683
685
|
/* @__PURE__ */ R("label", { className: y("fr-label", e["fr-label"]), htmlFor: S, children: [
|
|
684
686
|
l,
|
|
685
|
-
|
|
687
|
+
b ? h : x,
|
|
686
688
|
r && /* @__PURE__ */ m("span", { className: y("fr-hint-text", e["fr-hint-text"]), children: r })
|
|
687
689
|
] }),
|
|
688
690
|
/* @__PURE__ */ m("div", { className: y("fr-input-wrap", { [`fr-icon-${o}`]: o }, e["fr-input-wrap"]), children: /* @__PURE__ */ m(
|
|
@@ -690,7 +692,7 @@ const cd = ({
|
|
|
690
692
|
{
|
|
691
693
|
id: S,
|
|
692
694
|
className: k,
|
|
693
|
-
onBlur:
|
|
695
|
+
onBlur: p,
|
|
694
696
|
onChange: A,
|
|
695
697
|
ref: (I) => bt(I, [v, K]),
|
|
696
698
|
"aria-describedby": E ? `${S}-message` : void 0,
|
|
@@ -712,7 +714,7 @@ const cd = ({
|
|
|
712
714
|
onBlur: a,
|
|
713
715
|
onChange: c,
|
|
714
716
|
disabled: f,
|
|
715
|
-
required:
|
|
717
|
+
required: b,
|
|
716
718
|
...d
|
|
717
719
|
}, v) => {
|
|
718
720
|
var P;
|
|
@@ -723,7 +725,7 @@ const cd = ({
|
|
|
723
725
|
"fr-input-group--error": g ? u === "error" : _ === "error",
|
|
724
726
|
"fr-input-group--valid": g ? u === "valid" : _ === "valid",
|
|
725
727
|
"fr-input-group--disabled": f
|
|
726
|
-
}, t),
|
|
728
|
+
}, t), p = (I) => {
|
|
727
729
|
const C = K.current;
|
|
728
730
|
!n && !g && C && w(C.checkValidity() ? "valid" : "error"), a && a(I);
|
|
729
731
|
}, A = (I) => {
|
|
@@ -733,7 +735,7 @@ const cd = ({
|
|
|
733
735
|
return /* @__PURE__ */ R("div", { className: O, children: [
|
|
734
736
|
/* @__PURE__ */ R("label", { className: y("fr-label", e["fr-label"]), htmlFor: S, children: [
|
|
735
737
|
l,
|
|
736
|
-
|
|
738
|
+
b ? h : x,
|
|
737
739
|
r && /* @__PURE__ */ m("span", { className: y("fr-hint-text", e["fr-hint-text"]), children: r })
|
|
738
740
|
] }),
|
|
739
741
|
/* @__PURE__ */ m("div", { className: y("fr-input-wrap", { [`fr-icon-${o}`]: o }, e["fr-input-wrap"]), children: /* @__PURE__ */ m(
|
|
@@ -741,7 +743,7 @@ const cd = ({
|
|
|
741
743
|
{
|
|
742
744
|
id: S,
|
|
743
745
|
className: k,
|
|
744
|
-
onBlur:
|
|
746
|
+
onBlur: p,
|
|
745
747
|
onChange: A,
|
|
746
748
|
ref: (I) => bt(I, [v, K]),
|
|
747
749
|
"aria-describedby": E ? `${S}-message` : void 0,
|
|
@@ -768,7 +770,7 @@ function ws() {
|
|
|
768
770
|
if (sr)
|
|
769
771
|
return te;
|
|
770
772
|
sr = 1;
|
|
771
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113,
|
|
773
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, b = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, h = t ? Symbol.for("react.block") : 60121, x = t ? Symbol.for("react.fundamental") : 60117, _ = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
|
|
772
774
|
function S(g) {
|
|
773
775
|
if (typeof g == "object" && g !== null) {
|
|
774
776
|
var k = g.$$typeof;
|
|
@@ -827,7 +829,7 @@ function ws() {
|
|
|
827
829
|
}, te.isSuspense = function(g) {
|
|
828
830
|
return S(g) === f;
|
|
829
831
|
}, te.isValidElementType = function(g) {
|
|
830
|
-
return typeof g == "string" || typeof g == "function" || g === r || g === a || g === i || g === o || g === f || g ===
|
|
832
|
+
return typeof g == "string" || typeof g == "function" || g === r || g === a || g === i || g === o || g === f || g === b || typeof g == "object" && g !== null && (g.$$typeof === v || g.$$typeof === d || g.$$typeof === l || g.$$typeof === s || g.$$typeof === c || g.$$typeof === x || g.$$typeof === _ || g.$$typeof === w || g.$$typeof === h);
|
|
831
833
|
}, te.typeOf = S, te;
|
|
832
834
|
}
|
|
833
835
|
var ne = {};
|
|
@@ -842,10 +844,10 @@ var ne = {};
|
|
|
842
844
|
var ur;
|
|
843
845
|
function Ss() {
|
|
844
846
|
return ur || (ur = 1, process.env.NODE_ENV !== "production" && function() {
|
|
845
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113,
|
|
847
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, b = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, h = t ? Symbol.for("react.block") : 60121, x = t ? Symbol.for("react.fundamental") : 60117, _ = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
|
|
846
848
|
function S(M) {
|
|
847
849
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
848
|
-
M === r || M === a || M === i || M === o || M === f || M ===
|
|
850
|
+
M === r || M === a || M === i || M === o || M === f || M === b || typeof M == "object" && M !== null && (M.$$typeof === v || M.$$typeof === d || M.$$typeof === l || M.$$typeof === s || M.$$typeof === c || M.$$typeof === x || M.$$typeof === _ || M.$$typeof === w || M.$$typeof === h);
|
|
849
851
|
}
|
|
850
852
|
function K(M) {
|
|
851
853
|
if (typeof M == "object" && M !== null) {
|
|
@@ -879,7 +881,7 @@ function Ss() {
|
|
|
879
881
|
}
|
|
880
882
|
}
|
|
881
883
|
}
|
|
882
|
-
var g = u, k = a, O = s,
|
|
884
|
+
var g = u, k = a, O = s, p = l, A = e, E = c, P = r, I = v, C = d, T = n, q = i, V = o, F = f, ue = !1;
|
|
883
885
|
function ae(M) {
|
|
884
886
|
return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), $(M) || K(M) === u;
|
|
885
887
|
}
|
|
@@ -919,7 +921,7 @@ function Ss() {
|
|
|
919
921
|
function Z(M) {
|
|
920
922
|
return K(M) === f;
|
|
921
923
|
}
|
|
922
|
-
ne.AsyncMode = g, ne.ConcurrentMode = k, ne.ContextConsumer = O, ne.ContextProvider =
|
|
924
|
+
ne.AsyncMode = g, ne.ConcurrentMode = k, ne.ContextConsumer = O, ne.ContextProvider = p, ne.Element = A, ne.ForwardRef = E, ne.Fragment = P, ne.Lazy = I, ne.Memo = C, ne.Portal = T, ne.Profiler = q, ne.StrictMode = V, ne.Suspense = F, ne.isAsyncMode = ae, ne.isConcurrentMode = $, ne.isContextConsumer = D, ne.isContextProvider = z, ne.isElement = j, ne.isForwardRef = H, ne.isFragment = Y, ne.isLazy = U, ne.isMemo = L, ne.isPortal = N, ne.isProfiler = X, ne.isStrictMode = W, ne.isSuspense = Z, ne.isValidElementType = S, ne.typeOf = K;
|
|
923
925
|
}()), ne;
|
|
924
926
|
}
|
|
925
927
|
var ar;
|
|
@@ -971,8 +973,8 @@ function Ts() {
|
|
|
971
973
|
e.call(s, f) && (u[f] = s[f]);
|
|
972
974
|
if (t) {
|
|
973
975
|
a = t(s);
|
|
974
|
-
for (var
|
|
975
|
-
n.call(s, a[
|
|
976
|
+
for (var b = 0; b < a.length; b++)
|
|
977
|
+
n.call(s, a[b]) && (u[a[b]] = s[a[b]]);
|
|
976
978
|
}
|
|
977
979
|
}
|
|
978
980
|
return u;
|
|
@@ -1015,10 +1017,10 @@ function _s() {
|
|
|
1015
1017
|
var f;
|
|
1016
1018
|
try {
|
|
1017
1019
|
if (typeof i[c] != "function") {
|
|
1018
|
-
var
|
|
1020
|
+
var b = Error(
|
|
1019
1021
|
(u || "React class") + ": " + s + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1020
1022
|
);
|
|
1021
|
-
throw
|
|
1023
|
+
throw b.name = "Invariant Violation", b;
|
|
1022
1024
|
}
|
|
1023
1025
|
f = i[c](l, c, u, s, null, e);
|
|
1024
1026
|
} catch (v) {
|
|
@@ -1065,7 +1067,7 @@ function As() {
|
|
|
1065
1067
|
if (typeof D == "function")
|
|
1066
1068
|
return D;
|
|
1067
1069
|
}
|
|
1068
|
-
var
|
|
1070
|
+
var b = "<<anonymous>>", d = {
|
|
1069
1071
|
array: _("array"),
|
|
1070
1072
|
bigint: _("bigint"),
|
|
1071
1073
|
bool: _("boolean"),
|
|
@@ -1080,7 +1082,7 @@ function As() {
|
|
|
1080
1082
|
elementType: g(),
|
|
1081
1083
|
instanceOf: k,
|
|
1082
1084
|
node: E(),
|
|
1083
|
-
objectOf:
|
|
1085
|
+
objectOf: p,
|
|
1084
1086
|
oneOf: O,
|
|
1085
1087
|
oneOfType: A,
|
|
1086
1088
|
shape: I,
|
|
@@ -1097,7 +1099,7 @@ function As() {
|
|
|
1097
1099
|
if (process.env.NODE_ENV !== "production")
|
|
1098
1100
|
var D = {}, z = 0;
|
|
1099
1101
|
function j(Y, U, L, N, X, W, Z) {
|
|
1100
|
-
if (N = N ||
|
|
1102
|
+
if (N = N || b, W = W || L, Z !== n) {
|
|
1101
1103
|
if (u) {
|
|
1102
1104
|
var M = new Error(
|
|
1103
1105
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -1176,7 +1178,7 @@ function As() {
|
|
|
1176
1178
|
function k($) {
|
|
1177
1179
|
function D(z, j, H, Y, U) {
|
|
1178
1180
|
if (!(z[j] instanceof $)) {
|
|
1179
|
-
var L = $.name ||
|
|
1181
|
+
var L = $.name || b, N = ae(z[j]);
|
|
1180
1182
|
return new h("Invalid " + Y + " `" + U + "` of type " + ("`" + N + "` supplied to `" + H + "`, expected ") + ("instance of `" + L + "`."));
|
|
1181
1183
|
}
|
|
1182
1184
|
return null;
|
|
@@ -1200,7 +1202,7 @@ function As() {
|
|
|
1200
1202
|
}
|
|
1201
1203
|
return x(D);
|
|
1202
1204
|
}
|
|
1203
|
-
function
|
|
1205
|
+
function p($) {
|
|
1204
1206
|
function D(z, j, H, Y, U) {
|
|
1205
1207
|
if (typeof $ != "function")
|
|
1206
1208
|
return new h("Property `" + U + "` of component `" + H + "` has invalid PropType notation inside objectOf.");
|
|
@@ -1357,7 +1359,7 @@ Valid keys: ` + JSON.stringify(Object.keys($), null, " ")
|
|
|
1357
1359
|
}
|
|
1358
1360
|
}
|
|
1359
1361
|
function ae($) {
|
|
1360
|
-
return !$.constructor || !$.constructor.name ?
|
|
1362
|
+
return !$.constructor || !$.constructor.name ? b : $.constructor.name;
|
|
1361
1363
|
}
|
|
1362
1364
|
return d.checkPropTypes = o, d.resetWarningCache = o.resetWarningCache, d.PropTypes = d, d;
|
|
1363
1365
|
}, nn;
|
|
@@ -1375,10 +1377,10 @@ function Ks() {
|
|
|
1375
1377
|
return n.resetWarningCache = e, rn = function() {
|
|
1376
1378
|
function r(l, s, u, a, c, f) {
|
|
1377
1379
|
if (f !== t) {
|
|
1378
|
-
var
|
|
1380
|
+
var b = new Error(
|
|
1379
1381
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1380
1382
|
);
|
|
1381
|
-
throw
|
|
1383
|
+
throw b.name = "Invariant Violation", b;
|
|
1382
1384
|
}
|
|
1383
1385
|
}
|
|
1384
1386
|
r.isRequired = r;
|
|
@@ -1462,7 +1464,7 @@ const bd = me(({
|
|
|
1462
1464
|
required: u,
|
|
1463
1465
|
...a
|
|
1464
1466
|
}, c) => {
|
|
1465
|
-
const f = ie(), { extendRequiredFieldsLabelsWith:
|
|
1467
|
+
const f = ie(), { extendRequiredFieldsLabelsWith: b, extendOptionalFieldsLabelsWith: d } = ft();
|
|
1466
1468
|
return /* @__PURE__ */ R(
|
|
1467
1469
|
"fieldset",
|
|
1468
1470
|
{
|
|
@@ -1473,7 +1475,7 @@ const bd = me(({
|
|
|
1473
1475
|
children: [
|
|
1474
1476
|
i && /* @__PURE__ */ R("legend", { className: y("fr-fieldset__legend fr-text--regular", n.legend), children: [
|
|
1475
1477
|
i,
|
|
1476
|
-
u ?
|
|
1478
|
+
u ? b : d,
|
|
1477
1479
|
r && /* @__PURE__ */ m("span", { className: y("fr-hint-text", n.legendHint), children: r })
|
|
1478
1480
|
] }),
|
|
1479
1481
|
Ot.toArray(t).map((v, h) => /* @__PURE__ */ m("div", { className: y("fr-fieldset__element", { "fr-fieldset__element--inline": o }, n.element), children: v }, `${f}-${h}`)),
|
|
@@ -1696,8 +1698,8 @@ const Rs = ({
|
|
|
1696
1698
|
canClose: l,
|
|
1697
1699
|
...s
|
|
1698
1700
|
}) => {
|
|
1699
|
-
var k, O,
|
|
1700
|
-
const [u, a] = J(null), f = { sm: 4, lg: 8, md: 6, xl: 10 }[n],
|
|
1701
|
+
var k, O, p;
|
|
1702
|
+
const [u, a] = J(null), f = { sm: 4, lg: 8, md: 6, xl: 10 }[n], b = y("fr-modal", o), d = B(null), v = (k = de(t, lo)) == null ? void 0 : k[0], h = de(t, so), x = (O = de(t, uo)) == null ? void 0 : O[0], _ = (p = de(t, Tt)) == null ? void 0 : p[0], w = r || ie();
|
|
1701
1703
|
G(() => {
|
|
1702
1704
|
var E, P;
|
|
1703
1705
|
d.current && (i && (a(document.activeElement), (E = document == null ? void 0 : document.getElementById(w)) == null || E.classList.add("fr-modal--opened")), i || (P = document == null ? void 0 : document.getElementById(w)) == null || P.classList.remove("fr-modal--opened"));
|
|
@@ -1717,7 +1719,7 @@ const Rs = ({
|
|
|
1717
1719
|
{
|
|
1718
1720
|
"aria-labelledby": `${w}-title`,
|
|
1719
1721
|
"aria-modal": "true",
|
|
1720
|
-
className:
|
|
1722
|
+
className: b,
|
|
1721
1723
|
ref: d,
|
|
1722
1724
|
id: w,
|
|
1723
1725
|
role: "dialog",
|
|
@@ -1745,7 +1747,7 @@ const Rs = ({
|
|
|
1745
1747
|
...o
|
|
1746
1748
|
}) => {
|
|
1747
1749
|
var v, h, x;
|
|
1748
|
-
const l = { sm: 4, lg: 8, md: 6, xl: 10 }[e], s = y("fr-modal", r), u = (v = de(t, lo)) == null ? void 0 : v[0], a = de(t, so), c = (h = de(t, uo)) == null ? void 0 : h[0], f = (x = de(t, Tt)) == null ? void 0 : x[0],
|
|
1750
|
+
const l = { sm: 4, lg: 8, md: 6, xl: 10 }[e], s = y("fr-modal", r), u = (v = de(t, lo)) == null ? void 0 : v[0], a = de(t, so), c = (h = de(t, uo)) == null ? void 0 : h[0], f = (x = de(t, Tt)) == null ? void 0 : x[0], b = f ? Te(f, { controls: n }) : /* @__PURE__ */ m(Tt, { controls: n }), d = /* @__PURE__ */ m(
|
|
1749
1751
|
"dialog",
|
|
1750
1752
|
{
|
|
1751
1753
|
"aria-labelledby": `${n}-title`,
|
|
@@ -1754,7 +1756,7 @@ const Rs = ({
|
|
|
1754
1756
|
role: "dialog",
|
|
1755
1757
|
...o,
|
|
1756
1758
|
children: /* @__PURE__ */ m("div", { className: "fr-container fr-container--fluid fr-container-md", children: /* @__PURE__ */ m("div", { className: "fr-grid-row fr-grid-row--center closing-overlay", children: /* @__PURE__ */ m("div", { className: `fr-col-12 fr-col-md-${l}`, children: /* @__PURE__ */ R("div", { className: "fr-modal__body", children: [
|
|
1757
|
-
/* @__PURE__ */ m("div", { className: "fr-modal__header", children:
|
|
1759
|
+
/* @__PURE__ */ m("div", { className: "fr-modal__header", children: b }),
|
|
1758
1760
|
/* @__PURE__ */ R("div", { className: "fr-modal__content", children: [
|
|
1759
1761
|
u && Te(u, { id: n }),
|
|
1760
1762
|
a ?? null
|
|
@@ -1868,8 +1870,8 @@ function et(t, e, n) {
|
|
|
1868
1870
|
l
|
|
1869
1871
|
]);
|
|
1870
1872
|
let s = l ? t : r, u = oe((a, ...c) => {
|
|
1871
|
-
let f = (
|
|
1872
|
-
n && (Object.is(s,
|
|
1873
|
+
let f = (b, ...d) => {
|
|
1874
|
+
n && (Object.is(s, b) || n(b, ...d)), l || (s = b);
|
|
1873
1875
|
};
|
|
1874
1876
|
typeof a == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), o((d, ...v) => {
|
|
1875
1877
|
let h = a(l ? s : d, ...v);
|
|
@@ -1937,8 +1939,8 @@ function Ws(t) {
|
|
|
1937
1939
|
let c = Ae(Us), f = re(() => r ? Array.isArray(r) ? r.flatMap((E) => Pn(c[E])) : Pn(c[r]) : [], [
|
|
1938
1940
|
c,
|
|
1939
1941
|
r
|
|
1940
|
-
]), [
|
|
1941
|
-
c !==
|
|
1942
|
+
]), [b, d] = J(c), [v, h] = J(!1);
|
|
1943
|
+
c !== b && (d(c), h(!1));
|
|
1942
1944
|
let x = re(() => hr(v ? [] : f), [
|
|
1943
1945
|
v,
|
|
1944
1946
|
f
|
|
@@ -2120,25 +2122,25 @@ class Ys {
|
|
|
2120
2122
|
if (Q.isValidElement(i)) {
|
|
2121
2123
|
let u = i.type;
|
|
2122
2124
|
if (typeof u != "function" && typeof u.getCollectionNode != "function") {
|
|
2123
|
-
let
|
|
2124
|
-
throw new Error(`Unknown element <${
|
|
2125
|
+
let b = typeof i.type == "function" ? i.type.name : i.type;
|
|
2126
|
+
throw new Error(`Unknown element <${b}> in collection.`);
|
|
2125
2127
|
}
|
|
2126
2128
|
let a = u.getCollectionNode(i.props, this.context), c = e.index, f = a.next();
|
|
2127
2129
|
for (; !f.done && f.value; ) {
|
|
2128
|
-
let
|
|
2130
|
+
let b = f.value;
|
|
2129
2131
|
e.index = c;
|
|
2130
|
-
let d =
|
|
2131
|
-
d || (d =
|
|
2132
|
+
let d = b.key;
|
|
2133
|
+
d || (d = b.element ? null : this.getKey(i, e, n, r));
|
|
2132
2134
|
let h = [
|
|
2133
2135
|
...this.getFullNode({
|
|
2134
|
-
...
|
|
2136
|
+
...b,
|
|
2135
2137
|
key: d,
|
|
2136
2138
|
index: c,
|
|
2137
|
-
wrapper: Xs(e.wrapper,
|
|
2138
|
-
}, this.getChildState(n,
|
|
2139
|
+
wrapper: Xs(e.wrapper, b.wrapper)
|
|
2140
|
+
}, this.getChildState(n, b), r ? `${r}${i.key}` : i.key, o)
|
|
2139
2141
|
];
|
|
2140
2142
|
for (let x of h) {
|
|
2141
|
-
if (x.value =
|
|
2143
|
+
if (x.value = b.value || e.value, x.value && this.cache.set(x.value, x), e.type && x.type !== e.type)
|
|
2142
2144
|
throw new Error(`Unsupported type <${sn(x.type)}> in <${sn(o.type)}>. Only <${sn(e.type)}> is supported.`);
|
|
2143
2145
|
c++, yield x;
|
|
2144
2146
|
}
|
|
@@ -2284,9 +2286,9 @@ function Qs(t, e) {
|
|
|
2284
2286
|
function vo(t) {
|
|
2285
2287
|
let { selectionMode: e = "none", disallowEmptySelection: n, allowDuplicateSelectionEvents: r, selectionBehavior: o = "toggle", disabledBehavior: i = "all" } = t, l = B(!1), [, s] = J(!1), u = B(null), a = B(null), [, c] = J(null), f = re(() => xr(t.selectedKeys), [
|
|
2286
2288
|
t.selectedKeys
|
|
2287
|
-
]),
|
|
2289
|
+
]), b = re(() => xr(t.defaultSelectedKeys, new we()), [
|
|
2288
2290
|
t.defaultSelectedKeys
|
|
2289
|
-
]), [d, v] = et(f,
|
|
2291
|
+
]), [d, v] = et(f, b, t.onSelectionChange), h = re(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
2290
2292
|
t.disabledKeys
|
|
2291
2293
|
]), [x, _] = J(o);
|
|
2292
2294
|
o === "replace" && x === "toggle" && typeof d == "object" && d.size === 0 && _("replace");
|
|
@@ -2672,8 +2674,8 @@ function go(t) {
|
|
|
2672
2674
|
].map((h) => {
|
|
2673
2675
|
const x = l.getItem(h);
|
|
2674
2676
|
return x.type === "item" ? x : null;
|
|
2675
|
-
}).filter((h) => h !== null),
|
|
2676
|
-
let d = Math.min(
|
|
2677
|
+
}).filter((h) => h !== null), b = c.length - f.length;
|
|
2678
|
+
let d = Math.min(b > 1 ? Math.max(a.index - b + 1, 0) : a.index, f.length - 1), v;
|
|
2677
2679
|
for (; d >= 0; ) {
|
|
2678
2680
|
if (!s.isDisabled(f[d].key)) {
|
|
2679
2681
|
v = f[d];
|
|
@@ -2748,7 +2750,7 @@ function Hn(t) {
|
|
|
2748
2750
|
}
|
|
2749
2751
|
function eu(t) {
|
|
2750
2752
|
var e, n;
|
|
2751
|
-
let { defaultFilter: r, menuTrigger: o = "input", allowsEmptyCollection: i = !1, allowsCustomValue: l, shouldCloseOnBlur: s = !0 } = t, [u, a] = J(!1), [c, f] = J(!1), [
|
|
2753
|
+
let { defaultFilter: r, menuTrigger: o = "input", allowsEmptyCollection: i = !1, allowsCustomValue: l, shouldCloseOnBlur: s = !0 } = t, [u, a] = J(!1), [c, f] = J(!1), [b, d] = J(null), v = (ee) => {
|
|
2752
2754
|
t.onSelectionChange && t.onSelectionChange(ee), ee === w && (H(), D());
|
|
2753
2755
|
};
|
|
2754
2756
|
var h;
|
|
@@ -2758,12 +2760,12 @@ function eu(t) {
|
|
|
2758
2760
|
items: (h = t.items) !== null && h !== void 0 ? h : t.defaultItems
|
|
2759
2761
|
});
|
|
2760
2762
|
var k, O;
|
|
2761
|
-
let [
|
|
2763
|
+
let [p, A] = et(t.inputValue, (O = (k = t.defaultInputValue) !== null && k !== void 0 ? k : (e = x.getItem(w)) === null || e === void 0 ? void 0 : e.textValue) !== null && O !== void 0 ? O : "", t.onInputChange), E = x, P = re(() => (
|
|
2762
2764
|
// No default filter if items are controlled.
|
|
2763
|
-
t.items != null || !r ? x : tu(x,
|
|
2765
|
+
t.items != null || !r ? x : tu(x, p, r)
|
|
2764
2766
|
), [
|
|
2765
2767
|
x,
|
|
2766
|
-
|
|
2768
|
+
p,
|
|
2767
2769
|
r,
|
|
2768
2770
|
t.items
|
|
2769
2771
|
]), [I, C] = J(P), T = B("focus"), V = Hn({
|
|
@@ -2795,7 +2797,7 @@ function eu(t) {
|
|
|
2795
2797
|
}, [
|
|
2796
2798
|
V,
|
|
2797
2799
|
ae
|
|
2798
|
-
]), [z, j] = J(
|
|
2800
|
+
]), [z, j] = J(p), H = () => {
|
|
2799
2801
|
var ee, ce;
|
|
2800
2802
|
let ve = (ce = (ee = x.getItem(w)) === null || ee === void 0 ? void 0 : ee.textValue) !== null && ce !== void 0 ? ce : "";
|
|
2801
2803
|
j(ve), A(ve);
|
|
@@ -2806,7 +2808,7 @@ function eu(t) {
|
|
|
2806
2808
|
let X = B((N = (n = x.getItem(w)) === null || n === void 0 ? void 0 : n.textValue) !== null && N !== void 0 ? N : "");
|
|
2807
2809
|
G(() => {
|
|
2808
2810
|
var ee;
|
|
2809
|
-
c && (P.size > 0 || i) && !V.isOpen &&
|
|
2811
|
+
c && (P.size > 0 || i) && !V.isOpen && p !== z && o !== "manual" && F(null, "input"), !u && !i && V.isOpen && P.size === 0 && D(), w != null && w !== L.current && D(), p !== z && (_.setFocusedKey(null), a(!1), p === "" && (t.inputValue === void 0 || t.selectedKey === void 0) && S(null)), w !== L.current && (t.inputValue === void 0 || t.selectedKey === void 0) ? H() : z !== p && j(p);
|
|
2810
2812
|
var ce;
|
|
2811
2813
|
let ve = (ce = (ee = x.getItem(w)) === null || ee === void 0 ? void 0 : ee.textValue) !== null && ce !== void 0 ? ce : "";
|
|
2812
2814
|
!c && w != null && t.inputValue === void 0 && w === L.current && X.current !== ve && (j(ve), A(ve)), L.current = w, X.current = ve;
|
|
@@ -2814,10 +2816,10 @@ function eu(t) {
|
|
|
2814
2816
|
let W = zn({
|
|
2815
2817
|
...t,
|
|
2816
2818
|
value: re(() => ({
|
|
2817
|
-
inputValue:
|
|
2819
|
+
inputValue: p,
|
|
2818
2820
|
selectedKey: w
|
|
2819
2821
|
}), [
|
|
2820
|
-
|
|
2822
|
+
p,
|
|
2821
2823
|
w
|
|
2822
2824
|
])
|
|
2823
2825
|
}), Z = () => {
|
|
@@ -2838,14 +2840,14 @@ function eu(t) {
|
|
|
2838
2840
|
if (l) {
|
|
2839
2841
|
var ee, ce;
|
|
2840
2842
|
const ve = (ce = (ee = x.getItem(w)) === null || ee === void 0 ? void 0 : ee.textValue) !== null && ce !== void 0 ? ce : "";
|
|
2841
|
-
|
|
2843
|
+
p === ve ? ye() : M();
|
|
2842
2844
|
} else
|
|
2843
2845
|
ye();
|
|
2844
2846
|
};
|
|
2845
2847
|
let mt = () => {
|
|
2846
2848
|
V.isOpen && _.focusedKey != null ? w === _.focusedKey ? ye() : S(_.focusedKey) : Ne();
|
|
2847
|
-
}, or = B(
|
|
2848
|
-
ee ? (or.current =
|
|
2849
|
+
}, or = B(p), ns = (ee) => {
|
|
2850
|
+
ee ? (or.current = p, o === "focus" && F(null, "focus")) : (s && Ne(), p !== or.current && W.commitValidation()), f(ee);
|
|
2849
2851
|
}, rs = re(() => V.isOpen ? u ? E : P : I, [
|
|
2850
2852
|
V.isOpen,
|
|
2851
2853
|
E,
|
|
@@ -2856,7 +2858,7 @@ function eu(t) {
|
|
|
2856
2858
|
return {
|
|
2857
2859
|
...W,
|
|
2858
2860
|
...V,
|
|
2859
|
-
focusStrategy:
|
|
2861
|
+
focusStrategy: b,
|
|
2860
2862
|
toggle: ue,
|
|
2861
2863
|
open: F,
|
|
2862
2864
|
close: Ne,
|
|
@@ -2868,7 +2870,7 @@ function eu(t) {
|
|
|
2868
2870
|
setFocused: ns,
|
|
2869
2871
|
selectedItem: K,
|
|
2870
2872
|
collection: rs,
|
|
2871
|
-
inputValue:
|
|
2873
|
+
inputValue: p,
|
|
2872
2874
|
setInputValue: A,
|
|
2873
2875
|
commit: mt,
|
|
2874
2876
|
revert: Z
|
|
@@ -3290,7 +3292,7 @@ function Pd(t) {
|
|
|
3290
3292
|
sortDescriptor: o,
|
|
3291
3293
|
filterText: l
|
|
3292
3294
|
});
|
|
3293
|
-
const a = async (f,
|
|
3295
|
+
const a = async (f, b) => {
|
|
3294
3296
|
let d = new AbortController();
|
|
3295
3297
|
try {
|
|
3296
3298
|
u({
|
|
@@ -3300,7 +3302,7 @@ function Pd(t) {
|
|
|
3300
3302
|
var v;
|
|
3301
3303
|
let _ = (v = f.filterText) !== null && v !== void 0 ? v : s.filterText;
|
|
3302
3304
|
var h;
|
|
3303
|
-
let w = await
|
|
3305
|
+
let w = await b({
|
|
3304
3306
|
items: s.items.slice(),
|
|
3305
3307
|
selectedKeys: s.selectedKeys,
|
|
3306
3308
|
sortDescriptor: (h = f.sortDescriptor) !== null && h !== void 0 ? h : s.sortDescriptor,
|
|
@@ -3340,7 +3342,7 @@ function Pd(t) {
|
|
|
3340
3342
|
error: s.error,
|
|
3341
3343
|
filterText: s.filterText,
|
|
3342
3344
|
getItem(f) {
|
|
3343
|
-
return s.items.find((
|
|
3345
|
+
return s.items.find((b) => i(b) === f);
|
|
3344
3346
|
},
|
|
3345
3347
|
reload() {
|
|
3346
3348
|
a({
|
|
@@ -3961,8 +3963,8 @@ function Hu(t, e, n, r) {
|
|
|
3961
3963
|
]);
|
|
3962
3964
|
}
|
|
3963
3965
|
function Ao(t, e) {
|
|
3964
|
-
let n = Sr(t, e, "left"), r = Sr(t, e, "top"), o = e.offsetWidth, i = e.offsetHeight, l = t.scrollLeft, s = t.scrollTop, { borderTopWidth: u, borderLeftWidth: a } = getComputedStyle(t), c = t.scrollLeft + parseInt(a, 10), f = t.scrollTop + parseInt(u, 10),
|
|
3965
|
-
n <= l ? l = n - parseInt(a, 10) : n + o >
|
|
3966
|
+
let n = Sr(t, e, "left"), r = Sr(t, e, "top"), o = e.offsetWidth, i = e.offsetHeight, l = t.scrollLeft, s = t.scrollTop, { borderTopWidth: u, borderLeftWidth: a } = getComputedStyle(t), c = t.scrollLeft + parseInt(a, 10), f = t.scrollTop + parseInt(u, 10), b = c + t.clientWidth, d = f + t.clientHeight;
|
|
3967
|
+
n <= l ? l = n - parseInt(a, 10) : n + o > b && (l += n + o - b), r <= f ? s = r - parseInt(u, 10) : r + i > d && (s += r + i - d), t.scrollLeft = l, t.scrollTop = s;
|
|
3966
3968
|
}
|
|
3967
3969
|
function Sr(t, e, n) {
|
|
3968
3970
|
const r = n === "left" ? "offsetLeft" : "offsetTop";
|
|
@@ -4119,7 +4121,7 @@ function Gt(t) {
|
|
|
4119
4121
|
allowTextSelectionOnPress: c,
|
|
4120
4122
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4121
4123
|
ref: f,
|
|
4122
|
-
...
|
|
4124
|
+
...b
|
|
4123
4125
|
} = Yu(t), [d, v] = J(!1), h = B({
|
|
4124
4126
|
isPressed: !1,
|
|
4125
4127
|
ignoreEmulatedMouseEvents: !1,
|
|
@@ -4130,84 +4132,84 @@ function Gt(t) {
|
|
|
4130
4132
|
target: null,
|
|
4131
4133
|
isOverTarget: !1,
|
|
4132
4134
|
pointerType: null
|
|
4133
|
-
}), { addGlobalListener: x, removeAllGlobalListeners: _ } = To(), w = xe((
|
|
4135
|
+
}), { addGlobalListener: x, removeAllGlobalListeners: _ } = To(), w = xe((p, A) => {
|
|
4134
4136
|
let E = h.current;
|
|
4135
4137
|
if (l || E.didFirePressStart)
|
|
4136
4138
|
return !1;
|
|
4137
4139
|
let P = !0;
|
|
4138
4140
|
if (E.isTriggeringEvent = !0, r) {
|
|
4139
|
-
let I = new xt("pressstart", A,
|
|
4141
|
+
let I = new xt("pressstart", A, p);
|
|
4140
4142
|
r(I), P = I.shouldStopPropagation;
|
|
4141
4143
|
}
|
|
4142
4144
|
return n && n(!0), E.isTriggeringEvent = !1, E.didFirePressStart = !0, v(!0), P;
|
|
4143
|
-
}), S = xe((
|
|
4145
|
+
}), S = xe((p, A, E = !0) => {
|
|
4144
4146
|
let P = h.current;
|
|
4145
4147
|
if (!P.didFirePressStart)
|
|
4146
4148
|
return !1;
|
|
4147
4149
|
P.ignoreClickAfterPress = !0, P.didFirePressStart = !1, P.isTriggeringEvent = !0;
|
|
4148
4150
|
let I = !0;
|
|
4149
4151
|
if (o) {
|
|
4150
|
-
let C = new xt("pressend", A,
|
|
4152
|
+
let C = new xt("pressend", A, p);
|
|
4151
4153
|
o(C), I = C.shouldStopPropagation;
|
|
4152
4154
|
}
|
|
4153
4155
|
if (n && n(!1), v(!1), e && E && !l) {
|
|
4154
|
-
let C = new xt("press", A,
|
|
4156
|
+
let C = new xt("press", A, p);
|
|
4155
4157
|
e(C), I && (I = C.shouldStopPropagation);
|
|
4156
4158
|
}
|
|
4157
4159
|
return P.isTriggeringEvent = !1, I;
|
|
4158
|
-
}), K = xe((
|
|
4160
|
+
}), K = xe((p, A) => {
|
|
4159
4161
|
let E = h.current;
|
|
4160
4162
|
if (l)
|
|
4161
4163
|
return !1;
|
|
4162
4164
|
if (i) {
|
|
4163
4165
|
E.isTriggeringEvent = !0;
|
|
4164
|
-
let P = new xt("pressup", A,
|
|
4166
|
+
let P = new xt("pressup", A, p);
|
|
4165
4167
|
return i(P), E.isTriggeringEvent = !1, P.shouldStopPropagation;
|
|
4166
4168
|
}
|
|
4167
4169
|
return !0;
|
|
4168
|
-
}), g = xe((
|
|
4170
|
+
}), g = xe((p) => {
|
|
4169
4171
|
let A = h.current;
|
|
4170
|
-
A.isPressed && A.target && (A.isOverTarget && A.pointerType != null && S(Ke(A.target,
|
|
4171
|
-
}), k = xe((
|
|
4172
|
-
a && g(
|
|
4172
|
+
A.isPressed && A.target && (A.isOverTarget && A.pointerType != null && S(Ke(A.target, p), A.pointerType, !1), A.isPressed = !1, A.isOverTarget = !1, A.activePointerId = null, A.pointerType = null, _(), c || $t(A.target));
|
|
4173
|
+
}), k = xe((p) => {
|
|
4174
|
+
a && g(p);
|
|
4173
4175
|
}), O = re(() => {
|
|
4174
|
-
let
|
|
4176
|
+
let p = h.current, A = {
|
|
4175
4177
|
onKeyDown(P) {
|
|
4176
4178
|
if (dn(P.nativeEvent, P.currentTarget) && P.currentTarget.contains(P.target)) {
|
|
4177
4179
|
var I;
|
|
4178
4180
|
Fr(P.target, P.key) && P.preventDefault();
|
|
4179
4181
|
let C = !0;
|
|
4180
|
-
!
|
|
4182
|
+
!p.isPressed && !P.repeat && (p.target = P.currentTarget, p.isPressed = !0, C = w(P, "keyboard"), x(pe(P.currentTarget), "keyup", E, !1)), C && P.stopPropagation(), P.metaKey && Ie() && ((I = p.metaKeyEvents) === null || I === void 0 || I.set(P.key, P.nativeEvent));
|
|
4181
4183
|
} else
|
|
4182
|
-
P.key === "Meta" && (
|
|
4184
|
+
P.key === "Meta" && (p.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
4183
4185
|
},
|
|
4184
4186
|
onKeyUp(P) {
|
|
4185
|
-
dn(P.nativeEvent, P.currentTarget) && !P.repeat && P.currentTarget.contains(P.target) &&
|
|
4187
|
+
dn(P.nativeEvent, P.currentTarget) && !P.repeat && P.currentTarget.contains(P.target) && p.target && K(Ke(p.target, P), "keyboard");
|
|
4186
4188
|
},
|
|
4187
4189
|
onClick(P) {
|
|
4188
|
-
if (!(P && !P.currentTarget.contains(P.target)) && P && P.button === 0 && !
|
|
4190
|
+
if (!(P && !P.currentTarget.contains(P.target)) && P && P.button === 0 && !p.isTriggeringEvent && !Re.isOpening) {
|
|
4189
4191
|
let I = !0;
|
|
4190
|
-
if (l && P.preventDefault(), !
|
|
4192
|
+
if (l && P.preventDefault(), !p.ignoreClickAfterPress && !p.ignoreEmulatedMouseEvents && !p.isPressed && (p.pointerType === "virtual" || Tn(P.nativeEvent))) {
|
|
4191
4193
|
!l && !u && Fe(P.currentTarget);
|
|
4192
4194
|
let C = w(P, "virtual"), T = K(P, "virtual"), q = S(P, "virtual");
|
|
4193
4195
|
I = C && T && q;
|
|
4194
4196
|
}
|
|
4195
|
-
|
|
4197
|
+
p.ignoreEmulatedMouseEvents = !1, p.ignoreClickAfterPress = !1, I && P.stopPropagation();
|
|
4196
4198
|
}
|
|
4197
4199
|
}
|
|
4198
4200
|
}, E = (P) => {
|
|
4199
4201
|
var I;
|
|
4200
|
-
if (
|
|
4202
|
+
if (p.isPressed && p.target && dn(P, p.target)) {
|
|
4201
4203
|
var C;
|
|
4202
4204
|
Fr(P.target, P.key) && P.preventDefault();
|
|
4203
|
-
let q = P.target, V = S(Ke(
|
|
4204
|
-
_(), V && P.stopPropagation(), P.key !== "Enter" && Gn(
|
|
4205
|
-
} else if (P.key === "Meta" && (!((I =
|
|
4205
|
+
let q = P.target, V = S(Ke(p.target, P), "keyboard", p.target.contains(q));
|
|
4206
|
+
_(), V && P.stopPropagation(), P.key !== "Enter" && Gn(p.target) && p.target.contains(q) && !P[Kr] && (P[Kr] = !0, Re(p.target, P, !1)), p.isPressed = !1, (C = p.metaKeyEvents) === null || C === void 0 || C.delete(P.key);
|
|
4207
|
+
} else if (P.key === "Meta" && (!((I = p.metaKeyEvents) === null || I === void 0) && I.size)) {
|
|
4206
4208
|
var T;
|
|
4207
|
-
let q =
|
|
4208
|
-
|
|
4209
|
+
let q = p.metaKeyEvents;
|
|
4210
|
+
p.metaKeyEvents = void 0;
|
|
4209
4211
|
for (let V of q.values())
|
|
4210
|
-
(T =
|
|
4212
|
+
(T = p.target) === null || T === void 0 || T.dispatchEvent(new KeyboardEvent("keyup", V));
|
|
4211
4213
|
}
|
|
4212
4214
|
};
|
|
4213
4215
|
if (typeof PointerEvent < "u") {
|
|
@@ -4215,21 +4217,21 @@ function Gt(t) {
|
|
|
4215
4217
|
if (T.button !== 0 || !T.currentTarget.contains(T.target))
|
|
4216
4218
|
return;
|
|
4217
4219
|
if (Uu(T.nativeEvent)) {
|
|
4218
|
-
|
|
4220
|
+
p.pointerType = "virtual";
|
|
4219
4221
|
return;
|
|
4220
4222
|
}
|
|
4221
|
-
fn(T.currentTarget) && T.preventDefault(),
|
|
4223
|
+
fn(T.currentTarget) && T.preventDefault(), p.pointerType = T.pointerType;
|
|
4222
4224
|
let q = !0;
|
|
4223
|
-
|
|
4225
|
+
p.isPressed || (p.isPressed = !0, p.isOverTarget = !0, p.activePointerId = T.pointerId, p.target = T.currentTarget, !l && !u && Fe(T.currentTarget), c || Ar(p.target), q = w(T, p.pointerType), x(pe(T.currentTarget), "pointermove", P, !1), x(pe(T.currentTarget), "pointerup", I, !1), x(pe(T.currentTarget), "pointercancel", C, !1)), q && T.stopPropagation();
|
|
4224
4226
|
}, A.onMouseDown = (T) => {
|
|
4225
4227
|
T.currentTarget.contains(T.target) && T.button === 0 && (fn(T.currentTarget) && T.preventDefault(), T.stopPropagation());
|
|
4226
4228
|
}, A.onPointerUp = (T) => {
|
|
4227
|
-
!T.currentTarget.contains(T.target) ||
|
|
4229
|
+
!T.currentTarget.contains(T.target) || p.pointerType === "virtual" || T.button === 0 && Ue(T, T.currentTarget) && K(T, p.pointerType || T.pointerType);
|
|
4228
4230
|
};
|
|
4229
4231
|
let P = (T) => {
|
|
4230
|
-
T.pointerId ===
|
|
4232
|
+
T.pointerId === p.activePointerId && (p.target && Ue(T, p.target) ? !p.isOverTarget && p.pointerType != null && (p.isOverTarget = !0, w(Ke(p.target, T), p.pointerType)) : p.target && p.isOverTarget && p.pointerType != null && (p.isOverTarget = !1, S(Ke(p.target, T), p.pointerType, !1), k(T)));
|
|
4231
4233
|
}, I = (T) => {
|
|
4232
|
-
T.pointerId ===
|
|
4234
|
+
T.pointerId === p.activePointerId && p.isPressed && T.button === 0 && p.target && (Ue(T, p.target) && p.pointerType != null ? S(Ke(p.target, T), p.pointerType) : p.isOverTarget && p.pointerType != null && S(Ke(p.target, T), p.pointerType, !1), p.isPressed = !1, p.isOverTarget = !1, p.activePointerId = null, p.pointerType = null, _(), c || $t(p.target));
|
|
4233
4235
|
}, C = (T) => {
|
|
4234
4236
|
g(T);
|
|
4235
4237
|
};
|
|
@@ -4240,31 +4242,31 @@ function Gt(t) {
|
|
|
4240
4242
|
A.onMouseDown = (C) => {
|
|
4241
4243
|
if (C.button !== 0 || !C.currentTarget.contains(C.target))
|
|
4242
4244
|
return;
|
|
4243
|
-
if (fn(C.currentTarget) && C.preventDefault(),
|
|
4245
|
+
if (fn(C.currentTarget) && C.preventDefault(), p.ignoreEmulatedMouseEvents) {
|
|
4244
4246
|
C.stopPropagation();
|
|
4245
4247
|
return;
|
|
4246
4248
|
}
|
|
4247
|
-
|
|
4249
|
+
p.isPressed = !0, p.isOverTarget = !0, p.target = C.currentTarget, p.pointerType = Tn(C.nativeEvent) ? "virtual" : "mouse", !l && !u && Fe(C.currentTarget), w(C, p.pointerType) && C.stopPropagation(), x(pe(C.currentTarget), "mouseup", P, !1);
|
|
4248
4250
|
}, A.onMouseEnter = (C) => {
|
|
4249
4251
|
if (!C.currentTarget.contains(C.target))
|
|
4250
4252
|
return;
|
|
4251
4253
|
let T = !0;
|
|
4252
|
-
|
|
4254
|
+
p.isPressed && !p.ignoreEmulatedMouseEvents && p.pointerType != null && (p.isOverTarget = !0, T = w(C, p.pointerType)), T && C.stopPropagation();
|
|
4253
4255
|
}, A.onMouseLeave = (C) => {
|
|
4254
4256
|
if (!C.currentTarget.contains(C.target))
|
|
4255
4257
|
return;
|
|
4256
4258
|
let T = !0;
|
|
4257
|
-
|
|
4259
|
+
p.isPressed && !p.ignoreEmulatedMouseEvents && p.pointerType != null && (p.isOverTarget = !1, T = S(C, p.pointerType, !1), k(C)), T && C.stopPropagation();
|
|
4258
4260
|
}, A.onMouseUp = (C) => {
|
|
4259
|
-
C.currentTarget.contains(C.target) && !
|
|
4261
|
+
C.currentTarget.contains(C.target) && !p.ignoreEmulatedMouseEvents && C.button === 0 && K(C, p.pointerType || "mouse");
|
|
4260
4262
|
};
|
|
4261
4263
|
let P = (C) => {
|
|
4262
4264
|
if (C.button === 0) {
|
|
4263
|
-
if (
|
|
4264
|
-
|
|
4265
|
+
if (p.isPressed = !1, _(), p.ignoreEmulatedMouseEvents) {
|
|
4266
|
+
p.ignoreEmulatedMouseEvents = !1;
|
|
4265
4267
|
return;
|
|
4266
4268
|
}
|
|
4267
|
-
|
|
4269
|
+
p.target && Ue(C, p.target) && p.pointerType != null ? S(Ke(p.target, C), p.pointerType) : p.target && p.isOverTarget && p.pointerType != null && S(Ke(p.target, C), p.pointerType, !1), p.isOverTarget = !1;
|
|
4268
4270
|
}
|
|
4269
4271
|
};
|
|
4270
4272
|
A.onTouchStart = (C) => {
|
|
@@ -4273,31 +4275,31 @@ function Gt(t) {
|
|
|
4273
4275
|
let T = Xu(C.nativeEvent);
|
|
4274
4276
|
if (!T)
|
|
4275
4277
|
return;
|
|
4276
|
-
|
|
4278
|
+
p.activePointerId = T.identifier, p.ignoreEmulatedMouseEvents = !0, p.isOverTarget = !0, p.isPressed = !0, p.target = C.currentTarget, p.pointerType = "touch", !l && !u && Fe(C.currentTarget), c || Ar(p.target), w(C, p.pointerType) && C.stopPropagation(), x(ut(C.currentTarget), "scroll", I, !0);
|
|
4277
4279
|
}, A.onTouchMove = (C) => {
|
|
4278
4280
|
if (!C.currentTarget.contains(C.target))
|
|
4279
4281
|
return;
|
|
4280
|
-
if (!
|
|
4282
|
+
if (!p.isPressed) {
|
|
4281
4283
|
C.stopPropagation();
|
|
4282
4284
|
return;
|
|
4283
4285
|
}
|
|
4284
|
-
let T = Dr(C.nativeEvent,
|
|
4285
|
-
T && Ue(T, C.currentTarget) ? !
|
|
4286
|
+
let T = Dr(C.nativeEvent, p.activePointerId), q = !0;
|
|
4287
|
+
T && Ue(T, C.currentTarget) ? !p.isOverTarget && p.pointerType != null && (p.isOverTarget = !0, q = w(C, p.pointerType)) : p.isOverTarget && p.pointerType != null && (p.isOverTarget = !1, q = S(C, p.pointerType, !1), k(C)), q && C.stopPropagation();
|
|
4286
4288
|
}, A.onTouchEnd = (C) => {
|
|
4287
4289
|
if (!C.currentTarget.contains(C.target))
|
|
4288
4290
|
return;
|
|
4289
|
-
if (!
|
|
4291
|
+
if (!p.isPressed) {
|
|
4290
4292
|
C.stopPropagation();
|
|
4291
4293
|
return;
|
|
4292
4294
|
}
|
|
4293
|
-
let T = Dr(C.nativeEvent,
|
|
4294
|
-
T && Ue(T, C.currentTarget) &&
|
|
4295
|
+
let T = Dr(C.nativeEvent, p.activePointerId), q = !0;
|
|
4296
|
+
T && Ue(T, C.currentTarget) && p.pointerType != null ? (K(C, p.pointerType), q = S(C, p.pointerType)) : p.isOverTarget && p.pointerType != null && (q = S(C, p.pointerType, !1)), q && C.stopPropagation(), p.isPressed = !1, p.activePointerId = null, p.isOverTarget = !1, p.ignoreEmulatedMouseEvents = !0, p.target && !c && $t(p.target), _();
|
|
4295
4297
|
}, A.onTouchCancel = (C) => {
|
|
4296
|
-
C.currentTarget.contains(C.target) && (C.stopPropagation(),
|
|
4298
|
+
C.currentTarget.contains(C.target) && (C.stopPropagation(), p.isPressed && g(C));
|
|
4297
4299
|
};
|
|
4298
4300
|
let I = (C) => {
|
|
4299
|
-
|
|
4300
|
-
currentTarget:
|
|
4301
|
+
p.isPressed && C.target.contains(p.target) && g({
|
|
4302
|
+
currentTarget: p.target,
|
|
4301
4303
|
shiftKey: !1,
|
|
4302
4304
|
ctrlKey: !1,
|
|
4303
4305
|
metaKey: !1,
|
|
@@ -4322,13 +4324,13 @@ function Gt(t) {
|
|
|
4322
4324
|
K
|
|
4323
4325
|
]);
|
|
4324
4326
|
return G(() => () => {
|
|
4325
|
-
var
|
|
4326
|
-
c || $t((
|
|
4327
|
+
var p;
|
|
4328
|
+
c || $t((p = h.current.target) !== null && p !== void 0 ? p : void 0);
|
|
4327
4329
|
}, [
|
|
4328
4330
|
c
|
|
4329
4331
|
]), {
|
|
4330
4332
|
isPressed: s || d,
|
|
4331
|
-
pressProps: se(
|
|
4333
|
+
pressProps: se(b, O)
|
|
4332
4334
|
};
|
|
4333
4335
|
}
|
|
4334
4336
|
function Gn(t) {
|
|
@@ -4647,19 +4649,19 @@ function ko(t) {
|
|
|
4647
4649
|
target: h,
|
|
4648
4650
|
pointerType: v
|
|
4649
4651
|
}), n && n(!1), l(!1);
|
|
4650
|
-
},
|
|
4651
|
-
return typeof PointerEvent < "u" ? (
|
|
4652
|
+
}, b = {};
|
|
4653
|
+
return typeof PointerEvent < "u" ? (b.onPointerEnter = (d) => {
|
|
4652
4654
|
Mt && d.pointerType === "mouse" || c(d, d.pointerType);
|
|
4653
|
-
},
|
|
4655
|
+
}, b.onPointerLeave = (d) => {
|
|
4654
4656
|
!o && d.currentTarget.contains(d.target) && f(d, d.pointerType);
|
|
4655
|
-
}) : (
|
|
4657
|
+
}) : (b.onTouchStart = () => {
|
|
4656
4658
|
s.ignoreEmulatedMouseEvents = !0;
|
|
4657
|
-
},
|
|
4659
|
+
}, b.onMouseEnter = (d) => {
|
|
4658
4660
|
!s.ignoreEmulatedMouseEvents && !Mt && c(d, "mouse"), s.ignoreEmulatedMouseEvents = !1;
|
|
4659
|
-
},
|
|
4661
|
+
}, b.onMouseLeave = (d) => {
|
|
4660
4662
|
!o && d.currentTarget.contains(d.target) && f(d, "mouse");
|
|
4661
4663
|
}), {
|
|
4662
|
-
hoverProps:
|
|
4664
|
+
hoverProps: b,
|
|
4663
4665
|
triggerHoverEnd: f
|
|
4664
4666
|
};
|
|
4665
4667
|
}, [
|
|
@@ -4695,8 +4697,8 @@ function fa(t) {
|
|
|
4695
4697
|
return;
|
|
4696
4698
|
const a = e.current, c = pe(a);
|
|
4697
4699
|
if (typeof PointerEvent < "u") {
|
|
4698
|
-
let f = (
|
|
4699
|
-
u.isPointerDown && Ct(
|
|
4700
|
+
let f = (b) => {
|
|
4701
|
+
u.isPointerDown && Ct(b, e) && s(b), u.isPointerDown = !1;
|
|
4700
4702
|
};
|
|
4701
4703
|
return c.addEventListener("pointerdown", l, !0), c.addEventListener("pointerup", f, !0), () => {
|
|
4702
4704
|
c.removeEventListener("pointerdown", l, !0), c.removeEventListener("pointerup", f, !0);
|
|
@@ -4704,11 +4706,11 @@ function fa(t) {
|
|
|
4704
4706
|
} else {
|
|
4705
4707
|
let f = (d) => {
|
|
4706
4708
|
u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown && Ct(d, e) && s(d), u.isPointerDown = !1;
|
|
4707
|
-
},
|
|
4709
|
+
}, b = (d) => {
|
|
4708
4710
|
u.ignoreEmulatedMouseEvents = !0, u.isPointerDown && Ct(d, e) && s(d), u.isPointerDown = !1;
|
|
4709
4711
|
};
|
|
4710
|
-
return c.addEventListener("mousedown", l, !0), c.addEventListener("mouseup", f, !0), c.addEventListener("touchstart", l, !0), c.addEventListener("touchend",
|
|
4711
|
-
c.removeEventListener("mousedown", l, !0), c.removeEventListener("mouseup", f, !0), c.removeEventListener("touchstart", l, !0), c.removeEventListener("touchend",
|
|
4712
|
+
return c.addEventListener("mousedown", l, !0), c.addEventListener("mouseup", f, !0), c.addEventListener("touchstart", l, !0), c.addEventListener("touchend", b, !0), () => {
|
|
4713
|
+
c.removeEventListener("mousedown", l, !0), c.removeEventListener("mouseup", f, !0), c.removeEventListener("touchstart", l, !0), c.removeEventListener("touchend", b, !0);
|
|
4712
4714
|
};
|
|
4713
4715
|
}
|
|
4714
4716
|
}, [
|
|
@@ -4765,35 +4767,35 @@ function Io(t) {
|
|
|
4765
4767
|
const s = B();
|
|
4766
4768
|
let { addGlobalListener: u, removeGlobalListener: a } = To(), { pressProps: c } = Gt({
|
|
4767
4769
|
isDisabled: e,
|
|
4768
|
-
onPressStart(
|
|
4769
|
-
if (
|
|
4770
|
-
...
|
|
4770
|
+
onPressStart(b) {
|
|
4771
|
+
if (b.continuePropagation(), (b.pointerType === "mouse" || b.pointerType === "touch") && (n && n({
|
|
4772
|
+
...b,
|
|
4771
4773
|
type: "longpressstart"
|
|
4772
4774
|
}), s.current = setTimeout(() => {
|
|
4773
|
-
|
|
4775
|
+
b.target.dispatchEvent(new PointerEvent("pointercancel", {
|
|
4774
4776
|
bubbles: !0
|
|
4775
4777
|
})), o && o({
|
|
4776
|
-
...
|
|
4778
|
+
...b,
|
|
4777
4779
|
type: "longpress"
|
|
4778
4780
|
}), s.current = void 0;
|
|
4779
|
-
}, i),
|
|
4781
|
+
}, i), b.pointerType === "touch")) {
|
|
4780
4782
|
let d = (v) => {
|
|
4781
4783
|
v.preventDefault();
|
|
4782
4784
|
};
|
|
4783
|
-
u(
|
|
4785
|
+
u(b.target, "contextmenu", d, {
|
|
4784
4786
|
once: !0
|
|
4785
4787
|
}), u(window, "pointerup", () => {
|
|
4786
4788
|
setTimeout(() => {
|
|
4787
|
-
a(
|
|
4789
|
+
a(b.target, "contextmenu", d);
|
|
4788
4790
|
}, 30);
|
|
4789
4791
|
}, {
|
|
4790
4792
|
once: !0
|
|
4791
4793
|
});
|
|
4792
4794
|
}
|
|
4793
4795
|
},
|
|
4794
|
-
onPressEnd(
|
|
4795
|
-
s.current && clearTimeout(s.current), r && (
|
|
4796
|
-
...
|
|
4796
|
+
onPressEnd(b) {
|
|
4797
|
+
s.current && clearTimeout(s.current), r && (b.pointerType === "mouse" || b.pointerType === "touch") && r({
|
|
4798
|
+
...b,
|
|
4797
4799
|
type: "longpressend"
|
|
4798
4800
|
});
|
|
4799
4801
|
}
|
|
@@ -4839,41 +4841,41 @@ function va(t) {
|
|
|
4839
4841
|
s
|
|
4840
4842
|
]);
|
|
4841
4843
|
fe(() => {
|
|
4842
|
-
let
|
|
4843
|
-
if (be.getTreeNode(
|
|
4844
|
+
let b = u || be.root;
|
|
4845
|
+
if (be.getTreeNode(b.scopeRef) && le && !Nt(le, b.scopeRef)) {
|
|
4844
4846
|
let d = be.getTreeNode(le);
|
|
4845
|
-
d && (
|
|
4847
|
+
d && (b = d);
|
|
4846
4848
|
}
|
|
4847
|
-
|
|
4849
|
+
b.addChild(a), be.addNode(a);
|
|
4848
4850
|
}, [
|
|
4849
4851
|
a,
|
|
4850
4852
|
u
|
|
4851
4853
|
]), fe(() => {
|
|
4852
|
-
let
|
|
4853
|
-
|
|
4854
|
+
let b = be.getTreeNode(s);
|
|
4855
|
+
b && (b.contain = !!n);
|
|
4854
4856
|
}, [
|
|
4855
4857
|
n
|
|
4856
4858
|
]), fe(() => {
|
|
4857
|
-
var
|
|
4858
|
-
let d = (
|
|
4859
|
+
var b;
|
|
4860
|
+
let d = (b = i.current) === null || b === void 0 ? void 0 : b.nextSibling, v = [];
|
|
4859
4861
|
for (; d && d !== l.current; )
|
|
4860
4862
|
v.push(d), d = d.nextSibling;
|
|
4861
4863
|
s.current = v;
|
|
4862
4864
|
}, [
|
|
4863
4865
|
e
|
|
4864
4866
|
]), Ea(s, r, n), ya(s, n), wa(s, r, n), Ca(s, o), G(() => {
|
|
4865
|
-
const
|
|
4867
|
+
const b = pe(s.current ? s.current[0] : void 0).activeElement;
|
|
4866
4868
|
let d = null;
|
|
4867
|
-
if (he(
|
|
4869
|
+
if (he(b, s.current)) {
|
|
4868
4870
|
for (let v of be.traverse())
|
|
4869
|
-
v.scopeRef && he(
|
|
4871
|
+
v.scopeRef && he(b, v.scopeRef.current) && (d = v);
|
|
4870
4872
|
d === be.getTreeNode(s) && (le = d.scopeRef);
|
|
4871
4873
|
}
|
|
4872
4874
|
}, [
|
|
4873
4875
|
s
|
|
4874
4876
|
]), fe(() => () => {
|
|
4875
|
-
var
|
|
4876
|
-
let h = (v = (d = be.getTreeNode(s)) === null || d === void 0 || (
|
|
4877
|
+
var b, d, v;
|
|
4878
|
+
let h = (v = (d = be.getTreeNode(s)) === null || d === void 0 || (b = d.parent) === null || b === void 0 ? void 0 : b.scopeRef) !== null && v !== void 0 ? v : null;
|
|
4877
4879
|
(s === le || Nt(s, le)) && (!h || be.getTreeNode(h)) && (le = h), be.removeTreeNode(s);
|
|
4878
4880
|
}, [
|
|
4879
4881
|
s
|
|
@@ -4981,7 +4983,7 @@ function ya(t, e) {
|
|
|
4981
4983
|
let c = i.activeElement, f = t.current;
|
|
4982
4984
|
if (!f || !he(c, f))
|
|
4983
4985
|
return;
|
|
4984
|
-
let
|
|
4986
|
+
let b = Be(f), d = Me(b, {
|
|
4985
4987
|
tabbable: !0
|
|
4986
4988
|
}, f);
|
|
4987
4989
|
if (!c)
|
|
@@ -5283,14 +5285,14 @@ function Zn(t = {}) {
|
|
|
5283
5285
|
let { focusProps: f } = qn({
|
|
5284
5286
|
isDisabled: r,
|
|
5285
5287
|
onFocusChange: c
|
|
5286
|
-
}), { focusWithinProps:
|
|
5288
|
+
}), { focusWithinProps: b } = Yt({
|
|
5287
5289
|
isDisabled: !r,
|
|
5288
5290
|
onFocusWithinChange: c
|
|
5289
5291
|
});
|
|
5290
5292
|
return {
|
|
5291
5293
|
isFocused: i,
|
|
5292
5294
|
isFocusVisible: s,
|
|
5293
|
-
focusProps: r ?
|
|
5295
|
+
focusProps: r ? b : f
|
|
5294
5296
|
};
|
|
5295
5297
|
}
|
|
5296
5298
|
let Sa = /* @__PURE__ */ Q.createContext(null);
|
|
@@ -5459,7 +5461,7 @@ function zo(t, e) {
|
|
|
5459
5461
|
allowFocusWhenDisabled: c,
|
|
5460
5462
|
// @ts-ignore
|
|
5461
5463
|
onClick: f,
|
|
5462
|
-
href:
|
|
5464
|
+
href: b,
|
|
5463
5465
|
target: d,
|
|
5464
5466
|
rel: v,
|
|
5465
5467
|
type: h = "button"
|
|
@@ -5470,7 +5472,7 @@ function zo(t, e) {
|
|
|
5470
5472
|
} : x = {
|
|
5471
5473
|
role: "button",
|
|
5472
5474
|
tabIndex: r ? void 0 : 0,
|
|
5473
|
-
href: n === "a" && r ? void 0 :
|
|
5475
|
+
href: n === "a" && r ? void 0 : b,
|
|
5474
5476
|
target: n === "a" ? d : void 0,
|
|
5475
5477
|
type: n === "input" ? h : void 0,
|
|
5476
5478
|
disabled: n === "input" ? r : void 0,
|
|
@@ -6593,14 +6595,14 @@ function Hr(t) {
|
|
|
6593
6595
|
}, Et[t];
|
|
6594
6596
|
}
|
|
6595
6597
|
function hn(t, e, n, r, o, i, l, s, u, a) {
|
|
6596
|
-
let { placement: c, crossPlacement: f, axis:
|
|
6598
|
+
let { placement: c, crossPlacement: f, axis: b, crossAxis: d, size: v, crossSize: h } = r, x = {};
|
|
6597
6599
|
x[d] = t[d], f === "center" ? x[d] += (t[h] - n[h]) / 2 : f !== d && (x[d] += t[h] - n[h]), x[d] += i;
|
|
6598
6600
|
const _ = t[d] - n[h] + u + a, w = t[d] + t[h] - u - a;
|
|
6599
|
-
if (x[d] = Cn(x[d], _, w), c ===
|
|
6601
|
+
if (x[d] = Cn(x[d], _, w), c === b) {
|
|
6600
6602
|
const S = s ? l[v] : e[Ha[v]];
|
|
6601
|
-
x[Bt[
|
|
6603
|
+
x[Bt[b]] = Math.floor(S - t[b] + o);
|
|
6602
6604
|
} else
|
|
6603
|
-
x[
|
|
6605
|
+
x[b] = Math.floor(t[b] + t[v] + o);
|
|
6604
6606
|
return x;
|
|
6605
6607
|
}
|
|
6606
6608
|
function Ga(t, e, n, r, o, i) {
|
|
@@ -6610,16 +6612,16 @@ function Ur(t, e, n, r, o, i) {
|
|
|
6610
6612
|
let { placement: l, axis: s, size: u } = i;
|
|
6611
6613
|
return l === s ? Math.max(0, n[s] - t[s] - t.scroll[s] + e[s] - r[s] - r[Bt[s]] - o) : Math.max(0, t[u] + t[s] + t.scroll[s] - e[s] - n[s] - n[u] - r[s] - r[Bt[s]] - o);
|
|
6612
6614
|
}
|
|
6613
|
-
function qa(t, e, n, r, o, i, l, s, u, a, c, f,
|
|
6614
|
-
let x = Hr(t), { size: _, crossAxis: w, crossSize: S, placement: K, crossPlacement: g } = x, k = hn(e, s, n, x, c, f, a,
|
|
6615
|
-
if (l && r[_] >
|
|
6616
|
-
let ue = Hr(`${Bt[K]} ${g}`), ae = hn(e, s, n, ue, c, f, a,
|
|
6617
|
-
Ur(s, a, e, o, i + c, ue) >
|
|
6615
|
+
function qa(t, e, n, r, o, i, l, s, u, a, c, f, b, d, v, h) {
|
|
6616
|
+
let x = Hr(t), { size: _, crossAxis: w, crossSize: S, placement: K, crossPlacement: g } = x, k = hn(e, s, n, x, c, f, a, b, v, h), O = c, p = Ur(s, a, e, o, i + c, x);
|
|
6617
|
+
if (l && r[_] > p) {
|
|
6618
|
+
let ue = Hr(`${Bt[K]} ${g}`), ae = hn(e, s, n, ue, c, f, a, b, v, h);
|
|
6619
|
+
Ur(s, a, e, o, i + c, ue) > p && (x = ue, k = ae, O = c);
|
|
6618
6620
|
}
|
|
6619
6621
|
let A = jr(w, k[w], n[S], s, u, i);
|
|
6620
6622
|
k[w] += A;
|
|
6621
6623
|
let E = Ga(k, s, a, e, o, i);
|
|
6622
|
-
d && d < E && (E = d), n.height = Math.min(n.height, E), k = hn(e, s, n, x, O, f, a,
|
|
6624
|
+
d && d < E && (E = d), n.height = Math.min(n.height, E), k = hn(e, s, n, x, O, f, a, b, v, h), A = jr(w, k[w], n[S], s, u, i), k[w] += A;
|
|
6623
6625
|
let P = {}, I = e[w] + 0.5 * e[S] - n[w];
|
|
6624
6626
|
const C = v / 2 + h, T = n[S] - v / 2 - h, q = e[w] - n[w] + v / 2, V = e[w] + e[S] - n[w] - v / 2, F = Cn(I, q, V);
|
|
6625
6627
|
return P[w] = Cn(F, C, T), {
|
|
@@ -6631,17 +6633,17 @@ function qa(t, e, n, r, o, i, l, s, u, a, c, f, p, d, v, h) {
|
|
|
6631
6633
|
};
|
|
6632
6634
|
}
|
|
6633
6635
|
function Ya(t) {
|
|
6634
|
-
let { placement: e, targetNode: n, overlayNode: r, scrollNode: o, padding: i, shouldFlip: l, boundaryElement: s, offset: u, crossOffset: a, maxHeight: c, arrowSize: f = 0, arrowBoundaryOffset:
|
|
6636
|
+
let { placement: e, targetNode: n, overlayNode: r, scrollNode: o, padding: i, shouldFlip: l, boundaryElement: s, offset: u, crossOffset: a, maxHeight: c, arrowSize: f = 0, arrowBoundaryOffset: b = 0 } = t, d = r instanceof HTMLElement ? Xa(r) : document.documentElement, v = d === document.documentElement;
|
|
6635
6637
|
const h = window.getComputedStyle(d).position;
|
|
6636
6638
|
let x = !!h && h !== "static", _ = v ? Je(n) : Wr(n, d);
|
|
6637
6639
|
if (!v) {
|
|
6638
|
-
let { marginTop:
|
|
6639
|
-
_.top += parseInt(
|
|
6640
|
+
let { marginTop: p, marginLeft: A } = window.getComputedStyle(n);
|
|
6641
|
+
_.top += parseInt(p, 10) || 0, _.left += parseInt(A, 10) || 0;
|
|
6640
6642
|
}
|
|
6641
6643
|
let w = Je(r), S = Wa(r);
|
|
6642
6644
|
w.width += S.left + S.right, w.height += S.top + S.bottom;
|
|
6643
6645
|
let K = Ua(o), g = zr(s), k = zr(d), O = s.tagName === "BODY" ? Je(d) : Wr(d, s);
|
|
6644
|
-
return qa(e, _, w, K, S, i, l, g, k, O, u, a, x, c, f,
|
|
6646
|
+
return qa(e, _, w, K, S, i, l, g, k, O, u, a, x, c, f, b);
|
|
6645
6647
|
}
|
|
6646
6648
|
function Je(t) {
|
|
6647
6649
|
let { top: e, left: n, width: r, height: o } = t.getBoundingClientRect(), { scrollTop: i, scrollLeft: l, clientTop: s, clientLeft: u } = document.documentElement;
|
|
@@ -6706,14 +6708,14 @@ function Za(t) {
|
|
|
6706
6708
|
}
|
|
6707
6709
|
let Ee = typeof document < "u" && window.visualViewport;
|
|
6708
6710
|
function Ja(t) {
|
|
6709
|
-
let { direction: e } = Xt(), { arrowSize: n = 0, targetRef: r, overlayRef: o, scrollRef: i = o, placement: l = "bottom", containerPadding: s = 12, shouldFlip: u = !0, boundaryElement: a = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: f = 0, shouldUpdatePosition:
|
|
6711
|
+
let { direction: e } = Xt(), { arrowSize: n = 0, targetRef: r, overlayRef: o, scrollRef: i = o, placement: l = "bottom", containerPadding: s = 12, shouldFlip: u = !0, boundaryElement: a = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: f = 0, shouldUpdatePosition: b = !0, isOpen: d = !0, onClose: v, maxHeight: h, arrowBoundaryOffset: x = 0 } = t, [_, w] = J({
|
|
6710
6712
|
position: {},
|
|
6711
6713
|
arrowOffsetLeft: void 0,
|
|
6712
6714
|
arrowOffsetTop: void 0,
|
|
6713
6715
|
maxHeight: void 0,
|
|
6714
6716
|
placement: void 0
|
|
6715
6717
|
}), S = [
|
|
6716
|
-
|
|
6718
|
+
b,
|
|
6717
6719
|
l,
|
|
6718
6720
|
o.current,
|
|
6719
6721
|
r.current,
|
|
@@ -6729,7 +6731,7 @@ function Ja(t) {
|
|
|
6729
6731
|
x,
|
|
6730
6732
|
n
|
|
6731
6733
|
], K = oe(() => {
|
|
6732
|
-
if (
|
|
6734
|
+
if (b === !1 || !d || !o.current || !r.current || !i.current || !a)
|
|
6733
6735
|
return;
|
|
6734
6736
|
let O = Ya({
|
|
6735
6737
|
placement: ec(l, e),
|
|
@@ -6745,7 +6747,7 @@ function Ja(t) {
|
|
|
6745
6747
|
arrowSize: n,
|
|
6746
6748
|
arrowBoundaryOffset: x
|
|
6747
6749
|
});
|
|
6748
|
-
Object.keys(O.position).forEach((
|
|
6750
|
+
Object.keys(O.position).forEach((p) => o.current.style[p] = O.position[p] + "px"), o.current.style.maxHeight = O.maxHeight != null ? O.maxHeight + "px" : void 0, w(O);
|
|
6749
6751
|
}, S);
|
|
6750
6752
|
fe(K, S), Qa(K), Vu({
|
|
6751
6753
|
ref: o,
|
|
@@ -6753,13 +6755,13 @@ function Ja(t) {
|
|
|
6753
6755
|
});
|
|
6754
6756
|
let g = B(!1);
|
|
6755
6757
|
fe(() => {
|
|
6756
|
-
let O,
|
|
6758
|
+
let O, p = () => {
|
|
6757
6759
|
g.current = !0, clearTimeout(O), O = setTimeout(() => {
|
|
6758
6760
|
g.current = !1;
|
|
6759
6761
|
}, 500), K();
|
|
6760
6762
|
};
|
|
6761
|
-
return Ee == null || Ee.addEventListener("resize",
|
|
6762
|
-
Ee == null || Ee.removeEventListener("resize",
|
|
6763
|
+
return Ee == null || Ee.addEventListener("resize", p), Ee == null || Ee.addEventListener("scroll", p), () => {
|
|
6764
|
+
Ee == null || Ee.removeEventListener("resize", p), Ee == null || Ee.removeEventListener("scroll", p);
|
|
6763
6765
|
};
|
|
6764
6766
|
}, [
|
|
6765
6767
|
K
|
|
@@ -6829,7 +6831,7 @@ function tc(t, e) {
|
|
|
6829
6831
|
onInteractOutside: i && o ? c : null,
|
|
6830
6832
|
onInteractOutsideStart: a
|
|
6831
6833
|
});
|
|
6832
|
-
let { focusWithinProps:
|
|
6834
|
+
let { focusWithinProps: b } = Yt({
|
|
6833
6835
|
isDisabled: !r,
|
|
6834
6836
|
onBlurWithin: (v) => {
|
|
6835
6837
|
!v.relatedTarget || xa(v.relatedTarget) || (!s || s(v.relatedTarget)) && n();
|
|
@@ -6840,7 +6842,7 @@ function tc(t, e) {
|
|
|
6840
6842
|
return {
|
|
6841
6843
|
overlayProps: {
|
|
6842
6844
|
onKeyDown: f,
|
|
6843
|
-
...
|
|
6845
|
+
...b
|
|
6844
6846
|
},
|
|
6845
6847
|
underlayProps: {
|
|
6846
6848
|
onPointerDown: d
|
|
@@ -7018,22 +7020,22 @@ function Xr(t) {
|
|
|
7018
7020
|
let ot = /* @__PURE__ */ new WeakMap(), Pe = [];
|
|
7019
7021
|
function cl(t, e = document.body) {
|
|
7020
7022
|
let n = new Set(t), r = /* @__PURE__ */ new Set(), o = (u) => {
|
|
7021
|
-
for (let
|
|
7022
|
-
n.add(
|
|
7023
|
-
let a = (
|
|
7024
|
-
if (n.has(
|
|
7023
|
+
for (let b of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))
|
|
7024
|
+
n.add(b);
|
|
7025
|
+
let a = (b) => {
|
|
7026
|
+
if (n.has(b) || r.has(b.parentElement) && b.parentElement.getAttribute("role") !== "row")
|
|
7025
7027
|
return NodeFilter.FILTER_REJECT;
|
|
7026
7028
|
for (let d of n)
|
|
7027
|
-
if (
|
|
7029
|
+
if (b.contains(d))
|
|
7028
7030
|
return NodeFilter.FILTER_SKIP;
|
|
7029
7031
|
return NodeFilter.FILTER_ACCEPT;
|
|
7030
7032
|
}, c = document.createTreeWalker(u, NodeFilter.SHOW_ELEMENT, {
|
|
7031
7033
|
acceptNode: a
|
|
7032
7034
|
}), f = a(u);
|
|
7033
7035
|
if (f === NodeFilter.FILTER_ACCEPT && i(u), f !== NodeFilter.FILTER_REJECT) {
|
|
7034
|
-
let
|
|
7035
|
-
for (;
|
|
7036
|
-
i(
|
|
7036
|
+
let b = c.nextNode();
|
|
7037
|
+
for (; b != null; )
|
|
7038
|
+
i(b), b = c.nextNode();
|
|
7037
7039
|
}
|
|
7038
7040
|
}, i = (u) => {
|
|
7039
7041
|
var a;
|
|
@@ -7085,7 +7087,7 @@ function sc(t, e) {
|
|
|
7085
7087
|
isDismissable: !o,
|
|
7086
7088
|
isKeyboardDismissDisabled: i,
|
|
7087
7089
|
shouldCloseOnInteractOutside: l
|
|
7088
|
-
}, r), { overlayProps: c, arrowProps: f, placement:
|
|
7090
|
+
}, r), { overlayProps: c, arrowProps: f, placement: b } = Ja({
|
|
7089
7091
|
...s,
|
|
7090
7092
|
targetRef: n,
|
|
7091
7093
|
overlayRef: r,
|
|
@@ -7107,7 +7109,7 @@ function sc(t, e) {
|
|
|
7107
7109
|
popoverProps: se(u, c),
|
|
7108
7110
|
arrowProps: f,
|
|
7109
7111
|
underlayProps: a,
|
|
7110
|
-
placement:
|
|
7112
|
+
placement: b
|
|
7111
7113
|
};
|
|
7112
7114
|
}
|
|
7113
7115
|
const uc = /* @__PURE__ */ Q.createContext(null);
|
|
@@ -7162,7 +7164,7 @@ function dc(t) {
|
|
|
7162
7164
|
return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
|
|
7163
7165
|
}
|
|
7164
7166
|
function fl(t) {
|
|
7165
|
-
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: l = !1, disallowSelectAll: s = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: a = !1, shouldUseVirtualFocus: c, allowsTabNavigation: f = !1, isVirtualized:
|
|
7167
|
+
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: l = !1, disallowSelectAll: s = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: a = !1, shouldUseVirtualFocus: c, allowsTabNavigation: f = !1, isVirtualized: b, scrollRef: d = r, linkBehavior: v = "action" } = t, { direction: h } = Xt(), x = Wt(), _ = (E) => {
|
|
7166
7168
|
if (E.altKey && E.key === "Tab" && E.preventDefault(), !r.current.contains(E.target))
|
|
7167
7169
|
return;
|
|
7168
7170
|
const P = ($, D) => {
|
|
@@ -7267,7 +7269,7 @@ function fl(t) {
|
|
|
7267
7269
|
top: 0,
|
|
7268
7270
|
left: 0
|
|
7269
7271
|
});
|
|
7270
|
-
Hu(d, "scroll",
|
|
7272
|
+
Hu(d, "scroll", b ? null : () => {
|
|
7271
7273
|
w.current = {
|
|
7272
7274
|
top: d.current.scrollTop,
|
|
7273
7275
|
left: d.current.scrollLeft
|
|
@@ -7286,8 +7288,8 @@ function fl(t) {
|
|
|
7286
7288
|
var P, I;
|
|
7287
7289
|
T && E.currentTarget.compareDocumentPosition(T) & Node.DOCUMENT_POSITION_FOLLOWING ? C((P = e.lastSelectedKey) !== null && P !== void 0 ? P : n.getLastKey()) : C((I = e.firstSelectedKey) !== null && I !== void 0 ? I : n.getFirstKey());
|
|
7288
7290
|
} else
|
|
7289
|
-
|
|
7290
|
-
if (!
|
|
7291
|
+
b || (d.current.scrollTop = w.current.top, d.current.scrollLeft = w.current.left);
|
|
7292
|
+
if (!b && e.focusedKey != null) {
|
|
7291
7293
|
let C = d.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
7292
7294
|
C && (C.contains(document.activeElement) || Fe(C), Kn() === "keyboard" && Tr(C, {
|
|
7293
7295
|
containingElement: r.current
|
|
@@ -7318,13 +7320,13 @@ function fl(t) {
|
|
|
7318
7320
|
let E = Kn();
|
|
7319
7321
|
if (e.isFocused && e.focusedKey != null && (d != null && d.current)) {
|
|
7320
7322
|
let P = d.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
7321
|
-
P && (E === "keyboard" || g.current) && (
|
|
7323
|
+
P && (E === "keyboard" || g.current) && (b || Ao(d.current, P), Tr(P, {
|
|
7322
7324
|
containingElement: r.current
|
|
7323
7325
|
}));
|
|
7324
7326
|
}
|
|
7325
7327
|
e.isFocused && e.focusedKey == null && k.current != null && dt(r.current), k.current = e.focusedKey, g.current = !1;
|
|
7326
7328
|
}, [
|
|
7327
|
-
|
|
7329
|
+
b,
|
|
7328
7330
|
d,
|
|
7329
7331
|
e.focusedKey,
|
|
7330
7332
|
e.isFocused,
|
|
@@ -7337,11 +7339,11 @@ function fl(t) {
|
|
|
7337
7339
|
onMouseDown(E) {
|
|
7338
7340
|
d.current === E.target && E.preventDefault();
|
|
7339
7341
|
}
|
|
7340
|
-
}, { typeSelectProps:
|
|
7342
|
+
}, { typeSelectProps: p } = dl({
|
|
7341
7343
|
keyboardDelegate: n,
|
|
7342
7344
|
selectionManager: e
|
|
7343
7345
|
});
|
|
7344
|
-
a || (O = se(
|
|
7346
|
+
a || (O = se(p, O));
|
|
7345
7347
|
let A;
|
|
7346
7348
|
return c || (A = e.focusedKey == null ? 0 : -1), {
|
|
7347
7349
|
collectionProps: {
|
|
@@ -7351,7 +7353,7 @@ function fl(t) {
|
|
|
7351
7353
|
};
|
|
7352
7354
|
}
|
|
7353
7355
|
function pl(t) {
|
|
7354
|
-
let { selectionManager: e, key: n, ref: r, shouldSelectOnPressUp: o, shouldUseVirtualFocus: i, focus: l, isDisabled: s, onAction: u, allowsDifferentPressOrigin: a, linkBehavior: c = "action" } = t, f = Wt(),
|
|
7356
|
+
let { selectionManager: e, key: n, ref: r, shouldSelectOnPressUp: o, shouldUseVirtualFocus: i, focus: l, isDisabled: s, onAction: u, allowsDifferentPressOrigin: a, linkBehavior: c = "action" } = t, f = Wt(), b = (F) => {
|
|
7355
7357
|
if (F.pointerType === "keyboard" && kn(F))
|
|
7356
7358
|
e.toggleSelection(n);
|
|
7357
7359
|
else {
|
|
@@ -7386,31 +7388,31 @@ function pl(t) {
|
|
|
7386
7388
|
} : s && (d.onMouseDown = (F) => {
|
|
7387
7389
|
F.preventDefault();
|
|
7388
7390
|
});
|
|
7389
|
-
let v = e.isLink(n) && c === "override", h = e.isLink(n) && c !== "selection" && c !== "none", x = !s && e.canSelectItem(n) && !v, _ = (u || h) && !s, w = _ && (e.selectionBehavior === "replace" ? !x : !x || e.isEmpty), S = _ && x && e.selectionBehavior === "replace", K = w || S, g = B(null), k = K && x, O = B(!1),
|
|
7391
|
+
let v = e.isLink(n) && c === "override", h = e.isLink(n) && c !== "selection" && c !== "none", x = !s && e.canSelectItem(n) && !v, _ = (u || h) && !s, w = _ && (e.selectionBehavior === "replace" ? !x : !x || e.isEmpty), S = _ && x && e.selectionBehavior === "replace", K = w || S, g = B(null), k = K && x, O = B(!1), p = B(!1), A = (F) => {
|
|
7390
7392
|
u && u(), h && f.open(r.current, F);
|
|
7391
7393
|
}, E = {};
|
|
7392
7394
|
o ? (E.onPressStart = (F) => {
|
|
7393
|
-
g.current = F.pointerType, O.current = k, F.pointerType === "keyboard" && (!K || Jr()) &&
|
|
7395
|
+
g.current = F.pointerType, O.current = k, F.pointerType === "keyboard" && (!K || Jr()) && b(F);
|
|
7394
7396
|
}, a ? (E.onPressUp = w ? null : (F) => {
|
|
7395
|
-
F.pointerType !== "keyboard" && x &&
|
|
7397
|
+
F.pointerType !== "keyboard" && x && b(F);
|
|
7396
7398
|
}, E.onPress = w ? A : null) : E.onPress = (F) => {
|
|
7397
7399
|
if (w || S && F.pointerType !== "mouse") {
|
|
7398
7400
|
if (F.pointerType === "keyboard" && !Zr())
|
|
7399
7401
|
return;
|
|
7400
7402
|
A(F);
|
|
7401
7403
|
} else
|
|
7402
|
-
F.pointerType !== "keyboard" && x &&
|
|
7404
|
+
F.pointerType !== "keyboard" && x && b(F);
|
|
7403
7405
|
}) : (E.onPressStart = (F) => {
|
|
7404
|
-
g.current = F.pointerType, O.current = k,
|
|
7406
|
+
g.current = F.pointerType, O.current = k, p.current = w, x && (F.pointerType === "mouse" && !w || F.pointerType === "keyboard" && (!_ || Jr())) && b(F);
|
|
7405
7407
|
}, E.onPress = (F) => {
|
|
7406
|
-
(F.pointerType === "touch" || F.pointerType === "pen" || F.pointerType === "virtual" || F.pointerType === "keyboard" && K && Zr() || F.pointerType === "mouse" &&
|
|
7408
|
+
(F.pointerType === "touch" || F.pointerType === "pen" || F.pointerType === "virtual" || F.pointerType === "keyboard" && K && Zr() || F.pointerType === "mouse" && p.current) && (K ? A(F) : x && b(F));
|
|
7407
7409
|
}), d["data-key"] = n, E.preventFocusOnPress = i;
|
|
7408
7410
|
let { pressProps: P, isPressed: I } = Gt(E), C = S ? (F) => {
|
|
7409
7411
|
g.current === "mouse" && (F.stopPropagation(), F.preventDefault(), A(F));
|
|
7410
7412
|
} : void 0, { longPressProps: T } = Io({
|
|
7411
7413
|
isDisabled: !k,
|
|
7412
7414
|
onLongPress(F) {
|
|
7413
|
-
F.pointerType === "touch" && (
|
|
7415
|
+
F.pointerType === "touch" && (b(F), e.setSelectionBehavior("toggle"));
|
|
7414
7416
|
}
|
|
7415
7417
|
}), q = (F) => {
|
|
7416
7418
|
g.current === "touch" && O.current && F.preventDefault();
|
|
@@ -7648,8 +7650,8 @@ function bc(t, e, n) {
|
|
|
7648
7650
|
let a = (u = t.isSelected) !== null && u !== void 0 ? u : e.selectionManager.isSelected(o);
|
|
7649
7651
|
var c;
|
|
7650
7652
|
let f = (c = t.shouldSelectOnPressUp) !== null && c !== void 0 ? c : i == null ? void 0 : i.shouldSelectOnPressUp;
|
|
7651
|
-
var
|
|
7652
|
-
let d = (
|
|
7653
|
+
var b;
|
|
7654
|
+
let d = (b = t.shouldFocusOnHover) !== null && b !== void 0 ? b : i == null ? void 0 : i.shouldFocusOnHover;
|
|
7653
7655
|
var v;
|
|
7654
7656
|
let h = (v = t.shouldUseVirtualFocus) !== null && v !== void 0 ? v : i == null ? void 0 : i.shouldUseVirtualFocus;
|
|
7655
7657
|
var x;
|
|
@@ -7664,7 +7666,7 @@ function bc(t, e, n) {
|
|
|
7664
7666
|
let C = Number(g == null ? void 0 : g.index);
|
|
7665
7667
|
K["aria-posinset"] = Number.isNaN(C) ? void 0 : C + 1, K["aria-setsize"] = jn(e.collection);
|
|
7666
7668
|
}
|
|
7667
|
-
let { itemProps: k, isPressed: O, isFocused:
|
|
7669
|
+
let { itemProps: k, isPressed: O, isFocused: p, hasAction: A, allowsSelection: E } = pl({
|
|
7668
7670
|
selectionManager: e.selectionManager,
|
|
7669
7671
|
key: o,
|
|
7670
7672
|
ref: n,
|
|
@@ -7698,8 +7700,8 @@ function bc(t, e, n) {
|
|
|
7698
7700
|
descriptionProps: {
|
|
7699
7701
|
id: S
|
|
7700
7702
|
},
|
|
7701
|
-
isFocused:
|
|
7702
|
-
isFocusVisible:
|
|
7703
|
+
isFocused: p,
|
|
7704
|
+
isFocusVisible: p && ct(),
|
|
7703
7705
|
isSelected: a,
|
|
7704
7706
|
isDisabled: s,
|
|
7705
7707
|
isPressed: O,
|
|
@@ -7931,7 +7933,7 @@ function tr(t, e, n) {
|
|
|
7931
7933
|
onLongPress() {
|
|
7932
7934
|
e.open("first");
|
|
7933
7935
|
}
|
|
7934
|
-
}),
|
|
7936
|
+
}), b = {
|
|
7935
7937
|
onPressStart(d) {
|
|
7936
7938
|
d.pointerType !== "touch" && d.pointerType !== "keyboard" && !o && e.toggle(d.pointerType === "virtual" ? "first" : null);
|
|
7937
7939
|
},
|
|
@@ -7942,7 +7944,7 @@ function tr(t, e, n) {
|
|
|
7942
7944
|
return delete s.onPress, {
|
|
7943
7945
|
menuTriggerProps: {
|
|
7944
7946
|
...s,
|
|
7945
|
-
...i === "press" ?
|
|
7947
|
+
...i === "press" ? b : f,
|
|
7946
7948
|
id: l,
|
|
7947
7949
|
onKeyDown: a
|
|
7948
7950
|
},
|
|
@@ -7987,11 +7989,11 @@ function hc(t, e, n) {
|
|
|
7987
7989
|
}
|
|
7988
7990
|
function gc(t, e, n) {
|
|
7989
7991
|
var r;
|
|
7990
|
-
let { key: o, closeOnSelect: i, isVirtualized: l, "aria-haspopup": s, onPressStart: u, onPressUp: a, onPress: c, onPressChange: f, onPressEnd:
|
|
7992
|
+
let { key: o, closeOnSelect: i, isVirtualized: l, "aria-haspopup": s, onPressStart: u, onPressUp: a, onPress: c, onPressChange: f, onPressEnd: b, onHoverStart: d, onHoverChange: v, onHoverEnd: h, onKeyDown: x, onKeyUp: _, onFocus: w, onFocusChange: S, onBlur: K } = t, g = !!s;
|
|
7991
7993
|
var k;
|
|
7992
7994
|
let O = (k = t.isDisabled) !== null && k !== void 0 ? k : e.disabledKeys.has(o);
|
|
7993
|
-
var
|
|
7994
|
-
let A = (
|
|
7995
|
+
var p;
|
|
7996
|
+
let A = (p = t.isSelected) !== null && p !== void 0 ? p : e.selectionManager.isSelected(o), E = Zl.get(e), P = t.onClose || E.onClose, I = g ? () => {
|
|
7995
7997
|
} : t.onAction || E.onAction, C = Wt(), T = (Z) => {
|
|
7996
7998
|
I && I(o), Z.target instanceof HTMLAnchorElement && C.open(Z.target, Z);
|
|
7997
7999
|
}, q = "menuitem";
|
|
@@ -8032,7 +8034,7 @@ function gc(t, e, n) {
|
|
|
8032
8034
|
onPress: c,
|
|
8033
8035
|
onPressUp: z,
|
|
8034
8036
|
onPressChange: f,
|
|
8035
|
-
onPressEnd:
|
|
8037
|
+
onPressEnd: b,
|
|
8036
8038
|
isDisabled: O
|
|
8037
8039
|
}), { hoverProps: L } = ko({
|
|
8038
8040
|
isDisabled: O,
|
|
@@ -8114,9 +8116,9 @@ function yc(t, e) {
|
|
|
8114
8116
|
let { inputElementType: n = "input", isDisabled: r = !1, isRequired: o = !1, isReadOnly: i = !1, type: l = "text", validationBehavior: s = "aria" } = t, [u, a] = et(t.value, t.defaultValue || "", t.onChange), { focusableProps: c } = Ro(t, e), f = zn({
|
|
8115
8117
|
...t,
|
|
8116
8118
|
value: u
|
|
8117
|
-
}), { isInvalid:
|
|
8119
|
+
}), { isInvalid: b, validationErrors: d, validationDetails: v } = f.displayValidation, { labelProps: h, fieldProps: x, descriptionProps: _, errorMessageProps: w } = Wo({
|
|
8118
8120
|
...t,
|
|
8119
|
-
isInvalid:
|
|
8121
|
+
isInvalid: b,
|
|
8120
8122
|
errorMessage: t.errorMessage || d
|
|
8121
8123
|
}), S = je(t, {
|
|
8122
8124
|
labelable: !0
|
|
@@ -8144,7 +8146,7 @@ function yc(t, e) {
|
|
|
8144
8146
|
readOnly: i,
|
|
8145
8147
|
required: o && s === "native",
|
|
8146
8148
|
"aria-required": o && s === "aria" || void 0,
|
|
8147
|
-
"aria-invalid":
|
|
8149
|
+
"aria-invalid": b || void 0,
|
|
8148
8150
|
"aria-errormessage": t["aria-errormessage"],
|
|
8149
8151
|
"aria-activedescendant": t["aria-activedescendant"],
|
|
8150
8152
|
"aria-autocomplete": t["aria-autocomplete"],
|
|
@@ -8176,7 +8178,7 @@ function yc(t, e) {
|
|
|
8176
8178
|
}),
|
|
8177
8179
|
descriptionProps: _,
|
|
8178
8180
|
errorMessageProps: w,
|
|
8179
|
-
isInvalid:
|
|
8181
|
+
isInvalid: b,
|
|
8180
8182
|
validationErrors: d,
|
|
8181
8183
|
validationDetails: v
|
|
8182
8184
|
};
|
|
@@ -8222,12 +8224,12 @@ Jl = {
|
|
|
8222
8224
|
"zh-TW": Si
|
|
8223
8225
|
};
|
|
8224
8226
|
function Cc(t, e) {
|
|
8225
|
-
let { buttonRef: n, popoverRef: r, inputRef: o, listBoxRef: i, keyboardDelegate: l, shouldFocusWrap: s, isReadOnly: u, isDisabled: a } = t, c = Jn(/* @__PURE__ */ xc(Jl), "@react-aria/combobox"), { menuTriggerProps: f, menuProps:
|
|
8227
|
+
let { buttonRef: n, popoverRef: r, inputRef: o, listBoxRef: i, keyboardDelegate: l, shouldFocusWrap: s, isReadOnly: u, isDisabled: a } = t, c = Jn(/* @__PURE__ */ xc(Jl), "@react-aria/combobox"), { menuTriggerProps: f, menuProps: b } = tr({
|
|
8226
8228
|
type: "listbox",
|
|
8227
8229
|
isDisabled: a || u
|
|
8228
8230
|
}, e, n);
|
|
8229
8231
|
Zt.set(e, {
|
|
8230
|
-
id:
|
|
8232
|
+
id: b.id
|
|
8231
8233
|
});
|
|
8232
8234
|
let d = re(() => l || new er(e.collection, e.disabledKeys, i), [
|
|
8233
8235
|
l,
|
|
@@ -8275,7 +8277,7 @@ function Cc(t, e) {
|
|
|
8275
8277
|
L.relatedTarget === (n == null ? void 0 : n.current) || !((N = r.current) === null || N === void 0) && N.contains(L.relatedTarget) || (t.onBlur && t.onBlur(L), e.setFocused(!1));
|
|
8276
8278
|
}, w = (L) => {
|
|
8277
8279
|
e.isFocused || (t.onFocus && t.onFocus(L), e.setFocused(!0));
|
|
8278
|
-
}, { isInvalid: S, validationErrors: K, validationDetails: g } = e.displayValidation, { labelProps: k, inputProps: O, descriptionProps:
|
|
8280
|
+
}, { isInvalid: S, validationErrors: K, validationDetails: g } = e.displayValidation, { labelProps: k, inputProps: O, descriptionProps: p, errorMessageProps: A } = yc({
|
|
8279
8281
|
...t,
|
|
8280
8282
|
onChange: e.setInputValue,
|
|
8281
8283
|
onKeyDown: u ? t.onKeyDown : Qe(e.isOpen && v.onKeyDown, x, t.onKeyDown),
|
|
@@ -8294,7 +8296,7 @@ function Cc(t, e) {
|
|
|
8294
8296
|
"aria-label": c.format("buttonLabel"),
|
|
8295
8297
|
"aria-labelledby": t["aria-labelledby"] || k.id
|
|
8296
8298
|
}), C = Kt({
|
|
8297
|
-
id:
|
|
8299
|
+
id: b.id,
|
|
8298
8300
|
"aria-label": c.format("listboxLabel"),
|
|
8299
8301
|
"aria-labelledby": t["aria-labelledby"] || k.id
|
|
8300
8302
|
}), T = B(0), q = (L) => {
|
|
@@ -8369,7 +8371,7 @@ function Cc(t, e) {
|
|
|
8369
8371
|
inputProps: se(O, {
|
|
8370
8372
|
role: "combobox",
|
|
8371
8373
|
"aria-expanded": f["aria-expanded"],
|
|
8372
|
-
"aria-controls": e.isOpen ?
|
|
8374
|
+
"aria-controls": e.isOpen ? b.id : void 0,
|
|
8373
8375
|
// TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
|
|
8374
8376
|
"aria-autocomplete": "list",
|
|
8375
8377
|
"aria-activedescendant": V ? ml(e, V.key) : void 0,
|
|
@@ -8379,14 +8381,14 @@ function Cc(t, e) {
|
|
|
8379
8381
|
// This disable's the macOS Safari spell check auto corrections.
|
|
8380
8382
|
spellCheck: "false"
|
|
8381
8383
|
}),
|
|
8382
|
-
listBoxProps: se(
|
|
8384
|
+
listBoxProps: se(b, C, {
|
|
8383
8385
|
autoFocus: e.focusStrategy,
|
|
8384
8386
|
shouldUseVirtualFocus: !0,
|
|
8385
8387
|
shouldSelectOnPressUp: !0,
|
|
8386
8388
|
shouldFocusOnHover: !0,
|
|
8387
8389
|
linkBehavior: "selection"
|
|
8388
8390
|
}),
|
|
8389
|
-
descriptionProps:
|
|
8391
|
+
descriptionProps: p,
|
|
8390
8392
|
errorMessageProps: A,
|
|
8391
8393
|
isInvalid: S,
|
|
8392
8394
|
validationErrors: K,
|
|
@@ -8406,16 +8408,16 @@ function Ec(t, e, n) {
|
|
|
8406
8408
|
]), { menuTriggerProps: c, menuProps: f } = tr({
|
|
8407
8409
|
isDisabled: o,
|
|
8408
8410
|
type: "listbox"
|
|
8409
|
-
}, e, n),
|
|
8410
|
-
switch (
|
|
8411
|
+
}, e, n), b = (p) => {
|
|
8412
|
+
switch (p.key) {
|
|
8411
8413
|
case "ArrowLeft": {
|
|
8412
|
-
|
|
8414
|
+
p.preventDefault();
|
|
8413
8415
|
let A = e.selectedKey != null ? a.getKeyAbove(e.selectedKey) : a.getFirstKey();
|
|
8414
8416
|
A && e.setSelectedKey(A);
|
|
8415
8417
|
break;
|
|
8416
8418
|
}
|
|
8417
8419
|
case "ArrowRight": {
|
|
8418
|
-
|
|
8420
|
+
p.preventDefault();
|
|
8419
8421
|
let A = e.selectedKey != null ? a.getKeyBelow(e.selectedKey) : a.getFirstKey();
|
|
8420
8422
|
A && e.setSelectedKey(A);
|
|
8421
8423
|
break;
|
|
@@ -8424,8 +8426,8 @@ function Ec(t, e, n) {
|
|
|
8424
8426
|
}, { typeSelectProps: d } = dl({
|
|
8425
8427
|
keyboardDelegate: a,
|
|
8426
8428
|
selectionManager: e.selectionManager,
|
|
8427
|
-
onTypeSelect(
|
|
8428
|
-
e.setSelectedKey(
|
|
8429
|
+
onTypeSelect(p) {
|
|
8430
|
+
e.setSelectedKey(p);
|
|
8429
8431
|
}
|
|
8430
8432
|
}), { isInvalid: v, validationErrors: h, validationDetails: x } = e.displayValidation, { labelProps: _, fieldProps: w, descriptionProps: S, errorMessageProps: K } = Wo({
|
|
8431
8433
|
...t,
|
|
@@ -8452,18 +8454,18 @@ function Ec(t, e, n) {
|
|
|
8452
8454
|
triggerProps: se(g, {
|
|
8453
8455
|
...k,
|
|
8454
8456
|
isDisabled: o,
|
|
8455
|
-
onKeyDown: Qe(k.onKeyDown,
|
|
8457
|
+
onKeyDown: Qe(k.onKeyDown, b, t.onKeyDown),
|
|
8456
8458
|
onKeyUp: t.onKeyUp,
|
|
8457
8459
|
"aria-labelledby": [
|
|
8458
8460
|
O,
|
|
8459
8461
|
k["aria-labelledby"],
|
|
8460
8462
|
k["aria-label"] && !k["aria-labelledby"] ? k.id : null
|
|
8461
8463
|
].filter(Boolean).join(" "),
|
|
8462
|
-
onFocus(
|
|
8463
|
-
e.isFocused || (t.onFocus && t.onFocus(
|
|
8464
|
+
onFocus(p) {
|
|
8465
|
+
e.isFocused || (t.onFocus && t.onFocus(p), t.onFocusChange && t.onFocusChange(!0), e.setFocused(!0));
|
|
8464
8466
|
},
|
|
8465
|
-
onBlur(
|
|
8466
|
-
e.isOpen || (t.onBlur && t.onBlur(
|
|
8467
|
+
onBlur(p) {
|
|
8468
|
+
e.isOpen || (t.onBlur && t.onBlur(p), t.onFocusChange && t.onFocusChange(!1), e.setFocused(!1));
|
|
8467
8469
|
}
|
|
8468
8470
|
}),
|
|
8469
8471
|
valueProps: {
|
|
@@ -8476,8 +8478,8 @@ function Ec(t, e, n) {
|
|
|
8476
8478
|
shouldFocusOnHover: !0,
|
|
8477
8479
|
disallowEmptySelection: !0,
|
|
8478
8480
|
linkBehavior: "selection",
|
|
8479
|
-
onBlur: (
|
|
8480
|
-
|
|
8481
|
+
onBlur: (p) => {
|
|
8482
|
+
p.currentTarget.contains(p.relatedTarget) || (t.onBlur && t.onBlur(p), t.onFocusChange && t.onFocusChange(!1), e.setFocused(!1));
|
|
8481
8483
|
},
|
|
8482
8484
|
"aria-labelledby": [
|
|
8483
8485
|
w["aria-labelledby"],
|
|
@@ -8520,7 +8522,7 @@ function Pc(t, e, n) {
|
|
|
8520
8522
|
required: s === "native" && u,
|
|
8521
8523
|
name: i,
|
|
8522
8524
|
value: (f = e.selectedKey) !== null && f !== void 0 ? f : "",
|
|
8523
|
-
onChange: (
|
|
8525
|
+
onChange: (b) => e.setSelectedKey(b.target.value)
|
|
8524
8526
|
}
|
|
8525
8527
|
};
|
|
8526
8528
|
}
|
|
@@ -8539,12 +8541,12 @@ function wc(t) {
|
|
|
8539
8541
|
}, /* @__PURE__ */ Q.createElement("option", null), [
|
|
8540
8542
|
...e.collection.getKeys()
|
|
8541
8543
|
].map((f) => {
|
|
8542
|
-
let
|
|
8543
|
-
if (
|
|
8544
|
+
let b = e.collection.getItem(f);
|
|
8545
|
+
if (b.type === "item")
|
|
8544
8546
|
return /* @__PURE__ */ Q.createElement("option", {
|
|
8545
|
-
key:
|
|
8546
|
-
value:
|
|
8547
|
-
},
|
|
8547
|
+
key: b.key,
|
|
8548
|
+
value: b.key
|
|
8549
|
+
}, b.textValue);
|
|
8548
8550
|
})))) : o ? /* @__PURE__ */ Q.createElement("input", {
|
|
8549
8551
|
type: "hidden",
|
|
8550
8552
|
autoComplete: a.autoComplete,
|
|
@@ -8610,7 +8612,7 @@ const Sc = "_focused_1af8e_1", Tc = "_listbox_1af8e_10", _c = "_content_1af8e_89
|
|
|
8610
8612
|
"listbox--error": "_listbox--error_1af8e_469"
|
|
8611
8613
|
};
|
|
8612
8614
|
function es({ item: t, state: e }) {
|
|
8613
|
-
const n = B(null), { optionProps: r, descriptionProps: o, labelProps: i, isFocused: l, isFocusVisible: s } = bc({ key: t.key }, e, n), { description: u, startContent: a, endContent: c, color: f, showDivider:
|
|
8615
|
+
const n = B(null), { optionProps: r, descriptionProps: o, labelProps: i, isFocused: l, isFocusVisible: s } = bc({ key: t.key }, e, n), { description: u, startContent: a, endContent: c, color: f, showDivider: b, href: d, className: v } = t.props || {};
|
|
8614
8616
|
return /* @__PURE__ */ R(
|
|
8615
8617
|
d ? "a" : "li",
|
|
8616
8618
|
{
|
|
@@ -8622,7 +8624,7 @@ function es({ item: t, state: e }) {
|
|
|
8622
8624
|
v,
|
|
8623
8625
|
{
|
|
8624
8626
|
[Ce[`listbox-item--${f}`]]: f,
|
|
8625
|
-
[Ce.divider]:
|
|
8627
|
+
[Ce.divider]: b,
|
|
8626
8628
|
"fr-enlarge-link": d,
|
|
8627
8629
|
[Ce.focused]: l && s
|
|
8628
8630
|
}
|
|
@@ -8679,11 +8681,11 @@ function Fc({ section: t, state: e }) {
|
|
|
8679
8681
|
}
|
|
8680
8682
|
function nr(t) {
|
|
8681
8683
|
var d, v;
|
|
8682
|
-
const e = B(null), { listBoxRef: n = e, state: r, className: o, css: i = {}, color: l, topContent: s, bottomContent: u, ...a } = t, { listBoxProps: c } = pc(a, r, n), { isFocusVisible: f } = Zn(),
|
|
8684
|
+
const e = B(null), { listBoxRef: n = e, state: r, className: o, css: i = {}, color: l, topContent: s, bottomContent: u, ...a } = t, { listBoxProps: c } = pc(a, r, n), { isFocusVisible: f } = Zn(), b = [...r.collection].find((h) => h.props.href) ? "div" : "ul";
|
|
8683
8685
|
return /* @__PURE__ */ R("div", { className: y(Ce.listbox, o, i.base), style: { minWidth: ((v = (d = t == null ? void 0 : t.triggerRef) == null ? void 0 : d.current) == null ? void 0 : v.offsetWidth) || "auto" }, children: [
|
|
8684
8686
|
/* @__PURE__ */ m("span", { className: y(Ce["listbox-top"], i.top), children: s && s }),
|
|
8685
8687
|
/* @__PURE__ */ m(
|
|
8686
|
-
|
|
8688
|
+
b,
|
|
8687
8689
|
{
|
|
8688
8690
|
className: y(Ce["listbox-content"], i.list, { [Ce[`listbox--${l}`]]: l }),
|
|
8689
8691
|
ref: n,
|
|
@@ -8737,9 +8739,9 @@ function wd(t) {
|
|
|
8737
8739
|
...t,
|
|
8738
8740
|
defaultFilter: e,
|
|
8739
8741
|
allowsCustomValue: !0
|
|
8740
|
-
}), r = vt.useRef(null), o = vt.useRef(null), i = vt.useRef(null), l = vt.useRef(null), { size: s = "md", color: u, onSubmit: a, topContent: c, bottomContent: f, ...
|
|
8742
|
+
}), r = vt.useRef(null), o = vt.useRef(null), i = vt.useRef(null), l = vt.useRef(null), { size: s = "md", color: u, onSubmit: a, topContent: c, bottomContent: f, ...b } = t, { inputProps: d, listBoxProps: v } = Cc(
|
|
8741
8743
|
{
|
|
8742
|
-
...
|
|
8744
|
+
...b,
|
|
8743
8745
|
inputRef: r,
|
|
8744
8746
|
listBoxRef: o,
|
|
8745
8747
|
popoverRef: i,
|
|
@@ -8892,20 +8894,20 @@ const Kd = Rt, Dd = bo, Oc = "_focused_og068_1", Rc = "_listbox_og068_10", Vc =
|
|
|
8892
8894
|
"listbox--error": "_listbox--error_og068_470"
|
|
8893
8895
|
};
|
|
8894
8896
|
function ts({ item: t, state: e }) {
|
|
8895
|
-
const n = B(null), { menuItemProps: r, labelProps: o, descriptionProps: i, isFocused: l } = gc({ key: t.key }, e, n), { description: s, startContent: u, endContent: a, color: c, showDivider: f, href:
|
|
8897
|
+
const n = B(null), { menuItemProps: r, labelProps: o, descriptionProps: i, isFocused: l } = gc({ key: t.key }, e, n), { description: s, startContent: u, endContent: a, color: c, showDivider: f, href: b, className: d } = t.props || {};
|
|
8896
8898
|
return /* @__PURE__ */ R(
|
|
8897
|
-
|
|
8899
|
+
b ? "a" : "li",
|
|
8898
8900
|
{
|
|
8899
8901
|
...r,
|
|
8900
8902
|
ref: n,
|
|
8901
|
-
href:
|
|
8903
|
+
href: b,
|
|
8902
8904
|
className: y(
|
|
8903
8905
|
Se["listbox-item"],
|
|
8904
8906
|
d,
|
|
8905
8907
|
{
|
|
8906
8908
|
[Se[`listbox-item--${c}`]]: c,
|
|
8907
8909
|
[Se.divider]: f,
|
|
8908
|
-
"fr-enlarge-link":
|
|
8910
|
+
"fr-enlarge-link": b,
|
|
8909
8911
|
[Se.focused]: l
|
|
8910
8912
|
}
|
|
8911
8913
|
),
|
|
@@ -8983,7 +8985,7 @@ const Gc = me(
|
|
|
8983
8985
|
}
|
|
8984
8986
|
);
|
|
8985
8987
|
function Fd(t) {
|
|
8986
|
-
const { className: e, color: n, icon: r, iconPosition: o, size: i, variant: l, placement: s = "start", ...u } = t, a = au(u), c = B(null), { menuTriggerProps: f, menuProps:
|
|
8988
|
+
const { className: e, color: n, icon: r, iconPosition: o, size: i, variant: l, placement: s = "start", ...u } = t, a = au(u), c = B(null), { menuTriggerProps: f, menuProps: b } = tr({}, a, c), { isFocusVisible: d, focusProps: v } = Zn(), { buttonProps: h } = zo({ ...se(f, v) }, c);
|
|
8987
8989
|
return /* @__PURE__ */ R(Nn, { children: [
|
|
8988
8990
|
/* @__PURE__ */ m(
|
|
8989
8991
|
Gc,
|
|
@@ -9004,7 +9006,7 @@ function Fd(t) {
|
|
|
9004
9006
|
Wc,
|
|
9005
9007
|
{
|
|
9006
9008
|
...u,
|
|
9007
|
-
...
|
|
9009
|
+
...b
|
|
9008
9010
|
}
|
|
9009
9011
|
) })
|
|
9010
9012
|
] });
|