@oliasoft-open-source/react-ui-library 9.2.0-beta-3 → 9.2.0-beta-5

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.js CHANGED
@@ -2566,21 +2566,21 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
2566
2566
  ]
2567
2567
  }) : null });
2568
2568
  }, Ks = {
2569
- inputInTable: "_inputInTable_mlaya_1",
2570
- inputHover: "_inputHover_mlaya_13",
2571
- inputFocus: "_inputFocus_mlaya_18",
2572
- controlFocusVisible: "_controlFocusVisible_mlaya_25",
2573
- inputError: "_inputError_mlaya_29",
2574
- inputWarning: "_inputWarning_mlaya_30",
2575
- inputDisabled: "_inputDisabled_mlaya_65",
2576
- hideScrollbars: "_hideScrollbars_mlaya_71",
2577
- wrapper: "_wrapper_mlaya_89",
2578
- bordered: "_bordered_mlaya_97",
2579
- scroll: "_scroll_mlaya_102",
2580
- table: "_table_mlaya_114",
2581
- dragOverlay: "_dragOverlay_mlaya_150",
2582
- virtualScroll: "_virtualScroll_mlaya_185",
2583
- striped: "_striped_mlaya_205"
2569
+ inputInTable: "_inputInTable_fwob7_1",
2570
+ inputHover: "_inputHover_fwob7_13",
2571
+ inputFocus: "_inputFocus_fwob7_18",
2572
+ controlFocusVisible: "_controlFocusVisible_fwob7_25",
2573
+ inputError: "_inputError_fwob7_29",
2574
+ inputWarning: "_inputWarning_fwob7_30",
2575
+ inputDisabled: "_inputDisabled_fwob7_65",
2576
+ hideScrollbars: "_hideScrollbars_fwob7_71",
2577
+ wrapper: "_wrapper_fwob7_89",
2578
+ bordered: "_bordered_fwob7_97",
2579
+ scroll: "_scroll_fwob7_102",
2580
+ virtualScroll: "_virtualScroll_fwob7_113",
2581
+ table: "_table_fwob7_116",
2582
+ dragOverlay: "_dragOverlay_fwob7_152",
2583
+ striped: "_striped_fwob7_207"
2584
2584
  }, qs = { title: "_title_zn5s7_1" }, Js = ({ name: e = null, actions: t = null, actionsRight: n = !1, testId: r }) => {
2585
2585
  let i = e !== null, a = t !== null;
2586
2586
  return !i && !a ? null : /* @__PURE__ */ C("div", {
@@ -4307,32 +4307,20 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4307
4307
  }) : t({});
4308
4308
  }, Xl = 31, Zl = ({ table: e, children: t }) => {
4309
4309
  var n, r, i;
4310
- let a = _(null), o = _(Xl), s = _(/* @__PURE__ */ new Map()), c = (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n, l = (e, t) => {
4311
- let n = s.current;
4312
- if (n.get(e) === t) return;
4313
- n.set(e, t);
4314
- for (let e of n.keys()) e >= c && n.delete(e);
4315
- let r = 0;
4316
- for (let e of n.values()) r += e;
4317
- n.size > 0 && (o.current = r / n.size);
4318
- }, u = Jr({
4319
- count: c,
4310
+ let a = _(null), o = Jr({
4311
+ count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
4320
4312
  getScrollElement: () => a.current,
4321
- estimateSize: () => o.current,
4322
- measureElement: (e) => {
4323
- let t = e.getBoundingClientRect().height, n = e.getAttribute("data-index");
4324
- return n != null && l(Number(n), t), t;
4325
- },
4313
+ estimateSize: () => Xl,
4326
4314
  overscan: 10
4327
4315
  });
4328
4316
  return /* @__PURE__ */ S("div", {
4329
4317
  id: "scrollWrapper",
4330
- className: Ks.scroll,
4318
+ className: b(Ks.scroll, Ks.virtualScroll),
4331
4319
  ref: a,
4332
4320
  children: t({
4333
- virtualizer: u,
4321
+ virtualizer: o,
4334
4322
  tableStyle: (() => {
4335
- let e = u.getVirtualItems(), t = e.length > 0 ? e[0].start : 0, n = e.length > 0 ? u.getTotalSize() - e[e.length - 1].end : 0;
4323
+ let e = o.getVirtualItems(), t = e.length > 0 ? e[0].start : 0, n = e.length > 0 ? o.getTotalSize() - e[e.length - 1].end : 0;
4336
4324
  return {
4337
4325
  "--virtualPaddingTop": t + "px",
4338
4326
  "--virtualPaddingBottom": n + "px"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "9.2.0-beta-3",
3
+ "version": "9.2.0-beta-5",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {