Latest updates from IceHrmPro
This commit is contained in:
87
web/node_modules/rc-dialog/HISTORY.md
generated
vendored
Normal file
87
web/node_modules/rc-dialog/HISTORY.md
generated
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
# History
|
||||
----
|
||||
|
||||
## 7.4.0 / 2019-05-10
|
||||
|
||||
- Update accessibility.
|
||||
|
||||
## 7.3.0 / 2018-12-06
|
||||
|
||||
- Support `forceRender` for dialog.
|
||||
|
||||
## 7.2.0 / 2018-07-30
|
||||
|
||||
- Add closeIcon. [#89](*https://github.com/react-component/dialog/pull/89) [@HeskeyBaozi ](https://github.com/HeskeyBaozi)
|
||||
|
||||
## 7.1.0 / 2017-12-28
|
||||
|
||||
- Add destroyOnClose. [#72](https://github.com/react-component/dialog/pull/72) [@Rohanhacker](https://github.com/Rohanhacker)
|
||||
|
||||
## 7.0.0 / 2017-11-02
|
||||
|
||||
|
||||
- Remove ReactNative support, please use https://github.com/react-component/m-dialog instead.
|
||||
- Support React 16.
|
||||
|
||||
Notable change: Close animation won't trigger when dialog unmounting after React 16, see [facebook/react#10826](https://github.com/facebook/react/issues/10826)
|
||||
|
||||
## 6.5.11 / 2017-8-21
|
||||
|
||||
- fixed: RN modal support landscape orientation, https://github.com/react-component/dialog/pull/64
|
||||
|
||||
## 6.5.0 / 2016-10-25
|
||||
|
||||
- remove rc-dialog/lib/Modal's entry prop, add animationType prop
|
||||
|
||||
## 6.4.0 / 2016-09-19
|
||||
|
||||
- add rc-dialog/lib/Modal to support react-native
|
||||
|
||||
## 6.2.0 / 2016-07-18
|
||||
|
||||
- use getContainerRenderMixin from 'rc-util'
|
||||
|
||||
## 6.0.0 / 2016-03-18
|
||||
|
||||
- new html structure and class
|
||||
- disable window scroll when show
|
||||
|
||||
## 5.4.0 / 2016-02-27
|
||||
|
||||
- add maskClosable
|
||||
|
||||
## 5.3.0 / 2015-11-23
|
||||
|
||||
- separate close and header
|
||||
|
||||
## 5.1.0 / 2015-10-20
|
||||
|
||||
- only support react 0.14
|
||||
|
||||
## 5.0.0 / 2015-08-17
|
||||
|
||||
- refactor to clean api. remove onShow onBeforeClose
|
||||
|
||||
## 4.5.0 / 2015-07-23
|
||||
|
||||
use rc-animate & rc-align
|
||||
|
||||
## 4.4.0 / 2015-07-03
|
||||
|
||||
support esc to close
|
||||
|
||||
## 4.2.0 / 2015-06-09
|
||||
|
||||
add renderToBody props
|
||||
|
||||
## 4.0.0 / 2015-04-28
|
||||
|
||||
make dialog render to body and use [dom-align](https://github.com/yiminghe/dom-align) to align
|
||||
|
||||
## 3.0.0 / 2015-03-17
|
||||
|
||||
support es6 and react 0.13
|
||||
|
||||
## 2.1.0 / 2015-03-05
|
||||
|
||||
`new` [#3](https://github.com/react-component/dialog/issues/3) support closable requestClose onBeforeClose
|
||||
9
web/node_modules/rc-dialog/LICENSE.md
generated
vendored
Normal file
9
web/node_modules/rc-dialog/LICENSE.md
generated
vendored
Normal 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.
|
||||
252
web/node_modules/rc-dialog/README.md
generated
vendored
Normal file
252
web/node_modules/rc-dialog/README.md
generated
vendored
Normal file
@@ -0,0 +1,252 @@
|
||||
# rc-dialog
|
||||
---
|
||||
|
||||
react dialog component
|
||||
|
||||
[![NPM version][npm-image]][npm-url]
|
||||
[![build status][travis-image]][travis-url]
|
||||
[![Test coverage][coveralls-image]][coveralls-url]
|
||||
[![gemnasium deps][gemnasium-image]][gemnasium-url]
|
||||
[![npm download][download-image]][download-url]
|
||||
|
||||
[npm-image]: http://img.shields.io/npm/v/rc-dialog.svg?style=flat-square
|
||||
[npm-url]: http://npmjs.org/package/rc-dialog
|
||||
[travis-image]: https://img.shields.io/travis/react-component/dialog.svg?style=flat-square
|
||||
[travis-url]: https://travis-ci.org/react-component/dialog
|
||||
[coveralls-image]: https://img.shields.io/coveralls/react-component/dialog.svg?style=flat-square
|
||||
[coveralls-url]: https://coveralls.io/r/react-component/dialog?branch=master
|
||||
[gemnasium-image]: http://img.shields.io/gemnasium/react-component/dialog.svg?style=flat-square
|
||||
[gemnasium-url]: https://gemnasium.com/react-component/dialog
|
||||
[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square
|
||||
[node-url]: http://nodejs.org/download/
|
||||
[download-image]: https://img.shields.io/npm/dm/rc-dialog.svg?style=flat-square
|
||||
[download-url]: https://npmjs.org/package/rc-dialog
|
||||
|
||||
## Screenshot
|
||||
|
||||
<img src="http://gtms04.alicdn.com/tps/i4/TB1dp5lHXXXXXbmXpXXyVug.FXX-664-480.png" />
|
||||
|
||||
## Install
|
||||
|
||||
[](https://npmjs.org/package/rc-dialog)
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var Dialog = require('rc-dialog');
|
||||
|
||||
ReactDOM.render(
|
||||
<Dialog title={title} onClose={callback1} visible>
|
||||
<p>first dialog</p>
|
||||
</Dialog>
|
||||
), document.getElementById('t1'));
|
||||
|
||||
// use dialog
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### rc-dialog
|
||||
|
||||
|
||||
<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>prefixCls</td>
|
||||
<td>String</td>
|
||||
<td>rc-dialog</td>
|
||||
<td>The dialog dom node's prefixCls</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>className</td>
|
||||
<td>String</td>
|
||||
<td></td>
|
||||
<td>additional className for dialog</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>wrapClassName</td>
|
||||
<td>String</td>
|
||||
<td></td>
|
||||
<td>additional className for dialog wrap</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>style</td>
|
||||
<td>Object</td>
|
||||
<td>{}</td>
|
||||
<td>Root style for dialog element.Such as width, height</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>zIndex</td>
|
||||
<td>Number</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>bodyStyle</td>
|
||||
<td>Object</td>
|
||||
<td>{}</td>
|
||||
<td>body style for dialog body element.Such as height</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maskStyle</td>
|
||||
<td>Object</td>
|
||||
<td>{}</td>
|
||||
<td>style for mask element.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>visible</td>
|
||||
<td>Boolean</td>
|
||||
<td>false</td>
|
||||
<td>current dialog's visible status</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>animation</td>
|
||||
<td>String</td>
|
||||
<td></td>
|
||||
<td>part of dialog animation css class name</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maskAnimation</td>
|
||||
<td>String</td>
|
||||
<td></td>
|
||||
<td>part of dialog's mask animation css class name</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>transitionName</td>
|
||||
<td>String</td>
|
||||
<td></td>
|
||||
<td>dialog animation css class name</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maskTransitionName</td>
|
||||
<td>String</td>
|
||||
<td></td>
|
||||
<td>mask animation css class name</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>title</td>
|
||||
<td>String|React.Element</td>
|
||||
<td></td>
|
||||
<td>Title of the dialog</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>footer</td>
|
||||
<td>React.Element</td>
|
||||
<td></td>
|
||||
<td>footer of the dialog</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>closable</td>
|
||||
<td>Boolean</td>
|
||||
<td>true</td>
|
||||
<td>whether show close button</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>mask</td>
|
||||
<td>Boolean</td>
|
||||
<td>true</td>
|
||||
<td>whether show mask</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maskClosable</td>
|
||||
<td>Boolean</td>
|
||||
<td>true</td>
|
||||
<td>whether click mask to close</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>keyboard</td>
|
||||
<td>Boolean</td>
|
||||
<td>true</td>
|
||||
<td>whether support press esc to close</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>mousePosition</td>
|
||||
<td>{x:number,y:number}</td>
|
||||
<td></td>
|
||||
<td>set pageX and pageY of current mouse(it will cause transform origin to be set).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>onClose</td>
|
||||
<td>function()</td>
|
||||
<td></td>
|
||||
<td>called when click close button or mask</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>afterClose</td>
|
||||
<td>function()</td>
|
||||
<td></td>
|
||||
<td>called when close animation end</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>getContainer</td>
|
||||
<td>function(): HTMLElement</td>
|
||||
<td></td>
|
||||
<td>to determine where Dialog will be mounted</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>destroyOnClose</td>
|
||||
<td>Boolean</td>
|
||||
<td>false</td>
|
||||
<td>to unmount child compenents on onClose</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>closeIcon</td>
|
||||
<td>ReactNode</td>
|
||||
<td></td>
|
||||
<td>specific the close icon.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>forceRender</td>
|
||||
<td>Boolean</td>
|
||||
<td>false</td>
|
||||
<td>Create dialog dom node before dialog first show </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>focusTriggerAfterClose</td>
|
||||
<td>Boolean</td>
|
||||
<td>true</td>
|
||||
<td>focus trigger element when dialog closed</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
## Development
|
||||
|
||||
```
|
||||
npm install
|
||||
npm start
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
http://localhost:8007/examples/
|
||||
|
||||
online example: http://react-component.github.io/dialog/
|
||||
|
||||
## Test Case
|
||||
|
||||
```
|
||||
npm test
|
||||
npm run chrome-test
|
||||
```
|
||||
|
||||
## Coverage
|
||||
|
||||
```
|
||||
npm run coverage
|
||||
```
|
||||
|
||||
open coverage/ dir
|
||||
|
||||
|
||||
## License
|
||||
|
||||
rc-dialog is released under the MIT license.
|
||||
177
web/node_modules/rc-dialog/assets/bootstrap.css
generated
vendored
Normal file
177
web/node_modules/rc-dialog/assets/bootstrap.css
generated
vendored
Normal file
@@ -0,0 +1,177 @@
|
||||
.rc-dialog {
|
||||
position: relative;
|
||||
width: auto;
|
||||
margin: 10px;
|
||||
}
|
||||
.rc-dialog-wrap {
|
||||
position: fixed;
|
||||
overflow: auto;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 1050;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
outline: 0;
|
||||
}
|
||||
.rc-dialog-content {
|
||||
position: relative;
|
||||
background-color: #fff;
|
||||
border: 1px solid #999;
|
||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
|
||||
background-clip: padding-box;
|
||||
outline: 0;
|
||||
}
|
||||
.rc-dialog-header {
|
||||
padding: 15px;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
.rc-dialog-close {
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
font-size: 21px;
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: #000;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
filter: alpha(opacity=20);
|
||||
opacity: .2;
|
||||
text-decoration: none;
|
||||
}
|
||||
.rc-dialog-close-x:after {
|
||||
content: '×';
|
||||
}
|
||||
.rc-dialog-close:hover {
|
||||
opacity: 1;
|
||||
filter: alpha(opacity=100);
|
||||
text-decoration: none;
|
||||
}
|
||||
.rc-dialog-title {
|
||||
margin: 0;
|
||||
line-height: 1.42857143;
|
||||
}
|
||||
.rc-dialog-body {
|
||||
position: relative;
|
||||
padding: 15px;
|
||||
}
|
||||
.rc-dialog-footer {
|
||||
padding: 15px;
|
||||
text-align: right;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
}
|
||||
.rc-dialog-footer .btn + .btn {
|
||||
margin-left: 5px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.rc-dialog-footer .btn-group .btn + .btn {
|
||||
margin-left: -1px;
|
||||
}
|
||||
.rc-dialog-footer .btn-block + .btn-block {
|
||||
margin-left: 0;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.rc-dialog {
|
||||
width: 600px;
|
||||
margin: 30px auto;
|
||||
}
|
||||
.rc-dialog-content {
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
}
|
||||
.rc-dialog-slide-fade-enter,
|
||||
.rc-dialog-slide-fade-appear {
|
||||
transform: translate(0, -25%);
|
||||
}
|
||||
.rc-dialog-slide-fade-enter,
|
||||
.rc-dialog-slide-fade-appear,
|
||||
.rc-dialog-slide-fade-leave {
|
||||
animation-duration: .3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: ease-out;
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-slide-fade-enter.rc-dialog-slide-fade-enter-active,
|
||||
.rc-dialog-slide-fade-appear.rc-dialog-slide-fade-appear-active {
|
||||
animation-name: rcDialogSlideFadeIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
.rc-dialog-slide-fade-leave.rc-dialog-slide-fade-leave-active {
|
||||
animation-name: rcDialogSlideFadeOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
@keyframes rcDialogSlideFadeIn {
|
||||
0% {
|
||||
transform: translate(0, -25%);
|
||||
}
|
||||
100% {
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
}
|
||||
@keyframes rcDialogSlideFadeOut {
|
||||
0% {
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
100% {
|
||||
transform: translate(0, -25%);
|
||||
}
|
||||
}
|
||||
.rc-dialog-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
background-color: #373737;
|
||||
background-color: rgba(55, 55, 55, 0.6);
|
||||
height: 100%;
|
||||
filter: alpha(opacity=50);
|
||||
z-index: 1050;
|
||||
}
|
||||
.rc-dialog-mask-hidden {
|
||||
display: none;
|
||||
}
|
||||
.rc-dialog-fade-enter,
|
||||
.rc-dialog-fade-appear {
|
||||
opacity: 0;
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-fade-leave {
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-fade-enter.rc-dialog-fade-enter-active,
|
||||
.rc-dialog-fade-appear.rc-dialog-fade-appear-active {
|
||||
animation-name: rcDialogFadeIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
.rc-dialog-fade-leave.rc-dialog-fade-leave-active {
|
||||
animation-name: rcDialogFadeOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
@keyframes rcDialogFadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@keyframes rcDialogFadeOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
171
web/node_modules/rc-dialog/assets/index.css
generated
vendored
Normal file
171
web/node_modules/rc-dialog/assets/index.css
generated
vendored
Normal file
@@ -0,0 +1,171 @@
|
||||
.rc-dialog {
|
||||
position: relative;
|
||||
width: auto;
|
||||
margin: 10px;
|
||||
}
|
||||
.rc-dialog-wrap {
|
||||
position: fixed;
|
||||
overflow: auto;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 1050;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
outline: 0;
|
||||
}
|
||||
.rc-dialog-title {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.rc-dialog-content {
|
||||
position: relative;
|
||||
background-color: #ffffff;
|
||||
border: none;
|
||||
border-radius: 6px 6px;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
.rc-dialog-close {
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
font-size: 21px;
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: #000;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
filter: alpha(opacity=20);
|
||||
opacity: .2;
|
||||
text-decoration: none;
|
||||
}
|
||||
.rc-dialog-close-x:after {
|
||||
content: '×';
|
||||
}
|
||||
.rc-dialog-close:hover {
|
||||
opacity: 1;
|
||||
filter: alpha(opacity=100);
|
||||
text-decoration: none;
|
||||
}
|
||||
.rc-dialog-header {
|
||||
padding: 13px 20px 14px 20px;
|
||||
border-radius: 5px 5px 0 0;
|
||||
background: #fff;
|
||||
color: #666;
|
||||
border-bottom: 1px solid #e9e9e9;
|
||||
}
|
||||
.rc-dialog-body {
|
||||
padding: 20px;
|
||||
}
|
||||
.rc-dialog-footer {
|
||||
border-top: 1px solid #e9e9e9;
|
||||
padding: 10px 20px;
|
||||
text-align: right;
|
||||
border-radius: 0 0 5px 5px;
|
||||
}
|
||||
.rc-dialog-zoom-enter,
|
||||
.rc-dialog-zoom-appear {
|
||||
opacity: 0;
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-zoom-leave {
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-zoom-enter.rc-dialog-zoom-enter-active,
|
||||
.rc-dialog-zoom-appear.rc-dialog-zoom-appear-active {
|
||||
animation-name: rcDialogZoomIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
.rc-dialog-zoom-leave.rc-dialog-zoom-leave-active {
|
||||
animation-name: rcDialogZoomOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
@keyframes rcDialogZoomIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0, 0);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
}
|
||||
@keyframes rcDialogZoomOut {
|
||||
0% {
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: scale(0, 0);
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.rc-dialog {
|
||||
width: 600px;
|
||||
margin: 30px auto;
|
||||
}
|
||||
}
|
||||
.rc-dialog-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
background-color: #373737;
|
||||
background-color: rgba(55, 55, 55, 0.6);
|
||||
height: 100%;
|
||||
filter: alpha(opacity=50);
|
||||
z-index: 1050;
|
||||
}
|
||||
.rc-dialog-mask-hidden {
|
||||
display: none;
|
||||
}
|
||||
.rc-dialog-fade-enter,
|
||||
.rc-dialog-fade-appear {
|
||||
opacity: 0;
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-fade-leave {
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-fade-enter.rc-dialog-fade-enter-active,
|
||||
.rc-dialog-fade-appear.rc-dialog-fade-appear-active {
|
||||
animation-name: rcDialogFadeIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
.rc-dialog-fade-leave.rc-dialog-fade-leave-active {
|
||||
animation-name: rcDialogFadeOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
@keyframes rcDialogFadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@keyframes rcDialogFadeOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
179
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.css
generated
vendored
Normal file
179
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.css
generated
vendored
Normal file
@@ -0,0 +1,179 @@
|
||||
.rc-dialog {
|
||||
position: relative;
|
||||
width: auto;
|
||||
margin: 10px;
|
||||
}
|
||||
.rc-dialog-wrap {
|
||||
position: fixed;
|
||||
overflow: auto;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 1050;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
outline: 0;
|
||||
}
|
||||
.rc-dialog-content {
|
||||
position: relative;
|
||||
background-color: #fff;
|
||||
border: 1px solid #999;
|
||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
|
||||
background-clip: padding-box;
|
||||
outline: 0;
|
||||
}
|
||||
.rc-dialog-header {
|
||||
padding: 15px;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
.rc-dialog-close {
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
font-size: 21px;
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: #000;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
filter: alpha(opacity=20);
|
||||
opacity: .2;
|
||||
text-decoration: none;
|
||||
}
|
||||
.rc-dialog-close-x:after {
|
||||
content: '\D7';
|
||||
}
|
||||
.rc-dialog-close:hover {
|
||||
opacity: 1;
|
||||
filter: alpha(opacity=100);
|
||||
text-decoration: none;
|
||||
}
|
||||
.rc-dialog-title {
|
||||
margin: 0;
|
||||
line-height: 1.42857143;
|
||||
}
|
||||
.rc-dialog-body {
|
||||
position: relative;
|
||||
padding: 15px;
|
||||
}
|
||||
.rc-dialog-footer {
|
||||
padding: 15px;
|
||||
text-align: right;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
}
|
||||
.rc-dialog-footer .btn + .btn {
|
||||
margin-left: 5px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.rc-dialog-footer .btn-group .btn + .btn {
|
||||
margin-left: -1px;
|
||||
}
|
||||
.rc-dialog-footer .btn-block + .btn-block {
|
||||
margin-left: 0;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.rc-dialog {
|
||||
width: 600px;
|
||||
margin: 30px auto;
|
||||
}
|
||||
.rc-dialog-content {
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
}
|
||||
.rc-dialog-slide-fade-enter,
|
||||
.rc-dialog-slide-fade-appear {
|
||||
transform: translate(0, -25%);
|
||||
}
|
||||
.rc-dialog-slide-fade-enter,
|
||||
.rc-dialog-slide-fade-appear,
|
||||
.rc-dialog-slide-fade-leave {
|
||||
animation-duration: .3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: ease-out;
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-slide-fade-enter.rc-dialog-slide-fade-enter-active,
|
||||
.rc-dialog-slide-fade-appear.rc-dialog-slide-fade-appear-active {
|
||||
animation-name: rcDialogSlideFadeIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
.rc-dialog-slide-fade-leave.rc-dialog-slide-fade-leave-active {
|
||||
animation-name: rcDialogSlideFadeOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
@keyframes rcDialogSlideFadeIn {
|
||||
0% {
|
||||
transform: translate(0, -25%);
|
||||
}
|
||||
100% {
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
}
|
||||
@keyframes rcDialogSlideFadeOut {
|
||||
0% {
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
100% {
|
||||
transform: translate(0, -25%);
|
||||
}
|
||||
}
|
||||
.rc-dialog-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
background-color: #373737;
|
||||
background-color: rgba(55, 55, 55, 0.6);
|
||||
height: 100%;
|
||||
filter: alpha(opacity=50);
|
||||
z-index: 1050;
|
||||
}
|
||||
.rc-dialog-mask-hidden {
|
||||
display: none;
|
||||
}
|
||||
.rc-dialog-fade-enter,
|
||||
.rc-dialog-fade-appear {
|
||||
opacity: 0;
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-fade-leave {
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-fade-enter.rc-dialog-fade-enter-active,
|
||||
.rc-dialog-fade-appear.rc-dialog-fade-appear-active {
|
||||
animation-name: rcDialogFadeIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
.rc-dialog-fade-leave.rc-dialog-fade-leave-active {
|
||||
animation-name: rcDialogFadeOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
@keyframes rcDialogFadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@keyframes rcDialogFadeOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=rc-dialog-bootstrap.css.map*/
|
||||
1
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.css.map
generated
vendored
Normal file
1
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.css.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6235
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.js
generated
vendored
Normal file
6235
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.js.map
generated
vendored
Normal file
1
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
179
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.min.css
generated
vendored
Normal file
179
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.min.css
generated
vendored
Normal file
@@ -0,0 +1,179 @@
|
||||
.rc-dialog {
|
||||
position: relative;
|
||||
width: auto;
|
||||
margin: 10px;
|
||||
}
|
||||
.rc-dialog-wrap {
|
||||
position: fixed;
|
||||
overflow: auto;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 1050;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
outline: 0;
|
||||
}
|
||||
.rc-dialog-content {
|
||||
position: relative;
|
||||
background-color: #fff;
|
||||
border: 1px solid #999;
|
||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
|
||||
background-clip: padding-box;
|
||||
outline: 0;
|
||||
}
|
||||
.rc-dialog-header {
|
||||
padding: 15px;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
.rc-dialog-close {
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
font-size: 21px;
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: #000;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
filter: alpha(opacity=20);
|
||||
opacity: .2;
|
||||
text-decoration: none;
|
||||
}
|
||||
.rc-dialog-close-x:after {
|
||||
content: '\D7';
|
||||
}
|
||||
.rc-dialog-close:hover {
|
||||
opacity: 1;
|
||||
filter: alpha(opacity=100);
|
||||
text-decoration: none;
|
||||
}
|
||||
.rc-dialog-title {
|
||||
margin: 0;
|
||||
line-height: 1.42857143;
|
||||
}
|
||||
.rc-dialog-body {
|
||||
position: relative;
|
||||
padding: 15px;
|
||||
}
|
||||
.rc-dialog-footer {
|
||||
padding: 15px;
|
||||
text-align: right;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
}
|
||||
.rc-dialog-footer .btn + .btn {
|
||||
margin-left: 5px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.rc-dialog-footer .btn-group .btn + .btn {
|
||||
margin-left: -1px;
|
||||
}
|
||||
.rc-dialog-footer .btn-block + .btn-block {
|
||||
margin-left: 0;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.rc-dialog {
|
||||
width: 600px;
|
||||
margin: 30px auto;
|
||||
}
|
||||
.rc-dialog-content {
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
}
|
||||
.rc-dialog-slide-fade-enter,
|
||||
.rc-dialog-slide-fade-appear {
|
||||
transform: translate(0, -25%);
|
||||
}
|
||||
.rc-dialog-slide-fade-enter,
|
||||
.rc-dialog-slide-fade-appear,
|
||||
.rc-dialog-slide-fade-leave {
|
||||
animation-duration: .3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: ease-out;
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-slide-fade-enter.rc-dialog-slide-fade-enter-active,
|
||||
.rc-dialog-slide-fade-appear.rc-dialog-slide-fade-appear-active {
|
||||
animation-name: rcDialogSlideFadeIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
.rc-dialog-slide-fade-leave.rc-dialog-slide-fade-leave-active {
|
||||
animation-name: rcDialogSlideFadeOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
@keyframes rcDialogSlideFadeIn {
|
||||
0% {
|
||||
transform: translate(0, -25%);
|
||||
}
|
||||
100% {
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
}
|
||||
@keyframes rcDialogSlideFadeOut {
|
||||
0% {
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
100% {
|
||||
transform: translate(0, -25%);
|
||||
}
|
||||
}
|
||||
.rc-dialog-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
background-color: #373737;
|
||||
background-color: rgba(55, 55, 55, 0.6);
|
||||
height: 100%;
|
||||
filter: alpha(opacity=50);
|
||||
z-index: 1050;
|
||||
}
|
||||
.rc-dialog-mask-hidden {
|
||||
display: none;
|
||||
}
|
||||
.rc-dialog-fade-enter,
|
||||
.rc-dialog-fade-appear {
|
||||
opacity: 0;
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-fade-leave {
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-fade-enter.rc-dialog-fade-enter-active,
|
||||
.rc-dialog-fade-appear.rc-dialog-fade-appear-active {
|
||||
animation-name: rcDialogFadeIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
.rc-dialog-fade-leave.rc-dialog-fade-leave-active {
|
||||
animation-name: rcDialogFadeOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
@keyframes rcDialogFadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@keyframes rcDialogFadeOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=rc-dialog-bootstrap.min.css.map*/
|
||||
1
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.min.css.map
generated
vendored
Normal file
1
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.min.css.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.min.js
generated
vendored
Normal file
1
web/node_modules/rc-dialog/dist/rc-dialog-bootstrap.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
173
web/node_modules/rc-dialog/dist/rc-dialog.css
generated
vendored
Normal file
173
web/node_modules/rc-dialog/dist/rc-dialog.css
generated
vendored
Normal file
@@ -0,0 +1,173 @@
|
||||
.rc-dialog {
|
||||
position: relative;
|
||||
width: auto;
|
||||
margin: 10px;
|
||||
}
|
||||
.rc-dialog-wrap {
|
||||
position: fixed;
|
||||
overflow: auto;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 1050;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
outline: 0;
|
||||
}
|
||||
.rc-dialog-title {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.rc-dialog-content {
|
||||
position: relative;
|
||||
background-color: #ffffff;
|
||||
border: none;
|
||||
border-radius: 6px 6px;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
.rc-dialog-close {
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
font-size: 21px;
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: #000;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
filter: alpha(opacity=20);
|
||||
opacity: .2;
|
||||
text-decoration: none;
|
||||
}
|
||||
.rc-dialog-close-x:after {
|
||||
content: '\D7';
|
||||
}
|
||||
.rc-dialog-close:hover {
|
||||
opacity: 1;
|
||||
filter: alpha(opacity=100);
|
||||
text-decoration: none;
|
||||
}
|
||||
.rc-dialog-header {
|
||||
padding: 13px 20px 14px 20px;
|
||||
border-radius: 5px 5px 0 0;
|
||||
background: #fff;
|
||||
color: #666;
|
||||
border-bottom: 1px solid #e9e9e9;
|
||||
}
|
||||
.rc-dialog-body {
|
||||
padding: 20px;
|
||||
}
|
||||
.rc-dialog-footer {
|
||||
border-top: 1px solid #e9e9e9;
|
||||
padding: 10px 20px;
|
||||
text-align: right;
|
||||
border-radius: 0 0 5px 5px;
|
||||
}
|
||||
.rc-dialog-zoom-enter,
|
||||
.rc-dialog-zoom-appear {
|
||||
opacity: 0;
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-zoom-leave {
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-zoom-enter.rc-dialog-zoom-enter-active,
|
||||
.rc-dialog-zoom-appear.rc-dialog-zoom-appear-active {
|
||||
animation-name: rcDialogZoomIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
.rc-dialog-zoom-leave.rc-dialog-zoom-leave-active {
|
||||
animation-name: rcDialogZoomOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
@keyframes rcDialogZoomIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0, 0);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
}
|
||||
@keyframes rcDialogZoomOut {
|
||||
0% {
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: scale(0, 0);
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.rc-dialog {
|
||||
width: 600px;
|
||||
margin: 30px auto;
|
||||
}
|
||||
}
|
||||
.rc-dialog-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
background-color: #373737;
|
||||
background-color: rgba(55, 55, 55, 0.6);
|
||||
height: 100%;
|
||||
filter: alpha(opacity=50);
|
||||
z-index: 1050;
|
||||
}
|
||||
.rc-dialog-mask-hidden {
|
||||
display: none;
|
||||
}
|
||||
.rc-dialog-fade-enter,
|
||||
.rc-dialog-fade-appear {
|
||||
opacity: 0;
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-fade-leave {
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-fade-enter.rc-dialog-fade-enter-active,
|
||||
.rc-dialog-fade-appear.rc-dialog-fade-appear-active {
|
||||
animation-name: rcDialogFadeIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
.rc-dialog-fade-leave.rc-dialog-fade-leave-active {
|
||||
animation-name: rcDialogFadeOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
@keyframes rcDialogFadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@keyframes rcDialogFadeOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=rc-dialog.css.map*/
|
||||
1
web/node_modules/rc-dialog/dist/rc-dialog.css.map
generated
vendored
Normal file
1
web/node_modules/rc-dialog/dist/rc-dialog.css.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6233
web/node_modules/rc-dialog/dist/rc-dialog.js
generated
vendored
Normal file
6233
web/node_modules/rc-dialog/dist/rc-dialog.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
web/node_modules/rc-dialog/dist/rc-dialog.js.map
generated
vendored
Normal file
1
web/node_modules/rc-dialog/dist/rc-dialog.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
173
web/node_modules/rc-dialog/dist/rc-dialog.min.css
generated
vendored
Normal file
173
web/node_modules/rc-dialog/dist/rc-dialog.min.css
generated
vendored
Normal file
@@ -0,0 +1,173 @@
|
||||
.rc-dialog {
|
||||
position: relative;
|
||||
width: auto;
|
||||
margin: 10px;
|
||||
}
|
||||
.rc-dialog-wrap {
|
||||
position: fixed;
|
||||
overflow: auto;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 1050;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
outline: 0;
|
||||
}
|
||||
.rc-dialog-title {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.rc-dialog-content {
|
||||
position: relative;
|
||||
background-color: #ffffff;
|
||||
border: none;
|
||||
border-radius: 6px 6px;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
.rc-dialog-close {
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
font-size: 21px;
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: #000;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
filter: alpha(opacity=20);
|
||||
opacity: .2;
|
||||
text-decoration: none;
|
||||
}
|
||||
.rc-dialog-close-x:after {
|
||||
content: '\D7';
|
||||
}
|
||||
.rc-dialog-close:hover {
|
||||
opacity: 1;
|
||||
filter: alpha(opacity=100);
|
||||
text-decoration: none;
|
||||
}
|
||||
.rc-dialog-header {
|
||||
padding: 13px 20px 14px 20px;
|
||||
border-radius: 5px 5px 0 0;
|
||||
background: #fff;
|
||||
color: #666;
|
||||
border-bottom: 1px solid #e9e9e9;
|
||||
}
|
||||
.rc-dialog-body {
|
||||
padding: 20px;
|
||||
}
|
||||
.rc-dialog-footer {
|
||||
border-top: 1px solid #e9e9e9;
|
||||
padding: 10px 20px;
|
||||
text-align: right;
|
||||
border-radius: 0 0 5px 5px;
|
||||
}
|
||||
.rc-dialog-zoom-enter,
|
||||
.rc-dialog-zoom-appear {
|
||||
opacity: 0;
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-zoom-leave {
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-zoom-enter.rc-dialog-zoom-enter-active,
|
||||
.rc-dialog-zoom-appear.rc-dialog-zoom-appear-active {
|
||||
animation-name: rcDialogZoomIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
.rc-dialog-zoom-leave.rc-dialog-zoom-leave-active {
|
||||
animation-name: rcDialogZoomOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
@keyframes rcDialogZoomIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0, 0);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
}
|
||||
@keyframes rcDialogZoomOut {
|
||||
0% {
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: scale(0, 0);
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.rc-dialog {
|
||||
width: 600px;
|
||||
margin: 30px auto;
|
||||
}
|
||||
}
|
||||
.rc-dialog-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
background-color: #373737;
|
||||
background-color: rgba(55, 55, 55, 0.6);
|
||||
height: 100%;
|
||||
filter: alpha(opacity=50);
|
||||
z-index: 1050;
|
||||
}
|
||||
.rc-dialog-mask-hidden {
|
||||
display: none;
|
||||
}
|
||||
.rc-dialog-fade-enter,
|
||||
.rc-dialog-fade-appear {
|
||||
opacity: 0;
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-fade-leave {
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: both;
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.rc-dialog-fade-enter.rc-dialog-fade-enter-active,
|
||||
.rc-dialog-fade-appear.rc-dialog-fade-appear-active {
|
||||
animation-name: rcDialogFadeIn;
|
||||
animation-play-state: running;
|
||||
}
|
||||
.rc-dialog-fade-leave.rc-dialog-fade-leave-active {
|
||||
animation-name: rcDialogFadeOut;
|
||||
animation-play-state: running;
|
||||
}
|
||||
@keyframes rcDialogFadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@keyframes rcDialogFadeOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=rc-dialog.min.css.map*/
|
||||
1
web/node_modules/rc-dialog/dist/rc-dialog.min.css.map
generated
vendored
Normal file
1
web/node_modules/rc-dialog/dist/rc-dialog.min.css.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
web/node_modules/rc-dialog/dist/rc-dialog.min.js
generated
vendored
Normal file
1
web/node_modules/rc-dialog/dist/rc-dialog.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
50
web/node_modules/rc-dialog/es/Dialog.d.ts
generated
vendored
Normal file
50
web/node_modules/rc-dialog/es/Dialog.d.ts
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
import * as React from 'react';
|
||||
import IDialogPropTypes from './IDialogPropTypes';
|
||||
export interface IDialogChildProps extends IDialogPropTypes {
|
||||
getOpenCount: () => number;
|
||||
switchScrollingEffect?: () => void;
|
||||
}
|
||||
export default class Dialog extends React.Component<IDialogChildProps, any> {
|
||||
static defaultProps: {
|
||||
className: string;
|
||||
mask: boolean;
|
||||
visible: boolean;
|
||||
keyboard: boolean;
|
||||
closable: boolean;
|
||||
maskClosable: boolean;
|
||||
destroyOnClose: boolean;
|
||||
prefixCls: string;
|
||||
focusTriggerAfterClose: boolean;
|
||||
};
|
||||
private inTransition;
|
||||
private titleId;
|
||||
private openTime;
|
||||
private lastOutSideFocusNode;
|
||||
private wrap;
|
||||
private dialog;
|
||||
private sentinelStart;
|
||||
private sentinelEnd;
|
||||
private dialogMouseDown;
|
||||
private timeoutId;
|
||||
private switchScrollingEffect;
|
||||
constructor(props: IDialogChildProps);
|
||||
componentDidMount(): void;
|
||||
componentDidUpdate(prevProps: IDialogPropTypes): void;
|
||||
componentWillUnmount(): void;
|
||||
tryFocus(): void;
|
||||
onAnimateLeave: () => void;
|
||||
onDialogMouseDown: () => void;
|
||||
onMaskMouseUp: React.MouseEventHandler<HTMLDivElement>;
|
||||
onMaskClick: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
||||
onKeyDown: (e: React.KeyboardEvent<HTMLDivElement>) => void;
|
||||
getDialogElement: () => JSX.Element;
|
||||
getZIndexStyle: () => any;
|
||||
getWrapStyle: () => any;
|
||||
getMaskStyle: () => any;
|
||||
getMaskElement: () => JSX.Element | undefined;
|
||||
getMaskTransitionName: () => string | undefined;
|
||||
getTransitionName: () => string | undefined;
|
||||
close: (e: any) => void;
|
||||
saveRef: (name: string) => (node: any) => void;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
288
web/node_modules/rc-dialog/es/Dialog.js
generated
vendored
Normal file
288
web/node_modules/rc-dialog/es/Dialog.js
generated
vendored
Normal file
@@ -0,0 +1,288 @@
|
||||
import _extends from 'babel-runtime/helpers/extends';
|
||||
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
|
||||
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
||||
import _inherits from 'babel-runtime/helpers/inherits';
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import KeyCode from 'rc-util/es/KeyCode';
|
||||
import contains from 'rc-util/es/Dom/contains';
|
||||
import Animate from 'rc-animate';
|
||||
import LazyRenderBox from './LazyRenderBox';
|
||||
var uuid = 0;
|
||||
/* eslint react/no-is-mounted:0 */
|
||||
function getScroll(w, top) {
|
||||
var ret = w['page' + (top ? 'Y' : 'X') + 'Offset'];
|
||||
var method = 'scroll' + (top ? 'Top' : 'Left');
|
||||
if (typeof ret !== 'number') {
|
||||
var d = w.document;
|
||||
ret = d.documentElement[method];
|
||||
if (typeof ret !== 'number') {
|
||||
ret = d.body[method];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
function setTransformOrigin(node, value) {
|
||||
var style = node.style;
|
||||
['Webkit', 'Moz', 'Ms', 'ms'].forEach(function (prefix) {
|
||||
style[prefix + 'TransformOrigin'] = value;
|
||||
});
|
||||
style['transformOrigin'] = value;
|
||||
}
|
||||
function offset(el) {
|
||||
var rect = el.getBoundingClientRect();
|
||||
var pos = {
|
||||
left: rect.left,
|
||||
top: rect.top
|
||||
};
|
||||
var doc = el.ownerDocument;
|
||||
var w = doc.defaultView || doc.parentWindow;
|
||||
pos.left += getScroll(w);
|
||||
pos.top += getScroll(w, true);
|
||||
return pos;
|
||||
}
|
||||
|
||||
var Dialog = function (_React$Component) {
|
||||
_inherits(Dialog, _React$Component);
|
||||
|
||||
function Dialog(props) {
|
||||
_classCallCheck(this, Dialog);
|
||||
|
||||
var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
|
||||
|
||||
_this.inTransition = false;
|
||||
_this.onAnimateLeave = function () {
|
||||
var afterClose = _this.props.afterClose;
|
||||
// need demo?
|
||||
// https://github.com/react-component/dialog/pull/28
|
||||
|
||||
if (_this.wrap) {
|
||||
_this.wrap.style.display = 'none';
|
||||
}
|
||||
_this.inTransition = false;
|
||||
_this.switchScrollingEffect();
|
||||
if (afterClose) {
|
||||
afterClose();
|
||||
}
|
||||
};
|
||||
_this.onDialogMouseDown = function () {
|
||||
_this.dialogMouseDown = true;
|
||||
};
|
||||
_this.onMaskMouseUp = function () {
|
||||
if (_this.dialogMouseDown) {
|
||||
_this.timeoutId = setTimeout(function () {
|
||||
_this.dialogMouseDown = false;
|
||||
}, 0);
|
||||
}
|
||||
};
|
||||
_this.onMaskClick = function (e) {
|
||||
// android trigger click on open (fastclick??)
|
||||
if (Date.now() - _this.openTime < 300) {
|
||||
return;
|
||||
}
|
||||
if (e.target === e.currentTarget && !_this.dialogMouseDown) {
|
||||
_this.close(e);
|
||||
}
|
||||
};
|
||||
_this.onKeyDown = function (e) {
|
||||
var props = _this.props;
|
||||
if (props.keyboard && e.keyCode === KeyCode.ESC) {
|
||||
e.stopPropagation();
|
||||
_this.close(e);
|
||||
return;
|
||||
}
|
||||
// keep focus inside dialog
|
||||
if (props.visible) {
|
||||
if (e.keyCode === KeyCode.TAB) {
|
||||
var activeElement = document.activeElement;
|
||||
var sentinelStart = _this.sentinelStart;
|
||||
if (e.shiftKey) {
|
||||
if (activeElement === sentinelStart) {
|
||||
_this.sentinelEnd.focus();
|
||||
}
|
||||
} else if (activeElement === _this.sentinelEnd) {
|
||||
sentinelStart.focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
_this.getDialogElement = function () {
|
||||
var props = _this.props;
|
||||
var closable = props.closable;
|
||||
var prefixCls = props.prefixCls;
|
||||
var dest = {};
|
||||
if (props.width !== undefined) {
|
||||
dest.width = props.width;
|
||||
}
|
||||
if (props.height !== undefined) {
|
||||
dest.height = props.height;
|
||||
}
|
||||
var footer = void 0;
|
||||
if (props.footer) {
|
||||
footer = React.createElement("div", { className: prefixCls + '-footer', ref: _this.saveRef('footer') }, props.footer);
|
||||
}
|
||||
var header = void 0;
|
||||
if (props.title) {
|
||||
header = React.createElement("div", { className: prefixCls + '-header', ref: _this.saveRef('header') }, React.createElement("div", { className: prefixCls + '-title', id: _this.titleId }, props.title));
|
||||
}
|
||||
var closer = void 0;
|
||||
if (closable) {
|
||||
closer = React.createElement("button", { type: "button", onClick: _this.close, "aria-label": "Close", className: prefixCls + '-close' }, props.closeIcon || React.createElement("span", { className: prefixCls + '-close-x' }));
|
||||
}
|
||||
var style = _extends({}, props.style, dest);
|
||||
var sentinelStyle = { width: 0, height: 0, overflow: 'hidden', outline: 'none' };
|
||||
var transitionName = _this.getTransitionName();
|
||||
var dialogElement = React.createElement(LazyRenderBox, { key: "dialog-element", role: "document", ref: _this.saveRef('dialog'), style: style, className: prefixCls + ' ' + (props.className || ''), visible: props.visible, forceRender: props.forceRender, onMouseDown: _this.onDialogMouseDown }, React.createElement("div", { tabIndex: 0, ref: _this.saveRef('sentinelStart'), style: sentinelStyle, "aria-hidden": "true" }), React.createElement("div", { className: prefixCls + '-content' }, closer, header, React.createElement("div", _extends({ className: prefixCls + '-body', style: props.bodyStyle, ref: _this.saveRef('body') }, props.bodyProps), props.children), footer), React.createElement("div", { tabIndex: 0, ref: _this.saveRef('sentinelEnd'), style: sentinelStyle, "aria-hidden": "true" }));
|
||||
return React.createElement(Animate, { key: "dialog", showProp: "visible", onLeave: _this.onAnimateLeave, transitionName: transitionName, component: "", transitionAppear: true }, props.visible || !props.destroyOnClose ? dialogElement : null);
|
||||
};
|
||||
_this.getZIndexStyle = function () {
|
||||
var style = {};
|
||||
var props = _this.props;
|
||||
if (props.zIndex !== undefined) {
|
||||
style.zIndex = props.zIndex;
|
||||
}
|
||||
return style;
|
||||
};
|
||||
_this.getWrapStyle = function () {
|
||||
return _extends({}, _this.getZIndexStyle(), _this.props.wrapStyle);
|
||||
};
|
||||
_this.getMaskStyle = function () {
|
||||
return _extends({}, _this.getZIndexStyle(), _this.props.maskStyle);
|
||||
};
|
||||
_this.getMaskElement = function () {
|
||||
var props = _this.props;
|
||||
var maskElement = void 0;
|
||||
if (props.mask) {
|
||||
var maskTransition = _this.getMaskTransitionName();
|
||||
maskElement = React.createElement(LazyRenderBox, _extends({ style: _this.getMaskStyle(), key: "mask", className: props.prefixCls + '-mask', hiddenClassName: props.prefixCls + '-mask-hidden', visible: props.visible }, props.maskProps));
|
||||
if (maskTransition) {
|
||||
maskElement = React.createElement(Animate, { key: "mask", showProp: "visible", transitionAppear: true, component: "", transitionName: maskTransition }, maskElement);
|
||||
}
|
||||
}
|
||||
return maskElement;
|
||||
};
|
||||
_this.getMaskTransitionName = function () {
|
||||
var props = _this.props;
|
||||
var transitionName = props.maskTransitionName;
|
||||
var animation = props.maskAnimation;
|
||||
if (!transitionName && animation) {
|
||||
transitionName = props.prefixCls + '-' + animation;
|
||||
}
|
||||
return transitionName;
|
||||
};
|
||||
_this.getTransitionName = function () {
|
||||
var props = _this.props;
|
||||
var transitionName = props.transitionName;
|
||||
var animation = props.animation;
|
||||
if (!transitionName && animation) {
|
||||
transitionName = props.prefixCls + '-' + animation;
|
||||
}
|
||||
return transitionName;
|
||||
};
|
||||
_this.close = function (e) {
|
||||
var onClose = _this.props.onClose;
|
||||
|
||||
if (onClose) {
|
||||
onClose(e);
|
||||
}
|
||||
};
|
||||
_this.saveRef = function (name) {
|
||||
return function (node) {
|
||||
_this[name] = node;
|
||||
};
|
||||
};
|
||||
_this.titleId = 'rcDialogTitle' + uuid++;
|
||||
_this.switchScrollingEffect = props.switchScrollingEffect || function () {};
|
||||
return _this;
|
||||
}
|
||||
|
||||
Dialog.prototype.componentDidMount = function componentDidMount() {
|
||||
this.componentDidUpdate({});
|
||||
// if forceRender is true, set element style display to be none;
|
||||
if ((this.props.forceRender || this.props.getContainer === false && !this.props.visible) && this.wrap) {
|
||||
this.wrap.style.display = 'none';
|
||||
}
|
||||
};
|
||||
|
||||
Dialog.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
|
||||
var _props = this.props,
|
||||
visible = _props.visible,
|
||||
mask = _props.mask,
|
||||
focusTriggerAfterClose = _props.focusTriggerAfterClose;
|
||||
|
||||
var mousePosition = this.props.mousePosition;
|
||||
if (visible) {
|
||||
// first show
|
||||
if (!prevProps.visible) {
|
||||
this.openTime = Date.now();
|
||||
this.switchScrollingEffect();
|
||||
this.tryFocus();
|
||||
var dialogNode = ReactDOM.findDOMNode(this.dialog);
|
||||
if (mousePosition) {
|
||||
var elOffset = offset(dialogNode);
|
||||
setTransformOrigin(dialogNode, mousePosition.x - elOffset.left + 'px ' + (mousePosition.y - elOffset.top) + 'px');
|
||||
} else {
|
||||
setTransformOrigin(dialogNode, '');
|
||||
}
|
||||
}
|
||||
} else if (prevProps.visible) {
|
||||
this.inTransition = true;
|
||||
if (mask && this.lastOutSideFocusNode && focusTriggerAfterClose) {
|
||||
try {
|
||||
this.lastOutSideFocusNode.focus();
|
||||
} catch (e) {
|
||||
this.lastOutSideFocusNode = null;
|
||||
}
|
||||
this.lastOutSideFocusNode = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Dialog.prototype.componentWillUnmount = function componentWillUnmount() {
|
||||
var _props2 = this.props,
|
||||
visible = _props2.visible,
|
||||
getOpenCount = _props2.getOpenCount;
|
||||
|
||||
if ((visible || this.inTransition) && !getOpenCount()) {
|
||||
this.switchScrollingEffect();
|
||||
}
|
||||
clearTimeout(this.timeoutId);
|
||||
};
|
||||
|
||||
Dialog.prototype.tryFocus = function tryFocus() {
|
||||
if (!contains(this.wrap, document.activeElement)) {
|
||||
this.lastOutSideFocusNode = document.activeElement;
|
||||
this.sentinelStart.focus();
|
||||
}
|
||||
};
|
||||
|
||||
Dialog.prototype.render = function render() {
|
||||
var props = this.props;
|
||||
var prefixCls = props.prefixCls,
|
||||
maskClosable = props.maskClosable;
|
||||
|
||||
var style = this.getWrapStyle();
|
||||
// clear hide display
|
||||
// and only set display after async anim, not here for hide
|
||||
if (props.visible) {
|
||||
style.display = null;
|
||||
}
|
||||
return React.createElement("div", { className: prefixCls + '-root' }, this.getMaskElement(), React.createElement("div", _extends({ tabIndex: -1, onKeyDown: this.onKeyDown, className: prefixCls + '-wrap ' + (props.wrapClassName || ''), ref: this.saveRef('wrap'), onClick: maskClosable ? this.onMaskClick : null, onMouseUp: maskClosable ? this.onMaskMouseUp : null, role: "dialog", "aria-labelledby": props.title ? this.titleId : null, style: style }, props.wrapProps), this.getDialogElement()));
|
||||
};
|
||||
|
||||
return Dialog;
|
||||
}(React.Component);
|
||||
|
||||
export default Dialog;
|
||||
|
||||
Dialog.defaultProps = {
|
||||
className: '',
|
||||
mask: true,
|
||||
visible: false,
|
||||
keyboard: true,
|
||||
closable: true,
|
||||
maskClosable: true,
|
||||
destroyOnClose: false,
|
||||
prefixCls: 'rc-dialog',
|
||||
focusTriggerAfterClose: true
|
||||
};
|
||||
4
web/node_modules/rc-dialog/es/DialogWrap.d.ts
generated
vendored
Normal file
4
web/node_modules/rc-dialog/es/DialogWrap.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/// <reference types="react" />
|
||||
import IDialogPropTypes from './IDialogPropTypes';
|
||||
declare const _default: (props: IDialogPropTypes) => JSX.Element;
|
||||
export default _default;
|
||||
27
web/node_modules/rc-dialog/es/DialogWrap.js
generated
vendored
Normal file
27
web/node_modules/rc-dialog/es/DialogWrap.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import _extends from 'babel-runtime/helpers/extends';
|
||||
import * as React from 'react';
|
||||
import Dialog from './Dialog';
|
||||
import Portal from 'rc-util/es/PortalWrapper';
|
||||
// fix issue #10656
|
||||
/*
|
||||
* getContainer remarks
|
||||
* Custom container should not be return, because in the Portal component, it will remove the
|
||||
* return container element here, if the custom container is the only child of it's component,
|
||||
* like issue #10656, It will has a conflict with removeChild method in react-dom.
|
||||
* So here should add a child (div element) to custom container.
|
||||
* */
|
||||
export default (function (props) {
|
||||
var visible = props.visible,
|
||||
getContainer = props.getContainer,
|
||||
forceRender = props.forceRender;
|
||||
// 渲染在当前 dom 里;
|
||||
|
||||
if (getContainer === false) {
|
||||
return React.createElement(Dialog, _extends({}, props, { getOpenCount: function getOpenCount() {
|
||||
return 2;
|
||||
} }));
|
||||
}
|
||||
return React.createElement(Portal, { visible: visible, forceRender: forceRender, getContainer: getContainer }, function (childProps) {
|
||||
return React.createElement(Dialog, _extends({}, props, childProps));
|
||||
});
|
||||
});
|
||||
41
web/node_modules/rc-dialog/es/IDialogPropTypes.d.ts
generated
vendored
Normal file
41
web/node_modules/rc-dialog/es/IDialogPropTypes.d.ts
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
import { ReactNode, CSSProperties, SyntheticEvent } from 'react';
|
||||
declare type IStringOrHtmlElement = string | HTMLElement;
|
||||
interface IDialogPropTypes {
|
||||
className?: string;
|
||||
keyboard?: boolean;
|
||||
style?: CSSProperties;
|
||||
mask?: boolean;
|
||||
children?: any;
|
||||
afterClose?: () => any;
|
||||
onClose?: (e: SyntheticEvent<HTMLDivElement>) => any;
|
||||
closable?: boolean;
|
||||
maskClosable?: boolean;
|
||||
visible?: boolean;
|
||||
destroyOnClose?: boolean;
|
||||
mousePosition?: {
|
||||
x: number;
|
||||
y: number;
|
||||
};
|
||||
title?: ReactNode;
|
||||
footer?: ReactNode;
|
||||
transitionName?: string;
|
||||
maskTransitionName?: string;
|
||||
animation?: any;
|
||||
maskAnimation?: any;
|
||||
wrapStyle?: {};
|
||||
bodyStyle?: {};
|
||||
maskStyle?: {};
|
||||
prefixCls?: string;
|
||||
wrapClassName?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
zIndex?: number;
|
||||
bodyProps?: any;
|
||||
maskProps?: any;
|
||||
wrapProps?: any;
|
||||
getContainer?: IStringOrHtmlElement | (() => IStringOrHtmlElement) | false;
|
||||
closeIcon?: ReactNode;
|
||||
forceRender?: boolean;
|
||||
focusTriggerAfterClose?: boolean;
|
||||
}
|
||||
export default IDialogPropTypes;
|
||||
0
web/node_modules/rc-dialog/es/IDialogPropTypes.js
generated
vendored
Normal file
0
web/node_modules/rc-dialog/es/IDialogPropTypes.js
generated
vendored
Normal file
14
web/node_modules/rc-dialog/es/LazyRenderBox.d.ts
generated
vendored
Normal file
14
web/node_modules/rc-dialog/es/LazyRenderBox.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as React from 'react';
|
||||
export interface ILazyRenderBoxPropTypes {
|
||||
className?: string;
|
||||
visible?: boolean;
|
||||
hiddenClassName?: string;
|
||||
role?: string;
|
||||
style?: {};
|
||||
forceRender?: boolean;
|
||||
onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
|
||||
}
|
||||
export default class LazyRenderBox extends React.Component<ILazyRenderBoxPropTypes, any> {
|
||||
shouldComponentUpdate(nextProps: ILazyRenderBoxPropTypes): boolean;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
48
web/node_modules/rc-dialog/es/LazyRenderBox.js
generated
vendored
Normal file
48
web/node_modules/rc-dialog/es/LazyRenderBox.js
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
import _extends from "babel-runtime/helpers/extends";
|
||||
import _classCallCheck from "babel-runtime/helpers/classCallCheck";
|
||||
import _possibleConstructorReturn from "babel-runtime/helpers/possibleConstructorReturn";
|
||||
import _inherits from "babel-runtime/helpers/inherits";
|
||||
var __rest = this && this.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) {
|
||||
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
}if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];
|
||||
}return t;
|
||||
};
|
||||
import * as React from 'react';
|
||||
|
||||
var LazyRenderBox = function (_React$Component) {
|
||||
_inherits(LazyRenderBox, _React$Component);
|
||||
|
||||
function LazyRenderBox() {
|
||||
_classCallCheck(this, LazyRenderBox);
|
||||
|
||||
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
||||
}
|
||||
|
||||
LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
|
||||
if (nextProps.forceRender) {
|
||||
return true;
|
||||
}
|
||||
return !!nextProps.hiddenClassName || !!nextProps.visible;
|
||||
};
|
||||
|
||||
LazyRenderBox.prototype.render = function render() {
|
||||
var _a = this.props,
|
||||
className = _a.className,
|
||||
hiddenClassName = _a.hiddenClassName,
|
||||
visible = _a.visible,
|
||||
forceRender = _a.forceRender,
|
||||
restProps = __rest(_a, ["className", "hiddenClassName", "visible", "forceRender"]);
|
||||
var useClassName = className;
|
||||
if (!!hiddenClassName && !visible) {
|
||||
useClassName += " " + hiddenClassName;
|
||||
}
|
||||
return React.createElement("div", _extends({}, restProps, { className: useClassName }));
|
||||
};
|
||||
|
||||
return LazyRenderBox;
|
||||
}(React.Component);
|
||||
|
||||
export default LazyRenderBox;
|
||||
50
web/node_modules/rc-dialog/lib/Dialog.d.ts
generated
vendored
Normal file
50
web/node_modules/rc-dialog/lib/Dialog.d.ts
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
import * as React from 'react';
|
||||
import IDialogPropTypes from './IDialogPropTypes';
|
||||
export interface IDialogChildProps extends IDialogPropTypes {
|
||||
getOpenCount: () => number;
|
||||
switchScrollingEffect?: () => void;
|
||||
}
|
||||
export default class Dialog extends React.Component<IDialogChildProps, any> {
|
||||
static defaultProps: {
|
||||
className: string;
|
||||
mask: boolean;
|
||||
visible: boolean;
|
||||
keyboard: boolean;
|
||||
closable: boolean;
|
||||
maskClosable: boolean;
|
||||
destroyOnClose: boolean;
|
||||
prefixCls: string;
|
||||
focusTriggerAfterClose: boolean;
|
||||
};
|
||||
private inTransition;
|
||||
private titleId;
|
||||
private openTime;
|
||||
private lastOutSideFocusNode;
|
||||
private wrap;
|
||||
private dialog;
|
||||
private sentinelStart;
|
||||
private sentinelEnd;
|
||||
private dialogMouseDown;
|
||||
private timeoutId;
|
||||
private switchScrollingEffect;
|
||||
constructor(props: IDialogChildProps);
|
||||
componentDidMount(): void;
|
||||
componentDidUpdate(prevProps: IDialogPropTypes): void;
|
||||
componentWillUnmount(): void;
|
||||
tryFocus(): void;
|
||||
onAnimateLeave: () => void;
|
||||
onDialogMouseDown: () => void;
|
||||
onMaskMouseUp: React.MouseEventHandler<HTMLDivElement>;
|
||||
onMaskClick: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
||||
onKeyDown: (e: React.KeyboardEvent<HTMLDivElement>) => void;
|
||||
getDialogElement: () => JSX.Element;
|
||||
getZIndexStyle: () => any;
|
||||
getWrapStyle: () => any;
|
||||
getMaskStyle: () => any;
|
||||
getMaskElement: () => JSX.Element | undefined;
|
||||
getMaskTransitionName: () => string | undefined;
|
||||
getTransitionName: () => string | undefined;
|
||||
close: (e: any) => void;
|
||||
saveRef: (name: string) => (node: any) => void;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
327
web/node_modules/rc-dialog/lib/Dialog.js
generated
vendored
Normal file
327
web/node_modules/rc-dialog/lib/Dialog.js
generated
vendored
Normal file
@@ -0,0 +1,327 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _extends2 = require('babel-runtime/helpers/extends');
|
||||
|
||||
var _extends3 = _interopRequireDefault(_extends2);
|
||||
|
||||
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
||||
|
||||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
||||
|
||||
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
|
||||
|
||||
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
||||
|
||||
var _inherits2 = require('babel-runtime/helpers/inherits');
|
||||
|
||||
var _inherits3 = _interopRequireDefault(_inherits2);
|
||||
|
||||
var _react = require('react');
|
||||
|
||||
var React = _interopRequireWildcard(_react);
|
||||
|
||||
var _reactDom = require('react-dom');
|
||||
|
||||
var ReactDOM = _interopRequireWildcard(_reactDom);
|
||||
|
||||
var _KeyCode = require('rc-util/lib/KeyCode');
|
||||
|
||||
var _KeyCode2 = _interopRequireDefault(_KeyCode);
|
||||
|
||||
var _contains = require('rc-util/lib/Dom/contains');
|
||||
|
||||
var _contains2 = _interopRequireDefault(_contains);
|
||||
|
||||
var _rcAnimate = require('rc-animate');
|
||||
|
||||
var _rcAnimate2 = _interopRequireDefault(_rcAnimate);
|
||||
|
||||
var _LazyRenderBox = require('./LazyRenderBox');
|
||||
|
||||
var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
||||
|
||||
var uuid = 0;
|
||||
/* eslint react/no-is-mounted:0 */
|
||||
function getScroll(w, top) {
|
||||
var ret = w['page' + (top ? 'Y' : 'X') + 'Offset'];
|
||||
var method = 'scroll' + (top ? 'Top' : 'Left');
|
||||
if (typeof ret !== 'number') {
|
||||
var d = w.document;
|
||||
ret = d.documentElement[method];
|
||||
if (typeof ret !== 'number') {
|
||||
ret = d.body[method];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
function setTransformOrigin(node, value) {
|
||||
var style = node.style;
|
||||
['Webkit', 'Moz', 'Ms', 'ms'].forEach(function (prefix) {
|
||||
style[prefix + 'TransformOrigin'] = value;
|
||||
});
|
||||
style['transformOrigin'] = value;
|
||||
}
|
||||
function offset(el) {
|
||||
var rect = el.getBoundingClientRect();
|
||||
var pos = {
|
||||
left: rect.left,
|
||||
top: rect.top
|
||||
};
|
||||
var doc = el.ownerDocument;
|
||||
var w = doc.defaultView || doc.parentWindow;
|
||||
pos.left += getScroll(w);
|
||||
pos.top += getScroll(w, true);
|
||||
return pos;
|
||||
}
|
||||
|
||||
var Dialog = function (_React$Component) {
|
||||
(0, _inherits3['default'])(Dialog, _React$Component);
|
||||
|
||||
function Dialog(props) {
|
||||
(0, _classCallCheck3['default'])(this, Dialog);
|
||||
|
||||
var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props));
|
||||
|
||||
_this.inTransition = false;
|
||||
_this.onAnimateLeave = function () {
|
||||
var afterClose = _this.props.afterClose;
|
||||
// need demo?
|
||||
// https://github.com/react-component/dialog/pull/28
|
||||
|
||||
if (_this.wrap) {
|
||||
_this.wrap.style.display = 'none';
|
||||
}
|
||||
_this.inTransition = false;
|
||||
_this.switchScrollingEffect();
|
||||
if (afterClose) {
|
||||
afterClose();
|
||||
}
|
||||
};
|
||||
_this.onDialogMouseDown = function () {
|
||||
_this.dialogMouseDown = true;
|
||||
};
|
||||
_this.onMaskMouseUp = function () {
|
||||
if (_this.dialogMouseDown) {
|
||||
_this.timeoutId = setTimeout(function () {
|
||||
_this.dialogMouseDown = false;
|
||||
}, 0);
|
||||
}
|
||||
};
|
||||
_this.onMaskClick = function (e) {
|
||||
// android trigger click on open (fastclick??)
|
||||
if (Date.now() - _this.openTime < 300) {
|
||||
return;
|
||||
}
|
||||
if (e.target === e.currentTarget && !_this.dialogMouseDown) {
|
||||
_this.close(e);
|
||||
}
|
||||
};
|
||||
_this.onKeyDown = function (e) {
|
||||
var props = _this.props;
|
||||
if (props.keyboard && e.keyCode === _KeyCode2['default'].ESC) {
|
||||
e.stopPropagation();
|
||||
_this.close(e);
|
||||
return;
|
||||
}
|
||||
// keep focus inside dialog
|
||||
if (props.visible) {
|
||||
if (e.keyCode === _KeyCode2['default'].TAB) {
|
||||
var activeElement = document.activeElement;
|
||||
var sentinelStart = _this.sentinelStart;
|
||||
if (e.shiftKey) {
|
||||
if (activeElement === sentinelStart) {
|
||||
_this.sentinelEnd.focus();
|
||||
}
|
||||
} else if (activeElement === _this.sentinelEnd) {
|
||||
sentinelStart.focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
_this.getDialogElement = function () {
|
||||
var props = _this.props;
|
||||
var closable = props.closable;
|
||||
var prefixCls = props.prefixCls;
|
||||
var dest = {};
|
||||
if (props.width !== undefined) {
|
||||
dest.width = props.width;
|
||||
}
|
||||
if (props.height !== undefined) {
|
||||
dest.height = props.height;
|
||||
}
|
||||
var footer = void 0;
|
||||
if (props.footer) {
|
||||
footer = React.createElement("div", { className: prefixCls + '-footer', ref: _this.saveRef('footer') }, props.footer);
|
||||
}
|
||||
var header = void 0;
|
||||
if (props.title) {
|
||||
header = React.createElement("div", { className: prefixCls + '-header', ref: _this.saveRef('header') }, React.createElement("div", { className: prefixCls + '-title', id: _this.titleId }, props.title));
|
||||
}
|
||||
var closer = void 0;
|
||||
if (closable) {
|
||||
closer = React.createElement("button", { type: "button", onClick: _this.close, "aria-label": "Close", className: prefixCls + '-close' }, props.closeIcon || React.createElement("span", { className: prefixCls + '-close-x' }));
|
||||
}
|
||||
var style = (0, _extends3['default'])({}, props.style, dest);
|
||||
var sentinelStyle = { width: 0, height: 0, overflow: 'hidden', outline: 'none' };
|
||||
var transitionName = _this.getTransitionName();
|
||||
var dialogElement = React.createElement(_LazyRenderBox2['default'], { key: "dialog-element", role: "document", ref: _this.saveRef('dialog'), style: style, className: prefixCls + ' ' + (props.className || ''), visible: props.visible, forceRender: props.forceRender, onMouseDown: _this.onDialogMouseDown }, React.createElement("div", { tabIndex: 0, ref: _this.saveRef('sentinelStart'), style: sentinelStyle, "aria-hidden": "true" }), React.createElement("div", { className: prefixCls + '-content' }, closer, header, React.createElement("div", (0, _extends3['default'])({ className: prefixCls + '-body', style: props.bodyStyle, ref: _this.saveRef('body') }, props.bodyProps), props.children), footer), React.createElement("div", { tabIndex: 0, ref: _this.saveRef('sentinelEnd'), style: sentinelStyle, "aria-hidden": "true" }));
|
||||
return React.createElement(_rcAnimate2['default'], { key: "dialog", showProp: "visible", onLeave: _this.onAnimateLeave, transitionName: transitionName, component: "", transitionAppear: true }, props.visible || !props.destroyOnClose ? dialogElement : null);
|
||||
};
|
||||
_this.getZIndexStyle = function () {
|
||||
var style = {};
|
||||
var props = _this.props;
|
||||
if (props.zIndex !== undefined) {
|
||||
style.zIndex = props.zIndex;
|
||||
}
|
||||
return style;
|
||||
};
|
||||
_this.getWrapStyle = function () {
|
||||
return (0, _extends3['default'])({}, _this.getZIndexStyle(), _this.props.wrapStyle);
|
||||
};
|
||||
_this.getMaskStyle = function () {
|
||||
return (0, _extends3['default'])({}, _this.getZIndexStyle(), _this.props.maskStyle);
|
||||
};
|
||||
_this.getMaskElement = function () {
|
||||
var props = _this.props;
|
||||
var maskElement = void 0;
|
||||
if (props.mask) {
|
||||
var maskTransition = _this.getMaskTransitionName();
|
||||
maskElement = React.createElement(_LazyRenderBox2['default'], (0, _extends3['default'])({ style: _this.getMaskStyle(), key: "mask", className: props.prefixCls + '-mask', hiddenClassName: props.prefixCls + '-mask-hidden', visible: props.visible }, props.maskProps));
|
||||
if (maskTransition) {
|
||||
maskElement = React.createElement(_rcAnimate2['default'], { key: "mask", showProp: "visible", transitionAppear: true, component: "", transitionName: maskTransition }, maskElement);
|
||||
}
|
||||
}
|
||||
return maskElement;
|
||||
};
|
||||
_this.getMaskTransitionName = function () {
|
||||
var props = _this.props;
|
||||
var transitionName = props.maskTransitionName;
|
||||
var animation = props.maskAnimation;
|
||||
if (!transitionName && animation) {
|
||||
transitionName = props.prefixCls + '-' + animation;
|
||||
}
|
||||
return transitionName;
|
||||
};
|
||||
_this.getTransitionName = function () {
|
||||
var props = _this.props;
|
||||
var transitionName = props.transitionName;
|
||||
var animation = props.animation;
|
||||
if (!transitionName && animation) {
|
||||
transitionName = props.prefixCls + '-' + animation;
|
||||
}
|
||||
return transitionName;
|
||||
};
|
||||
_this.close = function (e) {
|
||||
var onClose = _this.props.onClose;
|
||||
|
||||
if (onClose) {
|
||||
onClose(e);
|
||||
}
|
||||
};
|
||||
_this.saveRef = function (name) {
|
||||
return function (node) {
|
||||
_this[name] = node;
|
||||
};
|
||||
};
|
||||
_this.titleId = 'rcDialogTitle' + uuid++;
|
||||
_this.switchScrollingEffect = props.switchScrollingEffect || function () {};
|
||||
return _this;
|
||||
}
|
||||
|
||||
Dialog.prototype.componentDidMount = function componentDidMount() {
|
||||
this.componentDidUpdate({});
|
||||
// if forceRender is true, set element style display to be none;
|
||||
if ((this.props.forceRender || this.props.getContainer === false && !this.props.visible) && this.wrap) {
|
||||
this.wrap.style.display = 'none';
|
||||
}
|
||||
};
|
||||
|
||||
Dialog.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
|
||||
var _props = this.props,
|
||||
visible = _props.visible,
|
||||
mask = _props.mask,
|
||||
focusTriggerAfterClose = _props.focusTriggerAfterClose;
|
||||
|
||||
var mousePosition = this.props.mousePosition;
|
||||
if (visible) {
|
||||
// first show
|
||||
if (!prevProps.visible) {
|
||||
this.openTime = Date.now();
|
||||
this.switchScrollingEffect();
|
||||
this.tryFocus();
|
||||
var dialogNode = ReactDOM.findDOMNode(this.dialog);
|
||||
if (mousePosition) {
|
||||
var elOffset = offset(dialogNode);
|
||||
setTransformOrigin(dialogNode, mousePosition.x - elOffset.left + 'px ' + (mousePosition.y - elOffset.top) + 'px');
|
||||
} else {
|
||||
setTransformOrigin(dialogNode, '');
|
||||
}
|
||||
}
|
||||
} else if (prevProps.visible) {
|
||||
this.inTransition = true;
|
||||
if (mask && this.lastOutSideFocusNode && focusTriggerAfterClose) {
|
||||
try {
|
||||
this.lastOutSideFocusNode.focus();
|
||||
} catch (e) {
|
||||
this.lastOutSideFocusNode = null;
|
||||
}
|
||||
this.lastOutSideFocusNode = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Dialog.prototype.componentWillUnmount = function componentWillUnmount() {
|
||||
var _props2 = this.props,
|
||||
visible = _props2.visible,
|
||||
getOpenCount = _props2.getOpenCount;
|
||||
|
||||
if ((visible || this.inTransition) && !getOpenCount()) {
|
||||
this.switchScrollingEffect();
|
||||
}
|
||||
clearTimeout(this.timeoutId);
|
||||
};
|
||||
|
||||
Dialog.prototype.tryFocus = function tryFocus() {
|
||||
if (!(0, _contains2['default'])(this.wrap, document.activeElement)) {
|
||||
this.lastOutSideFocusNode = document.activeElement;
|
||||
this.sentinelStart.focus();
|
||||
}
|
||||
};
|
||||
|
||||
Dialog.prototype.render = function render() {
|
||||
var props = this.props;
|
||||
var prefixCls = props.prefixCls,
|
||||
maskClosable = props.maskClosable;
|
||||
|
||||
var style = this.getWrapStyle();
|
||||
// clear hide display
|
||||
// and only set display after async anim, not here for hide
|
||||
if (props.visible) {
|
||||
style.display = null;
|
||||
}
|
||||
return React.createElement("div", { className: prefixCls + '-root' }, this.getMaskElement(), React.createElement("div", (0, _extends3['default'])({ tabIndex: -1, onKeyDown: this.onKeyDown, className: prefixCls + '-wrap ' + (props.wrapClassName || ''), ref: this.saveRef('wrap'), onClick: maskClosable ? this.onMaskClick : null, onMouseUp: maskClosable ? this.onMaskMouseUp : null, role: "dialog", "aria-labelledby": props.title ? this.titleId : null, style: style }, props.wrapProps), this.getDialogElement()));
|
||||
};
|
||||
|
||||
return Dialog;
|
||||
}(React.Component);
|
||||
|
||||
exports['default'] = Dialog;
|
||||
|
||||
Dialog.defaultProps = {
|
||||
className: '',
|
||||
mask: true,
|
||||
visible: false,
|
||||
keyboard: true,
|
||||
closable: true,
|
||||
maskClosable: true,
|
||||
destroyOnClose: false,
|
||||
prefixCls: 'rc-dialog',
|
||||
focusTriggerAfterClose: true
|
||||
};
|
||||
module.exports = exports['default'];
|
||||
4
web/node_modules/rc-dialog/lib/DialogWrap.d.ts
generated
vendored
Normal file
4
web/node_modules/rc-dialog/lib/DialogWrap.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/// <reference types="react" />
|
||||
import IDialogPropTypes from './IDialogPropTypes';
|
||||
declare const _default: (props: IDialogPropTypes) => JSX.Element;
|
||||
export default _default;
|
||||
49
web/node_modules/rc-dialog/lib/DialogWrap.js
generated
vendored
Normal file
49
web/node_modules/rc-dialog/lib/DialogWrap.js
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _extends2 = require('babel-runtime/helpers/extends');
|
||||
|
||||
var _extends3 = _interopRequireDefault(_extends2);
|
||||
|
||||
var _react = require('react');
|
||||
|
||||
var React = _interopRequireWildcard(_react);
|
||||
|
||||
var _Dialog = require('./Dialog');
|
||||
|
||||
var _Dialog2 = _interopRequireDefault(_Dialog);
|
||||
|
||||
var _PortalWrapper = require('rc-util/lib/PortalWrapper');
|
||||
|
||||
var _PortalWrapper2 = _interopRequireDefault(_PortalWrapper);
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
||||
|
||||
// fix issue #10656
|
||||
/*
|
||||
* getContainer remarks
|
||||
* Custom container should not be return, because in the Portal component, it will remove the
|
||||
* return container element here, if the custom container is the only child of it's component,
|
||||
* like issue #10656, It will has a conflict with removeChild method in react-dom.
|
||||
* So here should add a child (div element) to custom container.
|
||||
* */
|
||||
exports['default'] = function (props) {
|
||||
var visible = props.visible,
|
||||
getContainer = props.getContainer,
|
||||
forceRender = props.forceRender;
|
||||
// 渲染在当前 dom 里;
|
||||
|
||||
if (getContainer === false) {
|
||||
return React.createElement(_Dialog2['default'], (0, _extends3['default'])({}, props, { getOpenCount: function getOpenCount() {
|
||||
return 2;
|
||||
} }));
|
||||
}
|
||||
return React.createElement(_PortalWrapper2['default'], { visible: visible, forceRender: forceRender, getContainer: getContainer }, function (childProps) {
|
||||
return React.createElement(_Dialog2['default'], (0, _extends3['default'])({}, props, childProps));
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = exports['default'];
|
||||
41
web/node_modules/rc-dialog/lib/IDialogPropTypes.d.ts
generated
vendored
Normal file
41
web/node_modules/rc-dialog/lib/IDialogPropTypes.d.ts
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
import { ReactNode, CSSProperties, SyntheticEvent } from 'react';
|
||||
declare type IStringOrHtmlElement = string | HTMLElement;
|
||||
interface IDialogPropTypes {
|
||||
className?: string;
|
||||
keyboard?: boolean;
|
||||
style?: CSSProperties;
|
||||
mask?: boolean;
|
||||
children?: any;
|
||||
afterClose?: () => any;
|
||||
onClose?: (e: SyntheticEvent<HTMLDivElement>) => any;
|
||||
closable?: boolean;
|
||||
maskClosable?: boolean;
|
||||
visible?: boolean;
|
||||
destroyOnClose?: boolean;
|
||||
mousePosition?: {
|
||||
x: number;
|
||||
y: number;
|
||||
};
|
||||
title?: ReactNode;
|
||||
footer?: ReactNode;
|
||||
transitionName?: string;
|
||||
maskTransitionName?: string;
|
||||
animation?: any;
|
||||
maskAnimation?: any;
|
||||
wrapStyle?: {};
|
||||
bodyStyle?: {};
|
||||
maskStyle?: {};
|
||||
prefixCls?: string;
|
||||
wrapClassName?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
zIndex?: number;
|
||||
bodyProps?: any;
|
||||
maskProps?: any;
|
||||
wrapProps?: any;
|
||||
getContainer?: IStringOrHtmlElement | (() => IStringOrHtmlElement) | false;
|
||||
closeIcon?: ReactNode;
|
||||
forceRender?: boolean;
|
||||
focusTriggerAfterClose?: boolean;
|
||||
}
|
||||
export default IDialogPropTypes;
|
||||
1
web/node_modules/rc-dialog/lib/IDialogPropTypes.js
generated
vendored
Normal file
1
web/node_modules/rc-dialog/lib/IDialogPropTypes.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";
|
||||
14
web/node_modules/rc-dialog/lib/LazyRenderBox.d.ts
generated
vendored
Normal file
14
web/node_modules/rc-dialog/lib/LazyRenderBox.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as React from 'react';
|
||||
export interface ILazyRenderBoxPropTypes {
|
||||
className?: string;
|
||||
visible?: boolean;
|
||||
hiddenClassName?: string;
|
||||
role?: string;
|
||||
style?: {};
|
||||
forceRender?: boolean;
|
||||
onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
|
||||
}
|
||||
export default class LazyRenderBox extends React.Component<ILazyRenderBoxPropTypes, any> {
|
||||
shouldComponentUpdate(nextProps: ILazyRenderBoxPropTypes): boolean;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
71
web/node_modules/rc-dialog/lib/LazyRenderBox.js
generated
vendored
Normal file
71
web/node_modules/rc-dialog/lib/LazyRenderBox.js
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _extends2 = require("babel-runtime/helpers/extends");
|
||||
|
||||
var _extends3 = _interopRequireDefault(_extends2);
|
||||
|
||||
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
|
||||
|
||||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
||||
|
||||
var _possibleConstructorReturn2 = require("babel-runtime/helpers/possibleConstructorReturn");
|
||||
|
||||
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
||||
|
||||
var _inherits2 = require("babel-runtime/helpers/inherits");
|
||||
|
||||
var _inherits3 = _interopRequireDefault(_inherits2);
|
||||
|
||||
var _react = require("react");
|
||||
|
||||
var React = _interopRequireWildcard(_react);
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } }
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) {
|
||||
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
}if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];
|
||||
}return t;
|
||||
};
|
||||
|
||||
var LazyRenderBox = function (_React$Component) {
|
||||
(0, _inherits3["default"])(LazyRenderBox, _React$Component);
|
||||
|
||||
function LazyRenderBox() {
|
||||
(0, _classCallCheck3["default"])(this, LazyRenderBox);
|
||||
return (0, _possibleConstructorReturn3["default"])(this, _React$Component.apply(this, arguments));
|
||||
}
|
||||
|
||||
LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
|
||||
if (nextProps.forceRender) {
|
||||
return true;
|
||||
}
|
||||
return !!nextProps.hiddenClassName || !!nextProps.visible;
|
||||
};
|
||||
|
||||
LazyRenderBox.prototype.render = function render() {
|
||||
var _a = this.props,
|
||||
className = _a.className,
|
||||
hiddenClassName = _a.hiddenClassName,
|
||||
visible = _a.visible,
|
||||
forceRender = _a.forceRender,
|
||||
restProps = __rest(_a, ["className", "hiddenClassName", "visible", "forceRender"]);
|
||||
var useClassName = className;
|
||||
if (!!hiddenClassName && !visible) {
|
||||
useClassName += " " + hiddenClassName;
|
||||
}
|
||||
return React.createElement("div", (0, _extends3["default"])({}, restProps, { className: useClassName }));
|
||||
};
|
||||
|
||||
return LazyRenderBox;
|
||||
}(React.Component);
|
||||
|
||||
exports["default"] = LazyRenderBox;
|
||||
module.exports = exports['default'];
|
||||
113
web/node_modules/rc-dialog/package.json
generated
vendored
Normal file
113
web/node_modules/rc-dialog/package.json
generated
vendored
Normal file
@@ -0,0 +1,113 @@
|
||||
{
|
||||
"_from": "rc-dialog@~7.6.0",
|
||||
"_id": "rc-dialog@7.6.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-KUKf+2eZ4YL+lnXMG3hR4ZtIhC9glfH27NtTVz3gcoDIPAf3uUvaXVRNoDCiSi+OGKLyIb/b6EoidFh6nQC5Wg==",
|
||||
"_location": "/rc-dialog",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "rc-dialog@~7.6.0",
|
||||
"name": "rc-dialog",
|
||||
"escapedName": "rc-dialog",
|
||||
"rawSpec": "~7.6.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "~7.6.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/antd"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/rc-dialog/-/rc-dialog-7.6.1.tgz",
|
||||
"_shasum": "11545ccc0b945934fa76079726e0d853e52d705f",
|
||||
"_spec": "rc-dialog@~7.6.0",
|
||||
"_where": "/Users/thilina/TestProjects/icehrm-pro/web/node_modules/antd",
|
||||
"author": {
|
||||
"name": "yiminghe@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "http://github.com/react-component/dialog/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"config": {
|
||||
"port": 8007,
|
||||
"entry": {
|
||||
"rc-dialog": [
|
||||
"./index.js",
|
||||
"./assets/index.less"
|
||||
],
|
||||
"rc-dialog-bootstrap": [
|
||||
"./index.js",
|
||||
"./assets/bootstrap.less"
|
||||
]
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-runtime": "6.x",
|
||||
"rc-animate": "2.x",
|
||||
"rc-util": "^4.16.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "dialog ui component for react",
|
||||
"devDependencies": {
|
||||
"@types/mocha": "~7.0.1",
|
||||
"@types/react": "^16.0.19",
|
||||
"@types/react-dom": "^16.0.2",
|
||||
"async": "^0.9.0",
|
||||
"bluebird": "~3.7.2",
|
||||
"bootstrap": "^4.3.1",
|
||||
"core-js": "^2.5.1",
|
||||
"expect.js": "~0.3.1",
|
||||
"jquery": "^3.3.1",
|
||||
"pre-commit": "1.x",
|
||||
"rc-drawer": "3.1.3",
|
||||
"rc-test": "^6.0.1",
|
||||
"rc-tools": "7.x",
|
||||
"react": "^16.0.0",
|
||||
"react-dom": "^16.0.0"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"es",
|
||||
"assets/*.css",
|
||||
"dist"
|
||||
],
|
||||
"homepage": "http://github.com/react-component/dialog",
|
||||
"keywords": [
|
||||
"react",
|
||||
"react-component",
|
||||
"react-dialog",
|
||||
"dialog",
|
||||
"ui"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./lib/DialogWrap",
|
||||
"module": "./es/DialogWrap",
|
||||
"name": "rc-dialog",
|
||||
"pre-commit": [
|
||||
"lint"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com/react-component/dialog.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rc-tools run build",
|
||||
"chrome-test": "rc-test run chrome-test",
|
||||
"compile": "rc-tools run compile --babel-runtime",
|
||||
"coverage": "rc-test run coverage",
|
||||
"dist": "rc-tools run dist",
|
||||
"gh-pages": "rc-tools run gh-pages",
|
||||
"karma": "rc-test run karma",
|
||||
"lint": "rc-tools run lint --no-js-lint",
|
||||
"lint:ts": "tsc",
|
||||
"prepublish": "rc-tools run guard",
|
||||
"pub": "rc-tools run pub --babel-runtime",
|
||||
"saucelabs": "rc-test run saucelabs",
|
||||
"start": "rc-tools run server",
|
||||
"test": "rc-test run test",
|
||||
"watch-tsc": "rc-tools run watch-tsc"
|
||||
},
|
||||
"typings": "./lib/DialogWrap.d.ts",
|
||||
"version": "7.6.1"
|
||||
}
|
||||
Reference in New Issue
Block a user