@fileverse-dev/fortune-react 1.0.2-mod-48-patch-1 → 1.0.2-mod-50

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 CHANGED
@@ -2620,7 +2620,8 @@ input[type="number"].condition-rules-project-input {
2620
2620
  /* position: absolute;
2621
2621
  padding: 30px 42px;
2622
2622
  z-index: 1002; */
2623
- min-width: 500px;
2623
+ /* min-width: 500px; */
2624
+ width: 464px;
2624
2625
  }
2625
2626
  #fortune-split-column label {
2626
2627
  -webkit-user-select: none;
@@ -2631,12 +2632,48 @@ input[type="number"].condition-rules-project-input {
2631
2632
  font-size: 16px;
2632
2633
  }
2633
2634
  #fortune-split-column .splitDelimiters {
2634
- margin-top: 10px;
2635
+ margin-top: 20px;
2636
+ }
2637
+
2638
+
2639
+
2640
+ input[type="checkbox"] {
2641
+ accent-color: black;
2642
+ -moz-appearance: none;
2643
+ appearance: none;
2644
+ -webkit-appearance: none;
2645
+ width: 16px;
2646
+ height: 16px;
2647
+ border: 1.5px solid black;
2648
+ border-radius: 3px;
2649
+ position: relative;
2650
+ cursor: pointer;
2651
+ }
2652
+
2653
+ input[type="checkbox"]:checked {
2654
+ background-color: black;
2655
+ border-color: black;
2656
+ }
2657
+
2658
+ /* Smaller tick mark */
2659
+ input[type="checkbox"]:checked::before {
2660
+ content: '';
2661
+ position: absolute;
2662
+ top: 2px;
2663
+ left: 4px;
2664
+ width: 4px; /* Reduced from default */
2665
+ height: 7px; /* Reduced from default */
2666
+ border: solid white;
2667
+ border-width: 0 1px 1px 0;
2668
+ transform: rotate(45deg);
2669
+ }
2670
+ .splitSymbols {
2671
+ width: 464px
2635
2672
  }
2636
2673
  #fortune-split-column .splitSymbols {
2637
2674
  position: relative;
2638
- border: 1px solid #dfdfdf;
2639
- padding: 5px;
2675
+ /* border: 1px solid #dfdfdf; */
2676
+ padding: 5px 5px 5px 0;
2640
2677
  margin: 5px 0px;
2641
2678
  }
2642
2679
  #fortune-split-column .splitSymbol {
@@ -2654,10 +2691,13 @@ input[type="number"].condition-rules-project-input {
2654
2691
  }
2655
2692
  #fortune-split-column .splitDataPreview {
2656
2693
  font-size: 14px;
2657
- margin-top: 26px;
2694
+ /* margin-top: 26px; */
2695
+ margin-bottom: 12px;
2658
2696
  }
2659
2697
  #fortune-split-column .splitColumnData {
2660
2698
  border: 1px solid #dfdfdf;
2699
+ border-radius: 4px;
2700
+ background-color: #F8F9FA;
2661
2701
  padding: 5px;
2662
2702
  margin: 5px 0px;
2663
2703
  height: 100px;
@@ -2620,7 +2620,8 @@ input[type="number"].condition-rules-project-input {
2620
2620
  /* position: absolute;
2621
2621
  padding: 30px 42px;
2622
2622
  z-index: 1002; */
2623
- min-width: 500px;
2623
+ /* min-width: 500px; */
2624
+ width: 464px;
2624
2625
  }
2625
2626
  #fortune-split-column label {
2626
2627
  -webkit-user-select: none;
@@ -2631,12 +2632,48 @@ input[type="number"].condition-rules-project-input {
2631
2632
  font-size: 16px;
2632
2633
  }
2633
2634
  #fortune-split-column .splitDelimiters {
