@leankylin-sheet/react 2.0.14 → 2.0.16

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.umd.js CHANGED
@@ -9,37 +9,6 @@
9
9
  var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
10
10
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
11
 
12
- function _arrayLikeToArray(r, a) {
13
- (null == a || a > r.length) && (a = r.length);
14
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
15
- return n;
16
- }
17
- function _arrayWithHoles(r) {
18
- if (Array.isArray(r)) return r;
19
- }
20
- function _arrayWithoutHoles(r) {
21
- if (Array.isArray(r)) return _arrayLikeToArray(r);
22
- }
23
- function _defineProperty(e, r, t) {
24
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
25
- value: t,
26
- enumerable: !0,
27
- configurable: !0,
28
- writable: !0
29
- }) : e[r] = t, e;
30
- }
31
- function _extends() {
32
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
33
- for (var e = 1; e < arguments.length; e++) {
34
- var t = arguments[e];
35
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
36
- }
37
- return n;
38
- }, _extends.apply(null, arguments);
39
- }
40
- function _iterableToArray(r) {
41
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
42
- }
43
12
  function _iterableToArrayLimit(r, l) {
44
13
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
45
14
  if (null != t) {
@@ -67,15 +36,6 @@
67
36
  return a;
68
37
  }
69
38
  }
70
- function _nonIterableRest() {
71
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
72
- }
73
- function _nonIterableSpread() {
74
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
75
- }
76
- function _objectDestructuringEmpty(t) {
77
- if (null == t) throw new TypeError("Cannot destructure " + t);
78
- }
79
39
  function ownKeys(e, r) {
80
40
  var t = Object.keys(e);
81
41
  if (Object.getOwnPropertySymbols) {
@@ -97,32 +57,6 @@
97
57
  }
98
58
  return e;
99
59
  }
100
- function _objectWithoutProperties(e, t) {
101
- if (null == e) return {};
102
- var o,
103
- r,
104
- i = _objectWithoutPropertiesLoose(e, t);
105
- if (Object.getOwnPropertySymbols) {
106
- var s = Object.getOwnPropertySymbols(e);
107
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
108
- }
109
- return i;
110
- }
111
- function _objectWithoutPropertiesLoose(r, e) {
112
- if (null == r) return {};
113
- var t = {};
114
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
115
- if (e.includes(n)) continue;
116
- t[n] = r[n];
117
- }
118
- return t;
119
- }
120
- function _slicedToArray(r, e) {
121
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
122
- }
123
- function _toConsumableArray(r) {
124
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
125
- }
126
60
  function _toPrimitive(t, r) {
127
61
  if ("object" != typeof t || !t) return t;
128
62
  var e = t[Symbol.toPrimitive];
@@ -137,12 +71,97 @@
137
71
  var i = _toPrimitive(t, "string");
138
72
  return "symbol" == typeof i ? i : i + "";
139
73
  }
140
- function _unsupportedIterableToArray(r, a) {
141
- if (r) {
142
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
143
- var t = {}.toString.call(r).slice(8, -1);
144
- 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;
74
+ function _defineProperty(obj, key, value) {
75
+ key = _toPropertyKey(key);
76
+ if (key in obj) {
77
+ Object.defineProperty(obj, key, {
78
+ value: value,
79
+ enumerable: true,
80
+ configurable: true,
81
+ writable: true
82
+ });
83
+ } else {
84
+ obj[key] = value;
85
+ }
86
+ return obj;
87
+ }
88
+ function _extends() {
89
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
90
+ for (var i = 1; i < arguments.length; i++) {
91
+ var source = arguments[i];
92
+ for (var key in source) {
93
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
94
+ target[key] = source[key];
95
+ }
96
+ }
97
+ }
98
+ return target;
99
+ };
100
+ return _extends.apply(this, arguments);
101
+ }
102
+ function _objectDestructuringEmpty(obj) {
103
+ if (obj == null) throw new TypeError("Cannot destructure " + obj);
104
+ }
105
+ function _objectWithoutPropertiesLoose(source, excluded) {
106
+ if (source == null) return {};
107
+ var target = {};
108
+ var sourceKeys = Object.keys(source);
109
+ var key, i;
110
+ for (i = 0; i < sourceKeys.length; i++) {
111
+ key = sourceKeys[i];
112
+ if (excluded.indexOf(key) >= 0) continue;
113
+ target[key] = source[key];
114
+ }
115
+ return target;
116
+ }
117
+ function _objectWithoutProperties(source, excluded) {
118
+ if (source == null) return {};
119
+ var target = _objectWithoutPropertiesLoose(source, excluded);
120
+ var key, i;
121
+ if (Object.getOwnPropertySymbols) {
122
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
123
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
124
+ key = sourceSymbolKeys[i];
125
+ if (excluded.indexOf(key) >= 0) continue;
126
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
127
+ target[key] = source[key];
128
+ }
145
129
  }
130
+ return target;
131
+ }
132
+ function _slicedToArray(arr, i) {
133
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
134
+ }
135
+ function _toConsumableArray(arr) {
136
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
137
+ }
138
+ function _arrayWithoutHoles(arr) {
139
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
140
+ }
141
+ function _arrayWithHoles(arr) {
142
+ if (Array.isArray(arr)) return arr;
143
+ }
144
+ function _iterableToArray(iter) {
145
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
146
+ }
147
+ function _unsupportedIterableToArray(o, minLen) {
148
+ if (!o) return;
149
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
150
+ var n = Object.prototype.toString.call(o).slice(8, -1);
151
+ if (n === "Object" && o.constructor) n = o.constructor.name;
152
+ if (n === "Map" || n === "Set") return Array.from(o);
153
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
154
+ }
155
+ function _arrayLikeToArray(arr, len) {
156
+ if (len == null || len > arr.length) len = arr.length;
157
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
158
+ return arr2;
159
+ }
160
+ function _nonIterableSpread() {
161
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
162
+ }
163
+ function _nonIterableRest() {
164
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
146
165
  }
147
166
 
148
167
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -18460,7 +18479,7 @@
18460
18479
  }
18461
18480
 
18462
18481
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
18463
- function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18482
+ function _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
18464
18483
  function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18465
18484
  function _toPrimitive$1(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
18466
18485
  var ERROR = 'ERROR';
@@ -32403,12 +32422,12 @@
32403
32422
  }
32404
32423
  func$c.SYMBOL = SYMBOL$c;
32405
32424
 
