@3sc/common-component 0.0.236 → 0.0.237

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
@@ -44202,33 +44202,34 @@ Sw.propTypes = {
44202
44202
  nested: s.object
44203
44203
  };
44204
44204
  function Tw({ tableProps: e, isDefaultConfig: t, gridPath: n, baseUrl: r }) {
44205
- var u;
44205
+ var c;
44206
44206
  const { columns: o } = e, { visibleGridColumns: i = [] } = mt(Oa) ?? {}, a = mt(Ea), l = un(() => {
44207
- var d;
44207
+ var u;
44208
44208
  return mW({
44209
44209
  columns: o,
44210
44210
  gridPath: n,
44211
44211
  baseUrl: r,
44212
44212
  isDefaultConfig: t,
44213
- pageSize: (d = e == null ? void 0 : e.pagination) == null ? void 0 : d.rowPerPage
44213
+ pageSize: (u = e == null ? void 0 : e.pagination) == null ? void 0 : u.rowPerPage
44214
44214
  });
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);
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);
44219
44220
  return {
44220
- ...f,
44221
- ...p && {
44222
- isHidden: p.isHidden,
44223
- sequenceId: p.sequenceId
44221
+ ...d,
44222
+ ...f && {
44223
+ isHidden: f.isHidden,
44224
+ sequenceId: f.sequenceId
44224
44225
  }
44225
44226
  };
44226
44227
  });
44227
- }, [l, i]);
44228
- return St(() => {
44228
+ }, [l, i]), St(() => {
44229
44229
  a({
44230
44230
  type: qe.SET_GRID_DATA,
44231
- payload: { visibleGridColumns: i.length ? c : l }
44231
+ // payload: { visibleGridColumns: !visibleGridColumns.length ? mergedColumns : finalColumns },
44232
+ payload: { visibleGridColumns: l }
44232
44233
  });
44233
44234
  }, [l]), /* @__PURE__ */ g.jsx(
44234
44235
  Sw,