1mpacto-react-ui 0.0.71 → 0.0.72

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.mjs CHANGED
@@ -11408,7 +11408,7 @@ const D2 = /* @__PURE__ */ Be(() => {
11408
11408
  endReached: I
11409
11409
  } = e, [E, C] = de(0), S = () => {
11410
11410
  if (i === "min-max") {
11411
- const k = (o + 1) * u;
11411
+ const k = (o + (o === 0 ? 1 : 0)) * u;
11412
11412
  return { height: o > l ? s : E > k ? E : k };
11413
11413
  }
11414
11414
  return i === "container" ? { height: E } : {};
@@ -11728,7 +11728,7 @@ const W2 = ({ style: e, context: t, ...n }) => /* @__PURE__ */ D.jsx("table", {
11728
11728
  classNamePointer: c,
11729
11729
  emptyPlaceholder: f
11730
11730
  }) => {
11731
- var m, p;
11731
+ var m, p, b;
11732
11732
  const [g, d] = A.useState(0);
11733
11733
  return /* @__PURE__ */ D.jsx(
11734
11734
  Jm,
@@ -11745,67 +11745,67 @@ const W2 = ({ style: e, context: t, ...n }) => /* @__PURE__ */ D.jsx("table", {
11745
11745
  // eslint-disable-next-line
11746
11746
  // @ts-ignore
11747
11747
  Table: W2,
11748
- EmptyPlaceholder: () => /* @__PURE__ */ D.jsx("tr", { ref: (b) => {
11749
- var h;
11750
- return d(((h = b == null ? void 0 : b.getBoundingClientRect()) == null ? void 0 : h.height) ?? 60);
11751
- }, children: /* @__PURE__ */ D.jsx("td", { colSpan: e.getVisibleFlatColumns().length, children: ye(f) && f }) })
11748
+ EmptyPlaceholder: () => /* @__PURE__ */ D.jsx("tbody", { ref: (h) => {
11749
+ var v;
11750
+ return d(((v = h == null ? void 0 : h.getBoundingClientRect()) == null ? void 0 : v.height) ?? 0);
11751
+ }, children: /* @__PURE__ */ D.jsx("tr", { children: /* @__PURE__ */ D.jsx("td", { colSpan: e.getVisibleFlatColumns().length, children: ye(f) && f }) }) })
11752
11752
  },
11753
11753
  classNameContainer: t,
11754
- fixedHeaderContent: () => e.getHeaderGroups().map((b) => /* @__PURE__ */ D.jsx("tr", { children: b.headers.map((h) => {
11755
- var v, y;
11754
+ fixedHeaderContent: () => e.getHeaderGroups().map((h) => /* @__PURE__ */ D.jsx("tr", { children: h.headers.map((v) => {
11755
+ var y, w;
11756
11756
  return /* @__PURE__ */ D.jsx(
11757
11757
  "th",
11758
11758
  {
11759
- colSpan: h.colSpan,
11760
- style: typeof ((v = h.column.columnDef.meta) == null ? void 0 : v.styleTh) == "function" ? (y = h.column.columnDef.meta) == null ? void 0 : y.styleTh(h.column.columnDef) : {},
11761
- children: h.isPlaceholder ? null : /* @__PURE__ */ D.jsxs(
11759
+ colSpan: v.colSpan,
11760
+ style: typeof ((y = v.column.columnDef.meta) == null ? void 0 : y.styleTh) == "function" ? (w = v.column.columnDef.meta) == null ? void 0 : w.styleTh(v.column.columnDef) : {},
11761
+ children: v.isPlaceholder ? null : /* @__PURE__ */ D.jsxs(
11762
11762
  "div",
11763
11763
  {
11764
- className: h.column.getCanSort() ? Qr.sorting : "",
11765
- onClick: h.column.getToggleSortingHandler(),
11764
+ className: v.column.getCanSort() ? Qr.sorting : "",
11765
+ onClick: v.column.getToggleSortingHandler(),
11766
11766
  children: [
11767
- za(h.column.columnDef.header, h.getContext()),
11768
- h.column.getCanSort() && /* @__PURE__ */ D.jsx("span", { className: "1ru-flex-shrink-0", children: h.column.getIsSorted() === "asc" || h.column.getIsSorted() === "desc" ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
11769
- h.column.getIsSorted() === "asc" && /* @__PURE__ */ D.jsx(D.Fragment, { children: s }),
11770
- h.column.getIsSorted() === "desc" && /* @__PURE__ */ D.jsx(D.Fragment, { children: l })
11767
+ za(v.column.columnDef.header, v.getContext()),
11768
+ v.column.getCanSort() && /* @__PURE__ */ D.jsx("span", { className: "1ru-flex-shrink-0", children: v.column.getIsSorted() === "asc" || v.column.getIsSorted() === "desc" ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
11769
+ v.column.getIsSorted() === "asc" && /* @__PURE__ */ D.jsx(D.Fragment, { children: s }),
11770
+ v.column.getIsSorted() === "desc" && /* @__PURE__ */ D.jsx(D.Fragment, { children: l })
11771
11771
  ] }) : /* @__PURE__ */ D.jsx(D.Fragment, {}) })
11772
11772
  ]
11773
11773
  }
11774
11774
  )
11775
11775
  },
11776
- h.id
11776
+ v.id
11777
11777
  );
11778
- }) }, b.id)),
11779
- itemContent: (b, h) => {
11780
- var y, w;
11781
- const v = (w = (y = e.getRowModel()) == null ? void 0 : y.rows) == null ? void 0 : w[h];
11782
- return /* @__PURE__ */ D.jsx(b, { children: ({ ...x }) => /* @__PURE__ */ sl(
11778
+ }) }, h.id)),
11779
+ itemContent: (h, v) => {
11780
+ var w, x;
11781
+ const y = (x = (w = e.getRowModel()) == null ? void 0 : w.rows) == null ? void 0 : x[v];
11782
+ return /* @__PURE__ */ D.jsx(h, { children: ({ ...I }) => /* @__PURE__ */ sl(
11783
11783
  "tr",
11784
11784
  {
11785
- ...x,
11786
- onClick: (I) => {
11787
- I.stopPropagation(), r && typeof n == "function" && n(v.original, v);
11785
+ ...I,
11786
+ onClick: (E) => {
11787
+ E.stopPropagation(), r && typeof n == "function" && n(y.original, y);
11788
11788
  },
11789
11789
  className: r ? c : "",
11790
- key: v.id,
11791
- id: i(v)
11790
+ key: y.id,
11791
+ id: i(y)
11792
11792
  },
11793
- v.getVisibleCells().map((I) => {
11794
- var E, C, S;
11793
+ y.getVisibleCells().map((E) => {
11794
+ var C, S, B;
11795
11795
  return /* @__PURE__ */ D.jsx(D.Fragment, { children: /* @__PURE__ */ D.jsx(
11796
11796
  "td",
11797
11797
  {
11798
- style: typeof ((E = I.column.columnDef.meta) == null ? void 0 : E.styleTd) == "function" ? I.column.columnDef.meta.styleTd(v.original, v) : {},
11799
- className: typeof ((C = I.column.columnDef.meta) == null ? void 0 : C.classNameTd) == "function" ? (S = I.column.columnDef.meta) == null ? void 0 : S.classNameTd(v.original, v) : "",
11800
- children: za(I.column.columnDef.cell, I.getContext())
11798
+ style: typeof ((C = E.column.columnDef.meta) == null ? void 0 : C.styleTd) == "function" ? E.column.columnDef.meta.styleTd(y.original, y) : {},
11799
+ className: typeof ((S = E.column.columnDef.meta) == null ? void 0 : S.classNameTd) == "function" ? (B = E.column.columnDef.meta) == null ? void 0 : B.classNameTd(y.original, y) : "",
11800
+ children: za(E.column.columnDef.cell, E.getContext())
11801
11801
  },
11802
- I.id
11802
+ E.id
11803
11803
  ) });
11804
11804
  })
11805
- ) }, v.id);
11805
+ ) }, y.id);
11806
11806
  },
11807
11807
  ...a,
11808
- minHeightItem: ((a == null ? void 0 : a.minHeightItem) ?? 60) + g
11808
+ minHeightItem: ((a == null ? void 0 : a.minHeightItem) ?? 60) + ((((b = e.getRowModel().rows) == null ? void 0 : b.length) || 0) > 0 ? 0 : g)
11809
11809
  }
11810
11810
  );
11811
11811
  }, wS = ({
@@ -11902,7 +11902,7 @@ const W2 = ({ style: e, context: t, ...n }) => /* @__PURE__ */ D.jsx("table", {
11902
11902
  endReached: x
11903
11903
  } = e, [I, E] = de(0), C = () => {
11904
11904
  if (i === "min-max") {
11905
- const $ = (o + 1) * u;
11905
+ const $ = (o + (o === 0 ? 1 : 0)) * u;
11906
11906
  return { height: o > l ? s : I > $ ? I : $ };
11907
11907
  }
11908
11908
  return i === "container" ? { height: I } : {};