32406
- function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
32425
+ function _toConsumableArray$1(r) { return _arrayWithoutHoles$1(r) || _iterableToArray$1(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread$1(); }
32407
32426
  function _nonIterableSpread$1() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
32408
- function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
32409
- function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
32410
- function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
32411
- function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
32427
+ function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); 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$1(r, a) : void 0; } }
32428
+ function _iterableToArray$1(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
32429
+ function _arrayWithoutHoles$1(r) { if (Array.isArray(r)) return _arrayLikeToArray$1(r); }
32430
+ function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
32412
32431
  var availableOperators = Object.create(null);
32413
32432
 
32414
32433
  /**
@@ -33957,12 +33976,12 @@
33957
33976
  return string;
33958
33977
  }
33959
33978
 
33960
- function _slicedToArray$1(arr, i) { return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$1(); }
33979
+ function _slicedToArray$1(r, e) { return _arrayWithHoles$1(r) || _iterableToArrayLimit$1(r, e) || _unsupportedIterableToArray$2(r, e) || _nonIterableRest$1(); }
33961
33980
  function _nonIterableRest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33962
- function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
33963
- function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
33981
+ function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); 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$2(r, a) : void 0; } }
33982
+ function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
33964
33983
  function _iterableToArrayLimit$1(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
33965
- function _arrayWithHoles$1(arr) { if (Array.isArray(arr)) return arr; }
33984
+ function _arrayWithHoles$1(r) { if (Array.isArray(r)) return r; }
33966
33985
  /**
33967
33986
  * Convert row label to index.
33968
33987
  *
@@ -34076,24 +34095,24 @@
34076
34095
  }
34077
34096
 
34078
34097
  function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
34079
- function _slicedToArray$2(arr, i) { return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$2(); }
34098
+ function _slicedToArray$2(r, e) { return _arrayWithHoles$2(r) || _iterableToArrayLimit$2(r, e) || _unsupportedIterableToArray$3(r, e) || _nonIterableRest$2(); }
34080
34099
  function _nonIterableRest$2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
34081
- function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$3(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }
34082
- function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
34100
+ function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(r, a); var t = {}.toString.call(r).slice(8, -1); 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$3(r, a) : void 0; } }
34101
+ function _arrayLikeToArray$3(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
34083
34102
  function _iterableToArrayLimit$2(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
34084
- function _arrayWithHoles$2(arr) { if (Array.isArray(arr)) return arr; }
34085
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
34086
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$2(descriptor.key), descriptor); } }
34087
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
34103
+ function _arrayWithHoles$2(r) { if (Array.isArray(r)) return r; }
34104
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
34105
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$2(o.key), o); } }
34106
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
34088
34107
  function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$1(i) ? i : i + ""; }
34089
34108
  function _toPrimitive$2(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
34090
34109
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
34091
- function _possibleConstructorReturn(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
34092
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
34110
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof$1(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
34111
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
34093
34112
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
34094
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
34095
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
34096
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
34113
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
34114
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
34115
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
34097
34116
 
34098
34117
  /**
34099
34118
  * @class Parser
@@ -34439,6 +34458,67 @@
34439
34458
  return stringify(rnds);
34440
34459
  }
34441
34460
 
34461
+ function _arrayLikeToArray$4(r, a) {
34462
+ (null == a || a > r.length) && (a = r.length);
34463
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
34464
+ return n;
34465
+ }
34466
+ function _arrayWithHoles$3(r) {
34467
+ if (Array.isArray(r)) return r;
34468
+ }
34469
+ function _arrayWithoutHoles$2(r) {
34470
+ if (Array.isArray(r)) return _arrayLikeToArray$4(r);
34471
+ }
34472
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
34473
+ try {
34474
+ var i = n[a](c),
34475
+ u = i.value;
34476
+ } catch (n) {
34477
+ return void e(n);
34478
+ }
34479
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
34480
+ }
34481
+ function _asyncToGenerator(n) {
34482
+ return function () {
34483
+ var t = this,
34484
+ e = arguments;
34485
+ return new Promise(function (r, o) {
34486
+ var a = n.apply(t, e);
34487
+ function _next(n) {
34488
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
34489
+ }
34490
+ function _throw(n) {
34491
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
34492
+ }
34493
+ _next(void 0);
34494
+ });
34495
+ };
34496
+ }
34497
+ function _classCallCheck$1(a, n) {
34498
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
34499
+ }
34500
+ function _defineProperties$1(e, r) {
34501
+ for (var t = 0; t < r.length; t++) {
34502
+ var o = r[t];
34503
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$3(o.key), o);
34504
+ }
34505
+ }
34506
+ function _createClass$1(e, r, t) {
34507
+ return r && _defineProperties$1(e.prototype, r), t && _defineProperties$1(e, t), Object.defineProperty(e, "prototype", {
34508
+ writable: !1
34509
+ }), e;
34510
+ }
34511
+ function _defineProperty$2(e, r, t) {
34512
+ return (r = _toPropertyKey$3(r)) in e ? Object.defineProperty(e, r, {
34513
+ value: t,
34514
+ enumerable: !0,
34515
+ configurable: !0,
34516
+ writable: !0
34517
+ }) : e[r] = t, e;
34518
+ }
34519
+ function _iterableToArray$2(r) {
34520
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
34521
+ }
34442
34522
  function _iterableToArrayLimit$3(r, l) {
34443
34523
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
34444
34524
  if (null != t) {
@@ -34466,6 +34546,12 @@
34466
34546
  return a;
34467
34547
  }
34468
34548
  }
34549
+ function _nonIterableRest$3() {
34550
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
34551
+ }
34552
+ function _nonIterableSpread$2() {
34553
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
34554
+ }
34469
34555
  function ownKeys$1(e, r) {
34470
34556
  var t = Object.keys(e);
34471
34557
  if (Object.getOwnPropertySymbols) {
@@ -34788,6 +34874,12 @@
34788
34874
  }
34789
34875
  }, e;
34790
34876
  }
34877
+ function _slicedToArray$3(r, e) {
34878
+ return _arrayWithHoles$3(r) || _iterableToArrayLimit$3(r, e) || _unsupportedIterableToArray$4(r, e) || _nonIterableRest$3();
34879
+ }
34880
+ function _toConsumableArray$2(r) {
34881
+ return _arrayWithoutHoles$2(r) || _iterableToArray$2(r) || _unsupportedIterableToArray$4(r) || _nonIterableSpread$2();
34882
+ }
34791
34883
  function _toPrimitive$3(t, r) {
34792
34884
  if ("object" != typeof t || !t) return t;
34793
34885
  var e = t[Symbol.toPrimitive];
@@ -34811,105 +34903,12 @@
34811
34903
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
34812
34904
  }, _typeof$2(o);
34813
34905
  }
34814
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
34815
- try {
34816
- var info = gen[key](arg);
34817
- var value = info.value;
34818
- } catch (error) {
34819
- reject(error);
34820
- return;
34821
- }
34822
- if (info.done) {
34823
- resolve(value);
34824
- } else {
34825
- Promise.resolve(value).then(_next, _throw);
34826
- }
34827
- }
34828
- function _asyncToGenerator(fn) {
34829
- return function () {
34830
- var self = this,
34831
- args = arguments;
34832
- return new Promise(function (resolve, reject) {
34833
- var gen = fn.apply(self, args);
34834
- function _next(value) {
34835
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
34836
- }
34837
- function _throw(err) {
34838
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
34839
- }
34840
- _next(undefined);
34841
- });
34842
- };
34843
- }
34844
- function _classCallCheck$1(instance, Constructor) {
34845
- if (!(instance instanceof Constructor)) {
34846
- throw new TypeError("Cannot call a class as a function");
34847
- }
34848
- }
34849
- function _defineProperties$1(target, props) {
34850
- for (var i = 0; i < props.length; i++) {
34851
- var descriptor = props[i];
34852
- descriptor.enumerable = descriptor.enumerable || false;
34853
- descriptor.configurable = true;
34854
- if ("value" in descriptor) descriptor.writable = true;
34855
- Object.defineProperty(target, _toPropertyKey$3(descriptor.key), descriptor);
34856
- }
34857
- }
34858
- function _createClass$1(Constructor, protoProps, staticProps) {
34859
- if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
34860
- if (staticProps) _defineProperties$1(Constructor, staticProps);
34861
- Object.defineProperty(Constructor, "prototype", {
34862
- writable: false
34863
- });
34864
- return Constructor;
34865
- }
34866
- function _defineProperty$2(obj, key, value) {
34867
- key = _toPropertyKey$3(key);
34868
- if (key in obj) {
34869
- Object.defineProperty(obj, key, {
34870
- value: value,
34871
- enumerable: true,
34872
- configurable: true,
34873
- writable: true
34874
- });
34875
- } else {
34876
- obj[key] = value;
34906
+ function _unsupportedIterableToArray$4(r, a) {
34907
+ if (r) {
34908
+ if ("string" == typeof r) return _arrayLikeToArray$4(r, a);
34909
+ var t = {}.toString.call(r).slice(8, -1);
34910
+ 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$4(r, a) : void 0;
34877
34911
  }
34878
- return obj;
34879
- }
34880
- function _slicedToArray$3(arr, i) {
34881
- return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i) || _unsupportedIterableToArray$4(arr, i) || _nonIterableRest$3();
34882
- }
34883
- function _toConsumableArray$2(arr) {
34884
- return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$4(arr) || _nonIterableSpread$2();
34885
- }
34886
- function _arrayWithoutHoles$2(arr) {
34887
- if (Array.isArray(arr)) return _arrayLikeToArray$4(arr);
34888
- }
34889
- function _arrayWithHoles$3(arr) {
34890
- if (Array.isArray(arr)) return arr;
34891
- }
34892
- function _iterableToArray$2(iter) {
34893
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
34894
- }
34895
- function _unsupportedIterableToArray$4(o, minLen) {
34896
- if (!o) return;
34897
- if (typeof o === "string") return _arrayLikeToArray$4(o, minLen);
34898
- var n = Object.prototype.toString.call(o).slice(8, -1);
34899
- if (n === "Object" && o.constructor) n = o.constructor.name;
34900
- if (n === "Map" || n === "Set") return Array.from(o);
34901
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen);
34902
- }
34903
- function _arrayLikeToArray$4(arr, len) {
34904
- if (len == null || len > arr.length) len = arr.length;
34905
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
34906
- return arr2;
34907
- }
34908
- function _nonIterableSpread$2() {
34909
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
34910
- }
34911
- function _nonIterableRest$3() {
34912
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
34913
34912
  }
34914
34913
 
34915
34914
  var en = {
@@ -77358,14 +77357,14 @@
77358
77357
  var _measureText3 = getMeasureText(str, renderCtx, sheetCtx);
77359
77358
  var _textWidth = _measureText3.width;
77360
77359
  var _textHeight2 = _measureText3.actualBoundingBoxAscent + _measureText3.actualBoundingBoxDescent;
77361
- var _width = _textWidth * Math.cos(rt * Math.PI / 180) + _textHeight2 * Math.sin(rt * Math.PI / 180);
77360
+ var _width2 = _textWidth * Math.cos(rt * Math.PI / 180) + _textHeight2 * Math.sin(rt * Math.PI / 180);
77362
77361
  var _height = _textWidth * Math.sin(rt * Math.PI / 180) + _textHeight2 * Math.cos(rt * Math.PI / 180);
77363
77362
  var _lastWord = str.substr(str.length - 1, 1);
77364
77363
  if (_lastWord === " " || checkWordByteLength(_lastWord) === 2) {
77365
77364
  spaceOrTwoByte = {
77366
77365
  index: _i5,
77367
77366
  str: str,
77368
- width: _width,
77367
+ width: _width2,
77369
77368
  height: _height,
77370
77369
  asc: _measureText3.actualBoundingBoxAscent,
77371
77370
  desc: _measureText3.actualBoundingBoxDescent
@@ -77430,7 +77429,7 @@
77430
77429
  _i5 += 1;
77431
77430
  }
77432
77431
  } else {
77433
- if (_width + space_width > cellWidth && !lodash.isNil(text_all_split[splitIndex])) {
77432
+ if (_width2 + space_width > cellWidth && !lodash.isNil(text_all_split[splitIndex])) {
77434
77433
  if (!lodash.isNil(spaceOrTwoByte) && spaceOrTwoByte.index < _i5) {
77435
77434
  anchor = spaceOrTwoByte.index;
77436
77435
  _i5 = spaceOrTwoByte.index + 1;
@@ -77775,13 +77774,21 @@
77775
77774
  if (isMode === "onlyWidth") {
77776
77775
  return textContent;
77777
77776
  }
77778
- var _width2 = textWidthAll;
77777
+ var _width3 = textWidthAll;
77779
77778
  var _height2 = textHeightAll;
77780
77779
  var _left3 = space_width + _textHeight3 * Math.sin(_rtPI) * isRotateUp;
77781
77780
  if (horizonAlign === "0") {
77782
- _left3 = cellWidth / 2 - _width2 / 2 + _textHeight3 * Math.sin(_rtPI) * isRotateUp;
77781
+ var _cell$mc, _cell$mc2;
77782
+ var mcCIndex = cell === null || cell === void 0 ? void 0 : (_cell$mc = cell.mc) === null || _cell$mc === void 0 ? void 0 : _cell$mc.c;
77783
+ var mcCs = cell === null || cell === void 0 ? void 0 : (_cell$mc2 = cell.mc) === null || _cell$mc2 === void 0 ? void 0 : _cell$mc2.cs;
77784
+ var startMc = mcCIndex - 1;
77785
+ var endMc = mcCIndex + mcCs - 1;
77786
+ var startX = sheetCtx.visibledatacolumn[startMc] || 0;
77787
+ var endX = sheetCtx.visibledatacolumn[endMc] || 0;
77788
+ var _width = mcCIndex ? endX - startX : cellWidth;
77789
+ _left3 = _width / 2 - _width3 / 2 + _textHeight3 * Math.sin(_rtPI) * isRotateUp;
77783
77790
  } else if (horizonAlign === "2") {
77784
- _left3 = cellWidth - space_width - _width2 + _textHeight3 * Math.sin(_rtPI) * isRotateUp;
77791
+ _left3 = cellWidth - space_width - _width3 + _textHeight3 * Math.sin(_rtPI) * isRotateUp;
77785
77792
  }
77786
77793
  var _top3 = cellHeight - space_height - _height2 + _measureText4.actualBoundingBoxAscent * Math.cos(_rtPI) + _textWidth2 * Math.sin(_rtPI) * isRotateUp;
77787
77794
  if (verticalAlign === "0") {
@@ -77793,7 +77800,7 @@
77793
77800
  var _wordGroup2 = {
77794
77801
  content: value,
77795
77802
  style: fontset,
77796
- width: _width2,
77803
+ width: _width3,
77797
77804
  height: _height2,
77798
77805
  left: _left3,
77799
77806
  top: _top3
@@ -78752,7 +78759,7 @@
78752
78759
  function split_fmt(fmt) {
78753
78760
  var out = [];
78754
78761
  var in_str = false; /*, cc*/
78755
- for (var i = 0, j = 0; i < fmt.length; ++i) switch ( /*cc=*/fmt.charCodeAt(i)) {
78762
+ for (var i = 0, j = 0; i < fmt.length; ++i) switch (/*cc=*/fmt.charCodeAt(i)) {
78756
78763
  case 34:
78757
78764
  /* '"' */in_str = !in_str;
78758
78765
  break;
@@ -79529,25 +79536,20 @@
79529
79536
  var groupSeparator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ',';
79530
79537
  return String(number).replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
79531
79538
  };
79532
- var numberThousands = function numberThousands(number) {
79539
+ var numberThousands = function numberThousands(num) {
79533
79540
  var groupSeparator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ',';
79534
79541
  var precision = arguments.length > 2 ? arguments[2] : undefined;
79535
- if (number === 0) return '0';
79536
- if (!number) return number;
79537
- var _number = !['', undefined].includes(precision) ? formatNumber(number, precision) : number;
79538
- if (String(_number).includes('.')) {
79539
- var _String$split = String(_number).split('.'),
79540
- _String$split2 = _slicedToArray$3(_String$split, 2),
79541
- init = _String$split2[0],
79542
- decimal = _String$split2[1];
79542
+ var number = Number(num).toFixed(precision);
79543
+ var _String$split = String(number).split('.'),
79544
+ _String$split2 = _slicedToArray$3(_String$split, 2),
79545
+ init = _String$split2[0],
79546
+ decimal = _String$split2[1];
79547
+ if (precision) {
79543
79548
  return intThousands(init, groupSeparator) + '.' + decimal;
79544
79549
  } else {
79545
- return intThousands(_number, groupSeparator);
79550
+ return intThousands(init, groupSeparator);
79546
79551
  }
79547
79552
  };
79548
- function formatNumber(num, precision) {
79549
- return parseFloat(Number(num).toFixed(precision));
79550
- }
79551
79553
 
79552
79554
  var base1904 = new Date(1900, 2, 1, 0, 0, 0);
79553
79555
  function datenum_local(v, date1904) {
@@ -86664,15 +86666,28 @@
86664
86666
  for (var r = rows[0]; r <= rows[1]; r += 1) {
86665
86667
  cpString += "<tr>";
86666
86668
  for (var c = columns[0]; c <= columns[1]; c += 1) {
86667
- var _flowdata$r, _ref, _data$m, _ref2, _data$v;
86669
+ var _flowdata$r, _ref, _data$m, _ref2, _data$v, _data$mc$rs, _data$mc, _data$mc$cs, _data$mc2, _data$bg, _data$fc, _data$ht;
86668
86670
  var data = flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r = flowdata[r]) === null || _flowdata$r === void 0 ? void 0 : _flowdata$r[c];
86669
86671
  var value = (_ref = (_data$m = data === null || data === void 0 ? void 0 : data.m) !== null && _data$m !== void 0 ? _data$m : data === null || data === void 0 ? void 0 : data.v) !== null && _ref !== void 0 ? _ref : "";
86670
86672
  var realValue = (_ref2 = (_data$v = data === null || data === void 0 ? void 0 : data.v) !== null && _data$v !== void 0 ? _data$v : data === null || data === void 0 ? void 0 : data.m) !== null && _ref2 !== void 0 ? _ref2 : "";
86671
- cpString += "<td x:num=".concat(realValue, "> ").concat(value, " </td>");
86673
+ var rowspan = (_data$mc$rs = data === null || data === void 0 ? void 0 : (_data$mc = data.mc) === null || _data$mc === void 0 ? void 0 : _data$mc.rs) !== null && _data$mc$rs !== void 0 ? _data$mc$rs : 1;
86674
+ var colspan = (_data$mc$cs = data === null || data === void 0 ? void 0 : (_data$mc2 = data.mc) === null || _data$mc2 === void 0 ? void 0 : _data$mc2.cs) !== null && _data$mc$cs !== void 0 ? _data$mc$cs : 1;
86675
+ var bg = (_data$bg = data === null || data === void 0 ? void 0 : data.bg) !== null && _data$bg !== void 0 ? _data$bg : "#fff";
86676
+ var fc = (_data$fc = data === null || data === void 0 ? void 0 : data.fc) !== null && _data$fc !== void 0 ? _data$fc : "#000";
86677
+ var ht = (_data$ht = data === null || data === void 0 ? void 0 : data.ht) !== null && _data$ht !== void 0 ? _data$ht : "1";
86678
+ var textAlign = {
86679
+ 0: "center",
86680
+ 1: "left",
86681
+ 2: "right"
86682
+ }[String(ht)];
86683
+ if (!(data === null || data === void 0 ? void 0 : data.mc) || (data === null || data === void 0 ? void 0 : data.mc) && (data === null || data === void 0 ? void 0 : data.mc.r) === r && data.mc.c === c) {
86684
+ var style = "background: ".concat(bg, "; color: ").concat(fc, "; text-align: ").concat(textAlign, "; vertical-align: middle;");
86685
+ cpString += "<td x:num='".concat(realValue, "' style='").concat(style, "' rowspan=").concat(rowspan, " colspan=").concat(colspan, "> ").concat(value, " </td>");
86686
+ }
86672
86687
  }
86673
86688
  cpString += "</tr>";
86674
86689
  }
86675
- var result = "<table data-type=\"leankylin-copy-action-table\">".concat(cpString, "</table>");
86690
+ var result = "<table border=\"1\" style=\"border-collapse:collapse\" data-type=\"leankylin-copy-action-table\">".concat(cpString, "</table>");
86676
86691
  clipboard.writeHtml(result);
86677
86692
  }
86678
86693
  function deleteSelectedCellText(ctx) {
@@ -86850,6 +86865,7 @@
86850
86865
 
86851
86866
  function defaultContext(refs) {
86852
86867
  return {
86868
+ cellOptions: [],
86853
86869
  luckysheetfile: [],
86854
86870
  defaultcolumnNum: 60,
86855
86871
  defaultrowNum: 84,
@@ -96542,7 +96558,7 @@
96542
96558
  _startY2 = this.sheetCtx.visibledatarow[_r2 - 1] - scrollHeight - 1;
96543
96559
  }
96544
96560
  _endY2 = this.sheetCtx.visibledatarow[_r2 + mainCell.mc.rs - 1] - scrollHeight;
96545
- _endX2 = this.sheetCtx.visibledatacolumn[_c2 + mainCell.mc.cs - 1] - scrollWidth;
96561
+ _endX2 = Math.min(this.sheetCtx.visibledatacolumn[_c2 + mainCell.mc.cs - 1] - scrollWidth, drawWidth);
96546
96562
  if (lodash.isNil(_value3) || _value3.toString().length === 0) {
96547
96563
  this.nullCellRender(_r2, _c2, _startY2, _startX2, _endY2, _endX2, renderCtx, afCompute, cfCompute, offsetLeft, offsetTop, dynamicArrayCompute, cellOverflowMap, colStart, colEnd, scrollHeight, scrollWidth, bodrder05, true);
96548
96564
  } else {
@@ -96766,7 +96782,7 @@
96766
96782
  }, {
96767
96783
  key: "nullCellRender",
96768
96784
  value: function nullCellRender(r, c, startY, startX, endY, endX, renderCtx, afCompute, cfCompute, offsetLeft, offsetTop, dynamicArrayCompute, cellOverflowMap, colStart, colEnd, scrollHeight, scrollWidth, bodrder05) {
96769
- var _this$sheetCtx$hooks$6, _this$sheetCtx$hooks6, _flowdata$r2, _flowdata$r2$c, _this$sheetCtx$hooks$7, _this$sheetCtx$hooks7;
96785
+ var _this$sheetCtx$hooks$6, _this$sheetCtx$hooks6, _flowdata$r2, _flowdata$r3, _flowdata$r3$c, _this$sheetCtx$hooks$7, _this$sheetCtx$hooks7;
96770
96786
  var isMerge = arguments.length > 18 && arguments[18] !== undefined ? arguments[18] : false;
96771
96787
  var checksCF = checkCF(r, c, cfCompute);
96772
96788
  var flowdata = getFlowdata(this.sheetCtx);
@@ -96803,7 +96819,8 @@
96803
96819
  renderCtx.textBaseline = "bottom";
96804
96820
  renderCtx.fillText(lodash.isNil(value) ? "" : value, horizonAlignPos, verticalAlignPos);
96805
96821
  }
96806
- if (flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r2 = flowdata[r]) === null || _flowdata$r2 === void 0 ? void 0 : (_flowdata$r2$c = _flowdata$r2[c]) === null || _flowdata$r2$c === void 0 ? void 0 : _flowdata$r2$c.ps) {
96822
+ this.renderLyFlag(renderCtx, flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r2 = flowdata[r]) === null || _flowdata$r2 === void 0 ? void 0 : _flowdata$r2[c], startY, endX, offsetLeft, offsetTop);
96823
+ if (flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r3 = flowdata[r]) === null || _flowdata$r3 === void 0 ? void 0 : (_flowdata$r3$c = _flowdata$r3[c]) === null || _flowdata$r3$c === void 0 ? void 0 : _flowdata$r3$c.ps) {
96807
96824
  var ps_w = 8 * this.sheetCtx.zoomRatio;
96808
96825
  var ps_h = 8 * this.sheetCtx.zoomRatio;
96809
96826
  renderCtx.beginPath();
@@ -96847,10 +96864,27 @@
96847
96864
  endX: cellsize[2] + cellsize[0]
96848
96865
  }, renderCtx);
96849
96866
  }
96867
+ }, {
96868
+ key: "renderLyFlag",
96869
+ value: function renderLyFlag(renderCtx, cell, startY, endX, offsetLeft, offsetTop) {
96870
+ var lyFlagColor = cell === null || cell === void 0 ? void 0 : cell.lyFlagColor;
96871
+ if (!lyFlagColor) {
96872
+ return;
96873
+ }
96874
+ var ps_w = 8 * this.sheetCtx.zoomRatio;
96875
+ var ps_h = 8 * this.sheetCtx.zoomRatio;
96876
+ renderCtx.beginPath();
96877
+ renderCtx.moveTo(endX + offsetLeft - ps_w, startY + offsetTop);
96878
+ renderCtx.lineTo(endX + offsetLeft, startY + offsetTop);
96879
+ renderCtx.lineTo(endX + offsetLeft, startY + offsetTop + ps_h);
96880
+ renderCtx.fillStyle = lyFlagColor;
96881
+ renderCtx.fill();
96882
+ renderCtx.closePath();
96883
+ }
96850
96884
  }, {
96851
96885
  key: "cellRender",
96852
96886
  value: function cellRender(r, c, startY, startX, endY, endX, value, renderCtx, afCompute, cfCompute, offsetLeft, offsetTop, dynamicArrayCompute, cellOverflowMap, colStart, colEnd, scrollHeight, scrollWidth, bodrder05) {
96853
- var _this$sheetCtx$hooks$8, _this$sheetCtx$hooks8, _dataVerification, _this$sheetCtx$hooks$9, _this$sheetCtx$hooks9, _flowdata$r3;
96887
+ var _this$sheetCtx$hooks$8, _this$sheetCtx$hooks8, _dataVerification, _this$sheetCtx$hooks$9, _this$sheetCtx$hooks9, _flowdata$r4;
96854
96888
  var isMerge = arguments.length > 19 && arguments[19] !== undefined ? arguments[19] : false;
96855
96889
  var flowdata = getFlowdata(this.sheetCtx);
96856
96890
  if (!flowdata) {
@@ -96900,6 +96934,7 @@
96900
96934
  renderCtx.fill();
96901
96935
  renderCtx.closePath();
96902
96936
  }
96937
+ this.renderLyFlag(renderCtx, cell, startY, endX, offsetLeft, offsetTop);
96903
96938
  if (cell === null || cell === void 0 ? void 0 : cell.ps) {
96904
96939
  var ps_w = 8 * this.sheetCtx.zoomRatio;
96905
96940
  var ps_h = 8 * this.sheetCtx.zoomRatio;
@@ -97125,7 +97160,7 @@
97125
97160
  renderCtx.stroke();
97126
97161
  renderCtx.closePath();
97127
97162
  }
97128
- (_this$sheetCtx$hooks$9 = (_this$sheetCtx$hooks9 = this.sheetCtx.hooks).afterRenderCell) === null || _this$sheetCtx$hooks$9 === void 0 ? void 0 : _this$sheetCtx$hooks$9.call(_this$sheetCtx$hooks9, (_flowdata$r3 = flowdata[r]) === null || _flowdata$r3 === void 0 ? void 0 : _flowdata$r3[c], {
97163
+ (_this$sheetCtx$hooks$9 = (_this$sheetCtx$hooks9 = this.sheetCtx.hooks).afterRenderCell) === null || _this$sheetCtx$hooks$9 === void 0 ? void 0 : _this$sheetCtx$hooks$9.call(_this$sheetCtx$hooks9, (_flowdata$r4 = flowdata[r]) === null || _flowdata$r4 === void 0 ? void 0 : _flowdata$r4[c], {
97129
97164
  row: r,
97130
97165
  column: c,
97131
97166
  startX: cellsize[0],
@@ -97368,27 +97403,6 @@
97368
97403
  value: function drawFreezeLine(_ref2) {
97369
97404
  var horizontalTop = _ref2.horizontalTop,
97370
97405
  verticalLeft = _ref2.verticalLeft;
97371
- var renderCtx = this.canvasElement.getContext("2d");
97372
- if (!renderCtx) return;
97373
- renderCtx.save();
97374
- renderCtx.scale(this.sheetCtx.devicePixelRatio, this.sheetCtx.devicePixelRatio);
97375
- renderCtx.strokeStyle = "#ccc";
97376
- renderCtx.lineWidth = 2;
97377
- if (horizontalTop) {
97378
- renderCtx.beginPath();
97379
- renderCtx.moveTo(0, horizontalTop);
97380
- renderCtx.lineTo(this.canvasElement.width, horizontalTop);
97381
- renderCtx.stroke();
97382
- renderCtx.closePath();
97383
- }
97384
- if (verticalLeft) {
97385
- renderCtx.beginPath();
97386
- renderCtx.moveTo(verticalLeft, 0);
97387
- renderCtx.lineTo(verticalLeft, this.canvasElement.height);
97388
- renderCtx.stroke();
97389
- renderCtx.closePath();
97390
- }
97391
- renderCtx.restore();
97392
97406
  }
97393
97407
  }]);
97394
97408
  }();
@@ -98247,7 +98261,7 @@
98247
98261
  fc = fc.substr(0, 1) + fc.substr(1, 1).repeat(2) + fc.substr(2, 1).repeat(2) + fc.substr(3, 1).repeat(2);
98248
98262
  }
98249
98263
  }
98250
- var isRowHidden = (r in (((_ctx$config = ctx.config) === null || _ctx$config === void 0 ? void 0 : _ctx$config.rowhidden) || {}));
98264
+ var isRowHidden = r in (((_ctx$config = ctx.config) === null || _ctx$config === void 0 ? void 0 : _ctx$config.rowhidden) || {});
98251
98265
  var bgData = bgMap.get(bg);
98252
98266
  if (bgData != null) {
98253
98267
  bgData.rows.push(r);
@@ -100173,6 +100187,10 @@
100173
100187
  });
