@fileverse-dev/fortune-core 1.3.10-yjs-10 → 1.3.11-mixed
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/events/keyboard.js +60 -37
- package/es/events/mouse.js +1 -0
- package/es/events/paste.js +47 -28
- package/es/locale/en.d.ts +3 -0
- package/es/locale/en.js +3 -0
- package/es/locale/es.d.ts +3 -0
- package/es/locale/es.js +3 -0
- package/es/locale/hi.d.ts +3 -0
- package/es/locale/hi.js +3 -0
- package/es/locale/index.d.ts +3 -0
- package/es/locale/zh.d.ts +3 -0
- package/es/locale/zh.js +3 -0
- package/es/locale/zh_tw.d.ts +3 -0
- package/es/locale/zh_tw.js +3 -0
- package/es/modules/ConditionFormat.js +26 -0
- package/es/modules/dropCell.js +0 -1
- package/es/modules/format.js +12 -7
- package/es/modules/selection.js +0 -28
- package/es/modules/validation.js +6 -3
- package/es/types.d.ts +2 -0
- package/lib/events/keyboard.js +60 -37
- package/lib/events/mouse.js +1 -0
- package/lib/events/paste.js +45 -26
- package/lib/locale/en.d.ts +3 -0
- package/lib/locale/en.js +3 -0
- package/lib/locale/es.d.ts +3 -0
- package/lib/locale/es.js +3 -0
- package/lib/locale/hi.d.ts +3 -0
- package/lib/locale/hi.js +3 -0
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/zh.d.ts +3 -0
- package/lib/locale/zh.js +3 -0
- package/lib/locale/zh_tw.d.ts +3 -0
- package/lib/locale/zh_tw.js +3 -0
- package/lib/modules/ConditionFormat.js +26 -0
- package/lib/modules/dropCell.js +0 -1
- package/lib/modules/format.js +12 -7
- package/lib/modules/selection.js +0 -28
- package/lib/modules/validation.js +6 -3
- package/lib/types.d.ts +2 -0
- package/package.json +1 -1
package/lib/modules/selection.js
CHANGED
|
@@ -1760,13 +1760,6 @@ function fillRightData(ctx) {
|
|
|
1760
1760
|
if (dataVerification != null) {
|
|
1761
1761
|
var dv = dataVerification[srcKey];
|
|
1762
1762
|
if (dv != null) {
|
|
1763
|
-
console.log("[fillRightData] dataVerification copy from", {
|
|
1764
|
-
row: srcRow,
|
|
1765
|
-
col: srcCol
|
|
1766
|
-
}, "→", {
|
|
1767
|
-
row: r1,
|
|
1768
|
-
col: c1
|
|
1769
|
-
}, dv);
|
|
1770
1763
|
file.dataVerification = __assign(__assign({}, file.dataVerification || {}), (_a = {}, _a[tgtKey] = _lodash.default.cloneDeep(dv), _a));
|
|
1771
1764
|
}
|
|
1772
1765
|
}
|
|
@@ -1821,13 +1814,6 @@ function fillRightData(ctx) {
|
|
|
1821
1814
|
if (dataVerification != null) {
|
|
1822
1815
|
var dv = dataVerification[srcKey];
|
|
1823
1816
|
if (dv != null) {
|
|
1824
|
-
console.log("[fillRightData] dataVerification copy from", {
|
|
1825
|
-
row: r,
|
|
1826
|
-
col: c1
|
|
1827
|
-
}, "→", {
|
|
1828
|
-
row: r,
|
|
1829
|
-
col: c
|
|
1830
|
-
}, dv);
|
|
1831
1817
|
file.dataVerification = __assign(__assign({}, file.dataVerification || {}), (_c = {}, _c[tgtKey] = _lodash.default.cloneDeep(dv), _c));
|
|
1832
1818
|
}
|
|
1833
1819
|
}
|
|
@@ -1928,13 +1914,6 @@ function fillDownData(ctx) {
|
|
|
1928
1914
|
if (dataVerification != null) {
|
|
1929
1915
|
var dv = dataVerification[srcKey];
|
|
1930
1916
|
if (dv != null) {
|
|
1931
|
-
console.log("[fillDownData] dataVerification copy from", {
|
|
1932
|
-
row: srcRow,
|
|
1933
|
-
col: srcCol
|
|
1934
|
-
}, "→", {
|
|
1935
|
-
row: r1,
|
|
1936
|
-
col: c1
|
|
1937
|
-
}, dv);
|
|
1938
1917
|
file.dataVerification = __assign(__assign({}, file.dataVerification || {}), (_a = {}, _a[tgtKey] = _lodash.default.cloneDeep(dv), _a));
|
|
1939
1918
|
}
|
|
1940
1919
|
}
|
|
@@ -1988,13 +1967,6 @@ function fillDownData(ctx) {
|
|
|
1988
1967
|
if (dataVerification != null) {
|
|
1989
1968
|
var dv = dataVerification[srcKey];
|
|
1990
1969
|
if (dv != null) {
|
|
1991
|
-
console.log("[fillDownData] dataVerification copy from", {
|
|
1992
|
-
row: r1,
|
|
1993
|
-
col: c
|
|
1994
|
-
}, "→", {
|
|
1995
|
-
row: r,
|
|
1996
|
-
col: c
|
|
1997
|
-
}, dv);
|
|
1998
1970
|
file.dataVerification = __assign(__assign({}, file.dataVerification || {}), (_c = {}, _c[tgtKey] = _lodash.default.cloneDeep(dv), _c));
|
|
1999
1971
|
}
|
|
2000
1972
|
}
|
|
@@ -84,6 +84,7 @@ var MONTH_NAME_MAP = {
|
|
|
84
84
|
};
|
|
85
85
|
var MONTH_NAMES_RE = "january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|jun|jul|aug|sep|oct|nov|dec";
|
|
86
86
|
var MONTH_ABBR_RE = "jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec";
|
|
87
|
+
var MONTH_ABBR_SET = new Set(MONTH_ABBR_RE.split("|"));
|
|
87
88
|
function isValidDateParts(year, month, day) {
|
|
88
89
|
if (year < 1900) return false;
|
|
89
90
|
if (month < 1 || month > 12) return false;
|
|
@@ -298,6 +299,7 @@ function detectDateFormat(str) {
|
|
|
298
299
|
var d = +m[2];
|
|
299
300
|
var y = +m[3];
|
|
300
301
|
if (mo && isValidDateParts(y, mo, d)) {
|
|
302
|
+
var isAbbr = MONTH_ABBR_SET.has(m[1].toLowerCase());
|
|
301
303
|
return {
|
|
302
304
|
year: y,
|
|
303
305
|
month: mo,
|
|
@@ -305,7 +307,7 @@ function detectDateFormat(str) {
|
|
|
305
307
|
hours: 0,
|
|
306
308
|
minutes: 0,
|
|
307
309
|
seconds: 0,
|
|
308
|
-
formatType: "named"
|
|
310
|
+
formatType: isAbbr ? "named-mdy-abbr" : "named-mdy-full"
|
|
309
311
|
};
|
|
310
312
|
}
|
|
311
313
|
}
|
|
@@ -315,6 +317,7 @@ function detectDateFormat(str) {
|
|
|
315
317
|
var mo = MONTH_NAME_MAP[m[2].toLowerCase()];
|
|
316
318
|
var y = +m[3];
|
|
317
319
|
if (mo && isValidDateParts(y, mo, d)) {
|
|
320
|
+
var isAbbr = MONTH_ABBR_SET.has(m[2].toLowerCase());
|
|
318
321
|
return {
|
|
319
322
|
year: y,
|
|
320
323
|
month: mo,
|
|
@@ -322,7 +325,7 @@ function detectDateFormat(str) {
|
|
|
322
325
|
hours: 0,
|
|
323
326
|
minutes: 0,
|
|
324
327
|
seconds: 0,
|
|
325
|
-
formatType: "named"
|
|
328
|
+
formatType: isAbbr ? "named-dmy-abbr" : "named-dmy-full"
|
|
326
329
|
};
|
|
327
330
|
}
|
|
328
331
|
}
|
|
@@ -339,7 +342,7 @@ function detectDateFormat(str) {
|
|
|
339
342
|
hours: 0,
|
|
340
343
|
minutes: 0,
|
|
341
344
|
seconds: 0,
|
|
342
|
-
formatType: "named"
|
|
345
|
+
formatType: "named-abbr-dashes"
|
|
343
346
|
};
|
|
344
347
|
}
|
|
345
348
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -328,6 +328,8 @@ export type GlobalCache = {
|
|
|
328
328
|
verticalScrollLock?: boolean;
|
|
329
329
|
horizontalScrollLock?: boolean;
|
|
330
330
|
overwriteCell?: boolean;
|
|
331
|
+
overwriteCellFirstChar?: string;
|
|
332
|
+
enteredEditByTyping?: boolean;
|
|
331
333
|
ignoreWriteCell?: boolean;
|
|
332
334
|
doNotFocus?: boolean;
|
|
333
335
|
doNotUpdateCell?: boolean;
|