@fileverse-dev/fortune-react 1.2.4 → 1.2.5
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/components/ConditionFormat/index.css +0 -2
- package/es/components/ContextMenu/Menu.d.ts +0 -1
- package/es/components/ContextMenu/Menu.js +2 -5
- package/es/components/ContextMenu/index.css +1 -4
- package/es/components/ContextMenu/index.js +8 -35
- package/es/components/DataVerification/ColorPicker.js +2 -2
- package/es/components/DataVerification/DropdownList.js +13 -3
- package/es/components/DataVerification/DropdownOption.js +14 -1
- package/es/components/DataVerification/RangeDialog.js +3 -0
- package/es/components/DataVerification/index.css +18 -4
- package/es/components/DataVerification/index.js +29 -13
- package/es/components/SheetOverlay/ColumnHeader.js +6 -17
- package/es/components/SheetOverlay/FormulaSearch/index.css +1 -0
- package/es/components/SheetOverlay/FormulaSearch/index.js +1 -1
- package/es/components/SheetOverlay/RowHeader.js +5 -5
- package/es/components/SheetOverlay/index.css +24 -7
- package/es/components/Toolbar/Combo.js +2 -5
- package/es/components/Toolbar/Select.js +1 -1
- package/es/components/Toolbar/index.css +1 -21
- package/es/components/Toolbar/index.js +1 -2
- package/lib/components/ConditionFormat/index.css +0 -2
- package/lib/components/ContextMenu/Menu.d.ts +0 -1
- package/lib/components/ContextMenu/Menu.js +2 -5
- package/lib/components/ContextMenu/index.css +1 -4
- package/lib/components/ContextMenu/index.js +7 -34
- package/lib/components/DataVerification/ColorPicker.js +2 -2
- package/lib/components/DataVerification/DropdownList.js +13 -3
- package/lib/components/DataVerification/DropdownOption.js +14 -1
- package/lib/components/DataVerification/RangeDialog.js +3 -0
- package/lib/components/DataVerification/index.css +18 -4
- package/lib/components/DataVerification/index.js +29 -13
- package/lib/components/SheetOverlay/ColumnHeader.js +5 -15
- package/lib/components/SheetOverlay/FormulaSearch/index.css +1 -0
- package/lib/components/SheetOverlay/FormulaSearch/index.js +1 -1
- package/lib/components/SheetOverlay/RowHeader.js +4 -3
- package/lib/components/SheetOverlay/index.css +24 -7
- package/lib/components/Toolbar/Combo.js +1 -4
- package/lib/components/Toolbar/Select.js +1 -1
- package/lib/components/Toolbar/index.css +1 -21
- package/package.json +2 -2
|
@@ -3,7 +3,6 @@ type Props = React.PropsWithChildren<{
|
|
|
3
3
|
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, container: HTMLDivElement) => void;
|
|
4
4
|
onMouseLeave?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, container: HTMLDivElement) => void;
|
|
5
5
|
onMouseEnter?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, container: HTMLDivElement) => void;
|
|
6
|
-
isActive?: boolean;
|
|
7
6
|
}>;
|
|
8
7
|
declare const Menu: React.FC<Props>;
|
|
9
8
|
export default Menu;
|
|
@@ -5,20 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _ui = require("@fileverse/ui");
|
|
9
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
9
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
11
10
|
var Menu = function Menu(_a) {
|
|
12
11
|
var _onClick = _a.onClick,
|
|
13
12
|
_onMouseLeave = _a.onMouseLeave,
|
|
14
13
|
_onMouseEnter = _a.onMouseEnter,
|
|
15
|
-
children = _a.children
|
|
16
|
-
_b = _a.isActive,
|
|
17
|
-
isActive = _b === void 0 ? false : _b;
|
|
14
|
+
children = _a.children;
|
|
18
15
|
var containerRef = (0, _react.useRef)(null);
|
|
19
16
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
20
17
|
ref: containerRef,
|
|
21
|
-
className:
|
|
18
|
+
className: "luckysheet-cols-menuitem luckysheet-mousedown-cancel",
|
|
22
19
|
onClick: function onClick(e) {
|
|
23
20
|
return _onClick === null || _onClick === void 0 ? void 0 : _onClick(e, containerRef.current);
|
|
24
21
|
},
|
|
@@ -82,10 +82,7 @@
|
|
|
82
82
|
cursor: pointer;
|
|
83
83
|
list-style: none;
|
|
84
84
|
margin: 0;
|
|
85
|
-
padding
|
|
86
|
-
padding-left: 8px !important;
|
|
87
|
-
padding-top: 6px !important;
|
|
88
|
-
padding-bottom: 6px !important;
|
|
85
|
+
padding: 8px !important;
|
|
89
86
|
white-space: nowrap;
|
|
90
87
|
user-select: none;
|
|
91
88
|
display: flex;
|
|
@@ -158,9 +158,6 @@ var ContextMenu = function ContextMenu() {
|
|
|
158
158
|
info = _b.info,
|
|
159
159
|
toolbar = _b.toolbar,
|
|
160
160
|
splitText = _b.splitText;
|
|
161
|
-
var _c = (0, _react.useState)(""),
|
|
162
|
-
activeMenu = _c[0],
|
|
163
|
-
setActiveMenu = _c[1];
|
|
164
161
|
var addRowColRightAvobe = function addRowColRightAvobe(type, direction) {
|
|
165
162
|
var _a, _b, _c, _d, _e, _f;
|
|
166
163
|
var positionCol = (_c = (_b = (_a = context.luckysheet_select_save) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.column) === null || _c === void 0 ? void 0 : _c[0];
|
|
@@ -841,12 +838,6 @@ var ContextMenu = function ContextMenu() {
|
|
|
841
838
|
arrow: false,
|
|
842
839
|
zIndex: 3000,
|
|
843
840
|
appendTo: document.body,
|
|
844
|
-
onShow: function onShow() {
|
|
845
|
-
setActiveMenu("sort");
|
|
846
|
-
},
|
|
847
|
-
onHide: function onHide() {
|
|
848
|
-
if (activeMenu === "sort") setActiveMenu("");
|
|
849
|
-
},
|
|
850
841
|
content: /*#__PURE__*/_react.default.createElement("div", {
|
|
851
842
|
className: "fortune-toolbar-select",
|
|
852
843
|
style: {
|
|
@@ -885,9 +876,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
885
876
|
}), /*#__PURE__*/_react.default.createElement("p", null, sort.desc))))),
|
|
886
877
|
trigger: "mouseenter focus",
|
|
887
878
|
hideOnClick: false
|
|
888
|
-
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Menu.default, {
|
|
889
|
-
isActive: activeMenu === "sort"
|
|
890
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
879
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Menu.default, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
891
880
|
className: "flex items-center justify-between w-full"
|
|
892
881
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
893
882
|
className: "context-item"
|
|
@@ -927,7 +916,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
927
916
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
928
917
|
className: "context-item p-2 w-full",
|
|
929
918
|
style: {
|
|
930
|
-
height: "
|
|
919
|
+
height: "40px"
|
|
931
920
|
}
|
|
932
921
|
}, /*#__PURE__*/_react.default.createElement(_ui.LucideIcon, {
|
|
933
922
|
name: "Filter",
|
|
@@ -942,22 +931,14 @@ var ContextMenu = function ContextMenu() {
|
|
|
942
931
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
943
932
|
className: "context-item p-2 w-full",
|
|
944
933
|
style: {
|
|
945
|
-
height: "
|
|
934
|
+
height: "40px"
|
|
946
935
|
}
|
|
947
936
|
}, /*#__PURE__*/_react.default.createElement(_ui.LucideIcon, {
|
|
948
937
|
name: "Eraser"
|
|
949
938
|
}), /*#__PURE__*/_react.default.createElement("p", null, filter.clearFilter))))),
|
|
950
939
|
trigger: "mouseenter focus",
|
|
951
|
-
hideOnClick: false
|
|
952
|
-
|
|
953
|
-
setActiveMenu("filter");
|
|
954
|
-
},
|
|
955
|
-
onHide: function onHide() {
|
|
956
|
-
if (activeMenu === "filter") setActiveMenu("");
|
|
957
|
-
}
|
|
958
|
-
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Menu.default, {
|
|
959
|
-
isActive: activeMenu === "filter"
|
|
960
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
940
|
+
hideOnClick: false
|
|
941
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Menu.default, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
961
942
|
className: "flex items-center justify-between w-full"
|
|
962
943
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
963
944
|
className: "context-item"
|
|
@@ -1011,12 +992,6 @@ var ContextMenu = function ContextMenu() {
|
|
|
1011
992
|
arrow: false,
|
|
1012
993
|
zIndex: 3000,
|
|
1013
994
|
appendTo: document.body,
|
|
1014
|
-
onShow: function onShow() {
|
|
1015
|
-
setActiveMenu("conditionFormat");
|
|
1016
|
-
},
|
|
1017
|
-
onHide: function onHide() {
|
|
1018
|
-
if (activeMenu === "conditionFormat") setActiveMenu("");
|
|
1019
|
-
},
|
|
1020
995
|
content: /*#__PURE__*/_react.default.createElement("div", {
|
|
1021
996
|
style: {
|
|
1022
997
|
minWidth: 220
|
|
@@ -1027,9 +1002,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
1027
1002
|
})),
|
|
1028
1003
|
trigger: "mouseenter focus",
|
|
1029
1004
|
hideOnClick: false
|
|
1030
|
-
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Menu.default, {
|
|
1031
|
-
isActive: activeMenu === "conditionFormat"
|
|
1032
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
1005
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Menu.default, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
1033
1006
|
className: "flex items-center justify-between w-full"
|
|
1034
1007
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
1035
1008
|
className: "flex items-center gap-2 context-item"
|
|
@@ -1065,7 +1038,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
1065
1038
|
}), /*#__PURE__*/_react.default.createElement("p", null, "Clear formatting")));
|
|
1066
1039
|
}
|
|
1067
1040
|
return null;
|
|
1068
|
-
}, [context, setContext, refs.globalCache, rightclick, showAlert, showDialog, drag.noMulti, info.tipRowHeightLimit, info.tipColumnWidthLimit, generalDialog.partiallyError, generalDialog.readOnlyError, generalDialog.dataNullError
|
|
1041
|
+
}, [context, setContext, refs.globalCache, rightclick, showAlert, showDialog, drag.noMulti, info.tipRowHeightLimit, info.tipColumnWidthLimit, generalDialog.partiallyError, generalDialog.readOnlyError, generalDialog.dataNullError]);
|
|
1069
1042
|
(0, _react.useLayoutEffect)(function () {
|
|
1070
1043
|
var _a;
|
|
1071
1044
|
if (!containerRef.current) {
|
|
@@ -112,14 +112,14 @@ var ColorSection = exports.ColorSection = function ColorSection(_a) {
|
|
|
112
112
|
title: color.name
|
|
113
113
|
}));
|
|
114
114
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
115
|
-
className: "w-full flex justify-center",
|
|
115
|
+
className: "w-full flex justify-center color-picker-reset-btn",
|
|
116
116
|
onClick: function onClick() {
|
|
117
117
|
onPick("228, 232, 237");
|
|
118
118
|
setIsOpen(false);
|
|
119
119
|
}
|
|
120
120
|
}, /*#__PURE__*/_react.default.createElement(_ui.IconButton, {
|
|
121
121
|
icon: "DropletOff",
|
|
122
|
-
size: "
|
|
122
|
+
size: "sm",
|
|
123
123
|
variant: "ghost",
|
|
124
124
|
className: "color-picker-icon"
|
|
125
125
|
}), /*#__PURE__*/_react.default.createElement(_ui.Button, {
|
|
@@ -155,8 +155,15 @@ var DropDownList = function DropDownList() {
|
|
|
155
155
|
display: isMul && selected.indexOf(v) >= 0 ? "inline" : "none"
|
|
156
156
|
}
|
|
157
157
|
}), v);
|
|
158
|
+
}), /*#__PURE__*/_react.default.createElement("hr", {
|
|
159
|
+
style: {
|
|
160
|
+
border: "none",
|
|
161
|
+
height: "1px",
|
|
162
|
+
background: "hsl(var(--color-bg-default-hover, #F2F4F5))",
|
|
163
|
+
marginBottom: "4px"
|
|
164
|
+
}
|
|
158
165
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
159
|
-
className: "w-full flex align-center",
|
|
166
|
+
className: "w-full flex align-center edit-dropdown",
|
|
160
167
|
style: {
|
|
161
168
|
height: "28px"
|
|
162
169
|
},
|
|
@@ -168,11 +175,14 @@ var DropDownList = function DropDownList() {
|
|
|
168
175
|
icon: "Pencil",
|
|
169
176
|
size: "sm",
|
|
170
177
|
variant: "ghost",
|
|
171
|
-
className: "color-picker-icon
|
|
178
|
+
className: "color-picker-icon color-picker edit-dropdown",
|
|
179
|
+
style: {
|
|
180
|
+
paddingTop: "0px !important"
|
|
181
|
+
}
|
|
172
182
|
}), /*#__PURE__*/_react.default.createElement(_ui.Button, {
|
|
173
183
|
size: "md",
|
|
174
184
|
variant: "ghost",
|
|
175
|
-
className: "color-picker-reset color-picker"
|
|
185
|
+
className: "color-picker-reset color-picker edit-dropdown"
|
|
176
186
|
}, "Edit")));
|
|
177
187
|
};
|
|
178
188
|
var _default = exports.default = DropDownList;
|
|
@@ -54,7 +54,20 @@ var DynamicInputList = function DynamicInputList(_a) {
|
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
56
|
(0, _react.useEffect)(function () {
|
|
57
|
-
|
|
57
|
+
if (optionItems.length === 0) {
|
|
58
|
+
var nextNum_1 = 1;
|
|
59
|
+
setOptionItems(function (prev) {
|
|
60
|
+
return __spreadArray(__spreadArray([], prev, true), [{
|
|
61
|
+
id: createId(),
|
|
62
|
+
value: "Option ".concat(nextNum_1),
|
|
63
|
+
color: "228, 232, 237"
|
|
64
|
+
}, {
|
|
65
|
+
id: createId(),
|
|
66
|
+
value: "Option ".concat(nextNum_1 + 1),
|
|
67
|
+
color: "228, 232, 237"
|
|
68
|
+
}], false);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
58
71
|
}, []);
|
|
59
72
|
var handleRemove = function handleRemove(index) {
|
|
60
73
|
setOptionItems(function (prev) {
|
|
@@ -27,10 +27,12 @@ var RangeDialog = function RangeDialog() {
|
|
|
27
27
|
rangeTxt2 = _c[0],
|
|
28
28
|
setRangeTxt2 = _c[1];
|
|
29
29
|
var close = (0, _react.useCallback)(function () {
|
|
30
|
+
var _a;
|
|
30
31
|
setContext(function (ctx) {
|
|
31
32
|
ctx.rangeDialog.show = false;
|
|
32
33
|
ctx.rangeDialog.singleSelect = false;
|
|
33
34
|
});
|
|
35
|
+
(_a = document.getElementById("data-verification-button")) === null || _a === void 0 ? void 0 : _a.click();
|
|
34
36
|
if (!context.rangeDialog) return;
|
|
35
37
|
var rangeDialogType = context.rangeDialog.type;
|
|
36
38
|
if (rangeDialogType.indexOf("between") >= 0) {
|
|
@@ -99,6 +101,7 @@ var RangeDialog = function RangeDialog() {
|
|
|
99
101
|
minWidth: "80px"
|
|
100
102
|
},
|
|
101
103
|
onClick: function onClick() {
|
|
104
|
+
console.log("rangeTxt2", rangeTxt2);
|
|
102
105
|
setContext(function (ctx) {
|
|
103
106
|
ctx.rangeDialog.rangeTxt = rangeTxt2;
|
|
104
107
|
});
|
|
@@ -201,6 +201,15 @@
|
|
|
201
201
|
min-width: 100px;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
+
.color-picker-reset-btn {
|
|
205
|
+
height: 30px;
|
|
206
|
+
border-radius: 6px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.color-picker-reset-btn:hover {
|
|
210
|
+
background: hsl(var(--color-bg-default-hover, #F2F4F5))!important;
|
|
211
|
+
}
|
|
212
|
+
|
|
204
213
|
.color-picker:hover {
|
|
205
214
|
background: hsl(var(--color-bg-default-hover, #F2F4F5))!important;
|
|
206
215
|
}
|
|
@@ -212,15 +221,20 @@
|
|
|
212
221
|
}
|
|
213
222
|
|
|
214
223
|
.color-picker-reset {
|
|
224
|
+
height: 30px !important;
|
|
225
|
+
padding-top: 0px !important;
|
|
226
|
+
padding-bottom: 0px !important;
|
|
215
227
|
min-width: 0px !important;
|
|
216
228
|
padding-left: 0px !important;
|
|
217
229
|
margin-left: 0px !important;
|
|
218
230
|
}
|
|
219
231
|
|
|
220
|
-
.
|
|
221
|
-
|
|
232
|
+
.edit-dropdown {
|
|
233
|
+
height: 28px!important;
|
|
234
|
+
border-radius: 5px;
|
|
222
235
|
}
|
|
223
236
|
|
|
224
|
-
.
|
|
225
|
-
|
|
237
|
+
.edit-dropdown:hover {
|
|
238
|
+
height: 28px!important;
|
|
239
|
+
background: hsl(var(--color-bg-default-hover, #F2F4F5))!important;
|
|
226
240
|
}
|
|
@@ -224,6 +224,18 @@ var DataVerification = function DataVerification() {
|
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
226
|
}, []);
|
|
227
|
+
var rangeOnClick = function rangeOnClick() {
|
|
228
|
+
var _a;
|
|
229
|
+
(_a = document.getElementById("data-verification-button")) === null || _a === void 0 ? void 0 : _a.click();
|
|
230
|
+
hideDialog();
|
|
231
|
+
dataSelectRange("rangeTxt", context.dataVerification.dataRegulation.value1);
|
|
232
|
+
};
|
|
233
|
+
var rangeOnChange = function rangeOnChange(e) {
|
|
234
|
+
var value = e.target.value;
|
|
235
|
+
setContext(function (ctx) {
|
|
236
|
+
ctx.dataVerification.dataRegulation.rangeTxt = value;
|
|
237
|
+
});
|
|
238
|
+
};
|
|
227
239
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
228
240
|
id: "fortune-data-verification"
|
|
229
241
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -239,23 +251,19 @@ var DataVerification = function DataVerification() {
|
|
|
239
251
|
}, dataVerification.cellRange), /*#__PURE__*/_react.default.createElement(_ui.TextField, {
|
|
240
252
|
rightIcon: /*#__PURE__*/_react.default.createElement(_ui.LucideIcon, {
|
|
241
253
|
name: "Grid2x2",
|
|
242
|
-
size: "sm"
|
|
254
|
+
size: "sm",
|
|
255
|
+
onClick: rangeOnClick,
|
|
256
|
+
onChange: rangeOnChange,
|
|
257
|
+
style: {
|
|
258
|
+
cursor: "pointer",
|
|
259
|
+
color: "#363B3F"
|
|
260
|
+
}
|
|
243
261
|
}),
|
|
244
262
|
"aria-hidden": "true",
|
|
245
263
|
readOnly: true,
|
|
246
264
|
value: (_a = context.dataVerification.dataRegulation) === null || _a === void 0 ? void 0 : _a.rangeTxt,
|
|
247
|
-
onChange:
|
|
248
|
-
|
|
249
|
-
setContext(function (ctx) {
|
|
250
|
-
ctx.dataVerification.dataRegulation.rangeTxt = value;
|
|
251
|
-
});
|
|
252
|
-
},
|
|
253
|
-
onClick: function onClick() {
|
|
254
|
-
var _a;
|
|
255
|
-
(_a = document.getElementById("data-verification-button")) === null || _a === void 0 ? void 0 : _a.click();
|
|
256
|
-
hideDialog();
|
|
257
|
-
dataSelectRange("rangeTxt", context.dataVerification.dataRegulation.value1);
|
|
258
|
-
}
|
|
265
|
+
onChange: rangeOnChange,
|
|
266
|
+
onClick: rangeOnClick
|
|
259
267
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
260
268
|
className: "flex flex-col"
|
|
261
269
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -308,9 +316,17 @@ var DataVerification = function DataVerification() {
|
|
|
308
316
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
309
317
|
className: "data-verification-checkbox-label"
|
|
310
318
|
}, dataVerification.selected), /*#__PURE__*/_react.default.createElement(_ui.TextField, {
|
|
319
|
+
onMouseDown: function onMouseDown(e) {
|
|
320
|
+
e.stopPropagation();
|
|
321
|
+
e.target.focus();
|
|
322
|
+
},
|
|
323
|
+
onKeyDown: function onKeyDown(e) {
|
|
324
|
+
e.stopPropagation();
|
|
325
|
+
},
|
|
311
326
|
value: (_g = (_f = context.dataVerification) === null || _f === void 0 ? void 0 : _f.dataRegulation) === null || _g === void 0 ? void 0 : _g.value1,
|
|
312
327
|
placeholder: dataVerification.placeholder2,
|
|
313
328
|
onChange: function onChange(e) {
|
|
329
|
+
e.stopPropagation();
|
|
314
330
|
var value = e.target.value;
|
|
315
331
|
setContext(function (ctx) {
|
|
316
332
|
ctx.dataVerification.dataRegulation.value1 = value;
|
|
@@ -225,10 +225,10 @@ var ColumnHeader = function ColumnHeader() {
|
|
|
225
225
|
}
|
|
226
226
|
}, hiddenPointers.map(function (item) {
|
|
227
227
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
228
|
-
className: "flex gap-4 cursor-pointer hide-btn align-center",
|
|
228
|
+
className: "flex gap-4 cursor-pointer hide-btn align-center jusify-between",
|
|
229
229
|
style: {
|
|
230
230
|
height: context.columnHeaderHeight - 12,
|
|
231
|
-
left: "".concat(item.left -
|
|
231
|
+
left: "".concat(item.left - 15, "px")
|
|
232
232
|
},
|
|
233
233
|
onClick: function onClick(e) {
|
|
234
234
|
return showColumn(e, item);
|
|
@@ -244,18 +244,7 @@ var ColumnHeader = function ColumnHeader() {
|
|
|
244
244
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
245
245
|
d: "M0.164574 4.20629L3.54376 7.58548C3.7275 7.76922 4.04167 7.63909 4.04167 7.37924L4.04167 0.620865C4.04167 0.361018 3.7275 0.230885 3.54376 0.414625L0.164575 3.79381C0.0506717 3.90772 0.0506715 4.09239 0.164574 4.20629Z",
|
|
246
246
|
fill: "#363B3F"
|
|
247
|
-
})))
|
|
248
|
-
}), hiddenPointers.map(function (item) {
|
|
249
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
250
|
-
className: "flex gap-4 cursor-pointer hide-btn align-center",
|
|
251
|
-
style: {
|
|
252
|
-
height: context.columnHeaderHeight - 12,
|
|
253
|
-
left: "".concat(item.left + 6, "px")
|
|
254
|
-
},
|
|
255
|
-
onClick: function onClick(e) {
|
|
256
|
-
return showColumn(e, item);
|
|
257
|
-
}
|
|
258
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
247
|
+
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
259
248
|
className: ""
|
|
260
249
|
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
261
250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -314,12 +303,13 @@ var ColumnHeader = function ColumnHeader() {
|
|
|
314
303
|
c1 = _a.c1,
|
|
315
304
|
c2 = _a.c2;
|
|
316
305
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
317
|
-
className: "fortune-col-header-selected
|
|
306
|
+
className: "fortune-col-header-selected",
|
|
318
307
|
key: i,
|
|
319
308
|
style: _lodash.default.assign({
|
|
320
309
|
left: col_pre,
|
|
321
310
|
width: col - col_pre - 1,
|
|
322
311
|
display: "block",
|
|
312
|
+
backgroundColor: "#EFC703",
|
|
323
313
|
mixBlendMode: "multiply"
|
|
324
314
|
}, (0, _fortuneCore.fixColumnStyleOverflowInFreeze)(context, c1, c2, (_b = refs.globalCache.freezen) === null || _b === void 0 ? void 0 : _b[context.currentSheetId]))
|
|
325
315
|
});
|
|
@@ -62,7 +62,7 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
62
62
|
});
|
|
63
63
|
if (_lodash.default.isEmpty(context.functionCandidates) && _lodash.default.isEmpty(context.defaultCandidates)) return null;
|
|
64
64
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
65
|
-
className: "flex
|
|
65
|
+
className: "flex flex-col luckysheet-formula-search-c-p custom-scroll",
|
|
66
66
|
id: "luckysheet-formula-search-c-p",
|
|
67
67
|
style: {
|
|
68
68
|
top: top
|
|
@@ -215,9 +215,9 @@ var RowHeader = function RowHeader() {
|
|
|
215
215
|
onContextMenu: onContextMenu
|
|
216
216
|
}, hiddenPointers.map(function (item) {
|
|
217
217
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
218
|
-
className: "flex flex-col gap-4 cursor-pointer align-center hide-btn-row
|
|
218
|
+
className: "flex flex-col gap-4 cursor-pointer align-center hide-btn-row",
|
|
219
219
|
style: {
|
|
220
|
-
top: "".concat(item.top -
|
|
220
|
+
top: "".concat(item.top - 15, "px"),
|
|
221
221
|
zIndex: 100
|
|
222
222
|
},
|
|
223
223
|
onClick: function onClick(e) {
|
|
@@ -274,12 +274,13 @@ var RowHeader = function RowHeader() {
|
|
|
274
274
|
r1 = _a.r1,
|
|
275
275
|
r2 = _a.r2;
|
|
276
276
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
277
|
-
className: "fortune-row-header-selected
|
|
277
|
+
className: "fortune-row-header-selected",
|
|
278
278
|
key: i,
|
|
279
279
|
style: _lodash.default.assign({
|
|
280
280
|
top: row_pre,
|
|
281
281
|
height: row - row_pre - 1,
|
|
282
282
|
display: "block",
|
|
283
|
+
backgroundColor: "#EFC703",
|
|
283
284
|
mixBlendMode: "multiply"
|
|
284
285
|
}, (0, _fortuneCore.fixRowStyleOverflowInFreeze)(context, r1, r2, (_b = refs.globalCache.freezen) === null || _b === void 0 ? void 0 : _b[context.currentSheetId]))
|
|
285
286
|
});
|
|
@@ -45,10 +45,12 @@
|
|
|
45
45
|
.fortune-row-header-selected {
|
|
46
46
|
position: absolute;
|
|
47
47
|
z-index: 10;
|
|
48
|
+
border-right: 1px solid #0188fb;
|
|
48
49
|
right: 0;
|
|
49
50
|
width: 100%;
|
|
50
51
|
margin-top: 2px;
|
|
51
52
|
display: none;
|
|
53
|
+
background-color: rgba(76, 76, 76, 0.1);
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
.fortune-col-header-wrap {
|
|
@@ -92,10 +94,12 @@
|
|
|
92
94
|
cursor: default;
|
|
93
95
|
position: absolute;
|
|
94
96
|
z-index: 10;
|
|
97
|
+
border-bottom: 1px solid #0188fb;
|
|
95
98
|
bottom: 0;
|
|
96
99
|
height: 100%;
|
|
97
100
|
margin-left: 0px;
|
|
98
101
|
display: none;
|
|
102
|
+
background-color: rgba(76, 76, 76, 0.1);
|
|
99
103
|
}
|
|
100
104
|
|
|
101
105
|
.fortune-left-top {
|
|
@@ -133,7 +137,7 @@
|
|
|
133
137
|
z-index: 14;
|
|
134
138
|
/*border:1px solid #fff;*/
|
|
135
139
|
margin: 0px 0 0 0px;
|
|
136
|
-
|
|
140
|
+
background: rgba(0, 80, 208, 0.15);
|
|
137
141
|
display: none;
|
|
138
142
|
}
|
|
139
143
|
|
|
@@ -195,9 +199,9 @@
|
|
|
195
199
|
z-index: 15;
|
|
196
200
|
border: 2.5px solid #efc703;
|
|
197
201
|
margin: -1px 0 0 -1px;
|
|
202
|
+
background: rgba(1, 136, 251, 0.15);
|
|
198
203
|
display: none;
|
|
199
204
|
box-sizing: content-box;
|
|
200
|
-
background: rgba(239, 199, 5, 0.02);
|
|
201
205
|
}
|
|
202
206
|
|
|
203
207
|
.luckysheet-cs-inner-border {
|
|
@@ -1009,16 +1013,22 @@
|
|
|
1009
1013
|
}
|
|
1010
1014
|
|
|
1011
1015
|
.hide-btn {
|
|
1012
|
-
padding-
|
|
1016
|
+
padding-left: 3px;
|
|
1017
|
+
padding-right: 3px;
|
|
1018
|
+
padding-top: 2px;
|
|
1013
1019
|
position: absolute;
|
|
1014
|
-
|
|
1020
|
+
width: 32px;
|
|
1015
1021
|
top: 5px;
|
|
1016
1022
|
z-index: 200;
|
|
1017
|
-
width: 9px;
|
|
1018
1023
|
}
|
|
1019
1024
|
|
|
1020
1025
|
.hide-btn:hover {
|
|
1021
|
-
|
|
1026
|
+
padding-left: 2px;
|
|
1027
|
+
padding-right: 2px;
|
|
1028
|
+
padding-top: 1px;
|
|
1029
|
+
background-color: rgba(255, 255, 255, 1);
|
|
1030
|
+
border-radius: var(--border-radius-sm, 4px);
|
|
1031
|
+
border: 1px solid #BDC4C8;
|
|
1022
1032
|
}
|
|
1023
1033
|
|
|
1024
1034
|
.rotate-row-icon {
|
|
@@ -1027,6 +1037,13 @@
|
|
|
1027
1037
|
|
|
1028
1038
|
.hide-btn-row {
|
|
1029
1039
|
position: absolute;
|
|
1030
|
-
|
|
1040
|
+
left: 4px;
|
|
1031
1041
|
z-index: 200;
|
|
1042
|
+
width: 12px;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
.hide-btn-row:hover {
|
|
1046
|
+
background-color: white;
|
|
1047
|
+
border: 1px solid #BDC4C8;
|
|
1048
|
+
border-radius: 4px;
|
|
1032
1049
|
}
|
|
@@ -58,10 +58,7 @@ var Combo = function Combo(_a) {
|
|
|
58
58
|
height: 16
|
|
59
59
|
})) : (/*#__PURE__*/_react.default.createElement("span", {
|
|
60
60
|
className: "fortune-toolbar-combo-text"
|
|
61
|
-
}, text !== undefined ? text : "")), /*#__PURE__*/_react.default.createElement(_ui.
|
|
62
|
-
className: "w-[16px] h-[16px]",
|
|
63
|
-
name: "ChevronDown"
|
|
64
|
-
})))) : (/*#__PURE__*/_react.default.createElement("span", null, iconId === "font-color" ? (/*#__PURE__*/_react.default.createElement(_ui.Tooltip, {
|
|
61
|
+
}, text !== undefined ? text : ""))))) : (/*#__PURE__*/_react.default.createElement("span", null, iconId === "font-color" ? (/*#__PURE__*/_react.default.createElement(_ui.Tooltip, {
|
|
65
62
|
text: tooltip,
|
|
66
63
|
placement: "bottom"
|
|
67
64
|
}, /*#__PURE__*/_react.default.createElement(_ui.Button, {
|
|
@@ -34,7 +34,7 @@ var Option = exports.Option = function Option(_a) {
|
|
|
34
34
|
}, iconId && /*#__PURE__*/_react.default.createElement(_SVGIcon.default, {
|
|
35
35
|
name: iconId
|
|
36
36
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
37
|
-
className: "fortuen-toolbar-text color-text-default text-body-sm
|
|
37
|
+
className: "fortuen-toolbar-text color-text-default text-body-sm"
|
|
38
38
|
}, children));
|
|
39
39
|
};
|
|
40
40
|
var _default = exports.default = Select;
|
|
@@ -141,30 +141,14 @@
|
|
|
141
141
|
|
|
142
142
|
.fortune-toolbar-combo-button {
|
|
143
143
|
font-size: 12px;
|
|
144
|
-
padding-top: 4px;
|
|
145
|
-
padding-bottom: 4px;
|
|
146
|
-
padding-left: 8px;
|
|
147
|
-
padding-right: 8px;
|
|
148
|
-
border-radius: 4px;
|
|
149
|
-
gap: 8px;
|
|
150
|
-
}
|
|
151
|
-
.fortune-toolbar-combo-button:hover {
|
|
152
|
-
background: hsl(var(--color-bg-default-hover));
|
|
153
144
|
}
|
|
154
145
|
|
|
155
146
|
.fortune-toolbar-select-option {
|
|
156
147
|
font-size: 12px;
|
|
157
148
|
min-width: 60px;
|
|
158
|
-
padding
|
|
159
|
-
padding-right: 8px;
|
|
160
|
-
padding-top: 6px;
|
|
161
|
-
padding-bottom: 6px;
|
|
149
|
+
padding: 8px;
|
|
162
150
|
cursor: pointer;
|
|
163
151
|
user-select: none;
|
|
164
|
-
height: 32px;
|
|
165
|
-
display: flex;
|
|
166
|
-
align-items: center;
|
|
167
|
-
|
|
168
152
|
}
|
|
169
153
|
|
|
170
154
|
.fortune-toolbar-select-option:hover {
|
|
@@ -187,10 +171,6 @@
|
|
|
187
171
|
font-weight: 500;
|
|
188
172
|
font-size: 14px;
|
|
189
173
|
line-height: 20px;
|
|
190
|
-
max-width: 56px;
|
|
191
|
-
overflow: hidden;
|
|
192
|
-
text-overflow: ellipsis;
|
|
193
|
-
white-space: nowrap;
|
|
194
174
|
}
|
|
195
175
|
|
|
196
176
|
.fortune-toolbar-color-picker-item {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
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.
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.2.5",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|