diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index 49fbd55630..05b75844b7 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -1,4 +1,4 @@
-#### Do you want to request a *feature* or report a *bug*?
+#### Do you want to request a _feature_ or report a _bug_?
#### What's the current behavior?
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a6345197d4..277aeea5e3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,359 +1,175 @@
-v0.17.1 - Tue, 05 Dec 2017 19:42:18 GMT
----------------------------------------
+## v0.17.1 - Tue, 05 Dec 2017 19:42:18 GMT
-- [#634](../../pull/634) added a new optional callback `dayPropGetter` to allow customization of the cell backgrounds of month, week, and work week views without the need for custom components
+* [#634](../../pull/634) added a new optional callback `dayPropGetter` to allow customization of the cell backgrounds of month, week, and work week views without the need for custom components
+## v0.17.0 - Thu, 02 Nov 2017 15:26:08 GMT
+## v0.16.1 - Fri, 29 Sep 2017 15:49:07 GMT
-v0.17.0 - Thu, 02 Nov 2017 15:26:08 GMT
----------------------------------------
+## v0.16.0 - Fri, 29 Sep 2017 15:42:08 GMT
+## v0.15.0 - Tue, 29 Aug 2017 18:20:39 GMT
+## v0.14.4 - Fri, 23 Jun 2017 13:59:31 GMT
+## v0.14.3 - Wed, 21 Jun 2017 14:23:07 GMT
+## v0.14.2 - Mon, 19 Jun 2017 15:41:40 GMT
-v0.16.1 - Fri, 29 Sep 2017 15:49:07 GMT
----------------------------------------
+## v0.14.1 - Mon, 19 Jun 2017 15:41:20 GMT
+## v0.14.0 - Tue, 02 May 2017 13:14:45 GMT
+## v0.13.0 - Wed, 22 Mar 2017 15:09:54 GMT
+## v0.12.3 - Sun, 15 Jan 2017 17:15:59 GMT
+## v0.12.2 - Sun, 15 Jan 2017 17:09:50 GMT
-v0.16.0 - Fri, 29 Sep 2017 15:42:08 GMT
----------------------------------------
+* [45687c9](../../commit/45687c9) [fixed] allow string names in `move()`
+## v0.12.1 - Thu, 12 Jan 2017 20:47:22 GMT
+* [5578559](../../commit/5578559) [fixed] all day event selection
+## v0.12.0 - Sat, 07 Jan 2017 22:03:45 GMT
+## v0.11.1 - Sun, 20 Nov 2016 17:48:51 GMT
-v0.15.0 - Tue, 29 Aug 2017 18:20:39 GMT
----------------------------------------
+## v0.11.0 - Sat, 08 Oct 2016 20:24:51 GMT
+## v0.10.3 - Fri, 15 Jul 2016 17:56:54 GMT
+## v0.10.2 - Fri, 10 Jun 2016 12:50:39 GMT
+* [741c882](../../commit/741c882) [fixed] rm jsx imports
+## v0.10.1 - Thu, 09 Jun 2016 18:39:57 GMT
-v0.14.4 - Fri, 23 Jun 2017 13:59:31 GMT
----------------------------------------
+## v0.10.0 - Thu, 09 Jun 2016 15:33:06 GMT
+## v0.9.12 - Fri, 20 May 2016 12:54:29 GMT
+## v0.9.11 - Fri, 15 Apr 2016 13:39:50 GMT
+## v0.9.10 - Fri, 15 Apr 2016 13:31:58 GMT
+## v0.9.9 - Fri, 15 Apr 2016 12:28:00 GMT
-v0.14.3 - Wed, 21 Jun 2017 14:23:07 GMT
----------------------------------------
+* [a2a49c8](../../commit/a2a49c8) [fixed] consistent handling of end dates as _exclusive_ ranges
+* [1c12b16](../../commit/1c12b16) [fixed] DST issue with events
+* [f526e23](../../commit/f526e23) [added] onSelecting callback
+* [18c0234](../../commit/18c0234) [fixed] incorrect page offset
+* [4eeacd4](../../commit/4eeacd4) [fixed] more cross browser flex issues.
+* [2dc61ec](../../commit/2dc61ec) [fixed] add minHeight for week view overflow
+## v0.9.8 - Thu, 14 Jan 2016 19:35:07 GMT
+* [5fa7012](../../commit/5fa7012) [fixed] Incorrect gutter widths
+## v0.9.7 - Sun, 13 Dec 2015 22:01:09 GMT
+* [ebf8908](../../commit/ebf8908) [fixed] agenda header display
-v0.14.2 - Mon, 19 Jun 2017 15:41:40 GMT
----------------------------------------
+## v0.9.6 - Sun, 13 Dec 2015 21:39:49 GMT
+* [a69600b](../../commit/a69600b) [fixed] Pass correct date to DaySlot for selections.
+* [5ac5c30](../../commit/5ac5c30) [fixed] reset gutter widths before calculations
+## v0.9.5 - Wed, 02 Dec 2015 18:09:32 GMT
+* [c2e8aa4](../../commit/c2e8aa4) [fixed] accidental breaking change on the localizers
+* [dc90943](../../commit/dc90943) [fixed] some style issues
+* [ea8e085](../../commit/ea8e085) [added] modern globalize support
+* [4b3d3ba](../../commit/4b3d3ba) [fixed] have gutter use culture prop
+* [7922882](../../commit/7922882) [fixed] better gutter width detection
+## v0.9.4 - Sun, 29 Nov 2015 02:19:49 GMT
-v0.14.1 - Mon, 19 Jun 2017 15:41:20 GMT
----------------------------------------
+* [a41c9f9](../../commit/a41c9f9) [added] right-to-left support
+* [8bb6589](../../commit/8bb6589) [fixed] properly select time ranges with min/max set
+## v0.9.3 - Sat, 28 Nov 2015 20:00:24 GMT
+* [fff1914](../../commit/fff1914) [fixed] pass culture to View
+## v0.9.2 - Thu, 12 Nov 2015 23:34:33 GMT
+* [58f008f](../../commit/58f008f) [fixed] none integer slot spaces (again)
+* [f2084ef](../../commit/f2084ef) [fixed] month event rows not fitting in their cells
+* [73e449d](../../commit/73e449d) [fixed] day view clicks return the correct slot
-v0.14.0 - Tue, 02 May 2017 13:14:45 GMT
----------------------------------------
+## v0.9.1 - Thu, 12 Nov 2015 14:52:20 GMT
+* [d5a0d20](../../commit/d5a0d20) [fixed] month event rows not fitting in their cells
+* [f4b18d6](../../commit/f4b18d6) [fixed] day view clicks return the correct slot
+## v0.9.0 - Tue, 03 Nov 2015 11:33:38 GMT
+* [ee53bbc](../../commit/ee53bbc) [changed] default "show more" behavior navigates to day view
+* [80aa08f](../../commit/80aa08f) [added] popupOffset prop for configuring distance from viewport edge
+## v0.8.3 - Thu, 29 Oct 2015 06:07:22 GMT
-v0.13.0 - Wed, 22 Mar 2017 15:09:54 GMT
----------------------------------------
+* [d98af8d](../../commit/d98af8d) [added] edge detection for event popup
+* [69b092d](../../commit/69b092d) [fixed] accidental hash changes
+* [0351b71](../../commit/0351b71) [fixed] incorrect 'show more' layout
+## v0.8.2 - Wed, 28 Oct 2015 08:09:39 GMT
+* [892af3d](../../commit/892af3d) [fixed] use correct handler for "show more"
+## v0.8.1 - Wed, 28 Oct 2015 07:58:13 GMT
+* [4560ff7](../../commit/4560ff7) [changed] better thin event title collapse
+* [0eeb43f](../../commit/0eeb43f) [fixed] event layout sort
+* [0574eed](../../commit/0574eed) [fixed] show more row layout issues
+* [7ee9959](../../commit/7ee9959) [added] title to time view events
+* [c07d0ab](../../commit/c07d0ab) [changed] better event overlays for overlapping events
-v0.12.3 - Sun, 15 Jan 2017 17:15:59 GMT
----------------------------------------
+## v0.8.0 - Mon, 26 Oct 2015 12:32:54 GMT
+* [4dac3f5](../../commit/4dac3f5) [added] rbc-event-allday class in month view
+* [e314128](../../commit/e314128) [fixed] missing keys in popup
+* [0d5df79](../../commit/0d5df79) [changed] "show more" behavior is cleaner
+## v0.7.2 - Sat, 24 Oct 2015 03:21:53 GMT
+* [0b0fa0f](../../commit/0b0fa0f) [fixed] prevent selection when clicking show more
+* [57c8843](../../commit/57c8843) [fixed] allow event selection when selectable, in day views
+## v0.7.1 - Wed, 30 Sep 2015 12:34:43 GMT
-v0.12.2 - Sun, 15 Jan 2017 17:09:50 GMT
----------------------------------------
+* [f7969b3](../../commit/f7969b3) [fixed] use client coords to get node during selection
-- [45687c9](../../commit/45687c9) [fixed] allow string names in `move()`
+## v0.7.0 - Tue, 15 Sep 2015 08:37:50 GMT
+* [8ad4ee7](../../commit/8ad4ee7) [changed] selection bound to Calendar container, respects overlays
+* [98b3dad](../../commit/98b3dad) [fixed] selecting events in All Day row of week/Day views
+## v0.6.1 - Sun, 13 Sep 2015 16:52:20 GMT
-v0.12.1 - Thu, 12 Jan 2017 20:47:22 GMT
----------------------------------------
+* [c3092f4](../../commit/c3092f4) [fixed] event rows incorrect duration styles
+* [dade2b9](../../commit/dade2b9) [fixed] more month event layout issues
-- [5578559](../../commit/5578559) [fixed] all day event selection
+## v0.6.0 - Sun, 13 Sep 2015 15:32:08 GMT
+* [49e321f](../../commit/49e321f) [fixed] layout of events in months that don't start evenly at weekday 0
+* [720675e](../../commit/720675e) [added] eventPropsGetter for event markup customization
+## v0.5.2 - Sun, 13 Sep 2015 12:56:02 GMT
-v0.12.0 - Sat, 07 Jan 2017 22:03:45 GMT
----------------------------------------
-
-
-
-
-
-v0.11.1 - Sun, 20 Nov 2016 17:48:51 GMT
----------------------------------------
-
-
-
-
-
-v0.11.0 - Sat, 08 Oct 2016 20:24:51 GMT
----------------------------------------
-
-
-
-
-
-v0.10.3 - Fri, 15 Jul 2016 17:56:54 GMT
----------------------------------------
-
-
-
-
-
-v0.10.2 - Fri, 10 Jun 2016 12:50:39 GMT
----------------------------------------
-
-- [741c882](../../commit/741c882) [fixed] rm jsx imports
-
-
-
-v0.10.1 - Thu, 09 Jun 2016 18:39:57 GMT
----------------------------------------
-
-
-
-
-
-v0.10.0 - Thu, 09 Jun 2016 15:33:06 GMT
----------------------------------------
-
-
-
-
-
-v0.9.12 - Fri, 20 May 2016 12:54:29 GMT
----------------------------------------
-
-
-
-
-
-v0.9.11 - Fri, 15 Apr 2016 13:39:50 GMT
----------------------------------------
-
-
-
-
-
-v0.9.10 - Fri, 15 Apr 2016 13:31:58 GMT
----------------------------------------
-
-
-
-
-
-v0.9.9 - Fri, 15 Apr 2016 12:28:00 GMT
---------------------------------------
-
-- [a2a49c8](../../commit/a2a49c8) [fixed] consistent handling of end dates as _exclusive_ ranges
-- [1c12b16](../../commit/1c12b16) [fixed] DST issue with events
-- [f526e23](../../commit/f526e23) [added] onSelecting callback
-- [18c0234](../../commit/18c0234) [fixed] incorrect page offset
-- [4eeacd4](../../commit/4eeacd4) [fixed] more cross browser flex issues.
-- [2dc61ec](../../commit/2dc61ec) [fixed] add minHeight for week view overflow
-
-
-
-v0.9.8 - Thu, 14 Jan 2016 19:35:07 GMT
---------------------------------------
-
-- [5fa7012](../../commit/5fa7012) [fixed] Incorrect gutter widths
-
-
-
-v0.9.7 - Sun, 13 Dec 2015 22:01:09 GMT
---------------------------------------
-
-- [ebf8908](../../commit/ebf8908) [fixed] agenda header display
-
-
-
-v0.9.6 - Sun, 13 Dec 2015 21:39:49 GMT
---------------------------------------
-
-- [a69600b](../../commit/a69600b) [fixed] Pass correct date to DaySlot for selections.
-- [5ac5c30](../../commit/5ac5c30) [fixed] reset gutter widths before calculations
-
-
-
-v0.9.5 - Wed, 02 Dec 2015 18:09:32 GMT
---------------------------------------
-
-- [c2e8aa4](../../commit/c2e8aa4) [fixed] accidental breaking change on the localizers
-- [dc90943](../../commit/dc90943) [fixed] some style issues
-- [ea8e085](../../commit/ea8e085) [added] modern globalize support
-- [4b3d3ba](../../commit/4b3d3ba) [fixed] have gutter use culture prop
-- [7922882](../../commit/7922882) [fixed] better gutter width detection
-
-
-
-v0.9.4 - Sun, 29 Nov 2015 02:19:49 GMT
---------------------------------------
-
-- [a41c9f9](../../commit/a41c9f9) [added] right-to-left support
-- [8bb6589](../../commit/8bb6589) [fixed] properly select time ranges with min/max set
-
-
-
-v0.9.3 - Sat, 28 Nov 2015 20:00:24 GMT
---------------------------------------
-
-- [fff1914](../../commit/fff1914) [fixed] pass culture to View
-
-
-
-v0.9.2 - Thu, 12 Nov 2015 23:34:33 GMT
---------------------------------------
-
-- [58f008f](../../commit/58f008f) [fixed] none integer slot spaces (again)
-- [f2084ef](../../commit/f2084ef) [fixed] month event rows not fitting in their cells
-- [73e449d](../../commit/73e449d) [fixed] day view clicks return the correct slot
-
-
-
-v0.9.1 - Thu, 12 Nov 2015 14:52:20 GMT
---------------------------------------
-
-- [d5a0d20](../../commit/d5a0d20) [fixed] month event rows not fitting in their cells
-- [f4b18d6](../../commit/f4b18d6) [fixed] day view clicks return the correct slot
-
-
-
-v0.9.0 - Tue, 03 Nov 2015 11:33:38 GMT
---------------------------------------
-
-- [ee53bbc](../../commit/ee53bbc) [changed] default "show more" behavior navigates to day view
-- [80aa08f](../../commit/80aa08f) [added] popupOffset prop for configuring distance from viewport edge
-
-
-
-v0.8.3 - Thu, 29 Oct 2015 06:07:22 GMT
---------------------------------------
-
-- [d98af8d](../../commit/d98af8d) [added] edge detection for event popup
-- [69b092d](../../commit/69b092d) [fixed] accidental hash changes
-- [0351b71](../../commit/0351b71) [fixed] incorrect 'show more' layout
-
-
-
-v0.8.2 - Wed, 28 Oct 2015 08:09:39 GMT
---------------------------------------
-
-- [892af3d](../../commit/892af3d) [fixed] use correct handler for "show more"
-
-
-
-v0.8.1 - Wed, 28 Oct 2015 07:58:13 GMT
---------------------------------------
-
-- [4560ff7](../../commit/4560ff7) [changed] better thin event title collapse
-- [0eeb43f](../../commit/0eeb43f) [fixed] event layout sort
-- [0574eed](../../commit/0574eed) [fixed] show more row layout issues
-- [7ee9959](../../commit/7ee9959) [added] title to time view events
-- [c07d0ab](../../commit/c07d0ab) [changed] better event overlays for overlapping events
-
-
-
-v0.8.0 - Mon, 26 Oct 2015 12:32:54 GMT
---------------------------------------
-
-- [4dac3f5](../../commit/4dac3f5) [added] rbc-event-allday class in month view
-- [e314128](../../commit/e314128) [fixed] missing keys in popup
-- [0d5df79](../../commit/0d5df79) [changed] "show more" behavior is cleaner
-
-
-
-v0.7.2 - Sat, 24 Oct 2015 03:21:53 GMT
---------------------------------------
-
-- [0b0fa0f](../../commit/0b0fa0f) [fixed] prevent selection when clicking show more
-- [57c8843](../../commit/57c8843) [fixed] allow event selection when selectable, in day views
-
-
-
-v0.7.1 - Wed, 30 Sep 2015 12:34:43 GMT
---------------------------------------
-
-- [f7969b3](../../commit/f7969b3) [fixed] use client coords to get node during selection
-
-
-
-v0.7.0 - Tue, 15 Sep 2015 08:37:50 GMT
---------------------------------------
-
-- [8ad4ee7](../../commit/8ad4ee7) [changed] selection bound to Calendar container, respects overlays
-- [98b3dad](../../commit/98b3dad) [fixed] selecting events in All Day row of week/Day views
-
-
-
-v0.6.1 - Sun, 13 Sep 2015 16:52:20 GMT
---------------------------------------
-
-- [c3092f4](../../commit/c3092f4) [fixed] event rows incorrect duration styles
-- [dade2b9](../../commit/dade2b9) [fixed] more month event layout issues
-
-
-
-v0.6.0 - Sun, 13 Sep 2015 15:32:08 GMT
---------------------------------------
-
-- [49e321f](../../commit/49e321f) [fixed] layout of events in months that don't start evenly at weekday 0
-- [720675e](../../commit/720675e) [added] eventPropsGetter for event markup customization
-
-
-
-v0.5.2 - Sun, 13 Sep 2015 12:56:02 GMT
---------------------------------------
-
-- [386d4bc](../../commit/386d4bc) [fixed] `selectable` can properly be toggled on and off
-
-
-
-v0.5.1 - Sun, 13 Sep 2015 10:08:24 GMT
---------------------------------------
-
-- [a7dc435](../../commit/a7dc435) [fixed] className and style props being applied in multiple places
-- [c8f8281](../../commit/c8f8281) [fixed] null exception on empty agenda view
-
-
-
-v0.5.0 - Sun, 13 Sep 2015 09:03:11 GMT
---------------------------------------
-
-- [00435ad](../../commit/00435ad) [fixed] view propType validation
-- [ae039b9](../../commit/ae039b9) [added] expose `move` and `label` methods for easier external toolbars
-- [7e7bc17](../../commit/7e7bc17) [changed] clarified accidental ambigious license
-
-
-
-v0.4.1 - Thu, 03 Sep 2015 19:08:11 GMT
---------------------------------------
+* [386d4bc](../../commit/386d4bc) [fixed] `selectable` can properly be toggled on and off
+## v0.5.1 - Sun, 13 Sep 2015 10:08:24 GMT
+* [a7dc435](../../commit/a7dc435) [fixed] className and style props being applied in multiple places
+* [c8f8281](../../commit/c8f8281) [fixed] null exception on empty agenda view
+## v0.5.0 - Sun, 13 Sep 2015 09:03:11 GMT
+* [00435ad](../../commit/00435ad) [fixed] view propType validation
+* [ae039b9](../../commit/ae039b9) [added] expose `move` and `label` methods for easier external toolbars
+* [7e7bc17](../../commit/7e7bc17) [changed] clarified accidental ambigious license
+## v0.4.1 - Thu, 03 Sep 2015 19:08:11 GMT
diff --git a/README.md b/README.md
index e3b53d8520..260383eb64 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,7 @@ $ cd react-big-calendar
$ npm install
$ npm run examples
```
+
* Open [localhost:3000/examples/index.html](http://localhost:3000/examples/index.html).
### Localization and Date Formatting
diff --git a/examples/Intro.md b/examples/Intro.md
index bccbdafe0b..fc339ef827 100644
--- a/examples/Intro.md
+++ b/examples/Intro.md
@@ -28,8 +28,8 @@ const MyCalendar = props => (
)
diff --git a/examples/bundle.js b/examples/bundle.js
index e9b8309ddc..69c871df22 100644
--- a/examples/bundle.js
+++ b/examples/bundle.js
@@ -33,11 +33,7 @@
/******/
/******/ /******/ __webpack_require__.m = modules // expose the module cache
/******/
- /******/ /******/ __webpack_require__.c = installedModules // identity function for calling harmony imports with the correct context
- /******/
- /******/ /******/ __webpack_require__.i = function(value) {
- return value
- } // define getter function for harmony exports
+ /******/ /******/ __webpack_require__.c = installedModules // define getter function for harmony exports
/******/
/******/ /******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if (!__webpack_require__.o(exports, name)) {
@@ -56,7 +52,7 @@
/******/ var getter =
module && module.__esModule
? /******/ function getDefault() {
- return module.default
+ return module['default']
}
: /******/ function getModuleExports() {
return module
@@ -72,12 +68,70 @@
/******/
/******/ /******/ __webpack_require__.p = '/examples' // Load entry module and return exports
/******/
- /******/ /******/ return __webpack_require__((__webpack_require__.s = 546))
+ /******/ /******/ return __webpack_require__((__webpack_require__.s = 187))
/******/
})(
/************************************************************************/
/******/ [
/* 0 */
+ /***/ function(module, exports, __webpack_require__) {
+ 'use strict'
+ /* WEBPACK VAR INJECTION */ ;(function(process) {
+ if (process.env.NODE_ENV === 'production') {
+ module.exports = __webpack_require__(188)
+ } else {
+ module.exports = __webpack_require__(189)
+ }
+
+ /* WEBPACK VAR INJECTION */
+ }.call(exports, __webpack_require__(2)))
+
+ /***/
+ },
+ /* 1 */
+ /***/ function(module, exports, __webpack_require__) {
+ /* WEBPACK VAR INJECTION */ ;(function(process) {
+ /**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+ if (process.env.NODE_ENV !== 'production') {
+ var REACT_ELEMENT_TYPE =
+ (typeof Symbol === 'function' &&
+ Symbol.for &&
+ Symbol.for('react.element')) ||
+ 0xeac7
+
+ var isValidElement = function(object) {
+ return (
+ typeof object === 'object' &&
+ object !== null &&
+ object.$$typeof === REACT_ELEMENT_TYPE
+ )
+ }
+
+ // By explicitly using `prop-types` you are opting into new development behavior.
+ // http://fb.me/prop-types-in-prod
+ var throwOnDirectAccess = true
+ module.exports = __webpack_require__(263)(
+ isValidElement,
+ throwOnDirectAccess
+ )
+ } else {
+ // By explicitly using `prop-types` you are opting into new production behavior.
+ // http://fb.me/prop-types-in-prod
+ module.exports = __webpack_require__(264)()
+ }
+
+ /* WEBPACK VAR INJECTION */
+ }.call(exports, __webpack_require__(2)))
+
+ /***/
+ },
+ /* 2 */
/***/ function(module, exports) {
// shim for using process in browser
var process = (module.exports = {})
@@ -122,7 +176,10 @@
return setTimeout(fun, 0)
}
// if setTimeout wasn't available but was latter defined
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
+ if (
+ (cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) &&
+ setTimeout
+ ) {
cachedSetTimeout = setTimeout
return setTimeout(fun, 0)
}
@@ -145,7 +202,10 @@
return clearTimeout(marker)
}
// if clearTimeout wasn't available but was latter defined
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
+ if (
+ (cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) &&
+ clearTimeout
+ ) {
cachedClearTimeout = clearTimeout
return clearTimeout(marker)
}
@@ -244,6 +304,12 @@
process.removeListener = noop
process.removeAllListeners = noop
process.emit = noop
+ process.prependListener = noop
+ process.prependOnceListener = noop
+
+ process.listeners = function(name) {
+ return []
+ }
process.binding = function(name) {
throw new Error('process.binding is not supported')
@@ -261,628 +327,7 @@
/***/
},
- /* 1 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
-
- module.exports = __webpack_require__(43)
-
- /***/
- },
- /* 2 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
- /* WEBPACK VAR INJECTION */
- ;(function(process) {
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
- /**
- * Use invariant() to assert state which your program assumes to be true.
- *
- * Provide sprintf-style format (only %s is supported) and arguments
- * to provide information about what broke and what you were
- * expecting.
- *
- * The invariant message will be stripped in production, but the invariant
- * will remain to ensure logic does not differ in production.
- */
-
- var validateFormat = function validateFormat(format) {}
-
- if (process.env.NODE_ENV !== 'production') {
- validateFormat = function validateFormat(format) {
- if (format === undefined) {
- throw new Error('invariant requires an error message argument')
- }
- }
- }
-
- function invariant(condition, format, a, b, c, d, e, f) {
- validateFormat(format)
-
- if (!condition) {
- var error
- if (format === undefined) {
- error = new Error(
- 'Minified exception occurred; use the non-minified dev environment ' +
- 'for the full error message and additional helpful warnings.'
- )
- } else {
- var args = [a, b, c, d, e, f]
- var argIndex = 0
- error = new Error(
- format.replace(/%s/g, function() {
- return args[argIndex++]
- })
- )
- error.name = 'Invariant Violation'
- }
-
- error.framesToPop = 1 // we don't care about invariant's own frame
- throw error
- }
- }
-
- module.exports = invariant
- /* WEBPACK VAR INJECTION */
- }.call(exports, __webpack_require__(0)))
-
- /***/
- },
/* 3 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
- /* WEBPACK VAR INJECTION */
- ;(function(process) {
- /**
- * Copyright 2014-2015, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
- var emptyFunction = __webpack_require__(18)
-
- /**
- * Similar to invariant but only logs a warning if the condition is not met.
- * This can be used to log issues in development environments in critical
- * paths. Removing the logging code for production environments will keep the
- * same logic and follow the same code paths.
- */
-
- var warning = emptyFunction
-
- if (process.env.NODE_ENV !== 'production') {
- ;(function() {
- var printWarning = function printWarning(format) {
- for (
- var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1;
- _key < _len;
- _key++
- ) {
- args[_key - 1] = arguments[_key]
- }
-
- var argIndex = 0
- var message =
- 'Warning: ' +
- format.replace(/%s/g, function() {
- return args[argIndex++]
- })
- if (typeof console !== 'undefined') {
- console.error(message)
- }
- try {
- // --- Welcome to debugging React ---
- // This error was thrown as a convenience so that you can use this stack
- // to find the callsite that caused this warning to fire.
- throw new Error(message)
- } catch (x) {}
- }
-
- warning = function warning(condition, format) {
- if (format === undefined) {
- throw new Error(
- '`warning(condition, format, ...args)` requires a warning ' + 'message argument'
- )
- }
-
- if (format.indexOf('Failed Composite propType: ') === 0) {
- return // Ignore CompositeComponent proptype check.
- }
-
- if (!condition) {
- for (
- var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2;
- _key2 < _len2;
- _key2++
- ) {
- args[_key2 - 2] = arguments[_key2]
- }
-
- printWarning.apply(undefined, [format].concat(args))
- }
- }
- })()
- }
-
- module.exports = warning
- /* WEBPACK VAR INJECTION */
- }.call(exports, __webpack_require__(0)))
-
- /***/
- },
- /* 4 */
- /***/ function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */ ;(function(process) {
- /**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
- if (process.env.NODE_ENV !== 'production') {
- var REACT_ELEMENT_TYPE =
- (typeof Symbol === 'function' && Symbol.for && Symbol.for('react.element')) || 0xeac7
-
- var isValidElement = function(object) {
- return (
- typeof object === 'object' &&
- object !== null &&
- object.$$typeof === REACT_ELEMENT_TYPE
- )
- }
-
- // By explicitly using `prop-types` you are opting into new development behavior.
- // http://fb.me/prop-types-in-prod
- var throwOnDirectAccess = true
- module.exports = __webpack_require__(428)(isValidElement, throwOnDirectAccess)
- } else {
- // By explicitly using `prop-types` you are opting into new production behavior.
- // http://fb.me/prop-types-in-prod
- module.exports = __webpack_require__(427)()
- }
-
- /* WEBPACK VAR INJECTION */
- }.call(exports, __webpack_require__(0)))
-
- /***/
- },
- /* 5 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
- /**
- * WARNING: DO NOT manually require this module.
- * This is a replacement for `invariant(...)` used by the error code system
- * and will _only_ be required by the corresponding babel pass.
- * It always throws.
- */
-
- function reactProdInvariant(code) {
- var argCount = arguments.length - 1
-
- var message =
- 'Minified React error #' +
- code +
- '; visit ' +
- 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' +
- code
-
- for (var argIdx = 0; argIdx < argCount; argIdx++) {
- message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1])
- }
-
- message +=
- ' for the full message or use the non-minified dev environment' +
- ' for full errors and additional helpful warnings.'
-
- var error = new Error(message)
- error.name = 'Invariant Violation'
- error.framesToPop = 1 // we don't care about reactProdInvariant's own frame
-
- throw error
- }
-
- module.exports = reactProdInvariant
-
- /***/
- },
- /* 6 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
-
- /* eslint-disable no-unused-vars */
- var hasOwnProperty = Object.prototype.hasOwnProperty
- var propIsEnumerable = Object.prototype.propertyIsEnumerable
-
- function toObject(val) {
- if (val === null || val === undefined) {
- throw new TypeError('Object.assign cannot be called with null or undefined')
- }
-
- return Object(val)
- }
-
- function shouldUseNative() {
- try {
- if (!Object.assign) {
- return false
- }
-
- // Detect buggy property enumeration order in older V8 versions.
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
- var test1 = new String('abc') // eslint-disable-line
- test1[5] = 'de'
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
- return false
- }
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test2 = {}
- for (var i = 0; i < 10; i++) {
- test2['_' + String.fromCharCode(i)] = i
- }
- var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
- return test2[n]
- })
- if (order2.join('') !== '0123456789') {
- return false
- }
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test3 = {}
- 'abcdefghijklmnopqrst'.split('').forEach(function(letter) {
- test3[letter] = letter
- })
- if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
- return false
- }
-
- return true
- } catch (e) {
- // We don't expect any of the above to throw, but better to be safe.
- return false
- }
- }
-
- module.exports = shouldUseNative()
- ? Object.assign
- : function(target, source) {
- var from
- var to = toObject(target)
- var symbols
-
- for (var s = 1; s < arguments.length; s++) {
- from = Object(arguments[s])
-
- for (var key in from) {
- if (hasOwnProperty.call(from, key)) {
- to[key] = from[key]
- }
- }
-
- if (Object.getOwnPropertySymbols) {
- symbols = Object.getOwnPropertySymbols(from)
- for (var i = 0; i < symbols.length; i++) {
- if (propIsEnumerable.call(from, symbols[i])) {
- to[symbols[i]] = from[symbols[i]]
- }
- }
- }
- }
-
- return to
- }
-
- /***/
- },
- /* 7 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
- /* WEBPACK VAR INJECTION */
- ;(function(process) {
- /**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
- var _prodInvariant = __webpack_require__(5)
-
- var DOMProperty = __webpack_require__(28)
- var ReactDOMComponentFlags = __webpack_require__(213)
-
- var invariant = __webpack_require__(2)
-
- var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME
- var Flags = ReactDOMComponentFlags
-
- var internalInstanceKey =
- '__reactInternalInstance$' +
- Math.random()
- .toString(36)
- .slice(2)
-
- /**
- * Drill down (through composites and empty components) until we get a host or
- * host text component.
- *
- * This is pretty polymorphic but unavoidable with the current structure we have
- * for `_renderedChildren`.
- */
- function getRenderedHostOrTextFromComponent(component) {
- var rendered
- while ((rendered = component._renderedComponent)) {
- component = rendered
- }
- return component
- }
-
- /**
- * Populate `_hostNode` on the rendered host/text component with the given
- * DOM node. The passed `inst` can be a composite.
- */
- function precacheNode(inst, node) {
- var hostInst = getRenderedHostOrTextFromComponent(inst)
- hostInst._hostNode = node
- node[internalInstanceKey] = hostInst
- }
-
- function uncacheNode(inst) {
- var node = inst._hostNode
- if (node) {
- delete node[internalInstanceKey]
- inst._hostNode = null
- }
- }
-
- /**
- * Populate `_hostNode` on each child of `inst`, assuming that the children
- * match up with the DOM (element) children of `node`.
- *
- * We cache entire levels at once to avoid an n^2 problem where we access the
- * children of a node sequentially and have to walk from the start to our target
- * node every time.
- *
- * Since we update `_renderedChildren` and the actual DOM at (slightly)
- * different times, we could race here and see a newer `_renderedChildren` than
- * the DOM nodes we see. To avoid this, ReactMultiChild calls
- * `prepareToManageChildren` before we change `_renderedChildren`, at which
- * time the container's child nodes are always cached (until it unmounts).
- */
- function precacheChildNodes(inst, node) {
- if (inst._flags & Flags.hasCachedChildNodes) {
- return
- }
- var children = inst._renderedChildren
- var childNode = node.firstChild
- outer: for (var name in children) {
- if (!children.hasOwnProperty(name)) {
- continue
- }
- var childInst = children[name]
- var childID = getRenderedHostOrTextFromComponent(childInst)._domID
- if (childID === 0) {
- // We're currently unmounting this child in ReactMultiChild; skip it.
- continue
- }
- // We assume the child nodes are in the same order as the child instances.
- for (; childNode !== null; childNode = childNode.nextSibling) {
- if (
- (childNode.nodeType === 1 &&
- childNode.getAttribute(ATTR_NAME) === String(childID)) ||
- (childNode.nodeType === 8 &&
- childNode.nodeValue === ' react-text: ' + childID + ' ') ||
- (childNode.nodeType === 8 &&
- childNode.nodeValue === ' react-empty: ' + childID + ' ')
- ) {
- precacheNode(childInst, childNode)
- continue outer
- }
- }
- // We reached the end of the DOM children without finding an ID match.
- true
- ? process.env.NODE_ENV !== 'production'
- ? invariant(false, 'Unable to find element with ID %s.', childID)
- : _prodInvariant('32', childID)
- : void 0
- }
- inst._flags |= Flags.hasCachedChildNodes
- }
-
- /**
- * Given a DOM node, return the closest ReactDOMComponent or
- * ReactDOMTextComponent instance ancestor.
- */
- function getClosestInstanceFromNode(node) {
- if (node[internalInstanceKey]) {
- return node[internalInstanceKey]
- }
-
- // Walk up the tree until we find an ancestor whose instance we have cached.
- var parents = []
- while (!node[internalInstanceKey]) {
- parents.push(node)
- if (node.parentNode) {
- node = node.parentNode
- } else {
- // Top of the tree. This node must not be part of a React tree (or is
- // unmounted, potentially).
- return null
- }
- }
-
- var closest
- var inst
- for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) {
- closest = inst
- if (parents.length) {
- precacheChildNodes(inst, node)
- }
- }
-
- return closest
- }
-
- /**
- * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
- * instance, or null if the node was not rendered by this React.
- */
- function getInstanceFromNode(node) {
- var inst = getClosestInstanceFromNode(node)
- if (inst != null && inst._hostNode === node) {
- return inst
- } else {
- return null
- }
- }
-
- /**
- * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
- * DOM node.
- */
- function getNodeFromInstance(inst) {
- // Without this first invariant, passing a non-DOM-component triggers the next
- // invariant for a missing parent, which is super confusing.
- !(inst._hostNode !== undefined)
- ? process.env.NODE_ENV !== 'production'
- ? invariant(false, 'getNodeFromInstance: Invalid argument.')
- : _prodInvariant('33')
- : void 0
-
- if (inst._hostNode) {
- return inst._hostNode
- }
-
- // Walk up the tree until we find an ancestor whose DOM node we have cached.
- var parents = []
- while (!inst._hostNode) {
- parents.push(inst)
- !inst._hostParent
- ? process.env.NODE_ENV !== 'production'
- ? invariant(false, 'React DOM tree root should always have a node reference.')
- : _prodInvariant('34')
- : void 0
- inst = inst._hostParent
- }
-
- // Now parents contains each ancestor that does *not* have a cached native
- // node, and `inst` is the deepest ancestor that does.
- for (; parents.length; inst = parents.pop()) {
- precacheChildNodes(inst, inst._hostNode)
- }
-
- return inst._hostNode
- }
-
- var ReactDOMComponentTree = {
- getClosestInstanceFromNode: getClosestInstanceFromNode,
- getInstanceFromNode: getInstanceFromNode,
- getNodeFromInstance: getNodeFromInstance,
- precacheChildNodes: precacheChildNodes,
- precacheNode: precacheNode,
- uncacheNode: uncacheNode,
- }
-
- module.exports = ReactDOMComponentTree
- /* WEBPACK VAR INJECTION */
- }.call(exports, __webpack_require__(0)))
-
- /***/
- },
- /* 8 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
- /* WEBPACK VAR INJECTION */
- ;(function(process) {
- /**
- * Copyright 2013-2015, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
- /**
- * Use invariant() to assert state which your program assumes to be true.
- *
- * Provide sprintf-style format (only %s is supported) and arguments
- * to provide information about what broke and what you were
- * expecting.
- *
- * The invariant message will be stripped in production, but the invariant
- * will remain to ensure logic does not differ in production.
- */
-
- var invariant = function(condition, format, a, b, c, d, e, f) {
- if (process.env.NODE_ENV !== 'production') {
- if (format === undefined) {
- throw new Error('invariant requires an error message argument')
- }
- }
-
- if (!condition) {
- var error
- if (format === undefined) {
- error = new Error(
- 'Minified exception occurred; use the non-minified dev environment ' +
- 'for the full error message and additional helpful warnings.'
- )
- } else {
- var args = [a, b, c, d, e, f]
- var argIndex = 0
- error = new Error(
- format.replace(/%s/g, function() {
- return args[argIndex++]
- })
- )
- error.name = 'Invariant Violation'
- }
-
- error.framesToPop = 1 // we don't care about invariant's own frame
- throw error
- }
- }
-
- module.exports = invariant
-
- /* WEBPACK VAR INJECTION */
- }.call(exports, __webpack_require__(0)))
-
- /***/
- },
- /* 9 */
/***/ function(module, exports, __webpack_require__) {
'use strict'
@@ -902,11 +347,11 @@
return target
} /* eslint no-fallthrough: off */
- var _dateArithmetic = __webpack_require__(147)
+ var _dateArithmetic = __webpack_require__(131)
var _dateArithmetic2 = _interopRequireDefault(_dateArithmetic)
- var _localizer = __webpack_require__(12)
+ var _localizer = __webpack_require__(6)
var _localizer2 = _interopRequireDefault(_localizer)
@@ -934,12 +379,20 @@
firstVisibleDay: function firstVisibleDay(date, culture) {
var firstOfMonth = dates.startOf(date, 'month')
- return dates.startOf(firstOfMonth, 'week', _localizer2.default.startOfWeek(culture))
+ return dates.startOf(
+ firstOfMonth,
+ 'week',
+ _localizer2.default.startOfWeek(culture)
+ )
},
lastVisibleDay: function lastVisibleDay(date, culture) {
var endOfMonth = dates.endOf(date, 'month')
- return dates.endOf(endOfMonth, 'week', _localizer2.default.startOfWeek(culture))
+ return dates.endOf(
+ endOfMonth,
+ 'week',
+ _localizer2.default.startOfWeek(culture)
+ )
},
visibleDays: function visibleDays(date, culture) {
var current = dates.firstVisibleDay(date, culture),
@@ -959,7 +412,10 @@
return dates.eq(floor, date) ? floor : dates.add(floor, 1, unit)
},
range: function range(start, end) {
- var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day'
+ var unit =
+ arguments.length > 2 && arguments[2] !== undefined
+ ? arguments[2]
+ : 'day'
var current = start,
days = []
@@ -1007,7 +463,8 @@
duration: function duration(start, end, unit, firstOfWeek) {
if (unit === 'day') unit = 'date'
return Math.abs(
- dates[unit](start, undefined, firstOfWeek) - dates[unit](end, undefined, firstOfWeek)
+ dates[unit](start, undefined, firstOfWeek) -
+ dates[unit](end, undefined, firstOfWeek)
)
},
diff: function diff(dateA, dateB, unit) {
@@ -1018,7 +475,8 @@
// since one day in the range may be shorter/longer by an hour
return Math.round(
Math.abs(
- +dates.startOf(dateA, unit) / MILLI[unit] - +dates.startOf(dateB, unit) / MILLI[unit]
+ +dates.startOf(dateA, unit) / MILLI[unit] -
+ +dates.startOf(dateB, unit) / MILLI[unit]
)
)
},
@@ -1045,7 +503,9 @@
var d = new Date(date)
d.setHours(0, 0, 0)
d.setDate(d.getDate() + 4 - (d.getDay() || 7))
- return Math.ceil(((d - new Date(d.getFullYear(), 0, 1)) / 8.64e7 + 1) / 7)
+ return Math.ceil(
+ ((d - new Date(d.getFullYear(), 0, 1)) / 8.64e7 + 1) / 7
+ )
},
today: function today() {
return dates.startOf(new Date(), 'day')
@@ -1059,51 +519,72 @@
})
exports.default = dates
+ module.exports = exports['default']
/***/
},
- /* 10 */
+ /* 4 */
/***/ function(module, exports, __webpack_require__) {
'use strict'
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
+ /* WEBPACK VAR INJECTION */ ;(function(process) {
+ /**
+ * Copyright 2013-2015, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ */
- var canUseDOM = !!(
- typeof window !== 'undefined' &&
- window.document &&
- window.document.createElement
- )
-
- /**
- * Simple, lightweight module assisting with the detection and context of
- * Worker. Helps avoid circular dependencies and allows code to reason about
- * whether or not they are in a Worker, even if they never include the main
- * `ReactWorker` dependency.
- */
- var ExecutionEnvironment = {
- canUseDOM: canUseDOM,
+ /**
+ * Use invariant() to assert state which your program assumes to be true.
+ *
+ * Provide sprintf-style format (only %s is supported) and arguments
+ * to provide information about what broke and what you were
+ * expecting.
+ *
+ * The invariant message will be stripped in production, but the invariant
+ * will remain to ensure logic does not differ in production.
+ */
- canUseWorkers: typeof Worker !== 'undefined',
+ var invariant = function(condition, format, a, b, c, d, e, f) {
+ if (process.env.NODE_ENV !== 'production') {
+ if (format === undefined) {
+ throw new Error('invariant requires an error message argument')
+ }
+ }
- canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),
+ if (!condition) {
+ var error
+ if (format === undefined) {
+ error = new Error(
+ 'Minified exception occurred; use the non-minified dev environment ' +
+ 'for the full error message and additional helpful warnings.'
+ )
+ } else {
+ var args = [a, b, c, d, e, f]
+ var argIndex = 0
+ error = new Error(
+ format.replace(/%s/g, function() {
+ return args[argIndex++]
+ })
+ )
+ error.name = 'Invariant Violation'
+ }
- canUseViewport: canUseDOM && !!window.screen,
+ error.framesToPop = 1 // we don't care about invariant's own frame
+ throw error
+ }
+ }
- isInWorker: !canUseDOM, // For now, this is true - might change in the future.
- }
+ module.exports = invariant
- module.exports = ExecutionEnvironment
+ /* WEBPACK VAR INJECTION */
+ }.call(exports, __webpack_require__(2)))
/***/
},
- /* 11 */
+ /* 5 */
/***/ function(module, exports) {
/**
* Checks if `value` is classified as an `Array` object.
@@ -1134,19 +615,18 @@
/***/
},
- /* 12 */
+ /* 6 */
/***/ function(module, exports, __webpack_require__) {
'use strict'
- /* WEBPACK VAR INJECTION */
- ;(function(process) {
+ /* WEBPACK VAR INJECTION */ ;(function(process) {
exports.__esModule = true
exports.set = set
- var _propTypes = __webpack_require__(4)
+ var _propTypes = __webpack_require__(1)
var _propTypes2 = _interopRequireDefault(_propTypes)
- var _invariant = __webpack_require__(8)
+ var _invariant = __webpack_require__(4)
var _invariant2 = _interopRequireDefault(_invariant)
@@ -1190,12 +670,18 @@
!(typeof spec.format === 'function')
? process.env.NODE_ENV !== 'production'
- ? (0, _invariant2.default)(false, 'date localizer `format(..)` must be a function')
+ ? (0, _invariant2.default)(
+ false,
+ 'date localizer `format(..)` must be a function'
+ )
: (0, _invariant2.default)(false)
: void 0
!(typeof spec.parse === 'function')
? process.env.NODE_ENV !== 'production'
- ? (0, _invariant2.default)(false, 'date localizer `parse(..)` must be a function')
+ ? (0, _invariant2.default)(
+ false,
+ 'date localizer `parse(..)` must be a function'
+ )
: (0, _invariant2.default)(false)
: void 0
!(typeof spec.firstOfWeek === 'function')
@@ -1213,7 +699,11 @@
this.startOfWeek = spec.firstOfWeek
this.format = function() {
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ for (
+ var _len = arguments.length, args = Array(_len), _key = 0;
+ _key < _len;
+ _key++
+ ) {
args[_key] = arguments[_key]
}
@@ -1223,7 +713,10 @@
this.parse = function(value, format, culture) {
var result = spec.parse.call(_this, value, format, culture)
- !(result == null || (result instanceof Date && !isNaN(result.getTime())))
+ !(
+ result == null ||
+ (result instanceof Date && !isNaN(result.getTime()))
+ )
? process.env.NODE_ENV !== 'production'
? (0, _invariant2.default)(
false,
@@ -1261,12 +754,18 @@
format: function format() {
var _localizer2
- return (_localizer2 = localizer).format.apply(_localizer2, arguments)
+ return (_localizer2 = localizer).format.apply(
+ _localizer2,
+ arguments
+ )
},
startOfWeek: function startOfWeek() {
var _localizer3
- return (_localizer3 = localizer).startOfWeek.apply(_localizer3, arguments)
+ return (_localizer3 = localizer).startOfWeek.apply(
+ _localizer3,
+ arguments
+ )
},
}
@@ -1279,11 +778,11 @@
)
}
/* WEBPACK VAR INJECTION */
- }.call(exports, __webpack_require__(0)))
+ }.call(exports, __webpack_require__(2)))
/***/
},
- /* 13 */
+ /* 7 */
/***/ function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__,
__WEBPACK_AMD_DEFINE_RESULT__ /*!
@@ -1291,7 +790,8 @@
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
- /* global define */
+ /* global define */
+
;(function() {
'use strict'
@@ -1339,34 +839,36 @@
/***/
},
- /* 14 */
+ /* 8 */
/***/ function(module, exports, __webpack_require__) {
'use strict'
exports.__esModule = true
exports.views = exports.dateRangeFormat = exports.dateFormat = exports.accessor = exports.eventComponent = exports.elementType = undefined
- var _propTypes = __webpack_require__(4)
+ var _propTypes = __webpack_require__(1)
var _propTypes2 = _interopRequireDefault(_propTypes)
- var _localizer = __webpack_require__(12)
+ var _localizer = __webpack_require__(6)
var _localizer2 = _interopRequireDefault(_localizer)
- var _elementType = __webpack_require__(233)
+ var _elementType = __webpack_require__(132)
var _elementType2 = _interopRequireDefault(_elementType)
- var _all = __webpack_require__(526)
+ var _all = __webpack_require__(279)
var _all2 = _interopRequireDefault(_all)
- var _constants = __webpack_require__(24)
+ var _constants = __webpack_require__(13)
- var _createChainableTypeChecker = __webpack_require__(83)
+ var _createChainableTypeChecker = __webpack_require__(56)
- var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker)
+ var _createChainableTypeChecker2 = _interopRequireDefault(
+ _createChainableTypeChecker
+ )
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj }
@@ -1385,15 +887,17 @@
// }).isRequired,
// }).isRequired,
- var eventComponent = (exports.eventComponent = _propTypes2.default.oneOfType([
- _elementType2.default,
- _propTypes2.default.shape({
- month: _elementType2.default,
- week: _elementType2.default,
- day: _elementType2.default,
- agenda: _elementType2.default,
- }),
- ]))
+ var eventComponent = (exports.eventComponent = _propTypes2.default.oneOfType(
+ [
+ _elementType2.default,
+ _propTypes2.default.shape({
+ month: _elementType2.default,
+ week: _elementType2.default,
+ day: _elementType2.default,
+ agenda: _elementType2.default,
+ }),
+ ]
+ ))
var viewNames = Object.keys(_constants.views).map(function(k) {
return _constants.views[k]
@@ -1404,7 +908,8 @@
_propTypes2.default.func,
]))
- var dateFormat = (exports.dateFormat = (0, _createChainableTypeChecker2.default)(function() {
+ var dateFormat = (exports.dateFormat = (0,
+ _createChainableTypeChecker2.default)(function() {
return (
_localizer2.default.propType &&
_localizer2.default.propType.apply(_localizer2.default, arguments)
@@ -1434,7 +939,9 @@
_propTypes2.default.arrayOf(_propTypes2.default.oneOf(viewNames)),
(0, _all2.default)(_propTypes2.default.object, function(props, name) {
for (
- var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2;
+ var _len = arguments.length,
+ args = Array(_len > 2 ? _len - 2 : 0),
+ _key = 2;
_key < _len;
_key++
) {
@@ -1445,11 +952,15 @@
err = void 0
Object.keys(prop).every(function(key) {
- var isBuiltinView = viewNames.indexOf(key) !== -1 && typeof prop[key] === 'boolean'
+ var isBuiltinView =
+ viewNames.indexOf(key) !== -1 && typeof prop[key] === 'boolean'
return (
isBuiltinView ||
- !(err = _elementType2.default.apply(undefined, [prop, key].concat(args)))
+ !(err = _elementType2.default.apply(
+ undefined,
+ [prop, key].concat(args)
+ ))
)
})
@@ -1459,509 +970,53 @@
/***/
},
- /* 15 */
+ /* 9 */
/***/ function(module, exports, __webpack_require__) {
'use strict'
- /* WEBPACK VAR INJECTION */
- ;(function(process) {
- /**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
- var _prodInvariant = __webpack_require__(34)
-
- var ReactCurrentOwner = __webpack_require__(22)
-
- var invariant = __webpack_require__(2)
- var warning = __webpack_require__(3)
-
- function isNative(fn) {
- // Based on isNative() from Lodash
- var funcToString = Function.prototype.toString
- var hasOwnProperty = Object.prototype.hasOwnProperty
- var reIsNative = RegExp(
- '^' +
- funcToString
- // Take an example native function source for comparison
- .call(hasOwnProperty)
- // Strip regex characters so we can use it for regex
- .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
- // Remove hasOwnProperty from the template to make it generic
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') +
- '$'
- )
+ /* WEBPACK VAR INJECTION */ ;(function(process) {
+ function checkDCE() {
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
+ if (
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
+ ) {
+ return
+ }
+ if (process.env.NODE_ENV !== 'production') {
+ // This branch is unreachable because this function is only called
+ // in production, but the condition is true only in development.
+ // Therefore if the branch is still here, dead code elimination wasn't
+ // properly applied.
+ // Don't change the message. React DevTools relies on it. Also make sure
+ // this message doesn't occur elsewhere in this function, or it will cause
+ // a false positive.
+ throw new Error('^_^')
+ }
try {
- var source = funcToString.call(fn)
- return reIsNative.test(source)
+ // Verify that the code above has been dead code eliminated (DCE'd).
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)
} catch (err) {
- return false
+ // DevTools shouldn't crash React, no matter what.
+ // We should still report in case we break this code.
+ console.error(err)
}
}
- var canUseCollections =
- // Array.from
- typeof Array.from === 'function' &&
- // Map
- typeof Map === 'function' &&
- isNative(Map) &&
- // Map.prototype.keys
- Map.prototype != null &&
- typeof Map.prototype.keys === 'function' &&
- isNative(Map.prototype.keys) &&
- // Set
- typeof Set === 'function' &&
- isNative(Set) &&
- // Set.prototype.keys
- Set.prototype != null &&
- typeof Set.prototype.keys === 'function' &&
- isNative(Set.prototype.keys)
-
- var setItem
- var getItem
- var removeItem
- var getItemIDs
- var addRoot
- var removeRoot
- var getRootIDs
-
- if (canUseCollections) {
- var itemMap = new Map()
- var rootIDSet = new Set()
-
- setItem = function(id, item) {
- itemMap.set(id, item)
- }
- getItem = function(id) {
- return itemMap.get(id)
- }
- removeItem = function(id) {
- itemMap.delete(id)
- }
- getItemIDs = function() {
- return Array.from(itemMap.keys())
- }
-
- addRoot = function(id) {
- rootIDSet.add(id)
- }
- removeRoot = function(id) {
- rootIDSet.delete(id)
- }
- getRootIDs = function() {
- return Array.from(rootIDSet.keys())
- }
+ if (process.env.NODE_ENV === 'production') {
+ // DCE check should happen before ReactDOM bundle executes so that
+ // DevTools can report bad minification during injection.
+ checkDCE()
+ module.exports = __webpack_require__(255)
} else {
- var itemByKey = {}
- var rootByKey = {}
-
- // Use non-numeric keys to prevent V8 performance issues:
- // https://github.com/facebook/react/pull/7232
- var getKeyFromID = function(id) {
- return '.' + id
- }
- var getIDFromKey = function(key) {
- return parseInt(key.substr(1), 10)
- }
-
- setItem = function(id, item) {
- var key = getKeyFromID(id)
- itemByKey[key] = item
- }
- getItem = function(id) {
- var key = getKeyFromID(id)
- return itemByKey[key]
- }
- removeItem = function(id) {
- var key = getKeyFromID(id)
- delete itemByKey[key]
- }
- getItemIDs = function() {
- return Object.keys(itemByKey).map(getIDFromKey)
- }
-
- addRoot = function(id) {
- var key = getKeyFromID(id)
- rootByKey[key] = true
- }
- removeRoot = function(id) {
- var key = getKeyFromID(id)
- delete rootByKey[key]
- }
- getRootIDs = function() {
- return Object.keys(rootByKey).map(getIDFromKey)
- }
- }
-
- var unmountedIDs = []
-
- function purgeDeep(id) {
- var item = getItem(id)
- if (item) {
- var childIDs = item.childIDs
-
- removeItem(id)
- childIDs.forEach(purgeDeep)
- }
- }
-
- function describeComponentFrame(name, source, ownerName) {
- return (
- '\n in ' +
- (name || 'Unknown') +
- (source
- ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')'
- : ownerName ? ' (created by ' + ownerName + ')' : '')
- )
- }
-
- function getDisplayName(element) {
- if (element == null) {
- return '#empty'
- } else if (typeof element === 'string' || typeof element === 'number') {
- return '#text'
- } else if (typeof element.type === 'string') {
- return element.type
- } else {
- return element.type.displayName || element.type.name || 'Unknown'
- }
- }
-
- function describeID(id) {
- var name = ReactComponentTreeHook.getDisplayName(id)
- var element = ReactComponentTreeHook.getElement(id)
- var ownerID = ReactComponentTreeHook.getOwnerID(id)
- var ownerName
- if (ownerID) {
- ownerName = ReactComponentTreeHook.getDisplayName(ownerID)
- }
- process.env.NODE_ENV !== 'production'
- ? warning(
- element,
- 'ReactComponentTreeHook: Missing React element for debugID %s when ' +
- 'building stack',
- id
- )
- : void 0
- return describeComponentFrame(name, element && element._source, ownerName)
- }
-
- var ReactComponentTreeHook = {
- onSetChildren: function(id, nextChildIDs) {
- var item = getItem(id)
- !item
- ? process.env.NODE_ENV !== 'production'
- ? invariant(false, 'Item must have been set')
- : _prodInvariant('144')
- : void 0
- item.childIDs = nextChildIDs
-
- for (var i = 0; i < nextChildIDs.length; i++) {
- var nextChildID = nextChildIDs[i]
- var nextChild = getItem(nextChildID)
- !nextChild
- ? process.env.NODE_ENV !== 'production'
- ? invariant(
- false,
- 'Expected hook events to fire for the child before its parent includes it in onSetChildren().'
- )
- : _prodInvariant('140')
- : void 0
- !(
- nextChild.childIDs != null ||
- typeof nextChild.element !== 'object' ||
- nextChild.element == null
- )
- ? process.env.NODE_ENV !== 'production'
- ? invariant(
- false,
- 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().'
- )
- : _prodInvariant('141')
- : void 0
- !nextChild.isMounted
- ? process.env.NODE_ENV !== 'production'
- ? invariant(
- false,
- 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().'
- )
- : _prodInvariant('71')
- : void 0
- if (nextChild.parentID == null) {
- nextChild.parentID = id
- // TODO: This shouldn't be necessary but mounting a new root during in
- // componentWillMount currently causes not-yet-mounted components to
- // be purged from our tree data so their parent id is missing.
- }
- !(nextChild.parentID === id)
- ? process.env.NODE_ENV !== 'production'
- ? invariant(
- false,
- 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).',
- nextChildID,
- nextChild.parentID,
- id
- )
- : _prodInvariant('142', nextChildID, nextChild.parentID, id)
- : void 0
- }
- },
- onBeforeMountComponent: function(id, element, parentID) {
- var item = {
- element: element,
- parentID: parentID,
- text: null,
- childIDs: [],
- isMounted: false,
- updateCount: 0,
- }
- setItem(id, item)
- },
- onBeforeUpdateComponent: function(id, element) {
- var item = getItem(id)
- if (!item || !item.isMounted) {
- // We may end up here as a result of setState() in componentWillUnmount().
- // In this case, ignore the element.
- return
- }
- item.element = element
- },
- onMountComponent: function(id) {
- var item = getItem(id)
- !item
- ? process.env.NODE_ENV !== 'production'
- ? invariant(false, 'Item must have been set')
- : _prodInvariant('144')
- : void 0
- item.isMounted = true
- var isRoot = item.parentID === 0
- if (isRoot) {
- addRoot(id)
- }
- },
- onUpdateComponent: function(id) {
- var item = getItem(id)
- if (!item || !item.isMounted) {
- // We may end up here as a result of setState() in componentWillUnmount().
- // In this case, ignore the element.
- return
- }
- item.updateCount++
- },
- onUnmountComponent: function(id) {
- var item = getItem(id)
- if (item) {
- // We need to check if it exists.
- // `item` might not exist if it is inside an error boundary, and a sibling
- // error boundary child threw while mounting. Then this instance never
- // got a chance to mount, but it still gets an unmounting event during
- // the error boundary cleanup.
- item.isMounted = false
- var isRoot = item.parentID === 0
- if (isRoot) {
- removeRoot(id)
- }
- }
- unmountedIDs.push(id)
- },
- purgeUnmountedComponents: function() {
- if (ReactComponentTreeHook._preventPurging) {
- // Should only be used for testing.
- return
- }
-
- for (var i = 0; i < unmountedIDs.length; i++) {
- var id = unmountedIDs[i]
- purgeDeep(id)
- }
- unmountedIDs.length = 0
- },
- isMounted: function(id) {
- var item = getItem(id)
- return item ? item.isMounted : false
- },
- getCurrentStackAddendum: function(topElement) {
- var info = ''
- if (topElement) {
- var name = getDisplayName(topElement)
- var owner = topElement._owner
- info += describeComponentFrame(name, topElement._source, owner && owner.getName())
- }
-
- var currentOwner = ReactCurrentOwner.current
- var id = currentOwner && currentOwner._debugID
-
- info += ReactComponentTreeHook.getStackAddendumByID(id)
- return info
- },
- getStackAddendumByID: function(id) {
- var info = ''
- while (id) {
- info += describeID(id)
- id = ReactComponentTreeHook.getParentID(id)
- }
- return info
- },
- getChildIDs: function(id) {
- var item = getItem(id)
- return item ? item.childIDs : []
- },
- getDisplayName: function(id) {
- var element = ReactComponentTreeHook.getElement(id)
- if (!element) {
- return null
- }
- return getDisplayName(element)
- },
- getElement: function(id) {
- var item = getItem(id)
- return item ? item.element : null
- },
- getOwnerID: function(id) {
- var element = ReactComponentTreeHook.getElement(id)
- if (!element || !element._owner) {
- return null
- }
- return element._owner._debugID
- },
- getParentID: function(id) {
- var item = getItem(id)
- return item ? item.parentID : null
- },
- getSource: function(id) {
- var item = getItem(id)
- var element = item ? item.element : null
- var source = element != null ? element._source : null
- return source
- },
- getText: function(id) {
- var element = ReactComponentTreeHook.getElement(id)
- if (typeof element === 'string') {
- return element
- } else if (typeof element === 'number') {
- return '' + element
- } else {
- return null
- }
- },
- getUpdateCount: function(id) {
- var item = getItem(id)
- return item ? item.updateCount : 0
- },
-
- getRootIDs: getRootIDs,
- getRegisteredIDs: getItemIDs,
- }
-
- module.exports = ReactComponentTreeHook
- /* WEBPACK VAR INJECTION */
- }.call(exports, __webpack_require__(0)))
-
- /***/
- },
- /* 16 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
-
- module.exports = __webpack_require__(462)
-
- /***/
- },
- /* 17 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
- /* WEBPACK VAR INJECTION */
- ;(function(process) {
- /**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
- // Trust the developer to only use ReactInstrumentation with a __DEV__ check
-
- var debugTool = null
-
- if (process.env.NODE_ENV !== 'production') {
- var ReactDebugTool = __webpack_require__(477)
- debugTool = ReactDebugTool
+ module.exports = __webpack_require__(258)
}
- module.exports = { debugTool: debugTool }
/* WEBPACK VAR INJECTION */
- }.call(exports, __webpack_require__(0)))
-
- /***/
- },
- /* 18 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
-
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
- function makeEmptyFunction(arg) {
- return function() {
- return arg
- }
- }
-
- /**
- * This function accepts and discards inputs; it has no side effects. This is
- * primarily useful idiomatically for overridable function endpoints which
- * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
- */
- var emptyFunction = function emptyFunction() {}
-
- emptyFunction.thatReturns = makeEmptyFunction
- emptyFunction.thatReturnsFalse = makeEmptyFunction(false)
- emptyFunction.thatReturnsTrue = makeEmptyFunction(true)
- emptyFunction.thatReturnsNull = makeEmptyFunction(null)
- emptyFunction.thatReturnsThis = function() {
- return this
- }
- emptyFunction.thatReturnsArgument = function(arg) {
- return arg
- }
-
- module.exports = emptyFunction
-
- /***/
- },
- /* 19 */
- /***/ function(module, exports, __webpack_require__) {
- var freeGlobal = __webpack_require__(181)
-
- /** Detect free variable `self`. */
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self
-
- /** Used as a reference to the global object. */
- var root = freeGlobal || freeSelf || Function('return this')()
-
- module.exports = root
+ }.call(exports, __webpack_require__(2)))
/***/
},
- /* 20 */
+ /* 10 */
/***/ function(module, exports) {
/**
* Checks if `value` is the
@@ -1997,389 +1052,74 @@
/***/
},
- /* 21 */
+ /* 11 */
/***/ function(module, exports, __webpack_require__) {
- 'use strict'
- /* WEBPACK VAR INJECTION */
- ;(function(process) {
- /**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
- var _prodInvariant = __webpack_require__(5),
- _assign = __webpack_require__(6)
-
- var CallbackQueue = __webpack_require__(211)
- var PooledClass = __webpack_require__(32)
- var ReactFeatureFlags = __webpack_require__(216)
- var ReactReconciler = __webpack_require__(42)
- var Transaction = __webpack_require__(79)
-
- var invariant = __webpack_require__(2)
-
- var dirtyComponents = []
- var updateBatchNumber = 0
- var asapCallbackQueue = CallbackQueue.getPooled()
- var asapEnqueued = false
-
- var batchingStrategy = null
-
- function ensureInjected() {
- !(ReactUpdates.ReactReconcileTransaction && batchingStrategy)
- ? process.env.NODE_ENV !== 'production'
- ? invariant(
- false,
- 'ReactUpdates: must inject a reconcile transaction class and batching strategy'
- )
- : _prodInvariant('123')
- : void 0
- }
-
- var NESTED_UPDATES = {
- initialize: function() {
- this.dirtyComponentsLength = dirtyComponents.length
- },
- close: function() {
- if (this.dirtyComponentsLength !== dirtyComponents.length) {
- // Additional updates were enqueued by componentDidUpdate handlers or
- // similar; before our own UPDATE_QUEUEING wrapper closes, we want to run
- // these new updates so that if A's componentDidUpdate calls setState on
- // B, B will update before the callback A's updater provided when calling
- // setState.
- dirtyComponents.splice(0, this.dirtyComponentsLength)
- flushBatchedUpdates()
- } else {
- dirtyComponents.length = 0
- }
- },
- }
-
- var UPDATE_QUEUEING = {
- initialize: function() {
- this.callbackQueue.reset()
- },
- close: function() {
- this.callbackQueue.notifyAll()
- },
- }
-
- var TRANSACTION_WRAPPERS = [NESTED_UPDATES, UPDATE_QUEUEING]
-
- function ReactUpdatesFlushTransaction() {
- this.reinitializeTransaction()
- this.dirtyComponentsLength = null
- this.callbackQueue = CallbackQueue.getPooled()
- this.reconcileTransaction = ReactUpdates.ReactReconcileTransaction.getPooled(
- /* useCreateElement */ true
- )
- }
-
- _assign(ReactUpdatesFlushTransaction.prototype, Transaction, {
- getTransactionWrappers: function() {
- return TRANSACTION_WRAPPERS
- },
-
- destructor: function() {
- this.dirtyComponentsLength = null
- CallbackQueue.release(this.callbackQueue)
- this.callbackQueue = null
- ReactUpdates.ReactReconcileTransaction.release(this.reconcileTransaction)
- this.reconcileTransaction = null
- },
-
- perform: function(method, scope, a) {
- // Essentially calls `this.reconcileTransaction.perform(method, scope, a)`
- // with this transaction's wrappers around it.
- return Transaction.perform.call(
- this,
- this.reconcileTransaction.perform,
- this.reconcileTransaction,
- method,
- scope,
- a
- )
- },
- })
-
- PooledClass.addPoolingTo(ReactUpdatesFlushTransaction)
-
- function batchedUpdates(callback, a, b, c, d, e) {
- ensureInjected()
- return batchingStrategy.batchedUpdates(callback, a, b, c, d, e)
- }
-
- /**
- * Array comparator for ReactComponents by mount ordering.
- *
- * @param {ReactComponent} c1 first component you're comparing
- * @param {ReactComponent} c2 second component you're comparing
- * @return {number} Return value usable by Array.prototype.sort().
- */
- function mountOrderComparator(c1, c2) {
- return c1._mountOrder - c2._mountOrder
- }
-
- function runBatchedUpdates(transaction) {
- var len = transaction.dirtyComponentsLength
- !(len === dirtyComponents.length)
- ? process.env.NODE_ENV !== 'production'
- ? invariant(
- false,
- "Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",
- len,
- dirtyComponents.length
- )
- : _prodInvariant('124', len, dirtyComponents.length)
- : void 0
-
- // Since reconciling a component higher in the owner hierarchy usually (not
- // always -- see shouldComponentUpdate()) will reconcile children, reconcile
- // them before their children by sorting the array.
- dirtyComponents.sort(mountOrderComparator)
-
- // Any updates enqueued while reconciling must be performed after this entire
- // batch. Otherwise, if dirtyComponents is [A, B] where A has children B and
- // C, B could update twice in a single batch if C's render enqueues an update
- // to B (since B would have already updated, we should skip it, and the only
- // way we can know to do so is by checking the batch counter).
- updateBatchNumber++
-
- for (var i = 0; i < len; i++) {
- // If a component is unmounted before pending changes apply, it will still
- // be here, but we assume that it has cleared its _pendingCallbacks and
- // that performUpdateIfNecessary is a noop.
- var component = dirtyComponents[i]
-
- // If performUpdateIfNecessary happens to enqueue any new updates, we
- // shouldn't execute the callbacks until the next render happens, so
- // stash the callbacks first
- var callbacks = component._pendingCallbacks
- component._pendingCallbacks = null
-
- var markerName
- if (ReactFeatureFlags.logTopLevelRenders) {
- var namedComponent = component
- // Duck type TopLevelWrapper. This is probably always true.
- if (component._currentElement.type.isReactTopLevelWrapper) {
- namedComponent = component._renderedComponent
- }
- markerName = 'React update: ' + namedComponent.getName()
- console.time(markerName)
- }
-
- ReactReconciler.performUpdateIfNecessary(
- component,
- transaction.reconcileTransaction,
- updateBatchNumber
- )
-
- if (markerName) {
- console.timeEnd(markerName)
- }
-
- if (callbacks) {
- for (var j = 0; j < callbacks.length; j++) {
- transaction.callbackQueue.enqueue(callbacks[j], component.getPublicInstance())
- }
- }
- }
- }
-
- var flushBatchedUpdates = function() {
- // ReactUpdatesFlushTransaction's wrappers will clear the dirtyComponents
- // array and perform any updates enqueued by mount-ready handlers (i.e.,
- // componentDidUpdate) but we need to check here too in order to catch
- // updates enqueued by setState callbacks and asap calls.
- while (dirtyComponents.length || asapEnqueued) {
- if (dirtyComponents.length) {
- var transaction = ReactUpdatesFlushTransaction.getPooled()
- transaction.perform(runBatchedUpdates, null, transaction)
- ReactUpdatesFlushTransaction.release(transaction)
- }
+ var freeGlobal = __webpack_require__(108)
- if (asapEnqueued) {
- asapEnqueued = false
- var queue = asapCallbackQueue
- asapCallbackQueue = CallbackQueue.getPooled()
- queue.notifyAll()
- CallbackQueue.release(queue)
- }
- }
- }
-
- /**
- * Mark a component as needing a rerender, adding an optional callback to a
- * list of functions which will be executed once the rerender occurs.
- */
- function enqueueUpdate(component) {
- ensureInjected()
-
- // Various parts of our code (such as ReactCompositeComponent's
- // _renderValidatedComponent) assume that calls to render aren't nested;
- // verify that that's the case. (This is called by each top-level update
- // function, like setState, forceUpdate, etc.; creation and
- // destruction of top-level components is guarded in ReactMount.)
-
- if (!batchingStrategy.isBatchingUpdates) {
- batchingStrategy.batchedUpdates(enqueueUpdate, component)
- return
- }
-
- dirtyComponents.push(component)
- if (component._updateBatchNumber == null) {
- component._updateBatchNumber = updateBatchNumber + 1
- }
- }
-
- /**
- * Enqueue a callback to be run at the end of the current batching cycle. Throws
- * if no updates are currently being performed.
- */
- function asap(callback, context) {
- !batchingStrategy.isBatchingUpdates
- ? process.env.NODE_ENV !== 'production'
- ? invariant(
- false,
- "ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."
- )
- : _prodInvariant('125')
- : void 0
- asapCallbackQueue.enqueue(callback, context)
- asapEnqueued = true
- }
-
- var ReactUpdatesInjection = {
- injectReconcileTransaction: function(ReconcileTransaction) {
- !ReconcileTransaction
- ? process.env.NODE_ENV !== 'production'
- ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class')
- : _prodInvariant('126')
- : void 0
- ReactUpdates.ReactReconcileTransaction = ReconcileTransaction
- },
-
- injectBatchingStrategy: function(_batchingStrategy) {
- !_batchingStrategy
- ? process.env.NODE_ENV !== 'production'
- ? invariant(false, 'ReactUpdates: must provide a batching strategy')
- : _prodInvariant('127')
- : void 0
- !(typeof _batchingStrategy.batchedUpdates === 'function')
- ? process.env.NODE_ENV !== 'production'
- ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function')
- : _prodInvariant('128')
- : void 0
- !(typeof _batchingStrategy.isBatchingUpdates === 'boolean')
- ? process.env.NODE_ENV !== 'production'
- ? invariant(
- false,
- 'ReactUpdates: must provide an isBatchingUpdates boolean attribute'
- )
- : _prodInvariant('129')
- : void 0
- batchingStrategy = _batchingStrategy
- },
- }
-
- var ReactUpdates = {
- /**
- * React references `ReactReconcileTransaction` using this property in order
- * to allow dependency injection.
- *
- * @internal
- */
- ReactReconcileTransaction: null,
-
- batchedUpdates: batchedUpdates,
- enqueueUpdate: enqueueUpdate,
- flushBatchedUpdates: flushBatchedUpdates,
- injection: ReactUpdatesInjection,
- asap: asap,
- }
-
- module.exports = ReactUpdates
- /* WEBPACK VAR INJECTION */
- }.call(exports, __webpack_require__(0)))
-
- /***/
- },
- /* 22 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
- /**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
+ /** Detect free variable `self`. */
+ var freeSelf =
+ typeof self == 'object' && self && self.Object === Object && self
- /**
- * Keeps track of the current owner.
- *
- * The current owner is the component who should own any components that are
- * currently being constructed.
- */
- var ReactCurrentOwner = {
- /**
- * @internal
- * @type {ReactComponent}
- */
- current: null,
- }
+ /** Used as a reference to the global object. */
+ var root = freeGlobal || freeSelf || Function('return this')()
- module.exports = ReactCurrentOwner
+ module.exports = root
/***/
},
- /* 23 */
+ /* 12 */
/***/ function(module, exports, __webpack_require__) {
'use strict'
exports.__esModule = true
- var _Calendar = __webpack_require__(549)
+ var _extends =
+ Object.assign ||
+ function(target) {
+ for (var i = 1; i < arguments.length; i++) {
+ var source = arguments[i]
+ for (var key in source) {
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
+ target[key] = source[key]
+ }
+ }
+ }
+ return target
+ }
+
+ var _Calendar = __webpack_require__(275)
var _Calendar2 = _interopRequireDefault(_Calendar)
- var _EventWrapper = __webpack_require__(240)
+ var _EventWrapper = __webpack_require__(162)
var _EventWrapper2 = _interopRequireDefault(_EventWrapper)
- var _BackgroundWrapper = __webpack_require__(144)
+ var _BackgroundWrapper = __webpack_require__(92)
var _BackgroundWrapper2 = _interopRequireDefault(_BackgroundWrapper)
- var _localizer = __webpack_require__(12)
+ var _localizer = __webpack_require__(6)
- var _moment = __webpack_require__(564)
+ var _moment = __webpack_require__(370)
var _moment2 = _interopRequireDefault(_moment)
- var _globalize = __webpack_require__(146)
+ var _globalize = __webpack_require__(130)
var _globalize2 = _interopRequireDefault(_globalize)
- var _move = __webpack_require__(246)
+ var _move = __webpack_require__(133)
var _move2 = _interopRequireDefault(_move)
- var _constants = __webpack_require__(24)
+ var _constants = __webpack_require__(13)
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj }
}
- Object.assign(_Calendar2.default, {
+ _extends(_Calendar2.default, {
setLocalizer: _localizer.set,
globalizeLocalizer: _globalize2.default,
momentLocalizer: _moment2.default,
@@ -2394,10 +1134,11 @@
})
exports.default = _Calendar2.default
+ module.exports = exports['default']
/***/
},
- /* 24 */
+ /* 13 */
/***/ function(module, exports, __webpack_require__) {
'use strict'
@@ -2419,350 +1160,84 @@
/***/
},
- /* 25 */
+ /* 14 */
/***/ function(module, exports, __webpack_require__) {
'use strict'
- /* WEBPACK VAR INJECTION */
- ;(function(process) {
- /**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
- var _assign = __webpack_require__(6)
+ /**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
- var PooledClass = __webpack_require__(32)
+ var React = __webpack_require__(0)
+ var factory = __webpack_require__(190)
- var emptyFunction = __webpack_require__(18)
- var warning = __webpack_require__(3)
+ if (typeof React === 'undefined') {
+ throw Error(
+ 'create-react-class could not find the React object. If you are using script tags, ' +
+ 'make sure that React is being loaded before create-react-class.'
+ )
+ }
- var didWarnForAddedNewProperty = false
- var isProxySupported = typeof Proxy === 'function'
+ // Hack to grab NoopUpdateQueue from isomorphic React
+ var ReactNoopUpdateQueue = new React.Component().updater
- var shouldBeReleasedProperties = [
- 'dispatchConfig',
- '_targetInst',
- 'nativeEvent',
- 'isDefaultPrevented',
- 'isPropagationStopped',
- '_dispatchListeners',
- '_dispatchInstances',
- ]
+ module.exports = factory(
+ React.Component,
+ React.isValidElement,
+ ReactNoopUpdateQueue
+ )
- /**
- * @interface Event
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
- var EventInterface = {
- type: null,
- target: null,
- // currentTarget is set when dispatching; no use in copying it here
- currentTarget: emptyFunction.thatReturnsNull,
- eventPhase: null,
- bubbles: null,
- cancelable: null,
- timeStamp: function(event) {
- return event.timeStamp || Date.now()
- },
- defaultPrevented: null,
- isTrusted: null,
- }
+ /***/
+ },
+ /* 15 */
+ /***/ function(module, exports, __webpack_require__) {
+ 'use strict'
- /**
- * Synthetic events are dispatched by event plugins, typically in response to a
- * top-level event delegation handler.
- *
- * These systems should generally use pooling to reduce the frequency of garbage
- * collection. The system should check `isPersistent` to determine whether the
- * event should be released into the pool after being dispatched. Users that
- * need a persisted event should invoke `persist`.
- *
- * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
- * normalizing browser quirks. Subclasses do not necessarily have to implement a
- * DOM interface; custom application-specific events can also subclass this.
- *
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {*} targetInst Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @param {DOMEventTarget} nativeEventTarget Target node.
- */
- function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
- if (process.env.NODE_ENV !== 'production') {
- // these have a getter/setter for warnings
- delete this.nativeEvent
- delete this.preventDefault
- delete this.stopPropagation
- }
-
- this.dispatchConfig = dispatchConfig
- this._targetInst = targetInst
- this.nativeEvent = nativeEvent
-
- var Interface = this.constructor.Interface
- for (var propName in Interface) {
- if (!Interface.hasOwnProperty(propName)) {
- continue
- }
- if (process.env.NODE_ENV !== 'production') {
- delete this[propName] // this has a getter/setter for warnings
- }
- var normalize = Interface[propName]
- if (normalize) {
- this[propName] = normalize(nativeEvent)
- } else {
- if (propName === 'target') {
- this.target = nativeEventTarget
- } else {
- this[propName] = nativeEvent[propName]
- }
- }
- }
-
- var defaultPrevented =
- nativeEvent.defaultPrevented != null
- ? nativeEvent.defaultPrevented
- : nativeEvent.returnValue === false
- if (defaultPrevented) {
- this.isDefaultPrevented = emptyFunction.thatReturnsTrue
- } else {
- this.isDefaultPrevented = emptyFunction.thatReturnsFalse
- }
- this.isPropagationStopped = emptyFunction.thatReturnsFalse
- return this
- }
-
- _assign(SyntheticEvent.prototype, {
- preventDefault: function() {
- this.defaultPrevented = true
- var event = this.nativeEvent
- if (!event) {
- return
- }
-
- if (event.preventDefault) {
- event.preventDefault()
- } else if (typeof event.returnValue !== 'unknown') {
- // eslint-disable-line valid-typeof
- event.returnValue = false
- }
- this.isDefaultPrevented = emptyFunction.thatReturnsTrue
- },
-
- stopPropagation: function() {
- var event = this.nativeEvent
- if (!event) {
- return
- }
-
- if (event.stopPropagation) {
- event.stopPropagation()
- } else if (typeof event.cancelBubble !== 'unknown') {
- // eslint-disable-line valid-typeof
- // The ChangeEventPlugin registers a "propertychange" event for
- // IE. This event does not support bubbling or cancelling, and
- // any references to cancelBubble throw "Member not found". A
- // typeof check of "unknown" circumvents this issue (and is also
- // IE specific).
- event.cancelBubble = true
- }
-
- this.isPropagationStopped = emptyFunction.thatReturnsTrue
- },
-
- /**
- * We release all dispatched `SyntheticEvent`s after each event loop, adding
- * them back into the pool. This allows a way to hold onto a reference that
- * won't be added back into the pool.
- */
- persist: function() {
- this.isPersistent = emptyFunction.thatReturnsTrue
- },
-
- /**
- * Checks if this event should be released back into the pool.
- *
- * @return {boolean} True if this should not be released, false otherwise.
- */
- isPersistent: emptyFunction.thatReturnsFalse,
-
- /**
- * `PooledClass` looks for `destructor` on each instance it releases.
- */
- destructor: function() {
- var Interface = this.constructor.Interface
- for (var propName in Interface) {
- if (process.env.NODE_ENV !== 'production') {
- Object.defineProperty(
- this,
- propName,
- getPooledWarningPropertyDefinition(propName, Interface[propName])
- )
- } else {
- this[propName] = null
- }
- }
- for (var i = 0; i < shouldBeReleasedProperties.length; i++) {
- this[shouldBeReleasedProperties[i]] = null
- }
- if (process.env.NODE_ENV !== 'production') {
- Object.defineProperty(
- this,
- 'nativeEvent',
- getPooledWarningPropertyDefinition('nativeEvent', null)
- )
- Object.defineProperty(
- this,
- 'preventDefault',
- getPooledWarningPropertyDefinition('preventDefault', emptyFunction)
- )
- Object.defineProperty(
- this,
- 'stopPropagation',
- getPooledWarningPropertyDefinition('stopPropagation', emptyFunction)
- )
- }
- },
- })
-
- SyntheticEvent.Interface = EventInterface
-
- if (process.env.NODE_ENV !== 'production') {
- if (isProxySupported) {
- /*eslint-disable no-func-assign */
- SyntheticEvent = new Proxy(SyntheticEvent, {
- construct: function(target, args) {
- return this.apply(target, Object.create(target.prototype), args)
- },
- apply: function(constructor, that, args) {
- return new Proxy(constructor.apply(that, args), {
- set: function(target, prop, value) {
- if (
- prop !== 'isPersistent' &&
- !target.constructor.Interface.hasOwnProperty(prop) &&
- shouldBeReleasedProperties.indexOf(prop) === -1
- ) {
- process.env.NODE_ENV !== 'production'
- ? warning(
- didWarnForAddedNewProperty || target.isPersistent(),
- "This synthetic event is reused for performance reasons. If you're " +
- "seeing this, you're adding a new property in the synthetic event object. " +
- 'The property is never released. See ' +
- 'https://fb.me/react-event-pooling for more information.'
- )
- : void 0
- didWarnForAddedNewProperty = true
- }
- target[prop] = value
- return true
- },
- })
- },
- })
- /*eslint-enable no-func-assign */
- }
- }
- /**
- * Helper to reduce boilerplate when creating subclasses.
- *
- * @param {function} Class
- * @param {?object} Interface
- */
- SyntheticEvent.augmentClass = function(Class, Interface) {
- var Super = this
-
- var E = function() {}
- E.prototype = Super.prototype
- var prototype = new E()
-
- _assign(prototype, Class.prototype)
- Class.prototype = prototype
- Class.prototype.constructor = Class
-
- Class.Interface = _assign({}, Super.Interface, Interface)
- Class.augmentClass = Super.augmentClass
+ /**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ *
+ */
- PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler)
+ function makeEmptyFunction(arg) {
+ return function() {
+ return arg
}
+ }
- PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler)
-
- module.exports = SyntheticEvent
-
- /**
- * Helper to nullify syntheticEvent instance properties when destructing
- *
- * @param {object} SyntheticEvent
- * @param {String} propName
- * @return {object} defineProperty object
- */
- function getPooledWarningPropertyDefinition(propName, getVal) {
- var isFunction = typeof getVal === 'function'
- return {
- configurable: true,
- set: set,
- get: get,
- }
-
- function set(val) {
- var action = isFunction ? 'setting the method' : 'setting the property'
- warn(action, 'This is effectively a no-op')
- return val
- }
-
- function get() {
- var action = isFunction ? 'accessing the method' : 'accessing the property'
- var result = isFunction ? 'This is a no-op function' : 'This is set to null'
- warn(action, result)
- return getVal
- }
-
- function warn(action, result) {
- var warningCondition = false
- process.env.NODE_ENV !== 'production'
- ? warning(
- warningCondition,
- "This synthetic event is reused for performance reasons. If you're seeing this, " +
- "you're %s `%s` on a released/nullified synthetic event. %s. " +
- 'If you must keep the original synthetic event around, use event.persist(). ' +
- 'See https://fb.me/react-event-pooling for more information.',
- action,
- propName,
- result
- )
- : void 0
- }
- }
- /* WEBPACK VAR INJECTION */
- }.call(exports, __webpack_require__(0)))
+ /**
+ * This function accepts and discards inputs; it has no side effects. This is
+ * primarily useful idiomatically for overridable function endpoints which
+ * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
+ */
+ var emptyFunction = function emptyFunction() {}
- /***/
- },
- /* 26 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
+ emptyFunction.thatReturns = makeEmptyFunction
+ emptyFunction.thatReturnsFalse = makeEmptyFunction(false)
+ emptyFunction.thatReturnsTrue = makeEmptyFunction(true)
+ emptyFunction.thatReturnsNull = makeEmptyFunction(null)
+ emptyFunction.thatReturnsThis = function() {
+ return this
+ }
+ emptyFunction.thatReturnsArgument = function(arg) {
+ return arg
+ }
- Object.defineProperty(exports, '__esModule', {
- value: true,
- })
- exports.default = !!(
- typeof window !== 'undefined' &&
- window.document &&
- window.document.createElement
- )
- module.exports = exports.default
+ module.exports = emptyFunction
/***/
},
- /* 27 */
+ /* 16 */
/***/ function(module, exports, __webpack_require__) {
- var baseGetTag = __webpack_require__(38),
- getPrototype = __webpack_require__(67),
- isObjectLike = __webpack_require__(31)
+ var baseGetTag = __webpack_require__(24),
+ getPrototype = __webpack_require__(52),
+ isObjectLike = __webpack_require__(18)
/** `Object#toString` result references. */
var objectTag = '[object Object]'
@@ -2816,7 +1291,8 @@
if (proto === null) {
return true
}
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor
+ var Ctor =
+ hasOwnProperty.call(proto, 'constructor') && proto.constructor
return (
typeof Ctor == 'function' &&
Ctor instanceof Ctor &&
@@ -2828,360 +1304,107 @@
/***/
},
- /* 28 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
- /* WEBPACK VAR INJECTION */
- ;(function(process) {
- /**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
- var _prodInvariant = __webpack_require__(5)
-
- var invariant = __webpack_require__(2)
-
- function checkMask(value, bitmask) {
- return (value & bitmask) === bitmask
- }
-
- var DOMPropertyInjection = {
- /**
- * Mapping from normalized, camelcased property names to a configuration that
- * specifies how the associated DOM property should be accessed or rendered.
- */
- MUST_USE_PROPERTY: 0x1,
- HAS_BOOLEAN_VALUE: 0x4,
- HAS_NUMERIC_VALUE: 0x8,
- HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8,
- HAS_OVERLOADED_BOOLEAN_VALUE: 0x20,
-
- /**
- * Inject some specialized knowledge about the DOM. This takes a config object
- * with the following properties:
- *
- * isCustomAttribute: function that given an attribute name will return true
- * if it can be inserted into the DOM verbatim. Useful for data-* or aria-*
- * attributes where it's impossible to enumerate all of the possible
- * attribute names,
- *
- * Properties: object mapping DOM property name to one of the
- * DOMPropertyInjection constants or null. If your attribute isn't in here,
- * it won't get written to the DOM.
- *
- * DOMAttributeNames: object mapping React attribute name to the DOM
- * attribute name. Attribute names not specified use the **lowercase**
- * normalized name.
- *
- * DOMAttributeNamespaces: object mapping React attribute name to the DOM
- * attribute namespace URL. (Attribute names not specified use no namespace.)
- *
- * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.
- * Property names not specified use the normalized name.
- *
- * DOMMutationMethods: Properties that require special mutation methods. If
- * `value` is undefined, the mutation method should unset the property.
- *
- * @param {object} domPropertyConfig the config as described above.
- */
- injectDOMPropertyConfig: function(domPropertyConfig) {
- var Injection = DOMPropertyInjection
- var Properties = domPropertyConfig.Properties || {}
- var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {}
- var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {}
- var DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {}
- var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {}
-
- if (domPropertyConfig.isCustomAttribute) {
- DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute)
- }
-
- for (var propName in Properties) {
- DOMProperty.properties.hasOwnProperty(propName)
- ? process.env.NODE_ENV !== 'production'
- ? invariant(
- false,
- "injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",
- propName
- )
- : _prodInvariant('48', propName)
- : void 0
-
- var lowerCased = propName.toLowerCase()
- var propConfig = Properties[propName]
-
- var propertyInfo = {
- attributeName: lowerCased,
- attributeNamespace: null,
- propertyName: propName,
- mutationMethod: null,
-
- mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),
- hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),
- hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),
- hasPositiveNumericValue: checkMask(
- propConfig,
- Injection.HAS_POSITIVE_NUMERIC_VALUE
- ),
- hasOverloadedBooleanValue: checkMask(
- propConfig,
- Injection.HAS_OVERLOADED_BOOLEAN_VALUE
- ),
- }
- !(
- propertyInfo.hasBooleanValue +
- propertyInfo.hasNumericValue +
- propertyInfo.hasOverloadedBooleanValue <=
- 1
- )
- ? process.env.NODE_ENV !== 'production'
- ? invariant(
- false,
- 'DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s',
- propName
- )
- : _prodInvariant('50', propName)
- : void 0
-
- if (process.env.NODE_ENV !== 'production') {
- DOMProperty.getPossibleStandardName[lowerCased] = propName
- }
-
- if (DOMAttributeNames.hasOwnProperty(propName)) {
- var attributeName = DOMAttributeNames[propName]
- propertyInfo.attributeName = attributeName
- if (process.env.NODE_ENV !== 'production') {
- DOMProperty.getPossibleStandardName[attributeName] = propName
- }
- }
-
- if (DOMAttributeNamespaces.hasOwnProperty(propName)) {
- propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName]
- }
-
- if (DOMPropertyNames.hasOwnProperty(propName)) {
- propertyInfo.propertyName = DOMPropertyNames[propName]
- }
-
- if (DOMMutationMethods.hasOwnProperty(propName)) {
- propertyInfo.mutationMethod = DOMMutationMethods[propName]
- }
-
- DOMProperty.properties[propName] = propertyInfo
- }
- },
- }
-
- /* eslint-disable max-len */
- var ATTRIBUTE_NAME_START_CHAR =
- ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD'
- /* eslint-enable max-len */
-
- /**
- * DOMProperty exports lookup objects that can be used like functions:
- *
- * > DOMProperty.isValid['id']
- * true
- * > DOMProperty.isValid['foobar']
- * undefined
- *
- * Although this may be confusing, it performs better in general.
- *
- * @see http://jsperf.com/key-exists
- * @see http://jsperf.com/key-missing
- */
- var DOMProperty = {
- ID_ATTRIBUTE_NAME: 'data-reactid',
- ROOT_ATTRIBUTE_NAME: 'data-reactroot',
-
- ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,
- ATTRIBUTE_NAME_CHAR:
- ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040',
-
- /**
- * Map from property "standard name" to an object with info about how to set
- * the property in the DOM. Each object contains:
- *
- * attributeName:
- * Used when rendering markup or with `*Attribute()`.
- * attributeNamespace
- * propertyName:
- * Used on DOM node instances. (This includes properties that mutate due to
- * external factors.)
- * mutationMethod:
- * If non-null, used instead of the property or `setAttribute()` after
- * initial render.
- * mustUseProperty:
- * Whether the property must be accessed and mutated as an object property.
- * hasBooleanValue:
- * Whether the property should be removed when set to a falsey value.
- * hasNumericValue:
- * Whether the property must be numeric or parse as a numeric and should be
- * removed when set to a falsey value.
- * hasPositiveNumericValue:
- * Whether the property must be positive numeric or parse as a positive
- * numeric and should be removed when set to a falsey value.
- * hasOverloadedBooleanValue:
- * Whether the property can be used as a flag as well as with a value.
- * Removed when strictly equal to false; present without a value when
- * strictly equal to true; present with a value otherwise.
- */
- properties: {},
-
- /**
- * Mapping from lowercase property names to the properly cased version, used
- * to warn in the case of missing properties. Available only in __DEV__.
- *
- * autofocus is predefined, because adding it to the property whitelist
- * causes unintended side effects.
- *
- * @type {Object}
- */
- getPossibleStandardName:
- process.env.NODE_ENV !== 'production' ? { autofocus: 'autoFocus' } : null,
-
- /**
- * All of the isCustomAttribute() functions that have been injected.
- */
- _isCustomAttributeFunctions: [],
-
- /**
- * Checks whether a property name is a custom attribute.
- * @method
- */
- isCustomAttribute: function(attributeName) {
- for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) {
- var isCustomAttributeFn = DOMProperty._isCustomAttributeFunctions[i]
- if (isCustomAttributeFn(attributeName)) {
- return true
- }
- }
- return false
- },
-
- injection: DOMPropertyInjection,
- }
-
- module.exports = DOMProperty
- /* WEBPACK VAR INJECTION */
- }.call(exports, __webpack_require__(0)))
-
- /***/
- },
- /* 29 */
+ /* 17 */
/***/ function(module, exports, __webpack_require__) {
'use strict'
exports.__esModule = true
exports.default = [
{
- title: 'All Day Event',
+ id: 0,
+ title: 'All Day Event very long title',
allDay: true,
start: new Date(2015, 3, 0),
end: new Date(2015, 3, 1),
},
{
+ id: 1,
title: 'Long Event',
start: new Date(2015, 3, 7),
end: new Date(2015, 3, 10),
},
{
+ id: 2,
title: 'DTS STARTS',
start: new Date(2016, 2, 13, 0, 0, 0),
end: new Date(2016, 2, 20, 0, 0, 0),
},
{
+ id: 3,
title: 'DTS ENDS',
start: new Date(2016, 10, 6, 0, 0, 0),
end: new Date(2016, 10, 13, 0, 0, 0),
},
{
+ id: 4,
title: 'Some Event',
start: new Date(2015, 3, 9, 0, 0, 0),
end: new Date(2015, 3, 9, 0, 0, 0),
},
{
+ id: 5,
title: 'Conference',
start: new Date(2015, 3, 11),
end: new Date(2015, 3, 13),
desc: 'Big conference for important people',
},
{
+ id: 6,
title: 'Meeting',
start: new Date(2015, 3, 12, 10, 30, 0, 0),
end: new Date(2015, 3, 12, 12, 30, 0, 0),
desc: 'Pre-meeting meeting, to prepare for the meeting',
},
{
+ id: 7,
title: 'Lunch',
start: new Date(2015, 3, 12, 12, 0, 0, 0),
end: new Date(2015, 3, 12, 13, 0, 0, 0),
desc: 'Power lunch',
},
{
+ id: 8,
title: 'Meeting',
start: new Date(2015, 3, 12, 14, 0, 0, 0),
end: new Date(2015, 3, 12, 15, 0, 0, 0),
},
{
+ id: 9,
title: 'Happy Hour',
start: new Date(2015, 3, 12, 17, 0, 0, 0),
end: new Date(2015, 3, 12, 17, 30, 0, 0),
desc: 'Most important meal of the day',
},
{
+ id: 10,
title: 'Dinner',
start: new Date(2015, 3, 12, 20, 0, 0, 0),
end: new Date(2015, 3, 12, 21, 0, 0, 0),
},
{
+ id: 11,
title: 'Birthday Party',
start: new Date(2015, 3, 13, 7, 0, 0),
end: new Date(2015, 3, 13, 10, 30, 0),
},
{
+ id: 12,
title: 'Late Night Event',
start: new Date(2015, 3, 17, 19, 30, 0),
end: new Date(2015, 3, 18, 2, 0, 0),
},
{
+ id: 13,
title: 'Multi-day Event',
start: new Date(2015, 3, 20, 19, 30, 0),
end: new Date(2015, 3, 22, 2, 0, 0),
},
]
+ module.exports = exports['default']
/***/
},
- /* 30 */
- /***/ function(module, exports, __webpack_require__) {
- var baseIsNative = __webpack_require__(332),
- getValue = __webpack_require__(369)
-
- /**
- * Gets the native function at `key` of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {string} key The key of the method to get.
- * @returns {*} Returns the function if it's native, else `undefined`.
- */
- function getNative(object, key) {
- var value = getValue(object, key)
- return baseIsNative(value) ? value : undefined
- }
-
- module.exports = getNative
-
- /***/
- },
- /* 31 */
+ /* 18 */
/***/ function(module, exports) {
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`
@@ -3215,694 +1438,165 @@
/***/
},
- /* 32 */
+ /* 19 */
/***/ function(module, exports, __webpack_require__) {
- 'use strict'
- /* WEBPACK VAR INJECTION */
- ;(function(process) {
- /**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
- var _prodInvariant = __webpack_require__(5)
-
- var invariant = __webpack_require__(2)
+ var baseIsNative = __webpack_require__(215),
+ getValue = __webpack_require__(218)
- /**
- * Static poolers. Several custom versions for each potential number of
- * arguments. A completely generic pooler is easy to implement, but would
- * require accessing the `arguments` object. In each of these, `this` refers to
- * the Class itself, not an instance. If any others are needed, simply add them
- * here, or in their own files.
- */
- var oneArgumentPooler = function(copyFieldsFrom) {
- var Klass = this
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop()
- Klass.call(instance, copyFieldsFrom)
- return instance
- } else {
- return new Klass(copyFieldsFrom)
- }
- }
-
- var twoArgumentPooler = function(a1, a2) {
- var Klass = this
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop()
- Klass.call(instance, a1, a2)
- return instance
- } else {
- return new Klass(a1, a2)
- }
- }
-
- var threeArgumentPooler = function(a1, a2, a3) {
- var Klass = this
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop()
- Klass.call(instance, a1, a2, a3)
- return instance
- } else {
- return new Klass(a1, a2, a3)
- }
- }
+ /**
+ * Gets the native function at `key` of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {string} key The key of the method to get.
+ * @returns {*} Returns the function if it's native, else `undefined`.
+ */
+ function getNative(object, key) {
+ var value = getValue(object, key)
+ return baseIsNative(value) ? value : undefined
+ }
- var fourArgumentPooler = function(a1, a2, a3, a4) {
- var Klass = this
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop()
- Klass.call(instance, a1, a2, a3, a4)
- return instance
- } else {
- return new Klass(a1, a2, a3, a4)
- }
- }
+ module.exports = getNative
- var fiveArgumentPooler = function(a1, a2, a3, a4, a5) {
- var Klass = this
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop()
- Klass.call(instance, a1, a2, a3, a4, a5)
- return instance
- } else {
- return new Klass(a1, a2, a3, a4, a5)
- }
- }
+ /***/
+ },
+ /* 20 */
+ /***/ function(module, exports, __webpack_require__) {
+ 'use strict'
- var standardReleaser = function(instance) {
- var Klass = this
- !(instance instanceof Klass)
- ? process.env.NODE_ENV !== 'production'
- ? invariant(false, 'Trying to release an instance into a pool of a different type.')
- : _prodInvariant('25')
- : void 0
- instance.destructor()
- if (Klass.instancePool.length < Klass.poolSize) {
- Klass.instancePool.push(instance)
- }
- }
+ exports.__esModule = true
- var DEFAULT_POOL_SIZE = 10
- var DEFAULT_POOLER = oneArgumentPooler
+ var _typeof =
+ typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'
+ ? function(obj) {
+ return typeof obj
+ }
+ : function(obj) {
+ return obj &&
+ typeof Symbol === 'function' &&
+ obj.constructor === Symbol &&
+ obj !== Symbol.prototype
+ ? 'symbol'
+ : typeof obj
+ }
- /**
- * Augments `CopyConstructor` to be a poolable class, augmenting only the class
- * itself (statically) not adding any prototypical fields. Any CopyConstructor
- * you give this may have a `poolSize` property, and will look for a
- * prototypical `destructor` on instances.
- *
- * @param {Function} CopyConstructor Constructor that can be used to reset.
- * @param {Function} pooler Customizable pooler.
- */
- var addPoolingTo = function(CopyConstructor, pooler) {
- // Casting as any so that flow ignores the actual implementation and trusts
- // it to match the type we declared
- var NewKlass = CopyConstructor
- NewKlass.instancePool = []
- NewKlass.getPooled = pooler || DEFAULT_POOLER
- if (!NewKlass.poolSize) {
- NewKlass.poolSize = DEFAULT_POOL_SIZE
- }
- NewKlass.release = standardReleaser
- return NewKlass
- }
+ exports.accessor = accessor
+ function accessor(data, field) {
+ var value = null
- var PooledClass = {
- addPoolingTo: addPoolingTo,
- oneArgumentPooler: oneArgumentPooler,
- twoArgumentPooler: twoArgumentPooler,
- threeArgumentPooler: threeArgumentPooler,
- fourArgumentPooler: fourArgumentPooler,
- fiveArgumentPooler: fiveArgumentPooler,
- }
+ if (typeof field === 'function') value = field(data)
+ else if (
+ typeof field === 'string' &&
+ (typeof data === 'undefined' ? 'undefined' : _typeof(data)) ===
+ 'object' &&
+ data != null &&
+ field in data
+ )
+ value = data[field]
- module.exports = PooledClass
- /* WEBPACK VAR INJECTION */
- }.call(exports, __webpack_require__(0)))
+ return value
+ }
/***/
},
- /* 33 */
+ /* 21 */
/***/ function(module, exports, __webpack_require__) {
'use strict'
- /* WEBPACK VAR INJECTION */
- ;(function(process) {
- /**
- * Copyright 2014-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
- var _assign = __webpack_require__(6)
-
- var ReactCurrentOwner = __webpack_require__(22)
+ exports.__esModule = true
+ exports.endOfRange = endOfRange
+ exports.eventSegments = eventSegments
+ exports.segStyle = segStyle
+ exports.eventLevels = eventLevels
+ exports.inRange = inRange
+ exports.segsOverlap = segsOverlap
+ exports.sortEvents = sortEvents
- var warning = __webpack_require__(3)
- var canDefineProperty = __webpack_require__(142)
- var hasOwnProperty = Object.prototype.hasOwnProperty
+ var _findIndex = __webpack_require__(310)
- var REACT_ELEMENT_TYPE = __webpack_require__(234)
+ var _findIndex2 = _interopRequireDefault(_findIndex)
- var RESERVED_PROPS = {
- key: true,
- ref: true,
- __self: true,
- __source: true,
- }
+ var _dates = __webpack_require__(3)
- var specialPropKeyWarningShown, specialPropRefWarningShown
+ var _dates2 = _interopRequireDefault(_dates)
- function hasValidRef(config) {
- if (process.env.NODE_ENV !== 'production') {
- if (hasOwnProperty.call(config, 'ref')) {
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get
- if (getter && getter.isReactWarning) {
- return false
- }
- }
- }
- return config.ref !== undefined
- }
+ var _accessors = __webpack_require__(20)
- function hasValidKey(config) {
- if (process.env.NODE_ENV !== 'production') {
- if (hasOwnProperty.call(config, 'key')) {
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get
- if (getter && getter.isReactWarning) {
- return false
- }
- }
- }
- return config.key !== undefined
- }
+ function _interopRequireDefault(obj) {
+ return obj && obj.__esModule ? obj : { default: obj }
+ }
- function defineKeyPropWarningGetter(props, displayName) {
- var warnAboutAccessingKey = function() {
- if (!specialPropKeyWarningShown) {
- specialPropKeyWarningShown = true
- process.env.NODE_ENV !== 'production'
- ? warning(
- false,
- '%s: `key` is not a prop. Trying to access it will result ' +
- 'in `undefined` being returned. If you need to access the same ' +
- 'value within the child component, you should pass it as a different ' +
- 'prop. (https://fb.me/react-special-props)',
- displayName
- )
- : void 0
- }
- }
- warnAboutAccessingKey.isReactWarning = true
- Object.defineProperty(props, 'key', {
- get: warnAboutAccessingKey,
- configurable: true,
- })
- }
+ function endOfRange(dateRange) {
+ var unit =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : 'day'
- function defineRefPropWarningGetter(props, displayName) {
- var warnAboutAccessingRef = function() {
- if (!specialPropRefWarningShown) {
- specialPropRefWarningShown = true
- process.env.NODE_ENV !== 'production'
- ? warning(
- false,
- '%s: `ref` is not a prop. Trying to access it will result ' +
- 'in `undefined` being returned. If you need to access the same ' +
- 'value within the child component, you should pass it as a different ' +
- 'prop. (https://fb.me/react-special-props)',
- displayName
- )
- : void 0
- }
- }
- warnAboutAccessingRef.isReactWarning = true
- Object.defineProperty(props, 'ref', {
- get: warnAboutAccessingRef,
- configurable: true,
- })
+ return {
+ first: dateRange[0],
+ last: _dates2.default.add(dateRange[dateRange.length - 1], 1, unit),
}
+ }
- /**
- * Factory method to create a new React element. This no longer adheres to
- * the class pattern, so do not use new to call it. Also, no instanceof check
- * will work. Instead test $$typeof field against Symbol.for('react.element') to check
- * if something is a React Element.
- *
- * @param {*} type
- * @param {*} key
- * @param {string|object} ref
- * @param {*} self A *temporary* helper to detect places where `this` is
- * different from the `owner` when React.createElement is called, so that we
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
- * functions, and as long as `this` and owner are the same, there will be no
- * change in behavior.
- * @param {*} source An annotation object (added by a transpiler or otherwise)
- * indicating filename, line number, and/or other information.
- * @param {*} owner
- * @param {*} props
- * @internal
- */
- var ReactElement = function(type, key, ref, self, source, owner, props) {
- var element = {
- // This tag allow us to uniquely identify this as a React Element
- $$typeof: REACT_ELEMENT_TYPE,
+ function eventSegments(event, first, last, _ref, range) {
+ var startAccessor = _ref.startAccessor,
+ endAccessor = _ref.endAccessor
- // Built-in properties that belong on the element
- type: type,
- key: key,
- ref: ref,
- props: props,
+ var slots = _dates2.default.diff(first, last, 'day')
+ var start = _dates2.default.max(
+ _dates2.default.startOf(
+ (0, _accessors.accessor)(event, startAccessor),
+ 'day'
+ ),
+ first
+ )
+ var end = _dates2.default.min(
+ _dates2.default.ceil(
+ (0, _accessors.accessor)(event, endAccessor),
+ 'day'
+ ),
+ last
+ )
- // Record the component responsible for creating this element.
- _owner: owner,
- }
+ var padding = (0, _findIndex2.default)(range, function(x) {
+ return _dates2.default.eq(x, start, 'day')
+ })
+ var span = _dates2.default.diff(start, end, 'day')
- if (process.env.NODE_ENV !== 'production') {
- // The validation flag is currently mutative. We put it on
- // an external backing store so that we can freeze the whole object.
- // This can be replaced with a WeakMap once they are implemented in
- // commonly used development environments.
- element._store = {}
-
- // To make comparing ReactElements easier for testing purposes, we make
- // the validation flag non-enumerable (where possible, which should
- // include every environment we run tests in), so the test framework
- // ignores it.
- if (canDefineProperty) {
- Object.defineProperty(element._store, 'validated', {
- configurable: false,
- enumerable: false,
- writable: true,
- value: false,
- })
- // self and source are DEV only properties.
- Object.defineProperty(element, '_self', {
- configurable: false,
- enumerable: false,
- writable: false,
- value: self,
- })
- // Two elements created in two different places should be considered
- // equal for testing purposes and therefore we hide it from enumeration.
- Object.defineProperty(element, '_source', {
- configurable: false,
- enumerable: false,
- writable: false,
- value: source,
- })
- } else {
- element._store.validated = false
- element._self = self
- element._source = source
- }
- if (Object.freeze) {
- Object.freeze(element.props)
- Object.freeze(element)
- }
- }
+ span = Math.min(span, slots)
+ span = Math.max(span, 1)
- return element
+ return {
+ event: event,
+ span: span,
+ left: padding + 1,
+ right: Math.max(padding + span, 1),
}
+ }
- /**
- * Create and return a new ReactElement of the given type.
- * See https://facebook.github.io/react/docs/top-level-api.html#react.createelement
- */
- ReactElement.createElement = function(type, config, children) {
- var propName
+ function segStyle(span, slots) {
+ var per = span / slots * 100 + '%'
+ return {
+ WebkitFlexBasis: per,
+ flexBasis: per,
+ maxWidth: per, // IE10/11 need max-width. flex-basis doesn't respect box-sizing
+ }
+ }
- // Reserved names are extracted
- var props = {}
+ function eventLevels(rowSegments) {
+ var limit =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : Infinity
- var key = null
- var ref = null
- var self = null
- var source = null
+ var i = void 0,
+ j = void 0,
+ seg = void 0,
+ levels = [],
+ extra = []
- if (config != null) {
- if (hasValidRef(config)) {
- ref = config.ref
- }
- if (hasValidKey(config)) {
- key = '' + config.key
- }
-
- self = config.__self === undefined ? null : config.__self
- source = config.__source === undefined ? null : config.__source
- // Remaining properties are added to a new props object
- for (propName in config) {
- if (
- hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
- ) {
- props[propName] = config[propName]
- }
- }
- }
-
- // Children can be more than one argument, and those are transferred onto
- // the newly allocated props object.
- var childrenLength = arguments.length - 2
- if (childrenLength === 1) {
- props.children = children
- } else if (childrenLength > 1) {
- var childArray = Array(childrenLength)
- for (var i = 0; i < childrenLength; i++) {
- childArray[i] = arguments[i + 2]
- }
- if (process.env.NODE_ENV !== 'production') {
- if (Object.freeze) {
- Object.freeze(childArray)
- }
- }
- props.children = childArray
- }
-
- // Resolve default props
- if (type && type.defaultProps) {
- var defaultProps = type.defaultProps
- for (propName in defaultProps) {
- if (props[propName] === undefined) {
- props[propName] = defaultProps[propName]
- }
- }
- }
- if (process.env.NODE_ENV !== 'production') {
- if (key || ref) {
- if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
- var displayName =
- typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type
- if (key) {
- defineKeyPropWarningGetter(props, displayName)
- }
- if (ref) {
- defineRefPropWarningGetter(props, displayName)
- }
- }
- }
- }
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props)
- }
-
- /**
- * Return a function that produces ReactElements of a given type.
- * See https://facebook.github.io/react/docs/top-level-api.html#react.createfactory
- */
- ReactElement.createFactory = function(type) {
- var factory = ReactElement.createElement.bind(null, type)
- // Expose the type on the factory and the prototype so that it can be
- // easily accessed on elements. E.g. `.type === Foo`.
- // This should not be named `constructor` since this may not be the function
- // that created the element, and it may not even be a constructor.
- // Legacy hook TODO: Warn if this is accessed
- factory.type = type
- return factory
- }
-
- ReactElement.cloneAndReplaceKey = function(oldElement, newKey) {
- var newElement = ReactElement(
- oldElement.type,
- newKey,
- oldElement.ref,
- oldElement._self,
- oldElement._source,
- oldElement._owner,
- oldElement.props
- )
-
- return newElement
- }
-
- /**
- * Clone and return a new ReactElement using element as the starting point.
- * See https://facebook.github.io/react/docs/top-level-api.html#react.cloneelement
- */
- ReactElement.cloneElement = function(element, config, children) {
- var propName
-
- // Original props are copied
- var props = _assign({}, element.props)
-
- // Reserved names are extracted
- var key = element.key
- var ref = element.ref
- // Self is preserved since the owner is preserved.
- var self = element._self
- // Source is preserved since cloneElement is unlikely to be targeted by a
- // transpiler, and the original source is probably a better indicator of the
- // true owner.
- var source = element._source
-
- // Owner will be preserved, unless ref is overridden
- var owner = element._owner
-
- if (config != null) {
- if (hasValidRef(config)) {
- // Silently steal the ref from the parent.
- ref = config.ref
- owner = ReactCurrentOwner.current
- }
- if (hasValidKey(config)) {
- key = '' + config.key
- }
-
- // Remaining properties override existing props
- var defaultProps
- if (element.type && element.type.defaultProps) {
- defaultProps = element.type.defaultProps
- }
- for (propName in config) {
- if (
- hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
- ) {
- if (config[propName] === undefined && defaultProps !== undefined) {
- // Resolve default props
- props[propName] = defaultProps[propName]
- } else {
- props[propName] = config[propName]
- }
- }
- }
- }
-
- // Children can be more than one argument, and those are transferred onto
- // the newly allocated props object.
- var childrenLength = arguments.length - 2
- if (childrenLength === 1) {
- props.children = children
- } else if (childrenLength > 1) {
- var childArray = Array(childrenLength)
- for (var i = 0; i < childrenLength; i++) {
- childArray[i] = arguments[i + 2]
- }
- props.children = childArray
- }
-
- return ReactElement(element.type, key, ref, self, source, owner, props)
- }
-
- /**
- * Verifies the object is a ReactElement.
- * See https://facebook.github.io/react/docs/top-level-api.html#react.isvalidelement
- * @param {?object} object
- * @return {boolean} True if `object` is a valid component.
- * @final
- */
- ReactElement.isValidElement = function(object) {
- return (
- typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE
- )
- }
-
- module.exports = ReactElement
- /* WEBPACK VAR INJECTION */
- }.call(exports, __webpack_require__(0)))
-
- /***/
- },
- /* 34 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
- /**
- * WARNING: DO NOT manually require this module.
- * This is a replacement for `invariant(...)` used by the error code system
- * and will _only_ be required by the corresponding babel pass.
- * It always throws.
- */
-
- function reactProdInvariant(code) {
- var argCount = arguments.length - 1
-
- var message =
- 'Minified React error #' +
- code +
- '; visit ' +
- 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' +
- code
-
- for (var argIdx = 0; argIdx < argCount; argIdx++) {
- message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1])
- }
-
- message +=
- ' for the full message or use the non-minified dev environment' +
- ' for full errors and additional helpful warnings.'
-
- var error = new Error(message)
- error.name = 'Invariant Violation'
- error.framesToPop = 1 // we don't care about reactProdInvariant's own frame
-
- throw error
- }
-
- module.exports = reactProdInvariant
-
- /***/
- },
- /* 35 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
-
- exports.__esModule = true
-
- var _typeof =
- typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'
- ? function(obj) {
- return typeof obj
- }
- : function(obj) {
- return obj &&
- typeof Symbol === 'function' &&
- obj.constructor === Symbol &&
- obj !== Symbol.prototype
- ? 'symbol'
- : typeof obj
- }
-
- exports.accessor = accessor
- function accessor(data, field) {
- var value = null
-
- if (typeof field === 'function') value = field(data)
- else if (
- typeof field === 'string' &&
- (typeof data === 'undefined' ? 'undefined' : _typeof(data)) === 'object' &&
- data != null &&
- field in data
- )
- value = data[field]
-
- return value
- }
-
- /***/
- },
- /* 36 */
- /***/ function(module, exports, __webpack_require__) {
- 'use strict'
-
- exports.__esModule = true
- exports.endOfRange = endOfRange
- exports.eventSegments = eventSegments
- exports.segStyle = segStyle
- exports.eventLevels = eventLevels
- exports.inRange = inRange
- exports.segsOverlap = segsOverlap
- exports.sortEvents = sortEvents
-
- var _findIndex = __webpack_require__(411)
-
- var _findIndex2 = _interopRequireDefault(_findIndex)
-
- var _dates = __webpack_require__(9)
-
- var _dates2 = _interopRequireDefault(_dates)
-
- var _accessors = __webpack_require__(35)
-
- function _interopRequireDefault(obj) {
- return obj && obj.__esModule ? obj : { default: obj }
- }
-
- function endOfRange(dateRange) {
- var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'day'
-
- return {
- first: dateRange[0],
- last: _dates2.default.add(dateRange[dateRange.length - 1], 1, unit),
- }
- }
-
- function eventSegments(event, first, last, _ref, range) {
- var startAccessor = _ref.startAccessor,
- endAccessor = _ref.endAccessor
-
- var slots = _dates2.default.diff(first, last, 'day')
- var start = _dates2.default.max(
- _dates2.default.startOf((0, _accessors.accessor)(event, startAccessor), 'day'),
- first
- )
- var end = _dates2.default.min(
- _dates2.default.ceil((0, _accessors.accessor)(event, endAccessor), 'day'),
- last
- )
-
- var padding = (0, _findIndex2.default)(range, function(x) {
- return _dates2.default.eq(x, start, 'day')
- })
- var span = _dates2.default.diff(start, end, 'day')
-
- span = Math.min(span, slots)
- span = Math.max(span, 1)
-
- return {
- event: event,
- span: span,
- left: padding + 1,
- right: Math.max(padding + span, 1),
- }
- }
-
- function segStyle(span, slots) {
- var per = span / slots * 100 + '%'
- return { WebkitFlexBasis: per, flexBasis: per, maxWidth: per } // IE10/11 need max-width. flex-basis doesn't respect box-sizing
- }
-
- function eventLevels(rowSegments) {
- var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Infinity
-
- var i = void 0,
- j = void 0,
- seg = void 0,
- levels = [],
- extra = []
-
- for (i = 0; i < rowSegments.length; i++) {
- seg = rowSegments[i]
+ for (i = 0; i < rowSegments.length; i++) {
+ seg = rowSegments[i]
for (j = 0; j < levels.length; j++) {
if (!segsOverlap(seg, levels[j])) break
@@ -3927,11 +1621,17 @@
var startAccessor = _ref2.startAccessor,
endAccessor = _ref2.endAccessor
- var eStart = _dates2.default.startOf((0, _accessors.accessor)(e, startAccessor), 'day')
+ var eStart = _dates2.default.startOf(
+ (0, _accessors.accessor)(e, startAccessor),
+ 'day'
+ )
var eEnd = (0, _accessors.accessor)(e, endAccessor)
var startsBeforeEnd = _dates2.default.lte(eStart, end, 'day')
- var endsAfterStart = _dates2.default.gte(eEnd, start, 'day')
+ // when the event is zero duration we need to handle a bit differently
+ var endsAfterStart = !_dates2.default.eq(eStart, eEnd)
+ ? _dates2.default.gt(eEnd, start, 'day')
+ : _dates2.default.gte(eEnd, start, 'day')
return startsBeforeEnd && endsAfterStart
}
@@ -3948,18 +1648,30 @@
allDayAccessor = _ref3.allDayAccessor
var startSort =
- +_dates2.default.startOf((0, _accessors.accessor)(evtA, startAccessor), 'day') -
- +_dates2.default.startOf((0, _accessors.accessor)(evtB, startAccessor), 'day')
+ +_dates2.default.startOf(
+ (0, _accessors.accessor)(evtA, startAccessor),
+ 'day'
+ ) -
+ +_dates2.default.startOf(
+ (0, _accessors.accessor)(evtB, startAccessor),
+ 'day'
+ )
var durA = _dates2.default.diff(
(0, _accessors.accessor)(evtA, startAccessor),
- _dates2.default.ceil((0, _accessors.accessor)(evtA, endAccessor), 'day'),
+ _dates2.default.ceil(
+ (0, _accessors.accessor)(evtA, endAccessor),
+ 'day'
+ ),
'day'
)
var durB = _dates2.default.diff(
(0, _accessors.accessor)(evtB, startAccessor),
- _dates2.default.ceil((0, _accessors.accessor)(evtB, endAccessor), 'day'),
+ _dates2.default.ceil(
+ (0, _accessors.accessor)(evtB, endAccessor),
+ 'day'
+ ),
'day'
)
@@ -3975,22 +1687,177 @@
/***/
},
- /* 37 */
+ /* 22 */
/***/ function(module, exports, __webpack_require__) {
- var root = __webpack_require__(19)
+ 'use strict'
+ /*
+object-assign
+(c) Sindre Sorhus
+@license MIT
+*/
- /** Built-in value references. */
- var Symbol = root.Symbol
+ /* eslint-disable no-unused-vars */
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols
+ var hasOwnProperty = Object.prototype.hasOwnProperty
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable
- module.exports = Symbol
+ function toObject(val) {
+ if (val === null || val === undefined) {
+ throw new TypeError(
+ 'Object.assign cannot be called with null or undefined'
+ )
+ }
+
+ return Object(val)
+ }
+
+ function shouldUseNative() {
+ try {
+ if (!Object.assign) {
+ return false
+ }
+
+ // Detect buggy property enumeration order in older V8 versions.
+
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
+ var test1 = new String('abc') // eslint-disable-line no-new-wrappers
+ test1[5] = 'de'
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
+ return false
+ }
+
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
+ var test2 = {}
+ for (var i = 0; i < 10; i++) {
+ test2['_' + String.fromCharCode(i)] = i
+ }
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
+ return test2[n]
+ })
+ if (order2.join('') !== '0123456789') {
+ return false
+ }
+
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
+ var test3 = {}
+ 'abcdefghijklmnopqrst'.split('').forEach(function(letter) {
+ test3[letter] = letter
+ })
+ if (
+ Object.keys(Object.assign({}, test3)).join('') !==
+ 'abcdefghijklmnopqrst'
+ ) {
+ return false
+ }
+
+ return true
+ } catch (err) {
+ // We don't expect any of the above to throw, but better to be safe.
+ return false
+ }
+ }
+
+ module.exports = shouldUseNative()
+ ? Object.assign
+ : function(target, source) {
+ var from
+ var to = toObject(target)
+ var symbols
+
+ for (var s = 1; s < arguments.length; s++) {
+ from = Object(arguments[s])
+
+ for (var key in from) {
+ if (hasOwnProperty.call(from, key)) {
+ to[key] = from[key]
+ }
+ }
+
+ if (getOwnPropertySymbols) {
+ symbols = getOwnPropertySymbols(from)
+ for (var i = 0; i < symbols.length; i++) {
+ if (propIsEnumerable.call(from, symbols[i])) {
+ to[symbols[i]] = from[symbols[i]]
+ }
+ }
+ }
+ }
+
+ return to
+ }
/***/
},
- /* 38 */
+ /* 23 */
+ /***/ function(module, exports, __webpack_require__) {
+ 'use strict'
+ /* WEBPACK VAR INJECTION */ ;(function(process) {
+ /**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+ /**
+ * Use invariant() to assert state which your program assumes to be true.
+ *
+ * Provide sprintf-style format (only %s is supported) and arguments
+ * to provide information about what broke and what you were
+ * expecting.
+ *
+ * The invariant message will be stripped in production, but the invariant
+ * will remain to ensure logic does not differ in production.
+ */
+
+ var validateFormat = function validateFormat(format) {}
+
+ if (process.env.NODE_ENV !== 'production') {
+ validateFormat = function validateFormat(format) {
+ if (format === undefined) {
+ throw new Error('invariant requires an error message argument')
+ }
+ }
+ }
+
+ function invariant(condition, format, a, b, c, d, e, f) {
+ validateFormat(format)
+
+ if (!condition) {
+ var error
+ if (format === undefined) {
+ error = new Error(
+ 'Minified exception occurred; use the non-minified dev environment ' +
+ 'for the full error message and additional helpful warnings.'
+ )
+ } else {
+ var args = [a, b, c, d, e, f]
+ var argIndex = 0
+ error = new Error(
+ format.replace(/%s/g, function() {
+ return args[argIndex++]
+ })
+ )
+ error.name = 'Invariant Violation'
+ }
+
+ error.framesToPop = 1 // we don't care about invariant's own frame
+ throw error
+ }
+ }
+
+ module.exports = invariant
+ /* WEBPACK VAR INJECTION */
+ }.call(exports, __webpack_require__(2)))
+
+ /***/
+ },
+ /* 24 */
/***/ function(module, exports, __webpack_require__) {
- var Symbol = __webpack_require__(37),
- getRawTag = __webpack_require__(368),
- objectToString = __webpack_require__(396)
+ var Symbol = __webpack_require__(25),
+ getRawTag = __webpack_require__(196),
+ objectToString = __webpack_require__(197)
/** `Object#toString` result references. */
var nullTag = '[object Null]',
@@ -4019,32 +1886,33 @@
/***/
},
- /* 39 */
+ /* 25 */
/***/ function(module, exports, __webpack_require__) {
- var identity = __webpack_require__(114),
- overRest = __webpack_require__(190),
- setToString = __webpack_require__(191)
+ var root = __webpack_require__(11)
- /**
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @returns {Function} Returns the new function.
- */
- function baseRest(func, start) {
- return setToString(overRest(func, start, identity), func + '')
- }
+ /** Built-in value references. */
+ var Symbol = root.Symbol
- module.exports = baseRest
+ module.exports = Symbol
/***/
},
- /* 40 */
+ /* 26 */
+ /***/ function(module, exports, __webpack_require__) {
+ 'use strict'
+
+ module.exports = !!(
+ typeof window !== 'undefined' &&
+ window.document &&
+ window.document.createElement
+ )
+
+ /***/
+ },
+ /* 27 */
/***/ function(module, exports, __webpack_require__) {
- var assignValue = __webpack_require__(170),
- baseAssignValue = __webpack_require__(103)
+ var assignValue = __webpack_require__(163),
+ baseAssignValue = __webpack_require__(93)
/**
* Copies properties of `source` to `object`.
@@ -4086,452 +1954,334 @@
/***/
},
- /* 41 */
+ /* 28 */
/***/ function(module, exports, __webpack_require__) {
- 'use strict'
+ var identity = __webpack_require__(86),
+ overRest = __webpack_require__(168),
+ setToString = __webpack_require__(170)
+
/**
- * Copyright 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
+ * The base implementation of `_.rest` which doesn't validate or coerce arguments.
*
+ * @private
+ * @param {Function} func The function to apply a rest parameter to.
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
+ * @returns {Function} Returns the new function.
*/
+ function baseRest(func, start) {
+ return setToString(overRest(func, start, identity), func + '')
+ }
- var DOMNamespaces = __webpack_require__(125)
- var setInnerHTML = __webpack_require__(81)
+ module.exports = baseRest
- var createMicrosoftUnsafeLocalFunction = __webpack_require__(132)
- var setTextContent = __webpack_require__(229)
+ /***/
+ },
+ /* 29 */
+ /***/ function(module, exports, __webpack_require__) {
+ 'use strict'
- var ELEMENT_NODE_TYPE = 1
- var DOCUMENT_FRAGMENT_NODE_TYPE = 11
+ Object.defineProperty(exports, '__esModule', {
+ value: true,
+ })
- /**
- * In IE (8-11) and Edge, appending nodes with no children is dramatically
- * faster than appending a full subtree, so we essentially queue up the
- * .appendChild calls here and apply them so each node is added to its parent
- * before any children are added.
- *
- * In other browsers, doing so is slower or neutral compared to the other order
- * (in Firefox, twice as slow) so we only do this inversion in IE.
- *
- * See https://github.com/spicyj/innerhtml-vs-createelement-vs-clonenode.
- */
- var enableLazy =
- (typeof document !== 'undefined' && typeof document.documentMode === 'number') ||
- (typeof navigator !== 'undefined' &&
- typeof navigator.userAgent === 'string' &&
- /\bEdge\/\d/.test(navigator.userAgent))
-
- function insertTreeChildren(tree) {
- if (!enableLazy) {
- return
- }
- var node = tree.node
- var children = tree.children
- if (children.length) {
- for (var i = 0; i < children.length; i++) {
- insertTreeBefore(node, children[i], null)
- }
- } else if (tree.html != null) {
- setInnerHTML(node, tree.html)
- } else if (tree.text != null) {
- setTextContent(node, tree.text)
- }
- }
+ var _DragDropContext = __webpack_require__(177)
- var insertTreeBefore = createMicrosoftUnsafeLocalFunction(function(
- parentNode,
- tree,
- referenceNode
- ) {
- // DocumentFragments aren't actually part of the DOM after insertion so
- // appending children won't update the DOM. We need to ensure the fragment
- // is properly populated first, breaking out of our lazy approach for just
- // this level. Also, some