@3sc/common-component 0.0.291 → 0.0.293

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
@@ -43384,7 +43384,7 @@ const Hc = {
43384
43384
  if (!r && t) {
43385
43385
  a = Cy({ definitions: i });
43386
43386
  const x = new Set((m = d == null ? void 0 : d.column) == null ? void 0 : m.map((C) => C.id)), w = a.filter((C) => !x.has(C.id));
43387
- (!d || (w == null ? void 0 : w.length) > 0) && (async () => {
43387
+ (!d || (w == null ? void 0 : w.length) > 0) && (console.log({ _localSetting: u, grid_settings: d, missing: w, defaultUserSettings: a }), (async () => {
43388
43388
  try {
43389
43389
  const O = { ...Pa.GRID_SETTINGS || {
43390
43390
  platform: { theme: "light" }
@@ -43401,7 +43401,7 @@ const Hc = {
43401
43401
  } catch (C) {
43402
43402
  console.error(C);
43403
43403
  }
43404
- })();
43404
+ })());
43405
43405
  }
43406
43406
  a = (d == null ? void 0 : d.columns) ?? a ?? Cy({ definitions: i });
43407
43407
  const f = a.reduce((x, w) => (x[w.id] = w, x), {}), p = l.reduce((x, w) => (x[w.id] = w, x), {}), h = [];
@@ -43422,8 +43422,7 @@ const Hc = {
43422
43422
  }
43423
43423
  h.push(O);
43424
43424
  }
43425
- const g = h.sort((x, w) => x.sequenceId - w.sequenceId);
43426
- return console.log({ colSort: g, definitions: i }), g;
43425
+ return h.sort((x, w) => x.sequenceId - w.sequenceId);
43427
43426
  }, DW = (e) => e.sort((t, n) => t.sequenceId - n.sequenceId), Cy = ({ definitions: e }) => e.map((t, n) => ({
43428
43427
  id: t.id,
43429
43428
  key: t.key,
@@ -43632,7 +43631,7 @@ const jW = (e, t, n, r, o) => {
43632
43631
  }
43633
43632
  return p.id === ((h = i == null ? void 0 : i.column) == null ? void 0 : h.id) && p.key === ((g = i.column) == null ? void 0 : g.key) ? { ...p, isHidden: !0 } : p;
43634
43633
  });
43635
- console.log({ updatedColumns: f }), d({ updatedColumns: f });
43634
+ d({ updatedColumns: f });
43636
43635
  }, d = async ({ updatedColumns: f }) => {
43637
43636
  t({
43638
43637
  type: Ye.SET_GRID_DATA,
@@ -44622,7 +44621,7 @@ function Rw({ tableProps: e, isDefaultConfig: t, gridPath: n, baseUrl: r }) {
44622
44621
  };
44623
44622
  }).sort((f, p) => f.sequenceId - p.sequenceId);
44624
44623
  }, [l, i]);
44625
- return console.log({ columns: o, mergedColumns: l, visibleGridColumns: i, finalColumns: c }), Ct(() => {
44624
+ return Ct(() => {
44626
44625
  a({
44627
44626
  type: Ye.SET_GRID_DATA,
44628
44627
  payload: { visibleGridColumns: i.length ? c : l }
@@ -44880,7 +44879,7 @@ const Mw = ({
44880
44879
  isHidden: !P.includes(I.id)
44881
44880
  };
44882
44881
  });
44883
- console.log({ updatedColumns: M }), l({
44882
+ l({
44884
44883
  type: Ye.SET_GRID_DATA,
44885
44884
  payload: { visibleGridColumns: M }
44886
44885
  }), l({
@@ -44891,7 +44890,7 @@ const Mw = ({
44891
44890
  const P = Array.isArray(E.children) ? E.children.filter((M) => !M.isHidden) : void 0;
44892
44891
  return !E.isHidden || P && P.length ? { ...E, children: P } : null;
44893
44892
  }).filter(Boolean);
44894
- return console.log({ visibleGridColumns: c, baseManageSelectOptions: d }), /* @__PURE__ */ y.jsxs(
44893
+ return /* @__PURE__ */ y.jsxs(
44895
44894
  ve,
44896
44895
  {
44897
44896
  sx: {