2634
- margin-top: 10px;
2635
+ margin-top: 20px;
2636
+ }
2637
+
2638
+
2639
+
2640
+ input[type="checkbox"] {
2641
+ accent-color: black;
2642
+ -moz-appearance: none;
2643
+ appearance: none;
2644
+ -webkit-appearance: none;
2645
+ width: 16px;
2646
+ height: 16px;
2647
+ border: 1.5px solid black;
2648
+ border-radius: 3px;
2649
+ position: relative;
2650
+ cursor: pointer;
2651
+ }
2652
+
2653
+ input[type="checkbox"]:checked {
2654
+ background-color: black;
2655
+ border-color: black;
2656
+ }
2657
+
2658
+ /* Smaller tick mark */
2659
+ input[type="checkbox"]:checked::before {
2660
+ content: '';
2661
+ position: absolute;
2662
+ top: 2px;
2663
+ left: 4px;
2664
+ width: 4px; /* Reduced from default */
2665
+ height: 7px; /* Reduced from default */
2666
+ border: solid white;
2667
+ border-width: 0 1px 1px 0;
2668
+ transform: rotate(45deg);
2669
+ }
2670
+ .splitSymbols {
2671
+ width: 464px
2635
2672
  }
2636
2673
  #fortune-split-column .splitSymbols {
2637
2674
  position: relative;
2638
- border: 1px solid #dfdfdf;
2639
- padding: 5px;
2675
+ /* border: 1px solid #dfdfdf; */
2676
+ padding: 5px 5px 5px 0;
2640
2677
  margin: 5px 0px;
2641
2678
  }
2642
2679
  #fortune-split-column .splitSymbol {
@@ -2654,10 +2691,13 @@ input[type="number"].condition-rules-project-input {
2654
2691
  }
2655
2692
  #fortune-split-column .splitDataPreview {
2656
2693
  font-size: 14px;
2657
- margin-top: 26px;
2694
+ /* margin-top: 26px; */
2695
+ margin-bottom: 12px;
2658
2696
  }
2659
2697
  #fortune-split-column .splitColumnData {
2660
2698
  border: 1px solid #dfdfdf;
2699
+ border-radius: 4px;
2700
+ background-color: #F8F9FA;
2661
2701
  padding: 5px;
2662
2702
  margin: 5px 0px;
2663
2703
  height: 100px;
package/dist/index.esm.js CHANGED
@@ -4659,32 +4659,47 @@ 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: "title"
4663
- }, splitText.splitTextTitle), /*#__PURE__*/React.createElement("div", {
4664
- className: "splitDelimiters"
4665
- }, splitText.splitDelimiters), /*#__PURE__*/React.createElement("div", {
4666
- className: "splitSymbols",
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
- return setSplitOperate(function (regStr) {
4678
- var _splitSymbols$current;
4679
- return getRegStr(regStr, (_splitSymbols$current = splitSymbols.current) === null || _splitSymbols$current === void 0 ? void 0 : _splitSymbols$current.childNodes);
4690
+ setSplitOperate(function (regStr) {
4691
+ var _splitSymbols$current, _splitSymbols$current2;
4692
+ console.log(getRegStr(regStr, (_splitSymbols$current = splitSymbols.current) === null || _splitSymbols$current === void 0 ? void 0 : _splitSymbols$current.childNodes));
4693
+ return getRegStr(regStr, (_splitSymbols$current2 = splitSymbols.current) === null || _splitSymbols$current2 === void 0 ? void 0 : _splitSymbols$current2.childNodes);
4680
4694
  });
4681
4695
  },
4682
4696
  tabIndex: 0
4683
4697
  }), /*#__PURE__*/React.createElement("label", {
4684
- htmlFor: o.value
4698
+ htmlFor: o.value,
4699
+ className: "text-body-sm"
4685
4700
  }, o.name));
