@gpustack/core-ui 1.0.12 → 1.0.14
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();
|
|
@@ -3670,7 +3670,8 @@ var ga = () => {
|
|
|
3670
3670
|
padding-left: 30px;
|
|
3671
3671
|
color: var(--ant-color-text-secondary);
|
|
3672
3672
|
white-space: pre-line;
|
|
3673
|
-
word-break:
|
|
3673
|
+
word-break: normal;
|
|
3674
|
+
overflow-wrap: break-word;
|
|
3674
3675
|
span {
|
|
3675
3676
|
color: var(--ant-color-text);
|
|
3676
3677
|
display: flex;
|
|
@@ -8680,8 +8681,7 @@ var Nc = (e) => {
|
|
|
8680
8681
|
tail: y.current,
|
|
8681
8682
|
...e.params
|
|
8682
8683
|
},
|
|
8683
|
-
watch: c?.watch ?? !0,
|
|
8684
|
-
watchable: s ?? !0,
|
|
8684
|
+
...s ? { watch: c?.watch ?? !0 } : {},
|
|
8685
8685
|
contentType: "text",
|
|
8686
8686
|
handler: ae
|
|
8687
8687
|
});
|
|
@@ -9315,7 +9315,7 @@ var Dl = Y.div`
|
|
|
9315
9315
|
&:hover {
|
|
9316
9316
|
background-color: var(--ant-control-item-bg-hover);
|
|
9317
9317
|
}
|
|
9318
|
-
`, Ll = ({ maxHeight: e, dataList: t,
|
|
9318
|
+
`, Ll = ({ maxHeight: e, dataList: t, value: n = [], onChange: r, renderTitle: i }) => {
|
|
9319
9319
|
let a = (e) => {
|
|
9320
9320
|
let t = e.key;
|
|
9321
9321
|
r(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
|
|
@@ -9339,9 +9339,7 @@ var Dl = Y.div`
|
|
|
9339
9339
|
max-height: ${({ $maxHeight: e }) => e ? `${e + 2}px` : "auto"};
|
|
9340
9340
|
`, zl = Y.div`
|
|
9341
9341
|
padding: 0;
|
|
9342
|
-
|
|
9343
|
-
Y.div``;
|
|
9344
|
-
var Bl = Y.div`
|
|
9342
|
+
`, Bl = Y.div`
|
|
9345
9343
|
padding: 8px 12px 8px;
|
|
9346
9344
|
display: flex;
|
|
9347
9345
|
gap: 8px;
|
|
@@ -9349,17 +9347,17 @@ var Bl = Y.div`
|
|
|
9349
9347
|
justify-content: space-between;
|
|
9350
9348
|
border-bottom: 1px solid var(--ant-color-split);
|
|
9351
9349
|
background-color: var(--ant-color-fill-alter);
|
|
9352
|
-
`, Vl = ({ height: e = 300, leftWidth: t = 260, options: n,
|
|
9350
|
+
`, Vl = ({ height: e = 300, leftWidth: t = 260, options: n, value: r = [], searchPlaceholder: i, notFoundContent: a, onChange: s, styles: c }) => {
|
|
9353
9351
|
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
9352
|
h(e.target.value);
|
|
9355
9353
|
}, v = (e) => {
|
|
9356
9354
|
let t = e.target.checked;
|
|
9357
9355
|
if (p(t), d(!1), t) {
|
|
9358
9356
|
let e = n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())).map((e) => e.key);
|
|
9359
|
-
s(Array.from(new Set([...r, ...e])));
|
|
9357
|
+
s?.(Array.from(new Set([...r, ...e])));
|
|
9360
9358
|
} else {
|
|
9361
|
-
let e = n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())).map((e) => e.key);
|
|
9362
|
-
s(
|
|
9359
|
+
let e = n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())).map((e) => e.key), t = r.filter((t) => !e.includes(t));
|
|
9360
|
+
s?.(t);
|
|
9363
9361
|
}
|
|
9364
9362
|
}, y = (e) => {
|
|
9365
9363
|
if (n.length === 0) {
|
|
@@ -9406,9 +9404,9 @@ var Bl = Y.div`
|
|
|
9406
9404
|
}), g.length > 0 ? /* @__PURE__ */ H(Ll, {
|
|
9407
9405
|
maxHeight: e - 50,
|
|
9408
9406
|
dataList: g,
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
s(e), y(e);
|
|
9407
|
+
value: r,
|
|
9408
|
+
onChange: (e) => {
|
|
9409
|
+
s?.(e), y(e);
|
|
9412
9410
|
}
|
|
9413
9411
|
}) : /* @__PURE__ */ H(ft, {
|
|
9414
9412
|
image: ft.PRESENTED_IMAGE_SIMPLE,
|
|
@@ -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;
|