@gpustack/core-ui 1.0.13 → 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
|
@@ -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;
|
|
@@ -9314,7 +9315,7 @@ var Dl = Y.div`
|
|
|
9314
9315
|
&:hover {
|
|
9315
9316
|
background-color: var(--ant-control-item-bg-hover);
|
|
9316
9317
|
}
|
|
9317
|
-
`, Ll = ({ maxHeight: e, dataList: t, value: n, onChange: r, renderTitle: i }) => {
|
|
9318
|
+
`, Ll = ({ maxHeight: e, dataList: t, value: n = [], onChange: r, renderTitle: i }) => {
|
|
9318
9319
|
let a = (e) => {
|
|
9319
9320
|
let t = e.key;
|
|
9320
9321
|
r(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
|
|
@@ -9338,9 +9339,7 @@ var Dl = Y.div`
|
|
|
9338
9339
|
max-height: ${({ $maxHeight: e }) => e ? `${e + 2}px` : "auto"};
|
|
9339
9340
|
`, zl = Y.div`
|
|
9340
9341
|
padding: 0;
|
|
9341
|
-
|
|
9342
|
-
Y.div``;
|
|
9343
|
-
var Bl = Y.div`
|
|
9342
|
+
`, Bl = Y.div`
|
|
9344
9343
|
padding: 8px 12px 8px;
|
|
9345
9344
|
display: flex;
|
|
9346
9345
|
gap: 8px;
|
|
@@ -9348,17 +9347,17 @@ var Bl = Y.div`
|
|
|
9348
9347
|
justify-content: space-between;
|
|
9349
9348
|
border-bottom: 1px solid var(--ant-color-split);
|
|
9350
9349
|
background-color: var(--ant-color-fill-alter);
|
|
9351
|
-
`, Vl = ({ height: e = 300, leftWidth: t = 260, options: n, value: r, searchPlaceholder: i, notFoundContent: a, onChange: s, styles: c }) => {
|
|
9350
|
+
`, Vl = ({ height: e = 300, leftWidth: t = 260, options: n, value: r = [], searchPlaceholder: i, notFoundContent: a, onChange: s, styles: c }) => {
|
|
9352
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) => {
|
|
9353
9352
|
h(e.target.value);
|
|
9354
9353
|
}, v = (e) => {
|
|
9355
9354
|
let t = e.target.checked;
|
|
9356
9355
|
if (p(t), d(!1), t) {
|
|
9357
9356
|
let e = n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())).map((e) => e.key);
|
|
9358
|
-
s(Array.from(new Set([...r, ...e])));
|
|
9357
|
+
s?.(Array.from(new Set([...r, ...e])));
|
|
9359
9358
|
} else {
|
|
9360
|
-
let e = n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())).map((e) => e.key);
|
|
9361
|
-
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);
|
|
9362
9361
|
}
|
|
9363
9362
|
}, y = (e) => {
|
|
9364
9363
|
if (n.length === 0) {
|
|
@@ -9407,7 +9406,7 @@ var Bl = Y.div`
|
|
|
9407
9406
|
dataList: g,
|
|
9408
9407
|
value: r,
|
|
9409
9408
|
onChange: (e) => {
|
|
9410
|
-
s(e), y(e);
|
|
9409
|
+
s?.(e), y(e);
|
|
9411
9410
|
}
|
|
9412
9411
|
}) : /* @__PURE__ */ H(ft, {
|
|
9413
9412
|
image: ft.PRESENTED_IMAGE_SIMPLE,
|
|
@@ -7,9 +7,9 @@ interface SelectPanelProps {
|
|
|
7
7
|
key: string;
|
|
8
8
|
title: string;
|
|
9
9
|
}>;
|
|
10
|
-
value
|
|
10
|
+
value?: string[];
|
|
11
11
|
notFoundContent?: React.ReactNode;
|
|
12
|
-
onChange
|
|
12
|
+
onChange?: (value: string[]) => void;
|
|
13
13
|
styles?: {
|
|
14
14
|
container?: React.CSSProperties;
|
|
15
15
|
left?: React.CSSProperties;
|