4686
- }), /*#__PURE__*/React.createElement("div", {
4687
- className: "splitSymbol"
4701
+ })), /*#__PURE__*/React.createElement("div", {
4702
+ className: "splitSymbol flex gap-2 items-center pb-4 mb-4 border-b"
4688
4703
  }, /*#__PURE__*/React.createElement("input", {
4689
4704
  id: "other",
4690
4705
  name: "other",
@@ -4692,68 +4707,56 @@ var SplitColumn = function SplitColumn() {
4692
4707
  onClick: function onClick() {
4693
4708
  setOtherFlag(!otherFlag);
4694
4709
  setSplitOperate(function (regStr) {
4695
- var _splitSymbols$current2;
4696
- return getRegStr(regStr, (_splitSymbols$current2 = splitSymbols.current) === null || _splitSymbols$current2 === void 0 ? void 0 : _splitSymbols$current2.childNodes);
4710
+ var _splitSymbols$current3;
4711
+ return getRegStr(regStr, (_splitSymbols$current3 = splitSymbols.current) === null || _splitSymbols$current3 === void 0 ? void 0 : _splitSymbols$current3.childNodes);
4697
4712
  });
4698
4713
  },
4699
4714
  tabIndex: 0
4700
4715
  }), /*#__PURE__*/React.createElement("label", {
4701
4716
  htmlFor: "other"
4702
- }, splitText.splitOther), /*#__PURE__*/React.createElement("input", {
4717
+ }, "Custom"), /*#__PURE__*/React.createElement("input", {
4703
4718
  id: "otherValue",
4704
4719
  name: "otherValue",
4705
4720
  type: "text",
4706
4721
  onBlur: function onBlur() {
4707
4722
  if (otherFlag) {
4708
4723
  setSplitOperate(function (regStr) {
4709
- var _splitSymbols$current3;
4710
- return getRegStr(regStr, (_splitSymbols$current3 = splitSymbols.current) === null || _splitSymbols$current3 === void 0 ? void 0 : _splitSymbols$current3.childNodes);
4724
+ var _splitSymbols$current4;
4725
+ return getRegStr(regStr, (_splitSymbols$current4 = splitSymbols.current) === null || _splitSymbols$current4 === void 0 ? void 0 : _splitSymbols$current4.childNodes);
4711
4726
  });
4712
4727
  }
4713
4728
  }
4714
4729
  })), /*#__PURE__*/React.createElement("div", {
4715
- className: "splitSymbol splitSimple"
4730
+ className: "splitSymbol flex gap-2 mb-4 items-center"
4716
4731
  }, /*#__PURE__*/React.createElement("input", {
4717
4732
  id: "splitsimple",
4718
4733
  name: "splitsimple",
4719
4734
  type: "checkbox",
4720
4735
  onClick: function onClick() {
4721
4736
  setSplitOperate(function (regStr) {
4722
- var _splitSymbols$current4;
4723
- return getRegStr(regStr, (_splitSymbols$current4 = splitSymbols.current) === null || _splitSymbols$current4 === void 0 ? void 0 : _splitSymbols$current4.childNodes);
4737
+ var _splitSymbols$current5;
4738
+ return getRegStr(regStr, (_splitSymbols$current5 = splitSymbols.current) === null || _splitSymbols$current5 === void 0 ? void 0 : _splitSymbols$current5.childNodes);
4724
4739
  });
4725
4740
  },
4726
4741
  tabIndex: 0
4727
4742
  }), /*#__PURE__*/React.createElement("label", {
4728
4743
  htmlFor: "splitsimple"
4729
- }, splitText.splitContinueSymbol))), /*#__PURE__*/React.createElement("div", {
4730
- className: "splitDataPreview"
4731
- }, splitText.splitDataPreview), /*#__PURE__*/React.createElement("div", {
4732
- className: "splitColumnData"
4733
- }, /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("tbody", null, tableData.map(function (o, index) {
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",
4744
+ }, splitText.splitContinueSymbol)), /*#__PURE__*/React.createElement("div", {
4745
+ className: "flex justify-end gap-2"
4746
+ }, /*#__PURE__*/React.createElement(Button$1, {
4747
+ className: "",
4748
+ variant: "secondary",
4746
4749
  onClick: function onClick() {
4747
- certainBtn();
4750
+ hideDialog();
4748
4751
  },
4749
4752
  tabIndex: 0
4750
- }, button.confirm), /*#__PURE__*/React.createElement("div", {
4751
- className: "button-basic button-close",
4753
+ }, button.cancel), /*#__PURE__*/React.createElement(Button$1, {
4754
+ className: "",
4752
4755
  onClick: function onClick() {
4753
- hideDialog();
4756
+ certainBtn();
4754
4757
  },
4755
4758
  tabIndex: 0
4756
- }, button.cancel));
4759
+ }, "Split")));
4757
4760
  };
4758
4761
 
