@fileverse-dev/fortune-core 1.2.96-maitra-feb6-patch-1 → 1.2.96-scroll-1
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 +11 -0
- package/es/events/mouse.js +0 -4
- package/es/modules/cell.js +273 -280
- package/es/modules/formula.js +1 -15
- package/es/modules/inline-string.js +1 -0
- package/es/modules/toolbar.js +4 -0
- package/es/modules/validation.js +1 -1
- package/lib/events/keyboard.js +11 -0
- package/lib/events/mouse.js +0 -4
- package/lib/modules/cell.js +273 -280
- package/lib/modules/formula.js +1 -15
- package/lib/modules/inline-string.js +1 -0
- package/lib/modules/toolbar.js +4 -0
- package/lib/modules/validation.js +1 -1
- package/package.json +2 -2
|
@@ -301,6 +301,7 @@ function extendCssText(origin, cover, isLimit) {
|
|
|
301
301
|
}
|
|
302
302
|
function updateInlineStringFormat(ctx, attr, value, cellInput) {
|
|
303
303
|
var _a, _b, _c;
|
|
304
|
+
console.log("updateInlineStringFormat", attr, value);
|
|
304
305
|
var w = window.getSelection();
|
|
305
306
|
if (!w) return;
|
|
306
307
|
if (w.rangeCount === 0) return;
|
package/lib/modules/toolbar.js
CHANGED
|
@@ -50,6 +50,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
50
50
|
function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col_ed, canvas) {
|
|
51
51
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6;
|
|
52
52
|
var _7;
|
|
53
|
+
console.log("updateFormatCell", attr, foucsStatus, row_st, row_ed, col_st, col_ed);
|
|
53
54
|
if (_lodash.default.isNil(d) || _lodash.default.isNil(attr)) {
|
|
54
55
|
return;
|
|
55
56
|
}
|
|
@@ -237,6 +238,7 @@ function updateFormatCell(ctx, d, attr, foucsStatus, row_st, row_ed, col_st, col
|
|
|
237
238
|
}
|
|
238
239
|
}
|
|
239
240
|
function updateFormat(ctx, $input, d, attr, foucsStatus, canvas) {
|
|
241
|
+
console.log("updateFormat", attr, foucsStatus);
|
|
240
242
|
var allowEdit = (0, _utils.isAllowEdit)(ctx);
|
|
241
243
|
if (!allowEdit) return;
|
|
242
244
|
if (attr in _inlineString.inlineStyleAffectAttribute) {
|
|
@@ -270,6 +272,7 @@ function toggleAttr(ctx, cellInput, attr) {
|
|
|
270
272
|
updateFormat(ctx, cellInput, flowdata, attr, foucsStatus);
|
|
271
273
|
}
|
|
272
274
|
function setAttr(ctx, cellInput, attr, value, canvas) {
|
|
275
|
+
console.log("setAttr", attr, value);
|
|
273
276
|
var flowdata = (0, _context.getFlowdata)(ctx);
|
|
274
277
|
if (!flowdata) return;
|
|
275
278
|
updateFormat(ctx, cellInput, flowdata, attr, value, canvas);
|
|
@@ -997,6 +1000,7 @@ function handleFreeze(ctx, type) {
|
|
|
997
1000
|
}
|
|
998
1001
|
}
|
|
999
1002
|
function handleTextSize(ctx, cellInput, size, canvas) {
|
|
1003
|
+
console.log("handleTextSize", size);
|
|
1000
1004
|
setAttr(ctx, cellInput, "fs", size, canvas);
|
|
1001
1005
|
}
|
|
1002
1006
|
function handleSum(ctx, cellInput, fxInput, cache) {
|
|
@@ -42,7 +42,7 @@ function isRealNull(val) {
|
|
|
42
42
|
return _lodash.default.isNil(val) || val.toString().replace(/\s/g, "") === "";
|
|
43
43
|
}
|
|
44
44
|
function isHexValue(str) {
|
|
45
|
-
return /^0x[a-fA-F0-9]
|
|
45
|
+
return /^0x?[a-fA-F0-9]+$/.test(str);
|
|
46
46
|
}
|
|
47
47
|
function isRealNum(val) {
|
|
48
48
|
if (isHexValue(val === null || val === void 0 ? void 0 : val.toString())) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-core",
|
|
3
|
-
"version": "1.2.96-
|
|
3
|
+
"version": "1.2.96-scroll-1",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dev": "father-build --watch"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@fileverse-dev/formula-parser": "0.2.94
|
|
18
|
+
"@fileverse-dev/formula-parser": "0.2.94",
|
|
19
19
|
"dayjs": "^1.11.0",
|
|
20
20
|
"immer": "^9.0.12",
|
|
21
21
|
"lodash": "^4.17.21",
|