@leankylin-sheet/react 2.0.21 → 2.0.22
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 +133 -138
- package/dist/index.umd.min.js +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -18479,7 +18479,7 @@
|
|
|
18479
18479
|
}
|
|
18480
18480
|
|
|
18481
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); }
|
|
18482
|
-
function _defineProperty$1(
|
|
18482
|
+
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; }
|
|
18483
18483
|
function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18484
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); }
|
|
18485
18485
|
var ERROR = 'ERROR';
|
|
@@ -32422,12 +32422,12 @@
|
|
|
32422
32422
|
}
|
|
32423
32423
|
func$c.SYMBOL = SYMBOL$c;
|
|
32424
32424
|
|
|
32425
|
-
function _toConsumableArray$1(
|
|
32425
|
+
function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
|
|
32426
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."); }
|
|
32427
|
-
function _unsupportedIterableToArray$1(
|
|
32428
|
-
function _iterableToArray$1(
|
|
32429
|
-
function _arrayWithoutHoles$1(
|
|
32430
|
-
function _arrayLikeToArray$1(
|
|
32427
|
+
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); }
|
|
32428
|
+
function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
32429
|
+
function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
|
|
32430
|
+
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; }
|
|
32431
32431
|
var availableOperators = Object.create(null);
|
|
32432
32432
|
|
|
32433
32433
|
/**
|
|
@@ -33976,12 +33976,12 @@
|
|
|
33976
33976
|
return string;
|
|
33977
33977
|
}
|
|
33978
33978
|
|
|
33979
|
-
function _slicedToArray$1(
|
|
33979
|
+
function _slicedToArray$1(arr, i) { return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$1(); }
|
|
33980
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."); }
|
|
33981
|
-
function _unsupportedIterableToArray$2(
|
|
33982
|
-
function _arrayLikeToArray$2(
|
|
33981
|
+
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); }
|
|
33982
|
+
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; }
|
|
33983
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; } }
|
|
33984
|
-
function _arrayWithHoles$1(
|
|
33984
|
+
function _arrayWithHoles$1(arr) { if (Array.isArray(arr)) return arr; }
|
|
33985
33985
|
/**
|
|
33986
33986
|
* Convert row label to index.
|
|
33987
33987
|
*
|
|
@@ -34095,24 +34095,24 @@
|
|
|
34095
34095
|
}
|
|
34096
34096
|
|
|
34097
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); }
|
|
34098
|
-
function _slicedToArray$2(
|
|
34098
|
+
function _slicedToArray$2(arr, i) { return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$2(); }
|
|
34099
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."); }
|
|
34100
|
-
function _unsupportedIterableToArray$3(
|
|
34101
|
-
function _arrayLikeToArray$3(
|
|
34100
|
+
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); }
|
|
34101
|
+
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; }
|
|
34102
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; } }
|
|
34103
|
-
function _arrayWithHoles$2(
|
|
34104
|
-
function _classCallCheck(
|
|
34105
|
-
function _defineProperties(
|
|
34106
|
-
function _createClass(
|
|
34103
|
+
function _arrayWithHoles$2(arr) { if (Array.isArray(arr)) return arr; }
|
|
34104
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
34105
|
+
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); } }
|
|
34106
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
34107
34107
|
function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$1(i) ? i : i + ""; }
|
|
34108
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); }
|
|
34109
34109
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
34110
|
-
function _possibleConstructorReturn(
|
|
34111
|
-
function _assertThisInitialized(
|
|
34110
|
+
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); }
|
|
34111
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
34112
34112
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
34113
|
-
function _getPrototypeOf(
|
|
34114
|
-
function _inherits(
|
|
34115
|
-
function _setPrototypeOf(
|
|
34113
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
34114
|
+
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); }
|
|
34115
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
34116
34116
|
|
|
34117
34117
|
/**
|
|
34118
34118
|
* @class Parser
|
|
@@ -34458,67 +34458,6 @@
|
|
|
34458
34458
|
return stringify(rnds);
|
|
34459
34459
|
}
|
|
34460
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
|
-
}
|
|
34522
34461
|
function _iterableToArrayLimit$3(r, l) {
|
|
34523
34462
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
34524
34463
|
if (null != t) {
|
|
@@ -34546,12 +34485,6 @@
|
|
|
34546
34485
|
return a;
|
|
34547
34486
|
}
|
|
34548
34487
|
}
|
|
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
|
-
}
|
|
34555
34488
|
function ownKeys$1(e, r) {
|
|
34556
34489
|
var t = Object.keys(e);
|
|
34557
34490
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -34874,12 +34807,6 @@
|
|
|
34874
34807
|
}
|
|
34875
34808
|
}, e;
|
|
34876
34809
|
}
|
|
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
|
-
}
|
|
34883
34810
|
function _toPrimitive$3(t, r) {
|
|
34884
34811
|
if ("object" != typeof t || !t) return t;
|
|
34885
34812
|
var e = t[Symbol.toPrimitive];
|
|
@@ -34903,12 +34830,105 @@
|
|
|
34903
34830
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
34904
34831
|
}, _typeof$2(o);
|
|
34905
34832
|
}
|
|
34906
|
-
function
|
|
34907
|
-
|
|
34908
|
-
|
|
34909
|
-
var
|
|
34910
|
-
|
|
34833
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
34834
|
+
try {
|
|
34835
|
+
var info = gen[key](arg);
|
|
34836
|
+
var value = info.value;
|
|
34837
|
+
} catch (error) {
|
|
34838
|
+
reject(error);
|
|
34839
|
+
return;
|
|
34840
|
+
}
|
|
34841
|
+
if (info.done) {
|
|
34842
|
+
resolve(value);
|
|
34843
|
+
} else {
|
|
34844
|
+
Promise.resolve(value).then(_next, _throw);
|
|
34845
|
+
}
|
|
34846
|
+
}
|
|
34847
|
+
function _asyncToGenerator(fn) {
|
|
34848
|
+
return function () {
|
|
34849
|
+
var self = this,
|
|
34850
|
+
args = arguments;
|
|
34851
|
+
return new Promise(function (resolve, reject) {
|
|
34852
|
+
var gen = fn.apply(self, args);
|
|
34853
|
+
function _next(value) {
|
|
34854
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
34855
|
+
}
|
|
34856
|
+
function _throw(err) {
|
|
34857
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
34858
|
+
}
|
|
34859
|
+
_next(undefined);
|
|
34860
|
+
});
|
|
34861
|
+
};
|
|
34862
|
+
}
|
|
34863
|
+
function _classCallCheck$1(instance, Constructor) {
|
|
34864
|
+
if (!(instance instanceof Constructor)) {
|
|
34865
|
+
throw new TypeError("Cannot call a class as a function");
|
|
34866
|
+
}
|
|
34867
|
+
}
|
|
34868
|
+
function _defineProperties$1(target, props) {
|
|
34869
|
+
for (var i = 0; i < props.length; i++) {
|
|
34870
|
+
var descriptor = props[i];
|
|
34871
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
34872
|
+
descriptor.configurable = true;
|
|
34873
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
34874
|
+
Object.defineProperty(target, _toPropertyKey$3(descriptor.key), descriptor);
|
|
34875
|
+
}
|
|
34876
|
+
}
|
|
34877
|
+
function _createClass$1(Constructor, protoProps, staticProps) {
|
|
34878
|
+
if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
|
|
34879
|
+
if (staticProps) _defineProperties$1(Constructor, staticProps);
|
|
34880
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
34881
|
+
writable: false
|
|
34882
|
+
});
|
|
34883
|
+
return Constructor;
|
|
34884
|
+
}
|
|
34885
|
+
function _defineProperty$2(obj, key, value) {
|
|
34886
|
+
key = _toPropertyKey$3(key);
|
|
34887
|
+
if (key in obj) {
|
|
34888
|
+
Object.defineProperty(obj, key, {
|
|
34889
|
+
value: value,
|
|
34890
|
+
enumerable: true,
|
|
34891
|
+
configurable: true,
|
|
34892
|
+
writable: true
|
|
34893
|
+
});
|
|
34894
|
+
} else {
|
|
34895
|
+
obj[key] = value;
|
|
34911
34896
|
}
|
|
34897
|
+
return obj;
|
|
34898
|
+
}
|
|
34899
|
+
function _slicedToArray$3(arr, i) {
|
|
34900
|
+
return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i) || _unsupportedIterableToArray$4(arr, i) || _nonIterableRest$3();
|
|
34901
|
+
}
|
|
34902
|
+
function _toConsumableArray$2(arr) {
|
|
34903
|
+
return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$4(arr) || _nonIterableSpread$2();
|
|
34904
|
+
}
|
|
34905
|
+
function _arrayWithoutHoles$2(arr) {
|
|
34906
|
+
if (Array.isArray(arr)) return _arrayLikeToArray$4(arr);
|
|
34907
|
+
}
|
|
34908
|
+
function _arrayWithHoles$3(arr) {
|
|
34909
|
+
if (Array.isArray(arr)) return arr;
|
|
34910
|
+
}
|
|
34911
|
+
function _iterableToArray$2(iter) {
|
|
34912
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34913
|
+
}
|
|
34914
|
+
function _unsupportedIterableToArray$4(o, minLen) {
|
|
34915
|
+
if (!o) return;
|
|
34916
|
+
if (typeof o === "string") return _arrayLikeToArray$4(o, minLen);
|
|
34917
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34918
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34919
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34920
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen);
|
|
34921
|
+
}
|
|
34922
|
+
function _arrayLikeToArray$4(arr, len) {
|
|
34923
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
34924
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
34925
|
+
return arr2;
|
|
34926
|
+
}
|
|
34927
|
+
function _nonIterableSpread$2() {
|
|
34928
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34929
|
+
}
|
|
34930
|
+
function _nonIterableRest$3() {
|
|
34931
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34912
34932
|
}
|
|
34913
34933
|
|
|
34914
34934
|
var en = {
|
|
@@ -78759,7 +78779,7 @@
|
|
|
78759
78779
|
function split_fmt(fmt) {
|
|
78760
78780
|
var out = [];
|
|
78761
78781
|
var in_str = false; /*, cc*/
|
|
78762
|
-
for (var i = 0, j = 0; i < fmt.length; ++i) switch (/*cc=*/fmt.charCodeAt(i)) {
|
|
78782
|
+
for (var i = 0, j = 0; i < fmt.length; ++i) switch ( /*cc=*/fmt.charCodeAt(i)) {
|
|
78763
78783
|
case 34:
|
|
78764
78784
|
/* '"' */in_str = !in_str;
|
|
78765
78785
|
break;
|
|
@@ -79363,6 +79383,10 @@
|
|
|
79363
79383
|
var precision = fmt.replace('leanky_n', '');
|
|
79364
79384
|
return numberThousands(v, ',', precision);
|
|
79365
79385
|
}
|
|
79386
|
+
if (fmt === null || fmt === void 0 ? void 0 : fmt.includes('leanky_p')) {
|
|
79387
|
+
var _precision = fmt.replace('leanky_p', '');
|
|
79388
|
+
return numberThousands(v * 100, ',', _precision) + '%';
|
|
79389
|
+
}
|
|
79366
79390
|
if (o == null) o = {};
|
|
79367
79391
|
var sfmt = "";
|
|
79368
79392
|
switch (_typeof$2(fmt)) {
|
|
@@ -79540,6 +79564,9 @@
|
|
|
79540
79564
|
var groupSeparator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ',';
|
|
79541
79565
|
var precision = arguments.length > 2 ? arguments[2] : undefined;
|
|
79542
79566
|
var number = Number(num).toFixed(precision);
|
|
79567
|
+
if (isNaN(number)) {
|
|
79568
|
+
return '';
|
|
79569
|
+
}
|
|
79543
79570
|
var _String$split = String(number).split('.'),
|
|
79544
79571
|
_String$split2 = _slicedToArray$3(_String$split, 2),
|
|
79545
79572
|
init = _String$split2[0],
|
|
@@ -79832,42 +79859,8 @@
|
|
|
79832
79859
|
function is_date(fmt, v) {
|
|
79833
79860
|
return SSF.is_date(fmt, v);
|
|
79834
79861
|
}
|
|
79835
|
-
function fuzzynum(s) {
|
|
79836
|
-
var v = Number(s);
|
|
79837
|
-
if (typeof s === "number") {
|
|
79838
|
-
return s;
|
|
79839
|
-
}
|
|
79840
|
-
if (!Number.isNaN(v)) return v;
|
|
79841
|
-
var wt = 1;
|
|
79842
|
-
var ss = s.replace(/([\d]),([\d])/g, "$1$2").replace(/[$]/g, "").replace(/[%]/g, function () {
|
|
79843
|
-
wt *= 100;
|
|
79844
|
-
return "";
|
|
79845
|
-
});
|
|
79846
|
-
v = Number(ss);
|
|
79847
|
-
if (!Number.isNaN(v)) return v / wt;
|
|
79848
|
-
ss = ss.replace(/[(](.*)[)]/, function ($$, $1) {
|
|
79849
|
-
wt = -wt;
|
|
79850
|
-
return $1;
|
|
79851
|
-
});
|
|
79852
|
-
v = Number(ss);
|
|
79853
|
-
if (!Number.isNaN(v)) return v / wt;
|
|
79854
|
-
return v;
|
|
79855
|
-
}
|
|
79856
79862
|
function valueShowEs(r, c, d) {
|
|
79857
|
-
|
|
79858
|
-
if (value == null) {
|
|
79859
|
-
value = getCellValue(r, c, d, "v");
|
|
79860
|
-
} else {
|
|
79861
|
-
var _d$r, _d$r$c, _d$r$c$ct, _d$r2, _d$r2$c, _d$r2$c$ct;
|
|
79862
|
-
if (!Number.isNaN(fuzzynum(value))) {
|
|
79863
|
-
if (lodash.isString(value) && value.indexOf("%") > -1) ; else {
|
|
79864
|
-
value = getCellValue(r, c, d, "v");
|
|
79865
|
-
}
|
|
79866
|
-
} else if (((_d$r = d[r]) === null || _d$r === void 0 ? void 0 : (_d$r$c = _d$r[c]) === null || _d$r$c === void 0 ? void 0 : (_d$r$c$ct = _d$r$c.ct) === null || _d$r$c$ct === void 0 ? void 0 : _d$r$c$ct.t) === "d") ; else if (((_d$r2 = d[r]) === null || _d$r2 === void 0 ? void 0 : (_d$r2$c = _d$r2[c]) === null || _d$r2$c === void 0 ? void 0 : (_d$r2$c$ct = _d$r2$c.ct) === null || _d$r2$c$ct === void 0 ? void 0 : _d$r2$c$ct.t) === "b") ; else {
|
|
79867
|
-
value = getCellValue(r, c, d, "v");
|
|
79868
|
-
}
|
|
79869
|
-
}
|
|
79870
|
-
return value;
|
|
79863
|
+
return getCellValue(r, c, d, "v");
|
|
79871
79864
|
}
|
|
79872
79865
|
|
|
79873
79866
|
var colors = ["#c1232b", "#27727b", "#fcce10", "#e87c25", "#b5c334", "#fe8463", "#9bca63", "#fad860", "#f3a43b", "#60c0dd", "#d7504b", "#c6e579", "#f4e001", "#f0805a", "#26c0c0", "#c12e34", "#e6b600", "#0098d9", "#2b821d", "#005eaa", "#339ca8", "#cda819", "#32a487", "#3fb1e3", "#6be6c1", "#626c91", "#a0a7e6", "#c4ebad", "#96dee8"];
|
|
@@ -98261,7 +98254,7 @@
|
|
|
98261
98254
|
fc = fc.substr(0, 1) + fc.substr(1, 1).repeat(2) + fc.substr(2, 1).repeat(2) + fc.substr(3, 1).repeat(2);
|
|
98262
98255
|
}
|
|
98263
98256
|
}
|
|
98264
|
-
var isRowHidden = r in (((_ctx$config = ctx.config) === null || _ctx$config === void 0 ? void 0 : _ctx$config.rowhidden) || {});
|
|
98257
|
+
var isRowHidden = (r in (((_ctx$config = ctx.config) === null || _ctx$config === void 0 ? void 0 : _ctx$config.rowhidden) || {}));
|
|
98265
98258
|
var bgData = bgMap.get(bg);
|
|
98266
98259
|
if (bgData != null) {
|
|
98267
98260
|
bgData.rows.push(r);
|
|
@@ -100187,6 +100180,8 @@
|
|
|
100187
100180
|
});
|
|
100188
100181
|
|
|
100189
100182
|
var defaultSettings = {
|
|
100183
|
+
renderFormulaHint: undefined,
|
|
100184
|
+
renderFormulaSearch: undefined,
|
|
100190
100185
|
renderCalcInfo: undefined,
|
|
100191
100186
|
renderFreezeCol: undefined,
|
|
100192
100187
|
renderFreezeRow: undefined,
|
|
@@ -102301,7 +102296,7 @@
|
|
|
102301
102296
|
return _handlePasteByLeanklin.apply(this, arguments);
|
|
102302
102297
|
}
|
|
102303
102298
|
function _handlePasteByLeanklin() {
|
|
102304
|
-
_handlePasteByLeanklin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(ctx, e) {
|
|
102299
|
+
_handlePasteByLeanklin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(ctx, e) {
|
|
102305
102300
|
var _ctx$luckysheet_selec8;
|
|
102306
102301
|
var data, allowEdit, selectRange, rows, columns, copyOne, newData, r, rIndex, c, row, column, range;
|
|
102307
102302
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|