@3sc/common-component 0.0.541 → 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.
@@ -32998,6 +32998,9 @@ const Tj = ({ color: e }) => /* @__PURE__ */ y.jsx("svg", { width: "7", height:
32998
32998
  inputProps: {
32999
32999
  style: { cursor: t?.disabled ? "not-allowed" : "pointer" }
33000
33000
  },
33001
+ slotProps: {
33002
+ htmlInput: { title: "" }
33003
+ },
33001
33004
  sx: {
33002
33005
  "& .MuiFormLabel-asterisk.MuiInputLabel-asterisk": {
33003
33006
  "&::after": {
@@ -33088,9 +33091,9 @@ const Tj = ({ color: e }) => /* @__PURE__ */ y.jsx("svg", { width: "7", height:
33088
33091
  async function Ij(e) {
33089
33092
  switch (e.split("-")[0]) {
33090
33093
  case "tr":
33091
- return (await import("./tr-D_dw0jrT.js")).tr;
33094
+ return (await import("./tr-C545D0Of.js")).tr;
33092
33095
  case "nl":
33093
- return (await import("./nl-CKMhDII7.js")).nl;
33096
+ return (await import("./nl-DhvMiB6O.js")).nl;
33094
33097
  default:
33095
33098
  return (await Promise.resolve().then(() => wA)).enUS;
33096
33099
  }
@@ -37178,19 +37181,19 @@ const sN = re.memo(
37178
37181
  totalRecords: a,
37179
37182
  onPageChange: l,
37180
37183
  onPageSizeChange: c
37181
- } = e, u = kt(), d = async (f, p) => {
37182
- if (console.log("gridPath", p), !p) return;
37183
- const m = p.split("/").filter(Boolean), h = "settings", b = { ...JSON.parse(localStorage.getItem(h)) || {} };
37184
- let S = b;
37185
- for (let E = 0; E < m.length; E++) {
37186
- const w = m[E];
37187
- E === m.length - 1 ? S[w] = {
37188
- ...S[w] || {},
37189
- pageSize: f
37190
- } : (S[w] = { ...S[w] || {} }, S = S[w]);
37191
- }
37192
- localStorage.setItem(h, JSON.stringify(b)), await $l({ baseUrl: n, payload: b });
37193
- };
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);
37194
37197
  return /* @__PURE__ */ y.jsxs(
37195
37198
  se,
37196
37199
  {
@@ -37219,6 +37222,8 @@ const sN = re.memo(
37219
37222
  color: u.palette.primary.notifyTextColor
37220
37223
  },
37221
37224
  children: r("SHOWING_ROWS", {
37225
+ start: f,
37226
+ end: p,
37222
37227
  current: Math.min(o * i, a),
37223
37228
  total: a
37224
37229
  })
@@ -37236,8 +37241,8 @@ const sN = re.memo(
37236
37241
  {
37237
37242
  options: L4,
37238
37243
  value: i,
37239
- onChange: async (f) => {
37240
- c(f), d(f?.value, t);
37244
+ onChange: async (m) => {
37245
+ c(m), d(m?.value, t);
37241
37246
  }
37242
37247
  }
37243
37248
  )
@@ -37251,8 +37256,8 @@ const sN = re.memo(
37251
37256
  {
37252
37257
  count: Math.ceil(a / i),
37253
37258
  page: o,
37254
- onChange: async (f, p) => {
37255
- l(p);
37259
+ onChange: async (m, h) => {
37260
+ l(h);
37256
37261
  },
37257
37262
  siblingCount: 0,
37258
37263
  shape: "rounded",
@@ -39869,4 +39874,4 @@ export {
39869
39874
  jN as t,
39870
39875
  n$ as u
39871
39876
  };
39872
- //# sourceMappingURL=index-CU9jvo91.js.map
39877
+ //# sourceMappingURL=index-BuwX5wP1.js.map