@gpustack/core-ui 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -3066,7 +3066,7 @@ function oa(e) {
|
|
|
3066
3066
|
manual: !0,
|
|
3067
3067
|
debounceWait: e.debounceWait || 300,
|
|
3068
3068
|
onError: (e) => {
|
|
3069
|
-
|
|
3069
|
+
l([]);
|
|
3070
3070
|
}
|
|
3071
3071
|
});
|
|
3072
3072
|
return F(() => () => {
|
|
@@ -3094,7 +3094,7 @@ function sa(e) {
|
|
|
3094
3094
|
manual: !0,
|
|
3095
3095
|
onSuccess: () => {},
|
|
3096
3096
|
onError: (e) => {
|
|
3097
|
-
|
|
3097
|
+
c({});
|
|
3098
3098
|
}
|
|
3099
3099
|
}), f = () => {
|
|
3100
3100
|
d(), o.current?.cancel();
|
|
@@ -8680,8 +8680,7 @@ var Nc = (e) => {
|
|
|
8680
8680
|
tail: y.current,
|
|
8681
8681
|
...e.params
|
|
8682
8682
|
},
|
|
8683
|
-
watch: c?.watch ?? !0,
|
|
8684
|
-
watchable: s ?? !0,
|
|
8683
|
+
...s ? { watch: c?.watch ?? !0 } : {},
|
|
8685
8684
|
contentType: "text",
|
|
8686
8685
|
handler: ae
|
|
8687
8686
|
});
|
|
@@ -9315,7 +9314,7 @@ var Dl = Y.div`
|
|
|
9315
9314
|
&:hover {
|
|
9316
9315
|
background-color: var(--ant-control-item-bg-hover);
|
|
9317
9316
|
}
|
|
9318
|
-
`, Ll = ({ maxHeight: e, dataList: t,
|
|
9317
|
+
`, Ll = ({ maxHeight: e, dataList: t, value: n, onChange: r, renderTitle: i }) => {
|
|
9319
9318
|
let a = (e) => {
|
|
9320
9319
|
let t = e.key;
|
|
9321
9320
|
r(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
|
|
@@ -9349,7 +9348,7 @@ var Bl = Y.div`
|
|
|
9349
9348
|
justify-content: space-between;
|
|
9350
9349
|
border-bottom: 1px solid var(--ant-color-split);
|
|
9351
9350
|
background-color: var(--ant-color-fill-alter);
|
|
9352
|
-
`, Vl = ({ height: e = 300, leftWidth: t = 260, options: n,
|
|
9351
|
+
`, Vl = ({ height: e = 300, leftWidth: t = 260, options: n, value: r, searchPlaceholder: i, notFoundContent: a, onChange: s, styles: c }) => {
|
|
9353
9352
|
let l = o(), [u, d] = E.useState(!1), [f, p] = E.useState(!1), [m, h] = B(""), g = R(() => n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())), [n, m]), _ = (e) => {
|
|
9354
9353
|
h(e.target.value);
|
|
9355
9354
|
}, v = (e) => {
|
|
@@ -9406,8 +9405,8 @@ var Bl = Y.div`
|
|
|
9406
9405
|
}), g.length > 0 ? /* @__PURE__ */ H(Ll, {
|
|
9407
9406
|
maxHeight: e - 50,
|
|
9408
9407
|
dataList: g,
|
|
9409
|
-
|
|
9410
|
-
|
|
9408
|
+
value: r,
|
|
9409
|
+
onChange: (e) => {
|
|
9411
9410
|
s(e), y(e);
|
|
9412
9411
|
}
|
|
9413
9412
|
}) : /* @__PURE__ */ H(ft, {
|
|
@@ -7,9 +7,9 @@ interface SelectPanelProps {
|
|
|
7
7
|
key: string;
|
|
8
8
|
title: string;
|
|
9
9
|
}>;
|
|
10
|
-
|
|
10
|
+
value: string[];
|
|
11
11
|
notFoundContent?: React.ReactNode;
|
|
12
|
-
|
|
12
|
+
onChange: (value: string[]) => void;
|
|
13
13
|
styles?: {
|
|
14
14
|
container?: React.CSSProperties;
|
|
15
15
|
left?: React.CSSProperties;
|
|
@@ -5,12 +5,12 @@ interface ListProps {
|
|
|
5
5
|
key: string;
|
|
6
6
|
title: string;
|
|
7
7
|
}>;
|
|
8
|
-
|
|
8
|
+
value: string[];
|
|
9
9
|
renderTitle?: (item: {
|
|
10
10
|
key: string;
|
|
11
11
|
title: string;
|
|
12
12
|
}) => React.ReactNode;
|
|
13
|
-
|
|
13
|
+
onChange: (value: string[]) => void;
|
|
14
14
|
}
|
|
15
15
|
declare const List: React.FC<ListProps>;
|
|
16
16
|
export default List;
|