@3sc/common-component 0.0.340 → 0.0.342

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
@@ -43501,6 +43501,7 @@ const Bu = $c(Mr.SNOP), Lu = $c(Mr.SELECTED_BU), Vu = $c(Mr.USER), SW = $c(Mr.SE
43501
43501
  }
43502
43502
  a = (d == null ? void 0 : d.columns) ?? a ?? wy({ definitions: i });
43503
43503
  const f = a.reduce((x, w) => (x[w.key] = w, x), {}), p = l.reduce((x, w) => (x[w.key] = w, x), {}), h = [];
43504
+ console.log({ defaultUserSettings: a, definitions: i, hashMapUserSettings: f, hashMapLabels: p });
43504
43505
  for (const x of i) {
43505
43506
  const w = f[x.key] || {}, C = p[x.key] || {};
43506
43507
  let O = {
@@ -43508,7 +43509,7 @@ const Bu = $c(Mr.SNOP), Lu = $c(Mr.SELECTED_BU), Vu = $c(Mr.USER), SW = $c(Mr.SE
43508
43509
  ...w,
43509
43510
  ...C
43510
43511
  };
43511
- if ((b = x.children) != null && b.length) {
43512
+ if (console.log({ item: x, userSetting: w, label: C, obj: O }), (b = x.children) != null && b.length) {
43512
43513
  const v = (w.children || []).reduce((E, M) => (M != null && M.key && (E[M.key] = M), E), {}), k = (C.children || []).reduce((E, M) => (M != null && M.key && (E[M.key] = M), E), {});
43513
43514
  O.children = x.children.map((E) => ({
43514
43515
  ...E,
@@ -43518,8 +43519,7 @@ const Bu = $c(Mr.SNOP), Lu = $c(Mr.SELECTED_BU), Vu = $c(Mr.USER), SW = $c(Mr.SE
43518
43519
  }
43519
43520
  h.push(O);
43520
43521
  }
43521
- const g = h.sort((x, w) => x.sequenceId - w.sequenceId);
43522
- return console.log({ colSort: g }), g;
43522
+ return console.log({ col: h }), h.sort((x, w) => x.sequenceId - w.sequenceId);
43523
43523
  }, PW = (e) => e.sort((t, n) => t.sequenceId - n.sequenceId), Zp = (e) => e.map((t) => ({
43524
43524
  id: t.id,
43525
43525
  key: t.key,
@@ -44641,7 +44641,7 @@ function kw({ tableProps: e, isDefaultConfig: t, gridPath: n, baseUrl: r }) {
44641
44641
  pageSize: (l = e == null ? void 0 : e.pagination) == null ? void 0 : l.rowPerPage
44642
44642
  });
44643
44643
  return gt(() => {
44644
- a != null && a.length && (i == null || i({
44644
+ console.log({ mergedColumns: a }), a != null && a.length && (i == null || i({
44645
44645
  type: qe.SET_GRID_DATA,
44646
44646
  payload: { visibleGridColumns: a }
44647
44647
  }));