@fileverse-dev/fortune-react 1.2.4 → 1.2.6

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.
Files changed (42) hide show
  1. package/es/components/ConditionFormat/index.css +0 -2
  2. package/es/components/ContextMenu/Menu.d.ts +0 -1
  3. package/es/components/ContextMenu/Menu.js +2 -5
  4. package/es/components/ContextMenu/index.css +1 -4
  5. package/es/components/ContextMenu/index.js +8 -35
  6. package/es/components/DataVerification/ColorPicker.js +2 -2
  7. package/es/components/DataVerification/DropdownList.js +13 -3
  8. package/es/components/DataVerification/DropdownOption.js +14 -1
  9. package/es/components/DataVerification/RangeDialog.js +2 -0
  10. package/es/components/DataVerification/index.css +18 -4
  11. package/es/components/DataVerification/index.js +29 -13
  12. package/es/components/SheetOverlay/ColumnHeader.js +34 -19
  13. package/es/components/SheetOverlay/FormulaHint/index.js +2 -2
  14. package/es/components/SheetOverlay/FormulaSearch/index.css +1 -0
  15. package/es/components/SheetOverlay/FormulaSearch/index.js +1 -1
  16. package/es/components/SheetOverlay/RowHeader.js +33 -6
  17. package/es/components/SheetOverlay/index.css +24 -7
  18. package/es/components/Toolbar/Combo.js +2 -5
  19. package/es/components/Toolbar/Select.js +1 -1
  20. package/es/components/Toolbar/index.css +1 -21
  21. package/es/components/Toolbar/index.js +1 -2
  22. package/lib/components/ConditionFormat/index.css +0 -2
  23. package/lib/components/ContextMenu/Menu.d.ts +0 -1
  24. package/lib/components/ContextMenu/Menu.js +2 -5
  25. package/lib/components/ContextMenu/index.css +1 -4
  26. package/lib/components/ContextMenu/index.js +7 -34
  27. package/lib/components/DataVerification/ColorPicker.js +2 -2
  28. package/lib/components/DataVerification/DropdownList.js +13 -3
  29. package/lib/components/DataVerification/DropdownOption.js +14 -1
  30. package/lib/components/DataVerification/RangeDialog.js +2 -0
  31. package/lib/components/DataVerification/index.css +18 -4
  32. package/lib/components/DataVerification/index.js +29 -13
  33. package/lib/components/SheetOverlay/ColumnHeader.js +33 -17
  34. package/lib/components/SheetOverlay/FormulaHint/index.js +2 -2
  35. package/lib/components/SheetOverlay/FormulaSearch/index.css +1 -0
  36. package/lib/components/SheetOverlay/FormulaSearch/index.js +1 -1
  37. package/lib/components/SheetOverlay/RowHeader.js +32 -4
  38. package/lib/components/SheetOverlay/index.css +24 -7
  39. package/lib/components/Toolbar/Combo.js +1 -4
  40. package/lib/components/Toolbar/Select.js +1 -1
  41. package/lib/components/Toolbar/index.css +1 -21
  42. package/package.json +2 -2
@@ -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,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-top: 1px;
1016
+ padding-left: 3px;
1017
+ padding-right: 3px;
1018
+ padding-top: 2px;
1013
1019
  position: absolute;
1014
- right: 5;
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
- border: 1px solid #0188fb;
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
- left: 4px;
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
  }
@@ -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, {
@@ -27,7 +27,7 @@ var Option = function Option(_a) {
27
27
  }, iconId && /*#__PURE__*/React.createElement(SVGIcon, {
28
28
  name: iconId
29
29
  }), /*#__PURE__*/React.createElement("div", {
30
- className: "fortuen-toolbar-text color-text-default text-body-sm w-full"
30
+ className: "fortuen-toolbar-text color-text-default text-body-sm"
31
31
  }, children));
32
32
  };
33
33
  export { Option };
@@ -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-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
- 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 {
@@ -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";
@@ -22,8 +22,6 @@
22
22
  z-index: 1005;
23
23
  border-radius: 4px;
24
24
  cursor: pointer;
25
- align-items: center;
26
- height: 32px;
27
25
  }
28
26
 
