@3sc/common-component 0.0.237 → 0.0.239

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 CHANGED
@@ -43588,7 +43588,6 @@ function Bd({ isRenderCellContent: e, column: t, row: n, parent: r }) {
43588
43588
  textTransform: "none",
43589
43589
  fontSize: "1.1rem"
43590
43590
  },
43591
- component: "label",
43592
43591
  children: t == null ? void 0 : t.cellRenderer(n, { column: t, parent: r })
43593
43592
  }
43594
43593
  ) : /* @__PURE__ */ g.jsx(Iv, { title: (o == null ? void 0 : o.length) > 20 ? o : "", arrow: !0, children: /* @__PURE__ */ g.jsx(
@@ -44202,34 +44201,33 @@ Sw.propTypes = {
44202
44201
  nested: s.object
44203
44202
  };
44204
44203
  function Tw({ tableProps: e, isDefaultConfig: t, gridPath: n, baseUrl: r }) {
44205
- var c;
44204
+ var u;
44206
44205
  const { columns: o } = e, { visibleGridColumns: i = [] } = mt(Oa) ?? {}, a = mt(Ea), l = un(() => {
44207
- var u;
44206
+ var d;
44208
44207
  return mW({
44209
44208
  columns: o,
44210
44209
  gridPath: n,
44211
44210
  baseUrl: r,
44212
44211
  isDefaultConfig: t,
44213
- pageSize: (u = e == null ? void 0 : e.pagination) == null ? void 0 : u.rowPerPage
44212
+ pageSize: (d = e == null ? void 0 : e.pagination) == null ? void 0 : d.rowPerPage
44214
44213
  });
44215
- }, [o, n, r, t, (c = e == null ? void 0 : e.pagination) == null ? void 0 : c.rowPerPage]);
44216
- return un(() => {
44217
- const u = new Map(i.map((d) => [d.key, d]));
44218
- return l.map((d) => {
44219
- const f = u.get(d.key);
44214
+ }, [o, n, r, t, (u = e == null ? void 0 : e.pagination) == null ? void 0 : u.rowPerPage]), c = un(() => {
44215
+ const d = new Map(i.map((f) => [f.key, f]));
44216
+ return l.map((f) => {
44217
+ const p = d.get(f.key);
44220
44218
  return {
44221
- ...d,
44222
- ...f && {
44223
- isHidden: f.isHidden,
44224
- sequenceId: f.sequenceId
44219
+ ...f,
44220
+ ...p && {
44221
+ isHidden: p.isHidden,
44222
+ sequenceId: p.sequenceId
44225
44223
  }
44226
44224
  };
44227
44225
  });
44228
- }, [l, i]), St(() => {
44226
+ }, [l, i]);
44227
+ return St(() => {
44229
44228
  a({
44230
44229
  type: qe.SET_GRID_DATA,
44231
- // payload: { visibleGridColumns: !visibleGridColumns.length ? mergedColumns : finalColumns },
44232
- payload: { visibleGridColumns: l }
44230
+ payload: { visibleGridColumns: i.length ? c : l }
44233
44231
  });
44234
44232
  }, [l]), /* @__PURE__ */ g.jsx(
44235
44233
  Sw,
@@ -44375,7 +44373,7 @@ const vy = ({ type: e }) => {
44375
44373
  zIndex: 999
44376
44374
  },
44377
44375
  children: [
44378
- /* @__PURE__ */ g.jsx(UI, { mode: "popLayout", children: i.map((d) => /* @__PURE__ */ g.jsx(
44376
+ /* @__PURE__ */ g.jsx(UI, { mode: "popLayout", children: i.map((d, f) => /* @__PURE__ */ g.jsx(
44379
44377
  qi.div,
44380
44378
  {
44381
44379
  initial: { opacity: 0 },
@@ -44385,7 +44383,7 @@ const vy = ({ type: e }) => {
44385
44383
  layout: !0,
44386
44384
  children: /* @__PURE__ */ g.jsx(ge, { sx: { flexShrink: 0, minWidth: "fit-content" }, children: OW(d) })
44387
44385
  },
44388
- d.id
44386
+ `${d.id}_${f}`
44389
44387
  )) }),
44390
44388
  l && /* @__PURE__ */ g.jsx(ge, { sx: { paddingLeft: t ? "0.5rem" : 0 }, children: /* @__PURE__ */ g.jsx(
44391
44389
  Qo,