Latest updates from IceHrmPro

This commit is contained in:
Thilina Pituwala
2020-05-20 18:47:29 +02:00
parent 60c92d7935
commit 7453a58aad
18012 changed files with 2089245 additions and 10173 deletions

85
web/node_modules/rc-collapse/HISTORY.md generated vendored Normal file
View File

@@ -0,0 +1,85 @@
# History
----
## 1.11.0
- Add `extra`.
## 1.10.0 2018-08-13
- Add `expandIcon`.
## 1.9.1 2018-05-10
- Fix invalid aria-expanded prop in preact
## 1.9.0 2018-04-02
- Add keyboard support [#84](https://github.com/react-component/collapse/pull/84)
## 1.8.0 2018-01-30
- Add prop forceRender to Panel [#82](https://github.com/react-component/collapse/pull/82)
## 1.7.6 2017-06-06
- Add prop id for Panel [#69](https://github.com/react-component/collapse/issues/69)
## 1.7.4 2017-05-16
- Add prop disabled [!71](https://github.com/react-component/collapse/pull/71)
- Add es module export [!70](https://github.com/react-component/collapse/pull/70)
## 1.7.2 2017-04-25
- Allow user to add custom header classe [!66](https://github.com/react-component/collapse/pull/66)
## 1.7.1 2017-04-19
- Add prop destroyInactivePanel [!61](https://github.com/react-component/collapse/pull/61)
## 1.7.0
- Change createClass to React.Component [!58](https://github.com/react-component/collapse/pull/58)
## 1.6.12
- Fix `style` support for Panel
## 1.6.11
- Add 'showArrow' prop to Panel to toggle arrow visibility [!48](https://github.com/react-component/collapse/pull/48)
## 1.6.10
- Child item support null [!45](https://github.com/react-component/collapse/pull/45)
## 1.6.6
- add className props to Panel
## 1.6.5
- fix missing rc-collapse-item-active classname on active panel header
## 1.6.0
- lazy render/controllable
## 1.5.0
- use css animation instead of velocity.js
## 1.4.0
- only support react 0.14+
## 1.2.0 2015-07-10
- 'chore' Change name to Collapse
- 'feat' Support Collapse and Accordion
## 1.1.0 2015-07-09
- `test` Add test
- `refactor` add Panel Api

9
web/node_modules/rc-collapse/LICENSE.md generated vendored Normal file
View File

@@ -0,0 +1,9 @@
The MIT License (MIT)
Copyright (c) 2014-present yiminghe
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

221
web/node_modules/rc-collapse/README.md generated vendored Normal file
View File

@@ -0,0 +1,221 @@
# rc-collapse
---
rc-collapse ui component for react
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![npm download][download-image]][download-url]
[![Dependencies](https://img.shields.io/david/react-component/collapse.svg?style=flat-square)](https://david-dm.org/react-component/collapse)
[![DevDependencies](https://img.shields.io/david/dev/react-component/collapse.svg?style=flat-square)](https://david-dm.org/react-component/collapse?type=dev)
[npm-image]: http://img.shields.io/npm/v/rc-collapse.svg?style=flat-square
[npm-url]: http://npmjs.org/package/rc-collapse
[travis-image]: https://img.shields.io/travis/react-component/collapse.svg?style=flat-square
[travis-url]: https://travis-ci.org/react-component/collapse
[coveralls-image]: https://img.shields.io/coveralls/react-component/collapse.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/react-component/collapse?branch=master
[download-image]: https://img.shields.io/npm/dm/rc-collapse.svg?style=flat-square
[download-url]: https://npmjs.org/package/rc-collapse
## Development
```
npm install
npm start
```
## Example
http://localhost:8000/examples/
online example: http://react-component.github.io/collapse/
## Features
* support ie8,ie8+,chrome,firefox,safari
## Install
[![rc-collapse](https://nodei.co/npm/rc-collapse.png)](https://npmjs.org/package/rc-collapse)
## Usage
```js
var Collapse = require('rc-collapse');
var Panel = Collapse.Panel;
var React = require('react');
var ReactDOM = require('react-dom');
require('rc-collapse/assets/index.css');
var collapse = (
<Collapse accordion={true}>
<Panel header="hello" headerClass="my-header-class">this is panel content</Panel>
<Panel header="title2">this is panel content2 or other</Panel>
</Collapse>
);
ReactDOM.render(collapse, container);
```
## API
### Collapse
#### props:
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="width: 100px;">name</th>
<th style="width: 50px;">type</th>
<th>default</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>activeKey</td>
<td>String|Array<String></td>
<th>The first panel key</th>
<td>current active Panel key</td>
</tr>
<tr>
<td>className</td>
<td>String or object</td>
<th></th>
<td>custom className to apply</td>
</tr>
<tr>
<td>defaultActiveKey</td>
<td>String|Array<String></td>
<th>null</th>
<td>default active key</td>
</tr>
<tr>
<td>destroyInactivePanel</td>
<td>Boolean</td>
<th>false</th>
<td>If destroy the panel which not active, default false. </td>
</tr>
<tr>
<td>accordion</td>
<td>Boolean</td>
<th>false</th>
<td>accordion mode, default is null, is collapse mode</td>
</tr>
<tr>
<td>onChange</td>
<td>Function(key)</td>
<th>noop</th>
<td>called when collapse Panel is changed</td>
</tr>
<tr>
<td>expandIcon</td>
<td>(props: PanelProps) => ReactNode</td>
<th></th>
<td>specific the custom expand icon.</td>
</tr>
</tbody>
</table>
If `accordion` is null or false, every panel can open. Opening another panel will not close any of the other panels.
`activeKey` should be an string, if passing an array (the first item in the array will be used).
If `accordion` is true, only one panel can be open. Opening another panel will cause the previously opened panel to close.
`activeKey` should be an string, if passing an array (the first item in the array will be used).
### Collapse.Panel
#### props
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="width: 100px;">name</th>
<th style="width: 50px;">type</th>
<th>default</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>header</td>
<td>String or node</td>
<th></th>
<td>header content of Panel</td>
</tr>
<tr>
<td>headerClass</td>
<td>String</td>
<th>' '</th>
<td>custom className to apply to header</td>
</tr>
<tr>
<td>showArrow</td>
<td>boolean</td>
<th>true</th>
<td>show arrow beside header</td>
</tr>
<tr>
<td>className</td>
<td>String or object</td>
<th></th>
<td>custom className to apply</td>
</tr>
<tr>
<td>style</td>
<td>object</td>
<th></th>
<td>custom style</td>
</tr>
<tr>
<td>openAnimation</td>
<td>object</td>
<th></th>
<td>set the animation of open behavior, [more](https://github.com/react-component/animate#animation-format)</td>
</tr>
<tr>
<td>disabled</td>
<td>boolean</td>
<th>false</th>
<td>whether the panel is collapsible</td>
</tr>
<tr>
<td>forceRender</td>
<td>boolean</td>
<th>false</th>
<td>forced render of content in panel, not lazy render after clicking on header</td>
</tr>
<tr>
<td>extra</td>
<td>String | ReactNode</td>
<th></th>
<td>Content to render in the right of the panel header</td>
</tr>
</tbody>
</table>
#### key
If `key` is not provided, the panel's index will be used instead.
## Test Case
```
npm test
npm run chrome-test
```
## Coverage
```
npm run coverage
```
open coverage/ dir
## License
rc-collapse is released under the MIT license.

69
web/node_modules/rc-collapse/assets/index.css generated vendored Normal file
View File

@@ -0,0 +1,69 @@
.rc-collapse {
background-color: #f7f7f7;
border-radius: 3px;
border: 1px solid #d9d9d9;
}
.rc-collapse-anim-active {
transition: height 0.2s ease-out;
}
.rc-collapse > .rc-collapse-item {
border-top: 1px solid #d9d9d9;
}
.rc-collapse > .rc-collapse-item:first-child {
border-top: none;
}
.rc-collapse > .rc-collapse-item > .rc-collapse-header {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
line-height: 22px;
padding: 10px 16px;
color: #666;
cursor: pointer;
}
.rc-collapse > .rc-collapse-item > .rc-collapse-header .arrow {
display: inline-block;
content: '\20';
width: 0;
height: 0;
font-size: 0;
line-height: 0;
border-top: 3px solid transparent;
border-bottom: 3px solid transparent;
border-left: 4px solid #666;
vertical-align: middle;
margin-right: 8px;
}
.rc-collapse > .rc-collapse-item > .rc-collapse-header .rc-collapse-extra {
margin: 0 16px 0 auto;
}
.rc-collapse > .rc-collapse-item-disabled > .rc-collapse-header {
cursor: not-allowed;
color: #999;
background-color: #f3f3f3;
}
.rc-collapse-content {
overflow: hidden;
color: #666;
padding: 0 16px;
background-color: #fff;
}
.rc-collapse-content > .rc-collapse-content-box {
margin-top: 16px;
margin-bottom: 16px;
}
.rc-collapse-content-inactive {
display: none;
}
.rc-collapse-item:last-child > .rc-collapse-content {
border-radius: 0 0 3px 3px;
}
.rc-collapse > .rc-collapse-item-active > .rc-collapse-header .arrow {
position: relative;
top: 2px;
border-left: 3px solid transparent;
border-right: 3px solid transparent;
border-top: 4px solid #666;
margin-right: 6px;
}

217
web/node_modules/rc-collapse/es/Collapse.js generated vendored Normal file
View File

@@ -0,0 +1,217 @@
var _createClass = function () { 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, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
import React, { Component, Children } from 'react';
import PropTypes from 'prop-types';
import CollapsePanel from './Panel';
import openAnimationFactory from './openAnimationFactory';
import classNames from 'classnames';
import { isFragment } from 'react-is';
import shallowEqual from 'shallowequal';
import { polyfill } from 'react-lifecycles-compat';
function toArray(activeKey) {
var currentActiveKey = activeKey;
if (!Array.isArray(currentActiveKey)) {
currentActiveKey = currentActiveKey ? [currentActiveKey] : [];
}
return currentActiveKey.map(function (key) {
return String(key);
});
}
var Collapse = function (_Component) {
_inherits(Collapse, _Component);
function Collapse(props) {
_classCallCheck(this, Collapse);
var _this = _possibleConstructorReturn(this, (Collapse.__proto__ || Object.getPrototypeOf(Collapse)).call(this, props));
_initialiseProps.call(_this);
var activeKey = props.activeKey,
defaultActiveKey = props.defaultActiveKey;
var currentActiveKey = defaultActiveKey;
if ('activeKey' in props) {
currentActiveKey = activeKey;
}
_this.state = {
openAnimation: props.openAnimation || openAnimationFactory(props.prefixCls),
activeKey: toArray(currentActiveKey)
};
return _this;
}
_createClass(Collapse, [{
key: 'shouldComponentUpdate',
value: function shouldComponentUpdate(nextProps, nextState) {
return !shallowEqual(this.props, nextProps) || !shallowEqual(this.state, nextState);
}
}, {
key: 'render',
value: function render() {
var _classNames;
var _props = this.props,
prefixCls = _props.prefixCls,
className = _props.className,
style = _props.style,
accordion = _props.accordion;
var collapseClassName = classNames((_classNames = {}, _defineProperty(_classNames, prefixCls, true), _defineProperty(_classNames, className, !!className), _classNames));
return React.createElement(
'div',
{ className: collapseClassName, style: style, role: accordion ? 'tablist' : null },
this.getItems()
);
}
}], [{
key: 'getDerivedStateFromProps',
value: function getDerivedStateFromProps(nextProps) {
var newState = {};
if ('activeKey' in nextProps) {
newState.activeKey = toArray(nextProps.activeKey);
}
if ('openAnimation' in nextProps) {
newState.openAnimation = nextProps.openAnimation;
}
return newState.activeKey || newState.openAnimation ? newState : null;
}
}]);
return Collapse;
}(Component);
var _initialiseProps = function _initialiseProps() {
var _this2 = this;
this.onClickItem = function (key) {
var activeKey = _this2.state.activeKey;
if (_this2.props.accordion) {
activeKey = activeKey[0] === key ? [] : [key];
} else {
activeKey = [].concat(_toConsumableArray(activeKey));
var index = activeKey.indexOf(key);
var isActive = index > -1;
if (isActive) {
// remove active state
activeKey.splice(index, 1);
} else {
activeKey.push(key);
}
}
_this2.setActiveKey(activeKey);
};
this.getNewChild = function (child, index) {
if (!child) return null;
var activeKey = _this2.state.activeKey;
var _props2 = _this2.props,
prefixCls = _props2.prefixCls,
accordion = _props2.accordion,
destroyInactivePanel = _props2.destroyInactivePanel,
expandIcon = _props2.expandIcon;
// If there is no key provide, use the panel order as default key
var key = child.key || String(index);
var _child$props = child.props,
header = _child$props.header,
headerClass = _child$props.headerClass,
disabled = _child$props.disabled;
var isActive = false;
if (accordion) {
isActive = activeKey[0] === key;
} else {
isActive = activeKey.indexOf(key) > -1;
}
var props = {
key: key,
panelKey: key,
header: header,
headerClass: headerClass,
isActive: isActive,
prefixCls: prefixCls,
destroyInactivePanel: destroyInactivePanel,
openAnimation: _this2.state.openAnimation,
accordion: accordion,
children: child.props.children,
onItemClick: disabled ? null : _this2.onClickItem,
expandIcon: expandIcon
};
// https://github.com/ant-design/ant-design/issues/20479
if (typeof child.type === 'string') {
return child;
}
return React.cloneElement(child, props);
};
this.getItems = function () {
var children = _this2.props.children;
var childList = isFragment(children) ? children.props.children : children;
var newChildren = Children.map(childList, _this2.getNewChild);
// ref: https://github.com/ant-design/ant-design/issues/13884
if (isFragment(children)) {
return React.createElement(
React.Fragment,
null,
newChildren
);
}
return newChildren;
};
this.setActiveKey = function (activeKey) {
if (!('activeKey' in _this2.props)) {
_this2.setState({ activeKey: activeKey });
}
_this2.props.onChange(_this2.props.accordion ? activeKey[0] : activeKey);
};
};
Collapse.propTypes = {
children: PropTypes.any,
prefixCls: PropTypes.string,
activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))]),
defaultActiveKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))]),
openAnimation: PropTypes.object,
onChange: PropTypes.func,
accordion: PropTypes.bool,
className: PropTypes.string,
style: PropTypes.object,
destroyInactivePanel: PropTypes.bool,
expandIcon: PropTypes.func
};
Collapse.defaultProps = {
prefixCls: 'rc-collapse',
onChange: function onChange() {},
accordion: false,
destroyInactivePanel: false
};
Collapse.Panel = CollapsePanel;
polyfill(Collapse);
export default Collapse;

161
web/node_modules/rc-collapse/es/Panel.js generated vendored Normal file
View File

@@ -0,0 +1,161 @@
var _createClass = function () { 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, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import PanelContent from './PanelContent';
import Animate from 'rc-animate';
import shallowEqual from 'shallowequal';
var CollapsePanel = function (_Component) {
_inherits(CollapsePanel, _Component);
function CollapsePanel() {
var _ref;
var _temp, _this, _ret;
_classCallCheck(this, CollapsePanel);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = CollapsePanel.__proto__ || Object.getPrototypeOf(CollapsePanel)).call.apply(_ref, [this].concat(args))), _this), _this.handleItemClick = function () {
var _this$props = _this.props,
onItemClick = _this$props.onItemClick,
panelKey = _this$props.panelKey;
if (typeof onItemClick === 'function') {
onItemClick(panelKey);
}
}, _this.handleKeyPress = function (e) {
if (e.key === 'Enter' || e.keyCode === 13 || e.which === 13) {
_this.handleItemClick();
}
}, _temp), _possibleConstructorReturn(_this, _ret);
}
_createClass(CollapsePanel, [{
key: 'shouldComponentUpdate',
value: function shouldComponentUpdate(nextProps) {
return !shallowEqual(this.props, nextProps);
}
}, {
key: 'render',
value: function render() {
var _classNames2;
var _props = this.props,
className = _props.className,
id = _props.id,
style = _props.style,
prefixCls = _props.prefixCls,
header = _props.header,
headerClass = _props.headerClass,
children = _props.children,
isActive = _props.isActive,
showArrow = _props.showArrow,
destroyInactivePanel = _props.destroyInactivePanel,
disabled = _props.disabled,
accordion = _props.accordion,
forceRender = _props.forceRender,
expandIcon = _props.expandIcon,
extra = _props.extra;
var headerCls = classNames(prefixCls + '-header', _defineProperty({}, headerClass, headerClass));
var itemCls = classNames((_classNames2 = {}, _defineProperty(_classNames2, prefixCls + '-item', true), _defineProperty(_classNames2, prefixCls + '-item-active', isActive), _defineProperty(_classNames2, prefixCls + '-item-disabled', disabled), _classNames2), className);
var icon = React.createElement('i', { className: 'arrow' });
if (showArrow && typeof expandIcon === 'function') {
icon = expandIcon(this.props);
}
return React.createElement(
'div',
{ className: itemCls, style: style, id: id },
React.createElement(
'div',
{
className: headerCls,
onClick: this.handleItemClick,
role: accordion ? 'tab' : 'button',
tabIndex: disabled ? -1 : 0,
'aria-expanded': '' + isActive,
onKeyPress: this.handleKeyPress
},
showArrow && icon,
header,
extra && React.createElement(
'div',
{ className: prefixCls + '-extra' },
extra
)
),
React.createElement(
Animate,
{
showProp: 'isActive',
exclusive: true,
component: '',
animation: this.props.openAnimation
},
React.createElement(
PanelContent,
{
prefixCls: prefixCls,
isActive: isActive,
destroyInactivePanel: destroyInactivePanel,
forceRender: forceRender,
role: accordion ? 'tabpanel' : null
},
children
)
)
);
}
}]);
return CollapsePanel;
}(Component);
CollapsePanel.propTypes = {
className: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
id: PropTypes.string,
children: PropTypes.any,
openAnimation: PropTypes.object,
prefixCls: PropTypes.string,
header: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.node]),
headerClass: PropTypes.string,
showArrow: PropTypes.bool,
isActive: PropTypes.bool,
onItemClick: PropTypes.func,
style: PropTypes.object,
destroyInactivePanel: PropTypes.bool,
disabled: PropTypes.bool,
accordion: PropTypes.bool,
forceRender: PropTypes.bool,
expandIcon: PropTypes.func,
extra: PropTypes.node,
panelKey: PropTypes.any
};
CollapsePanel.defaultProps = {
showArrow: true,
isActive: false,
destroyInactivePanel: false,
onItemClick: function onItemClick() {},
headerClass: '',
forceRender: false
};
export default CollapsePanel;

76
web/node_modules/rc-collapse/es/PanelContent.js generated vendored Normal file
View File

@@ -0,0 +1,76 @@
var _createClass = function () { 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, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import shallowEqual from 'shallowequal';
var PanelContent = function (_Component) {
_inherits(PanelContent, _Component);
function PanelContent() {
_classCallCheck(this, PanelContent);
return _possibleConstructorReturn(this, (PanelContent.__proto__ || Object.getPrototypeOf(PanelContent)).apply(this, arguments));
}
_createClass(PanelContent, [{
key: 'shouldComponentUpdate',
value: function shouldComponentUpdate(nextProps) {
return this.props.forceRender || !shallowEqual(this.props, nextProps);
}
}, {
key: 'render',
value: function render() {
var _classnames;
this._isActived = this.props.forceRender || this._isActived || this.props.isActive;
if (!this._isActived) {
return null;
}
var _props = this.props,
prefixCls = _props.prefixCls,
isActive = _props.isActive,
children = _props.children,
destroyInactivePanel = _props.destroyInactivePanel,
forceRender = _props.forceRender,
role = _props.role;
var contentCls = classnames((_classnames = {}, _defineProperty(_classnames, prefixCls + '-content', true), _defineProperty(_classnames, prefixCls + '-content-active', isActive), _defineProperty(_classnames, prefixCls + '-content-inactive', !isActive), _classnames));
var child = !forceRender && !isActive && destroyInactivePanel ? null : React.createElement(
'div',
{ className: prefixCls + '-content-box' },
children
);
return React.createElement(
'div',
{
className: contentCls,
role: role
},
child
);
}
}]);
return PanelContent;
}(Component);
PanelContent.propTypes = {
prefixCls: PropTypes.string,
isActive: PropTypes.bool,
children: PropTypes.any,
destroyInactivePanel: PropTypes.bool,
forceRender: PropTypes.bool,
role: PropTypes.string
};
export default PanelContent;

4
web/node_modules/rc-collapse/es/index.js generated vendored Normal file
View File

@@ -0,0 +1,4 @@
import Collapse from './Collapse';
export default Collapse;
export var Panel = Collapse.Panel;

View File

@@ -0,0 +1,35 @@
import cssAnimation from 'css-animation';
function animate(node, show, transitionName, done) {
var height = void 0;
return cssAnimation(node, transitionName, {
start: function start() {
if (!show) {
node.style.height = node.offsetHeight + 'px';
} else {
height = node.offsetHeight;
node.style.height = 0;
}
},
active: function active() {
node.style.height = (show ? height : 0) + 'px';
},
end: function end() {
node.style.height = '';
done();
}
});
}
function animation(prefixCls) {
return {
enter: function enter(node, done) {
return animate(node, true, prefixCls + '-anim', done);
},
leave: function leave(node, done) {
return animate(node, false, prefixCls + '-anim', done);
}
};
}
export default animation;

245
web/node_modules/rc-collapse/lib/Collapse.js generated vendored Normal file
View File

@@ -0,0 +1,245 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { 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, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _Panel = require('./Panel');
var _Panel2 = _interopRequireDefault(_Panel);
var _openAnimationFactory = require('./openAnimationFactory');
var _openAnimationFactory2 = _interopRequireDefault(_openAnimationFactory);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _reactIs = require('react-is');
var _shallowequal = require('shallowequal');
var _shallowequal2 = _interopRequireDefault(_shallowequal);
var _reactLifecyclesCompat = require('react-lifecycles-compat');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
function toArray(activeKey) {
var currentActiveKey = activeKey;
if (!Array.isArray(currentActiveKey)) {
currentActiveKey = currentActiveKey ? [currentActiveKey] : [];
}
return currentActiveKey.map(function (key) {
return String(key);
});
}
var Collapse = function (_Component) {
_inherits(Collapse, _Component);
function Collapse(props) {
_classCallCheck(this, Collapse);
var _this = _possibleConstructorReturn(this, (Collapse.__proto__ || Object.getPrototypeOf(Collapse)).call(this, props));
_initialiseProps.call(_this);
var activeKey = props.activeKey,
defaultActiveKey = props.defaultActiveKey;
var currentActiveKey = defaultActiveKey;
if ('activeKey' in props) {
currentActiveKey = activeKey;
}
_this.state = {
openAnimation: props.openAnimation || (0, _openAnimationFactory2['default'])(props.prefixCls),
activeKey: toArray(currentActiveKey)
};
return _this;
}
_createClass(Collapse, [{
key: 'shouldComponentUpdate',
value: function shouldComponentUpdate(nextProps, nextState) {
return !(0, _shallowequal2['default'])(this.props, nextProps) || !(0, _shallowequal2['default'])(this.state, nextState);
}
}, {
key: 'render',
value: function render() {
var _classNames;
var _props = this.props,
prefixCls = _props.prefixCls,
className = _props.className,
style = _props.style,
accordion = _props.accordion;
var collapseClassName = (0, _classnames2['default'])((_classNames = {}, _defineProperty(_classNames, prefixCls, true), _defineProperty(_classNames, className, !!className), _classNames));
return _react2['default'].createElement(
'div',
{ className: collapseClassName, style: style, role: accordion ? 'tablist' : null },
this.getItems()
);
}
}], [{
key: 'getDerivedStateFromProps',
value: function getDerivedStateFromProps(nextProps) {
var newState = {};
if ('activeKey' in nextProps) {
newState.activeKey = toArray(nextProps.activeKey);
}
if ('openAnimation' in nextProps) {
newState.openAnimation = nextProps.openAnimation;
}
return newState.activeKey || newState.openAnimation ? newState : null;
}
}]);
return Collapse;
}(_react.Component);
var _initialiseProps = function _initialiseProps() {
var _this2 = this;
this.onClickItem = function (key) {
var activeKey = _this2.state.activeKey;
if (_this2.props.accordion) {
activeKey = activeKey[0] === key ? [] : [key];
} else {
activeKey = [].concat(_toConsumableArray(activeKey));
var index = activeKey.indexOf(key);
var isActive = index > -1;
if (isActive) {
// remove active state
activeKey.splice(index, 1);
} else {
activeKey.push(key);
}
}
_this2.setActiveKey(activeKey);
};
this.getNewChild = function (child, index) {
if (!child) return null;
var activeKey = _this2.state.activeKey;
var _props2 = _this2.props,
prefixCls = _props2.prefixCls,
accordion = _props2.accordion,
destroyInactivePanel = _props2.destroyInactivePanel,
expandIcon = _props2.expandIcon;
// If there is no key provide, use the panel order as default key
var key = child.key || String(index);
var _child$props = child.props,
header = _child$props.header,
headerClass = _child$props.headerClass,
disabled = _child$props.disabled;
var isActive = false;
if (accordion) {
isActive = activeKey[0] === key;
} else {
isActive = activeKey.indexOf(key) > -1;
}
var props = {
key: key,
panelKey: key,
header: header,
headerClass: headerClass,
isActive: isActive,
prefixCls: prefixCls,
destroyInactivePanel: destroyInactivePanel,
openAnimation: _this2.state.openAnimation,
accordion: accordion,
children: child.props.children,
onItemClick: disabled ? null : _this2.onClickItem,
expandIcon: expandIcon
};
// https://github.com/ant-design/ant-design/issues/20479
if (typeof child.type === 'string') {
return child;
}
return _react2['default'].cloneElement(child, props);
};
this.getItems = function () {
var children = _this2.props.children;
var childList = (0, _reactIs.isFragment)(children) ? children.props.children : children;
var newChildren = _react.Children.map(childList, _this2.getNewChild);
// ref: https://github.com/ant-design/ant-design/issues/13884
if ((0, _reactIs.isFragment)(children)) {
return _react2['default'].createElement(
_react2['default'].Fragment,
null,
newChildren
);
}
return newChildren;
};
this.setActiveKey = function (activeKey) {
if (!('activeKey' in _this2.props)) {
_this2.setState({ activeKey: activeKey });
}
_this2.props.onChange(_this2.props.accordion ? activeKey[0] : activeKey);
};
};
Collapse.propTypes = {
children: _propTypes2['default'].any,
prefixCls: _propTypes2['default'].string,
activeKey: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].number, _propTypes2['default'].arrayOf(_propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].number]))]),
defaultActiveKey: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].number, _propTypes2['default'].arrayOf(_propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].number]))]),
openAnimation: _propTypes2['default'].object,
onChange: _propTypes2['default'].func,
accordion: _propTypes2['default'].bool,
className: _propTypes2['default'].string,
style: _propTypes2['default'].object,
destroyInactivePanel: _propTypes2['default'].bool,
expandIcon: _propTypes2['default'].func
};
Collapse.defaultProps = {
prefixCls: 'rc-collapse',
onChange: function onChange() {},
accordion: false,
destroyInactivePanel: false
};
Collapse.Panel = _Panel2['default'];
(0, _reactLifecyclesCompat.polyfill)(Collapse);
exports['default'] = Collapse;
module.exports = exports['default'];

