@hybr1d-tech/charizard 1.1.111 → 1.1.112
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/hybr1d-ui.js +16 -5
- package/dist/hybr1d-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hybr1d-ui.js
CHANGED
|
@@ -9929,19 +9929,22 @@ const Jm = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
9929
9929
|
paginationMenu: Ih,
|
|
9930
9930
|
meta: zh
|
|
9931
9931
|
};
|
|
9932
|
-
function yh({ setLimit: e, limit: l, itemsOnPage: n }) {
|
|
9933
|
-
|
|
9932
|
+
function yh({ setLimit: e, limit: l, itemsOnPage: n, totalItems: c }) {
|
|
9933
|
+
const t = [
|
|
9934
9934
|
{ label: "25", value: "25", onClick: () => e(25) },
|
|
9935
9935
|
{ label: "50", value: "50", onClick: () => e(50) },
|
|
9936
9936
|
{ label: "75", value: "75", onClick: () => e(75) },
|
|
9937
9937
|
{ label: "100", value: "100", onClick: () => e(100) }
|
|
9938
9938
|
];
|
|
9939
|
-
|
|
9939
|
+
if (!c || c === 0 || n === 0)
|
|
9940
|
+
return /* @__PURE__ */ a.jsx("div", { className: O0.limitBox });
|
|
9941
|
+
const s = +t[0].value;
|
|
9942
|
+
return c < s || n && n < s ? /* @__PURE__ */ a.jsx("div", { className: O0.limitBox }) : /* @__PURE__ */ a.jsxs("div", { className: O0.limitBox, children: [
|
|
9940
9943
|
/* @__PURE__ */ a.jsx("p", { className: "zap-subcontent-medium", children: "Rows per page" }),
|
|
9941
9944
|
/* @__PURE__ */ a.jsx(
|
|
9942
9945
|
o0.GroupAction,
|
|
9943
9946
|
{
|
|
9944
|
-
menuItems:
|
|
9947
|
+
menuItems: t,
|
|
9945
9948
|
variant: W.TERTIARY,
|
|
9946
9949
|
size: t0.SMALL,
|
|
9947
9950
|
customStyles: { customMenuStyles: { minWidth: "63px" } },
|
|
@@ -10011,7 +10014,15 @@ function u7({ paginationConfig: e }) {
|
|
|
10011
10014
|
}, [n, c == null ? void 0 : c.total_items]);
|
|
10012
10015
|
const i = (c == null ? void 0 : c.page_no) ?? 0, o = (c == null ? void 0 : c.total_items) ?? 0, u = (c == null ? void 0 : c.items_on_page) ?? n, m = i * n + 1, d = Math.min(m + u - 1, o);
|
|
10013
10016
|
return /* @__PURE__ */ a.jsxs("div", { className: O0.box, children: [
|
|
10014
|
-
/* @__PURE__ */ a.jsx(
|
|
10017
|
+
/* @__PURE__ */ a.jsx(
|
|
10018
|
+
yh,
|
|
10019
|
+
{
|
|
10020
|
+
setLimit: l,
|
|
10021
|
+
limit: n,
|
|
10022
|
+
itemsOnPage: c == null ? void 0 : c.items_on_page,
|
|
10023
|
+
totalItems: c == null ? void 0 : c.total_items
|
|
10024
|
+
}
|
|
10025
|
+
),
|
|
10015
10026
|
!!o && /* @__PURE__ */ a.jsxs("p", { className: b(O0.meta, "zap-subcontent-medium"), children: [
|
|
10016
10027
|
m,
|
|
10017
10028
|
" - ",
|