@3sc/common-component 0.0.542 → 0.0.543

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.
@@ -33091,9 +33091,9 @@ const Tj = ({ color: e }) => /* @__PURE__ */ y.jsx("svg", { width: "7", height:
33091
33091
  async function Ij(e) {
33092
33092
  switch (e.split("-")[0]) {
33093
33093
  case "tr":
33094
- return (await import("./tr-DG5j8A6p.js")).tr;
33094
+ return (await import("./tr-C545D0Of.js")).tr;
33095
33095
  case "nl":
33096
- return (await import("./nl-DPFmNDWx.js")).nl;
33096
+ return (await import("./nl-DhvMiB6O.js")).nl;
33097
33097
  default:
33098
33098
  return (await Promise.resolve().then(() => wA)).enUS;
33099
33099
  }
@@ -37181,19 +37181,19 @@ const sN = re.memo(
37181
37181
  totalRecords: a,
37182
37182
  onPageChange: l,
37183
37183
  onPageSizeChange: c
37184
- } = e, u = kt(), d = async (f, p) => {
37185
- if (console.log("gridPath", p), !p) return;
37186
- const m = p.split("/").filter(Boolean), h = "settings", b = { ...JSON.parse(localStorage.getItem(h)) || {} };
37187
- let S = b;
37188
- for (let E = 0; E < m.length; E++) {
37189
- const w = m[E];
37190
- E === m.length - 1 ? S[w] = {
37191
- ...S[w] || {},
37192
- pageSize: f
37193
- } : (S[w] = { ...S[w] || {} }, S = S[w]);
37194
- }
37195
- localStorage.setItem(h, JSON.stringify(b)), await $l({ baseUrl: n, payload: b });
37196
- };
37184
+ } = e, u = kt(), d = async (m, h) => {
37185
+ if (!h) return;
37186
+ const g = h.split("/").filter(Boolean), b = "settings", E = { ...JSON.parse(localStorage.getItem(b)) || {} };
37187
+ let w = E;
37188
+ for (let v = 0; v < g.length; v++) {
37189
+ const x = g[v];
37190
+ v === g.length - 1 ? w[x] = {
37191
+ ...w[x] || {},
37192
+ pageSize: m
37193
+ } : (w[x] = { ...w[x] || {} }, w = w[x]);
37194
+ }
37195
+ localStorage.setItem(b, JSON.stringify(E)), await $l({ baseUrl: n, payload: E });
37196
+ }, f = a === 0 ? 0 : (o - 1) * i + 1, p = Math.min(o * i, a);
37197
37197
  return /* @__PURE__ */ y.jsxs(
37198
37198
  se,
37199
37199
  {
@@ -37222,6 +37222,8 @@ const sN = re.memo(
37222
37222
  color: u.palette.primary.notifyTextColor
37223
37223
  },
37224
37224
  children: r("SHOWING_ROWS", {
37225
+ start: f,
37226
+ end: p,
37225
37227
  current: Math.min(o * i, a),
37226
37228
  total: a
37227
37229
  })
@@ -37239,8 +37241,8 @@ const sN = re.memo(
37239
37241
  {
37240
37242
  options: L4,
37241
37243
  value: i,
37242
- onChange: async (f) => {
37243
- c(f), d(f?.value, t);
37244
+ onChange: async (m) => {
37245
+ c(m), d(m?.value, t);
37244
37246
  }
37245
37247
  }
37246
37248
  )
@@ -37254,8 +37256,8 @@ const sN = re.memo(
37254
37256
  {
37255
37257
  count: Math.ceil(a / i),
37256
37258
  page: o,
37257
- onChange: async (f, p) => {
37258
- l(p);
37259
+ onChange: async (m, h) => {
37260
+ l(h);
37259
37261
  },
37260
37262
  siblingCount: 0,
37261
37263
  shape: "rounded",
@@ -39872,4 +39874,4 @@ export {
39872
39874
  jN as t,
39873
39875
  n$ as u
39874
39876
  };
39875
- //# sourceMappingURL=index-CxdTiCDA.js.map
39877
+ //# sourceMappingURL=index-BuwX5wP1.js.map