@3sc/common-component 0.0.237 → 0.0.238
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.es.js +16 -17
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -44202,34 +44202,33 @@ Sw.propTypes = {
|
|
|
44202
44202
|
nested: s.object
|
|
44203
44203
|
};
|
|
44204
44204
|
function Tw({ tableProps: e, isDefaultConfig: t, gridPath: n, baseUrl: r }) {
|
|
44205
|
-
var
|
|
44205
|
+
var u;
|
|
44206
44206
|
const { columns: o } = e, { visibleGridColumns: i = [] } = mt(Oa) ?? {}, a = mt(Ea), l = un(() => {
|
|
44207
|
-
var
|
|
44207
|
+
var d;
|
|
44208
44208
|
return mW({
|
|
44209
44209
|
columns: o,
|
|
44210
44210
|
gridPath: n,
|
|
44211
44211
|
baseUrl: r,
|
|
44212
44212
|
isDefaultConfig: t,
|
|
44213
|
-
pageSize: (
|
|
44213
|
+
pageSize: (d = e == null ? void 0 : e.pagination) == null ? void 0 : d.rowPerPage
|
|
44214
44214
|
});
|
|
44215
|
-
}, [o, n, r, t, (
|
|
44216
|
-
|
|
44217
|
-
|
|
44218
|
-
|
|
44219
|
-
const f = u.get(d.key);
|
|
44215
|
+
}, [o, n, r, t, (u = e == null ? void 0 : e.pagination) == null ? void 0 : u.rowPerPage]), c = un(() => {
|
|
44216
|
+
const d = new Map(i.map((f) => [f.key, f]));
|
|
44217
|
+
return l.map((f) => {
|
|
44218
|
+
const p = d.get(f.key);
|
|
44220
44219
|
return {
|
|
44221
|
-
...
|
|
44222
|
-
...
|
|
44223
|
-
isHidden:
|
|
44224
|
-
sequenceId:
|
|
44220
|
+
...f,
|
|
44221
|
+
...p && {
|
|
44222
|
+
isHidden: p.isHidden,
|
|
44223
|
+
sequenceId: p.sequenceId
|
|
44225
44224
|
}
|
|
44226
44225
|
};
|
|
44227
44226
|
});
|
|
44228
|
-
}, [l, i])
|
|
44227
|
+
}, [l, i]);
|
|
44228
|
+
return St(() => {
|
|
44229
44229
|
a({
|
|
44230
44230
|
type: qe.SET_GRID_DATA,
|
|
44231
|
-
|
|
44232
|
-
payload: { visibleGridColumns: l }
|
|
44231
|
+
payload: { visibleGridColumns: i.length ? c : l }
|
|
44233
44232
|
});
|
|
44234
44233
|
}, [l]), /* @__PURE__ */ g.jsx(
|
|
44235
44234
|
Sw,
|
|
@@ -44375,7 +44374,7 @@ const vy = ({ type: e }) => {
|
|
|
44375
44374
|
zIndex: 999
|
|
44376
44375
|
},
|
|
44377
44376
|
children: [
|
|
44378
|
-
/* @__PURE__ */ g.jsx(UI, { mode: "popLayout", children: i.map((d) => /* @__PURE__ */ g.jsx(
|
|
44377
|
+
/* @__PURE__ */ g.jsx(UI, { mode: "popLayout", children: i.map((d, f) => /* @__PURE__ */ g.jsx(
|
|
44379
44378
|
qi.div,
|
|
44380
44379
|
{
|
|
44381
44380
|
initial: { opacity: 0 },
|
|
@@ -44385,7 +44384,7 @@ const vy = ({ type: e }) => {
|
|
|
44385
44384
|
layout: !0,
|
|
44386
44385
|
children: /* @__PURE__ */ g.jsx(ge, { sx: { flexShrink: 0, minWidth: "fit-content" }, children: OW(d) })
|
|
44387
44386
|
},
|
|
44388
|
-
d.id
|
|
44387
|
+
`${d.id}_${f}`
|
|
44389
44388
|
)) }),
|
|
44390
44389
|
l && /* @__PURE__ */ g.jsx(ge, { sx: { paddingLeft: t ? "0.5rem" : 0 }, children: /* @__PURE__ */ g.jsx(
|
|
44391
44390
|
Qo,
|