4759
4762
  var LocationCondition = function LocationCondition() {
@@ -7527,7 +7530,8 @@ var ContextMenu = function ContextMenu() {
7527
7530
  drag = _locale.drag,
7528
7531
  generalDialog = _locale.generalDialog,
7529
7532
  info = _locale.info,
7530
- toolbar = _locale.toolbar;
7533
+ toolbar = _locale.toolbar,
7534
+ splitText = _locale.splitText;
7531
7535
  var getMenuElement = useCallback(function (name, i) {
7532
7536
  var _context$luckysheet_s;
7533
7537
  var selection = (_context$luckysheet_s = context.luckysheet_select_save) === null || _context$luckysheet_s === void 0 ? void 0 : _context$luckysheet_s[0];
@@ -7536,6 +7540,39 @@ var ContextMenu = function ContextMenu() {
7536
7540
  key: "divider-".concat(i)
7537
7541
  });
7538
7542
  }
7543
+ if (name === "split-text") {
7544
+ return /*#__PURE__*/React.createElement(Menu, {
7545
+ key: "split-text",
7546
+ onClick: function onClick() {
7547
+ if (context.allowEdit === false) return;
7548
+ if (_.isUndefined(context.luckysheet_select_save)) {
7549
+ showDialog(splitText.tipNoSelect, "ok");
7550
+ } else {
7551
+ var currentColumn = context.luckysheet_select_save[context.luckysheet_select_save.length - 1].column;
7552
+ if (context.luckysheet_select_save.length > 1) {
7553
+ showDialog(splitText.tipNoMulti, "ok");
7554
+ } else if (currentColumn[0] !== currentColumn[1]) {
7555
+ showDialog(splitText.tipNoMultiColumn, "ok");
7556
+ } else {
7557
+ showDialog(/*#__PURE__*/React.createElement(SplitColumn, null), undefined, "Split text to columns");
7558
+ }
7559
+ }
7560
+ setContext(function (draftCtx) {
7561
+ draftCtx.contextMenu = {};
7562
+ });
7563
+ }
7564
+ }, /*#__PURE__*/React.createElement("div", {
7565
+ className: "context-item"
7566
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
7567
+ name: "split-flv",
7568
+ width: 16,
7569
+ height: 16,
7570
+ style: {
7571
+ marginTop: "4px",
7572
+ marginRight: "4px"
7573
+ }
7574
+ }), "Split text to columns"));
7575
+ }
7539
7576
  if (name === "freeze-row") {
7540
7577
  var freezeState = getFreezeState(context);
7541
7578
  var isFrozen = freezeState.isRowFrozen;
@@ -7831,7 +7868,7 @@ var ContextMenu = function ContextMenu() {
7831
7868
  });
7832
7869
  }
