@fileverse-dev/fortune-react 1.2.0-patch-1 → 1.2.0-patch-2

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.
@@ -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;
@@ -1,16 +1,13 @@
1
- import { cn } from "@fileverse/ui";
2
1
  import React, { useRef } from "react";
3
2
  var Menu = function Menu(_a) {
4
3
  var _onClick = _a.onClick,
5
4
  _onMouseLeave = _a.onMouseLeave,
6
5
  _onMouseEnter = _a.onMouseEnter,
7
- children = _a.children,
8
- _b = _a.isActive,
9
- isActive = _b === void 0 ? false : _b;
6
+ children = _a.children;
10
7
  var containerRef = useRef(null);
11
8
  return /*#__PURE__*/React.createElement("div", {
12
9
  ref: containerRef,
13
- className: cn("luckysheet-cols-menuitem luckysheet-mousedown-cancel", isActive && "color-bg-default-hover"),
10
+ className: "luckysheet-cols-menuitem luckysheet-mousedown-cancel",
14
11
  onClick: function onClick(e) {
15
12
  return _onClick === null || _onClick === void 0 ? void 0 : _onClick(e, containerRef.current);
16
13
  },
@@ -82,10 +82,7 @@
82
82
  cursor: pointer;
83
83
  list-style: none;
84
84
  margin: 0;
85
- padding-right: 8px !important;
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;
@@ -115,7 +115,7 @@ var __generator = this && this.__generator || function (thisArg, body) {
115
115
  };
116
116
  import { locale, handleCopy, handlePasteByClick, deleteRowCol, insertRowCol, removeActiveImage, deleteSelectedCellText, sortSelection, createFilter, showImgChooser, handleLink, hideSelected, showSelected, getSheetIndex, api, isAllowEdit, jfrefreshgrid, newComment, getFreezeState, toggleFreeze, clearFilter, clearSelectedCellFormat, clearColumnsCellsFormat, clearRowsCellsFormat } from "@fileverse-dev/fortune-core";
117
117
  import _ from "lodash";
118
- import React, { useContext, useRef, useCallback, useLayoutEffect, useState } from "react";
118
+ import React, { useContext, useRef, useCallback, useLayoutEffect } from "react";
119
119
  import regeneratorRuntime from "regenerator-runtime";
120
120
  import Tippy from "@tippyjs/react";
121
121
  import { LucideIcon } from "@fileverse/ui";
@@ -149,9 +149,6 @@ var ContextMenu = function ContextMenu() {
149
149
  info = _b.info,
150
150
  toolbar = _b.toolbar,
151
151
  splitText = _b.splitText;
152
- var _c = useState(""),
153
- activeMenu = _c[0],
154
- setActiveMenu = _c[1];
155
152
  var addRowColRightAvobe = function addRowColRightAvobe(type, direction) {
156
153
  var _a, _b, _c, _d, _e, _f;
157
154
  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];
@@ -832,12 +829,6 @@ var ContextMenu = function ContextMenu() {
832
829
  arrow: false,
833
830
  zIndex: 3000,
834
831
  appendTo: document.body,
835
- onShow: function onShow() {
836
- setActiveMenu("sort");
837
- },
838
- onHide: function onHide() {
839
- if (activeMenu === "sort") setActiveMenu("");
840
- },
841
832
  content: /*#__PURE__*/React.createElement("div", {
842
833
  className: "fortune-toolbar-select",
843
834
  style: {
@@ -876,9 +867,7 @@ var ContextMenu = function ContextMenu() {
876
867
  }), /*#__PURE__*/React.createElement("p", null, sort.desc))))),
877
868
  trigger: "mouseenter focus",
878
869
  hideOnClick: false
879
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Menu, {
880
- isActive: activeMenu === "sort"
881
- }, /*#__PURE__*/React.createElement("div", {
870
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement("div", {
882
871
  className: "flex items-center justify-between w-full"
883
872
  }, /*#__PURE__*/React.createElement("div", {
884
873
  className: "context-item"
@@ -918,7 +907,7 @@ var ContextMenu = function ContextMenu() {
918
907
  }, /*#__PURE__*/React.createElement("div", {
919
908
  className: "context-item p-2 w-full",
920
909
  style: {
921
- height: "32px"
910
+ height: "40px"
922
911
  }
923
912
  }, /*#__PURE__*/React.createElement(LucideIcon, {
924
913
  name: "Filter",
@@ -933,22 +922,14 @@ var ContextMenu = function ContextMenu() {
933
922
  }, /*#__PURE__*/React.createElement("div", {
934
923
  className: "context-item p-2 w-full",
935
924
  style: {
936
- height: "32px"
925
+ height: "40px"
937
926
  }
938
927
  }, /*#__PURE__*/React.createElement(LucideIcon, {
939
928
  name: "Eraser"
940
929
  }), /*#__PURE__*/React.createElement("p", null, filter.clearFilter))))),
941
930
  trigger: "mouseenter focus",
942
- hideOnClick: false,
943
- onShow: function onShow() {
944
- setActiveMenu("filter");
945
- },
946
- onHide: function onHide() {
947
- if (activeMenu === "filter") setActiveMenu("");
948
- }
949
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Menu, {
950
- isActive: activeMenu === "filter"
951
- }, /*#__PURE__*/React.createElement("div", {
931
+ hideOnClick: false
932
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement("div", {
952
933
  className: "flex items-center justify-between w-full"
953
934
  }, /*#__PURE__*/React.createElement("div", {
954
935
  className: "context-item"
@@ -1002,12 +983,6 @@ var ContextMenu = function ContextMenu() {
1002
983
  arrow: false,
1003
984
  zIndex: 3000,
1004
985
  appendTo: document.body,
1005
- onShow: function onShow() {
1006
- setActiveMenu("conditionFormat");
1007
- },
1008
- onHide: function onHide() {
1009
- if (activeMenu === "conditionFormat") setActiveMenu("");
1010
- },
1011
986
  content: /*#__PURE__*/React.createElement("div", {
1012
987
  style: {
1013
988
  minWidth: 220
@@ -1018,9 +993,7 @@ var ContextMenu = function ContextMenu() {
1018
993
  })),
1019
994
  trigger: "mouseenter focus",
1020
995
  hideOnClick: false
1021
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Menu, {
1022
- isActive: activeMenu === "conditionFormat"
1023
- }, /*#__PURE__*/React.createElement("div", {
996
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement("div", {
1024
997
  className: "flex items-center justify-between w-full"
1025
998
  }, /*#__PURE__*/React.createElement("div", {
1026
999
  className: "flex items-center gap-2 context-item"
@@ -1056,7 +1029,7 @@ var ContextMenu = function ContextMenu() {
1056
1029
  }), /*#__PURE__*/React.createElement("p", null, "Clear formatting")));
1057
1030
  }
1058
1031
  return null;
1059
- }, [context, setContext, refs.globalCache, rightclick, showAlert, showDialog, drag.noMulti, info.tipRowHeightLimit, info.tipColumnWidthLimit, generalDialog.partiallyError, generalDialog.readOnlyError, generalDialog.dataNullError, activeMenu]);
1032
+ }, [context, setContext, refs.globalCache, rightclick, showAlert, showDialog, drag.noMulti, info.tipRowHeightLimit, info.tipColumnWidthLimit, generalDialog.partiallyError, generalDialog.readOnlyError, generalDialog.dataNullError]);
1060
1033
  useLayoutEffect(function () {
1061
1034
  var _a;
1062
1035
  if (!containerRef.current) {
@@ -18,6 +18,7 @@ var RangeDialog = function RangeDialog() {
18
18
  rangeTxt2 = _c[0],
19
19
  setRangeTxt2 = _c[1];
20
20
  var close = useCallback(function () {
21
+ var _a;
21
22
  setContext(function (ctx) {
22
23
  ctx.rangeDialog.show = false;
23
24
  ctx.rangeDialog.singleSelect = false;
@@ -36,6 +37,8 @@ var RangeDialog = function RangeDialog() {
36
37
  type: rulesType
37
38
  }), undefined, locale(context).conditionformat["conditionformat_".concat(rulesType)]);
38
39
  }
40
+ console.log("rangeDialogType", rangeDialogType);
41
+ (_a = document.getElementById("data-verification-button")) === null || _a === void 0 ? void 0 : _a.click();
39
42
  }, [setContext, showDialog, context]);
40
43
  useEffect(function () {
41
44
  setRangeTxt2(getDisplayedRangeTxt(context));
@@ -1,5 +1,4 @@
1
- import { colLocation, colLocationByIndex, selectTitlesMap, selectTitlesRange, handleColSizeHandleMouseDown, handleColumnHeaderMouseDown, isAllowEdit, getFlowdata, fixColumnStyleOverflowInFreeze, handleColFreezeHandleMouseDown, getSheetIndex, fixPositionOnFrozenCells, showSelected } from "@fileverse-dev/fortune-core";
2
- import { api } from "@fileverse-dev/fortune-core";
1
+ import { colLocation, colLocationByIndex, selectTitlesMap, selectTitlesRange, handleColSizeHandleMouseDown, handleColumnHeaderMouseDown, isAllowEdit, getFlowdata, fixColumnStyleOverflowInFreeze, handleColFreezeHandleMouseDown, getSheetIndex, fixPositionOnFrozenCells, showSelected, api } from "@fileverse-dev/fortune-core";
3
2
  import _ from "lodash";
4
3
  import React, { useContext, useState, useRef, useCallback, useEffect, useMemo } from "react";
5
4
  import WorkbookContext from "../../context";
@@ -306,12 +305,13 @@ var ColumnHeader = function ColumnHeader() {
306
305
  c1 = _a.c1,
307
306
  c2 = _a.c2;
308
307
  return /*#__PURE__*/React.createElement("div", {
309
- className: "fortune-col-header-selected color-bg-tertiary",
308
+ className: "fortune-col-header-selected",
310
309
  key: i,
311
310
  style: _.assign({
312
311
  left: col_pre,
313
312
  width: col - col_pre - 1,
314
313
  display: "block",
314
+ backgroundColor: "#EFC703",
315
315
  mixBlendMode: "multiply"
316
316
  }, fixColumnStyleOverflowInFreeze(context, c1, c2, (_b = refs.globalCache.freezen) === null || _b === void 0 ? void 0 : _b[context.currentSheetId]))
317
317
  });
@@ -6,6 +6,7 @@
6
6
  background: #fff;
7
7
  z-index: 1003;
8
8
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
9
+ border: 1px solid lavender;
9
10
  border-radius: 10px;
10
11
  }
11
12
 
@@ -53,7 +53,7 @@ var FormulaSearch = function FormulaSearch(props) {
53
53
  });
54
54
  if (_.isEmpty(context.functionCandidates) && _.isEmpty(context.defaultCandidates)) return null;
55
55
  return /*#__PURE__*/React.createElement("div", {
56
- className: "flex color-border-default border flex-col luckysheet-formula-search-c-p custom-scroll",
56
+ className: "flex flex-col luckysheet-formula-search-c-p custom-scroll",
57
57
  id: "luckysheet-formula-search-c-p",
58
58
  style: {
59
59
  top: top
@@ -1,5 +1,4 @@
1
- import { rowLocation, rowLocationByIndex, selectTitlesMap, selectTitlesRange, handleContextMenu, handleRowHeaderMouseDown, handleRowSizeHandleMouseDown, fixRowStyleOverflowInFreeze, handleRowFreezeHandleMouseDown, getSheetIndex, showSelected, fixPositionOnFrozenCells } from "@fileverse-dev/fortune-core";
2
- import { api } from "@fileverse-dev/fortune-core";
1
+ import { rowLocation, rowLocationByIndex, selectTitlesMap, selectTitlesRange, handleContextMenu, handleRowHeaderMouseDown, handleRowSizeHandleMouseDown, fixRowStyleOverflowInFreeze, handleRowFreezeHandleMouseDown, getSheetIndex, showSelected, fixPositionOnFrozenCells, api } from "@fileverse-dev/fortune-core";
3
2
  import _ from "lodash";
4
3
  import React, { useContext, useState, useRef, useCallback, useEffect, useMemo } from "react";
5
4
  import WorkbookContext from "../../context";
@@ -266,12 +265,13 @@ var RowHeader = function RowHeader() {
266
265
  r1 = _a.r1,
267
266
  r2 = _a.r2;
268
267
  return /*#__PURE__*/React.createElement("div", {
269
- className: "fortune-row-header-selected color-bg-tertiary",
268
+ className: "fortune-row-header-selected",
270
269
  key: i,
271
270
  style: _.assign({
272
271
  top: row_pre,
273
272
  height: row - row_pre - 1,
274
273
  display: "block",
274
+ backgroundColor: "#EFC703",
275
275
  mixBlendMode: "multiply"
276
276
  }, fixRowStyleOverflowInFreeze(context, r1, r2, (_b = refs.globalCache.freezen) === null || _b === void 0 ? void 0 : _b[context.currentSheetId]))
277
277
  });
@@ -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
- /* background: rgba(0, 80, 208, 0.15); */
140
+ background: rgba(0, 80, 208, 0.15);
137
141
  display: none;
138
142
  }
139
143
 
@@ -195,7 +199,7 @@
195
199
  z-index: 15;
196
200
  border: 2.5px solid #efc703;
197
201
  margin: -1px 0 0 -1px;
198
- background: rgba(239, 199, 5, 0.02);
202
+ background: rgba(1, 136, 251, 0.15);
199
203
  display: none;
200
204
  box-sizing: content-box;
201
205
  }
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo, useRef, useState } from "react";
2
- import { IconButton, Tooltip, Popover, PopoverContent, PopoverTrigger, cn, Button, LucideIcon } from "@fileverse/ui";
2
+ import { IconButton, Tooltip, Popover, PopoverContent, PopoverTrigger, cn, Button } from "@fileverse/ui";
3
3
  import SVGIcon from "../SVGIcon";
4
4
  import { getLucideIcon } from ".";
5
5
  var Combo = function Combo(_a) {
@@ -49,10 +49,7 @@ var Combo = function Combo(_a) {
49
49
  height: 16
50
50
  })) : (/*#__PURE__*/React.createElement("span", {
51
51
  className: "fortune-toolbar-combo-text"
52
- }, text !== undefined ? text : "")), /*#__PURE__*/React.createElement(LucideIcon, {
53
- className: "w-[16px] h-[16px]",
54
- name: "ChevronDown"
55
- })))) : (/*#__PURE__*/React.createElement("span", null, iconId === "font-color" ? (/*#__PURE__*/React.createElement(Tooltip, {
52
+ }, text !== undefined ? text : ""))))) : (/*#__PURE__*/React.createElement("span", null, iconId === "font-color" ? (/*#__PURE__*/React.createElement(Tooltip, {
56
53
  text: tooltip,
57
54
  placement: "bottom"
58
55
  }, /*#__PURE__*/React.createElement(Button, {
@@ -141,24 +141,12 @@
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-left: 8px;
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
152
  }
@@ -183,10 +171,6 @@
183
171
  font-weight: 500;
184
172
  font-size: 14px;
185
173
  line-height: 20px;
186
- max-width: 56px;
187
- overflow: hidden;
188
- text-overflow: ellipsis;
189
- white-space: nowrap;
190
174
  }
191
175
 
192
176
  .fortune-toolbar-color-picker-item {
@@ -123,8 +123,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
123
123
  return to.concat(ar || Array.prototype.slice.call(from));
124
124
  };
125
125
  import React, { useContext, useCallback, useRef, useEffect, useState } from "react";
126
- import { toolbarItemClickHandler, handleTextBackground, handleTextColor, handleTextSize, normalizedCellAttr, getFlowdata, newComment, editComment, deleteComment, showHideComment, showHideAllComments, autoSelectionFormula, handleSum, locale, handleMerge, handleBorder, toolbarItemSelectedFunc, handleFreeze, insertImage, showImgChooser, updateFormat, handleSort, handleHorizontalAlign, handleVerticalAlign, handleScreenShot, createFilter, clearFilter, applyLocation, insertDuneChart } from "@fileverse-dev/fortune-core";
127
- import { api } from "@fileverse-dev/fortune-core";
126
+ import { toolbarItemClickHandler, handleTextBackground, handleTextColor, handleTextSize, normalizedCellAttr, getFlowdata, newComment, editComment, deleteComment, showHideComment, showHideAllComments, autoSelectionFormula, handleSum, locale, handleMerge, handleBorder, toolbarItemSelectedFunc, handleFreeze, insertImage, showImgChooser, updateFormat, handleSort, handleHorizontalAlign, handleVerticalAlign, handleScreenShot, createFilter, clearFilter, applyLocation, insertDuneChart, api } from "@fileverse-dev/fortune-core";
128
127
  import _ from "lodash";
129
128
  import { IconButton, LucideIcon, Tooltip, Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from "@fileverse/ui";
130
129
  import DataVerificationPortal from "./dataVerificationPortal";
@@ -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: (0, _ui.cn)("luckysheet-cols-menuitem luckysheet-mousedown-cancel", isActive && "color-bg-default-hover"),
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-right: 8px !important;
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: "32px"
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: "32px"
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
- onShow: function onShow() {
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, activeMenu]);
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) {
@@ -27,6 +27,7 @@ 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;
@@ -45,6 +46,8 @@ var RangeDialog = function RangeDialog() {
45
46
  type: rulesType
46
47
  }), undefined, (0, _fortuneCore.locale)(context).conditionformat["conditionformat_".concat(rulesType)]);
47
48
  }
49
+ console.log("rangeDialogType", rangeDialogType);
50
+ (_a = document.getElementById("data-verification-button")) === null || _a === void 0 ? void 0 : _a.click();
48
51
  }, [setContext, showDialog, context]);
49
52
  (0, _react.useEffect)(function () {
50
53
  setRangeTxt2((0, _getDisplayedRangeTxt.getDisplayedRangeTxt)(context));
@@ -314,12 +314,13 @@ var ColumnHeader = function ColumnHeader() {
314
314
  c1 = _a.c1,
315
315
  c2 = _a.c2;
316
316
  return /*#__PURE__*/_react.default.createElement("div", {
317
- className: "fortune-col-header-selected color-bg-tertiary",
317
+ className: "fortune-col-header-selected",
318
318
  key: i,
319
319
  style: _lodash.default.assign({
320
320
  left: col_pre,
321
321
  width: col - col_pre - 1,
322
322
  display: "block",
323
+ backgroundColor: "#EFC703",
323
324
  mixBlendMode: "multiply"
324
325
  }, (0, _fortuneCore.fixColumnStyleOverflowInFreeze)(context, c1, c2, (_b = refs.globalCache.freezen) === null || _b === void 0 ? void 0 : _b[context.currentSheetId]))
325
326
  });
@@ -6,6 +6,7 @@
6
6
  background: #fff;
7
7
  z-index: 1003;
8
8
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
9
+ border: 1px solid lavender;
9
10
  border-radius: 10px;
10
11
  }
11
12
 
@@ -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 color-border-default border flex-col luckysheet-formula-search-c-p custom-scroll",
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
@@ -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 color-bg-tertiary",
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
- /* background: rgba(0, 80, 208, 0.15); */
140
+ background: rgba(0, 80, 208, 0.15);
137
141
  display: none;
138
142
  }
139
143
 
@@ -195,7 +199,7 @@
195
199
  z-index: 15;
196
200
  border: 2.5px solid #efc703;
197
201
  margin: -1px 0 0 -1px;
198
- background: rgba(239, 199, 5, 0.02);
202
+ background: rgba(1, 136, 251, 0.15);
199
203
  display: none;
200
204
  box-sizing: content-box;
201
205
  }
@@ -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.LucideIcon, {
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, {