29
27
  .condition-format-item:hover {
@@ -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) {
@@ -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: "md",
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 pt-2 color-picker"
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
- handleAdd();
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) {
@@ -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
- .color-picker-reset:hover {
221
- background-color: white!important;
232
+ .edit-dropdown {
233
+ height: 28px!important;
234
+ border-radius: 5px;
222
235
  }
223
236
 
224
- .color-picker-icon:hover {
225
- background-color: white!important;
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: function onChange(e) {
248
- var value = e.target.value;
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;
@@ -171,6 +171,7 @@ var ColumnHeader = function ColumnHeader() {
171
171
  if (sheetIndex == null) return;
172
172
  var tempPointers = [];
173
173
  var colhidden = (_b = (_a = context.luckysheetfile[sheetIndex]) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.colhidden;
174
+ console.log(colhidden);
174
175
  if (colhidden) {
175
176
  Object.keys(colhidden).forEach(function (key) {
176
177
  var item = {
@@ -179,20 +180,36 @@ var ColumnHeader = function ColumnHeader() {
179
180
  };
180
181
  tempPointers.push(item);
181
182
  });
182
- console.log(tempPointers);
183
183
  setHiddenPointers(tempPointers);
184
184
  } else {
185
185
  setHiddenPointers([]);
186
186
  }
187
187
  }, [context.visibledatacolumn, sheetIndex]);
188
188
  var showColumn = function showColumn(e, item) {
189
+ var _a, _b;
190
+ if (sheetIndex == null) return;
191
+ var startPoint = item.col;
192
+ var startCol = startPoint,
193
+ endCol = startPoint;
194
+ var colhiddenData = (_b = (_a = context.luckysheetfile[sheetIndex]) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.colhidden;
195
+ var findColBoundary = function findColBoundary(start, direction) {
196
+ var tempPoint = start;
197
+ while (true) {
198
+ var checkColIndex = tempPoint + direction;
199
+ if (!(colhiddenData === null || colhiddenData === void 0 ? void 0 : colhiddenData.hasOwnProperty(checkColIndex))) break;
200
+ tempPoint = checkColIndex;
201
+ }
202
+ return tempPoint;
203
+ };
204
+ startCol = findColBoundary(startPoint, -1);
205
+ endCol = findColBoundary(startPoint, 1);
189
206
  if (context.isFlvReadOnly) return;
190
207
  e.stopPropagation();
191
208
  setContext(function (ctx) {
192
209
  var _a;
193
210
  _fortuneCore.api.setSelection(ctx, [{
194
211
  row: [0, (_a = context.visibledatarow) === null || _a === void 0 ? void 0 : _a.length],
195
- column: [Number(item.col) - 1, Number(item.col) + 1]
212
+ column: [Number(startCol) - 1, Number(endCol) + 1]
196
213
  }], {
197
214
  id: context.currentSheetId
198
215
  });
@@ -200,6 +217,15 @@ var ColumnHeader = function ColumnHeader() {
200
217
  setContext(function (ctx) {
201
218
  (0, _fortuneCore.showSelected)(ctx, "column");
202
219
  });
220
+ setContext(function (ctx) {
221
+ var _a;
222
+ _fortuneCore.api.setSelection(ctx, [{
223
+ row: [0, (_a = context.visibledatarow) === null || _a === void 0 ? void 0 : _a.length],
224
+ column: [Number(startCol), Number(endCol)]
225
+ }], {
226
+ id: context.currentSheetId
227
+ });
228
+ });
203
229
  };
204
230
  (0, _react.useEffect)(function () {
205
231
  containerRef.current.scrollLeft = context.scrollLeft;
@@ -225,10 +251,10 @@ var ColumnHeader = function ColumnHeader() {
225
251
  }
226
252
  }, hiddenPointers.map(function (item) {
227
253
  return /*#__PURE__*/_react.default.createElement("div", {
228
- className: "flex gap-4 cursor-pointer hide-btn align-center",
254
+ className: "flex gap-4 cursor-pointer hide-btn align-center jusify-between",
229
255
  style: {
230
256
  height: context.columnHeaderHeight - 12,
231
- left: "".concat(item.left - 12, "px")
257
+ left: "".concat(item.left - 15, "px")
232
258
  },
233
259
  onClick: function onClick(e) {
234
260
  return showColumn(e, item);
@@ -244,18 +270,7 @@ var ColumnHeader = function ColumnHeader() {
244
270
  }, /*#__PURE__*/_react.default.createElement("path", {
245
271
  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
272
  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", {
273
+ }))), /*#__PURE__*/_react.default.createElement("div", {
259
274
  className: ""
260
275
  }, /*#__PURE__*/_react.default.createElement("svg", {
261
276
  xmlns: "http://www.w3.org/2000/svg",
@@ -314,12 +329,13 @@ var ColumnHeader = function ColumnHeader() {
314
329
  c1 = _a.c1,
315
330
  c2 = _a.c2;
316
331
  return /*#__PURE__*/_react.default.createElement("div", {
317
- className: "fortune-col-header-selected color-bg-tertiary",
332
+ className: "fortune-col-header-selected",
318
333
  key: i,
319
334
  style: _lodash.default.assign({
320
335
  left: col_pre,
321
336
  width: col - col_pre - 1,
322
337
  display: "block",
338
+ backgroundColor: "#EFC703",
323
339
  mixBlendMode: "multiply"
324
340
  }, (0, _fortuneCore.fixColumnStyleOverflowInFreeze)(context, c1, c2, (_b = refs.globalCache.freezen) === null || _b === void 0 ? void 0 : _b[context.currentSheetId]))
325
341
  });
@@ -204,14 +204,14 @@ var FormulaHint = function FormulaHint(props) {
204
204
  if (param.require === "o") {
205
205
  name = "[".concat(name, "]");
206
206
  }
207
- return /*#__PURE__*/_react.default.createElement("code", {
207
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("code", {
208
208
  className: "luckysheet-arguments-help-parameter font-family-mono mb-1 mt-2 color-text-default",
209
209
  dir: "auto",
210
210
  key: name,
211
211
  style: {
212
212
  backgroundColor: commaCount === i ? bgColor(fn.BRAND_SECONDARY_COLOR) : "transparent"
213
213
  }
214
- }, name, i !== fn.p.length - 1 && ", ");
214
+ }, name), i !== fn.p.length - 1 && ", ");
215
215
  })), /*#__PURE__*/_react.default.createElement("code", {
216
216
  className: "luckysheet-arguments-paren font-family-mono mb-1 mt-2 color-text-default"
217
217
  }, ")")), /*#__PURE__*/_react.default.createElement("div", {
@@ -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