@q1travel/design-system 0.28.1 → 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/contracts/implementation-map.md +2 -2
- package/contracts/interface-guidelines.md +3 -3
- package/dist-pkg/design-system.d.ts +12 -1
- package/dist-pkg/design-system.js +318 -309
- package/dist-pkg/style.css +131 -6
- 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,25 +5994,26 @@ 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",
|
|
6004
|
+
t === "horizontal" && r === "line" && "q1-navigation--line",
|
|
5997
6005
|
e
|
|
5998
6006
|
),
|
|
5999
|
-
...
|
|
6007
|
+
...o
|
|
6000
6008
|
}
|
|
6001
6009
|
);
|
|
6002
6010
|
}
|
|
6003
|
-
function
|
|
6011
|
+
function du({ label: e, action: t, children: r, className: o, ...i }) {
|
|
6004
6012
|
const a = le(), s = e !== void 0;
|
|
6005
6013
|
return /* @__PURE__ */ y(
|
|
6006
6014
|
"section",
|
|
6007
6015
|
{
|
|
6008
|
-
className:
|
|
6016
|
+
className: ae("q1-navigation__section", o),
|
|
6009
6017
|
...i,
|
|
6010
6018
|
"aria-labelledby": s ? a : i["aria-labelledby"],
|
|
6011
6019
|
children: [
|
|
@@ -6018,8 +6026,8 @@ function uu({ label: e, action: t, children: r, className: o, ...i }) {
|
|
|
6018
6026
|
}
|
|
6019
6027
|
);
|
|
6020
6028
|
}
|
|
6021
|
-
function
|
|
6022
|
-
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(
|
|
6023
6031
|
"q1-navigation__item",
|
|
6024
6032
|
t && "q1-navigation__item--active",
|
|
6025
6033
|
r && "q1-navigation__item--disabled",
|
|
@@ -6058,7 +6066,7 @@ function du(e) {
|
|
|
6058
6066
|
s ? /* @__PURE__ */ n("span", { className: "q1-navigation__item-action", children: s }) : null
|
|
6059
6067
|
] });
|
|
6060
6068
|
}
|
|
6061
|
-
function
|
|
6069
|
+
function mu({
|
|
6062
6070
|
label: e,
|
|
6063
6071
|
icon: t,
|
|
6064
6072
|
expanded: r,
|
|
@@ -6832,7 +6840,7 @@ function Ts({
|
|
|
6832
6840
|
s ? /* @__PURE__ */ n("span", { className: "q1-avatar-button__badge", "aria-hidden": "true", children: /* @__PURE__ */ n($i, { size: 8, strokeWidth: 2.5 }) }) : null
|
|
6833
6841
|
] }), m = {
|
|
6834
6842
|
...p,
|
|
6835
|
-
className:
|
|
6843
|
+
className: ae("q1-avatar-button", c),
|
|
6836
6844
|
style: f,
|
|
6837
6845
|
"aria-label": e
|
|
6838
6846
|
};
|
|
@@ -7094,7 +7102,7 @@ function $s({
|
|
|
7094
7102
|
children: q.map((K) => {
|
|
7095
7103
|
const ne = z.get(K.id), oe = C.findIndex(
|
|
7096
7104
|
(we) => we.kind === "item" && we.group.id === T.id && we.item.id === K.id
|
|
7097
|
-
), 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) => {
|
|
7098
7106
|
A.current[oe] = we;
|
|
7099
7107
|
}) : {
|
|
7100
7108
|
...Z,
|
|
@@ -7121,7 +7129,7 @@ function $s({
|
|
|
7121
7129
|
"aria-busy": me || void 0,
|
|
7122
7130
|
"data-context-id": K.id,
|
|
7123
7131
|
"data-context-roving-tab-stop": U === oe ? "" : void 0,
|
|
7124
|
-
...
|
|
7132
|
+
...se,
|
|
7125
7133
|
children: [
|
|
7126
7134
|
K.avatar ? /* @__PURE__ */ n("span", { className: "q1-context-switcher__avatar", "aria-hidden": "true", children: K.avatar }) : null,
|
|
7127
7135
|
/* @__PURE__ */ y("span", { className: "q1-context-switcher__item-content", children: [
|
|
@@ -7321,7 +7329,7 @@ function Bs(e, t, r) {
|
|
|
7321
7329
|
});
|
|
7322
7330
|
return d.observe(i, { childList: !0, subtree: !0 }), document.addEventListener("focusin", f, !0), { disconnect: p };
|
|
7323
7331
|
}
|
|
7324
|
-
function
|
|
7332
|
+
function pu({
|
|
7325
7333
|
currentContext: e,
|
|
7326
7334
|
groups: t,
|
|
7327
7335
|
open: r,
|
|
@@ -7580,14 +7588,14 @@ function Vs({ title: e, ellipsis: t, children: r }) {
|
|
|
7580
7588
|
) : null
|
|
7581
7589
|
] }) : /* @__PURE__ */ n("dd", { className: "description__value", children: r });
|
|
7582
7590
|
}
|
|
7583
|
-
function
|
|
7591
|
+
function hu({
|
|
7584
7592
|
title: e,
|
|
7585
7593
|
tooltip: t,
|
|
7586
7594
|
align: r,
|
|
7587
7595
|
ellipsis: o,
|
|
7588
7596
|
children: i
|
|
7589
7597
|
}) {
|
|
7590
|
-
const a =
|
|
7598
|
+
const a = ae("description", r === "right" ? "description--right" : "");
|
|
7591
7599
|
return /* @__PURE__ */ y("dl", { className: a, children: [
|
|
7592
7600
|
/* @__PURE__ */ y("dt", { className: "description__title", children: [
|
|
7593
7601
|
e,
|
|
@@ -7833,7 +7841,7 @@ function Gs(e) {
|
|
|
7833
7841
|
const t = e.props;
|
|
7834
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";
|
|
7835
7843
|
}
|
|
7836
|
-
function
|
|
7844
|
+
function bu({
|
|
7837
7845
|
name: e,
|
|
7838
7846
|
identity: t,
|
|
7839
7847
|
rows: r,
|
|
@@ -7844,7 +7852,7 @@ function hu({
|
|
|
7844
7852
|
align: c = "start",
|
|
7845
7853
|
children: u
|
|
7846
7854
|
}) {
|
|
7847
|
-
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(
|
|
7848
7856
|
"context-card-wrap",
|
|
7849
7857
|
`context-card-wrap--${s}`,
|
|
7850
7858
|
c !== "start" ? `context-card-wrap--align-${c}` : "",
|
|
@@ -7861,7 +7869,7 @@ function hu({
|
|
|
7861
7869
|
let h;
|
|
7862
7870
|
Ot(u) && u.type !== Le && Gs(u) ? h = Ut(u, {
|
|
7863
7871
|
...g,
|
|
7864
|
-
className:
|
|
7872
|
+
className: ae("context-card__trigger", u.props.className),
|
|
7865
7873
|
onFocus: (b) => {
|
|
7866
7874
|
u.props.onFocus?.(b), d.onTriggerFocus();
|
|
7867
7875
|
},
|
|
@@ -7892,7 +7900,7 @@ function hu({
|
|
|
7892
7900
|
children: u
|
|
7893
7901
|
}
|
|
7894
7902
|
);
|
|
7895
|
-
const l =
|
|
7903
|
+
const l = ae(
|
|
7896
7904
|
"context-card",
|
|
7897
7905
|
d.open && d.positioned ? "context-card--open" : "",
|
|
7898
7906
|
d.pointerMotion ? "context-card--pointer" : "context-card--instant"
|
|
@@ -7982,7 +7990,7 @@ function Qs(e) {
|
|
|
7982
7990
|
}
|
|
7983
7991
|
};
|
|
7984
7992
|
}
|
|
7985
|
-
function
|
|
7993
|
+
function gu({
|
|
7986
7994
|
title: e,
|
|
7987
7995
|
variant: t = "stripe",
|
|
7988
7996
|
color: r,
|
|
@@ -8001,7 +8009,7 @@ function bu({
|
|
|
8001
8009
|
onPointerUp: l,
|
|
8002
8010
|
...w
|
|
8003
8011
|
}) {
|
|
8004
|
-
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 = {
|
|
8005
8013
|
...f,
|
|
8006
8014
|
...r ? { "--book-cover": r } : null,
|
|
8007
8015
|
...o ? { "--book-band": o } : null,
|
|
@@ -8029,14 +8037,14 @@ function bu({
|
|
|
8029
8037
|
] }) });
|
|
8030
8038
|
}
|
|
8031
8039
|
function Zs({ className: e } = {}) {
|
|
8032
|
-
return /* @__PURE__ */ y("span", { className:
|
|
8040
|
+
return /* @__PURE__ */ y("span", { className: ae("browser__dots", e), "aria-hidden": "true", children: [
|
|
8033
8041
|
/* @__PURE__ */ n("span", { className: "browser__dot browser__dot--close" }),
|
|
8034
8042
|
/* @__PURE__ */ n("span", { className: "browser__dot browser__dot--minimize" }),
|
|
8035
8043
|
/* @__PURE__ */ n("span", { className: "browser__dot browser__dot--expand" })
|
|
8036
8044
|
] });
|
|
8037
8045
|
}
|
|
8038
8046
|
function Js({ className: e } = {}) {
|
|
8039
|
-
return /* @__PURE__ */ y("span", { className:
|
|
8047
|
+
return /* @__PURE__ */ y("span", { className: ae("browser__controls", e), "aria-hidden": "true", children: [
|
|
8040
8048
|
/* @__PURE__ */ n(Oo, { size: 14, strokeWidth: te }),
|
|
8041
8049
|
/* @__PURE__ */ n(zo, { size: 14, strokeWidth: te }),
|
|
8042
8050
|
/* @__PURE__ */ n(Li, { size: 14, strokeWidth: te })
|
|
@@ -8071,7 +8079,7 @@ function tc({ address: e, className: t }) {
|
|
|
8071
8079
|
E.isPrimary && E.button === 0 && g.current === void 0 && f(!0);
|
|
8072
8080
|
}
|
|
8073
8081
|
const P = b === "success" ? "已复制网址" : b === "error" ? "无法复制网址,请手动选择网址。" : "";
|
|
8074
|
-
return /* @__PURE__ */ y("span", { className:
|
|
8082
|
+
return /* @__PURE__ */ y("span", { className: ae("browser__address", t), "data-status": b, children: [
|
|
8075
8083
|
/* @__PURE__ */ y("span", { className: "browser__url", title: e, translate: "no", children: [
|
|
8076
8084
|
/* @__PURE__ */ n("span", { className: "browser__url-head", children: o }),
|
|
8077
8085
|
i ? /* @__PURE__ */ n("span", { className: "browser__url-tail", children: i }) : null
|
|
@@ -8105,13 +8113,13 @@ function tc({ address: e, className: t }) {
|
|
|
8105
8113
|
] });
|
|
8106
8114
|
}
|
|
8107
8115
|
function nc({ tabs: e, className: t }) {
|
|
8108
|
-
return /* @__PURE__ */ n("div", { className:
|
|
8116
|
+
return /* @__PURE__ */ n("div", { className: ae("browser__tabs", t), "aria-hidden": "true", children: e.map((r, o) => (
|
|
8109
8117
|
// key 带 index:label 是装饰文案不保证唯一,纯 label 做 key 在同名标签时会撞车。
|
|
8110
8118
|
/* @__PURE__ */ n("span", { className: `browser__tab${r.isActive ? " browser__tab--active" : ""}`, children: r.label }, `${r.label}-${o}`)
|
|
8111
8119
|
)) });
|
|
8112
8120
|
}
|
|
8113
|
-
function
|
|
8114
|
-
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: [
|
|
8115
8123
|
/* @__PURE__ */ y("div", { className: "browser__chrome", children: [
|
|
8116
8124
|
r && r.length > 0 ? /* @__PURE__ */ n(nc, { tabs: r }) : null,
|
|
8117
8125
|
/* @__PURE__ */ y("div", { className: "browser__bar", children: [
|
|
@@ -8125,7 +8133,7 @@ function gu({ address: e, variant: t = "dark", tabs: r, children: o, className:
|
|
|
8125
8133
|
/* @__PURE__ */ n("div", { className: "browser__body", children: o })
|
|
8126
8134
|
] });
|
|
8127
8135
|
}
|
|
8128
|
-
function
|
|
8136
|
+
function yu() {
|
|
8129
8137
|
return /* @__PURE__ */ y("div", { className: "browser__placeholder", "aria-hidden": "true", children: [
|
|
8130
8138
|
/* @__PURE__ */ n("span", { className: "browser__skeleton-line browser__skeleton-line--medium" }),
|
|
8131
8139
|
/* @__PURE__ */ n("span", { className: "browser__skeleton-line browser__skeleton-line--short" }),
|
|
@@ -8138,7 +8146,7 @@ const go = (e) => e !== void 0 && Number.isFinite(e) && e > 0 ? e : void 0, _o =
|
|
|
8138
8146
|
};
|
|
8139
8147
|
function oc({ title: e, src: t, letter: r, glyph: o, placeholder: i = !1, icon: a, iconColor: s, size: c, className: u }) {
|
|
8140
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 };
|
|
8141
|
-
return /* @__PURE__ */ y("span", { className:
|
|
8149
|
+
return /* @__PURE__ */ y("span", { className: ae("avatar", l, u), style: _o(d), ...w, children: [
|
|
8142
8150
|
m ? /* @__PURE__ */ n(
|
|
8143
8151
|
"img",
|
|
8144
8152
|
{
|
|
@@ -8161,7 +8169,7 @@ function oc({ title: e, src: t, letter: r, glyph: o, placeholder: i = !1, icon:
|
|
|
8161
8169
|
) : null
|
|
8162
8170
|
] });
|
|
8163
8171
|
}
|
|
8164
|
-
function
|
|
8172
|
+
function vu({
|
|
8165
8173
|
members: e,
|
|
8166
8174
|
label: t,
|
|
8167
8175
|
size: r,
|
|
@@ -8171,7 +8179,7 @@ function yu({
|
|
|
8171
8179
|
className: s
|
|
8172
8180
|
}) {
|
|
8173
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 } : {};
|
|
8174
|
-
return /* @__PURE__ */ y("span", { className:
|
|
8182
|
+
return /* @__PURE__ */ y("span", { className: ae("avatar-group", s), style: h, ...w, children: [
|
|
8175
8183
|
f.map((b, v) => (
|
|
8176
8184
|
// 成员不再 aria-hidden——每个 Avatar 自带 aria-label(名字),读屏逐个念。
|
|
8177
8185
|
/* @__PURE__ */ n("span", { className: "avatar-group__item", style: { zIndex: l(v) }, children: /* @__PURE__ */ n(oc, { ...b, size: c }) }, `${b.title}-${v}`)
|
|
@@ -8194,7 +8202,7 @@ function yu({
|
|
|
8194
8202
|
) : null
|
|
8195
8203
|
] });
|
|
8196
8204
|
}
|
|
8197
|
-
function
|
|
8205
|
+
function wu({
|
|
8198
8206
|
shape: e = "rounded",
|
|
8199
8207
|
animated: t = !0,
|
|
8200
8208
|
show: r = !1,
|
|
@@ -8203,7 +8211,7 @@ function vu({
|
|
|
8203
8211
|
children: a,
|
|
8204
8212
|
...s
|
|
8205
8213
|
}) {
|
|
8206
|
-
const c = a != null, u = c && r ? "ready" : "loading", p =
|
|
8214
|
+
const c = a != null, u = c && r ? "ready" : "loading", p = ae(
|
|
8207
8215
|
"skeleton",
|
|
8208
8216
|
`skeleton--${e}`,
|
|
8209
8217
|
t ? "" : "skeleton--static",
|
|
@@ -8223,7 +8231,7 @@ function vu({
|
|
|
8223
8231
|
) : /* @__PURE__ */ n(o, { ...s, className: p, "data-state": "loading", "aria-hidden": "true", inert: !0 });
|
|
8224
8232
|
}
|
|
8225
8233
|
const ic = { sm: 2, md: 3, lg: 4 };
|
|
8226
|
-
function
|
|
8234
|
+
function Nu({ label: e, size: t = "md" }) {
|
|
8227
8235
|
const r = typeof t == "number" ? t : ic[t], o = { width: r, height: r };
|
|
8228
8236
|
return /* @__PURE__ */ y("span", { className: "loading-dots-wrap", "aria-live": e ? "polite" : void 0, children: [
|
|
8229
8237
|
e ? /* @__PURE__ */ n("span", { className: "loading-dots__label", children: e }) : null,
|
|
@@ -8235,7 +8243,7 @@ function wu({ label: e, size: t = "md" }) {
|
|
|
8235
8243
|
] });
|
|
8236
8244
|
}
|
|
8237
8245
|
const pr = 8, ac = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
8238
|
-
function
|
|
8246
|
+
function ku({ text: e, tailLength: t = pr, mono: r = !1 }) {
|
|
8239
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("");
|
|
8240
8248
|
return /* @__PURE__ */ y("span", { className: `middle-truncate${r ? " middle-truncate--mono" : ""}`, title: e, "aria-label": e, children: [
|
|
8241
8249
|
/* @__PURE__ */ n("span", { className: "q1-sr-only", children: e }),
|
|
@@ -8245,7 +8253,7 @@ function Nu({ text: e, tailLength: t = pr, mono: r = !1 }) {
|
|
|
8245
8253
|
] })
|
|
8246
8254
|
] });
|
|
8247
8255
|
}
|
|
8248
|
-
function
|
|
8256
|
+
function xu({ children: e }) {
|
|
8249
8257
|
return /* @__PURE__ */ y("div", { className: "phone", children: [
|
|
8250
8258
|
/* @__PURE__ */ n("span", { className: "phone__island", "aria-hidden": "true" }),
|
|
8251
8259
|
/* @__PURE__ */ n("span", { className: "phone__btn phone__btn--mute", "aria-hidden": "true" }),
|
|
@@ -8287,7 +8295,7 @@ const cc = {
|
|
|
8287
8295
|
warning: yt,
|
|
8288
8296
|
error: ct
|
|
8289
8297
|
};
|
|
8290
|
-
function
|
|
8298
|
+
function Pu({ variant: e = "default", message: t, action: r }) {
|
|
8291
8299
|
const o = cc[e];
|
|
8292
8300
|
return /* @__PURE__ */ y("div", { className: `project-banner project-banner--${e}`, role: "status", children: [
|
|
8293
8301
|
/* @__PURE__ */ n(o, { className: "project-banner__icon", size: 15, strokeWidth: te, "aria-hidden": "true" }),
|
|
@@ -8295,7 +8303,7 @@ function xu({ variant: e = "default", message: t, action: r }) {
|
|
|
8295
8303
|
/* @__PURE__ */ n(sc, { action: r })
|
|
8296
8304
|
] });
|
|
8297
8305
|
}
|
|
8298
|
-
function
|
|
8306
|
+
function Cu({
|
|
8299
8307
|
text: e,
|
|
8300
8308
|
copyValue: t,
|
|
8301
8309
|
successMessage: r,
|
|
@@ -8343,7 +8351,7 @@ const lc = {
|
|
|
8343
8351
|
danger: { Icon: jt, label: "错误" },
|
|
8344
8352
|
warning: { Icon: yt, label: "警告" }
|
|
8345
8353
|
}, uc = typeof document > "u" ? re : fe;
|
|
8346
|
-
function
|
|
8354
|
+
function Du({
|
|
8347
8355
|
text: e,
|
|
8348
8356
|
prompt: t = !0,
|
|
8349
8357
|
inverted: r = !1,
|
|
@@ -8352,7 +8360,7 @@ function Cu({
|
|
|
8352
8360
|
onCopy: a
|
|
8353
8361
|
}) {
|
|
8354
8362
|
const { copied: s, copy: c, reset: u } = In({ success: "inline", resetAfterMs: 2e3 }), p = Array.isArray(e) ? e : [e], f = i ?? p.join(`
|
|
8355
|
-
`), 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");
|
|
8356
8364
|
re(() => (w.current = !0, () => {
|
|
8357
8365
|
w.current = !1;
|
|
8358
8366
|
}), []), uc(() => {
|
|
@@ -8443,7 +8451,7 @@ function pc(e, t, r) {
|
|
|
8443
8451
|
function hc(e, t, r) {
|
|
8444
8452
|
return r || (t === "health" ? e >= hr.success ? "success" : e >= hr.warning ? "warning" : "danger" : dc(e));
|
|
8445
8453
|
}
|
|
8446
|
-
function
|
|
8454
|
+
function Iu({
|
|
8447
8455
|
value: e,
|
|
8448
8456
|
size: t = "md",
|
|
8449
8457
|
showValue: r = !1,
|
|
@@ -8594,7 +8602,7 @@ function _c({ action: e, disabled: t }) {
|
|
|
8594
8602
|
}
|
|
8595
8603
|
);
|
|
8596
8604
|
}
|
|
8597
|
-
function
|
|
8605
|
+
function Eu({
|
|
8598
8606
|
tone: e = "info",
|
|
8599
8607
|
size: t = "default",
|
|
8600
8608
|
filled: r = !1,
|
|
@@ -8603,7 +8611,7 @@ function Iu({
|
|
|
8603
8611
|
action: a,
|
|
8604
8612
|
children: s
|
|
8605
8613
|
}) {
|
|
8606
|
-
const c = gc[e], u =
|
|
8614
|
+
const c = gc[e], u = ae(
|
|
8607
8615
|
"note",
|
|
8608
8616
|
`note--${e}`,
|
|
8609
8617
|
`note--${t}`,
|
|
@@ -8622,7 +8630,7 @@ function Iu({
|
|
|
8622
8630
|
function yc(e) {
|
|
8623
8631
|
return !e.defaultPrevented && e.button === 0 && !e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey;
|
|
8624
8632
|
}
|
|
8625
|
-
function
|
|
8633
|
+
function Tu({ previous: e, next: t, onNavigate: r, children: o }) {
|
|
8626
8634
|
const i = (a) => r ? (s) => {
|
|
8627
8635
|
yc(s) && (s.preventDefault(), r(a, s));
|
|
8628
8636
|
} : void 0;
|
|
@@ -8668,7 +8676,7 @@ function wc({
|
|
|
8668
8676
|
tone: t = "default",
|
|
8669
8677
|
label: r = "正在加载…"
|
|
8670
8678
|
}) {
|
|
8671
|
-
const o =
|
|
8679
|
+
const o = ae("spinner", `spinner--${e}`, t !== "default" ? `spinner--${t}` : ""), i = vc[e];
|
|
8672
8680
|
return /* @__PURE__ */ y("span", { className: o, role: "status", children: [
|
|
8673
8681
|
Array.from({ length: i }, (a, s) => /* @__PURE__ */ n(
|
|
8674
8682
|
"span",
|
|
@@ -8715,7 +8723,7 @@ function Pc(e, t, r) {
|
|
|
8715
8723
|
const o = Math.min(e * t, Math.floor(r));
|
|
8716
8724
|
return { start: Math.min((e - 1) * t + 1, o), end: o };
|
|
8717
8725
|
}
|
|
8718
|
-
function
|
|
8726
|
+
function Mu({
|
|
8719
8727
|
page: e,
|
|
8720
8728
|
pageSize: t = 20,
|
|
8721
8729
|
total: r,
|
|
@@ -8859,7 +8867,7 @@ function yr(e, t) {
|
|
|
8859
8867
|
const o = r.call(e, Cc);
|
|
8860
8868
|
return !!(o && o !== t);
|
|
8861
8869
|
}
|
|
8862
|
-
function
|
|
8870
|
+
function Su({
|
|
8863
8871
|
data: e,
|
|
8864
8872
|
columns: t,
|
|
8865
8873
|
rowKey: r,
|
|
@@ -8888,12 +8896,12 @@ function Mu({
|
|
|
8888
8896
|
rowIndex: q,
|
|
8889
8897
|
key: r(T, q),
|
|
8890
8898
|
disabled: h?.getRowDisabled?.(T, q) ?? !1
|
|
8891
|
-
})), 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(
|
|
8892
8900
|
"table",
|
|
8893
8901
|
i === "compact" && "table--compact",
|
|
8894
8902
|
a && "table--sticky-header",
|
|
8895
8903
|
D
|
|
8896
|
-
), _ = c === void 0 ? P : { ...P, minWidth: c }, L =
|
|
8904
|
+
), _ = c === void 0 ? P : { ...P, minWidth: c }, L = ae(
|
|
8897
8905
|
"table__scroll",
|
|
8898
8906
|
(a || s !== void 0) && "table__scroll--vertical"
|
|
8899
8907
|
), F = s === void 0 ? void 0 : { maxHeight: s }, W = a || s !== void 0 || c !== void 0;
|
|
@@ -8999,7 +9007,7 @@ function Mu({
|
|
|
8999
9007
|
J
|
|
9000
9008
|
] });
|
|
9001
9009
|
}
|
|
9002
|
-
function
|
|
9010
|
+
function $u({
|
|
9003
9011
|
items: e,
|
|
9004
9012
|
initial: t = 4,
|
|
9005
9013
|
controls: r,
|
|
@@ -9057,7 +9065,7 @@ function Su({
|
|
|
9057
9065
|
) }) : null
|
|
9058
9066
|
] });
|
|
9059
9067
|
}
|
|
9060
|
-
function
|
|
9068
|
+
function qu({
|
|
9061
9069
|
loading: e,
|
|
9062
9070
|
loadingLabel: t = "正在加载更多内容…",
|
|
9063
9071
|
noGap: r,
|
|
@@ -9082,7 +9090,7 @@ function $u({
|
|
|
9082
9090
|
...m,
|
|
9083
9091
|
ref: f,
|
|
9084
9092
|
type: a,
|
|
9085
|
-
className:
|
|
9093
|
+
className: ae(
|
|
9086
9094
|
"load-more-btn",
|
|
9087
9095
|
r ? "load-more-btn--no-gap" : "",
|
|
9088
9096
|
o ? "load-more-btn--no-border-radius" : "",
|
|
@@ -9129,7 +9137,7 @@ function Dc(e) {
|
|
|
9129
9137
|
function Tt(e, t, r) {
|
|
9130
9138
|
return t >= e.left && t <= e.right && r >= e.top && r <= e.bottom;
|
|
9131
9139
|
}
|
|
9132
|
-
function
|
|
9140
|
+
function Ru({
|
|
9133
9141
|
relative: e,
|
|
9134
9142
|
relativeLong: t,
|
|
9135
9143
|
iso: r,
|
|
@@ -9383,7 +9391,7 @@ function yo({ value: e, depth: t, path: r, collapsedDepth: o, highlight: i, seen
|
|
|
9383
9391
|
return /* @__PURE__ */ n(
|
|
9384
9392
|
"li",
|
|
9385
9393
|
{
|
|
9386
|
-
className:
|
|
9394
|
+
className: ae("q1-json-view__row", C && "q1-json-view__row--highlight"),
|
|
9387
9395
|
children: /* @__PURE__ */ n(
|
|
9388
9396
|
yo,
|
|
9389
9397
|
{
|
|
@@ -9410,7 +9418,7 @@ function Nn(e, t) {
|
|
|
9410
9418
|
const r = new Set(t).add(e);
|
|
9411
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(", ")}}`;
|
|
9412
9420
|
}
|
|
9413
|
-
function
|
|
9421
|
+
function Lu({
|
|
9414
9422
|
value: e,
|
|
9415
9423
|
singleLine: t = !1,
|
|
9416
9424
|
wrap: r = !1,
|
|
@@ -9420,7 +9428,7 @@ function Ru({
|
|
|
9420
9428
|
label: s = "JSON 数据",
|
|
9421
9429
|
className: c
|
|
9422
9430
|
}) {
|
|
9423
|
-
const u = new Set(i ?? []), p =
|
|
9431
|
+
const u = new Set(i ?? []), p = ae(
|
|
9424
9432
|
"q1-json-view",
|
|
9425
9433
|
a && "q1-json-view--embedded",
|
|
9426
9434
|
r && !t && "q1-json-view--wrap",
|
|
@@ -9452,7 +9460,7 @@ function Sc(e) {
|
|
|
9452
9460
|
function $c() {
|
|
9453
9461
|
return Cn(Sc, wo, () => !0);
|
|
9454
9462
|
}
|
|
9455
|
-
function
|
|
9463
|
+
function Au({
|
|
9456
9464
|
src: e,
|
|
9457
9465
|
poster: t,
|
|
9458
9466
|
tracks: r,
|
|
@@ -9681,7 +9689,7 @@ function Oc({ small: e, disabled: t }) {
|
|
|
9681
9689
|
const [r, o] = Ac();
|
|
9682
9690
|
return /* @__PURE__ */ n(xo, { small: e, disabled: t, mode: r, onModeChange: o });
|
|
9683
9691
|
}
|
|
9684
|
-
function
|
|
9692
|
+
function Fu({ small: e, disabled: t, mode: r, onModeChange: o }) {
|
|
9685
9693
|
return r !== void 0 ? /* @__PURE__ */ n(xo, { small: e, disabled: t, mode: r, onModeChange: o }) : /* @__PURE__ */ n(Oc, { small: e, disabled: t });
|
|
9686
9694
|
}
|
|
9687
9695
|
const Bc = {
|
|
@@ -9738,7 +9746,7 @@ function Co(e) {
|
|
|
9738
9746
|
"data-can-scroll-bottom": String(e.canScrollBottom)
|
|
9739
9747
|
};
|
|
9740
9748
|
}
|
|
9741
|
-
function
|
|
9749
|
+
function Ou({
|
|
9742
9750
|
axis: e,
|
|
9743
9751
|
label: t,
|
|
9744
9752
|
children: r
|
|
@@ -9758,7 +9766,7 @@ function Fu({
|
|
|
9758
9766
|
}
|
|
9759
9767
|
) });
|
|
9760
9768
|
}
|
|
9761
|
-
function
|
|
9769
|
+
function Bu({
|
|
9762
9770
|
axis: e = "horizontal",
|
|
9763
9771
|
contentName: t,
|
|
9764
9772
|
label: r,
|
|
@@ -9858,7 +9866,7 @@ function Pn(e, { min: t, max: r }) {
|
|
|
9858
9866
|
function Ht(e, t) {
|
|
9859
9867
|
return t ? t === "%" ? `${e}%` : `${e} ${t}` : String(e);
|
|
9860
9868
|
}
|
|
9861
|
-
const
|
|
9869
|
+
const zu = bt(function({
|
|
9862
9870
|
label: t,
|
|
9863
9871
|
unit: r,
|
|
9864
9872
|
min: o = 0,
|
|
@@ -9917,7 +9925,7 @@ const Bu = bt(function({
|
|
|
9917
9925
|
/* @__PURE__ */ n("span", { className: "slider-thumb-emphasis", "aria-hidden": "true" })
|
|
9918
9926
|
] })
|
|
9919
9927
|
] });
|
|
9920
|
-
}),
|
|
9928
|
+
}), Wu = bt(function({
|
|
9921
9929
|
label: t = "数值区间",
|
|
9922
9930
|
unit: r = "",
|
|
9923
9931
|
min: o = 0,
|
|
@@ -10148,12 +10156,12 @@ function Wc({
|
|
|
10148
10156
|
type: r = "text"
|
|
10149
10157
|
}) {
|
|
10150
10158
|
const o = r === "menu";
|
|
10151
|
-
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: [
|
|
10152
10160
|
/* @__PURE__ */ n(Lt, { crumb: i }),
|
|
10153
10161
|
!o && a < e.length - 1 ? /* @__PURE__ */ n(At, {}) : null
|
|
10154
10162
|
] }, `${i.href ?? "static"}-${i.label}-${a}`)) }) });
|
|
10155
10163
|
}
|
|
10156
|
-
function
|
|
10164
|
+
function Ku({ items: e, label: t }) {
|
|
10157
10165
|
const [r, o] = H(!1), [i, a] = H(), [s, c] = H(!1), u = R(null);
|
|
10158
10166
|
if (e.length < 3) return /* @__PURE__ */ n(Wc, { items: e, label: t });
|
|
10159
10167
|
const p = e[0], f = e[e.length - 1], d = e.slice(1, -1), m = () => {
|
|
@@ -10194,7 +10202,7 @@ function Wu({ items: e, label: t }) {
|
|
|
10194
10202
|
/* @__PURE__ */ n(
|
|
10195
10203
|
Mr,
|
|
10196
10204
|
{
|
|
10197
|
-
className:
|
|
10205
|
+
className: ae("breadcrumb__toggle-icon", r ? "" : "breadcrumb__toggle-icon--active"),
|
|
10198
10206
|
size: 16,
|
|
10199
10207
|
strokeWidth: te
|
|
10200
10208
|
}
|
|
@@ -10202,7 +10210,7 @@ function Wu({ items: e, label: t }) {
|
|
|
10202
10210
|
/* @__PURE__ */ n(
|
|
10203
10211
|
Er,
|
|
10204
10212
|
{
|
|
10205
|
-
className:
|
|
10213
|
+
className: ae("breadcrumb__toggle-icon", r ? "breadcrumb__toggle-icon--active" : ""),
|
|
10206
10214
|
size: 16,
|
|
10207
10215
|
strokeWidth: te
|
|
10208
10216
|
}
|
|
@@ -10316,7 +10324,7 @@ function Kc({ open: e, onClose: t, title: r, side: o = "right", size: i, dismiss
|
|
|
10316
10324
|
] })
|
|
10317
10325
|
) : null;
|
|
10318
10326
|
}
|
|
10319
|
-
function
|
|
10327
|
+
function Vu({
|
|
10320
10328
|
label: e,
|
|
10321
10329
|
entries: t,
|
|
10322
10330
|
variant: r = "default",
|
|
@@ -10479,7 +10487,7 @@ function Ku({
|
|
|
10479
10487
|
] });
|
|
10480
10488
|
}
|
|
10481
10489
|
const Vc = (e) => e.type === "item" || e.type === "link";
|
|
10482
|
-
function
|
|
10490
|
+
function Hu({ label: e, entries: t, withChevron: r, align: o = "start", triggerContent: i, prefix: a, size: s = "md" }) {
|
|
10483
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(
|
|
10484
10492
|
c,
|
|
10485
10493
|
l,
|
|
@@ -10678,7 +10686,7 @@ function Vu({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
|
|
|
10678
10686
|
) : null
|
|
10679
10687
|
] });
|
|
10680
10688
|
}
|
|
10681
|
-
function
|
|
10689
|
+
function Uu({ options: e, defaultSelected: t = [], placeholder: r, onChange: o, preserveSelectionOrder: i = !1 }) {
|
|
10682
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);
|
|
10683
10691
|
function M(G) {
|
|
10684
10692
|
m(G), o?.(G);
|
|
@@ -10892,7 +10900,7 @@ function Hc(e) {
|
|
|
10892
10900
|
if (e.dismissal.type !== "escape-action" || typeof e.dismissal.busy != "boolean" || typeof e.dismissal.runAction != "function")
|
|
10893
10901
|
throw new TypeError("Modal: invalid escape-action dismissal contract.");
|
|
10894
10902
|
}
|
|
10895
|
-
function
|
|
10903
|
+
function ju(e) {
|
|
10896
10904
|
Hc(e);
|
|
10897
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({
|
|
10898
10906
|
open: t,
|
|
@@ -10940,11 +10948,11 @@ function Uu(e) {
|
|
|
10940
10948
|
] })
|
|
10941
10949
|
) : null;
|
|
10942
10950
|
}
|
|
10943
|
-
function
|
|
10951
|
+
function Yu({ children: e }) {
|
|
10944
10952
|
return /* @__PURE__ */ n("div", { className: "modal__inset", children: e });
|
|
10945
10953
|
}
|
|
10946
10954
|
const Mt = 100, ut = 32;
|
|
10947
|
-
function
|
|
10955
|
+
function Xu({ data: e, summary: t, axisLabels: r = "ends-and-middle", height: o = 64, className: i }) {
|
|
10948
10956
|
const a = typeof t == "string" && !!t.trim(), s = typeof o == "number" && Number.isFinite(o) && o > 0, c = Array.isArray(e) && e.every(
|
|
10949
10957
|
(I) => I !== null && typeof I == "object" && typeof I.label == "string" && Number.isFinite(I.value)
|
|
10950
10958
|
), u = !a || !s || !c, p = u ? [] : e.map((I) => I.value), f = p.length;
|
|
@@ -10971,7 +10979,7 @@ function Yu({ data: e, summary: t, axisLabels: r = "ends-and-middle", height: o
|
|
|
10971
10979
|
return /* @__PURE__ */ y(
|
|
10972
10980
|
"div",
|
|
10973
10981
|
{
|
|
10974
|
-
className:
|
|
10982
|
+
className: ae("q1-chart", i ?? ""),
|
|
10975
10983
|
style: S,
|
|
10976
10984
|
children: [
|
|
10977
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: [
|
|
@@ -11055,7 +11063,7 @@ function Nr(e, t, r) {
|
|
|
11055
11063
|
function Xc(e) {
|
|
11056
11064
|
return `${e.getFullYear()}年${e.getMonth() + 1}月${e.getDate()}日星期${Uc[e.getDay()]}`;
|
|
11057
11065
|
}
|
|
11058
|
-
function
|
|
11066
|
+
function Gu({
|
|
11059
11067
|
presets: e,
|
|
11060
11068
|
activeLabel: t,
|
|
11061
11069
|
onPick: r
|
|
@@ -11567,12 +11575,12 @@ function rl(e) {
|
|
|
11567
11575
|
children: [
|
|
11568
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}`)) }),
|
|
11569
11577
|
_.map((L, F) => /* @__PURE__ */ n("div", { className: "calendar__row", role: "row", children: L.map(({ date: W, inMonth: A }) => {
|
|
11570
|
-
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(
|
|
11571
11579
|
"calendar__cell",
|
|
11572
11580
|
Y ? "calendar__cell--in-range" : "",
|
|
11573
11581
|
U && Q ? "calendar__cell--range-start" : "",
|
|
11574
11582
|
U && X ? "calendar__cell--range-end" : ""
|
|
11575
|
-
), J =
|
|
11583
|
+
), J = ae(
|
|
11576
11584
|
"calendar__day",
|
|
11577
11585
|
A ? "" : "calendar__day--outside",
|
|
11578
11586
|
Q && E.start ? "calendar__day--start" : "",
|
|
@@ -11615,7 +11623,7 @@ function rl(e) {
|
|
|
11615
11623
|
/* @__PURE__ */ n("span", { className: "q1-sr-only", "aria-live": "polite", children: l })
|
|
11616
11624
|
] });
|
|
11617
11625
|
}
|
|
11618
|
-
function
|
|
11626
|
+
function Qu(e) {
|
|
11619
11627
|
return /* @__PURE__ */ n(Eo, { ...e });
|
|
11620
11628
|
}
|
|
11621
11629
|
function ol(e) {
|
|
@@ -11674,7 +11682,7 @@ function ol(e) {
|
|
|
11674
11682
|
/* @__PURE__ */ y(
|
|
11675
11683
|
"span",
|
|
11676
11684
|
{
|
|
11677
|
-
className:
|
|
11685
|
+
className: ae(
|
|
11678
11686
|
"cal-field__control",
|
|
11679
11687
|
`cal-field__control--${r}`,
|
|
11680
11688
|
`cal-field__control--${i}`,
|
|
@@ -11780,7 +11788,7 @@ function ol(e) {
|
|
|
11780
11788
|
) : null
|
|
11781
11789
|
] });
|
|
11782
11790
|
}
|
|
11783
|
-
function
|
|
11791
|
+
function Zu(e) {
|
|
11784
11792
|
return /* @__PURE__ */ n(ol, { ...e });
|
|
11785
11793
|
}
|
|
11786
11794
|
const il = [
|
|
@@ -11789,7 +11797,7 @@ const il = [
|
|
|
11789
11797
|
{ value: "good", label: "清楚", Icon: Ar },
|
|
11790
11798
|
{ value: "love", label: "非常清楚", Icon: qr }
|
|
11791
11799
|
];
|
|
11792
|
-
function
|
|
11800
|
+
function Ju({ variant: e, onSubmit: t }) {
|
|
11793
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";
|
|
11794
11802
|
async function l(v, D = "submit") {
|
|
11795
11803
|
if (!d.current) {
|
|
@@ -11939,7 +11947,7 @@ function sl({
|
|
|
11939
11947
|
/* @__PURE__ */ n("div", { className: "timeline__content", children: r })
|
|
11940
11948
|
] });
|
|
11941
11949
|
}
|
|
11942
|
-
function
|
|
11950
|
+
function ed({ summary: e, children: t }) {
|
|
11943
11951
|
const [r, o] = H(!1), i = le();
|
|
11944
11952
|
return /* @__PURE__ */ y(sl, { children: [
|
|
11945
11953
|
/* @__PURE__ */ y(
|
|
@@ -11959,7 +11967,7 @@ function Ju({ summary: e, children: t }) {
|
|
|
11959
11967
|
/* @__PURE__ */ n("div", { id: i, hidden: !r, children: /* @__PURE__ */ n(al, { children: t }) })
|
|
11960
11968
|
] });
|
|
11961
11969
|
}
|
|
11962
|
-
function
|
|
11970
|
+
function td({
|
|
11963
11971
|
actor: e,
|
|
11964
11972
|
time: t,
|
|
11965
11973
|
variant: r = "default",
|
|
@@ -11975,10 +11983,10 @@ function ed({
|
|
|
11975
11983
|
] }) : null
|
|
11976
11984
|
] });
|
|
11977
11985
|
}
|
|
11978
|
-
function
|
|
11986
|
+
function nd({ children: e }) {
|
|
11979
11987
|
return /* @__PURE__ */ n("span", { className: "message__mention", children: e });
|
|
11980
11988
|
}
|
|
11981
|
-
function
|
|
11989
|
+
function rd({
|
|
11982
11990
|
author: e,
|
|
11983
11991
|
avatar: t,
|
|
11984
11992
|
time: r,
|
|
@@ -12042,7 +12050,7 @@ function dl(e, t) {
|
|
|
12042
12050
|
const s = i && i.query === e && i.load === t && i.retry === r ? i : void 0;
|
|
12043
12051
|
return { state: s?.state ?? "loading", matches: s?.matches ?? [], retry: () => o((c) => c + 1) };
|
|
12044
12052
|
}
|
|
12045
|
-
function
|
|
12053
|
+
function od({
|
|
12046
12054
|
onSubmit: e,
|
|
12047
12055
|
onAttach: t,
|
|
12048
12056
|
attachments: r,
|
|
@@ -12258,7 +12266,7 @@ function rd({
|
|
|
12258
12266
|
}
|
|
12259
12267
|
);
|
|
12260
12268
|
}
|
|
12261
|
-
function
|
|
12269
|
+
function id({
|
|
12262
12270
|
name: e,
|
|
12263
12271
|
size: t,
|
|
12264
12272
|
type: r = "file",
|
|
@@ -12328,7 +12336,7 @@ function To(e, t) {
|
|
|
12328
12336
|
};
|
|
12329
12337
|
}, [e, t, r]), i;
|
|
12330
12338
|
}
|
|
12331
|
-
function
|
|
12339
|
+
function ad({ trigger: e, children: t, openDelay: r = 0, closeDelay: o = 90, side: i = "bottom", align: a = "start", className: s }) {
|
|
12332
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);
|
|
12333
12341
|
function D() {
|
|
12334
12342
|
clearTimeout(m.current), clearTimeout(g.current);
|
|
@@ -12428,11 +12436,11 @@ function ml(e) {
|
|
|
12428
12436
|
r.forEach((o) => o.finish());
|
|
12429
12437
|
}
|
|
12430
12438
|
}
|
|
12431
|
-
function
|
|
12439
|
+
function sd() {
|
|
12432
12440
|
return Fr();
|
|
12433
12441
|
}
|
|
12434
12442
|
const Pr = st(null);
|
|
12435
|
-
function
|
|
12443
|
+
function cd({
|
|
12436
12444
|
open: e,
|
|
12437
12445
|
defaultOpen: t = !1,
|
|
12438
12446
|
onOpenChange: r,
|
|
@@ -12465,11 +12473,11 @@ function sd({
|
|
|
12465
12473
|
U.current = k;
|
|
12466
12474
|
const Y = R(/* @__PURE__ */ new Set()), G = M?.register, O = ce((Z) => {
|
|
12467
12475
|
Y.current.add(Z);
|
|
12468
|
-
const
|
|
12476
|
+
const se = G?.(Z);
|
|
12469
12477
|
return () => {
|
|
12470
|
-
Y.current.delete(Z),
|
|
12478
|
+
Y.current.delete(Z), se?.();
|
|
12471
12479
|
};
|
|
12472
|
-
}, [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);
|
|
12473
12481
|
function z(Z) {
|
|
12474
12482
|
e === void 0 && S(Z), r?.(Z);
|
|
12475
12483
|
}
|
|
@@ -12504,7 +12512,7 @@ function sd({
|
|
|
12504
12512
|
if (!I || !de) return;
|
|
12505
12513
|
const Z = L.current;
|
|
12506
12514
|
if (!Z || Z.contains(Z.ownerDocument.activeElement) || j === "dialog" && !(A || !a && x.current && D !== "none") || j !== "dialog" && D === "none") return;
|
|
12507
|
-
const
|
|
12515
|
+
const se = Z.ownerDocument, we = se.activeElement;
|
|
12508
12516
|
function ie() {
|
|
12509
12517
|
if (j === "dialog") {
|
|
12510
12518
|
V();
|
|
@@ -12516,20 +12524,20 @@ function sd({
|
|
|
12516
12524
|
ml(Z), ie();
|
|
12517
12525
|
let ue = 0, ve = 0;
|
|
12518
12526
|
const Ce = () => {
|
|
12519
|
-
Z.contains(
|
|
12527
|
+
Z.contains(se.activeElement) || se.activeElement !== we || ve++ >= 10 || (ie(), ue = se.defaultView?.requestAnimationFrame(Ce) ?? 0);
|
|
12520
12528
|
};
|
|
12521
|
-
return Z.contains(
|
|
12529
|
+
return Z.contains(se.activeElement) || (ue = se.defaultView?.requestAnimationFrame(Ce) ?? 0), () => se.defaultView?.cancelAnimationFrame(ue);
|
|
12522
12530
|
}, [a, A, V, D, I, de, j, v]), re(() => {
|
|
12523
12531
|
if (!I) return;
|
|
12524
12532
|
const Z = _.current?.ownerDocument ?? document;
|
|
12525
|
-
let
|
|
12533
|
+
let se = 0;
|
|
12526
12534
|
function we(ie) {
|
|
12527
|
-
!(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(() => {
|
|
12528
12536
|
q.current = !1;
|
|
12529
12537
|
}) ?? 0);
|
|
12530
12538
|
}
|
|
12531
12539
|
return Z.addEventListener("pointerdown", we, !0), () => {
|
|
12532
|
-
Z.removeEventListener("pointerdown", we, !0), Z.defaultView?.cancelAnimationFrame(
|
|
12540
|
+
Z.removeEventListener("pointerdown", we, !0), Z.defaultView?.cancelAnimationFrame(se), q.current = !1;
|
|
12533
12541
|
};
|
|
12534
12542
|
}, [T, I, _]);
|
|
12535
12543
|
const pe = {
|
|
@@ -12575,7 +12583,7 @@ function sd({
|
|
|
12575
12583
|
) })) : null
|
|
12576
12584
|
] });
|
|
12577
12585
|
}
|
|
12578
|
-
function
|
|
12586
|
+
function ld(e) {
|
|
12579
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;
|
|
12580
12588
|
for (const b of t)
|
|
12581
12589
|
if (!b.label && (!b.ariaLabel?.trim() || !b.icon))
|
|
@@ -12617,7 +12625,7 @@ function cd(e) {
|
|
|
12617
12625
|
const E = f[P];
|
|
12618
12626
|
E && (p(E.value), a.current[t.indexOf(E)]?.focus());
|
|
12619
12627
|
}
|
|
12620
|
-
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(
|
|
12621
12629
|
"button",
|
|
12622
12630
|
{
|
|
12623
12631
|
ref: (D) => {
|
|
@@ -12641,7 +12649,7 @@ function cd(e) {
|
|
|
12641
12649
|
b.value
|
|
12642
12650
|
)) });
|
|
12643
12651
|
}
|
|
12644
|
-
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 }) {
|
|
12645
12653
|
return /* @__PURE__ */ y("article", { ...m, className: `bubble bubble--${e} bubble--${a}${d ? ` ${d}` : ""}`, children: [
|
|
12646
12654
|
t ? /* @__PURE__ */ n("div", { className: "bubble__avatar", children: t }) : null,
|
|
12647
12655
|
/* @__PURE__ */ y("div", { className: "bubble__main", children: [
|
|
@@ -12658,7 +12666,7 @@ function ld({ direction: e = "incoming", avatar: t, name: r, time: o, children:
|
|
|
12658
12666
|
] })
|
|
12659
12667
|
] });
|
|
12660
12668
|
}
|
|
12661
|
-
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 }) {
|
|
12662
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;
|
|
12663
12671
|
function k() {
|
|
12664
12672
|
const I = f.current;
|
|
@@ -12718,7 +12726,7 @@ function pl(e, t) {
|
|
|
12718
12726
|
const r = t.trim().toLowerCase();
|
|
12719
12727
|
return e.filter((o) => [o.label, ...o.keywords ?? []].some((i) => i.toLowerCase().includes(r)));
|
|
12720
12728
|
}
|
|
12721
|
-
function
|
|
12729
|
+
function fd({
|
|
12722
12730
|
options: e,
|
|
12723
12731
|
value: t,
|
|
12724
12732
|
onSelect: r,
|
|
@@ -12813,140 +12821,141 @@ function dd({
|
|
|
12813
12821
|
] });
|
|
12814
12822
|
}
|
|
12815
12823
|
export {
|
|
12816
|
-
|
|
12817
|
-
|
|
12824
|
+
id as Attachment,
|
|
12825
|
+
cu as AuthCard,
|
|
12818
12826
|
oc as Avatar,
|
|
12819
12827
|
Ts as AvatarButton,
|
|
12820
|
-
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12828
|
+
vu as AvatarGroup,
|
|
12829
|
+
iu as Badge,
|
|
12830
|
+
su as Banner,
|
|
12831
|
+
gu as Book,
|
|
12824
12832
|
Wc as Breadcrumb,
|
|
12825
|
-
|
|
12833
|
+
_u as Browser,
|
|
12826
12834
|
tc as BrowserAddress,
|
|
12827
12835
|
Js as BrowserControls,
|
|
12828
12836
|
Zs as BrowserDots,
|
|
12829
|
-
|
|
12837
|
+
yu as BrowserPlaceholder,
|
|
12830
12838
|
nc as BrowserTabs,
|
|
12831
|
-
|
|
12839
|
+
ud as Bubble,
|
|
12832
12840
|
Ie as Button,
|
|
12833
12841
|
ma as ButtonLink,
|
|
12834
|
-
|
|
12842
|
+
Zu as Calendar,
|
|
12835
12843
|
rl as CalendarGrid,
|
|
12836
12844
|
ds as Card,
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12845
|
+
Xu as Chart,
|
|
12846
|
+
kl as CheckCircleFill,
|
|
12847
|
+
El as Checkbox,
|
|
12848
|
+
Sl as Choicebox,
|
|
12840
12849
|
Ur as ClearButton,
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12850
|
+
Cl as ClearableInput,
|
|
12851
|
+
Ll as Code,
|
|
12852
|
+
Fl as CodeBlock,
|
|
12853
|
+
Al as CodeInline,
|
|
12845
12854
|
io as CodeTokens,
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
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,
|
|
12855
12864
|
yn as ControlOption,
|
|
12856
12865
|
Kn as CopyButton,
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12860
|
-
|
|
12861
|
-
|
|
12862
|
-
|
|
12863
|
-
|
|
12864
|
-
|
|
12865
|
-
|
|
12866
|
-
|
|
12867
|
-
|
|
12868
|
-
|
|
12869
|
-
|
|
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,
|
|
12870
12879
|
vl as FilterChip,
|
|
12871
|
-
|
|
12880
|
+
fd as FilterOptionPanel,
|
|
12872
12881
|
Zt as FormField,
|
|
12873
|
-
|
|
12874
|
-
|
|
12882
|
+
Iu as Gauge,
|
|
12883
|
+
ad as HoverCard,
|
|
12875
12884
|
ya as IconButton,
|
|
12876
12885
|
Zr as InfoTip,
|
|
12877
12886
|
Tn as Input,
|
|
12878
|
-
|
|
12879
|
-
|
|
12887
|
+
Pl as InputOTP,
|
|
12888
|
+
Lu as JsonView,
|
|
12880
12889
|
We as Kbd,
|
|
12881
|
-
|
|
12890
|
+
tu as Label,
|
|
12882
12891
|
wl as Link,
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
|
|
12890
|
-
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
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,
|
|
12906
12915
|
bc as Progress,
|
|
12907
|
-
|
|
12916
|
+
Pu as ProjectBanner,
|
|
12908
12917
|
rs as Q1travelSymbol,
|
|
12909
|
-
|
|
12918
|
+
Tl as Radio,
|
|
12910
12919
|
ol as RangeField,
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
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,
|
|
12919
12928
|
to as Select,
|
|
12920
12929
|
ns as Separator,
|
|
12921
12930
|
Kc as Sheet,
|
|
12922
|
-
|
|
12931
|
+
$u as ShowMore,
|
|
12923
12932
|
Pt as Sidebar,
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
|
|
12933
|
+
lu as SidebarDrawer,
|
|
12934
|
+
wu as Skeleton,
|
|
12935
|
+
zu as Slider,
|
|
12936
|
+
Du as Snippet,
|
|
12928
12937
|
wc as Spinner,
|
|
12929
|
-
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
|
|
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,
|
|
12937
12946
|
al as Timeline,
|
|
12938
|
-
|
|
12947
|
+
ed as TimelineCollapsedGroup,
|
|
12939
12948
|
sl as TimelineItem,
|
|
12940
12949
|
yl as ToastProvider,
|
|
12941
|
-
|
|
12942
|
-
|
|
12950
|
+
Rl as Toggle,
|
|
12951
|
+
ld as ToggleGroup,
|
|
12943
12952
|
Nl as Toolbar,
|
|
12944
12953
|
Gr as Tooltip,
|
|
12945
|
-
|
|
12954
|
+
Au as Video,
|
|
12946
12955
|
Ue as addDays,
|
|
12947
|
-
|
|
12956
|
+
sd as ensurePopoverRoot,
|
|
12948
12957
|
_l as getOverlayCoordinator,
|
|
12949
12958
|
In as useCopy,
|
|
12950
|
-
|
|
12959
|
+
Ml as useRadio,
|
|
12951
12960
|
aa as useToast
|
|
12952
12961
|
};
|