187
web/node_modules/rc-collapse/lib/Panel.js generated vendored Normal file
View File

@@ -0,0 +1,187 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { 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, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _PanelContent = require('./PanelContent');
var _PanelContent2 = _interopRequireDefault(_PanelContent);
var _rcAnimate = require('rc-animate');
var _rcAnimate2 = _interopRequireDefault(_rcAnimate);
var _shallowequal = require('shallowequal');
var _shallowequal2 = _interopRequireDefault(_shallowequal);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var CollapsePanel = function (_Component) {
_inherits(CollapsePanel, _Component);
function CollapsePanel() {
var _ref;
var _temp, _this, _ret;
_classCallCheck(this, CollapsePanel);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = CollapsePanel.__proto__ || Object.getPrototypeOf(CollapsePanel)).call.apply(_ref, [this].concat(args))), _this), _this.handleItemClick = function () {
var _this$props = _this.props,
onItemClick = _this$props.onItemClick,
panelKey = _this$props.panelKey;
if (typeof onItemClick === 'function') {
onItemClick(panelKey);
}
}, _this.handleKeyPress = function (e) {
if (e.key === 'Enter' || e.keyCode === 13 || e.which === 13) {
_this.handleItemClick();
}
}, _temp), _possibleConstructorReturn(_this, _ret);
}
_createClass(CollapsePanel, [{
key: 'shouldComponentUpdate',
value: function shouldComponentUpdate(nextProps) {
return !(0, _shallowequal2['default'])(this.props, nextProps);
}
}, {
key: 'render',
value: function render() {
var _classNames2;
var _props = this.props,
className = _props.className,
id = _props.id,
style = _props.style,
prefixCls = _props.prefixCls,
header = _props.header,
headerClass = _props.headerClass,
children = _props.children,
isActive = _props.isActive,
showArrow = _props.showArrow,
destroyInactivePanel = _props.destroyInactivePanel,
disabled = _props.disabled,
accordion = _props.accordion,
forceRender = _props.forceRender,
expandIcon = _props.expandIcon,
extra = _props.extra;
var headerCls = (0, _classnames2['default'])(prefixCls + '-header', _defineProperty({}, headerClass, headerClass));
var itemCls = (0, _classnames2['default'])((_classNames2 = {}, _defineProperty(_classNames2, prefixCls + '-item', true), _defineProperty(_classNames2, prefixCls + '-item-active', isActive), _defineProperty(_classNames2, prefixCls + '-item-disabled', disabled), _classNames2), className);
var icon = _react2['default'].createElement('i', { className: 'arrow' });
if (showArrow && typeof expandIcon === 'function') {
icon = expandIcon(this.props);
}
return _react2['default'].createElement(
'div',
{ className: itemCls, style: style, id: id },
_react2['default'].createElement(
'div',
{
className: headerCls,
onClick: this.handleItemClick,
role: accordion ? 'tab' : 'button',
tabIndex: disabled ? -1 : 0,
'aria-expanded': '' + isActive,
onKeyPress: this.handleKeyPress
},
showArrow && icon,
header,
extra && _react2['default'].createElement(
'div',
{ className: prefixCls + '-extra' },
extra
)
),
_react2['default'].createElement(
_rcAnimate2['default'],
{
showProp: 'isActive',
exclusive: true,
component: '',
animation: this.props.openAnimation
},
_react2['default'].createElement(
_PanelContent2['default'],
{
prefixCls: prefixCls,
isActive: isActive,
destroyInactivePanel: destroyInactivePanel,
forceRender: forceRender,
role: accordion ? 'tabpanel' : null
},
children
)
)
);
}
}]);
return CollapsePanel;
}(_react.Component);
CollapsePanel.propTypes = {
className: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]),
id: _propTypes2['default'].string,
children: _propTypes2['default'].any,
openAnimation: _propTypes2['default'].object,
prefixCls: _propTypes2['default'].string,
header: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].number, _propTypes2['default'].node]),
headerClass: _propTypes2['default'].string,
showArrow: _propTypes2['default'].bool,
isActive: _propTypes2['default'].bool,
onItemClick: _propTypes2['default'].func,
style: _propTypes2['default'].object,
destroyInactivePanel: _propTypes2['default'].bool,
disabled: _propTypes2['default'].bool,
accordion: _propTypes2['default'].bool,
forceRender: _propTypes2['default'].bool,
expandIcon: _propTypes2['default'].func,
extra: _propTypes2['default'].node,
panelKey: _propTypes2['default'].any
};
CollapsePanel.defaultProps = {
showArrow: true,
isActive: false,
destroyInactivePanel: false,
onItemClick: function onItemClick() {},
headerClass: '',
forceRender: false
};
exports['default'] = CollapsePanel;
module.exports = exports['default'];

