@sfperusacdev/sf-ui 0.2.2 → 0.2.3

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/sf-ui.js CHANGED
@@ -4687,14 +4687,8 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4687
4687
  try {
4688
4688
  let e = JSON.parse(n);
4689
4689
  if (q.current) return;
4690
- if (a == null && Array.isArray(e.grouping) && fe(e.grouping), e.expanded != null && (e.expanded === !0 && Array.isArray(e.grouping) && e.grouping.length > 0 ? me({}) : me(e.expanded)), e.sorting && ge(e.sorting), typeof e.globalFilter == "string" && ve(e.globalFilter), e.columnFilters && be(e.columnFilters), e.columnVisibility && Se(e.columnVisibility), e.columnOrder && G(e.columnOrder), e.columnAggregations && De(e.columnAggregations), e.pagination) {
4691
- let t = b ?? ir, n = Number(e.pagination.pageSize), r = t.includes(n) ? n : f;
4692
- ke({
4693
- pageIndex: Math.max(0, Number(e.pagination.pageIndex) || 0),
4694
- pageSize: r
4695
- });
4696
- }
4697
- } catch {} finally {
4690
+ a == null && Array.isArray(e.grouping) && fe(e.grouping), e.expanded != null && (e.expanded === !0 && Array.isArray(e.grouping) && e.grouping.length > 0 ? me({}) : me(e.expanded)), e.sorting && ge(e.sorting), typeof e.globalFilter == "string" && ve(e.globalFilter), e.columnFilters && be(e.columnFilters), e.columnVisibility && Se(e.columnVisibility), e.columnOrder && G(e.columnOrder), e.columnAggregations && De(e.columnAggregations);
4691
+ } finally {
4698
4692
  qe.current = !0;
4699
4693
  }
4700
4694
  })(), () => {
@@ -4721,8 +4715,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4721
4715
  columnFilters: ye,
4722
4716
  columnVisibility: xe,
4723
4717
  columnOrder: Te,
4724
- columnAggregations: Ee,
4725
- pagination: Oe
4718
+ columnAggregations: Ee
4726
4719
  };
4727
4720
  return window.clearTimeout(Je.current), Je.current = window.setTimeout(() => {
4728
4721
  K.setItem(_r(e), JSON.stringify(t)).catch(() => {});
@@ -4738,7 +4731,6 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4738
4731
  _e,
4739
4732
  a,
4740
4733
  e,
4741
- Oe,
4742
4734
  J,
4743
4735
  K,
4744
4736
  he
@@ -4787,7 +4779,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4787
4779
  G(t);
4788
4780
  },
4789
4781
  onPaginationChange: (e) => {
4790
- q.current = !0, ke(e);
4782
+ ke(e);
4791
4783
  },
4792
4784
  autoResetExpanded: !1,
4793
4785
  autoResetPageIndex: !1,