New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@smt-ui/component

Package Overview
Dependencies
Maintainers
10
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smt-ui/component - npm Package Compare versions

Comparing version 1.1.85 to 1.1.86

src/chart/package.json

6

package.json
{
"name": "@smt-ui/component",
"version": "1.1.85",
"version": "1.1.86",
"description": "extension base",

@@ -21,3 +21,3 @@ "author": "jialipeng <jialipeng@baidu.com>",

"devtools": "sh ./test/index.sh",
"test:component": "mocha -t 180000 test/case/component/clfe-chart/*.spec.js --exclude **/preview/* --reporter mochawesome",
"test:component": "mocha -t 180000 test/case/component/chart/*.spec.js --exclude **/preview/* --reporter mochawesome",
"test:utils": "mocha -t 180000 --require intelli-espower-loader --require @babel/register test/case/utils/* --reporter mochawesome"

@@ -49,3 +49,3 @@ },

},
"gitHead": "85927245ae18f3498318fc8706edf859bd1a0023"
"gitHead": "8859eed77538cfc9e0f6a79ec0b6fbaf78e7e4b7"
}

@@ -114,1 +114,8 @@ /**

};
// 单选组件的列数枚举
export const COLUMNS_MAP = {
1: '',
2: 'two-column',
3: 'three-column'
};

@@ -13,7 +13,8 @@ "use strict";

/**
* @file 下拉刷新
* @author LipengJia (jialipeng@baidu.com)
* @date 2019-12-19
*/
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(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(o, minLen); }
function _arrayLikeToArray(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; }
var STATUS = {

@@ -161,6 +162,4 @@ IDLE: 0,

return (0, _asyncToGenerator2["default"])(
/*#__PURE__*/
_regenerator["default"].mark(function _callee() {
var type, _ref2$touches, touches, _ref2$changedTouches, changedTouches, _ref2$manual, manual, disabled, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, touch, id, pageY, distance, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, _touch, _id, _pageY, offsetY, pullDown, circleInfo, setOffsetY, _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3, _iterator3, _step3, _touch2, _id2, _pageY2, shouldLoad, result;
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
var type, _ref2$touches, touches, _ref2$changedTouches, changedTouches, _ref2$manual, manual, disabled, _iterator, _step, touch, id, pageY, distance, _iterator2, _step2, _touch, _id, _pageY, offsetY, pullDown, circleInfo, setOffsetY, _iterator3, _step3, _touch2, _id2, _pageY2, shouldLoad, result;

@@ -185,3 +184,3 @@ return _regenerator["default"].wrap(function _callee$(_context) {

_context.t0 = type;
_context.next = _context.t0 === 'touchstart' ? 7 : _context.t0 === 'touchmove' ? 37 : _context.t0 === 'touchend' ? 71 : 100;
_context.next = _context.t0 === 'touchstart' ? 7 : _context.t0 === 'touchmove' ? 28 : _context.t0 === 'touchend' ? 45 : 57;
break;

@@ -191,11 +190,10 @@

_this2.touching = true;
_iteratorNormalCompletion = true;
_didIteratorError = false;
_iteratorError = undefined;
_context.prev = 11;
_iterator = touches[Symbol.iterator]();
_iterator = _createForOfIteratorHelper(touches);
_context.prev = 9;
case 13:
if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
_context.next = 22;
_iterator.s();
case 11:
if ((_step = _iterator.n()).done) {
_context.next = 19;
break;

@@ -208,3 +206,3 @@ }

if (!(_this2.pos[id] == null)) {
_context.next = 19;
_context.next = 17;
break;

@@ -214,96 +212,47 @@ }

_this2.pos[id] = pageY + _this2.scrollTop;
return _context.abrupt("break", 22);
return _context.abrupt("break", 19);
case 19:
_iteratorNormalCompletion = true;
_context.next = 13;
case 17:
_context.next = 11;
break;
case 22:
_context.next = 28;
case 19:
_context.next = 24;
break;
case 21:
_context.prev = 21;
_context.t1 = _context["catch"](9);
_iterator.e(_context.t1);
case 24:
_context.prev = 24;
_context.t1 = _context["catch"](11);
_didIteratorError = true;
_iteratorError = _context.t1;
case 28:
_context.prev = 28;
_context.prev = 29;
_iterator.f();
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
_iterator["return"]();
}
return _context.finish(24);
case 31:
_context.prev = 31;
case 27:
return _context.abrupt("break", 57);
if (!_didIteratorError) {
_context.next = 34;
break;
}
throw _iteratorError;
case 34:
return _context.finish(31);
case 35:
return _context.finish(28);
case 36:
return _context.abrupt("break", 100);
case 37:
case 28:
distance = 0;
_iteratorNormalCompletion2 = true;
_didIteratorError2 = false;
_iteratorError2 = undefined;
_context.prev = 41;
_iterator2 = _createForOfIteratorHelper(touches);
for (_iterator2 = touches[Symbol.iterator](); !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
_touch = _step2.value;
_id = _touch.identifier, _pageY = _touch.pageY;
try {
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
_touch = _step2.value;
_id = _touch.identifier, _pageY = _touch.pageY;
if (_this2.pos[_id]) {
distance += Math.round(_pageY - _this2.pos[_id]);
if (_this2.pos[_id]) {
distance += Math.round(_pageY - _this2.pos[_id]);
}
}
} catch (err) {
_iterator2.e(err);
} finally {
_iterator2.f();
}
_context.next = 49;
break;
case 45:
_context.prev = 45;
_context.t2 = _context["catch"](41);
_didIteratorError2 = true;
_iteratorError2 = _context.t2;
case 49:
_context.prev = 49;
_context.prev = 50;
if (!_iteratorNormalCompletion2 && _iterator2["return"] != null) {
_iterator2["return"]();
}
case 52:
_context.prev = 52;
if (!_didIteratorError2) {
_context.next = 55;
break;
}
throw _iteratorError2;
case 55:
return _context.finish(52);
case 56:
return _context.finish(49);
case 57:
offsetY = _this2.offsetY = _this2.dumping(distance + _this2.lastOffsetY);

@@ -319,3 +268,3 @@ pullDown = distance > 0; // 没loading动画时下拉计算动画

if (!(!pullDown && _this2.status !== STATUS.IDLE && Math.abs(offsetY) > 20)) {
_context.next = 67;
_context.next = 41;
break;

@@ -338,5 +287,5 @@ }

case 67:
case 41:
if (!disabled) {
_context.next = 69;
_context.next = 43;
break;

@@ -347,3 +296,3 @@ }

case 69:
case 43:
// offsetY快,setData慢,可能造成向上划没到顶。

@@ -369,55 +318,24 @@ // 要注意 初始就向下划,过滤掉

return _context.abrupt("break", 100);
return _context.abrupt("break", 57);
case 71:
_iteratorNormalCompletion3 = true;
_didIteratorError3 = false;
_iteratorError3 = undefined;
_context.prev = 74;
case 45:
_iterator3 = _createForOfIteratorHelper(changedTouches);
for (_iterator3 = changedTouches[Symbol.iterator](); !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
_touch2 = _step3.value;
_id2 = _touch2.identifier, _pageY2 = _touch2.pageY;
try {
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
_touch2 = _step3.value;
_id2 = _touch2.identifier, _pageY2 = _touch2.pageY;
if (_this2.pos[_id2]) {
_this2.lastOffsetY += _pageY2 - _this2.pos[_id2];
if (_this2.pos[_id2]) {
_this2.lastOffsetY += _pageY2 - _this2.pos[_id2];
}
}
} catch (err) {
_iterator3.e(err);
} finally {
_iterator3.f();
}
_context.next = 82;
break;
case 78:
_context.prev = 78;
_context.t3 = _context["catch"](74);
_didIteratorError3 = true;
_iteratorError3 = _context.t3;
case 82:
_context.prev = 82;
_context.prev = 83;
if (!_iteratorNormalCompletion3 && _iterator3["return"] != null) {
_iterator3["return"]();
}
case 85:
_context.prev = 85;
if (!_didIteratorError3) {
_context.next = 88;
break;
}
throw _iteratorError3;
case 88:
return _context.finish(85);
case 89:
return _context.finish(82);
case 90:
if (!(touches.length || disabled)) {
_context.next = 92;
_context.next = 49;
break;

@@ -428,3 +346,3 @@ }

case 92:
case 49:
_this2.touching = false;

@@ -465,5 +383,5 @@ _this2.pos = {}; // 判断是否加载

_this2.lastOffsetY = _this2.offsetY = result;
return _context.abrupt("break", 100);
return _context.abrupt("break", 57);
case 100:
case 57:
case "end":

@@ -473,3 +391,3 @@ return _context.stop();

}
}, _callee, null, [[11, 24, 28, 36], [29,, 31, 35], [41, 45, 49, 57], [50,, 52, 56], [74, 78, 82, 90], [83,, 85, 89]]);
}, _callee, null, [[9, 21, 24, 27]]);
}))();

