@fileverse-dev/fortune-core 1.2.56-patch-5 → 1.2.56-patch-7
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/es/modules/dropCell.js +21 -0
- package/es/modules/formula.js +2 -1
- package/lib/modules/dropCell.js +21 -0
- package/lib/modules/formula.js +2 -1
- package/package.json +1 -1
package/es/modules/dropCell.js
CHANGED
|
@@ -1910,6 +1910,13 @@ export function updateDropCell(ctx) {
|
|
|
1910
1910
|
var v = formula.execfunction(ctx, f, j, i);
|
|
1911
1911
|
formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
|
|
1912
1912
|
cell.v = v[1], cell.f = v[2];
|
|
1913
|
+
var afterUpdateCell = ctx.hooks.afterUpdateCell;
|
|
1914
|
+
if (afterUpdateCell) {
|
|
1915
|
+
afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
|
|
1916
|
+
v: v[1] instanceof Promise ? v[1] : cell.v,
|
|
1917
|
+
m: v[1] instanceof Promise ? "[object Promise]" : v[1]
|
|
1918
|
+
}));
|
|
1919
|
+
}
|
|
1913
1920
|
if (cell.spl != null) {
|
|
1914
1921
|
cell.spl = v[3].data;
|
|
1915
1922
|
} else if (cell.v != null) {
|
|
@@ -1990,6 +1997,13 @@ export function updateDropCell(ctx) {
|
|
|
1990
1997
|
var v = formula.execfunction(ctx, f, i, j);
|
|
1991
1998
|
formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
|
|
1992
1999
|
cell.v = v[1], cell.f = v[2];
|
|
2000
|
+
var afterUpdateCell = ctx.hooks.afterUpdateCell;
|
|
2001
|
+
if (afterUpdateCell) {
|
|
2002
|
+
afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
|
|
2003
|
+
v: v[1] instanceof Promise ? v[1] : cell.v,
|
|
2004
|
+
m: v[1] instanceof Promise ? "[object Promise]" : v[1]
|
|
2005
|
+
}));
|
|
2006
|
+
}
|
|
1993
2007
|
if (cell.spl != null) {
|
|
1994
2008
|
cell.spl = v[3].data;
|
|
1995
2009
|
} else if (cell.v != null) {
|
|
@@ -2063,6 +2077,13 @@ export function updateDropCell(ctx) {
|
|
|
2063
2077
|
var v = formula.execfunction(ctx, f, i, j);
|
|
2064
2078
|
formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
|
|
2065
2079
|
cell.v = v[1], cell.f = v[2];
|
|
2080
|
+
var afterUpdateCell = ctx.hooks.afterUpdateCell;
|
|
2081
|
+
if (afterUpdateCell) {
|
|
2082
|
+
afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
|
|
2083
|
+
v: v[1] instanceof Promise ? v[1] : cell.v,
|
|
2084
|
+
m: v[1] instanceof Promise ? "[object Promise]" : v[1]
|
|
2085
|
+
}));
|
|
2086
|
+
}
|
|
2066
2087
|
if (cell.spl != null) {
|
|
2067
2088
|
cell.spl = v[3].data;
|
|
2068
2089
|
} else if (cell.v != null) {
|
package/es/modules/formula.js
CHANGED
|
@@ -2318,6 +2318,7 @@ export function functionCopy(ctx, txt, mode, step) {
|
|
|
2318
2318
|
dquote: 0
|
|
2319
2319
|
};
|
|
2320
2320
|
while (i < funcstack.length) {
|
|
2321
|
+
console.log(funcstack);
|
|
2321
2322
|
var s = funcstack[i];
|
|
2322
2323
|
if (s === "(" && matchConfig.dquote === 0) {
|
|
2323
2324
|
matchConfig.bracket += 1;
|
|
@@ -2385,7 +2386,7 @@ export function functionCopy(ctx, txt, mode, step) {
|
|
|
2385
2386
|
str += s;
|
|
2386
2387
|
}
|
|
2387
2388
|
if (i === funcstack.length - 1) {
|
|
2388
|
-
if (iscelldata(_.trim(str))) {
|
|
2389
|
+
if (iscelldata(_.trim(str)) && !_.trim(str).includes("$")) {
|
|
2389
2390
|
if (mode === "down") {
|
|
2390
2391
|
function_str += downparam(_.trim(str), step);
|
|
2391
2392
|
} else if (mode === "up") {
|
package/lib/modules/dropCell.js
CHANGED
|
@@ -1926,6 +1926,13 @@ function updateDropCell(ctx) {
|
|
|
1926
1926
|
var v = formula.execfunction(ctx, f, j, i);
|
|
1927
1927
|
formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
|
|
1928
1928
|
cell.v = v[1], cell.f = v[2];
|
|
1929
|
+
var afterUpdateCell = ctx.hooks.afterUpdateCell;
|
|
1930
|
+
if (afterUpdateCell) {
|
|
1931
|
+
afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
|
|
1932
|
+
v: v[1] instanceof Promise ? v[1] : cell.v,
|
|
1933
|
+
m: v[1] instanceof Promise ? "[object Promise]" : v[1]
|
|
1934
|
+
}));
|
|
1935
|
+
}
|
|
1929
1936
|
if (cell.spl != null) {
|
|
1930
1937
|
cell.spl = v[3].data;
|
|
1931
1938
|
} else if (cell.v != null) {
|
|
@@ -2006,6 +2013,13 @@ function updateDropCell(ctx) {
|
|
|
2006
2013
|
var v = formula.execfunction(ctx, f, i, j);
|
|
2007
2014
|
formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
|
|
2008
2015
|
cell.v = v[1], cell.f = v[2];
|
|
2016
|
+
var afterUpdateCell = ctx.hooks.afterUpdateCell;
|
|
2017
|
+
if (afterUpdateCell) {
|
|
2018
|
+
afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
|
|
2019
|
+
v: v[1] instanceof Promise ? v[1] : cell.v,
|
|
2020
|
+
m: v[1] instanceof Promise ? "[object Promise]" : v[1]
|
|
2021
|
+
}));
|
|
2022
|
+
}
|
|
2009
2023
|
if (cell.spl != null) {
|
|
2010
2024
|
cell.spl = v[3].data;
|
|
2011
2025
|
} else if (cell.v != null) {
|
|
@@ -2079,6 +2093,13 @@ function updateDropCell(ctx) {
|
|
|
2079
2093
|
var v = formula.execfunction(ctx, f, i, j);
|
|
2080
2094
|
formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
|
|
2081
2095
|
cell.v = v[1], cell.f = v[2];
|
|
2096
|
+
var afterUpdateCell = ctx.hooks.afterUpdateCell;
|
|
2097
|
+
if (afterUpdateCell) {
|
|
2098
|
+
afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
|
|
2099
|
+
v: v[1] instanceof Promise ? v[1] : cell.v,
|
|
2100
|
+
m: v[1] instanceof Promise ? "[object Promise]" : v[1]
|
|
2101
|
+
}));
|
|
2102
|
+
}
|
|
2082
2103
|
if (cell.spl != null) {
|
|
2083
2104
|
cell.spl = v[3].data;
|
|
2084
2105
|
} else if (cell.v != null) {
|
package/lib/modules/formula.js
CHANGED
|
@@ -2348,6 +2348,7 @@ function functionCopy(ctx, txt, mode, step) {
|
|
|
2348
2348
|
dquote: 0
|
|
2349
2349
|
};
|
|
2350
2350
|
while (i < funcstack.length) {
|
|
2351
|
+
console.log(funcstack);
|
|
2351
2352
|
var s = funcstack[i];
|
|
2352
2353
|
if (s === "(" && matchConfig.dquote === 0) {
|
|
2353
2354
|
matchConfig.bracket += 1;
|
|
@@ -2415,7 +2416,7 @@ function functionCopy(ctx, txt, mode, step) {
|
|
|
2415
2416
|
str += s;
|
|
2416
2417
|
}
|
|
2417
2418
|
if (i === funcstack.length - 1) {
|
|
2418
|
-
if (iscelldata(_lodash.default.trim(str))) {
|
|
2419
|
+
if (iscelldata(_lodash.default.trim(str)) && !_lodash.default.trim(str).includes("$")) {
|
|
2419
2420
|
if (mode === "down") {
|
|
2420
2421
|
function_str += downparam(_lodash.default.trim(str), step);
|
|
2421
2422
|
} else if (mode === "up") {
|