100174
100188
 
100175
100189
  var defaultSettings = {
100190
+ renderCalcInfo: undefined,
100191
+ renderFreezeCol: undefined,
100192
+ renderFreezeRow: undefined,
100193
+ renderFilter: undefined,
100176
100194
  fxContainer: undefined,
100177
100195
  disabledKeyboardCodes: [],
100178
100196
  Footer: undefined,
@@ -100529,60 +100547,20 @@
100529
100547
  e.stopPropagation();
100530
100548
  }
100531
100549
 
100532
- var mouseWheelUniqueTimeout;
100533
100550
  function handleGlobalWheel(ctx, e, cache, scrollbarX, scrollbarY) {
100534
100551
  var _cache$searchDialog;
100535
100552
  if (((_cache$searchDialog = cache.searchDialog) === null || _cache$searchDialog === void 0 ? void 0 : _cache$searchDialog.mouseEnter) && ctx.showSearch && ctx.showReplace) return;
100536
100553
  if (ctx.filterContextMenu != null) return;
100537
100554
  var scrollLeft = scrollbarX.scrollLeft;
100538
100555
  var scrollTop = scrollbarY.scrollTop;
100539
- var visibledatacolumn_c = ctx.visibledatacolumn;
100540
- var visibledatarow_c = ctx.visibledatarow;
100541
- clearTimeout(mouseWheelUniqueTimeout);
100542
- if (cache.visibleColumnsUnique != null) {
100543
- visibledatacolumn_c = cache.visibleColumnsUnique;
100544
- } else {
100545
- visibledatacolumn_c = lodash.uniq(visibledatacolumn_c);
100546
- cache.visibleColumnsUnique = visibledatacolumn_c;
100547
- }
100548
- if (cache.visibleRowsUnique != null) {
100549
- visibledatarow_c = cache.visibleRowsUnique;
100550
- } else {
100551
- visibledatarow_c = lodash.uniq(visibledatarow_c);
100552
- cache.visibleRowsUnique = visibledatarow_c;
100553
- }
100554
- var row_st = lodash.sortedIndex(visibledatarow_c, scrollTop) + 1;
100555
- var rowscroll = 0;
100556
- var scrollNum = 1;
100557
100556
  if (e.deltaY !== 0) {
100558
- var row_ed;
100559
- var step = Math.round(scrollNum / ctx.zoomRatio);
100560
- step = step < 1 ? 1 : step;
100561
- if (e.deltaY > 0) {
100562
- row_ed = row_st + step;
100563
- if (row_ed >= visibledatarow_c.length) {
100564
- row_ed = visibledatarow_c.length - 1;
100565
- }
100566
- } else {
100567
- row_ed = row_st - step;
100568
- if (row_ed < 0) {
100569
- row_ed = 0;
100570
- }
100571
- }
100572
- rowscroll = row_ed === 0 ? 0 : visibledatarow_c[row_ed - 1];
100573
- scrollbarY.scrollTop = rowscroll;
100574
- } else if (e.deltaX !== 0) {
100575
- if (e.deltaX > 0) {
100576
- scrollLeft += 20 * ctx.zoomRatio;
100577
- } else {
100578
- scrollLeft -= 20 * ctx.zoomRatio;
100579
- }
100557
+ scrollTop += e.deltaY * ctx.zoomRatio;
100558
+ scrollbarY.scrollTop = scrollTop;
100559
+ }
100560
+ if (e.deltaX !== 0) {
100561
+ scrollLeft += e.deltaX * ctx.zoomRatio;
100580
100562
  scrollbarX.scrollLeft = scrollLeft;
100581
100563
  }
100582
- mouseWheelUniqueTimeout = setTimeout(function () {
100583
- delete cache.visibleColumnsUnique;
100584
- delete cache.visibleRowsUnique;
100585
- }, 500);
100586
100564
  e.preventDefault();
100587
100565
  }
