@fileverse-dev/fortune-react 1.0.2-mod-69 → 1.0.2-mod-67-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.
- package/dist/components/DuneChartsInputModal/DuneChartsInputModal.d.ts +2 -1
- package/dist/components/IFrameBoxs/iFrameBoxs.d.ts +0 -1
- package/dist/index.css +15 -39
- package/dist/index.esm.css +15 -39
- package/dist/index.esm.js +242 -104
- package/dist/index.js +241 -103
- package/dist/index.umd.css +15 -39
- package/dist/index.umd.js +3221 -4543
- 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 {
|
|
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, Tooltip, 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,9 +854,7 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
854
854
|
style: {
|
|
855
855
|
width: "20px"
|
|
856
856
|
}
|
|
857
|
-
})), v.API_KEY && (/*#__PURE__*/React.createElement(
|
|
858
|
-
text: localStorage.getItem(v.API_KEY) ? "API Key added" : "API Key required"
|
|
859
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
857
|
+
})), v.API_KEY && (/*#__PURE__*/React.createElement("div", {
|
|
860
858
|
style: {
|
|
861
859
|
borderRadius: "4px",
|
|
862
860
|
backgroundColor: "".concat(localStorage.getItem(v.API_KEY) ? "#177E23" : "#e8ebec"),
|
|
@@ -871,7 +869,7 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
871
869
|
width: "12px",
|
|
872
870
|
height: "12px"
|
|
873
871
|
}
|
|
874
|
-
})))))
|
|
872
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
|
875
873
|
className: "luckysheet-formula-search-detail mt-1 text-helper-text-sm color-text-secondary"
|
|
876
874
|
}, v.d));
|
|
877
875
|
}), /*#__PURE__*/React.createElement("hr", {
|
|
@@ -1920,7 +1918,6 @@ var SearchReplace = function SearchReplace(_ref) {
|
|
|
1920
1918
|
var _tableContainerRef$cu;
|
|
1921
1919
|
if (e.target === tableContainerRef.current || ((_tableContainerRef$cu = tableContainerRef.current) === null || _tableContainerRef$cu === void 0 ? void 0 : _tableContainerRef$cu.contains(e.target))) {
|
|
1922
1920
|
var _tableContainerRef$cu2;
|
|
1923
|
-
e.preventDefault();
|
|
1924
1921
|
e.stopPropagation();
|
|
1925
1922
|
(_tableContainerRef$cu2 = tableContainerRef.current) === null || _tableContainerRef$cu2 === void 0 ? void 0 : _tableContainerRef$cu2.focus();
|
|
1926
1923
|
}
|
|
@@ -1929,17 +1926,13 @@ var SearchReplace = function SearchReplace(_ref) {
|
|
|
1929
1926
|
e.preventDefault();
|
|
1930
1927
|
e.stopPropagation();
|
|
1931
1928
|
if (tableContainerRef.current) {
|
|
1932
|
-
|
|
1933
|
-
var currentScroll = tableContainerRef.current.scrollTop;
|
|
1934
|
-
tableContainerRef.current.scrollTop = currentScroll + delta;
|
|
1929
|
+
tableContainerRef.current.scrollTop += e.deltaY;
|
|
1935
1930
|
}
|
|
1936
1931
|
},
|
|
1937
1932
|
onTouchStart: function onTouchStart(e) {
|
|
1938
|
-
e.preventDefault();
|
|
1939
1933
|
e.stopPropagation();
|
|
1940
1934
|
},
|
|
1941
1935
|
onTouchMove: function onTouchMove(e) {
|
|
1942
|
-
e.preventDefault();
|
|
1943
1936
|
e.stopPropagation();
|
|
1944
1937
|
},
|
|
1945
1938
|
tabIndex: 0
|
|
@@ -3714,8 +3707,11 @@ var IframeBoxs = function IframeBoxs() {
|
|
|
3714
3707
|
});
|
|
3715
3708
|
})), /*#__PURE__*/React.createElement("div", {
|
|
3716
3709
|
className: "luckysheet-modal-dialog-controll"
|
|
3717
|
-
}, /*#__PURE__*/React.createElement(
|
|
3718
|
-
|
|
3710
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
3711
|
+
className: "luckysheet-modal-controll-btn luckysheet-modal-controll-del",
|
|
3712
|
+
role: "button",
|
|
3713
|
+
tabIndex: 0,
|
|
3714
|
+
title: "Delete",
|
|
3719
3715
|
onClick: function onClick() {
|
|
3720
3716
|
setContext(function (ctx) {
|
|
3721
3717
|
var currentSheet = ctx.luckysheetfile.find(function (sheet) {
|
|
@@ -3729,10 +3725,8 @@ var IframeBoxs = function IframeBoxs() {
|
|
|
3729
3725
|
}
|
|
3730
3726
|
ctx.activeIframe = undefined;
|
|
3731
3727
|
});
|
|
3732
|
-
}
|
|
3733
|
-
|
|
3734
|
-
className: "fortune-iframe-boxes-delete-button"
|
|
3735
|
-
})))));
|
|
3728
|
+
}
|
|
3729
|
+
}, "DELETE")))));
|
|
3736
3730
|
}));
|
|
3737
3731
|
};
|
|
3738
3732
|
|
|
@@ -5474,6 +5468,7 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
|
|
|
5474
5468
|
var isOpen = _ref.isOpen,
|
|
5475
5469
|
onClose = _ref.onClose,
|
|
5476
5470
|
onSubmit = _ref.onSubmit,
|
|
5471
|
+
icon = _ref.icon,
|
|
5477
5472
|
_ref$submitText = _ref.submitText,
|
|
5478
5473
|
submitText = _ref$submitText === void 0 ? "Submit" : _ref$submitText,
|
|
5479
5474
|
_ref$placeholder = _ref.placeholder,
|
|
@@ -5515,8 +5510,6 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
|
|
|
5515
5510
|
e.stopPropagation();
|
|
5516
5511
|
if (e.key === "Enter") {
|
|
5517
5512
|
handleSubmit();
|
|
5518
|
-
} else if (e.key === "Escape") {
|
|
5519
|
-
onClose();
|
|
5520
5513
|
}
|
|
5521
5514
|
};
|
|
5522
5515
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -5533,8 +5526,8 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
|
|
|
5533
5526
|
onKeyDown: handleKeyDown
|
|
5534
5527
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5535
5528
|
className: "modal-header"
|
|
5536
|
-
}, /*#__PURE__*/React.createElement(
|
|
5537
|
-
name:
|
|
5529
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
5530
|
+
name: icon
|
|
5538
5531
|
}), /*#__PURE__*/React.createElement("input", {
|
|
5539
5532
|
ref: inputRef,
|
|
5540
5533
|
className: "modal-input",
|
|
@@ -6937,6 +6930,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
6937
6930
|
onClose: function onClose() {
|
|
6938
6931
|
return setShowDuneModal(false);
|
|
6939
6932
|
},
|
|
6933
|
+
icon: "dune-logo",
|
|
6940
6934
|
placeholder: "Add Dune chart link to embed",
|
|
6941
6935
|
submitText: "Embed Dune chart"
|
|
6942
6936
|
}))));
|
|
@@ -7817,8 +7811,12 @@ var ContextMenu = function ContextMenu() {
|
|
|
7817
7811
|
className: "context-item"
|
|
7818
7812
|
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
7819
7813
|
name: "split-flv",
|
|
7820
|
-
width:
|
|
7821
|
-
height:
|
|
7814
|
+
width: 17,
|
|
7815
|
+
height: 17,
|
|
7816
|
+
style: {
|
|
7817
|
+
marginTop: "4px",
|
|
7818
|
+
marginRight: "8px"
|
|
7819
|
+
}
|
|
7822
7820
|
}), "Split text to columns"));
|
|
7823
7821
|
}
|
|
7824
7822
|
if (name === "freeze-row") {
|
|
@@ -7840,9 +7838,15 @@ var ContextMenu = function ContextMenu() {
|
|
|
7840
7838
|
}
|
|
7841
7839
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7842
7840
|
className: "context-item"
|
|
7843
|
-
}, /*#__PURE__*/React.createElement(
|
|
7844
|
-
name: "
|
|
7845
|
-
|
|
7841
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
7842
|
+
name: "freeze-flv",
|
|
7843
|
+
width: 16,
|
|
7844
|
+
height: 16,
|
|
7845
|
+
style: {
|
|
7846
|
+
marginTop: "4px",
|
|
7847
|
+
marginRight: "4px"
|
|
7848
|
+
}
|
|
7849
|
+
}), isFrozen ? "Unfreeze row" : "Freeze to current row"));
|
|
7846
7850
|
}
|
|
7847
7851
|
if (name === "freeze-column") {
|
|
7848
7852
|
var _freezeState = getFreezeState(context);
|
|
@@ -7864,9 +7868,15 @@ var ContextMenu = function ContextMenu() {
|
|
|
7864
7868
|
}
|
|
7865
7869
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7866
7870
|
className: "context-item"
|
|
7867
|
-
}, /*#__PURE__*/React.createElement(
|
|
7868
|
-
name: "
|
|
7869
|
-
|
|
7871
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
7872
|
+
name: "freeze-flv",
|
|
7873
|
+
width: 18,
|
|
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")));
|
|
7870
7880
|
}
|
|
7871
7881
|
if (name === "comment") {
|
|
7872
7882
|
return /*#__PURE__*/React.createElement(Menu, {
|
|
@@ -7879,8 +7889,14 @@ var ContextMenu = function ContextMenu() {
|
|
|
7879
7889
|
}
|
|
7880
7890
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7881
7891
|
className: "context-item"
|
|
7882
|
-
}, /*#__PURE__*/React.createElement(
|
|
7883
|
-
name: "
|
|
7892
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
7893
|
+
name: "comment-flv",
|
|
7894
|
+
width: 18,
|
|
7895
|
+
height: 18,
|
|
7896
|
+
style: {
|
|
7897
|
+
marginTop: "4px",
|
|
7898
|
+
marginRight: "8px"
|
|
7899
|
+
}
|
|
7884
7900
|
}), /*#__PURE__*/React.createElement("p", null, "Comment")));
|
|
7885
7901
|
}
|
|
7886
7902
|
if (name === "dataVerification") {
|
|
@@ -7895,8 +7911,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
7895
7911
|
}
|
|
7896
7912
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7897
7913
|
className: "context-item"
|
|
7898
|
-
}, /*#__PURE__*/React.createElement(
|
|
7899
|
-
name: "
|
|
7914
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
7915
|
+
name: "dataVerification",
|
|
7916
|
+
width: 20,
|
|
7917
|
+
height: 20,
|
|
7918
|
+
style: {
|
|
7919
|
+
marginRight: "7px"
|
|
7920
|
+
}
|
|
7900
7921
|
}), /*#__PURE__*/React.createElement("p", null, "Data Verification")));
|
|
7901
7922
|
}
|
|
7902
7923
|
if (name === "searchReplace") {
|
|
@@ -7912,8 +7933,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
7912
7933
|
}
|
|
7913
7934
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7914
7935
|
className: "context-item"
|
|
7915
|
-
}, /*#__PURE__*/React.createElement(
|
|
7916
|
-
name: "
|
|
7936
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
7937
|
+
name: "search",
|
|
7938
|
+
width: 20,
|
|
7939
|
+
height: 20,
|
|
7940
|
+
style: {
|
|
7941
|
+
marginRight: "7px"
|
|
7942
|
+
}
|
|
7917
7943
|
}), /*#__PURE__*/React.createElement("p", null, "Find and Replace")));
|
|
7918
7944
|
}
|
|
7919
7945
|
if (name === "copy") {
|
|
@@ -7933,8 +7959,14 @@ var ContextMenu = function ContextMenu() {
|
|
|
7933
7959
|
}
|
|
7934
7960
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7935
7961
|
className: "context-item"
|
|
7936
|
-
}, /*#__PURE__*/React.createElement(
|
|
7937
|
-
name: "
|
|
7962
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
7963
|
+
name: "copy-flv",
|
|
7964
|
+
width: 21,
|
|
7965
|
+
height: 21,
|
|
7966
|
+
style: {
|
|
7967
|
+
marginTop: "4px",
|
|
7968
|
+
marginRight: "4px"
|
|
7969
|
+
}
|
|
7938
7970
|
}), /*#__PURE__*/React.createElement("p", null, rightclick.copy)));
|
|
7939
7971
|
}
|
|
7940
7972
|
if (name === "cut") {
|
|
@@ -7967,8 +7999,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
7967
7999
|
}
|
|
7968
8000
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7969
8001
|
className: "context-item"
|
|
7970
|
-
}, /*#__PURE__*/React.createElement(
|
|
7971
|
-
name: "
|
|
8002
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8003
|
+
name: "cut-flv",
|
|
8004
|
+
width: 17,
|
|
8005
|
+
height: 17,
|
|
8006
|
+
style: {
|
|
8007
|
+
marginRight: "8px"
|
|
8008
|
+
}
|
|
7972
8009
|
}), /*#__PURE__*/React.createElement("p", null, "Cut")));
|
|
7973
8010
|
}
|
|
7974
8011
|
if (name === "paste" && regeneratorRuntime) {
|
|
@@ -8000,8 +8037,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8000
8037
|
}()
|
|
8001
8038
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8002
8039
|
className: "context-item"
|
|
8003
|
-
}, /*#__PURE__*/React.createElement(
|
|
8004
|
-
name: "
|
|
8040
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8041
|
+
name: "paste-flv",
|
|
8042
|
+
width: 17,
|
|
8043
|
+
height: 17,
|
|
8044
|
+
style: {
|
|
8045
|
+
marginRight: "8px"
|
|
8046
|
+
}
|
|
8005
8047
|
}), /*#__PURE__*/React.createElement("p", null, rightclick.paste)));
|
|
8006
8048
|
}
|
|
8007
8049
|
if (name === "insert-column") {
|
|
@@ -8033,10 +8075,10 @@ var ContextMenu = function ContextMenu() {
|
|
|
8033
8075
|
insertRowColOp: insertRowColOp
|
|
8034
8076
|
});
|
|
8035
8077
|
}
|
|
8036
|
-
}, /*#__PURE__*/React.createElement(
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8078
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8079
|
+
name: "insert-flv",
|
|
8080
|
+
width: 18,
|
|
8081
|
+
height: 18
|
|
8040
8082
|
}), /*#__PURE__*/React.createElement("div", null, "Insert column to the left")));
|
|
8041
8083
|
});
|
|
8042
8084
|
}
|
|
@@ -8069,10 +8111,10 @@ var ContextMenu = function ContextMenu() {
|
|
|
8069
8111
|
insertRowColOp: insertRowColOp
|
|
8070
8112
|
});
|
|
8071
8113
|
}
|
|
8072
|
-
}, /*#__PURE__*/React.createElement(
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8114
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8115
|
+
name: "insert-flv",
|
|
8116
|
+
width: 18,
|
|
8117
|
+
height: 18
|
|
8076
8118
|
}), /*#__PURE__*/React.createElement("div", null, "Insert row below")));
|
|
8077
8119
|
});
|
|
8078
8120
|
}
|
|
@@ -8119,8 +8161,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8119
8161
|
}
|
|
8120
8162
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8121
8163
|
className: "context-item"
|
|
8122
|
-
}, /*#__PURE__*/React.createElement(
|
|
8123
|
-
name: "
|
|
8164
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8165
|
+
name: "delete-flv",
|
|
8166
|
+
width: 18,
|
|
8167
|
+
height: 18,
|
|
8168
|
+
style: {
|
|
8169
|
+
marginRight: "8px"
|
|
8170
|
+
}
|
|
8124
8171
|
}), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
|
|
8125
8172
|
}
|
|
8126
8173
|
if (name === "cell-delete-column") {
|
|
@@ -8166,8 +8213,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8166
8213
|
}
|
|
8167
8214
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8168
8215
|
className: "context-item"
|
|
8169
|
-
}, /*#__PURE__*/React.createElement(
|
|
8170
|
-
name: "
|
|
8216
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8217
|
+
name: "delete-flv",
|
|
8218
|
+
width: 18,
|
|
8219
|
+
height: 18,
|
|
8220
|
+
style: {
|
|
8221
|
+
marginRight: "8px"
|
|
8222
|
+
}
|
|
8171
8223
|
}), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
|
|
8172
8224
|
}
|
|
8173
8225
|
if (name === "delete-row") {
|
|
@@ -8212,8 +8264,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8212
8264
|
}
|
|
8213
8265
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8214
8266
|
className: "context-item"
|
|
8215
|
-
}, /*#__PURE__*/React.createElement(
|
|
8216
|
-
name: "
|
|
8267
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8268
|
+
name: "delete-flv",
|
|
8269
|
+
width: 18,
|
|
8270
|
+
height: 18,
|
|
8271
|
+
style: {
|
|
8272
|
+
marginRight: "8px"
|
|
8273
|
+
}
|
|
8217
8274
|
}), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.row))));
|
|
8218
8275
|
}
|
|
8219
8276
|
if (name === "cell-delete-row") {
|
|
@@ -8258,8 +8315,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8258
8315
|
}
|
|
8259
8316
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8260
8317
|
className: "context-item"
|
|
8261
|
-
}, /*#__PURE__*/React.createElement(
|
|
8262
|
-
name: "
|
|
8318
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8319
|
+
name: "delete-flv",
|
|
8320
|
+
width: 18,
|
|
8321
|
+
height: 18,
|
|
8322
|
+
style: {
|
|
8323
|
+
marginRight: "8px"
|
|
8324
|
+
}
|
|
8263
8325
|
}), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.row))));
|
|
8264
8326
|
}
|
|
8265
8327
|
if (name === "hide-row") {
|
|
@@ -8282,8 +8344,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8282
8344
|
}
|
|
8283
8345
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8284
8346
|
className: "context-item"
|
|
8285
|
-
}, /*#__PURE__*/React.createElement(
|
|
8286
|
-
name: "
|
|
8347
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8348
|
+
name: "hide-flv",
|
|
8349
|
+
width: 18,
|
|
8350
|
+
height: 18,
|
|
8351
|
+
style: {
|
|
8352
|
+
marginRight: "8px"
|
|
8353
|
+
}
|
|
8287
8354
|
}), /*#__PURE__*/React.createElement("div", null, rightclick[item] + rightclick.row)));
|
|
8288
8355
|
});
|
|
8289
8356
|
}
|
|
@@ -8307,8 +8374,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8307
8374
|
}
|
|
8308
8375
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8309
8376
|
className: "context-item"
|
|
8310
|
-
}, /*#__PURE__*/React.createElement(
|
|
8311
|
-
name: "
|
|
8377
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8378
|
+
name: "hide-flv",
|
|
8379
|
+
width: 18,
|
|
8380
|
+
height: 18,
|
|
8381
|
+
style: {
|
|
8382
|
+
marginRight: "8px"
|
|
8383
|
+
}
|
|
8312
8384
|
}), /*#__PURE__*/React.createElement("div", null, rightclick[item] + rightclick.column)));
|
|
8313
8385
|
});
|
|
8314
8386
|
}
|
|
@@ -8344,8 +8416,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8344
8416
|
}
|
|
8345
8417
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8346
8418
|
className: "context-item"
|
|
8347
|
-
}, /*#__PURE__*/React.createElement(
|
|
8348
|
-
name: "
|
|
8419
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8420
|
+
name: "resize-flv",
|
|
8421
|
+
width: 18,
|
|
8422
|
+
height: 18,
|
|
8423
|
+
style: {
|
|
8424
|
+
marginRight: "8px"
|
|
8425
|
+
}
|
|
8349
8426
|
}), /*#__PURE__*/React.createElement("div", null, "Resize row height", /*#__PURE__*/React.createElement("input", {
|
|
8350
8427
|
onClick: function onClick(e) {
|
|
8351
8428
|
return e.stopPropagation();
|
|
@@ -8379,8 +8456,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8379
8456
|
}
|
|
8380
8457
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8381
8458
|
className: "context-item"
|
|
8382
|
-
}, /*#__PURE__*/React.createElement(
|
|
8383
|
-
name: "
|
|
8459
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8460
|
+
name: "resize-flv",
|
|
8461
|
+
width: 18,
|
|
8462
|
+
height: 18,
|
|
8463
|
+
style: {
|
|
8464
|
+
marginRight: "8px"
|
|
8465
|
+
}
|
|
8384
8466
|
}), /*#__PURE__*/React.createElement("div", null, "Resize column width")))) : null;
|
|
8385
8467
|
}
|
|
8386
8468
|
if (name === "clear") {
|
|
@@ -8408,8 +8490,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8408
8490
|
}
|
|
8409
8491
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8410
8492
|
className: "context-item"
|
|
8411
|
-
}, /*#__PURE__*/React.createElement(
|
|
8412
|
-
name: "
|
|
8493
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8494
|
+
name: "clear-flv",
|
|
8495
|
+
width: 17,
|
|
8496
|
+
height: 17,
|
|
8497
|
+
style: {
|
|
8498
|
+
marginRight: "8px"
|
|
8499
|
+
}
|
|
8413
8500
|
}), /*#__PURE__*/React.createElement("p", null, rightclick.clearContent)));
|
|
8414
8501
|
}
|
|
8415
8502
|
if (name === "ascSort") {
|
|
@@ -8425,8 +8512,14 @@ var ContextMenu = function ContextMenu() {
|
|
|
8425
8512
|
}
|
|
8426
8513
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8427
8514
|
className: "context-item"
|
|
8428
|
-
}, /*#__PURE__*/React.createElement(
|
|
8429
|
-
name: "
|
|
8515
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8516
|
+
name: "asc-sort-flv",
|
|
8517
|
+
width: 18,
|
|
8518
|
+
height: 18,
|
|
8519
|
+
style: {
|
|
8520
|
+
marginTop: "4px",
|
|
8521
|
+
marginRight: "8px"
|
|
8522
|
+
}
|
|
8430
8523
|
}), /*#__PURE__*/React.createElement("p", null, "Ascending sort")));
|
|
8431
8524
|
}
|
|
8432
8525
|
if (name === "desSort") {
|
|
@@ -8442,8 +8535,14 @@ var ContextMenu = function ContextMenu() {
|
|
|
8442
8535
|
}
|
|
8443
8536
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8444
8537
|
className: "context-item"
|
|
8445
|
-
}, /*#__PURE__*/React.createElement(
|
|
8446
|
-
name: "
|
|
8538
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8539
|
+
name: "des-sort-flv",
|
|
8540
|
+
width: 18,
|
|
8541
|
+
height: 18,
|
|
8542
|
+
style: {
|
|
8543
|
+
marginTop: "4px",
|
|
8544
|
+
marginRight: "8px"
|
|
8545
|
+
}
|
|
8447
8546
|
}), /*#__PURE__*/React.createElement("p", null, "Descending sort")));
|
|
8448
8547
|
}
|
|
8449
8548
|
if (name === "sort") {
|
|
@@ -8477,8 +8576,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8477
8576
|
style: {
|
|
8478
8577
|
height: "40px"
|
|
8479
8578
|
}
|
|
8480
|
-
}, /*#__PURE__*/React.createElement(
|
|
8481
|
-
name: "
|
|
8579
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8580
|
+
name: "sort-asc",
|
|
8581
|
+
width: 24,
|
|
8582
|
+
height: 18,
|
|
8583
|
+
style: {
|
|
8584
|
+
marginRight: "4px"
|
|
8585
|
+
}
|
|
8482
8586
|
}), /*#__PURE__*/React.createElement("p", null, sort.asc))), /*#__PURE__*/React.createElement(Menu, {
|
|
8483
8587
|
onClick: function onClick() {
|
|
8484
8588
|
setContext(function (draftCtx) {
|
|
@@ -8491,8 +8595,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8491
8595
|
style: {
|
|
8492
8596
|
height: "40px"
|
|
8493
8597
|
}
|
|
8494
|
-
}, /*#__PURE__*/React.createElement(
|
|
8495
|
-
name: "
|
|
8598
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8599
|
+
name: "sort-desc",
|
|
8600
|
+
width: 24,
|
|
8601
|
+
height: 18,
|
|
8602
|
+
style: {
|
|
8603
|
+
marginRight: "4px"
|
|
8604
|
+
}
|
|
8496
8605
|
}), /*#__PURE__*/React.createElement("p", null, sort.desc))))),
|
|
8497
8606
|
trigger: "mouseenter focus",
|
|
8498
8607
|
hideOnClick: false
|
|
@@ -8500,12 +8609,16 @@ var ContextMenu = function ContextMenu() {
|
|
|
8500
8609
|
className: "flex items-center justify-between w-full"
|
|
8501
8610
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8502
8611
|
className: "context-item"
|
|
8503
|
-
}, /*#__PURE__*/React.createElement(
|
|
8504
|
-
name: "
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8612
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8613
|
+
name: "sort-flv",
|
|
8614
|
+
width: 18,
|
|
8615
|
+
height: 18,
|
|
8616
|
+
style: {
|
|
8617
|
+
marginRight: "8px"
|
|
8618
|
+
}
|
|
8619
|
+
}), /*#__PURE__*/React.createElement("p", null, rightclick.sortSelection)), /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8620
|
+
name: "rightArrow",
|
|
8621
|
+
width: 18
|
|
8509
8622
|
})))));
|
|
8510
8623
|
}
|
|
8511
8624
|
if (name === "filter") {
|
|
@@ -8539,8 +8652,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8539
8652
|
style: {
|
|
8540
8653
|
height: "40px"
|
|
8541
8654
|
}
|
|
8542
|
-
}, /*#__PURE__*/React.createElement(
|
|
8543
|
-
name: "
|
|
8655
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8656
|
+
name: "filter",
|
|
8657
|
+
width: 22,
|
|
8658
|
+
height: 22,
|
|
8659
|
+
style: {
|
|
8660
|
+
marginRight: "4px"
|
|
8661
|
+
}
|
|
8544
8662
|
}), /*#__PURE__*/React.createElement("p", null, filter.filter))), /*#__PURE__*/React.createElement(Menu, {
|
|
8545
8663
|
onClick: function onClick() {
|
|
8546
8664
|
setContext(function (draftCtx) {
|
|
@@ -8553,8 +8671,14 @@ var ContextMenu = function ContextMenu() {
|
|
|
8553
8671
|
style: {
|
|
8554
8672
|
height: "40px"
|
|
8555
8673
|
}
|
|
8556
|
-
}, /*#__PURE__*/React.createElement(
|
|
8557
|
-
name: "
|
|
8674
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8675
|
+
name: "eraser",
|
|
8676
|
+
width: 22,
|
|
8677
|
+
height: 22,
|
|
8678
|
+
style: {
|
|
8679
|
+
marginRight: "4px",
|
|
8680
|
+
marginLeft: "2px"
|
|
8681
|
+
}
|
|
8558
8682
|
}), /*#__PURE__*/React.createElement("p", null, filter.clearFilter))))),
|
|
8559
8683
|
trigger: "mouseenter focus",
|
|
8560
8684
|
hideOnClick: false
|
|
@@ -8562,12 +8686,17 @@ var ContextMenu = function ContextMenu() {
|
|
|
8562
8686
|
className: "flex items-center justify-between w-full"
|
|
8563
8687
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8564
8688
|
className: "context-item"
|
|
8565
|
-
}, /*#__PURE__*/React.createElement(
|
|
8566
|
-
name: "
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8689
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8690
|
+
name: "filter",
|
|
8691
|
+
width: 22,
|
|
8692
|
+
height: 22,
|
|
8693
|
+
style: {
|
|
8694
|
+
marginRight: "4px",
|
|
8695
|
+
marginTop: "2px"
|
|
8696
|
+
}
|
|
8697
|
+
}), /*#__PURE__*/React.createElement("p", null, rightclick.filterSelection)), /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8698
|
+
name: "rightArrow",
|
|
8699
|
+
width: 18
|
|
8571
8700
|
})))));
|
|
8572
8701
|
}
|
|
8573
8702
|
if (name === "image") {
|
|
@@ -8592,8 +8721,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
8592
8721
|
}
|
|
8593
8722
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8594
8723
|
className: "context-item"
|
|
8595
|
-
}, /*#__PURE__*/React.createElement(
|
|
8596
|
-
name: "
|
|
8724
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8725
|
+
name: "link",
|
|
8726
|
+
width: 20,
|
|
8727
|
+
height: 20,
|
|
8728
|
+
style: {
|
|
8729
|
+
marginRight: "7px"
|
|
8730
|
+
}
|
|
8597
8731
|
}), /*#__PURE__*/React.createElement("p", null, rightclick.link)));
|
|
8598
8732
|
}
|
|
8599
8733
|
if (name === "conditionFormat") {
|
|
@@ -8624,11 +8758,16 @@ var ContextMenu = function ContextMenu() {
|
|
|
8624
8758
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement("div", {
|
|
8625
8759
|
className: "flex items-center justify-between w-full"
|
|
8626
8760
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8627
|
-
className: "flex items-center gap-2
|
|
8628
|
-
}, /*#__PURE__*/React.createElement(
|
|
8629
|
-
name: "
|
|
8630
|
-
|
|
8631
|
-
|
|
8761
|
+
className: "flex items-center gap-2"
|
|
8762
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8763
|
+
name: "conditionFormat",
|
|
8764
|
+
width: 16,
|
|
8765
|
+
height: 16,
|
|
8766
|
+
style: {
|
|
8767
|
+
marginRight: "2px"
|
|
8768
|
+
}
|
|
8769
|
+
}), /*#__PURE__*/React.createElement("p", null, rightclick.conditionFormat || "Conditional Format")), /*#__PURE__*/React.createElement(SVGIcon, {
|
|
8770
|
+
name: "rightArrow",
|
|
8632
8771
|
width: 16,
|
|
8633
8772
|
height: 16
|
|
8634
8773
|
})))));
|
|
@@ -11945,14 +12084,13 @@ var DunePreview = function DunePreview(_ref) {
|
|
|
11945
12084
|
}
|
|
11946
12085
|
})), /*#__PURE__*/React.createElement("p", null, "Do you want to insert Dune chart?"), /*#__PURE__*/React.createElement("div", {
|
|
11947
12086
|
className: "fortune-dune-preview-footer"
|
|
11948
|
-
}, /*#__PURE__*/React.createElement(
|
|
11949
|
-
|
|
12087
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
12088
|
+
variant: "ghost",
|
|
11950
12089
|
onClick: onKeepAsLink,
|
|
11951
|
-
className: "
|
|
11952
|
-
}, "Keep as Link"), /*#__PURE__*/React.createElement(
|
|
11953
|
-
type: "button",
|
|
12090
|
+
className: "!w-fit px-0"
|
|
12091
|
+
}, "Keep as Link"), /*#__PURE__*/React.createElement(Button$1, {
|
|
11954
12092
|
onClick: onEmbed,
|
|
11955
|
-
className: "
|
|
12093
|
+
className: "!w-fit px-0"
|
|
11956
12094
|
}, "Embed")));
|
|
11957
12095
|
};
|
|
11958
12096
|
|