@3sc/common-component 0.0.464 → 0.0.466

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
@@ -44870,7 +44870,7 @@ function Lw({
44870
44870
  z != null && z.isMandatory && !(z != null && z.isResizable) || (ie.current = !0);
44871
44871
  },
44872
44872
  resizeEnd: (ae) => {
44873
- z != null && z.isMandatory && !(z != null && z.isResizable) || (ie.current = !1, sz({
44873
+ z != null && z.isMandatory && !(z != null && z.isResizable) || ae <= 20 || (ie.current = !1, sz({
44874
44874
  index: de,
44875
44875
  visibleGridColumns: p,
44876
44876
  width: ae,
@@ -45846,7 +45846,7 @@ const uz = {
45846
45846
  }, [O]);
45847
45847
  const R = Wt(async () => {
45848
45848
  var N, _, $;
45849
- if (!C.current)
45849
+ if (!(C.current || !e))
45850
45850
  try {
45851
45851
  t({ type: Xe.LOADING, loading: !0 }), t({ type: Xe.SUCCESS, data: [] });
45852
45852
  const U = await dz(e);
@@ -45887,7 +45887,7 @@ const uz = {
45887
45887
  }, [R]);
45888
45888
  const A = async (N, _) => {
45889
45889
  var $, U;
45890
- if (N) {
45890
+ if (!(!N || !e)) {
45891
45891
  f(N);
45892
45892
  try {
45893
45893
  const V = await fz({ baseUrl: e, id: N, snopId: _ });
@@ -45903,7 +45903,7 @@ const uz = {
45903
45903
  }
45904
45904
  }
45905
45905
  }, M = async (N, _) => {
45906
- if (N.length) {
45906
+ if (!(!N.length || !e)) {
45907
45907
  t({ type: Xe.LOADING, loading: !0 });
45908
45908
  try {
45909
45909
  if ((await My(e, N, _)).status === qo.OK) {
@@ -45925,23 +45925,25 @@ const uz = {
45925
45925
  }
45926
45926
  }
45927
45927
  }, j = async () => {
45928
- t({ type: Xe.LOADING, loading: !0 });
45929
- try {
45930
- const N = kV(O);
45931
- if ((await My(e, N, NW.MARK_ALL_READ)).status === qo.OK) {
45932
- const $ = O.map((U) => ({ ...U, isRead: !0 }));
45933
- t({
45934
- type: Xe.SUCCESS,
45935
- data: Ja($)
45936
- }), t({
45937
- type: Xe.MARK_ALL_AS_READ,
45938
- isMarkAllAsRead: { count: 0, boo: !1 }
45939
- }), setTimeout(() => {
45940
- t({ type: Xe.LOADING, loading: !1 });
45941
- }, 200);
45928
+ if (e) {
45929
+ t({ type: Xe.LOADING, loading: !0 });
45930
+ try {
45931
+ const N = kV(O);
45932
+ if ((await My(e, N, NW.MARK_ALL_READ)).status === qo.OK) {
45933
+ const $ = O.map((U) => ({ ...U, isRead: !0 }));
45934
+ t({
45935
+ type: Xe.SUCCESS,
45936
+ data: Ja($)
45937
+ }), t({
45938
+ type: Xe.MARK_ALL_AS_READ,
45939
+ isMarkAllAsRead: { count: 0, boo: !1 }
45940
+ }), setTimeout(() => {
45941
+ t({ type: Xe.LOADING, loading: !1 });
45942
+ }, 200);
45943
+ }
45944
+ } catch {
45945
+ t({ type: Xe.ERROR, error: Yr.SWR }), t({ type: Xe.LOADING, loading: !1 });
45942
45946
  }
45943
- } catch {
45944
- t({ type: Xe.ERROR, error: Yr.SWR }), t({ type: Xe.LOADING, loading: !1 });
45945
45947
  }
45946
45948
  }, L = (N, _) => {
45947
45949
  t({ type: Xe.LOADING, loading: !0 }), x(_), setTimeout(() => {