@leankylin-sheet/core 5.2.65 → 5.2.67
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/dist/index.esm.js +8 -0
- package/dist/index.js +8 -0
- package/dist/settings.d.ts +2 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -40062,6 +40062,13 @@ function setVUpdateStr(cell, vupdateStr, d, r, c, vupdate) {
|
|
|
40062
40062
|
t: "s"
|
|
40063
40063
|
};
|
|
40064
40064
|
cell.v = vupdateStr;
|
|
40065
|
+
} else if (vupdateStr !== vupdateStr.trim()) {
|
|
40066
|
+
cell.m = vupdateStr;
|
|
40067
|
+
cell.ct = {
|
|
40068
|
+
fa: "@",
|
|
40069
|
+
t: "s"
|
|
40070
|
+
};
|
|
40071
|
+
cell.v = vupdateStr;
|
|
40065
40072
|
} else if (vupdateStr.toUpperCase() === "TRUE" && (_.isNil((_cell$ct = cell.ct) === null || _cell$ct === void 0 ? void 0 : _cell$ct.fa) || ((_cell$ct2 = cell.ct) === null || _cell$ct2 === void 0 ? void 0 : _cell$ct2.fa) !== "@")) {
|
|
40066
40073
|
cell.m = "TRUE";
|
|
40067
40074
|
cell.ct = {
|
|
@@ -57279,6 +57286,7 @@ var defaultSettings = {
|
|
|
57279
57286
|
config: {},
|
|
57280
57287
|
devicePixelRatio: 0,
|
|
57281
57288
|
allowEdit: true,
|
|
57289
|
+
disabledMoveSheet: false,
|
|
57282
57290
|
lang: null,
|
|
57283
57291
|
forceCalculation: false,
|
|
57284
57292
|
rowHeaderWidth: 46,
|
package/dist/index.js
CHANGED
|
@@ -40072,6 +40072,13 @@ function setVUpdateStr(cell, vupdateStr, d, r, c, vupdate) {
|
|
|
40072
40072
|
t: "s"
|
|
40073
40073
|
};
|
|
40074
40074
|
cell.v = vupdateStr;
|
|
40075
|
+
} else if (vupdateStr !== vupdateStr.trim()) {
|
|
40076
|
+
cell.m = vupdateStr;
|
|
40077
|
+
cell.ct = {
|
|
40078
|
+
fa: "@",
|
|
40079
|
+
t: "s"
|
|
40080
|
+
};
|
|
40081
|
+
cell.v = vupdateStr;
|
|
40075
40082
|
} else if (vupdateStr.toUpperCase() === "TRUE" && (___default['default'].isNil((_cell$ct = cell.ct) === null || _cell$ct === void 0 ? void 0 : _cell$ct.fa) || ((_cell$ct2 = cell.ct) === null || _cell$ct2 === void 0 ? void 0 : _cell$ct2.fa) !== "@")) {
|
|
40076
40083
|
cell.m = "TRUE";
|
|
40077
40084
|
cell.ct = {
|
|
@@ -57289,6 +57296,7 @@ var defaultSettings = {
|
|
|
57289
57296
|
config: {},
|
|
57290
57297
|
devicePixelRatio: 0,
|
|
57291
57298
|
allowEdit: true,
|
|
57299
|
+
disabledMoveSheet: false,
|
|
57292
57300
|
lang: null,
|
|
57293
57301
|
forceCalculation: false,
|
|
57294
57302
|
rowHeaderWidth: 46,
|
package/dist/settings.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type Hooks = {
|
|
|
9
9
|
direction?: "lefttop" | "rightbottom";
|
|
10
10
|
id: string;
|
|
11
11
|
}) => void;
|
|
12
|
+
onMoveSheet?: (draggingId: string, beforeSheetId?: string) => void;
|
|
12
13
|
onCopySheet?: (oldSheetId: string, newSheetId: string) => void;
|
|
13
14
|
onCopySheetBefore?: (oldSheetId: any, sheetData: any) => any;
|
|
14
15
|
onCopySheetCheck?: (oldSheetId: string, sheet: Sheet) => boolean | Promise<boolean>;
|
|
@@ -118,6 +119,7 @@ export type Settings = {
|
|
|
118
119
|
row?: number;
|
|
119
120
|
addRows?: number;
|
|
120
121
|
allowEdit?: boolean;
|
|
122
|
+
disabledMoveSheet?: boolean;
|
|
121
123
|
showToolbar?: boolean;
|
|
122
124
|
showFormulaBar?: boolean;
|
|
123
125
|
showSheetTabs?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/core",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.67",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"build": "father-build"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@leankylin-sheet/formula-parser": "5.2.
|
|
16
|
+
"@leankylin-sheet/formula-parser": "5.2.67",
|
|
17
17
|
"dayjs": "^1.11.0",
|
|
18
18
|
"immer": "^9.0.12",
|
|
19
19
|
"lodash": "^4.17.21",
|