@fileverse-dev/dsheet 1.2.85 → 1.2.86-bold

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.
Files changed (2) hide show
  1. package/dist/index.es.js +10 -6
  2. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -100460,7 +100460,9 @@ function dO(e, t, r) {
100460
100460
  }
100461
100461
  }
100462
100462
  function gZ(e, t, r, i, n, a, l) {
100463
- var c, f, s, o, u = lr(e);
100463
+ var c, f, s, o;
100464
+ console.log("handleWithCtrlOrMetaKey", r);
100465
+ var u = lr(e);
100464
100466
  if (u) {
100465
100467
  if (r.shiftKey) {
100466
100468
  if (e.luckysheet_shiftpositon = ce.cloneDeep((c = e.luckysheet_select_save) === null || c === void 0 ? void 0 : c[e.luckysheet_select_save.length - 1]), e.luckysheet_shiftkeydown = !0, ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(r.key))
@@ -100571,7 +100573,7 @@ function wZ(e, t, r, i, n, a, l, c) {
100571
100573
  return u5e(this, void 0, void 0, function() {
100572
100574
  var u, v, m, h, p, d, b, g, w, b, g, w;
100573
100575
  return v5e(this, function(x) {
100574
- if (i.shiftKey && i.code === "Space")
100576
+ if (console.log("handleGlobalKeyDown inside", i), i.shiftKey && i.code === "Space")
100575
100577
  return i.stopImmediatePropagation(), i.stopPropagation(), i.preventDefault(), [2];
100576
100578
  if ((i.ctrlKey || i.metaKey && i.shiftKey) && i.code === "KeyE" ? Ly(e, "center") : (i.ctrlKey || i.metaKey && i.shiftKey) && i.code === "KeyL" ? Ly(e, "left") : (i.ctrlKey || i.metaKey && i.shiftKey) && i.code === "KeyR" && Ly(e, "right"), (i.metaKey || i.ctrlKey) && i.code === "KeyK" && Bk(e), (i.metaKey || i.ctrlKey) && !i.shiftKey && i.code === "Semicolon" && lG(e), (i.metaKey || i.ctrlKey) && i.shiftKey && i.code === "Semicolon" && sG(e), (i.metaKey || i.ctrlKey) && i.code === "KeyR" && nG(e), (i.metaKey || i.ctrlKey) && i.code === "KeyD" && iG(e), e.luckysheet_select_status = !1, u = i.keyCode, v = i.key, !ce.isEmpty(e.contextMenu) || e.filterContextMenu)
100577
100579
  return [2];
@@ -100593,7 +100595,7 @@ function wZ(e, t, r, i, n, a, l, c) {
100593
100595
  else if (v === "Escape" && e.luckysheetCellUpdate.length > 0)
100594
100596
  Ls(e), Wl(e, "down", 0, "rangeOfSelect"), i.preventDefault();
100595
100597
  else {
100596
- if (i.ctrlKey || i.metaKey)
100598
+ if (console.log("kstr", v), i.ctrlKey || i.metaKey)
100597
100599
  return gZ(e, n, i, t, r, a, l), [2];
100598
100600
  if (i.shiftKey && (v === "ArrowUp" || v === "ArrowDown" || v === "ArrowLeft" || v === "ArrowRight"))
100599
100601
  m5e(e, i);
@@ -185611,7 +185613,9 @@ var eEt = function(t) {
185611
185613
  });
185612
185614
  }, [g.currentSheetId, g.luckysheetfile.length, a, L.defaultRowHeight, L.defaultColWidth, L.column, L.row, L.defaultFontSize, L.devicePixelRatio, L.lang, L.allowEdit, L.hooks, L.generateSheetId, j, S, L.rowHeaderWidth, L.columnHeaderHeight, L.addRows, L.currency]);
185613
185615
  var _ = navigator.platform.toUpperCase().includes("MAC"), D = !1, F, E = !1, I, W = xr(function(G) {
185614
- var K, U, H = t.current, oe = H.getSelection, ve = H.getSheet, ke = H.setSelection, de = _ && G.ctrlKey && G.altKey, fe = !_ && G.altKey;
185616
+ var K, U;
185617
+ console.log("onKeyDown", G);
185618
+ var H = t.current, oe = H.getSelection, ve = H.getSheet, ke = H.setSelection, de = _ && G.ctrlKey && G.altKey, fe = !_ && G.altKey;
185615
185619
  if ((de || fe) && G.code === "KeyI") {
185616
185620
  D = !0, clearTimeout(F), F = setTimeout(function() {
185617
185621
  D = !1;
@@ -185706,7 +185710,7 @@ var eEt = function(t) {
185706
185710
  return;
185707
185711
  }
185708
185712
  j(function(at) {
185709
- wZ(at, s.current, o.current, qe, f.current, N, P, u.current.getContext("2d"));
185713
+ console.log("handleGlobalKeyDown"), wZ(at, s.current, o.current, qe, f.current, N, P, u.current.getContext("2d"));
185710
185714
  });
185711
185715
  }, [P, N, j]), z = xr(function(G) {
185712
185716
  var K, U = !0;
@@ -186778,7 +186782,7 @@ const EEt = (e) => {
186778
186782
  I
186779
186783
  );
186780
186784
  }
186781
- gW(B.currentSheetId, L + 1, S), (x = e.current) == null || x.calculateSubSheetFormula(
186785
+ gW(B.currentSheetId, L, S), (x = e.current) == null || x.calculateSubSheetFormula(
186782
186786
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
186783
186787
  // @ts-expect-error
186784
186788
  (w = (g = e.current) == null ? void 0 : g.getSheet()) == null ? void 0 : w.id
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "1.2.85",
5
+ "version": "1.2.86-bold",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@fileverse-dev/dsheets-templates": "^0.0.29",
37
37
  "@fileverse-dev/formulajs": "4.4.46",
38
- "@fileverse-dev/fortune-react": "1.2.90",
38
+ "@fileverse-dev/fortune-react": "1.2.90-bold",
39
39
  "@fileverse/ui": "^4.1.7-patch-40",
40
40
  "classnames": "^2.5.1",
41
41
  "exceljs": "^4.4.0",