react-base-data-table 0.5.1 → 0.5.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/index.es.js CHANGED
@@ -1899,7 +1899,7 @@ function Vm({
1899
1899
  (be === void 0 ? O[B.id] !== R : O[B.fromArray][be] !== R) && await n(
1900
1900
  J,
1901
1901
  ie,
1902
- be ? { fromArrayIndex: be, headerId: B.id } : void 0
1902
+ be !== void 0 ? { fromArrayIndex: be, headerId: B.id } : void 0
1903
1903
  );
1904
1904
  }
1905
1905
  },
@@ -1913,7 +1913,7 @@ function Vm({
1913
1913
  return J.rowIndex === R.rowIndex && J.columnIndex === R.columnIndex && ((ie = J.fromArrayData) == null ? void 0 : ie.index) === ((ae = R.fromArrayData) == null ? void 0 : ae.index) && ((be = J.fromArrayData) == null ? void 0 : be.fromArray) === ((de = R.fromArrayData) == null ? void 0 : de.fromArray);
1914
1914
  }
1915
1915
  );
1916
- h(R), I || f([]);
1916
+ h(R), I || (f([]), g([]));
1917
1917
  },
1918
1918
  []
1919
1919
  ), D = ue(
@@ -2006,7 +2006,7 @@ function Vm({
2006
2006
  m,
2007
2007
  J
2008
2008
  );
2009
- I && xo(I, ie) || (h(ie), f(ae), g([]), Q(ie));
2009
+ I && xo(I, ie) || (h(ie), B.length !== ae.length && g([]), f(ae), Q(ie));
2010
2010
  },
2011
2011
  [b.length, e.length, e]
2012
2012
  ), Q = (R) => {
@@ -2390,7 +2390,8 @@ const Gm = ur((e) => {
2390
2390
  onMouseEnter: () => {
2391
2391
  },
2392
2392
  onContextMenu: (x) => {
2393
- x.preventDefault(), d(x, e.header.id), o({
2393
+ var S;
2394
+ x.preventDefault(), d(x, e.header.id), ((S = i == null ? void 0 : i.contextMenu) == null ? void 0 : S.showOnHeader) !== !1 && o({
2394
2395
  x: x.clientX,
2395
2396
  y: x.clientY,
2396
2397
  header: e.header
@@ -22513,6 +22514,7 @@ const UF = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAQAAAC0NkA6AA
22513
22514
  onMouseDown: Q,
22514
22515
  onMouseEnter: R,
22515
22516
  onContextMenu: (z) => {
22517
+ var re;
22516
22518
  l(
22517
22519
  {
22518
22520
  rowIndex: e.rowIndex,
@@ -22520,7 +22522,7 @@ const UF = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAQAAAC0NkA6AA
22520
22522
  fromArrayData: e.fromArrayData
22521
22523
  },
22522
22524
  z
22523
- ), E({
22525
+ ), ((re = C == null ? void 0 : C.contextMenu) == null ? void 0 : re.showOnCell) !== !1 && E({
22524
22526
  x: z.clientX,
22525
22527
  y: z.clientY,
22526
22528
  cellCoordinate: {