@fileverse-dev/dsheet 1.2.62-patch-1 → 1.2.62-patch-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.
Files changed (2) hide show
  1. package/dist/index.es.js +5 -7
  2. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -88261,7 +88261,6 @@ function lc(e, t, r, i) {
88261
88261
  squote: 0,
88262
88262
  dquote: 0
88263
88263
  }; a < n.length; ) {
88264
- console.log(n);
88265
88264
  var s = n[a];
88266
88265
  if (s === "(" && f.dquote === 0)
88267
88266
  f.bracket += 1, l.length > 0 ? c += "".concat(l, "(") : c += "(", l = "";
@@ -96101,9 +96100,9 @@ function xL(e) {
96101
96100
  var B = L[M - R];
96102
96101
  if ((B == null ? void 0 : B.f) != null) {
96103
96102
  var G = "=".concat(lc(e, B.f, "right", M - R + 1)), U = Hl(e, G, C, M);
96104
- Hf(e, M, C, U[1], void 0, f), B.v = U[1], B.f = U[2];
96103
+ Hf(e, M, C, U[1], void 0, f), B.v = U[1], B.f = U[2], console.log(M, C);
96105
96104
  var K = e.hooks.afterUpdateCell;
96106
- if (K && K(M, C, null, Rf(Rf({}, B), {
96105
+ if (K && K(C, M, null, Rf(Rf({}, B), {
96107
96106
  v: U[1] instanceof Promise ? U[1] : B.v,
96108
96107
  m: U[1] instanceof Promise ? "[object Promise]" : U[1]
96109
96108
  })), B.spl != null)
@@ -184912,6 +184911,7 @@ const q_t = (e) => {
184912
184911
  f && f < l && ((b = t.current) == null || b.setRowHeight(c));
184913
184912
  }, Q_t = async (e) => {
184914
184913
  var f, s, o, u, v, m, h;
184914
+ console.log("afterUpdateCell", e);
184915
184915
  const { newValue: t, sheetEditorRef: r } = e;
184916
184916
  if (j_t(t))
184917
184917
  return;
@@ -201469,14 +201469,12 @@ const OTt = (e) => {
201469
201469
  name: T.ff ?? void 0,
201470
201470
  color: T.fc ? { rgb: T.fc.replace("#", "") } : void 0
201471
201471
  };
201472
- const O = { 0: "left", 1: "center", 2: "right" }, N = { 0: "top", 1: "center", 2: "bottom" };
201472
+ const O = { 0: "center", 1: "left", 2: "right" }, N = { 0: "center", 1: "top", 2: "bottom" };
201473
201473
  A.s.alignment = {
201474
201474
  ...A.s.alignment || {},
201475
- horizontal: T.ht !== void 0 ? O[T.ht] : void 0,
201476
- vertical: T.vt !== void 0 ? N[T.vt] : void 0,
201477
201475
  wrapText: T.tb === "1" || T.tb === "2" ? !0 : void 0,
201478
201476
  textRotation: T.tr !== void 0 ? T.tr : void 0
201479
- }, T.tb !== void 0 && (A.s.alignment = A.s.alignment || {}, T.tb === "1" ? A.s.alignment.wrapText = !0 : T.tb === "2" && (A.s.alignment.shrinkToFit = !0)), m[F] = A;
201477
+ }, A.s.alignment.horizontal = O[T.ht] || void 0, A.s.alignment.vertical = N[T.vt] || void 0, T.tb !== void 0 && (A.s.alignment = A.s.alignment || {}, T.tb === "1" ? A.s.alignment.wrapText = !0 : T.tb === "2" && (A.s.alignment.shrinkToFit = !0)), m[F] = A;
201480
201478
  });
201481
201479
  const h = o.name.length > 30 ? o.name.slice(0, 30) : o.name;
201482
201480
  _b.utils.book_append_sheet(f, m, h);
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.62-patch-1",
5
+ "version": "1.2.62-patch-3",
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.28",
37
37
  "@fileverse-dev/formulajs": "^4.4.32",
38
- "@fileverse-dev/fortune-react": "1.2.56-patch-7",
38
+ "@fileverse-dev/fortune-react": "1.2.56-patch-9",
39
39
  "@fileverse/ui": "^4.1.7-patch-40",
40
40
  "classnames": "^2.5.1",
41
41
  "exceljs": "^4.4.0",