100588
100566
  function fixPositionOnFrozenCells(freeze, x, y, mouseX, mouseY) {
@@ -102323,7 +102301,7 @@
102323
102301
  return _handlePasteByLeanklin.apply(this, arguments);
102324
102302
  }
102325
102303
  function _handlePasteByLeanklin() {
102326
- _handlePasteByLeanklin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(ctx, e) {
102304
+ _handlePasteByLeanklin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(ctx, e) {
102327
102305
  var _ctx$luckysheet_selec8;
102328
102306
  var data, allowEdit, selectRange, rows, columns, copyOne, newData, r, rIndex, c, row, column, range;
102329
102307
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
@@ -102587,14 +102565,14 @@
102587
102565
  left: hoverLocation.col - 5 + (hoverInFreeze ? context.scrollLeft : 0),
102588
102566
  opacity: context.luckysheet_cols_change_size ? 1 : 0
102589
102567
  }
102590
- }), !context.luckysheet_cols_change_size && hoverLocation.col_index >= 0 ? (/*#__PURE__*/React__default['default'].createElement("div", {
102568
+ }), !context.luckysheet_cols_change_size && hoverLocation.col_index >= 0 ? ( /*#__PURE__*/React__default['default'].createElement("div", {
102591
102569
  className: "leankylin-col-header-hover",
102592
102570
  style: lodash.assign({
102593
102571
  left: hoverLocation.col_pre,
102594
102572
  width: hoverLocation.col - hoverLocation.col_pre - 1,
102595
102573
  display: "block"
102596
102574
  }, 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]))
102597
- }, allowEditRef.current && (/*#__PURE__*/React__default['default'].createElement("span", {
102575
+ }, allowEditRef.current && ( /*#__PURE__*/React__default['default'].createElement("span", {
102598
102576
  className: "header-arrow",
102599
102577
  onClick: function onClick(e) {
102600
102578
  setContext(function (ctx) {
@@ -102802,7 +102780,7 @@
102802
102780
  top: hoverLocation.row - 3 + (hoverInFreeze ? context.scrollTop : 0),
102803
102781
  opacity: context.luckysheet_rows_change_size ? 1 : 0
102804
102782
  }
102805
- }), !context.luckysheet_rows_change_size && hoverLocation.row_index >= 0 ? (/*#__PURE__*/React__default['default'].createElement("div", {
102783
+ }), !context.luckysheet_rows_change_size && hoverLocation.row_index >= 0 ? ( /*#__PURE__*/React__default['default'].createElement("div", {
102806
102784
  className: "leankylin-row-header-hover",
102807
102785
  style: lodash.assign({
102808
102786
  top: hoverLocation.row_pre,
@@ -102905,13 +102883,34 @@
102905
102883
 
102906
102884
  var FormulaSearch = function FormulaSearch(props) {
102907
102885
  var _useContext = React.useContext(WorkbookContext),
102908
- context = _useContext.context;
102886
+ context = _useContext.context,
102887
+ refs = _useContext.refs,
102888
+ settings = _useContext.settings;
102909
102889
  if (lodash.isEmpty(context.functionCandidates)) return null;
102890
+ function moveCursorToEnd(editor) {
102891
+ var leftParen = editor.querySelector(".luckysheet-formula-text-lpar");
102892
+ var rightParen = editor.querySelector(".luckysheet-formula-text-rpar");
102893
+ var range = document.createRange();
102894
+ var selection = window.getSelection();
102895
+ range.setStartAfter(leftParen);
102896
+ range.setEndBefore(rightParen);
102897
+ selection.removeAllRanges();
102898
+ selection.addRange(range);
102899
+ }
102900
+ if (settings.renderFormulaSearch) {
102901
+ return settings.renderFormulaSearch(context.functionCandidates, functionHTMLGenerate, refs.cellInput.current);
102902
+ }
102910
102903
  return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2(_objectSpread2({}, props), {}, {
102911
102904
  id: "luckysheet-formula-search-c",
102912
102905
  className: "luckysheet-formula-search-c"
102913
102906
  }), context.functionCandidates.map(function (v) {
102914
102907
  return /*#__PURE__*/React__default['default'].createElement("div", {
102908
+ onClick: function onClick() {
102909
+ var _refs$cellInput$curre;
102910
+ refs.cellInput.current.innerHTML = functionHTMLGenerate("=".concat(v.n, "()"));
102911
+ (_refs$cellInput$curre = refs.cellInput.current) === null || _refs$cellInput$curre === void 0 ? void 0 : _refs$cellInput$curre.focus();
102912
+ moveCursorToEnd(refs.cellInput.current);
102913
+ },
102915
102914
  key: v.n,
102916
102915
  "data-func": v.n,
102917
102916
  className: "luckysheet-formula-search-item"
@@ -102925,12 +102924,16 @@
102925
102924
 
102926
102925
  var FormulaHint = function FormulaHint(props) {
102927
102926
  var _useContext = React.useContext(WorkbookContext),
102928
- context = _useContext.context;
102927
+ context = _useContext.context,
102928
+ settings = _useContext.settings;
102929
102929
  var _locale = locale(context),
102930
102930
  formulaMore = _locale.formulaMore;
102931
102931
  if (!context.functionHint) return null;
102932
102932
  var fn = context.formulaCache.functionlistMap[context.functionHint];
102933
102933
  if (!fn) return null;
102934
+ if (settings.renderFormulaHint) {
102935
+ return settings.renderFormulaHint(fn);
102936
+ }
102934
102937
  return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2(_objectSpread2({}, props), {}, {
102935
102938
  id: "luckysheet-formula-help-c",
102936
102939
  className: "luckysheet-formula-help-c"
@@ -103009,9 +103012,9 @@
103009
103012
  key: param.name
103010
103013
  }, /*#__PURE__*/React__default['default'].createElement("div", {
103011
103014
  className: "luckysheet-arguments-help-section-title"
103012
- }, param.name, param.repeat === "y" && (/*#__PURE__*/React__default['default'].createElement("span", {
103015
+ }, param.name, param.repeat === "y" && ( /*#__PURE__*/React__default['default'].createElement("span", {
103013
103016
  className: "luckysheet-arguments-help-argument-info"
103014
- }, "...-", formulaMore.allowRepeatText)), param.require === "o" && (/*#__PURE__*/React__default['default'].createElement("span", {
103017
+ }, "...-", formulaMore.allowRepeatText)), param.require === "o" && ( /*#__PURE__*/React__default['default'].createElement("span", {
103015
103018
  className: "luckysheet-arguments-help-argument-info"
103016
103019
  }, "-[", formulaMore.allowOptionText, "]"))), /*#__PURE__*/React__default['default'].createElement("span", {
103017
103020
  className: "luckysheet-arguments-help-parameter-content"
@@ -103147,9 +103150,7 @@
103147
103150
  if (!(kcode >= 112 && kcode <= 123 || kcode <= 46 || kcode === 144 || kcode === 108 || e.ctrlKey || e.altKey || e.shiftKey && (kcode === 37 || kcode === 38 || kcode === 39 || kcode === 40)) || kcode === 8 || kcode === 32 || kcode === 46 || e.ctrlKey && kcode === 86) {
103148
103151
  setContext(function (draftCtx) {
103149
103152
  if ((draftCtx.formulaCache.rangestart || draftCtx.formulaCache.rangedrag_column_start || draftCtx.formulaCache.rangedrag_row_start || israngeseleciton(draftCtx)) && isBlur) return;
103150
- if (!isAllowEdit(draftCtx, draftCtx.luckysheet_select_save)) {
103151
- return;
103152
- }
103153
+ if (!isAllowEdit(draftCtx, draftCtx.luckysheet_select_save)) ;
103153
103154
  handleFormulaInput(draftCtx, refs.fxInput.current, refs.cellInput.current, kcode, preText.current);
103154
103155
  });
103155
103156
  }
@@ -103205,7 +103206,7 @@
103205
103206
  onKeyDown: onKeyDown,
103206
103207
  onPaste: onPaste,
103207
103208
  allowEdit: edit ? !isHidenRC : edit
103208
- })), document.activeElement === inputRef.current && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(FormulaSearch, {
103209
+ })), document.activeElement === inputRef.current && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(FormulaSearch, {
103209
103210
  style: {
103210
103211
  top: ((firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.height_move) || 0) + 4
103211
103212
  }
@@ -103298,12 +103299,12 @@
103298
103299
  }))), /*#__PURE__*/React__default['default'].createElement("div", {
103299
103300
  className: "leankylin-dialog-box-content",
103300
103301
  style: contentStyle
103301
- }, children), type != null && (/*#__PURE__*/React__default['default'].createElement("div", {
103302
+ }, children), type != null && ( /*#__PURE__*/React__default['default'].createElement("div", {
103302
103303
  className: "leankylin-dialog-box-button-container"
103303
- }, type === "ok" ? (/*#__PURE__*/React__default['default'].createElement("div", {
103304
+ }, type === "ok" ? ( /*#__PURE__*/React__default['default'].createElement("div", {
103304
103305
  className: "leankylin-message-box-button button-default",
103305
103306
  onClick: onOk
103306
- }, button.confirm)) : (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
103307
+ }, button.confirm)) : ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
103307
103308
  className: "leankylin-message-box-button button-primary",
103308
103309
  onClick: onOk
103309
103310
  }, button.confirm), /*#__PURE__*/React__default['default'].createElement("div", {
@@ -103359,7 +103360,7 @@
103359
103360
  }, [hideModal, showModal]);
103360
103361
  return /*#__PURE__*/React__default['default'].createElement(ModalContext.Provider, {
103361
103362
  value: providerValue
103362
- }, children, component && (/*#__PURE__*/React__default['default'].createElement("div", {
103363
+ }, children, component && ( /*#__PURE__*/React__default['default'].createElement("div", {
103363
103364
  onMouseDown: function onMouseDown(e) {
103364
103365
  return e.stopPropagation();
103365
103366
  },
@@ -103384,7 +103385,7 @@
103384
103385
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "ok";
103385
103386
  var onOk = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : hideModal;
103386
103387
  var onCancel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : hideModal;
103387
- showModal(/*#__PURE__*/React__default['default'].createElement(MessageBox, {
103388
+ showModal( /*#__PURE__*/React__default['default'].createElement(MessageBox, {
103388
103389
  type: type,
103389
103390
  onOk: onOk,
103390
103391
  onCancel: onCancel
@@ -103454,7 +103455,7 @@
103454
103455
  };
103455
103456
  }, []);
103456
103457
  var body = document.body;
103457
- return /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/React__default['default'].createElement("div", {
103458
+ return /*#__PURE__*/reactDom.createPortal( /*#__PURE__*/React__default['default'].createElement("div", {
103458
103459
  id: "leankylin-search-replace",
103459
103460
  className: "leankylin-search-replace leankylin-dialog",
103460
103461
  style: getInitialPosition(body),
@@ -103517,7 +103518,7 @@
103517
103518
  onChange: function onChange(e) {
103518
103519
  return setSearchText(e.target.value);
103519
103520
  }
103520
- })), showReplace && (/*#__PURE__*/React__default['default'].createElement("div", {
103521
+ })), showReplace && ( /*#__PURE__*/React__default['default'].createElement("div", {
103521
103522
  className: "textboxs",
103522
103523
  id: "replaceInput"
103523
103524
  }, findAndReplace.replaceTextbox, "\uFF1A", /*#__PURE__*/React__default['default'].createElement("input", {
@@ -103555,7 +103556,7 @@
103555
103556
  }
103556
103557
  }), /*#__PURE__*/React__default['default'].createElement("span", null, findAndReplace.distinguishTextbox)))), /*#__PURE__*/React__default['default'].createElement("div", {
103557
103558
  className: "btnBox"
103558
- }, showReplace && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
103559
+ }, showReplace && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
103559
103560
  id: "replaceAllBtn",
103560
103561
  className: "leankylin-message-box-button button-default",
103561
103562
  onClick: function onClick() {
@@ -103602,7 +103603,7 @@
103602
103603
  }, findAndReplace.findBtn))), /*#__PURE__*/React__default['default'].createElement("div", {
103603
103604
  className: "close-button leankylin-message-box-button button-default",
103604
103605
  onClick: closeDialog
103605
- }, button.close), searchResult.length > 0 && (/*#__PURE__*/React__default['default'].createElement("div", {
103606
+ }, button.close), searchResult.length > 0 && ( /*#__PURE__*/React__default['default'].createElement("div", {
103606
103607
  id: "searchAllbox",
103607
103608
  onScroll: function onScroll(e) {
103608
103609
  return e.stopPropagation();
@@ -103795,7 +103796,7 @@
103795
103796
  });
103796
103797
  }));
103797
103798
  }
103798
- return selectingCellRange ? (/*#__PURE__*/React__default['default'].createElement("div", _objectSpread2(_objectSpread2({
103799
+ return selectingCellRange ? ( /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2(_objectSpread2({
103799
103800
  className: "leankylin-link-modify-modal range-selection-modal",
103800
103801
  style: {
103801
103802
  left: position.cellLeft,
@@ -103830,7 +103831,7 @@
103830
103831
  }, function () {
103831
103832
  setLinkAddress(originAddress);
103832
103833
  setRangeModalVisible(false);
103833
- })))) : (/*#__PURE__*/React__default['default'].createElement("div", _objectSpread2({
103834
+ })))) : ( /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2({
103834
103835
  className: "leankylin-link-modify-modal",
103835
103836
  style: {
103836
103837
  left: position.cellLeft + 20,
@@ -103874,7 +103875,7 @@
103874
103875
  }, type.text);
103875
103876
  }))), /*#__PURE__*/React__default['default'].createElement("div", {
103876
103877
  className: "leankylin-link-modify-line"
103877
- }, linkType === "webpage" && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
103878
+ }, linkType === "webpage" && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
103878
103879
  className: "leankylin-link-modify-title"
103879
103880
  }, insertLink.linkAddress), /*#__PURE__*/React__default['default'].createElement("input", {
103880
103881
  className: "leankylin-link-modify-input ".concat(!linkAddress || isLinkAddressValid.isValid ? "" : "error-input"),
@@ -103883,7 +103884,7 @@
103883
103884
  onChange: function onChange(e) {
103884
103885
  return setLinkAddress(e.target.value);
103885
103886
  }
103886
- }), tooltip)), linkType === "cellrange" && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
103887
+ }), tooltip)), linkType === "cellrange" && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
103887
103888
  className: "leankylin-link-modify-title"
103888
103889
  }, insertLink.linkCell), /*#__PURE__*/React__default['default'].createElement("input", {
103889
103890
  className: "leankylin-link-modify-input ".concat(!linkAddress || isLinkAddressValid.isValid ? "" : "error-input"),
@@ -103899,7 +103900,7 @@
103899
103900
  }
103900
103901
  }, /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
103901
103902
  name: "border-all"
103902
- })), tooltip)), linkType === "sheet" && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
103903
+ })), tooltip)), linkType === "sheet" && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
103903
103904
  className: "leankylin-link-modify-title"
103904
103905
  }, insertLink.linkSheet), /*#__PURE__*/React__default['default'].createElement("select", {
103905
103906
  className: "leankylin-link-modify-select",
@@ -103980,7 +103981,7 @@
103980
103981
  frozenColumns = (frozen === null || frozen === void 0 ? void 0 : (_frozen$range = frozen.range) === null || _frozen$range === void 0 ? void 0 : _frozen$range.column_focus) || -1;
103981
103982
  frozenRows = (frozen === null || frozen === void 0 ? void 0 : (_frozen$range2 = frozen.range) === null || _frozen$range2 === void 0 ? void 0 : _frozen$range2.row_focus) || -1;
103982
103983
  }
103983
- return filterOptions == null ? (/*#__PURE__*/React__default['default'].createElement("div", null)) : (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, filterOptions.items.map(function (v, i) {
103984
+ return filterOptions == null ? ( /*#__PURE__*/React__default['default'].createElement("div", null)) : ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, filterOptions.items.map(function (v, i) {
103984
103985
  var _refs$globalCache$fre, _refs$globalCache$fre2;
103985
103986
  var filterParam = filter[i];
103986
103987
  var columnOverflowFreezeStyle = fixColumnStyleOverflowInFreeze(context, i + filterOptions.startCol, i + filterOptions.startCol, (_refs$globalCache$fre = refs.globalCache.freezen) === null || _refs$globalCache$fre === void 0 ? void 0 : _refs$globalCache$fre[context.currentSheetId]);
@@ -104028,9 +104029,9 @@
104028
104029
  width: undefined
104029
104030
  }),
104030
104031
  className: "luckysheet-filter-options ".concat(filterParam == null ? "" : "luckysheet-filter-options-active")
104031
- }, filterParam == null ? (/*#__PURE__*/React__default['default'].createElement("div", {
104032
+ }, filterParam == null ? ( /*#__PURE__*/React__default['default'].createElement("div", {
104032
104033
  className: "caret down"
104033
- })) : (/*#__PURE__*/React__default['default'].createElement(SVGIcon, {
104034
+ })) : ( /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
104034
104035
  name: "filter-fill-white",
104035
104036
  style: {
104036
104037
  width: 15,
@@ -104053,7 +104054,7 @@
104053
104054
  }, [context.activeImg, context.insertedImgs]);
104054
104055
  return /*#__PURE__*/React__default['default'].createElement("div", {
104055
104056
  id: "luckysheet-image-showBoxs"
104056
- }, activeImg && (/*#__PURE__*/React__default['default'].createElement("div", {
104057
+ }, activeImg && ( /*#__PURE__*/React__default['default'].createElement("div", {
104057
104058
  id: "luckysheet-modal-dialog-activeImage",
104058
104059
  className: "luckysheet-modal-dialog",
104059
104060
  style: {
@@ -104354,7 +104355,7 @@
104354
104355
  className: "luckysheet-postil-dialog-move-item luckysheet-postil-dialog-move-item-".concat(v),
104355
104356
  "data-type": v
104356
104357
  });
104357
- })), isEditing && (/*#__PURE__*/React__default['default'].createElement("div", {
104358
+ })), isEditing && ( /*#__PURE__*/React__default['default'].createElement("div", {
104358
104359
  className: "luckysheet-postil-dialog-resize"
104359
104360
  }, ["lt", "mt", "lm", "rm", "rt", "lb", "mb", "rb"].map(function (v) {
104360
104361
  return /*#__PURE__*/React__default['default'].createElement("div", {
@@ -104423,7 +104424,7 @@
104423
104424
  var showDialog = React.useCallback(function (content, type) {
104424
104425
  var onOk = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : hideModal;
104425
104426
  var onCancel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : hideModal;
104426
- showModal(/*#__PURE__*/React__default['default'].createElement(Dialog, {
104427
+ showModal( /*#__PURE__*/React__default['default'].createElement(Dialog, {
104427
104428
  type: type,
104428
104429
  onOk: onOk,
104429
104430
  onCancel: onCancel
@@ -104649,7 +104650,7 @@
104649
104650
  value: v,
104650
104651
  key: v
104651
104652
  }, dataVerification[v]);
104652
- })), ((_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__default['default'].createElement("div", {
104653
+ })), ((_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__default['default'].createElement("div", {
104653
104654
  className: "show-box-item"
104654
104655
  }, /*#__PURE__*/React__default['default'].createElement("div", {
104655
104656
  className: "data-verification-range"
@@ -104687,7 +104688,7 @@
104687
104688
  }
104688
104689
  }), /*#__PURE__*/React__default['default'].createElement("label", {
104689
104690
  htmlFor: "mul"
104690
- }, 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__default['default'].createElement("div", {
104691
+ }, 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__default['default'].createElement("div", {
104691
104692
  className: "show-box-item"
104692
104693
  }, /*#__PURE__*/React__default['default'].createElement("div", {
104693
104694
  className: "check-box"
@@ -104715,7 +104716,7 @@
104715
104716
  ctx.dataVerification.dataRegulation.value2 = value;
104716
104717
  });
104717
104718
  }
104718
- })))), (((_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__default['default'].createElement("div", {
104719
+ })))), (((_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__default['default'].createElement("div", {
104719
104720
  className: "show-box-item"
104720
104721
  }, /*#__PURE__*/React__default['default'].createElement("select", {
104721
104722
  className: "data-verification-type-select",
@@ -104733,7 +104734,7 @@
104733
104734
  value: v,
104734
104735
  key: v
104735
104736
  }, dataVerification[v]);
104736
- })), context.dataVerification.dataRegulation.type2 === "between" || context.dataVerification.dataRegulation.type2 === "notBetween" ? (/*#__PURE__*/React__default['default'].createElement("div", {
104737
+ })), context.dataVerification.dataRegulation.type2 === "between" || context.dataVerification.dataRegulation.type2 === "notBetween" ? ( /*#__PURE__*/React__default['default'].createElement("div", {
104737
104738
  className: "input-box"
104738
104739
  }, /*#__PURE__*/React__default['default'].createElement("input", {
104739
104740
  type: "number",
@@ -104755,7 +104756,7 @@
104755
104756
  ctx.dataVerification.dataRegulation.value2 = value;
104756
104757
  });
104757
104758
  }
104758
- }))) : (/*#__PURE__*/React__default['default'].createElement("div", {
104759
+ }))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
104759
104760
  className: "input-box"
104760
104761
  }, /*#__PURE__*/React__default['default'].createElement("input", {
104761
104762
  type: "number",
@@ -104770,7 +104771,7 @@
104770
104771
  ctx.dataVerification.dataRegulation.value1 = value;
104771
104772
  });
104772
104773
  }
104773
- }))))), ((_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__default['default'].createElement("div", {
104774
+ }))))), ((_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__default['default'].createElement("div", {
104774
104775
  className: "show-box-item"
104775
104776
  }, /*#__PURE__*/React__default['default'].createElement("select", {
104776
104777
  className: "data-verification-type-select",
@@ -104803,7 +104804,7 @@
104803
104804
  ctx.dataVerification.dataRegulation.value1 = value;
104804
104805
  });
104805
104806
  }
104806
- })))), ((_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__default['default'].createElement("div", {
104807
+ })))), ((_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__default['default'].createElement("div", {
104807
104808
  className: "show-box-item"
104808
104809
  }, /*#__PURE__*/React__default['default'].createElement("select", {
104809
104810
  className: "data-verification-type-select",
@@ -104821,7 +104822,7 @@
104821
104822
  value: v,
104822
104823
  key: v
104823
104824
  }, dataVerification[v]);
104824
- })), context.dataVerification.dataRegulation.type2 === "between" || context.dataVerification.dataRegulation.type2 === "notBetween" ? (/*#__PURE__*/React__default['default'].createElement("div", {
104825
+ })), context.dataVerification.dataRegulation.type2 === "between" || context.dataVerification.dataRegulation.type2 === "notBetween" ? ( /*#__PURE__*/React__default['default'].createElement("div", {
104825
104826
  className: "input-box"
104826
104827
  }, /*#__PURE__*/React__default['default'].createElement("input", {
104827
104828
  type: "date",
@@ -104843,7 +104844,7 @@
104843
104844
  ctx.dataVerification.dataRegulation.value2 = value;
104844
104845
  });
104845
104846
  }
104846
- }))) : (/*#__PURE__*/React__default['default'].createElement("div", {
104847
+ }))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
104847
104848
  className: "input-box"
