@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.
- package/dist/{index-CxdTiCDA.js → index-BuwX5wP1.js} +22 -20
- package/dist/{index-CxdTiCDA.js.map → index-BuwX5wP1.js.map} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/{nl-DPFmNDWx.js → nl-DhvMiB6O.js} +2 -2
- package/dist/{nl-DPFmNDWx.js.map → nl-DhvMiB6O.js.map} +1 -1
- package/dist/{tr-DG5j8A6p.js → tr-C545D0Of.js} +2 -2
- package/dist/{tr-DG5j8A6p.js.map → tr-C545D0Of.js.map} +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
33094
|
+
return (await import("./tr-C545D0Of.js")).tr;
|
|
33095
33095
|
case "nl":
|
|
33096
|
-
return (await import("./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 (
|
|
37185
|
-
if (
|
|
37186
|
-
const
|
|
37187
|
-
let
|
|
37188
|
-
for (let
|
|
37189
|
-
const
|
|
37190
|
-
|
|
37191
|
-
...
|
|
37192
|
-
pageSize:
|
|
37193
|
-
} : (
|
|
37194
|
-
}
|
|
37195
|
-
localStorage.setItem(
|
|
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 (
|
|
37243
|
-
c(
|
|
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 (
|
|
37258
|
-
l(
|
|
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-
|
|
39877
|
+
//# sourceMappingURL=index-BuwX5wP1.js.map
|