Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@beisen-platform/checkbox-list

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beisen-platform/checkbox-list - npm Package Compare versions

Comparing version 0.1.78 to 1.0.0

64

lib/CheckboxItem.js

@@ -1,41 +0,23 @@

"use strict";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
import _inherits from "@babel/runtime/helpers/inherits";
import React, { Component } from 'react';
import { render } from 'react-dom';
import ToolTip from "@beisen-platform/tool-tip";
import CusBianjiIcon from '@beisen-platform/react-icons/lib/icons/CusBianji.js';
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _react = _interopRequireWildcard(require("react"));
var _reactDom = require("react-dom");
var _toolTip = _interopRequireDefault(require("@beisen-platform/tool-tip"));
var _CusBianji = _interopRequireDefault(require("@beisen-platform/react-icons/lib/icons/CusBianji.js"));
var CheckboxItem =
/*#__PURE__*/
function (_Component) {
(0, _inherits2.default)(CheckboxItem, _Component);
_inherits(CheckboxItem, _Component);
function CheckboxItem() {
(0, _classCallCheck2.default)(this, CheckboxItem);
return (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(CheckboxItem).apply(this, arguments));
_classCallCheck(this, CheckboxItem);
return _possibleConstructorReturn(this, _getPrototypeOf(CheckboxItem).apply(this, arguments));
}
(0, _createClass2.default)(CheckboxItem, [{
_createClass(CheckboxItem, [{
key: "clickItem",

@@ -64,13 +46,12 @@ value: function clickItem(e) {

var picDom = _react.default.createElement("span", {
var picDom = React.createElement("span", {
className: "icon-cus-bianji pointer",
onClick: this.props.picClick.bind(this, value)
}, _react.default.createElement(_CusBianji.default, {
}, React.createElement(CusBianjiIcon, {
width: 12,
height: 12
}));
return _react.default.createElement("div", {
return React.createElement("div", {
className: (bsStyle ? 'cklist-checkbox cklist-optional' : 'cklist-checkbox cklist-notOptional') + ' checkbox-horizontal ' + (readOnly ? "table-item-readOnly" : "")
}, _react.default.createElement("label", {
}, React.createElement("label", {
className: bsStyle ? this.props.isChecked : "table-item-check table-item-check-back",

@@ -83,7 +64,7 @@ onClick: this.clickItem.bind(this),

"data-logcmpid": cmp_id
}, this.props.checkedSvg), _react.default.createElement(_toolTip.default, {
}, this.props.checkedSvg), React.createElement(ToolTip, {
title: text,
side: false,
hidden: false
}, _react.default.createElement("label", {
}, React.createElement("label", {
className: "check-title",

@@ -97,5 +78,6 @@ onClick: handleClick.bind(this, value, this.props),

}]);
return CheckboxItem;
}(_react.Component);
}(Component);
exports.default = CheckboxItem;
export { CheckboxItem as default };

@@ -1,10 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("core-js/modules/es6.regexp.split");
import "core-js/modules/es6.regexp.split";
//数据分析接口

@@ -59,3 +51,2 @@ var dataAnalysis = {

};
var _default = dataAnalysis;
exports.default = _default;
export default dataAnalysis;

@@ -1,57 +0,26 @@

"use strict";
import "core-js/modules/es6.function.name";
import "core-js/modules/web.dom.iterable";
import "core-js/modules/es6.object.assign";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
import _inherits from "@babel/runtime/helpers/inherits";
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
import React, { Component } from 'react';
import { render } from 'react-dom';
import ToolTip from "@beisen-platform/tool-tip";
import CommonLabel from '@beisen-platform/common-label';
import CheckboxItem from './CheckboxItem.js';
import './checkbox.css';
import CheckboxNomalIcon from '@beisen-platform/react-icons/lib/icons/CheckboxNomal.js';
import CheckboxDisabledIcon from '@beisen-platform/react-icons/lib/icons/CheckboxDisabled.js';
import CheckboxActiveIcon from '@beisen-platform/react-icons/lib/icons/CheckboxActive.js';
import CheckboxActiveDisabledIcon from '@beisen-platform/react-icons/lib/icons/CheckboxActiveDisabled.js';
import CheckboxHoverIcon from '@beisen-platform/react-icons/lib/icons/CheckboxHover.js'; // import dataAnalysis from './helper/analysis';
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("core-js/modules/es6.function.name");
require("core-js/modules/web.dom.iterable");
require("core-js/modules/es6.object.assign");
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
var _react = _interopRequireWildcard(require("react"));
var _reactDom = require("react-dom");
var _toolTip = _interopRequireDefault(require("@beisen-platform/tool-tip"));
var _commonLabel = _interopRequireDefault(require("@beisen-platform/common-label"));
var _CheckboxItem = _interopRequireDefault(require("./CheckboxItem.js"));
require("./checkbox.css");
var _CheckboxNomal = _interopRequireDefault(require("@beisen-platform/react-icons/lib/icons/CheckboxNomal.js"));
var _CheckboxDisabled = _interopRequireDefault(require("@beisen-platform/react-icons/lib/icons/CheckboxDisabled.js"));
var _CheckboxActive = _interopRequireDefault(require("@beisen-platform/react-icons/lib/icons/CheckboxActive.js"));
var _CheckboxActiveDisabled = _interopRequireDefault(require("@beisen-platform/react-icons/lib/icons/CheckboxActiveDisabled.js"));
var _CheckboxHover = _interopRequireDefault(require("@beisen-platform/react-icons/lib/icons/CheckboxHover.js"));
// import dataAnalysis from './helper/analysis';
var CheckboxList =
/*#__PURE__*/
function (_Component) {
(0, _inherits2.default)(CheckboxList, _Component);
_inherits(CheckboxList, _Component);

@@ -61,4 +30,5 @@ function CheckboxList(props) {

(0, _classCallCheck2.default)(this, CheckboxList);
_this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(CheckboxList).call(this, props));
_classCallCheck(this, CheckboxList);
_this = _possibleConstructorReturn(this, _getPrototypeOf(CheckboxList).call(this, props));
var defaults = {

@@ -71,6 +41,6 @@ checkboxItems: [{

_this.state = Object.assign({}, defaults, props);
_this.handleClick = _this.handleClick.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
_this.handleHover = _this.handleHover.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
_this.handleMouseOut = _this.handleMouseOut.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
_this.picClick = _this.picClick.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
_this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));
_this.handleHover = _this.handleHover.bind(_assertThisInitialized(_assertThisInitialized(_this)));
_this.handleMouseOut = _this.handleMouseOut.bind(_assertThisInitialized(_assertThisInitialized(_this)));
_this.picClick = _this.picClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));
return _this;

@@ -80,3 +50,3 @@ } //处理点击事件 改变当前点击checkbox的isChecked值

(0, _createClass2.default)(CheckboxList, [{
_createClass(CheckboxList, [{
key: "handleClick",

@@ -173,3 +143,3 @@ value: function handleClick(value, text, event, item) {

errorMsg = this.props.errorMsg.length > 0 ? this.props.errorMsg : errorMsg;
errorContent = _react.default.createElement("span", {
errorContent = React.createElement("span", {
className: "form-item__explain"

@@ -211,11 +181,11 @@ }, errorMsg);

if (hidden) {
return _react.default.createElement("div", {
return React.createElement("div", {
className: "field checkboxlist"
}, " ");
} else {
return _react.default.createElement("div", {
return React.createElement("div", {
className: "form-item checkboxlist " + (helpMsg ? "form-item__help" : "")
}, hasNoTitle ? _react.default.createElement("div", null) : _react.default.createElement(_commonLabel.default, titleDate), _react.default.createElement("div", {
}, hasNoTitle ? React.createElement("div", null) : React.createElement(CommonLabel, titleDate), React.createElement("div", {
className: "form-item__control " + (errorStatus ? "form-item__control_has-error" : "")
}, _react.default.createElement("div", {
}, React.createElement("div", {
style: {

@@ -229,6 +199,6 @@ "marginLeft": "5px"

isChecked = item.isChecked ? isWin10 ? "table-item-check Checkbox-active-disabled-svg" : "table-item-check table-item-check-go Checkbox-active-disabled-svg" : isWin10 ? 'table-item-check Checkbox-disabled-svg' : 'table-item-check table-item-check-back Checkbox-disabled-svg';
checkedSvg = item.isChecked ? _react.default.createElement(_CheckboxActiveDisabled.default, {
checkedSvg = item.isChecked ? React.createElement(CheckboxActiveDisabledIcon, {
width: 14,
height: 14
}) : _react.default.createElement(_CheckboxDisabled.default, {
}) : React.createElement(CheckboxDisabledIcon, {
width: 14,

@@ -239,6 +209,6 @@ height: 14

isChecked = item.isChecked ? isWin10 ? "table-item-check Checkbox-active-svg" : "table-item-check table-item-check-go Checkbox-active-svg" : isWin10 ? "table-item-check Checkbox-nomal-svg" : "table-item-check table-item-check-back Checkbox-nomal-svg";
checkedSvg = item.isChecked ? _react.default.createElement(_CheckboxActive.default, {
checkedSvg = item.isChecked ? React.createElement(CheckboxActiveIcon, {
width: 14,
height: 14
}) : _react.default.createElement(_CheckboxNomal.default, {
}) : React.createElement(CheckboxNomalIcon, {
width: 14,

@@ -249,3 +219,3 @@ height: 14

return _react.default.createElement(_CheckboxItem.default, {
return React.createElement(CheckboxItem, {
key: index,

@@ -269,5 +239,6 @@ item: item,

}]);
return CheckboxList;
}(_react.Component);
}(Component);
exports.default = CheckboxList;
export { CheckboxList as default };
{
"name": "@beisen-platform/checkbox-list",
"version": "0.1.78",
"version": "1.0.0",
"description": "平台checkbox组件",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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