@leankylin-sheet/react 1.2.19 → 1.3.0
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.esm.js +174 -193
- package/dist/index.js +174 -193
- package/dist/index.umd.js +68191 -520
- package/dist/index.umd.min.js +2 -2
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -4,6 +4,37 @@ import produce, { applyPatches, enablePatches, produceWithPatches } from 'immer'
|
|
|
4
4
|
import _ from 'lodash';
|
|
5
5
|
import { createPortal } from 'react-dom';
|
|
6
6
|
|
|
7
|
+
function _arrayLikeToArray(r, a) {
|
|
8
|
+
(null == a || a > r.length) && (a = r.length);
|
|
9
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
10
|
+
return n;
|
|
11
|
+
}
|
|
12
|
+
function _arrayWithHoles(r) {
|
|
13
|
+
if (Array.isArray(r)) return r;
|
|
14
|
+
}
|
|
15
|
+
function _arrayWithoutHoles(r) {
|
|
16
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
17
|
+
}
|
|
18
|
+
function _defineProperty(e, r, t) {
|
|
19
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
20
|
+
value: t,
|
|
21
|
+
enumerable: !0,
|
|
22
|
+
configurable: !0,
|
|
23
|
+
writable: !0
|
|
24
|
+
}) : e[r] = t, e;
|
|
25
|
+
}
|
|
26
|
+
function _extends() {
|
|
27
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
28
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
29
|
+
var t = arguments[e];
|
|
30
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
31
|
+
}
|
|
32
|
+
return n;
|
|
33
|
+
}, _extends.apply(null, arguments);
|
|
34
|
+
}
|
|
35
|
+
function _iterableToArray(r) {
|
|
36
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
37
|
+
}
|
|
7
38
|
function _iterableToArrayLimit(r, l) {
|
|
8
39
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
9
40
|
if (null != t) {
|
|
@@ -31,6 +62,15 @@ function _iterableToArrayLimit(r, l) {
|
|
|
31
62
|
return a;
|
|
32
63
|
}
|
|
33
64
|
}
|
|
65
|
+
function _nonIterableRest() {
|
|
66
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
67
|
+
}
|
|
68
|
+
function _nonIterableSpread() {
|
|
69
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
70
|
+
}
|
|
71
|
+
function _objectDestructuringEmpty(t) {
|
|
72
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
73
|
+
}
|
|
34
74
|
function ownKeys(e, r) {
|
|
35
75
|
var t = Object.keys(e);
|
|
36
76
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -52,6 +92,32 @@ function _objectSpread2(e) {
|
|
|
52
92
|
}
|
|
53
93
|
return e;
|
|
54
94
|
}
|
|
95
|
+
function _objectWithoutProperties(e, t) {
|
|
96
|
+
if (null == e) return {};
|
|
97
|
+
var o,
|
|
98
|
+
r,
|
|
99
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
100
|
+
if (Object.getOwnPropertySymbols) {
|
|
101
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
102
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
103
|
+
}
|
|
104
|
+
return i;
|
|
105
|
+
}
|
|
106
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
107
|
+
if (null == r) return {};
|
|
108
|
+
var t = {};
|
|
109
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
110
|
+
if (e.includes(n)) continue;
|
|
111
|
+
t[n] = r[n];
|
|
112
|
+
}
|
|
113
|
+
return t;
|
|
114
|
+
}
|
|
115
|
+
function _slicedToArray(r, e) {
|
|
116
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
117
|
+
}
|
|
118
|
+
function _toConsumableArray(r) {
|
|
119
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
120
|
+
}
|
|
55
121
|
function _toPrimitive(t, r) {
|
|
56
122
|
if ("object" != typeof t || !t) return t;
|
|
57
123
|
var e = t[Symbol.toPrimitive];
|
|
@@ -66,97 +132,12 @@ function _toPropertyKey(t) {
|
|
|
66
132
|
var i = _toPrimitive(t, "string");
|
|
67
133
|
return "symbol" == typeof i ? i : i + "";
|
|
68
134
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
enumerable: true,
|
|
75
|
-
configurable: true,
|
|
76
|
-
writable: true
|
|
77
|
-
});
|
|
78
|
-
} else {
|
|
79
|
-
obj[key] = value;
|
|
135
|
+
function _unsupportedIterableToArray(r, a) {
|
|
136
|
+
if (r) {
|
|
137
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
138
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
139
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
80
140
|
}
|
|
81
|
-
return obj;
|
|
82
|
-
}
|
|
83
|
-
function _extends() {
|
|
84
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
85
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
86
|
-
var source = arguments[i];
|
|
87
|
-
for (var key in source) {
|
|
88
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
89
|
-
target[key] = source[key];
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return target;
|
|
94
|
-
};
|
|
95
|
-
return _extends.apply(this, arguments);
|
|
96
|
-
}
|
|
97
|
-
function _objectDestructuringEmpty(obj) {
|
|
98
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
99
|
-
}
|
|
100
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
101
|
-
if (source == null) return {};
|
|
102
|
-
var target = {};
|
|
103
|
-
var sourceKeys = Object.keys(source);
|
|
104
|
-
var key, i;
|
|
105
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
106
|
-
key = sourceKeys[i];
|
|
107
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
108
|
-
target[key] = source[key];
|
|
109
|
-
}
|
|
110
|
-
return target;
|
|
111
|
-
}
|
|
112
|
-
function _objectWithoutProperties(source, excluded) {
|
|
113
|
-
if (source == null) return {};
|
|
114
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
115
|
-
var key, i;
|
|
116
|
-
if (Object.getOwnPropertySymbols) {
|
|
117
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
118
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
119
|
-
key = sourceSymbolKeys[i];
|
|
120
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
121
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
122
|
-
target[key] = source[key];
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return target;
|
|
126
|
-
}
|
|
127
|
-
function _slicedToArray(arr, i) {
|
|
128
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
129
|
-
}
|
|
130
|
-
function _toConsumableArray(arr) {
|
|
131
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
132
|
-
}
|
|
133
|
-
function _arrayWithoutHoles(arr) {
|
|
134
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
135
|
-
}
|
|
136
|
-
function _arrayWithHoles(arr) {
|
|
137
|
-
if (Array.isArray(arr)) return arr;
|
|
138
|
-
}
|
|
139
|
-
function _iterableToArray(iter) {
|
|
140
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
141
|
-
}
|
|
142
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
143
|
-
if (!o) return;
|
|
144
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
145
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
146
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
147
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
148
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
149
|
-
}
|
|
150
|
-
function _arrayLikeToArray(arr, len) {
|
|
151
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
152
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
153
|
-
return arr2;
|
|
154
|
-
}
|
|
155
|
-
function _nonIterableSpread() {
|
|
156
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
157
|
-
}
|
|
158
|
-
function _nonIterableRest() {
|
|
159
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
160
141
|
}
|
|
161
142
|
|
|
162
143
|
var defaultRefs = {
|
|
@@ -364,14 +345,14 @@ var ColumnHeader = function ColumnHeader() {
|
|
|
364
345
|
left: hoverLocation.col - 5 + (hoverInFreeze ? context.scrollLeft : 0),
|
|
365
346
|
opacity: context.luckysheet_cols_change_size ? 1 : 0
|
|
366
347
|
}
|
|
367
|
-
}), !context.luckysheet_cols_change_size && hoverLocation.col_index >= 0 ? (
|
|
348
|
+
}), !context.luckysheet_cols_change_size && hoverLocation.col_index >= 0 ? (/*#__PURE__*/React.createElement("div", {
|
|
368
349
|
className: "leankylin-col-header-hover",
|
|
369
350
|
style: _.assign({
|
|
370
351
|
left: hoverLocation.col_pre,
|
|
371
352
|
width: hoverLocation.col - hoverLocation.col_pre - 1,
|
|
372
353
|
display: "block"
|
|
373
354
|
}, fixColumnStyleOverflowInFreeze(context, hoverLocation.col_index, hoverLocation.col_index, (_refs$globalCache$fre2 = refs.globalCache.freezen) === null || _refs$globalCache$fre2 === void 0 ? void 0 : _refs$globalCache$fre2[context.currentSheetId]))
|
|
374
|
-
}, allowEditRef.current && (
|
|
355
|
+
}, allowEditRef.current && (/*#__PURE__*/React.createElement("span", {
|
|
375
356
|
className: "header-arrow",
|
|
376
357
|
onClick: function onClick(e) {
|
|
377
358
|
setContext(function (ctx) {
|
|
@@ -565,7 +546,7 @@ var RowHeader = function RowHeader() {
|
|
|
565
546
|
top: hoverLocation.row - 3 + (hoverInFreeze ? context.scrollTop : 0),
|
|
566
547
|
opacity: context.luckysheet_rows_change_size ? 1 : 0
|
|
567
548
|
}
|
|
568
|
-
}), !context.luckysheet_rows_change_size && hoverLocation.row_index >= 0 ? (
|
|
549
|
+
}), !context.luckysheet_rows_change_size && hoverLocation.row_index >= 0 ? (/*#__PURE__*/React.createElement("div", {
|
|
569
550
|
className: "leankylin-row-header-hover",
|
|
570
551
|
style: _.assign({
|
|
571
552
|
top: hoverLocation.row_pre,
|
|
@@ -758,9 +739,9 @@ var FormulaHint = function FormulaHint(props) {
|
|
|
758
739
|
key: param.name
|
|
759
740
|
}, /*#__PURE__*/React.createElement("div", {
|
|
760
741
|
className: "luckysheet-arguments-help-section-title"
|
|
761
|
-
}, param.name, param.repeat === "y" && (
|
|
742
|
+
}, param.name, param.repeat === "y" && (/*#__PURE__*/React.createElement("span", {
|
|
762
743
|
className: "luckysheet-arguments-help-argument-info"
|
|
763
|
-
}, "...-", formulaMore.allowRepeatText)), param.require === "o" && (
|
|
744
|
+
}, "...-", formulaMore.allowRepeatText)), param.require === "o" && (/*#__PURE__*/React.createElement("span", {
|
|
764
745
|
className: "luckysheet-arguments-help-argument-info"
|
|
765
746
|
}, "-[", formulaMore.allowOptionText, "]"))), /*#__PURE__*/React.createElement("span", {
|
|
766
747
|
className: "luckysheet-arguments-help-parameter-content"
|
|
@@ -954,7 +935,7 @@ var InputBox = function InputBox() {
|
|
|
954
935
|
onKeyDown: onKeyDown,
|
|
955
936
|
onPaste: onPaste,
|
|
956
937
|
allowEdit: edit ? !isHidenRC : edit
|
|
957
|
-
})), document.activeElement === inputRef.current && (
|
|
938
|
+
})), document.activeElement === inputRef.current && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormulaSearch, {
|
|
958
939
|
style: {
|
|
959
940
|
top: ((firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.height_move) || 0) + 4
|
|
960
941
|
}
|
|
@@ -1047,12 +1028,12 @@ var Dialog = function Dialog(_ref) {
|
|
|
1047
1028
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
1048
1029
|
className: "leankylin-dialog-box-content",
|
|
1049
1030
|
style: contentStyle
|
|
1050
|
-
}, children), type != null && (
|
|
1031
|
+
}, children), type != null && (/*#__PURE__*/React.createElement("div", {
|
|
1051
1032
|
className: "leankylin-dialog-box-button-container"
|
|
1052
|
-
}, type === "ok" ? (
|
|
1033
|
+
}, type === "ok" ? (/*#__PURE__*/React.createElement("div", {
|
|
1053
1034
|
className: "leankylin-message-box-button button-default",
|
|
1054
1035
|
onClick: onOk
|
|
1055
|
-
}, button.confirm)) : (
|
|
1036
|
+
}, button.confirm)) : (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
1056
1037
|
className: "leankylin-message-box-button button-primary",
|
|
1057
1038
|
onClick: onOk
|
|
1058
1039
|
}, button.confirm), /*#__PURE__*/React.createElement("div", {
|
|
@@ -1108,7 +1089,7 @@ var ModalProvider = function ModalProvider(_ref) {
|
|
|
1108
1089
|
}, [hideModal, showModal]);
|
|
1109
1090
|
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
1110
1091
|
value: providerValue
|
|
1111
|
-
}, children, component && (
|
|
1092
|
+
}, children, component && (/*#__PURE__*/React.createElement("div", {
|
|
1112
1093
|
onMouseDown: function onMouseDown(e) {
|
|
1113
1094
|
return e.stopPropagation();
|
|
1114
1095
|
},
|
|
@@ -1133,7 +1114,7 @@ function useAlert() {
|
|
|
1133
1114
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "ok";
|
|
1134
1115
|
var onOk = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : hideModal;
|
|
1135
1116
|
var onCancel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : hideModal;
|
|
1136
|
-
showModal(
|
|
1117
|
+
showModal(/*#__PURE__*/React.createElement(MessageBox, {
|
|
1137
1118
|
type: type,
|
|
1138
1119
|
onOk: onOk,
|
|
1139
1120
|
onCancel: onCancel
|
|
@@ -1203,7 +1184,7 @@ var SearchReplace = function SearchReplace() {
|
|
|
1203
1184
|
};
|
|
1204
1185
|
}, []);
|
|
1205
1186
|
var body = document.body;
|
|
1206
|
-
return /*#__PURE__*/createPortal(
|
|
1187
|
+
return /*#__PURE__*/createPortal(/*#__PURE__*/React.createElement("div", {
|
|
1207
1188
|
id: "leankylin-search-replace",
|
|
1208
1189
|
className: "leankylin-search-replace leankylin-dialog",
|
|
1209
1190
|
style: getInitialPosition(body),
|
|
@@ -1266,7 +1247,7 @@ var SearchReplace = function SearchReplace() {
|
|
|
1266
1247
|
onChange: function onChange(e) {
|
|
1267
1248
|
return setSearchText(e.target.value);
|
|
1268
1249
|
}
|
|
1269
|
-
})), showReplace && (
|
|
1250
|
+
})), showReplace && (/*#__PURE__*/React.createElement("div", {
|
|
1270
1251
|
className: "textboxs",
|
|
1271
1252
|
id: "replaceInput"
|
|
1272
1253
|
}, findAndReplace.replaceTextbox, "\uFF1A", /*#__PURE__*/React.createElement("input", {
|
|
@@ -1304,7 +1285,7 @@ var SearchReplace = function SearchReplace() {
|
|
|
1304
1285
|
}
|
|
1305
1286
|
}), /*#__PURE__*/React.createElement("span", null, findAndReplace.distinguishTextbox)))), /*#__PURE__*/React.createElement("div", {
|
|
1306
1287
|
className: "btnBox"
|
|
1307
|
-
}, showReplace && (
|
|
1288
|
+
}, showReplace && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
1308
1289
|
id: "replaceAllBtn",
|
|
1309
1290
|
className: "leankylin-message-box-button button-default",
|
|
1310
1291
|
onClick: function onClick() {
|
|
@@ -1351,7 +1332,7 @@ var SearchReplace = function SearchReplace() {
|
|
|
1351
1332
|
}, findAndReplace.findBtn))), /*#__PURE__*/React.createElement("div", {
|
|
1352
1333
|
className: "close-button leankylin-message-box-button button-default",
|
|
1353
1334
|
onClick: closeDialog
|
|
1354
|
-
}, button.close), searchResult.length > 0 && (
|
|
1335
|
+
}, button.close), searchResult.length > 0 && (/*#__PURE__*/React.createElement("div", {
|
|
1355
1336
|
id: "searchAllbox",
|
|
1356
1337
|
onScroll: function onScroll(e) {
|
|
1357
1338
|
return e.stopPropagation();
|
|
@@ -1544,7 +1525,7 @@ var LinkEditCard = function LinkEditCard(_ref) {
|
|
|
1544
1525
|
});
|
|
1545
1526
|
}));
|
|
1546
1527
|
}
|
|
1547
|
-
return selectingCellRange ? (
|
|
1528
|
+
return selectingCellRange ? (/*#__PURE__*/React.createElement("div", _objectSpread2(_objectSpread2({
|
|
1548
1529
|
className: "leankylin-link-modify-modal range-selection-modal",
|
|
1549
1530
|
style: {
|
|
1550
1531
|
left: position.cellLeft,
|
|
@@ -1579,7 +1560,7 @@ var LinkEditCard = function LinkEditCard(_ref) {
|
|
|
1579
1560
|
}, function () {
|
|
1580
1561
|
setLinkAddress(originAddress);
|
|
1581
1562
|
setRangeModalVisible(false);
|
|
1582
|
-
})))) : (
|
|
1563
|
+
})))) : (/*#__PURE__*/React.createElement("div", _objectSpread2({
|
|
1583
1564
|
className: "leankylin-link-modify-modal",
|
|
1584
1565
|
style: {
|
|
1585
1566
|
left: position.cellLeft + 20,
|
|
@@ -1623,7 +1604,7 @@ var LinkEditCard = function LinkEditCard(_ref) {
|
|
|
1623
1604
|
}, type.text);
|
|
1624
1605
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
1625
1606
|
className: "leankylin-link-modify-line"
|
|
1626
|
-
}, linkType === "webpage" && (
|
|
1607
|
+
}, linkType === "webpage" && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
1627
1608
|
className: "leankylin-link-modify-title"
|
|
1628
1609
|
}, insertLink.linkAddress), /*#__PURE__*/React.createElement("input", {
|
|
1629
1610
|
className: "leankylin-link-modify-input ".concat(!linkAddress || isLinkAddressValid.isValid ? "" : "error-input"),
|
|
@@ -1632,7 +1613,7 @@ var LinkEditCard = function LinkEditCard(_ref) {
|
|
|
1632
1613
|
onChange: function onChange(e) {
|
|
1633
1614
|
return setLinkAddress(e.target.value);
|
|
1634
1615
|
}
|
|
1635
|
-
}), tooltip)), linkType === "cellrange" && (
|
|
1616
|
+
}), tooltip)), linkType === "cellrange" && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
1636
1617
|
className: "leankylin-link-modify-title"
|
|
1637
1618
|
}, insertLink.linkCell), /*#__PURE__*/React.createElement("input", {
|
|
1638
1619
|
className: "leankylin-link-modify-input ".concat(!linkAddress || isLinkAddressValid.isValid ? "" : "error-input"),
|
|
@@ -1648,7 +1629,7 @@ var LinkEditCard = function LinkEditCard(_ref) {
|
|
|
1648
1629
|
}
|
|
1649
1630
|
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
1650
1631
|
name: "border-all"
|
|
1651
|
-
})), tooltip)), linkType === "sheet" && (
|
|
1632
|
+
})), tooltip)), linkType === "sheet" && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
1652
1633
|
className: "leankylin-link-modify-title"
|
|
1653
1634
|
}, insertLink.linkSheet), /*#__PURE__*/React.createElement("select", {
|
|
1654
1635
|
className: "leankylin-link-modify-select",
|
|
@@ -1729,7 +1710,7 @@ var FilterOptions = function FilterOptions(_ref) {
|
|
|
1729
1710
|
frozenColumns = (frozen === null || frozen === void 0 ? void 0 : (_frozen$range = frozen.range) === null || _frozen$range === void 0 ? void 0 : _frozen$range.column_focus) || -1;
|
|
1730
1711
|
frozenRows = (frozen === null || frozen === void 0 ? void 0 : (_frozen$range2 = frozen.range) === null || _frozen$range2 === void 0 ? void 0 : _frozen$range2.row_focus) || -1;
|
|
1731
1712
|
}
|
|
1732
|
-
return filterOptions == null ? (
|
|
1713
|
+
return filterOptions == null ? (/*#__PURE__*/React.createElement("div", null)) : (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
1733
1714
|
id: "luckysheet-filter-selected-sheet",
|
|
1734
1715
|
className: "luckysheet-cell-selected luckysheet-filter-selected",
|
|
1735
1716
|
style: _.assign({
|
|
@@ -1771,9 +1752,9 @@ var FilterOptions = function FilterOptions(_ref) {
|
|
|
1771
1752
|
width: undefined
|
|
1772
1753
|
}),
|
|
1773
1754
|
className: "luckysheet-filter-options ".concat(filterParam == null ? "" : "luckysheet-filter-options-active")
|
|
1774
|
-
}, filterParam == null ? (
|
|
1755
|
+
}, filterParam == null ? (/*#__PURE__*/React.createElement("div", {
|
|
1775
1756
|
className: "caret down"
|
|
1776
|
-
})) : (
|
|
1757
|
+
})) : (/*#__PURE__*/React.createElement(SVGIcon, {
|
|
1777
1758
|
name: "filter-fill-white",
|
|
1778
1759
|
style: {
|
|
1779
1760
|
width: 15,
|
|
@@ -1796,7 +1777,7 @@ var ImgBoxs = function ImgBoxs() {
|
|
|
1796
1777
|
}, [context.activeImg, context.insertedImgs]);
|
|
1797
1778
|
return /*#__PURE__*/React.createElement("div", {
|
|
1798
1779
|
id: "luckysheet-image-showBoxs"
|
|
1799
|
-
}, activeImg && (
|
|
1780
|
+
}, activeImg && (/*#__PURE__*/React.createElement("div", {
|
|
1800
1781
|
id: "luckysheet-modal-dialog-activeImage",
|
|
1801
1782
|
className: "luckysheet-modal-dialog",
|
|
1802
1783
|
style: {
|
|
@@ -2097,7 +2078,7 @@ var NotationBoxes = function NotationBoxes() {
|
|
|
2097
2078
|
className: "luckysheet-postil-dialog-move-item luckysheet-postil-dialog-move-item-".concat(v),
|
|
2098
2079
|
"data-type": v
|
|
2099
2080
|
});
|
|
2100
|
-
})), isEditing && (
|
|
2081
|
+
})), isEditing && (/*#__PURE__*/React.createElement("div", {
|
|
2101
2082
|
className: "luckysheet-postil-dialog-resize"
|
|
2102
2083
|
}, ["lt", "mt", "lm", "rm", "rt", "lb", "mb", "rb"].map(function (v) {
|
|
2103
2084
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -2166,7 +2147,7 @@ function useDialog() {
|
|
|
2166
2147
|
var showDialog = useCallback(function (content, type) {
|
|
2167
2148
|
var onOk = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : hideModal;
|
|
2168
2149
|
var onCancel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : hideModal;
|
|
2169
|
-
showModal(
|
|
2150
|
+
showModal(/*#__PURE__*/React.createElement(Dialog, {
|
|
2170
2151
|
type: type,
|
|
2171
2152
|
onOk: onOk,
|
|
2172
2153
|
onCancel: onCancel
|
|
@@ -2392,7 +2373,7 @@ var DataVerification = function DataVerification() {
|
|
|
2392
2373
|
value: v,
|
|
2393
2374
|
key: v
|
|
2394
2375
|
}, dataVerification[v]);
|
|
2395
|
-
})), ((_context$dataVerifica2 = context.dataVerification) === null || _context$dataVerifica2 === void 0 ? void 0 : (_context$dataVerifica3 = _context$dataVerifica2.dataRegulation) === null || _context$dataVerifica3 === void 0 ? void 0 : _context$dataVerifica3.type) === "dropdown" && (
|
|
2376
|
+
})), ((_context$dataVerifica2 = context.dataVerification) === null || _context$dataVerifica2 === void 0 ? void 0 : (_context$dataVerifica3 = _context$dataVerifica2.dataRegulation) === null || _context$dataVerifica3 === void 0 ? void 0 : _context$dataVerifica3.type) === "dropdown" && (/*#__PURE__*/React.createElement("div", {
|
|
2396
2377
|
className: "show-box-item"
|
|
2397
2378
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2398
2379
|
className: "data-verification-range"
|
|
@@ -2430,7 +2411,7 @@ var DataVerification = function DataVerification() {
|
|
|
2430
2411
|
}
|
|
2431
2412
|
}), /*#__PURE__*/React.createElement("label", {
|
|
2432
2413
|
htmlFor: "mul"
|
|
2433
|
-
}, dataVerification.allowMultiSelect)))), ((_context$dataVerifica4 = context.dataVerification) === null || _context$dataVerifica4 === void 0 ? void 0 : (_context$dataVerifica5 = _context$dataVerifica4.dataRegulation) === null || _context$dataVerifica5 === void 0 ? void 0 : _context$dataVerifica5.type) === "checkbox" && (
|
|
2414
|
+
}, dataVerification.allowMultiSelect)))), ((_context$dataVerifica4 = context.dataVerification) === null || _context$dataVerifica4 === void 0 ? void 0 : (_context$dataVerifica5 = _context$dataVerifica4.dataRegulation) === null || _context$dataVerifica5 === void 0 ? void 0 : _context$dataVerifica5.type) === "checkbox" && (/*#__PURE__*/React.createElement("div", {
|
|
2434
2415
|
className: "show-box-item"
|
|
2435
2416
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2436
2417
|
className: "check-box"
|
|
@@ -2458,7 +2439,7 @@ var DataVerification = function DataVerification() {
|
|
|
2458
2439
|
ctx.dataVerification.dataRegulation.value2 = value;
|
|
2459
2440
|
});
|
|
2460
2441
|
}
|
|
2461
|
-
})))), (((_context$dataVerifica10 = context.dataVerification) === null || _context$dataVerifica10 === void 0 ? void 0 : (_context$dataVerifica11 = _context$dataVerifica10.dataRegulation) === null || _context$dataVerifica11 === void 0 ? void 0 : _context$dataVerifica11.type) === "number" || ((_context$dataVerifica12 = context.dataVerification) === null || _context$dataVerifica12 === void 0 ? void 0 : (_context$dataVerifica13 = _context$dataVerifica12.dataRegulation) === null || _context$dataVerifica13 === void 0 ? void 0 : _context$dataVerifica13.type) === "number_integer" || ((_context$dataVerifica14 = context.dataVerification) === null || _context$dataVerifica14 === void 0 ? void 0 : (_context$dataVerifica15 = _context$dataVerifica14.dataRegulation) === null || _context$dataVerifica15 === void 0 ? void 0 : _context$dataVerifica15.type) === "number_decimal" || ((_context$dataVerifica16 = context.dataVerification) === null || _context$dataVerifica16 === void 0 ? void 0 : (_context$dataVerifica17 = _context$dataVerifica16.dataRegulation) === null || _context$dataVerifica17 === void 0 ? void 0 : _context$dataVerifica17.type) === "text_length") && (
|
|
2442
|
+
})))), (((_context$dataVerifica10 = context.dataVerification) === null || _context$dataVerifica10 === void 0 ? void 0 : (_context$dataVerifica11 = _context$dataVerifica10.dataRegulation) === null || _context$dataVerifica11 === void 0 ? void 0 : _context$dataVerifica11.type) === "number" || ((_context$dataVerifica12 = context.dataVerification) === null || _context$dataVerifica12 === void 0 ? void 0 : (_context$dataVerifica13 = _context$dataVerifica12.dataRegulation) === null || _context$dataVerifica13 === void 0 ? void 0 : _context$dataVerifica13.type) === "number_integer" || ((_context$dataVerifica14 = context.dataVerification) === null || _context$dataVerifica14 === void 0 ? void 0 : (_context$dataVerifica15 = _context$dataVerifica14.dataRegulation) === null || _context$dataVerifica15 === void 0 ? void 0 : _context$dataVerifica15.type) === "number_decimal" || ((_context$dataVerifica16 = context.dataVerification) === null || _context$dataVerifica16 === void 0 ? void 0 : (_context$dataVerifica17 = _context$dataVerifica16.dataRegulation) === null || _context$dataVerifica17 === void 0 ? void 0 : _context$dataVerifica17.type) === "text_length") && (/*#__PURE__*/React.createElement("div", {
|
|
2462
2443
|
className: "show-box-item"
|
|
2463
2444
|
}, /*#__PURE__*/React.createElement("select", {
|
|
2464
2445
|
className: "data-verification-type-select",
|
|
@@ -2476,7 +2457,7 @@ var DataVerification = function DataVerification() {
|
|
|
2476
2457
|
value: v,
|
|
2477
2458
|
key: v
|
|
2478
2459
|
}, dataVerification[v]);
|
|
2479
|
-
})), context.dataVerification.dataRegulation.type2 === "between" || context.dataVerification.dataRegulation.type2 === "notBetween" ? (
|
|
2460
|
+
})), context.dataVerification.dataRegulation.type2 === "between" || context.dataVerification.dataRegulation.type2 === "notBetween" ? (/*#__PURE__*/React.createElement("div", {
|
|
2480
2461
|
className: "input-box"
|
|
2481
2462
|
}, /*#__PURE__*/React.createElement("input", {
|
|
2482
2463
|
type: "number",
|
|
@@ -2498,7 +2479,7 @@ var DataVerification = function DataVerification() {
|
|
|
2498
2479
|
ctx.dataVerification.dataRegulation.value2 = value;
|
|
2499
2480
|
});
|
|
2500
2481
|
}
|
|
2501
|
-
}))) : (
|
|
2482
|
+
}))) : (/*#__PURE__*/React.createElement("div", {
|
|
2502
2483
|
className: "input-box"
|
|
2503
2484
|
}, /*#__PURE__*/React.createElement("input", {
|
|
2504
2485
|
type: "number",
|
|
@@ -2513,7 +2494,7 @@ var DataVerification = function DataVerification() {
|
|
|
2513
2494
|
ctx.dataVerification.dataRegulation.value1 = value;
|
|
2514
2495
|
});
|
|
2515
2496
|
}
|
|
2516
|
-
}))))), ((_context$dataVerifica18 = context.dataVerification) === null || _context$dataVerifica18 === void 0 ? void 0 : (_context$dataVerifica19 = _context$dataVerifica18.dataRegulation) === null || _context$dataVerifica19 === void 0 ? void 0 : _context$dataVerifica19.type) === "text_content" && (
|
|
2497
|
+
}))))), ((_context$dataVerifica18 = context.dataVerification) === null || _context$dataVerifica18 === void 0 ? void 0 : (_context$dataVerifica19 = _context$dataVerifica18.dataRegulation) === null || _context$dataVerifica19 === void 0 ? void 0 : _context$dataVerifica19.type) === "text_content" && (/*#__PURE__*/React.createElement("div", {
|
|
2517
2498
|
className: "show-box-item"
|
|
2518
2499
|
}, /*#__PURE__*/React.createElement("select", {
|
|
2519
2500
|
className: "data-verification-type-select",
|
|
@@ -2546,7 +2527,7 @@ var DataVerification = function DataVerification() {
|
|
|
2546
2527
|
ctx.dataVerification.dataRegulation.value1 = value;
|
|
2547
2528
|
});
|
|
2548
2529
|
}
|
|
2549
|
-
})))), ((_context$dataVerifica20 = context.dataVerification) === null || _context$dataVerifica20 === void 0 ? void 0 : (_context$dataVerifica21 = _context$dataVerifica20.dataRegulation) === null || _context$dataVerifica21 === void 0 ? void 0 : _context$dataVerifica21.type) === "date" && (
|
|
2530
|
+
})))), ((_context$dataVerifica20 = context.dataVerification) === null || _context$dataVerifica20 === void 0 ? void 0 : (_context$dataVerifica21 = _context$dataVerifica20.dataRegulation) === null || _context$dataVerifica21 === void 0 ? void 0 : _context$dataVerifica21.type) === "date" && (/*#__PURE__*/React.createElement("div", {
|
|
2550
2531
|
className: "show-box-item"
|
|
2551
2532
|
}, /*#__PURE__*/React.createElement("select", {
|
|
2552
2533
|
className: "data-verification-type-select",
|
|
@@ -2564,7 +2545,7 @@ var DataVerification = function DataVerification() {
|
|
|
2564
2545
|
value: v,
|
|
2565
2546
|
key: v
|
|
2566
2547
|
}, dataVerification[v]);
|
|
2567
|
-
})), context.dataVerification.dataRegulation.type2 === "between" || context.dataVerification.dataRegulation.type2 === "notBetween" ? (
|
|
2548
|
+
})), context.dataVerification.dataRegulation.type2 === "between" || context.dataVerification.dataRegulation.type2 === "notBetween" ? (/*#__PURE__*/React.createElement("div", {
|
|
2568
2549
|
className: "input-box"
|
|
2569
2550
|
}, /*#__PURE__*/React.createElement("input", {
|
|
2570
2551
|
type: "date",
|
|
@@ -2586,7 +2567,7 @@ var DataVerification = function DataVerification() {
|
|
|
2586
2567
|
ctx.dataVerification.dataRegulation.value2 = value;
|
|
2587
2568
|
});
|
|
2588
2569
|
}
|
|
2589
|
-
}))) : (
|
|
2570
|
+
}))) : (/*#__PURE__*/React.createElement("div", {
|
|
2590
2571
|
className: "input-box"
|
|
2591
2572
|
}, /*#__PURE__*/React.createElement("input", {
|
|
2592
2573
|
type: "date",
|
|
@@ -2601,7 +2582,7 @@ var DataVerification = function DataVerification() {
|
|
|
2601
2582
|
ctx.dataVerification.dataRegulation.value1 = value;
|
|
2602
2583
|
});
|
|
2603
2584
|
}
|
|
2604
|
-
}))))), ((_context$dataVerifica22 = context.dataVerification) === null || _context$dataVerifica22 === void 0 ? void 0 : (_context$dataVerifica23 = _context$dataVerifica22.dataRegulation) === null || _context$dataVerifica23 === void 0 ? void 0 : _context$dataVerifica23.type) === "validity" && (
|
|
2585
|
+
}))))), ((_context$dataVerifica22 = context.dataVerification) === null || _context$dataVerifica22 === void 0 ? void 0 : (_context$dataVerifica23 = _context$dataVerifica22.dataRegulation) === null || _context$dataVerifica23 === void 0 ? void 0 : _context$dataVerifica23.type) === "validity" && (/*#__PURE__*/React.createElement("div", {
|
|
2605
2586
|
className: "show-box-item"
|
|
2606
2587
|
}, /*#__PURE__*/React.createElement("select", {
|
|
2607
2588
|
className: "data-verification-type-select",
|
|
@@ -2645,7 +2626,7 @@ var DataVerification = function DataVerification() {
|
|
|
2645
2626
|
htmlFor: v,
|
|
2646
2627
|
key: "label".concat(v)
|
|
2647
2628
|
}, dataVerification[v]));
|
|
2648
|
-
}), ((_context$dataVerifica24 = context.dataVerification) === null || _context$dataVerifica24 === void 0 ? void 0 : (_context$dataVerifica25 = _context$dataVerifica24.dataRegulation) === null || _context$dataVerifica25 === void 0 ? void 0 : _context$dataVerifica25.hintShow) && (
|
|
2629
|
+
}), ((_context$dataVerifica24 = context.dataVerification) === null || _context$dataVerifica24 === void 0 ? void 0 : (_context$dataVerifica25 = _context$dataVerifica24.dataRegulation) === null || _context$dataVerifica25 === void 0 ? void 0 : _context$dataVerifica25.hintShow) && (/*#__PURE__*/React.createElement("div", {
|
|
2649
2630
|
className: "input-box"
|
|
2650
2631
|
}, /*#__PURE__*/React.createElement("input", {
|
|
2651
2632
|
type: "text",
|
|
@@ -2771,7 +2752,7 @@ var ConditionRules = function ConditionRules(_ref) {
|
|
|
2771
2752
|
className: "condition-rules-title"
|
|
2772
2753
|
}, conditionformat["conditionformat_".concat(type)]), /*#__PURE__*/React.createElement("div", {
|
|
2773
2754
|
className: "conditin-rules-value"
|
|
2774
|
-
}, conditionformat["conditionformat_".concat(type, "_title")]), (type === "greaterThan" || type === "lessThan" || type === "equal" || type === "textContains") && (
|
|
2755
|
+
}, conditionformat["conditionformat_".concat(type, "_title")]), (type === "greaterThan" || type === "lessThan" || type === "equal" || type === "textContains") && (/*#__PURE__*/React.createElement("div", {
|
|
2775
2756
|
className: "condition-rules-inpbox"
|
|
2776
2757
|
}, /*#__PURE__*/React.createElement("input", {
|
|
2777
2758
|
className: "condition-rules-input",
|
|
@@ -2783,7 +2764,7 @@ var ConditionRules = function ConditionRules(_ref) {
|
|
|
2783
2764
|
ctx.conditionRules.rulesValue = value;
|
|
2784
2765
|
});
|
|
2785
2766
|
}
|
|
2786
|
-
}))), type === "between" && (
|
|
2767
|
+
}))), type === "between" && (/*#__PURE__*/React.createElement("div", {
|
|
2787
2768
|
className: "condition-rules-between-box"
|
|
2788
2769
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2789
2770
|
className: "condition-rules-between-inpbox"
|
|
@@ -2813,7 +2794,7 @@ var ConditionRules = function ConditionRules(_ref) {
|
|
|
2813
2794
|
ctx.conditionRules.betweenValue.value2 = value;
|
|
2814
2795
|
});
|
|
2815
2796
|
}
|
|
2816
|
-
})))), type === "occurrenceDate" && (
|
|
2797
|
+
})))), type === "occurrenceDate" && (/*#__PURE__*/React.createElement("div", {
|
|
2817
2798
|
className: "condition-rules-inpbox"
|
|
2818
2799
|
}, /*#__PURE__*/React.createElement("input", {
|
|
2819
2800
|
type: "date",
|
|
@@ -2825,7 +2806,7 @@ var ConditionRules = function ConditionRules(_ref) {
|
|
|
2825
2806
|
ctx.conditionRules.dateValue = value;
|
|
2826
2807
|
});
|
|
2827
2808
|
}
|
|
2828
|
-
}))), type === "duplicateValue" && (
|
|
2809
|
+
}))), type === "duplicateValue" && (/*#__PURE__*/React.createElement("select", {
|
|
2829
2810
|
className: "condition-rules-select",
|
|
2830
2811
|
onChange: function onChange(e) {
|
|
2831
2812
|
var value = e.target.value;
|
|
@@ -2837,7 +2818,7 @@ var ConditionRules = function ConditionRules(_ref) {
|
|
|
2837
2818
|
value: "0"
|
|
2838
2819
|
}, conditionformat.duplicateValue), /*#__PURE__*/React.createElement("option", {
|
|
2839
2820
|
value: "1"
|
|
2840
|
-
}, conditionformat.uniqueValue))), (type === "top10" || type === "top10_percent" || type === "last10" || type === "last10_percent") && (
|
|
2821
|
+
}, conditionformat.uniqueValue))), (type === "top10" || type === "top10_percent" || type === "last10" || type === "last10_percent") && (/*#__PURE__*/React.createElement("div", {
|
|
2841
2822
|
className: "condition-rules-project-box"
|
|
2842
2823
|
}, type === "top10" || type === "top10_percent" ? conditionformat.top : conditionformat.last, /*#__PURE__*/React.createElement("input", {
|
|
2843
2824
|
className: "condition-rules-project-input",
|
|
@@ -2944,19 +2925,19 @@ var RangeDialog = function RangeDialog() {
|
|
|
2944
2925
|
if (!context.rangeDialog) return;
|
|
2945
2926
|
var rangeDialogType = context.rangeDialog.type;
|
|
2946
2927
|
if (rangeDialogType.indexOf("between") >= 0) {
|
|
2947
|
-
showDialog(
|
|
2928
|
+
showDialog(/*#__PURE__*/React.createElement(ConditionRules, {
|
|
2948
2929
|
type: "between"
|
|
2949
2930
|
}));
|
|
2950
2931
|
return;
|
|
2951
2932
|
}
|
|
2952
2933
|
if (rangeDialogType.indexOf("conditionRules") >= 0) {
|
|
2953
2934
|
var rulesType = rangeDialogType.substring("conditionRules".length, rangeDialogType.length);
|
|
2954
|
-
showDialog(
|
|
2935
|
+
showDialog(/*#__PURE__*/React.createElement(ConditionRules, {
|
|
2955
2936
|
type: rulesType
|
|
2956
2937
|
}));
|
|
2957
2938
|
return;
|
|
2958
2939
|
}
|
|
2959
|
-
showDialog(
|
|
2940
|
+
showDialog(/*#__PURE__*/React.createElement(DataVerification, null));
|
|
2960
2941
|
}, [context.rangeDialog, setContext, showDialog]);
|
|
2961
2942
|
useEffect(function () {
|
|
2962
2943
|
setRangeTxt2(function (r) {
|
|
@@ -3334,7 +3315,7 @@ var SheetOverlay = function SheetOverlay() {
|
|
|
3334
3315
|
}
|
|
3335
3316
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3336
3317
|
id: "leankylin-formula-functionrange"
|
|
3337
|
-
}), context.formulaRangeSelect && (
|
|
3318
|
+
}), context.formulaRangeSelect && (/*#__PURE__*/React.createElement("div", {
|
|
3338
3319
|
className: "leankylin-selection-copy leankylin-formula-functionrange-select",
|
|
3339
3320
|
style: context.formulaRangeSelect
|
|
3340
3321
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -3406,7 +3387,7 @@ var SheetOverlay = function SheetOverlay() {
|
|
|
3406
3387
|
onMouseDown: function onMouseDown(e) {
|
|
3407
3388
|
return e.preventDefault();
|
|
3408
3389
|
}
|
|
3409
|
-
}), ((_context$luckysheet_s3 = (_context$luckysheet_s4 = context.luckysheet_selection_range) === null || _context$luckysheet_s4 === void 0 ? void 0 : _context$luckysheet_s4.length) !== null && _context$luckysheet_s3 !== void 0 ? _context$luckysheet_s3 : 0) > 0 && (
|
|
3390
|
+
}), ((_context$luckysheet_s3 = (_context$luckysheet_s4 = context.luckysheet_selection_range) === null || _context$luckysheet_s4 === void 0 ? void 0 : _context$luckysheet_s4.length) !== null && _context$luckysheet_s3 !== void 0 ? _context$luckysheet_s3 : 0) > 0 && (/*#__PURE__*/React.createElement("div", {
|
|
3410
3391
|
id: "leankylin-selection-copy"
|
|
3411
3392
|
}, context.luckysheet_selection_range.map(function (range) {
|
|
3412
3393
|
var r1 = range.row[0];
|
|
@@ -3447,7 +3428,7 @@ var SheetOverlay = function SheetOverlay() {
|
|
|
3447
3428
|
onMouseDown: function onMouseDown(e) {
|
|
3448
3429
|
return e.preventDefault();
|
|
3449
3430
|
}
|
|
3450
|
-
}), ((_context$luckysheet_s5 = (_context$luckysheet_s6 = context.luckysheet_select_save) === null || _context$luckysheet_s6 === void 0 ? void 0 : _context$luckysheet_s6.length) !== null && _context$luckysheet_s5 !== void 0 ? _context$luckysheet_s5 : 0) > 0 && (
|
|
3431
|
+
}), ((_context$luckysheet_s5 = (_context$luckysheet_s6 = context.luckysheet_select_save) === null || _context$luckysheet_s6 === void 0 ? void 0 : _context$luckysheet_s6.length) !== null && _context$luckysheet_s5 !== void 0 ? _context$luckysheet_s5 : 0) > 0 && (/*#__PURE__*/React.createElement("div", {
|
|
3451
3432
|
id: "luckysheet-cell-selected-boxs"
|
|
3452
3433
|
}, context.luckysheet_select_save.map(function (selection, index) {
|
|
3453
3434
|
var _refs$globalCache$fre3, _refs$globalCache$fre4;
|
|
@@ -3545,7 +3526,7 @@ var SheetOverlay = function SheetOverlay() {
|
|
|
3545
3526
|
className: "leankylin-presence-username",
|
|
3546
3527
|
style: usernameStyle
|
|
3547
3528
|
}, presence.username));
|
|
3548
|
-
}), ((_context$linkCard = context.linkCard) === null || _context$linkCard === void 0 ? void 0 : _context$linkCard.sheetId) === context.currentSheetId && (
|
|
3529
|
+
}), ((_context$linkCard = context.linkCard) === null || _context$linkCard === void 0 ? void 0 : _context$linkCard.sheetId) === context.currentSheetId && (/*#__PURE__*/React.createElement(LinkEditCard, _objectSpread2({}, context.linkCard))), ((_context$rangeDialog = context.rangeDialog) === null || _context$rangeDialog === void 0 ? void 0 : _context$rangeDialog.show) && /*#__PURE__*/React.createElement(RangeDialog, null), /*#__PURE__*/React.createElement(FilterOptions, {
|
|
3549
3530
|
getContainer: function getContainer() {
|
|
3550
3531
|
return containerRef.current;
|
|
3551
3532
|
}
|
|
@@ -3881,9 +3862,9 @@ var Combo = function Combo(_ref) {
|
|
|
3881
3862
|
"data-tips": tooltip,
|
|
3882
3863
|
role: "button",
|
|
3883
3864
|
style: style
|
|
3884
|
-
}, iconId ? (
|
|
3865
|
+
}, iconId ? (/*#__PURE__*/React.createElement(SVGIcon, {
|
|
3885
3866
|
name: iconId
|
|
3886
|
-
})) : (
|
|
3867
|
+
})) : (/*#__PURE__*/React.createElement("span", {
|
|
3887
3868
|
className: "leankylin-toolbar-combo-text"
|
|
3888
3869
|
}, text))), /*#__PURE__*/React.createElement("div", {
|
|
3889
3870
|
className: "leankylin-toolbar-combo-arrow",
|
|
@@ -3898,7 +3879,7 @@ var Combo = function Combo(_ref) {
|
|
|
3898
3879
|
width: 10
|
|
3899
3880
|
})), tooltip && /*#__PURE__*/React.createElement("div", {
|
|
3900
3881
|
className: "leankylin-tooltip"
|
|
3901
|
-
}, tooltip)), open && (
|
|
3882
|
+
}, tooltip)), open && (/*#__PURE__*/React.createElement("div", {
|
|
3902
3883
|
ref: popupRef,
|
|
3903
3884
|
className: "leankylin-toolbar-combo-popup",
|
|
3904
3885
|
style: popupPosition
|
|
@@ -4564,7 +4545,7 @@ var ConditionalFormat = function ConditionalFormat(_ref) {
|
|
|
4564
4545
|
key: v.text,
|
|
4565
4546
|
onClick: function onClick() {
|
|
4566
4547
|
setOpen(false);
|
|
4567
|
-
showDialog(
|
|
4548
|
+
showDialog(/*#__PURE__*/React.createElement(ConditionRules, {
|
|
4568
4549
|
type: v.text
|
|
4569
4550
|
}));
|
|
4570
4551
|
}
|
|
@@ -4611,7 +4592,7 @@ var ConditionalFormat = function ConditionalFormat(_ref) {
|
|
|
4611
4592
|
key: v.text,
|
|
4612
4593
|
onClick: function onClick() {
|
|
4613
4594
|
setOpen(false);
|
|
4614
|
-
showDialog(
|
|
4595
|
+
showDialog(/*#__PURE__*/React.createElement(ConditionRules, {
|
|
4615
4596
|
type: v.text
|
|
4616
4597
|
}));
|
|
4617
4598
|
}
|
|
@@ -5376,7 +5357,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
5376
5357
|
}, [{
|
|
5377
5358
|
text: toolbarFormat.moreCurrency,
|
|
5378
5359
|
onclick: function onclick() {
|
|
5379
|
-
showDialog(
|
|
5360
|
+
showDialog(/*#__PURE__*/React.createElement(FormatSearch, {
|
|
5380
5361
|
onCancel: hideDialog,
|
|
5381
5362
|
type: "currency"
|
|
5382
5363
|
}));
|
|
@@ -5572,7 +5553,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
5572
5553
|
onClick: function onClick() {
|
|
5573
5554
|
var imgsrc = handleScreenShot(contextRef.current);
|
|
5574
5555
|
if (imgsrc) {
|
|
5575
|
-
showDialog(
|
|
5556
|
+
showDialog(/*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, screenshot.screenshotTipSuccess), /*#__PURE__*/React.createElement("img", {
|
|
5576
5557
|
src: imgsrc,
|
|
5577
5558
|
alt: "",
|
|
5578
5559
|
style: {
|
|
@@ -5600,7 +5581,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
5600
5581
|
} else if (currentColumn[0] !== currentColumn[1]) {
|
|
5601
5582
|
showDialog(splitText.tipNoMultiColumn, "ok");
|
|
5602
5583
|
} else {
|
|
5603
|
-
showDialog(
|
|
5584
|
+
showDialog(/*#__PURE__*/React.createElement(SplitColumn, null));
|
|
5604
5585
|
}
|
|
5605
5586
|
}
|
|
5606
5587
|
}
|
|
@@ -5613,7 +5594,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
5613
5594
|
key: name,
|
|
5614
5595
|
onClick: function onClick() {
|
|
5615
5596
|
if (context.allowEdit === false) return;
|
|
5616
|
-
showDialog(
|
|
5597
|
+
showDialog(/*#__PURE__*/React.createElement(DataVerification, null));
|
|
5617
5598
|
}
|
|
5618
5599
|
});
|
|
5619
5600
|
}
|
|
@@ -5671,7 +5652,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
5671
5652
|
range = _.assignIn([], context.luckysheet_select_save);
|
|
5672
5653
|
}
|
|
5673
5654
|
if (value === "location") {
|
|
5674
|
-
showDialog(
|
|
5655
|
+
showDialog(/*#__PURE__*/React.createElement(LocationCondition, null));
|
|
5675
5656
|
} else if (value === "locationFormula") {
|
|
5676
5657
|
setContext(function (ctx) {
|
|
5677
5658
|
rangeArr = applyLocation(range, "locationFormula", "all", ctx);
|
|
@@ -5892,7 +5873,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
5892
5873
|
}), /*#__PURE__*/React.createElement(MenuDivider, null), /*#__PURE__*/React.createElement(Option, {
|
|
5893
5874
|
key: "formula",
|
|
5894
5875
|
onClick: function onClick() {
|
|
5895
|
-
showDialog(
|
|
5876
|
+
showDialog(/*#__PURE__*/React.createElement(FormulaSearch$1, {
|
|
5896
5877
|
onCancel: hideDialog
|
|
5897
5878
|
}));
|
|
5898
5879
|
setOpen(false);
|
|
@@ -6005,7 +5986,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
6005
5986
|
return /*#__PURE__*/React.createElement(Select, null, _items4.map(function (_ref9, ii) {
|
|
6006
5987
|
var text = _ref9.text,
|
|
6007
5988
|
value = _ref9.value;
|
|
6008
|
-
return value !== "divider" ? (
|
|
5989
|
+
return value !== "divider" ? (/*#__PURE__*/React.createElement(Option, {
|
|
6009
5990
|
key: value,
|
|
6010
5991
|
onClick: function onClick() {
|
|
6011
5992
|
setContext(function (ctx) {
|
|
@@ -6017,7 +5998,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
6017
5998
|
className: "leankylin-toolbar-menu-line"
|
|
6018
5999
|
}, text, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
6019
6000
|
name: value
|
|
6020
|
-
})))) : (
|
|
6001
|
+
})))) : (/*#__PURE__*/React.createElement(MenuDivider, {
|
|
6021
6002
|
key: ii
|
|
6022
6003
|
}));
|
|
6023
6004
|
}), /*#__PURE__*/React.createElement(CustomBorder, {
|
|
@@ -6224,7 +6205,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
6224
6205
|
iconId = _ref13.iconId,
|
|
6225
6206
|
value = _ref13.value,
|
|
6226
6207
|
_onClick2 = _ref13.onClick;
|
|
6227
|
-
return value !== "divider" ? (
|
|
6208
|
+
return value !== "divider" ? (/*#__PURE__*/React.createElement(Option, {
|
|
6228
6209
|
key: value,
|
|
6229
6210
|
onClick: function onClick() {
|
|
6230
6211
|
_onClick2 === null || _onClick2 === void 0 ? void 0 : _onClick2();
|
|
@@ -6234,7 +6215,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
6234
6215
|
className: "leankylin-toolbar-menu-line"
|
|
6235
6216
|
}, text, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
6236
6217
|
name: iconId
|
|
6237
|
-
})))) : (
|
|
6218
|
+
})))) : (/*#__PURE__*/React.createElement(MenuDivider, {
|
|
6238
6219
|
key: "divider-".concat(index)
|
|
6239
6220
|
}));
|
|
6240
6221
|
}));
|
|
@@ -6264,11 +6245,11 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
6264
6245
|
icon: n.icon,
|
|
6265
6246
|
iconName: n.iconName
|
|
6266
6247
|
}, n.children);
|
|
6267
|
-
}), ((_settings$customToolb = settings.customToolbarItems) === null || _settings$customToolb === void 0 ? void 0 : _settings$customToolb.length) > 0 ? (
|
|
6248
|
+
}), ((_settings$customToolb = settings.customToolbarItems) === null || _settings$customToolb === void 0 ? void 0 : _settings$customToolb.length) > 0 ? (/*#__PURE__*/React.createElement(Divider, {
|
|
6268
6249
|
key: "customDivider"
|
|
6269
6250
|
})) : null, (toolbarWrapIndex === -1 ? settings.toolbarItems : settings.toolbarItems.slice(0, toolbarWrapIndex + 1)).map(function (name, i) {
|
|
6270
6251
|
return getToolbarItem(name, i);
|
|
6271
|
-
}), toolbarWrapIndex !== -1 && toolbarWrapIndex < settings.toolbarItems.length - 1 ? (
|
|
6252
|
+
}), toolbarWrapIndex !== -1 && toolbarWrapIndex < settings.toolbarItems.length - 1 ? (/*#__PURE__*/React.createElement(Button, {
|
|
6272
6253
|
iconId: "more",
|
|
6273
6254
|
tooltip: toolbar.toolMore,
|
|
6274
6255
|
onClick: function onClick() {
|
|
@@ -6472,7 +6453,7 @@ var FxEditor = function FxEditor() {
|
|
|
6472
6453
|
},
|
|
6473
6454
|
tabIndex: 0,
|
|
6474
6455
|
allowEdit: allowEdit
|
|
6475
|
-
}), settings === null || settings === void 0 ? void 0 : settings.fxContainer, focused && (
|
|
6456
|
+
}), settings === null || settings === void 0 ? void 0 : settings.fxContainer, focused && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormulaSearch, {
|
|
6476
6457
|
style: {
|
|
6477
6458
|
top: inputContainerRef.current.clientHeight
|
|
6478
6459
|
}
|
|
@@ -6699,7 +6680,7 @@ var SheetItem = function SheetItem(_ref) {
|
|
|
6699
6680
|
style: {
|
|
6700
6681
|
fill: svgColor
|
|
6701
6682
|
}
|
|
6702
|
-
})), !!sheet.color && (
|
|
6683
|
+
})), !!sheet.color && (/*#__PURE__*/React.createElement("div", {
|
|
6703
6684
|
className: "luckysheet-sheets-item-color",
|
|
6704
6685
|
style: {
|
|
6705
6686
|
background: sheet.color
|
|
@@ -6782,7 +6763,7 @@ var ZoomControl = function ZoomControl() {
|
|
|
6782
6763
|
onClick: function onClick() {
|
|
6783
6764
|
return setRadioMenuOpen(true);
|
|
6784
6765
|
}
|
|
6785
|
-
}, (context.zoomRatio * 100).toFixed(0), "%"), radioMenuOpen && (
|
|
6766
|
+
}, (context.zoomRatio * 100).toFixed(0), "%"), radioMenuOpen && (/*#__PURE__*/React.createElement("div", {
|
|
6786
6767
|
className: "leankylin-zoom-ratio-menu",
|
|
6787
6768
|
ref: menuRef
|
|
6788
6769
|
}, presets.map(function (v) {
|
|
@@ -6866,14 +6847,14 @@ var SheetTab = function SheetTab() {
|
|
|
6866
6847
|
id: "luckysheet-sheet-area"
|
|
6867
6848
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6868
6849
|
id: "luckysheet-sheet-content"
|
|
6869
|
-
}, context.allowEdit && (
|
|
6850
|
+
}, context.allowEdit && (/*#__PURE__*/React.createElement("div", {
|
|
6870
6851
|
className: "leankylin-sheettab-button",
|
|
6871
6852
|
onClick: onAddSheetClick
|
|
6872
6853
|
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
6873
6854
|
name: "plus",
|
|
6874
6855
|
width: 16,
|
|
6875
6856
|
height: 16
|
|
6876
|
-
}))), context.allowEdit && (
|
|
6857
|
+
}))), context.allowEdit && (/*#__PURE__*/React.createElement("div", {
|
|
6877
6858
|
className: "sheet-list-container"
|
|
6878
6859
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6879
6860
|
id: "all-sheets",
|
|
@@ -6911,9 +6892,9 @@ var SheetTab = function SheetTab() {
|
|
|
6911
6892
|
key: sheet.id,
|
|
6912
6893
|
sheet: sheet
|
|
6913
6894
|
});
|
|
6914
|
-
})), isShowBoundary && isShowScrollBtn && (
|
|
6895
|
+
})), isShowBoundary && isShowScrollBtn && (/*#__PURE__*/React.createElement("div", {
|
|
6915
6896
|
className: "boundary boundary-right"
|
|
6916
|
-
}))), isShowScrollBtn && (
|
|
6897
|
+
}))), isShowScrollBtn && (/*#__PURE__*/React.createElement("div", {
|
|
6917
6898
|
id: "leankylin-sheettab-leftscroll",
|
|
6918
6899
|
className: "leankylin-sheettab-scroll",
|
|
6919
6900
|
ref: leftScrollRef,
|
|
@@ -6924,7 +6905,7 @@ var SheetTab = function SheetTab() {
|
|
|
6924
6905
|
name: "arrow-doubleleft",
|
|
6925
6906
|
width: 12,
|
|
6926
6907
|
height: 12
|
|
6927
|
-
}))), isShowScrollBtn && (
|
|
6908
|
+
}))), isShowScrollBtn && (/*#__PURE__*/React.createElement("div", {
|
|
6928
6909
|
id: "leankylin-sheettab-rightscroll",
|
|
6929
6910
|
className: "leankylin-sheettab-scroll",
|
|
6930
6911
|
ref: rightScrollRef,
|
|
@@ -7175,7 +7156,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
7175
7156
|
insertRowColOp: insertRowColOp
|
|
7176
7157
|
});
|
|
7177
7158
|
}
|
|
7178
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, _.startsWith((_context$lang = context.lang) !== null && _context$lang !== void 0 ? _context$lang : "", "zh") && (
|
|
7159
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, _.startsWith((_context$lang = context.lang) !== null && _context$lang !== void 0 ? _context$lang : "", "zh") && (/*#__PURE__*/React.createElement(React.Fragment, null, rightclick.to, /*#__PURE__*/React.createElement("span", {
|
|
7179
7160
|
className: "luckysheet-cols-rows-shift-".concat(dir)
|
|
7180
7161
|
}, rightclick[dir]))), "".concat(rightclick.insert, " "), /*#__PURE__*/React.createElement("input", {
|
|
7181
7162
|
onClick: function onClick(e) {
|
|
@@ -7190,7 +7171,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
7190
7171
|
defaultValue: "1"
|
|
7191
7172
|
}), /*#__PURE__*/React.createElement("span", {
|
|
7192
7173
|
className: "luckysheet-cols-rows-shift-word luckysheet-mousedown-cancel"
|
|
7193
|
-
}, "".concat(rightclick.column, " ")), !_.startsWith((_context$lang2 = context.lang) !== null && _context$lang2 !== void 0 ? _context$lang2 : "", "zh") && (
|
|
7174
|
+
}, "".concat(rightclick.column, " ")), !_.startsWith((_context$lang2 = context.lang) !== null && _context$lang2 !== void 0 ? _context$lang2 : "", "zh") && (/*#__PURE__*/React.createElement("span", {
|
|
7194
7175
|
className: "luckysheet-cols-rows-shift-".concat(dir)
|
|
7195
7176
|
}, rightclick[dir]))));
|
|
7196
7177
|
});
|
|
@@ -7228,7 +7209,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
7228
7209
|
insertRowColOp: insertRowColOp
|
|
7229
7210
|
});
|
|
7230
7211
|
}
|
|
7231
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, _.startsWith((_context$lang3 = context.lang) !== null && _context$lang3 !== void 0 ? _context$lang3 : "", "zh") && (
|
|
7212
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, _.startsWith((_context$lang3 = context.lang) !== null && _context$lang3 !== void 0 ? _context$lang3 : "", "zh") && (/*#__PURE__*/React.createElement(React.Fragment, null, rightclick.to, /*#__PURE__*/React.createElement("span", {
|
|
7232
7213
|
className: "luckysheet-cols-rows-shift-".concat(dir)
|
|
7233
7214
|
}, rightclick[dir]))), "".concat(rightclick.insert, " "), /*#__PURE__*/React.createElement("input", {
|
|
7234
7215
|
onClick: function onClick(e) {
|
|
@@ -7243,13 +7224,13 @@ var ContextMenu = function ContextMenu() {
|
|
|
7243
7224
|
defaultValue: "1"
|
|
7244
7225
|
}), /*#__PURE__*/React.createElement("span", {
|
|
7245
7226
|
className: "luckysheet-cols-rows-shift-word luckysheet-mousedown-cancel"
|
|
7246
|
-
}, "".concat(rightclick.row, " ")), !_.startsWith((_context$lang4 = context.lang) !== null && _context$lang4 !== void 0 ? _context$lang4 : "", "zh") && (
|
|
7227
|
+
}, "".concat(rightclick.row, " ")), !_.startsWith((_context$lang4 = context.lang) !== null && _context$lang4 !== void 0 ? _context$lang4 : "", "zh") && (/*#__PURE__*/React.createElement("span", {
|
|
7247
7228
|
className: "luckysheet-cols-rows-shift-".concat(dir)
|
|
7248
7229
|
}, rightclick[dir]))));
|
|
7249
7230
|
});
|
|
7250
7231
|
}
|
|
7251
7232
|
if (name === "delete-column") {
|
|
7252
|
-
return (selection === null || selection === void 0 ? void 0 : selection.column_select) && (
|
|
7233
|
+
return (selection === null || selection === void 0 ? void 0 : selection.column_select) && (/*#__PURE__*/React.createElement(Menu, {
|
|
7253
7234
|
key: "delete-col",
|
|
7254
7235
|
onClick: function onClick() {
|
|
7255
7236
|
if (!selection) return;
|
|
@@ -7292,7 +7273,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
7292
7273
|
}, rightclick.deleteSelected, rightclick.column));
|
|
7293
7274
|
}
|
|
7294
7275
|
if (name === "delete-row") {
|
|
7295
|
-
return (selection === null || selection === void 0 ? void 0 : selection.row_select) && (
|
|
7276
|
+
return (selection === null || selection === void 0 ? void 0 : selection.row_select) && (/*#__PURE__*/React.createElement(Menu, {
|
|
7296
7277
|
key: "delete-row",
|
|
7297
7278
|
onClick: function onClick() {
|
|
7298
7279
|
if (!selection) return;
|
|
@@ -7383,7 +7364,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
7383
7364
|
})) ? "" : rowHeight;
|
|
7384
7365
|
return ((_context$luckysheet_s9 = context.luckysheet_select_save) === null || _context$luckysheet_s9 === void 0 ? void 0 : _context$luckysheet_s9.some(function (section) {
|
|
7385
7366
|
return section.row_select;
|
|
7386
|
-
})) ? (
|
|
7367
|
+
})) ? (/*#__PURE__*/React.createElement(Menu, {
|
|
7387
7368
|
key: "set-row-height",
|
|
7388
7369
|
onClick: function onClick(e, container) {
|
|
7389
7370
|
var _container$querySelec2;
|
|
@@ -7431,7 +7412,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
7431
7412
|
})) ? "" : colWidth;
|
|
7432
7413
|
return ((_context$luckysheet_s11 = context.luckysheet_select_save) === null || _context$luckysheet_s11 === void 0 ? void 0 : _context$luckysheet_s11.some(function (section) {
|
|
7433
7414
|
return section.column_select;
|
|
7434
|
-
})) ? (
|
|
7415
|
+
})) ? (/*#__PURE__*/React.createElement(Menu, {
|
|
7435
7416
|
key: "set-column-width",
|
|
7436
7417
|
onClick: function onClick(e, container) {
|
|
7437
7418
|
var _container$querySelec3;
|
|
@@ -7523,7 +7504,7 @@ var ContextMenu = function ContextMenu() {
|
|
|
7523
7504
|
key: name,
|
|
7524
7505
|
onClick: function onClick() {
|
|
7525
7506
|
setContext(function (draftCtx) {
|
|
7526
|
-
showDialog(
|
|
7507
|
+
showDialog(/*#__PURE__*/React.createElement(CustomSort, null));
|
|
7527
7508
|
draftCtx.contextMenu = {};
|
|
7528
7509
|
});
|
|
7529
7510
|
}
|
|
@@ -9278,7 +9259,7 @@ var SheetTabContextMenu = function SheetTabContextMenu() {
|
|
|
9278
9259
|
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
9279
9260
|
name: "rightArrow",
|
|
9280
9261
|
width: 18
|
|
9281
|
-
})), isShowChangeColor && context.allowEdit && (
|
|
9262
|
+
})), isShowChangeColor && context.allowEdit && (/*#__PURE__*/React.createElement(ChangeColor, {
|
|
9282
9263
|
triggerParentUpdate: updateShowInputColor
|
|
9283
9264
|
})));
|
|
9284
9265
|
}
|
|
@@ -9575,7 +9556,7 @@ var SelectItem = function SelectItem(_ref) {
|
|
|
9575
9556
|
var checked = useMemo(function () {
|
|
9576
9557
|
return isChecked(item.key);
|
|
9577
9558
|
}, [isChecked, item.key]);
|
|
9578
|
-
return isItemVisible(item) ? (
|
|
9559
|
+
return isItemVisible(item) ? (/*#__PURE__*/React.createElement("div", {
|
|
9579
9560
|
className: "select-item"
|
|
9580
9561
|
}, /*#__PURE__*/React.createElement("input", {
|
|
9581
9562
|
className: "filter-checkbox",
|
|
@@ -9588,7 +9569,7 @@ var SelectItem = function SelectItem(_ref) {
|
|
|
9588
9569
|
className: "count"
|
|
9589
9570
|
}, "( ".concat(item.rows.length, " )")))) : null;
|
|
9590
9571
|
};
|
|
9591
|
-
var
|
|
9572
|
+
var _DateSelectTreeItem = function DateSelectTreeItem(_ref2) {
|
|
9592
9573
|
var item = _ref2.item,
|
|
9593
9574
|
_ref2$depth = _ref2.depth,
|
|
9594
9575
|
depth = _ref2$depth === void 0 ? 0 : _ref2$depth,
|
|
@@ -9604,7 +9585,7 @@ var DateSelectTreeItem = function DateSelectTreeItem(_ref2) {
|
|
|
9604
9585
|
var checked = useMemo(function () {
|
|
9605
9586
|
return isChecked(item.key);
|
|
9606
9587
|
}, [isChecked, item.key]);
|
|
9607
|
-
return isItemVisible(item) ? (
|
|
9588
|
+
return isItemVisible(item) ? (/*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
9608
9589
|
className: "select-item",
|
|
9609
9590
|
style: {
|
|
9610
9591
|
marginLeft: -2 + depth * 20
|
|
@@ -9613,11 +9594,11 @@ var DateSelectTreeItem = function DateSelectTreeItem(_ref2) {
|
|
|
9613
9594
|
onExpand === null || onExpand === void 0 ? void 0 : onExpand(item.key, !expand);
|
|
9614
9595
|
setExpand(!expand);
|
|
9615
9596
|
}
|
|
9616
|
-
}, _.isEmpty(item.children) ? (
|
|
9597
|
+
}, _.isEmpty(item.children) ? (/*#__PURE__*/React.createElement("div", {
|
|
9617
9598
|
style: {
|
|
9618
9599
|
width: 10
|
|
9619
9600
|
}
|
|
9620
|
-
})) : (
|
|
9601
|
+
})) : (/*#__PURE__*/React.createElement("div", {
|
|
9621
9602
|
className: "filter-caret ".concat(expand ? "down" : "right"),
|
|
9622
9603
|
style: {
|
|
9623
9604
|
cursor: "pointer"
|
|
@@ -9635,7 +9616,7 @@ var DateSelectTreeItem = function DateSelectTreeItem(_ref2) {
|
|
|
9635
9616
|
}), /*#__PURE__*/React.createElement("div", null, item.text), /*#__PURE__*/React.createElement("span", {
|
|
9636
9617
|
className: "count"
|
|
9637
9618
|
}, "( ".concat(item.rows.length, " )"))), expand && item.children.map(function (v) {
|
|
9638
|
-
return /*#__PURE__*/React.createElement(
|
|
9619
|
+
return /*#__PURE__*/React.createElement(_DateSelectTreeItem, _objectSpread2({
|
|
9639
9620
|
key: v.key,
|
|
9640
9621
|
item: v,
|
|
9641
9622
|
depth: depth + 1
|
|
@@ -9656,7 +9637,7 @@ var DateSelectTree = function DateSelectTree(_ref3) {
|
|
|
9656
9637
|
onChange = _ref3.onChange,
|
|
9657
9638
|
isItemVisible = _ref3.isItemVisible;
|
|
9658
9639
|
return /*#__PURE__*/React.createElement(React.Fragment, null, dates.map(function (v) {
|
|
9659
|
-
return /*#__PURE__*/React.createElement(
|
|
9640
|
+
return /*#__PURE__*/React.createElement(_DateSelectTreeItem, _objectSpread2({
|
|
9660
9641
|
key: v.key,
|
|
9661
9642
|
item: v
|
|
9662
9643
|
}, {
|
|
@@ -9809,7 +9790,7 @@ var FilterMenu = function FilterMenu() {
|
|
|
9809
9790
|
});
|
|
9810
9791
|
}, [col, setContext, startRow, startCol, endRow, endCol, showAlert]);
|
|
9811
9792
|
var renderColorList = useCallback(function (key, title, colors, onSelectChange) {
|
|
9812
|
-
return colors.length > 1 ? (
|
|
9793
|
+
return colors.length > 1 ? (/*#__PURE__*/React.createElement("div", {
|
|
9813
9794
|
key: key
|
|
9814
9795
|
}, /*#__PURE__*/React.createElement("div", {
|
|
9815
9796
|
className: "title"
|
|
@@ -10115,7 +10096,7 @@ var FilterMenu = function FilterMenu() {
|
|
|
10115
10096
|
clearFilter(draftCtx);
|
|
10116
10097
|
});
|
|
10117
10098
|
}
|
|
10118
|
-
}, filter.clearFilter))), showSubMenu && (
|
|
10099
|
+
}, filter.clearFilter))), showSubMenu && (/*#__PURE__*/React.createElement("div", {
|
|
10119
10100
|
ref: subMenuRef,
|
|
10120
10101
|
className: "luckysheet-filter-bycolor-submenu",
|
|
10121
10102
|
style: subMenuPos,
|
|
@@ -10126,9 +10107,9 @@ var FilterMenu = function FilterMenu() {
|
|
|
10126
10107
|
mouseHoverSubMenu.current = false;
|
|
10127
10108
|
setShowSubMenu(false);
|
|
10128
10109
|
}
|
|
10129
|
-
}, filterColors.bgColors.length < 2 && filterColors.fcColors.length < 2 ? (
|
|
10110
|
+
}, filterColors.bgColors.length < 2 && filterColors.fcColors.length < 2 ? (/*#__PURE__*/React.createElement("div", {
|
|
10130
10111
|
className: "one-color-tip"
|
|
10131
|
-
}, filter.filterContainerOneColorTip)) : (
|
|
10112
|
+
}, filter.filterContainerOneColorTip)) : (/*#__PURE__*/React.createElement(React.Fragment, null, [{
|
|
10132
10113
|
key: "bgColors",
|
|
10133
10114
|
title: filter.filiterByColorTip,
|
|
10134
10115
|
colors: filterColors.bgColors
|
|
@@ -10177,7 +10158,7 @@ var SheetHiddenButton = function SheetHiddenButton(_ref) {
|
|
|
10177
10158
|
showSheet();
|
|
10178
10159
|
},
|
|
10179
10160
|
className: "leankylin-sheet-hidden-button"
|
|
10180
|
-
}, (sheet === null || sheet === void 0 ? void 0 : sheet.hide) === 1 ? (
|
|
10161
|
+
}, (sheet === null || sheet === void 0 ? void 0 : sheet.hide) === 1 ? (/*#__PURE__*/React.createElement(SVGIcon, {
|
|
10181
10162
|
name: "hidden",
|
|
10182
10163
|
width: 16,
|
|
10183
10164
|
height: 16,
|
|
@@ -10235,7 +10216,7 @@ var SheetListItem = function SheetListItem(_ref) {
|
|
|
10235
10216
|
}
|
|
10236
10217
|
}, /*#__PURE__*/React.createElement("span", {
|
|
10237
10218
|
className: "leankylin-sheet-selected-check-sapce"
|
|
10238
|
-
}, sheet.id === context.currentSheetId && (
|
|
10219
|
+
}, sheet.id === context.currentSheetId && (/*#__PURE__*/React.createElement(SVGIcon, {
|
|
10239
10220
|
name: "check",
|
|
10240
10221
|
width: 16,
|
|
10241
10222
|
height: 16,
|
|
@@ -10246,7 +10227,7 @@ var SheetListItem = function SheetListItem(_ref) {
|
|
|
10246
10227
|
}))), /*#__PURE__*/React.createElement("span", {
|
|
10247
10228
|
className: "luckysheet-sheets-item-name leankylin-sheet-list-item-name",
|
|
10248
10229
|
spellCheck: "false"
|
|
10249
|
-
}, !!sheet.color && (
|
|
10230
|
+
}, !!sheet.color && (/*#__PURE__*/React.createElement("div", {
|
|
10250
10231
|
className: "luckysheet-sheets-list-item-color",
|
|
10251
10232
|
style: {
|
|
10252
10233
|
background: sheet.color
|
|
@@ -10758,14 +10739,14 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
10758
10739
|
onKeyDown: onKeyDown
|
|
10759
10740
|
}, /*#__PURE__*/React.createElement(SVGDefines, null), /*#__PURE__*/React.createElement("div", {
|
|
10760
10741
|
className: "leankylin-workarea"
|
|
10761
|
-
}, mergedSettings.showToolbar && (
|
|
10742
|
+
}, mergedSettings.showToolbar && (/*#__PURE__*/React.createElement(Toolbar, {
|
|
10762
10743
|
moreItemsOpen: moreToolbarItems !== null,
|
|
10763
10744
|
setMoreItems: setMoreToolbarItems
|
|
10764
10745
|
})), mergedSettings.showFormulaBar && /*#__PURE__*/React.createElement(FxEditor, null)), /*#__PURE__*/React.createElement(Sheet, {
|
|
10765
10746
|
sheet: sheet
|
|
10766
|
-
}), mergedSettings.showSheetTabs && /*#__PURE__*/React.createElement(SheetTab, null), /*#__PURE__*/React.createElement(ContextMenu, null), /*#__PURE__*/React.createElement(FilterMenu, null), /*#__PURE__*/React.createElement(SheetTabContextMenu, null), context.showSheetList && /*#__PURE__*/React.createElement(SheetList, null), moreToolbarItems && (
|
|
10747
|
+
}), mergedSettings.showSheetTabs && /*#__PURE__*/React.createElement(SheetTab, null), /*#__PURE__*/React.createElement(ContextMenu, null), /*#__PURE__*/React.createElement(FilterMenu, null), /*#__PURE__*/React.createElement(SheetTabContextMenu, null), context.showSheetList && /*#__PURE__*/React.createElement(SheetList, null), moreToolbarItems && (/*#__PURE__*/React.createElement(MoreItemsContaier, {
|
|
10767
10748
|
onClose: onMoreToolbarItemsClose
|
|
10768
|
-
}, moreToolbarItems)), !_.isEmpty(context.contextMenu) && (
|
|
10749
|
+
}, moreToolbarItems)), !_.isEmpty(context.contextMenu) && (/*#__PURE__*/React.createElement("div", {
|
|
10769
10750
|
onMouseDown: function onMouseDown() {
|
|
10770
10751
|
setContextWithProduce(function (draftCtx) {
|
|
10771
10752
|
draftCtx.contextMenu = {};
|
|
@@ -10788,11 +10769,11 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
10788
10769
|
className: "leankylin-stat-area"
|
|
10789
10770
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10790
10771
|
className: "luckysheet-sheet-selection-calInfo"
|
|
10791
|
-
}, !!calInfo.count && (
|
|
10772
|
+
}, !!calInfo.count && (/*#__PURE__*/React.createElement("div", {
|
|
10792
10773
|
style: {
|
|
10793
10774
|
width: "60px"
|
|
10794
10775
|
}
|
|
10795
|
-
}, formula.count, ": ", calInfo.count)), !!calInfo.numberC && !!calInfo.sum && (
|
|
10776
|
+
}, formula.count, ": ", calInfo.count)), !!calInfo.numberC && !!calInfo.sum && (/*#__PURE__*/React.createElement("div", null, formula.sum, ": ", calInfo.sum)), !!calInfo.numberC && !!calInfo.average && (/*#__PURE__*/React.createElement("div", null, formula.average, ": ", calInfo.average)), !!calInfo.numberC && !!calInfo.max && (/*#__PURE__*/React.createElement("div", null, formula.max, ": ", calInfo.max)), !!calInfo.numberC && !!calInfo.min && (/*#__PURE__*/React.createElement("div", null, formula.min, ": ", calInfo.min)))))));
|
|
10796
10777
|
});
|
|
10797
10778
|
|
|
10798
10779
|
export { Workbook };
|