@q1travel/design-system 0.29.0 → 0.29.1
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/contracts/design.dark.md +1 -1
- package/contracts/design.md +1 -1
- package/dist-pkg/design-system.d.ts +9 -0
- package/dist-pkg/design-system.js +316 -308
- package/dist-pkg/style.css +55 -1
- package/package.json +1 -1
|
@@ -960,7 +960,7 @@ const vl = bt(function({ label: t, value: r, onClear: o, disabled: i, className:
|
|
|
960
960
|
] })
|
|
961
961
|
] });
|
|
962
962
|
});
|
|
963
|
-
function
|
|
963
|
+
function ae(...e) {
|
|
964
964
|
return e.filter(Boolean).join(" ");
|
|
965
965
|
}
|
|
966
966
|
function En({
|
|
@@ -976,7 +976,7 @@ function En({
|
|
|
976
976
|
className: p
|
|
977
977
|
}) {
|
|
978
978
|
const f = r ?? o;
|
|
979
|
-
return
|
|
979
|
+
return ae(
|
|
980
980
|
"button",
|
|
981
981
|
e ? `button--${e}` : "",
|
|
982
982
|
t && t !== "md" ? `button--${t}` : "",
|
|
@@ -1088,7 +1088,7 @@ function Ie(e) {
|
|
|
1088
1088
|
onTransitionEnd: j,
|
|
1089
1089
|
ref: Q,
|
|
1090
1090
|
...X
|
|
1091
|
-
} = e, U =
|
|
1091
|
+
} = e, U = ae(En({
|
|
1092
1092
|
variant: i,
|
|
1093
1093
|
size: a,
|
|
1094
1094
|
svgOnly: s,
|
|
@@ -1180,7 +1180,7 @@ function ma(e) {
|
|
|
1180
1180
|
onTransitionCancel: X,
|
|
1181
1181
|
ref: U,
|
|
1182
1182
|
...Y
|
|
1183
|
-
} = e, G = d ?? m, O = !!(u || G), J = !!(G && (c || a) || u && c), T =
|
|
1183
|
+
} = e, G = d ?? m, O = !!(u || G), J = !!(G && (c || a) || u && c), T = ae(
|
|
1184
1184
|
En({
|
|
1185
1185
|
variant: p,
|
|
1186
1186
|
size: f,
|
|
@@ -1243,7 +1243,7 @@ function ha(e) {
|
|
|
1243
1243
|
);
|
|
1244
1244
|
}
|
|
1245
1245
|
function wl({ href: e, tone: t = "default", external: r, className: o, children: i, ref: a, ...s }) {
|
|
1246
|
-
const c =
|
|
1246
|
+
const c = ae("q1-link", t !== "default" ? `q1-link--${t}` : "", o ?? "");
|
|
1247
1247
|
return e ? /* @__PURE__ */ y(
|
|
1248
1248
|
"a",
|
|
1249
1249
|
{
|
|
@@ -1251,13 +1251,13 @@ function wl({ href: e, tone: t = "default", external: r, className: o, children:
|
|
|
1251
1251
|
ref: a,
|
|
1252
1252
|
href: e,
|
|
1253
1253
|
className: c,
|
|
1254
|
-
rel: r ?
|
|
1254
|
+
rel: r ? ae("noopener noreferrer", s.rel ?? "") : s.rel,
|
|
1255
1255
|
children: [
|
|
1256
1256
|
i,
|
|
1257
1257
|
r ? /* @__PURE__ */ n(si, { className: "q1-link__external", "aria-hidden": "true", size: 14, strokeWidth: te }) : null
|
|
1258
1258
|
]
|
|
1259
1259
|
}
|
|
1260
|
-
) : /* @__PURE__ */ n("span", { ...ha(s), className:
|
|
1260
|
+
) : /* @__PURE__ */ n("span", { ...ha(s), className: ae(c, "q1-link--static"), children: i });
|
|
1261
1261
|
}
|
|
1262
1262
|
const ba = [
|
|
1263
1263
|
"button",
|
|
@@ -1354,7 +1354,7 @@ function Nl({
|
|
|
1354
1354
|
"div",
|
|
1355
1355
|
{
|
|
1356
1356
|
ref: i,
|
|
1357
|
-
className:
|
|
1357
|
+
className: ae("q1-toolbar", t === "vertical" ? "q1-toolbar--vertical" : "", o ?? ""),
|
|
1358
1358
|
role: "toolbar",
|
|
1359
1359
|
"aria-label": e,
|
|
1360
1360
|
"aria-orientation": t === "vertical" ? "vertical" : void 0,
|
|
@@ -1426,8 +1426,15 @@ function ya({
|
|
|
1426
1426
|
};
|
|
1427
1427
|
return k === void 0 ? /* @__PURE__ */ n(Ie, { ...L, svgOnly: !0, "aria-label": E, "aria-pressed": r }) : /* @__PURE__ */ n(Ie, { ...L, svgOnly: !0, "aria-label": E, selected: k });
|
|
1428
1428
|
}
|
|
1429
|
-
function kl({ className: e,
|
|
1430
|
-
|
|
1429
|
+
function kl({ className: e, ...t }) {
|
|
1430
|
+
const r = Object.fromEntries(Object.entries(t).filter(([o]) => o.startsWith("data-")));
|
|
1431
|
+
return /* @__PURE__ */ n("span", { ...r, className: ae("check-circle-fill", e), "aria-hidden": "true", children: /* @__PURE__ */ y("svg", { viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", strokeWidth: te * 20 / 24, strokeLinecap: "round", strokeLinejoin: "round", shapeRendering: "geometricPrecision", "aria-hidden": "true", focusable: "false", children: [
|
|
1432
|
+
/* @__PURE__ */ n("circle", { cx: "10", cy: "10", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1433
|
+
/* @__PURE__ */ n("path", { d: "M5.25 10.25 8.25 13.25 14.25 7.25", pathLength: "1" })
|
|
1434
|
+
] }) });
|
|
1435
|
+
}
|
|
1436
|
+
function xl({ className: e, "aria-label": t, ...r }) {
|
|
1437
|
+
return /* @__PURE__ */ y("button", { ...r, type: "button", className: ae("corner-remove-button", e), "aria-label": t, children: [
|
|
1431
1438
|
/* @__PURE__ */ n(Fe, { strokeWidth: te, "aria-hidden": "true" }),
|
|
1432
1439
|
/* @__PURE__ */ n(Pe, {})
|
|
1433
1440
|
] });
|
|
@@ -1696,7 +1703,7 @@ function Gr({
|
|
|
1696
1703
|
left: g.left,
|
|
1697
1704
|
top: g.top,
|
|
1698
1705
|
"--tt-caret": `${g.caret}px`
|
|
1699
|
-
},
|
|
1706
|
+
}, se = ae(
|
|
1700
1707
|
"q1-tooltip__bubble",
|
|
1701
1708
|
`q1-tooltip__bubble--${g.p}`,
|
|
1702
1709
|
d ? "q1-tooltip__bubble--open" : "",
|
|
@@ -1750,7 +1757,7 @@ function Gr({
|
|
|
1750
1757
|
ref: Y,
|
|
1751
1758
|
role: "tooltip",
|
|
1752
1759
|
id: A,
|
|
1753
|
-
className:
|
|
1760
|
+
className: se,
|
|
1754
1761
|
style: Z,
|
|
1755
1762
|
onMouseEnter: pe,
|
|
1756
1763
|
onMouseLeave: ke,
|
|
@@ -1846,7 +1853,7 @@ function Zt({
|
|
|
1846
1853
|
wide: s,
|
|
1847
1854
|
children: c
|
|
1848
1855
|
}) {
|
|
1849
|
-
const u = at(Jr), p =
|
|
1856
|
+
const u = at(Jr), p = ae("form-field", s ? "form-field--wide" : "", a ? "form-field--error" : ""), f = Ve(e, !!a), d = a || i;
|
|
1850
1857
|
return /* @__PURE__ */ y("div", { className: p, children: [
|
|
1851
1858
|
t?.trim() ? !r && o != null && o !== !1 && o !== "" ? /* @__PURE__ */ y("span", { className: "form-field__label-row", children: [
|
|
1852
1859
|
/* @__PURE__ */ n("label", { className: "form-field__label", htmlFor: e, children: t }),
|
|
@@ -1862,7 +1869,7 @@ function Zt({
|
|
|
1862
1869
|
] }) : /* @__PURE__ */ y(
|
|
1863
1870
|
"span",
|
|
1864
1871
|
{
|
|
1865
|
-
className:
|
|
1872
|
+
className: ae(
|
|
1866
1873
|
"form-field__message-region",
|
|
1867
1874
|
a ? "form-field__message" : i ? "form-field__description" : ""
|
|
1868
1875
|
),
|
|
@@ -1984,12 +1991,12 @@ function Tn({
|
|
|
1984
1991
|
}
|
|
1985
1992
|
) : null;
|
|
1986
1993
|
wt("Input", I, x);
|
|
1987
|
-
const O = a || !I && i ? Ve(M, !!a) : void 0, J =
|
|
1994
|
+
const O = a || !I && i ? Ve(M, !!a) : void 0, J = ae(
|
|
1988
1995
|
"form-control",
|
|
1989
1996
|
"form-control--input",
|
|
1990
1997
|
l !== "md" ? `form-control--${l}` : "",
|
|
1991
1998
|
w ?? ""
|
|
1992
|
-
), T =
|
|
1999
|
+
), T = ae("input-control", g ? "input-control--rounded" : ""), q = /* @__PURE__ */ n(
|
|
1993
2000
|
"input",
|
|
1994
2001
|
{
|
|
1995
2002
|
ref: _,
|
|
@@ -2044,7 +2051,7 @@ function Tn({
|
|
|
2044
2051
|
/* @__PURE__ */ n(Jt, { controlId: M, error: a })
|
|
2045
2052
|
] }) : $ : /* @__PURE__ */ n(Zt, { controlId: M, label: t, labelHidden: r, labelHint: o, description: i, error: a, wide: h, children: $ });
|
|
2046
2053
|
}
|
|
2047
|
-
function
|
|
2054
|
+
function Pl({
|
|
2048
2055
|
id: e,
|
|
2049
2056
|
name: t,
|
|
2050
2057
|
value: r,
|
|
@@ -2215,7 +2222,7 @@ function eo({
|
|
|
2215
2222
|
m.key === "Escape" && u && (m.preventDefault(), f());
|
|
2216
2223
|
} };
|
|
2217
2224
|
}
|
|
2218
|
-
function
|
|
2225
|
+
function Cl({
|
|
2219
2226
|
id: e,
|
|
2220
2227
|
placeholder: t,
|
|
2221
2228
|
value: r,
|
|
@@ -2251,7 +2258,7 @@ function Pl({
|
|
|
2251
2258
|
...h,
|
|
2252
2259
|
id: e,
|
|
2253
2260
|
ref: P,
|
|
2254
|
-
className:
|
|
2261
|
+
className: ae("form-control clearable__input", d ?? ""),
|
|
2255
2262
|
type: "text",
|
|
2256
2263
|
placeholder: t,
|
|
2257
2264
|
"aria-label": p,
|
|
@@ -2315,7 +2322,7 @@ function We({
|
|
|
2315
2322
|
a
|
|
2316
2323
|
] });
|
|
2317
2324
|
}
|
|
2318
|
-
function
|
|
2325
|
+
function Dl({
|
|
2319
2326
|
id: e,
|
|
2320
2327
|
size: t = "md",
|
|
2321
2328
|
ariaLabel: r,
|
|
@@ -2356,7 +2363,7 @@ function Cl({
|
|
|
2356
2363
|
...w,
|
|
2357
2364
|
id: e,
|
|
2358
2365
|
ref: k,
|
|
2359
|
-
className:
|
|
2366
|
+
className: ae("form-control search-input__field", typeof t == "string" && t !== "md" ? `form-control--${t}` : "", f ?? ""),
|
|
2360
2367
|
type: "search",
|
|
2361
2368
|
size: typeof t == "number" ? t : void 0,
|
|
2362
2369
|
"aria-label": r,
|
|
@@ -2375,7 +2382,7 @@ function Cl({
|
|
|
2375
2382
|
/* @__PURE__ */ n("span", { className: "q1-sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true", children: s ? "正在搜索…" : "" })
|
|
2376
2383
|
] });
|
|
2377
2384
|
}
|
|
2378
|
-
function
|
|
2385
|
+
function Il({
|
|
2379
2386
|
id: e,
|
|
2380
2387
|
label: t,
|
|
2381
2388
|
labelHidden: r = !1,
|
|
@@ -2396,7 +2403,7 @@ function Dl({
|
|
|
2396
2403
|
wt("Textarea", b, v);
|
|
2397
2404
|
const [P, E] = H(
|
|
2398
2405
|
() => typeof h.defaultValue == "string" ? h.defaultValue.length : 0
|
|
2399
|
-
), k = typeof h.value == "string" ? h.value.length : P, N = m !== void 0, S = a || !b && i ? Ve(w, !!a) : void 0, M =
|
|
2406
|
+
), k = typeof h.value == "string" ? h.value.length : P, N = m !== void 0, S = a || !b && i ? Ve(w, !!a) : void 0, M = ae(
|
|
2400
2407
|
"form-control",
|
|
2401
2408
|
"form-control--textarea",
|
|
2402
2409
|
f !== "md" ? `form-control--${f}` : "",
|
|
@@ -2455,12 +2462,12 @@ function to({
|
|
|
2455
2462
|
}) {
|
|
2456
2463
|
const D = R(null), P = xe(() => Ye(D, s), [s]);
|
|
2457
2464
|
if (wt("Select", !t?.trim(), D), l) throw new TypeError("Select 不支持 multiple;多值选择请使用 MultiSelect。");
|
|
2458
|
-
const E = i || a ? Ve(e, !!a) : void 0, k =
|
|
2465
|
+
const E = i || a ? Ve(e, !!a) : void 0, k = ae(
|
|
2459
2466
|
"form-control",
|
|
2460
2467
|
"form-control--select",
|
|
2461
2468
|
u !== "md" ? `form-control--${u}` : "",
|
|
2462
2469
|
d ?? ""
|
|
2463
|
-
), N =
|
|
2470
|
+
), N = ae(
|
|
2464
2471
|
"select-control",
|
|
2465
2472
|
p ? "select-control--prefixed" : "",
|
|
2466
2473
|
f ? "select-control--suffixed" : ""
|
|
@@ -2615,7 +2622,7 @@ function yn({
|
|
|
2615
2622
|
}
|
|
2616
2623
|
);
|
|
2617
2624
|
}
|
|
2618
|
-
function
|
|
2625
|
+
function El({
|
|
2619
2626
|
shape: e = "square",
|
|
2620
2627
|
tone: t = "neutral",
|
|
2621
2628
|
size: r = "sm",
|
|
@@ -2623,12 +2630,12 @@ function Il({
|
|
|
2623
2630
|
}) {
|
|
2624
2631
|
return e === "circle" ? /* @__PURE__ */ n($a, { tone: t, size: r, ...o, children: (i) => /* @__PURE__ */ n(yn, { ...i }) }) : /* @__PURE__ */ n(yn, { type: "checkbox", ...o });
|
|
2625
2632
|
}
|
|
2626
|
-
function
|
|
2633
|
+
function Tl({
|
|
2627
2634
|
...e
|
|
2628
2635
|
}) {
|
|
2629
2636
|
return /* @__PURE__ */ n(yn, { type: "radio", ...e });
|
|
2630
2637
|
}
|
|
2631
|
-
function
|
|
2638
|
+
function Ml({ id: e, ...t }) {
|
|
2632
2639
|
return {
|
|
2633
2640
|
component: /* @__PURE__ */ n("input", { id: e, type: "radio", ...t })
|
|
2634
2641
|
};
|
|
@@ -2637,7 +2644,7 @@ function Ra(...e) {
|
|
|
2637
2644
|
const t = Array.from(new Set(e.flatMap((r) => r?.trim().split(/\s+/).filter(Boolean) ?? [])));
|
|
2638
2645
|
return t.length > 0 ? t.join(" ") : void 0;
|
|
2639
2646
|
}
|
|
2640
|
-
function
|
|
2647
|
+
function Sl({
|
|
2641
2648
|
type: e,
|
|
2642
2649
|
label: t,
|
|
2643
2650
|
description: r,
|
|
@@ -2658,7 +2665,7 @@ function Ml({
|
|
|
2658
2665
|
return /* @__PURE__ */ y(
|
|
2659
2666
|
"label",
|
|
2660
2667
|
{
|
|
2661
|
-
className:
|
|
2668
|
+
className: ae("choicebox", `choicebox--${e}`, i),
|
|
2662
2669
|
"data-pointer-pressed": m ? "true" : void 0,
|
|
2663
2670
|
onBlur: () => w(),
|
|
2664
2671
|
onPointerCancel: w,
|
|
@@ -3009,7 +3016,7 @@ function Xe(e, t, r, o, i = {}) {
|
|
|
3009
3016
|
};
|
|
3010
3017
|
}, [s, c, e, r, w, t, a, i.side, i.popoverLayout?.offset, i.popoverLayout?.fixedSide, i.popoverLayout?.matchWidth, i.popoverLayout?.closeWhenAnchorHidden]), { portalPopup: (v) => l(v), placement: f, onOverlayKeyDown: h, focusInitialIfTopMost: g, portalRoot: w, requestClose: b };
|
|
3011
3018
|
}
|
|
3012
|
-
function
|
|
3019
|
+
function $l({
|
|
3013
3020
|
options: e,
|
|
3014
3021
|
value: t,
|
|
3015
3022
|
onChange: r,
|
|
@@ -3039,14 +3046,14 @@ function Sl({
|
|
|
3039
3046
|
isExpanded: Y,
|
|
3040
3047
|
isLoading: i
|
|
3041
3048
|
}), { portalPopup: T } = Xe(Y, _, F, () => I(!1)), q = o || N === "" ? e : e.filter((Z) => Z.label.toLowerCase().includes(N.toLowerCase())), $ = Y && !i && q[x] ? `${W}-opt-${x}` : void 0, z = !!d, ee = !!p || z, B = [f, z ? j : null].filter(Boolean).join(" ") || void 0, K = {};
|
|
3042
|
-
for (const [Z,
|
|
3043
|
-
Z.startsWith("data-") && (K[Z] =
|
|
3049
|
+
for (const [Z, se] of Object.entries(k))
|
|
3050
|
+
Z.startsWith("data-") && (K[Z] = se);
|
|
3044
3051
|
const ne = ce(
|
|
3045
3052
|
(Z) => {
|
|
3046
3053
|
L.current = Z;
|
|
3047
|
-
const
|
|
3054
|
+
const se = typeof E == "function" ? E(Z) : void 0;
|
|
3048
3055
|
return E && typeof E != "function" && (E.current = Z), () => {
|
|
3049
|
-
L.current = null, typeof
|
|
3056
|
+
L.current = null, typeof se == "function" ? se() : typeof E == "function" ? E(null) : E && (E.current = null);
|
|
3050
3057
|
};
|
|
3051
3058
|
},
|
|
3052
3059
|
[E]
|
|
@@ -3054,37 +3061,37 @@ function Sl({
|
|
|
3054
3061
|
re(() => {
|
|
3055
3062
|
}, [D, P]), re(() => {
|
|
3056
3063
|
if (!M) return;
|
|
3057
|
-
function Z(
|
|
3058
|
-
_.current && !_.current.contains(
|
|
3064
|
+
function Z(se) {
|
|
3065
|
+
_.current && !_.current.contains(se.target) && !F.current?.contains(se.target) && I(!1);
|
|
3059
3066
|
}
|
|
3060
3067
|
return document.addEventListener("mousedown", Z), () => document.removeEventListener("mousedown", Z);
|
|
3061
3068
|
}, [M]), re(() => {
|
|
3062
3069
|
U || I(!1);
|
|
3063
3070
|
}, [U]), fe(() => {
|
|
3064
3071
|
if (!$) return;
|
|
3065
|
-
const Z = F.current,
|
|
3066
|
-
if (!Z || !
|
|
3067
|
-
const we = Z.getBoundingClientRect(), ie =
|
|
3072
|
+
const Z = F.current, se = document.getElementById($);
|
|
3073
|
+
if (!Z || !se) return;
|
|
3074
|
+
const we = Z.getBoundingClientRect(), ie = se.getBoundingClientRect(), ue = we.top + Z.clientTop, ve = ue + Z.clientHeight;
|
|
3068
3075
|
ie.top < ue ? Z.scrollTop += ie.top - ue : ie.bottom > ve && (Z.scrollTop += ie.bottom - ve);
|
|
3069
3076
|
}, [$]);
|
|
3070
|
-
function oe(Z,
|
|
3077
|
+
function oe(Z, se = 0) {
|
|
3071
3078
|
const we = Z.findIndex((ie) => !ie.disabled);
|
|
3072
|
-
return we === -1 ?
|
|
3079
|
+
return we === -1 ? se : we;
|
|
3073
3080
|
}
|
|
3074
|
-
function me(Z,
|
|
3081
|
+
function me(Z, se = 0) {
|
|
3075
3082
|
for (let we = Z.length - 1; we >= 0; we--)
|
|
3076
3083
|
if (!Z[we].disabled) return we;
|
|
3077
|
-
return
|
|
3084
|
+
return se;
|
|
3078
3085
|
}
|
|
3079
|
-
function V(Z,
|
|
3086
|
+
function V(Z, se) {
|
|
3080
3087
|
if (q.length === 0) return 0;
|
|
3081
3088
|
let we = Z;
|
|
3082
3089
|
for (let ie = 0; ie < q.length; ie++)
|
|
3083
|
-
if (we = (we +
|
|
3090
|
+
if (we = (we + se + q.length) % q.length, !q[we].disabled) return we;
|
|
3084
3091
|
return Z;
|
|
3085
3092
|
}
|
|
3086
3093
|
function de() {
|
|
3087
|
-
const Z = Q === "" ? -1 : e.findIndex((
|
|
3094
|
+
const Z = Q === "" ? -1 : e.findIndex((se) => se.value === Q);
|
|
3088
3095
|
S(""), C(Z === -1 ? oe(e) : Z), I(!0);
|
|
3089
3096
|
}
|
|
3090
3097
|
function ye(Z) {
|
|
@@ -3104,26 +3111,26 @@ function Sl({
|
|
|
3104
3111
|
return;
|
|
3105
3112
|
}
|
|
3106
3113
|
if (Z.key === "ArrowDown")
|
|
3107
|
-
Z.preventDefault(), C((
|
|
3114
|
+
Z.preventDefault(), C((se) => V(se, 1));
|
|
3108
3115
|
else if (Z.key === "ArrowUp")
|
|
3109
|
-
Z.preventDefault(), C((
|
|
3116
|
+
Z.preventDefault(), C((se) => V(se, -1));
|
|
3110
3117
|
else if (Z.key === "Home")
|
|
3111
|
-
Z.preventDefault(), C((
|
|
3118
|
+
Z.preventDefault(), C((se) => oe(q, se));
|
|
3112
3119
|
else if (Z.key === "End")
|
|
3113
|
-
Z.preventDefault(), C((
|
|
3120
|
+
Z.preventDefault(), C((se) => me(q, se));
|
|
3114
3121
|
else if (Z.key === "Enter")
|
|
3115
3122
|
Z.preventDefault(), q[x] && ye(q[x]);
|
|
3116
3123
|
else if (Z.key === "Escape")
|
|
3117
3124
|
Z.preventDefault(), Z.stopPropagation(), I(!1);
|
|
3118
3125
|
else if (Z.key === "Tab") {
|
|
3119
|
-
const
|
|
3126
|
+
const se = F.current?.querySelector(
|
|
3120
3127
|
'.combobox__empty a[href], .combobox__empty button:not([disabled]), .combobox__empty input:not([disabled]), .combobox__empty select:not([disabled]), .combobox__empty textarea:not([disabled]), .combobox__empty [tabindex]:not([tabindex="-1"])'
|
|
3121
3128
|
);
|
|
3122
|
-
|
|
3129
|
+
se && !Z.shiftKey ? (Z.preventDefault(), se.focus()) : I(!1);
|
|
3123
3130
|
}
|
|
3124
3131
|
}
|
|
3125
3132
|
}
|
|
3126
|
-
const De =
|
|
3133
|
+
const De = ae(
|
|
3127
3134
|
"combobox",
|
|
3128
3135
|
s !== "md" ? `combobox--${s}` : "",
|
|
3129
3136
|
ee ? "combobox--error" : "",
|
|
@@ -3171,8 +3178,8 @@ function Sl({
|
|
|
3171
3178
|
"aria-describedby": B,
|
|
3172
3179
|
onChange: (Z) => {
|
|
3173
3180
|
if (!U) return;
|
|
3174
|
-
const
|
|
3175
|
-
o?.(
|
|
3181
|
+
const se = Z.target.value, we = o || se === "" ? e : e.filter((ie) => ie.label.toLowerCase().includes(se.toLowerCase()));
|
|
3182
|
+
o?.(se), S(se), C(oe(we)), I(!0);
|
|
3176
3183
|
},
|
|
3177
3184
|
onFocus: () => U && !M && de(),
|
|
3178
3185
|
onMouseDown: () => U && !M && de(),
|
|
@@ -3201,30 +3208,30 @@ function Sl({
|
|
|
3201
3208
|
role: "listbox",
|
|
3202
3209
|
"aria-label": a,
|
|
3203
3210
|
"aria-busy": i || void 0,
|
|
3204
|
-
children: i ? /* @__PURE__ */ n("li", { className: "combobox__loading", role: "status", "aria-live": "polite", children: "正在加载…" }) : q.map((Z,
|
|
3211
|
+
children: i ? /* @__PURE__ */ n("li", { className: "combobox__loading", role: "status", "aria-live": "polite", children: "正在加载…" }) : q.map((Z, se) => {
|
|
3205
3212
|
const we = Q !== "" && Z.value === Q;
|
|
3206
3213
|
return /* @__PURE__ */ y(
|
|
3207
3214
|
"li",
|
|
3208
3215
|
{
|
|
3209
|
-
id: `${W}-opt-${
|
|
3216
|
+
id: `${W}-opt-${se}`,
|
|
3210
3217
|
role: "option",
|
|
3211
3218
|
"aria-selected": we,
|
|
3212
3219
|
"aria-disabled": Z.disabled || void 0,
|
|
3213
|
-
"data-pressed": G ===
|
|
3214
|
-
className:
|
|
3220
|
+
"data-pressed": G === se || void 0,
|
|
3221
|
+
className: ae(
|
|
3215
3222
|
"combobox__option",
|
|
3216
|
-
|
|
3223
|
+
se === x && "combobox__option--active",
|
|
3217
3224
|
Z.disabled && "combobox__option--disabled"
|
|
3218
3225
|
),
|
|
3219
|
-
onMouseEnter: () => !Z.disabled && C(
|
|
3226
|
+
onMouseEnter: () => !Z.disabled && C(se),
|
|
3220
3227
|
onMouseDown: (ie) => {
|
|
3221
3228
|
ie.preventDefault();
|
|
3222
3229
|
},
|
|
3223
|
-
onPointerDown: (ie) => O(ie,
|
|
3224
|
-
onPointerUp: () => J(
|
|
3225
|
-
onPointerCancel: () => J(
|
|
3226
|
-
onPointerLeave: () => J(
|
|
3227
|
-
onLostPointerCapture: () => J(
|
|
3230
|
+
onPointerDown: (ie) => O(ie, se, Z.disabled),
|
|
3231
|
+
onPointerUp: () => J(se),
|
|
3232
|
+
onPointerCancel: () => J(se),
|
|
3233
|
+
onPointerLeave: () => J(se),
|
|
3234
|
+
onLostPointerCapture: () => J(se),
|
|
3228
3235
|
onClick: () => ye(Z),
|
|
3229
3236
|
children: [
|
|
3230
3237
|
Z.prefix ? /* @__PURE__ */ n("span", { className: "combobox__option-prefix", "aria-hidden": "true", children: Z.prefix }) : null,
|
|
@@ -3255,7 +3262,7 @@ const Ba = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowRight", "ArrowUp", "Arrow
|
|
|
3255
3262
|
function za(e, t) {
|
|
3256
3263
|
return e.find((r) => r.value === t)?.value ?? e.find((r) => !r.disabled)?.value ?? "";
|
|
3257
3264
|
}
|
|
3258
|
-
function
|
|
3265
|
+
function ql({
|
|
3259
3266
|
options: e,
|
|
3260
3267
|
ariaLabel: t,
|
|
3261
3268
|
name: r,
|
|
@@ -3294,7 +3301,7 @@ function $l({
|
|
|
3294
3301
|
function x(_) {
|
|
3295
3302
|
E((L) => L === _ ? null : L);
|
|
3296
3303
|
}
|
|
3297
|
-
const C =
|
|
3304
|
+
const C = ae("switch-control", `switch-control--${s}`, c ? "switch-control--full" : "");
|
|
3298
3305
|
return /* @__PURE__ */ n("div", { className: C, role: "radiogroup", "aria-label": t, children: e.map((_, L) => {
|
|
3299
3306
|
const F = _.value === h, W = /* @__PURE__ */ y(
|
|
3300
3307
|
"button",
|
|
@@ -3334,7 +3341,7 @@ function $l({
|
|
|
3334
3341
|
return /* @__PURE__ */ n("span", { className: "switch-control__option-wrapper", role: "presentation", children: _.tooltip && !_.disabled ? /* @__PURE__ */ n(Gr, { content: _.tooltip, children: W }) : W }, _.value);
|
|
3335
3342
|
}) });
|
|
3336
3343
|
}
|
|
3337
|
-
function
|
|
3344
|
+
function Rl({
|
|
3338
3345
|
checked: e,
|
|
3339
3346
|
defaultOn: t = !1,
|
|
3340
3347
|
onChange: r,
|
|
@@ -3387,10 +3394,10 @@ function io({ tokens: e }) {
|
|
|
3387
3394
|
(t, r) => t.type ? /* @__PURE__ */ n("span", { className: `tok-${t.type}`, translate: "no", children: t.text }, r) : /* @__PURE__ */ n("span", { translate: "no", children: t.text }, r)
|
|
3388
3395
|
) });
|
|
3389
3396
|
}
|
|
3390
|
-
function
|
|
3397
|
+
function Ll({ lines: e, ariaLabel: t }) {
|
|
3391
3398
|
return /* @__PURE__ */ n("pre", { className: "code-block", "aria-label": t, translate: "no", children: /* @__PURE__ */ n("code", { children: e.map((r, o) => /* @__PURE__ */ n("span", { className: "code-line", children: /* @__PURE__ */ n(io, { tokens: r }) }, o)) }) });
|
|
3392
3399
|
}
|
|
3393
|
-
function
|
|
3400
|
+
function Al({ children: e }) {
|
|
3394
3401
|
return /* @__PURE__ */ n("code", { className: "code-inline", translate: "no", children: e });
|
|
3395
3402
|
}
|
|
3396
3403
|
const Wa = {
|
|
@@ -3398,7 +3405,7 @@ const Wa = {
|
|
|
3398
3405
|
added: { marker: "+", label: "新增行" },
|
|
3399
3406
|
removed: { marker: "−", label: "删除行" }
|
|
3400
3407
|
};
|
|
3401
|
-
function
|
|
3408
|
+
function Fl(e) {
|
|
3402
3409
|
const { lineNumbers: t = !0, variant: r = "default" } = e, o = r === "flush" && !e.tabs && !e.filename, [i, a] = H(0), s = e.tabs ? e.tabs[i] ?? e.tabs[0] : void 0, c = s ? s.lines : e.lines ?? [], u = s ? s.filename : e.filename, p = c.map((m) => m.tokens.map((g) => g.text).join("")).join(`
|
|
3403
3410
|
`), f = c.some((m) => m.state);
|
|
3404
3411
|
let d = 0;
|
|
@@ -3464,7 +3471,7 @@ function Al(e) {
|
|
|
3464
3471
|
}
|
|
3465
3472
|
);
|
|
3466
3473
|
}
|
|
3467
|
-
function
|
|
3474
|
+
function Ol({
|
|
3468
3475
|
tabs: e,
|
|
3469
3476
|
ariaLabel: t,
|
|
3470
3477
|
variant: r = "default",
|
|
@@ -3618,11 +3625,11 @@ function Fl({
|
|
|
3618
3625
|
);
|
|
3619
3626
|
}
|
|
3620
3627
|
const ao = st(null);
|
|
3621
|
-
function
|
|
3628
|
+
function Bl({ multiple: e, children: t }) {
|
|
3622
3629
|
const [r, o] = H(null), [i, a] = H();
|
|
3623
3630
|
return /* @__PURE__ */ n("div", { className: "collapse-group", children: /* @__PURE__ */ n(ao.Provider, { value: e ? null : { openId: r, setOpenId: o, inputModality: i, setInputModality: a }, children: t }) });
|
|
3624
3631
|
}
|
|
3625
|
-
function
|
|
3632
|
+
function zl({
|
|
3626
3633
|
title: e,
|
|
3627
3634
|
defaultOpen: t,
|
|
3628
3635
|
small: r,
|
|
@@ -3690,7 +3697,7 @@ function Gn(e, t, r) {
|
|
|
3690
3697
|
function Ka() {
|
|
3691
3698
|
return /Mac|iPhone|iPad|iPod/.test(navigator.platform) ? "⌘K" : "Ctrl K";
|
|
3692
3699
|
}
|
|
3693
|
-
function
|
|
3700
|
+
function Wl({ sections: e, triggerLabel: t = "打开命令面板", hotkey: r }) {
|
|
3694
3701
|
const o = le(), i = `${o}-dialog`, a = `${o}-listbox`, [s, c] = H(!1), [u, p] = H(""), [f, d] = H(0), [m, g] = H(!1), [h, l] = H(), [w, b] = H("Ctrl K"), v = R(null), D = R(null), P = R(null), E = R(null), k = xe(() => {
|
|
3695
3702
|
const A = u.trim().toLowerCase();
|
|
3696
3703
|
let j = 0;
|
|
@@ -3896,7 +3903,7 @@ function Qn(e, t) {
|
|
|
3896
3903
|
function Zn(e, t, r) {
|
|
3897
3904
|
return `${e}-option-${t}-${r}`;
|
|
3898
3905
|
}
|
|
3899
|
-
function
|
|
3906
|
+
function Kl({
|
|
3900
3907
|
open: e,
|
|
3901
3908
|
onOpenChange: t,
|
|
3902
3909
|
query: r,
|
|
@@ -4236,7 +4243,7 @@ function Ua({
|
|
|
4236
4243
|
visualSnapshot: e ? t : s.current
|
|
4237
4244
|
};
|
|
4238
4245
|
}
|
|
4239
|
-
function
|
|
4246
|
+
function Vl({
|
|
4240
4247
|
open: e,
|
|
4241
4248
|
onClose: t,
|
|
4242
4249
|
title: r,
|
|
@@ -4478,7 +4485,7 @@ function Qa(e) {
|
|
|
4478
4485
|
const t = getComputedStyle(e).transform;
|
|
4479
4486
|
return t === "none" ? 0 : new DOMMatrixReadOnly(t).m42;
|
|
4480
4487
|
}
|
|
4481
|
-
function
|
|
4488
|
+
function Hl({
|
|
4482
4489
|
open: e,
|
|
4483
4490
|
onClose: t,
|
|
4484
4491
|
title: r,
|
|
@@ -4614,7 +4621,7 @@ function Vl({
|
|
|
4614
4621
|
)
|
|
4615
4622
|
);
|
|
4616
4623
|
}
|
|
4617
|
-
function
|
|
4624
|
+
function Ul({
|
|
4618
4625
|
icon: e,
|
|
4619
4626
|
title: t,
|
|
4620
4627
|
description: r,
|
|
@@ -4629,7 +4636,7 @@ function Hl({
|
|
|
4629
4636
|
o ? /* @__PURE__ */ n("div", { className: "empty-state__actions", children: o }) : null
|
|
4630
4637
|
] });
|
|
4631
4638
|
}
|
|
4632
|
-
function
|
|
4639
|
+
function jl({
|
|
4633
4640
|
leading: e,
|
|
4634
4641
|
title: t,
|
|
4635
4642
|
subtitle: r,
|
|
@@ -4646,7 +4653,7 @@ function Ul({
|
|
|
4646
4653
|
o ? /* @__PURE__ */ n("div", { className: "entity__trailing", children: o }) : null
|
|
4647
4654
|
] });
|
|
4648
4655
|
}
|
|
4649
|
-
function
|
|
4656
|
+
function Yl({
|
|
4650
4657
|
label: e,
|
|
4651
4658
|
size: t = "md",
|
|
4652
4659
|
action: r,
|
|
@@ -4660,7 +4667,7 @@ function jl({
|
|
|
4660
4667
|
"div",
|
|
4661
4668
|
{
|
|
4662
4669
|
...c,
|
|
4663
|
-
className:
|
|
4670
|
+
className: ae("error-msg", `error-msg--${t}`, i),
|
|
4664
4671
|
"aria-live": a,
|
|
4665
4672
|
"aria-atomic": s,
|
|
4666
4673
|
children: [
|
|
@@ -4675,7 +4682,7 @@ function jl({
|
|
|
4675
4682
|
}
|
|
4676
4683
|
);
|
|
4677
4684
|
}
|
|
4678
|
-
function
|
|
4685
|
+
function Xl({ title: e, message: t, action: r }) {
|
|
4679
4686
|
return /* @__PURE__ */ y("div", { className: "error-card", role: "alert", "aria-live": "assertive", children: [
|
|
4680
4687
|
/* @__PURE__ */ n(ct, { className: "error-card__icon", size: 20, strokeWidth: te, "aria-hidden": "true" }),
|
|
4681
4688
|
/* @__PURE__ */ y("p", { className: "error-card__title", children: [
|
|
@@ -4686,7 +4693,7 @@ function Yl({ title: e, message: t, action: r }) {
|
|
|
4686
4693
|
r ? /* @__PURE__ */ n("div", { className: "error-card__actions", children: r }) : null
|
|
4687
4694
|
] });
|
|
4688
4695
|
}
|
|
4689
|
-
function
|
|
4696
|
+
function Gl({
|
|
4690
4697
|
title: e,
|
|
4691
4698
|
description: t,
|
|
4692
4699
|
layout: r = "center",
|
|
@@ -4766,7 +4773,7 @@ const nt = [
|
|
|
4766
4773
|
{ value: 3, label: "满意", Icon: Ar },
|
|
4767
4774
|
{ value: 4, label: "非常满意", Icon: qr }
|
|
4768
4775
|
];
|
|
4769
|
-
function
|
|
4776
|
+
function Ql({
|
|
4770
4777
|
label: e = "反馈",
|
|
4771
4778
|
prompt: t = "为此次体验评分",
|
|
4772
4779
|
inline: r = !1,
|
|
@@ -4983,7 +4990,7 @@ function Gl({
|
|
|
4983
4990
|
T
|
|
4984
4991
|
] });
|
|
4985
4992
|
}
|
|
4986
|
-
function
|
|
4993
|
+
function Zl({
|
|
4987
4994
|
title: e,
|
|
4988
4995
|
subtitle: t,
|
|
4989
4996
|
tone: r,
|
|
@@ -4994,7 +5001,7 @@ function Ql({
|
|
|
4994
5001
|
"aria-label": c,
|
|
4995
5002
|
"aria-labelledby": u
|
|
4996
5003
|
}) {
|
|
4997
|
-
const p =
|
|
5004
|
+
const p = ae("fieldset", r ? `fieldset--${r}` : "");
|
|
4998
5005
|
return /* @__PURE__ */ y(
|
|
4999
5006
|
"fieldset",
|
|
5000
5007
|
{
|
|
@@ -5021,7 +5028,7 @@ function lo(e, t, r, o, i) {
|
|
|
5021
5028
|
i.push({ path: u, name: s.name, type: s.type, level: t, parentPath: r, hasChildren: p, setsize: a, posinset: c + 1 }), s.type === "folder" && o.has(u) && s.children && lo(s.children, t + 1, u, o, i);
|
|
5022
5029
|
});
|
|
5023
5030
|
}
|
|
5024
|
-
function
|
|
5031
|
+
function Jl({
|
|
5025
5032
|
nodes: e,
|
|
5026
5033
|
label: t = "项目目录",
|
|
5027
5034
|
defaultExpanded: r = []
|
|
@@ -5099,7 +5106,7 @@ function ns({
|
|
|
5099
5106
|
decorative: t = !0,
|
|
5100
5107
|
className: r
|
|
5101
5108
|
}) {
|
|
5102
|
-
const o =
|
|
5109
|
+
const o = ae("separator", `separator--${e}`, r ?? "");
|
|
5103
5110
|
return t ? /* @__PURE__ */ n("div", { className: o, "aria-hidden": "true" }) : /* @__PURE__ */ n("div", { className: o, role: "separator", "aria-orientation": e });
|
|
5104
5111
|
}
|
|
5105
5112
|
function rs(e) {
|
|
@@ -5108,7 +5115,7 @@ function rs(e) {
|
|
|
5108
5115
|
/* @__PURE__ */ n("path", { d: "M213.2,208.8c16.2-15.6,45.3-47.6,45.3-66.6s-20.3-45.3-45.3-45.3-45.3,20.3-45.3,45.3,29.1,50.9,45.3,66.6Z" })
|
|
5109
5116
|
] }) });
|
|
5110
5117
|
}
|
|
5111
|
-
function
|
|
5118
|
+
function eu({
|
|
5112
5119
|
name: e,
|
|
5113
5120
|
icon: t,
|
|
5114
5121
|
brand: r = "奇异旅行",
|
|
@@ -5124,7 +5131,7 @@ function Jl({
|
|
|
5124
5131
|
...s,
|
|
5125
5132
|
role: "img",
|
|
5126
5133
|
"aria-label": a ?? `${e} ${c}`,
|
|
5127
|
-
className:
|
|
5134
|
+
className: ae("q1-product-lockup", `q1-product-lockup--${o}`, i ?? ""),
|
|
5128
5135
|
children: [
|
|
5129
5136
|
/* @__PURE__ */ n("span", { className: "q1-product-lockup__icon", "aria-hidden": "true", children: t ?? /* @__PURE__ */ n(rs, {}) }),
|
|
5130
5137
|
/* @__PURE__ */ n("span", { className: "q1-product-lockup__name", children: e }),
|
|
@@ -5134,7 +5141,7 @@ function Jl({
|
|
|
5134
5141
|
}
|
|
5135
5142
|
);
|
|
5136
5143
|
}
|
|
5137
|
-
function
|
|
5144
|
+
function tu({
|
|
5138
5145
|
htmlFor: e,
|
|
5139
5146
|
required: t,
|
|
5140
5147
|
hint: r,
|
|
@@ -5270,7 +5277,7 @@ function is({
|
|
|
5270
5277
|
}, [e, t]), e ? r : { x: 0, y: 0 };
|
|
5271
5278
|
}
|
|
5272
5279
|
const as = (e) => e.type === "item" && !e.disabled || e.type === "link";
|
|
5273
|
-
function
|
|
5280
|
+
function nu({
|
|
5274
5281
|
label: e,
|
|
5275
5282
|
entries: t,
|
|
5276
5283
|
children: r
|
|
@@ -5405,7 +5412,7 @@ function Mn(e, t) {
|
|
|
5405
5412
|
)).filter((s) => !s.closest('[inert], [hidden], [aria-hidden="true"]') && s.getClientRects().length > 0 && s.tabIndex >= 0), i = o.indexOf(e);
|
|
5406
5413
|
o[i + 1]?.focus();
|
|
5407
5414
|
}
|
|
5408
|
-
function
|
|
5415
|
+
function ru({
|
|
5409
5416
|
entries: e,
|
|
5410
5417
|
size: t = "md",
|
|
5411
5418
|
disabled: r,
|
|
@@ -5504,7 +5511,7 @@ function nu({
|
|
|
5504
5511
|
) : null
|
|
5505
5512
|
] });
|
|
5506
5513
|
}
|
|
5507
|
-
function
|
|
5514
|
+
function ou({
|
|
5508
5515
|
tone: e,
|
|
5509
5516
|
label: t,
|
|
5510
5517
|
showLabel: r = !1,
|
|
@@ -5519,7 +5526,7 @@ function ru({
|
|
|
5519
5526
|
const a = o ? `${o}:${t}` : t;
|
|
5520
5527
|
return /* @__PURE__ */ n("span", { className: i, role: "img", "aria-label": a, title: a });
|
|
5521
5528
|
}
|
|
5522
|
-
function
|
|
5529
|
+
function iu({
|
|
5523
5530
|
tone: e = "neutral",
|
|
5524
5531
|
subtle: t = !1,
|
|
5525
5532
|
quiet: r = !1,
|
|
@@ -5532,7 +5539,7 @@ function ou({
|
|
|
5532
5539
|
children: p,
|
|
5533
5540
|
...f
|
|
5534
5541
|
}) {
|
|
5535
|
-
const d =
|
|
5542
|
+
const d = ae(
|
|
5536
5543
|
"badge",
|
|
5537
5544
|
o ? "badge--inverted" : r ? "badge--quiet" : `badge--${e}${t ? "-subtle" : ""}`,
|
|
5538
5545
|
i === "md" ? "" : `badge--${i}`,
|
|
@@ -5547,7 +5554,7 @@ function ou({
|
|
|
5547
5554
|
)
|
|
5548
5555
|
] });
|
|
5549
5556
|
}
|
|
5550
|
-
function
|
|
5557
|
+
function au({
|
|
5551
5558
|
href: e,
|
|
5552
5559
|
size: t = "md",
|
|
5553
5560
|
icon: r,
|
|
@@ -5563,7 +5570,7 @@ function iu({
|
|
|
5563
5570
|
onPointerUp: m,
|
|
5564
5571
|
...g
|
|
5565
5572
|
}) {
|
|
5566
|
-
const [h, l] = H(!1), [w, b] = H(), v =
|
|
5573
|
+
const [h, l] = H(!1), [w, b] = H(), v = ae("badge", "badge--pill", t === "md" ? "" : `badge--${t}`, i), P = r != null && (a == null || a === "") ? { "aria-label": o } : {};
|
|
5567
5574
|
function E() {
|
|
5568
5575
|
l(!1);
|
|
5569
5576
|
}
|
|
@@ -5644,8 +5651,8 @@ function cs({ title: e, onDismiss: t }) {
|
|
|
5644
5651
|
const r = uo();
|
|
5645
5652
|
return /* @__PURE__ */ n("button", { className: "banner__close", type: "button", "aria-label": `关闭「${e}」横幅`, onClick: t, ...r, children: /* @__PURE__ */ n(Fe, { "aria-hidden": "true", size: 16, strokeWidth: te }) });
|
|
5646
5653
|
}
|
|
5647
|
-
function
|
|
5648
|
-
const p = r === void 0 && !s, f =
|
|
5654
|
+
function su({ title: e, children: t, tone: r, icon: o, action: i, onDismiss: a, progress: s, className: c, ...u }) {
|
|
5655
|
+
const p = r === void 0 && !s, f = ae(
|
|
5649
5656
|
"banner",
|
|
5650
5657
|
p ? "banner--announcement" : r === "neutral" ? "" : `banner--${r}`,
|
|
5651
5658
|
s ? "banner--progress" : "",
|
|
@@ -5727,7 +5734,7 @@ function us(e) {
|
|
|
5727
5734
|
};
|
|
5728
5735
|
}
|
|
5729
5736
|
function rr({ secondary: e, divided: t, direction: r, shadow: o, bordered: i, className: a }, s) {
|
|
5730
|
-
return
|
|
5737
|
+
return ae(
|
|
5731
5738
|
"q1-card",
|
|
5732
5739
|
s ? "q1-card--hover" : "",
|
|
5733
5740
|
e ? "q1-card--secondary" : "",
|
|
@@ -5795,7 +5802,7 @@ function ds(e) {
|
|
|
5795
5802
|
} = e;
|
|
5796
5803
|
return /* @__PURE__ */ n("div", { className: rr(e, !1), ...f, children: p });
|
|
5797
5804
|
}
|
|
5798
|
-
function
|
|
5805
|
+
function cu({ title: e, description: t, action: r, className: o }) {
|
|
5799
5806
|
return /* @__PURE__ */ y(ds, { bordered: !1, className: ["auth-card", o].filter(Boolean).join(" "), children: [
|
|
5800
5807
|
/* @__PURE__ */ y("div", { className: "auth-card__copy", children: [
|
|
5801
5808
|
/* @__PURE__ */ n("h1", { children: e }),
|
|
@@ -5805,16 +5812,16 @@ function su({ title: e, description: t, action: r, className: o }) {
|
|
|
5805
5812
|
] });
|
|
5806
5813
|
}
|
|
5807
5814
|
function fs({ className: e, variant: t = "panel", ...r }) {
|
|
5808
|
-
return /* @__PURE__ */ n("aside", { className:
|
|
5815
|
+
return /* @__PURE__ */ n("aside", { className: ae("q1-sidebar", t === "plain" && "q1-sidebar--plain", e), ...r });
|
|
5809
5816
|
}
|
|
5810
5817
|
function ms({ className: e, ...t }) {
|
|
5811
|
-
return /* @__PURE__ */ n("div", { className:
|
|
5818
|
+
return /* @__PURE__ */ n("div", { className: ae("q1-sidebar__header", e), ...t });
|
|
5812
5819
|
}
|
|
5813
5820
|
function ps({ className: e, ...t }) {
|
|
5814
|
-
return /* @__PURE__ */ n("div", { className:
|
|
5821
|
+
return /* @__PURE__ */ n("div", { className: ae("q1-sidebar__content", e), ...t });
|
|
5815
5822
|
}
|
|
5816
5823
|
function hs({ className: e, ...t }) {
|
|
5817
|
-
return /* @__PURE__ */ n("div", { className:
|
|
5824
|
+
return /* @__PURE__ */ n("div", { className: ae("q1-sidebar__footer", e), ...t });
|
|
5818
5825
|
}
|
|
5819
5826
|
const Pt = Object.assign(fs, {
|
|
5820
5827
|
Header: ms,
|
|
@@ -5832,7 +5839,7 @@ function _s(e) {
|
|
|
5832
5839
|
return i(), o.addEventListener("change", i), () => o.removeEventListener("change", i);
|
|
5833
5840
|
}, [e]), t;
|
|
5834
5841
|
}
|
|
5835
|
-
function
|
|
5842
|
+
function lu({
|
|
5836
5843
|
"aria-label": e,
|
|
5837
5844
|
open: t,
|
|
5838
5845
|
onOpenChange: r,
|
|
@@ -5987,11 +5994,11 @@ function cu({
|
|
|
5987
5994
|
) : null
|
|
5988
5995
|
] });
|
|
5989
5996
|
}
|
|
5990
|
-
function
|
|
5997
|
+
function uu({ className: e, orientation: t = "vertical", variant: r = "default", ...o }) {
|
|
5991
5998
|
return /* @__PURE__ */ n(
|
|
5992
5999
|
"nav",
|
|
5993
6000
|
{
|
|
5994
|
-
className:
|
|
6001
|
+
className: ae(
|
|
5995
6002
|
"q1-navigation",
|
|
5996
6003
|
t === "horizontal" && "q1-navigation--horizontal",
|
|
5997
6004
|
t === "horizontal" && r === "line" && "q1-navigation--line",
|
|
@@ -6001,12 +6008,12 @@ function lu({ className: e, orientation: t = "vertical", variant: r = "default",
|
|
|
6001
6008
|
}
|
|
6002
6009
|
);
|
|
6003
6010
|
}
|
|
6004
|
-
function
|
|
6011
|
+
function du({ label: e, action: t, children: r, className: o, ...i }) {
|
|
6005
6012
|
const a = le(), s = e !== void 0;
|
|
6006
6013
|
return /* @__PURE__ */ y(
|
|
6007
6014
|
"section",
|
|
6008
6015
|
{
|
|
6009
|
-
className:
|
|
6016
|
+
className: ae("q1-navigation__section", o),
|
|
6010
6017
|
...i,
|
|
6011
6018
|
"aria-labelledby": s ? a : i["aria-labelledby"],
|
|
6012
6019
|
children: [
|
|
@@ -6019,8 +6026,8 @@ function uu({ label: e, action: t, children: r, className: o, ...i }) {
|
|
|
6019
6026
|
}
|
|
6020
6027
|
);
|
|
6021
6028
|
}
|
|
6022
|
-
function
|
|
6023
|
-
const { active: t, disabled: r, icon: o, badge: i, description: a, action: s, children: c, className: u, href: p, ...f } = e, d =
|
|
6029
|
+
function fu(e) {
|
|
6030
|
+
const { active: t, disabled: r, icon: o, badge: i, description: a, action: s, children: c, className: u, href: p, ...f } = e, d = ae(
|
|
6024
6031
|
"q1-navigation__item",
|
|
6025
6032
|
t && "q1-navigation__item--active",
|
|
6026
6033
|
r && "q1-navigation__item--disabled",
|
|
@@ -6059,7 +6066,7 @@ function du(e) {
|
|
|
6059
6066
|
s ? /* @__PURE__ */ n("span", { className: "q1-navigation__item-action", children: s }) : null
|
|
6060
6067
|
] });
|
|
6061
6068
|
}
|
|
6062
|
-
function
|
|
6069
|
+
function mu({
|
|
6063
6070
|
label: e,
|
|
6064
6071
|
icon: t,
|
|
6065
6072
|
expanded: r,
|
|
@@ -6833,7 +6840,7 @@ function Ts({
|
|
|
6833
6840
|
s ? /* @__PURE__ */ n("span", { className: "q1-avatar-button__badge", "aria-hidden": "true", children: /* @__PURE__ */ n($i, { size: 8, strokeWidth: 2.5 }) }) : null
|
|
6834
6841
|
] }), m = {
|
|
6835
6842
|
...p,
|
|
6836
|
-
className:
|
|
6843
|
+
className: ae("q1-avatar-button", c),
|
|
6837
6844
|
style: f,
|
|
6838
6845
|
"aria-label": e
|
|
6839
6846
|
};
|
|
@@ -7095,7 +7102,7 @@ function $s({
|
|
|
7095
7102
|
children: q.map((K) => {
|
|
7096
7103
|
const ne = z.get(K.id), oe = C.findIndex(
|
|
7097
7104
|
(we) => we.kind === "item" && we.group.id === T.id && we.item.id === K.id
|
|
7098
|
-
), me = K.id === i, V = !!(K.disabled || me), de = (K.kind ?? "context") === "context", ye = de && T.selectedId === K.id, pe = K.metaLabel ? `${E(K.id)}-meta` : void 0, ke = [ne ? E(ne) : void 0, pe].filter(Boolean).join(" ") || void 0, De = `item:${K.id}`, Z = Ke(V),
|
|
7105
|
+
), me = K.id === i, V = !!(K.disabled || me), de = (K.kind ?? "context") === "context", ye = de && T.selectedId === K.id, pe = K.metaLabel ? `${E(K.id)}-meta` : void 0, ke = [ne ? E(ne) : void 0, pe].filter(Boolean).join(" ") || void 0, De = `item:${K.id}`, Z = Ke(V), se = K.children ? Kt(Z, Y.getTriggerProps(De, V), (we) => {
|
|
7099
7106
|
A.current[oe] = we;
|
|
7100
7107
|
}) : {
|
|
7101
7108
|
...Z,
|
|
@@ -7122,7 +7129,7 @@ function $s({
|
|
|
7122
7129
|
"aria-busy": me || void 0,
|
|
7123
7130
|
"data-context-id": K.id,
|
|
7124
7131
|
"data-context-roving-tab-stop": U === oe ? "" : void 0,
|
|
7125
|
-
...
|
|
7132
|
+
...se,
|
|
7126
7133
|
children: [
|
|
7127
7134
|
K.avatar ? /* @__PURE__ */ n("span", { className: "q1-context-switcher__avatar", "aria-hidden": "true", children: K.avatar }) : null,
|
|
7128
7135
|
/* @__PURE__ */ y("span", { className: "q1-context-switcher__item-content", children: [
|
|
@@ -7322,7 +7329,7 @@ function Bs(e, t, r) {
|
|
|
7322
7329
|
});
|
|
7323
7330
|
return d.observe(i, { childList: !0, subtree: !0 }), document.addEventListener("focusin", f, !0), { disconnect: p };
|
|
7324
7331
|
}
|
|
7325
|
-
function
|
|
7332
|
+
function pu({
|
|
7326
7333
|
currentContext: e,
|
|
7327
7334
|
groups: t,
|
|
7328
7335
|
open: r,
|
|
@@ -7581,14 +7588,14 @@ function Vs({ title: e, ellipsis: t, children: r }) {
|
|
|
7581
7588
|
) : null
|
|
7582
7589
|
] }) : /* @__PURE__ */ n("dd", { className: "description__value", children: r });
|
|
7583
7590
|
}
|
|
7584
|
-
function
|
|
7591
|
+
function hu({
|
|
7585
7592
|
title: e,
|
|
7586
7593
|
tooltip: t,
|
|
7587
7594
|
align: r,
|
|
7588
7595
|
ellipsis: o,
|
|
7589
7596
|
children: i
|
|
7590
7597
|
}) {
|
|
7591
|
-
const a =
|
|
7598
|
+
const a = ae("description", r === "right" ? "description--right" : "");
|
|
7592
7599
|
return /* @__PURE__ */ y("dl", { className: a, children: [
|
|
7593
7600
|
/* @__PURE__ */ y("dt", { className: "description__title", children: [
|
|
7594
7601
|
e,
|
|
@@ -7834,7 +7841,7 @@ function Gs(e) {
|
|
|
7834
7841
|
const t = e.props;
|
|
7835
7842
|
return ["button", "input", "select", "textarea", "summary"].includes(e.type) || e.type === "a" && typeof t.href == "string" || typeof t.tabIndex == "number" && t.tabIndex >= 0 || t.contentEditable === !0 || t.contentEditable === "true";
|
|
7836
7843
|
}
|
|
7837
|
-
function
|
|
7844
|
+
function bu({
|
|
7838
7845
|
name: e,
|
|
7839
7846
|
identity: t,
|
|
7840
7847
|
rows: r,
|
|
@@ -7845,7 +7852,7 @@ function hu({
|
|
|
7845
7852
|
align: c = "start",
|
|
7846
7853
|
children: u
|
|
7847
7854
|
}) {
|
|
7848
|
-
const f = `context-card-${le().replace(/:/g, "")}`, d = Xs({ id: f, placement: s, align: c }), m =
|
|
7855
|
+
const f = `context-card-${le().replace(/:/g, "")}`, d = Xs({ id: f, placement: s, align: c }), m = ae(
|
|
7849
7856
|
"context-card-wrap",
|
|
7850
7857
|
`context-card-wrap--${s}`,
|
|
7851
7858
|
c !== "start" ? `context-card-wrap--align-${c}` : "",
|
|
@@ -7862,7 +7869,7 @@ function hu({
|
|
|
7862
7869
|
let h;
|
|
7863
7870
|
Ot(u) && u.type !== Le && Gs(u) ? h = Ut(u, {
|
|
7864
7871
|
...g,
|
|
7865
|
-
className:
|
|
7872
|
+
className: ae("context-card__trigger", u.props.className),
|
|
7866
7873
|
onFocus: (b) => {
|
|
7867
7874
|
u.props.onFocus?.(b), d.onTriggerFocus();
|
|
7868
7875
|
},
|
|
@@ -7893,7 +7900,7 @@ function hu({
|
|
|
7893
7900
|
children: u
|
|
7894
7901
|
}
|
|
7895
7902
|
);
|
|
7896
|
-
const l =
|
|
7903
|
+
const l = ae(
|
|
7897
7904
|
"context-card",
|
|
7898
7905
|
d.open && d.positioned ? "context-card--open" : "",
|
|
7899
7906
|
d.pointerMotion ? "context-card--pointer" : "context-card--instant"
|
|
@@ -7983,7 +7990,7 @@ function Qs(e) {
|
|
|
7983
7990
|
}
|
|
7984
7991
|
};
|
|
7985
7992
|
}
|
|
7986
|
-
function
|
|
7993
|
+
function gu({
|
|
7987
7994
|
title: e,
|
|
7988
7995
|
variant: t = "stripe",
|
|
7989
7996
|
color: r,
|
|
@@ -8002,7 +8009,7 @@ function bu({
|
|
|
8002
8009
|
onPointerUp: l,
|
|
8003
8010
|
...w
|
|
8004
8011
|
}) {
|
|
8005
|
-
const b =
|
|
8012
|
+
const b = ae("book", `book--${t}`, c ? "book--textured" : "", p), v = typeof u == "number" ? Number.isFinite(u) && u > 0 ? `${u}px` : void 0 : u, D = {
|
|
8006
8013
|
...f,
|
|
8007
8014
|
...r ? { "--book-cover": r } : null,
|
|
8008
8015
|
...o ? { "--book-band": o } : null,
|
|
@@ -8030,14 +8037,14 @@ function bu({
|
|
|
8030
8037
|
] }) });
|
|
8031
8038
|
}
|
|
8032
8039
|
function Zs({ className: e } = {}) {
|
|
8033
|
-
return /* @__PURE__ */ y("span", { className:
|
|
8040
|
+
return /* @__PURE__ */ y("span", { className: ae("browser__dots", e), "aria-hidden": "true", children: [
|
|
8034
8041
|
/* @__PURE__ */ n("span", { className: "browser__dot browser__dot--close" }),
|
|
8035
8042
|
/* @__PURE__ */ n("span", { className: "browser__dot browser__dot--minimize" }),
|
|
8036
8043
|
/* @__PURE__ */ n("span", { className: "browser__dot browser__dot--expand" })
|
|
8037
8044
|
] });
|
|
8038
8045
|
}
|
|
8039
8046
|
function Js({ className: e } = {}) {
|
|
8040
|
-
return /* @__PURE__ */ y("span", { className:
|
|
8047
|
+
return /* @__PURE__ */ y("span", { className: ae("browser__controls", e), "aria-hidden": "true", children: [
|
|
8041
8048
|
/* @__PURE__ */ n(Oo, { size: 14, strokeWidth: te }),
|
|
8042
8049
|
/* @__PURE__ */ n(zo, { size: 14, strokeWidth: te }),
|
|
8043
8050
|
/* @__PURE__ */ n(Li, { size: 14, strokeWidth: te })
|
|
@@ -8072,7 +8079,7 @@ function tc({ address: e, className: t }) {
|
|
|
8072
8079
|
E.isPrimary && E.button === 0 && g.current === void 0 && f(!0);
|
|
8073
8080
|
}
|
|
8074
8081
|
const P = b === "success" ? "已复制网址" : b === "error" ? "无法复制网址,请手动选择网址。" : "";
|
|
8075
|
-
return /* @__PURE__ */ y("span", { className:
|
|
8082
|
+
return /* @__PURE__ */ y("span", { className: ae("browser__address", t), "data-status": b, children: [
|
|
8076
8083
|
/* @__PURE__ */ y("span", { className: "browser__url", title: e, translate: "no", children: [
|
|
8077
8084
|
/* @__PURE__ */ n("span", { className: "browser__url-head", children: o }),
|
|
8078
8085
|
i ? /* @__PURE__ */ n("span", { className: "browser__url-tail", children: i }) : null
|
|
@@ -8106,13 +8113,13 @@ function tc({ address: e, className: t }) {
|
|
|
8106
8113
|
] });
|
|
8107
8114
|
}
|
|
8108
8115
|
function nc({ tabs: e, className: t }) {
|
|
8109
|
-
return /* @__PURE__ */ n("div", { className:
|
|
8116
|
+
return /* @__PURE__ */ n("div", { className: ae("browser__tabs", t), "aria-hidden": "true", children: e.map((r, o) => (
|
|
8110
8117
|
// key 带 index:label 是装饰文案不保证唯一,纯 label 做 key 在同名标签时会撞车。
|
|
8111
8118
|
/* @__PURE__ */ n("span", { className: `browser__tab${r.isActive ? " browser__tab--active" : ""}`, children: r.label }, `${r.label}-${o}`)
|
|
8112
8119
|
)) });
|
|
8113
8120
|
}
|
|
8114
|
-
function
|
|
8115
|
-
return /* @__PURE__ */ y("div", { className:
|
|
8121
|
+
function _u({ address: e, variant: t = "dark", tabs: r, children: o, className: i, ...a }) {
|
|
8122
|
+
return /* @__PURE__ */ y("div", { className: ae("browser", `browser--${t}`, i), ...a, children: [
|
|
8116
8123
|
/* @__PURE__ */ y("div", { className: "browser__chrome", children: [
|
|
8117
8124
|
r && r.length > 0 ? /* @__PURE__ */ n(nc, { tabs: r }) : null,
|
|
8118
8125
|
/* @__PURE__ */ y("div", { className: "browser__bar", children: [
|
|
@@ -8126,7 +8133,7 @@ function gu({ address: e, variant: t = "dark", tabs: r, children: o, className:
|
|
|
8126
8133
|
/* @__PURE__ */ n("div", { className: "browser__body", children: o })
|
|
8127
8134
|
] });
|
|
8128
8135
|
}
|
|
8129
|
-
function
|
|
8136
|
+
function yu() {
|
|
8130
8137
|
return /* @__PURE__ */ y("div", { className: "browser__placeholder", "aria-hidden": "true", children: [
|
|
8131
8138
|
/* @__PURE__ */ n("span", { className: "browser__skeleton-line browser__skeleton-line--medium" }),
|
|
8132
8139
|
/* @__PURE__ */ n("span", { className: "browser__skeleton-line browser__skeleton-line--short" }),
|
|
@@ -8139,7 +8146,7 @@ const go = (e) => e !== void 0 && Number.isFinite(e) && e > 0 ? e : void 0, _o =
|
|
|
8139
8146
|
};
|
|
8140
8147
|
function oc({ title: e, src: t, letter: r, glyph: o, placeholder: i = !1, icon: a, iconColor: s, size: c, className: u }) {
|
|
8141
8148
|
const [p, f] = H(null), d = go(c), m = !!t && p !== t, g = e.trim() || "头像", h = r ? { variant: "avatar--letter", node: r } : o ? { variant: "avatar--glyph", node: o } : { variant: "avatar--letter", node: rc(e) }, l = i ? "avatar--placeholder" : m ? "avatar--image" : h.variant, w = i ? { "aria-hidden": !0 } : m ? {} : { role: "img", "aria-label": g };
|
|
8142
|
-
return /* @__PURE__ */ y("span", { className:
|
|
8149
|
+
return /* @__PURE__ */ y("span", { className: ae("avatar", l, u), style: _o(d), ...w, children: [
|
|
8143
8150
|
m ? /* @__PURE__ */ n(
|
|
8144
8151
|
"img",
|
|
8145
8152
|
{
|
|
@@ -8162,7 +8169,7 @@ function oc({ title: e, src: t, letter: r, glyph: o, placeholder: i = !1, icon:
|
|
|
8162
8169
|
) : null
|
|
8163
8170
|
] });
|
|
8164
8171
|
}
|
|
8165
|
-
function
|
|
8172
|
+
function vu({
|
|
8166
8173
|
members: e,
|
|
8167
8174
|
label: t,
|
|
8168
8175
|
size: r,
|
|
@@ -8172,7 +8179,7 @@ function yu({
|
|
|
8172
8179
|
className: s
|
|
8173
8180
|
}) {
|
|
8174
8181
|
const c = go(r), u = c ?? 32, p = o !== void 0 && Number.isFinite(o) && o >= 0 ? Math.floor(o) : void 0, f = p !== void 0 && e.length > p ? e.slice(0, p) : e, d = e.length - f.length, m = f.length + (d > 0 ? 1 : 0), g = i !== "auto" && Number.isFinite(i) ? Math.max(0, i) : Math.round(u * 0.3), h = { ..._o(c), "--q1-avatar-overlap": `${g}px` }, l = (b) => a ? void 0 : m - 1 - b, w = t ? { role: "group", "aria-label": t } : {};
|
|
8175
|
-
return /* @__PURE__ */ y("span", { className:
|
|
8182
|
+
return /* @__PURE__ */ y("span", { className: ae("avatar-group", s), style: h, ...w, children: [
|
|
8176
8183
|
f.map((b, v) => (
|
|
8177
8184
|
// 成员不再 aria-hidden——每个 Avatar 自带 aria-label(名字),读屏逐个念。
|
|
8178
8185
|
/* @__PURE__ */ n("span", { className: "avatar-group__item", style: { zIndex: l(v) }, children: /* @__PURE__ */ n(oc, { ...b, size: c }) }, `${b.title}-${v}`)
|
|
@@ -8195,7 +8202,7 @@ function yu({
|
|
|
8195
8202
|
) : null
|
|
8196
8203
|
] });
|
|
8197
8204
|
}
|
|
8198
|
-
function
|
|
8205
|
+
function wu({
|
|
8199
8206
|
shape: e = "rounded",
|
|
8200
8207
|
animated: t = !0,
|
|
8201
8208
|
show: r = !1,
|
|
@@ -8204,7 +8211,7 @@ function vu({
|
|
|
8204
8211
|
children: a,
|
|
8205
8212
|
...s
|
|
8206
8213
|
}) {
|
|
8207
|
-
const c = a != null, u = c && r ? "ready" : "loading", p =
|
|
8214
|
+
const c = a != null, u = c && r ? "ready" : "loading", p = ae(
|
|
8208
8215
|
"skeleton",
|
|
8209
8216
|
`skeleton--${e}`,
|
|
8210
8217
|
t ? "" : "skeleton--static",
|
|
@@ -8224,7 +8231,7 @@ function vu({
|
|
|
8224
8231
|
) : /* @__PURE__ */ n(o, { ...s, className: p, "data-state": "loading", "aria-hidden": "true", inert: !0 });
|
|
8225
8232
|
}
|
|
8226
8233
|
const ic = { sm: 2, md: 3, lg: 4 };
|
|
8227
|
-
function
|
|
8234
|
+
function Nu({ label: e, size: t = "md" }) {
|
|
8228
8235
|
const r = typeof t == "number" ? t : ic[t], o = { width: r, height: r };
|
|
8229
8236
|
return /* @__PURE__ */ y("span", { className: "loading-dots-wrap", "aria-live": e ? "polite" : void 0, children: [
|
|
8230
8237
|
e ? /* @__PURE__ */ n("span", { className: "loading-dots__label", children: e }) : null,
|
|
@@ -8236,7 +8243,7 @@ function wu({ label: e, size: t = "md" }) {
|
|
|
8236
8243
|
] });
|
|
8237
8244
|
}
|
|
8238
8245
|
const pr = 8, ac = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
8239
|
-
function
|
|
8246
|
+
function ku({ text: e, tailLength: t = pr, mono: r = !1 }) {
|
|
8240
8247
|
const o = Number.isFinite(t) ? Math.max(0, Math.floor(t)) : pr, i = Array.from(ac.segment(e), ({ segment: u }) => u), a = Math.max(0, i.length - o), s = i.slice(0, a).join(""), c = i.slice(a).join("");
|
|
8241
8248
|
return /* @__PURE__ */ y("span", { className: `middle-truncate${r ? " middle-truncate--mono" : ""}`, title: e, "aria-label": e, children: [
|
|
8242
8249
|
/* @__PURE__ */ n("span", { className: "q1-sr-only", children: e }),
|
|
@@ -8246,7 +8253,7 @@ function Nu({ text: e, tailLength: t = pr, mono: r = !1 }) {
|
|
|
8246
8253
|
] })
|
|
8247
8254
|
] });
|
|
8248
8255
|
}
|
|
8249
|
-
function
|
|
8256
|
+
function xu({ children: e }) {
|
|
8250
8257
|
return /* @__PURE__ */ y("div", { className: "phone", children: [
|
|
8251
8258
|
/* @__PURE__ */ n("span", { className: "phone__island", "aria-hidden": "true" }),
|
|
8252
8259
|
/* @__PURE__ */ n("span", { className: "phone__btn phone__btn--mute", "aria-hidden": "true" }),
|
|
@@ -8288,7 +8295,7 @@ const cc = {
|
|
|
8288
8295
|
warning: yt,
|
|
8289
8296
|
error: ct
|
|
8290
8297
|
};
|
|
8291
|
-
function
|
|
8298
|
+
function Pu({ variant: e = "default", message: t, action: r }) {
|
|
8292
8299
|
const o = cc[e];
|
|
8293
8300
|
return /* @__PURE__ */ y("div", { className: `project-banner project-banner--${e}`, role: "status", children: [
|
|
8294
8301
|
/* @__PURE__ */ n(o, { className: "project-banner__icon", size: 15, strokeWidth: te, "aria-hidden": "true" }),
|
|
@@ -8296,7 +8303,7 @@ function xu({ variant: e = "default", message: t, action: r }) {
|
|
|
8296
8303
|
/* @__PURE__ */ n(sc, { action: r })
|
|
8297
8304
|
] });
|
|
8298
8305
|
}
|
|
8299
|
-
function
|
|
8306
|
+
function Cu({
|
|
8300
8307
|
text: e,
|
|
8301
8308
|
copyValue: t,
|
|
8302
8309
|
successMessage: r,
|
|
@@ -8344,7 +8351,7 @@ const lc = {
|
|
|
8344
8351
|
danger: { Icon: jt, label: "错误" },
|
|
8345
8352
|
warning: { Icon: yt, label: "警告" }
|
|
8346
8353
|
}, uc = typeof document > "u" ? re : fe;
|
|
8347
|
-
function
|
|
8354
|
+
function Du({
|
|
8348
8355
|
text: e,
|
|
8349
8356
|
prompt: t = !0,
|
|
8350
8357
|
inverted: r = !1,
|
|
@@ -8353,7 +8360,7 @@ function Cu({
|
|
|
8353
8360
|
onCopy: a
|
|
8354
8361
|
}) {
|
|
8355
8362
|
const { copied: s, copy: c, reset: u } = In({ success: "inline", resetAfterMs: 2e3 }), p = Array.isArray(e) ? e : [e], f = i ?? p.join(`
|
|
8356
|
-
`), d = o ? lc[o] : void 0, m =
|
|
8363
|
+
`), d = o ? lc[o] : void 0, m = ae("snippet", r ? "snippet--inverted" : "", o ? `snippet--${o}` : ""), g = R(f), h = g.current !== f, l = R(!1), w = R(!1), [b, v] = H(!1), [D, P] = H(!1), [E, k] = H("instant");
|
|
8357
8364
|
re(() => (w.current = !0, () => {
|
|
8358
8365
|
w.current = !1;
|
|
8359
8366
|
}), []), uc(() => {
|
|
@@ -8444,7 +8451,7 @@ function pc(e, t, r) {
|
|
|
8444
8451
|
function hc(e, t, r) {
|
|
8445
8452
|
return r || (t === "health" ? e >= hr.success ? "success" : e >= hr.warning ? "warning" : "danger" : dc(e));
|
|
8446
8453
|
}
|
|
8447
|
-
function
|
|
8454
|
+
function Iu({
|
|
8448
8455
|
value: e,
|
|
8449
8456
|
size: t = "md",
|
|
8450
8457
|
showValue: r = !1,
|
|
@@ -8595,7 +8602,7 @@ function _c({ action: e, disabled: t }) {
|
|
|
8595
8602
|
}
|
|
8596
8603
|
);
|
|
8597
8604
|
}
|
|
8598
|
-
function
|
|
8605
|
+
function Eu({
|
|
8599
8606
|
tone: e = "info",
|
|
8600
8607
|
size: t = "default",
|
|
8601
8608
|
filled: r = !1,
|
|
@@ -8604,7 +8611,7 @@ function Iu({
|
|
|
8604
8611
|
action: a,
|
|
8605
8612
|
children: s
|
|
8606
8613
|
}) {
|
|
8607
|
-
const c = gc[e], u =
|
|
8614
|
+
const c = gc[e], u = ae(
|
|
8608
8615
|
"note",
|
|
8609
8616
|
`note--${e}`,
|
|
8610
8617
|
`note--${t}`,
|
|
@@ -8623,7 +8630,7 @@ function Iu({
|
|
|
8623
8630
|
function yc(e) {
|
|
8624
8631
|
return !e.defaultPrevented && e.button === 0 && !e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey;
|
|
8625
8632
|
}
|
|
8626
|
-
function
|
|
8633
|
+
function Tu({ previous: e, next: t, onNavigate: r, children: o }) {
|
|
8627
8634
|
const i = (a) => r ? (s) => {
|
|
8628
8635
|
yc(s) && (s.preventDefault(), r(a, s));
|
|
8629
8636
|
} : void 0;
|
|
@@ -8669,7 +8676,7 @@ function wc({
|
|
|
8669
8676
|
tone: t = "default",
|
|
8670
8677
|
label: r = "正在加载…"
|
|
8671
8678
|
}) {
|
|
8672
|
-
const o =
|
|
8679
|
+
const o = ae("spinner", `spinner--${e}`, t !== "default" ? `spinner--${t}` : ""), i = vc[e];
|
|
8673
8680
|
return /* @__PURE__ */ y("span", { className: o, role: "status", children: [
|
|
8674
8681
|
Array.from({ length: i }, (a, s) => /* @__PURE__ */ n(
|
|
8675
8682
|
"span",
|
|
@@ -8716,7 +8723,7 @@ function Pc(e, t, r) {
|
|
|
8716
8723
|
const o = Math.min(e * t, Math.floor(r));
|
|
8717
8724
|
return { start: Math.min((e - 1) * t + 1, o), end: o };
|
|
8718
8725
|
}
|
|
8719
|
-
function
|
|
8726
|
+
function Mu({
|
|
8720
8727
|
page: e,
|
|
8721
8728
|
pageSize: t = 20,
|
|
8722
8729
|
total: r,
|
|
@@ -8860,7 +8867,7 @@ function yr(e, t) {
|
|
|
8860
8867
|
const o = r.call(e, Cc);
|
|
8861
8868
|
return !!(o && o !== t);
|
|
8862
8869
|
}
|
|
8863
|
-
function
|
|
8870
|
+
function Su({
|
|
8864
8871
|
data: e,
|
|
8865
8872
|
columns: t,
|
|
8866
8873
|
rowKey: r,
|
|
@@ -8889,12 +8896,12 @@ function Mu({
|
|
|
8889
8896
|
rowIndex: q,
|
|
8890
8897
|
key: r(T, q),
|
|
8891
8898
|
disabled: h?.getRowDisabled?.(T, q) ?? !1
|
|
8892
|
-
})), N = new Set(h?.selectedKeys ?? []), S = h ? k.filter((T) => !T.disabled) : [], M = S.filter((T) => N.has(T.key)), I = S.length > 0 && M.length === S.length, x = M.length > 0 && !I, C =
|
|
8899
|
+
})), N = new Set(h?.selectedKeys ?? []), S = h ? k.filter((T) => !T.disabled) : [], M = S.filter((T) => N.has(T.key)), I = S.length > 0 && M.length === S.length, x = M.length > 0 && !I, C = ae(
|
|
8893
8900
|
"table",
|
|
8894
8901
|
i === "compact" && "table--compact",
|
|
8895
8902
|
a && "table--sticky-header",
|
|
8896
8903
|
D
|
|
8897
|
-
), _ = c === void 0 ? P : { ...P, minWidth: c }, L =
|
|
8904
|
+
), _ = c === void 0 ? P : { ...P, minWidth: c }, L = ae(
|
|
8898
8905
|
"table__scroll",
|
|
8899
8906
|
(a || s !== void 0) && "table__scroll--vertical"
|
|
8900
8907
|
), F = s === void 0 ? void 0 : { maxHeight: s }, W = a || s !== void 0 || c !== void 0;
|
|
@@ -9000,7 +9007,7 @@ function Mu({
|
|
|
9000
9007
|
J
|
|
9001
9008
|
] });
|
|
9002
9009
|
}
|
|
9003
|
-
function
|
|
9010
|
+
function $u({
|
|
9004
9011
|
items: e,
|
|
9005
9012
|
initial: t = 4,
|
|
9006
9013
|
controls: r,
|
|
@@ -9058,7 +9065,7 @@ function Su({
|
|
|
9058
9065
|
) }) : null
|
|
9059
9066
|
] });
|
|
9060
9067
|
}
|
|
9061
|
-
function
|
|
9068
|
+
function qu({
|
|
9062
9069
|
loading: e,
|
|
9063
9070
|
loadingLabel: t = "正在加载更多内容…",
|
|
9064
9071
|
noGap: r,
|
|
@@ -9083,7 +9090,7 @@ function $u({
|
|
|
9083
9090
|
...m,
|
|
9084
9091
|
ref: f,
|
|
9085
9092
|
type: a,
|
|
9086
|
-
className:
|
|
9093
|
+
className: ae(
|
|
9087
9094
|
"load-more-btn",
|
|
9088
9095
|
r ? "load-more-btn--no-gap" : "",
|
|
9089
9096
|
o ? "load-more-btn--no-border-radius" : "",
|
|
@@ -9130,7 +9137,7 @@ function Dc(e) {
|
|
|
9130
9137
|
function Tt(e, t, r) {
|
|
9131
9138
|
return t >= e.left && t <= e.right && r >= e.top && r <= e.bottom;
|
|
9132
9139
|
}
|
|
9133
|
-
function
|
|
9140
|
+
function Ru({
|
|
9134
9141
|
relative: e,
|
|
9135
9142
|
relativeLong: t,
|
|
9136
9143
|
iso: r,
|
|
@@ -9384,7 +9391,7 @@ function yo({ value: e, depth: t, path: r, collapsedDepth: o, highlight: i, seen
|
|
|
9384
9391
|
return /* @__PURE__ */ n(
|
|
9385
9392
|
"li",
|
|
9386
9393
|
{
|
|
9387
|
-
className:
|
|
9394
|
+
className: ae("q1-json-view__row", C && "q1-json-view__row--highlight"),
|
|
9388
9395
|
children: /* @__PURE__ */ n(
|
|
9389
9396
|
yo,
|
|
9390
9397
|
{
|
|
@@ -9411,7 +9418,7 @@ function Nn(e, t) {
|
|
|
9411
9418
|
const r = new Set(t).add(e);
|
|
9412
9419
|
return Array.isArray(e) ? `[${e.map((i) => Nn(i, r)).join(", ")}]` : `{${Object.entries(e).map(([i, a]) => `${JSON.stringify(i)}: ${Nn(a, r)}`).join(", ")}}`;
|
|
9413
9420
|
}
|
|
9414
|
-
function
|
|
9421
|
+
function Lu({
|
|
9415
9422
|
value: e,
|
|
9416
9423
|
singleLine: t = !1,
|
|
9417
9424
|
wrap: r = !1,
|
|
@@ -9421,7 +9428,7 @@ function Ru({
|
|
|
9421
9428
|
label: s = "JSON 数据",
|
|
9422
9429
|
className: c
|
|
9423
9430
|
}) {
|
|
9424
|
-
const u = new Set(i ?? []), p =
|
|
9431
|
+
const u = new Set(i ?? []), p = ae(
|
|
9425
9432
|
"q1-json-view",
|
|
9426
9433
|
a && "q1-json-view--embedded",
|
|
9427
9434
|
r && !t && "q1-json-view--wrap",
|
|
@@ -9453,7 +9460,7 @@ function Sc(e) {
|
|
|
9453
9460
|
function $c() {
|
|
9454
9461
|
return Cn(Sc, wo, () => !0);
|
|
9455
9462
|
}
|
|
9456
|
-
function
|
|
9463
|
+
function Au({
|
|
9457
9464
|
src: e,
|
|
9458
9465
|
poster: t,
|
|
9459
9466
|
tracks: r,
|
|
@@ -9682,7 +9689,7 @@ function Oc({ small: e, disabled: t }) {
|
|
|
9682
9689
|
const [r, o] = Ac();
|
|
9683
9690
|
return /* @__PURE__ */ n(xo, { small: e, disabled: t, mode: r, onModeChange: o });
|
|
9684
9691
|
}
|
|
9685
|
-
function
|
|
9692
|
+
function Fu({ small: e, disabled: t, mode: r, onModeChange: o }) {
|
|
9686
9693
|
return r !== void 0 ? /* @__PURE__ */ n(xo, { small: e, disabled: t, mode: r, onModeChange: o }) : /* @__PURE__ */ n(Oc, { small: e, disabled: t });
|
|
9687
9694
|
}
|
|
9688
9695
|
const Bc = {
|
|
@@ -9739,7 +9746,7 @@ function Co(e) {
|
|
|
9739
9746
|
"data-can-scroll-bottom": String(e.canScrollBottom)
|
|
9740
9747
|
};
|
|
9741
9748
|
}
|
|
9742
|
-
function
|
|
9749
|
+
function Ou({
|
|
9743
9750
|
axis: e,
|
|
9744
9751
|
label: t,
|
|
9745
9752
|
children: r
|
|
@@ -9759,7 +9766,7 @@ function Fu({
|
|
|
9759
9766
|
}
|
|
9760
9767
|
) });
|
|
9761
9768
|
}
|
|
9762
|
-
function
|
|
9769
|
+
function Bu({
|
|
9763
9770
|
axis: e = "horizontal",
|
|
9764
9771
|
contentName: t,
|
|
9765
9772
|
label: r,
|
|
@@ -9859,7 +9866,7 @@ function Pn(e, { min: t, max: r }) {
|
|
|
9859
9866
|
function Ht(e, t) {
|
|
9860
9867
|
return t ? t === "%" ? `${e}%` : `${e} ${t}` : String(e);
|
|
9861
9868
|
}
|
|
9862
|
-
const
|
|
9869
|
+
const zu = bt(function({
|
|
9863
9870
|
label: t,
|
|
9864
9871
|
unit: r,
|
|
9865
9872
|
min: o = 0,
|
|
@@ -9918,7 +9925,7 @@ const Bu = bt(function({
|
|
|
9918
9925
|
/* @__PURE__ */ n("span", { className: "slider-thumb-emphasis", "aria-hidden": "true" })
|
|
9919
9926
|
] })
|
|
9920
9927
|
] });
|
|
9921
|
-
}),
|
|
9928
|
+
}), Wu = bt(function({
|
|
9922
9929
|
label: t = "数值区间",
|
|
9923
9930
|
unit: r = "",
|
|
9924
9931
|
min: o = 0,
|
|
@@ -10149,12 +10156,12 @@ function Wc({
|
|
|
10149
10156
|
type: r = "text"
|
|
10150
10157
|
}) {
|
|
10151
10158
|
const o = r === "menu";
|
|
10152
|
-
return /* @__PURE__ */ n("nav", { className:
|
|
10159
|
+
return /* @__PURE__ */ n("nav", { className: ae("breadcrumb", o ? "breadcrumb--menu" : ""), "aria-label": t, children: /* @__PURE__ */ n("ol", { className: "breadcrumb__list", children: e.map((i, a) => /* @__PURE__ */ y("li", { className: "breadcrumb__item", children: [
|
|
10153
10160
|
/* @__PURE__ */ n(Lt, { crumb: i }),
|
|
10154
10161
|
!o && a < e.length - 1 ? /* @__PURE__ */ n(At, {}) : null
|
|
10155
10162
|
] }, `${i.href ?? "static"}-${i.label}-${a}`)) }) });
|
|
10156
10163
|
}
|
|
10157
|
-
function
|
|
10164
|
+
function Ku({ items: e, label: t }) {
|
|
10158
10165
|
const [r, o] = H(!1), [i, a] = H(), [s, c] = H(!1), u = R(null);
|
|
10159
10166
|
if (e.length < 3) return /* @__PURE__ */ n(Wc, { items: e, label: t });
|
|
10160
10167
|
const p = e[0], f = e[e.length - 1], d = e.slice(1, -1), m = () => {
|
|
@@ -10195,7 +10202,7 @@ function Wu({ items: e, label: t }) {
|
|
|
10195
10202
|
/* @__PURE__ */ n(
|
|
10196
10203
|
Mr,
|
|
10197
10204
|
{
|
|
10198
|
-
className:
|
|
10205
|
+
className: ae("breadcrumb__toggle-icon", r ? "" : "breadcrumb__toggle-icon--active"),
|
|
10199
10206
|
size: 16,
|
|
10200
10207
|
strokeWidth: te
|
|
10201
10208
|
}
|
|
@@ -10203,7 +10210,7 @@ function Wu({ items: e, label: t }) {
|
|
|
10203
10210
|
/* @__PURE__ */ n(
|
|
10204
10211
|
Er,
|
|
10205
10212
|
{
|
|
10206
|
-
className:
|
|
10213
|
+
className: ae("breadcrumb__toggle-icon", r ? "breadcrumb__toggle-icon--active" : ""),
|
|
10207
10214
|
size: 16,
|
|
10208
10215
|
strokeWidth: te
|
|
10209
10216
|
}
|
|
@@ -10317,7 +10324,7 @@ function Kc({ open: e, onClose: t, title: r, side: o = "right", size: i, dismiss
|
|
|
10317
10324
|
] })
|
|
10318
10325
|
) : null;
|
|
10319
10326
|
}
|
|
10320
|
-
function
|
|
10327
|
+
function Vu({
|
|
10321
10328
|
label: e,
|
|
10322
10329
|
entries: t,
|
|
10323
10330
|
variant: r = "default",
|
|
@@ -10480,7 +10487,7 @@ function Ku({
|
|
|
10480
10487
|
] });
|
|
10481
10488
|
}
|
|
10482
10489
|
const Vc = (e) => e.type === "item" || e.type === "link";
|
|
10483
|
-
function
|
|
10490
|
+
function Hu({ label: e, entries: t, withChevron: r, align: o = "start", triggerContent: i, prefix: a, size: s = "md" }) {
|
|
10484
10491
|
const [c, u] = H(!1), [p, f] = H(!1), [d, m] = H("keyboard"), [g, h] = H(!1), l = R(null), w = R(null), b = R(!1), v = le(), { portalPopup: D, placement: P, onOverlayKeyDown: E } = Xe(
|
|
10485
10492
|
c,
|
|
10486
10493
|
l,
|
|
@@ -10679,7 +10686,7 @@ function Vu({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
|
|
|
10679
10686
|
) : null
|
|
10680
10687
|
] });
|
|
10681
10688
|
}
|
|
10682
|
-
function
|
|
10689
|
+
function Uu({ options: e, defaultSelected: t = [], placeholder: r, onChange: o, preserveSelectionOrder: i = !1 }) {
|
|
10683
10690
|
const a = e.map((G) => typeof G == "string" ? { value: G, label: G } : G), s = le(), c = `${s}-listbox`, u = `${s}-summary`, [p, f] = H(!1), [d, m] = H(t), [g, h] = H(-1), [l, w] = H(), b = R(null), v = R(null), D = R(null), { portalPopup: P } = Xe(p, v, D, () => f(!1), { gapToken: "--q1-space-2" }), E = R(null), k = R([]), N = R(void 0), S = R(!1);
|
|
10684
10691
|
function M(G) {
|
|
10685
10692
|
m(G), o?.(G);
|
|
@@ -10893,7 +10900,7 @@ function Hc(e) {
|
|
|
10893
10900
|
if (e.dismissal.type !== "escape-action" || typeof e.dismissal.busy != "boolean" || typeof e.dismissal.runAction != "function")
|
|
10894
10901
|
throw new TypeError("Modal: invalid escape-action dismissal contract.");
|
|
10895
10902
|
}
|
|
10896
|
-
function
|
|
10903
|
+
function ju(e) {
|
|
10897
10904
|
Hc(e);
|
|
10898
10905
|
const { open: t, title: r, children: o, footer: i, initialFocusRef: a, sticky: s = !1 } = e, c = e.dismissal, u = c === void 0 ? e.dismissable ?? !0 : !1, p = R(null), f = le(), { focusInitialIfTopMost: d, onKeyDown: m, portal: g } = Oe({
|
|
10899
10906
|
open: t,
|
|
@@ -10941,11 +10948,11 @@ function Uu(e) {
|
|
|
10941
10948
|
] })
|
|
10942
10949
|
) : null;
|
|
10943
10950
|
}
|
|
10944
|
-
function
|
|
10951
|
+
function Yu({ children: e }) {
|
|
10945
10952
|
return /* @__PURE__ */ n("div", { className: "modal__inset", children: e });
|
|
10946
10953
|
}
|
|
10947
10954
|
const Mt = 100, ut = 32;
|
|
10948
|
-
function
|
|
10955
|
+
function Xu({ data: e, summary: t, axisLabels: r = "ends-and-middle", height: o = 64, className: i }) {
|
|
10949
10956
|
const a = typeof t == "string" && !!t.trim(), s = typeof o == "number" && Number.isFinite(o) && o > 0, c = Array.isArray(e) && e.every(
|
|
10950
10957
|
(I) => I !== null && typeof I == "object" && typeof I.label == "string" && Number.isFinite(I.value)
|
|
10951
10958
|
), u = !a || !s || !c, p = u ? [] : e.map((I) => I.value), f = p.length;
|
|
@@ -10972,7 +10979,7 @@ function Yu({ data: e, summary: t, axisLabels: r = "ends-and-middle", height: o
|
|
|
10972
10979
|
return /* @__PURE__ */ y(
|
|
10973
10980
|
"div",
|
|
10974
10981
|
{
|
|
10975
|
-
className:
|
|
10982
|
+
className: ae("q1-chart", i ?? ""),
|
|
10976
10983
|
style: S,
|
|
10977
10984
|
children: [
|
|
10978
10985
|
/* @__PURE__ */ n("div", { className: "q1-chart__plot", role: "img", "aria-label": M, children: u ? /* @__PURE__ */ n("span", { className: "q1-chart__error", "aria-hidden": "true", children: "无法显示图表。请稍后重试。" }) : f === 0 ? /* @__PURE__ */ n("span", { className: "q1-chart__empty", "aria-hidden": "true", children: "没有数据" }) : /* @__PURE__ */ y(be, { children: [
|
|
@@ -11056,7 +11063,7 @@ function Nr(e, t, r) {
|
|
|
11056
11063
|
function Xc(e) {
|
|
11057
11064
|
return `${e.getFullYear()}年${e.getMonth() + 1}月${e.getDate()}日星期${Uc[e.getDay()]}`;
|
|
11058
11065
|
}
|
|
11059
|
-
function
|
|
11066
|
+
function Gu({
|
|
11060
11067
|
presets: e,
|
|
11061
11068
|
activeLabel: t,
|
|
11062
11069
|
onPick: r
|
|
@@ -11568,12 +11575,12 @@ function rl(e) {
|
|
|
11568
11575
|
children: [
|
|
11569
11576
|
/* @__PURE__ */ n("div", { className: "calendar__weekdays", role: "row", children: nl.map((L, F) => /* @__PURE__ */ n("span", { className: "calendar__weekday", role: "columnheader", "aria-label": `星期${L}`, children: L }, `${L}-${F}`)) }),
|
|
11570
11577
|
_.map((L, F) => /* @__PURE__ */ n("div", { className: "calendar__row", role: "row", children: L.map(({ date: W, inMonth: A }) => {
|
|
11571
|
-
const j = !A || Ft(W, r, o), Q = Ge(W, E.start), X = Ge(W, E.end), U = !!E.start && !!E.end && !Ge(E.start, E.end), Y = U && _e(W) > _e(E.start) && _e(W) < _e(E.end), G = !!(c.start && (c.end ? _e(W) >= _e(c.start) && _e(W) <= _e(c.end) : Ge(W, c.start))), O =
|
|
11578
|
+
const j = !A || Ft(W, r, o), Q = Ge(W, E.start), X = Ge(W, E.end), U = !!E.start && !!E.end && !Ge(E.start, E.end), Y = U && _e(W) > _e(E.start) && _e(W) < _e(E.end), G = !!(c.start && (c.end ? _e(W) >= _e(c.start) && _e(W) <= _e(c.end) : Ge(W, c.start))), O = ae(
|
|
11572
11579
|
"calendar__cell",
|
|
11573
11580
|
Y ? "calendar__cell--in-range" : "",
|
|
11574
11581
|
U && Q ? "calendar__cell--range-start" : "",
|
|
11575
11582
|
U && X ? "calendar__cell--range-end" : ""
|
|
11576
|
-
), J =
|
|
11583
|
+
), J = ae(
|
|
11577
11584
|
"calendar__day",
|
|
11578
11585
|
A ? "" : "calendar__day--outside",
|
|
11579
11586
|
Q && E.start ? "calendar__day--start" : "",
|
|
@@ -11616,7 +11623,7 @@ function rl(e) {
|
|
|
11616
11623
|
/* @__PURE__ */ n("span", { className: "q1-sr-only", "aria-live": "polite", children: l })
|
|
11617
11624
|
] });
|
|
11618
11625
|
}
|
|
11619
|
-
function
|
|
11626
|
+
function Qu(e) {
|
|
11620
11627
|
return /* @__PURE__ */ n(Eo, { ...e });
|
|
11621
11628
|
}
|
|
11622
11629
|
function ol(e) {
|
|
@@ -11675,7 +11682,7 @@ function ol(e) {
|
|
|
11675
11682
|
/* @__PURE__ */ y(
|
|
11676
11683
|
"span",
|
|
11677
11684
|
{
|
|
11678
|
-
className:
|
|
11685
|
+
className: ae(
|
|
11679
11686
|
"cal-field__control",
|
|
11680
11687
|
`cal-field__control--${r}`,
|
|
11681
11688
|
`cal-field__control--${i}`,
|
|
@@ -11781,7 +11788,7 @@ function ol(e) {
|
|
|
11781
11788
|
) : null
|
|
11782
11789
|
] });
|
|
11783
11790
|
}
|
|
11784
|
-
function
|
|
11791
|
+
function Zu(e) {
|
|
11785
11792
|
return /* @__PURE__ */ n(ol, { ...e });
|
|
11786
11793
|
}
|
|
11787
11794
|
const il = [
|
|
@@ -11790,7 +11797,7 @@ const il = [
|
|
|
11790
11797
|
{ value: "good", label: "清楚", Icon: Ar },
|
|
11791
11798
|
{ value: "love", label: "非常清楚", Icon: qr }
|
|
11792
11799
|
];
|
|
11793
|
-
function
|
|
11800
|
+
function Ju({ variant: e, onSubmit: t }) {
|
|
11794
11801
|
const r = le(), [o, i] = H(null), [a, s] = H(""), [c, u] = H("idle"), [p, f] = H("submit"), d = R(!1), m = R(null), g = c === "pending", h = o !== null && !(e === "helpful" && o === "yes") && c !== "success";
|
|
11795
11802
|
async function l(v, D = "submit") {
|
|
11796
11803
|
if (!d.current) {
|
|
@@ -11940,7 +11947,7 @@ function sl({
|
|
|
11940
11947
|
/* @__PURE__ */ n("div", { className: "timeline__content", children: r })
|
|
11941
11948
|
] });
|
|
11942
11949
|
}
|
|
11943
|
-
function
|
|
11950
|
+
function ed({ summary: e, children: t }) {
|
|
11944
11951
|
const [r, o] = H(!1), i = le();
|
|
11945
11952
|
return /* @__PURE__ */ y(sl, { children: [
|
|
11946
11953
|
/* @__PURE__ */ y(
|
|
@@ -11960,7 +11967,7 @@ function Ju({ summary: e, children: t }) {
|
|
|
11960
11967
|
/* @__PURE__ */ n("div", { id: i, hidden: !r, children: /* @__PURE__ */ n(al, { children: t }) })
|
|
11961
11968
|
] });
|
|
11962
11969
|
}
|
|
11963
|
-
function
|
|
11970
|
+
function td({
|
|
11964
11971
|
actor: e,
|
|
11965
11972
|
time: t,
|
|
11966
11973
|
variant: r = "default",
|
|
@@ -11976,10 +11983,10 @@ function ed({
|
|
|
11976
11983
|
] }) : null
|
|
11977
11984
|
] });
|
|
11978
11985
|
}
|
|
11979
|
-
function
|
|
11986
|
+
function nd({ children: e }) {
|
|
11980
11987
|
return /* @__PURE__ */ n("span", { className: "message__mention", children: e });
|
|
11981
11988
|
}
|
|
11982
|
-
function
|
|
11989
|
+
function rd({
|
|
11983
11990
|
author: e,
|
|
11984
11991
|
avatar: t,
|
|
11985
11992
|
time: r,
|
|
@@ -12043,7 +12050,7 @@ function dl(e, t) {
|
|
|
12043
12050
|
const s = i && i.query === e && i.load === t && i.retry === r ? i : void 0;
|
|
12044
12051
|
return { state: s?.state ?? "loading", matches: s?.matches ?? [], retry: () => o((c) => c + 1) };
|
|
12045
12052
|
}
|
|
12046
|
-
function
|
|
12053
|
+
function od({
|
|
12047
12054
|
onSubmit: e,
|
|
12048
12055
|
onAttach: t,
|
|
12049
12056
|
attachments: r,
|
|
@@ -12259,7 +12266,7 @@ function rd({
|
|
|
12259
12266
|
}
|
|
12260
12267
|
);
|
|
12261
12268
|
}
|
|
12262
|
-
function
|
|
12269
|
+
function id({
|
|
12263
12270
|
name: e,
|
|
12264
12271
|
size: t,
|
|
12265
12272
|
type: r = "file",
|
|
@@ -12329,7 +12336,7 @@ function To(e, t) {
|
|
|
12329
12336
|
};
|
|
12330
12337
|
}, [e, t, r]), i;
|
|
12331
12338
|
}
|
|
12332
|
-
function
|
|
12339
|
+
function ad({ trigger: e, children: t, openDelay: r = 0, closeDelay: o = 90, side: i = "bottom", align: a = "start", className: s }) {
|
|
12333
12340
|
const [c, u] = H(!1), p = le(), f = R(null), d = R(null), m = R(void 0), g = R(void 0), h = R(!1), l = R(!1), w = R(!1), b = R(!1), v = To(c, d);
|
|
12334
12341
|
function D() {
|
|
12335
12342
|
clearTimeout(m.current), clearTimeout(g.current);
|
|
@@ -12429,11 +12436,11 @@ function ml(e) {
|
|
|
12429
12436
|
r.forEach((o) => o.finish());
|
|
12430
12437
|
}
|
|
12431
12438
|
}
|
|
12432
|
-
function
|
|
12439
|
+
function sd() {
|
|
12433
12440
|
return Fr();
|
|
12434
12441
|
}
|
|
12435
12442
|
const Pr = st(null);
|
|
12436
|
-
function
|
|
12443
|
+
function cd({
|
|
12437
12444
|
open: e,
|
|
12438
12445
|
defaultOpen: t = !1,
|
|
12439
12446
|
onOpenChange: r,
|
|
@@ -12466,11 +12473,11 @@ function sd({
|
|
|
12466
12473
|
U.current = k;
|
|
12467
12474
|
const Y = R(/* @__PURE__ */ new Set()), G = M?.register, O = ce((Z) => {
|
|
12468
12475
|
Y.current.add(Z);
|
|
12469
|
-
const
|
|
12476
|
+
const se = G?.(Z);
|
|
12470
12477
|
return () => {
|
|
12471
|
-
Y.current.delete(Z),
|
|
12478
|
+
Y.current.delete(Z), se?.();
|
|
12472
12479
|
};
|
|
12473
|
-
}, [G]), J = xe(() => ({ register: O, open: I }), [I, O]), T = ce((Z) => _.current?.contains(Z) || L.current?.contains(Z) || [...Y.current].some((
|
|
12480
|
+
}, [G]), J = xe(() => ({ register: O, open: I }), [I, O]), T = ce((Z) => _.current?.contains(Z) || L.current?.contains(Z) || [...Y.current].some((se) => se.contains(Z)) || !!U.current?.some((se) => se.current?.contains(Z)), [_]), q = R(!1), $ = R(!1);
|
|
12474
12481
|
function z(Z) {
|
|
12475
12482
|
e === void 0 && S(Z), r?.(Z);
|
|
12476
12483
|
}
|
|
@@ -12505,7 +12512,7 @@ function sd({
|
|
|
12505
12512
|
if (!I || !de) return;
|
|
12506
12513
|
const Z = L.current;
|
|
12507
12514
|
if (!Z || Z.contains(Z.ownerDocument.activeElement) || j === "dialog" && !(A || !a && x.current && D !== "none") || j !== "dialog" && D === "none") return;
|
|
12508
|
-
const
|
|
12515
|
+
const se = Z.ownerDocument, we = se.activeElement;
|
|
12509
12516
|
function ie() {
|
|
12510
12517
|
if (j === "dialog") {
|
|
12511
12518
|
V();
|
|
@@ -12517,20 +12524,20 @@ function sd({
|
|
|
12517
12524
|
ml(Z), ie();
|
|
12518
12525
|
let ue = 0, ve = 0;
|
|
12519
12526
|
const Ce = () => {
|
|
12520
|
-
Z.contains(
|
|
12527
|
+
Z.contains(se.activeElement) || se.activeElement !== we || ve++ >= 10 || (ie(), ue = se.defaultView?.requestAnimationFrame(Ce) ?? 0);
|
|
12521
12528
|
};
|
|
12522
|
-
return Z.contains(
|
|
12529
|
+
return Z.contains(se.activeElement) || (ue = se.defaultView?.requestAnimationFrame(Ce) ?? 0), () => se.defaultView?.cancelAnimationFrame(ue);
|
|
12523
12530
|
}, [a, A, V, D, I, de, j, v]), re(() => {
|
|
12524
12531
|
if (!I) return;
|
|
12525
12532
|
const Z = _.current?.ownerDocument ?? document;
|
|
12526
|
-
let
|
|
12533
|
+
let se = 0;
|
|
12527
12534
|
function we(ie) {
|
|
12528
|
-
!(ie.target instanceof Node) || !T(ie.target) || (q.current = !0, Z.defaultView?.cancelAnimationFrame(
|
|
12535
|
+
!(ie.target instanceof Node) || !T(ie.target) || (q.current = !0, Z.defaultView?.cancelAnimationFrame(se), se = Z.defaultView?.requestAnimationFrame(() => {
|
|
12529
12536
|
q.current = !1;
|
|
12530
12537
|
}) ?? 0);
|
|
12531
12538
|
}
|
|
12532
12539
|
return Z.addEventListener("pointerdown", we, !0), () => {
|
|
12533
|
-
Z.removeEventListener("pointerdown", we, !0), Z.defaultView?.cancelAnimationFrame(
|
|
12540
|
+
Z.removeEventListener("pointerdown", we, !0), Z.defaultView?.cancelAnimationFrame(se), q.current = !1;
|
|
12534
12541
|
};
|
|
12535
12542
|
}, [T, I, _]);
|
|
12536
12543
|
const pe = {
|
|
@@ -12576,7 +12583,7 @@ function sd({
|
|
|
12576
12583
|
) })) : null
|
|
12577
12584
|
] });
|
|
12578
12585
|
}
|
|
12579
|
-
function
|
|
12586
|
+
function ld(e) {
|
|
12580
12587
|
const { items: t, ariaLabel: r, size: o = "md", disabled: i = !1 } = e, a = R([]), [s, c] = H(() => e.type === "multiple" ? e.defaultValue ?? [] : e.defaultValue !== void 0 && t.some((b) => b.value === e.defaultValue) ? e.defaultValue : e.allowEmpty ? "" : t.find((b) => !b.disabled)?.value ?? ""), [u, p] = H(null), f = t.filter((b) => !i && !b.disabled), d = e.value !== void 0, m = d ? e.value : s, g = e.type === "multiple" ? Array.isArray(m) ? m : [] : [typeof m == "string" && t.some((b) => b.value === m) ? m : d || e.allowEmpty ? typeof m == "string" ? m : "" : f[0]?.value ?? ""], h = f.find((b) => b.value === u)?.value ?? f.find((b) => g.includes(b.value))?.value ?? f[0]?.value;
|
|
12581
12588
|
for (const b of t)
|
|
12582
12589
|
if (!b.label && (!b.ariaLabel?.trim() || !b.icon))
|
|
@@ -12618,7 +12625,7 @@ function cd(e) {
|
|
|
12618
12625
|
const E = f[P];
|
|
12619
12626
|
E && (p(E.value), a.current[t.indexOf(E)]?.focus());
|
|
12620
12627
|
}
|
|
12621
|
-
return /* @__PURE__ */ n("div", { className:
|
|
12628
|
+
return /* @__PURE__ */ n("div", { className: ae("toggle-group", `toggle-group--${o}`), role: "group", "aria-label": r, children: t.map((b, v) => /* @__PURE__ */ y(
|
|
12622
12629
|
"button",
|
|
12623
12630
|
{
|
|
12624
12631
|
ref: (D) => {
|
|
@@ -12642,7 +12649,7 @@ function cd(e) {
|
|
|
12642
12649
|
b.value
|
|
12643
12650
|
)) });
|
|
12644
12651
|
}
|
|
12645
|
-
function
|
|
12652
|
+
function ud({ direction: e = "incoming", avatar: t, name: r, time: o, children: i, status: a = "default", pending: s = "正在发送…", error: c = "无法发送消息,请重试。", retry: u, onRetry: p, actions: f, className: d, ...m }) {
|
|
12646
12653
|
return /* @__PURE__ */ y("article", { ...m, className: `bubble bubble--${e} bubble--${a}${d ? ` ${d}` : ""}`, children: [
|
|
12647
12654
|
t ? /* @__PURE__ */ n("div", { className: "bubble__avatar", children: t }) : null,
|
|
12648
12655
|
/* @__PURE__ */ y("div", { className: "bubble__main", children: [
|
|
@@ -12659,7 +12666,7 @@ function ld({ direction: e = "incoming", avatar: t, name: r, time: o, children:
|
|
|
12659
12666
|
] })
|
|
12660
12667
|
] });
|
|
12661
12668
|
}
|
|
12662
|
-
function
|
|
12669
|
+
function dd({ label: e, items: t, conversationKey: r, nearBottomThreshold: o = 64, announcement: i, jumpLabel: a = "前往最新消息", before: s, empty: c, className: u, style: p }) {
|
|
12663
12670
|
const f = R(null), d = R(null), m = R(!0), g = R(null), h = R(""), l = R(!1), w = R(null), [b, v] = H(!1), [D, P] = H(""), E = Number.isFinite(o) ? Math.max(0, o) : 64;
|
|
12664
12671
|
function k() {
|
|
12665
12672
|
const I = f.current;
|
|
@@ -12719,7 +12726,7 @@ function pl(e, t) {
|
|
|
12719
12726
|
const r = t.trim().toLowerCase();
|
|
12720
12727
|
return e.filter((o) => [o.label, ...o.keywords ?? []].some((i) => i.toLowerCase().includes(r)));
|
|
12721
12728
|
}
|
|
12722
|
-
function
|
|
12729
|
+
function fd({
|
|
12723
12730
|
options: e,
|
|
12724
12731
|
value: t,
|
|
12725
12732
|
onSelect: r,
|
|
@@ -12814,140 +12821,141 @@ function dd({
|
|
|
12814
12821
|
] });
|
|
12815
12822
|
}
|
|
12816
12823
|
export {
|
|
12817
|
-
|
|
12818
|
-
|
|
12824
|
+
id as Attachment,
|
|
12825
|
+
cu as AuthCard,
|
|
12819
12826
|
oc as Avatar,
|
|
12820
12827
|
Ts as AvatarButton,
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12828
|
+
vu as AvatarGroup,
|
|
12829
|
+
iu as Badge,
|
|
12830
|
+
su as Banner,
|
|
12831
|
+
gu as Book,
|
|
12825
12832
|
Wc as Breadcrumb,
|
|
12826
|
-
|
|
12833
|
+
_u as Browser,
|
|
12827
12834
|
tc as BrowserAddress,
|
|
12828
12835
|
Js as BrowserControls,
|
|
12829
12836
|
Zs as BrowserDots,
|
|
12830
|
-
|
|
12837
|
+
yu as BrowserPlaceholder,
|
|
12831
12838
|
nc as BrowserTabs,
|
|
12832
|
-
|
|
12839
|
+
ud as Bubble,
|
|
12833
12840
|
Ie as Button,
|
|
12834
12841
|
ma as ButtonLink,
|
|
12835
|
-
|
|
12842
|
+
Zu as Calendar,
|
|
12836
12843
|
rl as CalendarGrid,
|
|
12837
12844
|
ds as Card,
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12845
|
+
Xu as Chart,
|
|
12846
|
+
kl as CheckCircleFill,
|
|
12847
|
+
El as Checkbox,
|
|
12848
|
+
Sl as Choicebox,
|
|
12841
12849
|
Ur as ClearButton,
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12850
|
+
Cl as ClearableInput,
|
|
12851
|
+
Ll as Code,
|
|
12852
|
+
Fl as CodeBlock,
|
|
12853
|
+
Al as CodeInline,
|
|
12846
12854
|
io as CodeTokens,
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
|
|
12855
|
+
zl as Collapse,
|
|
12856
|
+
Bl as CollapseGroup,
|
|
12857
|
+
Ku as CollapsibleBreadcrumb,
|
|
12858
|
+
$l as Combobox,
|
|
12859
|
+
Wl as CommandMenu,
|
|
12860
|
+
od as Composer,
|
|
12861
|
+
bu as ContextCard,
|
|
12862
|
+
nu as ContextMenu,
|
|
12863
|
+
pu as ContextSwitcher,
|
|
12856
12864
|
yn as ControlOption,
|
|
12857
12865
|
Kn as CopyButton,
|
|
12858
|
-
|
|
12859
|
-
|
|
12860
|
-
|
|
12861
|
-
|
|
12862
|
-
|
|
12863
|
-
|
|
12864
|
-
|
|
12865
|
-
|
|
12866
|
-
|
|
12867
|
-
|
|
12868
|
-
|
|
12869
|
-
|
|
12870
|
-
|
|
12866
|
+
xl as CornerRemoveButton,
|
|
12867
|
+
hu as Description,
|
|
12868
|
+
Vl as DestructiveActionModal,
|
|
12869
|
+
Tu as DocsPagination,
|
|
12870
|
+
ru as DotsMenu,
|
|
12871
|
+
Hl as Drawer,
|
|
12872
|
+
Ul as EmptyState,
|
|
12873
|
+
jl as Entity,
|
|
12874
|
+
Xl as ErrorCard,
|
|
12875
|
+
Yl as ErrorMessage,
|
|
12876
|
+
Ql as Feedback,
|
|
12877
|
+
Zl as Fieldset,
|
|
12878
|
+
Jl as FileTree,
|
|
12871
12879
|
vl as FilterChip,
|
|
12872
|
-
|
|
12880
|
+
fd as FilterOptionPanel,
|
|
12873
12881
|
Zt as FormField,
|
|
12874
|
-
|
|
12875
|
-
|
|
12882
|
+
Iu as Gauge,
|
|
12883
|
+
ad as HoverCard,
|
|
12876
12884
|
ya as IconButton,
|
|
12877
12885
|
Zr as InfoTip,
|
|
12878
12886
|
Tn as Input,
|
|
12879
|
-
|
|
12880
|
-
|
|
12887
|
+
Pl as InputOTP,
|
|
12888
|
+
Lu as JsonView,
|
|
12881
12889
|
We as Kbd,
|
|
12882
|
-
|
|
12890
|
+
tu as Label,
|
|
12883
12891
|
wl as Link,
|
|
12884
|
-
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
|
|
12890
|
-
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12892
|
+
qu as LoadMoreButton,
|
|
12893
|
+
Nu as LoadingDots,
|
|
12894
|
+
td as Marker,
|
|
12895
|
+
nd as Mention,
|
|
12896
|
+
Hu as Menu,
|
|
12897
|
+
rd as Message,
|
|
12898
|
+
dd as MessageScroller,
|
|
12899
|
+
ku as MiddleTruncate,
|
|
12900
|
+
ju as Modal,
|
|
12901
|
+
Yu as ModalInset,
|
|
12902
|
+
Uu as MultiSelect,
|
|
12903
|
+
uu as Navigation,
|
|
12904
|
+
mu as NavigationGroup,
|
|
12905
|
+
fu as NavigationItem,
|
|
12906
|
+
du as NavigationSection,
|
|
12907
|
+
Eu as Note,
|
|
12908
|
+
Ju as PageFeedback,
|
|
12909
|
+
Mu as Pagination,
|
|
12910
|
+
Gu as PeriodCombobox,
|
|
12911
|
+
xu as Phone,
|
|
12912
|
+
au as Pill,
|
|
12913
|
+
cd as Popover,
|
|
12914
|
+
eu as ProductLockup,
|
|
12907
12915
|
bc as Progress,
|
|
12908
|
-
|
|
12916
|
+
Pu as ProjectBanner,
|
|
12909
12917
|
rs as Q1travelSymbol,
|
|
12910
|
-
|
|
12918
|
+
Tl as Radio,
|
|
12911
12919
|
ol as RangeField,
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
+
Qu as RangeInputs,
|
|
12921
|
+
Wu as RangeSlider,
|
|
12922
|
+
Gl as RegionErrorState,
|
|
12923
|
+
Ru as RelativeTimeCard,
|
|
12924
|
+
Ou as Scroller,
|
|
12925
|
+
Bu as ScrollerWithButtons,
|
|
12926
|
+
Kl as SearchDialog,
|
|
12927
|
+
Dl as SearchInput,
|
|
12920
12928
|
to as Select,
|
|
12921
12929
|
ns as Separator,
|
|
12922
12930
|
Kc as Sheet,
|
|
12923
|
-
|
|
12931
|
+
$u as ShowMore,
|
|
12924
12932
|
Pt as Sidebar,
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
|
|
12928
|
-
|
|
12933
|
+
lu as SidebarDrawer,
|
|
12934
|
+
wu as Skeleton,
|
|
12935
|
+
zu as Slider,
|
|
12936
|
+
Du as Snippet,
|
|
12929
12937
|
wc as Spinner,
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
+
Vu as SplitButton,
|
|
12939
|
+
ou as StatusDot,
|
|
12940
|
+
ql as Switch,
|
|
12941
|
+
Su as Table,
|
|
12942
|
+
Ol as Tabs,
|
|
12943
|
+
Cu as TextWithCopyButton,
|
|
12944
|
+
Il as Textarea,
|
|
12945
|
+
Fu as ThemeSwitcher,
|
|
12938
12946
|
al as Timeline,
|
|
12939
|
-
|
|
12947
|
+
ed as TimelineCollapsedGroup,
|
|
12940
12948
|
sl as TimelineItem,
|
|
12941
12949
|
yl as ToastProvider,
|
|
12942
|
-
|
|
12943
|
-
|
|
12950
|
+
Rl as Toggle,
|
|
12951
|
+
ld as ToggleGroup,
|
|
12944
12952
|
Nl as Toolbar,
|
|
12945
12953
|
Gr as Tooltip,
|
|
12946
|
-
|
|
12954
|
+
Au as Video,
|
|
12947
12955
|
Ue as addDays,
|
|
12948
|
-
|
|
12956
|
+
sd as ensurePopoverRoot,
|
|
12949
12957
|
_l as getOverlayCoordinator,
|
|
12950
12958
|
In as useCopy,
|
|
12951
|
-
|
|
12959
|
+
Ml as useRadio,
|
|
12952
12960
|
aa as useToast
|
|
12953
12961
|
};
|