diff options
author | afc163 <afc163@gmail.com> | 2015-11-19 21:44:45 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2015-11-19 21:44:45 +0800 |
commit | a325f5f7113ed7720542cf585024942f7edeb018 (patch) | |
tree | 3766418c383a89bb68a0d9c6c965ac9792c7a337 /examples/pick-time.js | |
parent | 6e682d895a29c9a1000f7ad5fc9821ca3915fb8e (diff) | |
download | time-picker-a325f5f7113ed7720542cf585024942f7edeb018.tar.gz time-picker-a325f5f7113ed7720542cf585024942f7edeb018.tar.zst time-picker-a325f5f7113ed7720542cf585024942f7edeb018.zip |
Updates
Diffstat (limited to 'examples/pick-time.js')
-rw-r--r-- | examples/pick-time.js | 1434 |
1 files changed, 558 insertions, 876 deletions
diff --git a/examples/pick-time.js b/examples/pick-time.js index 5fc95cf..1fef674 100644 --- a/examples/pick-time.js +++ b/examples/pick-time.js | |||
@@ -39,7 +39,7 @@ webpackJsonp([0,1],[ | |||
39 | 39 | ||
40 | var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker); | 40 | var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker); |
41 | 41 | ||
42 | var _rcTimePickerSrcLocaleZh_CN = __webpack_require__(245); | 42 | var _rcTimePickerSrcLocaleZh_CN = __webpack_require__(237); |
43 | 43 | ||
44 | var _rcTimePickerSrcLocaleZh_CN2 = _interopRequireDefault(_rcTimePickerSrcLocaleZh_CN); | 44 | var _rcTimePickerSrcLocaleZh_CN2 = _interopRequireDefault(_rcTimePickerSrcLocaleZh_CN); |
45 | 45 | ||
@@ -48,7 +48,11 @@ webpackJsonp([0,1],[ | |||
48 | var now = new _gregorianCalendar2['default'](_gregorianCalendarLibLocaleZh_CN2['default']); | 48 | var now = new _gregorianCalendar2['default'](_gregorianCalendarLibLocaleZh_CN2['default']); |
49 | now.setTime(Date.now()); | 49 | now.setTime(Date.now()); |
50 | 50 | ||
51 | _reactDom2['default'].render(_react2['default'].createElement(_rcTimePicker2['default'], { formatter: formatter, locale: _rcTimePickerSrcLocaleZh_CN2['default'], defaultValue: now }), document.getElementById('__react-content')); | 51 | function onChange(v) { |
52 | console.log(v && formatter.format(v)); | ||
53 | } | ||
54 | |||
55 | _reactDom2['default'].render(_react2['default'].createElement(_rcTimePicker2['default'], { formatter: formatter, locale: _rcTimePickerSrcLocaleZh_CN2['default'], defaultValue: now, onChange: onChange }), document.getElementById('__react-content')); | ||
52 | 56 | ||
53 | /***/ }, | 57 | /***/ }, |
54 | /* 2 */ | 58 | /* 2 */ |
@@ -106,6 +110,7 @@ webpackJsonp([0,1],[ | |||
106 | }); | 110 | }); |
107 | 111 | ||
108 | React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOM; | 112 | React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOM; |
113 | React.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOMServer; | ||
109 | 114 | ||
110 | module.exports = React; | 115 | module.exports = React; |
111 | 116 | ||
@@ -10456,6 +10461,7 @@ webpackJsonp([0,1],[ | |||
10456 | multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, | 10461 | multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, |
10457 | muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, | 10462 | muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, |
10458 | name: null, | 10463 | name: null, |
10464 | nonce: MUST_USE_ATTRIBUTE, | ||
10459 | noValidate: HAS_BOOLEAN_VALUE, | 10465 | noValidate: HAS_BOOLEAN_VALUE, |
10460 | open: HAS_BOOLEAN_VALUE, | 10466 | open: HAS_BOOLEAN_VALUE, |
10461 | optimum: null, | 10467 | optimum: null, |
@@ -10467,6 +10473,7 @@ webpackJsonp([0,1],[ | |||
10467 | readOnly: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, | 10473 | readOnly: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, |
10468 | rel: null, | 10474 | rel: null, |
10469 | required: HAS_BOOLEAN_VALUE, | 10475 | required: HAS_BOOLEAN_VALUE, |
10476 | reversed: HAS_BOOLEAN_VALUE, | ||
10470 | role: MUST_USE_ATTRIBUTE, | 10477 | role: MUST_USE_ATTRIBUTE, |
10471 | rows: MUST_USE_ATTRIBUTE | HAS_POSITIVE_NUMERIC_VALUE, | 10478 | rows: MUST_USE_ATTRIBUTE | HAS_POSITIVE_NUMERIC_VALUE, |
10472 | rowSpan: null, | 10479 | rowSpan: null, |
@@ -18669,7 +18676,7 @@ webpackJsonp([0,1],[ | |||
18669 | 18676 | ||
18670 | 'use strict'; | 18677 | 'use strict'; |
18671 | 18678 | ||
18672 | module.exports = '0.14.2'; | 18679 | module.exports = '0.14.3'; |
18673 | 18680 | ||
18674 | /***/ }, | 18681 | /***/ }, |
18675 | /* 149 */ | 18682 | /* 149 */ |
@@ -22251,17 +22258,17 @@ webpackJsonp([0,1],[ | |||
22251 | 22258 | ||
22252 | var _rcTrigger2 = _interopRequireDefault(_rcTrigger); | 22259 | var _rcTrigger2 = _interopRequireDefault(_rcTrigger); |
22253 | 22260 | ||
22254 | var _rcUtil = __webpack_require__(225); | 22261 | var _rcUtil = __webpack_require__(213); |
22255 | 22262 | ||
22256 | var _modulePanel = __webpack_require__(237); | 22263 | var _modulePanel = __webpack_require__(229); |
22257 | 22264 | ||
22258 | var _modulePanel2 = _interopRequireDefault(_modulePanel); | 22265 | var _modulePanel2 = _interopRequireDefault(_modulePanel); |
22259 | 22266 | ||
22260 | var _utilPlacements = __webpack_require__(244); | 22267 | var _utilPlacements = __webpack_require__(236); |
22261 | 22268 | ||
22262 | var _utilPlacements2 = _interopRequireDefault(_utilPlacements); | 22269 | var _utilPlacements2 = _interopRequireDefault(_utilPlacements); |
22263 | 22270 | ||
22264 | var _mixinCommonMixin = __webpack_require__(238); | 22271 | var _mixinCommonMixin = __webpack_require__(230); |
22265 | 22272 | ||
22266 | var _mixinCommonMixin2 = _interopRequireDefault(_mixinCommonMixin); | 22273 | var _mixinCommonMixin2 = _interopRequireDefault(_mixinCommonMixin); |
22267 | 22274 | ||
@@ -22278,6 +22285,7 @@ webpackJsonp([0,1],[ | |||
22278 | prefixCls: _react.PropTypes.string, | 22285 | prefixCls: _react.PropTypes.string, |
22279 | inputClassName: _react.PropTypes.string, | 22286 | inputClassName: _react.PropTypes.string, |
22280 | locale: _react.PropTypes.object, | 22287 | locale: _react.PropTypes.object, |
22288 | value: _react.PropTypes.object, | ||
22281 | children: _react.PropTypes.func, | 22289 | children: _react.PropTypes.func, |
22282 | disabled: _react.PropTypes.bool, | 22290 | disabled: _react.PropTypes.bool, |
22283 | defaultValue: _react.PropTypes.object, | 22291 | defaultValue: _react.PropTypes.object, |
@@ -22313,19 +22321,22 @@ webpackJsonp([0,1],[ | |||
22313 | var _props = this.props; | 22321 | var _props = this.props; |
22314 | var open = _props.open; | 22322 | var open = _props.open; |
22315 | var defaultValue = _props.defaultValue; | 22323 | var defaultValue = _props.defaultValue; |
22324 | var value = _props.value; | ||
22316 | 22325 | ||
22317 | return { | 22326 | return { |
22318 | open: open, | 22327 | open: open, |
22319 | value: defaultValue | 22328 | value: value || defaultValue |
22320 | }; | 22329 | }; |
22321 | }, | 22330 | }, |
22322 | 22331 | ||
22323 | componentWillReceiveProps: function componentWillReceiveProps(nextProps) { | 22332 | componentWillReceiveProps: function componentWillReceiveProps(nextProps) { |
22324 | var defaultValue = nextProps.defaultValue; | 22333 | var value = nextProps.value; |
22325 | var open = nextProps.open; | 22334 | var open = nextProps.open; |
22326 | 22335 | ||
22327 | if (defaultValue !== undefined) { | 22336 | if (value !== undefined) { |
22328 | this.setState({ value: defaultValue }); | 22337 | this.setState({ |
22338 | value: value | ||
22339 | }); | ||
22329 | } | 22340 | } |
22330 | if (open !== undefined) { | 22341 | if (open !== undefined) { |
22331 | this.setState({ open: open }); | 22342 | this.setState({ open: open }); |
@@ -22333,16 +22344,11 @@ webpackJsonp([0,1],[ | |||
22333 | }, | 22344 | }, |
22334 | 22345 | ||
22335 | onPanelChange: function onPanelChange(value) { | 22346 | onPanelChange: function onPanelChange(value) { |
22336 | this.setState({ | 22347 | this.setValue(value); |
22337 | value: value | ||
22338 | }); | ||
22339 | this.props.onChange(value); | ||
22340 | }, | 22348 | }, |
22341 | 22349 | ||
22342 | onPanelClear: function onPanelClear() { | 22350 | onPanelClear: function onPanelClear() { |
22343 | this.setState({ | 22351 | this.setValue(''); |
22344 | value: '' | ||
22345 | }); | ||
22346 | this.setOpen(false); | 22352 | this.setOpen(false); |
22347 | }, | 22353 | }, |
22348 | 22354 | ||
@@ -22357,6 +22363,15 @@ webpackJsonp([0,1],[ | |||
22357 | }); | 22363 | }); |
22358 | }, | 22364 | }, |
22359 | 22365 | ||
22366 | setValue: function setValue(value) { | ||
22367 | if (!('value' in this.props)) { | ||
22368 | this.setState({ | ||
22369 | value: value | ||
22370 | }); | ||
22371 | } | ||
22372 | this.props.onChange(value); | ||
22373 | }, | ||
22374 | |||
22360 | getPanel: function getPanel() { | 22375 | getPanel: function getPanel() { |
22361 | var _props2 = this.props; | 22376 | var _props2 = this.props; |
22362 | var prefixCls = _props2.prefixCls; | 22377 | var prefixCls = _props2.prefixCls; |
@@ -22384,7 +22399,7 @@ webpackJsonp([0,1],[ | |||
22384 | var panel = this.getPanel(); | 22399 | var panel = this.getPanel(); |
22385 | var extraProps = { | 22400 | var extraProps = { |
22386 | ref: this.savePanelRef, | 22401 | ref: this.savePanelRef, |
22387 | defaultValue: this.state.value || panel.props.defaultValue, | 22402 | value: this.state.value, |
22388 | onChange: (0, _rcUtil.createChainedFunction)(panel.props.onChange, this.onPanelChange), | 22403 | onChange: (0, _rcUtil.createChainedFunction)(panel.props.onChange, this.onPanelChange), |
22389 | onClear: (0, _rcUtil.createChainedFunction)(panel.props.onClear, this.onPanelClear) | 22404 | onClear: (0, _rcUtil.createChainedFunction)(panel.props.onClear, this.onPanelClear) |
22390 | }; | 22405 | }; |
@@ -22420,7 +22435,6 @@ webpackJsonp([0,1],[ | |||
22420 | var align = _props4.align; | 22435 | var align = _props4.align; |
22421 | var disabled = _props4.disabled; | 22436 | var disabled = _props4.disabled; |
22422 | var transitionName = _props4.transitionName; | 22437 | var transitionName = _props4.transitionName; |
22423 | var children = _props4.children; | ||
22424 | var formatter = _props4.formatter; | 22438 | var formatter = _props4.formatter; |
22425 | var inputClassName = _props4.inputClassName; | 22439 | var inputClassName = _props4.inputClassName; |
22426 | var _state = this.state; | 22440 | var _state = this.state; |
@@ -22430,7 +22444,7 @@ webpackJsonp([0,1],[ | |||
22430 | return _react2['default'].createElement( | 22444 | return _react2['default'].createElement( |
22431 | _rcTrigger2['default'], | 22445 | _rcTrigger2['default'], |
22432 | { | 22446 | { |
22433 | prefixCls: prefixCls + '-picker-container', | 22447 | prefixCls: prefixCls + '-container', |
22434 | popup: this.getPanelElement(), | 22448 | popup: this.getPanelElement(), |
22435 | popupAlign: align, | 22449 | popupAlign: align, |
22436 | builtinPlacements: _utilPlacements2['default'], | 22450 | builtinPlacements: _utilPlacements2['default'], |
@@ -22443,9 +22457,10 @@ webpackJsonp([0,1],[ | |||
22443 | }, | 22457 | }, |
22444 | _react2['default'].createElement( | 22458 | _react2['default'].createElement( |
22445 | 'span', | 22459 | 'span', |
22446 | { className: prefixCls + '-picker' }, | 22460 | { className: '' + prefixCls }, |
22447 | _react2['default'].createElement('input', { className: inputClassName, ref: 'picker', type: 'text', placeholder: placeholder, readOnly: true, disabled: disabled, value: value && formatter.format(value) }), | 22461 | _react2['default'].createElement('input', { className: inputClassName, ref: 'picker', type: 'text', placeholder: placeholder, readOnly: true, |
22448 | _react2['default'].createElement('span', { className: prefixCls + '-picker-icon' }) | 22462 | disabled: disabled, value: value && formatter.format(value) }), |
22463 | _react2['default'].createElement('span', { className: prefixCls + '-icon' }) | ||
22449 | ) | 22464 | ) |
22450 | ); | 22465 | ); |
22451 | } | 22466 | } |
@@ -22490,7 +22505,7 @@ webpackJsonp([0,1],[ | |||
22490 | 22505 | ||
22491 | var _Popup2 = _interopRequireDefault(_Popup); | 22506 | var _Popup2 = _interopRequireDefault(_Popup); |
22492 | 22507 | ||
22493 | var _utils = __webpack_require__(224); | 22508 | var _utils = __webpack_require__(212); |
22494 | 22509 | ||
22495 | function noop() {} | 22510 | function noop() {} |
22496 | 22511 | ||
@@ -24109,11 +24124,11 @@ webpackJsonp([0,1],[ | |||
24109 | 24124 | ||
24110 | var _rcAlign2 = _interopRequireDefault(_rcAlign); | 24125 | var _rcAlign2 = _interopRequireDefault(_rcAlign); |
24111 | 24126 | ||
24112 | var _rcAnimate = __webpack_require__(215); | 24127 | var _rcAnimate = __webpack_require__(203); |
24113 | 24128 | ||
24114 | var _rcAnimate2 = _interopRequireDefault(_rcAnimate); | 24129 | var _rcAnimate2 = _interopRequireDefault(_rcAnimate); |
24115 | 24130 | ||
24116 | var _PopupInner = __webpack_require__(223); | 24131 | var _PopupInner = __webpack_require__(211); |
24117 | 24132 | ||
24118 | var _PopupInner2 = _interopRequireDefault(_PopupInner); | 24133 | var _PopupInner2 = _interopRequireDefault(_PopupInner); |
24119 | 24134 | ||
@@ -24289,9 +24304,9 @@ webpackJsonp([0,1],[ | |||
24289 | 24304 | ||
24290 | var _domAlign2 = _interopRequireDefault(_domAlign); | 24305 | var _domAlign2 = _interopRequireDefault(_domAlign); |
24291 | 24306 | ||
24292 | var _rcUtil = __webpack_require__(202); | 24307 | var _rcUtil = __webpack_require__(174); |
24293 | 24308 | ||
24294 | var _isWindow = __webpack_require__(214); | 24309 | var _isWindow = __webpack_require__(202); |
24295 | 24310 | ||
24296 | var _isWindow2 = _interopRequireDefault(_isWindow); | 24311 | var _isWindow2 = _interopRequireDefault(_isWindow); |
24297 | 24312 | ||
@@ -25451,785 +25466,6 @@ webpackJsonp([0,1],[ | |||
25451 | 25466 | ||
25452 | /***/ }, | 25467 | /***/ }, |
25453 | /* 202 */ | 25468 | /* 202 */ |
25454 | /***/ function(module, exports, __webpack_require__) { | ||
25455 | |||
25456 | 'use strict'; | ||
25457 | |||
25458 | module.exports = { | ||
25459 | guid: __webpack_require__(203), | ||
25460 | classSet: __webpack_require__(204), | ||
25461 | joinClasses: __webpack_require__(205), | ||
25462 | KeyCode: __webpack_require__(206), | ||
25463 | PureRenderMixin: __webpack_require__(207), | ||
25464 | shallowEqual: __webpack_require__(208), | ||
25465 | createChainedFunction: __webpack_require__(209), | ||
25466 | Dom: { | ||
25467 | addEventListener: __webpack_require__(210), | ||
25468 | contains: __webpack_require__(211) | ||
25469 | }, | ||
25470 | Children: { | ||
25471 | toArray: __webpack_require__(212), | ||
25472 | mapSelf: __webpack_require__(213) | ||
25473 | } | ||
25474 | }; | ||
25475 | |||
25476 | /***/ }, | ||
25477 | /* 203 */ | ||
25478 | /***/ function(module, exports) { | ||
25479 | |||
25480 | 'use strict'; | ||
25481 | |||
25482 | var seed = 0; | ||
25483 | module.exports = function guid() { | ||
25484 | return Date.now() + '_' + seed++; | ||
25485 | }; | ||
25486 | |||
25487 | /***/ }, | ||
25488 | /* 204 */ | ||
25489 | /***/ function(module, exports, __webpack_require__) { | ||
25490 | |||
25491 | 'use strict'; | ||
25492 | |||
25493 | module.exports = __webpack_require__(177); | ||
25494 | |||
25495 | /***/ }, | ||
25496 | /* 205 */ | ||
25497 | /***/ function(module, exports) { | ||
25498 | |||
25499 | /** | ||
25500 | * Combines multiple className strings into one. | ||
25501 | * http://jsperf.com/joinclasses-args-vs-array | ||
25502 | * | ||
25503 | * @param {...?string} classes | ||
25504 | * @return {string} | ||
25505 | */ | ||
25506 | |||
25507 | 'use strict'; | ||
25508 | |||
25509 | function joinClasses(cn) { | ||
25510 | var className = cn; | ||
25511 | if (!className) { | ||
25512 | className = ''; | ||
25513 | } | ||
25514 | var nextClass = undefined; | ||
25515 | var argLength = arguments.length; | ||
25516 | if (argLength > 1) { | ||
25517 | for (var ii = 1; ii < argLength; ii++) { | ||
25518 | nextClass = arguments[ii]; | ||
25519 | if (nextClass) { | ||
25520 | className = (className ? className + ' ' : '') + nextClass; | ||
25521 | } | ||
25522 | } | ||
25523 | } | ||
25524 | return className; | ||
25525 | } | ||
25526 | |||
25527 | module.exports = joinClasses; | ||
25528 | |||
25529 | /***/ }, | ||
25530 | /* 206 */ | ||
25531 | /***/ function(module, exports) { | ||
25532 | |||
25533 | /** | ||
25534 | * @ignore | ||
25535 | * some key-codes definition and utils from closure-library | ||
25536 | * @author yiminghe@gmail.com | ||
25537 | */ | ||
25538 | |||
25539 | 'use strict'; | ||
25540 | |||
25541 | var KeyCode = { | ||
25542 | /** | ||
25543 | * MAC_ENTER | ||
25544 | */ | ||
25545 | MAC_ENTER: 3, | ||
25546 | /** | ||
25547 | * BACKSPACE | ||
25548 | */ | ||
25549 | BACKSPACE: 8, | ||
25550 | /** | ||
25551 | * TAB | ||
25552 | */ | ||
25553 | TAB: 9, | ||
25554 | /** | ||
25555 | * NUMLOCK on FF/Safari Mac | ||
25556 | */ | ||
25557 | NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac | ||
25558 | /** | ||
25559 | * ENTER | ||
25560 | */ | ||
25561 | ENTER: 13, | ||
25562 | /** | ||
25563 | * SHIFT | ||
25564 | */ | ||
25565 | SHIFT: 16, | ||
25566 | /** | ||
25567 | * CTRL | ||
25568 | */ | ||
25569 | CTRL: 17, | ||
25570 | /** | ||
25571 | * ALT | ||
25572 | */ | ||
25573 | ALT: 18, | ||
25574 | /** | ||
25575 | * PAUSE | ||
25576 | */ | ||
25577 | PAUSE: 19, | ||
25578 | /** | ||
25579 | * CAPS_LOCK | ||
25580 | */ | ||
25581 | CAPS_LOCK: 20, | ||
25582 | /** | ||
25583 | * ESC | ||
25584 | */ | ||
25585 | ESC: 27, | ||
25586 | /** | ||
25587 | * SPACE | ||
25588 | */ | ||
25589 | SPACE: 32, | ||
25590 | /** | ||
25591 | * PAGE_UP | ||
25592 | */ | ||
25593 | PAGE_UP: 33, // also NUM_NORTH_EAST | ||
25594 | /** | ||
25595 | * PAGE_DOWN | ||
25596 | */ | ||
25597 | PAGE_DOWN: 34, // also NUM_SOUTH_EAST | ||
25598 | /** | ||
25599 | * END | ||
25600 | */ | ||
25601 | END: 35, // also NUM_SOUTH_WEST | ||
25602 | /** | ||
25603 | * HOME | ||
25604 | */ | ||
25605 | HOME: 36, // also NUM_NORTH_WEST | ||
25606 | /** | ||
25607 | * LEFT | ||
25608 | */ | ||
25609 | LEFT: 37, // also NUM_WEST | ||
25610 | /** | ||
25611 | * UP | ||
25612 | */ | ||
25613 | UP: 38, // also NUM_NORTH | ||
25614 | /** | ||
25615 | * RIGHT | ||
25616 | */ | ||
25617 | RIGHT: 39, // also NUM_EAST | ||
25618 | /** | ||
25619 | * DOWN | ||
25620 | */ | ||
25621 | DOWN: 40, // also NUM_SOUTH | ||
25622 | /** | ||
25623 | * PRINT_SCREEN | ||
25624 | */ | ||
25625 | PRINT_SCREEN: 44, | ||
25626 | /** | ||
25627 | * INSERT | ||
25628 | */ | ||
25629 | INSERT: 45, // also NUM_INSERT | ||
25630 | /** | ||
25631 | * DELETE | ||
25632 | */ | ||
25633 | DELETE: 46, // also NUM_DELETE | ||
25634 | /** | ||
25635 | * ZERO | ||
25636 | */ | ||
25637 | ZERO: 48, | ||
25638 | /** | ||
25639 | * ONE | ||
25640 | */ | ||
25641 | ONE: 49, | ||
25642 | /** | ||
25643 | * TWO | ||
25644 | */ | ||
25645 | TWO: 50, | ||
25646 | /** | ||
25647 | * THREE | ||
25648 | */ | ||
25649 | THREE: 51, | ||
25650 | /** | ||
25651 | * FOUR | ||
25652 | */ | ||
25653 | FOUR: 52, | ||
25654 | /** | ||
25655 | * FIVE | ||
25656 | */ | ||
25657 | FIVE: 53, | ||
25658 | /** | ||
25659 | * SIX | ||
25660 | */ | ||
25661 | SIX: 54, | ||
25662 | /** | ||
25663 | * SEVEN | ||
25664 | */ | ||
25665 | SEVEN: 55, | ||
25666 | /** | ||
25667 | * EIGHT | ||
25668 | */ | ||
25669 | EIGHT: 56, | ||
25670 | /** | ||
25671 | * NINE | ||
25672 | */ | ||
25673 | NINE: 57, | ||
25674 | /** | ||
25675 | * QUESTION_MARK | ||
25676 | */ | ||
25677 | QUESTION_MARK: 63, // needs localization | ||
25678 | /** | ||
25679 | * A | ||
25680 | */ | ||
25681 | A: 65, | ||
25682 | /** | ||
25683 | * B | ||
25684 | */ | ||
25685 | B: 66, | ||
25686 | /** | ||
25687 | * C | ||
25688 | */ | ||
25689 | C: 67, | ||
25690 | /** | ||
25691 | * D | ||
25692 | */ | ||
25693 | D: 68, | ||
25694 | /** | ||
25695 | * E | ||
25696 | */ | ||
25697 | E: 69, | ||
25698 | /** | ||
25699 | * F | ||
25700 | */ | ||
25701 | F: 70, | ||
25702 | /** | ||
25703 | * G | ||
25704 | */ | ||
25705 | G: 71, | ||
25706 | /** | ||
25707 | * H | ||
25708 | */ | ||
25709 | H: 72, | ||
25710 | /** | ||
25711 | * I | ||
25712 | */ | ||
25713 | I: 73, | ||
25714 | /** | ||
25715 | * J | ||
25716 | */ | ||
25717 | J: 74, | ||
25718 | /** | ||
25719 | * K | ||
25720 | */ | ||
25721 | K: 75, | ||
25722 | /** | ||
25723 | * L | ||
25724 | */ | ||
25725 | L: 76, | ||
25726 | /** | ||
25727 | * M | ||
25728 | */ | ||
25729 | M: 77, | ||
25730 | /** | ||
25731 | * N | ||
25732 | */ | ||
25733 | N: 78, | ||
25734 | /** | ||
25735 | * O | ||
25736 | */ | ||
25737 | O: 79, | ||
25738 | /** | ||
25739 | * P | ||
25740 | */ | ||
25741 | P: 80, | ||
25742 | /** | ||
25743 | * Q | ||
25744 | */ | ||
25745 | Q: 81, | ||
25746 | /** | ||
25747 | * R | ||
25748 | */ | ||
25749 | R: 82, | ||
25750 | /** | ||
25751 | * S | ||
25752 | */ | ||
25753 | S: 83, | ||
25754 | /** | ||
25755 | * T | ||
25756 | */ | ||
25757 | T: 84, | ||
25758 | /** | ||
25759 | * U | ||
25760 | */ | ||
25761 | U: 85, | ||
25762 | /** | ||
25763 | * V | ||
25764 | */ | ||
25765 | V: 86, | ||
25766 | /** | ||
25767 | * W | ||
25768 | */ | ||
25769 | W: 87, | ||
25770 | /** | ||
25771 | * X | ||
25772 | */ | ||
25773 | X: 88, | ||
25774 | /** | ||
25775 | * Y | ||
25776 | */ | ||
25777 | Y: 89, | ||
25778 | /** | ||
25779 | * Z | ||
25780 | */ | ||
25781 | Z: 90, | ||
25782 | /** | ||
25783 | * META | ||
25784 | */ | ||
25785 | META: 91, // WIN_KEY_LEFT | ||
25786 | /** | ||
25787 | * WIN_KEY_RIGHT | ||
25788 | */ | ||
25789 | WIN_KEY_RIGHT: 92, | ||
25790 | /** | ||
25791 | * CONTEXT_MENU | ||
25792 | */ | ||
25793 | CONTEXT_MENU: 93, | ||
25794 | /** | ||
25795 | * NUM_ZERO | ||
25796 | */ | ||
25797 | NUM_ZERO: 96, | ||
25798 | /** | ||
25799 | * NUM_ONE | ||
25800 | */ | ||
25801 | NUM_ONE: 97, | ||
25802 | /** | ||
25803 | * NUM_TWO | ||
25804 | */ | ||
25805 | NUM_TWO: 98, | ||
25806 | /** | ||
25807 | * NUM_THREE | ||
25808 | */ | ||
25809 | NUM_THREE: 99, | ||
25810 | /** | ||
25811 | * NUM_FOUR | ||
25812 | */ | ||
25813 | NUM_FOUR: 100, | ||
25814 | /** | ||
25815 | * NUM_FIVE | ||
25816 | */ | ||
25817 | NUM_FIVE: 101, | ||
25818 | /** | ||
25819 | * NUM_SIX | ||
25820 | */ | ||
25821 | NUM_SIX: 102, | ||
25822 | /** | ||
25823 | * NUM_SEVEN | ||
25824 | */ | ||
25825 | NUM_SEVEN: 103, | ||
25826 | /** | ||
25827 | * NUM_EIGHT | ||
25828 | */ | ||
25829 | NUM_EIGHT: 104, | ||
25830 | /** | ||
25831 | * NUM_NINE | ||
25832 | */ | ||
25833 | NUM_NINE: 105, | ||
25834 | /** | ||
25835 | * NUM_MULTIPLY | ||
25836 | */ | ||
25837 | NUM_MULTIPLY: 106, | ||
25838 | /** | ||
25839 | * NUM_PLUS | ||
25840 | */ | ||
25841 | NUM_PLUS: 107, | ||
25842 | /** | ||
25843 | * NUM_MINUS | ||
25844 | */ | ||
25845 | NUM_MINUS: 109, | ||
25846 | /** | ||
25847 | * NUM_PERIOD | ||
25848 | */ | ||
25849 | NUM_PERIOD: 110, | ||
25850 | /** | ||
25851 | * NUM_DIVISION | ||
25852 | */ | ||
25853 | NUM_DIVISION: 111, | ||
25854 | /** | ||
25855 | * F1 | ||
25856 | */ | ||
25857 | F1: 112, | ||
25858 | /** | ||
25859 | * F2 | ||
25860 | */ | ||
25861 | F2: 113, | ||
25862 | /** | ||
25863 | * F3 | ||
25864 | */ | ||
25865 | F3: 114, | ||
25866 | /** | ||
25867 | * F4 | ||
25868 | */ | ||
25869 | F4: 115, | ||
25870 | /** | ||
25871 | * F5 | ||
25872 | */ | ||
25873 | F5: 116, | ||
25874 | /** | ||
25875 | * F6 | ||
25876 | */ | ||
25877 | F6: 117, | ||
25878 | /** | ||
25879 | * F7 | ||
25880 | */ | ||
25881 | F7: 118, | ||
25882 | /** | ||
25883 | * F8 | ||
25884 | */ | ||
25885 | F8: 119, | ||
25886 | /** | ||
25887 | * F9 | ||
25888 | */ | ||
25889 | F9: 120, | ||
25890 | /** | ||
25891 | * F10 | ||
25892 | */ | ||
25893 | F10: 121, | ||
25894 | /** | ||
25895 | * F11 | ||
25896 | */ | ||
25897 | F11: 122, | ||
25898 | /** | ||
25899 | * F12 | ||
25900 | */ | ||
25901 | F12: 123, | ||
25902 | /** | ||
25903 | * NUMLOCK | ||
25904 | */ | ||
25905 | NUMLOCK: 144, | ||
25906 | /** | ||
25907 | * SEMICOLON | ||
25908 | */ | ||
25909 | SEMICOLON: 186, // needs localization | ||
25910 | /** | ||
25911 | * DASH | ||
25912 | */ | ||
25913 | DASH: 189, // needs localization | ||
25914 | /** | ||
25915 | * EQUALS | ||
25916 | */ | ||
25917 | EQUALS: 187, // needs localization | ||
25918 | /** | ||
25919 | * COMMA | ||
25920 | */ | ||
25921 | COMMA: 188, // needs localization | ||
25922 | /** | ||
25923 | * PERIOD | ||
25924 | */ | ||
25925 | PERIOD: 190, // needs localization | ||
25926 | /** | ||
25927 | * SLASH | ||
25928 | */ | ||
25929 | SLASH: 191, // needs localization | ||
25930 | /** | ||
25931 | * APOSTROPHE | ||
25932 | */ | ||
25933 | APOSTROPHE: 192, // needs localization | ||
25934 | /** | ||
25935 | * SINGLE_QUOTE | ||
25936 | */ | ||
25937 | SINGLE_QUOTE: 222, // needs localization | ||
25938 | /** | ||
25939 | * OPEN_SQUARE_BRACKET | ||
25940 | */ | ||
25941 | OPEN_SQUARE_BRACKET: 219, // needs localization | ||
25942 | /** | ||
25943 | * BACKSLASH | ||
25944 | */ | ||
25945 | BACKSLASH: 220, // needs localization | ||
25946 | /** | ||
25947 | * CLOSE_SQUARE_BRACKET | ||
25948 | */ | ||
25949 | CLOSE_SQUARE_BRACKET: 221, // needs localization | ||
25950 | /** | ||
25951 | * WIN_KEY | ||
25952 | */ | ||
25953 | WIN_KEY: 224, | ||
25954 | /** | ||
25955 | * MAC_FF_META | ||
25956 | */ | ||
25957 | MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91 | ||
25958 | /** | ||
25959 | * WIN_IME | ||
25960 | */ | ||
25961 | WIN_IME: 229 | ||
25962 | }; | ||
25963 | |||
25964 | /* | ||
25965 | whether text and modified key is entered at the same time. | ||
25966 | */ | ||
25967 | KeyCode.isTextModifyingKeyEvent = function isTextModifyingKeyEvent(e) { | ||
25968 | var keyCode = e.keyCode; | ||
25969 | if (e.altKey && !e.ctrlKey || e.metaKey || | ||
25970 | // Function keys don't generate text | ||
25971 | keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) { | ||
25972 | return false; | ||
25973 | } | ||
25974 | |||
25975 | // The following keys are quite harmless, even in combination with | ||
25976 | // CTRL, ALT or SHIFT. | ||
25977 | switch (keyCode) { | ||
25978 | case KeyCode.ALT: | ||
25979 | case KeyCode.CAPS_LOCK: | ||
25980 | case KeyCode.CONTEXT_MENU: | ||
25981 | case KeyCode.CTRL: | ||
25982 | case KeyCode.DOWN: | ||
25983 | case KeyCode.END: | ||
25984 | case KeyCode.ESC: | ||
25985 | case KeyCode.HOME: | ||
25986 | case KeyCode.INSERT: | ||
25987 | case KeyCode.LEFT: | ||
25988 | case KeyCode.MAC_FF_META: | ||
25989 | case KeyCode.META: | ||
25990 | case KeyCode.NUMLOCK: | ||
25991 | case KeyCode.NUM_CENTER: | ||
25992 | case KeyCode.PAGE_DOWN: | ||
25993 | case KeyCode.PAGE_UP: | ||
25994 | case KeyCode.PAUSE: | ||
25995 | case KeyCode.PRINT_SCREEN: | ||
25996 | case KeyCode.RIGHT: | ||
25997 | case KeyCode.SHIFT: | ||
25998 | case KeyCode.UP: | ||
25999 | case KeyCode.WIN_KEY: | ||
26000 | case KeyCode.WIN_KEY_RIGHT: | ||
26001 | return false; | ||
26002 | default: | ||
26003 | return true; | ||
26004 | } | ||
26005 | }; | ||
26006 | |||
26007 | /* | ||
26008 | whether character is entered. | ||
26009 | */ | ||
26010 | KeyCode.isCharacterKey = function isCharacterKey(keyCode) { | ||
26011 | if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) { | ||
26012 | return true; | ||
26013 | } | ||
26014 | |||
26015 | if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) { | ||
26016 | return true; | ||
26017 | } | ||
26018 | |||
26019 | if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) { | ||
26020 | return true; | ||
26021 | } | ||
26022 | |||
26023 | // Safari sends zero key code for non-latin characters. | ||
26024 | if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) { | ||
26025 | return true; | ||
26026 | } | ||
26027 | |||
26028 | switch (keyCode) { | ||
26029 | case KeyCode.SPACE: | ||
26030 | case KeyCode.QUESTION_MARK: | ||
26031 | case KeyCode.NUM_PLUS: | ||
26032 | case KeyCode.NUM_MINUS: | ||
26033 | case KeyCode.NUM_PERIOD: | ||
26034 | case KeyCode.NUM_DIVISION: | ||
26035 | case KeyCode.SEMICOLON: | ||
26036 | case KeyCode.DASH: | ||
26037 | case KeyCode.EQUALS: | ||
26038 | case KeyCode.COMMA: | ||
26039 | case KeyCode.PERIOD: | ||
26040 | case KeyCode.SLASH: | ||
26041 | case KeyCode.APOSTROPHE: | ||
26042 | case KeyCode.SINGLE_QUOTE: | ||
26043 | case KeyCode.OPEN_SQUARE_BRACKET: | ||
26044 | case KeyCode.BACKSLASH: | ||
26045 | case KeyCode.CLOSE_SQUARE_BRACKET: | ||
26046 | return true; | ||
26047 | default: | ||
26048 | return false; | ||
26049 | } | ||
26050 | }; | ||
26051 | |||
26052 | module.exports = KeyCode; | ||
26053 | |||
26054 | /***/ }, | ||
26055 | /* 207 */ | ||
26056 | /***/ function(module, exports, __webpack_require__) { | ||
26057 | |||
26058 | 'use strict'; | ||
26059 | |||
26060 | var shallowEqual = __webpack_require__(208); | ||
26061 | |||
26062 | /** | ||
26063 | * If your React component's render function is "pure", e.g. it will render the | ||
26064 | * same result given the same props and state, provide this Mixin for a | ||
26065 | * considerable performance boost. | ||
26066 | * | ||
26067 | * Most React components have pure render functions. | ||
26068 | * | ||
26069 | * Example: | ||
26070 | * | ||
26071 | * const ReactComponentWithPureRenderMixin = | ||
26072 | * require('ReactComponentWithPureRenderMixin'); | ||
26073 | * React.createClass({ | ||
26074 | * mixins: [ReactComponentWithPureRenderMixin], | ||
26075 | * | ||
26076 | * render: function() { | ||
26077 | * return <div className={this.props.className}>foo</div>; | ||
26078 | * } | ||
26079 | * }); | ||
26080 | * | ||
26081 | * Note: This only checks shallow equality for props and state. If these contain | ||
26082 | * complex data structures this mixin may have false-negatives for deeper | ||
26083 | * differences. Only mixin to components which have simple props and state, or | ||
26084 | * use `forceUpdate()` when you know deep data structures have changed. | ||
26085 | */ | ||
26086 | var ReactComponentWithPureRenderMixin = { | ||
26087 | shouldComponentUpdate: function shouldComponentUpdate(nextProps, nextState) { | ||
26088 | return !shallowEqual(this.props, nextProps) || !shallowEqual(this.state, nextState); | ||
26089 | } | ||
26090 | }; | ||
26091 | |||
26092 | module.exports = ReactComponentWithPureRenderMixin; | ||
26093 | |||
26094 | /***/ }, | ||
26095 | /* 208 */ | ||
26096 | /***/ function(module, exports) { | ||
26097 | |||
26098 | "use strict"; | ||
26099 | |||
26100 | function shallowEqual(objA, objB) { | ||
26101 | if (objA === objB) { | ||
26102 | return true; | ||
26103 | } | ||
26104 | var key = undefined; | ||
26105 | // Test for A's keys different from B. | ||
26106 | for (key in objA) { | ||
26107 | if (objA.hasOwnProperty(key) && (!objB.hasOwnProperty(key) || objA[key] !== objB[key])) { | ||
26108 | return false; | ||
26109 | } | ||
26110 | } | ||
26111 | // Test for B's keys missing from A. | ||
26112 | for (key in objB) { | ||
26113 | if (objB.hasOwnProperty(key) && !objA.hasOwnProperty(key)) { | ||
26114 | return false; | ||
26115 | } | ||
26116 | } | ||
26117 | return true; | ||
26118 | } | ||
26119 | |||
26120 | module.exports = shallowEqual; | ||
26121 | |||
26122 | /***/ }, | ||
26123 | /* 209 */ | ||
26124 | /***/ function(module, exports) { | ||
26125 | |||
26126 | /** | ||
26127 | * Safe chained function | ||
26128 | * | ||
26129 | * Will only create a new function if needed, | ||
26130 | * otherwise will pass back existing functions or null. | ||
26131 | * | ||
26132 | * @returns {function|null} | ||
26133 | */ | ||
26134 | "use strict"; | ||
26135 | |||
26136 | function createChainedFunction() { | ||
26137 | var args = arguments; | ||
26138 | return function chainedFunction() { | ||
26139 | for (var i = 0; i < args.length; i++) { | ||
26140 | if (args[i] && args[i].apply) { | ||
26141 | args[i].apply(this, arguments); | ||
26142 | } | ||
26143 | } | ||
26144 | }; | ||
26145 | } | ||
26146 | |||
26147 | module.exports = createChainedFunction; | ||
26148 | |||
26149 | /***/ }, | ||
26150 | /* 210 */ | ||
26151 | /***/ function(module, exports, __webpack_require__) { | ||
26152 | |||
26153 | 'use strict'; | ||
26154 | |||
26155 | Object.defineProperty(exports, '__esModule', { | ||
26156 | value: true | ||
26157 | }); | ||
26158 | exports['default'] = addEventListenerWrap; | ||
26159 | |||
26160 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
26161 | |||
26162 | var _addDomEventListener = __webpack_require__(184); | ||
26163 | |||
26164 | var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); | ||
26165 | |||
26166 | var _reactDom = __webpack_require__(160); | ||
26167 | |||
26168 | var _reactDom2 = _interopRequireDefault(_reactDom); | ||
26169 | |||
26170 | function addEventListenerWrap(target, eventType, cb) { | ||
26171 | /* eslint camelcase: 2 */ | ||
26172 | var callback = _reactDom2['default'].unstable_batchedUpdates ? function run(e) { | ||
26173 | _reactDom2['default'].unstable_batchedUpdates(cb, e); | ||
26174 | } : cb; | ||
26175 | return (0, _addDomEventListener2['default'])(target, eventType, callback); | ||
26176 | } | ||
26177 | |||
26178 | module.exports = exports['default']; | ||
26179 | |||
26180 | /***/ }, | ||
26181 | /* 211 */ | ||
26182 | /***/ function(module, exports) { | ||
26183 | |||
26184 | "use strict"; | ||
26185 | |||
26186 | module.exports = function contains(root, n) { | ||
26187 | var node = n; | ||
26188 | while (node) { | ||
26189 | if (node === root) { | ||
26190 | return true; | ||
26191 | } | ||
26192 | node = node.parentNode; | ||
26193 | } | ||
26194 | |||
26195 | return false; | ||
26196 | }; | ||
26197 | |||
26198 | /***/ }, | ||
26199 | /* 212 */ | ||
26200 | /***/ function(module, exports, __webpack_require__) { | ||
26201 | |||
26202 | 'use strict'; | ||
26203 | |||
26204 | var React = __webpack_require__(3); | ||
26205 | |||
26206 | module.exports = function toArray(children) { | ||
26207 | var ret = []; | ||
26208 | React.Children.forEach(children, function each(c) { | ||
26209 | ret.push(c); | ||
26210 | }); | ||
26211 | return ret; | ||
26212 | }; | ||
26213 | |||
26214 | /***/ }, | ||
26215 | /* 213 */ | ||
26216 | /***/ function(module, exports, __webpack_require__) { | ||
26217 | |||
26218 | 'use strict'; | ||
26219 | |||
26220 | var React = __webpack_require__(3); | ||
26221 | |||
26222 | function mirror(o) { | ||
26223 | return o; | ||
26224 | } | ||
26225 | |||
26226 | module.exports = function mapSelf(children) { | ||
26227 | // return ReactFragment | ||
26228 | return React.Children.map(children, mirror); | ||
26229 | }; | ||
26230 | |||
26231 | /***/ }, | ||
26232 | /* 214 */ | ||
26233 | /***/ function(module, exports) { | 25469 | /***/ function(module, exports) { |
26234 | 25470 | ||
26235 | "use strict"; | 25471 | "use strict"; |
@@ -26248,16 +25484,16 @@ webpackJsonp([0,1],[ | |||
26248 | module.exports = exports["default"]; | 25484 | module.exports = exports["default"]; |
26249 | 25485 | ||
26250 | /***/ }, | 25486 | /***/ }, |
26251 | /* 215 */ | 25487 | /* 203 */ |
26252 | /***/ function(module, exports, __webpack_require__) { | 25488 | /***/ function(module, exports, __webpack_require__) { |
26253 | 25489 | ||
26254 | // export this package's api | 25490 | // export this package's api |
26255 | 'use strict'; | 25491 | 'use strict'; |
26256 | 25492 | ||
26257 | module.exports = __webpack_require__(216); | 25493 | module.exports = __webpack_require__(204); |
26258 | 25494 | ||
26259 | /***/ }, | 25495 | /***/ }, |
26260 | /* 216 */ | 25496 | /* 204 */ |
26261 | /***/ function(module, exports, __webpack_require__) { | 25497 | /***/ function(module, exports, __webpack_require__) { |
26262 | 25498 | ||
26263 | 'use strict'; | 25499 | 'use strict'; |
@@ -26274,13 +25510,13 @@ webpackJsonp([0,1],[ | |||
26274 | 25510 | ||
26275 | var _react2 = _interopRequireDefault(_react); | 25511 | var _react2 = _interopRequireDefault(_react); |
26276 | 25512 | ||
26277 | var _ChildrenUtils = __webpack_require__(217); | 25513 | var _ChildrenUtils = __webpack_require__(205); |
26278 | 25514 | ||
26279 | var _AnimateChild = __webpack_require__(218); | 25515 | var _AnimateChild = __webpack_require__(206); |
26280 | 25516 | ||
26281 | var _AnimateChild2 = _interopRequireDefault(_AnimateChild); | 25517 | var _AnimateChild2 = _interopRequireDefault(_AnimateChild); |
26282 | 25518 | ||
26283 | var _util = __webpack_require__(222); | 25519 | var _util = __webpack_require__(210); |
26284 | 25520 | ||
26285 | var _util2 = _interopRequireDefault(_util); | 25521 | var _util2 = _interopRequireDefault(_util); |
26286 | 25522 | ||
@@ -26577,7 +25813,7 @@ webpackJsonp([0,1],[ | |||
26577 | module.exports = exports['default']; | 25813 | module.exports = exports['default']; |
26578 | 25814 | ||
26579 | /***/ }, | 25815 | /***/ }, |
26580 | /* 217 */ | 25816 | /* 205 */ |
26581 | /***/ function(module, exports, __webpack_require__) { | 25817 | /***/ function(module, exports, __webpack_require__) { |
26582 | 25818 | ||
26583 | 'use strict'; | 25819 | 'use strict'; |
@@ -26695,7 +25931,7 @@ webpackJsonp([0,1],[ | |||
26695 | } | 25931 | } |
26696 | 25932 | ||
26697 | /***/ }, | 25933 | /***/ }, |
26698 | /* 218 */ | 25934 | /* 206 */ |
26699 | /***/ function(module, exports, __webpack_require__) { | 25935 | /***/ function(module, exports, __webpack_require__) { |
26700 | 25936 | ||
26701 | 'use strict'; | 25937 | 'use strict'; |
@@ -26714,11 +25950,11 @@ webpackJsonp([0,1],[ | |||
26714 | 25950 | ||
26715 | var _reactDom2 = _interopRequireDefault(_reactDom); | 25951 | var _reactDom2 = _interopRequireDefault(_reactDom); |
26716 | 25952 | ||
26717 | var _cssAnimation = __webpack_require__(219); | 25953 | var _cssAnimation = __webpack_require__(207); |
26718 | 25954 | ||
26719 | var _cssAnimation2 = _interopRequireDefault(_cssAnimation); | 25955 | var _cssAnimation2 = _interopRequireDefault(_cssAnimation); |
26720 | 25956 | ||
26721 | var _util = __webpack_require__(222); | 25957 | var _util = __webpack_require__(210); |
26722 | 25958 | ||
26723 | var _util2 = _interopRequireDefault(_util); | 25959 | var _util2 = _interopRequireDefault(_util); |
26724 | 25960 | ||
@@ -26798,13 +26034,13 @@ webpackJsonp([0,1],[ | |||
26798 | module.exports = exports['default']; | 26034 | module.exports = exports['default']; |
26799 | 26035 | ||
26800 | /***/ }, | 26036 | /***/ }, |
26801 | /* 219 */ | 26037 | /* 207 */ |
26802 | /***/ function(module, exports, __webpack_require__) { | 26038 | /***/ function(module, exports, __webpack_require__) { |
26803 | 26039 | ||
26804 | 'use strict'; | 26040 | 'use strict'; |
26805 | 26041 | ||
26806 | var Event = __webpack_require__(220); | 26042 | var Event = __webpack_require__(208); |
26807 | var Css = __webpack_require__(221); | 26043 | var Css = __webpack_require__(209); |
26808 | var isCssAnimationSupported = Event.endEvents.length !== 0; | 26044 | var isCssAnimationSupported = Event.endEvents.length !== 0; |
26809 | 26045 | ||
26810 | function getDuration(node, name) { | 26046 | function getDuration(node, name) { |
@@ -26956,7 +26192,7 @@ webpackJsonp([0,1],[ | |||
26956 | module.exports = cssAnimation; | 26192 | module.exports = cssAnimation; |
26957 | 26193 | ||
26958 | /***/ }, | 26194 | /***/ }, |
26959 | /* 220 */ | 26195 | /* 208 */ |
26960 | /***/ function(module, exports) { | 26196 | /***/ function(module, exports) { |
26961 | 26197 | ||
26962 | 'use strict'; | 26198 | 'use strict'; |
@@ -27044,7 +26280,7 @@ webpackJsonp([0,1],[ | |||
27044 | module.exports = TransitionEvents; | 26280 | module.exports = TransitionEvents; |
27045 | 26281 | ||
27046 | /***/ }, | 26282 | /***/ }, |
27047 | /* 221 */ | 26283 | /* 209 */ |
27048 | /***/ function(module, exports) { | 26284 | /***/ function(module, exports) { |
27049 | 26285 | ||
27050 | 'use strict'; | 26286 | 'use strict'; |
@@ -27075,7 +26311,7 @@ webpackJsonp([0,1],[ | |||
27075 | }; | 26311 | }; |
27076 | 26312 | ||
27077 | /***/ }, | 26313 | /***/ }, |
27078 | /* 222 */ | 26314 | /* 210 */ |
27079 | /***/ function(module, exports) { | 26315 | /***/ function(module, exports) { |
27080 | 26316 | ||
27081 | "use strict"; | 26317 | "use strict"; |
@@ -27108,7 +26344,7 @@ webpackJsonp([0,1],[ | |||
27108 | module.exports = exports["default"]; | 26344 | module.exports = exports["default"]; |
27109 | 26345 | ||
27110 | /***/ }, | 26346 | /***/ }, |
27111 | /* 223 */ | 26347 | /* 211 */ |
27112 | /***/ function(module, exports, __webpack_require__) { | 26348 | /***/ function(module, exports, __webpack_require__) { |
27113 | 26349 | ||
27114 | 'use strict'; | 26350 | 'use strict'; |
@@ -27154,7 +26390,7 @@ webpackJsonp([0,1],[ | |||
27154 | module.exports = exports['default']; | 26390 | module.exports = exports['default']; |
27155 | 26391 | ||
27156 | /***/ }, | 26392 | /***/ }, |
27157 | /* 224 */ | 26393 | /* 212 */ |
27158 | /***/ function(module, exports, __webpack_require__) { | 26394 | /***/ function(module, exports, __webpack_require__) { |
27159 | 26395 | ||
27160 | 'use strict'; | 26396 | 'use strict'; |
@@ -27193,30 +26429,30 @@ webpackJsonp([0,1],[ | |||
27193 | } | 26429 | } |
27194 | 26430 | ||
27195 | /***/ }, | 26431 | /***/ }, |
27196 | /* 225 */ | 26432 | /* 213 */ |
27197 | /***/ function(module, exports, __webpack_require__) { | 26433 | /***/ function(module, exports, __webpack_require__) { |
27198 | 26434 | ||
27199 | module.exports = { | 26435 | module.exports = { |
27200 | guid: __webpack_require__(226), | 26436 | guid: __webpack_require__(214), |
27201 | classSet: __webpack_require__(227), | 26437 | classSet: __webpack_require__(215), |
27202 | joinClasses: __webpack_require__(228), | 26438 | joinClasses: __webpack_require__(216), |
27203 | KeyCode: __webpack_require__(229), | 26439 | KeyCode: __webpack_require__(217), |
27204 | PureRenderMixin: __webpack_require__(230), | 26440 | PureRenderMixin: __webpack_require__(218), |
27205 | shallowEqual: __webpack_require__(231), | 26441 | shallowEqual: __webpack_require__(219), |
27206 | createChainedFunction: __webpack_require__(232), | 26442 | createChainedFunction: __webpack_require__(220), |
27207 | Dom: { | 26443 | Dom: { |
27208 | addEventListener: __webpack_require__(233), | 26444 | addEventListener: __webpack_require__(221), |
27209 | contains: __webpack_require__(234) | 26445 | contains: __webpack_require__(226) |
27210 | }, | 26446 | }, |
27211 | Children: { | 26447 | Children: { |
27212 | toArray: __webpack_require__(235), | 26448 | toArray: __webpack_require__(227), |
27213 | mapSelf: __webpack_require__(236) | 26449 | mapSelf: __webpack_require__(228) |
27214 | } | 26450 | } |
27215 | }; | 26451 | }; |
27216 | 26452 | ||
27217 | 26453 | ||
27218 | /***/ }, | 26454 | /***/ }, |
27219 | /* 226 */ | 26455 | /* 214 */ |
27220 | /***/ function(module, exports) { | 26456 | /***/ function(module, exports) { |
27221 | 26457 | ||
27222 | var seed = 0; | 26458 | var seed = 0; |
@@ -27226,14 +26462,14 @@ webpackJsonp([0,1],[ | |||
27226 | 26462 | ||
27227 | 26463 | ||
27228 | /***/ }, | 26464 | /***/ }, |
27229 | /* 227 */ | 26465 | /* 215 */ |
27230 | /***/ function(module, exports, __webpack_require__) { | 26466 | /***/ function(module, exports, __webpack_require__) { |
27231 | 26467 | ||
27232 | module.exports = __webpack_require__(177); | 26468 | module.exports = __webpack_require__(177); |
27233 | 26469 | ||
27234 | 26470 | ||
27235 | /***/ }, | 26471 | /***/ }, |
27236 | /* 228 */ | 26472 | /* 216 */ |
27237 | /***/ function(module, exports) { | 26473 | /***/ function(module, exports) { |
27238 | 26474 | ||
27239 | /** | 26475 | /** |
@@ -27280,7 +26516,7 @@ webpackJsonp([0,1],[ | |||
27280 | 26516 | ||
27281 | 26517 | ||
27282 | /***/ }, | 26518 | /***/ }, |
27283 | /* 229 */ | 26519 | /* 217 */ |
27284 | /***/ function(module, exports) { | 26520 | /***/ function(module, exports) { |
27285 | 26521 | ||
27286 | /** | 26522 | /** |
@@ -27807,7 +27043,7 @@ webpackJsonp([0,1],[ | |||
27807 | 27043 | ||
27808 | 27044 | ||
27809 | /***/ }, | 27045 | /***/ }, |
27810 | /* 230 */ | 27046 | /* 218 */ |
27811 | /***/ function(module, exports, __webpack_require__) { | 27047 | /***/ function(module, exports, __webpack_require__) { |
27812 | 27048 | ||
27813 | /** | 27049 | /** |
@@ -27823,7 +27059,7 @@ webpackJsonp([0,1],[ | |||
27823 | 27059 | ||
27824 | "use strict"; | 27060 | "use strict"; |
27825 | 27061 | ||
27826 | var shallowEqual = __webpack_require__(231); | 27062 | var shallowEqual = __webpack_require__(219); |
27827 | 27063 | ||
27828 | /** | 27064 | /** |
27829 | * If your React component's render function is "pure", e.g. it will render the | 27065 | * If your React component's render function is "pure", e.g. it will render the |
@@ -27860,7 +27096,7 @@ webpackJsonp([0,1],[ | |||
27860 | 27096 | ||
27861 | 27097 | ||
27862 | /***/ }, | 27098 | /***/ }, |
27863 | /* 231 */ | 27099 | /* 219 */ |
27864 | /***/ function(module, exports) { | 27100 | /***/ function(module, exports) { |
27865 | 27101 | ||
27866 | /** | 27102 | /** |
@@ -27908,7 +27144,7 @@ webpackJsonp([0,1],[ | |||
27908 | 27144 | ||
27909 | 27145 | ||
27910 | /***/ }, | 27146 | /***/ }, |
27911 | /* 232 */ | 27147 | /* 220 */ |
27912 | /***/ function(module, exports) { | 27148 | /***/ function(module, exports) { |
27913 | 27149 | ||
27914 | /** | 27150 | /** |
@@ -27935,16 +27171,454 @@ webpackJsonp([0,1],[ | |||
27935 | 27171 | ||
27936 | 27172 | ||
27937 | /***/ }, | 27173 | /***/ }, |
27938 | /* 233 */ | 27174 | /* 221 */ |
27939 | /***/ function(module, exports, __webpack_require__) { | 27175 | /***/ function(module, exports, __webpack_require__) { |
27940 | 27176 | ||
27941 | var addDOMEventListener = __webpack_require__(184); | 27177 | var addDOMEventListener = __webpack_require__(222); |
27942 | 27178 | ||
27943 | module.exports = addDOMEventListener['default'] || addDOMEventListener; | 27179 | module.exports = addDOMEventListener['default'] || addDOMEventListener; |
27944 | 27180 | ||
27945 | 27181 | ||
27946 | /***/ }, | 27182 | /***/ }, |
27947 | /* 234 */ | 27183 | /* 222 */ |
27184 | /***/ function(module, exports, __webpack_require__) { | ||
27185 | |||
27186 | 'use strict'; | ||
27187 | |||
27188 | Object.defineProperty(exports, '__esModule', { | ||
27189 | value: true | ||
27190 | }); | ||
27191 | exports['default'] = addEventListener; | ||
27192 | |||
27193 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
27194 | |||
27195 | var _EventObject = __webpack_require__(223); | ||
27196 | |||
27197 | var _EventObject2 = _interopRequireDefault(_EventObject); | ||
27198 | |||
27199 | function addEventListener(target, eventType, callback) { | ||
27200 | function wrapCallback(e) { | ||
27201 | var ne = new _EventObject2['default'](e); | ||
27202 | callback.call(target, ne); | ||
27203 | } | ||
27204 | |||
27205 | if (target.addEventListener) { | ||
27206 | target.addEventListener(eventType, wrapCallback, false); | ||
27207 | return { | ||
27208 | remove: function remove() { | ||
27209 | target.removeEventListener(eventType, wrapCallback, false); | ||
27210 | } | ||
27211 | }; | ||
27212 | } else if (target.attachEvent) { | ||
27213 | target.attachEvent('on' + eventType, wrapCallback); | ||
27214 | return { | ||
27215 | remove: function remove() { | ||
27216 | target.detachEvent('on' + eventType, wrapCallback); | ||
27217 | } | ||
27218 | }; | ||
27219 | } | ||
27220 | } | ||
27221 | |||
27222 | module.exports = exports['default']; | ||
27223 | |||
27224 | /***/ }, | ||
27225 | /* 223 */ | ||
27226 | /***/ function(module, exports, __webpack_require__) { | ||
27227 | |||
27228 | /** | ||
27229 | * @ignore | ||
27230 | * event object for dom | ||
27231 | * @author yiminghe@gmail.com | ||
27232 | */ | ||
27233 | |||
27234 | 'use strict'; | ||
27235 | |||
27236 | Object.defineProperty(exports, '__esModule', { | ||
27237 | value: true | ||
27238 | }); | ||
27239 | |||
27240 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
27241 | |||
27242 | var _EventBaseObject = __webpack_require__(224); | ||
27243 | |||
27244 | var _EventBaseObject2 = _interopRequireDefault(_EventBaseObject); | ||
27245 | |||
27246 | var _objectAssign = __webpack_require__(225); | ||
27247 | |||
27248 | var _objectAssign2 = _interopRequireDefault(_objectAssign); | ||
27249 | |||
27250 | var TRUE = true; | ||
27251 | var FALSE = false; | ||
27252 | var commonProps = ['altKey', 'bubbles', 'cancelable', 'ctrlKey', 'currentTarget', 'eventPhase', 'metaKey', 'shiftKey', 'target', 'timeStamp', 'view', 'type']; | ||
27253 | |||
27254 | function isNullOrUndefined(w) { | ||
27255 | return w === null || w === undefined; | ||
27256 | } | ||
27257 | |||
27258 | var eventNormalizers = [{ | ||
27259 | reg: /^key/, | ||
27260 | props: ['char', 'charCode', 'key', 'keyCode', 'which'], | ||
27261 | fix: function fix(event, nativeEvent) { | ||
27262 | if (isNullOrUndefined(event.which)) { | ||
27263 | event.which = !isNullOrUndefined(nativeEvent.charCode) ? nativeEvent.charCode : nativeEvent.keyCode; | ||
27264 | } | ||
27265 | |||
27266 | // add metaKey to non-Mac browsers (use ctrl for PC 's and Meta for Macs) | ||
27267 | if (event.metaKey === undefined) { | ||
27268 | event.metaKey = event.ctrlKey; | ||
27269 | } | ||
27270 | } | ||
27271 | }, { | ||
27272 | reg: /^touch/, | ||
27273 | props: ['touches', 'changedTouches', 'targetTouches'] | ||
27274 | }, { | ||
27275 | reg: /^hashchange$/, | ||
27276 | props: ['newURL', 'oldURL'] | ||
27277 | }, { | ||
27278 | reg: /^gesturechange$/i, | ||
27279 | props: ['rotation', 'scale'] | ||
27280 | }, { | ||
27281 | reg: /^(mousewheel|DOMMouseScroll)$/, | ||
27282 | props: [], | ||
27283 | fix: function fix(event, nativeEvent) { | ||
27284 | var deltaX = undefined; | ||
27285 | var deltaY = undefined; | ||
27286 | var delta = undefined; | ||
27287 | var wheelDelta = nativeEvent.wheelDelta; | ||
27288 | var axis = nativeEvent.axis; | ||
27289 | var wheelDeltaY = nativeEvent.wheelDeltaY; | ||
27290 | var wheelDeltaX = nativeEvent.wheelDeltaX; | ||
27291 | var detail = nativeEvent.detail; | ||
27292 | |||
27293 | // ie/webkit | ||
27294 | if (wheelDelta) { | ||
27295 | delta = wheelDelta / 120; | ||
27296 | } | ||
27297 | |||
27298 | // gecko | ||
27299 | if (detail) { | ||
27300 | // press control e.detail == 1 else e.detail == 3 | ||
27301 | delta = 0 - (detail % 3 === 0 ? detail / 3 : detail); | ||
27302 | } | ||
27303 | |||
27304 | // Gecko | ||
27305 | if (axis !== undefined) { | ||
27306 | if (axis === event.HORIZONTAL_AXIS) { | ||
27307 | deltaY = 0; | ||
27308 | deltaX = 0 - delta; | ||
27309 | } else if (axis === event.VERTICAL_AXIS) { | ||
27310 | deltaX = 0; | ||
27311 | deltaY = delta; | ||
27312 | } | ||
27313 | } | ||
27314 | |||
27315 | // Webkit | ||
27316 | if (wheelDeltaY !== undefined) { | ||
27317 | deltaY = wheelDeltaY / 120; | ||
27318 | } | ||
27319 | if (wheelDeltaX !== undefined) { | ||
27320 | deltaX = -1 * wheelDeltaX / 120; | ||
27321 | } | ||
27322 | |||
27323 | // 默认 deltaY (ie) | ||
27324 | if (!deltaX && !deltaY) { | ||
27325 | deltaY = delta; | ||
27326 | } | ||
27327 | |||
27328 | if (deltaX !== undefined) { | ||
27329 | /** | ||
27330 | * deltaX of mousewheel event | ||
27331 | * @property deltaX | ||
27332 | * @member Event.DomEvent.Object | ||
27333 | */ | ||
27334 | event.deltaX = deltaX; | ||
27335 | } | ||
27336 | |||
27337 | if (deltaY !== undefined) { | ||
27338 | /** | ||
27339 | * deltaY of mousewheel event | ||
27340 | * @property deltaY | ||
27341 | * @member Event.DomEvent.Object | ||
27342 | */ | ||
27343 | event.deltaY = deltaY; | ||
27344 | } | ||
27345 | |||
27346 | if (delta !== undefined) { | ||
27347 | /** | ||
27348 | * delta of mousewheel event | ||
27349 | * @property delta | ||
27350 | * @member Event.DomEvent.Object | ||
27351 | */ | ||
27352 | event.delta = delta; | ||
27353 | } | ||
27354 | } | ||
27355 | }, { | ||
27356 | reg: /^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i, | ||
27357 | props: ['buttons', 'clientX', 'clientY', 'button', 'offsetX', 'relatedTarget', 'which', 'fromElement', 'toElement', 'offsetY', 'pageX', 'pageY', 'screenX', 'screenY'], | ||
27358 | fix: function fix(event, nativeEvent) { | ||
27359 | var eventDoc = undefined; | ||
27360 | var doc = undefined; | ||
27361 | var body = undefined; | ||
27362 | var target = event.target; | ||
27363 | var button = nativeEvent.button; | ||
27364 | |||
27365 | // Calculate pageX/Y if missing and clientX/Y available | ||
27366 | if (target && isNullOrUndefined(event.pageX) && !isNullOrUndefined(nativeEvent.clientX)) { | ||
27367 | eventDoc = target.ownerDocument || document; | ||
27368 | doc = eventDoc.documentElement; | ||
27369 | body = eventDoc.body; | ||
27370 | event.pageX = nativeEvent.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0); | ||
27371 | event.pageY = nativeEvent.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0); | ||
27372 | } | ||
27373 | |||
27374 | // which for click: 1 === left; 2 === middle; 3 === right | ||
27375 | // do not use button | ||
27376 | if (!event.which && button !== undefined) { | ||
27377 | if (button & 1) { | ||
27378 | event.which = 1; | ||
27379 | } else if (button & 2) { | ||
27380 | event.which = 3; | ||
27381 | } else if (button & 4) { | ||
27382 | event.which = 2; | ||
27383 | } else { | ||
27384 | event.which = 0; | ||
27385 | } | ||
27386 | } | ||
27387 | |||
27388 | // add relatedTarget, if necessary | ||
27389 | if (!event.relatedTarget && event.fromElement) { | ||
27390 | event.relatedTarget = event.fromElement === target ? event.toElement : event.fromElement; | ||
27391 | } | ||
27392 | |||
27393 | return event; | ||
27394 | } | ||
27395 | }]; | ||
27396 | |||
27397 | function retTrue() { | ||
27398 | return TRUE; | ||
27399 | } | ||
27400 | |||
27401 | function retFalse() { | ||
27402 | return FALSE; | ||
27403 | } | ||
27404 | |||
27405 | function DomEventObject(nativeEvent) { | ||
27406 | var type = nativeEvent.type; | ||
27407 | |||
27408 | var isNative = typeof nativeEvent.stopPropagation === 'function' || typeof nativeEvent.cancelBubble === 'boolean'; | ||
27409 | |||
27410 | _EventBaseObject2['default'].call(this); | ||
27411 | |||
27412 | this.nativeEvent = nativeEvent; | ||
27413 | |||
27414 | // in case dom event has been mark as default prevented by lower dom node | ||
27415 | var isDefaultPrevented = retFalse; | ||
27416 | if ('defaultPrevented' in nativeEvent) { | ||
27417 | isDefaultPrevented = nativeEvent.defaultPrevented ? retTrue : retFalse; | ||
27418 | } else if ('getPreventDefault' in nativeEvent) { | ||
27419 | // https://bugzilla.mozilla.org/show_bug.cgi?id=691151 | ||
27420 | isDefaultPrevented = nativeEvent.getPreventDefault() ? retTrue : retFalse; | ||
27421 | } else if ('returnValue' in nativeEvent) { | ||
27422 | isDefaultPrevented = nativeEvent.returnValue === FALSE ? retTrue : retFalse; | ||
27423 | } | ||
27424 | |||
27425 | this.isDefaultPrevented = isDefaultPrevented; | ||
27426 | |||
27427 | var fixFns = []; | ||
27428 | var fixFn = undefined; | ||
27429 | var l = undefined; | ||
27430 | var prop = undefined; | ||
27431 | var props = commonProps.concat(); | ||
27432 | |||
27433 | eventNormalizers.forEach(function (normalizer) { | ||
27434 | if (type.match(normalizer.reg)) { | ||
27435 | props = props.concat(normalizer.props); | ||
27436 | if (normalizer.fix) { | ||
27437 | fixFns.push(normalizer.fix); | ||
27438 | } | ||
27439 | } | ||
27440 | }); | ||
27441 | |||
27442 | l = props.length; | ||
27443 | |||
27444 | // clone properties of the original event object | ||
27445 | while (l) { | ||
27446 | prop = props[--l]; | ||
27447 | this[prop] = nativeEvent[prop]; | ||
27448 | } | ||
27449 | |||
27450 | // fix target property, if necessary | ||
27451 | if (!this.target && isNative) { | ||
27452 | this.target = nativeEvent.srcElement || document; // srcElement might not be defined either | ||
27453 | } | ||
27454 | |||
27455 | // check if target is a text node (safari) | ||
27456 | if (this.target && this.target.nodeType === 3) { | ||
27457 | this.target = this.target.parentNode; | ||
27458 | } | ||
27459 | |||
27460 | l = fixFns.length; | ||
27461 | |||
27462 | while (l) { | ||
27463 | fixFn = fixFns[--l]; | ||
27464 | fixFn(this, nativeEvent); | ||
27465 | } | ||
27466 | |||
27467 | this.timeStamp = nativeEvent.timeStamp || Date.now(); | ||
27468 | } | ||
27469 | |||
27470 | var EventBaseObjectProto = _EventBaseObject2['default'].prototype; | ||
27471 | |||
27472 | (0, _objectAssign2['default'])(DomEventObject.prototype, EventBaseObjectProto, { | ||
27473 | constructor: DomEventObject, | ||
27474 | |||
27475 | preventDefault: function preventDefault() { | ||
27476 | var e = this.nativeEvent; | ||
27477 | |||
27478 | // if preventDefault exists run it on the original event | ||
27479 | if (e.preventDefault) { | ||
27480 | e.preventDefault(); | ||
27481 | } else { | ||
27482 | // otherwise set the returnValue property of the original event to FALSE (IE) | ||
27483 | e.returnValue = FALSE; | ||
27484 | } | ||
27485 | |||
27486 | EventBaseObjectProto.preventDefault.call(this); | ||
27487 | }, | ||
27488 | |||
27489 | stopPropagation: function stopPropagation() { | ||
27490 | var e = this.nativeEvent; | ||
27491 | |||
27492 | // if stopPropagation exists run it on the original event | ||
27493 | if (e.stopPropagation) { | ||
27494 | e.stopPropagation(); | ||
27495 | } else { | ||
27496 | // otherwise set the cancelBubble property of the original event to TRUE (IE) | ||
27497 | e.cancelBubble = TRUE; | ||
27498 | } | ||
27499 | |||
27500 | EventBaseObjectProto.stopPropagation.call(this); | ||
27501 | } | ||
27502 | }); | ||
27503 | |||
27504 | exports['default'] = DomEventObject; | ||
27505 | module.exports = exports['default']; | ||
27506 | |||
27507 | /***/ }, | ||
27508 | /* 224 */ | ||
27509 | /***/ function(module, exports) { | ||
27510 | |||
27511 | /** | ||
27512 | * @ignore | ||
27513 | * base event object for custom and dom event. | ||
27514 | * @author yiminghe@gmail.com | ||
27515 | */ | ||
27516 | |||
27517 | "use strict"; | ||
27518 | |||
27519 | Object.defineProperty(exports, "__esModule", { | ||
27520 | value: true | ||
27521 | }); | ||
27522 | function returnFalse() { | ||
27523 | return false; | ||
27524 | } | ||
27525 | |||
27526 | function returnTrue() { | ||
27527 | return true; | ||
27528 | } | ||
27529 | |||
27530 | function EventBaseObject() { | ||
27531 | this.timeStamp = Date.now(); | ||
27532 | this.target = undefined; | ||
27533 | this.currentTarget = undefined; | ||
27534 | } | ||
27535 | |||
27536 | EventBaseObject.prototype = { | ||
27537 | isEventObject: 1, | ||
27538 | |||
27539 | constructor: EventBaseObject, | ||
27540 | |||
27541 | isDefaultPrevented: returnFalse, | ||
27542 | |||
27543 | isPropagationStopped: returnFalse, | ||
27544 | |||
27545 | isImmediatePropagationStopped: returnFalse, | ||
27546 | |||
27547 | preventDefault: function preventDefault() { | ||
27548 | this.isDefaultPrevented = returnTrue; | ||
27549 | }, | ||
27550 | |||
27551 | stopPropagation: function stopPropagation() { | ||
27552 | this.isPropagationStopped = returnTrue; | ||
27553 | }, | ||
27554 | |||
27555 | stopImmediatePropagation: function stopImmediatePropagation() { | ||
27556 | this.isImmediatePropagationStopped = returnTrue; | ||
27557 | // fixed 1.2 | ||
27558 | // call stopPropagation implicitly | ||
27559 | this.stopPropagation(); | ||
27560 | }, | ||
27561 | |||
27562 | halt: function halt(immediate) { | ||
27563 | if (immediate) { | ||
27564 | this.stopImmediatePropagation(); | ||
27565 | } else { | ||
27566 | this.stopPropagation(); | ||
27567 | } | ||
27568 | this.preventDefault(); | ||
27569 | } | ||
27570 | }; | ||
27571 | |||
27572 | exports["default"] = EventBaseObject; | ||
27573 | module.exports = exports["default"]; | ||
27574 | |||
27575 | /***/ }, | ||
27576 | /* 225 */ | ||
27577 | /***/ function(module, exports) { | ||
27578 | |||
27579 | /* eslint-disable no-unused-vars */ | ||
27580 | 'use strict'; | ||
27581 | var hasOwnProperty = Object.prototype.hasOwnProperty; | ||
27582 | var propIsEnumerable = Object.prototype.propertyIsEnumerable; | ||
27583 | |||
27584 | function toObject(val) { | ||
27585 | if (val === null || val === undefined) { | ||
27586 | throw new TypeError('Object.assign cannot be called with null or undefined'); | ||
27587 | } | ||
27588 | |||
27589 | return Object(val); | ||
27590 | } | ||
27591 | |||
27592 | module.exports = Object.assign || function (target, source) { | ||
27593 | var from; | ||
27594 | var to = toObject(target); | ||
27595 | var symbols; | ||
27596 | |||
27597 | for (var s = 1; s < arguments.length; s++) { | ||
27598 | from = Object(arguments[s]); | ||
27599 | |||
27600 | for (var key in from) { | ||
27601 | if (hasOwnProperty.call(from, key)) { | ||
27602 | to[key] = from[key]; | ||
27603 | } | ||
27604 | } | ||
27605 | |||
27606 | if (Object.getOwnPropertySymbols) { | ||
27607 | symbols = Object.getOwnPropertySymbols(from); | ||
27608 | for (var i = 0; i < symbols.length; i++) { | ||
27609 | if (propIsEnumerable.call(from, symbols[i])) { | ||
27610 | to[symbols[i]] = from[symbols[i]]; | ||
27611 | } | ||
27612 | } | ||
27613 | } | ||
27614 | } | ||
27615 | |||
27616 | return to; | ||
27617 | }; | ||
27618 | |||
27619 | |||
27620 | /***/ }, | ||
27621 | /* 226 */ | ||
27948 | /***/ function(module, exports) { | 27622 | /***/ function(module, exports) { |
27949 | 27623 | ||
27950 | module.exports = function (root, node) { | 27624 | module.exports = function (root, node) { |
@@ -27960,7 +27634,7 @@ webpackJsonp([0,1],[ | |||
27960 | 27634 | ||
27961 | 27635 | ||
27962 | /***/ }, | 27636 | /***/ }, |
27963 | /* 235 */ | 27637 | /* 227 */ |
27964 | /***/ function(module, exports, __webpack_require__) { | 27638 | /***/ function(module, exports, __webpack_require__) { |
27965 | 27639 | ||
27966 | var React = __webpack_require__(3); | 27640 | var React = __webpack_require__(3); |
@@ -27975,7 +27649,7 @@ webpackJsonp([0,1],[ | |||
27975 | 27649 | ||
27976 | 27650 | ||
27977 | /***/ }, | 27651 | /***/ }, |
27978 | /* 236 */ | 27652 | /* 228 */ |
27979 | /***/ function(module, exports, __webpack_require__) { | 27653 | /***/ function(module, exports, __webpack_require__) { |
27980 | 27654 | ||
27981 | var React = __webpack_require__(3); | 27655 | var React = __webpack_require__(3); |
@@ -27991,7 +27665,7 @@ webpackJsonp([0,1],[ | |||
27991 | 27665 | ||
27992 | 27666 | ||
27993 | /***/ }, | 27667 | /***/ }, |
27994 | /* 237 */ | 27668 | /* 229 */ |
27995 | /***/ function(module, exports, __webpack_require__) { | 27669 | /***/ function(module, exports, __webpack_require__) { |
27996 | 27670 | ||
27997 | 'use strict'; | 27671 | 'use strict'; |
@@ -28018,15 +27692,15 @@ webpackJsonp([0,1],[ | |||
28018 | 27692 | ||
28019 | var _gregorianCalendarLibLocaleZh_CN2 = _interopRequireDefault(_gregorianCalendarLibLocaleZh_CN); | 27693 | var _gregorianCalendarLibLocaleZh_CN2 = _interopRequireDefault(_gregorianCalendarLibLocaleZh_CN); |
28020 | 27694 | ||
28021 | var _mixinCommonMixin = __webpack_require__(238); | 27695 | var _mixinCommonMixin = __webpack_require__(230); |
28022 | 27696 | ||
28023 | var _mixinCommonMixin2 = _interopRequireDefault(_mixinCommonMixin); | 27697 | var _mixinCommonMixin2 = _interopRequireDefault(_mixinCommonMixin); |
28024 | 27698 | ||
28025 | var _Header = __webpack_require__(241); | 27699 | var _Header = __webpack_require__(233); |
28026 | 27700 | ||
28027 | var _Header2 = _interopRequireDefault(_Header); | 27701 | var _Header2 = _interopRequireDefault(_Header); |
28028 | 27702 | ||
28029 | var _Combobox = __webpack_require__(242); | 27703 | var _Combobox = __webpack_require__(234); |
28030 | 27704 | ||
28031 | var _Combobox2 = _interopRequireDefault(_Combobox); | 27705 | var _Combobox2 = _interopRequireDefault(_Combobox); |
28032 | 27706 | ||
@@ -28043,7 +27717,7 @@ webpackJsonp([0,1],[ | |||
28043 | 27717 | ||
28044 | propTypes: { | 27718 | propTypes: { |
28045 | prefixCls: _react.PropTypes.string, | 27719 | prefixCls: _react.PropTypes.string, |
28046 | defaultValue: _react.PropTypes.object, | 27720 | value: _react.PropTypes.object, |
28047 | locale: _react.PropTypes.object, | 27721 | locale: _react.PropTypes.object, |
28048 | placeholder: _react.PropTypes.string, | 27722 | placeholder: _react.PropTypes.string, |
28049 | formatter: _react.PropTypes.object, | 27723 | formatter: _react.PropTypes.object, |
@@ -28067,13 +27741,13 @@ webpackJsonp([0,1],[ | |||
28067 | }, | 27741 | }, |
28068 | 27742 | ||
28069 | getInitialState: function getInitialState() { | 27743 | getInitialState: function getInitialState() { |
28070 | var defaultValue = this.props.defaultValue; | 27744 | var value = this.props.value; |
28071 | if (!defaultValue) { | 27745 | if (!value) { |
28072 | defaultValue = new _gregorianCalendar2['default'](_gregorianCalendarLibLocaleZh_CN2['default']); | 27746 | value = new _gregorianCalendar2['default'](_gregorianCalendarLibLocaleZh_CN2['default']); |
28073 | defaultValue.setTime(Date.now()); | 27747 | value.setTime(Date.now()); |
28074 | } | 27748 | } |
28075 | return { | 27749 | return { |
28076 | value: defaultValue | 27750 | value: value |
28077 | }; | 27751 | }; |
28078 | }, | 27752 | }, |
28079 | 27753 | ||
@@ -28087,6 +27761,15 @@ webpackJsonp([0,1],[ | |||
28087 | } | 27761 | } |
28088 | }, | 27762 | }, |
28089 | 27763 | ||
27764 | componentWillReceiveProps: function componentWillReceiveProps(nextProps) { | ||
27765 | var value = nextProps.value; | ||
27766 | if (value) { | ||
27767 | this.setState({ | ||
27768 | value: value | ||
27769 | }); | ||
27770 | } | ||
27771 | }, | ||
27772 | |||
28090 | onChange: function onChange(newValue) { | 27773 | onChange: function onChange(newValue) { |
28091 | this.setState({ value: newValue }); | 27774 | this.setState({ value: newValue }); |
28092 | this.props.onChange(newValue); | 27775 | this.props.onChange(newValue); |
@@ -28103,13 +27786,12 @@ webpackJsonp([0,1],[ | |||
28103 | var _props = this.props; | 27786 | var _props = this.props; |
28104 | var locale = _props.locale; | 27787 | var locale = _props.locale; |
28105 | var prefixCls = _props.prefixCls; | 27788 | var prefixCls = _props.prefixCls; |
28106 | var defaultValue = _props.defaultValue; | ||
28107 | var placeholder = _props.placeholder; | 27789 | var placeholder = _props.placeholder; |
28108 | var hourOptions = _props.hourOptions; | 27790 | var hourOptions = _props.hourOptions; |
28109 | var minuteOptions = _props.minuteOptions; | 27791 | var minuteOptions = _props.minuteOptions; |
28110 | var secondOptions = _props.secondOptions; | 27792 | var secondOptions = _props.secondOptions; |
28111 | 27793 | ||
28112 | var value = this.state.value || defaultValue; | 27794 | var value = this.state.value; |
28113 | var cls = (0, _classnames2['default'])({ 'narrow': !this.showHour || !this.showSecond }); | 27795 | var cls = (0, _classnames2['default'])({ 'narrow': !this.showHour || !this.showSecond }); |
28114 | 27796 | ||
28115 | return _react2['default'].createElement( | 27797 | return _react2['default'].createElement( |
@@ -28148,7 +27830,7 @@ webpackJsonp([0,1],[ | |||
28148 | module.exports = exports['default']; | 27830 | module.exports = exports['default']; |
28149 | 27831 | ||
28150 | /***/ }, | 27832 | /***/ }, |
28151 | /* 238 */ | 27833 | /* 230 */ |
28152 | /***/ function(module, exports, __webpack_require__) { | 27834 | /***/ function(module, exports, __webpack_require__) { |
28153 | 27835 | ||
28154 | 'use strict'; | 27836 | 'use strict'; |
@@ -28161,11 +27843,11 @@ webpackJsonp([0,1],[ | |||
28161 | 27843 | ||
28162 | var _react = __webpack_require__(3); | 27844 | var _react = __webpack_require__(3); |
28163 | 27845 | ||
28164 | var _localeEn_US = __webpack_require__(239); | 27846 | var _localeEn_US = __webpack_require__(231); |
28165 | 27847 | ||
28166 | var _localeEn_US2 = _interopRequireDefault(_localeEn_US); | 27848 | var _localeEn_US2 = _interopRequireDefault(_localeEn_US); |
28167 | 27849 | ||
28168 | var _utilIndex = __webpack_require__(240); | 27850 | var _utilIndex = __webpack_require__(232); |
28169 | 27851 | ||
28170 | exports['default'] = { | 27852 | exports['default'] = { |
28171 | propTypes: { | 27853 | propTypes: { |
@@ -28212,7 +27894,7 @@ webpackJsonp([0,1],[ | |||
28212 | module.exports = exports['default']; | 27894 | module.exports = exports['default']; |
28213 | 27895 | ||
28214 | /***/ }, | 27896 | /***/ }, |
28215 | /* 239 */ | 27897 | /* 231 */ |
28216 | /***/ function(module, exports, __webpack_require__) { | 27898 | /***/ function(module, exports, __webpack_require__) { |
28217 | 27899 | ||
28218 | 'use strict'; | 27900 | 'use strict'; |
@@ -28234,7 +27916,7 @@ webpackJsonp([0,1],[ | |||
28234 | module.exports = exports['default']; | 27916 | module.exports = exports['default']; |
28235 | 27917 | ||
28236 | /***/ }, | 27918 | /***/ }, |
28237 | /* 240 */ | 27919 | /* 232 */ |
28238 | /***/ function(module, exports, __webpack_require__) { | 27920 | /***/ function(module, exports, __webpack_require__) { |
28239 | 27921 | ||
28240 | 'use strict'; | 27922 | 'use strict'; |
@@ -28258,7 +27940,7 @@ webpackJsonp([0,1],[ | |||
28258 | } | 27940 | } |
28259 | 27941 | ||
28260 | /***/ }, | 27942 | /***/ }, |
28261 | /* 241 */ | 27943 | /* 233 */ |
28262 | /***/ function(module, exports, __webpack_require__) { | 27944 | /***/ function(module, exports, __webpack_require__) { |
28263 | 27945 | ||
28264 | 'use strict'; | 27946 | 'use strict'; |
@@ -28411,7 +28093,7 @@ webpackJsonp([0,1],[ | |||
28411 | module.exports = exports['default']; | 28093 | module.exports = exports['default']; |
28412 | 28094 | ||
28413 | /***/ }, | 28095 | /***/ }, |
28414 | /* 242 */ | 28096 | /* 234 */ |
28415 | /***/ function(module, exports, __webpack_require__) { | 28097 | /***/ function(module, exports, __webpack_require__) { |
28416 | 28098 | ||
28417 | 'use strict'; | 28099 | 'use strict'; |
@@ -28426,7 +28108,7 @@ webpackJsonp([0,1],[ | |||
28426 | 28108 | ||
28427 | var _react2 = _interopRequireDefault(_react); | 28109 | var _react2 = _interopRequireDefault(_react); |
28428 | 28110 | ||
28429 | var _Select = __webpack_require__(243); | 28111 | var _Select = __webpack_require__(235); |
28430 | 28112 | ||
28431 | var _Select2 = _interopRequireDefault(_Select); | 28113 | var _Select2 = _interopRequireDefault(_Select); |
28432 | 28114 | ||
@@ -28542,7 +28224,7 @@ webpackJsonp([0,1],[ | |||
28542 | module.exports = exports['default']; | 28224 | module.exports = exports['default']; |
28543 | 28225 | ||
28544 | /***/ }, | 28226 | /***/ }, |
28545 | /* 243 */ | 28227 | /* 235 */ |
28546 | /***/ function(module, exports, __webpack_require__) { | 28228 | /***/ function(module, exports, __webpack_require__) { |
28547 | 28229 | ||
28548 | 'use strict'; | 28230 | 'use strict'; |
@@ -28670,7 +28352,7 @@ webpackJsonp([0,1],[ | |||
28670 | module.exports = exports['default']; | 28352 | module.exports = exports['default']; |
28671 | 28353 | ||
28672 | /***/ }, | 28354 | /***/ }, |
28673 | /* 244 */ | 28355 | /* 236 */ |
28674 | /***/ function(module, exports) { | 28356 | /***/ function(module, exports) { |
28675 | 28357 | ||
28676 | 'use strict'; | 28358 | 'use strict'; |
@@ -28716,7 +28398,7 @@ webpackJsonp([0,1],[ | |||
28716 | module.exports = exports['default']; | 28398 | module.exports = exports['default']; |
28717 | 28399 | ||
28718 | /***/ }, | 28400 | /***/ }, |
28719 | /* 245 */ | 28401 | /* 237 */ |
28720 | /***/ function(module, exports, __webpack_require__) { | 28402 | /***/ function(module, exports, __webpack_require__) { |
28721 | 28403 | ||
28722 | 'use strict'; | 28404 | 'use strict'; |
@@ -28727,7 +28409,7 @@ webpackJsonp([0,1],[ | |||
28727 | 28409 | ||
28728 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | 28410 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } |
28729 | 28411 | ||
28730 | var _gregorianCalendarFormatLibLocaleZh_CN = __webpack_require__(246); | 28412 | var _gregorianCalendarFormatLibLocaleZh_CN = __webpack_require__(238); |
28731 | 28413 | ||
28732 | var _gregorianCalendarFormatLibLocaleZh_CN2 = _interopRequireDefault(_gregorianCalendarFormatLibLocaleZh_CN); | 28414 | var _gregorianCalendarFormatLibLocaleZh_CN2 = _interopRequireDefault(_gregorianCalendarFormatLibLocaleZh_CN); |
28733 | 28415 | ||
@@ -28738,7 +28420,7 @@ webpackJsonp([0,1],[ | |||
28738 | module.exports = exports['default']; | 28420 | module.exports = exports['default']; |
28739 | 28421 | ||
28740 | /***/ }, | 28422 | /***/ }, |
28741 | /* 246 */ | 28423 | /* 238 */ |
28742 | /***/ function(module, exports) { | 28424 | /***/ function(module, exports) { |
28743 | 28425 | ||
28744 | 'use strict'; | 28426 | 'use strict'; |