@fileverse-dev/fortune-react 1.0.11 → 1.0.13
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.
|
@@ -27,7 +27,7 @@ var Dialog = function Dialog(_a) {
|
|
|
27
27
|
var button = locale(context).button;
|
|
28
28
|
return /*#__PURE__*/React.createElement("div", {
|
|
29
29
|
className: "fortune-dialog",
|
|
30
|
-
style: __assign(__assign({}, containerStyle),
|
|
30
|
+
style: __assign(__assign({}, containerStyle), ["Data verification", "Split text to columns"].includes(title) ? {
|
|
31
31
|
maxWidth: "unset"
|
|
32
32
|
} : {})
|
|
33
33
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -55,7 +55,8 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
55
55
|
var onChange = _a.onChange,
|
|
56
56
|
onOp = _a.onOp,
|
|
57
57
|
originalData = _a.data,
|
|
58
|
-
|
|
58
|
+
isFlvReadOnly = _a.isFlvReadOnly,
|
|
59
|
+
props = __rest(_a, ["onChange", "onOp", "data", "isFlvReadOnly"]);
|
|
59
60
|
var globalCache = useRef({
|
|
60
61
|
undoList: [],
|
|
61
62
|
redoList: []
|
|
@@ -361,6 +362,7 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
361
362
|
}
|
|
362
363
|
draftCtx.lang = mergedSettings.lang;
|
|
363
364
|
draftCtx.allowEdit = mergedSettings.allowEdit;
|
|
365
|
+
draftCtx.isFlvReadOnly = isFlvReadOnly !== null && isFlvReadOnly !== void 0 ? isFlvReadOnly : false;
|
|
364
366
|
draftCtx.hooks = mergedSettings.hooks;
|
|
365
367
|
if (_.isEmpty(draftCtx.currentSheetId)) {
|
|
366
368
|
initSheetIndex(draftCtx);
|
|
@@ -36,7 +36,7 @@ var Dialog = function Dialog(_a) {
|
|
|
36
36
|
var button = (0, _fortuneCore.locale)(context).button;
|
|
37
37
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
38
38
|
className: "fortune-dialog",
|
|
39
|
-
style: __assign(__assign({}, containerStyle),
|
|
39
|
+
style: __assign(__assign({}, containerStyle), ["Data verification", "Split text to columns"].includes(title) ? {
|
|
40
40
|
maxWidth: "unset"
|
|
41
41
|
} : {})
|
|
42
42
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -64,7 +64,8 @@ var Workbook = /*#__PURE__*/_react.default.forwardRef(function (_a, ref) {
|
|
|
64
64
|
var onChange = _a.onChange,
|
|
65
65
|
onOp = _a.onOp,
|
|
66
66
|
originalData = _a.data,
|
|
67
|
-
|
|
67
|
+
isFlvReadOnly = _a.isFlvReadOnly,
|
|
68
|
+
props = __rest(_a, ["onChange", "onOp", "data", "isFlvReadOnly"]);
|
|
68
69
|
var globalCache = (0, _react.useRef)({
|
|
69
70
|
undoList: [],
|
|
70
71
|
redoList: []
|
|
@@ -370,6 +371,7 @@ var Workbook = /*#__PURE__*/_react.default.forwardRef(function (_a, ref) {
|
|
|
370
371
|
}
|
|
371
372
|
draftCtx.lang = mergedSettings.lang;
|
|
372
373
|
draftCtx.allowEdit = mergedSettings.allowEdit;
|
|
374
|
+
draftCtx.isFlvReadOnly = isFlvReadOnly !== null && isFlvReadOnly !== void 0 ? isFlvReadOnly : false;
|
|
373
375
|
draftCtx.hooks = mergedSettings.hooks;
|
|
374
376
|
if (_lodash.default.isEmpty(draftCtx.currentSheetId)) {
|
|
375
377
|
(0, _fortuneCore.initSheetIndex)(draftCtx);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"tsc": "tsc"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fileverse-dev/fortune-core": "1.0.
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.0.13",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-16",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|