@oliasoft-open-source/react-ui-library 9.2.0-beta-4 → 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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-virtual-scroll-wrapper.d.ts","sourceRoot":"","sources":["../../../src/components/table/table-virtual-scroll-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAkB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE;QAChB,WAAW,CAAC,EAAE,WAAW,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;QACnD,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAClC,KAAK,SAAS,CAAC;CACjB;AAOD,eAAO,MAAM,yBAAyB,GAAI,qBAAqB,+BAA+B,
|
|
1
|
+
{"version":3,"file":"table-virtual-scroll-wrapper.d.ts","sourceRoot":"","sources":["../../../src/components/table/table-virtual-scroll-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAkB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE;QAChB,WAAW,CAAC,EAAE,WAAW,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;QACnD,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAClC,KAAK,SAAS,CAAC;CACjB;AAOD,eAAO,MAAM,yBAAyB,GAAI,qBAAqB,+BAA+B,4CA2B7F,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4307,22 +4307,10 @@ 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 =
|
|
4311
|
-
|
|
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: () =>
|
|
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", {
|
|
@@ -4330,9 +4318,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4330
4318
|
className: b(Ks.scroll, Ks.virtualScroll),
|
|
4331
4319
|
ref: a,
|
|
4332
4320
|
children: t({
|
|
4333
|
-
virtualizer:
|
|
4321
|
+
virtualizer: o,
|
|
4334
4322
|
tableStyle: (() => {
|
|
4335
|
-
let e =
|
|
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