@fileverse-dev/fortune-react 1.2.64-patch-7 → 1.2.64-patch-8
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.
|
@@ -254,7 +254,7 @@ var ConditionRules = function ConditionRules(_a) {
|
|
|
254
254
|
}, matchedConditionFormatKey.map(function (key) {
|
|
255
255
|
var _a, _b;
|
|
256
256
|
return /*#__PURE__*/React.createElement("div", {
|
|
257
|
-
className: "group flex items-center border-b border-gray-200
|
|
257
|
+
className: "group flex items-center border-b border-gray-200 condition-list-parent",
|
|
258
258
|
key: key
|
|
259
259
|
}, /*#__PURE__*/React.createElement("div", {
|
|
260
260
|
className: "condition-list-pill",
|
|
@@ -298,9 +298,8 @@ var ConditionRules = function ConditionRules(_a) {
|
|
|
298
298
|
setContext(function (ctx) {
|
|
299
299
|
var index = getSheetIndex(ctx, ctx.currentSheetId);
|
|
300
300
|
var ruleArr = ctx.luckysheetfile[index].luckysheet_conditionformat_save || [];
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}), 1);
|
|
301
|
+
console.log(matchedConditionFormatKey, ruleArr, allConditionFormats);
|
|
302
|
+
ruleArr.splice(Number(key), 1);
|
|
304
303
|
ctx.luckysheetfile[index].luckysheet_conditionformat_save = ruleArr;
|
|
305
304
|
return ctx;
|
|
306
305
|
});
|
|
@@ -683,7 +683,18 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
683
683
|
}
|
|
684
684
|
return /*#__PURE__*/React.createElement(WorkbookContext.Provider, {
|
|
685
685
|
value: providerValue
|
|
686
|
-
}, /*#__PURE__*/React.createElement(
|
|
686
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
687
|
+
id: "placeholder-conditional-format",
|
|
688
|
+
style: {
|
|
689
|
+
width: "500px",
|
|
690
|
+
height: "500px",
|
|
691
|
+
position: "fixed",
|
|
692
|
+
zIndex: "1000",
|
|
693
|
+
backgroundColor: "white",
|
|
694
|
+
padding: "12px",
|
|
695
|
+
top: "100px"
|
|
696
|
+
}
|
|
697
|
+
}), /*#__PURE__*/React.createElement(ModalProvider, null, /*#__PURE__*/React.createElement("div", {
|
|
687
698
|
className: "fortune-container",
|
|
688
699
|
ref: workbookContainer,
|
|
689
700
|
onKeyDown: onKeyDown
|
|
@@ -262,7 +262,7 @@ var ConditionRules = function ConditionRules(_a) {
|
|
|
262
262
|
}, matchedConditionFormatKey.map(function (key) {
|
|
263
263
|
var _a, _b;
|
|
264
264
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
265
|
-
className: "group flex items-center border-b border-gray-200
|
|
265
|
+
className: "group flex items-center border-b border-gray-200 condition-list-parent",
|
|
266
266
|
key: key
|
|
267
267
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
268
268
|
className: "condition-list-pill",
|
|
@@ -306,9 +306,8 @@ var ConditionRules = function ConditionRules(_a) {
|
|
|
306
306
|
setContext(function (ctx) {
|
|
307
307
|
var index = (0, _fortuneCore.getSheetIndex)(ctx, ctx.currentSheetId);
|
|
308
308
|
var ruleArr = ctx.luckysheetfile[index].luckysheet_conditionformat_save || [];
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}), 1);
|
|
309
|
+
console.log(matchedConditionFormatKey, ruleArr, allConditionFormats);
|
|
310
|
+
ruleArr.splice(Number(key), 1);
|
|
312
311
|
ctx.luckysheetfile[index].luckysheet_conditionformat_save = ruleArr;
|
|
313
312
|
return ctx;
|
|
314
313
|
});
|
|
@@ -692,7 +692,18 @@ var Workbook = /*#__PURE__*/_react.default.forwardRef(function (_a, ref) {
|
|
|
692
692
|
}
|
|
693
693
|
return /*#__PURE__*/_react.default.createElement(_context.default.Provider, {
|
|
694
694
|
value: providerValue
|
|
695
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
695
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
696
|
+
id: "placeholder-conditional-format",
|
|
697
|
+
style: {
|
|
698
|
+
width: "500px",
|
|
699
|
+
height: "500px",
|
|
700
|
+
position: "fixed",
|
|
701
|
+
zIndex: "1000",
|
|
702
|
+
backgroundColor: "white",
|
|
703
|
+
padding: "12px",
|
|
704
|
+
top: "100px"
|
|
705
|
+
}
|
|
706
|
+
}), /*#__PURE__*/_react.default.createElement(_modal.ModalProvider, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
696
707
|
className: "fortune-container",
|
|
697
708
|
ref: workbookContainer,
|
|
698
709
|
onKeyDown: onKeyDown
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.2.64-patch-
|
|
3
|
+
"version": "1.2.64-patch-8",
|
|
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.2.64-patch-
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.2.64-patch-8",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-40",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|