104848
104849
  }, /*#__PURE__*/React__default['default'].createElement("input", {
104849
104850
  type: "date",
@@ -104858,7 +104859,7 @@
104858
104859
  ctx.dataVerification.dataRegulation.value1 = value;
104859
104860
  });
104860
104861
  }
104861
- }))))), ((_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__default['default'].createElement("div", {
104862
+ }))))), ((_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__default['default'].createElement("div", {
104862
104863
  className: "show-box-item"
104863
104864
  }, /*#__PURE__*/React__default['default'].createElement("select", {
104864
104865
  className: "data-verification-type-select",
@@ -104902,7 +104903,7 @@
104902
104903
  htmlFor: v,
104903
104904
  key: "label".concat(v)
104904
104905
  }, dataVerification[v]));
104905
- }), ((_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__default['default'].createElement("div", {
104906
+ }), ((_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__default['default'].createElement("div", {
104906
104907
  className: "input-box"
104907
104908
  }, /*#__PURE__*/React__default['default'].createElement("input", {
104908
104909
  type: "text",
@@ -105028,7 +105029,7 @@
105028
105029
  className: "condition-rules-title"
105029
105030
  }, conditionformat["conditionformat_".concat(type)]), /*#__PURE__*/React__default['default'].createElement("div", {
105030
105031
  className: "conditin-rules-value"
105031
- }, conditionformat["conditionformat_".concat(type, "_title")]), (type === "greaterThan" || type === "lessThan" || type === "equal" || type === "textContains") && (/*#__PURE__*/React__default['default'].createElement("div", {
105032
+ }, conditionformat["conditionformat_".concat(type, "_title")]), (type === "greaterThan" || type === "lessThan" || type === "equal" || type === "textContains") && ( /*#__PURE__*/React__default['default'].createElement("div", {
105032
105033
  className: "condition-rules-inpbox"
105033
105034
  }, /*#__PURE__*/React__default['default'].createElement("input", {
105034
105035
  className: "condition-rules-input",
@@ -105040,7 +105041,7 @@
105040
105041
  ctx.conditionRules.rulesValue = value;
105041
105042
  });
105042
105043
  }
105043
- }))), type === "between" && (/*#__PURE__*/React__default['default'].createElement("div", {
105044
+ }))), type === "between" && ( /*#__PURE__*/React__default['default'].createElement("div", {
105044
105045
  className: "condition-rules-between-box"
105045
105046
  }, /*#__PURE__*/React__default['default'].createElement("div", {
105046
105047
  className: "condition-rules-between-inpbox"
@@ -105070,7 +105071,7 @@
105070
105071
  ctx.conditionRules.betweenValue.value2 = value;
105071
105072
  });
105072
105073
  }
105073
- })))), type === "occurrenceDate" && (/*#__PURE__*/React__default['default'].createElement("div", {
105074
+ })))), type === "occurrenceDate" && ( /*#__PURE__*/React__default['default'].createElement("div", {
105074
105075
  className: "condition-rules-inpbox"
105075
105076
  }, /*#__PURE__*/React__default['default'].createElement("input", {
105076
105077
  type: "date",
@@ -105082,7 +105083,7 @@
105082
105083
  ctx.conditionRules.dateValue = value;
105083
105084
  });
105084
105085
  }
105085
- }))), type === "duplicateValue" && (/*#__PURE__*/React__default['default'].createElement("select", {
105086
+ }))), type === "duplicateValue" && ( /*#__PURE__*/React__default['default'].createElement("select", {
105086
105087
  className: "condition-rules-select",
105087
105088
  onChange: function onChange(e) {
105088
105089
  var value = e.target.value;
@@ -105094,7 +105095,7 @@
105094
105095
  value: "0"
105095
105096
  }, conditionformat.duplicateValue), /*#__PURE__*/React__default['default'].createElement("option", {
105096
105097
  value: "1"
105097
- }, conditionformat.uniqueValue))), (type === "top10" || type === "top10_percent" || type === "last10" || type === "last10_percent") && (/*#__PURE__*/React__default['default'].createElement("div", {
105098
+ }, conditionformat.uniqueValue))), (type === "top10" || type === "top10_percent" || type === "last10" || type === "last10_percent") && ( /*#__PURE__*/React__default['default'].createElement("div", {
105098
105099
  className: "condition-rules-project-box"
105099
105100
  }, type === "top10" || type === "top10_percent" ? conditionformat.top : conditionformat.last, /*#__PURE__*/React__default['default'].createElement("input", {
105100
105101
  className: "condition-rules-project-input",
@@ -105201,19 +105202,19 @@
105201
105202
  if (!context.rangeDialog) return;
105202
105203
  var rangeDialogType = context.rangeDialog.type;
105203
105204
  if (rangeDialogType.indexOf("between") >= 0) {
105204
- showDialog(/*#__PURE__*/React__default['default'].createElement(ConditionRules, {
105205
+ showDialog( /*#__PURE__*/React__default['default'].createElement(ConditionRules, {
105205
105206
  type: "between"
105206
105207
  }));
105207
105208
  return;
105208
105209
  }
105209
105210
  if (rangeDialogType.indexOf("conditionRules") >= 0) {
105210
105211
  var rulesType = rangeDialogType.substring("conditionRules".length, rangeDialogType.length);
105211
- showDialog(/*#__PURE__*/React__default['default'].createElement(ConditionRules, {
105212
+ showDialog( /*#__PURE__*/React__default['default'].createElement(ConditionRules, {
105212
105213
  type: rulesType
105213
105214
  }));
105214
105215
  return;
105215
105216
  }
105216
- showDialog(/*#__PURE__*/React__default['default'].createElement(DataVerification, null));
105217
+ showDialog( /*#__PURE__*/React__default['default'].createElement(DataVerification, null));
105217
105218
  }, [context.rangeDialog, setContext, showDialog]);
105218
105219
  React.useEffect(function () {
105219
105220
  setRangeTxt2(function (r) {
@@ -105623,7 +105624,7 @@
105623
105624
  }
105624
105625
  }, /*#__PURE__*/React__default['default'].createElement("div", {
105625
105626
  id: "leankylin-formula-functionrange"
105626
- }), context.formulaRangeSelect && (/*#__PURE__*/React__default['default'].createElement("div", {
105627
+ }), context.formulaRangeSelect && ( /*#__PURE__*/React__default['default'].createElement("div", {
105627
105628
  className: "leankylin-selection-copy leankylin-formula-functionrange-select",
105628
105629
  style: context.formulaRangeSelect
105629
105630
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -105695,7 +105696,7 @@
105695
105696
  onMouseDown: function onMouseDown(e) {
105696
105697
  return e.preventDefault();
105697
105698
  }
105698
- }), ((_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__default['default'].createElement("div", {
105699
+ }), ((_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__default['default'].createElement("div", {
105699
105700
  id: "leankylin-selection-copy"
105700
105701
  }, context.luckysheet_selection_range.map(function (range) {
105701
105702
  var r1 = range.row[0];
@@ -105736,7 +105737,7 @@
105736
105737
  onMouseDown: function onMouseDown(e) {
105737
105738
  return e.preventDefault();
105738
105739
  }
105739
- }), ((_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__default['default'].createElement("div", {
105740
+ }), ((_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__default['default'].createElement("div", {
105740
105741
  id: "luckysheet-cell-selected-boxs"
105741
105742
  }, context.luckysheet_select_save.map(function (selection, index) {
105742
105743
  var _refs$globalCache$fre3, _refs$globalCache$fre4;
@@ -105834,7 +105835,7 @@
105834
105835
  className: "leankylin-presence-username",
105835
105836
  style: usernameStyle
105836
105837
  }, presence.username));
105837
- }), ((_context$linkCard = context.linkCard) === null || _context$linkCard === void 0 ? void 0 : _context$linkCard.sheetId) === context.currentSheetId && (/*#__PURE__*/React__default['default'].createElement(LinkEditCard, _objectSpread2({}, context.linkCard))), ((_context$rangeDialog = context.rangeDialog) === null || _context$rangeDialog === void 0 ? void 0 : _context$rangeDialog.show) && /*#__PURE__*/React__default['default'].createElement(RangeDialog, null), /*#__PURE__*/React__default['default'].createElement(FilterOptions, {
105838
+ }), ((_context$linkCard = context.linkCard) === null || _context$linkCard === void 0 ? void 0 : _context$linkCard.sheetId) === context.currentSheetId && ( /*#__PURE__*/React__default['default'].createElement(LinkEditCard, _objectSpread2({}, context.linkCard))), ((_context$rangeDialog = context.rangeDialog) === null || _context$rangeDialog === void 0 ? void 0 : _context$rangeDialog.show) && /*#__PURE__*/React__default['default'].createElement(RangeDialog, null), /*#__PURE__*/React__default['default'].createElement(FilterOptions, {
105838
105839
  getContainer: function getContainer() {
105839
105840
  return containerRef.current;
105840
105841
  }
@@ -106170,9 +106171,9 @@
106170
106171
  "data-tips": tooltip,
106171
106172
  role: "button",
106172
106173
  style: style
106173
- }, iconId ? (/*#__PURE__*/React__default['default'].createElement(SVGIcon, {
106174
+ }, iconId ? ( /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
106174
106175
  name: iconId
106175
- })) : (/*#__PURE__*/React__default['default'].createElement("span", {
106176
+ })) : ( /*#__PURE__*/React__default['default'].createElement("span", {
106176
106177
  className: "leankylin-toolbar-combo-text"
106177
106178
  }, text))), /*#__PURE__*/React__default['default'].createElement("div", {
106178
106179
  className: "leankylin-toolbar-combo-arrow",
@@ -106187,7 +106188,7 @@
106187
106188
  width: 10
106188
106189
  })), tooltip && /*#__PURE__*/React__default['default'].createElement("div", {
106189
106190
  className: "leankylin-tooltip"
106190
- }, tooltip)), open && (/*#__PURE__*/React__default['default'].createElement("div", {
106191
+ }, tooltip)), open && ( /*#__PURE__*/React__default['default'].createElement("div", {
106191
106192
  ref: popupRef,
106192
106193
  className: "leankylin-toolbar-combo-popup",
106193
106194
  style: popupPosition
@@ -106853,7 +106854,7 @@
106853
106854
  key: v.text,
106854
106855
  onClick: function onClick() {
106855
106856
  setOpen(false);
106856
- showDialog(/*#__PURE__*/React__default['default'].createElement(ConditionRules, {
106857
+ showDialog( /*#__PURE__*/React__default['default'].createElement(ConditionRules, {
106857
106858
  type: v.text
106858
106859
  }));
106859
106860
  }
@@ -106900,7 +106901,7 @@
106900
106901
  key: v.text,
106901
106902
  onClick: function onClick() {
106902
106903
  setOpen(false);
106903
- showDialog(/*#__PURE__*/React__default['default'].createElement(ConditionRules, {
106904
+ showDialog( /*#__PURE__*/React__default['default'].createElement(ConditionRules, {
106904
106905
  type: v.text
106905
106906
  }));
106906
106907
  }
@@ -107665,7 +107666,7 @@
107665
107666
  }, [{
107666
107667
  text: toolbarFormat.moreCurrency,
107667
107668
  onclick: function onclick() {
107668
- showDialog(/*#__PURE__*/React__default['default'].createElement(FormatSearch, {
107669
+ showDialog( /*#__PURE__*/React__default['default'].createElement(FormatSearch, {
107669
107670
  onCancel: hideDialog,
107670
107671
  type: "currency"
107671
107672
  }));
@@ -107861,7 +107862,7 @@
107861
107862
  onClick: function onClick() {
107862
107863
  var imgsrc = handleScreenShot(contextRef.current);
107863
107864
  if (imgsrc) {
107864
- showDialog(/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", null, screenshot.screenshotTipSuccess), /*#__PURE__*/React__default['default'].createElement("img", {
107865
+ showDialog( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", null, screenshot.screenshotTipSuccess), /*#__PURE__*/React__default['default'].createElement("img", {
107865
107866
  src: imgsrc,
107866
107867
  alt: "",
107867
107868
  style: {
@@ -107889,7 +107890,7 @@
107889
107890
  } else if (currentColumn[0] !== currentColumn[1]) {
107890
107891
  showDialog(splitText.tipNoMultiColumn, "ok");
107891
107892
  } else {
107892
- showDialog(/*#__PURE__*/React__default['default'].createElement(SplitColumn, null));
107893
+ showDialog( /*#__PURE__*/React__default['default'].createElement(SplitColumn, null));
107893
107894
  }
107894
107895
  }
107895
107896
  }
@@ -107902,7 +107903,7 @@
107902
107903
  key: name,
107903
107904
  onClick: function onClick() {
107904
107905
  if (context.allowEdit === false) return;
107905
- showDialog(/*#__PURE__*/React__default['default'].createElement(DataVerification, null));
107906
+ showDialog( /*#__PURE__*/React__default['default'].createElement(DataVerification, null));
107906
107907
  }
107907
107908
  });
107908
107909
  }
@@ -107960,7 +107961,7 @@
107960
107961
  range = lodash.assignIn([], context.luckysheet_select_save);
107961
107962
  }
107962
107963
  if (value === "location") {
107963
- showDialog(/*#__PURE__*/React__default['default'].createElement(LocationCondition, null));
107964
+ showDialog( /*#__PURE__*/React__default['default'].createElement(LocationCondition, null));
107964
107965
  } else if (value === "locationFormula") {
107965
107966
  setContext(function (ctx) {
107966
107967
  rangeArr = applyLocation(range, "locationFormula", "all", ctx);
@@ -108181,7 +108182,7 @@
108181
108182
  }), /*#__PURE__*/React__default['default'].createElement(MenuDivider, null), /*#__PURE__*/React__default['default'].createElement(Option, {
108182
108183
  key: "formula",
108183
108184
  onClick: function onClick() {
108184
- showDialog(/*#__PURE__*/React__default['default'].createElement(FormulaSearch$1, {
108185
+ showDialog( /*#__PURE__*/React__default['default'].createElement(FormulaSearch$1, {
108185
108186
  onCancel: hideDialog
108186
108187
  }));
108187
108188
  setOpen(false);
@@ -108294,7 +108295,7 @@
108294
108295
  return /*#__PURE__*/React__default['default'].createElement(Select, null, _items4.map(function (_ref9, ii) {
108295
108296
  var text = _ref9.text,
108296
108297
  value = _ref9.value;
108297
- return value !== "divider" ? (/*#__PURE__*/React__default['default'].createElement(Option, {
108298
+ return value !== "divider" ? ( /*#__PURE__*/React__default['default'].createElement(Option, {
108298
108299
  key: value,
108299
108300
  onClick: function onClick() {
108300
108301
  setContext(function (ctx) {
@@ -108306,7 +108307,7 @@
108306
108307
  className: "leankylin-toolbar-menu-line"
108307
108308
  }, text, /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
108308
108309
  name: value
108309
- })))) : (/*#__PURE__*/React__default['default'].createElement(MenuDivider, {
108310
+ })))) : ( /*#__PURE__*/React__default['default'].createElement(MenuDivider, {
108310
108311
  key: ii
108311
108312
  }));
108312
108313
  }), /*#__PURE__*/React__default['default'].createElement(CustomBorder, {
@@ -108513,7 +108514,7 @@
108513
108514
  iconId = _ref13.iconId,
108514
108515
  value = _ref13.value,
108515
108516
  _onClick2 = _ref13.onClick;
108516
- return value !== "divider" ? (/*#__PURE__*/React__default['default'].createElement(Option, {
108517
+ return value !== "divider" ? ( /*#__PURE__*/React__default['default'].createElement(Option, {
108517
108518
  key: value,
108518
108519
  onClick: function onClick() {
108519
108520
  _onClick2 === null || _onClick2 === void 0 ? void 0 : _onClick2();
@@ -108523,7 +108524,7 @@
108523
108524
  className: "leankylin-toolbar-menu-line"
108524
108525
  }, text, /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
108525
108526
  name: iconId
108526
- })))) : (/*#__PURE__*/React__default['default'].createElement(MenuDivider, {
108527
+ })))) : ( /*#__PURE__*/React__default['default'].createElement(MenuDivider, {
108527
108528
  key: "divider-".concat(index)
108528
108529
  }));
108529
108530
  }));
@@ -108553,11 +108554,11 @@
108553
108554
  icon: n.icon,
108554
108555
  iconName: n.iconName
108555
108556
  }, n.children);
108556
- }), ((_settings$customToolb = settings.customToolbarItems) === null || _settings$customToolb === void 0 ? void 0 : _settings$customToolb.length) > 0 ? (/*#__PURE__*/React__default['default'].createElement(Divider, {
108557
+ }), ((_settings$customToolb = settings.customToolbarItems) === null || _settings$customToolb === void 0 ? void 0 : _settings$customToolb.length) > 0 ? ( /*#__PURE__*/React__default['default'].createElement(Divider, {
108557
108558
  key: "customDivider"
108558
108559
  })) : null, (toolbarWrapIndex === -1 ? settings.toolbarItems : settings.toolbarItems.slice(0, toolbarWrapIndex + 1)).map(function (name, i) {
108559
108560
  return getToolbarItem(name, i);
108560
- }), toolbarWrapIndex !== -1 && toolbarWrapIndex < settings.toolbarItems.length - 1 ? (/*#__PURE__*/React__default['default'].createElement(Button, {
108561
+ }), toolbarWrapIndex !== -1 && toolbarWrapIndex < settings.toolbarItems.length - 1 ? ( /*#__PURE__*/React__default['default'].createElement(Button, {
108561
108562
  iconId: "more",
108562
108563
  tooltip: toolbar.toolMore,
108563
108564
  onClick: function onClick() {
@@ -108851,7 +108852,7 @@
108851
108852
  },
108852
108853
  tabIndex: 0,
108853
108854
  allowEdit: allowEdit
108854
- }), /*#__PURE__*/React__default['default'].createElement(CalcInfo, null), settings === null || settings === void 0 ? void 0 : settings.fxContainer, focused && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(FormulaSearch, {
108855
+ }), /*#__PURE__*/React__default['default'].createElement(CalcInfo, null), settings === null || settings === void 0 ? void 0 : settings.fxContainer, focused && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(FormulaSearch, {
108855
108856
  style: {
108856
108857
  top: inputContainerRef.current.clientHeight
108857
108858
  }
@@ -109078,7 +109079,7 @@
109078
109079
  style: {
109079
109080
  fill: svgColor
109080
109081
  }
109081
- })), !!sheet.color && (/*#__PURE__*/React__default['default'].createElement("div", {
109082
+ })), !!sheet.color && ( /*#__PURE__*/React__default['default'].createElement("div", {
109082
109083
  className: "luckysheet-sheets-item-color",
109083
109084
  style: {
109084
109085
  background: sheet.color
@@ -109161,7 +109162,7 @@
109161
109162
  onClick: function onClick() {
109162
109163
  return setRadioMenuOpen(true);
109163
109164
  }
109164
- }, (context.zoomRatio * 100).toFixed(0), "%"), radioMenuOpen && (/*#__PURE__*/React__default['default'].createElement("div", {
109165
+ }, (context.zoomRatio * 100).toFixed(0), "%"), radioMenuOpen && ( /*#__PURE__*/React__default['default'].createElement("div", {
109165
109166
  className: "leankylin-zoom-ratio-menu",
109166
109167
  ref: menuRef
109167
109168
  }, presets.map(function (v) {
@@ -109245,14 +109246,14 @@
109245
109246
  id: "luckysheet-sheet-area"
109246
109247
  }, /*#__PURE__*/React__default['default'].createElement("div", {
109247
109248
  id: "luckysheet-sheet-content"
109248
- }, context.allowEdit && (/*#__PURE__*/React__default['default'].createElement("div", {
109249
+ }, context.allowEdit && ( /*#__PURE__*/React__default['default'].createElement("div", {
109249
109250
  className: "leankylin-sheettab-button",
109250
109251
  onClick: onAddSheetClick
109251
109252
  }, /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
109252
109253
  name: "plus",
109253
109254
  width: 16,
109254
109255
  height: 16
109255
- }))), context.allowEdit && (/*#__PURE__*/React__default['default'].createElement("div", {
109256
+ }))), context.allowEdit && ( /*#__PURE__*/React__default['default'].createElement("div", {
109256
109257
  className: "sheet-list-container"
109257
109258
  }, /*#__PURE__*/React__default['default'].createElement("div", {
109258
109259
  id: "all-sheets",
@@ -109290,9 +109291,9 @@
109290
109291
  key: sheet.id,
109291
109292
  sheet: sheet
109292
109293
  });
109293
- })), isShowBoundary && isShowScrollBtn && (/*#__PURE__*/React__default['default'].createElement("div", {
109294
+ })), isShowBoundary && isShowScrollBtn && ( /*#__PURE__*/React__default['default'].createElement("div", {
109294
109295
  className: "boundary boundary-right"
109295
- }))), isShowScrollBtn && (/*#__PURE__*/React__default['default'].createElement("div", {
109296
+ }))), isShowScrollBtn && ( /*#__PURE__*/React__default['default'].createElement("div", {
109296
109297
  id: "leankylin-sheettab-leftscroll",
109297
109298
  className: "leankylin-sheettab-scroll",
109298
109299
  ref: leftScrollRef,
@@ -109303,7 +109304,7 @@
109303
109304
  name: "arrow-doubleleft",
109304
109305
  width: 12,
109305
109306
  height: 12
109306
- }))), isShowScrollBtn && (/*#__PURE__*/React__default['default'].createElement("div", {
109307
+ }))), isShowScrollBtn && ( /*#__PURE__*/React__default['default'].createElement("div", {
109307
109308
  id: "leankylin-sheettab-rightscroll",
109308
109309
  className: "leankylin-sheettab-scroll",
109309
109310
  ref: rightScrollRef,
@@ -109513,7 +109514,7 @@
109513
109514
  onClick: function onClick(e) {
109514
109515
  e.stopPropagation();
109515
109516
  e.preventDefault();
109516
- var pasteEvent = new Event('paste', {
109517
+ var pasteEvent = new Event("paste", {
109517
109518
  bubbles: true,
109518
109519
  cancelable: true
109519
109520
  });
@@ -109554,7 +109555,7 @@
109554
109555
  insertRowColOp: insertRowColOp
109555
109556
  });
109556
109557
  }
109557
- }, /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, lodash.startsWith((_context$lang = context.lang) !== null && _context$lang !== void 0 ? _context$lang : "", "zh") && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, rightclick.to, /*#__PURE__*/React__default['default'].createElement("span", {
109558
+ }, /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, lodash.startsWith((_context$lang = context.lang) !== null && _context$lang !== void 0 ? _context$lang : "", "zh") && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, rightclick.to, /*#__PURE__*/React__default['default'].createElement("span", {
109558
109559
  className: "luckysheet-cols-rows-shift-".concat(dir)
109559
109560
  }, rightclick[dir]))), "".concat(rightclick.insert, " "), /*#__PURE__*/React__default['default'].createElement("input", {
109560
109561
  onClick: function onClick(e) {
@@ -109569,7 +109570,7 @@
109569
109570
  defaultValue: "1"
109570
109571
  }), /*#__PURE__*/React__default['default'].createElement("span", {
109571
109572
  className: "luckysheet-cols-rows-shift-word luckysheet-mousedown-cancel"
109572
- }, "".concat(rightclick.column, " ")), !lodash.startsWith((_context$lang2 = context.lang) !== null && _context$lang2 !== void 0 ? _context$lang2 : "", "zh") && (/*#__PURE__*/React__default['default'].createElement("span", {
109573
+ }, "".concat(rightclick.column, " ")), !lodash.startsWith((_context$lang2 = context.lang) !== null && _context$lang2 !== void 0 ? _context$lang2 : "", "zh") && ( /*#__PURE__*/React__default['default'].createElement("span", {
109573
109574
  className: "luckysheet-cols-rows-shift-".concat(dir)
109574
109575
  }, rightclick[dir]))));
109575
109576
  });
@@ -109607,7 +109608,7 @@
109607
109608
  insertRowColOp: insertRowColOp
109608
109609
  });
109609
109610
  }
109610
- }, /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, lodash.startsWith((_context$lang3 = context.lang) !== null && _context$lang3 !== void 0 ? _context$lang3 : "", "zh") && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, rightclick.to, /*#__PURE__*/React__default['default'].createElement("span", {
109611
+ }, /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, lodash.startsWith((_context$lang3 = context.lang) !== null && _context$lang3 !== void 0 ? _context$lang3 : "", "zh") && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, rightclick.to, /*#__PURE__*/React__default['default'].createElement("span", {
109611
109612
  className: "luckysheet-cols-rows-shift-".concat(dir)
109612
109613
  }, rightclick[dir]))), "".concat(rightclick.insert, " "), /*#__PURE__*/React__default['default'].createElement("input", {
109613
109614
  onClick: function onClick(e) {
@@ -109622,13 +109623,13 @@
109622
109623
  defaultValue: "1"
109623
109624
  }), /*#__PURE__*/React__default['default'].createElement("span", {
109624
109625
  className: "luckysheet-cols-rows-shift-word luckysheet-mousedown-cancel"
109625
- }, "".concat(rightclick.row, " ")), !lodash.startsWith((_context$lang4 = context.lang) !== null && _context$lang4 !== void 0 ? _context$lang4 : "", "zh") && (/*#__PURE__*/React__default['default'].createElement("span", {
109626
+ }, "".concat(rightclick.row, " ")), !lodash.startsWith((_context$lang4 = context.lang) !== null && _context$lang4 !== void 0 ? _context$lang4 : "", "zh") && ( /*#__PURE__*/React__default['default'].createElement("span", {
109626
109627
  className: "luckysheet-cols-rows-shift-".concat(dir)
109627
109628
  }, rightclick[dir]))));
109628
109629
  });
109629
109630
  }
109630
109631
  if (name === "delete-column") {
109631
- return (selection === null || selection === void 0 ? void 0 : selection.column_select) && (/*#__PURE__*/React__default['default'].createElement(Menu, {
109632
+ return (selection === null || selection === void 0 ? void 0 : selection.column_select) && ( /*#__PURE__*/React__default['default'].createElement(Menu, {
109632
109633
  key: "delete-col",
109633
109634
  onClick: function onClick() {
109634
109635
  if (!selection) return;
@@ -109671,7 +109672,7 @@
109671
109672
  }, rightclick.deleteSelected, rightclick.column));
109672
109673
  }
109673
109674
  if (name === "delete-row") {
109674
- return (selection === null || selection === void 0 ? void 0 : selection.row_select) && (/*#__PURE__*/React__default['default'].createElement(Menu, {
109675
+ return (selection === null || selection === void 0 ? void 0 : selection.row_select) && ( /*#__PURE__*/React__default['default'].createElement(Menu, {
109675
109676
  key: "delete-row",
109676
109677
  onClick: function onClick() {
109677
109678
  if (!selection) return;
@@ -109762,7 +109763,7 @@
109762
109763
  })) ? "" : rowHeight;
109763
109764
  return ((_context$luckysheet_s9 = context.luckysheet_select_save) === null || _context$luckysheet_s9 === void 0 ? void 0 : _context$luckysheet_s9.some(function (section) {
109764
109765
  return section.row_select;
109765
- })) ? (/*#__PURE__*/React__default['default'].createElement(Menu, {
109766
+ })) ? ( /*#__PURE__*/React__default['default'].createElement(Menu, {
109766
109767
  key: "set-row-height",
109767
109768
  onClick: function onClick(e, container) {
109768
109769
  var _container$querySelec2;
@@ -109810,7 +109811,7 @@
109810
109811
  })) ? "" : colWidth;
109811
109812
  return ((_context$luckysheet_s11 = context.luckysheet_select_save) === null || _context$luckysheet_s11 === void 0 ? void 0 : _context$luckysheet_s11.some(function (section) {
109812
109813
  return section.column_select;
109813
- })) ? (/*#__PURE__*/React__default['default'].createElement(Menu, {
109814
+ })) ? ( /*#__PURE__*/React__default['default'].createElement(Menu, {
109814
109815
  key: "set-column-width",
109815
109816
  onClick: function onClick(e, container) {
109816
109817
  var _container$querySelec3;
@@ -109902,7 +109903,7 @@
109902
109903
  key: name,
109903
109904
  onClick: function onClick() {
109904
109905
  setContext(function (draftCtx) {
109905
- showDialog(/*#__PURE__*/React__default['default'].createElement(CustomSort, null));
109906
+ showDialog( /*#__PURE__*/React__default['default'].createElement(CustomSort, null));
109906
109907
  draftCtx.contextMenu = {};
109907
109908
  });
109908
109909
  }
@@ -109980,7 +109981,7 @@
109980
109981
  }
109981
109982
  }, [contextMenu.x, contextMenu.y, setContext]);
109982
109983
  var renderCustom = function renderCustom() {
109983
- return settings.cellCustomContextMenu().map(function (item) {
109984
+ return settings.cellCustomContextMenu(context.luckysheet_select_save).map(function (item) {
109984
109985
  return /*#__PURE__*/React__default['default'].createElement(Menu, {
109985
109986
  key: item.key,
109986
109987
  onClick: function onClick() {
@@ -111657,7 +111658,7 @@
111657
111658
  }, /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
111658
111659
  name: "rightArrow",
111659
111660
  width: 18
111660
- })), isShowChangeColor && context.allowEdit && (/*#__PURE__*/React__default['default'].createElement(ChangeColor, {
111661
+ })), isShowChangeColor && context.allowEdit && ( /*#__PURE__*/React__default['default'].createElement(ChangeColor, {
111661
111662
  triggerParentUpdate: updateShowInputColor
111662
111663
  })));
111663
111664
  }
@@ -111964,7 +111965,7 @@
111964
111965
  var checked = React.useMemo(function () {
111965
111966
  return isChecked(item.key);
111966
111967
  }, [isChecked, item.key]);
111967
- return isItemVisible(item) ? (/*#__PURE__*/React__default['default'].createElement("div", {
111968
+ return isItemVisible(item) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
111968
111969
  className: "select-item"
111969
111970
  }, /*#__PURE__*/React__default['default'].createElement("input", {
111970
111971
  className: "filter-checkbox",
@@ -111977,7 +111978,7 @@
111977
111978
  className: "count"
111978
111979
  }, "( ".concat(item.rows.length, " )")))) : null;
111979
111980
  };
111980
- var _DateSelectTreeItem = function DateSelectTreeItem(_ref2) {
111981
+ var DateSelectTreeItem = function DateSelectTreeItem(_ref2) {
111981
111982
  var item = _ref2.item,
111982
111983
  _ref2$depth = _ref2.depth,
111983
111984
  depth = _ref2$depth === void 0 ? 0 : _ref2$depth,
@@ -111993,7 +111994,7 @@
111993
111994
  var checked = React.useMemo(function () {
111994
111995
  return isChecked(item.key);
111995
111996
  }, [isChecked, item.key]);
111996
- return isItemVisible(item) ? (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
111997
+ return isItemVisible(item) ? ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
111997
111998
  className: "select-item",
111998
111999
  style: {
111999
112000
  marginLeft: -2 + depth * 20
@@ -112002,11 +112003,11 @@
112002
112003
  onExpand === null || onExpand === void 0 ? void 0 : onExpand(item.key, !expand);
112003
112004
  setExpand(!expand);
112004
112005
  }
112005
- }, lodash.isEmpty(item.children) ? (/*#__PURE__*/React__default['default'].createElement("div", {
112006
+ }, lodash.isEmpty(item.children) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
112006
112007
  style: {
112007
112008
  width: 10
112008
112009
  }
112009
- })) : (/*#__PURE__*/React__default['default'].createElement("div", {
112010
+ })) : ( /*#__PURE__*/React__default['default'].createElement("div", {
112010
112011
  className: "filter-caret ".concat(expand ? "down" : "right"),
112011
112012
  style: {
112012
112013
  cursor: "pointer"
@@ -112024,7 +112025,7 @@
112024
112025
  }), /*#__PURE__*/React__default['default'].createElement("div", null, item.text), /*#__PURE__*/React__default['default'].createElement("span", {
112025
112026
  className: "count"
112026
112027
  }, "( ".concat(item.rows.length, " )"))), expand && item.children.map(function (v) {
112027
- return /*#__PURE__*/React__default['default'].createElement(_DateSelectTreeItem, _objectSpread2({
112028
+ return /*#__PURE__*/React__default['default'].createElement(DateSelectTreeItem, _objectSpread2({
112028
112029
  key: v.key,
112029
112030
  item: v,
112030
112031
  depth: depth + 1
@@ -112045,7 +112046,7 @@
112045
112046
  onChange = _ref3.onChange,
112046
112047
  isItemVisible = _ref3.isItemVisible;
112047
112048
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, dates.map(function (v) {
112048
- return /*#__PURE__*/React__default['default'].createElement(_DateSelectTreeItem, _objectSpread2({
112049
+ return /*#__PURE__*/React__default['default'].createElement(DateSelectTreeItem, _objectSpread2({
112049
112050
  key: v.key,
112050
112051
  item: v
112051
112052
  }, {
@@ -112198,7 +112199,7 @@
112198
112199
  });
112199
112200
  }, [col, setContext, startRow, startCol, endRow, endCol, showAlert]);
112200
112201
  var renderColorList = React.useCallback(function (key, title, colors, onSelectChange) {
112201
- return colors.length > 1 ? (/*#__PURE__*/React__default['default'].createElement("div", {
112202
+ return colors.length > 1 ? ( /*#__PURE__*/React__default['default'].createElement("div", {
112202
112203
  key: key
112203
112204
  }, /*#__PURE__*/React__default['default'].createElement("div", {
112204
112205
  className: "title"
@@ -112504,7 +112505,7 @@
112504
112505
  clearFilter(draftCtx);
112505
112506
  });
112506
112507
  }
112507
- }, filter.clearFilter))), showSubMenu && (/*#__PURE__*/React__default['default'].createElement("div", {
112508
+ }, filter.clearFilter))), showSubMenu && ( /*#__PURE__*/React__default['default'].createElement("div", {
112508
112509
  ref: subMenuRef,
112509
112510
  className: "luckysheet-filter-bycolor-submenu",
112510
112511
  style: subMenuPos,
@@ -112515,9 +112516,9 @@
112515
112516
  mouseHoverSubMenu.current = false;
112516
112517
  setShowSubMenu(false);
112517
112518
  }
112518
- }, filterColors.bgColors.length < 2 && filterColors.fcColors.length < 2 ? (/*#__PURE__*/React__default['default'].createElement("div", {
112519
+ }, filterColors.bgColors.length < 2 && filterColors.fcColors.length < 2 ? ( /*#__PURE__*/React__default['default'].createElement("div", {
112519
112520
  className: "one-color-tip"
112520
- }, filter.filterContainerOneColorTip)) : (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, [{
112521
+ }, filter.filterContainerOneColorTip)) : ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, [{
112521
112522
  key: "bgColors",
112522
112523
  title: filter.filiterByColorTip,
112523
112524
  colors: filterColors.bgColors
@@ -112566,7 +112567,7 @@
112566
112567
  showSheet();
112567
112568
  },
112568
112569
  className: "leankylin-sheet-hidden-button"
112569
- }, (sheet === null || sheet === void 0 ? void 0 : sheet.hide) === 1 ? (/*#__PURE__*/React__default['default'].createElement(SVGIcon, {
112570
+ }, (sheet === null || sheet === void 0 ? void 0 : sheet.hide) === 1 ? ( /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
112570
112571
  name: "hidden",
112571
112572
  width: 16,
112572
112573
  height: 16,
@@ -112624,7 +112625,7 @@
112624
112625
  }
112625
112626
  }, /*#__PURE__*/React__default['default'].createElement("span", {
112626
112627
  className: "leankylin-sheet-selected-check-sapce"
112627
- }, sheet.id === context.currentSheetId && (/*#__PURE__*/React__default['default'].createElement(SVGIcon, {
112628
+ }, sheet.id === context.currentSheetId && ( /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
112628
112629
  name: "check",
112629
112630
  width: 16,
112630
112631
  height: 16,
@@ -112635,7 +112636,7 @@
112635
112636
  }))), /*#__PURE__*/React__default['default'].createElement("span", {
112636
112637
  className: "luckysheet-sheets-item-name leankylin-sheet-list-item-name",
112637
112638
  spellCheck: "false"
112638
- }, !!sheet.color && (/*#__PURE__*/React__default['default'].createElement("div", {
112639
+ }, !!sheet.color && ( /*#__PURE__*/React__default['default'].createElement("div", {
112639
112640
  className: "luckysheet-sheets-list-item-color",
112640
112641
  style: {
112641
112642
  background: sheet.color
@@ -113126,14 +113127,14 @@
113126
113127
  onKeyDown: onKeyDown
113127
113128
  }, /*#__PURE__*/React__default['default'].createElement(SVGDefines, null), /*#__PURE__*/React__default['default'].createElement("div", {
113128
113129
  className: "leankylin-workarea"
113129
- }, mergedSettings.showToolbar && (/*#__PURE__*/React__default['default'].createElement(Toolbar, {
113130
+ }, mergedSettings.showToolbar && ( /*#__PURE__*/React__default['default'].createElement(Toolbar, {
113130
113131
  moreItemsOpen: moreToolbarItems !== null,
113131
113132
  setMoreItems: setMoreToolbarItems
113132
113133
  })), mergedSettings.showFormulaBar && /*#__PURE__*/React__default['default'].createElement(FxEditor, null)), /*#__PURE__*/React__default['default'].createElement(Sheet, {
113133
113134
  sheet: sheet
113134
- }), mergedSettings.showSheetTabs && /*#__PURE__*/React__default['default'].createElement(SheetTab, null), /*#__PURE__*/React__default['default'].createElement(ContextMenu, null), /*#__PURE__*/React__default['default'].createElement(FilterMenu, null), /*#__PURE__*/React__default['default'].createElement(SheetTabContextMenu, null), context.showSheetList && /*#__PURE__*/React__default['default'].createElement(SheetList, null), moreToolbarItems && (/*#__PURE__*/React__default['default'].createElement(MoreItemsContaier, {
113135
+ }), mergedSettings.showSheetTabs && /*#__PURE__*/React__default['default'].createElement(SheetTab, null), /*#__PURE__*/React__default['default'].createElement(ContextMenu, null), /*#__PURE__*/React__default['default'].createElement(FilterMenu, null), /*#__PURE__*/React__default['default'].createElement(SheetTabContextMenu, null), context.showSheetList && /*#__PURE__*/React__default['default'].createElement(SheetList, null), moreToolbarItems && ( /*#__PURE__*/React__default['default'].createElement(MoreItemsContaier, {
113135
113136
  onClose: onMoreToolbarItemsClose
113136
- }, moreToolbarItems)), !lodash.isEmpty(context.contextMenu) && (/*#__PURE__*/React__default['default'].createElement("div", {
113137
+ }, moreToolbarItems)), !lodash.isEmpty(context.contextMenu) && ( /*#__PURE__*/React__default['default'].createElement("div", {
113137
113138
  onMouseDown: function onMouseDown() {
113138
113139
  setContextWithProduce(function (draftCtx) {
113139
113140
  draftCtx.contextMenu = {};