@gpustack/core-ui 1.0.0 → 1.0.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/dist/index.es.js CHANGED
@@ -86581,7 +86581,7 @@ var BF = (e) => {
86581
86581
  border-radius: var(--border-radius-lg);
86582
86582
  background-color: var(--ant-color-bg-container);
86583
86583
  box-shadow: none;
86584
- padding: 10px 16px;
86584
+ padding: 8px 16px;
86585
86585
  border: 1px solid var(--ant-color-border);
86586
86586
  `, tke = (e) => {
86587
86587
  let { children: t, style: n } = e;
@@ -86644,22 +86644,26 @@ var BF = (e) => {
86644
86644
  children: r
86645
86645
  }), /* @__PURE__ */ j("div", {
86646
86646
  className: "content",
86647
- children: [/* @__PURE__ */ A("span", {
86647
+ children: [s && /* @__PURE__ */ A("span", {
86648
86648
  className: n([s], "icon"),
86649
86649
  style: { backgroundColor: c || "transparent" }
86650
86650
  }), /* @__PURE__ */ A("span", { children: i })]
86651
86651
  })]
86652
86652
  });
86653
86653
  }, ake = (e) => {
86654
- let { dataList: t, bordered: n } = e;
86654
+ let { dataList: t, bordered: n, styles: r } = e;
86655
86655
  return /* @__PURE__ */ A(nke, {
86656
- style: { height: e.height || "100%" },
86656
+ style: {
86657
+ height: e.height || "100%",
86658
+ ...r?.wrapper
86659
+ },
86657
86660
  children: t.map((e, t) => /* @__PURE__ */ A(ike, {
86658
86661
  title: e.label,
86659
86662
  content: e.value,
86660
86663
  bordered: n,
86661
86664
  color: e.color,
86662
- iconType: e.iconType
86665
+ iconType: e.iconType,
86666
+ style: { ...r?.item }
86663
86667
  }, t))
86664
86668
  });
86665
86669
  }, oke = (e) => {
@@ -87508,33 +87512,33 @@ function jke(e = []) {
87508
87512
  //#endregion
87509
87513
  //#region src/lib/hooks/use-query-data-list.ts
87510
87514
  function Mke(e) {
87511
- let { key: t, fetchList: n, getLabel: r, getValue: i, errorMsg: a } = e, o = E(null), [s, c] = D([]), { runAsync: l, loading: u, cancel: d } = Wm(async (e, t) => {
87512
- o.current?.cancel(), o.current = YF();
87513
- let a = await n(e, {
87514
- token: o.current?.token,
87515
+ let { key: t, fetchList: n, getLabel: r, getValue: i, responseType: a = "array", errorMsg: o } = e, s = E(null), [c, l] = D([]), { runAsync: u, loading: d, cancel: f } = Wm(async (e, t) => {
87516
+ s.current?.cancel(), s.current = YF();
87517
+ let o = await n(e, {
87518
+ token: s.current?.token,
87515
87519
  ...t || {}
87516
87520
  });
87517
- return c(a.items?.map((e) => ({
87521
+ return l(o.items?.map((e) => ({
87518
87522
  ...e,
87519
87523
  label: r ? r(e) : e.name,
87520
87524
  value: i ? i(e) : e.id
87521
- })) || []), a.items || [];
87525
+ })) || []), a === "array" ? o.items || [] : o;
87522
87526
  }, {
87523
87527
  manual: !0,
87524
- onSuccess: () => {},
87528
+ debounceWait: e.debounceWait || 300,
87525
87529
  onError: (e) => {
87526
- Ee.error(e?.message || a || `Failed to fetch ${t} list`), c([]);
87530
+ Ee.error(e?.message || o || `Failed to fetch ${t} list`), l([]);
87527
87531
  }
87528
- }), f = km(() => {
87529
- d(), o.current?.cancel();
87530
87532
  });
87531
87533
  return S(() => () => {
87532
- f();
87533
- }, []), {
87534
- loading: u,
87535
- dataList: s,
87536
- cancelRequest: f,
87537
- fetchData: l
87534
+ f(), s.current?.cancel();
87535
+ }, [f]), {
87536
+ loading: d,
87537
+ dataList: c,
87538
+ cancelRequest: () => {
87539
+ f(), s.current?.cancel();
87540
+ },
87541
+ fetchData: (e, t) => u(e, t)
87538
87542
  };
87539
87543
  }
87540
87544
  function Nke(e) {
@@ -107488,6 +107492,7 @@ var DNe = xm.div`
107488
107492
  z-index: 10;
107489
107493
  `, tPe = xm.div`
107490
107494
  position: relative;
107495
+ border-radius: 0 var(--ant-border-radius) var(--ant-border-radius) 0;
107491
107496
  color: var(--ant-color-text-tertiary);
107492
107497
  font-size: var(--font-size-base);
107493
107498
  padding-inline: calc(var(--ant-padding-sm) - 1px);
@@ -108432,6 +108437,7 @@ var DNe = xm.div`
108432
108437
  required: r,
108433
108438
  status: s || d,
108434
108439
  className: "no-focus",
108440
+ disabled: e.disabled,
108435
108441
  children: /* @__PURE__ */ j(oPe, { children: [/* @__PURE__ */ A(fI, {
108436
108442
  label: t,
108437
108443
  description: i
@@ -133164,17 +133170,20 @@ function r4() {
133164
133170
  backgroundColor: a.colorBgContainerHover,
133165
133171
  borderColor: "transparent",
133166
133172
  formatter(e, t) {
133167
- let n = `<span class="tooltip-x-name">${e[0].axisValue}</span>`;
133173
+ let n = `<span class="tooltip-x-name">${e[0].axisValue}</span>`, r = 0;
133168
133174
  return e.forEach((e) => {
133169
- let r = (0, Xm.isFunction)(t) ? t?.(e.data.value) : e.data.value, i = e.seriesType === "bar" ? "2px" : "8px";
133175
+ let i = (0, Xm.isFunction)(t) ? t?.(e.data.value) : e.data?.value;
133176
+ if (i == null) return;
133177
+ r += 1;
133178
+ let a = e.seriesType === "bar" ? "2px" : "8px";
133170
133179
  n += `<span class="tooltip-item">
133171
133180
  <span class="tooltip-item-name">
133172
- <span style="display:inline-block;margin-right:5px;border-radius:${i};width:8px;height:8px;background-color:${e.color};"></span>
133173
- <span class="tooltip-title">${e.seriesName}</span>:
133181
+ <span class="tooltip-item-dot" style="border-radius:${a};background-color:${e.color};"></span>
133182
+ <span class="tooltip-item-title">${e.seriesName}</span>:
133174
133183
  </span>
133175
- <span class="tooltip-value">${r}</span>
133184
+ <span class="tooltip-value">${i}</span>
133176
133185
  </span>`;
133177
- }), `<div class="tooltip-wrapper">${n}</div>`;
133186
+ }), `<div class="${r >= 12 ? "tooltip-wrapper tooltip-grid" : "tooltip-wrapper"}">${n}</div>`;
133178
133187
  }
133179
133188
  },
133180
133189
  grid: OJe,
@@ -134627,52 +134636,52 @@ var S4 = (e) => {
134627
134636
  `, _Ye = xm(xe)`
134628
134637
  border-radius: 12px;
134629
134638
  `, C4 = g((e, t) => {
134630
- let n = E_(), { options: r = [], showTags: i, ...a } = e, [o, s] = d.useState({
134639
+ let n = E_(), { options: r = [], showTags: i, styles: a = {}, optionLabelRender: o, maxTagCount: s, ...c } = e, [l, u] = d.useState({
134631
134640
  checked: !1,
134632
134641
  indeterminate: !1
134633
- }), [c, l] = d.useState(r || []), u = d.useRef(null), f = d.useRef(null);
134642
+ }), [f, p] = d.useState(r || []), m = d.useRef(null), h = d.useRef(null), g = Array.isArray(e.value) && e.value.length === 1, _ = Array.isArray(e.value) && e.value.length === 1 ? 1 : 0;
134634
134643
  S(() => {
134635
- l(r || []);
134644
+ p(r || []);
134636
134645
  }, [r]);
134637
- let p = (e, t) => {
134646
+ let v = (e, t) => {
134638
134647
  let { value: n, label: r } = e;
134639
- return /* @__PURE__ */ j(mYe, { children: [a.value?.includes?.(n) ? /* @__PURE__ */ A(L, { checked: !0 }) : /* @__PURE__ */ A(L, {}), /* @__PURE__ */ A(TF, {
134648
+ return /* @__PURE__ */ j(mYe, { children: [c.value?.includes?.(n) ? /* @__PURE__ */ A(L, { checked: !0 }) : /* @__PURE__ */ A(L, {}), /* @__PURE__ */ A(TF, {
134640
134649
  ghost: !0,
134641
- children: r
134650
+ children: o ? o(e) : r
134642
134651
  })] });
134643
- }, m = (e) => {
134644
- let t = e.target.checked, n = c?.map((e) => e.value) || [];
134645
- s({
134652
+ }, y = (e) => {
134653
+ let t = e.target.checked, n = f?.map((e) => e.value) || [];
134654
+ u({
134646
134655
  checked: t,
134647
134656
  indeterminate: !1
134648
134657
  });
134649
- let r = [...a.value || []];
134650
- r = t ? Array.from(new Set([...r, ...n])) : r.filter((e) => !n.includes(e)), a.onChange?.(r, c || []);
134651
- }, h = (e) => /* @__PURE__ */ j(hYe, { children: [a.mode === "multiple" && /* @__PURE__ */ A(gYe, { children: /* @__PURE__ */ A(L, {
134652
- checked: o.checked,
134653
- indeterminate: o.indeterminate,
134654
- onChange: m,
134658
+ let r = [...c.value || []];
134659
+ r = t ? Array.from(new Set([...r, ...n])) : r.filter((e) => !n.includes(e)), c.onChange?.(r, f || []);
134660
+ }, b = (e) => /* @__PURE__ */ j(hYe, { children: [c.mode === "multiple" && /* @__PURE__ */ A(gYe, { children: /* @__PURE__ */ A(L, {
134661
+ checked: l.checked,
134662
+ indeterminate: l.indeterminate,
134663
+ onChange: y,
134655
134664
  children: n.formatMessage({ id: "common.checkbox.all" })
134656
- }) }), e] }), g = (e, t) => {
134657
- let n = Array.isArray(e) ? e : [e], r = c?.map((e) => e.value) || [], i = n.length === r?.length;
134658
- s({
134665
+ }) }), e] }), x = (e, t) => {
134666
+ let n = Array.isArray(e) ? e : [e], r = f?.map((e) => e.value) || [], i = n.length === r?.length;
134667
+ u({
134659
134668
  checked: i,
134660
134669
  indeterminate: !i && n.length > 0
134661
- }), a.onChange?.(n, t);
134662
- }, _ = (e, t) => !t || !t.label ? !1 : t.label.toLowerCase().includes(e.toLowerCase()), v = (e) => {
134663
- if (!a.value || !Array.isArray(a.value) || e.length === 0) {
134664
- s({
134670
+ }), c.onChange?.(n, t);
134671
+ }, w = (e, t) => !t || !t.label ? !1 : t.label.toLowerCase().includes(e.toLowerCase()), T = (e) => {
134672
+ if (!c.value || !Array.isArray(c.value) || e.length === 0) {
134673
+ u({
134665
134674
  checked: !1,
134666
134675
  indeterminate: !1
134667
134676
  });
134668
134677
  return;
134669
134678
  }
134670
- let t = new Set(a.value), n = e?.map((e) => e.value) || [], r = n.every((e) => t.has(e));
134671
- s({
134679
+ let t = new Set(c.value), n = e?.map((e) => e.value) || [], r = n.every((e) => t.has(e));
134680
+ u({
134672
134681
  checked: r,
134673
134682
  indeterminate: n.some((e) => t.has(e)) && !r
134674
134683
  });
134675
- }, y = (e) => {
134684
+ }, E = (e) => {
134676
134685
  let { label: t } = e, r = e.isMaxTag ? t.slice(0, -3).slice(1) : t;
134677
134686
  return /* @__PURE__ */ A(_Ye, {
134678
134687
  variant: "filled",
@@ -134684,23 +134693,23 @@ var S4 = (e) => {
134684
134693
  fontSize: "var(--ant-font-size)"
134685
134694
  },
134686
134695
  className: "flex-center",
134687
- children: i ? t : n.formatMessage({ id: "common.select.count" }, { count: r })
134696
+ children: g ? t : n.formatMessage({ id: "common.select.count" }, { count: r })
134688
134697
  });
134689
- }, b = (e) => {
134690
- if (a.showSearch?.onSearch) a.showSearch?.onSearch?.(e);
134698
+ }, D = (e) => {
134699
+ if (c.showSearch?.onSearch) c.showSearch?.onSearch?.(e);
134691
134700
  else {
134692
134701
  let t = r?.filter((t) => t.label.toLowerCase().includes(e.toLowerCase()));
134693
- l(t || []), v(t || []);
134702
+ p(t || []), T(t || []);
134694
134703
  }
134695
- }, x = (e) => {
134696
- a.onBlur?.(e);
134697
- }, w = (e) => {
134698
- a.onFocus?.(e);
134699
- }, T = (e) => {
134700
- e || (v(r), l(r || []));
134704
+ }, O = (e) => {
134705
+ c.onBlur?.(e);
134706
+ }, k = (e) => {
134707
+ c.onFocus?.(e);
134708
+ }, M = (e) => {
134709
+ e || (T(r), p(r || []));
134701
134710
  };
134702
134711
  return S(() => {
134703
- let e = u.current?.querySelector?.("input");
134712
+ let e = m.current?.querySelector?.("input");
134704
134713
  if (!e) return;
134705
134714
  let t = (t) => {
134706
134715
  t.key === "Backspace" && e.value === "" && (t.stopPropagation(), t.preventDefault());
@@ -134708,34 +134717,40 @@ var S4 = (e) => {
134708
134717
  return e.addEventListener("keydown", t), () => {
134709
134718
  e.removeEventListener("keydown", t);
134710
134719
  };
134711
- }, [u.current]), C(t, () => ({
134720
+ }, [m.current]), C(t, () => ({
134712
134721
  focus: () => {
134713
- f.current?.focus();
134722
+ h.current?.focus();
134714
134723
  },
134715
134724
  blur: () => {
134716
- f.current?.blur();
134725
+ h.current?.blur();
134717
134726
  }
134718
134727
  })), /* @__PURE__ */ A("div", {
134719
- ref: u,
134720
- style: { width: "inherit" },
134728
+ ref: m,
134729
+ style: { ...a.wrapper },
134721
134730
  children: /* @__PURE__ */ A(DI, {
134722
- ...a,
134723
- ref: f,
134724
- options: c,
134725
- maxTagCount: a.maxTagCount || 0,
134731
+ ...c,
134732
+ style: {
134733
+ width: c.style?.width || "100%",
134734
+ ...c.style,
134735
+ ...a.select
134736
+ },
134737
+ ref: h,
134738
+ maxTagTextLength: c.maxTagTextLength ?? 15,
134739
+ options: f,
134740
+ maxTagCount: _,
134726
134741
  defaultActiveFirstOption: !1,
134727
- popupRender: h,
134728
- optionRender: p,
134742
+ popupRender: b,
134743
+ optionRender: v,
134729
134744
  menuItemSelectedIcon: !1,
134730
- onChange: g,
134731
- tagRender: y,
134732
- onBlur: x,
134733
- onFocus: w,
134745
+ onChange: x,
134746
+ tagRender: E,
134747
+ onBlur: O,
134748
+ onFocus: k,
134734
134749
  showSearch: {
134735
- onSearch: b,
134736
- filterOption: a.showSearch?.filterOption || _
134750
+ onSearch: D,
134751
+ filterOption: c.showSearch?.filterOption || w
134737
134752
  },
134738
- onOpenChange: T,
134753
+ onOpenChange: M,
134739
134754
  children: e.children
134740
134755
  })
134741
134756
  });
@@ -136519,125 +136534,134 @@ var M4 = (e) => {
136519
136534
  totalPage: i
136520
136535
  };
136521
136536
  }, lXe = g((e, t) => {
136522
- let { diffHeight: n, url: r, tail: i, enableScorllLoad: a = !0, isDownloading: o } = e, { pageSize: s, page: c, setPage: l, setTotalPage: u, totalPage: d } = cXe(), { setChunkFetch: f } = GF(), p = E(null), [m, h] = D([]), g = E(null), _ = E(i), [v, y] = D(!1), [x, w] = D(!1), [T, O] = D([]), k = E(null), M = E(!1), N = E(c), P = E(d), F = E(!1), [I, L] = D([]), R = E({
136537
+ let { diffHeight: n, url: r, tail: i, enableScorllLoad: a = !0, isDownloading: o, params: s } = e, { pageSize: c, page: l, setPage: u, setTotalPage: d, totalPage: f } = cXe(), { setChunkFetch: p } = GF(), m = E(null), [h, g] = D([]), _ = E(null), v = E(i), [y, x] = D(!1), [w, T] = D(!1), [O, k] = D([]), M = E(null), N = E(!1), P = E(l), F = E(f), I = E(!1), [L, R] = D([]), z = E({
136523
136538
  pos: "bottom",
136524
136539
  page: 1
136525
- }), z = E(0), B = E(!1);
136540
+ }), B = E(0), ee = E(!1);
136526
136541
  C(t, () => ({ abort() {
136527
- p.current?.current?.abort?.(), g.current?.terminate?.();
136542
+ m.current?.current?.abort?.(), _.current?.terminate?.();
136528
136543
  } }));
136529
- let ee = (e) => {
136530
- L(e.map((e, t) => ({
136544
+ let te = (e) => {
136545
+ R(e.map((e, t) => ({
136531
136546
  content: e,
136532
- uid: `${N.current}-${t}`
136547
+ uid: `${P.current}-${t}`
136533
136548
  })));
136534
- }, te = Xm.default.debounce(() => {
136535
- y(!1), F.current = !1, k.current?.scroller && (k.current.scroller.style["pointer-events"] = "auto");
136536
- }, 1e3), ne = b(() => {
136537
- N.current < 1 && (N.current = 1);
136538
- let e = (N.current - 1) * s, t = N.current * s, n = m.slice(e, t);
136539
- l(N.current), ee(n);
136540
- }, [m, s]), re = b(() => {
136541
- --N.current, ne(), O(["bottom", N.current]), R.current = {
136549
+ }, ne = Xm.default.debounce(() => {
136550
+ x(!1), I.current = !1, M.current?.scroller && (M.current.scroller.style["pointer-events"] = "auto");
136551
+ }, 1e3), re = b(() => {
136552
+ P.current < 1 && (P.current = 1);
136553
+ let e = (P.current - 1) * c, t = P.current * c, n = h.slice(e, t);
136554
+ u(P.current), te(n);
136555
+ }, [h, c]), ie = b(() => {
136556
+ --P.current, re(), k(["bottom", P.current]), z.current = {
136542
136557
  pos: "bottom",
136543
- page: N.current
136558
+ page: P.current
136544
136559
  };
136545
- }, [ne]), ie = b(() => {
136546
- N.current += 1, ne(), O(["top", N.current]), R.current = {
136560
+ }, [re]), ae = b(() => {
136561
+ P.current += 1, re(), k(["top", P.current]), z.current = {
136547
136562
  pos: "top",
136548
- page: N.current
136563
+ page: P.current
136549
136564
  };
136550
- }, [ne]), ae = b(() => {
136551
- N.current = P.current, ne(), console.log("pageRef.current", N.current), O(["bottom", N.current]), R.current = {
136565
+ }, [re]), oe = b(() => {
136566
+ P.current = F.current, re(), console.log("pageRef.current", P.current), k(["bottom", P.current]), z.current = {
136552
136567
  pos: "bottom",
136553
- page: N.current
136568
+ page: P.current
136554
136569
  };
136555
- }, [ne]), oe = b(() => {
136556
- N.current = 1, ne(), O(["top", N.current]), R.current = {
136570
+ }, [re]), se = b(() => {
136571
+ P.current = 1, re(), k(["top", P.current]), z.current = {
136557
136572
  pos: "top",
136558
- page: N.current
136573
+ page: P.current
136559
136574
  };
136560
- }, [ne]), se = (e) => {
136561
- F.current && (y(!0), k.current?.scroller && (k.current.scroller.style["pointer-events"] = "none")), g.current.postMessage({
136575
+ }, [re]), V = (e) => {
136576
+ I.current && (x(!0), M.current?.scroller && (M.current.scroller.style["pointer-events"] = "none")), _.current.postMessage({
136562
136577
  inputStr: e,
136563
- page: N.current,
136564
- reset: B.current,
136578
+ page: P.current,
136579
+ reset: ee.current,
136580
+ isDownloading: o
136581
+ }), ee.current = !1;
136582
+ }, ce = async () => {
136583
+ m.current?.current?.abort?.(), _.current?.postMessage({
136584
+ inputStr: "",
136585
+ page: P.current,
136586
+ reset: !0,
136565
136587
  isDownloading: o
136566
- }), B.current = !1;
136567
- }, V = async () => {
136568
- p.current?.current?.abort?.(), p.current = f({
136588
+ }), m.current = p({
136569
136589
  url: r,
136570
136590
  params: {
136571
- ...e.params,
136572
- tail: _.current,
136573
- watch: !0
136591
+ tail: v.current,
136592
+ ...e.params
136574
136593
  },
136594
+ watch: s?.watch ?? !0,
136575
136595
  contentType: "text",
136576
- handler: se
136596
+ handler: V
136577
136597
  });
136578
- }, ce = km(async (e) => {
136598
+ }, le = km(async (e) => {
136579
136599
  let { isTop: t, isBottom: n } = e;
136580
- w(t), n ? R.current = {
136600
+ T(t), n ? z.current = {
136581
136601
  pos: "bottom",
136582
- page: c
136583
- } : t ? R.current = {
136602
+ page: l
136603
+ } : t ? z.current = {
136584
136604
  pos: "top",
136585
- page: c
136586
- } : R.current = {
136605
+ page: l
136606
+ } : z.current = {
136587
136607
  pos: "middle",
136588
- page: c
136589
- }, !(v || m.length > 0 && z.current < s - 1 && !M.current || !a) && t && !M.current && (_.current = void 0, V(), M.current = !0, F.current = !0, B.current = !0);
136590
- }), le = b(() => Xm.default.throttle(() => {
136591
- T[0] === "top" && R.current.pos === "top" && k.current?.scrollToTop(), R.current.pos === "bottom" && k.current?.scrollToBottom();
136592
- }, 150), [T]);
136593
- return S(() => (V(), () => {
136594
- p.current?.current?.abort?.();
136595
- }), [r, o]), S(() => {
136596
- le();
136597
- }, [T]), S(() => (g.current?.terminate?.(), g.current = new Worker(new URL(
136608
+ page: l
136609
+ }, !(y || h.length > 0 && B.current < c - 1 && !N.current || !a) && t && !N.current && (v.current = void 0, ce(), N.current = !0, I.current = !0, ee.current = !0);
136610
+ }), ue = b(() => Xm.default.throttle(() => {
136611
+ O[0] === "top" && z.current.pos === "top" && M.current?.scrollToTop(), z.current.pos === "bottom" && M.current?.scrollToBottom();
136612
+ }, 150), [O]);
136613
+ return S(() => (ce(), () => {
136614
+ m.current?.current?.abort?.();
136615
+ }), [
136616
+ r,
136617
+ o,
136618
+ e.params
136619
+ ]), S(() => {
136620
+ ue();
136621
+ }, [O]), S(() => (_.current?.terminate?.(), _.current = new Worker(new URL(
136598
136622
  /* @vite-ignore */
136599
136623
  "" + new URL("assets/parse-worker-Dzai8qsE.js", import.meta.url).href,
136600
136624
  "" + import.meta.url
136601
- ), { type: "module" }), g.current.onmessage = (e) => {
136625
+ ), { type: "module" }), _.current.onmessage = (e) => {
136602
136626
  let { result: t, lines: n } = e.data;
136603
- z.current = n, N.current < 1 && (N.current = 1);
136604
- let r = P.current;
136605
- P.current = Math.ceil(t.length / s), F.current ? N.current = P.current : N.current === r && R.current.pos === "bottom" && (R.current = {
136627
+ B.current = n, P.current < 1 && (P.current = 1);
136628
+ let r = F.current;
136629
+ F.current = Math.ceil(t.length / c), I.current ? P.current = F.current : P.current === r && z.current.pos === "bottom" && (z.current = {
136606
136630
  pos: "bottom",
136607
- page: N.current
136608
- }, N.current = P.current, O(["bottom", N.current]));
136609
- let i = (N.current - 1) * s, a = N.current * s, o = t.slice(i, a);
136610
- h(t), u(P.current), l(N.current), ee(o), te();
136631
+ page: P.current
136632
+ }, P.current = F.current, k(["bottom", P.current]));
136633
+ let i = (P.current - 1) * c, a = P.current * c, o = t.slice(i, a);
136634
+ g(t), d(F.current), u(P.current), te(o), ne();
136611
136635
  }, () => {
136612
- g.current && g.current.terminate();
136636
+ _.current && _.current.terminate();
136613
136637
  }), []), /* @__PURE__ */ A("div", {
136614
136638
  className: "logs-viewer-wrap-w2",
136615
136639
  children: /* @__PURE__ */ j("div", {
136616
136640
  className: "wrap",
136617
136641
  children: [
136618
136642
  /* @__PURE__ */ A("div", { children: /* @__PURE__ */ A(oXe, {
136619
- ref: k,
136620
- dataList: I,
136643
+ ref: M,
136644
+ dataList: L,
136621
136645
  diffHeight: n,
136622
- onScroll: ce
136646
+ onScroll: le
136623
136647
  }) }),
136624
- v && /* @__PURE__ */ A(ve, {
136648
+ y && /* @__PURE__ */ A(ve, {
136625
136649
  size: "middle",
136626
- spinning: v,
136627
- className: (0, up.default)({ loading: v })
136650
+ spinning: y,
136651
+ className: (0, up.default)({ loading: y })
136628
136652
  }),
136629
- d > 1 && /* @__PURE__ */ A("div", {
136653
+ f > 1 && /* @__PURE__ */ A("div", {
136630
136654
  className: "pg",
136631
136655
  children: /* @__PURE__ */ A("div", {
136632
136656
  className: (0, up.default)("pg-inner", { "at-top": !0 }),
136633
136657
  children: /* @__PURE__ */ A(sXe, {
136634
- page: c,
136635
- total: d,
136636
- pageSize: s,
136637
- onNext: ie,
136638
- onPrev: re,
136639
- onToFirst: oe,
136640
- onBackend: ae
136658
+ page: l,
136659
+ total: f,
136660
+ pageSize: c,
136661
+ onNext: ae,
136662
+ onPrev: ie,
136663
+ onToFirst: se,
136664
+ onBackend: oe
136641
136665
  })
136642
136666
  })
136643
136667
  })
@@ -169069,28 +169093,28 @@ var ret = xm.div.attrs(() => ({ className: "markdown-viewer" }))``, iet = (e) =>
169069
169093
  })]
169070
169094
  });
169071
169095
  }, bet = (e) => {
169072
- let { handleInputChange: t, handleSelectChange: n, handleSearch: r, handleDeleteByBatch: i = null, handleClickPrimary: a = null, rowSelection: o, actionItems: s = [], selectOptions: c, showSelect: l, buttonText: u, buttonIcon: d, actionType: f = "button", marginBottom: p = 10, marginTop: m = 10, inputHolder: h, selectHolder: g, right: _, left: v, widths: y, filtersButtonProps: b } = e, x = E_();
169096
+ let { handleInputChange: t, handleSelectChange: n, handleSearch: r, handleDeleteByBatch: i = null, handleClickPrimary: a = null, rowSelection: o, actionItems: s = [], selectOptions: c, showSelect: l, buttonText: u, buttonIcon: d, actionType: f = "button", marginBottom: p = 10, marginTop: m = 10, inputHolder: h, selectHolder: g, select: _, right: v, left: y, widths: b, filtersButtonProps: x } = e, S = E_();
169073
169097
  return /* @__PURE__ */ A(yet, {
169074
169098
  marginBottom: p,
169075
169099
  marginTop: 0,
169076
- left: v || /* @__PURE__ */ j(_e, { children: [
169077
- b?.show && /* @__PURE__ */ A(vet, {
169078
- onClear: b.onClear,
169079
- onClick: b.onClick,
169080
- count: b.count
169100
+ left: y || /* @__PURE__ */ j(_e, { children: [
169101
+ x?.show && /* @__PURE__ */ A(vet, {
169102
+ onClear: x.onClear,
169103
+ onClick: x.onClick,
169104
+ count: x.count
169081
169105
  }),
169082
169106
  /* @__PURE__ */ A(se, {
169083
169107
  prefix: /* @__PURE__ */ A(As, { style: { color: "var(--ant-color-text-placeholder)" } }),
169084
- placeholder: h || x.formatMessage({ id: "common.filter.name" }),
169085
- style: { width: y?.input || 230 },
169108
+ placeholder: h || S.formatMessage({ id: "common.filter.name" }),
169109
+ style: { width: b?.input || 230 },
169086
169110
  allowClear: !0,
169087
169111
  onChange: t
169088
169112
  }),
169089
169113
  l && /* @__PURE__ */ A(DI, {
169090
169114
  allowClear: !0,
169091
- showSearch: !1,
169115
+ showSearch: _?.showSearch,
169092
169116
  placeholder: g,
169093
- style: { width: y?.select || 230 },
169117
+ style: { width: b?.select || 230 },
169094
169118
  size: "large",
169095
169119
  onChange: n,
169096
169120
  options: c
@@ -169102,7 +169126,7 @@ var ret = xm.div.attrs(() => ({ className: "markdown-viewer" }))``, iet = (e) =>
169102
169126
  icon: /* @__PURE__ */ A(Hs, {})
169103
169127
  })
169104
169128
  ] }),
169105
- right: _ || (!a && !i ? null : /* @__PURE__ */ j(_e, {
169129
+ right: v || (!a && !i ? null : /* @__PURE__ */ j(_e, {
169106
169130
  size: 16,
169107
169131
  children: [a ? f === "dropdown" ? /* @__PURE__ */ A(VF, {
169108
169132
  styles: { root: { minWidth: "140px" } },
@@ -169126,7 +169150,7 @@ var ret = xm.div.attrs(() => ({ className: "markdown-viewer" }))``, iet = (e) =>
169126
169150
  danger: !0,
169127
169151
  onClick: i,
169128
169152
  disabled: !o?.selectedRowKeys?.length,
169129
- children: /* @__PURE__ */ j("span", { children: [x?.formatMessage?.({ id: "common.button.delete" }), o?.selectedRowKeys?.length > 0 && /* @__PURE__ */ j("span", { children: [
169153
+ children: /* @__PURE__ */ j("span", { children: [S?.formatMessage?.({ id: "common.button.delete" }), o?.selectedRowKeys?.length > 0 && /* @__PURE__ */ j("span", { children: [
169130
169154
  "(",
169131
169155
  o?.selectedRowKeys?.length,
169132
169156
  ")"
@@ -169431,62 +169455,66 @@ var Bet = xm.div`
169431
169455
  justify-content: space-between;
169432
169456
  border-bottom: 1px solid var(--ant-color-split);
169433
169457
  background-color: var(--ant-color-fill-alter);
169434
- `, Vet = ({ height: e = 300, leftWidth: t = 260, options: n, selectedKeys: r, searchPlaceholder: i, notFoundContent: a, onSelectChange: o }) => {
169435
- let s = E_(), [c, l] = d.useState(!1), [u, f] = d.useState(!1), [p, m] = D(""), h = T(() => n.filter((e) => e.title.toLowerCase().includes(p.toLowerCase())), [n, p]), g = (e) => {
169436
- m(e.target.value);
169437
- }, _ = (e) => {
169458
+ `, Vet = ({ height: e = 300, leftWidth: t = 260, options: n, selectedKeys: r, searchPlaceholder: i, notFoundContent: a, onSelectChange: o, styles: s }) => {
169459
+ let c = E_(), [l, u] = d.useState(!1), [f, p] = d.useState(!1), [m, h] = D(""), g = T(() => n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())), [n, m]), _ = (e) => {
169460
+ h(e.target.value);
169461
+ }, v = (e) => {
169438
169462
  let t = e.target.checked;
169439
- if (f(t), l(!1), t) {
169440
- let e = n.filter((e) => e.title.toLowerCase().includes(p.toLowerCase())).map((e) => e.key);
169463
+ if (p(t), u(!1), t) {
169464
+ let e = n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())).map((e) => e.key);
169441
169465
  o(Array.from(new Set([...r, ...e])));
169442
169466
  } else {
169443
- let e = n.filter((e) => e.title.toLowerCase().includes(p.toLowerCase())).map((e) => e.key);
169467
+ let e = n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())).map((e) => e.key);
169444
169468
  o(r.filter((t) => !e.includes(t)));
169445
169469
  }
169446
- }, v = (e) => {
169470
+ }, y = (e) => {
169447
169471
  if (n.length === 0) {
169448
- l(!1), f(!1);
169472
+ u(!1), p(!1);
169449
169473
  return;
169450
169474
  }
169451
- let t = n.filter((e) => e.title.toLowerCase().includes(p.toLowerCase())).map((e) => e.key), r = e.filter((e) => t.includes(e));
169452
- l(r.length > 0 && r.length < t.length), f(r.length === t.length);
169475
+ let t = n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())).map((e) => e.key), r = e.filter((e) => t.includes(e));
169476
+ u(r.length > 0 && r.length < t.length), p(r.length === t.length);
169453
169477
  };
169454
169478
  return S(() => {
169455
- v(r);
169479
+ y(r);
169456
169480
  }, [r, n]), /* @__PURE__ */ A(Ret, {
169457
169481
  $maxHeight: e,
169458
169482
  $leftWidth: t,
169459
- children: /* @__PURE__ */ j(zet, { children: [/* @__PURE__ */ j(Bet, { children: [/* @__PURE__ */ j("span", {
169460
- style: {
169461
- display: "flex",
169462
- alignItems: "center",
169463
- gap: 8,
169464
- color: "var(--ant-color-text-tertiary)"
169465
- },
169466
- children: [/* @__PURE__ */ A(L, {
169467
- checked: u,
169468
- indeterminate: c,
169483
+ style: s?.container,
169484
+ children: /* @__PURE__ */ j(zet, { children: [/* @__PURE__ */ j(Bet, {
169485
+ style: s?.header,
169486
+ children: [/* @__PURE__ */ j("span", {
169487
+ style: {
169488
+ display: "flex",
169489
+ alignItems: "center",
169490
+ gap: 8,
169491
+ color: "var(--ant-color-text-tertiary)"
169492
+ },
169493
+ children: [/* @__PURE__ */ A(L, {
169494
+ checked: f,
169495
+ indeterminate: l,
169496
+ onChange: v
169497
+ }), /* @__PURE__ */ A("span", { children: c.formatMessage({ id: "common.select.count" }, { count: r.length }) })]
169498
+ }), /* @__PURE__ */ A(se, {
169499
+ prefix: /* @__PURE__ */ A(As, { style: { color: "var(--ant-color-text-quaternary)" } }),
169500
+ size: "small",
169501
+ allowClear: !0,
169502
+ status: "null",
169503
+ placeholder: i,
169504
+ style: {
169505
+ width: 300,
169506
+ height: 32,
169507
+ borderRadius: 4,
169508
+ backgroundColor: "var(--ant-color-bg-container) !important"
169509
+ },
169469
169510
  onChange: _
169470
- }), /* @__PURE__ */ A("span", { children: s.formatMessage({ id: "common.select.count" }, { count: r.length }) })]
169471
- }), /* @__PURE__ */ A(se, {
169472
- prefix: /* @__PURE__ */ A(As, { style: { color: "var(--ant-color-text-quaternary)" } }),
169473
- size: "small",
169474
- allowClear: !0,
169475
- status: "null",
169476
- placeholder: i,
169477
- style: {
169478
- width: 300,
169479
- height: 32,
169480
- borderRadius: 4,
169481
- backgroundColor: "var(--ant-color-bg-container) !important"
169482
- },
169483
- onChange: g
169484
- })] }), h.length > 0 ? /* @__PURE__ */ A(Let, {
169511
+ })]
169512
+ }), g.length > 0 ? /* @__PURE__ */ A(Let, {
169485
169513
  maxHeight: e - 50,
169486
- dataList: h,
169514
+ dataList: g,
169487
169515
  selectedKeys: r,
169488
169516
  onSelectChange: (e) => {
169489
- o(e), v(e);
169517
+ o(e), y(e);
169490
169518
  }
169491
169519
  }) : /* @__PURE__ */ A(re, {
169492
169520
  image: re.PRESENTED_IMAGE_SIMPLE,
@@ -179033,7 +179061,7 @@ var knt = lp(({ token: e, css: t }) => ({
179033
179061
  }, t;
179034
179062
  }(p);
179035
179063
  //#endregion
179036
- //#region src/lib/components/terminal-tabs/resize-container.tsx
179064
+ //#region src/lib/components/terminal-tabs/resize-panel.tsx
179037
179065
  xm(P)`
179038
179066
  position: absolute;
179039
179067
  padding: 0;
@@ -179544,4 +179572,4 @@ var ort = xm.div`
179544
179572
  });
179545
179573
  });
179546
179574
  //#endregion
179547
- export { Uae as AlertBlockInfo, Tc as AlertInfo, T_ as AudioAnimation, TOe as AudioPlayer, bI as AutoComplete, OF as AutoImage, TF as AutoTooltip, kJe as BarChart, DI as BaseSelect, $Oe as BibtexViewer, tke as CardWrapper, lYe as Cascader, tnt as CellContent, n4 as Chart, oke as CheckButtons, dYe as Checkbox, fYe as CheckboxField, lke as CollapseContainer, fke as CollapsePanel, Hke as ColumnSettings, rI as ColumnWrapper, INe as CommandViewer, LNe as ContentWrapper, iI as CopyButton, Tr as CoreUIProvider, BNe as DeleteModal, HNe as DividerLine, WNe as DocLink, VF as DropdownActions, GNe as DropdownButtons, KNe as DynamicForm, aI as EditorWrap, RJe as ErrorMessage, pYe as FieldComponent, bet as FilterBar, zJe as FilterForm, vet as FiltersButton, BJe as FormButtons, sYe as FormDrawer, aet as FullMarkdown, S4 as GSDrawer, jJe as GaugeChart, wYe as GrafanaIcon, MJe as HBarChart, uke as HeadlessCollapse, cI as HighlightCode, kI as INPUT_WIDTH, EF as IconFont, PYe as ImageEditor, M4 as InfiniteScroller, qYe as InfiniteScrollerProvider, ztt as InfoColumn, EI as Input, SI as InputNumber, CI as InputSearch, YYe as LabelCell, fI as LabelInfo, eXe as LabelSelector, tXe as LabelSelectorProvider, PJe as LineChart, iXe as ListInput, dPe as ListMap, lXe as LogsViewer, TZe as MarkdownViewer, set as MetadataList, FJe as MixLineBarChart, o4 as ModalFooter, uet as MoreButton, vYe as MultipleSelect, het as NoResult, S_ as OverlayScroller, _et as PageBreadcrumb, L4 as PageSize, yet as PageTools, wI as Password, Cet as Popover, wet as ProgressBar, Tet as RadioButtons, D9 as ResizeContainer, Jtt as RowChildren, bYe as RowTextarea, IJe as ScatterChart, Oet as ScrollSpyTabs, Pet as ScrollerModal, lI as SegmentLine, OI as Select, Vet as SelectPanel, Uet as Shortcut, MOe as SimpleAudio, ake as SimpleCard, Ptt as SimpleOverlay, C4 as SimpleSelect, Rtt as SimpleTable, BF as SingleImage, AI as Slider, w4 as SmallCloseButton, Htt as SpeechContent, Wtt as StatusTag, jI as Switch, CYe as SwitchInput, lnt as Table, unt as TableProvider, dnt as TableRowProvider, fnt as TagsWrapper, bnt as TemplateCard, Tnt as TemplateCardList, Snt as TemplateCardSkeleton, Xnt as TerminalTabs, TI as Textarea, mnt as ThemeTag, T4 as ThumbImage, Qnt as TooltipList, C_ as TooltipOverlayScroller, ert as Transfer, trt as TransitionWrapper, nrt as UploadAudio, HF as UploadImage, rrt as ViewerEditor, Mnt as XTerminal, lrt as YamlEditor, yke as config, TYe as icons, zYe as processImage, pke as useActions, UF as useAddImage, gke as useAppUtils, WF as useBodyScroll, GF as useChunkFetch, XF as useChunkRequest, Eke as useContainerScroll, b_ as useCoreUIContext, Dke as useDeferredRequest, Ake as useDownloadLogs, QF as useDownloadStream, jke as useExpandedRowKeys, ket as useFinishFailed, E_ as useIntl, x_ as useOverlayScroller, Nke as useQueryData, Mke as useQueryDataList, Pke as useRequestToken, $F as useResponsive, Aet as useScrollActiveChange, P4 as useScrollerContext, Lke as useTableMultiSort, Fke as useTableRowSelection, Ike as useTableSort, snt as useTableSorter, eI as useUpdateChunkedList, fPe as useValidateFields, Rke as useWatchList, zke as useWindowResize, Uke as useWrapperContext, dOe as utils };
179575
+ export { Uae as AlertBlockInfo, Tc as AlertInfo, T_ as AudioAnimation, TOe as AudioPlayer, bI as AutoComplete, OF as AutoImage, TF as AutoTooltip, kJe as BarChart, DI as BaseSelect, $Oe as BibtexViewer, tke as CardWrapper, lYe as Cascader, tnt as CellContent, n4 as Chart, oke as CheckButtons, dYe as Checkbox, fYe as CheckboxField, lke as CollapseContainer, fke as CollapsePanel, Hke as ColumnSettings, rI as ColumnWrapper, INe as CommandViewer, LNe as ContentWrapper, iI as CopyButton, Tr as CoreUIProvider, BNe as DeleteModal, HNe as DividerLine, WNe as DocLink, VF as DropdownActions, GNe as DropdownButtons, KNe as DynamicForm, aI as EditorWrap, RJe as ErrorMessage, pYe as FieldComponent, bet as FilterBar, zJe as FilterForm, vet as FiltersButton, BJe as FormButtons, sYe as FormDrawer, aet as FullMarkdown, S4 as GSDrawer, jJe as GaugeChart, wYe as GrafanaIcon, MJe as HBarChart, uke as HeadlessCollapse, cI as HighlightCode, kI as INPUT_WIDTH, EF as IconFont, PYe as ImageEditor, M4 as InfiniteScroller, qYe as InfiniteScrollerProvider, ztt as InfoColumn, EI as Input, SI as InputNumber, CI as InputSearch, YYe as LabelCell, fI as LabelInfo, eXe as LabelSelector, tXe as LabelSelectorProvider, PJe as LineChart, iXe as ListInput, dPe as ListMap, lXe as LogsViewer, TZe as MarkdownViewer, set as MetadataList, FJe as MixLineBarChart, o4 as ModalFooter, uet as MoreButton, vYe as MultipleSelect, het as NoResult, S_ as OverlayScroller, _et as PageBreadcrumb, L4 as PageSize, yet as PageTools, wI as Password, Cet as Popover, wet as ProgressBar, Tet as RadioButtons, D9 as ResizeContainer, qnt as ResizePanel, Jtt as RowChildren, bYe as RowTextarea, IJe as ScatterChart, Oet as ScrollSpyTabs, Pet as ScrollerModal, lI as SegmentLine, OI as Select, Vet as SelectPanel, Uet as Shortcut, MOe as SimpleAudio, ake as SimpleCard, Ptt as SimpleOverlay, C4 as SimpleSelect, Rtt as SimpleTable, BF as SingleImage, AI as Slider, w4 as SmallCloseButton, Htt as SpeechContent, Wtt as StatusTag, jI as Switch, CYe as SwitchInput, lnt as Table, unt as TableProvider, dnt as TableRowProvider, fnt as TagsWrapper, bnt as TemplateCard, Tnt as TemplateCardList, Snt as TemplateCardSkeleton, Xnt as TerminalTabs, TI as Textarea, mnt as ThemeTag, T4 as ThumbImage, Qnt as TooltipList, C_ as TooltipOverlayScroller, ert as Transfer, trt as TransitionWrapper, nrt as UploadAudio, HF as UploadImage, rrt as ViewerEditor, Mnt as XTerminal, lrt as YamlEditor, yke as config, TYe as icons, zYe as processImage, pke as useActions, UF as useAddImage, gke as useAppUtils, WF as useBodyScroll, GF as useChunkFetch, XF as useChunkRequest, Eke as useContainerScroll, b_ as useCoreUIContext, Dke as useDeferredRequest, Ake as useDownloadLogs, QF as useDownloadStream, jke as useExpandedRowKeys, ket as useFinishFailed, E_ as useIntl, x_ as useOverlayScroller, Nke as useQueryData, Mke as useQueryDataList, Pke as useRequestToken, $F as useResponsive, Aet as useScrollActiveChange, P4 as useScrollerContext, Lke as useTableMultiSort, Fke as useTableRowSelection, Ike as useTableSort, snt as useTableSorter, eI as useUpdateChunkedList, fPe as useValidateFields, Rke as useWatchList, zke as useWindowResize, Uke as useWrapperContext, dOe as utils };