@fileverse-dev/fortune-react 1.0.2-mod-67-patch-2 → 1.0.2-mod-70
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/dist/components/DuneChartsInputModal/DuneChartsInputModal.d.ts +1 -2
- package/dist/components/IFrameBoxs/iFrameBoxs.d.ts +1 -0
- package/dist/index.css +40 -19
- package/dist/index.esm.css +40 -19
- package/dist/index.esm.js +128 -326
- package/dist/index.js +127 -325
- package/dist/index.umd.css +40 -19
- package/dist/index.umd.js +4600 -3308
- package/dist/index.umd.min.css +1 -1
- package/dist/index.umd.min.js +9 -9
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defaultContext, defaultSettings, getSheetIndex, colLocationByIndex, fix
|
|
|
2
2
|
import React, { useContext, useRef, useState, useMemo, useCallback, useEffect, useLayoutEffect, useImperativeHandle } from 'react';
|
|
3
3
|
import produce, { applyPatches, enablePatches, produceWithPatches } from 'immer';
|
|
4
4
|
import _ from 'lodash';
|
|
5
|
-
import { LucideIcon, TextField, Button as Button$1, cn, IconButton, Checkbox, Divider as Divider$2, Table, TableHeader, TableRow, TableHead, TableBody, TableCell, Select as Select$1, SelectTrigger, SelectValue, SelectContent, SelectItem as SelectItem$1,
|
|
5
|
+
import { Tooltip, LucideIcon, TextField, Button as Button$1, cn, IconButton, Checkbox, Divider as Divider$2, Table, TableHeader, TableRow, TableHead, TableBody, TableCell, Select as Select$1, SelectTrigger, SelectValue, SelectContent, SelectItem as SelectItem$1, Popover, PopoverTrigger, PopoverContent, RadioGroup, RadioGroupItem, Label } from '@fileverse/ui';
|
|
6
6
|
import regeneratorRuntime from 'regenerator-runtime';
|
|
7
7
|
import Tippy from '@tippyjs/react';
|
|
8
8
|
export * from '@fileverse-dev/formulajs/crypto-constants';
|
|
@@ -854,7 +854,9 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
854
854
|
style: {
|
|
855
855
|
width: "20px"
|
|
856
856
|
}
|
|
857
|
-
})), v.API_KEY && (/*#__PURE__*/React.createElement(
|
|
857
|
+
})), v.API_KEY && (/*#__PURE__*/React.createElement(Tooltip, {
|
|
858
|
+
text: localStorage.getItem(v.API_KEY) ? "API Key added" : "API Key required"
|
|
859
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
858
860
|
style: {
|
|
859
861
|
borderRadius: "4px",
|
|
860
862
|
backgroundColor: "".concat(localStorage.getItem(v.API_KEY) ? "#177E23" : "#e8ebec"),
|
|
@@ -869,7 +871,7 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
869
871
|
width: "12px",
|
|
870
872
|
height: "12px"
|
|
871
873
|
}
|
|
872
|
-
}))))), /*#__PURE__*/React.createElement("div", {
|
|
874
|
+
})))))), /*#__PURE__*/React.createElement("div", {
|
|
873
875
|
className: "luckysheet-formula-search-detail mt-1 text-helper-text-sm color-text-secondary"
|
|
874
876
|
}, v.d));
|
|
875
877
|
}), /*#__PURE__*/React.createElement("hr", {
|
|
@@ -1918,6 +1920,7 @@ var SearchReplace = function SearchReplace(_ref) {
|
|
|
1918
1920
|
var _tableContainerRef$cu;
|
|
1919
1921
|
if (e.target === tableContainerRef.current || ((_tableContainerRef$cu = tableContainerRef.current) === null || _tableContainerRef$cu === void 0 ? void 0 : _tableContainerRef$cu.contains(e.target))) {
|
|
1920
1922
|
var _tableContainerRef$cu2;
|
|
1923
|
+
e.preventDefault();
|
|
1921
1924
|
e.stopPropagation();
|
|
1922
1925
|
(_tableContainerRef$cu2 = tableContainerRef.current) === null || _tableContainerRef$cu2 === void 0 ? void 0 : _tableContainerRef$cu2.focus();
|
|
1923
1926
|
}
|
|
@@ -1926,13 +1929,17 @@ var SearchReplace = function SearchReplace(_ref) {
|
|
|
1926
1929
|
e.preventDefault();
|
|
1927
1930
|
e.stopPropagation();
|
|
1928
1931
|
if (tableContainerRef.current) {
|
|
1929
|
-
|
|
1932
|
+
var delta = e.deltaY;
|
|
1933
|
+
var currentScroll = tableContainerRef.current.scrollTop;
|
|
1934
|
+
tableContainerRef.current.scrollTop = currentScroll + delta;
|
|
1930
1935
|
}
|
|
1931
1936
|
},
|
|
1932
1937
|
onTouchStart: function onTouchStart(e) {
|
|
1938
|
+
e.preventDefault();
|
|
1933
1939
|
e.stopPropagation();
|
|
1934
1940
|
},
|
|
1935
1941
|
onTouchMove: function onTouchMove(e) {
|
|
1942
|
+
e.preventDefault();
|
|
1936
1943
|
e.stopPropagation();
|
|
1937
1944
|
},
|
|
1938
1945
|
tabIndex: 0
|
|
@@ -3707,11 +3714,8 @@ var IframeBoxs = function IframeBoxs() {
|
|
|
3707
3714
|
});
|
|
3708
3715
|
})), /*#__PURE__*/React.createElement("div", {
|
|
3709
3716
|
className: "luckysheet-modal-dialog-controll"
|
|
3710
|
-
}, /*#__PURE__*/React.createElement(
|
|
3711
|
-
|
|
3712
|
-
role: "button",
|
|
3713
|
-
tabIndex: 0,
|
|
3714
|
-
title: "Delete",
|
|
3717
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
3718
|
+
icon: "Trash2",
|
|
3715
3719
|
onClick: function onClick() {
|
|
3716
3720
|
setContext(function (ctx) {
|
|
3717
3721
|
var currentSheet = ctx.luckysheetfile.find(function (sheet) {
|
|
@@ -3725,8 +3729,10 @@ var IframeBoxs = function IframeBoxs() {
|
|
|
3725
3729
|
}
|
|
3726
3730
|
ctx.activeIframe = undefined;
|
|
3727
3731
|
});
|
|
3728
|
-
}
|
|
3729
|
-
|
|
3732
|
+
},
|
|
3733
|
+
variant: "ghost",
|
|
3734
|
+
className: "fortune-iframe-boxes-delete-button"
|
|
3735
|
+
})))));
|
|
3730
3736
|
}));
|
|
3731
3737
|
};
|
|
3732
3738
|
|
|
@@ -4505,45 +4511,11 @@ var Combo = function Combo(_ref) {
|
|
|
4505
4511
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4506
4512
|
open = _useState2[0],
|
|
4507
4513
|
setOpen = _useState2[1];
|
|
4508
|
-
var _useState3 = useState({
|
|
4509
|
-
left: 0
|
|
4510
|
-
}),
|
|
4511
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
4512
|
-
popupPosition = _useState4[0],
|
|
4513
|
-
setPopupPosition = _useState4[1];
|
|
4514
|
-
var popupRef = useRef(null);
|
|
4515
4514
|
var buttonRef = useRef(null);
|
|
4516
4515
|
var isLucideIcon = useMemo(function () {
|
|
4517
4516
|
return (iconId === null || iconId === void 0 ? void 0 : iconId.startsWith("align-")) || ["text-overflow", "text-wrap", "text-clip", "font-color", "background", "border-all", "merge-all", "format", "conditionFormat", "filter", "comment", "image", "formula-sum", "dune", "template"].includes(iconId);
|
|
4518
4517
|
}, [iconId]);
|
|
4519
|
-
|
|
4520
|
-
setOpen(false);
|
|
4521
|
-
});
|
|
4522
|
-
useLayoutEffect(function () {
|
|
4523
|
-
if (!popupRef.current) {
|
|
4524
|
-
return;
|
|
4525
|
-
}
|
|
4526
|
-
if (!open) {
|
|
4527
|
-
setPopupPosition({
|
|
4528
|
-
left: 0
|
|
4529
|
-
});
|
|
4530
|
-
}
|
|
4531
|
-
var winW = window.innerWidth;
|
|
4532
|
-
var rect = popupRef.current.getBoundingClientRect();
|
|
4533
|
-
var menuW = rect.width;
|
|
4534
|
-
var left = rect.left;
|
|
4535
|
-
if (left + menuW > winW) {
|
|
4536
|
-
setPopupPosition({
|
|
4537
|
-
left: -rect.width + buttonRef.current.clientWidth
|
|
4538
|
-
});
|
|
4539
|
-
}
|
|
4540
|
-
}, [open]);
|
|
4541
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
4542
|
-
className: "fortune-toobar-combo-container fortune-toolbar-item"
|
|
4543
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
4544
|
-
ref: buttonRef,
|
|
4545
|
-
className: "fortune-toolbar-combo"
|
|
4546
|
-
}, !isLucideIcon ? (/*#__PURE__*/React.createElement(Tooltip, {
|
|
4518
|
+
var trigger = !isLucideIcon ? (/*#__PURE__*/React.createElement(Tooltip, {
|
|
4547
4519
|
text: tooltip,
|
|
4548
4520
|
placement: "bottom"
|
|
4549
4521
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -4552,8 +4524,6 @@ var Combo = function Combo(_ref) {
|
|
|
4552
4524
|
if (_onClick) {
|
|
4553
4525
|
_onClick(e);
|
|
4554
4526
|
if (!showArrow) setOpen(!open);
|
|
4555
|
-
} else {
|
|
4556
|
-
setOpen(!open);
|
|
4557
4527
|
}
|
|
4558
4528
|
},
|
|
4559
4529
|
tabIndex: 0,
|
|
@@ -4574,23 +4544,23 @@ var Combo = function Combo(_ref) {
|
|
|
4574
4544
|
onClick: function onClick() {
|
|
4575
4545
|
return setOpen(!open);
|
|
4576
4546
|
},
|
|
4577
|
-
className:
|
|
4578
|
-
})))
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
}, /*#__PURE__*/React.createElement(
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4547
|
+
className: "fortune-toolbar-combo-button"
|
|
4548
|
+
})));
|
|
4549
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
4550
|
+
ref: buttonRef
|
|
4551
|
+
}, /*#__PURE__*/React.createElement(Popover, {
|
|
4552
|
+
open: open,
|
|
4553
|
+
onOpenChange: setOpen
|
|
4554
|
+
}, /*#__PURE__*/React.createElement(PopoverTrigger, {
|
|
4555
|
+
asChild: true
|
|
4556
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
4557
|
+
className: "flex items-center"
|
|
4558
|
+
}, trigger)), /*#__PURE__*/React.createElement(PopoverContent, {
|
|
4559
|
+
align: "start",
|
|
4560
|
+
side: "bottom",
|
|
4561
|
+
sideOffset: 4,
|
|
4562
|
+
alignOffset: -16,
|
|
4563
|
+
className: "fortune-toolbar-combo-popup border-none"
|
|
4594
4564
|
}, children === null || children === void 0 ? void 0 : children(setOpen))));
|
|
4595
4565
|
};
|
|
4596
4566
|
|
|
@@ -5468,7 +5438,6 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
|
|
|
5468
5438
|
var isOpen = _ref.isOpen,
|
|
5469
5439
|
onClose = _ref.onClose,
|
|
5470
5440
|
onSubmit = _ref.onSubmit,
|
|
5471
|
-
icon = _ref.icon,
|
|
5472
5441
|
_ref$submitText = _ref.submitText,
|
|
5473
5442
|
submitText = _ref$submitText === void 0 ? "Submit" : _ref$submitText,
|
|
5474
5443
|
_ref$placeholder = _ref.placeholder,
|
|
@@ -5510,6 +5479,8 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
|
|
|
5510
5479
|
e.stopPropagation();
|
|
5511
5480
|
if (e.key === "Enter") {
|
|
5512
5481
|
handleSubmit();
|
|
5482
|
+
} else if (e.key === "Escape") {
|
|
5483
|
+
onClose();
|
|
5513
5484
|
}
|
|
5514
5485
|
};
|
|
5515
5486
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -5526,8 +5497,8 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
|
|
|
5526
5497
|
onKeyDown: handleKeyDown
|
|
5527
5498
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5528
5499
|
className: "modal-header"
|
|
5529
|
-
}, /*#__PURE__*/React.createElement(
|
|
5530
|
-
name:
|
|
5500
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
5501
|
+
name: "DuneChart"
|
|
5531
5502
|
}), /*#__PURE__*/React.createElement("input", {
|
|
5532
5503
|
ref: inputRef,
|
|
5533
5504
|
className: "modal-input",
|
|
@@ -5872,46 +5843,18 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
5872
5843
|
if (value === "fmtOtherSelf") {
|
|
5873
5844
|
return /*#__PURE__*/React.createElement(Option, {
|
|
5874
5845
|
key: value,
|
|
5875
|
-
|
|
5876
|
-
return showSubMenu(e, "more-format");
|
|
5877
|
-
},
|
|
5878
|
-
onMouseLeave: function onMouseLeave(e) {
|
|
5879
|
-
return hideSubMenu(e, "more-format");
|
|
5880
|
-
}
|
|
5881
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
5882
|
-
className: "fortune-toolbar-menu-line"
|
|
5883
|
-
}, /*#__PURE__*/React.createElement("div", null, text), /*#__PURE__*/React.createElement(SVGIcon, {
|
|
5884
|
-
name: "rightArrow",
|
|
5885
|
-
width: 16,
|
|
5886
|
-
height: 16
|
|
5887
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
5888
|
-
className: "more-format toolbar-item-sub-menu fortune-toolbar-select",
|
|
5889
|
-
style: {
|
|
5890
|
-
display: "none",
|
|
5891
|
-
width: 150,
|
|
5892
|
-
bottom: 10,
|
|
5893
|
-
top: undefined
|
|
5894
|
-
}
|
|
5895
|
-
}, [{
|
|
5896
|
-
text: toolbarFormat.moreCurrency,
|
|
5897
|
-
onclick: function onclick() {
|
|
5846
|
+
onClick: function onClick() {
|
|
5898
5847
|
showDialog(/*#__PURE__*/React.createElement(FormatSearch, {
|
|
5899
5848
|
onCancel: hideDialog,
|
|
5900
5849
|
type: "currency"
|
|
5901
5850
|
}), undefined, "Currency Format");
|
|
5902
5851
|
setOpen(false);
|
|
5903
5852
|
}
|
|
5904
|
-
}
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
v.onclick();
|
|
5910
|
-
setOpen(false);
|
|
5911
|
-
},
|
|
5912
|
-
tabIndex: 0
|
|
5913
|
-
}, v.text);
|
|
5914
|
-
})));
|
|
5853
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
5854
|
+
className: "fortune-toolbar-menu-line"
|
|
5855
|
+
}, /*#__PURE__*/React.createElement("div", null, text), /*#__PURE__*/React.createElement("div", {
|
|
5856
|
+
className: "fortune-toolbar-subtext"
|
|
5857
|
+
}, example)));
|
|
5915
5858
|
}
|
|
5916
5859
|
return /*#__PURE__*/React.createElement(Option, {
|
|
5917
5860
|
key: value,
|
|
@@ -6930,7 +6873,6 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
6930
6873
|
onClose: function onClose() {
|
|
6931
6874
|
return setShowDuneModal(false);
|
|
6932
6875
|
},
|
|
6933
|
-
icon: "dune-logo",
|
|
6934
6876
|
placeholder: "Add Dune chart link to embed",
|
|
6935
6877
|
submitText: "Embed Dune chart"
|
|
6936
6878
|
}))));
|
|
@@ -7811,12 +7753,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
7811
7753
|
className: "context-item"
|
|
7812
7754
|
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
7813
7755
|
name: "split-flv",
|
|
7814
|
-
width:
|
|
7815
|
-
height:
|
|
7816
|
-
style: {
|
|
7817
|
-
marginTop: "4px",
|
|
7818
|
-
marginRight: "8px"
|
|
7819
|
-
}
|
|
7756
|
+
width: 18,
|
|
7757
|
+
height: 18
|
|
7820
7758
|
}), "Split text to columns"));
|
|
7821
7759
|
}
|
|
7822
7760
|
if (name === "freeze-row") {
|
|
@@ -7838,15 +7776,9 @@ var ContextMenu = function ContextMenu() {
|
|
|
7838
7776
|
}
|
|
7839
7777
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7840
7778
|
className: "context-item"
|
|
7841
|
-
}, /*#__PURE__*/React.createElement(
|
|
7842
|
-
name: "
|
|
7843
|
-
|
|
7844
|
-
height: 16,
|
|
7845
|
-
style: {
|
|
7846
|
-
marginTop: "4px",
|
|
7847
|
-
marginRight: "4px"
|
|
7848
|
-
}
|
|
7849
|
-
}), isFrozen ? "Unfreeze row" : "Freeze to current row"));
|
|
7779
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
7780
|
+
name: "Snowflake"
|
|
7781
|
+
}), /*#__PURE__*/React.createElement("p", null, isFrozen ? "Unfreeze row" : "Freeze upto current row")));
|
|
7850
7782
|
}
|
|
7851
7783
|
if (name === "freeze-column") {
|
|
7852
7784
|
var _freezeState = getFreezeState(context);
|
|
@@ -7868,15 +7800,9 @@ var ContextMenu = function ContextMenu() {
|
|
|
7868
7800
|
}
|
|
7869
7801
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7870
7802
|
className: "context-item"
|
|
7871
|
-
}, /*#__PURE__*/React.createElement(
|
|
7872
|
-
name: "
|
|
7873
|
-
|
|
7874
|
-
height: 18,
|
|
7875
|
-
style: {
|
|
7876
|
-
marginTop: "4px",
|
|
7877
|
-
marginRight: "4px"
|
|
7878
|
-
}
|
|
7879
|
-
}), /*#__PURE__*/React.createElement("p", null, _isFrozen ? "Unfreeze column" : "Freeze to current column")));
|
|
7803
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
7804
|
+
name: "Snowflake"
|
|
7805
|
+
}), /*#__PURE__*/React.createElement("p", null, _isFrozen ? "Unfreeze column" : "Freeze upto current column")));
|
|
7880
7806
|
}
|
|
7881
7807
|
if (name === "comment") {
|
|
7882
7808
|
return /*#__PURE__*/React.createElement(Menu, {
|
|
@@ -7889,14 +7815,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
7889
7815
|
}
|
|
7890
7816
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7891
7817
|
className: "context-item"
|
|
7892
|
-
}, /*#__PURE__*/React.createElement(
|
|
7893
|
-
name: "
|
|
7894
|
-
width: 18,
|
|
7895
|
-
height: 18,
|
|
7896
|
-
style: {
|
|
7897
|
-
marginTop: "4px",
|
|
7898
|
-
marginRight: "8px"
|
|
7899
|
-
}
|
|
7818
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
7819
|
+
name: "MessageSquarePlus"
|
|
7900
7820
|
}), /*#__PURE__*/React.createElement("p", null, "Comment")));
|
|
7901
7821
|
}
|
|
7902
7822
|
if (name === "dataVerification") {
|
|
@@ -7911,13 +7831,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
7911
7831
|
}
|
|
7912
7832
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7913
7833
|
className: "context-item"
|
|
7914
|
-
}, /*#__PURE__*/React.createElement(
|
|
7915
|
-
name: "
|
|
7916
|
-
width: 20,
|
|
7917
|
-
height: 20,
|
|
7918
|
-
style: {
|
|
7919
|
-
marginRight: "7px"
|
|
7920
|
-
}
|
|
7834
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
7835
|
+
name: "ShieldCheck"
|
|
7921
7836
|
}), /*#__PURE__*/React.createElement("p", null, "Data Verification")));
|
|
7922
7837
|
}
|
|
7923
7838
|
if (name === "searchReplace") {
|
|
@@ -7933,13 +7848,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
7933
7848
|
}
|
|
7934
7849
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7935
7850
|
className: "context-item"
|
|
7936
|
-
}, /*#__PURE__*/React.createElement(
|
|
7937
|
-
name: "
|
|
7938
|
-
width: 20,
|
|
7939
|
-
height: 20,
|
|
7940
|
-
style: {
|
|
7941
|
-
marginRight: "7px"
|
|
7942
|
-
}
|
|
7851
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
7852
|
+
name: "Search"
|
|
7943
7853
|
}), /*#__PURE__*/React.createElement("p", null, "Find and Replace")));
|
|
7944
7854
|
}
|
|
7945
7855
|
if (name === "copy") {
|
|
@@ -7959,14 +7869,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
7959
7869
|
}
|
|
7960
7870
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7961
7871
|
className: "context-item"
|
|
7962
|
-
}, /*#__PURE__*/React.createElement(
|
|
7963
|
-
name: "
|
|
7964
|
-
width: 21,
|
|
7965
|
-
height: 21,
|
|
7966
|
-
style: {
|
|
7967
|
-
marginTop: "4px",
|
|
7968
|
-
marginRight: "4px"
|
|
7969
|
-
}
|
|
7872
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
7873
|
+
name: "Copy"
|
|
7970
7874
|
}), /*#__PURE__*/React.createElement("p", null, rightclick.copy)));
|
|
7971
7875
|
}
|
|
7972
7876
|
if (name === "cut") {
|
|
@@ -7999,13 +7903,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
7999
7903
|
}
|
|
8000
7904
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8001
7905
|
className: "context-item"
|
|
8002
|
-
}, /*#__PURE__*/React.createElement(
|
|
8003
|
-
name: "
|
|
8004
|
-
width: 17,
|
|
8005
|
-
height: 17,
|
|
8006
|
-
style: {
|
|
8007
|
-
marginRight: "8px"
|
|
8008
|
-
}
|
|
7906
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
7907
|
+
name: "Scissors"
|
|
8009
7908
|
}), /*#__PURE__*/React.createElement("p", null, "Cut")));
|
|
8010
7909
|
}
|
|
8011
7910
|
if (name === "paste" && regeneratorRuntime) {
|
|
@@ -8037,13 +7936,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8037
7936
|
}()
|
|
8038
7937
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8039
7938
|
className: "context-item"
|
|
8040
|
-
}, /*#__PURE__*/React.createElement(
|
|
8041
|
-
name: "
|
|
8042
|
-
width: 17,
|
|
8043
|
-
height: 17,
|
|
8044
|
-
style: {
|
|
8045
|
-
marginRight: "8px"
|
|
8046
|
-
}
|
|
7939
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
7940
|
+
name: "Clipboard"
|
|
8047
7941
|
}), /*#__PURE__*/React.createElement("p", null, rightclick.paste)));
|
|
8048
7942
|
}
|
|
8049
7943
|
if (name === "insert-column") {
|
|
@@ -8075,10 +7969,10 @@ var ContextMenu = function ContextMenu() {
|
|
|
8075
7969
|
insertRowColOp: insertRowColOp
|
|
8076
7970
|
});
|
|
8077
7971
|
}
|
|
8078
|
-
}, /*#__PURE__*/React.createElement(
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
7972
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7973
|
+
className: "context-item"
|
|
7974
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
7975
|
+
name: "Plus"
|
|
8082
7976
|
}), /*#__PURE__*/React.createElement("div", null, "Insert column to the left")));
|
|
8083
7977
|
});
|
|
8084
7978
|
}
|
|
@@ -8111,10 +8005,10 @@ var ContextMenu = function ContextMenu() {
|
|
|
8111
8005
|
insertRowColOp: insertRowColOp
|
|
8112
8006
|
});
|
|
8113
8007
|
}
|
|
8114
|
-
}, /*#__PURE__*/React.createElement(
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8008
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8009
|
+
className: "context-item"
|
|
8010
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8011
|
+
name: "Plus"
|
|
8118
8012
|
}), /*#__PURE__*/React.createElement("div", null, "Insert row below")));
|
|
8119
8013
|
});
|
|
8120
8014
|
}
|
|
@@ -8161,13 +8055,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8161
8055
|
}
|
|
8162
8056
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8163
8057
|
className: "context-item"
|
|
8164
|
-
}, /*#__PURE__*/React.createElement(
|
|
8165
|
-
name: "
|
|
8166
|
-
width: 18,
|
|
8167
|
-
height: 18,
|
|
8168
|
-
style: {
|
|
8169
|
-
marginRight: "8px"
|
|
8170
|
-
}
|
|
8058
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8059
|
+
name: "Trash2"
|
|
8171
8060
|
}), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
|
|
8172
8061
|
}
|
|
8173
8062
|
if (name === "cell-delete-column") {
|
|
@@ -8213,13 +8102,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8213
8102
|
}
|
|
8214
8103
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8215
8104
|
className: "context-item"
|
|
8216
|
-
}, /*#__PURE__*/React.createElement(
|
|
8217
|
-
name: "
|
|
8218
|
-
width: 18,
|
|
8219
|
-
height: 18,
|
|
8220
|
-
style: {
|
|
8221
|
-
marginRight: "8px"
|
|
8222
|
-
}
|
|
8105
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8106
|
+
name: "Trash2"
|
|
8223
8107
|
}), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
|
|
8224
8108
|
}
|
|
8225
8109
|
if (name === "delete-row") {
|
|
@@ -8264,13 +8148,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8264
8148
|
}
|
|
8265
8149
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8266
8150
|
className: "context-item"
|
|
8267
|
-
}, /*#__PURE__*/React.createElement(
|
|
8268
|
-
name: "
|
|
8269
|
-
width: 18,
|
|
8270
|
-
height: 18,
|
|
8271
|
-
style: {
|
|
8272
|
-
marginRight: "8px"
|
|
8273
|
-
}
|
|
8151
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8152
|
+
name: "Trash2"
|
|
8274
8153
|
}), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.row))));
|
|
8275
8154
|
}
|
|
8276
8155
|
if (name === "cell-delete-row") {
|
|
@@ -8315,13 +8194,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8315
8194
|
}
|
|
8316
8195
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8317
8196
|
className: "context-item"
|
|
8318
|
-
}, /*#__PURE__*/React.createElement(
|
|
8319
|
-
name: "
|
|
8320
|
-
width: 18,
|
|
8321
|
-
height: 18,
|
|
8322
|
-
style: {
|
|
8323
|
-
marginRight: "8px"
|
|
8324
|
-
}
|
|
8197
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8198
|
+
name: "Trash2"
|
|
8325
8199
|
}), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.row))));
|
|
8326
8200
|
}
|
|
8327
8201
|
if (name === "hide-row") {
|
|
@@ -8344,13 +8218,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8344
8218
|
}
|
|
8345
8219
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8346
8220
|
className: "context-item"
|
|
8347
|
-
}, /*#__PURE__*/React.createElement(
|
|
8348
|
-
name: "
|
|
8349
|
-
width: 18,
|
|
8350
|
-
height: 18,
|
|
8351
|
-
style: {
|
|
8352
|
-
marginRight: "8px"
|
|
8353
|
-
}
|
|
8221
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8222
|
+
name: "EyeOff"
|
|
8354
8223
|
}), /*#__PURE__*/React.createElement("div", null, rightclick[item] + rightclick.row)));
|
|
8355
8224
|
});
|
|
8356
8225
|
}
|
|
@@ -8374,13 +8243,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8374
8243
|
}
|
|
8375
8244
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8376
8245
|
className: "context-item"
|
|
8377
|
-
}, /*#__PURE__*/React.createElement(
|
|
8378
|
-
name: "
|
|
8379
|
-
width: 18,
|
|
8380
|
-
height: 18,
|
|
8381
|
-
style: {
|
|
8382
|
-
marginRight: "8px"
|
|
8383
|
-
}
|
|
8246
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8247
|
+
name: "EyeOff"
|
|
8384
8248
|
}), /*#__PURE__*/React.createElement("div", null, rightclick[item] + rightclick.column)));
|
|
8385
8249
|
});
|
|
8386
8250
|
}
|
|
@@ -8418,11 +8282,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8418
8282
|
className: "context-item"
|
|
8419
8283
|
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8420
8284
|
name: "resize-flv",
|
|
8421
|
-
width:
|
|
8422
|
-
height:
|
|
8423
|
-
style: {
|
|
8424
|
-
marginRight: "8px"
|
|
8425
|
-
}
|
|
8285
|
+
width: 16,
|
|
8286
|
+
height: 16
|
|
8426
8287
|
}), /*#__PURE__*/React.createElement("div", null, "Resize row height", /*#__PURE__*/React.createElement("input", {
|
|
8427
8288
|
onClick: function onClick(e) {
|
|
8428
8289
|
return e.stopPropagation();
|
|
@@ -8458,11 +8319,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8458
8319
|
className: "context-item"
|
|
8459
8320
|
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8460
8321
|
name: "resize-flv",
|
|
8461
|
-
width:
|
|
8462
|
-
height:
|
|
8463
|
-
style: {
|
|
8464
|
-
marginRight: "8px"
|
|
8465
|
-
}
|
|
8322
|
+
width: 16,
|
|
8323
|
+
height: 16
|
|
8466
8324
|
}), /*#__PURE__*/React.createElement("div", null, "Resize column width")))) : null;
|
|
8467
8325
|
}
|
|
8468
8326
|
if (name === "clear") {
|
|
@@ -8490,13 +8348,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8490
8348
|
}
|
|
8491
8349
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8492
8350
|
className: "context-item"
|
|
8493
|
-
}, /*#__PURE__*/React.createElement(
|
|
8494
|
-
name: "
|
|
8495
|
-
width: 17,
|
|
8496
|
-
height: 17,
|
|
8497
|
-
style: {
|
|
8498
|
-
marginRight: "8px"
|
|
8499
|
-
}
|
|
8351
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8352
|
+
name: "Eraser"
|
|
8500
8353
|
}), /*#__PURE__*/React.createElement("p", null, rightclick.clearContent)));
|
|
8501
8354
|
}
|
|
8502
8355
|
if (name === "ascSort") {
|
|
@@ -8512,14 +8365,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8512
8365
|
}
|
|
8513
8366
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8514
8367
|
className: "context-item"
|
|
8515
|
-
}, /*#__PURE__*/React.createElement(
|
|
8516
|
-
name: "
|
|
8517
|
-
width: 18,
|
|
8518
|
-
height: 18,
|
|
8519
|
-
style: {
|
|
8520
|
-
marginTop: "4px",
|
|
8521
|
-
marginRight: "8px"
|
|
8522
|
-
}
|
|
8368
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8369
|
+
name: "ArrowDown01"
|
|
8523
8370
|
}), /*#__PURE__*/React.createElement("p", null, "Ascending sort")));
|
|
8524
8371
|
}
|
|
8525
8372
|
if (name === "desSort") {
|
|
@@ -8535,14 +8382,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8535
8382
|
}
|
|
8536
8383
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8537
8384
|
className: "context-item"
|
|
8538
|
-
}, /*#__PURE__*/React.createElement(
|
|
8539
|
-
name: "
|
|
8540
|
-
width: 18,
|
|
8541
|
-
height: 18,
|
|
8542
|
-
style: {
|
|
8543
|
-
marginTop: "4px",
|
|
8544
|
-
marginRight: "8px"
|
|
8545
|
-
}
|
|
8385
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8386
|
+
name: "ArrowDown10"
|
|
8546
8387
|
}), /*#__PURE__*/React.createElement("p", null, "Descending sort")));
|
|
8547
8388
|
}
|
|
8548
8389
|
if (name === "sort") {
|
|
@@ -8576,13 +8417,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8576
8417
|
style: {
|
|
8577
8418
|
height: "40px"
|
|
8578
8419
|
}
|
|
8579
|
-
}, /*#__PURE__*/React.createElement(
|
|
8580
|
-
name: "
|
|
8581
|
-
width: 24,
|
|
8582
|
-
height: 18,
|
|
8583
|
-
style: {
|
|
8584
|
-
marginRight: "4px"
|
|
8585
|
-
}
|
|
8420
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8421
|
+
name: "ArrowUp"
|
|
8586
8422
|
}), /*#__PURE__*/React.createElement("p", null, sort.asc))), /*#__PURE__*/React.createElement(Menu, {
|
|
8587
8423
|
onClick: function onClick() {
|
|
8588
8424
|
setContext(function (draftCtx) {
|
|
@@ -8595,13 +8431,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8595
8431
|
style: {
|
|
8596
8432
|
height: "40px"
|
|
8597
8433
|
}
|
|
8598
|
-
}, /*#__PURE__*/React.createElement(
|
|
8599
|
-
name: "
|
|
8600
|
-
width: 24,
|
|
8601
|
-
height: 18,
|
|
8602
|
-
style: {
|
|
8603
|
-
marginRight: "4px"
|
|
8604
|
-
}
|
|
8434
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8435
|
+
name: "ArrowDown"
|
|
8605
8436
|
}), /*#__PURE__*/React.createElement("p", null, sort.desc))))),
|
|
8606
8437
|
trigger: "mouseenter focus",
|
|
8607
8438
|
hideOnClick: false
|
|
@@ -8609,16 +8440,12 @@ var ContextMenu = function ContextMenu() {
|
|
|
8609
8440
|
className: "flex items-center justify-between w-full"
|
|
8610
8441
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8611
8442
|
className: "context-item"
|
|
8612
|
-
}, /*#__PURE__*/React.createElement(
|
|
8613
|
-
name: "
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
}
|
|
8619
|
-
}), /*#__PURE__*/React.createElement("p", null, rightclick.sortSelection)), /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8620
|
-
name: "rightArrow",
|
|
8621
|
-
width: 18
|
|
8443
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8444
|
+
name: "ArrowDownUp"
|
|
8445
|
+
}), /*#__PURE__*/React.createElement("p", null, rightclick.sortSelection)), /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8446
|
+
name: "ChevronRight",
|
|
8447
|
+
width: 16,
|
|
8448
|
+
height: 16
|
|
8622
8449
|
})))));
|
|
8623
8450
|
}
|
|
8624
8451
|
if (name === "filter") {
|
|
@@ -8652,13 +8479,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8652
8479
|
style: {
|
|
8653
8480
|
height: "40px"
|
|
8654
8481
|
}
|
|
8655
|
-
}, /*#__PURE__*/React.createElement(
|
|
8656
|
-
name: "
|
|
8657
|
-
width: 22,
|
|
8658
|
-
height: 22,
|
|
8659
|
-
style: {
|
|
8660
|
-
marginRight: "4px"
|
|
8661
|
-
}
|
|
8482
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8483
|
+
name: "Filter"
|
|
8662
8484
|
}), /*#__PURE__*/React.createElement("p", null, filter.filter))), /*#__PURE__*/React.createElement(Menu, {
|
|
8663
8485
|
onClick: function onClick() {
|
|
8664
8486
|
setContext(function (draftCtx) {
|
|
@@ -8671,14 +8493,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8671
8493
|
style: {
|
|
8672
8494
|
height: "40px"
|
|
8673
8495
|
}
|
|
8674
|
-
}, /*#__PURE__*/React.createElement(
|
|
8675
|
-
name: "
|
|
8676
|
-
width: 22,
|
|
8677
|
-
height: 22,
|
|
8678
|
-
style: {
|
|
8679
|
-
marginRight: "4px",
|
|
8680
|
-
marginLeft: "2px"
|
|
8681
|
-
}
|
|
8496
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8497
|
+
name: "Eraser"
|
|
8682
8498
|
}), /*#__PURE__*/React.createElement("p", null, filter.clearFilter))))),
|
|
8683
8499
|
trigger: "mouseenter focus",
|
|
8684
8500
|
hideOnClick: false
|
|
@@ -8686,17 +8502,12 @@ var ContextMenu = function ContextMenu() {
|
|
|
8686
8502
|
className: "flex items-center justify-between w-full"
|
|
8687
8503
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8688
8504
|
className: "context-item"
|
|
8689
|
-
}, /*#__PURE__*/React.createElement(
|
|
8690
|
-
name: "
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
marginTop: "2px"
|
|
8696
|
-
}
|
|
8697
|
-
}), /*#__PURE__*/React.createElement("p", null, rightclick.filterSelection)), /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8698
|
-
name: "rightArrow",
|
|
8699
|
-
width: 18
|
|
8505
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8506
|
+
name: "Filter"
|
|
8507
|
+
}), /*#__PURE__*/React.createElement("p", null, rightclick.filterSelection)), /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8508
|
+
name: "ChevronRight",
|
|
8509
|
+
width: 16,
|
|
8510
|
+
height: 16
|
|
8700
8511
|
})))));
|
|
8701
8512
|
}
|
|
8702
8513
|
if (name === "image") {
|
|
@@ -8721,13 +8532,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
8721
8532
|
}
|
|
8722
8533
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8723
8534
|
className: "context-item"
|
|
8724
|
-
}, /*#__PURE__*/React.createElement(
|
|
8725
|
-
name: "
|
|
8726
|
-
width: 20,
|
|
8727
|
-
height: 20,
|
|
8728
|
-
style: {
|
|
8729
|
-
marginRight: "7px"
|
|
8730
|
-
}
|
|
8535
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8536
|
+
name: "Link"
|
|
8731
8537
|
}), /*#__PURE__*/React.createElement("p", null, rightclick.link)));
|
|
8732
8538
|
}
|
|
8733
8539
|
if (name === "conditionFormat") {
|
|
@@ -8758,16 +8564,11 @@ var ContextMenu = function ContextMenu() {
|
|
|
8758
8564
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement("div", {
|
|
8759
8565
|
className: "flex items-center justify-between w-full"
|
|
8760
8566
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8761
|
-
className: "flex items-center gap-2"
|
|
8762
|
-
}, /*#__PURE__*/React.createElement(
|
|
8763
|
-
name: "
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
style: {
|
|
8767
|
-
marginRight: "2px"
|
|
8768
|
-
}
|
|
8769
|
-
}), /*#__PURE__*/React.createElement("p", null, rightclick.conditionFormat || "Conditional Format")), /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8770
|
-
name: "rightArrow",
|
|
8567
|
+
className: "flex items-center gap-2 context-item"
|
|
8568
|
+
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8569
|
+
name: "PaintbrushVertical"
|
|
8570
|
+
}), /*#__PURE__*/React.createElement("p", null, rightclick.conditionFormat || "Conditional Format")), /*#__PURE__*/React.createElement(LucideIcon, {
|
|
8571
|
+
name: "ChevronRight",
|
|
8771
8572
|
width: 16,
|
|
8772
8573
|
height: 16
|
|
8773
8574
|
})))));
|
|
@@ -12084,13 +11885,14 @@ var DunePreview = function DunePreview(_ref) {
|
|
|
12084
11885
|
}
|
|
12085
11886
|
})), /*#__PURE__*/React.createElement("p", null, "Do you want to insert Dune chart?"), /*#__PURE__*/React.createElement("div", {
|
|
12086
11887
|
className: "fortune-dune-preview-footer"
|
|
12087
|
-
}, /*#__PURE__*/React.createElement(
|
|
12088
|
-
|
|
11888
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
11889
|
+
type: "button",
|
|
12089
11890
|
onClick: onKeepAsLink,
|
|
12090
|
-
className: "
|
|
12091
|
-
}, "Keep as Link"), /*#__PURE__*/React.createElement(
|
|
11891
|
+
className: "fortune-dune-preview-button"
|
|
11892
|
+
}, "Keep as Link"), /*#__PURE__*/React.createElement("button", {
|
|
11893
|
+
type: "button",
|
|
12092
11894
|
onClick: onEmbed,
|
|
12093
|
-
className: "
|
|
11895
|
+
className: "fortune-dune-preview-button primary"
|
|
12094
11896
|
}, "Embed")));
|
|
12095
11897
|
};
|
|
12096
11898
|
|