@3sc/common-component 0.0.468 → 0.0.470

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
@@ -43689,7 +43689,7 @@ const jw = {
43689
43689
  const k = b.filter((R) => !y[R.key]), E = h && ((C = h == null ? void 0 : h.columns) == null ? void 0 : C.some(
43690
43690
  (R) => (R == null ? void 0 : R.children) && R.children[i]
43691
43691
  ));
43692
- if (k.length && (!h || E == !1) && (a == null ? void 0 : a.length) > 0) {
43692
+ if (console.log({ childHasKey: E, missing: k, _userSettings: b }), k.length && (!h || E == !1) && (a == null ? void 0 : a.length) > 0) {
43693
43693
  if (E == !1) {
43694
43694
  const R = Tr(b);
43695
43695
  b = (w = h == null ? void 0 : h.columns) == null ? void 0 : w.map((P) => {
@@ -43701,7 +43701,7 @@ const jw = {
43701
43701
  [i]: (I = R == null ? void 0 : R[P == null ? void 0 : P.key]) == null ? void 0 : I.children[i]
43702
43702
  }
43703
43703
  } : P;
43704
- });
43704
+ }), console.log({ userSettingMap: R, _userSettings: b });
43705
43705
  }
43706
43706
  (async () => {
43707
43707
  try {
@@ -45879,7 +45879,7 @@ const uz = {
45879
45879
  t({ type: He.LOADING, loading: !1 });
45880
45880
  }
45881
45881
  }, [e, t]), E = (j) => {
45882
- const F = j || v || [];
45882
+ const F = (v || []).filter((N) => C ? !N.isRead : !0);
45883
45883
  return {
45884
45884
  0: F,
45885
45885
  1: F.filter((N) => (N == null ? void 0 : N.type) === "INFO"),
@@ -45916,7 +45916,7 @@ const uz = {
45916
45916
  const $ = v.map(
45917
45917
  (B) => j.includes(B.id) ? { ...B, isRead: !0 } : B
45918
45918
  ), L = $.filter((B) => !B.isRead).length;
45919
- t({
45919
+ L === 0 && t({ type: He.SET_MODE, mode: !1 }), t({
45920
45920
  type: He.SUCCESS,
45921
45921
  data: Ja($)
45922
45922
  }), t({
@@ -45957,8 +45957,8 @@ const uz = {
45957
45957
  }, 400);
45958
45958
  }, M = () => {
45959
45959
  t({ type: He.LOADING, loading: !0 });
45960
- const F = !C ? (O || []).filter((N) => !N.isRead) : v || [];
45961
- t({ type: He.SET_MODE, mode: !C }), b(F), h(1), setTimeout(() => {
45960
+ const j = C ? v || [] : (O || []).filter((F) => !F.isRead);
45961
+ t({ type: He.SET_MODE, mode: !C }), b(j), h(1), setTimeout(() => {
45962
45962
  t({ type: He.LOADING, loading: !1 });
45963
45963
  }, 400);
45964
45964
  };
@@ -45984,7 +45984,7 @@ const uz = {
45984
45984
  },
45985
45985
  activeTab: w,
45986
45986
  loading: g,
45987
- tabData: E(O)[w],
45987
+ tabData: E()[w],
45988
45988
  data: O,
45989
45989
  mode: C,
45990
45990
  handleTabChange: A,