@fileverse-dev/fortune-react 1.0.2-mod-48-patch-3 → 1.0.2-mod-52
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/index.css +88 -16
- package/dist/index.esm.css +88 -16
- package/dist/index.esm.js +242 -70
- package/dist/index.js +242 -70
- package/dist/index.umd.css +88 -16
- package/dist/index.umd.js +312 -289
- package/dist/index.umd.min.css +1 -1
- package/dist/index.umd.min.js +8 -8
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -4659,32 +4659,46 @@ var SplitColumn = function SplitColumn() {
|
|
|
4659
4659
|
return /*#__PURE__*/React.createElement("div", {
|
|
4660
4660
|
id: "fortune-split-column"
|
|
4661
4661
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4662
|
-
className: "
|
|
4663
|
-
}, splitText.
|
|
4664
|
-
className: "
|
|
4665
|
-
},
|
|
4666
|
-
|
|
4662
|
+
className: "splitDataPreview text-heading-xsm"
|
|
4663
|
+
}, splitText.splitDataPreview), /*#__PURE__*/React.createElement("div", {
|
|
4664
|
+
className: "splitColumnData"
|
|
4665
|
+
}, /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("tbody", null, tableData.map(function (o, index) {
|
|
4666
|
+
if (o.length >= 1) {
|
|
4667
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
4668
|
+
key: index
|
|
4669
|
+
}, o.map(function (o1) {
|
|
4670
|
+
return /*#__PURE__*/React.createElement("td", {
|
|
4671
|
+
key: o + o1
|
|
4672
|
+
}, o1);
|
|
4673
|
+
}));
|
|
4674
|
+
}
|
|
4675
|
+
return /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null));
|
|
4676
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
4677
|
+
className: "splitDelimiters text-heading-xsm !mt-4"
|
|
4678
|
+
}, "Separator"), /*#__PURE__*/React.createElement("div", {
|
|
4679
|
+
className: "splitSymbols flex gap-3 flex-wrap",
|
|
4667
4680
|
ref: splitSymbols
|
|
4668
4681
|
}, splitText.splitSymbols.map(function (o) {
|
|
4669
4682
|
return /*#__PURE__*/React.createElement("div", {
|
|
4670
4683
|
key: o.value,
|
|
4671
|
-
className: "splitSymbol"
|
|
4684
|
+
className: "splitSymbol flex gap-2 items-center"
|
|
4672
4685
|
}, /*#__PURE__*/React.createElement("input", {
|
|
4673
4686
|
id: o.value,
|
|
4674
4687
|
name: o.value,
|
|
4675
4688
|
type: "checkbox",
|
|
4676
4689
|
onClick: function onClick() {
|
|
4677
|
-
|
|
4690
|
+
setSplitOperate(function (regStr) {
|
|
4678
4691
|
var _splitSymbols$current;
|
|
4679
4692
|
return getRegStr(regStr, (_splitSymbols$current = splitSymbols.current) === null || _splitSymbols$current === void 0 ? void 0 : _splitSymbols$current.childNodes);
|
|
4680
4693
|
});
|
|
4681
4694
|
},
|
|
4682
4695
|
tabIndex: 0
|
|
4683
4696
|
}), /*#__PURE__*/React.createElement("label", {
|
|
4684
|
-
htmlFor: o.value
|
|
4697
|
+
htmlFor: o.value,
|
|
4698
|
+
className: "text-body-sm"
|
|
4685
4699
|
}, o.name));
|
|
4686
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
4687
|
-
className: "splitSymbol"
|
|
4700
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
4701
|
+
className: "splitSymbol flex gap-2 items-center pb-4 mb-4 border-b"
|
|
4688
4702
|
}, /*#__PURE__*/React.createElement("input", {
|
|
4689
4703
|
id: "other",
|
|
4690
4704
|
name: "other",
|
|
@@ -4699,7 +4713,7 @@ var SplitColumn = function SplitColumn() {
|
|
|
4699
4713
|
tabIndex: 0
|
|
4700
4714
|
}), /*#__PURE__*/React.createElement("label", {
|
|
4701
4715
|
htmlFor: "other"
|
|
4702
|
-
},
|
|
4716
|
+
}, "Custom"), /*#__PURE__*/React.createElement("input", {
|
|
4703
4717
|
id: "otherValue",
|
|
4704
4718
|
name: "otherValue",
|
|
4705
4719
|
type: "text",
|
|
@@ -4712,7 +4726,7 @@ var SplitColumn = function SplitColumn() {
|
|
|
4712
4726
|
}
|
|
4713
4727
|
}
|
|
4714
4728
|
})), /*#__PURE__*/React.createElement("div", {
|
|
4715
|
-
className: "splitSymbol
|
|
4729
|
+
className: "splitSymbol flex gap-2 mb-4 items-center"
|
|
4716
4730
|
}, /*#__PURE__*/React.createElement("input", {
|
|
4717
4731
|
id: "splitsimple",
|
|
4718
4732
|
name: "splitsimple",
|
|
@@ -4726,34 +4740,22 @@ var SplitColumn = function SplitColumn() {
|
|
|
4726
4740
|
tabIndex: 0
|
|
4727
4741
|
}), /*#__PURE__*/React.createElement("label", {
|
|
4728
4742
|
htmlFor: "splitsimple"
|
|
4729
|
-
}, splitText.splitContinueSymbol))
|
|
4730
|
-
className: "
|
|
4731
|
-
},
|
|
4732
|
-
className: "
|
|
4733
|
-
|
|
4734
|
-
if (o.length >= 1) {
|
|
4735
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
4736
|
-
key: index
|
|
4737
|
-
}, o.map(function (o1) {
|
|
4738
|
-
return /*#__PURE__*/React.createElement("td", {
|
|
4739
|
-
key: o + o1
|
|
4740
|
-
}, o1);
|
|
4741
|
-
}));
|
|
4742
|
-
}
|
|
4743
|
-
return /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null));
|
|
4744
|
-
})))), /*#__PURE__*/React.createElement("div", {
|
|
4745
|
-
className: "button-basic button-primary",
|
|
4743
|
+
}, splitText.splitContinueSymbol)), /*#__PURE__*/React.createElement("div", {
|
|
4744
|
+
className: "flex justify-end gap-2"
|
|
4745
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
4746
|
+
className: "",
|
|
4747
|
+
variant: "secondary",
|
|
4746
4748
|
onClick: function onClick() {
|
|
4747
|
-
|
|
4749
|
+
hideDialog();
|
|
4748
4750
|
},
|
|
4749
4751
|
tabIndex: 0
|
|
4750
|
-
}, button.
|
|
4751
|
-
className: "
|
|
4752
|
+
}, button.cancel), /*#__PURE__*/React.createElement(Button$1, {
|
|
4753
|
+
className: "",
|
|
4752
4754
|
onClick: function onClick() {
|
|
4753
|
-
|
|
4755
|
+
certainBtn();
|
|
4754
4756
|
},
|
|
4755
4757
|
tabIndex: 0
|
|
4756
|
-
},
|
|
4758
|
+
}, "Split")));
|
|
4757
4759
|
};
|
|
4758
4760
|
|
|
4759
4761
|
var LocationCondition = function LocationCondition() {
|
|
@@ -5257,7 +5259,7 @@ var CustomButton = function CustomButton(_ref) {
|
|
|
5257
5259
|
}, tooltip), children);
|
|
5258
5260
|
};
|
|
5259
5261
|
|
|
5260
|
-
var palette = [["#000000", "#444444", "#666666", "#999999", "#cccccc", "#
|
|
5262
|
+
var palette = [["#000000", "#444444", "#666666", "#999999", "#B7B7B7", "#cccccc", "#D9D9D9", "#EFEFEF", "#f3f3f3", "#ffffff"], ["#970007", "#FE0012", "#FE9728", "#FFFD40", "#27FD3C", "#21FFFF", "#4A89E4", "#0027F9", "#9726FA", "#FD23FA"], ["#E6B8B0", "#f4cccc", "#FCE5CF", "#FFF1CF", "#DAEAD4", "#D0E0E3", "#C9DBF7", "#CFE3F2", "#D9D3E8", "#EAD1DC"], ["#DC7D6D", "#E9999A", "#F9CAA0", "#FFE49F", "#B7D6AB", "#A3C4C9", "#A4C3F2", "#A0C6E6", "#B4A8D4", "#D5A7BC"], ["#CB402B", "#DF6668", "#F6B171", "#FFD871", "#95C382", "#77A6AF", "#6DA0E8", "#70AADA", "#8E7EC0", "#C17C9F"], ["#A51A0A", "#CB000C", "#E59043", "#F1C046", "#6CA756", "#46828D", "#3C7BD4", "#3E87C3", "#6651A4", "#A54E78"], ["#841F11", "#980007", "#B35E19", "#BF8F22", "#3A7527", "#15505B", "#0E5AC8", "#0B5592", "#0B5592", "#731C46"], ["#5B0E03", "#660003", "#783E0E", "#7F5F13", "#284E19", "#0D343D", "#1C4785", "#073961", "#1F154B", "#4C112F"]];
|
|
5261
5263
|
var ColorPicker = function ColorPicker(_ref) {
|
|
5262
5264
|
var onPick = _ref.onPick;
|
|
5263
5265
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -5275,7 +5277,8 @@ var ColorPicker = function ColorPicker(_ref) {
|
|
|
5275
5277
|
},
|
|
5276
5278
|
tabIndex: 0,
|
|
5277
5279
|
style: {
|
|
5278
|
-
backgroundColor: c
|
|
5280
|
+
backgroundColor: c,
|
|
5281
|
+
border: c === "#ffffff" ? "1px solid #E8EBEC" : "none"
|
|
5279
5282
|
}
|
|
5280
5283
|
});
|
|
5281
5284
|
}));
|
|
@@ -5285,16 +5288,6 @@ var ColorPicker = function ColorPicker(_ref) {
|
|
|
5285
5288
|
var CustomColor = function CustomColor(_ref) {
|
|
5286
5289
|
var onCustomPick = _ref.onCustomPick,
|
|
5287
5290
|
onColorPick = _ref.onColorPick;
|
|
5288
|
-
var _useContext = useContext(WorkbookContext),
|
|
5289
|
-
context = _useContext.context;
|
|
5290
|
-
var _locale = locale(context),
|
|
5291
|
-
toolbar = _locale.toolbar,
|
|
5292
|
-
sheetconfig = _locale.sheetconfig,
|
|
5293
|
-
button = _locale.button;
|
|
5294
|
-
var _useState = useState("#000000"),
|
|
5295
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
5296
|
-
inputColor = _useState2[0],
|
|
5297
|
-
setInputColor = _useState2[1];
|
|
5298
5291
|
return /*#__PURE__*/React.createElement("div", {
|
|
5299
5292
|
id: "fortune-custom-color"
|
|
5300
5293
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -5303,21 +5296,11 @@ var CustomColor = function CustomColor(_ref) {
|
|
|
5303
5296
|
return onCustomPick(undefined);
|
|
5304
5297
|
},
|
|
5305
5298
|
tabIndex: 0
|
|
5306
|
-
},
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
onChange: function onChange(e) {
|
|
5312
|
-
return setInputColor(e.target.value);
|
|
5313
|
-
}
|
|
5314
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
5315
|
-
className: "button-basic button-primary",
|
|
5316
|
-
onClick: function onClick() {
|
|
5317
|
-
onCustomPick(inputColor);
|
|
5318
|
-
},
|
|
5319
|
-
tabIndex: 0
|
|
5320
|
-
}, button.confirm)), /*#__PURE__*/React.createElement(ColorPicker, {
|
|
5299
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
5300
|
+
name: "reset-color",
|
|
5301
|
+
width: 16,
|
|
5302
|
+
height: 16
|
|
5303
|
+
}), "Reset"), /*#__PURE__*/React.createElement(ColorPicker, {
|
|
5321
5304
|
onPick: function onPick(color) {
|
|
5322
5305
|
onColorPick(color);
|
|
5323
5306
|
}
|
|
@@ -7527,7 +7510,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
7527
7510
|
drag = _locale.drag,
|
|
7528
7511
|
generalDialog = _locale.generalDialog,
|
|
7529
7512
|
info = _locale.info,
|
|
7530
|
-
toolbar = _locale.toolbar
|
|
7513
|
+
toolbar = _locale.toolbar,
|
|
7514
|
+
splitText = _locale.splitText;
|
|
7531
7515
|
var getMenuElement = useCallback(function (name, i) {
|
|
7532
7516
|
var _context$luckysheet_s;
|
|
7533
7517
|
var selection = (_context$luckysheet_s = context.luckysheet_select_save) === null || _context$luckysheet_s === void 0 ? void 0 : _context$luckysheet_s[0];
|
|
@@ -7536,6 +7520,39 @@ var ContextMenu = function ContextMenu() {
|
|
|
7536
7520
|
key: "divider-".concat(i)
|
|
7537
7521
|
});
|
|
7538
7522
|
}
|
|
7523
|
+
if (name === "split-text") {
|
|
7524
|
+
return /*#__PURE__*/React.createElement(Menu, {
|
|
7525
|
+
key: "split-text",
|
|
7526
|
+
onClick: function onClick() {
|
|
7527
|
+
if (context.allowEdit === false) return;
|
|
7528
|
+
if (_.isUndefined(context.luckysheet_select_save)) {
|
|
7529
|
+
showDialog(splitText.tipNoSelect, "ok");
|
|
7530
|
+
} else {
|
|
7531
|
+
var currentColumn = context.luckysheet_select_save[context.luckysheet_select_save.length - 1].column;
|
|
7532
|
+
if (context.luckysheet_select_save.length > 1) {
|
|
7533
|
+
showDialog(splitText.tipNoMulti, "ok");
|
|
7534
|
+
} else if (currentColumn[0] !== currentColumn[1]) {
|
|
7535
|
+
showDialog(splitText.tipNoMultiColumn, "ok");
|
|
7536
|
+
} else {
|
|
7537
|
+
showDialog(/*#__PURE__*/React.createElement(SplitColumn, null), undefined, "Split text to columns");
|
|
7538
|
+
}
|
|
7539
|
+
}
|
|
7540
|
+
setContext(function (draftCtx) {
|
|
7541
|
+
draftCtx.contextMenu = {};
|
|
7542
|
+
});
|
|
7543
|
+
}
|
|
7544
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7545
|
+
className: "context-item"
|
|
7546
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
7547
|
+
name: "split-flv",
|
|
7548
|
+
width: 16,
|
|
7549
|
+
height: 16,
|
|
7550
|
+
style: {
|
|
7551
|
+
marginTop: "4px",
|
|
7552
|
+
marginRight: "4px"
|
|
7553
|
+
}
|
|
7554
|
+
}), "Split text to columns"));
|
|
7555
|
+
}
|
|
7539
7556
|
if (name === "freeze-row") {
|
|
7540
7557
|
var freezeState = getFreezeState(context);
|
|
7541
7558
|
var isFrozen = freezeState.isRowFrozen;
|
|
@@ -7831,7 +7848,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
7831
7848
|
});
|
|
7832
7849
|
}
|
|
7833
7850
|
if (name === "delete-column") {
|
|
7834
|
-
return
|
|
7851
|
+
return (selection === null || selection === void 0 ? void 0 : selection.column_select) && (/*#__PURE__*/React.createElement(Menu, {
|
|
7835
7852
|
key: "delete-col",
|
|
7836
7853
|
onClick: function onClick() {
|
|
7837
7854
|
if (!selection) return;
|
|
@@ -7882,8 +7899,60 @@ var ContextMenu = function ContextMenu() {
|
|
|
7882
7899
|
}
|
|
7883
7900
|
}), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
|
|
7884
7901
|
}
|
|
7902
|
+
if (name === "cell-delete-column") {
|
|
7903
|
+
return !(selection === null || selection === void 0 ? void 0 : selection.row_select) && (/*#__PURE__*/React.createElement(Menu, {
|
|
7904
|
+
key: "cell-delete-col",
|
|
7905
|
+
onClick: function onClick() {
|
|
7906
|
+
if (!selection) return;
|
|
7907
|
+
var _selection$column2 = _slicedToArray(selection.column, 2),
|
|
7908
|
+
st_index = _selection$column2[0],
|
|
7909
|
+
ed_index = _selection$column2[1];
|
|
7910
|
+
var deleteRowColOp = {
|
|
7911
|
+
type: "column",
|
|
7912
|
+
start: st_index,
|
|
7913
|
+
end: ed_index,
|
|
7914
|
+
id: context.currentSheetId
|
|
7915
|
+
};
|
|
7916
|
+
setContext(function (draftCtx) {
|
|
7917
|
+
var _draftCtx$luckysheet_4, _draftCtx$luckysheetf3, _draftCtx$luckysheetf4;
|
|
7918
|
+
if (((_draftCtx$luckysheet_4 = draftCtx.luckysheet_select_save) === null || _draftCtx$luckysheet_4 === void 0 ? void 0 : _draftCtx$luckysheet_4.length) > 1) {
|
|
7919
|
+
showAlert(rightclick.noMulti, "ok");
|
|
7920
|
+
draftCtx.contextMenu = {};
|
|
7921
|
+
draftCtx.dataVerificationDropDownList = false;
|
|
7922
|
+
return;
|
|
7923
|
+
}
|
|
7924
|
+
var slen = ed_index - st_index + 1;
|
|
7925
|
+
var index = getSheetIndex(draftCtx, context.currentSheetId);
|
|
7926
|
+
if (((_draftCtx$luckysheetf3 = draftCtx.luckysheetfile[index].data) === null || _draftCtx$luckysheetf3 === void 0 ? void 0 : (_draftCtx$luckysheetf4 = _draftCtx$luckysheetf3[0]) === null || _draftCtx$luckysheetf4 === void 0 ? void 0 : _draftCtx$luckysheetf4.length) <= slen) {
|
|
7927
|
+
showAlert(rightclick.cannotDeleteAllColumn, "ok");
|
|
7928
|
+
draftCtx.contextMenu = {};
|
|
7929
|
+
return;
|
|
7930
|
+
}
|
|
7931
|
+
try {
|
|
7932
|
+
deleteRowCol(draftCtx, deleteRowColOp);
|
|
7933
|
+
} catch (e) {
|
|
7934
|
+
if (e.message === "readOnly") {
|
|
7935
|
+
showAlert(rightclick.cannotDeleteColumnReadOnly, "ok");
|
|
7936
|
+
}
|
|
7937
|
+
}
|
|
7938
|
+
draftCtx.contextMenu = {};
|
|
7939
|
+
}, {
|
|
7940
|
+
deleteRowColOp: deleteRowColOp
|
|
7941
|
+
});
|
|
7942
|
+
}
|
|
7943
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7944
|
+
className: "context-item"
|
|
7945
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
7946
|
+
name: "delete-flv",
|
|
7947
|
+
width: 18,
|
|
7948
|
+
height: 18,
|
|
7949
|
+
style: {
|
|
7950
|
+
marginRight: "8px"
|
|
7951
|
+
}
|
|
7952
|
+
}), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
|
|
7953
|
+
}
|
|
7885
7954
|
if (name === "delete-row") {
|
|
7886
|
-
return
|
|
7955
|
+
return (selection === null || selection === void 0 ? void 0 : selection.row_select) && (/*#__PURE__*/React.createElement(Menu, {
|
|
7887
7956
|
key: "delete-row",
|
|
7888
7957
|
onClick: function onClick() {
|
|
7889
7958
|
if (!selection) return;
|
|
@@ -7897,15 +7966,66 @@ var ContextMenu = function ContextMenu() {
|
|
|
7897
7966
|
id: context.currentSheetId
|
|
7898
7967
|
};
|
|
7899
7968
|
setContext(function (draftCtx) {
|
|
7900
|
-
var _draftCtx$
|
|
7901
|
-
if (((_draftCtx$
|
|
7969
|
+
var _draftCtx$luckysheet_5, _draftCtx$luckysheetf5;
|
|
7970
|
+
if (((_draftCtx$luckysheet_5 = draftCtx.luckysheet_select_save) === null || _draftCtx$luckysheet_5 === void 0 ? void 0 : _draftCtx$luckysheet_5.length) > 1) {
|
|
7971
|
+
showAlert(rightclick.noMulti, "ok");
|
|
7972
|
+
draftCtx.contextMenu = {};
|
|
7973
|
+
return;
|
|
7974
|
+
}
|
|
7975
|
+
var slen = ed_index - st_index + 1;
|
|
7976
|
+
var index = getSheetIndex(draftCtx, context.currentSheetId);
|
|
7977
|
+
if (((_draftCtx$luckysheetf5 = draftCtx.luckysheetfile[index].data) === null || _draftCtx$luckysheetf5 === void 0 ? void 0 : _draftCtx$luckysheetf5.length) <= slen) {
|
|
7978
|
+
showAlert(rightclick.cannotDeleteAllRow, "ok");
|
|
7979
|
+
draftCtx.contextMenu = {};
|
|
7980
|
+
return;
|
|
7981
|
+
}
|
|
7982
|
+
try {
|
|
7983
|
+
deleteRowCol(draftCtx, deleteRowColOp);
|
|
7984
|
+
} catch (e) {
|
|
7985
|
+
if (e.message === "readOnly") {
|
|
7986
|
+
showAlert(rightclick.cannotDeleteRowReadOnly, "ok");
|
|
7987
|
+
}
|
|
7988
|
+
}
|
|
7989
|
+
draftCtx.contextMenu = {};
|
|
7990
|
+
}, {
|
|
7991
|
+
deleteRowColOp: deleteRowColOp
|
|
7992
|
+
});
|
|
7993
|
+
}
|
|
7994
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7995
|
+
className: "context-item"
|
|
7996
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
7997
|
+
name: "delete-flv",
|
|
7998
|
+
width: 18,
|
|
7999
|
+
height: 18,
|
|
8000
|
+
style: {
|
|
8001
|
+
marginRight: "8px"
|
|
8002
|
+
}
|
|
8003
|
+
}), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.row))));
|
|
8004
|
+
}
|
|
8005
|
+
if (name === "cell-delete-row") {
|
|
8006
|
+
return !(selection === null || selection === void 0 ? void 0 : selection.column_select) && (/*#__PURE__*/React.createElement(Menu, {
|
|
8007
|
+
key: "cell-delete-row",
|
|
8008
|
+
onClick: function onClick() {
|
|
8009
|
+
if (!selection) return;
|
|
8010
|
+
var _selection$row2 = _slicedToArray(selection.row, 2),
|
|
8011
|
+
st_index = _selection$row2[0],
|
|
8012
|
+
ed_index = _selection$row2[1];
|
|
8013
|
+
var deleteRowColOp = {
|
|
8014
|
+
type: "row",
|
|
8015
|
+
start: st_index,
|
|
8016
|
+
end: ed_index,
|
|
8017
|
+
id: context.currentSheetId
|
|
8018
|
+
};
|
|
8019
|
+
setContext(function (draftCtx) {
|
|
8020
|
+
var _draftCtx$luckysheet_6, _draftCtx$luckysheetf6;
|
|
8021
|
+
if (((_draftCtx$luckysheet_6 = draftCtx.luckysheet_select_save) === null || _draftCtx$luckysheet_6 === void 0 ? void 0 : _draftCtx$luckysheet_6.length) > 1) {
|
|
7902
8022
|
showAlert(rightclick.noMulti, "ok");
|
|
7903
8023
|
draftCtx.contextMenu = {};
|
|
7904
8024
|
return;
|
|
7905
8025
|
}
|
|
7906
8026
|
var slen = ed_index - st_index + 1;
|
|
7907
8027
|
var index = getSheetIndex(draftCtx, context.currentSheetId);
|
|
7908
|
-
if (((_draftCtx$
|
|
8028
|
+
if (((_draftCtx$luckysheetf6 = draftCtx.luckysheetfile[index].data) === null || _draftCtx$luckysheetf6 === void 0 ? void 0 : _draftCtx$luckysheetf6.length) <= slen) {
|
|
7909
8029
|
showAlert(rightclick.cannotDeleteAllRow, "ok");
|
|
7910
8030
|
draftCtx.contextMenu = {};
|
|
7911
8031
|
return;
|
|
@@ -8162,7 +8282,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
8162
8282
|
height: 18,
|
|
8163
8283
|
style: {
|
|
8164
8284
|
marginTop: "4px",
|
|
8165
|
-
marginRight: "
|
|
8285
|
+
marginRight: "8px"
|
|
8166
8286
|
}
|
|
8167
8287
|
}), /*#__PURE__*/React.createElement("p", null, "Ascending sort")));
|
|
8168
8288
|
}
|
|
@@ -8185,7 +8305,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
8185
8305
|
height: 18,
|
|
8186
8306
|
style: {
|
|
8187
8307
|
marginTop: "4px",
|
|
8188
|
-
marginRight: "
|
|
8308
|
+
marginRight: "8px"
|
|
8189
8309
|
}
|
|
8190
8310
|
}), /*#__PURE__*/React.createElement("p", null, "Descending sort")));
|
|
8191
8311
|
}
|
|
@@ -9355,6 +9475,35 @@ var SVGDefines = function SVGDefines(_ref) {
|
|
|
9355
9475
|
}), /*#__PURE__*/React.createElement("path", {
|
|
9356
9476
|
d: "M16.3169 13.9911C16.4164 13.8765 16.4754 13.7388 16.4938 13.5969C16.523 13.3723 16.4493 13.1423 16.2863 12.9756L16.2804 12.9697L14.0304 10.7197C13.7375 10.4268 13.2626 10.4268 12.9697 10.7197C12.6768 11.0126 12.6768 11.4874 12.9697 11.7803L13.9394 12.75L8.25002 12.75L8.24781 12.75L4.06068 12.75L5.03035 11.7803C5.32325 11.4874 5.32325 11.0126 5.03035 10.7197C4.73746 10.4268 4.26259 10.4268 3.96969 10.7197L1.72369 12.9657C1.7091 12.98 1.69508 12.995 1.68166 13.0106C1.58293 13.125 1.52444 13.2622 1.50621 13.4035C1.4998 13.453 1.49838 13.5028 1.50182 13.5521C1.51375 13.7245 1.58497 13.8935 1.71548 14.0261L1.71969 14.0303L3.96969 16.2803C4.26258 16.5732 4.73746 16.5732 5.03035 16.2803C5.32324 15.9874 5.32324 15.5126 5.03035 15.2197L4.06068 14.25L9.75002 14.25L9.75241 14.25L13.9394 14.25L12.9697 15.2197C12.6768 15.5126 12.6768 15.9874 12.9697 16.2803C13.2626 16.5732 13.7375 16.5732 14.0304 16.2803L16.2764 14.0342C16.2905 14.0204 16.3039 14.0061 16.3169 13.9911Z",
|
|
9357
9477
|
fill: "#363B3F"
|
|
9478
|
+
}))), /*#__PURE__*/React.createElement("symbol", {
|
|
9479
|
+
fill: "none",
|
|
9480
|
+
viewBox: "0 0 16 16",
|
|
9481
|
+
id: "split-flv"
|
|
9482
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
9483
|
+
viewBox: "0 0 18 18",
|
|
9484
|
+
fill: "none",
|
|
9485
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9486
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
9487
|
+
d: "M6 10.5C6.41421 10.5 6.75 10.8358 6.75 11.25C6.75 11.6642 6.41421 12 6 12H3V15H6C6.41421 15 6.75 15.3358 6.75 15.75C6.75 16.1642 6.41421 16.5 6 16.5H3C2.22326 16.5 1.58475 15.9096 1.50806 15.1531L1.5 15V12C1.5 11.1716 2.17157 10.5 3 10.5H6Z",
|
|
9488
|
+
fill: "#363B3F"
|
|
9489
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
9490
|
+
d: "M9 10.5C9.41421 10.5 9.75 10.8358 9.75 11.25V15.75C9.75 16.1642 9.41421 16.5 9 16.5C8.58579 16.5 8.25 16.1642 8.25 15.75V11.25C8.25 10.8358 8.58579 10.5 9 10.5Z",
|
|
9491
|
+
fill: "#363B3F"
|
|
9492
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
9493
|
+
d: "M15 10.5C15.7767 10.5 16.4152 11.0904 16.4919 11.8469L16.5 12V15C16.5 15.8284 15.8284 16.5 15 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H15V12H12C11.5858 12 11.25 11.6642 11.25 11.25C11.25 10.8358 11.5858 10.5 12 10.5H15Z",
|
|
9494
|
+
fill: "#363B3F"
|
|
9495
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
9496
|
+
d: "M4.5 7.5C4.91421 7.5 5.25 7.83579 5.25 8.25C5.25 8.66421 4.91421 9 4.5 9H2.25C1.83579 9 1.5 8.66421 1.5 8.25C1.5 7.83579 1.83579 7.5 2.25 7.5H4.5Z",
|
|
9497
|
+
fill: "#363B3F"
|
|
9498
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
9499
|
+
d: "M12 1.5C12.5967 1.5 13.1689 1.73722 13.5908 2.15918C13.96 2.52833 14.1878 3.01237 14.239 3.52734L14.25 3.75V6.43945L15.2197 5.46973C15.5126 5.17687 15.9874 5.17687 16.2803 5.46973C16.5732 5.76261 16.5731 6.23738 16.2803 6.53027L14.0303 8.78027C13.7374 9.07317 13.2626 9.07317 12.9697 8.78027L10.7197 6.53027L10.6685 6.47314C10.4282 6.17857 10.4452 5.7443 10.7197 5.46973C10.9943 5.19517 11.4286 5.17823 11.7231 5.41846L11.7803 5.46973L12.75 6.43945V3.75L12.7463 3.67603C12.7293 3.50428 12.6534 3.34283 12.5303 3.21973C12.3896 3.07907 12.1989 3 12 3H11.25C10.8358 3 10.5 2.66421 10.5 2.25C10.5 1.83579 10.8358 1.5 11.25 1.5H12Z",
|
|
9500
|
+
fill: "#363B3F"
|
|
9501
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
9502
|
+
d: "M8.25 4.5C8.66421 4.5 9 4.83579 9 5.25C9 5.66421 8.66421 6 8.25 6H2.25C1.83579 6 1.5 5.66421 1.5 5.25C1.5 4.83579 1.83579 4.5 2.25 4.5H8.25Z",
|
|
9503
|
+
fill: "#363B3F"
|
|
9504
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
9505
|
+
d: "M8.25 1.5C8.66421 1.5 9 1.83579 9 2.25C9 2.66421 8.66421 3 8.25 3H2.25C1.83579 3 1.5 2.66421 1.5 2.25C1.5 1.83579 1.83579 1.5 2.25 1.5H8.25Z",
|
|
9506
|
+
fill: "#363B3F"
|
|
9358
9507
|
}))), /*#__PURE__*/React.createElement("symbol", {
|
|
9359
9508
|
viewBox: "0 0 1024 1024",
|
|
9360
9509
|
version: "1.1",
|
|
@@ -10310,7 +10459,30 @@ var SVGDefines = function SVGDefines(_ref) {
|
|
|
10310
10459
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10311
10460
|
d: "M6.64775 8.97978L3.77152 6.10355C3.45654 5.78857 3.67962 5.25 4.12507 5.25H9.87753C10.323 5.25 10.5461 5.78857 10.2311 6.10355L7.35486 8.97978C7.15959 9.17504 6.84301 9.17504 6.64775 8.97978Z",
|
|
10312
10461
|
fill: "#363B3F"
|
|
10313
|
-
}))
|
|
10462
|
+
})), /*#__PURE__*/React.createElement("symbol", {
|
|
10463
|
+
id: "reset-color",
|
|
10464
|
+
width: "16",
|
|
10465
|
+
height: "16",
|
|
10466
|
+
viewBox: "0 0 16 16",
|
|
10467
|
+
fill: "none"
|
|
10468
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
10469
|
+
width: "16",
|
|
10470
|
+
height: "16",
|
|
10471
|
+
viewBox: "0 0 16 16",
|
|
10472
|
+
fill: "none",
|
|
10473
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10474
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
10475
|
+
"fill-rule": "evenodd",
|
|
10476
|
+
"clip-rule": "evenodd",
|
|
10477
|
+
d: "M0.862148 0.862148C1.10623 0.618071 1.49223 0.603009 1.75408 0.816575L1.80486 0.862148L12.551 11.6082C12.5999 11.6454 12.6425 11.6884 12.6786 11.7358L15.1382 14.1955L15.1838 14.2463C15.3972 14.5081 15.3822 14.8942 15.1382 15.1382C14.8942 15.3822 14.5081 15.3972 14.2463 15.1838L14.1955 15.1382L12.2625 13.2052C11.7308 13.9122 11.0289 14.4803 10.2157 14.8517C9.12793 15.3485 7.90444 15.4657 6.74236 15.1838C5.58035 14.9018 4.54658 14.237 3.80746 13.297C3.11451 12.4157 2.71809 11.3399 2.67139 10.2235L2.66684 10.0002C2.66684 8.42922 3.45419 6.99237 4.89079 5.8335L0.862148 1.80486L0.816576 1.75408C0.603009 1.49223 0.618071 1.10623 0.862148 0.862148ZM5.75082 6.85368C4.53724 7.82455 4.00017 8.91389 4.00017 10.0002L4.00342 10.1681C4.03852 11.0053 4.33604 11.8119 4.85564 12.4728C5.40996 13.1777 6.18536 13.676 7.05681 13.8875C7.92833 14.099 8.84587 14.0114 9.66163 13.6388C10.3296 13.3337 10.8972 12.8516 11.3068 12.2495L5.83741 6.78012C5.80821 6.80424 5.78036 6.83 5.75082 6.85368Z",
|
|
10478
|
+
fill: "#363B3F"
|
|
10479
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
10480
|
+
d: "M13.1121 8.58741C13.2242 8.93794 13.0303 9.31366 12.6799 9.42595C12.3294 9.53789 11.9543 9.34458 11.842 8.99431L13.1121 8.58741Z",
|
|
10481
|
+
fill: "#363B3F"
|
|
10482
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
10483
|
+
d: "M8.00147 1.3335C8.31859 1.33426 8.59155 1.55835 8.65382 1.86931C8.95517 3.3758 9.86768 4.83997 11.0835 5.81267L11.2677 5.96501C12.171 6.73236 12.8015 7.61685 13.1121 8.58741L12.4767 8.79053L11.842 8.99431C11.6214 8.30509 11.1562 7.61973 10.4045 6.98129L10.2508 6.85434C9.31898 6.10886 8.53727 5.12515 8.00017 4.03337C7.83296 4.35237 7.44178 4.48213 7.11671 4.32243C6.78643 4.15985 6.6502 3.76015 6.81267 3.42986C7.05681 2.9339 7.23662 2.40833 7.34717 1.86671L7.3615 1.80941C7.44507 1.52891 7.70415 1.33298 8.00147 1.3335Z",
|
|
10484
|
+
fill: "#363B3F"
|
|
10485
|
+
})))));
|
|
10314
10486
|
};
|
|
10315
10487
|
|
|
10316
10488
|
var ChangeColor = function ChangeColor(_ref) {
|