@@ -501,5 +419,3 @@ },

return (0, _asyncToGenerator2["default"])(
/*#__PURE__*/
_regenerator["default"].mark(function _callee2() {
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
return _regenerator["default"].wrap(function _callee2$(_context2) {

@@ -564,5 +480,3 @@ while (1) {

return (0, _asyncToGenerator2["default"])(
/*#__PURE__*/
_regenerator["default"].mark(function _callee3() {
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
return _regenerator["default"].wrap(function _callee3$(_context3) {

@@ -618,5 +532,3 @@ while (1) {

return (0, _asyncToGenerator2["default"])(
/*#__PURE__*/
_regenerator["default"].mark(function _callee4() {
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
var time;

@@ -708,7 +620,3 @@ return _regenerator["default"].wrap(function _callee4$(_context4) {

this.debCloseLoading = (0, _index.promiseDebounce)(
/*#__PURE__*/
(0, _asyncToGenerator2["default"])(
/*#__PURE__*/
_regenerator["default"].mark(function _callee5() {
this.debCloseLoading = (0, _index.promiseDebounce)( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
return _regenerator["default"].wrap(function _callee5$(_context5) {

@@ -715,0 +623,0 @@ while (1) {

@@ -6,4 +6,5 @@ {

"filter-cascade": "../component/filter-cascade/index",
"filter-checkbox-group": "../component/filter-checkbox-group/index"
"filter-checkbox-group": "../component/filter-checkbox-group/index",
"filter-single-option-group": "../component/filter-single-option-group/index"
}
}

@@ -108,6 +108,4 @@ "use strict";

return (0, _asyncToGenerator2["default"])(
/*#__PURE__*/
_regenerator["default"].mark(function _callee() {
var _this2$data, scroll, speed, delay, _ref2, _ref3, containerWidth, textWidth, duration;
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
var _this2$data, scroll, speed, delay, _yield, _yield2, containerWidth, textWidth, duration;

@@ -142,6 +140,6 @@ return _regenerator["default"].wrap(function _callee$(_context) {

case 11:
_ref2 = _context.sent;
_ref3 = (0, _slicedToArray2["default"])(_ref2, 2);
containerWidth = _ref3[0];
textWidth = _ref3[1];
_yield = _context.sent;
_yield2 = (0, _slicedToArray2["default"])(_yield, 2);
containerWidth = _yield2[0];
textWidth = _yield2[1];
duration = +(textWidth / speed * 1000).toFixed(2);

@@ -148,0 +146,0 @@

@@ -1,1 +0,1 @@

{"name":"component","label":"通用","type":"component","configPath":"./smart-design-config.json","version":"1.1.84"}
{"name":"component","label":"通用","type":"component","configPath":"./smart-design-config.json","version":"1.1.85"}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc