@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.
- package/dist/{index-CU9jvo91.js → index-BuwX5wP1.js} +25 -20
- package/dist/{index-CU9jvo91.js.map → index-BuwX5wP1.js.map} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/{nl-CKMhDII7.js → nl-DhvMiB6O.js} +2 -2
- package/dist/{nl-CKMhDII7.js.map → nl-DhvMiB6O.js.map} +1 -1
- package/dist/{tr-D_dw0jrT.js → tr-C545D0Of.js} +2 -2
- package/dist/{tr-D_dw0jrT.js.map → tr-C545D0Of.js.map} +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
33094
|
+
return (await import("./tr-C545D0Of.js")).tr;
|
|
33092
33095
|
case "nl":
|
|
33093
|
-
return (await import("./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 (
|
|
37182
|
-
if (
|
|
37183
|
-
const
|
|
37184
|
-
let
|
|
37185
|
-
for (let
|
|
37186
|
-
const
|
|
37187
|
-
|
|
37188
|
-
...
|
|
37189
|
-
pageSize:
|
|
37190
|
-
} : (
|
|
37191
|
-
}
|
|
37192
|
-
localStorage.setItem(
|
|
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 (
|
|
37240
|
-
c(
|
|
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 (
|
|
37255
|
-
l(
|
|
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-
|
|
39877
|
+
//# sourceMappingURL=index-BuwX5wP1.js.map
|