96
web/node_modules/rc-collapse/lib/PanelContent.js generated vendored Normal file
View File

@@ -0,0 +1,96 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { 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, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _classnames2 = require('classnames');
var _classnames3 = _interopRequireDefault(_classnames2);
var _shallowequal = require('shallowequal');
var _shallowequal2 = _interopRequireDefault(_shallowequal);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var PanelContent = function (_Component) {
_inherits(PanelContent, _Component);
function PanelContent() {
_classCallCheck(this, PanelContent);
return _possibleConstructorReturn(this, (PanelContent.__proto__ || Object.getPrototypeOf(PanelContent)).apply(this, arguments));
}
_createClass(PanelContent, [{
key: 'shouldComponentUpdate',
value: function shouldComponentUpdate(nextProps) {
return this.props.forceRender || !(0, _shallowequal2['default'])(this.props, nextProps);
}
}, {
key: 'render',
value: function render() {
var _classnames;
this._isActived = this.props.forceRender || this._isActived || this.props.isActive;
if (!this._isActived) {
return null;
}
var _props = this.props,
prefixCls = _props.prefixCls,
isActive = _props.isActive,
children = _props.children,
destroyInactivePanel = _props.destroyInactivePanel,
forceRender = _props.forceRender,
role = _props.role;
var contentCls = (0, _classnames3['default'])((_classnames = {}, _defineProperty(_classnames, prefixCls + '-content', true), _defineProperty(_classnames, prefixCls + '-content-active', isActive), _defineProperty(_classnames, prefixCls + '-content-inactive', !isActive), _classnames));
var child = !forceRender && !isActive && destroyInactivePanel ? null : _react2['default'].createElement(
'div',
{ className: prefixCls + '-content-box' },
children
);
return _react2['default'].createElement(
'div',
{
className: contentCls,
role: role
},
child
);
}
}]);
return PanelContent;
}(_react.Component);
PanelContent.propTypes = {
prefixCls: _propTypes2['default'].string,
isActive: _propTypes2['default'].bool,
children: _propTypes2['default'].any,
destroyInactivePanel: _propTypes2['default'].bool,
forceRender: _propTypes2['default'].bool,
role: _propTypes2['default'].string
};
exports['default'] = PanelContent;
module.exports = exports['default'];

15
web/node_modules/rc-collapse/lib/index.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Panel = undefined;
var _Collapse = require('./Collapse');
var _Collapse2 = _interopRequireDefault(_Collapse);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
exports['default'] = _Collapse2['default'];
var Panel = exports.Panel = _Collapse2['default'].Panel;

View File

@@ -0,0 +1,46 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _cssAnimation = require('css-animation');
var _cssAnimation2 = _interopRequireDefault(_cssAnimation);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function animate(node, show, transitionName, done) {
var height = void 0;
return (0, _cssAnimation2['default'])(node, transitionName, {
start: function start() {
if (!show) {
node.style.height = node.offsetHeight + 'px';
} else {
height = node.offsetHeight;
node.style.height = 0;
}
},
active: function active() {
node.style.height = (show ? height : 0) + 'px';
},
end: function end() {
node.style.height = '';
done();
}
});
}
function animation(prefixCls) {
return {
enter: function enter(node, done) {
return animate(node, true, prefixCls + '-anim', done);
},
leave: function leave(node, done) {
return animate(node, false, prefixCls + '-anim', done);
}
};
}
exports['default'] = animation;
module.exports = exports['default'];

105
web/node_modules/rc-collapse/package.json generated vendored Normal file
View File

@@ -0,0 +1,105 @@
{
"_from": "rc-collapse@~1.11.3",
"_id": "rc-collapse@1.11.8",
"_inBundle": false,
"_integrity": "sha512-8EhfPyScTYljkbRuIoHniSwZagD5UPpZ3CToYgoNYWC85L2qCbPYF7+OaC713FOrIkp6NbfNqXsITNxmDAmxog==",
"_location": "/rc-collapse",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "rc-collapse@~1.11.3",
"name": "rc-collapse",
"escapedName": "rc-collapse",
"rawSpec": "~1.11.3",
"saveSpec": null,
"fetchSpec": "~1.11.3"
},
"_requiredBy": [
"/antd"
],
"_resolved": "https://registry.npmjs.org/rc-collapse/-/rc-collapse-1.11.8.tgz",
"_shasum": "66a40089d469519e9424009ab1c927e214041d80",
"_spec": "rc-collapse@~1.11.3",
"_where": "/Users/thilina/TestProjects/icehrm-pro/web/node_modules/antd",
"author": {
"name": "eward.song@gmail.com"
},
"bugs": {
"url": "http://github.com/react-component/collapse/issues"
},
"bundleDependencies": false,
"config": {
"port": 8002
},
"dependencies": {
"classnames": "2.x",
"css-animation": "1.x",
"prop-types": "^15.5.6",
"rc-animate": "2.x",
"react-is": "^16.7.0",
"react-lifecycles-compat": "^3.0.4",
"shallowequal": "^1.1.0"
},
"deprecated": false,
"description": "rc-collapse ui component for react",
"devDependencies": {
"coveralls": "^3.0.2",
"expect.js": "0.3.x",
"jest": "^20.0.1",
"jquery": "^3.3.1",
"pre-commit": "1.x",
"rc-tools": "6.x",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"string.prototype.repeat": "^0.2.0"
},
"files": [
"lib",
"es",
"assets/*.css"
],
"homepage": "http://github.com/react-component/collapse",
"jest": {
"setupFiles": [
"./tests/setup.js"
],
"collectCoverageFrom": [
"src/*"
],
"transform": {
"\\.tsx?$": "./node_modules/rc-tools/scripts/jestPreprocessor.js",
"\\.jsx?$": "./node_modules/rc-tools/scripts/jestPreprocessor.js"
}
},
"keywords": [
"react",
"react-component",
"react-rc-collapse",
"rc-collapse",
"collapse",
"accordion"
],
"license": "MIT",
"main": "./lib/index",
"module": "./es/index",
"name": "rc-collapse",
"pre-commit": [
"lint"
],
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/react-component/collapse.git"
},
"scripts": {
"build": "rc-tools run build",
"compile": "rc-tools run compile --babel-runtime",
"coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls",
"gh-pages": "rc-tools run gh-pages",
"lint": "rc-tools run lint",
"pub": "rc-tools run pub",
"start": "rc-tools run server",
"test": "jest"
},
"version": "1.11.8"
}