7833
7870
  if (name === "delete-column") {
7834
- return (/*#__PURE__*/React.createElement(Menu, {
7871
+ return (selection === null || selection === void 0 ? void 0 : selection.column_select) && (/*#__PURE__*/React.createElement(Menu, {
7835
7872
  key: "delete-col",
7836
7873
  onClick: function onClick() {
7837
7874
  if (!selection) return;
@@ -7882,8 +7919,60 @@ var ContextMenu = function ContextMenu() {
7882
7919
  }
7883
7920
  }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
7884
7921
  }
7922
+ if (name === "cell-delete-column") {
7923
+ return !(selection === null || selection === void 0 ? void 0 : selection.row_select) && (/*#__PURE__*/React.createElement(Menu, {
7924
+ key: "cell-delete-col",
7925
+ onClick: function onClick() {
7926
+ if (!selection) return;
7927
+ var _selection$column2 = _slicedToArray(selection.column, 2),
7928
+ st_index = _selection$column2[0],
7929
+ ed_index = _selection$column2[1];
7930
+ var deleteRowColOp = {
7931
+ type: "column",
7932
+ start: st_index,
7933
+ end: ed_index,
7934
+ id: context.currentSheetId
7935
+ };
7936
+ setContext(function (draftCtx) {
7937
+ var _draftCtx$luckysheet_4, _draftCtx$luckysheetf3, _draftCtx$luckysheetf4;
7938
+ if (((_draftCtx$luckysheet_4 = draftCtx.luckysheet_select_save) === null || _draftCtx$luckysheet_4 === void 0 ? void 0 : _draftCtx$luckysheet_4.length) > 1) {
7939
+ showAlert(rightclick.noMulti, "ok");
7940
+ draftCtx.contextMenu = {};
7941
+ draftCtx.dataVerificationDropDownList = false;
7942
+ return;
7943
+ }
7944
+ var slen = ed_index - st_index + 1;
7945
+ var index = getSheetIndex(draftCtx, context.currentSheetId);
7946
+ 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) {
7947
+ showAlert(rightclick.cannotDeleteAllColumn, "ok");
7948
+ draftCtx.contextMenu = {};
7949
+ return;
7950
+ }
7951
+ try {
7952
+ deleteRowCol(draftCtx, deleteRowColOp);
7953
+ } catch (e) {
7954
+ if (e.message === "readOnly") {
7955
+ showAlert(rightclick.cannotDeleteColumnReadOnly, "ok");
7956
+ }
7957
+ }
7958
+ draftCtx.contextMenu = {};
7959
+ }, {
7960
+ deleteRowColOp: deleteRowColOp
7961
+ });
7962
+ }
7963
+ }, /*#__PURE__*/React.createElement("div", {
7964
+ className: "context-item"
7965
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
7966
+ name: "delete-flv",
7967
+ width: 18,
7968
+ height: 18,
7969
+ style: {
7970
+ marginRight: "8px"
7971
+ }
7972
+ }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
7973
+ }
7885
7974
  if (name === "delete-row") {
7886
- return (/*#__PURE__*/React.createElement(Menu, {
7975
+ return (selection === null || selection === void 0 ? void 0 : selection.row_select) && (/*#__PURE__*/React.createElement(Menu, {
7887
7976
  key: "delete-row",
7888
7977
  onClick: function onClick() {
7889
7978
  if (!selection) return;
@@ -7897,15 +7986,66 @@ var ContextMenu = function ContextMenu() {
7897
7986
  id: context.currentSheetId
7898
7987
  };
7899
7988
  setContext(function (draftCtx) {
7900
- var _draftCtx$luckysheet_4, _draftCtx$luckysheetf3;
7901
- if (((_draftCtx$luckysheet_4 = draftCtx.luckysheet_select_save) === null || _draftCtx$luckysheet_4 === void 0 ? void 0 : _draftCtx$luckysheet_4.length) > 1) {
7989
+ var _draftCtx$luckysheet_5, _draftCtx$luckysheetf5;
7990
+ if (((_draftCtx$luckysheet_5 = draftCtx.luckysheet_select_save) === null || _draftCtx$luckysheet_5 === void 0 ? void 0 : _draftCtx$luckysheet_5.length) > 1) {
7991
+ showAlert(rightclick.noMulti, "ok");
7992
+ draftCtx.contextMenu = {};
7993
+ return;
7994
+ }
7995
+ var slen = ed_index - st_index + 1;
7996
+ var index = getSheetIndex(draftCtx, context.currentSheetId);
7997
+ if (((_draftCtx$luckysheetf5 = draftCtx.luckysheetfile[index].data) === null || _draftCtx$luckysheetf5 === void 0 ? void 0 : _draftCtx$luckysheetf5.length) <= slen) {
7998
+ showAlert(rightclick.cannotDeleteAllRow, "ok");
7999
+ draftCtx.contextMenu = {};
8000
+ return;
8001
+ }
8002
+ try {
8003
+ deleteRowCol(draftCtx, deleteRowColOp);
8004
+ } catch (e) {
8005
+ if (e.message === "readOnly") {
8006
+ showAlert(rightclick.cannotDeleteRowReadOnly, "ok");
8007
+ }
8008
+ }
8009
+ draftCtx.contextMenu = {};
8010
+ }, {
8011
+ deleteRowColOp: deleteRowColOp
8012
+ });
8013
+ }
8014
+ }, /*#__PURE__*/React.createElement("div", {
8015
+ className: "context-item"
8016
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8017
+ name: "delete-flv",
8018
+ width: 18,
8019
+ height: 18,
8020
+ style: {
8021
+ marginRight: "8px"
8022
+ }
8023
+ }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.row))));
8024
+ }
8025
+ if (name === "cell-delete-row") {
8026
+ return !(selection === null || selection === void 0 ? void 0 : selection.column_select) && (/*#__PURE__*/React.createElement(Menu, {
8027
+ key: "cell-delete-row",
8028
+ onClick: function onClick() {
8029
+ if (!selection) return;
8030
+ var _selection$row2 = _slicedToArray(selection.row, 2),
8031
+ st_index = _selection$row2[0],
8032
+ ed_index = _selection$row2[1];
8033
+ var deleteRowColOp = {
8034
+ type: "row",
8035
+ start: st_index,
8036
+ end: ed_index,
8037
+ id: context.currentSheetId
8038
+ };
8039
+ setContext(function (draftCtx) {
8040
+ var _draftCtx$luckysheet_6, _draftCtx$luckysheetf6;
8041
+ if (((_draftCtx$luckysheet_6 = draftCtx.luckysheet_select_save) === null || _draftCtx$luckysheet_6 === void 0 ? void 0 : _draftCtx$luckysheet_6.length) > 1) {
7902
8042
  showAlert(rightclick.noMulti, "ok");
7903
8043
  draftCtx.contextMenu = {};
7904
8044
  return;
7905
8045
  }
7906
8046
  var slen = ed_index - st_index + 1;
7907
8047
  var index = getSheetIndex(draftCtx, context.currentSheetId);
7908
- if (((_draftCtx$luckysheetf3 = draftCtx.luckysheetfile[index].data) === null || _draftCtx$luckysheetf3 === void 0 ? void 0 : _draftCtx$luckysheetf3.length) <= slen) {
8048
+ if (((_draftCtx$luckysheetf6 = draftCtx.luckysheetfile[index].data) === null || _draftCtx$luckysheetf6 === void 0 ? void 0 : _draftCtx$luckysheetf6.length) <= slen) {
7909
8049
  showAlert(rightclick.cannotDeleteAllRow, "ok");
7910
8050
  draftCtx.contextMenu = {};
7911
8051
  return;
@@ -8162,7 +8302,7 @@ var ContextMenu = function ContextMenu() {
8162
8302
  height: 18,
8163
8303
  style: {
8164
8304
  marginTop: "4px",
8165
- marginRight: "4px"
8305
+ marginRight: "8px"
8166
8306
  }
8167
8307
  }), /*#__PURE__*/React.createElement("p", null, "Ascending sort")));
8168
8308
  }
@@ -8185,7 +8325,7 @@ var ContextMenu = function ContextMenu() {
8185
8325
  height: 18,
8186
8326
  style: {
8187
8327
  marginTop: "4px",
8188
- marginRight: "4px"
8328
+ marginRight: "8px"
8189
8329
  }
8190
8330
  }), /*#__PURE__*/React.createElement("p", null, "Descending sort")));
8191
8331
  }
@@ -9355,6 +9495,35 @@ var SVGDefines = function SVGDefines(_ref) {
9355
9495
  }), /*#__PURE__*/React.createElement("path", {
9356
9496
  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
9497
  fill: "#363B3F"
9498
+ }))), /*#__PURE__*/React.createElement("symbol", {
9499
+ fill: "none",
9500
+ viewBox: "0 0 16 16",
9501
+ id: "split-flv"
9502
+ }, /*#__PURE__*/React.createElement("svg", {
9503
+ viewBox: "0 0 18 18",
9504
+ fill: "none",
9505
+ xmlns: "http://www.w3.org/2000/svg"
9506
+ }, /*#__PURE__*/React.createElement("path", {
9507
+ 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",
9508
+ fill: "#363B3F"
9509
+ }), /*#__PURE__*/React.createElement("path", {
9510
+ 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",
9511
+ fill: "#363B3F"
9512
+ }), /*#__PURE__*/React.createElement("path", {
9513
+ 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",
9514
+ fill: "#363B3F"
9515
+ }), /*#__PURE__*/React.createElement("path", {
9516
+ 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",
9517
+ fill: "#363B3F"
9518
+ }), /*#__PURE__*/React.createElement("path", {
9519
+ 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",
9520
+ fill: "#363B3F"
9521
+ }), /*#__PURE__*/React.createElement("path", {
9522
+ 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",
9523
+ fill: "#363B3F"
9524
+ }), /*#__PURE__*/React.createElement("path", {
9525
+ 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",
9526
+ fill: "#363B3F"
9358
9527
  }))), /*#__PURE__*/React.createElement("symbol", {
9359
9528
  viewBox: "0 0 1024 1024",
9360
9529
  version: "1.1",